Added code to avoid checking for .bc when the filename is too short.
[oota-llvm.git] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.57 for [LLVM] [1.0].
4 #
5 # Report bugs to <llvmbugs@cs.uiuc.edu>.
6 #
7 # Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
8 # Free Software Foundation, Inc.
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 ## --------------------- ##
12 ## M4sh Initialization.  ##
13 ## --------------------- ##
14
15 # Be Bourne compatible
16 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
17   emulate sh
18   NULLCMD=:
19   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
20   # is contrary to our usage.  Disable this feature.
21   alias -g '${1+"$@"}'='"$@"'
22 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
23   set -o posix
24 fi
25
26 # Support unset when possible.
27 if (FOO=FOO; unset FOO) >/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 -n "`(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   as_mkdir_p=false
224 fi
225
226 as_executable_p="test -f"
227
228 # Sed expression to map a string onto a valid CPP name.
229 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
230
231 # Sed expression to map a string onto a valid variable name.
232 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
233
234
235 # IFS
236 # We need space, tab and new line, in precisely that order.
237 as_nl='
238 '
239 IFS="   $as_nl"
240
241 # CDPATH.
242 $as_unset CDPATH
243
244
245
246 # Check that we are running under the correct shell.
247 SHELL=${CONFIG_SHELL-/bin/sh}
248
249 case X$ECHO in
250 X*--fallback-echo)
251   # Remove one level of quotation (which was required for Make).
252   ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
253   ;;
254 esac
255
256 echo=${ECHO-echo}
257 if test "X$1" = X--no-reexec; then
258   # Discard the --no-reexec flag, and continue.
259   shift
260 elif test "X$1" = X--fallback-echo; then
261   # Avoid inline document here, it may be left over
262   :
263 elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
264   # Yippee, $echo works!
265   :
266 else
267   # Restart under the correct shell.
268   exec $SHELL "$0" --no-reexec ${1+"$@"}
269 fi
270
271 if test "X$1" = X--fallback-echo; then
272   # used as fallback echo
273   shift
274   cat <<EOF
275 $*
276 EOF
277   exit 0
278 fi
279
280 # The HP-UX ksh and POSIX shell print the target directory to stdout
281 # if CDPATH is set.
282 if test "X${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
283
284 if test -z "$ECHO"; then
285 if test "X${echo_test_string+set}" != Xset; then
286 # find a string as large as possible, as long as the shell can cope with it
287   for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
288     # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
289     if (echo_test_string="`eval $cmd`") 2>/dev/null &&
290        echo_test_string="`eval $cmd`" &&
291        (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
292     then
293       break
294     fi
295   done
296 fi
297
298 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
299    echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
300    test "X$echo_testing_string" = "X$echo_test_string"; then
301   :
302 else
303   # The Solaris, AIX, and Digital Unix default echo programs unquote
304   # backslashes.  This makes it impossible to quote backslashes using
305   #   echo "$something" | sed 's/\\/\\\\/g'
306   #
307   # So, first we look for a working echo in the user's PATH.
308
309   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
310   for dir in $PATH /usr/ucb; do
311     IFS="$lt_save_ifs"
312     if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
313        test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
314        echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
315        test "X$echo_testing_string" = "X$echo_test_string"; then
316       echo="$dir/echo"
317       break
318     fi
319   done
320   IFS="$lt_save_ifs"
321
322   if test "X$echo" = Xecho; then
323     # We didn't find a better echo, so look for alternatives.
324     if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
325        echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
326        test "X$echo_testing_string" = "X$echo_test_string"; then
327       # This shell has a builtin print -r that does the trick.
328       echo='print -r'
329     elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
330          test "X$CONFIG_SHELL" != X/bin/ksh; then
331       # If we have ksh, try running configure again with it.
332       ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
333       export ORIGINAL_CONFIG_SHELL
334       CONFIG_SHELL=/bin/ksh
335       export CONFIG_SHELL
336       exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
337     else
338       # Try using printf.
339       echo='printf %s\n'
340       if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
341          echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
342          test "X$echo_testing_string" = "X$echo_test_string"; then
343         # Cool, printf works
344         :
345       elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
346            test "X$echo_testing_string" = 'X\t' &&
347            echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
348            test "X$echo_testing_string" = "X$echo_test_string"; then
349         CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
350         export CONFIG_SHELL
351         SHELL="$CONFIG_SHELL"
352         export SHELL
353         echo="$CONFIG_SHELL $0 --fallback-echo"
354       elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
355            test "X$echo_testing_string" = 'X\t' &&
356            echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
357            test "X$echo_testing_string" = "X$echo_test_string"; then
358         echo="$CONFIG_SHELL $0 --fallback-echo"
359       else
360         # maybe with a smaller string...
361         prev=:
362
363         for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
364           if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
365           then
366             break
367           fi
368           prev="$cmd"
369         done
370
371         if test "$prev" != 'sed 50q "$0"'; then
372           echo_test_string=`eval $prev`
373           export echo_test_string
374           exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
375         else
376           # Oops.  We lost completely, so just stick with echo.
377           echo=echo
378         fi
379       fi
380     fi
381   fi
382 fi
383 fi
384
385 # Copy echo and quote the copy suitably for passing to libtool from
386 # the Makefile, instead of quoting the original, which is used later.
387 ECHO=$echo
388 if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
389    ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
390 fi
391
392
393
394
395 tagnames=`echo "$tagnames,CXX" | sed 's/^,//'`
396
397 tagnames=`echo "$tagnames,F77" | sed 's/^,//'`
398
399 # Name of the host.
400 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
401 # so uname gets run too.
402 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
403
404 exec 6>&1
405
406 #
407 # Initializations.
408 #
409 ac_default_prefix=/usr/local
410 ac_config_libobj_dir=.
411 cross_compiling=no
412 subdirs=
413 MFLAGS=
414 MAKEFLAGS=
415 SHELL=${CONFIG_SHELL-/bin/sh}
416
417 # Maximum number of lines to put in a shell here document.
418 # This variable seems obsolete.  It should probably be removed, and
419 # only ac_max_sed_lines should be used.
420 : ${ac_max_here_lines=38}
421
422 # Identity of this package.
423 PACKAGE_NAME='[LLVM]'
424 PACKAGE_TARNAME='--llvm--'
425 PACKAGE_VERSION='[1.0]'
426 PACKAGE_STRING='[LLVM] [1.0]'
427 PACKAGE_BUGREPORT='llvmbugs@cs.uiuc.edu'
428
429 # Factoring default headers for most tests.
430 ac_includes_default="\
431 #include <stdio.h>
432 #if HAVE_SYS_TYPES_H
433 # include <sys/types.h>
434 #endif
435 #if HAVE_SYS_STAT_H
436 # include <sys/stat.h>
437 #endif
438 #if STDC_HEADERS
439 # include <stdlib.h>
440 # include <stddef.h>
441 #else
442 # if HAVE_STDLIB_H
443 #  include <stdlib.h>
444 # endif
445 #endif
446 #if HAVE_STRING_H
447 # if !STDC_HEADERS && HAVE_MEMORY_H
448 #  include <memory.h>
449 # endif
450 # include <string.h>
451 #endif
452 #if HAVE_STRINGS_H
453 # include <strings.h>
454 #endif
455 #if HAVE_INTTYPES_H
456 # include <inttypes.h>
457 #else
458 # if HAVE_STDINT_H
459 #  include <stdint.h>
460 # endif
461 #endif
462 #if HAVE_UNISTD_H
463 # include <unistd.h>
464 #endif"
465
466 ac_unique_file=""Makefile.config.in""
467 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 INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os OS LLVMGCCDIR ARCH CXX CXXFLAGS LDFLAGS CPPFLAGS ac_ct_CXX EXEEXT OBJEXT CC CFLAGS ac_ct_CC CPP ifGNUmake LEX LEXLIB LEX_OUTPUT_ROOT YACC EGREP LN_S ECHO AR ac_ct_AR RANLIB ac_ct_RANLIB STRIP ac_ct_STRIP CXXCPP F77 FFLAGS ac_ct_F77 LIBTOOL RPWD SED RM MKDIR DATE MV DOT ETAGS PURIFY PYTHON QMTEST ALLOCA LIBOBJS MMAP_FILE ENABLE_PURIFY ENABLE_OPTIMIZED USE_SPEC UPB DISABLE_LLC_DIFFS JIT SPEC_ROOT BCR PAPIDIR OBJROOT LTLIBOBJS'
468 ac_subst_files=''
469
470 # Initialize some variables set by options.
471 ac_init_help=
472 ac_init_version=false
473 # The variables have the same names as the options, with
474 # dashes changed to underlines.
475 cache_file=/dev/null
476 exec_prefix=NONE
477 no_create=
478 no_recursion=
479 prefix=NONE
480 program_prefix=NONE
481 program_suffix=NONE
482 program_transform_name=s,x,x,
483 silent=
484 site=
485 srcdir=
486 verbose=
487 x_includes=NONE
488 x_libraries=NONE
489
490 # Installation directory options.
491 # These are left unexpanded so users can "make install exec_prefix=/foo"
492 # and all the variables that are supposed to be based on exec_prefix
493 # by default will actually change.
494 # Use braces instead of parens because sh, perl, etc. also accept them.
495 bindir='${exec_prefix}/bin'
496 sbindir='${exec_prefix}/sbin'
497 libexecdir='${exec_prefix}/libexec'
498 datadir='${prefix}/share'
499 sysconfdir='${prefix}/etc'
500 sharedstatedir='${prefix}/com'
501 localstatedir='${prefix}/var'
502 libdir='${exec_prefix}/lib'
503 includedir='${prefix}/include'
504 oldincludedir='/usr/include'
505 infodir='${prefix}/info'
506 mandir='${prefix}/man'
507
508 ac_prev=
509 for ac_option
510 do
511   # If the previous option needs an argument, assign it.
512   if test -n "$ac_prev"; then
513     eval "$ac_prev=\$ac_option"
514     ac_prev=
515     continue
516   fi
517
518   ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
519
520   # Accept the important Cygnus configure options, so we can diagnose typos.
521
522   case $ac_option in
523
524   -bindir | --bindir | --bindi | --bind | --bin | --bi)
525     ac_prev=bindir ;;
526   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
527     bindir=$ac_optarg ;;
528
529   -build | --build | --buil | --bui | --bu)
530     ac_prev=build_alias ;;
531   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
532     build_alias=$ac_optarg ;;
533
534   -cache-file | --cache-file | --cache-fil | --cache-fi \
535   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
536     ac_prev=cache_file ;;
537   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
538   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
539     cache_file=$ac_optarg ;;
540
541   --config-cache | -C)
542     cache_file=config.cache ;;
543
544   -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
545     ac_prev=datadir ;;
546   -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
547   | --da=*)
548     datadir=$ac_optarg ;;
549
550   -disable-* | --disable-*)
551     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
552     # Reject names that are not valid shell variable names.
553     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
554       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
555    { (exit 1); exit 1; }; }
556     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
557     eval "enable_$ac_feature=no" ;;
558
559   -enable-* | --enable-*)
560     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
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     case $ac_option in
567       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
568       *) ac_optarg=yes ;;
569     esac
570     eval "enable_$ac_feature='$ac_optarg'" ;;
571
572   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
573   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
574   | --exec | --exe | --ex)
575     ac_prev=exec_prefix ;;
576   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
577   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
578   | --exec=* | --exe=* | --ex=*)
579     exec_prefix=$ac_optarg ;;
580
581   -gas | --gas | --ga | --g)
582     # Obsolete; use --with-gas.
583     with_gas=yes ;;
584
585   -help | --help | --hel | --he | -h)
586     ac_init_help=long ;;
587   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
588     ac_init_help=recursive ;;
589   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
590     ac_init_help=short ;;
591
592   -host | --host | --hos | --ho)
593     ac_prev=host_alias ;;
594   -host=* | --host=* | --hos=* | --ho=*)
595     host_alias=$ac_optarg ;;
596
597   -includedir | --includedir | --includedi | --included | --include \
598   | --includ | --inclu | --incl | --inc)
599     ac_prev=includedir ;;
600   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
601   | --includ=* | --inclu=* | --incl=* | --inc=*)
602     includedir=$ac_optarg ;;
603
604   -infodir | --infodir | --infodi | --infod | --info | --inf)
605     ac_prev=infodir ;;
606   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
607     infodir=$ac_optarg ;;
608
609   -libdir | --libdir | --libdi | --libd)
610     ac_prev=libdir ;;
611   -libdir=* | --libdir=* | --libdi=* | --libd=*)
612     libdir=$ac_optarg ;;
613
614   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
615   | --libexe | --libex | --libe)
616     ac_prev=libexecdir ;;
617   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
618   | --libexe=* | --libex=* | --libe=*)
619     libexecdir=$ac_optarg ;;
620
621   -localstatedir | --localstatedir | --localstatedi | --localstated \
622   | --localstate | --localstat | --localsta | --localst \
623   | --locals | --local | --loca | --loc | --lo)
624     ac_prev=localstatedir ;;
625   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
626   | --localstate=* | --localstat=* | --localsta=* | --localst=* \
627   | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
628     localstatedir=$ac_optarg ;;
629
630   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
631     ac_prev=mandir ;;
632   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
633     mandir=$ac_optarg ;;
634
635   -nfp | --nfp | --nf)
636     # Obsolete; use --without-fp.
637     with_fp=no ;;
638
639   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
640   | --no-cr | --no-c | -n)
641     no_create=yes ;;
642
643   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
644   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
645     no_recursion=yes ;;
646
647   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
648   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
649   | --oldin | --oldi | --old | --ol | --o)
650     ac_prev=oldincludedir ;;
651   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
652   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
653   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
654     oldincludedir=$ac_optarg ;;
655
656   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
657     ac_prev=prefix ;;
658   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
659     prefix=$ac_optarg ;;
660
661   -program-prefix | --program-prefix | --program-prefi | --program-pref \
662   | --program-pre | --program-pr | --program-p)
663     ac_prev=program_prefix ;;
664   -program-prefix=* | --program-prefix=* | --program-prefi=* \
665   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
666     program_prefix=$ac_optarg ;;
667
668   -program-suffix | --program-suffix | --program-suffi | --program-suff \
669   | --program-suf | --program-su | --program-s)
670     ac_prev=program_suffix ;;
671   -program-suffix=* | --program-suffix=* | --program-suffi=* \
672   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
673     program_suffix=$ac_optarg ;;
674
675   -program-transform-name | --program-transform-name \
676   | --program-transform-nam | --program-transform-na \
677   | --program-transform-n | --program-transform- \
678   | --program-transform | --program-transfor \
679   | --program-transfo | --program-transf \
680   | --program-trans | --program-tran \
681   | --progr-tra | --program-tr | --program-t)
682     ac_prev=program_transform_name ;;
683   -program-transform-name=* | --program-transform-name=* \
684   | --program-transform-nam=* | --program-transform-na=* \
685   | --program-transform-n=* | --program-transform-=* \
686   | --program-transform=* | --program-transfor=* \
687   | --program-transfo=* | --program-transf=* \
688   | --program-trans=* | --program-tran=* \
689   | --progr-tra=* | --program-tr=* | --program-t=*)
690     program_transform_name=$ac_optarg ;;
691
692   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
693   | -silent | --silent | --silen | --sile | --sil)
694     silent=yes ;;
695
696   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
697     ac_prev=sbindir ;;
698   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
699   | --sbi=* | --sb=*)
700     sbindir=$ac_optarg ;;
701
702   -sharedstatedir | --sharedstatedir | --sharedstatedi \
703   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
704   | --sharedst | --shareds | --shared | --share | --shar \
705   | --sha | --sh)
706     ac_prev=sharedstatedir ;;
707   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
708   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
709   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
710   | --sha=* | --sh=*)
711     sharedstatedir=$ac_optarg ;;
712
713   -site | --site | --sit)
714     ac_prev=site ;;
715   -site=* | --site=* | --sit=*)
716     site=$ac_optarg ;;
717
718   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
719     ac_prev=srcdir ;;
720   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
721     srcdir=$ac_optarg ;;
722
723   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
724   | --syscon | --sysco | --sysc | --sys | --sy)
725     ac_prev=sysconfdir ;;
726   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
727   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
728     sysconfdir=$ac_optarg ;;
729
730   -target | --target | --targe | --targ | --tar | --ta | --t)
731     ac_prev=target_alias ;;
732   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
733     target_alias=$ac_optarg ;;
734
735   -v | -verbose | --verbose | --verbos | --verbo | --verb)
736     verbose=yes ;;
737
738   -version | --version | --versio | --versi | --vers | -V)
739     ac_init_version=: ;;
740
741   -with-* | --with-*)
742     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
743     # Reject names that are not valid shell variable names.
744     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
745       { echo "$as_me: error: invalid package name: $ac_package" >&2
746    { (exit 1); exit 1; }; }
747     ac_package=`echo $ac_package| sed 's/-/_/g'`
748     case $ac_option in
749       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
750       *) ac_optarg=yes ;;
751     esac
752     eval "with_$ac_package='$ac_optarg'" ;;
753
754   -without-* | --without-*)
755     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
756     # Reject names that are not valid shell variable names.
757     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
758       { echo "$as_me: error: invalid package name: $ac_package" >&2
759    { (exit 1); exit 1; }; }
760     ac_package=`echo $ac_package | sed 's/-/_/g'`
761     eval "with_$ac_package=no" ;;
762
763   --x)
764     # Obsolete; use --with-x.
765     with_x=yes ;;
766
767   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
768   | --x-incl | --x-inc | --x-in | --x-i)
769     ac_prev=x_includes ;;
770   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
771   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
772     x_includes=$ac_optarg ;;
773
774   -x-libraries | --x-libraries | --x-librarie | --x-librari \
775   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
776     ac_prev=x_libraries ;;
777   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
778   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
779     x_libraries=$ac_optarg ;;
780
781   -*) { echo "$as_me: error: unrecognized option: $ac_option
782 Try \`$0 --help' for more information." >&2
783    { (exit 1); exit 1; }; }
784     ;;
785
786   *=*)
787     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
788     # Reject names that are not valid shell variable names.
789     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
790       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
791    { (exit 1); exit 1; }; }
792     ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
793     eval "$ac_envvar='$ac_optarg'"
794     export $ac_envvar ;;
795
796   *)
797     # FIXME: should be removed in autoconf 3.0.
798     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
799     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
800       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
801     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
802     ;;
803
804   esac
805 done
806
807 if test -n "$ac_prev"; then
808   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
809   { echo "$as_me: error: missing argument to $ac_option" >&2
810    { (exit 1); exit 1; }; }
811 fi
812
813 # Be sure to have absolute paths.
814 for ac_var in exec_prefix prefix
815 do
816   eval ac_val=$`echo $ac_var`
817   case $ac_val in
818     [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
819     *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
820    { (exit 1); exit 1; }; };;
821   esac
822 done
823
824 # Be sure to have absolute paths.
825 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
826               localstatedir libdir includedir oldincludedir infodir mandir
827 do
828   eval ac_val=$`echo $ac_var`
829   case $ac_val in
830     [\\/$]* | ?:[\\/]* ) ;;
831     *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
832    { (exit 1); exit 1; }; };;
833   esac
834 done
835
836 # There might be people who depend on the old broken behavior: `$host'
837 # used to hold the argument of --host etc.
838 # FIXME: To remove some day.
839 build=$build_alias
840 host=$host_alias
841 target=$target_alias
842
843 # FIXME: To remove some day.
844 if test "x$host_alias" != x; then
845   if test "x$build_alias" = x; then
846     cross_compiling=maybe
847     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
848     If a cross compiler is detected then cross compile mode will be used." >&2
849   elif test "x$build_alias" != "x$host_alias"; then
850     cross_compiling=yes
851   fi
852 fi
853
854 ac_tool_prefix=
855 test -n "$host_alias" && ac_tool_prefix=$host_alias-
856
857 test "$silent" = yes && exec 6>/dev/null
858
859
860 # Find the source files, if location was not specified.
861 if test -z "$srcdir"; then
862   ac_srcdir_defaulted=yes
863   # Try the directory containing this script, then its parent.
864   ac_confdir=`(dirname "$0") 2>/dev/null ||
865 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
866          X"$0" : 'X\(//\)[^/]' \| \
867          X"$0" : 'X\(//\)$' \| \
868          X"$0" : 'X\(/\)' \| \
869          .     : '\(.\)' 2>/dev/null ||
870 echo X"$0" |
871     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
872           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
873           /^X\(\/\/\)$/{ s//\1/; q; }
874           /^X\(\/\).*/{ s//\1/; q; }
875           s/.*/./; q'`
876   srcdir=$ac_confdir
877   if test ! -r $srcdir/$ac_unique_file; then
878     srcdir=..
879   fi
880 else
881   ac_srcdir_defaulted=no
882 fi
883 if test ! -r $srcdir/$ac_unique_file; then
884   if test "$ac_srcdir_defaulted" = yes; then
885     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
886    { (exit 1); exit 1; }; }
887   else
888     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
889    { (exit 1); exit 1; }; }
890   fi
891 fi
892 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
893   { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
894    { (exit 1); exit 1; }; }
895 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
896 ac_env_build_alias_set=${build_alias+set}
897 ac_env_build_alias_value=$build_alias
898 ac_cv_env_build_alias_set=${build_alias+set}
899 ac_cv_env_build_alias_value=$build_alias
900 ac_env_host_alias_set=${host_alias+set}
901 ac_env_host_alias_value=$host_alias
902 ac_cv_env_host_alias_set=${host_alias+set}
903 ac_cv_env_host_alias_value=$host_alias
904 ac_env_target_alias_set=${target_alias+set}
905 ac_env_target_alias_value=$target_alias
906 ac_cv_env_target_alias_set=${target_alias+set}
907 ac_cv_env_target_alias_value=$target_alias
908 ac_env_CXX_set=${CXX+set}
909 ac_env_CXX_value=$CXX
910 ac_cv_env_CXX_set=${CXX+set}
911 ac_cv_env_CXX_value=$CXX
912 ac_env_CXXFLAGS_set=${CXXFLAGS+set}
913 ac_env_CXXFLAGS_value=$CXXFLAGS
914 ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
915 ac_cv_env_CXXFLAGS_value=$CXXFLAGS
916 ac_env_LDFLAGS_set=${LDFLAGS+set}
917 ac_env_LDFLAGS_value=$LDFLAGS
918 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
919 ac_cv_env_LDFLAGS_value=$LDFLAGS
920 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
921 ac_env_CPPFLAGS_value=$CPPFLAGS
922 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
923 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
924 ac_env_CC_set=${CC+set}
925 ac_env_CC_value=$CC
926 ac_cv_env_CC_set=${CC+set}
927 ac_cv_env_CC_value=$CC
928 ac_env_CFLAGS_set=${CFLAGS+set}
929 ac_env_CFLAGS_value=$CFLAGS
930 ac_cv_env_CFLAGS_set=${CFLAGS+set}
931 ac_cv_env_CFLAGS_value=$CFLAGS
932 ac_env_CPP_set=${CPP+set}
933 ac_env_CPP_value=$CPP
934 ac_cv_env_CPP_set=${CPP+set}
935 ac_cv_env_CPP_value=$CPP
936 ac_env_CXXCPP_set=${CXXCPP+set}
937 ac_env_CXXCPP_value=$CXXCPP
938 ac_cv_env_CXXCPP_set=${CXXCPP+set}
939 ac_cv_env_CXXCPP_value=$CXXCPP
940 ac_env_F77_set=${F77+set}
941 ac_env_F77_value=$F77
942 ac_cv_env_F77_set=${F77+set}
943 ac_cv_env_F77_value=$F77
944 ac_env_FFLAGS_set=${FFLAGS+set}
945 ac_env_FFLAGS_value=$FFLAGS
946 ac_cv_env_FFLAGS_set=${FFLAGS+set}
947 ac_cv_env_FFLAGS_value=$FFLAGS
948
949 #
950 # Report the --help message.
951 #
952 if test "$ac_init_help" = "long"; then
953   # Omit some internal or obsolete options to make the list less imposing.
954   # This message is too long to be a string in the A/UX 3.1 sh.
955   cat <<_ACEOF
956 \`configure' configures [LLVM] [1.0] to adapt to many kinds of systems.
957
958 Usage: $0 [OPTION]... [VAR=VALUE]...
959
960 To assign environment variables (e.g., CC, CFLAGS...), specify them as
961 VAR=VALUE.  See below for descriptions of some of the useful variables.
962
963 Defaults for the options are specified in brackets.
964
965 Configuration:
966   -h, --help              display this help and exit
967       --help=short        display options specific to this package
968       --help=recursive    display the short help of all the included packages
969   -V, --version           display version information and exit
970   -q, --quiet, --silent   do not print \`checking...' messages
971       --cache-file=FILE   cache test results in FILE [disabled]
972   -C, --config-cache      alias for \`--cache-file=config.cache'
973   -n, --no-create         do not create output files
974       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
975
976 _ACEOF
977
978   cat <<_ACEOF
979 Installation directories:
980   --prefix=PREFIX         install architecture-independent files in PREFIX
981                           [$ac_default_prefix]
982   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
983                           [PREFIX]
984
985 By default, \`make install' will install all the files in
986 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
987 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
988 for instance \`--prefix=\$HOME'.
989
990 For better control, use the options below.
991
992 Fine tuning of the installation directories:
993   --bindir=DIR           user executables [EPREFIX/bin]
994   --sbindir=DIR          system admin executables [EPREFIX/sbin]
995   --libexecdir=DIR       program executables [EPREFIX/libexec]
996   --datadir=DIR          read-only architecture-independent data [PREFIX/share]
997   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
998   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
999   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1000   --libdir=DIR           object code libraries [EPREFIX/lib]
1001   --includedir=DIR       C header files [PREFIX/include]
1002   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1003   --infodir=DIR          info documentation [PREFIX/info]
1004   --mandir=DIR           man documentation [PREFIX/man]
1005 _ACEOF
1006
1007   cat <<\_ACEOF
1008
1009 System types:
1010   --build=BUILD     configure for building on BUILD [guessed]
1011   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1012   --target=TARGET   configure for building compilers for TARGET [HOST]
1013 _ACEOF
1014 fi
1015
1016 if test -n "$ac_init_help"; then
1017   case $ac_init_help in
1018      short | recursive ) echo "Configuration of [LLVM] [1.0]:";;
1019    esac
1020   cat <<\_ACEOF
1021
1022 Optional Features:
1023   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1024   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1025   --enable-shared[=PKGS]
1026                           build shared libraries [default=yes]
1027   --enable-static[=PKGS]
1028                           build static libraries [default=yes]
1029   --enable-fast-install[=PKGS]
1030                           optimize for fast installation [default=yes]
1031   --disable-libtool-lock  avoid locking (might break parallel builds)
1032   --enable-purify         Compile with purify (default is NO)
1033   --enable-optimized      Compile with optimizations enabled (default is NO)
1034   --enable-spec           Compile SPEC benchmarks (default is NO)
1035   --enable-precompiled_bytecode
1036                           Use pre-compiled bytecode (default is NO)
1037   --enable-llc_diffs      Enable LLC Diffs when testing (default is YES)
1038   --enable-jit            Enable Just In Time Compiling (default is YES)
1039
1040 Optional Packages:
1041   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1042   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1043   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1044   --with-pic              try to use only PIC/non-PIC objects [default=use
1045                           both]
1046   --with-tags[=TAGS]
1047                           include additional configurations [automatic]
1048   --with-spec             Location of SPEC benchmarks
1049   --with-llvmgccdir       Location of LLVM GCC front-end
1050   --with-bcrepos          Location of Bytecode Repository
1051   --with-papi             Location of PAPI
1052   --with-purify           Location of purify program
1053   --with-objroot          Location where object files should be placed
1054                           (default is .)
1055
1056 Some influential environment variables:
1057   CXX         C++ compiler command
1058   CXXFLAGS    C++ compiler flags
1059   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1060               nonstandard directory <lib dir>
1061   CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
1062               headers in a nonstandard directory <include dir>
1063   CC          C compiler command
1064   CFLAGS      C compiler flags
1065   CPP         C preprocessor
1066   CXXCPP      C++ preprocessor
1067   F77         Fortran 77 compiler command
1068   FFLAGS      Fortran 77 compiler flags
1069
1070 Use these variables to override the choices made by `configure' or to help
1071 it to find libraries and programs with nonstandard names/locations.
1072
1073 Report bugs to <llvmbugs@cs.uiuc.edu>.
1074 _ACEOF
1075 fi
1076
1077 if test "$ac_init_help" = "recursive"; then
1078   # If there are subdirs, report their specific --help.
1079   ac_popdir=`pwd`
1080   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1081     test -d $ac_dir || continue
1082     ac_builddir=.
1083
1084 if test "$ac_dir" != .; then
1085   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1086   # A "../" for each directory in $ac_dir_suffix.
1087   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1088 else
1089   ac_dir_suffix= ac_top_builddir=
1090 fi
1091
1092 case $srcdir in
1093   .)  # No --srcdir option.  We are building in place.
1094     ac_srcdir=.
1095     if test -z "$ac_top_builddir"; then
1096        ac_top_srcdir=.
1097     else
1098        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1099     fi ;;
1100   [\\/]* | ?:[\\/]* )  # Absolute path.
1101     ac_srcdir=$srcdir$ac_dir_suffix;
1102     ac_top_srcdir=$srcdir ;;
1103   *) # Relative path.
1104     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1105     ac_top_srcdir=$ac_top_builddir$srcdir ;;
1106 esac
1107 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
1108 # absolute.
1109 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
1110 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
1111 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
1112 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
1113
1114     cd $ac_dir
1115     # Check for guested configure; otherwise get Cygnus style configure.
1116     if test -f $ac_srcdir/configure.gnu; then
1117       echo
1118       $SHELL $ac_srcdir/configure.gnu  --help=recursive
1119     elif test -f $ac_srcdir/configure; then
1120       echo
1121       $SHELL $ac_srcdir/configure  --help=recursive
1122     elif test -f $ac_srcdir/configure.ac ||
1123            test -f $ac_srcdir/configure.in; then
1124       echo
1125       $ac_configure --help
1126     else
1127       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1128     fi
1129     cd $ac_popdir
1130   done
1131 fi
1132
1133 test -n "$ac_init_help" && exit 0
1134 if $ac_init_version; then
1135   cat <<\_ACEOF
1136 [LLVM] configure [1.0]
1137 generated by GNU Autoconf 2.57
1138
1139 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
1140 Free Software Foundation, Inc.
1141 This configure script is free software; the Free Software Foundation
1142 gives unlimited permission to copy, distribute and modify it.
1143 _ACEOF
1144   exit 0
1145 fi
1146 exec 5>config.log
1147 cat >&5 <<_ACEOF
1148 This file contains any messages produced by compilers while
1149 running configure, to aid debugging if configure makes a mistake.
1150
1151 It was created by [LLVM] $as_me [1.0], which was
1152 generated by GNU Autoconf 2.57.  Invocation command line was
1153
1154   $ $0 $@
1155
1156 _ACEOF
1157 {
1158 cat <<_ASUNAME
1159 ## --------- ##
1160 ## Platform. ##
1161 ## --------- ##
1162
1163 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1164 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1165 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1166 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1167 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1168
1169 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1170 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1171
1172 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1173 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1174 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1175 hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
1176 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1177 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1178 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1179
1180 _ASUNAME
1181
1182 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1183 for as_dir in $PATH
1184 do
1185   IFS=$as_save_IFS
1186   test -z "$as_dir" && as_dir=.
1187   echo "PATH: $as_dir"
1188 done
1189
1190 } >&5
1191
1192 cat >&5 <<_ACEOF
1193
1194
1195 ## ----------- ##
1196 ## Core tests. ##
1197 ## ----------- ##
1198
1199 _ACEOF
1200
1201
1202 # Keep a trace of the command line.
1203 # Strip out --no-create and --no-recursion so they do not pile up.
1204 # Strip out --silent because we don't want to record it for future runs.
1205 # Also quote any args containing shell meta-characters.
1206 # Make two passes to allow for proper duplicate-argument suppression.
1207 ac_configure_args=
1208 ac_configure_args0=
1209 ac_configure_args1=
1210 ac_sep=
1211 ac_must_keep_next=false
1212 for ac_pass in 1 2
1213 do
1214   for ac_arg
1215   do
1216     case $ac_arg in
1217     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1218     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1219     | -silent | --silent | --silen | --sile | --sil)
1220       continue ;;
1221     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1222       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1223     esac
1224     case $ac_pass in
1225     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1226     2)
1227       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1228       if test $ac_must_keep_next = true; then
1229         ac_must_keep_next=false # Got value, back to normal.
1230       else
1231         case $ac_arg in
1232           *=* | --config-cache | -C | -disable-* | --disable-* \
1233           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1234           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1235           | -with-* | --with-* | -without-* | --without-* | --x)
1236             case "$ac_configure_args0 " in
1237               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1238             esac
1239             ;;
1240           -* ) ac_must_keep_next=true ;;
1241         esac
1242       fi
1243       ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1244       # Get rid of the leading space.
1245       ac_sep=" "
1246       ;;
1247     esac
1248   done
1249 done
1250 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1251 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1252
1253 # When interrupted or exit'd, cleanup temporary files, and complete
1254 # config.log.  We remove comments because anyway the quotes in there
1255 # would cause problems or look ugly.
1256 # WARNING: Be sure not to use single quotes in there, as some shells,
1257 # such as our DU 5.0 friend, will then `close' the trap.
1258 trap 'exit_status=$?
1259   # Save into config.log some information that might help in debugging.
1260   {
1261     echo
1262
1263     cat <<\_ASBOX
1264 ## ---------------- ##
1265 ## Cache variables. ##
1266 ## ---------------- ##
1267 _ASBOX
1268     echo
1269     # The following way of writing the cache mishandles newlines in values,
1270 {
1271   (set) 2>&1 |
1272     case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1273     *ac_space=\ *)
1274       sed -n \
1275         "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1276           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1277       ;;
1278     *)
1279       sed -n \
1280         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1281       ;;
1282     esac;
1283 }
1284     echo
1285
1286     cat <<\_ASBOX
1287 ## ----------------- ##
1288 ## Output variables. ##
1289 ## ----------------- ##
1290 _ASBOX
1291     echo
1292     for ac_var in $ac_subst_vars
1293     do
1294       eval ac_val=$`echo $ac_var`
1295       echo "$ac_var='"'"'$ac_val'"'"'"
1296     done | sort
1297     echo
1298
1299     if test -n "$ac_subst_files"; then
1300       cat <<\_ASBOX
1301 ## ------------- ##
1302 ## Output files. ##
1303 ## ------------- ##
1304 _ASBOX
1305       echo
1306       for ac_var in $ac_subst_files
1307       do
1308         eval ac_val=$`echo $ac_var`
1309         echo "$ac_var='"'"'$ac_val'"'"'"
1310       done | sort
1311       echo
1312     fi
1313
1314     if test -s confdefs.h; then
1315       cat <<\_ASBOX
1316 ## ----------- ##
1317 ## confdefs.h. ##
1318 ## ----------- ##
1319 _ASBOX
1320       echo
1321       sed "/^$/d" confdefs.h | sort
1322       echo
1323     fi
1324     test "$ac_signal" != 0 &&
1325       echo "$as_me: caught signal $ac_signal"
1326     echo "$as_me: exit $exit_status"
1327   } >&5
1328   rm -f core core.* *.core &&
1329   rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1330     exit $exit_status
1331      ' 0
1332 for ac_signal in 1 2 13 15; do
1333   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1334 done
1335 ac_signal=0
1336
1337 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1338 rm -rf conftest* confdefs.h
1339 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1340 echo >confdefs.h
1341
1342 # Predefined preprocessor variables.
1343
1344 cat >>confdefs.h <<_ACEOF
1345 #define PACKAGE_NAME "$PACKAGE_NAME"
1346 _ACEOF
1347
1348
1349 cat >>confdefs.h <<_ACEOF
1350 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1351 _ACEOF
1352
1353
1354 cat >>confdefs.h <<_ACEOF
1355 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1356 _ACEOF
1357
1358
1359 cat >>confdefs.h <<_ACEOF
1360 #define PACKAGE_STRING "$PACKAGE_STRING"
1361 _ACEOF
1362
1363
1364 cat >>confdefs.h <<_ACEOF
1365 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1366 _ACEOF
1367
1368
1369 # Let the site file select an alternate cache file if it wants to.
1370 # Prefer explicitly selected file to automatically selected ones.
1371 if test -z "$CONFIG_SITE"; then
1372   if test "x$prefix" != xNONE; then
1373     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1374   else
1375     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1376   fi
1377 fi
1378 for ac_site_file in $CONFIG_SITE; do
1379   if test -r "$ac_site_file"; then
1380     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1381 echo "$as_me: loading site script $ac_site_file" >&6;}
1382     sed 's/^/| /' "$ac_site_file" >&5
1383     . "$ac_site_file"
1384   fi
1385 done
1386
1387 if test -r "$cache_file"; then
1388   # Some versions of bash will fail to source /dev/null (special
1389   # files actually), so we avoid doing that.
1390   if test -f "$cache_file"; then
1391     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1392 echo "$as_me: loading cache $cache_file" >&6;}
1393     case $cache_file in
1394       [\\/]* | ?:[\\/]* ) . $cache_file;;
1395       *)                      . ./$cache_file;;
1396     esac
1397   fi
1398 else
1399   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1400 echo "$as_me: creating cache $cache_file" >&6;}
1401   >$cache_file
1402 fi
1403
1404 # Check that the precious variables saved in the cache have kept the same
1405 # value.
1406 ac_cache_corrupted=false
1407 for ac_var in `(set) 2>&1 |
1408                sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1409   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1410   eval ac_new_set=\$ac_env_${ac_var}_set
1411   eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1412   eval ac_new_val="\$ac_env_${ac_var}_value"
1413   case $ac_old_set,$ac_new_set in
1414     set,)
1415       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1416 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1417       ac_cache_corrupted=: ;;
1418     ,set)
1419       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1420 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1421       ac_cache_corrupted=: ;;
1422     ,);;
1423     *)
1424       if test "x$ac_old_val" != "x$ac_new_val"; then
1425         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1426 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1427         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1428 echo "$as_me:   former value:  $ac_old_val" >&2;}
1429         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1430 echo "$as_me:   current value: $ac_new_val" >&2;}
1431         ac_cache_corrupted=:
1432       fi;;
1433   esac
1434   # Pass precious variables to config.status.
1435   if test "$ac_new_set" = set; then
1436     case $ac_new_val in
1437     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1438       ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1439     *) ac_arg=$ac_var=$ac_new_val ;;
1440     esac
1441     case " $ac_configure_args " in
1442       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1443       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1444     esac
1445   fi
1446 done
1447 if $ac_cache_corrupted; then
1448   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1449 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1450   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1451 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1452    { (exit 1); exit 1; }; }
1453 fi
1454
1455 ac_ext=c
1456 ac_cpp='$CPP $CPPFLAGS'
1457 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1458 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1459 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1460
1461
1462
1463
1464
1465
1466
1467
1468
1469
1470
1471
1472
1473
1474
1475
1476
1477
1478
1479
1480
1481
1482
1483
1484
1485
1486
1487
1488 ac_aux_dir=
1489 for ac_dir in autoconf $srcdir/autoconf; do
1490   if test -f $ac_dir/install-sh; then
1491     ac_aux_dir=$ac_dir
1492     ac_install_sh="$ac_aux_dir/install-sh -c"
1493     break
1494   elif test -f $ac_dir/install.sh; then
1495     ac_aux_dir=$ac_dir
1496     ac_install_sh="$ac_aux_dir/install.sh -c"
1497     break
1498   elif test -f $ac_dir/shtool; then
1499     ac_aux_dir=$ac_dir
1500     ac_install_sh="$ac_aux_dir/shtool install -c"
1501     break
1502   fi
1503 done
1504 if test -z "$ac_aux_dir"; then
1505   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf $srcdir/autoconf" >&5
1506 echo "$as_me: error: cannot find install-sh or install.sh in autoconf $srcdir/autoconf" >&2;}
1507    { (exit 1); exit 1; }; }
1508 fi
1509 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1510 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1511 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1512
1513
1514           ac_config_headers="$ac_config_headers include/Config/config.h"
1515
1516
1517
1518 # Find a good install program.  We prefer a C program (faster),
1519 # so one script is as good as another.  But avoid the broken or
1520 # incompatible versions:
1521 # SysV /etc/install, /usr/sbin/install
1522 # SunOS /usr/etc/install
1523 # IRIX /sbin/install
1524 # AIX /bin/install
1525 # AmigaOS /C/install, which installs bootblocks on floppy discs
1526 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1527 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1528 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1529 # ./install, which can be erroneously created by make from ./install.sh.
1530 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1531 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1532 if test -z "$INSTALL"; then
1533 if test "${ac_cv_path_install+set}" = set; then
1534   echo $ECHO_N "(cached) $ECHO_C" >&6
1535 else
1536   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1537 for as_dir in $PATH
1538 do
1539   IFS=$as_save_IFS
1540   test -z "$as_dir" && as_dir=.
1541   # Account for people who put trailing slashes in PATH elements.
1542 case $as_dir/ in
1543   ./ | .// | /cC/* | \
1544   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1545   /usr/ucb/* ) ;;
1546   *)
1547     # OSF1 and SCO ODT 3.0 have their own names for install.
1548     # Don't use installbsd from OSF since it installs stuff as root
1549     # by default.
1550     for ac_prog in ginstall scoinst install; do
1551       for ac_exec_ext in '' $ac_executable_extensions; do
1552         if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1553           if test $ac_prog = install &&
1554             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1555             # AIX install.  It has an incompatible calling convention.
1556             :
1557           elif test $ac_prog = install &&
1558             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1559             # program-specific install script used by HP pwplus--don't use.
1560             :
1561           else
1562             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1563             break 3
1564           fi
1565         fi
1566       done
1567     done
1568     ;;
1569 esac
1570 done
1571
1572
1573 fi
1574   if test "${ac_cv_path_install+set}" = set; then
1575     INSTALL=$ac_cv_path_install
1576   else
1577     # As a last resort, use the slow shell script.  We don't cache a
1578     # path for INSTALL within a source directory, because that will
1579     # break other packages using the cache if that directory is
1580     # removed, or if the path is relative.
1581     INSTALL=$ac_install_sh
1582   fi
1583 fi
1584 echo "$as_me:$LINENO: result: $INSTALL" >&5
1585 echo "${ECHO_T}$INSTALL" >&6
1586
1587 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1588 # It thinks the first close brace ends the variable substitution.
1589 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1590
1591 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1592
1593 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1594
1595
1596 # Make sure we can run config.sub.
1597 $ac_config_sub sun4 >/dev/null 2>&1 ||
1598   { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1599 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1600    { (exit 1); exit 1; }; }
1601
1602 echo "$as_me:$LINENO: checking build system type" >&5
1603 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1604 if test "${ac_cv_build+set}" = set; then
1605   echo $ECHO_N "(cached) $ECHO_C" >&6
1606 else
1607   ac_cv_build_alias=$build_alias
1608 test -z "$ac_cv_build_alias" &&
1609   ac_cv_build_alias=`$ac_config_guess`
1610 test -z "$ac_cv_build_alias" &&
1611   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1612 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1613    { (exit 1); exit 1; }; }
1614 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1615   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1616 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1617    { (exit 1); exit 1; }; }
1618
1619 fi
1620 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1621 echo "${ECHO_T}$ac_cv_build" >&6
1622 build=$ac_cv_build
1623 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1624 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1625 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1626
1627
1628 echo "$as_me:$LINENO: checking host system type" >&5
1629 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1630 if test "${ac_cv_host+set}" = set; then
1631   echo $ECHO_N "(cached) $ECHO_C" >&6
1632 else
1633   ac_cv_host_alias=$host_alias
1634 test -z "$ac_cv_host_alias" &&
1635   ac_cv_host_alias=$ac_cv_build_alias
1636 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1637   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1638 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1639    { (exit 1); exit 1; }; }
1640
1641 fi
1642 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1643 echo "${ECHO_T}$ac_cv_host" >&6
1644 host=$ac_cv_host
1645 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1646 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1647 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1648
1649
1650 echo "$as_me:$LINENO: checking target system type" >&5
1651 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1652 if test "${ac_cv_target+set}" = set; then
1653   echo $ECHO_N "(cached) $ECHO_C" >&6
1654 else
1655   ac_cv_target_alias=$target_alias
1656 test "x$ac_cv_target_alias" = "x" &&
1657   ac_cv_target_alias=$ac_cv_host_alias
1658 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1659   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1660 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1661    { (exit 1); exit 1; }; }
1662
1663 fi
1664 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1665 echo "${ECHO_T}$ac_cv_target" >&6
1666 target=$ac_cv_target
1667 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1668 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1669 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1670
1671
1672 # The aliases save the names the user supplied, while $host etc.
1673 # will get canonicalized.
1674 test -n "$target_alias" &&
1675   test "$program_prefix$program_suffix$program_transform_name" = \
1676     NONENONEs,x,x, &&
1677   program_prefix=${target_alias}-
1678
1679 case $build in
1680         *i*86*)  OS=Linux
1681
1682                  LLVMGCCDIR=/home/vadve/lattner/local/x86/llvm-gcc/
1683
1684                  ;;
1685
1686         *sparc*) OS=SunOS
1687
1688                  LLVMGCCDIR=/home/vadve/lattner/local/sparc/llvm-gcc/
1689
1690                  ;;
1691
1692         *)       OS=Unknown
1693
1694                  ;;
1695 esac
1696
1697 case $target in
1698         *sparc*solaris*)  target=sparcv9-sun-solaris2.8
1699
1700                           ;;
1701 esac
1702
1703 case $target in
1704         *i*86*)           ARCH=x86
1705
1706                           ;;
1707         *sparc*solaris*)  ARCH=Sparc
1708
1709                           ;;
1710 esac
1711
1712
1713 ac_ext=cc
1714 ac_cpp='$CXXCPP $CPPFLAGS'
1715 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1716 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1717 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
1718 if test -n "$ac_tool_prefix"; then
1719   for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
1720   do
1721     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1722 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1723 echo "$as_me:$LINENO: checking for $ac_word" >&5
1724 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1725 if test "${ac_cv_prog_CXX+set}" = set; then
1726   echo $ECHO_N "(cached) $ECHO_C" >&6
1727 else
1728   if test -n "$CXX"; then
1729   ac_cv_prog_CXX="$CXX" # Let the user override the test.
1730 else
1731 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1732 for as_dir in $PATH
1733 do
1734   IFS=$as_save_IFS
1735   test -z "$as_dir" && as_dir=.
1736   for ac_exec_ext in '' $ac_executable_extensions; do
1737   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1738     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
1739     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1740     break 2
1741   fi
1742 done
1743 done
1744
1745 fi
1746 fi
1747 CXX=$ac_cv_prog_CXX
1748 if test -n "$CXX"; then
1749   echo "$as_me:$LINENO: result: $CXX" >&5
1750 echo "${ECHO_T}$CXX" >&6
1751 else
1752   echo "$as_me:$LINENO: result: no" >&5
1753 echo "${ECHO_T}no" >&6
1754 fi
1755
1756     test -n "$CXX" && break
1757   done
1758 fi
1759 if test -z "$CXX"; then
1760   ac_ct_CXX=$CXX
1761   for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
1762 do
1763   # Extract the first word of "$ac_prog", so it can be a program name with args.
1764 set dummy $ac_prog; ac_word=$2
1765 echo "$as_me:$LINENO: checking for $ac_word" >&5
1766 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1767 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
1768   echo $ECHO_N "(cached) $ECHO_C" >&6
1769 else
1770   if test -n "$ac_ct_CXX"; then
1771   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
1772 else
1773 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1774 for as_dir in $PATH
1775 do
1776   IFS=$as_save_IFS
1777   test -z "$as_dir" && as_dir=.
1778   for ac_exec_ext in '' $ac_executable_extensions; do
1779   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1780     ac_cv_prog_ac_ct_CXX="$ac_prog"
1781     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1782     break 2
1783   fi
1784 done
1785 done
1786
1787 fi
1788 fi
1789 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
1790 if test -n "$ac_ct_CXX"; then
1791   echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
1792 echo "${ECHO_T}$ac_ct_CXX" >&6
1793 else
1794   echo "$as_me:$LINENO: result: no" >&5
1795 echo "${ECHO_T}no" >&6
1796 fi
1797
1798   test -n "$ac_ct_CXX" && break
1799 done
1800 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
1801
1802   CXX=$ac_ct_CXX
1803 fi
1804
1805
1806 # Provide some information about the compiler.
1807 echo "$as_me:$LINENO:" \
1808      "checking for C++ compiler version" >&5
1809 ac_compiler=`set X $ac_compile; echo $2`
1810 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1811   (eval $ac_compiler --version </dev/null >&5) 2>&5
1812   ac_status=$?
1813   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1814   (exit $ac_status); }
1815 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1816   (eval $ac_compiler -v </dev/null >&5) 2>&5
1817   ac_status=$?
1818   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1819   (exit $ac_status); }
1820 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1821   (eval $ac_compiler -V </dev/null >&5) 2>&5
1822   ac_status=$?
1823   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1824   (exit $ac_status); }
1825
1826 cat >conftest.$ac_ext <<_ACEOF
1827 #line $LINENO "configure"
1828 /* confdefs.h.  */
1829 _ACEOF
1830 cat confdefs.h >>conftest.$ac_ext
1831 cat >>conftest.$ac_ext <<_ACEOF
1832 /* end confdefs.h.  */
1833
1834 int
1835 main ()
1836 {
1837
1838   ;
1839   return 0;
1840 }
1841 _ACEOF
1842 ac_clean_files_save=$ac_clean_files
1843 ac_clean_files="$ac_clean_files a.out a.exe b.out"
1844 # Try to create an executable without -o first, disregard a.out.
1845 # It will help us diagnose broken compilers, and finding out an intuition
1846 # of exeext.
1847 echo "$as_me:$LINENO: checking for C++ compiler default output" >&5
1848 echo $ECHO_N "checking for C++ compiler default output... $ECHO_C" >&6
1849 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1850 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1851   (eval $ac_link_default) 2>&5
1852   ac_status=$?
1853   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1854   (exit $ac_status); }; then
1855   # Find the output, starting from the most likely.  This scheme is
1856 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1857 # resort.
1858
1859 # Be careful to initialize this variable, since it used to be cached.
1860 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1861 ac_cv_exeext=
1862 # b.out is created by i960 compilers.
1863 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
1864 do
1865   test -f "$ac_file" || continue
1866   case $ac_file in
1867     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
1868         ;;
1869     conftest.$ac_ext )
1870         # This is the source file.
1871         ;;
1872     [ab].out )
1873         # We found the default executable, but exeext='' is most
1874         # certainly right.
1875         break;;
1876     *.* )
1877         ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1878         # FIXME: I believe we export ac_cv_exeext for Libtool,
1879         # but it would be cool to find out if it's true.  Does anybody
1880         # maintain Libtool? --akim.
1881         export ac_cv_exeext
1882         break;;
1883     * )
1884         break;;
1885   esac
1886 done
1887 else
1888   echo "$as_me: failed program was:" >&5
1889 sed 's/^/| /' conftest.$ac_ext >&5
1890
1891 { { echo "$as_me:$LINENO: error: C++ compiler cannot create executables
1892 See \`config.log' for more details." >&5
1893 echo "$as_me: error: C++ compiler cannot create executables
1894 See \`config.log' for more details." >&2;}
1895    { (exit 77); exit 77; }; }
1896 fi
1897
1898 ac_exeext=$ac_cv_exeext
1899 echo "$as_me:$LINENO: result: $ac_file" >&5
1900 echo "${ECHO_T}$ac_file" >&6
1901
1902 # Check the compiler produces executables we can run.  If not, either
1903 # the compiler is broken, or we cross compile.
1904 echo "$as_me:$LINENO: checking whether the C++ compiler works" >&5
1905 echo $ECHO_N "checking whether the C++ compiler works... $ECHO_C" >&6
1906 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1907 # If not cross compiling, check that we can run a simple program.
1908 if test "$cross_compiling" != yes; then
1909   if { ac_try='./$ac_file'
1910   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1911   (eval $ac_try) 2>&5
1912   ac_status=$?
1913   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1914   (exit $ac_status); }; }; then
1915     cross_compiling=no
1916   else
1917     if test "$cross_compiling" = maybe; then
1918         cross_compiling=yes
1919     else
1920         { { echo "$as_me:$LINENO: error: cannot run C++ compiled programs.
1921 If you meant to cross compile, use \`--host'.
1922 See \`config.log' for more details." >&5
1923 echo "$as_me: error: cannot run C++ compiled programs.
1924 If you meant to cross compile, use \`--host'.
1925 See \`config.log' for more details." >&2;}
1926    { (exit 1); exit 1; }; }
1927     fi
1928   fi
1929 fi
1930 echo "$as_me:$LINENO: result: yes" >&5
1931 echo "${ECHO_T}yes" >&6
1932
1933 rm -f a.out a.exe conftest$ac_cv_exeext b.out
1934 ac_clean_files=$ac_clean_files_save
1935 # Check the compiler produces executables we can run.  If not, either
1936 # the compiler is broken, or we cross compile.
1937 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
1938 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1939 echo "$as_me:$LINENO: result: $cross_compiling" >&5
1940 echo "${ECHO_T}$cross_compiling" >&6
1941
1942 echo "$as_me:$LINENO: checking for suffix of executables" >&5
1943 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
1944 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1945   (eval $ac_link) 2>&5
1946   ac_status=$?
1947   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1948   (exit $ac_status); }; then
1949   # If both `conftest.exe' and `conftest' are `present' (well, observable)
1950 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
1951 # work properly (i.e., refer to `conftest.exe'), while it won't with
1952 # `rm'.
1953 for ac_file in conftest.exe conftest conftest.*; do
1954   test -f "$ac_file" || continue
1955   case $ac_file in
1956     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
1957     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1958           export ac_cv_exeext
1959           break;;
1960     * ) break;;
1961   esac
1962 done
1963 else
1964   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
1965 See \`config.log' for more details." >&5
1966 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
1967 See \`config.log' for more details." >&2;}
1968    { (exit 1); exit 1; }; }
1969 fi
1970
1971 rm -f conftest$ac_cv_exeext
1972 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
1973 echo "${ECHO_T}$ac_cv_exeext" >&6
1974
1975 rm -f conftest.$ac_ext
1976 EXEEXT=$ac_cv_exeext
1977 ac_exeext=$EXEEXT
1978 echo "$as_me:$LINENO: checking for suffix of object files" >&5
1979 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
1980 if test "${ac_cv_objext+set}" = set; then
1981   echo $ECHO_N "(cached) $ECHO_C" >&6
1982 else
1983   cat >conftest.$ac_ext <<_ACEOF
1984 #line $LINENO "configure"
1985 /* confdefs.h.  */
1986 _ACEOF
1987 cat confdefs.h >>conftest.$ac_ext
1988 cat >>conftest.$ac_ext <<_ACEOF
1989 /* end confdefs.h.  */
1990
1991 int
1992 main ()
1993 {
1994
1995   ;
1996   return 0;
1997 }
1998 _ACEOF
1999 rm -f conftest.o conftest.obj
2000 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2001   (eval $ac_compile) 2>&5
2002   ac_status=$?
2003   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2004   (exit $ac_status); }; then
2005   for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2006   case $ac_file in
2007     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2008     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2009        break;;
2010   esac
2011 done
2012 else
2013   echo "$as_me: failed program was:" >&5
2014 sed 's/^/| /' conftest.$ac_ext >&5
2015
2016 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2017 See \`config.log' for more details." >&5
2018 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2019 See \`config.log' for more details." >&2;}
2020    { (exit 1); exit 1; }; }
2021 fi
2022
2023 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2024 fi
2025 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2026 echo "${ECHO_T}$ac_cv_objext" >&6
2027 OBJEXT=$ac_cv_objext
2028 ac_objext=$OBJEXT
2029 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2030 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
2031 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2032   echo $ECHO_N "(cached) $ECHO_C" >&6
2033 else
2034   cat >conftest.$ac_ext <<_ACEOF
2035 #line $LINENO "configure"
2036 /* confdefs.h.  */
2037 _ACEOF
2038 cat confdefs.h >>conftest.$ac_ext
2039 cat >>conftest.$ac_ext <<_ACEOF
2040 /* end confdefs.h.  */
2041
2042 int
2043 main ()
2044 {
2045 #ifndef __GNUC__
2046        choke me
2047 #endif
2048
2049   ;
2050   return 0;
2051 }
2052 _ACEOF
2053 rm -f conftest.$ac_objext
2054 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2055   (eval $ac_compile) 2>&5
2056   ac_status=$?
2057   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2058   (exit $ac_status); } &&
2059          { ac_try='test -s conftest.$ac_objext'
2060   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2061   (eval $ac_try) 2>&5
2062   ac_status=$?
2063   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2064   (exit $ac_status); }; }; then
2065   ac_compiler_gnu=yes
2066 else
2067   echo "$as_me: failed program was:" >&5
2068 sed 's/^/| /' conftest.$ac_ext >&5
2069
2070 ac_compiler_gnu=no
2071 fi
2072 rm -f conftest.$ac_objext conftest.$ac_ext
2073 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2074
2075 fi
2076 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
2077 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
2078 GXX=`test $ac_compiler_gnu = yes && echo yes`
2079 ac_test_CXXFLAGS=${CXXFLAGS+set}
2080 ac_save_CXXFLAGS=$CXXFLAGS
2081 CXXFLAGS="-g"
2082 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
2083 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
2084 if test "${ac_cv_prog_cxx_g+set}" = set; then
2085   echo $ECHO_N "(cached) $ECHO_C" >&6
2086 else
2087   cat >conftest.$ac_ext <<_ACEOF
2088 #line $LINENO "configure"
2089 /* confdefs.h.  */
2090 _ACEOF
2091 cat confdefs.h >>conftest.$ac_ext
2092 cat >>conftest.$ac_ext <<_ACEOF
2093 /* end confdefs.h.  */
2094
2095 int
2096 main ()
2097 {
2098
2099   ;
2100   return 0;
2101 }
2102 _ACEOF
2103 rm -f conftest.$ac_objext
2104 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2105   (eval $ac_compile) 2>&5
2106   ac_status=$?
2107   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2108   (exit $ac_status); } &&
2109          { ac_try='test -s conftest.$ac_objext'
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   ac_cv_prog_cxx_g=yes
2116 else
2117   echo "$as_me: failed program was:" >&5
2118 sed 's/^/| /' conftest.$ac_ext >&5
2119
2120 ac_cv_prog_cxx_g=no
2121 fi
2122 rm -f conftest.$ac_objext conftest.$ac_ext
2123 fi
2124 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
2125 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
2126 if test "$ac_test_CXXFLAGS" = set; then
2127   CXXFLAGS=$ac_save_CXXFLAGS
2128 elif test $ac_cv_prog_cxx_g = yes; then
2129   if test "$GXX" = yes; then
2130     CXXFLAGS="-g -O2"
2131   else
2132     CXXFLAGS="-g"
2133   fi
2134 else
2135   if test "$GXX" = yes; then
2136     CXXFLAGS="-O2"
2137   else
2138     CXXFLAGS=
2139   fi
2140 fi
2141 for ac_declaration in \
2142    ''\
2143    '#include <stdlib.h>' \
2144    'extern "C" void std::exit (int) throw (); using std::exit;' \
2145    'extern "C" void std::exit (int); using std::exit;' \
2146    'extern "C" void exit (int) throw ();' \
2147    'extern "C" void exit (int);' \
2148    'void exit (int);'
2149 do
2150   cat >conftest.$ac_ext <<_ACEOF
2151 #line $LINENO "configure"
2152 /* confdefs.h.  */
2153 _ACEOF
2154 cat confdefs.h >>conftest.$ac_ext
2155 cat >>conftest.$ac_ext <<_ACEOF
2156 /* end confdefs.h.  */
2157 #include <stdlib.h>
2158 $ac_declaration
2159 int
2160 main ()
2161 {
2162 exit (42);
2163   ;
2164   return 0;
2165 }
2166 _ACEOF
2167 rm -f conftest.$ac_objext
2168 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2169   (eval $ac_compile) 2>&5
2170   ac_status=$?
2171   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2172   (exit $ac_status); } &&
2173          { ac_try='test -s conftest.$ac_objext'
2174   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2175   (eval $ac_try) 2>&5
2176   ac_status=$?
2177   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2178   (exit $ac_status); }; }; then
2179   :
2180 else
2181   echo "$as_me: failed program was:" >&5
2182 sed 's/^/| /' conftest.$ac_ext >&5
2183
2184 continue
2185 fi
2186 rm -f conftest.$ac_objext conftest.$ac_ext
2187   cat >conftest.$ac_ext <<_ACEOF
2188 #line $LINENO "configure"
2189 /* confdefs.h.  */
2190 _ACEOF
2191 cat confdefs.h >>conftest.$ac_ext
2192 cat >>conftest.$ac_ext <<_ACEOF
2193 /* end confdefs.h.  */
2194 $ac_declaration
2195 int
2196 main ()
2197 {
2198 exit (42);
2199   ;
2200   return 0;
2201 }
2202 _ACEOF
2203 rm -f conftest.$ac_objext
2204 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2205   (eval $ac_compile) 2>&5
2206   ac_status=$?
2207   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2208   (exit $ac_status); } &&
2209          { ac_try='test -s conftest.$ac_objext'
2210   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2211   (eval $ac_try) 2>&5
2212   ac_status=$?
2213   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2214   (exit $ac_status); }; }; then
2215   break
2216 else
2217   echo "$as_me: failed program was:" >&5
2218 sed 's/^/| /' conftest.$ac_ext >&5
2219
2220 fi
2221 rm -f conftest.$ac_objext conftest.$ac_ext
2222 done
2223 rm -f conftest*
2224 if test -n "$ac_declaration"; then
2225   echo '#ifdef __cplusplus' >>confdefs.h
2226   echo $ac_declaration      >>confdefs.h
2227   echo '#endif'             >>confdefs.h
2228 fi
2229
2230 ac_ext=c
2231 ac_cpp='$CPP $CPPFLAGS'
2232 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2233 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2234 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2235
2236 ac_ext=c
2237 ac_cpp='$CPP $CPPFLAGS'
2238 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2239 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2240 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2241 if test -n "$ac_tool_prefix"; then
2242   for ac_prog in gcc
2243   do
2244     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2245 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2246 echo "$as_me:$LINENO: checking for $ac_word" >&5
2247 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2248 if test "${ac_cv_prog_CC+set}" = set; then
2249   echo $ECHO_N "(cached) $ECHO_C" >&6
2250 else
2251   if test -n "$CC"; then
2252   ac_cv_prog_CC="$CC" # Let the user override the test.
2253 else
2254 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2255 for as_dir in $PATH
2256 do
2257   IFS=$as_save_IFS
2258   test -z "$as_dir" && as_dir=.
2259   for ac_exec_ext in '' $ac_executable_extensions; do
2260   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2261     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2262     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2263     break 2
2264   fi
2265 done
2266 done
2267
2268 fi
2269 fi
2270 CC=$ac_cv_prog_CC
2271 if test -n "$CC"; then
2272   echo "$as_me:$LINENO: result: $CC" >&5
2273 echo "${ECHO_T}$CC" >&6
2274 else
2275   echo "$as_me:$LINENO: result: no" >&5
2276 echo "${ECHO_T}no" >&6
2277 fi
2278
2279     test -n "$CC" && break
2280   done
2281 fi
2282 if test -z "$CC"; then
2283   ac_ct_CC=$CC
2284   for ac_prog in gcc
2285 do
2286   # Extract the first word of "$ac_prog", so it can be a program name with args.
2287 set dummy $ac_prog; ac_word=$2
2288 echo "$as_me:$LINENO: checking for $ac_word" >&5
2289 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2290 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2291   echo $ECHO_N "(cached) $ECHO_C" >&6
2292 else
2293   if test -n "$ac_ct_CC"; then
2294   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2295 else
2296 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2297 for as_dir in $PATH
2298 do
2299   IFS=$as_save_IFS
2300   test -z "$as_dir" && as_dir=.
2301   for ac_exec_ext in '' $ac_executable_extensions; do
2302   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2303     ac_cv_prog_ac_ct_CC="$ac_prog"
2304     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2305     break 2
2306   fi
2307 done
2308 done
2309
2310 fi
2311 fi
2312 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2313 if test -n "$ac_ct_CC"; then
2314   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2315 echo "${ECHO_T}$ac_ct_CC" >&6
2316 else
2317   echo "$as_me:$LINENO: result: no" >&5
2318 echo "${ECHO_T}no" >&6
2319 fi
2320
2321   test -n "$ac_ct_CC" && break
2322 done
2323
2324   CC=$ac_ct_CC
2325 fi
2326
2327
2328 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2329 See \`config.log' for more details." >&5
2330 echo "$as_me: error: no acceptable C compiler found in \$PATH
2331 See \`config.log' for more details." >&2;}
2332    { (exit 1); exit 1; }; }
2333
2334 # Provide some information about the compiler.
2335 echo "$as_me:$LINENO:" \
2336      "checking for C compiler version" >&5
2337 ac_compiler=`set X $ac_compile; echo $2`
2338 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2339   (eval $ac_compiler --version </dev/null >&5) 2>&5
2340   ac_status=$?
2341   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2342   (exit $ac_status); }
2343 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2344   (eval $ac_compiler -v </dev/null >&5) 2>&5
2345   ac_status=$?
2346   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2347   (exit $ac_status); }
2348 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2349   (eval $ac_compiler -V </dev/null >&5) 2>&5
2350   ac_status=$?
2351   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2352   (exit $ac_status); }
2353
2354 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2355 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2356 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2357   echo $ECHO_N "(cached) $ECHO_C" >&6
2358 else
2359   cat >conftest.$ac_ext <<_ACEOF
2360 #line $LINENO "configure"
2361 /* confdefs.h.  */
2362 _ACEOF
2363 cat confdefs.h >>conftest.$ac_ext
2364 cat >>conftest.$ac_ext <<_ACEOF
2365 /* end confdefs.h.  */
2366
2367 int
2368 main ()
2369 {
2370 #ifndef __GNUC__
2371        choke me
2372 #endif
2373
2374   ;
2375   return 0;
2376 }
2377 _ACEOF
2378 rm -f conftest.$ac_objext
2379 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2380   (eval $ac_compile) 2>&5
2381   ac_status=$?
2382   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2383   (exit $ac_status); } &&
2384          { ac_try='test -s conftest.$ac_objext'
2385   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2386   (eval $ac_try) 2>&5
2387   ac_status=$?
2388   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2389   (exit $ac_status); }; }; then
2390   ac_compiler_gnu=yes
2391 else
2392   echo "$as_me: failed program was:" >&5
2393 sed 's/^/| /' conftest.$ac_ext >&5
2394
2395 ac_compiler_gnu=no
2396 fi
2397 rm -f conftest.$ac_objext conftest.$ac_ext
2398 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2399
2400 fi
2401 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2402 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2403 GCC=`test $ac_compiler_gnu = yes && echo yes`
2404 ac_test_CFLAGS=${CFLAGS+set}
2405 ac_save_CFLAGS=$CFLAGS
2406 CFLAGS="-g"
2407 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2408 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2409 if test "${ac_cv_prog_cc_g+set}" = set; then
2410   echo $ECHO_N "(cached) $ECHO_C" >&6
2411 else
2412   cat >conftest.$ac_ext <<_ACEOF
2413 #line $LINENO "configure"
2414 /* confdefs.h.  */
2415 _ACEOF
2416 cat confdefs.h >>conftest.$ac_ext
2417 cat >>conftest.$ac_ext <<_ACEOF
2418 /* end confdefs.h.  */
2419
2420 int
2421 main ()
2422 {
2423
2424   ;
2425   return 0;
2426 }
2427 _ACEOF
2428 rm -f conftest.$ac_objext
2429 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2430   (eval $ac_compile) 2>&5
2431   ac_status=$?
2432   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2433   (exit $ac_status); } &&
2434          { ac_try='test -s conftest.$ac_objext'
2435   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2436   (eval $ac_try) 2>&5
2437   ac_status=$?
2438   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2439   (exit $ac_status); }; }; then
2440   ac_cv_prog_cc_g=yes
2441 else
2442   echo "$as_me: failed program was:" >&5
2443 sed 's/^/| /' conftest.$ac_ext >&5
2444
2445 ac_cv_prog_cc_g=no
2446 fi
2447 rm -f conftest.$ac_objext conftest.$ac_ext
2448 fi
2449 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2450 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2451 if test "$ac_test_CFLAGS" = set; then
2452   CFLAGS=$ac_save_CFLAGS
2453 elif test $ac_cv_prog_cc_g = yes; then
2454   if test "$GCC" = yes; then
2455     CFLAGS="-g -O2"
2456   else
2457     CFLAGS="-g"
2458   fi
2459 else
2460   if test "$GCC" = yes; then
2461     CFLAGS="-O2"
2462   else
2463     CFLAGS=
2464   fi
2465 fi
2466 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2467 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2468 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2469   echo $ECHO_N "(cached) $ECHO_C" >&6
2470 else
2471   ac_cv_prog_cc_stdc=no
2472 ac_save_CC=$CC
2473 cat >conftest.$ac_ext <<_ACEOF
2474 #line $LINENO "configure"
2475 /* confdefs.h.  */
2476 _ACEOF
2477 cat confdefs.h >>conftest.$ac_ext
2478 cat >>conftest.$ac_ext <<_ACEOF
2479 /* end confdefs.h.  */
2480 #include <stdarg.h>
2481 #include <stdio.h>
2482 #include <sys/types.h>
2483 #include <sys/stat.h>
2484 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2485 struct buf { int x; };
2486 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2487 static char *e (p, i)
2488      char **p;
2489      int i;
2490 {
2491   return p[i];
2492 }
2493 static char *f (char * (*g) (char **, int), char **p, ...)
2494 {
2495   char *s;
2496   va_list v;
2497   va_start (v,p);
2498   s = g (p, va_arg (v,int));
2499   va_end (v);
2500   return s;
2501 }
2502 int test (int i, double x);
2503 struct s1 {int (*f) (int a);};
2504 struct s2 {int (*f) (double a);};
2505 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2506 int argc;
2507 char **argv;
2508 int
2509 main ()
2510 {
2511 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2512   ;
2513   return 0;
2514 }
2515 _ACEOF
2516 # Don't try gcc -ansi; that turns off useful extensions and
2517 # breaks some systems' header files.
2518 # AIX                   -qlanglvl=ansi
2519 # Ultrix and OSF/1      -std1
2520 # HP-UX 10.20 and later -Ae
2521 # HP-UX older versions  -Aa -D_HPUX_SOURCE
2522 # SVR4                  -Xc -D__EXTENSIONS__
2523 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2524 do
2525   CC="$ac_save_CC $ac_arg"
2526   rm -f conftest.$ac_objext
2527 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2528   (eval $ac_compile) 2>&5
2529   ac_status=$?
2530   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2531   (exit $ac_status); } &&
2532          { ac_try='test -s conftest.$ac_objext'
2533   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2534   (eval $ac_try) 2>&5
2535   ac_status=$?
2536   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2537   (exit $ac_status); }; }; then
2538   ac_cv_prog_cc_stdc=$ac_arg
2539 break
2540 else
2541   echo "$as_me: failed program was:" >&5
2542 sed 's/^/| /' conftest.$ac_ext >&5
2543
2544 fi
2545 rm -f conftest.$ac_objext
2546 done
2547 rm -f conftest.$ac_ext conftest.$ac_objext
2548 CC=$ac_save_CC
2549
2550 fi
2551
2552 case "x$ac_cv_prog_cc_stdc" in
2553   x|xno)
2554     echo "$as_me:$LINENO: result: none needed" >&5
2555 echo "${ECHO_T}none needed" >&6 ;;
2556   *)
2557     echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2558 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2559     CC="$CC $ac_cv_prog_cc_stdc" ;;
2560 esac
2561
2562 # Some people use a C++ compiler to compile C.  Since we use `exit',
2563 # in C++ we need to declare it.  In case someone uses the same compiler
2564 # for both compiling C and C++ we need to have the C++ compiler decide
2565 # the declaration of exit, since it's the most demanding environment.
2566 cat >conftest.$ac_ext <<_ACEOF
2567 #ifndef __cplusplus
2568   choke me
2569 #endif
2570 _ACEOF
2571 rm -f conftest.$ac_objext
2572 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2573   (eval $ac_compile) 2>&5
2574   ac_status=$?
2575   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2576   (exit $ac_status); } &&
2577          { ac_try='test -s conftest.$ac_objext'
2578   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2579   (eval $ac_try) 2>&5
2580   ac_status=$?
2581   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2582   (exit $ac_status); }; }; then
2583   for ac_declaration in \
2584    ''\
2585    '#include <stdlib.h>' \
2586    'extern "C" void std::exit (int) throw (); using std::exit;' \
2587    'extern "C" void std::exit (int); using std::exit;' \
2588    'extern "C" void exit (int) throw ();' \
2589    'extern "C" void exit (int);' \
2590    'void exit (int);'
2591 do
2592   cat >conftest.$ac_ext <<_ACEOF
2593 #line $LINENO "configure"
2594 /* confdefs.h.  */
2595 _ACEOF
2596 cat confdefs.h >>conftest.$ac_ext
2597 cat >>conftest.$ac_ext <<_ACEOF
2598 /* end confdefs.h.  */
2599 #include <stdlib.h>
2600 $ac_declaration
2601 int
2602 main ()
2603 {
2604 exit (42);
2605   ;
2606   return 0;
2607 }
2608 _ACEOF
2609 rm -f conftest.$ac_objext
2610 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2611   (eval $ac_compile) 2>&5
2612   ac_status=$?
2613   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2614   (exit $ac_status); } &&
2615          { ac_try='test -s conftest.$ac_objext'
2616   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2617   (eval $ac_try) 2>&5
2618   ac_status=$?
2619   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2620   (exit $ac_status); }; }; then
2621   :
2622 else
2623   echo "$as_me: failed program was:" >&5
2624 sed 's/^/| /' conftest.$ac_ext >&5
2625
2626 continue
2627 fi
2628 rm -f conftest.$ac_objext conftest.$ac_ext
2629   cat >conftest.$ac_ext <<_ACEOF
2630 #line $LINENO "configure"
2631 /* confdefs.h.  */
2632 _ACEOF
2633 cat confdefs.h >>conftest.$ac_ext
2634 cat >>conftest.$ac_ext <<_ACEOF
2635 /* end confdefs.h.  */
2636 $ac_declaration
2637 int
2638 main ()
2639 {
2640 exit (42);
2641   ;
2642   return 0;
2643 }
2644 _ACEOF
2645 rm -f conftest.$ac_objext
2646 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2647   (eval $ac_compile) 2>&5
2648   ac_status=$?
2649   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2650   (exit $ac_status); } &&
2651          { ac_try='test -s conftest.$ac_objext'
2652   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2653   (eval $ac_try) 2>&5
2654   ac_status=$?
2655   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2656   (exit $ac_status); }; }; then
2657   break
2658 else
2659   echo "$as_me: failed program was:" >&5
2660 sed 's/^/| /' conftest.$ac_ext >&5
2661
2662 fi
2663 rm -f conftest.$ac_objext conftest.$ac_ext
2664 done
2665 rm -f conftest*
2666 if test -n "$ac_declaration"; then
2667   echo '#ifdef __cplusplus' >>confdefs.h
2668   echo $ac_declaration      >>confdefs.h
2669   echo '#endif'             >>confdefs.h
2670 fi
2671
2672 else
2673   echo "$as_me: failed program was:" >&5
2674 sed 's/^/| /' conftest.$ac_ext >&5
2675
2676 fi
2677 rm -f conftest.$ac_objext conftest.$ac_ext
2678 ac_ext=c
2679 ac_cpp='$CPP $CPPFLAGS'
2680 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2681 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2682 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2683
2684 ac_ext=c
2685 ac_cpp='$CPP $CPPFLAGS'
2686 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2687 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2688 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2689 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2690 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2691 # On Suns, sometimes $CPP names a directory.
2692 if test -n "$CPP" && test -d "$CPP"; then
2693   CPP=
2694 fi
2695 if test -z "$CPP"; then
2696   if test "${ac_cv_prog_CPP+set}" = set; then
2697   echo $ECHO_N "(cached) $ECHO_C" >&6
2698 else
2699       # Double quotes because CPP needs to be expanded
2700     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2701     do
2702       ac_preproc_ok=false
2703 for ac_c_preproc_warn_flag in '' yes
2704 do
2705   # Use a header file that comes with gcc, so configuring glibc
2706   # with a fresh cross-compiler works.
2707   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2708   # <limits.h> exists even on freestanding compilers.
2709   # On the NeXT, cc -E runs the code through the compiler's parser,
2710   # not just through cpp. "Syntax error" is here to catch this case.
2711   cat >conftest.$ac_ext <<_ACEOF
2712 #line $LINENO "configure"
2713 /* confdefs.h.  */
2714 _ACEOF
2715 cat confdefs.h >>conftest.$ac_ext
2716 cat >>conftest.$ac_ext <<_ACEOF
2717 /* end confdefs.h.  */
2718 #ifdef __STDC__
2719 # include <limits.h>
2720 #else
2721 # include <assert.h>
2722 #endif
2723                      Syntax error
2724 _ACEOF
2725 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2726   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2727   ac_status=$?
2728   grep -v '^ *+' conftest.er1 >conftest.err
2729   rm -f conftest.er1
2730   cat conftest.err >&5
2731   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2732   (exit $ac_status); } >/dev/null; then
2733   if test -s conftest.err; then
2734     ac_cpp_err=$ac_c_preproc_warn_flag
2735   else
2736     ac_cpp_err=
2737   fi
2738 else
2739   ac_cpp_err=yes
2740 fi
2741 if test -z "$ac_cpp_err"; then
2742   :
2743 else
2744   echo "$as_me: failed program was:" >&5
2745 sed 's/^/| /' conftest.$ac_ext >&5
2746
2747   # Broken: fails on valid input.
2748 continue
2749 fi
2750 rm -f conftest.err conftest.$ac_ext
2751
2752   # OK, works on sane cases.  Now check whether non-existent headers
2753   # can be detected and how.
2754   cat >conftest.$ac_ext <<_ACEOF
2755 #line $LINENO "configure"
2756 /* confdefs.h.  */
2757 _ACEOF
2758 cat confdefs.h >>conftest.$ac_ext
2759 cat >>conftest.$ac_ext <<_ACEOF
2760 /* end confdefs.h.  */
2761 #include <ac_nonexistent.h>
2762 _ACEOF
2763 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2764   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2765   ac_status=$?
2766   grep -v '^ *+' conftest.er1 >conftest.err
2767   rm -f conftest.er1
2768   cat conftest.err >&5
2769   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2770   (exit $ac_status); } >/dev/null; then
2771   if test -s conftest.err; then
2772     ac_cpp_err=$ac_c_preproc_warn_flag
2773   else
2774     ac_cpp_err=
2775   fi
2776 else
2777   ac_cpp_err=yes
2778 fi
2779 if test -z "$ac_cpp_err"; then
2780   # Broken: success on invalid input.
2781 continue
2782 else
2783   echo "$as_me: failed program was:" >&5
2784 sed 's/^/| /' conftest.$ac_ext >&5
2785
2786   # Passes both tests.
2787 ac_preproc_ok=:
2788 break
2789 fi
2790 rm -f conftest.err conftest.$ac_ext
2791
2792 done
2793 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2794 rm -f conftest.err conftest.$ac_ext
2795 if $ac_preproc_ok; then
2796   break
2797 fi
2798
2799     done
2800     ac_cv_prog_CPP=$CPP
2801
2802 fi
2803   CPP=$ac_cv_prog_CPP
2804 else
2805   ac_cv_prog_CPP=$CPP
2806 fi
2807 echo "$as_me:$LINENO: result: $CPP" >&5
2808 echo "${ECHO_T}$CPP" >&6
2809 ac_preproc_ok=false
2810 for ac_c_preproc_warn_flag in '' yes
2811 do
2812   # Use a header file that comes with gcc, so configuring glibc
2813   # with a fresh cross-compiler works.
2814   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2815   # <limits.h> exists even on freestanding compilers.
2816   # On the NeXT, cc -E runs the code through the compiler's parser,
2817   # not just through cpp. "Syntax error" is here to catch this case.
2818   cat >conftest.$ac_ext <<_ACEOF
2819 #line $LINENO "configure"
2820 /* confdefs.h.  */
2821 _ACEOF
2822 cat confdefs.h >>conftest.$ac_ext
2823 cat >>conftest.$ac_ext <<_ACEOF
2824 /* end confdefs.h.  */
2825 #ifdef __STDC__
2826 # include <limits.h>
2827 #else
2828 # include <assert.h>
2829 #endif
2830                      Syntax error
2831 _ACEOF
2832 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2833   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2834   ac_status=$?
2835   grep -v '^ *+' conftest.er1 >conftest.err
2836   rm -f conftest.er1
2837   cat conftest.err >&5
2838   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2839   (exit $ac_status); } >/dev/null; then
2840   if test -s conftest.err; then
2841     ac_cpp_err=$ac_c_preproc_warn_flag
2842   else
2843     ac_cpp_err=
2844   fi
2845 else
2846   ac_cpp_err=yes
2847 fi
2848 if test -z "$ac_cpp_err"; then
2849   :
2850 else
2851   echo "$as_me: failed program was:" >&5
2852 sed 's/^/| /' conftest.$ac_ext >&5
2853
2854   # Broken: fails on valid input.
2855 continue
2856 fi
2857 rm -f conftest.err conftest.$ac_ext
2858
2859   # OK, works on sane cases.  Now check whether non-existent headers
2860   # can be detected and how.
2861   cat >conftest.$ac_ext <<_ACEOF
2862 #line $LINENO "configure"
2863 /* confdefs.h.  */
2864 _ACEOF
2865 cat confdefs.h >>conftest.$ac_ext
2866 cat >>conftest.$ac_ext <<_ACEOF
2867 /* end confdefs.h.  */
2868 #include <ac_nonexistent.h>
2869 _ACEOF
2870 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2871   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2872   ac_status=$?
2873   grep -v '^ *+' conftest.er1 >conftest.err
2874   rm -f conftest.er1
2875   cat conftest.err >&5
2876   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2877   (exit $ac_status); } >/dev/null; then
2878   if test -s conftest.err; then
2879     ac_cpp_err=$ac_c_preproc_warn_flag
2880   else
2881     ac_cpp_err=
2882   fi
2883 else
2884   ac_cpp_err=yes
2885 fi
2886 if test -z "$ac_cpp_err"; then
2887   # Broken: success on invalid input.
2888 continue
2889 else
2890   echo "$as_me: failed program was:" >&5
2891 sed 's/^/| /' conftest.$ac_ext >&5
2892
2893   # Passes both tests.
2894 ac_preproc_ok=:
2895 break
2896 fi
2897 rm -f conftest.err conftest.$ac_ext
2898
2899 done
2900 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2901 rm -f conftest.err conftest.$ac_ext
2902 if $ac_preproc_ok; then
2903   :
2904 else
2905   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
2906 See \`config.log' for more details." >&5
2907 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
2908 See \`config.log' for more details." >&2;}
2909    { (exit 1); exit 1; }; }
2910 fi
2911
2912 ac_ext=c
2913 ac_cpp='$CPP $CPPFLAGS'
2914 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2915 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2916 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2917
2918
2919 if test "$GCC" != "yes"
2920 then
2921         { { echo "$as_me:$LINENO: error: gcc required but not found" >&5
2922 echo "$as_me: error: gcc required but not found" >&2;}
2923    { (exit 1); exit 1; }; }
2924 fi
2925
2926 if test "$GXX" != "yes"
2927 then
2928         { { echo "$as_me:$LINENO: error: g++ required but not found" >&5
2929 echo "$as_me: error: g++ required but not found" >&2;}
2930    { (exit 1); exit 1; }; }
2931 fi
2932
2933 gccmajor=`$CC --version | head -n 1 | awk '{print $NF;}' | cut -d. -f1`
2934 if test "$gccmajor" -lt "3"
2935 then
2936         { { echo "$as_me:$LINENO: error: gcc 3.x required" >&5
2937 echo "$as_me: error: gcc 3.x required" >&2;}
2938    { (exit 1); exit 1; }; }
2939 fi
2940
2941  echo "$as_me:$LINENO: checking for GNU make" >&5
2942 echo $ECHO_N "checking for GNU make... $ECHO_C" >&6
2943 if test "${_cv_gnu_make_command+set}" = set; then
2944   echo $ECHO_N "(cached) $ECHO_C" >&6
2945 else
2946   _cv_gnu_make_command='' ;
2947                 for a in "$MAKE" make gmake gnumake ; do
2948                         if test -z "$a" ; then continue ; fi ;
2949                         if  ( sh -c "$a --version" 2> /dev/null | grep GNU  2>&1 > /dev/null ) ;  then
2950                                 _cv_gnu_make_command=$a ;
2951                                 break;
2952                         fi
2953                 done ;
2954
2955 fi
2956 echo "$as_me:$LINENO: result: $_cv_gnu_make_command" >&5
2957 echo "${ECHO_T}$_cv_gnu_make_command" >&6 ;
2958         if test  "x$_cv_gnu_make_command" != "x"  ; then
2959                 ifGNUmake='' ;
2960         else
2961                 ifGNUmake='#' ;
2962                 echo "$as_me:$LINENO: result: \"Not found\"" >&5
2963 echo "${ECHO_T}\"Not found\"" >&6;
2964         fi
2965
2966
2967 if test -z "$_cv_gnu_make_command"
2968 then
2969         { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5
2970 echo "$as_me: error: GNU Make required but not found" >&2;}
2971    { (exit 1); exit 1; }; }
2972 fi
2973
2974
2975 echo "$as_me:$LINENO: checking " >&5
2976 echo $ECHO_N "checking ... $ECHO_C" >&6
2977 if test "${ac_cv_has_flex+set}" = set; then
2978   echo $ECHO_N "(cached) $ECHO_C" >&6
2979 else
2980   for ac_prog in flex lex
2981 do
2982   # Extract the first word of "$ac_prog", so it can be a program name with args.
2983 set dummy $ac_prog; ac_word=$2
2984 echo "$as_me:$LINENO: checking for $ac_word" >&5
2985 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2986 if test "${ac_cv_prog_LEX+set}" = set; then
2987   echo $ECHO_N "(cached) $ECHO_C" >&6
2988 else
2989   if test -n "$LEX"; then
2990   ac_cv_prog_LEX="$LEX" # Let the user override the test.
2991 else
2992 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2993 for as_dir in $PATH
2994 do
2995   IFS=$as_save_IFS
2996   test -z "$as_dir" && as_dir=.
2997   for ac_exec_ext in '' $ac_executable_extensions; do
2998   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2999     ac_cv_prog_LEX="$ac_prog"
3000     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3001     break 2
3002   fi
3003 done
3004 done
3005
3006 fi
3007 fi
3008 LEX=$ac_cv_prog_LEX
3009 if test -n "$LEX"; then
3010   echo "$as_me:$LINENO: result: $LEX" >&5
3011 echo "${ECHO_T}$LEX" >&6
3012 else
3013   echo "$as_me:$LINENO: result: no" >&5
3014 echo "${ECHO_T}no" >&6
3015 fi
3016
3017   test -n "$LEX" && break
3018 done
3019 test -n "$LEX" || LEX=":"
3020
3021 if test -z "$LEXLIB"
3022 then
3023   echo "$as_me:$LINENO: checking for yywrap in -lfl" >&5
3024 echo $ECHO_N "checking for yywrap in -lfl... $ECHO_C" >&6
3025 if test "${ac_cv_lib_fl_yywrap+set}" = set; then
3026   echo $ECHO_N "(cached) $ECHO_C" >&6
3027 else
3028   ac_check_lib_save_LIBS=$LIBS
3029 LIBS="-lfl  $LIBS"
3030 cat >conftest.$ac_ext <<_ACEOF
3031 #line $LINENO "configure"
3032 /* confdefs.h.  */
3033 _ACEOF
3034 cat confdefs.h >>conftest.$ac_ext
3035 cat >>conftest.$ac_ext <<_ACEOF
3036 /* end confdefs.h.  */
3037
3038 /* Override any gcc2 internal prototype to avoid an error.  */
3039 #ifdef __cplusplus
3040 extern "C"
3041 #endif
3042 /* We use char because int might match the return type of a gcc2
3043    builtin and then its argument prototype would still apply.  */
3044 char yywrap ();
3045 int
3046 main ()
3047 {
3048 yywrap ();
3049   ;
3050   return 0;
3051 }
3052 _ACEOF
3053 rm -f conftest.$ac_objext conftest$ac_exeext
3054 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3055   (eval $ac_link) 2>&5
3056   ac_status=$?
3057   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3058   (exit $ac_status); } &&
3059          { ac_try='test -s conftest$ac_exeext'
3060   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3061   (eval $ac_try) 2>&5
3062   ac_status=$?
3063   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3064   (exit $ac_status); }; }; then
3065   ac_cv_lib_fl_yywrap=yes
3066 else
3067   echo "$as_me: failed program was:" >&5
3068 sed 's/^/| /' conftest.$ac_ext >&5
3069
3070 ac_cv_lib_fl_yywrap=no
3071 fi
3072 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3073 LIBS=$ac_check_lib_save_LIBS
3074 fi
3075 echo "$as_me:$LINENO: result: $ac_cv_lib_fl_yywrap" >&5
3076 echo "${ECHO_T}$ac_cv_lib_fl_yywrap" >&6
3077 if test $ac_cv_lib_fl_yywrap = yes; then
3078   LEXLIB="-lfl"
3079 else
3080   echo "$as_me:$LINENO: checking for yywrap in -ll" >&5
3081 echo $ECHO_N "checking for yywrap in -ll... $ECHO_C" >&6
3082 if test "${ac_cv_lib_l_yywrap+set}" = set; then
3083   echo $ECHO_N "(cached) $ECHO_C" >&6
3084 else
3085   ac_check_lib_save_LIBS=$LIBS
3086 LIBS="-ll  $LIBS"
3087 cat >conftest.$ac_ext <<_ACEOF
3088 #line $LINENO "configure"
3089 /* confdefs.h.  */
3090 _ACEOF
3091 cat confdefs.h >>conftest.$ac_ext
3092 cat >>conftest.$ac_ext <<_ACEOF
3093 /* end confdefs.h.  */
3094
3095 /* Override any gcc2 internal prototype to avoid an error.  */
3096 #ifdef __cplusplus
3097 extern "C"
3098 #endif
3099 /* We use char because int might match the return type of a gcc2
3100    builtin and then its argument prototype would still apply.  */
3101 char yywrap ();
3102 int
3103 main ()
3104 {
3105 yywrap ();
3106   ;
3107   return 0;
3108 }
3109 _ACEOF
3110 rm -f conftest.$ac_objext conftest$ac_exeext
3111 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3112   (eval $ac_link) 2>&5
3113   ac_status=$?
3114   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3115   (exit $ac_status); } &&
3116          { ac_try='test -s conftest$ac_exeext'
3117   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3118   (eval $ac_try) 2>&5
3119   ac_status=$?
3120   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3121   (exit $ac_status); }; }; then
3122   ac_cv_lib_l_yywrap=yes
3123 else
3124   echo "$as_me: failed program was:" >&5
3125 sed 's/^/| /' conftest.$ac_ext >&5
3126
3127 ac_cv_lib_l_yywrap=no
3128 fi
3129 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3130 LIBS=$ac_check_lib_save_LIBS
3131 fi
3132 echo "$as_me:$LINENO: result: $ac_cv_lib_l_yywrap" >&5
3133 echo "${ECHO_T}$ac_cv_lib_l_yywrap" >&6
3134 if test $ac_cv_lib_l_yywrap = yes; then
3135   LEXLIB="-ll"
3136 fi
3137
3138 fi
3139
3140 fi
3141
3142 if test "x$LEX" != "x:"; then
3143   echo "$as_me:$LINENO: checking lex output file root" >&5
3144 echo $ECHO_N "checking lex output file root... $ECHO_C" >&6
3145 if test "${ac_cv_prog_lex_root+set}" = set; then
3146   echo $ECHO_N "(cached) $ECHO_C" >&6
3147 else
3148   # The minimal lex program is just a single line: %%.  But some broken lexes
3149 # (Solaris, I think it was) want two %% lines, so accommodate them.
3150 cat >conftest.l <<_ACEOF
3151 %%
3152 %%
3153 _ACEOF
3154 { (eval echo "$as_me:$LINENO: \"$LEX conftest.l\"") >&5
3155   (eval $LEX conftest.l) 2>&5
3156   ac_status=$?
3157   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3158   (exit $ac_status); }
3159 if test -f lex.yy.c; then
3160   ac_cv_prog_lex_root=lex.yy
3161 elif test -f lexyy.c; then
3162   ac_cv_prog_lex_root=lexyy
3163 else
3164   { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5
3165 echo "$as_me: error: cannot find output from $LEX; giving up" >&2;}
3166    { (exit 1); exit 1; }; }
3167 fi
3168 fi
3169 echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5
3170 echo "${ECHO_T}$ac_cv_prog_lex_root" >&6
3171 rm -f conftest.l
3172 LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
3173
3174 echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5
3175 echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6
3176 if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then
3177   echo $ECHO_N "(cached) $ECHO_C" >&6
3178 else
3179   # POSIX says lex can declare yytext either as a pointer or an array; the
3180 # default is implementation-dependent. Figure out which it is, since
3181 # not all implementations provide the %pointer and %array declarations.
3182 ac_cv_prog_lex_yytext_pointer=no
3183 echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c
3184 ac_save_LIBS=$LIBS
3185 LIBS="$LIBS $LEXLIB"
3186 cat >conftest.$ac_ext <<_ACEOF
3187 `cat $LEX_OUTPUT_ROOT.c`
3188 _ACEOF
3189 rm -f conftest.$ac_objext conftest$ac_exeext
3190 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3191   (eval $ac_link) 2>&5
3192   ac_status=$?
3193   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3194   (exit $ac_status); } &&
3195          { ac_try='test -s conftest$ac_exeext'
3196   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3197   (eval $ac_try) 2>&5
3198   ac_status=$?
3199   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3200   (exit $ac_status); }; }; then
3201   ac_cv_prog_lex_yytext_pointer=yes
3202 else
3203   echo "$as_me: failed program was:" >&5
3204 sed 's/^/| /' conftest.$ac_ext >&5
3205
3206 fi
3207 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3208 LIBS=$ac_save_LIBS
3209 rm -f "${LEX_OUTPUT_ROOT}.c"
3210
3211 fi
3212 echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5
3213 echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6
3214 if test $ac_cv_prog_lex_yytext_pointer = yes; then
3215
3216 cat >>confdefs.h <<\_ACEOF
3217 #define YYTEXT_POINTER 1
3218 _ACEOF
3219
3220 fi
3221
3222 fi
3223
3224 fi
3225 echo "$as_me:$LINENO: result: $ac_cv_has_flex" >&5
3226 echo "${ECHO_T}$ac_cv_has_flex" >&6
3227 if test "$LEX" != "flex"; then
3228   { { echo "$as_me:$LINENO: error: flex not found but required" >&5
3229 echo "$as_me: error: flex not found but required" >&2;}
3230    { (exit 1); exit 1; }; }
3231 fi
3232
3233 echo "$as_me:$LINENO: checking " >&5
3234 echo $ECHO_N "checking ... $ECHO_C" >&6
3235 if test "${ac_cv_has_bison+set}" = set; then
3236   echo $ECHO_N "(cached) $ECHO_C" >&6
3237 else
3238   for ac_prog in 'bison -y' byacc
3239 do
3240   # Extract the first word of "$ac_prog", so it can be a program name with args.
3241 set dummy $ac_prog; ac_word=$2
3242 echo "$as_me:$LINENO: checking for $ac_word" >&5
3243 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3244 if test "${ac_cv_prog_YACC+set}" = set; then
3245   echo $ECHO_N "(cached) $ECHO_C" >&6
3246 else
3247   if test -n "$YACC"; then
3248   ac_cv_prog_YACC="$YACC" # Let the user override the test.
3249 else
3250 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3251 for as_dir in $PATH
3252 do
3253   IFS=$as_save_IFS
3254   test -z "$as_dir" && as_dir=.
3255   for ac_exec_ext in '' $ac_executable_extensions; do
3256   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3257     ac_cv_prog_YACC="$ac_prog"
3258     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3259     break 2
3260   fi
3261 done
3262 done
3263
3264 fi
3265 fi
3266 YACC=$ac_cv_prog_YACC
3267 if test -n "$YACC"; then
3268   echo "$as_me:$LINENO: result: $YACC" >&5
3269 echo "${ECHO_T}$YACC" >&6
3270 else
3271   echo "$as_me:$LINENO: result: no" >&5
3272 echo "${ECHO_T}no" >&6
3273 fi
3274
3275   test -n "$YACC" && break
3276 done
3277 test -n "$YACC" || YACC="yacc"
3278
3279
3280 fi
3281 echo "$as_me:$LINENO: result: $ac_cv_has_bison" >&5
3282 echo "${ECHO_T}$ac_cv_has_bison" >&6
3283 if test "$YACC" != "bison -y"; then
3284   { { echo "$as_me:$LINENO: error: bison not found but required" >&5
3285 echo "$as_me: error: bison not found but required" >&2;}
3286    { (exit 1); exit 1; }; }
3287 else
3288   YACC=bison
3289
3290 fi
3291
3292
3293 # Check whether --enable-shared or --disable-shared was given.
3294 if test "${enable_shared+set}" = set; then
3295   enableval="$enable_shared"
3296   p=${PACKAGE-default}
3297     case $enableval in
3298     yes) enable_shared=yes ;;
3299     no) enable_shared=no ;;
3300     *)
3301       enable_shared=no
3302       # Look at the argument we got.  We use all the common list separators.
3303       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3304       for pkg in $enableval; do
3305         IFS="$lt_save_ifs"
3306         if test "X$pkg" = "X$p"; then
3307           enable_shared=yes
3308         fi
3309       done
3310       IFS="$lt_save_ifs"
3311       ;;
3312     esac
3313 else
3314   enable_shared=yes
3315 fi;
3316
3317 # Check whether --enable-static or --disable-static was given.
3318 if test "${enable_static+set}" = set; then
3319   enableval="$enable_static"
3320   p=${PACKAGE-default}
3321     case $enableval in
3322     yes) enable_static=yes ;;
3323     no) enable_static=no ;;
3324     *)
3325      enable_static=no
3326       # Look at the argument we got.  We use all the common list separators.
3327       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3328       for pkg in $enableval; do
3329         IFS="$lt_save_ifs"
3330         if test "X$pkg" = "X$p"; then
3331           enable_static=yes
3332         fi
3333       done
3334       IFS="$lt_save_ifs"
3335       ;;
3336     esac
3337 else
3338   enable_static=yes
3339 fi;
3340
3341 # Check whether --enable-fast-install or --disable-fast-install was given.
3342 if test "${enable_fast_install+set}" = set; then
3343   enableval="$enable_fast_install"
3344   p=${PACKAGE-default}
3345     case $enableval in
3346     yes) enable_fast_install=yes ;;
3347     no) enable_fast_install=no ;;
3348     *)
3349       enable_fast_install=no
3350       # Look at the argument we got.  We use all the common list separators.
3351       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3352       for pkg in $enableval; do
3353         IFS="$lt_save_ifs"
3354         if test "X$pkg" = "X$p"; then
3355           enable_fast_install=yes
3356         fi
3357       done
3358       IFS="$lt_save_ifs"
3359       ;;
3360     esac
3361 else
3362   enable_fast_install=yes
3363 fi;
3364
3365 echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3366 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
3367 if test "${lt_cv_path_SED+set}" = set; then
3368   echo $ECHO_N "(cached) $ECHO_C" >&6
3369 else
3370   # Loop through the user's path and test for sed and gsed.
3371 # Then use that list of sed's as ones to test for truncation.
3372 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3373 for as_dir in $PATH
3374 do
3375   IFS=$as_save_IFS
3376   test -z "$as_dir" && as_dir=.
3377   for lt_ac_prog in sed gsed; do
3378     for ac_exec_ext in '' $ac_executable_extensions; do
3379       if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
3380         lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
3381       fi
3382     done
3383   done
3384 done
3385 lt_ac_max=0
3386 lt_ac_count=0
3387 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
3388 # along with /bin/sed that truncates output.
3389 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
3390   test ! -f $lt_ac_sed && break
3391   cat /dev/null > conftest.in
3392   lt_ac_count=0
3393   echo $ECHO_N "0123456789$ECHO_C" >conftest.in
3394   # Check for GNU sed and select it if it is found.
3395   if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
3396     lt_cv_path_SED=$lt_ac_sed
3397     break
3398   fi
3399   while true; do
3400     cat conftest.in conftest.in >conftest.tmp
3401     mv conftest.tmp conftest.in
3402     cp conftest.in conftest.nl
3403     echo >>conftest.nl
3404     $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
3405     cmp -s conftest.out conftest.nl || break
3406     # 10000 chars as input seems more than enough
3407     test $lt_ac_count -gt 10 && break
3408     lt_ac_count=`expr $lt_ac_count + 1`
3409     if test $lt_ac_count -gt $lt_ac_max; then
3410       lt_ac_max=$lt_ac_count
3411       lt_cv_path_SED=$lt_ac_sed
3412     fi
3413   done
3414 done
3415 SED=$lt_cv_path_SED
3416
3417 fi
3418
3419 echo "$as_me:$LINENO: result: $SED" >&5
3420 echo "${ECHO_T}$SED" >&6
3421
3422 echo "$as_me:$LINENO: checking for egrep" >&5
3423 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3424 if test "${ac_cv_prog_egrep+set}" = set; then
3425   echo $ECHO_N "(cached) $ECHO_C" >&6
3426 else
3427   if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3428     then ac_cv_prog_egrep='grep -E'
3429     else ac_cv_prog_egrep='egrep'
3430     fi
3431 fi
3432 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3433 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3434  EGREP=$ac_cv_prog_egrep
3435
3436
3437
3438 # Check whether --with-gnu-ld or --without-gnu-ld was given.
3439 if test "${with_gnu_ld+set}" = set; then
3440   withval="$with_gnu_ld"
3441   test "$withval" = no || with_gnu_ld=yes
3442 else
3443   with_gnu_ld=no
3444 fi;
3445 ac_prog=ld
3446 if test "$GCC" = yes; then
3447   # Check if gcc -print-prog-name=ld gives a path.
3448   echo "$as_me:$LINENO: checking for ld used by $CC" >&5
3449 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
3450   case $host in
3451   *-*-mingw*)
3452     # gcc leaves a trailing carriage return which upsets mingw
3453     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3454   *)
3455     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3456   esac
3457   case $ac_prog in
3458     # Accept absolute paths.
3459     [\\/]* | ?:[\\/]*)
3460       re_direlt='/[^/][^/]*/\.\./'
3461       # Canonicalize the path of ld
3462       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
3463       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
3464         ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
3465       done
3466       test -z "$LD" && LD="$ac_prog"
3467       ;;
3468   "")
3469     # If it fails, then pretend we aren't using GCC.
3470     ac_prog=ld
3471     ;;
3472   *)
3473     # If it is relative, then search for the first ld in PATH.
3474     with_gnu_ld=unknown
3475     ;;
3476   esac
3477 elif test "$with_gnu_ld" = yes; then
3478   echo "$as_me:$LINENO: checking for GNU ld" >&5
3479 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
3480 else
3481   echo "$as_me:$LINENO: checking for non-GNU ld" >&5
3482 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
3483 fi
3484 if test "${lt_cv_path_LD+set}" = set; then
3485   echo $ECHO_N "(cached) $ECHO_C" >&6
3486 else
3487   if test -z "$LD"; then
3488   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3489   for ac_dir in $PATH; do
3490     IFS="$lt_save_ifs"
3491     test -z "$ac_dir" && ac_dir=.
3492     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3493       lt_cv_path_LD="$ac_dir/$ac_prog"
3494       # Check to see if the program is GNU ld.  I'd rather use --version,
3495       # but apparently some GNU ld's only accept -v.
3496       # Break only if it was the GNU/non-GNU ld that we prefer.
3497       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
3498       *GNU* | *'with BFD'*)
3499         test "$with_gnu_ld" != no && break
3500         ;;
3501       *)
3502         test "$with_gnu_ld" != yes && break
3503         ;;
3504       esac
3505     fi
3506   done
3507   IFS="$lt_save_ifs"
3508 else
3509   lt_cv_path_LD="$LD" # Let the user override the test with a path.
3510 fi
3511 fi
3512
3513 LD="$lt_cv_path_LD"
3514 if test -n "$LD"; then
3515   echo "$as_me:$LINENO: result: $LD" >&5
3516 echo "${ECHO_T}$LD" >&6
3517 else
3518   echo "$as_me:$LINENO: result: no" >&5
3519 echo "${ECHO_T}no" >&6
3520 fi
3521 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
3522 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
3523    { (exit 1); exit 1; }; }
3524 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
3525 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
3526 if test "${lt_cv_prog_gnu_ld+set}" = set; then
3527   echo $ECHO_N "(cached) $ECHO_C" >&6
3528 else
3529   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
3530 case `"$LD" -v 2>&1 </dev/null` in
3531 *GNU* | *'with BFD'*)
3532   lt_cv_prog_gnu_ld=yes
3533   ;;
3534 *)
3535   lt_cv_prog_gnu_ld=no
3536   ;;
3537 esac
3538 fi
3539 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
3540 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
3541 with_gnu_ld=$lt_cv_prog_gnu_ld
3542
3543
3544 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
3545 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
3546 if test "${lt_cv_ld_reload_flag+set}" = set; then
3547   echo $ECHO_N "(cached) $ECHO_C" >&6
3548 else
3549   lt_cv_ld_reload_flag='-r'
3550 fi
3551 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
3552 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
3553 reload_flag=$lt_cv_ld_reload_flag
3554 case $reload_flag in
3555 "" | " "*) ;;
3556 *) reload_flag=" $reload_flag" ;;
3557 esac
3558 reload_cmds='$LD$reload_flag -o $output$reload_objs'
3559
3560 echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
3561 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
3562 if test "${lt_cv_path_NM+set}" = set; then
3563   echo $ECHO_N "(cached) $ECHO_C" >&6
3564 else
3565   if test -n "$NM"; then
3566   # Let the user override the test.
3567   lt_cv_path_NM="$NM"
3568 else
3569   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3570   for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
3571     IFS="$lt_save_ifs"
3572     test -z "$ac_dir" && ac_dir=.
3573     tmp_nm="$ac_dir/${ac_tool_prefix}nm"
3574     if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
3575       # Check to see if the nm accepts a BSD-compat flag.
3576       # Adding the `sed 1q' prevents false positives on HP-UX, which says:
3577       #   nm: unknown option "B" ignored
3578       # Tru64's nm complains that /dev/null is an invalid object file
3579       case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
3580       */dev/null* | *'Invalid file or object type'*)
3581         lt_cv_path_NM="$tmp_nm -B"
3582         break
3583         ;;
3584       *)
3585         case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
3586         */dev/null*)
3587           lt_cv_path_NM="$tmp_nm -p"
3588           break
3589           ;;
3590         *)
3591           lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
3592           continue # so that we can try to find one that supports BSD flags
3593           ;;
3594         esac
3595       esac
3596     fi
3597   done
3598   IFS="$lt_save_ifs"
3599   test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
3600 fi
3601 fi
3602 echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
3603 echo "${ECHO_T}$lt_cv_path_NM" >&6
3604 NM="$lt_cv_path_NM"
3605
3606 echo "$as_me:$LINENO: checking whether ln -s works" >&5
3607 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3608 LN_S=$as_ln_s
3609 if test "$LN_S" = "ln -s"; then
3610   echo "$as_me:$LINENO: result: yes" >&5
3611 echo "${ECHO_T}yes" >&6
3612 else
3613   echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3614 echo "${ECHO_T}no, using $LN_S" >&6
3615 fi
3616
3617 echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
3618 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
3619 if test "${lt_cv_deplibs_check_method+set}" = set; then
3620   echo $ECHO_N "(cached) $ECHO_C" >&6
3621 else
3622   lt_cv_file_magic_cmd='$MAGIC_CMD'
3623 lt_cv_file_magic_test_file=
3624 lt_cv_deplibs_check_method='unknown'
3625 # Need to set the preceding variable on all platforms that support
3626 # interlibrary dependencies.
3627 # 'none' -- dependencies not supported.
3628 # `unknown' -- same as none, but documents that we really don't know.
3629 # 'pass_all' -- all dependencies passed with no checks.
3630 # 'test_compile' -- check by making test program.
3631 # 'file_magic [[regex]]' -- check by looking for files in library path
3632 # which responds to the $file_magic_cmd with a given extended regex.
3633 # If you have `file' or equivalent on your system and you're not sure
3634 # whether `pass_all' will *always* work, you probably want this one.
3635
3636 case $host_os in
3637 aix4* | aix5*)
3638   lt_cv_deplibs_check_method=pass_all
3639   ;;
3640
3641 beos*)
3642   lt_cv_deplibs_check_method=pass_all
3643   ;;
3644
3645 bsdi4*)
3646   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
3647   lt_cv_file_magic_cmd='/usr/bin/file -L'
3648   lt_cv_file_magic_test_file=/shlib/libc.so
3649   ;;
3650
3651 cygwin* | mingw* | pw32*)
3652   # win32_libid is a shell function defined in ltmain.sh
3653   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
3654   lt_cv_file_magic_cmd='win32_libid'
3655   ;;
3656
3657 darwin* | rhapsody*)
3658   # this will be overwritten by pass_all, but leave it in just in case
3659   lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
3660   lt_cv_file_magic_cmd='/usr/bin/file -L'
3661   case "$host_os" in
3662   rhapsody* | darwin1.[012])
3663     lt_cv_file_magic_test_file=`/System/Library/Frameworks/System.framework/System`
3664     ;;
3665   *) # Darwin 1.3 on
3666     lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
3667     ;;
3668   esac
3669   lt_cv_deplibs_check_method=pass_all
3670   ;;
3671
3672 freebsd*)
3673   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3674     case $host_cpu in
3675     i*86 )
3676       # Not sure whether the presence of OpenBSD here was a mistake.
3677       # Let's accept both of them until this is cleared up.
3678       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
3679       lt_cv_file_magic_cmd=/usr/bin/file
3680       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3681       ;;
3682     esac
3683   else
3684     lt_cv_deplibs_check_method=pass_all
3685   fi
3686   ;;
3687
3688 gnu*)
3689   lt_cv_deplibs_check_method=pass_all
3690   ;;
3691
3692 hpux10.20* | hpux11*)
3693   lt_cv_file_magic_cmd=/usr/bin/file
3694   case "$host_cpu" in
3695   ia64*)
3696     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
3697     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
3698     ;;
3699   hppa*64*)
3700     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]'
3701     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
3702     ;;
3703   *)
3704     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
3705     lt_cv_file_magic_test_file=/usr/lib/libc.sl
3706     ;;
3707   esac
3708   ;;
3709
3710 irix5* | irix6* | nonstopux*)
3711   case $host_os in
3712   irix5* | nonstopux*)
3713     # this will be overridden with pass_all, but let us keep it just in case
3714     lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
3715     ;;
3716   *)
3717     case $LD in
3718     *-32|*"-32 ") libmagic=32-bit;;
3719     *-n32|*"-n32 ") libmagic=N32;;
3720     *-64|*"-64 ") libmagic=64-bit;;
3721     *) libmagic=never-match;;
3722     esac
3723     # this will be overridden with pass_all, but let us keep it just in case
3724     lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
3725     ;;
3726   esac
3727   lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
3728   lt_cv_deplibs_check_method=pass_all
3729   ;;
3730
3731 # This must be Linux ELF.
3732 linux*)
3733   case $host_cpu in
3734   alpha* | hppa* | i*86 | ia64* | m68* | mips | mipsel | powerpc* | sparc* | s390* | sh*)
3735     lt_cv_deplibs_check_method=pass_all ;;
3736   *)
3737     # glibc up to 2.1.1 does not perform some relocations on ARM
3738     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
3739   esac
3740   lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
3741   ;;
3742
3743 netbsd*)
3744   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3745     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
3746   else
3747     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
3748   fi
3749   ;;
3750
3751 newos6*)
3752   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
3753   lt_cv_file_magic_cmd=/usr/bin/file
3754   lt_cv_file_magic_test_file=/usr/lib/libnls.so
3755   ;;
3756
3757 nto-qnx)
3758   lt_cv_deplibs_check_method=unknown
3759   ;;
3760
3761 openbsd*)
3762   lt_cv_file_magic_cmd=/usr/bin/file
3763   lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3764   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
3765     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB shared object'
3766   else
3767     lt_cv_deplibs_check_method='file_magic OpenBSD.* shared library'
3768   fi
3769   ;;
3770
3771 osf3* | osf4* | osf5*)
3772   # this will be overridden with pass_all, but let us keep it just in case
3773   lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
3774   lt_cv_file_magic_test_file=/shlib/libc.so
3775   lt_cv_deplibs_check_method=pass_all
3776   ;;
3777
3778 sco3.2v5*)
3779   lt_cv_deplibs_check_method=pass_all
3780   ;;
3781
3782 solaris*)
3783   lt_cv_deplibs_check_method=pass_all
3784   lt_cv_file_magic_test_file=/lib/libc.so
3785   ;;
3786
3787 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
3788   case $host_vendor in
3789   motorola)
3790     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]'
3791     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
3792     ;;
3793   ncr)
3794     lt_cv_deplibs_check_method=pass_all
3795     ;;
3796   sequent)
3797     lt_cv_file_magic_cmd='/bin/file'
3798     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
3799     ;;
3800   sni)
3801     lt_cv_file_magic_cmd='/bin/file'
3802     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
3803     lt_cv_file_magic_test_file=/lib/libc.so
3804     ;;
3805   siemens)
3806     lt_cv_deplibs_check_method=pass_all
3807     ;;
3808   esac
3809   ;;
3810
3811 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*)
3812   lt_cv_deplibs_check_method=pass_all
3813   ;;
3814 esac
3815
3816 fi
3817 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
3818 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
3819 file_magic_cmd=$lt_cv_file_magic_cmd
3820 deplibs_check_method=$lt_cv_deplibs_check_method
3821 test -z "$deplibs_check_method" && deplibs_check_method=unknown
3822
3823
3824
3825
3826 # If no C compiler was specified, use CC.
3827 LTCC=${LTCC-"$CC"}
3828
3829 # Allow CC to be a program name with arguments.
3830 compiler=$CC
3831
3832 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
3833 if test "${enable_libtool_lock+set}" = set; then
3834   enableval="$enable_libtool_lock"
3835
3836 fi;
3837 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
3838
3839 # Some flags need to be propagated to the compiler or linker for good
3840 # libtool support.
3841 case $host in
3842 ia64-*-hpux*)
3843   # Find out which ABI we are using.
3844   echo 'int i;' > conftest.$ac_ext
3845   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3846   (eval $ac_compile) 2>&5
3847   ac_status=$?
3848   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3849   (exit $ac_status); }; then
3850     case `/usr/bin/file conftest.$ac_objext` in
3851     *ELF-32*)
3852       HPUX_IA64_MODE="32"
3853       ;;
3854     *ELF-64*)
3855       HPUX_IA64_MODE="64"
3856       ;;
3857     esac
3858   fi
3859   rm -rf conftest*
3860   ;;
3861 *-*-irix6*)
3862   # Find out which ABI we are using.
3863   echo '#line 3863 "configure"' > conftest.$ac_ext
3864   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3865   (eval $ac_compile) 2>&5
3866   ac_status=$?
3867   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3868   (exit $ac_status); }; then
3869    if test "$lt_cv_prog_gnu_ld" = yes; then
3870     case `/usr/bin/file conftest.$ac_objext` in
3871     *32-bit*)
3872       LD="${LD-ld} -melf32bsmip"
3873       ;;
3874     *N32*)
3875       LD="${LD-ld} -melf32bmipn32"
3876       ;;
3877     *64-bit*)
3878       LD="${LD-ld} -melf64bmip"
3879       ;;
3880     esac
3881    else
3882     case `/usr/bin/file conftest.$ac_objext` in
3883     *32-bit*)
3884       LD="${LD-ld} -32"
3885       ;;
3886     *N32*)
3887       LD="${LD-ld} -n32"
3888       ;;
3889     *64-bit*)
3890       LD="${LD-ld} -64"
3891       ;;
3892     esac
3893    fi
3894   fi
3895   rm -rf conftest*
3896   ;;
3897
3898 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
3899   # Find out which ABI we are using.
3900   echo 'int i;' > conftest.$ac_ext
3901   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3902   (eval $ac_compile) 2>&5
3903   ac_status=$?
3904   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3905   (exit $ac_status); }; then
3906     case "`/usr/bin/file conftest.o`" in
3907     *32-bit*)
3908       case $host in
3909         x86_64-*linux*)
3910           LD="${LD-ld} -m elf_i386"
3911           ;;
3912         ppc64-*linux*)
3913           LD="${LD-ld} -m elf32ppclinux"
3914           ;;
3915         s390x-*linux*)
3916           LD="${LD-ld} -m elf_s390"
3917           ;;
3918         sparc64-*linux*)
3919           LD="${LD-ld} -m elf32_sparc"
3920           ;;
3921       esac
3922       ;;
3923     *64-bit*)
3924       case $host in
3925         x86_64-*linux*)
3926           LD="${LD-ld} -m elf_x86_64"
3927           ;;
3928         ppc*-*linux*|powerpc*-*linux*)
3929           LD="${LD-ld} -m elf64ppc"
3930           ;;
3931         s390*-*linux*)
3932           LD="${LD-ld} -m elf64_s390"
3933           ;;
3934         sparc*-*linux*)
3935           LD="${LD-ld} -m elf64_sparc"
3936           ;;
3937       esac
3938       ;;
3939     esac
3940   fi
3941   rm -rf conftest*
3942   ;;
3943
3944 *-*-sco3.2v5*)
3945   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
3946   SAVE_CFLAGS="$CFLAGS"
3947   CFLAGS="$CFLAGS -belf"
3948   echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
3949 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
3950 if test "${lt_cv_cc_needs_belf+set}" = set; then
3951   echo $ECHO_N "(cached) $ECHO_C" >&6
3952 else
3953   ac_ext=c
3954 ac_cpp='$CPP $CPPFLAGS'
3955 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3956 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3957 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3958
3959      cat >conftest.$ac_ext <<_ACEOF
3960 #line $LINENO "configure"
3961 /* confdefs.h.  */
3962 _ACEOF
3963 cat confdefs.h >>conftest.$ac_ext
3964 cat >>conftest.$ac_ext <<_ACEOF
3965 /* end confdefs.h.  */
3966
3967 int
3968 main ()
3969 {
3970
3971   ;
3972   return 0;
3973 }
3974 _ACEOF
3975 rm -f conftest.$ac_objext conftest$ac_exeext
3976 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3977   (eval $ac_link) 2>&5
3978   ac_status=$?
3979   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3980   (exit $ac_status); } &&
3981          { ac_try='test -s conftest$ac_exeext'
3982   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3983   (eval $ac_try) 2>&5
3984   ac_status=$?
3985   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3986   (exit $ac_status); }; }; then
3987   lt_cv_cc_needs_belf=yes
3988 else
3989   echo "$as_me: failed program was:" >&5
3990 sed 's/^/| /' conftest.$ac_ext >&5
3991
3992 lt_cv_cc_needs_belf=no
3993 fi
3994 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3995      ac_ext=c
3996 ac_cpp='$CPP $CPPFLAGS'
3997 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3998 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3999 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4000
4001 fi
4002 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
4003 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
4004   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4005     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4006     CFLAGS="$SAVE_CFLAGS"
4007   fi
4008   ;;
4009
4010 esac
4011
4012 need_locks="$enable_libtool_lock"
4013
4014
4015
4016 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4017 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4018 if test "${ac_cv_header_stdc+set}" = set; then
4019   echo $ECHO_N "(cached) $ECHO_C" >&6
4020 else
4021   cat >conftest.$ac_ext <<_ACEOF
4022 #line $LINENO "configure"
4023 /* confdefs.h.  */
4024 _ACEOF
4025 cat confdefs.h >>conftest.$ac_ext
4026 cat >>conftest.$ac_ext <<_ACEOF
4027 /* end confdefs.h.  */
4028 #include <stdlib.h>
4029 #include <stdarg.h>
4030 #include <string.h>
4031 #include <float.h>
4032
4033 int
4034 main ()
4035 {
4036
4037   ;
4038   return 0;
4039 }
4040 _ACEOF
4041 rm -f conftest.$ac_objext
4042 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4043   (eval $ac_compile) 2>&5
4044   ac_status=$?
4045   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4046   (exit $ac_status); } &&
4047          { ac_try='test -s conftest.$ac_objext'
4048   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4049   (eval $ac_try) 2>&5
4050   ac_status=$?
4051   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4052   (exit $ac_status); }; }; then
4053   ac_cv_header_stdc=yes
4054 else
4055   echo "$as_me: failed program was:" >&5
4056 sed 's/^/| /' conftest.$ac_ext >&5
4057
4058 ac_cv_header_stdc=no
4059 fi
4060 rm -f conftest.$ac_objext conftest.$ac_ext
4061
4062 if test $ac_cv_header_stdc = yes; then
4063   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4064   cat >conftest.$ac_ext <<_ACEOF
4065 #line $LINENO "configure"
4066 /* confdefs.h.  */
4067 _ACEOF
4068 cat confdefs.h >>conftest.$ac_ext
4069 cat >>conftest.$ac_ext <<_ACEOF
4070 /* end confdefs.h.  */
4071 #include <string.h>
4072
4073 _ACEOF
4074 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4075   $EGREP "memchr" >/dev/null 2>&1; then
4076   :
4077 else
4078   ac_cv_header_stdc=no
4079 fi
4080 rm -f conftest*
4081
4082 fi
4083
4084 if test $ac_cv_header_stdc = yes; then
4085   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4086   cat >conftest.$ac_ext <<_ACEOF
4087 #line $LINENO "configure"
4088 /* confdefs.h.  */
4089 _ACEOF
4090 cat confdefs.h >>conftest.$ac_ext
4091 cat >>conftest.$ac_ext <<_ACEOF
4092 /* end confdefs.h.  */
4093 #include <stdlib.h>
4094
4095 _ACEOF
4096 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4097   $EGREP "free" >/dev/null 2>&1; then
4098   :
4099 else
4100   ac_cv_header_stdc=no
4101 fi
4102 rm -f conftest*
4103
4104 fi
4105
4106 if test $ac_cv_header_stdc = yes; then
4107   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4108   if test "$cross_compiling" = yes; then
4109   :
4110 else
4111   cat >conftest.$ac_ext <<_ACEOF
4112 #line $LINENO "configure"
4113 /* confdefs.h.  */
4114 _ACEOF
4115 cat confdefs.h >>conftest.$ac_ext
4116 cat >>conftest.$ac_ext <<_ACEOF
4117 /* end confdefs.h.  */
4118 #include <ctype.h>
4119 #if ((' ' & 0x0FF) == 0x020)
4120 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4121 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4122 #else
4123 # define ISLOWER(c) \
4124                    (('a' <= (c) && (c) <= 'i') \
4125                      || ('j' <= (c) && (c) <= 'r') \
4126                      || ('s' <= (c) && (c) <= 'z'))
4127 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4128 #endif
4129
4130 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4131 int
4132 main ()
4133 {
4134   int i;
4135   for (i = 0; i < 256; i++)
4136     if (XOR (islower (i), ISLOWER (i))
4137         || toupper (i) != TOUPPER (i))
4138       exit(2);
4139   exit (0);
4140 }
4141 _ACEOF
4142 rm -f conftest$ac_exeext
4143 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4144   (eval $ac_link) 2>&5
4145   ac_status=$?
4146   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4147   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4148   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4149   (eval $ac_try) 2>&5
4150   ac_status=$?
4151   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4152   (exit $ac_status); }; }; then
4153   :
4154 else
4155   echo "$as_me: program exited with status $ac_status" >&5
4156 echo "$as_me: failed program was:" >&5
4157 sed 's/^/| /' conftest.$ac_ext >&5
4158
4159 ( exit $ac_status )
4160 ac_cv_header_stdc=no
4161 fi
4162 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4163 fi
4164 fi
4165 fi
4166 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4167 echo "${ECHO_T}$ac_cv_header_stdc" >&6
4168 if test $ac_cv_header_stdc = yes; then
4169
4170 cat >>confdefs.h <<\_ACEOF
4171 #define STDC_HEADERS 1
4172 _ACEOF
4173
4174 fi
4175
4176 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4177
4178
4179
4180
4181
4182
4183
4184
4185
4186 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4187                   inttypes.h stdint.h unistd.h
4188 do
4189 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4190 echo "$as_me:$LINENO: checking for $ac_header" >&5
4191 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4192 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4193   echo $ECHO_N "(cached) $ECHO_C" >&6
4194 else
4195   cat >conftest.$ac_ext <<_ACEOF
4196 #line $LINENO "configure"
4197 /* confdefs.h.  */
4198 _ACEOF
4199 cat confdefs.h >>conftest.$ac_ext
4200 cat >>conftest.$ac_ext <<_ACEOF
4201 /* end confdefs.h.  */
4202 $ac_includes_default
4203
4204 #include <$ac_header>
4205 _ACEOF
4206 rm -f conftest.$ac_objext
4207 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4208   (eval $ac_compile) 2>&5
4209   ac_status=$?
4210   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4211   (exit $ac_status); } &&
4212          { ac_try='test -s conftest.$ac_objext'
4213   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4214   (eval $ac_try) 2>&5
4215   ac_status=$?
4216   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4217   (exit $ac_status); }; }; then
4218   eval "$as_ac_Header=yes"
4219 else
4220   echo "$as_me: failed program was:" >&5
4221 sed 's/^/| /' conftest.$ac_ext >&5
4222
4223 eval "$as_ac_Header=no"
4224 fi
4225 rm -f conftest.$ac_objext conftest.$ac_ext
4226 fi
4227 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4228 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4229 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4230   cat >>confdefs.h <<_ACEOF
4231 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4232 _ACEOF
4233
4234 fi
4235
4236 done
4237
4238
4239
4240 for ac_header in dlfcn.h
4241 do
4242 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4243 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4244   echo "$as_me:$LINENO: checking for $ac_header" >&5
4245 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4246 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4247   echo $ECHO_N "(cached) $ECHO_C" >&6
4248 fi
4249 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4250 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4251 else
4252   # Is the header compilable?
4253 echo "$as_me:$LINENO: checking $ac_header usability" >&5
4254 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4255 cat >conftest.$ac_ext <<_ACEOF
4256 #line $LINENO "configure"
4257 /* confdefs.h.  */
4258 _ACEOF
4259 cat confdefs.h >>conftest.$ac_ext
4260 cat >>conftest.$ac_ext <<_ACEOF
4261 /* end confdefs.h.  */
4262 $ac_includes_default
4263 #include <$ac_header>
4264 _ACEOF
4265 rm -f conftest.$ac_objext
4266 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4267   (eval $ac_compile) 2>&5
4268   ac_status=$?
4269   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4270   (exit $ac_status); } &&
4271          { ac_try='test -s conftest.$ac_objext'
4272   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4273   (eval $ac_try) 2>&5
4274   ac_status=$?
4275   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4276   (exit $ac_status); }; }; then
4277   ac_header_compiler=yes
4278 else
4279   echo "$as_me: failed program was:" >&5
4280 sed 's/^/| /' conftest.$ac_ext >&5
4281
4282 ac_header_compiler=no
4283 fi
4284 rm -f conftest.$ac_objext conftest.$ac_ext
4285 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4286 echo "${ECHO_T}$ac_header_compiler" >&6
4287
4288 # Is the header present?
4289 echo "$as_me:$LINENO: checking $ac_header presence" >&5
4290 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4291 cat >conftest.$ac_ext <<_ACEOF
4292 #line $LINENO "configure"
4293 /* confdefs.h.  */
4294 _ACEOF
4295 cat confdefs.h >>conftest.$ac_ext
4296 cat >>conftest.$ac_ext <<_ACEOF
4297 /* end confdefs.h.  */
4298 #include <$ac_header>
4299 _ACEOF
4300 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4301   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4302   ac_status=$?
4303   grep -v '^ *+' conftest.er1 >conftest.err
4304   rm -f conftest.er1
4305   cat conftest.err >&5
4306   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4307   (exit $ac_status); } >/dev/null; then
4308   if test -s conftest.err; then
4309     ac_cpp_err=$ac_c_preproc_warn_flag
4310   else
4311     ac_cpp_err=
4312   fi
4313 else
4314   ac_cpp_err=yes
4315 fi
4316 if test -z "$ac_cpp_err"; then
4317   ac_header_preproc=yes
4318 else
4319   echo "$as_me: failed program was:" >&5
4320 sed 's/^/| /' conftest.$ac_ext >&5
4321
4322   ac_header_preproc=no
4323 fi
4324 rm -f conftest.err conftest.$ac_ext
4325 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4326 echo "${ECHO_T}$ac_header_preproc" >&6
4327
4328 # So?  What about this header?
4329 case $ac_header_compiler:$ac_header_preproc in
4330   yes:no )
4331     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4332 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4333     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4334 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4335     (
4336       cat <<\_ASBOX
4337 ## ------------------------------------ ##
4338 ## Report this to bug-autoconf@gnu.org. ##
4339 ## ------------------------------------ ##
4340 _ASBOX
4341     ) |
4342       sed "s/^/$as_me: WARNING:     /" >&2
4343     ;;
4344   no:yes )
4345     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4346 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4347     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4348 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4349     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4350 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4351     (
4352       cat <<\_ASBOX
4353 ## ------------------------------------ ##
4354 ## Report this to bug-autoconf@gnu.org. ##
4355 ## ------------------------------------ ##
4356 _ASBOX
4357     ) |
4358       sed "s/^/$as_me: WARNING:     /" >&2
4359     ;;
4360 esac
4361 echo "$as_me:$LINENO: checking for $ac_header" >&5
4362 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4363 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4364   echo $ECHO_N "(cached) $ECHO_C" >&6
4365 else
4366   eval "$as_ac_Header=$ac_header_preproc"
4367 fi
4368 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4369 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4370
4371 fi
4372 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4373   cat >>confdefs.h <<_ACEOF
4374 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4375 _ACEOF
4376
4377 fi
4378
4379 done
4380
4381 ac_ext=cc
4382 ac_cpp='$CXXCPP $CPPFLAGS'
4383 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4384 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4385 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4386 echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
4387 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
4388 if test -z "$CXXCPP"; then
4389   if test "${ac_cv_prog_CXXCPP+set}" = set; then
4390   echo $ECHO_N "(cached) $ECHO_C" >&6
4391 else
4392       # Double quotes because CXXCPP needs to be expanded
4393     for CXXCPP in "$CXX -E" "/lib/cpp"
4394     do
4395       ac_preproc_ok=false
4396 for ac_cxx_preproc_warn_flag in '' yes
4397 do
4398   # Use a header file that comes with gcc, so configuring glibc
4399   # with a fresh cross-compiler works.
4400   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4401   # <limits.h> exists even on freestanding compilers.
4402   # On the NeXT, cc -E runs the code through the compiler's parser,
4403   # not just through cpp. "Syntax error" is here to catch this case.
4404   cat >conftest.$ac_ext <<_ACEOF
4405 #line $LINENO "configure"
4406 /* confdefs.h.  */
4407 _ACEOF
4408 cat confdefs.h >>conftest.$ac_ext
4409 cat >>conftest.$ac_ext <<_ACEOF
4410 /* end confdefs.h.  */
4411 #ifdef __STDC__
4412 # include <limits.h>
4413 #else
4414 # include <assert.h>
4415 #endif
4416                      Syntax error
4417 _ACEOF
4418 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4419   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4420   ac_status=$?
4421   grep -v '^ *+' conftest.er1 >conftest.err
4422   rm -f conftest.er1
4423   cat conftest.err >&5
4424   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4425   (exit $ac_status); } >/dev/null; then
4426   if test -s conftest.err; then
4427     ac_cpp_err=$ac_cxx_preproc_warn_flag
4428   else
4429     ac_cpp_err=
4430   fi
4431 else
4432   ac_cpp_err=yes
4433 fi
4434 if test -z "$ac_cpp_err"; then
4435   :
4436 else
4437   echo "$as_me: failed program was:" >&5
4438 sed 's/^/| /' conftest.$ac_ext >&5
4439
4440   # Broken: fails on valid input.
4441 continue
4442 fi
4443 rm -f conftest.err conftest.$ac_ext
4444
4445   # OK, works on sane cases.  Now check whether non-existent headers
4446   # can be detected and how.
4447   cat >conftest.$ac_ext <<_ACEOF
4448 #line $LINENO "configure"
4449 /* confdefs.h.  */
4450 _ACEOF
4451 cat confdefs.h >>conftest.$ac_ext
4452 cat >>conftest.$ac_ext <<_ACEOF
4453 /* end confdefs.h.  */
4454 #include <ac_nonexistent.h>
4455 _ACEOF
4456 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4457   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4458   ac_status=$?
4459   grep -v '^ *+' conftest.er1 >conftest.err
4460   rm -f conftest.er1
4461   cat conftest.err >&5
4462   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4463   (exit $ac_status); } >/dev/null; then
4464   if test -s conftest.err; then
4465     ac_cpp_err=$ac_cxx_preproc_warn_flag
4466   else
4467     ac_cpp_err=
4468   fi
4469 else
4470   ac_cpp_err=yes
4471 fi
4472 if test -z "$ac_cpp_err"; then
4473   # Broken: success on invalid input.
4474 continue
4475 else
4476   echo "$as_me: failed program was:" >&5
4477 sed 's/^/| /' conftest.$ac_ext >&5
4478
4479   # Passes both tests.
4480 ac_preproc_ok=:
4481 break
4482 fi
4483 rm -f conftest.err conftest.$ac_ext
4484
4485 done
4486 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4487 rm -f conftest.err conftest.$ac_ext
4488 if $ac_preproc_ok; then
4489   break
4490 fi
4491
4492     done
4493     ac_cv_prog_CXXCPP=$CXXCPP
4494
4495 fi
4496   CXXCPP=$ac_cv_prog_CXXCPP
4497 else
4498   ac_cv_prog_CXXCPP=$CXXCPP
4499 fi
4500 echo "$as_me:$LINENO: result: $CXXCPP" >&5
4501 echo "${ECHO_T}$CXXCPP" >&6
4502 ac_preproc_ok=false
4503 for ac_cxx_preproc_warn_flag in '' yes
4504 do
4505   # Use a header file that comes with gcc, so configuring glibc
4506   # with a fresh cross-compiler works.
4507   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4508   # <limits.h> exists even on freestanding compilers.
4509   # On the NeXT, cc -E runs the code through the compiler's parser,
4510   # not just through cpp. "Syntax error" is here to catch this case.
4511   cat >conftest.$ac_ext <<_ACEOF
4512 #line $LINENO "configure"
4513 /* confdefs.h.  */
4514 _ACEOF
4515 cat confdefs.h >>conftest.$ac_ext
4516 cat >>conftest.$ac_ext <<_ACEOF
4517 /* end confdefs.h.  */
4518 #ifdef __STDC__
4519 # include <limits.h>
4520 #else
4521 # include <assert.h>
4522 #endif
4523                      Syntax error
4524 _ACEOF
4525 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4526   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4527   ac_status=$?
4528   grep -v '^ *+' conftest.er1 >conftest.err
4529   rm -f conftest.er1
4530   cat conftest.err >&5
4531   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4532   (exit $ac_status); } >/dev/null; then
4533   if test -s conftest.err; then
4534     ac_cpp_err=$ac_cxx_preproc_warn_flag
4535   else
4536     ac_cpp_err=
4537   fi
4538 else
4539   ac_cpp_err=yes
4540 fi
4541 if test -z "$ac_cpp_err"; then
4542   :
4543 else
4544   echo "$as_me: failed program was:" >&5
4545 sed 's/^/| /' conftest.$ac_ext >&5
4546
4547   # Broken: fails on valid input.
4548 continue
4549 fi
4550 rm -f conftest.err conftest.$ac_ext
4551
4552   # OK, works on sane cases.  Now check whether non-existent headers
4553   # can be detected and how.
4554   cat >conftest.$ac_ext <<_ACEOF
4555 #line $LINENO "configure"
4556 /* confdefs.h.  */
4557 _ACEOF
4558 cat confdefs.h >>conftest.$ac_ext
4559 cat >>conftest.$ac_ext <<_ACEOF
4560 /* end confdefs.h.  */
4561 #include <ac_nonexistent.h>
4562 _ACEOF
4563 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4564   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4565   ac_status=$?
4566   grep -v '^ *+' conftest.er1 >conftest.err
4567   rm -f conftest.er1
4568   cat conftest.err >&5
4569   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4570   (exit $ac_status); } >/dev/null; then
4571   if test -s conftest.err; then
4572     ac_cpp_err=$ac_cxx_preproc_warn_flag
4573   else
4574     ac_cpp_err=
4575   fi
4576 else
4577   ac_cpp_err=yes
4578 fi
4579 if test -z "$ac_cpp_err"; then
4580   # Broken: success on invalid input.
4581 continue
4582 else
4583   echo "$as_me: failed program was:" >&5
4584 sed 's/^/| /' conftest.$ac_ext >&5
4585
4586   # Passes both tests.
4587 ac_preproc_ok=:
4588 break
4589 fi
4590 rm -f conftest.err conftest.$ac_ext
4591
4592 done
4593 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4594 rm -f conftest.err conftest.$ac_ext
4595 if $ac_preproc_ok; then
4596   :
4597 else
4598   { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
4599 See \`config.log' for more details." >&5
4600 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
4601 See \`config.log' for more details." >&2;}
4602    { (exit 1); exit 1; }; }
4603 fi
4604
4605 ac_ext=cc
4606 ac_cpp='$CXXCPP $CPPFLAGS'
4607 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4608 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4609 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4610
4611
4612 ac_ext=f
4613 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
4614 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4615 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
4616 if test -n "$ac_tool_prefix"; then
4617   for ac_prog in g77 f77 xlf frt pgf77 fl32 af77 fort77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 lf95 g95
4618   do
4619     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4620 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4621 echo "$as_me:$LINENO: checking for $ac_word" >&5
4622 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4623 if test "${ac_cv_prog_F77+set}" = set; then
4624   echo $ECHO_N "(cached) $ECHO_C" >&6
4625 else
4626   if test -n "$F77"; then
4627   ac_cv_prog_F77="$F77" # Let the user override the test.
4628 else
4629 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4630 for as_dir in $PATH
4631 do
4632   IFS=$as_save_IFS
4633   test -z "$as_dir" && as_dir=.
4634   for ac_exec_ext in '' $ac_executable_extensions; do
4635   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4636     ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
4637     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4638     break 2
4639   fi
4640 done
4641 done
4642
4643 fi
4644 fi
4645 F77=$ac_cv_prog_F77
4646 if test -n "$F77"; then
4647   echo "$as_me:$LINENO: result: $F77" >&5
4648 echo "${ECHO_T}$F77" >&6
4649 else
4650   echo "$as_me:$LINENO: result: no" >&5
4651 echo "${ECHO_T}no" >&6
4652 fi
4653
4654     test -n "$F77" && break
4655   done
4656 fi
4657 if test -z "$F77"; then
4658   ac_ct_F77=$F77
4659   for ac_prog in g77 f77 xlf frt pgf77 fl32 af77 fort77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 lf95 g95
4660 do
4661   # Extract the first word of "$ac_prog", so it can be a program name with args.
4662 set dummy $ac_prog; ac_word=$2
4663 echo "$as_me:$LINENO: checking for $ac_word" >&5
4664 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4665 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
4666   echo $ECHO_N "(cached) $ECHO_C" >&6
4667 else
4668   if test -n "$ac_ct_F77"; then
4669   ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
4670 else
4671 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4672 for as_dir in $PATH
4673 do
4674   IFS=$as_save_IFS
4675   test -z "$as_dir" && as_dir=.
4676   for ac_exec_ext in '' $ac_executable_extensions; do
4677   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4678     ac_cv_prog_ac_ct_F77="$ac_prog"
4679     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4680     break 2
4681   fi
4682 done
4683 done
4684
4685 fi
4686 fi
4687 ac_ct_F77=$ac_cv_prog_ac_ct_F77
4688 if test -n "$ac_ct_F77"; then
4689   echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
4690 echo "${ECHO_T}$ac_ct_F77" >&6
4691 else
4692   echo "$as_me:$LINENO: result: no" >&5
4693 echo "${ECHO_T}no" >&6
4694 fi
4695
4696   test -n "$ac_ct_F77" && break
4697 done
4698
4699   F77=$ac_ct_F77
4700 fi
4701
4702
4703 # Provide some information about the compiler.
4704 echo "$as_me:4704:" \
4705      "checking for Fortran 77 compiler version" >&5
4706 ac_compiler=`set X $ac_compile; echo $2`
4707 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
4708   (eval $ac_compiler --version </dev/null >&5) 2>&5
4709   ac_status=$?
4710   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4711   (exit $ac_status); }
4712 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
4713   (eval $ac_compiler -v </dev/null >&5) 2>&5
4714   ac_status=$?
4715   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4716   (exit $ac_status); }
4717 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
4718   (eval $ac_compiler -V </dev/null >&5) 2>&5
4719   ac_status=$?
4720   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4721   (exit $ac_status); }
4722
4723 # If we don't use `.F' as extension, the preprocessor is not run on the
4724 # input file.
4725 ac_save_ext=$ac_ext
4726 ac_ext=F
4727 echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
4728 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
4729 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
4730   echo $ECHO_N "(cached) $ECHO_C" >&6
4731 else
4732   cat >conftest.$ac_ext <<_ACEOF
4733       program main
4734 #ifndef __GNUC__
4735        choke me
4736 #endif
4737
4738       end
4739 _ACEOF
4740 rm -f conftest.$ac_objext
4741 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4742   (eval $ac_compile) 2>&5
4743   ac_status=$?
4744   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4745   (exit $ac_status); } &&
4746          { ac_try='test -s conftest.$ac_objext'
4747   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4748   (eval $ac_try) 2>&5
4749   ac_status=$?
4750   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4751   (exit $ac_status); }; }; then
4752   ac_compiler_gnu=yes
4753 else
4754   echo "$as_me: failed program was:" >&5
4755 sed 's/^/| /' conftest.$ac_ext >&5
4756
4757 ac_compiler_gnu=no
4758 fi
4759 rm -f conftest.$ac_objext conftest.$ac_ext
4760 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
4761
4762 fi
4763 echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
4764 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
4765 ac_ext=$ac_save_ext
4766 G77=`test $ac_compiler_gnu = yes && echo yes`
4767 ac_test_FFLAGS=${FFLAGS+set}
4768 ac_save_FFLAGS=$FFLAGS
4769 FFLAGS=
4770 echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
4771 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
4772 if test "${ac_cv_prog_f77_g+set}" = set; then
4773   echo $ECHO_N "(cached) $ECHO_C" >&6
4774 else
4775   FFLAGS=-g
4776 cat >conftest.$ac_ext <<_ACEOF
4777       program main
4778
4779       end
4780 _ACEOF
4781 rm -f conftest.$ac_objext
4782 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4783   (eval $ac_compile) 2>&5
4784   ac_status=$?
4785   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4786   (exit $ac_status); } &&
4787          { ac_try='test -s conftest.$ac_objext'
4788   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4789   (eval $ac_try) 2>&5
4790   ac_status=$?
4791   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4792   (exit $ac_status); }; }; then
4793   ac_cv_prog_f77_g=yes
4794 else
4795   echo "$as_me: failed program was:" >&5
4796 sed 's/^/| /' conftest.$ac_ext >&5
4797
4798 ac_cv_prog_f77_g=no
4799 fi
4800 rm -f conftest.$ac_objext conftest.$ac_ext
4801
4802 fi
4803 echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
4804 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
4805 if test "$ac_test_FFLAGS" = set; then
4806   FFLAGS=$ac_save_FFLAGS
4807 elif test $ac_cv_prog_f77_g = yes; then
4808   if test "$G77" = yes; then
4809     FFLAGS="-g -O2"
4810   else
4811     FFLAGS="-g"
4812   fi
4813 else
4814   if test "$G77" = yes; then
4815     FFLAGS="-O2"
4816   else
4817     FFLAGS=
4818   fi
4819 fi
4820 ac_ext=c
4821 ac_cpp='$CPP $CPPFLAGS'
4822 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4823 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4824 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4825
4826
4827
4828 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
4829
4830 # find the maximum length of command line arguments
4831 echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
4832 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
4833 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
4834   echo $ECHO_N "(cached) $ECHO_C" >&6
4835 else
4836     i=0
4837   testring="ABCD"
4838
4839   case $build_os in
4840   msdosdjgpp*)
4841     # On DJGPP, this test can blow up pretty badly due to problems in libc
4842     # (any single argument exceeding 2000 bytes causes a buffer overrun
4843     # during glob expansion).  Even if it were fixed, the result of this
4844     # check would be larger than it should be.
4845     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
4846     ;;
4847
4848   gnu*)
4849     # Under GNU Hurd, this test is not required because there is
4850     # no limit to the length of command line arguments.
4851     # Libtool will interpret -1 as no limit whatsoever
4852     lt_cv_sys_max_cmd_len=-1;
4853     ;;
4854
4855   cygwin* | mingw*)
4856     # On Win9x/ME, this test blows up -- it succeeds, but takes
4857     # about 5 minutes as the teststring grows exponentially.
4858     # Worse, since 9x/ME are not pre-emptively multitasking,
4859     # you end up with a "frozen" computer, even though with patience
4860     # the test eventually succeeds (with a max line length of 256k).
4861     # Instead, let's just punt: use the minimum linelength reported by
4862     # all of the supported platforms: 8192 (on NT/2K/XP).
4863     lt_cv_sys_max_cmd_len=8192;
4864     ;;
4865
4866  *)
4867     # If test is not a shell built-in, we'll probably end up computing a
4868     # maximum length that is only half of the actual maximum length, but
4869     # we can't tell.
4870     while (test "X"`$CONFIG_SHELL $0 --fallback-echo "X$testring" 2>/dev/null` \
4871                = "XX$testring") >/dev/null 2>&1 &&
4872             new_result=`expr "X$testring" : ".*" 2>&1` &&
4873             lt_cv_sys_max_cmd_len=$new_result &&
4874             test $i != 17 # 1/2 MB should be enough
4875     do
4876       i=`expr $i + 1`
4877       testring=$testring$testring
4878     done
4879     testring=
4880     # Add a significant safety factor because C++ compilers can tack on massive
4881     # amounts of additional arguments before passing them to the linker.
4882     # It appears as though 1/2 is a usable value.
4883     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
4884     ;;
4885   esac
4886
4887 fi
4888
4889 if test -n $lt_cv_sys_max_cmd_len ; then
4890   echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
4891 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
4892 else
4893   echo "$as_me:$LINENO: result: none" >&5
4894 echo "${ECHO_T}none" >&6
4895 fi
4896
4897
4898
4899
4900 # Check for command to grab the raw symbol name followed by C symbol from nm.
4901 echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
4902 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
4903 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
4904   echo $ECHO_N "(cached) $ECHO_C" >&6
4905 else
4906
4907 # These are sane defaults that work on at least a few old systems.
4908 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
4909
4910 # Character class describing NM global symbol codes.
4911 symcode='[BCDEGRST]'
4912
4913 # Regexp to match symbols that can be accessed directly from C.
4914 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
4915
4916 # Transform the above into a raw symbol and a C symbol.
4917 symxfrm='\1 \2\3 \3'
4918
4919 # Transform an extracted symbol line into a proper C declaration
4920 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
4921
4922 # Transform an extracted symbol line into symbol name and symbol address
4923 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'"
4924
4925 # Define system-specific variables.
4926 case $host_os in
4927 aix*)
4928   symcode='[BCDT]'
4929   ;;
4930 cygwin* | mingw* | pw32*)
4931   symcode='[ABCDGISTW]'
4932   ;;
4933 hpux*) # Its linker distinguishes data from code symbols
4934   if test "$host_cpu" = ia64; then
4935     symcode='[ABCDEGRST]'
4936   fi
4937   lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
4938   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'"
4939   ;;
4940 irix* | nonstopux*)
4941   symcode='[BCDEGRST]'
4942   ;;
4943 osf*)
4944   symcode='[BCDEGQRST]'
4945   ;;
4946 solaris* | sysv5*)
4947   symcode='[BDT]'
4948   ;;
4949 sysv4)
4950   symcode='[DFNSTU]'
4951   ;;
4952 esac
4953
4954 # Handle CRLF in mingw tool chain
4955 opt_cr=
4956 case $build_os in
4957 mingw*)
4958   opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
4959   ;;
4960 esac
4961
4962 # If we're using GNU nm, then use its standard symbol codes.
4963 case `$NM -V 2>&1` in
4964 *GNU* | *'with BFD'*)
4965   symcode='[ABCDGISTW]' ;;
4966 esac
4967
4968 # Try without a prefix undercore, then with it.
4969 for ac_symprfx in "" "_"; do
4970
4971   # Write the raw and C identifiers.
4972   lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
4973
4974   # Check to see that the pipe works correctly.
4975   pipe_works=no
4976
4977   rm -f conftest*
4978   cat > conftest.$ac_ext <<EOF
4979 #ifdef __cplusplus
4980 extern "C" {
4981 #endif
4982 char nm_test_var;
4983 void nm_test_func(){}
4984 #ifdef __cplusplus
4985 }
4986 #endif
4987 int main(){nm_test_var='a';nm_test_func();return(0);}
4988 EOF
4989
4990   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4991   (eval $ac_compile) 2>&5
4992   ac_status=$?
4993   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4994   (exit $ac_status); }; then
4995     # Now try to grab the symbols.
4996     nlist=conftest.nm
4997     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
4998   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
4999   ac_status=$?
5000   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5001   (exit $ac_status); } && test -s "$nlist"; then
5002       # Try sorting and uniquifying the output.
5003       if sort "$nlist" | uniq > "$nlist"T; then
5004         mv -f "$nlist"T "$nlist"
5005       else
5006         rm -f "$nlist"T
5007       fi
5008
5009       # Make sure that we snagged all the symbols we need.
5010       if grep ' nm_test_var$' "$nlist" >/dev/null; then
5011         if grep ' nm_test_func$' "$nlist" >/dev/null; then
5012           cat <<EOF > conftest.$ac_ext
5013 #ifdef __cplusplus
5014 extern "C" {
5015 #endif
5016
5017 EOF
5018           # Now generate the symbol file.
5019           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
5020
5021           cat <<EOF >> conftest.$ac_ext
5022 #if defined (__STDC__) && __STDC__
5023 # define lt_ptr_t void *
5024 #else
5025 # define lt_ptr_t char *
5026 # define const
5027 #endif
5028
5029 /* The mapping between symbol names and symbols. */
5030 const struct {
5031   const char *name;
5032   lt_ptr_t address;
5033 }
5034 lt_preloaded_symbols[] =
5035 {
5036 EOF
5037           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
5038           cat <<\EOF >> conftest.$ac_ext
5039   {0, (lt_ptr_t) 0}
5040 };
5041
5042 #ifdef __cplusplus
5043 }
5044 #endif
5045 EOF
5046           # Now try linking the two files.
5047           mv conftest.$ac_objext conftstm.$ac_objext
5048           lt_save_LIBS="$LIBS"
5049           lt_save_CFLAGS="$CFLAGS"
5050           LIBS="conftstm.$ac_objext"
5051           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5052           if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5053   (eval $ac_link) 2>&5
5054   ac_status=$?
5055   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5056   (exit $ac_status); } && test -s conftest${ac_exeext}; then
5057             pipe_works=yes
5058           fi
5059           LIBS="$lt_save_LIBS"
5060           CFLAGS="$lt_save_CFLAGS"
5061         else
5062           echo "cannot find nm_test_func in $nlist" >&5
5063         fi
5064       else
5065         echo "cannot find nm_test_var in $nlist" >&5
5066       fi
5067     else
5068       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5069     fi
5070   else
5071     echo "$progname: failed program was:" >&5
5072     cat conftest.$ac_ext >&5
5073   fi
5074   rm -f conftest* conftst*
5075
5076   # Do not use the global_symbol_pipe unless it works.
5077   if test "$pipe_works" = yes; then
5078     break
5079   else
5080     lt_cv_sys_global_symbol_pipe=
5081   fi
5082 done
5083
5084 fi
5085
5086 if test -z "$lt_cv_sys_global_symbol_pipe"; then
5087   lt_cv_sys_global_symbol_to_cdecl=
5088 fi
5089 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5090   echo "$as_me:$LINENO: result: failed" >&5
5091 echo "${ECHO_T}failed" >&6
5092 else
5093   echo "$as_me:$LINENO: result: ok" >&5
5094 echo "${ECHO_T}ok" >&6
5095 fi
5096
5097 echo "$as_me:$LINENO: checking for objdir" >&5
5098 echo $ECHO_N "checking for objdir... $ECHO_C" >&6
5099 if test "${lt_cv_objdir+set}" = set; then
5100   echo $ECHO_N "(cached) $ECHO_C" >&6
5101 else
5102   rm -f .libs 2>/dev/null
5103 mkdir .libs 2>/dev/null
5104 if test -d .libs; then
5105   lt_cv_objdir=.libs
5106 else
5107   # MS-DOS does not allow filenames that begin with a dot.
5108   lt_cv_objdir=_libs
5109 fi
5110 rmdir .libs 2>/dev/null
5111 fi
5112 echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
5113 echo "${ECHO_T}$lt_cv_objdir" >&6
5114 objdir=$lt_cv_objdir
5115
5116
5117
5118
5119
5120 case $host_os in
5121 aix3*)
5122   # AIX sometimes has problems with the GCC collect2 program.  For some
5123   # reason, if we set the COLLECT_NAMES environment variable, the problems
5124   # vanish in a puff of smoke.
5125   if test "X${COLLECT_NAMES+set}" != Xset; then
5126     COLLECT_NAMES=
5127     export COLLECT_NAMES
5128   fi
5129   ;;
5130 esac
5131
5132 # Sed substitution that helps us do robust quoting.  It backslashifies
5133 # metacharacters that are still active within double-quoted strings.
5134 Xsed='sed -e s/^X//'
5135 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
5136
5137 # Same as above, but do not quote variable references.
5138 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
5139
5140 # Sed substitution to delay expansion of an escaped shell variable in a
5141 # double_quote_subst'ed string.
5142 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5143
5144 # Sed substitution to avoid accidental globbing in evaled expressions
5145 no_glob_subst='s/\*/\\\*/g'
5146
5147 # Constants:
5148 rm="rm -f"
5149
5150 # Global variables:
5151 default_ofile=mklib
5152 can_build_shared=yes
5153
5154 # All known linkers require a `.a' archive for static linking (except M$VC,
5155 # which needs '.lib').
5156 libext=a
5157 ltmain="$ac_aux_dir/ltmain.sh"
5158 ofile="$default_ofile"
5159 with_gnu_ld="$lt_cv_prog_gnu_ld"
5160
5161 if test -n "$ac_tool_prefix"; then
5162   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5163 set dummy ${ac_tool_prefix}ar; ac_word=$2
5164 echo "$as_me:$LINENO: checking for $ac_word" >&5
5165 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5166 if test "${ac_cv_prog_AR+set}" = set; then
5167   echo $ECHO_N "(cached) $ECHO_C" >&6
5168 else
5169   if test -n "$AR"; then
5170   ac_cv_prog_AR="$AR" # Let the user override the test.
5171 else
5172 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5173 for as_dir in $PATH
5174 do
5175   IFS=$as_save_IFS
5176   test -z "$as_dir" && as_dir=.
5177   for ac_exec_ext in '' $ac_executable_extensions; do
5178   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5179     ac_cv_prog_AR="${ac_tool_prefix}ar"
5180     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5181     break 2
5182   fi
5183 done
5184 done
5185
5186 fi
5187 fi
5188 AR=$ac_cv_prog_AR
5189 if test -n "$AR"; then
5190   echo "$as_me:$LINENO: result: $AR" >&5
5191 echo "${ECHO_T}$AR" >&6
5192 else
5193   echo "$as_me:$LINENO: result: no" >&5
5194 echo "${ECHO_T}no" >&6
5195 fi
5196
5197 fi
5198 if test -z "$ac_cv_prog_AR"; then
5199   ac_ct_AR=$AR
5200   # Extract the first word of "ar", so it can be a program name with args.
5201 set dummy ar; ac_word=$2
5202 echo "$as_me:$LINENO: checking for $ac_word" >&5
5203 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5204 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
5205   echo $ECHO_N "(cached) $ECHO_C" >&6
5206 else
5207   if test -n "$ac_ct_AR"; then
5208   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5209 else
5210 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5211 for as_dir in $PATH
5212 do
5213   IFS=$as_save_IFS
5214   test -z "$as_dir" && as_dir=.
5215   for ac_exec_ext in '' $ac_executable_extensions; do
5216   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5217     ac_cv_prog_ac_ct_AR="ar"
5218     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5219     break 2
5220   fi
5221 done
5222 done
5223
5224   test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
5225 fi
5226 fi
5227 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5228 if test -n "$ac_ct_AR"; then
5229   echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
5230 echo "${ECHO_T}$ac_ct_AR" >&6
5231 else
5232   echo "$as_me:$LINENO: result: no" >&5
5233 echo "${ECHO_T}no" >&6
5234 fi
5235
5236   AR=$ac_ct_AR
5237 else
5238   AR="$ac_cv_prog_AR"
5239 fi
5240
5241 if test -n "$ac_tool_prefix"; then
5242   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5243 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5244 echo "$as_me:$LINENO: checking for $ac_word" >&5
5245 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5246 if test "${ac_cv_prog_RANLIB+set}" = set; then
5247   echo $ECHO_N "(cached) $ECHO_C" >&6
5248 else
5249   if test -n "$RANLIB"; then
5250   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5251 else
5252 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5253 for as_dir in $PATH
5254 do
5255   IFS=$as_save_IFS
5256   test -z "$as_dir" && as_dir=.
5257   for ac_exec_ext in '' $ac_executable_extensions; do
5258   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5259     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5260     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5261     break 2
5262   fi
5263 done
5264 done
5265
5266 fi
5267 fi
5268 RANLIB=$ac_cv_prog_RANLIB
5269 if test -n "$RANLIB"; then
5270   echo "$as_me:$LINENO: result: $RANLIB" >&5
5271 echo "${ECHO_T}$RANLIB" >&6
5272 else
5273   echo "$as_me:$LINENO: result: no" >&5
5274 echo "${ECHO_T}no" >&6
5275 fi
5276
5277 fi
5278 if test -z "$ac_cv_prog_RANLIB"; then
5279   ac_ct_RANLIB=$RANLIB
5280   # Extract the first word of "ranlib", so it can be a program name with args.
5281 set dummy ranlib; ac_word=$2
5282 echo "$as_me:$LINENO: checking for $ac_word" >&5
5283 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5284 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5285   echo $ECHO_N "(cached) $ECHO_C" >&6
5286 else
5287   if test -n "$ac_ct_RANLIB"; then
5288   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5289 else
5290 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5291 for as_dir in $PATH
5292 do
5293   IFS=$as_save_IFS
5294   test -z "$as_dir" && as_dir=.
5295   for ac_exec_ext in '' $ac_executable_extensions; do
5296   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5297     ac_cv_prog_ac_ct_RANLIB="ranlib"
5298     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5299     break 2
5300   fi
5301 done
5302 done
5303
5304   test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
5305 fi
5306 fi
5307 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5308 if test -n "$ac_ct_RANLIB"; then
5309   echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5310 echo "${ECHO_T}$ac_ct_RANLIB" >&6
5311 else
5312   echo "$as_me:$LINENO: result: no" >&5
5313 echo "${ECHO_T}no" >&6
5314 fi
5315
5316   RANLIB=$ac_ct_RANLIB
5317 else
5318   RANLIB="$ac_cv_prog_RANLIB"
5319 fi
5320
5321 if test -n "$ac_tool_prefix"; then
5322   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5323 set dummy ${ac_tool_prefix}strip; ac_word=$2
5324 echo "$as_me:$LINENO: checking for $ac_word" >&5
5325 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5326 if test "${ac_cv_prog_STRIP+set}" = set; then
5327   echo $ECHO_N "(cached) $ECHO_C" >&6
5328 else
5329   if test -n "$STRIP"; then
5330   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5331 else
5332 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5333 for as_dir in $PATH
5334 do
5335   IFS=$as_save_IFS
5336   test -z "$as_dir" && as_dir=.
5337   for ac_exec_ext in '' $ac_executable_extensions; do
5338   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5339     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5340     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5341     break 2
5342   fi
5343 done
5344 done
5345
5346 fi
5347 fi
5348 STRIP=$ac_cv_prog_STRIP
5349 if test -n "$STRIP"; then
5350   echo "$as_me:$LINENO: result: $STRIP" >&5
5351 echo "${ECHO_T}$STRIP" >&6
5352 else
5353   echo "$as_me:$LINENO: result: no" >&5
5354 echo "${ECHO_T}no" >&6
5355 fi
5356
5357 fi
5358 if test -z "$ac_cv_prog_STRIP"; then
5359   ac_ct_STRIP=$STRIP
5360   # Extract the first word of "strip", so it can be a program name with args.
5361 set dummy strip; ac_word=$2
5362 echo "$as_me:$LINENO: checking for $ac_word" >&5
5363 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5364 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
5365   echo $ECHO_N "(cached) $ECHO_C" >&6
5366 else
5367   if test -n "$ac_ct_STRIP"; then
5368   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5369 else
5370 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5371 for as_dir in $PATH
5372 do
5373   IFS=$as_save_IFS
5374   test -z "$as_dir" && as_dir=.
5375   for ac_exec_ext in '' $ac_executable_extensions; do
5376   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5377     ac_cv_prog_ac_ct_STRIP="strip"
5378     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5379     break 2
5380   fi
5381 done
5382 done
5383
5384   test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
5385 fi
5386 fi
5387 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5388 if test -n "$ac_ct_STRIP"; then
5389   echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
5390 echo "${ECHO_T}$ac_ct_STRIP" >&6
5391 else
5392   echo "$as_me:$LINENO: result: no" >&5
5393 echo "${ECHO_T}no" >&6
5394 fi
5395
5396   STRIP=$ac_ct_STRIP
5397 else
5398   STRIP="$ac_cv_prog_STRIP"
5399 fi
5400
5401
5402 old_CC="$CC"
5403 old_CFLAGS="$CFLAGS"
5404
5405 # Set sane defaults for various variables
5406 test -z "$AR" && AR=ar
5407 test -z "$AR_FLAGS" && AR_FLAGS=cru
5408 test -z "$AS" && AS=as
5409 test -z "$CC" && CC=cc
5410 test -z "$LTCC" && LTCC=$CC
5411 test -z "$DLLTOOL" && DLLTOOL=dlltool
5412 test -z "$LD" && LD=ld
5413 test -z "$LN_S" && LN_S="ln -s"
5414 test -z "$MAGIC_CMD" && MAGIC_CMD=file
5415 test -z "$NM" && NM=nm
5416 test -z "$SED" && SED=sed
5417 test -z "$OBJDUMP" && OBJDUMP=objdump
5418 test -z "$RANLIB" && RANLIB=:
5419 test -z "$STRIP" && STRIP=:
5420 test -z "$ac_objext" && ac_objext=o
5421
5422 # Determine commands to create old-style static archives.
5423 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
5424 old_postinstall_cmds='chmod 644 $oldlib'
5425 old_postuninstall_cmds=
5426
5427 if test -n "$RANLIB"; then
5428   case $host_os in
5429   openbsd*)
5430     old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
5431     ;;
5432   *)
5433     old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
5434     ;;
5435   esac
5436   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
5437 fi
5438
5439 # Only perform the check for file, if the check method requires it
5440 case $deplibs_check_method in
5441 file_magic*)
5442   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
5443     echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
5444 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
5445 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
5446   echo $ECHO_N "(cached) $ECHO_C" >&6
5447 else
5448   case $MAGIC_CMD in
5449 [\\/*] |  ?:[\\/]*)
5450   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
5451   ;;
5452 *)
5453   lt_save_MAGIC_CMD="$MAGIC_CMD"
5454   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5455   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
5456   for ac_dir in $ac_dummy; do
5457     IFS="$lt_save_ifs"
5458     test -z "$ac_dir" && ac_dir=.
5459     if test -f $ac_dir/${ac_tool_prefix}file; then
5460       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
5461       if test -n "$file_magic_test_file"; then
5462         case $deplibs_check_method in
5463         "file_magic "*)
5464           file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
5465           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5466           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
5467             $EGREP "$file_magic_regex" > /dev/null; then
5468             :
5469           else
5470             cat <<EOF 1>&2
5471
5472 *** Warning: the command libtool uses to detect shared libraries,
5473 *** $file_magic_cmd, produces output that libtool cannot recognize.
5474 *** The result is that libtool may fail to recognize shared libraries
5475 *** as such.  This will affect the creation of libtool libraries that
5476 *** depend on shared libraries, but programs linked with such libtool
5477 *** libraries will work regardless of this problem.  Nevertheless, you
5478 *** may want to report the problem to your system manager and/or to
5479 *** bug-libtool@gnu.org
5480
5481 EOF
5482           fi ;;
5483         esac
5484       fi
5485       break
5486     fi
5487   done
5488   IFS="$lt_save_ifs"
5489   MAGIC_CMD="$lt_save_MAGIC_CMD"
5490   ;;
5491 esac
5492 fi
5493
5494 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5495 if test -n "$MAGIC_CMD"; then
5496   echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
5497 echo "${ECHO_T}$MAGIC_CMD" >&6
5498 else
5499   echo "$as_me:$LINENO: result: no" >&5
5500 echo "${ECHO_T}no" >&6
5501 fi
5502
5503 if test -z "$lt_cv_path_MAGIC_CMD"; then
5504   if test -n "$ac_tool_prefix"; then
5505     echo "$as_me:$LINENO: checking for file" >&5
5506 echo $ECHO_N "checking for file... $ECHO_C" >&6
5507 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
5508   echo $ECHO_N "(cached) $ECHO_C" >&6
5509 else
5510   case $MAGIC_CMD in
5511 [\\/*] |  ?:[\\/]*)
5512   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
5513   ;;
5514 *)
5515   lt_save_MAGIC_CMD="$MAGIC_CMD"
5516   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5517   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
5518   for ac_dir in $ac_dummy; do
5519     IFS="$lt_save_ifs"
5520     test -z "$ac_dir" && ac_dir=.
5521     if test -f $ac_dir/file; then
5522       lt_cv_path_MAGIC_CMD="$ac_dir/file"
5523       if test -n "$file_magic_test_file"; then
5524         case $deplibs_check_method in
5525         "file_magic "*)
5526           file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
5527           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5528           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
5529             $EGREP "$file_magic_regex" > /dev/null; then
5530             :
5531           else
5532             cat <<EOF 1>&2
5533
5534 *** Warning: the command libtool uses to detect shared libraries,
5535 *** $file_magic_cmd, produces output that libtool cannot recognize.
5536 *** The result is that libtool may fail to recognize shared libraries
5537 *** as such.  This will affect the creation of libtool libraries that
5538 *** depend on shared libraries, but programs linked with such libtool
5539 *** libraries will work regardless of this problem.  Nevertheless, you
5540 *** may want to report the problem to your system manager and/or to
5541 *** bug-libtool@gnu.org
5542
5543 EOF
5544           fi ;;
5545         esac
5546       fi
5547       break
5548     fi
5549   done
5550   IFS="$lt_save_ifs"
5551   MAGIC_CMD="$lt_save_MAGIC_CMD"
5552   ;;
5553 esac
5554 fi
5555
5556 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5557 if test -n "$MAGIC_CMD"; then
5558   echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
5559 echo "${ECHO_T}$MAGIC_CMD" >&6
5560 else
5561   echo "$as_me:$LINENO: result: no" >&5
5562 echo "${ECHO_T}no" >&6
5563 fi
5564
5565   else
5566     MAGIC_CMD=:
5567   fi
5568 fi
5569
5570   fi
5571   ;;
5572 esac
5573
5574 enable_dlopen=no
5575 enable_win32_dll=no
5576
5577 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
5578 if test "${enable_libtool_lock+set}" = set; then
5579   enableval="$enable_libtool_lock"
5580
5581 fi;
5582 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
5583
5584
5585 # Check whether --with-pic or --without-pic was given.
5586 if test "${with_pic+set}" = set; then
5587   withval="$with_pic"
5588   pic_mode="$withval"
5589 else
5590   pic_mode=default
5591 fi;
5592 test -z "$pic_mode" && pic_mode=default
5593
5594 # Use C for the default configuration in the libtool script
5595 tagname=
5596 lt_save_CC="$CC"
5597 ac_ext=c
5598 ac_cpp='$CPP $CPPFLAGS'
5599 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5600 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5601 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5602
5603
5604 # Source file extension for C test sources.
5605 ac_ext=c
5606
5607 # Object file extension for compiled C test sources.
5608 objext=o
5609 objext=$objext
5610
5611 # Code to be used in simple compile tests
5612 lt_simple_compile_test_code="int some_variable = 0;\n"
5613
5614 # Code to be used in simple link tests
5615 lt_simple_link_test_code='int main(){return(0);}\n'
5616
5617
5618 # If no C compiler was specified, use CC.
5619 LTCC=${LTCC-"$CC"}
5620
5621 # Allow CC to be a program name with arguments.
5622 compiler=$CC
5623
5624
5625 #
5626 # Check for any special shared library compilation flags.
5627 #
5628 lt_prog_cc_shlib=
5629 if test "$GCC" = no; then
5630   case $host_os in
5631   sco3.2v5*)
5632     lt_prog_cc_shlib='-belf'
5633     ;;
5634   esac
5635 fi
5636 if test -n "$lt_prog_cc_shlib"; then
5637   { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5
5638 echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;}
5639   if echo "$old_CC $old_CFLAGS " | grep "[      ]$lt_prog_cc_shlib[     ]" >/dev/null; then :
5640   else
5641     { echo "$as_me:$LINENO: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
5642 echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
5643     lt_cv_prog_cc_can_build_shared=no
5644   fi
5645 fi
5646
5647
5648 #
5649 # Check to make sure the static flag actually works.
5650 #
5651 echo "$as_me:$LINENO: checking if $compiler static flag $lt_prog_compiler_static works" >&5
5652 echo $ECHO_N "checking if $compiler static flag $lt_prog_compiler_static works... $ECHO_C" >&6
5653 if test "${lt_prog_compiler_static_works+set}" = set; then
5654   echo $ECHO_N "(cached) $ECHO_C" >&6
5655 else
5656   lt_prog_compiler_static_works=no
5657    save_LDFLAGS="$LDFLAGS"
5658    LDFLAGS="$LDFLAGS $lt_prog_compiler_static"
5659    printf "$lt_simple_link_test_code" > conftest.$ac_ext
5660    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
5661      # The compiler can only warn and ignore the option if not recognized
5662      # So say no if there are warnings
5663      if test -s conftest.err; then
5664        # Append any errors to the config.log.
5665        cat conftest.err 1>&5
5666      else
5667        lt_prog_compiler_static_works=yes
5668      fi
5669    fi
5670    $rm conftest*
5671    LDFLAGS="$save_LDFLAGS"
5672
5673 fi
5674 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
5675 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
5676
5677 if test x"$lt_prog_compiler_static_works" = xyes; then
5678     :
5679 else
5680     lt_prog_compiler_static=
5681 fi
5682
5683
5684
5685 ## CAVEAT EMPTOR:
5686 ## There is no encapsulation within the following macros, do not change
5687 ## the running order or otherwise move them around unless you know exactly
5688 ## what you are doing...
5689
5690 lt_prog_compiler_no_builtin_flag=
5691
5692 if test "$GCC" = yes; then
5693   lt_prog_compiler_no_builtin_flag=' -fno-builtin'
5694
5695   echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
5696 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
5697 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
5698   echo $ECHO_N "(cached) $ECHO_C" >&6
5699 else
5700   lt_cv_prog_compiler_rtti_exceptions=no
5701   ac_outfile=conftest.$ac_objext
5702    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
5703    lt_compiler_flag="-fno-rtti -fno-exceptions"
5704    # Insert the option either (1) after the last *FLAGS variable, or
5705    # (2) before a word containing "conftest.", or (3) at the end.
5706    # Note that $ac_compile itself does not contain backslashes and begins
5707    # with a dollar sign (not a hyphen), so the echo should work correctly.
5708    # The option is referenced via a variable to avoid confusing sed.
5709    lt_compile=`echo "$ac_compile" | $SED \
5710    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
5711    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
5712    -e 's:$: $lt_compiler_flag:'`
5713    (eval echo "\"\$as_me:5713: $lt_compile\"" >&5)
5714    (eval "$lt_compile" 2>conftest.err)
5715    ac_status=$?
5716    cat conftest.err >&5
5717    echo "$as_me:5717: \$? = $ac_status" >&5
5718    if (exit $ac_status) && test -s "$ac_outfile"; then
5719      # The compiler can only warn and ignore the option if not recognized
5720      # So say no if there are warnings
5721      if test ! -s conftest.err; then
5722        lt_cv_prog_compiler_rtti_exceptions=yes
5723      fi
5724    fi
5725    $rm conftest*
5726
5727 fi
5728 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
5729 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
5730
5731 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
5732     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
5733 else
5734     :
5735 fi
5736
5737 fi
5738
5739 lt_prog_compiler_wl=
5740 lt_prog_compiler_pic=
5741 lt_prog_compiler_static=
5742
5743 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
5744 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
5745
5746   if test "$GCC" = yes; then
5747     lt_prog_compiler_wl='-Wl,'
5748     lt_prog_compiler_static='-static'
5749
5750     case $host_os in
5751       aix*)
5752       # All AIX code is PIC.
5753       if test "$host_cpu" = ia64; then
5754         # AIX 5 now supports IA64 processor
5755         lt_prog_compiler_static='-Bstatic'
5756       fi
5757       ;;
5758
5759     amigaos*)
5760       # FIXME: we need at least 68020 code to build shared libraries, but
5761       # adding the `-m68020' flag to GCC prevents building anything better,
5762       # like `-m68040'.
5763       lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
5764       ;;
5765
5766     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
5767       # PIC is the default for these OSes.
5768       ;;
5769
5770     mingw* | pw32* | os2*)
5771       # This hack is so that the source file can tell whether it is being
5772       # built for inclusion in a dll (and should export symbols for example).
5773       lt_prog_compiler_pic='-DDLL_EXPORT'
5774       ;;
5775
5776     darwin* | rhapsody*)
5777       # PIC is the default on this platform
5778       # Common symbols not allowed in MH_DYLIB files
5779       lt_prog_compiler_pic='-fno-common'
5780       ;;
5781
5782     msdosdjgpp*)
5783       # Just because we use GCC doesn't mean we suddenly get shared libraries
5784       # on systems that don't support them.
5785       lt_prog_compiler_can_build_shared=no
5786       enable_shared=no
5787       ;;
5788
5789     sysv4*MP*)
5790       if test -d /usr/nec; then
5791         lt_prog_compiler_pic=-Kconform_pic
5792       fi
5793       ;;
5794
5795     hpux*)
5796       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
5797       # not for PA HP-UX.
5798       case "$host_cpu" in
5799       hppa*64*|ia64*)
5800         # +Z the default
5801         ;;
5802       *)
5803         lt_prog_compiler_pic='-fPIC'
5804         ;;
5805       esac
5806       ;;
5807
5808     *)
5809       lt_prog_compiler_pic='-fPIC'
5810       ;;
5811     esac
5812   else
5813     # PORTME Check for flag to pass linker flags through the system compiler.
5814     case $host_os in
5815     aix*)
5816       lt_prog_compiler_wl='-Wl,'
5817       if test "$host_cpu" = ia64; then
5818         # AIX 5 now supports IA64 processor
5819         lt_prog_compiler_static='-Bstatic'
5820       else
5821         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
5822       fi
5823       ;;
5824
5825     mingw* | pw32* | os2*)
5826       # This hack is so that the source file can tell whether it is being
5827       # built for inclusion in a dll (and should export symbols for example).
5828       lt_prog_compiler_pic='-DDLL_EXPORT'
5829       ;;
5830
5831     hpux9* | hpux10* | hpux11*)
5832       lt_prog_compiler_wl='-Wl,'
5833       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
5834       # not for PA HP-UX.
5835       case "$host_cpu" in
5836       hppa*64*|ia64*)
5837         # +Z the default
5838         ;;
5839       *)
5840         lt_prog_compiler_pic='+Z'
5841         ;;
5842       esac
5843       # Is there a better lt_prog_compiler_static that works with the bundled CC?
5844       lt_prog_compiler_static='${wl}-a ${wl}archive'
5845       ;;
5846
5847     irix5* | irix6* | nonstopux*)
5848       lt_prog_compiler_wl='-Wl,'
5849       # PIC (with -KPIC) is the default.
5850       lt_prog_compiler_static='-non_shared'
5851       ;;
5852
5853     newsos6)
5854       lt_prog_compiler_pic='-KPIC'
5855       lt_prog_compiler_static='-Bstatic'
5856       ;;
5857
5858     linux*)
5859       case $CC in
5860       icc|ecc)
5861         lt_prog_compiler_wl='-Wl,'
5862         lt_prog_compiler_pic='-KPIC'
5863         lt_prog_compiler_static='-static'
5864         ;;
5865       ccc)
5866         lt_prog_compiler_wl='-Wl,'
5867         # All Alpha code is PIC.
5868         lt_prog_compiler_static='-non_shared'
5869         ;;
5870       esac
5871       ;;
5872
5873     osf3* | osf4* | osf5*)
5874       lt_prog_compiler_wl='-Wl,'
5875       # All OSF/1 code is PIC.
5876       lt_prog_compiler_static='-non_shared'
5877       ;;
5878
5879     sco3.2v5*)
5880       lt_prog_compiler_pic='-Kpic'
5881       lt_prog_compiler_static='-dn'
5882       ;;
5883
5884     solaris*)
5885       lt_prog_compiler_wl='-Wl,'
5886       lt_prog_compiler_pic='-KPIC'
5887       lt_prog_compiler_static='-Bstatic'
5888       ;;
5889
5890     sunos4*)
5891       lt_prog_compiler_wl='-Qoption ld '
5892       lt_prog_compiler_pic='-PIC'
5893       lt_prog_compiler_static='-Bstatic'
5894       ;;
5895
5896     sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
5897       lt_prog_compiler_wl='-Wl,'
5898       lt_prog_compiler_pic='-KPIC'
5899       lt_prog_compiler_static='-Bstatic'
5900       ;;
5901
5902     sysv4*MP*)
5903       if test -d /usr/nec ;then
5904         lt_prog_compiler_pic='-Kconform_pic'
5905         lt_prog_compiler_static='-Bstatic'
5906       fi
5907       ;;
5908
5909     uts4*)
5910       lt_prog_compiler_pic='-pic'
5911       lt_prog_compiler_static='-Bstatic'
5912       ;;
5913
5914     *)
5915       lt_prog_compiler_can_build_shared=no
5916       ;;
5917     esac
5918   fi
5919
5920 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
5921 echo "${ECHO_T}$lt_prog_compiler_pic" >&6
5922
5923 #
5924 # Check to make sure the PIC flag actually works.
5925 #
5926 if test -n "$lt_prog_compiler_pic"; then
5927   echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
5928 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
5929 if test "${lt_prog_compiler_pic_works+set}" = set; then
5930   echo $ECHO_N "(cached) $ECHO_C" >&6
5931 else
5932   lt_prog_compiler_pic_works=no
5933   ac_outfile=conftest.$ac_objext
5934    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
5935    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
5936    # Insert the option either (1) after the last *FLAGS variable, or
5937    # (2) before a word containing "conftest.", or (3) at the end.
5938    # Note that $ac_compile itself does not contain backslashes and begins
5939    # with a dollar sign (not a hyphen), so the echo should work correctly.
5940    # The option is referenced via a variable to avoid confusing sed.
5941    lt_compile=`echo "$ac_compile" | $SED \
5942    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
5943    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
5944    -e 's:$: $lt_compiler_flag:'`
5945    (eval echo "\"\$as_me:5945: $lt_compile\"" >&5)
5946    (eval "$lt_compile" 2>conftest.err)
5947    ac_status=$?
5948    cat conftest.err >&5
5949    echo "$as_me:5949: \$? = $ac_status" >&5
5950    if (exit $ac_status) && test -s "$ac_outfile"; then
5951      # The compiler can only warn and ignore the option if not recognized
5952      # So say no if there are warnings
5953      if test ! -s conftest.err; then
5954        lt_prog_compiler_pic_works=yes
5955      fi
5956    fi
5957    $rm conftest*
5958
5959 fi
5960 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
5961 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
5962
5963 if test x"$lt_prog_compiler_pic_works" = xyes; then
5964     case $lt_prog_compiler_pic in
5965      "" | " "*) ;;
5966      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
5967      esac
5968 else
5969     lt_prog_compiler_pic=
5970      lt_prog_compiler_can_build_shared=no
5971 fi
5972
5973 fi
5974 case "$host_os" in
5975   # For platforms which do not support PIC, -DPIC is meaningless:
5976   *djgpp*)
5977     lt_prog_compiler_pic=
5978     ;;
5979   *)
5980     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
5981     ;;
5982 esac
5983
5984 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
5985 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
5986 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
5987   echo $ECHO_N "(cached) $ECHO_C" >&6
5988 else
5989   lt_cv_prog_compiler_c_o=no
5990    $rm -r conftest 2>/dev/null
5991    mkdir conftest
5992    cd conftest
5993    mkdir out
5994    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
5995
5996    # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
5997    # that will create temporary files in the current directory regardless of
5998    # the output directory.  Thus, making CWD read-only will cause this test
5999    # to fail, enabling locking or at least warning the user not to do parallel
6000    # builds.
6001    chmod -w .
6002
6003    lt_compiler_flag="-o out/conftest2.$ac_objext"
6004    # Insert the option either (1) after the last *FLAGS variable, or
6005    # (2) before a word containing "conftest.", or (3) at the end.
6006    # Note that $ac_compile itself does not contain backslashes and begins
6007    # with a dollar sign (not a hyphen), so the echo should work correctly.
6008    lt_compile=`echo "$ac_compile" | $SED \
6009    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
6010    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6011    -e 's:$: $lt_compiler_flag:'`
6012    (eval echo "\"\$as_me:6012: $lt_compile\"" >&5)
6013    (eval "$lt_compile" 2>out/conftest.err)
6014    ac_status=$?
6015    cat out/conftest.err >&5
6016    echo "$as_me:6016: \$? = $ac_status" >&5
6017    if (exit $ac_status) && test -s out/conftest2.$ac_objext
6018    then
6019      # The compiler can only warn and ignore the option if not recognized
6020      # So say no if there are warnings
6021      if test ! -s out/conftest.err; then
6022        lt_cv_prog_compiler_c_o=yes
6023      fi
6024    fi
6025    chmod u+w .
6026    $rm conftest* out/*
6027    rmdir out
6028    cd ..
6029    rmdir conftest
6030    $rm conftest*
6031
6032 fi
6033 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
6034 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
6035
6036
6037 hard_links="nottested"
6038 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
6039   # do not overwrite the value of need_locks provided by the user
6040   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
6041 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
6042   hard_links=yes
6043   $rm conftest*
6044   ln conftest.a conftest.b 2>/dev/null && hard_links=no
6045   touch conftest.a
6046   ln conftest.a conftest.b 2>&5 || hard_links=no
6047   ln conftest.a conftest.b 2>/dev/null && hard_links=no
6048   echo "$as_me:$LINENO: result: $hard_links" >&5
6049 echo "${ECHO_T}$hard_links" >&6
6050   if test "$hard_links" = no; then
6051     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
6052 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
6053     need_locks=warn
6054   fi
6055 else
6056   need_locks=no
6057 fi
6058
6059 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
6060 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
6061
6062   runpath_var=
6063   allow_undefined_flag=
6064   enable_shared_with_static_runtimes=no
6065   archive_cmds=
6066   archive_expsym_cmds=
6067   old_archive_From_new_cmds=
6068   old_archive_from_expsyms_cmds=
6069   export_dynamic_flag_spec=
6070   whole_archive_flag_spec=
6071   thread_safe_flag_spec=
6072   hardcode_libdir_flag_spec=
6073   hardcode_libdir_flag_spec_ld=
6074   hardcode_libdir_separator=
6075   hardcode_direct=no
6076   hardcode_minus_L=no
6077   hardcode_shlibpath_var=unsupported
6078   link_all_deplibs=unknown
6079   hardcode_automatic=no
6080   module_cmds=
6081   module_expsym_cmds=
6082   always_export_symbols=no
6083   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
6084   # include_expsyms should be a list of space-separated symbols to be *always*
6085   # included in the symbol list
6086   include_expsyms=
6087   # exclude_expsyms can be an extended regexp of symbols to exclude
6088   # it will be wrapped by ` (' and `)$', so one must not match beginning or
6089   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
6090   # as well as any symbol that contains `d'.
6091   exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
6092   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
6093   # platforms (ab)use it in PIC code, but their linkers get confused if
6094   # the symbol is explicitly referenced.  Since portable code cannot
6095   # rely on this symbol name, it's probably fine to never include it in
6096   # preloaded symbol tables.
6097   extract_expsyms_cmds=
6098
6099   case $host_os in
6100   cygwin* | mingw* | pw32*)
6101     # FIXME: the MSVC++ port hasn't been tested in a loooong time
6102     # When not using gcc, we currently assume that we are using
6103     # Microsoft Visual C++.
6104     if test "$GCC" != yes; then
6105       with_gnu_ld=no
6106     fi
6107     ;;
6108   openbsd*)
6109     with_gnu_ld=no
6110     ;;
6111   esac
6112
6113   ld_shlibs=yes
6114   if test "$with_gnu_ld" = yes; then
6115     # If archive_cmds runs LD, not CC, wlarc should be empty
6116     wlarc='${wl}'
6117
6118     # See if GNU ld supports shared libraries.
6119     case $host_os in
6120     aix3* | aix4* | aix5*)
6121       # On AIX/PPC, the GNU linker is very broken
6122       if test "$host_cpu" != ia64; then
6123         ld_shlibs=no
6124         cat <<EOF 1>&2
6125
6126 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
6127 *** to be unable to reliably create shared libraries on AIX.
6128 *** Therefore, libtool is disabling shared libraries support.  If you
6129 *** really care for shared libraries, you may want to modify your PATH
6130 *** so that a non-GNU linker is found, and then restart.
6131
6132 EOF
6133       fi
6134       ;;
6135
6136     amigaos*)
6137       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)'
6138       hardcode_libdir_flag_spec='-L$libdir'
6139       hardcode_minus_L=yes
6140
6141       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
6142       # that the semantics of dynamic libraries on AmigaOS, at least up
6143       # to version 4, is to share data among multiple programs linked
6144       # with the same dynamic library.  Since this doesn't match the
6145       # behavior of shared libraries on other platforms, we can't use
6146       # them.
6147       ld_shlibs=no
6148       ;;
6149
6150     beos*)
6151       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6152         allow_undefined_flag=unsupported
6153         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
6154         # support --undefined.  This deserves some investigation.  FIXME
6155         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6156       else
6157         ld_shlibs=no
6158       fi
6159       ;;
6160
6161     cygwin* | mingw* | pw32*)
6162       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
6163       # as there is no search path for DLLs.
6164       hardcode_libdir_flag_spec='-L$libdir'
6165       allow_undefined_flag=unsupported
6166       always_export_symbols=no
6167       enable_shared_with_static_runtimes=yes
6168       export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
6169
6170       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
6171         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
6172         # If the export-symbols file already is a .def file (1st line
6173         # is EXPORTS), use it as is; otherwise, prepend...
6174         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
6175           cp $export_symbols $output_objdir/$soname.def;
6176         else
6177           echo EXPORTS > $output_objdir/$soname.def;
6178           cat $export_symbols >> $output_objdir/$soname.def;
6179         fi~
6180         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
6181       else
6182         ld_shlibs=no
6183       fi
6184       ;;
6185
6186     netbsd*)
6187       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6188         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
6189         wlarc=
6190       else
6191         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6192         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6193       fi
6194       ;;
6195
6196     solaris* | sysv5*)
6197       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
6198         ld_shlibs=no
6199         cat <<EOF 1>&2
6200
6201 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
6202 *** create shared libraries on Solaris systems.  Therefore, libtool
6203 *** is disabling shared libraries support.  We urge you to upgrade GNU
6204 *** binutils to release 2.9.1 or newer.  Another option is to modify
6205 *** your PATH or compiler configuration so that the native linker is
6206 *** used, and then restart.
6207
6208 EOF
6209       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6210         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6211         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6212       else
6213         ld_shlibs=no
6214       fi
6215       ;;
6216
6217     sunos4*)
6218       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6219       wlarc=
6220       hardcode_direct=yes
6221       hardcode_shlibpath_var=no
6222       ;;
6223
6224     *)
6225       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6226         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6227         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6228       else
6229         ld_shlibs=no
6230       fi
6231       ;;
6232     esac
6233
6234     if test "$ld_shlibs" = yes; then
6235       runpath_var=LD_RUN_PATH
6236       hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
6237       export_dynamic_flag_spec='${wl}--export-dynamic'
6238       # ancient GNU ld didn't support --whole-archive et. al.
6239       if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
6240         whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
6241       else
6242         whole_archive_flag_spec=
6243       fi
6244     fi
6245   else
6246     # PORTME fill in a description of your system's linker (not GNU ld)
6247     case $host_os in
6248     aix3*)
6249       allow_undefined_flag=unsupported
6250       always_export_symbols=yes
6251       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'
6252       # Note: this linker hardcodes the directories in LIBPATH if there
6253       # are no directories specified by -L.
6254       hardcode_minus_L=yes
6255       if test "$GCC" = yes && test -z "$link_static_flag"; then
6256         # Neither direct hardcoding nor static linking is supported with a
6257         # broken collect2.
6258         hardcode_direct=unsupported
6259       fi
6260       ;;
6261
6262     aix4* | aix5*)
6263       if test "$host_cpu" = ia64; then
6264         # On IA64, the linker does run time linking by default, so we don't
6265         # have to do anything special.
6266         aix_use_runtimelinking=no
6267         exp_sym_flag='-Bexport'
6268         no_entry_flag=""
6269       else
6270         # If we're using GNU nm, then we don't want the "-C" option.
6271         # -C means demangle to AIX nm, but means don't demangle with GNU nm
6272         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
6273           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'
6274         else
6275           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'
6276         fi
6277         aix_use_runtimelinking=no
6278
6279         # Test if we are trying to use run time linking or normal
6280         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
6281         # need to do runtime linking.
6282         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
6283           for ld_flag in $LDFLAGS; do
6284           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
6285             aix_use_runtimelinking=yes
6286             break
6287           fi
6288           done
6289         esac
6290
6291         exp_sym_flag='-bexport'
6292         no_entry_flag='-bnoentry'
6293       fi
6294
6295       # When large executables or shared objects are built, AIX ld can
6296       # have problems creating the table of contents.  If linking a library
6297       # or program results in "error TOC overflow" add -mminimal-toc to
6298       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
6299       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
6300
6301       archive_cmds=''
6302       hardcode_direct=yes
6303       hardcode_libdir_separator=':'
6304       link_all_deplibs=yes
6305
6306       if test "$GCC" = yes; then
6307         case $host_os in aix4.012|aix4.012.*)
6308         # We only want to do this on AIX 4.2 and lower, the check
6309         # below for broken collect2 doesn't work under 4.3+
6310           collect2name=`${CC} -print-prog-name=collect2`
6311           if test -f "$collect2name" && \
6312            strings "$collect2name" | grep resolve_lib_name >/dev/null
6313           then
6314           # We have reworked collect2
6315           hardcode_direct=yes
6316           else
6317           # We have old collect2
6318           hardcode_direct=unsupported
6319           # It fails to find uninstalled libraries when the uninstalled
6320           # path is not listed in the libpath.  Setting hardcode_minus_L
6321           # to unsupported forces relinking
6322           hardcode_minus_L=yes
6323           hardcode_libdir_flag_spec='-L$libdir'
6324           hardcode_libdir_separator=
6325           fi
6326         esac
6327         shared_flag='-shared'
6328       else
6329         # not using gcc
6330         if test "$host_cpu" = ia64; then
6331         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
6332         # chokes on -Wl,-G. The following line is correct:
6333           shared_flag='-G'
6334         else
6335         if test "$aix_use_runtimelinking" = yes; then
6336             shared_flag='${wl}-G'
6337           else
6338             shared_flag='${wl}-bM:SRE'
6339         fi
6340         fi
6341       fi
6342
6343       # It seems that -bexpall does not export symbols beginning with
6344       # underscore (_), so it is better to generate a list of symbols to export.
6345       always_export_symbols=yes
6346       if test "$aix_use_runtimelinking" = yes; then
6347         # Warning - without using the other runtime loading flags (-brtl),
6348         # -berok will link without error, but may produce a broken library.
6349         allow_undefined_flag='-berok'
6350        # Determine the default libpath from the value encoded in an empty executable.
6351        cat >conftest.$ac_ext <<_ACEOF
6352 #line $LINENO "configure"
6353 /* confdefs.h.  */
6354 _ACEOF
6355 cat confdefs.h >>conftest.$ac_ext
6356 cat >>conftest.$ac_ext <<_ACEOF
6357 /* end confdefs.h.  */
6358
6359 int
6360 main ()
6361 {
6362
6363   ;
6364   return 0;
6365 }
6366 _ACEOF
6367 rm -f conftest.$ac_objext conftest$ac_exeext
6368 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6369   (eval $ac_link) 2>&5
6370   ac_status=$?
6371   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6372   (exit $ac_status); } &&
6373          { ac_try='test -s conftest$ac_exeext'
6374   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6375   (eval $ac_try) 2>&5
6376   ac_status=$?
6377   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6378   (exit $ac_status); }; }; then
6379
6380 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
6381 }'`
6382 # Check for a 64-bit object if we didn't find anything.
6383 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; }
6384 }'`; fi
6385 else
6386   echo "$as_me: failed program was:" >&5
6387 sed 's/^/| /' conftest.$ac_ext >&5
6388
6389 fi
6390 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6391 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
6392
6393        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
6394         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"
6395        else
6396         if test "$host_cpu" = ia64; then
6397           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
6398           allow_undefined_flag="-z nodefs"
6399           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"
6400         else
6401          # Determine the default libpath from the value encoded in an empty executable.
6402          cat >conftest.$ac_ext <<_ACEOF
6403 #line $LINENO "configure"
6404 /* confdefs.h.  */
6405 _ACEOF
6406 cat confdefs.h >>conftest.$ac_ext
6407 cat >>conftest.$ac_ext <<_ACEOF
6408 /* end confdefs.h.  */
6409
6410 int
6411 main ()
6412 {
6413
6414   ;
6415   return 0;
6416 }
6417 _ACEOF
6418 rm -f conftest.$ac_objext conftest$ac_exeext
6419 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6420   (eval $ac_link) 2>&5
6421   ac_status=$?
6422   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6423   (exit $ac_status); } &&
6424          { ac_try='test -s conftest$ac_exeext'
6425   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6426   (eval $ac_try) 2>&5
6427   ac_status=$?
6428   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6429   (exit $ac_status); }; }; then
6430
6431 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
6432 }'`
6433 # Check for a 64-bit object if we didn't find anything.
6434 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; }
6435 }'`; fi
6436 else
6437   echo "$as_me: failed program was:" >&5
6438 sed 's/^/| /' conftest.$ac_ext >&5
6439
6440 fi
6441 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6442 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
6443
6444          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
6445           # Warning - without using the other run time loading flags,
6446           # -berok will link without error, but may produce a broken library.
6447           no_undefined_flag=' ${wl}-bernotok'
6448           allow_undefined_flag=' ${wl}-berok'
6449           # -bexpall does not export symbols beginning with underscore (_)
6450           always_export_symbols=yes
6451           # Exported symbols can be pulled into shared objects from archives
6452           whole_archive_flag_spec=' '
6453           archive_cmds_need_lc=yes
6454           # This is similar to how AIX traditionally builds it's shared libraries.
6455           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'
6456         fi
6457       fi
6458       ;;
6459
6460     amigaos*)
6461       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)'
6462       hardcode_libdir_flag_spec='-L$libdir'
6463       hardcode_minus_L=yes
6464       # see comment about different semantics on the GNU ld section
6465       ld_shlibs=no
6466       ;;
6467
6468     bsdi4*)
6469       export_dynamic_flag_spec=-rdynamic
6470       ;;
6471
6472     cygwin* | mingw* | pw32*)
6473       # When not using gcc, we currently assume that we are using
6474       # Microsoft Visual C++.
6475       # hardcode_libdir_flag_spec is actually meaningless, as there is
6476       # no search path for DLLs.
6477       hardcode_libdir_flag_spec=' '
6478       allow_undefined_flag=unsupported
6479       # Tell ltmain to make .lib files, not .a files.
6480       libext=lib
6481       # Tell ltmain to make .dll files, not .so files.
6482       shrext=".dll"
6483       # FIXME: Setting linknames here is a bad hack.
6484       archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
6485       # The linker will automatically build a .lib file if we build a DLL.
6486       old_archive_From_new_cmds='true'
6487       # FIXME: Should let the user specify the lib program.
6488       old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
6489       fix_srcfile_path='`cygpath -w "$srcfile"`'
6490       enable_shared_with_static_runtimes=yes
6491       ;;
6492
6493     darwin* | rhapsody*)
6494     if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
6495       archive_cmds_need_lc=no
6496       case "$host_os" in
6497       rhapsody* | darwin1.[012])
6498         allow_undefined_flag='-undefined suppress'
6499         ;;
6500       *) # Darwin 1.3 on
6501         test -z ${LD_TWOLEVEL_NAMESPACE} && allow_undefined_flag='-flat_namespace -undefined suppress'
6502         ;;
6503       esac
6504       # FIXME: Relying on posixy $() will cause problems for
6505       #        cross-compilation, but unfortunately the echo tests do not
6506       #        yet detect zsh echo's removal of \ escapes.  Also zsh mangles
6507       #        `"' quotes if we put them in here... so don't!
6508         lt_int_apple_cc_single_mod=no
6509         output_verbose_link_cmd='echo'
6510         if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
6511           lt_int_apple_cc_single_mod=yes
6512         fi
6513         if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
6514           archive_cmds='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
6515         else
6516         archive_cmds='$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
6517       fi
6518       module_cmds='$CC -bundle ${wl}-bind_at_load $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags'
6519       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
6520         if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
6521           archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
6522         else
6523           archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
6524         fi
6525           module_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -bundle $allow_undefined_flag  -o $lib $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
6526       hardcode_direct=no
6527       hardcode_automatic=yes
6528       hardcode_shlibpath_var=unsupported
6529       whole_archive_flag_spec='-all_load $convenience'
6530       link_all_deplibs=yes
6531     fi
6532       ;;
6533
6534     dgux*)
6535       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6536       hardcode_libdir_flag_spec='-L$libdir'
6537       hardcode_shlibpath_var=no
6538       ;;
6539
6540     freebsd1*)
6541       ld_shlibs=no
6542       ;;
6543
6544     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
6545     # support.  Future versions do this automatically, but an explicit c++rt0.o
6546     # does not break anything, and helps significantly (at the cost of a little
6547     # extra space).
6548     freebsd2.2*)
6549       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
6550       hardcode_libdir_flag_spec='-R$libdir'
6551       hardcode_direct=yes
6552       hardcode_shlibpath_var=no
6553       ;;
6554
6555     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
6556     freebsd2*)
6557       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6558       hardcode_direct=yes
6559       hardcode_minus_L=yes
6560       hardcode_shlibpath_var=no
6561       ;;
6562
6563     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
6564     freebsd*)
6565       archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
6566       hardcode_libdir_flag_spec='-R$libdir'
6567       hardcode_direct=yes
6568       hardcode_shlibpath_var=no
6569       ;;
6570
6571     hpux9*)
6572       if test "$GCC" = yes; then
6573         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'
6574       else
6575         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'
6576       fi
6577       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
6578       hardcode_libdir_separator=:
6579       hardcode_direct=yes
6580
6581       # hardcode_minus_L: Not really in the search PATH,
6582       # but as the default location of the library.
6583       hardcode_minus_L=yes
6584       export_dynamic_flag_spec='${wl}-E'
6585       ;;
6586
6587     hpux10* | hpux11*)
6588       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
6589         case "$host_cpu" in
6590         hppa*64*|ia64*)
6591           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
6592           ;;
6593         *)
6594           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
6595           ;;
6596         esac
6597       else
6598         case "$host_cpu" in
6599         hppa*64*|ia64*)
6600           archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
6601           ;;
6602         *)
6603           archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
6604           ;;
6605         esac
6606       fi
6607       if test "$with_gnu_ld" = no; then
6608         case "$host_cpu" in
6609         hppa*64*)
6610           hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
6611           hardcode_libdir_flag_spec_ld='+b $libdir'
6612           hardcode_libdir_separator=:
6613           hardcode_direct=no
6614           hardcode_shlibpath_var=no
6615           ;;
6616         ia64*)
6617           hardcode_libdir_flag_spec='-L$libdir'
6618           hardcode_direct=no
6619           hardcode_shlibpath_var=no
6620
6621           # hardcode_minus_L: Not really in the search PATH,
6622           # but as the default location of the library.
6623           hardcode_minus_L=yes
6624           ;;
6625         *)
6626           hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
6627           hardcode_libdir_separator=:
6628           hardcode_direct=yes
6629           export_dynamic_flag_spec='${wl}-E'
6630
6631           # hardcode_minus_L: Not really in the search PATH,
6632           # but as the default location of the library.
6633           hardcode_minus_L=yes
6634           ;;
6635         esac
6636       fi
6637       ;;
6638
6639     irix5* | irix6* | nonstopux*)
6640       if test "$GCC" = yes; then
6641         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'
6642       else
6643         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'
6644         hardcode_libdir_flag_spec_ld='-rpath $libdir'
6645       fi
6646       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
6647       hardcode_libdir_separator=:
6648       link_all_deplibs=yes
6649       ;;
6650
6651     netbsd*)
6652       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6653         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
6654       else
6655         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
6656       fi
6657       hardcode_libdir_flag_spec='-R$libdir'
6658       hardcode_direct=yes
6659       hardcode_shlibpath_var=no
6660       ;;
6661
6662     newsos6)
6663       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6664       hardcode_direct=yes
6665       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
6666       hardcode_libdir_separator=:
6667       hardcode_shlibpath_var=no
6668       ;;
6669
6670     openbsd*)
6671       hardcode_direct=yes
6672       hardcode_shlibpath_var=no
6673       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6674         archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
6675         hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
6676         export_dynamic_flag_spec='${wl}-E'
6677       else
6678        case $host_os in
6679          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
6680            archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6681            hardcode_libdir_flag_spec='-R$libdir'
6682            ;;
6683          *)
6684            archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
6685            hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
6686            ;;
6687        esac
6688       fi
6689       ;;
6690
6691     os2*)
6692       hardcode_libdir_flag_spec='-L$libdir'
6693       hardcode_minus_L=yes
6694       allow_undefined_flag=unsupported
6695       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'
6696       old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
6697       ;;
6698
6699     osf3*)
6700       if test "$GCC" = yes; then
6701         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
6702         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'
6703       else
6704         allow_undefined_flag=' -expect_unresolved \*'
6705         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'
6706       fi
6707       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
6708       hardcode_libdir_separator=:
6709       ;;
6710
6711     osf4* | osf5*)      # as osf3* with the addition of -msym flag
6712       if test "$GCC" = yes; then
6713         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
6714         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'
6715         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
6716       else
6717         allow_undefined_flag=' -expect_unresolved \*'
6718         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'
6719         archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
6720         $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'
6721
6722         # Both c and cxx compiler support -rpath directly
6723         hardcode_libdir_flag_spec='-rpath $libdir'
6724       fi
6725       hardcode_libdir_separator=:
6726       ;;
6727
6728     sco3.2v5*)
6729       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6730       hardcode_shlibpath_var=no
6731       export_dynamic_flag_spec='${wl}-Bexport'
6732       runpath_var=LD_RUN_PATH
6733       hardcode_runpath_var=yes
6734       ;;
6735
6736     solaris*)
6737       no_undefined_flag=' -z text'
6738       if test "$GCC" = yes; then
6739         archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
6740         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
6741           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
6742       else
6743         archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
6744         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
6745         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
6746       fi
6747       hardcode_libdir_flag_spec='-R$libdir'
6748       hardcode_shlibpath_var=no
6749       case $host_os in
6750       solaris2.[0-5] | solaris2.[0-5].*) ;;
6751       *) # Supported since Solaris 2.6 (maybe 2.5.1?)
6752         whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
6753       esac
6754       link_all_deplibs=yes
6755       ;;
6756
6757     sunos4*)
6758       if test "x$host_vendor" = xsequent; then
6759         # Use $CC to link under sequent, because it throws in some extra .o
6760         # files that make .init and .fini sections work.
6761         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
6762       else
6763         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
6764       fi
6765       hardcode_libdir_flag_spec='-L$libdir'
6766       hardcode_direct=yes
6767       hardcode_minus_L=yes
6768       hardcode_shlibpath_var=no
6769       ;;
6770
6771     sysv4)
6772       case $host_vendor in
6773         sni)
6774           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6775           hardcode_direct=yes # is this really true???
6776         ;;
6777         siemens)
6778           ## LD is ld it makes a PLAMLIB
6779           ## CC just makes a GrossModule.
6780           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
6781           reload_cmds='$CC -r -o $output$reload_objs'
6782           hardcode_direct=no
6783         ;;
6784         motorola)
6785           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6786           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
6787         ;;
6788       esac
6789       runpath_var='LD_RUN_PATH'
6790       hardcode_shlibpath_var=no
6791       ;;
6792
6793     sysv4.3*)
6794       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6795       hardcode_shlibpath_var=no
6796       export_dynamic_flag_spec='-Bexport'
6797       ;;
6798
6799     sysv4*MP*)
6800       if test -d /usr/nec; then
6801         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6802         hardcode_shlibpath_var=no
6803         runpath_var=LD_RUN_PATH
6804         hardcode_runpath_var=yes
6805         ld_shlibs=yes
6806       fi
6807       ;;
6808
6809     sysv4.2uw2*)
6810       archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
6811       hardcode_direct=yes
6812       hardcode_minus_L=no
6813       hardcode_shlibpath_var=no
6814       hardcode_runpath_var=yes
6815       runpath_var=LD_RUN_PATH
6816       ;;
6817
6818    sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
6819       no_undefined_flag='${wl}-z ${wl}text'
6820       if test "$GCC" = yes; then
6821         archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
6822       else
6823         archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
6824       fi
6825       runpath_var='LD_RUN_PATH'
6826       hardcode_shlibpath_var=no
6827       ;;
6828
6829     sysv5*)
6830       no_undefined_flag=' -z text'
6831       # $CC -shared without GNU ld will not create a library from C++
6832       # object files and a static libstdc++, better avoid it by now
6833       archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
6834       archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
6835                 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
6836       hardcode_libdir_flag_spec=
6837       hardcode_shlibpath_var=no
6838       runpath_var='LD_RUN_PATH'
6839       ;;
6840
6841     uts4*)
6842       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6843       hardcode_libdir_flag_spec='-L$libdir'
6844       hardcode_shlibpath_var=no
6845       ;;
6846
6847     *)
6848       ld_shlibs=no
6849       ;;
6850     esac
6851   fi
6852
6853 echo "$as_me:$LINENO: result: $ld_shlibs" >&5
6854 echo "${ECHO_T}$ld_shlibs" >&6
6855 test "$ld_shlibs" = no && can_build_shared=no
6856
6857 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
6858 if test "$GCC" = yes; then
6859   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
6860 fi
6861
6862 #
6863 # Do we need to explicitly link libc?
6864 #
6865 case "x$archive_cmds_need_lc" in
6866 x|xyes)
6867   # Assume -lc should be added
6868   archive_cmds_need_lc=yes
6869
6870   if test "$enable_shared" = yes && test "$GCC" = yes; then
6871     case $archive_cmds in
6872     *'~'*)
6873       # FIXME: we may have to deal with multi-command sequences.
6874       ;;
6875     '$CC '*)
6876       # Test whether the compiler implicitly links with -lc since on some
6877       # systems, -lgcc has to come before -lc. If gcc already passes -lc
6878       # to ld, don't add -lc before -lgcc.
6879       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
6880 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
6881       $rm conftest*
6882       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6883
6884       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6885   (eval $ac_compile) 2>&5
6886   ac_status=$?
6887   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6888   (exit $ac_status); } 2>conftest.err; then
6889         soname=conftest
6890         lib=conftest
6891         libobjs=conftest.$ac_objext
6892         deplibs=
6893         wl=$lt_prog_compiler_wl
6894         compiler_flags=-v
6895         linker_flags=-v
6896         verstring=
6897         output_objdir=.
6898         libname=conftest
6899         lt_save_allow_undefined_flag=$allow_undefined_flag
6900         allow_undefined_flag=
6901         if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
6902   (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
6903   ac_status=$?
6904   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6905   (exit $ac_status); }
6906         then
6907           archive_cmds_need_lc=no
6908         else
6909           archive_cmds_need_lc=yes
6910         fi
6911         allow_undefined_flag=$lt_save_allow_undefined_flag
6912       else
6913         cat conftest.err 1>&5
6914       fi
6915       $rm conftest*
6916       echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
6917 echo "${ECHO_T}$archive_cmds_need_lc" >&6
6918       ;;
6919     esac
6920   fi
6921   ;;
6922 esac
6923
6924 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
6925 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
6926 hardcode_action=
6927 if test -n "$hardcode_libdir_flag_spec" || \
6928    test -n "$runpath_var " || \
6929    test "X$hardcode_automatic"="Xyes" ; then
6930
6931   # We can hardcode non-existant directories.
6932   if test "$hardcode_direct" != no &&
6933      # If the only mechanism to avoid hardcoding is shlibpath_var, we
6934      # have to relink, otherwise we might link with an installed library
6935      # when we should be linking with a yet-to-be-installed one
6936      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
6937      test "$hardcode_minus_L" != no; then
6938     # Linking always hardcodes the temporary library directory.
6939     hardcode_action=relink
6940   else
6941     # We can link without hardcoding, and we can hardcode nonexisting dirs.
6942     hardcode_action=immediate
6943   fi
6944 else
6945   # We cannot hardcode anything, or else we can only hardcode existing
6946   # directories.
6947   hardcode_action=unsupported
6948 fi
6949 echo "$as_me:$LINENO: result: $hardcode_action" >&5
6950 echo "${ECHO_T}$hardcode_action" >&6
6951
6952 if test "$hardcode_action" = relink; then
6953   # Fast installation is not supported
6954   enable_fast_install=no
6955 elif test "$shlibpath_overrides_runpath" = yes ||
6956      test "$enable_shared" = no; then
6957   # Fast installation is not necessary
6958   enable_fast_install=needless
6959 fi
6960
6961 striplib=
6962 old_striplib=
6963 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
6964 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
6965 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
6966   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
6967   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
6968   echo "$as_me:$LINENO: result: yes" >&5
6969 echo "${ECHO_T}yes" >&6
6970 else
6971 # FIXME - insert some real tests, host_os isn't really good enough
6972   case $host_os in
6973    darwin*)
6974        if test -n "$STRIP" ; then
6975          striplib="$STRIP -x"
6976          echo "$as_me:$LINENO: result: yes" >&5
6977 echo "${ECHO_T}yes" >&6
6978        else
6979   echo "$as_me:$LINENO: result: no" >&5
6980 echo "${ECHO_T}no" >&6
6981 fi
6982        ;;
6983    *)
6984   echo "$as_me:$LINENO: result: no" >&5
6985 echo "${ECHO_T}no" >&6
6986     ;;
6987   esac
6988 fi
6989
6990 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
6991 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
6992 library_names_spec=
6993 libname_spec='lib$name'
6994 soname_spec=
6995 shrext=".so"
6996 postinstall_cmds=
6997 postuninstall_cmds=
6998 finish_cmds=
6999 finish_eval=
7000 shlibpath_var=
7001 shlibpath_overrides_runpath=unknown
7002 version_type=none
7003 dynamic_linker="$host_os ld.so"
7004 sys_lib_dlsearch_path_spec="/lib /usr/lib"
7005 if test "$GCC" = yes; then
7006   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
7007   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
7008     # if the path contains ";" then we assume it to be the separator
7009     # otherwise default to the standard path separator (i.e. ":") - it is
7010     # assumed that no part of a normal pathname contains ";" but that should
7011     # okay in the real world where ";" in dirpaths is itself problematic.
7012     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
7013   else
7014     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
7015   fi
7016 else
7017   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
7018 fi
7019 need_lib_prefix=unknown
7020 hardcode_into_libs=no
7021
7022 # when you set need_version to no, make sure it does not cause -set_version
7023 # flags to be left without arguments
7024 need_version=unknown
7025
7026 case $host_os in
7027 aix3*)
7028   version_type=linux
7029   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
7030   shlibpath_var=LIBPATH
7031
7032   # AIX 3 has no versioning support, so we append a major version to the name.
7033   soname_spec='${libname}${release}${shared_ext}$major'
7034   ;;
7035
7036 aix4* | aix5*)
7037   version_type=linux
7038   need_lib_prefix=no
7039   need_version=no
7040   hardcode_into_libs=yes
7041   if test "$host_cpu" = ia64; then
7042     # AIX 5 supports IA64
7043     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
7044     shlibpath_var=LD_LIBRARY_PATH
7045   else
7046     # With GCC up to 2.95.x, collect2 would create an import file
7047     # for dependence libraries.  The import file would start with
7048     # the line `#! .'.  This would cause the generated library to
7049     # depend on `.', always an invalid library.  This was fixed in
7050     # development snapshots of GCC prior to 3.0.
7051     case $host_os in
7052       aix4 | aix4.[01] | aix4.[01].*)
7053       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
7054            echo ' yes '
7055            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
7056         :
7057       else
7058         can_build_shared=no
7059       fi
7060       ;;
7061     esac
7062     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
7063     # soname into executable. Probably we can add versioning support to
7064     # collect2, so additional links can be useful in future.
7065     if test "$aix_use_runtimelinking" = yes; then
7066       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
7067       # instead of lib<name>.a to let people know that these are not
7068       # typical AIX shared libraries.
7069       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7070     else
7071       # We preserve .a as extension for shared libraries through AIX4.2
7072       # and later when we are not doing run time linking.
7073       library_names_spec='${libname}${release}.a $libname.a'
7074       soname_spec='${libname}${release}${shared_ext}$major'
7075     fi
7076     shlibpath_var=LIBPATH
7077   fi
7078   ;;
7079
7080 amigaos*)
7081   library_names_spec='$libname.ixlibrary $libname.a'
7082   # Create ${libname}_ixlibrary.a entries in /sys/libs.
7083   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'
7084   ;;
7085
7086 beos*)
7087   library_names_spec='${libname}${shared_ext}'
7088   dynamic_linker="$host_os ld.so"
7089   shlibpath_var=LIBRARY_PATH
7090   ;;
7091
7092 bsdi4*)
7093   version_type=linux
7094   need_version=no
7095   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7096   soname_spec='${libname}${release}${shared_ext}$major'
7097   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
7098   shlibpath_var=LD_LIBRARY_PATH
7099   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
7100   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
7101   # the default ld.so.conf also contains /usr/contrib/lib and
7102   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
7103   # libtool to hard-code these into programs
7104   ;;
7105
7106 cygwin* | mingw* | pw32*)
7107   version_type=windows
7108   shrext=".dll"
7109   need_version=no
7110   need_lib_prefix=no
7111
7112   case $GCC,$host_os in
7113   yes,cygwin* | yes,mingw* | yes,pw32*)
7114     library_names_spec='$libname.dll.a'
7115     # DLL is installed to $(libdir)/../bin by postinstall_cmds
7116     postinstall_cmds='base_file=`basename \${file}`~
7117       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
7118       dldir=$destdir/`dirname \$dlpath`~
7119       test -d \$dldir || mkdir -p \$dldir~
7120       $install_prog $dir/$dlname \$dldir/$dlname'
7121     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
7122       dlpath=$dir/\$dldll~
7123        $rm \$dlpath'
7124     shlibpath_overrides_runpath=yes
7125
7126     case $host_os in
7127     cygwin*)
7128       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
7129       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7130       sys_lib_search_path_spec="/lib /lib/w32api /usr/lib /usr/local/lib"
7131       ;;
7132     mingw*)
7133       # MinGW DLLs use traditional 'lib' prefix
7134       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7135       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
7136       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
7137         # It is most probably a Windows format PATH printed by
7138         # mingw gcc, but we are running on Cygwin. Gcc prints its search
7139         # path with ; separators, and with drive letters. We can handle the
7140         # drive letters (cygwin fileutils understands them), so leave them,
7141         # especially as we might pass files found there to a mingw objdump,
7142         # which wouldn't understand a cygwinified path. Ahh.
7143         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
7144       else
7145         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
7146       fi
7147       ;;
7148     pw32*)
7149       # pw32 DLLs use 'pw' prefix rather than 'lib'
7150       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
7151       ;;
7152     esac
7153     ;;
7154
7155   *)
7156     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
7157     ;;
7158   esac
7159   dynamic_linker='Win32 ld.exe'
7160   # FIXME: first we should search . and the directory the executable is in
7161   shlibpath_var=PATH
7162   ;;
7163
7164 darwin* | rhapsody*)
7165   dynamic_linker="$host_os dyld"
7166   version_type=darwin
7167   need_lib_prefix=no
7168   need_version=no
7169   # FIXME: Relying on posixy $() will cause problems for
7170   #        cross-compilation, but unfortunately the echo tests do not
7171   #        yet detect zsh echo's removal of \ escapes.
7172   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
7173   soname_spec='${libname}${release}${major}$shared_ext'
7174   shlibpath_overrides_runpath=yes
7175   shlibpath_var=DYLD_LIBRARY_PATH
7176   shrext='$(test .$module = .yes && echo .so || echo .dylib)'
7177   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
7178   if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
7179   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"`
7180   fi
7181   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
7182   ;;
7183
7184 dgux*)
7185   version_type=linux
7186   need_lib_prefix=no
7187   need_version=no
7188   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
7189   soname_spec='${libname}${release}${shared_ext}$major'
7190   shlibpath_var=LD_LIBRARY_PATH
7191   ;;
7192
7193 freebsd1*)
7194   dynamic_linker=no
7195   ;;
7196
7197 freebsd*)
7198   objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
7199   version_type=freebsd-$objformat
7200   case $version_type in
7201     freebsd-elf*)
7202       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
7203       need_version=no
7204       need_lib_prefix=no
7205       ;;
7206     freebsd-*)
7207       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
7208       need_version=yes
7209       ;;
7210   esac
7211   shlibpath_var=LD_LIBRARY_PATH
7212   case $host_os in
7213   freebsd2*)
7214     shlibpath_overrides_runpath=yes
7215     ;;
7216   freebsd3.01* | freebsdelf3.01*)
7217     shlibpath_overrides_runpath=yes
7218     hardcode_into_libs=yes
7219     ;;
7220   *) # from 3.2 on
7221     shlibpath_overrides_runpath=no
7222     hardcode_into_libs=yes
7223     ;;
7224   esac
7225   ;;
7226
7227 gnu*)
7228   version_type=linux
7229   need_lib_prefix=no
7230   need_version=no
7231   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
7232   soname_spec='${libname}${release}${shared_ext}$major'
7233   shlibpath_var=LD_LIBRARY_PATH
7234   hardcode_into_libs=yes
7235   ;;
7236
7237 hpux9* | hpux10* | hpux11*)
7238   # Give a soname corresponding to the major version so that dld.sl refuses to
7239   # link against other versions.
7240   version_type=sunos
7241   need_lib_prefix=no
7242   need_version=no
7243   case "$host_cpu" in
7244   ia64*)
7245     shrext='.so'
7246     hardcode_into_libs=yes
7247     dynamic_linker="$host_os dld.so"
7248     shlibpath_var=LD_LIBRARY_PATH
7249     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
7250     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7251     soname_spec='${libname}${release}${shared_ext}$major'
7252     if test "X$HPUX_IA64_MODE" = X32; then
7253       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
7254     else
7255       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
7256     fi
7257     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
7258     ;;
7259    hppa*64*)
7260      shrext='.sl'
7261      hardcode_into_libs=yes
7262      dynamic_linker="$host_os dld.sl"
7263      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
7264      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
7265      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7266      soname_spec='${libname}${release}${shared_ext}$major'
7267      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
7268      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
7269      ;;
7270    *)
7271     shrext='.sl'
7272     dynamic_linker="$host_os dld.sl"
7273     shlibpath_var=SHLIB_PATH
7274     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
7275     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7276     soname_spec='${libname}${release}${shared_ext}$major'
7277     ;;
7278   esac
7279   # HP-UX runs *really* slowly unless shared libraries are mode 555.
7280   postinstall_cmds='chmod 555 $lib'
7281   ;;
7282
7283 irix5* | irix6* | nonstopux*)
7284   case $host_os in
7285     nonstopux*) version_type=nonstopux ;;
7286     *)
7287         if test "$lt_cv_prog_gnu_ld" = yes; then
7288                 version_type=linux
7289         else
7290                 version_type=irix
7291         fi ;;
7292   esac
7293   need_lib_prefix=no
7294   need_version=no
7295   soname_spec='${libname}${release}${shared_ext}$major'
7296   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
7297   case $host_os in
7298   irix5* | nonstopux*)
7299     libsuff= shlibsuff=
7300     ;;
7301   *)
7302     case $LD in # libtool.m4 will add one of these switches to LD
7303     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
7304       libsuff= shlibsuff= libmagic=32-bit;;
7305     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
7306       libsuff=32 shlibsuff=N32 libmagic=N32;;
7307     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
7308       libsuff=64 shlibsuff=64 libmagic=64-bit;;
7309     *) libsuff= shlibsuff= libmagic=never-match;;
7310     esac
7311     ;;
7312   esac
7313   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
7314   shlibpath_overrides_runpath=no
7315   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
7316   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
7317   hardcode_into_libs=yes
7318   ;;
7319
7320 # No shared lib support for Linux oldld, aout, or coff.
7321 linux*oldld* | linux*aout* | linux*coff*)
7322   dynamic_linker=no
7323   ;;
7324
7325 # This must be Linux ELF.
7326 linux*)
7327   version_type=linux
7328   need_lib_prefix=no
7329   need_version=no
7330   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7331   soname_spec='${libname}${release}${shared_ext}$major'
7332   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
7333   shlibpath_var=LD_LIBRARY_PATH
7334   shlibpath_overrides_runpath=no
7335   # This implies no fast_install, which is unacceptable.
7336   # Some rework will be needed to allow for fast_install
7337   # before this can be enabled.
7338   hardcode_into_libs=yes
7339
7340   # We used to test for /lib/ld.so.1 and disable shared libraries on
7341   # powerpc, because MkLinux only supported shared libraries with the
7342   # GNU dynamic linker.  Since this was broken with cross compilers,
7343   # most powerpc-linux boxes support dynamic linking these days and
7344   # people can always --disable-shared, the test was removed, and we
7345   # assume the GNU/Linux dynamic linker is in use.
7346   dynamic_linker='GNU/Linux ld.so'
7347   ;;
7348
7349 netbsd*)
7350   version_type=sunos
7351   need_lib_prefix=no
7352   need_version=no
7353   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7354     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
7355     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
7356     dynamic_linker='NetBSD (a.out) ld.so'
7357   else
7358     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
7359     soname_spec='${libname}${release}${shared_ext}$major'
7360     dynamic_linker='NetBSD ld.elf_so'
7361   fi
7362   shlibpath_var=LD_LIBRARY_PATH
7363   shlibpath_overrides_runpath=yes
7364   hardcode_into_libs=yes
7365   ;;
7366
7367 newsos6)
7368   version_type=linux
7369   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7370   shlibpath_var=LD_LIBRARY_PATH
7371   shlibpath_overrides_runpath=yes
7372   ;;
7373
7374 nto-qnx)
7375   version_type=linux
7376   need_lib_prefix=no
7377   need_version=no
7378   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7379   soname_spec='${libname}${release}${shared_ext}$major'
7380   shlibpath_var=LD_LIBRARY_PATH
7381   shlibpath_overrides_runpath=yes
7382   ;;
7383
7384 openbsd*)
7385   version_type=sunos
7386   need_lib_prefix=no
7387   need_version=no
7388   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
7389   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
7390   shlibpath_var=LD_LIBRARY_PATH
7391   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7392     case $host_os in
7393       openbsd2.[89] | openbsd2.[89].*)
7394         shlibpath_overrides_runpath=no
7395         ;;
7396       *)
7397         shlibpath_overrides_runpath=yes
7398         ;;
7399       esac
7400   else
7401     shlibpath_overrides_runpath=yes
7402   fi
7403   ;;
7404
7405 os2*)
7406   libname_spec='$name'
7407   shrext=".dll"
7408   need_lib_prefix=no
7409   library_names_spec='$libname${shared_ext} $libname.a'
7410   dynamic_linker='OS/2 ld.exe'
7411   shlibpath_var=LIBPATH
7412   ;;
7413
7414 osf3* | osf4* | osf5*)
7415   version_type=osf
7416   need_lib_prefix=no
7417   need_version=no
7418   soname_spec='${libname}${release}${shared_ext}$major'
7419   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7420   shlibpath_var=LD_LIBRARY_PATH
7421   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
7422   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
7423   ;;
7424
7425 sco3.2v5*)
7426   version_type=osf
7427   soname_spec='${libname}${release}${shared_ext}$major'
7428   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7429   shlibpath_var=LD_LIBRARY_PATH
7430   ;;
7431
7432 solaris*)
7433   version_type=linux
7434   need_lib_prefix=no
7435   need_version=no
7436   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7437   soname_spec='${libname}${release}${shared_ext}$major'
7438   shlibpath_var=LD_LIBRARY_PATH
7439   shlibpath_overrides_runpath=yes
7440   hardcode_into_libs=yes
7441   # ldd complains unless libraries are executable
7442   postinstall_cmds='chmod +x $lib'
7443   ;;
7444
7445 sunos4*)
7446   version_type=sunos
7447   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
7448   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
7449   shlibpath_var=LD_LIBRARY_PATH
7450   shlibpath_overrides_runpath=yes
7451   if test "$with_gnu_ld" = yes; then
7452     need_lib_prefix=no
7453   fi
7454   need_version=yes
7455   ;;
7456
7457 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
7458   version_type=linux
7459   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7460   soname_spec='${libname}${release}${shared_ext}$major'
7461   shlibpath_var=LD_LIBRARY_PATH
7462   case $host_vendor in
7463     sni)
7464       shlibpath_overrides_runpath=no
7465       need_lib_prefix=no
7466       export_dynamic_flag_spec='${wl}-Blargedynsym'
7467       runpath_var=LD_RUN_PATH
7468       ;;
7469     siemens)
7470       need_lib_prefix=no
7471       ;;
7472     motorola)
7473       need_lib_prefix=no
7474       need_version=no
7475       shlibpath_overrides_runpath=no
7476       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
7477       ;;
7478   esac
7479   ;;
7480
7481 sysv4*MP*)
7482   if test -d /usr/nec ;then
7483     version_type=linux
7484     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
7485     soname_spec='$libname${shared_ext}.$major'
7486     shlibpath_var=LD_LIBRARY_PATH
7487   fi
7488   ;;
7489
7490 uts4*)
7491   version_type=linux
7492   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7493   soname_spec='${libname}${release}${shared_ext}$major'
7494   shlibpath_var=LD_LIBRARY_PATH
7495   ;;
7496
7497 *)
7498   dynamic_linker=no
7499   ;;
7500 esac
7501 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
7502 echo "${ECHO_T}$dynamic_linker" >&6
7503 test "$dynamic_linker" = no && can_build_shared=no
7504
7505 if test "x$enable_dlopen" != xyes; then
7506   enable_dlopen=unknown
7507   enable_dlopen_self=unknown
7508   enable_dlopen_self_static=unknown
7509 else
7510   lt_cv_dlopen=no
7511   lt_cv_dlopen_libs=
7512
7513   case $host_os in
7514   beos*)
7515     lt_cv_dlopen="load_add_on"
7516     lt_cv_dlopen_libs=
7517     lt_cv_dlopen_self=yes
7518     ;;
7519
7520   mingw* | pw32*)
7521     lt_cv_dlopen="LoadLibrary"
7522     lt_cv_dlopen_libs=
7523    ;;
7524
7525   cygwin*)
7526     lt_cv_dlopen="dlopen"
7527     lt_cv_dlopen_libs=
7528    ;;
7529
7530   darwin*)
7531   # if libdl is installed we need to link against it
7532     echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
7533 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
7534 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
7535   echo $ECHO_N "(cached) $ECHO_C" >&6
7536 else
7537   ac_check_lib_save_LIBS=$LIBS
7538 LIBS="-ldl  $LIBS"
7539 cat >conftest.$ac_ext <<_ACEOF
7540 #line $LINENO "configure"
7541 /* confdefs.h.  */
7542 _ACEOF
7543 cat confdefs.h >>conftest.$ac_ext
7544 cat >>conftest.$ac_ext <<_ACEOF
7545 /* end confdefs.h.  */
7546
7547 /* Override any gcc2 internal prototype to avoid an error.  */
7548 #ifdef __cplusplus
7549 extern "C"
7550 #endif
7551 /* We use char because int might match the return type of a gcc2
7552    builtin and then its argument prototype would still apply.  */
7553 char dlopen ();
7554 int
7555 main ()
7556 {
7557 dlopen ();
7558   ;
7559   return 0;
7560 }
7561 _ACEOF
7562 rm -f conftest.$ac_objext conftest$ac_exeext
7563 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7564   (eval $ac_link) 2>&5
7565   ac_status=$?
7566   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7567   (exit $ac_status); } &&
7568          { ac_try='test -s conftest$ac_exeext'
7569   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7570   (eval $ac_try) 2>&5
7571   ac_status=$?
7572   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7573   (exit $ac_status); }; }; then
7574   ac_cv_lib_dl_dlopen=yes
7575 else
7576   echo "$as_me: failed program was:" >&5
7577 sed 's/^/| /' conftest.$ac_ext >&5
7578
7579 ac_cv_lib_dl_dlopen=no
7580 fi
7581 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7582 LIBS=$ac_check_lib_save_LIBS
7583 fi
7584 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
7585 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
7586 if test $ac_cv_lib_dl_dlopen = yes; then
7587   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
7588 else
7589
7590     lt_cv_dlopen="dyld"
7591     lt_cv_dlopen_libs=
7592     lt_cv_dlopen_self=yes
7593
7594 fi
7595
7596    ;;
7597
7598   *)
7599     echo "$as_me:$LINENO: checking for shl_load" >&5
7600 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
7601 if test "${ac_cv_func_shl_load+set}" = set; then
7602   echo $ECHO_N "(cached) $ECHO_C" >&6
7603 else
7604   cat >conftest.$ac_ext <<_ACEOF
7605 #line $LINENO "configure"
7606 /* confdefs.h.  */
7607 _ACEOF
7608 cat confdefs.h >>conftest.$ac_ext
7609 cat >>conftest.$ac_ext <<_ACEOF
7610 /* end confdefs.h.  */
7611 /* System header to define __stub macros and hopefully few prototypes,
7612     which can conflict with char shl_load (); below.
7613     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7614     <limits.h> exists even on freestanding compilers.  */
7615 #ifdef __STDC__
7616 # include <limits.h>
7617 #else
7618 # include <assert.h>
7619 #endif
7620 /* Override any gcc2 internal prototype to avoid an error.  */
7621 #ifdef __cplusplus
7622 extern "C"
7623 {
7624 #endif
7625 /* We use char because int might match the return type of a gcc2
7626    builtin and then its argument prototype would still apply.  */
7627 char shl_load ();
7628 /* The GNU C library defines this for functions which it implements
7629     to always fail with ENOSYS.  Some functions are actually named
7630     something starting with __ and the normal name is an alias.  */
7631 #if defined (__stub_shl_load) || defined (__stub___shl_load)
7632 choke me
7633 #else
7634 char (*f) () = shl_load;
7635 #endif
7636 #ifdef __cplusplus
7637 }
7638 #endif
7639
7640 int
7641 main ()
7642 {
7643 return f != shl_load;
7644   ;
7645   return 0;
7646 }
7647 _ACEOF
7648 rm -f conftest.$ac_objext conftest$ac_exeext
7649 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7650   (eval $ac_link) 2>&5
7651   ac_status=$?
7652   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7653   (exit $ac_status); } &&
7654          { ac_try='test -s conftest$ac_exeext'
7655   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7656   (eval $ac_try) 2>&5
7657   ac_status=$?
7658   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7659   (exit $ac_status); }; }; then
7660   ac_cv_func_shl_load=yes
7661 else
7662   echo "$as_me: failed program was:" >&5
7663 sed 's/^/| /' conftest.$ac_ext >&5
7664
7665 ac_cv_func_shl_load=no
7666 fi
7667 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7668 fi
7669 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
7670 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
7671 if test $ac_cv_func_shl_load = yes; then
7672   lt_cv_dlopen="shl_load"
7673 else
7674   echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
7675 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
7676 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
7677   echo $ECHO_N "(cached) $ECHO_C" >&6
7678 else
7679   ac_check_lib_save_LIBS=$LIBS
7680 LIBS="-ldld  $LIBS"
7681 cat >conftest.$ac_ext <<_ACEOF
7682 #line $LINENO "configure"
7683 /* confdefs.h.  */
7684 _ACEOF
7685 cat confdefs.h >>conftest.$ac_ext
7686 cat >>conftest.$ac_ext <<_ACEOF
7687 /* end confdefs.h.  */
7688
7689 /* Override any gcc2 internal prototype to avoid an error.  */
7690 #ifdef __cplusplus
7691 extern "C"
7692 #endif
7693 /* We use char because int might match the return type of a gcc2
7694    builtin and then its argument prototype would still apply.  */
7695 char shl_load ();
7696 int
7697 main ()
7698 {
7699 shl_load ();
7700   ;
7701   return 0;
7702 }
7703 _ACEOF
7704 rm -f conftest.$ac_objext conftest$ac_exeext
7705 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7706   (eval $ac_link) 2>&5
7707   ac_status=$?
7708   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7709   (exit $ac_status); } &&
7710          { ac_try='test -s conftest$ac_exeext'
7711   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7712   (eval $ac_try) 2>&5
7713   ac_status=$?
7714   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7715   (exit $ac_status); }; }; then
7716   ac_cv_lib_dld_shl_load=yes
7717 else
7718   echo "$as_me: failed program was:" >&5
7719 sed 's/^/| /' conftest.$ac_ext >&5
7720
7721 ac_cv_lib_dld_shl_load=no
7722 fi
7723 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7724 LIBS=$ac_check_lib_save_LIBS
7725 fi
7726 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
7727 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
7728 if test $ac_cv_lib_dld_shl_load = yes; then
7729   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
7730 else
7731   echo "$as_me:$LINENO: checking for dlopen" >&5
7732 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
7733 if test "${ac_cv_func_dlopen+set}" = set; then
7734   echo $ECHO_N "(cached) $ECHO_C" >&6
7735 else
7736   cat >conftest.$ac_ext <<_ACEOF
7737 #line $LINENO "configure"
7738 /* confdefs.h.  */
7739 _ACEOF
7740 cat confdefs.h >>conftest.$ac_ext
7741 cat >>conftest.$ac_ext <<_ACEOF
7742 /* end confdefs.h.  */
7743 /* System header to define __stub macros and hopefully few prototypes,
7744     which can conflict with char dlopen (); below.
7745     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7746     <limits.h> exists even on freestanding compilers.  */
7747 #ifdef __STDC__
7748 # include <limits.h>
7749 #else
7750 # include <assert.h>
7751 #endif
7752 /* Override any gcc2 internal prototype to avoid an error.  */
7753 #ifdef __cplusplus
7754 extern "C"
7755 {
7756 #endif
7757 /* We use char because int might match the return type of a gcc2
7758    builtin and then its argument prototype would still apply.  */
7759 char dlopen ();
7760 /* The GNU C library defines this for functions which it implements
7761     to always fail with ENOSYS.  Some functions are actually named
7762     something starting with __ and the normal name is an alias.  */
7763 #if defined (__stub_dlopen) || defined (__stub___dlopen)
7764 choke me
7765 #else
7766 char (*f) () = dlopen;
7767 #endif
7768 #ifdef __cplusplus
7769 }
7770 #endif
7771
7772 int
7773 main ()
7774 {
7775 return f != dlopen;
7776   ;
7777   return 0;
7778 }
7779 _ACEOF
7780 rm -f conftest.$ac_objext conftest$ac_exeext
7781 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7782   (eval $ac_link) 2>&5
7783   ac_status=$?
7784   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7785   (exit $ac_status); } &&
7786          { ac_try='test -s conftest$ac_exeext'
7787   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7788   (eval $ac_try) 2>&5
7789   ac_status=$?
7790   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7791   (exit $ac_status); }; }; then
7792   ac_cv_func_dlopen=yes
7793 else
7794   echo "$as_me: failed program was:" >&5
7795 sed 's/^/| /' conftest.$ac_ext >&5
7796
7797 ac_cv_func_dlopen=no
7798 fi
7799 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7800 fi
7801 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
7802 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
7803 if test $ac_cv_func_dlopen = yes; then
7804   lt_cv_dlopen="dlopen"
7805 else
7806   echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
7807 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
7808 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
7809   echo $ECHO_N "(cached) $ECHO_C" >&6
7810 else
7811   ac_check_lib_save_LIBS=$LIBS
7812 LIBS="-ldl  $LIBS"
7813 cat >conftest.$ac_ext <<_ACEOF
7814 #line $LINENO "configure"
7815 /* confdefs.h.  */
7816 _ACEOF
7817 cat confdefs.h >>conftest.$ac_ext
7818 cat >>conftest.$ac_ext <<_ACEOF
7819 /* end confdefs.h.  */
7820
7821 /* Override any gcc2 internal prototype to avoid an error.  */
7822 #ifdef __cplusplus
7823 extern "C"
7824 #endif
7825 /* We use char because int might match the return type of a gcc2
7826    builtin and then its argument prototype would still apply.  */
7827 char dlopen ();
7828 int
7829 main ()
7830 {
7831 dlopen ();
7832   ;
7833   return 0;
7834 }
7835 _ACEOF
7836 rm -f conftest.$ac_objext conftest$ac_exeext
7837 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7838   (eval $ac_link) 2>&5
7839   ac_status=$?
7840   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7841   (exit $ac_status); } &&
7842          { ac_try='test -s conftest$ac_exeext'
7843   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7844   (eval $ac_try) 2>&5
7845   ac_status=$?
7846   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7847   (exit $ac_status); }; }; then
7848   ac_cv_lib_dl_dlopen=yes
7849 else
7850   echo "$as_me: failed program was:" >&5
7851 sed 's/^/| /' conftest.$ac_ext >&5
7852
7853 ac_cv_lib_dl_dlopen=no
7854 fi
7855 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7856 LIBS=$ac_check_lib_save_LIBS
7857 fi
7858 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
7859 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
7860 if test $ac_cv_lib_dl_dlopen = yes; then
7861   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
7862 else
7863   echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
7864 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
7865 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
7866   echo $ECHO_N "(cached) $ECHO_C" >&6
7867 else
7868   ac_check_lib_save_LIBS=$LIBS
7869 LIBS="-lsvld  $LIBS"
7870 cat >conftest.$ac_ext <<_ACEOF
7871 #line $LINENO "configure"
7872 /* confdefs.h.  */
7873 _ACEOF
7874 cat confdefs.h >>conftest.$ac_ext
7875 cat >>conftest.$ac_ext <<_ACEOF
7876 /* end confdefs.h.  */
7877
7878 /* Override any gcc2 internal prototype to avoid an error.  */
7879 #ifdef __cplusplus
7880 extern "C"
7881 #endif
7882 /* We use char because int might match the return type of a gcc2
7883    builtin and then its argument prototype would still apply.  */
7884 char dlopen ();
7885 int
7886 main ()
7887 {
7888 dlopen ();
7889   ;
7890   return 0;
7891 }
7892 _ACEOF
7893 rm -f conftest.$ac_objext conftest$ac_exeext
7894 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7895   (eval $ac_link) 2>&5
7896   ac_status=$?
7897   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7898   (exit $ac_status); } &&
7899          { ac_try='test -s conftest$ac_exeext'
7900   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7901   (eval $ac_try) 2>&5
7902   ac_status=$?
7903   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7904   (exit $ac_status); }; }; then
7905   ac_cv_lib_svld_dlopen=yes
7906 else
7907   echo "$as_me: failed program was:" >&5
7908 sed 's/^/| /' conftest.$ac_ext >&5
7909
7910 ac_cv_lib_svld_dlopen=no
7911 fi
7912 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7913 LIBS=$ac_check_lib_save_LIBS
7914 fi
7915 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
7916 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
7917 if test $ac_cv_lib_svld_dlopen = yes; then
7918   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
7919 else
7920   echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
7921 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
7922 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
7923   echo $ECHO_N "(cached) $ECHO_C" >&6
7924 else
7925   ac_check_lib_save_LIBS=$LIBS
7926 LIBS="-ldld  $LIBS"
7927 cat >conftest.$ac_ext <<_ACEOF
7928 #line $LINENO "configure"
7929 /* confdefs.h.  */
7930 _ACEOF
7931 cat confdefs.h >>conftest.$ac_ext
7932 cat >>conftest.$ac_ext <<_ACEOF
7933 /* end confdefs.h.  */
7934
7935 /* Override any gcc2 internal prototype to avoid an error.  */
7936 #ifdef __cplusplus
7937 extern "C"
7938 #endif
7939 /* We use char because int might match the return type of a gcc2
7940    builtin and then its argument prototype would still apply.  */
7941 char dld_link ();
7942 int
7943 main ()
7944 {
7945 dld_link ();
7946   ;
7947   return 0;
7948 }
7949 _ACEOF
7950 rm -f conftest.$ac_objext conftest$ac_exeext
7951 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7952   (eval $ac_link) 2>&5
7953   ac_status=$?
7954   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7955   (exit $ac_status); } &&
7956          { ac_try='test -s conftest$ac_exeext'
7957   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7958   (eval $ac_try) 2>&5
7959   ac_status=$?
7960   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7961   (exit $ac_status); }; }; then
7962   ac_cv_lib_dld_dld_link=yes
7963 else
7964   echo "$as_me: failed program was:" >&5
7965 sed 's/^/| /' conftest.$ac_ext >&5
7966
7967 ac_cv_lib_dld_dld_link=no
7968 fi
7969 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7970 LIBS=$ac_check_lib_save_LIBS
7971 fi
7972 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
7973 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
7974 if test $ac_cv_lib_dld_dld_link = yes; then
7975   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
7976 fi
7977
7978
7979 fi
7980
7981
7982 fi
7983
7984
7985 fi
7986
7987
7988 fi
7989
7990
7991 fi
7992
7993     ;;
7994   esac
7995
7996   if test "x$lt_cv_dlopen" != xno; then
7997     enable_dlopen=yes
7998   else
7999     enable_dlopen=no
8000   fi
8001
8002   case $lt_cv_dlopen in
8003   dlopen)
8004     save_CPPFLAGS="$CPPFLAGS"
8005     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
8006
8007     save_LDFLAGS="$LDFLAGS"
8008     eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
8009
8010     save_LIBS="$LIBS"
8011     LIBS="$lt_cv_dlopen_libs $LIBS"
8012
8013     echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
8014 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
8015 if test "${lt_cv_dlopen_self+set}" = set; then
8016   echo $ECHO_N "(cached) $ECHO_C" >&6
8017 else
8018           if test "$cross_compiling" = yes; then :
8019   lt_cv_dlopen_self=cross
8020 else
8021   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
8022   lt_status=$lt_dlunknown
8023   cat > conftest.$ac_ext <<EOF
8024 #line 8024 "configure"
8025 #include "confdefs.h"
8026
8027 #if HAVE_DLFCN_H
8028 #include <dlfcn.h>
8029 #endif
8030
8031 #include <stdio.h>
8032
8033 #ifdef RTLD_GLOBAL
8034 #  define LT_DLGLOBAL           RTLD_GLOBAL
8035 #else
8036 #  ifdef DL_GLOBAL
8037 #    define LT_DLGLOBAL         DL_GLOBAL
8038 #  else
8039 #    define LT_DLGLOBAL         0
8040 #  endif
8041 #endif
8042
8043 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
8044    find out it does not work in some platform. */
8045 #ifndef LT_DLLAZY_OR_NOW
8046 #  ifdef RTLD_LAZY
8047 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
8048 #  else
8049 #    ifdef DL_LAZY
8050 #      define LT_DLLAZY_OR_NOW          DL_LAZY
8051 #    else
8052 #      ifdef RTLD_NOW
8053 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
8054 #      else
8055 #        ifdef DL_NOW
8056 #          define LT_DLLAZY_OR_NOW      DL_NOW
8057 #        else
8058 #          define LT_DLLAZY_OR_NOW      0
8059 #        endif
8060 #      endif
8061 #    endif
8062 #  endif
8063 #endif
8064
8065 #ifdef __cplusplus
8066 extern "C" void exit (int);
8067 #endif
8068
8069 void fnord() { int i=42;}
8070 int main ()
8071 {
8072   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
8073   int status = $lt_dlunknown;
8074
8075   if (self)
8076     {
8077       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
8078       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
8079       /* dlclose (self); */
8080     }
8081
8082     exit (status);
8083 }
8084 EOF
8085   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8086   (eval $ac_link) 2>&5
8087   ac_status=$?
8088   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8089   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
8090     (./conftest; exit; ) 2>/dev/null
8091     lt_status=$?
8092     case x$lt_status in
8093       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
8094       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
8095       x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
8096     esac
8097   else :
8098     # compilation failed
8099     lt_cv_dlopen_self=no
8100   fi
8101 fi
8102 rm -fr conftest*
8103
8104
8105 fi
8106 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
8107 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
8108
8109     if test "x$lt_cv_dlopen_self" = xyes; then
8110       LDFLAGS="$LDFLAGS $link_static_flag"
8111       echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
8112 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
8113 if test "${lt_cv_dlopen_self_static+set}" = set; then
8114   echo $ECHO_N "(cached) $ECHO_C" >&6
8115 else
8116           if test "$cross_compiling" = yes; then :
8117   lt_cv_dlopen_self_static=cross
8118 else
8119   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
8120   lt_status=$lt_dlunknown
8121   cat > conftest.$ac_ext <<EOF
8122 #line 8122 "configure"
8123 #include "confdefs.h"
8124
8125 #if HAVE_DLFCN_H
8126 #include <dlfcn.h>
8127 #endif
8128
8129 #include <stdio.h>
8130
8131 #ifdef RTLD_GLOBAL
8132 #  define LT_DLGLOBAL           RTLD_GLOBAL
8133 #else
8134 #  ifdef DL_GLOBAL
8135 #    define LT_DLGLOBAL         DL_GLOBAL
8136 #  else
8137 #    define LT_DLGLOBAL         0
8138 #  endif
8139 #endif
8140
8141 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
8142    find out it does not work in some platform. */
8143 #ifndef LT_DLLAZY_OR_NOW
8144 #  ifdef RTLD_LAZY
8145 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
8146 #  else
8147 #    ifdef DL_LAZY
8148 #      define LT_DLLAZY_OR_NOW          DL_LAZY
8149 #    else
8150 #      ifdef RTLD_NOW
8151 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
8152 #      else
8153 #        ifdef DL_NOW
8154 #          define LT_DLLAZY_OR_NOW      DL_NOW
8155 #        else
8156 #          define LT_DLLAZY_OR_NOW      0
8157 #        endif
8158 #      endif
8159 #    endif
8160 #  endif
8161 #endif
8162
8163 #ifdef __cplusplus
8164 extern "C" void exit (int);
8165 #endif
8166
8167 void fnord() { int i=42;}
8168 int main ()
8169 {
8170   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
8171   int status = $lt_dlunknown;
8172
8173   if (self)
8174     {
8175       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
8176       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
8177       /* dlclose (self); */
8178     }
8179
8180     exit (status);
8181 }
8182 EOF
8183   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8184   (eval $ac_link) 2>&5
8185   ac_status=$?
8186   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8187   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
8188     (./conftest; exit; ) 2>/dev/null
8189     lt_status=$?
8190     case x$lt_status in
8191       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
8192       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
8193       x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
8194     esac
8195   else :
8196     # compilation failed
8197     lt_cv_dlopen_self_static=no
8198   fi
8199 fi
8200 rm -fr conftest*
8201
8202
8203 fi
8204 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
8205 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
8206     fi
8207
8208     CPPFLAGS="$save_CPPFLAGS"
8209     LDFLAGS="$save_LDFLAGS"
8210     LIBS="$save_LIBS"
8211     ;;
8212   esac
8213
8214   case $lt_cv_dlopen_self in
8215   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
8216   *) enable_dlopen_self=unknown ;;
8217   esac
8218
8219   case $lt_cv_dlopen_self_static in
8220   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
8221   *) enable_dlopen_self_static=unknown ;;
8222   esac
8223 fi
8224
8225
8226 # Report which librarie types wil actually be built
8227 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
8228 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
8229 echo "$as_me:$LINENO: result: $can_build_shared" >&5
8230 echo "${ECHO_T}$can_build_shared" >&6
8231
8232 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
8233 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
8234 test "$can_build_shared" = "no" && enable_shared=no
8235
8236 # On AIX, shared libraries and static libraries use the same namespace, and
8237 # are all built from PIC.
8238 case "$host_os" in
8239 aix3*)
8240   test "$enable_shared" = yes && enable_static=no
8241   if test -n "$RANLIB"; then
8242     archive_cmds="$archive_cmds~\$RANLIB \$lib"
8243     postinstall_cmds='$RANLIB $lib'
8244   fi
8245   ;;
8246
8247 aix4*)
8248   if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
8249     test "$enable_shared" = yes && enable_static=no
8250   fi
8251   ;;
8252   darwin* | rhapsody*)
8253   if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
8254     archive_cmds_need_lc=no
8255     case "$host_os" in
8256     rhapsody* | darwin1.[012])
8257       allow_undefined_flag='-undefined suppress'
8258       ;;
8259     *) # Darwin 1.3 on
8260       test -z ${LD_TWOLEVEL_NAMESPACE} && allow_undefined_flag='-flat_namespace -undefined suppress'
8261       ;;
8262     esac
8263     # FIXME: Relying on posixy $() will cause problems for
8264     #        cross-compilation, but unfortunately the echo tests do not
8265     #        yet detect zsh echo's removal of \ escapes.  Also zsh mangles
8266     #          `"' quotes if we put them in here... so don't!
8267                 output_verbose_link_cmd='echo'
8268     archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags -install_name $rpath/$soname $verstring'
8269     module_cmds='$CC -bundle $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags'
8270     # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
8271                   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}'
8272                   module_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -bundle $allow_undefined_flag  -o $lib $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
8273     hardcode_direct=no
8274     hardcode_automatic=yes
8275     hardcode_shlibpath_var=unsupported
8276     whole_archive_flag_spec='-all_load $convenience'
8277     link_all_deplibs=yes
8278     fi
8279     ;;
8280 esac
8281 echo "$as_me:$LINENO: result: $enable_shared" >&5
8282 echo "${ECHO_T}$enable_shared" >&6
8283
8284 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
8285 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
8286 # Make sure either enable_shared or enable_static is yes.
8287 test "$enable_shared" = yes || enable_static=yes
8288 echo "$as_me:$LINENO: result: $enable_static" >&5
8289 echo "${ECHO_T}$enable_static" >&6
8290
8291 # The else clause should only fire when bootstrapping the
8292 # libtool distribution, otherwise you forgot to ship ltmain.sh
8293 # with your package, and you will get complaints that there are
8294 # no rules to generate ltmain.sh.
8295 if test -f "$ltmain"; then
8296   # See if we are running on zsh, and set the options which allow our commands through
8297   # without removal of \ escapes.
8298   if test -n "${ZSH_VERSION+set}" ; then
8299     setopt NO_GLOB_SUBST
8300   fi
8301   # Now quote all the things that may contain metacharacters while being
8302   # careful not to overquote the AC_SUBSTed values.  We take copies of the
8303   # variables and quote the copies for generation of the libtool script.
8304   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \
8305     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
8306     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
8307     deplibs_check_method reload_flag reload_cmds need_locks \
8308     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
8309     lt_cv_sys_global_symbol_to_c_name_address \
8310     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
8311     old_postinstall_cmds old_postuninstall_cmds \
8312     compiler \
8313     CC \
8314     LD \
8315     lt_prog_compiler_wl \
8316     lt_prog_compiler_pic \
8317     lt_prog_compiler_static \
8318     lt_prog_compiler_no_builtin_flag \
8319     export_dynamic_flag_spec \
8320     thread_safe_flag_spec \
8321     whole_archive_flag_spec \
8322     enable_shared_with_static_runtimes \
8323     old_archive_cmds \
8324     old_archive_from_new_cmds \
8325     predep_objects \
8326     postdep_objects \
8327     predeps \
8328     postdeps \
8329     compiler_lib_search_path \
8330     archive_cmds \
8331     archive_expsym_cmds \
8332     postinstall_cmds \
8333     postuninstall_cmds \
8334     old_archive_from_expsyms_cmds \
8335     allow_undefined_flag \
8336     no_undefined_flag \
8337     export_symbols_cmds \
8338     hardcode_libdir_flag_spec \
8339     hardcode_libdir_flag_spec_ld \
8340     hardcode_libdir_separator \
8341     hardcode_automatic \
8342     module_cmds \
8343     module_expsym_cmds \
8344     lt_cv_prog_compiler_c_o \
8345     exclude_expsyms \
8346     include_expsyms; do
8347
8348     case $var in
8349     old_archive_cmds | \
8350     old_archive_from_new_cmds | \
8351     archive_cmds | \
8352     archive_expsym_cmds | \
8353     module_cmds | \
8354     module_expsym_cmds | \
8355     old_archive_from_expsyms_cmds | \
8356     export_symbols_cmds | \
8357     extract_expsyms_cmds | reload_cmds | finish_cmds | \
8358     postinstall_cmds | postuninstall_cmds | \
8359     old_postinstall_cmds | old_postuninstall_cmds | \
8360     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
8361       # Double-quote double-evaled strings.
8362       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
8363       ;;
8364     *)
8365       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
8366       ;;
8367     esac
8368   done
8369
8370   case $lt_echo in
8371   *'\$0 --fallback-echo"')
8372     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
8373     ;;
8374   esac
8375
8376 cfgfile="${ofile}T"
8377   trap "$rm \"$cfgfile\"; exit 1" 1 2 15
8378   $rm -f "$cfgfile"
8379   { echo "$as_me:$LINENO: creating $ofile" >&5
8380 echo "$as_me: creating $ofile" >&6;}
8381
8382   cat <<__EOF__ >> "$cfgfile"
8383 #! $SHELL
8384
8385 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
8386 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
8387 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
8388 #
8389 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
8390 # Free Software Foundation, Inc.
8391 #
8392 # This file is part of GNU Libtool:
8393 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
8394 #
8395 # This program is free software; you can redistribute it and/or modify
8396 # it under the terms of the GNU General Public License as published by
8397 # the Free Software Foundation; either version 2 of the License, or
8398 # (at your option) any later version.
8399 #
8400 # This program is distributed in the hope that it will be useful, but
8401 # WITHOUT ANY WARRANTY; without even the implied warranty of
8402 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
8403 # General Public License for more details.
8404 #
8405 # You should have received a copy of the GNU General Public License
8406 # along with this program; if not, write to the Free Software
8407 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
8408 #
8409 # As a special exception to the GNU General Public License, if you
8410 # distribute this file as part of a program that contains a
8411 # configuration script generated by Autoconf, you may include it under
8412 # the same distribution terms that you use for the rest of that program.
8413
8414 # A sed program that does not truncate output.
8415 SED=$lt_SED
8416
8417 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
8418 Xsed="$SED -e s/^X//"
8419
8420 # The HP-UX ksh and POSIX shell print the target directory to stdout
8421 # if CDPATH is set.
8422 if test "X\${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
8423
8424 # The names of the tagged configurations supported by this script.
8425 available_tags=
8426
8427 # ### BEGIN LIBTOOL CONFIG
8428
8429 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
8430
8431 # Shell to use when invoking shell scripts.
8432 SHELL=$lt_SHELL
8433
8434 # Whether or not to build shared libraries.
8435 build_libtool_libs=$enable_shared
8436
8437 # Whether or not to build static libraries.
8438 build_old_libs=$enable_static
8439
8440 # Whether or not to add -lc for building shared libraries.
8441 build_libtool_need_lc=$archive_cmds_need_lc
8442
8443 # Whether or not to disallow shared libs when runtime libs are static
8444 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
8445
8446 # Whether or not to optimize for fast installation.
8447 fast_install=$enable_fast_install
8448
8449 # The host system.
8450 host_alias=$host_alias
8451 host=$host
8452
8453 # An echo program that does not interpret backslashes.
8454 echo=$lt_echo
8455
8456 # The archiver.
8457 AR=$lt_AR
8458 AR_FLAGS=$lt_AR_FLAGS
8459
8460 # A C compiler.
8461 LTCC=$lt_LTCC
8462
8463 # A language-specific compiler.
8464 CC=$lt_compiler
8465
8466 # Is the compiler the GNU C compiler?
8467 with_gcc=$GCC
8468
8469 # An ERE matcher.
8470 EGREP=$lt_EGREP
8471
8472 # The linker used to build libraries.
8473 LD=$lt_LD
8474
8475 # Whether we need hard or soft links.
8476 LN_S=$lt_LN_S
8477
8478 # A BSD-compatible nm program.
8479 NM=$lt_NM
8480
8481 # A symbol stripping program
8482 STRIP=$STRIP
8483
8484 # Used to examine libraries when file_magic_cmd begins "file"
8485 MAGIC_CMD=$MAGIC_CMD
8486
8487 # Used on cygwin: DLL creation program.
8488 DLLTOOL="$DLLTOOL"
8489
8490 # Used on cygwin: object dumper.
8491 OBJDUMP="$OBJDUMP"
8492
8493 # Used on cygwin: assembler.
8494 AS="$AS"
8495
8496 # The name of the directory that contains temporary libtool files.
8497 objdir=$objdir
8498
8499 # How to create reloadable object files.
8500 reload_flag=$lt_reload_flag
8501 reload_cmds=$lt_reload_cmds
8502
8503 # How to pass a linker flag through the compiler.
8504 wl=$lt_lt_prog_compiler_wl
8505
8506 # Object file suffix (normally "o").
8507 objext="$ac_objext"
8508
8509 # Old archive suffix (normally "a").
8510 libext="$libext"
8511
8512 # Shared library suffix (normally ".so").
8513 shrext='$shrext'
8514
8515 # Executable file suffix (normally "").
8516 exeext="$exeext"
8517
8518 # Additional compiler flags for building library objects.
8519 pic_flag=$lt_lt_prog_compiler_pic
8520 pic_mode=$pic_mode
8521
8522 # What is the maximum length of a command?
8523 max_cmd_len=$lt_cv_sys_max_cmd_len
8524
8525 # Does compiler simultaneously support -c and -o options?
8526 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
8527
8528 # Must we lock files when doing compilation ?
8529 need_locks=$lt_need_locks
8530
8531 # Do we need the lib prefix for modules?
8532 need_lib_prefix=$need_lib_prefix
8533
8534 # Do we need a version for libraries?
8535 need_version=$need_version
8536
8537 # Whether dlopen is supported.
8538 dlopen_support=$enable_dlopen
8539
8540 # Whether dlopen of programs is supported.
8541 dlopen_self=$enable_dlopen_self
8542
8543 # Whether dlopen of statically linked programs is supported.
8544 dlopen_self_static=$enable_dlopen_self_static
8545
8546 # Compiler flag to prevent dynamic linking.
8547 link_static_flag=$lt_lt_prog_compiler_static
8548
8549 # Compiler flag to turn off builtin functions.
8550 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
8551
8552 # Compiler flag to allow reflexive dlopens.
8553 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
8554
8555 # Compiler flag to generate shared objects directly from archives.
8556 whole_archive_flag_spec=$lt_whole_archive_flag_spec
8557
8558 # Compiler flag to generate thread-safe objects.
8559 thread_safe_flag_spec=$lt_thread_safe_flag_spec
8560
8561 # Library versioning type.
8562 version_type=$version_type
8563
8564 # Format of library name prefix.
8565 libname_spec=$lt_libname_spec
8566
8567 # List of archive names.  First name is the real one, the rest are links.
8568 # The last name is the one that the linker finds with -lNAME.
8569 library_names_spec=$lt_library_names_spec
8570
8571 # The coded name of the library, if different from the real name.
8572 soname_spec=$lt_soname_spec
8573
8574 # Commands used to build and install an old-style archive.
8575 RANLIB=$lt_RANLIB
8576 old_archive_cmds=$lt_old_archive_cmds
8577 old_postinstall_cmds=$lt_old_postinstall_cmds
8578 old_postuninstall_cmds=$lt_old_postuninstall_cmds
8579
8580 # Create an old-style archive from a shared archive.
8581 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
8582
8583 # Create a temporary old-style archive to link instead of a shared archive.
8584 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
8585
8586 # Commands used to build and install a shared archive.
8587 archive_cmds=$lt_archive_cmds
8588 archive_expsym_cmds=$lt_archive_expsym_cmds
8589 postinstall_cmds=$lt_postinstall_cmds
8590 postuninstall_cmds=$lt_postuninstall_cmds
8591
8592 # Commands used to build a loadable module (assumed same as above if empty)
8593 module_cmds=$lt_module_cmds
8594 module_expsym_cmds=$lt_module_expsym_cmds
8595
8596 # Commands to strip libraries.
8597 old_striplib=$lt_old_striplib
8598 striplib=$lt_striplib
8599
8600 # Dependencies to place before the objects being linked to create a
8601 # shared library.
8602 predep_objects=$lt_predep_objects
8603
8604 # Dependencies to place after the objects being linked to create a
8605 # shared library.
8606 postdep_objects=$lt_postdep_objects
8607
8608 # Dependencies to place before the objects being linked to create a
8609 # shared library.
8610 predeps=$lt_predeps
8611
8612 # Dependencies to place after the objects being linked to create a
8613 # shared library.
8614 postdeps=$lt_postdeps
8615
8616 # The library search path used internally by the compiler when linking
8617 # a shared library.
8618 compiler_lib_search_path=$lt_compiler_lib_search_path
8619
8620 # Method to check whether dependent libraries are shared objects.
8621 deplibs_check_method=$lt_deplibs_check_method
8622
8623 # Command to use when deplibs_check_method == file_magic.
8624 file_magic_cmd=$lt_file_magic_cmd
8625
8626 # Flag that allows shared libraries with undefined symbols to be built.
8627 allow_undefined_flag=$lt_allow_undefined_flag
8628
8629 # Flag that forces no undefined symbols.
8630 no_undefined_flag=$lt_no_undefined_flag
8631
8632 # Commands used to finish a libtool library installation in a directory.
8633 finish_cmds=$lt_finish_cmds
8634
8635 # Same as above, but a single script fragment to be evaled but not shown.
8636 finish_eval=$lt_finish_eval
8637
8638 # Take the output of nm and produce a listing of raw symbols and C names.
8639 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
8640
8641 # Transform the output of nm in a proper C declaration
8642 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
8643
8644 # Transform the output of nm in a C name address pair
8645 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
8646
8647 # This is the shared library runtime path variable.
8648 runpath_var=$runpath_var
8649
8650 # This is the shared library path variable.
8651 shlibpath_var=$shlibpath_var
8652
8653 # Is shlibpath searched before the hard-coded library search path?
8654 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
8655
8656 # How to hardcode a shared library path into an executable.
8657 hardcode_action=$hardcode_action
8658
8659 # Whether we should hardcode library paths into libraries.
8660 hardcode_into_libs=$hardcode_into_libs
8661
8662 # Flag to hardcode \$libdir into a binary during linking.
8663 # This must work even if \$libdir does not exist.
8664 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
8665
8666 # If ld is used when linking, flag to hardcode \$libdir into
8667 # a binary during linking. This must work even if \$libdir does
8668 # not exist.
8669 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
8670
8671 # Whether we need a single -rpath flag with a separated argument.
8672 hardcode_libdir_separator=$lt_hardcode_libdir_separator
8673
8674 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
8675 # resulting binary.
8676 hardcode_direct=$hardcode_direct
8677
8678 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
8679 # resulting binary.
8680 hardcode_minus_L=$hardcode_minus_L
8681
8682 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
8683 # the resulting binary.
8684 hardcode_shlibpath_var=$hardcode_shlibpath_var
8685
8686 # Set to yes if building a shared library automatically hardcodes DIR into the library
8687 # and all subsequent libraries and executables linked against it.
8688 hardcode_automatic=$hardcode_automatic
8689
8690 # Variables whose values should be saved in libtool wrapper scripts and
8691 # restored at relink time.
8692 variables_saved_for_relink="$variables_saved_for_relink"
8693
8694 # Whether libtool must link a program against all its dependency libraries.
8695 link_all_deplibs=$link_all_deplibs
8696
8697 # Compile-time system search path for libraries
8698 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
8699
8700 # Run-time system search path for libraries
8701 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
8702
8703 # Fix the shell variable \$srcfile for the compiler.
8704 fix_srcfile_path="$fix_srcfile_path"
8705
8706 # Set to yes if exported symbols are required.
8707 always_export_symbols=$always_export_symbols
8708
8709 # The commands to list exported symbols.
8710 export_symbols_cmds=$lt_export_symbols_cmds
8711
8712 # The commands to extract the exported symbol list from a shared archive.
8713 extract_expsyms_cmds=$lt_extract_expsyms_cmds
8714
8715 # Symbols that should not be listed in the preloaded symbols.
8716 exclude_expsyms=$lt_exclude_expsyms
8717
8718 # Symbols that must always be exported.
8719 include_expsyms=$lt_include_expsyms
8720
8721 # ### END LIBTOOL CONFIG
8722
8723 __EOF__
8724
8725
8726   case $host_os in
8727   aix3*)
8728     cat <<\EOF >> "$cfgfile"
8729
8730 # AIX sometimes has problems with the GCC collect2 program.  For some
8731 # reason, if we set the COLLECT_NAMES environment variable, the problems
8732 # vanish in a puff of smoke.
8733 if test "X${COLLECT_NAMES+set}" != Xset; then
8734   COLLECT_NAMES=
8735   export COLLECT_NAMES
8736 fi
8737 EOF
8738     ;;
8739   esac
8740
8741   # We use sed instead of cat because bash on DJGPP gets confused if
8742   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
8743   # text mode, it properly converts lines to CR/LF.  This bash problem
8744   # is reportedly fixed, but why not run on old versions too?
8745   sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
8746
8747   mv -f "$cfgfile" "$ofile" || \
8748     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
8749   chmod +x "$ofile"
8750
8751 else
8752   # If there is no Makefile yet, we rely on a make rule to execute
8753   # `config.status --recheck' to rerun these tests and create the
8754   # libtool script then.
8755   test -f Makefile && make "$ltmain"
8756 fi
8757
8758
8759 ac_ext=c
8760 ac_cpp='$CPP $CPPFLAGS'
8761 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8762 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8763 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8764
8765 CC="$lt_save_CC"
8766
8767
8768 # Check whether --with-tags or --without-tags was given.
8769 if test "${with_tags+set}" = set; then
8770   withval="$with_tags"
8771   tagnames="$withval"
8772 fi;
8773
8774 if test -f "$ltmain" && test -n "$tagnames"; then
8775   if test ! -f "${ofile}"; then
8776     { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
8777 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
8778   fi
8779
8780   if test -z "$LTCC"; then
8781     eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
8782     if test -z "$LTCC"; then
8783       { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
8784 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
8785     else
8786       { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
8787 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
8788     fi
8789   fi
8790
8791   # Extract list of available tagged configurations in $ofile.
8792   # Note that this assumes the entire list is on one line.
8793   available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
8794
8795   lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8796   for tagname in $tagnames; do
8797     IFS="$lt_save_ifs"
8798     # Check whether tagname contains only valid characters
8799     case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
8800     "") ;;
8801     *)  { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
8802 echo "$as_me: error: invalid tag name: $tagname" >&2;}
8803    { (exit 1); exit 1; }; }
8804         ;;
8805     esac
8806
8807     if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
8808     then
8809       { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
8810 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
8811    { (exit 1); exit 1; }; }
8812     fi
8813
8814     # Update the list of available tags.
8815     if test -n "$tagname"; then
8816       echo appending configuration tag \"$tagname\" to $ofile
8817
8818       case $tagname in
8819       CXX)
8820         if test -n "$CXX" && test "X$CXX" != "Xno"; then
8821           ac_ext=cc
8822 ac_cpp='$CXXCPP $CPPFLAGS'
8823 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8824 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8825 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8826
8827
8828
8829
8830 archive_cmds_need_lc_CXX=no
8831 allow_undefined_flag_CXX=
8832 always_export_symbols_CXX=no
8833 archive_expsym_cmds_CXX=
8834 export_dynamic_flag_spec_CXX=
8835 hardcode_direct_CXX=no
8836 hardcode_libdir_flag_spec_CXX=
8837 hardcode_libdir_flag_spec_ld_CXX=
8838 hardcode_libdir_separator_CXX=
8839 hardcode_minus_L_CXX=no
8840 hardcode_automatic_CXX=no
8841 module_cmds_CXX=
8842 module_expsym_cmds_CXX=
8843 link_all_deplibs_CXX=unknown
8844 old_archive_cmds_CXX=$old_archive_cmds
8845 no_undefined_flag_CXX=
8846 whole_archive_flag_spec_CXX=
8847 enable_shared_with_static_runtimes_CXX=no
8848
8849 # Dependencies to place before and after the object being linked:
8850 predep_objects_CXX=
8851 postdep_objects_CXX=
8852 predeps_CXX=
8853 postdeps_CXX=
8854 compiler_lib_search_path_CXX=
8855
8856 # Source file extension for C++ test sources.
8857 ac_ext=cc
8858
8859 # Object file extension for compiled C++ test sources.
8860 objext=o
8861 objext_CXX=$objext
8862
8863 # Code to be used in simple compile tests
8864 lt_simple_compile_test_code="int some_variable = 0;\n"
8865
8866 # Code to be used in simple link tests
8867 lt_simple_link_test_code='int main(int, char *) { return(0); }\n'
8868
8869 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
8870
8871 # If no C compiler was specified, use CC.
8872 LTCC=${LTCC-"$CC"}
8873
8874 # Allow CC to be a program name with arguments.
8875 compiler=$CC
8876
8877
8878 # Allow CC to be a program name with arguments.
8879 lt_save_CC=$CC
8880 lt_save_LD=$LD
8881 lt_save_GCC=$GCC
8882 GCC=$GXX
8883 lt_save_with_gnu_ld=$with_gnu_ld
8884 lt_save_path_LD=$lt_cv_path_LD
8885 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
8886   lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
8887 else
8888   unset lt_cv_prog_gnu_ld
8889 fi
8890 if test -n "${lt_cv_path_LDCXX+set}"; then
8891   lt_cv_path_LD=$lt_cv_path_LDCXX
8892 else
8893   unset lt_cv_path_LD
8894 fi
8895 test -z "${LDCXX+set}" || LD=$LDCXX
8896 CC=${CXX-"c++"}
8897 compiler=$CC
8898 compiler_CXX=$CC
8899 cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
8900
8901 # We don't want -fno-exception wen compiling C++ code, so set the
8902 # no_builtin_flag separately
8903 if test "$GXX" = yes; then
8904   lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
8905 else
8906   lt_prog_compiler_no_builtin_flag_CXX=
8907 fi
8908
8909 if test "$GXX" = yes; then
8910   # Set up default GNU C++ configuration
8911
8912
8913 # Check whether --with-gnu-ld or --without-gnu-ld was given.
8914 if test "${with_gnu_ld+set}" = set; then
8915   withval="$with_gnu_ld"
8916   test "$withval" = no || with_gnu_ld=yes
8917 else
8918   with_gnu_ld=no
8919 fi;
8920 ac_prog=ld
8921 if test "$GCC" = yes; then
8922   # Check if gcc -print-prog-name=ld gives a path.
8923   echo "$as_me:$LINENO: checking for ld used by $CC" >&5
8924 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
8925   case $host in
8926   *-*-mingw*)
8927     # gcc leaves a trailing carriage return which upsets mingw
8928     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
8929   *)
8930     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
8931   esac
8932   case $ac_prog in
8933     # Accept absolute paths.
8934     [\\/]* | ?:[\\/]*)
8935       re_direlt='/[^/][^/]*/\.\./'
8936       # Canonicalize the path of ld
8937       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
8938       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
8939         ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
8940       done
8941       test -z "$LD" && LD="$ac_prog"
8942       ;;
8943   "")
8944     # If it fails, then pretend we aren't using GCC.
8945     ac_prog=ld
8946     ;;
8947   *)
8948     # If it is relative, then search for the first ld in PATH.
8949     with_gnu_ld=unknown
8950     ;;
8951   esac
8952 elif test "$with_gnu_ld" = yes; then
8953   echo "$as_me:$LINENO: checking for GNU ld" >&5
8954 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
8955 else
8956   echo "$as_me:$LINENO: checking for non-GNU ld" >&5
8957 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
8958 fi
8959 if test "${lt_cv_path_LD+set}" = set; then
8960   echo $ECHO_N "(cached) $ECHO_C" >&6
8961 else
8962   if test -z "$LD"; then
8963   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8964   for ac_dir in $PATH; do
8965     IFS="$lt_save_ifs"
8966     test -z "$ac_dir" && ac_dir=.
8967     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
8968       lt_cv_path_LD="$ac_dir/$ac_prog"
8969       # Check to see if the program is GNU ld.  I'd rather use --version,
8970       # but apparently some GNU ld's only accept -v.
8971       # Break only if it was the GNU/non-GNU ld that we prefer.
8972       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
8973       *GNU* | *'with BFD'*)
8974         test "$with_gnu_ld" != no && break
8975         ;;
8976       *)
8977         test "$with_gnu_ld" != yes && break
8978         ;;
8979       esac
8980     fi
8981   done
8982   IFS="$lt_save_ifs"
8983 else
8984   lt_cv_path_LD="$LD" # Let the user override the test with a path.
8985 fi
8986 fi
8987
8988 LD="$lt_cv_path_LD"
8989 if test -n "$LD"; then
8990   echo "$as_me:$LINENO: result: $LD" >&5
8991 echo "${ECHO_T}$LD" >&6
8992 else
8993   echo "$as_me:$LINENO: result: no" >&5
8994 echo "${ECHO_T}no" >&6
8995 fi
8996 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
8997 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
8998    { (exit 1); exit 1; }; }
8999 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
9000 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
9001 if test "${lt_cv_prog_gnu_ld+set}" = set; then
9002   echo $ECHO_N "(cached) $ECHO_C" >&6
9003 else
9004   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
9005 case `"$LD" -v 2>&1 </dev/null` in
9006 *GNU* | *'with BFD'*)
9007   lt_cv_prog_gnu_ld=yes
9008   ;;
9009 *)
9010   lt_cv_prog_gnu_ld=no
9011   ;;
9012 esac
9013 fi
9014 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
9015 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
9016 with_gnu_ld=$lt_cv_prog_gnu_ld
9017
9018
9019
9020   # Check if GNU C++ uses GNU ld as the underlying linker, since the
9021   # archiving commands below assume that GNU ld is being used.
9022   if test "$with_gnu_ld" = yes; then
9023     archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
9024     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'
9025
9026     hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
9027     export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
9028
9029     # If archive_cmds runs LD, not CC, wlarc should be empty
9030     # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
9031     #     investigate it a little bit more. (MM)
9032     wlarc='${wl}'
9033
9034     # ancient GNU ld didn't support --whole-archive et. al.
9035     if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
9036         grep 'no-whole-archive' > /dev/null; then
9037       whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9038     else
9039       whole_archive_flag_spec_CXX=
9040     fi
9041   else
9042     with_gnu_ld=no
9043     wlarc=
9044
9045     # A generic and very simple default shared library creation
9046     # command for GNU C++ for the case where it uses the native
9047     # linker, instead of GNU ld.  If possible, this setting should
9048     # overridden to take advantage of the native linker features on
9049     # the platform it is being used on.
9050     archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
9051   fi
9052
9053   # Commands to make compiler produce verbose output that lists
9054   # what "hidden" libraries, object files and flags are used when
9055   # linking a shared library.
9056   output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
9057
9058 else
9059   GXX=no
9060   with_gnu_ld=no
9061   wlarc=
9062 fi
9063
9064 # PORTME: fill in a description of your system's C++ link characteristics
9065 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9066 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
9067 ld_shlibs_CXX=yes
9068 case $host_os in
9069   aix3*)
9070     # FIXME: insert proper C++ library support
9071     ld_shlibs_CXX=no
9072     ;;
9073   aix4* | aix5*)
9074     if test "$host_cpu" = ia64; then
9075       # On IA64, the linker does run time linking by default, so we don't
9076       # have to do anything special.
9077       aix_use_runtimelinking=no
9078       exp_sym_flag='-Bexport'
9079       no_entry_flag=""
9080     else
9081       aix_use_runtimelinking=no
9082
9083       # Test if we are trying to use run time linking or normal
9084       # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9085       # need to do runtime linking.
9086       case $host_os in aix4.[23]|aix4.[23].*|aix5*)
9087         for ld_flag in $LDFLAGS; do
9088           case $ld_flag in
9089           *-brtl*)
9090             aix_use_runtimelinking=yes
9091             break
9092             ;;
9093           esac
9094         done
9095       esac
9096
9097       exp_sym_flag='-bexport'
9098       no_entry_flag='-bnoentry'
9099     fi
9100
9101     # When large executables or shared objects are built, AIX ld can
9102     # have problems creating the table of contents.  If linking a library
9103     # or program results in "error TOC overflow" add -mminimal-toc to
9104     # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
9105     # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9106
9107     archive_cmds_CXX=''
9108     hardcode_direct_CXX=yes
9109     hardcode_libdir_separator_CXX=':'
9110     link_all_deplibs_CXX=yes
9111
9112     if test "$GXX" = yes; then
9113       case $host_os in aix4.012|aix4.012.*)
9114       # We only want to do this on AIX 4.2 and lower, the check
9115       # below for broken collect2 doesn't work under 4.3+
9116         collect2name=`${CC} -print-prog-name=collect2`
9117         if test -f "$collect2name" && \
9118            strings "$collect2name" | grep resolve_lib_name >/dev/null
9119         then
9120           # We have reworked collect2
9121           hardcode_direct_CXX=yes
9122         else
9123           # We have old collect2
9124           hardcode_direct_CXX=unsupported
9125           # It fails to find uninstalled libraries when the uninstalled
9126           # path is not listed in the libpath.  Setting hardcode_minus_L
9127           # to unsupported forces relinking
9128           hardcode_minus_L_CXX=yes
9129           hardcode_libdir_flag_spec_CXX='-L$libdir'
9130           hardcode_libdir_separator_CXX=
9131         fi
9132       esac
9133       shared_flag='-shared'
9134     else
9135       # not using gcc
9136       if test "$host_cpu" = ia64; then
9137         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9138         # chokes on -Wl,-G. The following line is correct:
9139         shared_flag='-G'
9140       else
9141         if test "$aix_use_runtimelinking" = yes; then
9142           shared_flag='${wl}-G'
9143         else
9144           shared_flag='${wl}-bM:SRE'
9145         fi
9146       fi
9147     fi
9148
9149     # It seems that -bexpall does not export symbols beginning with
9150     # underscore (_), so it is better to generate a list of symbols to export.
9151     always_export_symbols_CXX=yes
9152     if test "$aix_use_runtimelinking" = yes; then
9153       # Warning - without using the other runtime loading flags (-brtl),
9154       # -berok will link without error, but may produce a broken library.
9155       allow_undefined_flag_CXX='-berok'
9156       # Determine the default libpath from the value encoded in an empty executable.
9157       cat >conftest.$ac_ext <<_ACEOF
9158 #line $LINENO "configure"
9159 /* confdefs.h.  */
9160 _ACEOF
9161 cat confdefs.h >>conftest.$ac_ext
9162 cat >>conftest.$ac_ext <<_ACEOF
9163 /* end confdefs.h.  */
9164
9165 int
9166 main ()
9167 {
9168
9169   ;
9170   return 0;
9171 }
9172 _ACEOF
9173 rm -f conftest.$ac_objext conftest$ac_exeext
9174 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9175   (eval $ac_link) 2>&5
9176   ac_status=$?
9177   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9178   (exit $ac_status); } &&
9179          { ac_try='test -s conftest$ac_exeext'
9180   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9181   (eval $ac_try) 2>&5
9182   ac_status=$?
9183   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9184   (exit $ac_status); }; }; then
9185
9186 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
9187 }'`
9188 # Check for a 64-bit object if we didn't find anything.
9189 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; }
9190 }'`; fi
9191 else
9192   echo "$as_me: failed program was:" >&5
9193 sed 's/^/| /' conftest.$ac_ext >&5
9194
9195 fi
9196 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9197 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9198
9199       hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
9200
9201       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"
9202      else
9203       if test "$host_cpu" = ia64; then
9204         hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
9205         allow_undefined_flag_CXX="-z nodefs"
9206         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"
9207       else
9208         # Determine the default libpath from the value encoded in an empty executable.
9209         cat >conftest.$ac_ext <<_ACEOF
9210 #line $LINENO "configure"
9211 /* confdefs.h.  */
9212 _ACEOF
9213 cat confdefs.h >>conftest.$ac_ext
9214 cat >>conftest.$ac_ext <<_ACEOF
9215 /* end confdefs.h.  */
9216
9217 int
9218 main ()
9219 {
9220
9221   ;
9222   return 0;
9223 }
9224 _ACEOF
9225 rm -f conftest.$ac_objext conftest$ac_exeext
9226 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9227   (eval $ac_link) 2>&5
9228   ac_status=$?
9229   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9230   (exit $ac_status); } &&
9231          { ac_try='test -s conftest$ac_exeext'
9232   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9233   (eval $ac_try) 2>&5
9234   ac_status=$?
9235   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9236   (exit $ac_status); }; }; then
9237
9238 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
9239 }'`
9240 # Check for a 64-bit object if we didn't find anything.
9241 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; }
9242 }'`; fi
9243 else
9244   echo "$as_me: failed program was:" >&5
9245 sed 's/^/| /' conftest.$ac_ext >&5
9246
9247 fi
9248 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9249 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9250
9251         hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
9252         # Warning - without using the other run time loading flags,
9253         # -berok will link without error, but may produce a broken library.
9254         no_undefined_flag_CXX=' ${wl}-bernotok'
9255         allow_undefined_flag_CXX=' ${wl}-berok'
9256         # -bexpall does not export symbols beginning with underscore (_)
9257         always_export_symbols_CXX=yes
9258         # Exported symbols can be pulled into shared objects from archives
9259         whole_archive_flag_spec_CXX=' '
9260         archive_cmds_need_lc_CXX=yes
9261         # This is similar to how AIX traditionally builds it's shared libraries.
9262         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'
9263       fi
9264     fi
9265     ;;
9266   chorus*)
9267     case $cc_basename in
9268       *)
9269         # FIXME: insert proper C++ library support
9270         ld_shlibs_CXX=no
9271         ;;
9272     esac
9273     ;;
9274
9275   cygwin* | mingw* | pw32*)
9276     # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
9277     # as there is no search path for DLLs.
9278     hardcode_libdir_flag_spec_CXX='-L$libdir'
9279     allow_undefined_flag_CXX=unsupported
9280     always_export_symbols_CXX=no
9281     enable_shared_with_static_runtimes_CXX=yes
9282
9283     if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
9284       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'
9285       # If the export-symbols file already is a .def file (1st line
9286       # is EXPORTS), use it as is; otherwise, prepend...
9287       archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9288         cp $export_symbols $output_objdir/$soname.def;
9289       else
9290         echo EXPORTS > $output_objdir/$soname.def;
9291         cat $export_symbols >> $output_objdir/$soname.def;
9292       fi~
9293       $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'
9294     else
9295       ld_shlibs_CXX=no
9296     fi
9297   ;;
9298
9299   darwin* | rhapsody*)
9300    if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
9301     archive_cmds_need_lc_CXX=no
9302     case "$host_os" in
9303     rhapsody* | darwin1.[012])
9304       allow_undefined_flag_CXX='-undefined suppress'
9305       ;;
9306     *) # Darwin 1.3 on
9307       test -z ${LD_TWOLEVEL_NAMESPACE} && allow_undefined_flag_CXX='-flat_namespace -undefined suppress'
9308       ;;
9309     esac
9310         lt_int_apple_cc_single_mod=no
9311         output_verbose_link_cmd='echo'
9312         if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
9313           lt_int_apple_cc_single_mod=yes
9314         fi
9315         if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
9316           archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
9317         else
9318         archive_cmds_CXX='$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
9319       fi
9320       module_cmds_CXX='$CC -bundle ${wl}-bind_at_load $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags'
9321
9322     # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
9323       if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
9324         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}'
9325       else
9326         archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
9327       fi
9328         module_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -bundle $allow_undefined_flag  -o $lib $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
9329     hardcode_direct_CXX=no
9330     hardcode_automatic_CXX=yes
9331     hardcode_shlibpath_var_CXX=unsupported
9332     whole_archive_flag_spec_CXX='-all_load $convenience'
9333     link_all_deplibs_CXX=yes
9334    fi
9335     ;;
9336
9337   dgux*)
9338     case $cc_basename in
9339       ec++)
9340         # FIXME: insert proper C++ library support
9341         ld_shlibs_CXX=no
9342         ;;
9343       ghcx)
9344         # Green Hills C++ Compiler
9345         # FIXME: insert proper C++ library support
9346         ld_shlibs_CXX=no
9347         ;;
9348       *)
9349         # FIXME: insert proper C++ library support
9350         ld_shlibs_CXX=no
9351         ;;
9352     esac
9353     ;;
9354   freebsd12*)
9355     # C++ shared libraries reported to be fairly broken before switch to ELF
9356     ld_shlibs_CXX=no
9357     ;;
9358   freebsd-elf*)
9359     archive_cmds_need_lc_CXX=no
9360     ;;
9361   freebsd*)
9362     # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
9363     # conventions
9364     ld_shlibs_CXX=yes
9365     ;;
9366   gnu*)
9367     ;;
9368   hpux9*)
9369     hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
9370     hardcode_libdir_separator_CXX=:
9371     export_dynamic_flag_spec_CXX='${wl}-E'
9372     hardcode_direct_CXX=yes
9373     hardcode_minus_L_CXX=yes # Not in the search PATH,
9374                                 # but as the default
9375                                 # location of the library.
9376
9377     case $cc_basename in
9378     CC)
9379       # FIXME: insert proper C++ library support
9380       ld_shlibs_CXX=no
9381       ;;
9382     aCC)
9383       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'
9384       # Commands to make compiler produce verbose output that lists
9385       # what "hidden" libraries, object files and flags are used when
9386       # linking a shared library.
9387       #
9388       # There doesn't appear to be a way to prevent this compiler from
9389       # explicitly linking system object files so we need to strip them
9390       # from the output so that they don't get included in the library
9391       # dependencies.
9392       output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | egrep "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
9393       ;;
9394     *)
9395       if test "$GXX" = yes; then
9396         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'
9397       else
9398         # FIXME: insert proper C++ library support
9399         ld_shlibs_CXX=no
9400       fi
9401       ;;
9402     esac
9403     ;;
9404   hpux10*|hpux11*)
9405     if test $with_gnu_ld = no; then
9406       case "$host_cpu" in
9407       hppa*64*)
9408         hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
9409         hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
9410         hardcode_libdir_separator_CXX=:
9411         ;;
9412       ia64*)
9413         hardcode_libdir_flag_spec_CXX='-L$libdir'
9414         ;;
9415       *)
9416         hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
9417         hardcode_libdir_separator_CXX=:
9418         export_dynamic_flag_spec_CXX='${wl}-E'
9419         ;;
9420       esac
9421     fi
9422     case "$host_cpu" in
9423     hppa*64*)
9424       hardcode_direct_CXX=no
9425       hardcode_shlibpath_var_CXX=no
9426       ;;
9427     ia64*)
9428       hardcode_direct_CXX=no
9429       hardcode_shlibpath_var_CXX=no
9430       hardcode_minus_L_CXX=yes # Not in the search PATH,
9431                                               # but as the default
9432                                               # location of the library.
9433       ;;
9434     *)
9435       hardcode_direct_CXX=yes
9436       hardcode_minus_L_CXX=yes # Not in the search PATH,
9437                                               # but as the default
9438                                               # location of the library.
9439       ;;
9440     esac
9441
9442     case $cc_basename in
9443       CC)
9444         # FIXME: insert proper C++ library support
9445         ld_shlibs_CXX=no
9446         ;;
9447       aCC)
9448         case "$host_cpu" in
9449         hppa*64*|ia64*)
9450           archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
9451           ;;
9452         *)
9453           archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
9454           ;;
9455         esac
9456         # Commands to make compiler produce verbose output that lists
9457         # what "hidden" libraries, object files and flags are used when
9458         # linking a shared library.
9459         #
9460         # There doesn't appear to be a way to prevent this compiler from
9461         # explicitly linking system object files so we need to strip them
9462         # from the output so that they don't get included in the library
9463         # dependencies.
9464         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'
9465         ;;
9466       *)
9467         if test "$GXX" = yes; then
9468           if test $with_gnu_ld = no; then
9469             case "$host_cpu" in
9470             ia64*|hppa*64*)
9471               archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
9472               ;;
9473             *)
9474               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'
9475               ;;
9476             esac
9477           fi
9478         else
9479           # FIXME: insert proper C++ library support
9480           ld_shlibs_CXX=no
9481         fi
9482         ;;
9483     esac
9484     ;;
9485   irix5* | irix6*)
9486     case $cc_basename in
9487       CC)
9488         # SGI C++
9489         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'
9490
9491         # Archives containing C++ object files must be created using
9492         # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
9493         # necessary to make sure instantiated templates are included
9494         # in the archive.
9495         old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
9496         ;;
9497       *)
9498         if test "$GXX" = yes; then
9499           if test "$with_gnu_ld" = no; then
9500             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'
9501           else
9502             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'
9503           fi
9504         fi
9505         link_all_deplibs_CXX=yes
9506         ;;
9507     esac
9508     hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
9509     hardcode_libdir_separator_CXX=:
9510     ;;
9511   linux*)
9512     case $cc_basename in
9513       KCC)
9514         # Kuck and Associates, Inc. (KAI) C++ Compiler
9515
9516         # KCC will only create a shared library if the output file
9517         # ends with ".so" (or ".sl" for HP-UX), so rename the library
9518         # to its proper name (with version) after linking.
9519         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'
9520         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'
9521         # Commands to make compiler produce verbose output that lists
9522         # what "hidden" libraries, object files and flags are used when
9523         # linking a shared library.
9524         #
9525         # There doesn't appear to be a way to prevent this compiler from
9526         # explicitly linking system object files so we need to strip them
9527         # from the output so that they don't get included in the library
9528         # dependencies.
9529         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'
9530
9531         hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
9532         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
9533
9534         # Archives containing C++ object files must be created using
9535         # "CC -Bstatic", where "CC" is the KAI C++ compiler.
9536         old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
9537         ;;
9538       icpc)
9539         # Intel C++
9540         with_gnu_ld=yes
9541         archive_cmds_need_lc_CXX=no
9542         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
9543         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'
9544         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
9545         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
9546         whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9547         ;;
9548       cxx)
9549         # Compaq C++
9550         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
9551         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'
9552
9553         runpath_var=LD_RUN_PATH
9554         hardcode_libdir_flag_spec_CXX='-rpath $libdir'
9555         hardcode_libdir_separator_CXX=:
9556
9557         # Commands to make compiler produce verbose output that lists
9558         # what "hidden" libraries, object files and flags are used when
9559         # linking a shared library.
9560         #
9561         # There doesn't appear to be a way to prevent this compiler from
9562         # explicitly linking system object files so we need to strip them
9563         # from the output so that they don't get included in the library
9564         # dependencies.
9565         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'
9566         ;;
9567     esac
9568     ;;
9569   lynxos*)
9570     # FIXME: insert proper C++ library support
9571     ld_shlibs_CXX=no
9572     ;;
9573   m88k*)
9574     # FIXME: insert proper C++ library support
9575     ld_shlibs_CXX=no
9576     ;;
9577   mvs*)
9578     case $cc_basename in
9579       cxx)
9580         # FIXME: insert proper C++ library support
9581         ld_shlibs_CXX=no
9582         ;;
9583       *)
9584         # FIXME: insert proper C++ library support
9585         ld_shlibs_CXX=no
9586         ;;
9587     esac
9588     ;;
9589   netbsd*)
9590     if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9591       archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
9592       wlarc=
9593       hardcode_libdir_flag_spec_CXX='-R$libdir'
9594       hardcode_direct_CXX=yes
9595       hardcode_shlibpath_var_CXX=no
9596     fi
9597     # Workaround some broken pre-1.5 toolchains
9598     output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
9599     ;;
9600   osf3*)
9601     case $cc_basename in
9602       KCC)
9603         # Kuck and Associates, Inc. (KAI) C++ Compiler
9604
9605         # KCC will only create a shared library if the output file
9606         # ends with ".so" (or ".sl" for HP-UX), so rename the library
9607         # to its proper name (with version) after linking.
9608         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'
9609
9610         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
9611         hardcode_libdir_separator_CXX=:
9612
9613         # Archives containing C++ object files must be created using
9614         # "CC -Bstatic", where "CC" is the KAI C++ compiler.
9615         old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
9616
9617         ;;
9618       RCC)
9619         # Rational C++ 2.4.1
9620         # FIXME: insert proper C++ library support
9621         ld_shlibs_CXX=no
9622         ;;
9623       cxx)
9624         allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
9625         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'
9626
9627         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
9628         hardcode_libdir_separator_CXX=:
9629
9630         # Commands to make compiler produce verbose output that lists
9631         # what "hidden" libraries, object files and flags are used when
9632         # linking a shared library.
9633         #
9634         # There doesn't appear to be a way to prevent this compiler from
9635         # explicitly linking system object files so we need to strip them
9636         # from the output so that they don't get included in the library
9637         # dependencies.
9638         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'
9639         ;;
9640       *)
9641         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
9642           allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
9643           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'
9644
9645           hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
9646           hardcode_libdir_separator_CXX=:
9647
9648           # Commands to make compiler produce verbose output that lists
9649           # what "hidden" libraries, object files and flags are used when
9650           # linking a shared library.
9651           output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
9652
9653         else
9654           # FIXME: insert proper C++ library support
9655           ld_shlibs_CXX=no
9656         fi
9657         ;;
9658     esac
9659     ;;
9660   osf4* | osf5*)
9661     case $cc_basename in
9662       KCC)
9663         # Kuck and Associates, Inc. (KAI) C++ Compiler
9664
9665         # KCC will only create a shared library if the output file
9666         # ends with ".so" (or ".sl" for HP-UX), so rename the library
9667         # to its proper name (with version) after linking.
9668         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'
9669
9670         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
9671         hardcode_libdir_separator_CXX=:
9672
9673         # Archives containing C++ object files must be created using
9674         # the KAI C++ compiler.
9675         old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
9676         ;;
9677       RCC)
9678         # Rational C++ 2.4.1
9679         # FIXME: insert proper C++ library support
9680         ld_shlibs_CXX=no
9681         ;;
9682       cxx)
9683         allow_undefined_flag_CXX=' -expect_unresolved \*'
9684         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'
9685         archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
9686           echo "-hidden">> $lib.exp~
9687           $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~
9688           $rm $lib.exp'
9689
9690         hardcode_libdir_flag_spec_CXX='-rpath $libdir'
9691         hardcode_libdir_separator_CXX=:
9692
9693         # Commands to make compiler produce verbose output that lists
9694         # what "hidden" libraries, object files and flags are used when
9695         # linking a shared library.
9696         #
9697         # There doesn't appear to be a way to prevent this compiler from
9698         # explicitly linking system object files so we need to strip them
9699         # from the output so that they don't get included in the library
9700         # dependencies.
9701         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'
9702         ;;
9703       *)
9704         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
9705           allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
9706          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'
9707
9708           hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
9709           hardcode_libdir_separator_CXX=:
9710
9711           # Commands to make compiler produce verbose output that lists
9712           # what "hidden" libraries, object files and flags are used when
9713           # linking a shared library.
9714           output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
9715
9716         else
9717           # FIXME: insert proper C++ library support
9718           ld_shlibs_CXX=no
9719         fi
9720         ;;
9721     esac
9722     ;;
9723   psos*)
9724     # FIXME: insert proper C++ library support
9725     ld_shlibs_CXX=no
9726     ;;
9727   sco*)
9728     archive_cmds_need_lc_CXX=no
9729     case $cc_basename in
9730       CC)
9731         # FIXME: insert proper C++ library support
9732         ld_shlibs_CXX=no
9733         ;;
9734       *)
9735         # FIXME: insert proper C++ library support
9736         ld_shlibs_CXX=no
9737         ;;
9738     esac
9739     ;;
9740   sunos4*)
9741     case $cc_basename in
9742       CC)
9743         # Sun C++ 4.x
9744         # FIXME: insert proper C++ library support
9745         ld_shlibs_CXX=no
9746         ;;
9747       lcc)
9748         # Lucid
9749         # FIXME: insert proper C++ library support
9750         ld_shlibs_CXX=no
9751         ;;
9752       *)
9753         # FIXME: insert proper C++ library support
9754         ld_shlibs_CXX=no
9755         ;;
9756     esac
9757     ;;
9758   solaris*)
9759     case $cc_basename in
9760       CC)
9761         # Sun C++ 4.2, 5.x and Centerline C++
9762         no_undefined_flag_CXX=' -zdefs'
9763         archive_cmds_CXX='$CC -G${allow_undefined_flag} -nolib -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
9764         archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
9765         $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'
9766
9767         hardcode_libdir_flag_spec_CXX='-R$libdir'
9768         hardcode_shlibpath_var_CXX=no
9769         case $host_os in
9770           solaris2.0-5 | solaris2.0-5.*) ;;
9771           *)
9772             # The C++ compiler is used as linker so we must use $wl
9773             # flag to pass the commands to the underlying system
9774             # linker.
9775             # Supported since Solaris 2.6 (maybe 2.5.1?)
9776             whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9777             ;;
9778         esac
9779         link_all_deplibs_CXX=yes
9780
9781         # Commands to make compiler produce verbose output that lists
9782         # what "hidden" libraries, object files and flags are used when
9783         # linking a shared library.
9784         #
9785         # There doesn't appear to be a way to prevent this compiler from
9786         # explicitly linking system object files so we need to strip them
9787         # from the output so that they don't get included in the library
9788         # dependencies.
9789         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'
9790
9791         # Archives containing C++ object files must be created using
9792         # "CC -xar", where "CC" is the Sun C++ compiler.  This is
9793         # necessary to make sure instantiated templates are included
9794         # in the archive.
9795         old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
9796         ;;
9797       gcx)
9798         # Green Hills C++ Compiler
9799         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
9800
9801         # The C++ compiler must be used to create the archive.
9802         old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
9803         ;;
9804       *)
9805         # GNU C++ compiler with Solaris linker
9806         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
9807           no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
9808           if $CC --version | grep -v '^2\.7' > /dev/null; then
9809             archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
9810             archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
9811                 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
9812
9813             # Commands to make compiler produce verbose output that lists
9814             # what "hidden" libraries, object files and flags are used when
9815             # linking a shared library.
9816             output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
9817           else
9818             # g++ 2.7 appears to require `-G' NOT `-shared' on this
9819             # platform.
9820             archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
9821             archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
9822                 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
9823
9824             # Commands to make compiler produce verbose output that lists
9825             # what "hidden" libraries, object files and flags are used when
9826             # linking a shared library.
9827             output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
9828           fi
9829
9830           hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
9831         fi
9832         ;;
9833     esac
9834     ;;
9835   sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
9836     archive_cmds_need_lc_CXX=no
9837     ;;
9838   tandem*)
9839     case $cc_basename in
9840       NCC)
9841         # NonStop-UX NCC 3.20
9842         # FIXME: insert proper C++ library support
9843         ld_shlibs_CXX=no
9844         ;;
9845       *)
9846         # FIXME: insert proper C++ library support
9847         ld_shlibs_CXX=no
9848         ;;
9849     esac
9850     ;;
9851   vxworks*)
9852     # FIXME: insert proper C++ library support
9853     ld_shlibs_CXX=no
9854     ;;
9855   *)
9856     # FIXME: insert proper C++ library support
9857     ld_shlibs_CXX=no
9858     ;;
9859 esac
9860 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
9861 echo "${ECHO_T}$ld_shlibs_CXX" >&6
9862 test "$ld_shlibs_CXX" = no && can_build_shared=no
9863
9864 GCC_CXX="$GXX"
9865 LD_CXX="$LD"
9866
9867 ## CAVEAT EMPTOR:
9868 ## There is no encapsulation within the following macros, do not change
9869 ## the running order or otherwise move them around unless you know exactly
9870 ## what you are doing...
9871
9872 cat > conftest.$ac_ext <<EOF
9873 class Foo
9874 {
9875 public:
9876   Foo (void) { a = 0; }
9877 private:
9878   int a;
9879 };
9880 EOF
9881
9882 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9883   (eval $ac_compile) 2>&5
9884   ac_status=$?
9885   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9886   (exit $ac_status); }; then
9887   # Parse the compiler output and extract the necessary
9888   # objects, libraries and library flags.
9889
9890   # Sentinel used to keep track of whether or not we are before
9891   # the conftest object file.
9892   pre_test_object_deps_done=no
9893
9894   # The `*' in the case matches for architectures that use `case' in
9895   # $output_verbose_cmd can trigger glob expansion during the loop
9896   # eval without this substitution.
9897   output_verbose_link_cmd="`$echo \"X$output_verbose_link_cmd\" | $Xsed -e \"$no_glob_subst\"`"
9898
9899   for p in `eval $output_verbose_link_cmd`; do
9900     case $p in
9901
9902     -L* | -R* | -l*)
9903        # Some compilers place space between "-{L,R}" and the path.
9904        # Remove the space.
9905        if test $p = "-L" \
9906           || test $p = "-R"; then
9907          prev=$p
9908          continue
9909        else
9910          prev=
9911        fi
9912
9913        if test "$pre_test_object_deps_done" = no; then
9914          case $p in
9915          -L* | -R*)
9916            # Internal compiler library paths should come after those
9917            # provided the user.  The postdeps already come after the
9918            # user supplied libs so there is no need to process them.
9919            if test -z "$compiler_lib_search_path_CXX"; then
9920              compiler_lib_search_path_CXX="${prev}${p}"
9921            else
9922              compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
9923            fi
9924            ;;
9925          # The "-l" case would never come before the object being
9926          # linked, so don't bother handling this case.
9927          esac
9928        else
9929          if test -z "$postdeps_CXX"; then
9930            postdeps_CXX="${prev}${p}"
9931          else
9932            postdeps_CXX="${postdeps_CXX} ${prev}${p}"
9933          fi
9934        fi
9935        ;;
9936
9937     *.$objext)
9938        # This assumes that the test object file only shows up
9939        # once in the compiler output.
9940        if test "$p" = "conftest.$objext"; then
9941          pre_test_object_deps_done=yes
9942          continue
9943        fi
9944
9945        if test "$pre_test_object_deps_done" = no; then
9946          if test -z "$predep_objects_CXX"; then
9947            predep_objects_CXX="$p"
9948          else
9949            predep_objects_CXX="$predep_objects_CXX $p"
9950          fi
9951        else
9952          if test -z "$postdep_objects_CXX"; then
9953            postdep_objects_CXX="$p"
9954          else
9955            postdep_objects_CXX="$postdep_objects_CXX $p"
9956          fi
9957        fi
9958        ;;
9959
9960     *) ;; # Ignore the rest.
9961
9962     esac
9963   done
9964
9965   # Clean up.
9966   rm -f a.out a.exe
9967 else
9968   echo "libtool.m4: error: problem compiling CXX test program"
9969 fi
9970
9971 $rm -f confest.$objext
9972
9973 case " $postdeps_CXX " in
9974 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
9975 esac
9976
9977 lt_prog_compiler_wl_CXX=
9978 lt_prog_compiler_pic_CXX=
9979 lt_prog_compiler_static_CXX=
9980
9981 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
9982 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
9983
9984   # C++ specific cases for pic, static, wl, etc.
9985   if test "$GXX" = yes; then
9986     lt_prog_compiler_wl_CXX='-Wl,'
9987     lt_prog_compiler_static_CXX='-static'
9988
9989     case $host_os in
9990     aix*)
9991       # All AIX code is PIC.
9992       if test "$host_cpu" = ia64; then
9993         # AIX 5 now supports IA64 processor
9994         lt_prog_compiler_static_CXX='-Bstatic'
9995       fi
9996       ;;
9997     amigaos*)
9998       # FIXME: we need at least 68020 code to build shared libraries, but
9999       # adding the `-m68020' flag to GCC prevents building anything better,
10000       # like `-m68040'.
10001       lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
10002       ;;
10003     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
10004       # PIC is the default for these OSes.
10005       ;;
10006     mingw* | os2* | pw32*)
10007       # This hack is so that the source file can tell whether it is being
10008       # built for inclusion in a dll (and should export symbols for example).
10009       lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
10010       ;;
10011     darwin* | rhapsody*)
10012       # PIC is the default on this platform
10013       # Common symbols not allowed in MH_DYLIB files
10014       lt_prog_compiler_pic_CXX='-fno-common'
10015       ;;
10016     *djgpp*)
10017       # DJGPP does not support shared libraries at all
10018       lt_prog_compiler_pic_CXX=
10019       ;;
10020     sysv4*MP*)
10021       if test -d /usr/nec; then
10022         lt_prog_compiler_pic_CXX=-Kconform_pic
10023       fi
10024       ;;
10025     hpux*)
10026       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
10027       # not for PA HP-UX.
10028       case "$host_cpu" in
10029       hppa*64*|ia64*)
10030         ;;
10031       *)
10032         lt_prog_compiler_pic_CXX='-fPIC'
10033         ;;
10034       esac
10035       ;;
10036     *)
10037       lt_prog_compiler_pic_CXX='-fPIC'
10038       ;;
10039     esac
10040   else
10041     case $host_os in
10042       aix4* | aix5*)
10043         # All AIX code is PIC.
10044         if test "$host_cpu" = ia64; then
10045           # AIX 5 now supports IA64 processor
10046           lt_prog_compiler_static_CXX='-Bstatic'
10047         else
10048           lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
10049         fi
10050         ;;
10051       chorus*)
10052         case $cc_basename in
10053         cxch68)
10054           # Green Hills C++ Compiler
10055           # _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"
10056           ;;
10057         esac
10058         ;;
10059       dgux*)
10060         case $cc_basename in
10061           ec++)
10062             lt_prog_compiler_pic_CXX='-KPIC'
10063             ;;
10064           ghcx)
10065             # Green Hills C++ Compiler
10066             lt_prog_compiler_pic_CXX='-pic'
10067             ;;
10068           *)
10069             ;;
10070         esac
10071         ;;
10072       freebsd*)
10073         # FreeBSD uses GNU C++
10074         ;;
10075       hpux9* | hpux10* | hpux11*)
10076         case $cc_basename in
10077           CC)
10078             lt_prog_compiler_wl_CXX='-Wl,'
10079             lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
10080             if test "$host_cpu" != ia64; then
10081               lt_prog_compiler_pic_CXX='+Z'
10082             fi
10083             ;;
10084           aCC)
10085             lt_prog_compiler_wl_CXX='-Wl,'
10086             lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
10087             case "$host_cpu" in
10088             hppa*64*|ia64*)
10089               # +Z the default
10090               ;;
10091             *)
10092               lt_prog_compiler_pic_CXX='+Z'
10093               ;;
10094             esac
10095             ;;
10096           *)
10097             ;;
10098         esac
10099         ;;
10100       irix5* | irix6* | nonstopux*)
10101         case $cc_basename in
10102           CC)
10103             lt_prog_compiler_wl_CXX='-Wl,'
10104             lt_prog_compiler_static_CXX='-non_shared'
10105             # CC pic flag -KPIC is the default.
10106             ;;
10107           *)
10108             ;;
10109         esac
10110         ;;
10111       linux*)
10112         case $cc_basename in
10113           KCC)
10114             # KAI C++ Compiler
10115             lt_prog_compiler_wl_CXX='--backend -Wl,'
10116             lt_prog_compiler_pic_CXX='-fPIC'
10117             ;;
10118           icpc)
10119             # Intel C++
10120             lt_prog_compiler_wl_CXX='-Wl,'
10121             lt_prog_compiler_pic_CXX='-KPIC'
10122             lt_prog_compiler_static_CXX='-static'
10123             ;;
10124           cxx)
10125             # Compaq C++
10126             # Make sure the PIC flag is empty.  It appears that all Alpha
10127             # Linux and Compaq Tru64 Unix objects are PIC.
10128             lt_prog_compiler_pic_CXX=
10129             lt_prog_compiler_static_CXX='-non_shared'
10130             ;;
10131           *)
10132             ;;
10133         esac
10134         ;;
10135       lynxos*)
10136         ;;
10137       m88k*)
10138         ;;
10139       mvs*)
10140         case $cc_basename in
10141           cxx)
10142             lt_prog_compiler_pic_CXX='-W c,exportall'
10143             ;;
10144           *)
10145             ;;
10146         esac
10147         ;;
10148       netbsd*)
10149         ;;
10150       osf3* | osf4* | osf5*)
10151         case $cc_basename in
10152           KCC)
10153             lt_prog_compiler_wl_CXX='--backend -Wl,'
10154             ;;
10155           RCC)
10156             # Rational C++ 2.4.1
10157             lt_prog_compiler_pic_CXX='-pic'
10158             ;;
10159           cxx)
10160             # Digital/Compaq C++
10161             lt_prog_compiler_wl_CXX='-Wl,'
10162             # Make sure the PIC flag is empty.  It appears that all Alpha
10163             # Linux and Compaq Tru64 Unix objects are PIC.
10164             lt_prog_compiler_pic_CXX=
10165             lt_prog_compiler_static_CXX='-non_shared'
10166             ;;
10167           *)
10168             ;;
10169         esac
10170         ;;
10171       psos*)
10172         ;;
10173       sco*)
10174         case $cc_basename in
10175           CC)
10176             lt_prog_compiler_pic_CXX='-fPIC'
10177             ;;
10178           *)
10179             ;;
10180         esac
10181         ;;
10182       solaris*)
10183         case $cc_basename in
10184           CC)
10185             # Sun C++ 4.2, 5.x and Centerline C++
10186             lt_prog_compiler_pic_CXX='-KPIC'
10187             lt_prog_compiler_static_CXX='-Bstatic'
10188             lt_prog_compiler_wl_CXX='-Qoption ld '
10189             ;;
10190           gcx)
10191             # Green Hills C++ Compiler
10192             lt_prog_compiler_pic_CXX='-PIC'
10193             ;;
10194           *)
10195             ;;
10196         esac
10197         ;;
10198       sunos4*)
10199         case $cc_basename in
10200           CC)
10201             # Sun C++ 4.x
10202             lt_prog_compiler_pic_CXX='-pic'
10203             lt_prog_compiler_static_CXX='-Bstatic'
10204             ;;
10205           lcc)
10206             # Lucid
10207             lt_prog_compiler_pic_CXX='-pic'
10208             ;;
10209           *)
10210             ;;
10211         esac
10212         ;;
10213       tandem*)
10214         case $cc_basename in
10215           NCC)
10216             # NonStop-UX NCC 3.20
10217             lt_prog_compiler_pic_CXX='-KPIC'
10218             ;;
10219           *)
10220             ;;
10221         esac
10222         ;;
10223       unixware*)
10224         ;;
10225       vxworks*)
10226         ;;
10227       *)
10228         lt_prog_compiler_can_build_shared_CXX=no
10229         ;;
10230     esac
10231   fi
10232
10233 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
10234 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6
10235
10236 #
10237 # Check to make sure the PIC flag actually works.
10238 #
10239 if test -n "$lt_prog_compiler_pic_CXX"; then
10240   echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
10241 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6
10242 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
10243   echo $ECHO_N "(cached) $ECHO_C" >&6
10244 else
10245   lt_prog_compiler_pic_works_CXX=no
10246   ac_outfile=conftest.$ac_objext
10247    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
10248    lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
10249    # Insert the option either (1) after the last *FLAGS variable, or
10250    # (2) before a word containing "conftest.", or (3) at the end.
10251    # Note that $ac_compile itself does not contain backslashes and begins
10252    # with a dollar sign (not a hyphen), so the echo should work correctly.
10253    # The option is referenced via a variable to avoid confusing sed.
10254    lt_compile=`echo "$ac_compile" | $SED \
10255    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
10256    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10257    -e 's:$: $lt_compiler_flag:'`
10258    (eval echo "\"\$as_me:10258: $lt_compile\"" >&5)
10259    (eval "$lt_compile" 2>conftest.err)
10260    ac_status=$?
10261    cat conftest.err >&5
10262    echo "$as_me:10262: \$? = $ac_status" >&5
10263    if (exit $ac_status) && test -s "$ac_outfile"; then
10264      # The compiler can only warn and ignore the option if not recognized
10265      # So say no if there are warnings
10266      if test ! -s conftest.err; then
10267        lt_prog_compiler_pic_works_CXX=yes
10268      fi
10269    fi
10270    $rm conftest*
10271
10272 fi
10273 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
10274 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6
10275
10276 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
10277     case $lt_prog_compiler_pic_CXX in
10278      "" | " "*) ;;
10279      *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
10280      esac
10281 else
10282     lt_prog_compiler_pic_CXX=
10283      lt_prog_compiler_can_build_shared_CXX=no
10284 fi
10285
10286 fi
10287 case "$host_os" in
10288   # For platforms which do not support PIC, -DPIC is meaningless:
10289   *djgpp*)
10290     lt_prog_compiler_pic_CXX=
10291     ;;
10292   *)
10293     lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
10294     ;;
10295 esac
10296
10297 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
10298 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
10299 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
10300   echo $ECHO_N "(cached) $ECHO_C" >&6
10301 else
10302   lt_cv_prog_compiler_c_o_CXX=no
10303    $rm -r conftest 2>/dev/null
10304    mkdir conftest
10305    cd conftest
10306    mkdir out
10307    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
10308
10309    # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
10310    # that will create temporary files in the current directory regardless of
10311    # the output directory.  Thus, making CWD read-only will cause this test
10312    # to fail, enabling locking or at least warning the user not to do parallel
10313    # builds.
10314    chmod -w .
10315
10316    lt_compiler_flag="-o out/conftest2.$ac_objext"
10317    # Insert the option either (1) after the last *FLAGS variable, or
10318    # (2) before a word containing "conftest.", or (3) at the end.
10319    # Note that $ac_compile itself does not contain backslashes and begins
10320    # with a dollar sign (not a hyphen), so the echo should work correctly.
10321    lt_compile=`echo "$ac_compile" | $SED \
10322    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
10323    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10324    -e 's:$: $lt_compiler_flag:'`
10325    (eval echo "\"\$as_me:10325: $lt_compile\"" >&5)
10326    (eval "$lt_compile" 2>out/conftest.err)
10327    ac_status=$?
10328    cat out/conftest.err >&5
10329    echo "$as_me:10329: \$? = $ac_status" >&5
10330    if (exit $ac_status) && test -s out/conftest2.$ac_objext
10331    then
10332      # The compiler can only warn and ignore the option if not recognized
10333      # So say no if there are warnings
10334      if test ! -s out/conftest.err; then
10335        lt_cv_prog_compiler_c_o_CXX=yes
10336      fi
10337    fi
10338    chmod u+w .
10339    $rm conftest* out/*
10340    rmdir out
10341    cd ..
10342    rmdir conftest
10343    $rm conftest*
10344
10345 fi
10346 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
10347 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
10348
10349
10350 hard_links="nottested"
10351 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
10352   # do not overwrite the value of need_locks provided by the user
10353   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
10354 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
10355   hard_links=yes
10356   $rm conftest*
10357   ln conftest.a conftest.b 2>/dev/null && hard_links=no
10358   touch conftest.a
10359   ln conftest.a conftest.b 2>&5 || hard_links=no
10360   ln conftest.a conftest.b 2>/dev/null && hard_links=no
10361   echo "$as_me:$LINENO: result: $hard_links" >&5
10362 echo "${ECHO_T}$hard_links" >&6
10363   if test "$hard_links" = no; then
10364     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
10365 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
10366     need_locks=warn
10367   fi
10368 else
10369   need_locks=no
10370 fi
10371
10372 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10373 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
10374
10375   export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
10376   case $host_os in
10377   aix4* | aix5*)
10378     # If we're using GNU nm, then we don't want the "-C" option.
10379     # -C means demangle to AIX nm, but means don't demangle with GNU nm
10380     if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
10381       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'
10382     else
10383       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'
10384     fi
10385     ;;
10386   pw32*)
10387     export_symbols_cmds_CXX="$ltdll_cmds"
10388   ;;
10389   cygwin* | mingw*)
10390     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
10391   ;;
10392   *)
10393     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
10394   ;;
10395   esac
10396
10397 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
10398 echo "${ECHO_T}$ld_shlibs_CXX" >&6
10399 test "$ld_shlibs_CXX" = no && can_build_shared=no
10400
10401 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10402 if test "$GCC" = yes; then
10403   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10404 fi
10405
10406 #
10407 # Do we need to explicitly link libc?
10408 #
10409 case "x$archive_cmds_need_lc_CXX" in
10410 x|xyes)
10411   # Assume -lc should be added
10412   archive_cmds_need_lc_CXX=yes
10413
10414   if test "$enable_shared" = yes && test "$GCC" = yes; then
10415     case $archive_cmds_CXX in
10416     *'~'*)
10417       # FIXME: we may have to deal with multi-command sequences.
10418       ;;
10419     '$CC '*)
10420       # Test whether the compiler implicitly links with -lc since on some
10421       # systems, -lgcc has to come before -lc. If gcc already passes -lc
10422       # to ld, don't add -lc before -lgcc.
10423       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
10424 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
10425       $rm conftest*
10426       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
10427
10428       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10429   (eval $ac_compile) 2>&5
10430   ac_status=$?
10431   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10432   (exit $ac_status); } 2>conftest.err; then
10433         soname=conftest
10434         lib=conftest
10435         libobjs=conftest.$ac_objext
10436         deplibs=
10437         wl=$lt_prog_compiler_wl_CXX
10438         compiler_flags=-v
10439         linker_flags=-v
10440         verstring=
10441         output_objdir=.
10442         libname=conftest
10443         lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
10444         allow_undefined_flag_CXX=
10445         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
10446   (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
10447   ac_status=$?
10448   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10449   (exit $ac_status); }
10450         then
10451           archive_cmds_need_lc_CXX=no
10452         else
10453           archive_cmds_need_lc_CXX=yes
10454         fi
10455         allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
10456       else
10457         cat conftest.err 1>&5
10458       fi
10459       $rm conftest*
10460       echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
10461 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6
10462       ;;
10463     esac
10464   fi
10465   ;;
10466 esac
10467
10468 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
10469 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
10470 hardcode_action_CXX=
10471 if test -n "$hardcode_libdir_flag_spec_CXX" || \
10472    test -n "$runpath_var CXX" || \
10473    test "X$hardcode_automatic_CXX"="Xyes" ; then
10474
10475   # We can hardcode non-existant directories.
10476   if test "$hardcode_direct_CXX" != no &&
10477      # If the only mechanism to avoid hardcoding is shlibpath_var, we
10478      # have to relink, otherwise we might link with an installed library
10479      # when we should be linking with a yet-to-be-installed one
10480      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
10481      test "$hardcode_minus_L_CXX" != no; then
10482     # Linking always hardcodes the temporary library directory.
10483     hardcode_action_CXX=relink
10484   else
10485     # We can link without hardcoding, and we can hardcode nonexisting dirs.
10486     hardcode_action_CXX=immediate
10487   fi
10488 else
10489   # We cannot hardcode anything, or else we can only hardcode existing
10490   # directories.
10491   hardcode_action_CXX=unsupported
10492 fi
10493 echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
10494 echo "${ECHO_T}$hardcode_action_CXX" >&6
10495
10496 if test "$hardcode_action_CXX" = relink; then
10497   # Fast installation is not supported
10498   enable_fast_install=no
10499 elif test "$shlibpath_overrides_runpath" = yes ||
10500      test "$enable_shared" = no; then
10501   # Fast installation is not necessary
10502   enable_fast_install=needless
10503 fi
10504
10505 striplib=
10506 old_striplib=
10507 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
10508 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
10509 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
10510   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
10511   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
10512   echo "$as_me:$LINENO: result: yes" >&5
10513 echo "${ECHO_T}yes" >&6
10514 else
10515 # FIXME - insert some real tests, host_os isn't really good enough
10516   case $host_os in
10517    darwin*)
10518        if test -n "$STRIP" ; then
10519          striplib="$STRIP -x"
10520          echo "$as_me:$LINENO: result: yes" >&5
10521 echo "${ECHO_T}yes" >&6
10522        else
10523   echo "$as_me:$LINENO: result: no" >&5
10524 echo "${ECHO_T}no" >&6
10525 fi
10526        ;;
10527    *)
10528   echo "$as_me:$LINENO: result: no" >&5
10529 echo "${ECHO_T}no" >&6
10530     ;;
10531   esac
10532 fi
10533
10534 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
10535 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
10536 library_names_spec=
10537 libname_spec='lib$name'
10538 soname_spec=
10539 shrext=".so"
10540 postinstall_cmds=
10541 postuninstall_cmds=
10542 finish_cmds=
10543 finish_eval=
10544 shlibpath_var=
10545 shlibpath_overrides_runpath=unknown
10546 version_type=none
10547 dynamic_linker="$host_os ld.so"
10548 sys_lib_dlsearch_path_spec="/lib /usr/lib"
10549 if test "$GCC" = yes; then
10550   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
10551   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
10552     # if the path contains ";" then we assume it to be the separator
10553     # otherwise default to the standard path separator (i.e. ":") - it is
10554     # assumed that no part of a normal pathname contains ";" but that should
10555     # okay in the real world where ";" in dirpaths is itself problematic.
10556     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10557   else
10558     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
10559   fi
10560 else
10561   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10562 fi
10563 need_lib_prefix=unknown
10564 hardcode_into_libs=no
10565
10566 # when you set need_version to no, make sure it does not cause -set_version
10567 # flags to be left without arguments
10568 need_version=unknown
10569
10570 case $host_os in
10571 aix3*)
10572   version_type=linux
10573   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10574   shlibpath_var=LIBPATH
10575
10576   # AIX 3 has no versioning support, so we append a major version to the name.
10577   soname_spec='${libname}${release}${shared_ext}$major'
10578   ;;
10579
10580 aix4* | aix5*)
10581   version_type=linux
10582   need_lib_prefix=no
10583   need_version=no
10584   hardcode_into_libs=yes
10585   if test "$host_cpu" = ia64; then
10586     # AIX 5 supports IA64
10587     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10588     shlibpath_var=LD_LIBRARY_PATH
10589   else
10590     # With GCC up to 2.95.x, collect2 would create an import file
10591     # for dependence libraries.  The import file would start with
10592     # the line `#! .'.  This would cause the generated library to
10593     # depend on `.', always an invalid library.  This was fixed in
10594     # development snapshots of GCC prior to 3.0.
10595     case $host_os in
10596       aix4 | aix4.[01] | aix4.[01].*)
10597       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10598            echo ' yes '
10599            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
10600         :
10601       else
10602         can_build_shared=no
10603       fi
10604       ;;
10605     esac
10606     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10607     # soname into executable. Probably we can add versioning support to
10608     # collect2, so additional links can be useful in future.
10609     if test "$aix_use_runtimelinking" = yes; then
10610       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10611       # instead of lib<name>.a to let people know that these are not
10612       # typical AIX shared libraries.
10613       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10614     else
10615       # We preserve .a as extension for shared libraries through AIX4.2
10616       # and later when we are not doing run time linking.
10617       library_names_spec='${libname}${release}.a $libname.a'
10618       soname_spec='${libname}${release}${shared_ext}$major'
10619     fi
10620     shlibpath_var=LIBPATH
10621   fi
10622   ;;
10623
10624 amigaos*)
10625   library_names_spec='$libname.ixlibrary $libname.a'
10626   # Create ${libname}_ixlibrary.a entries in /sys/libs.
10627   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'
10628   ;;
10629
10630 beos*)
10631   library_names_spec='${libname}${shared_ext}'
10632   dynamic_linker="$host_os ld.so"
10633   shlibpath_var=LIBRARY_PATH
10634   ;;
10635
10636 bsdi4*)
10637   version_type=linux
10638   need_version=no
10639   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10640   soname_spec='${libname}${release}${shared_ext}$major'
10641   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10642   shlibpath_var=LD_LIBRARY_PATH
10643   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10644   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10645   # the default ld.so.conf also contains /usr/contrib/lib and
10646   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10647   # libtool to hard-code these into programs
10648   ;;
10649
10650 cygwin* | mingw* | pw32*)
10651   version_type=windows
10652   shrext=".dll"
10653   need_version=no
10654   need_lib_prefix=no
10655
10656   case $GCC,$host_os in
10657   yes,cygwin* | yes,mingw* | yes,pw32*)
10658     library_names_spec='$libname.dll.a'
10659     # DLL is installed to $(libdir)/../bin by postinstall_cmds
10660     postinstall_cmds='base_file=`basename \${file}`~
10661       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
10662       dldir=$destdir/`dirname \$dlpath`~
10663       test -d \$dldir || mkdir -p \$dldir~
10664       $install_prog $dir/$dlname \$dldir/$dlname'
10665     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10666       dlpath=$dir/\$dldll~
10667        $rm \$dlpath'
10668     shlibpath_overrides_runpath=yes
10669
10670     case $host_os in
10671     cygwin*)
10672       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10673       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10674       sys_lib_search_path_spec="/lib /lib/w32api /usr/lib /usr/local/lib"
10675       ;;
10676     mingw*)
10677       # MinGW DLLs use traditional 'lib' prefix
10678       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10679       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
10680       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
10681         # It is most probably a Windows format PATH printed by
10682         # mingw gcc, but we are running on Cygwin. Gcc prints its search
10683         # path with ; separators, and with drive letters. We can handle the
10684         # drive letters (cygwin fileutils understands them), so leave them,
10685         # especially as we might pass files found there to a mingw objdump,
10686         # which wouldn't understand a cygwinified path. Ahh.
10687         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10688       else
10689         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
10690       fi
10691       ;;
10692     pw32*)
10693       # pw32 DLLs use 'pw' prefix rather than 'lib'
10694       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
10695       ;;
10696     esac
10697     ;;
10698
10699   *)
10700     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10701     ;;
10702   esac
10703   dynamic_linker='Win32 ld.exe'
10704   # FIXME: first we should search . and the directory the executable is in
10705   shlibpath_var=PATH
10706   ;;
10707
10708 darwin* | rhapsody*)
10709   dynamic_linker="$host_os dyld"
10710   version_type=darwin
10711   need_lib_prefix=no
10712   need_version=no
10713   # FIXME: Relying on posixy $() will cause problems for
10714   #        cross-compilation, but unfortunately the echo tests do not
10715   #        yet detect zsh echo's removal of \ escapes.
10716   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10717   soname_spec='${libname}${release}${major}$shared_ext'
10718   shlibpath_overrides_runpath=yes
10719   shlibpath_var=DYLD_LIBRARY_PATH
10720   shrext='$(test .$module = .yes && echo .so || echo .dylib)'
10721   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
10722   if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
10723   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"`
10724   fi
10725   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10726   ;;
10727
10728 dgux*)
10729   version_type=linux
10730   need_lib_prefix=no
10731   need_version=no
10732   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10733   soname_spec='${libname}${release}${shared_ext}$major'
10734   shlibpath_var=LD_LIBRARY_PATH
10735   ;;
10736
10737 freebsd1*)
10738   dynamic_linker=no
10739   ;;
10740
10741 freebsd*)
10742   objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
10743   version_type=freebsd-$objformat
10744   case $version_type in
10745     freebsd-elf*)
10746       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10747       need_version=no
10748       need_lib_prefix=no
10749       ;;
10750     freebsd-*)
10751       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10752       need_version=yes
10753       ;;
10754   esac
10755   shlibpath_var=LD_LIBRARY_PATH
10756   case $host_os in
10757   freebsd2*)
10758     shlibpath_overrides_runpath=yes
10759     ;;
10760   freebsd3.01* | freebsdelf3.01*)
10761     shlibpath_overrides_runpath=yes
10762     hardcode_into_libs=yes
10763     ;;
10764   *) # from 3.2 on
10765     shlibpath_overrides_runpath=no
10766     hardcode_into_libs=yes
10767     ;;
10768   esac
10769   ;;
10770
10771 gnu*)
10772   version_type=linux
10773   need_lib_prefix=no
10774   need_version=no
10775   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10776   soname_spec='${libname}${release}${shared_ext}$major'
10777   shlibpath_var=LD_LIBRARY_PATH
10778   hardcode_into_libs=yes
10779   ;;
10780
10781 hpux9* | hpux10* | hpux11*)
10782   # Give a soname corresponding to the major version so that dld.sl refuses to
10783   # link against other versions.
10784   version_type=sunos
10785   need_lib_prefix=no
10786   need_version=no
10787   case "$host_cpu" in
10788   ia64*)
10789     shrext='.so'
10790     hardcode_into_libs=yes
10791     dynamic_linker="$host_os dld.so"
10792     shlibpath_var=LD_LIBRARY_PATH
10793     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10794     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10795     soname_spec='${libname}${release}${shared_ext}$major'
10796     if test "X$HPUX_IA64_MODE" = X32; then
10797       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10798     else
10799       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10800     fi
10801     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10802     ;;
10803    hppa*64*)
10804      shrext='.sl'
10805      hardcode_into_libs=yes
10806      dynamic_linker="$host_os dld.sl"
10807      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10808      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10809      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10810      soname_spec='${libname}${release}${shared_ext}$major'
10811      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10812      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10813      ;;
10814    *)
10815     shrext='.sl'
10816     dynamic_linker="$host_os dld.sl"
10817     shlibpath_var=SHLIB_PATH
10818     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10819     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10820     soname_spec='${libname}${release}${shared_ext}$major'
10821     ;;
10822   esac
10823   # HP-UX runs *really* slowly unless shared libraries are mode 555.
10824   postinstall_cmds='chmod 555 $lib'
10825   ;;
10826
10827 irix5* | irix6* | nonstopux*)
10828   case $host_os in
10829     nonstopux*) version_type=nonstopux ;;
10830     *)
10831         if test "$lt_cv_prog_gnu_ld" = yes; then
10832                 version_type=linux
10833         else
10834                 version_type=irix
10835         fi ;;
10836   esac
10837   need_lib_prefix=no
10838   need_version=no
10839   soname_spec='${libname}${release}${shared_ext}$major'
10840   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10841   case $host_os in
10842   irix5* | nonstopux*)
10843     libsuff= shlibsuff=
10844     ;;
10845   *)
10846     case $LD in # libtool.m4 will add one of these switches to LD
10847     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10848       libsuff= shlibsuff= libmagic=32-bit;;
10849     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10850       libsuff=32 shlibsuff=N32 libmagic=N32;;
10851     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10852       libsuff=64 shlibsuff=64 libmagic=64-bit;;
10853     *) libsuff= shlibsuff= libmagic=never-match;;
10854     esac
10855     ;;
10856   esac
10857   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10858   shlibpath_overrides_runpath=no
10859   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10860   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10861   hardcode_into_libs=yes
10862   ;;
10863
10864 # No shared lib support for Linux oldld, aout, or coff.
10865 linux*oldld* | linux*aout* | linux*coff*)
10866   dynamic_linker=no
10867   ;;
10868
10869 # This must be Linux ELF.
10870 linux*)
10871   version_type=linux
10872   need_lib_prefix=no
10873   need_version=no
10874   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10875   soname_spec='${libname}${release}${shared_ext}$major'
10876   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10877   shlibpath_var=LD_LIBRARY_PATH
10878   shlibpath_overrides_runpath=no
10879   # This implies no fast_install, which is unacceptable.
10880   # Some rework will be needed to allow for fast_install
10881   # before this can be enabled.
10882   hardcode_into_libs=yes
10883
10884   # We used to test for /lib/ld.so.1 and disable shared libraries on
10885   # powerpc, because MkLinux only supported shared libraries with the
10886   # GNU dynamic linker.  Since this was broken with cross compilers,
10887   # most powerpc-linux boxes support dynamic linking these days and
10888   # people can always --disable-shared, the test was removed, and we
10889   # assume the GNU/Linux dynamic linker is in use.
10890   dynamic_linker='GNU/Linux ld.so'
10891   ;;
10892
10893 netbsd*)
10894   version_type=sunos
10895   need_lib_prefix=no
10896   need_version=no
10897   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
10898     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10899     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10900     dynamic_linker='NetBSD (a.out) ld.so'
10901   else
10902     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
10903     soname_spec='${libname}${release}${shared_ext}$major'
10904     dynamic_linker='NetBSD ld.elf_so'
10905   fi
10906   shlibpath_var=LD_LIBRARY_PATH
10907   shlibpath_overrides_runpath=yes
10908   hardcode_into_libs=yes
10909   ;;
10910
10911 newsos6)
10912   version_type=linux
10913   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10914   shlibpath_var=LD_LIBRARY_PATH
10915   shlibpath_overrides_runpath=yes
10916   ;;
10917
10918 nto-qnx)
10919   version_type=linux
10920   need_lib_prefix=no
10921   need_version=no
10922   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10923   soname_spec='${libname}${release}${shared_ext}$major'
10924   shlibpath_var=LD_LIBRARY_PATH
10925   shlibpath_overrides_runpath=yes
10926   ;;
10927
10928 openbsd*)
10929   version_type=sunos
10930   need_lib_prefix=no
10931   need_version=no
10932   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10933   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10934   shlibpath_var=LD_LIBRARY_PATH
10935   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10936     case $host_os in
10937       openbsd2.[89] | openbsd2.[89].*)
10938         shlibpath_overrides_runpath=no
10939         ;;
10940       *)
10941         shlibpath_overrides_runpath=yes
10942         ;;
10943       esac
10944   else
10945     shlibpath_overrides_runpath=yes
10946   fi
10947   ;;
10948
10949 os2*)
10950   libname_spec='$name'
10951   shrext=".dll"
10952   need_lib_prefix=no
10953   library_names_spec='$libname${shared_ext} $libname.a'
10954   dynamic_linker='OS/2 ld.exe'
10955   shlibpath_var=LIBPATH
10956   ;;
10957
10958 osf3* | osf4* | osf5*)
10959   version_type=osf
10960   need_lib_prefix=no
10961   need_version=no
10962   soname_spec='${libname}${release}${shared_ext}$major'
10963   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10964   shlibpath_var=LD_LIBRARY_PATH
10965   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10966   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10967   ;;
10968
10969 sco3.2v5*)
10970   version_type=osf
10971   soname_spec='${libname}${release}${shared_ext}$major'
10972   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10973   shlibpath_var=LD_LIBRARY_PATH
10974   ;;
10975
10976 solaris*)
10977   version_type=linux
10978   need_lib_prefix=no
10979   need_version=no
10980   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10981   soname_spec='${libname}${release}${shared_ext}$major'
10982   shlibpath_var=LD_LIBRARY_PATH
10983   shlibpath_overrides_runpath=yes
10984   hardcode_into_libs=yes
10985   # ldd complains unless libraries are executable
10986   postinstall_cmds='chmod +x $lib'
10987   ;;
10988
10989 sunos4*)
10990   version_type=sunos
10991   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10992   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10993   shlibpath_var=LD_LIBRARY_PATH
10994   shlibpath_overrides_runpath=yes
10995   if test "$with_gnu_ld" = yes; then
10996     need_lib_prefix=no
10997   fi
10998   need_version=yes
10999   ;;
11000
11001 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
11002   version_type=linux
11003   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11004   soname_spec='${libname}${release}${shared_ext}$major'
11005   shlibpath_var=LD_LIBRARY_PATH
11006   case $host_vendor in
11007     sni)
11008       shlibpath_overrides_runpath=no
11009       need_lib_prefix=no
11010       export_dynamic_flag_spec='${wl}-Blargedynsym'
11011       runpath_var=LD_RUN_PATH
11012       ;;
11013     siemens)
11014       need_lib_prefix=no
11015       ;;
11016     motorola)
11017       need_lib_prefix=no
11018       need_version=no
11019       shlibpath_overrides_runpath=no
11020       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11021       ;;
11022   esac
11023   ;;
11024
11025 sysv4*MP*)
11026   if test -d /usr/nec ;then
11027     version_type=linux
11028     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11029     soname_spec='$libname${shared_ext}.$major'
11030     shlibpath_var=LD_LIBRARY_PATH
11031   fi
11032   ;;
11033
11034 uts4*)
11035   version_type=linux
11036   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11037   soname_spec='${libname}${release}${shared_ext}$major'
11038   shlibpath_var=LD_LIBRARY_PATH
11039   ;;
11040
11041 *)
11042   dynamic_linker=no
11043   ;;
11044 esac
11045 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
11046 echo "${ECHO_T}$dynamic_linker" >&6
11047 test "$dynamic_linker" = no && can_build_shared=no
11048
11049 if test "x$enable_dlopen" != xyes; then
11050   enable_dlopen=unknown
11051   enable_dlopen_self=unknown
11052   enable_dlopen_self_static=unknown
11053 else
11054   lt_cv_dlopen=no
11055   lt_cv_dlopen_libs=
11056
11057   case $host_os in
11058   beos*)
11059     lt_cv_dlopen="load_add_on"
11060     lt_cv_dlopen_libs=
11061     lt_cv_dlopen_self=yes
11062     ;;
11063
11064   mingw* | pw32*)
11065     lt_cv_dlopen="LoadLibrary"
11066     lt_cv_dlopen_libs=
11067    ;;
11068
11069   cygwin*)
11070     lt_cv_dlopen="dlopen"
11071     lt_cv_dlopen_libs=
11072    ;;
11073
11074   darwin*)
11075   # if libdl is installed we need to link against it
11076     echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
11077 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
11078 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
11079   echo $ECHO_N "(cached) $ECHO_C" >&6
11080 else
11081   ac_check_lib_save_LIBS=$LIBS
11082 LIBS="-ldl  $LIBS"
11083 cat >conftest.$ac_ext <<_ACEOF
11084 #line $LINENO "configure"
11085 /* confdefs.h.  */
11086 _ACEOF
11087 cat confdefs.h >>conftest.$ac_ext
11088 cat >>conftest.$ac_ext <<_ACEOF
11089 /* end confdefs.h.  */
11090
11091 /* Override any gcc2 internal prototype to avoid an error.  */
11092 #ifdef __cplusplus
11093 extern "C"
11094 #endif
11095 /* We use char because int might match the return type of a gcc2
11096    builtin and then its argument prototype would still apply.  */
11097 char dlopen ();
11098 int
11099 main ()
11100 {
11101 dlopen ();
11102   ;
11103   return 0;
11104 }
11105 _ACEOF
11106 rm -f conftest.$ac_objext conftest$ac_exeext
11107 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11108   (eval $ac_link) 2>&5
11109   ac_status=$?
11110   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11111   (exit $ac_status); } &&
11112          { ac_try='test -s conftest$ac_exeext'
11113   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11114   (eval $ac_try) 2>&5
11115   ac_status=$?
11116   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11117   (exit $ac_status); }; }; then
11118   ac_cv_lib_dl_dlopen=yes
11119 else
11120   echo "$as_me: failed program was:" >&5
11121 sed 's/^/| /' conftest.$ac_ext >&5
11122
11123 ac_cv_lib_dl_dlopen=no
11124 fi
11125 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11126 LIBS=$ac_check_lib_save_LIBS
11127 fi
11128 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
11129 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
11130 if test $ac_cv_lib_dl_dlopen = yes; then
11131   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11132 else
11133
11134     lt_cv_dlopen="dyld"
11135     lt_cv_dlopen_libs=
11136     lt_cv_dlopen_self=yes
11137
11138 fi
11139
11140    ;;
11141
11142   *)
11143     echo "$as_me:$LINENO: checking for shl_load" >&5
11144 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
11145 if test "${ac_cv_func_shl_load+set}" = set; then
11146   echo $ECHO_N "(cached) $ECHO_C" >&6
11147 else
11148   cat >conftest.$ac_ext <<_ACEOF
11149 #line $LINENO "configure"
11150 /* confdefs.h.  */
11151 _ACEOF
11152 cat confdefs.h >>conftest.$ac_ext
11153 cat >>conftest.$ac_ext <<_ACEOF
11154 /* end confdefs.h.  */
11155 /* System header to define __stub macros and hopefully few prototypes,
11156     which can conflict with char shl_load (); below.
11157     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11158     <limits.h> exists even on freestanding compilers.  */
11159 #ifdef __STDC__
11160 # include <limits.h>
11161 #else
11162 # include <assert.h>
11163 #endif
11164 /* Override any gcc2 internal prototype to avoid an error.  */
11165 #ifdef __cplusplus
11166 extern "C"
11167 {
11168 #endif
11169 /* We use char because int might match the return type of a gcc2
11170    builtin and then its argument prototype would still apply.  */
11171 char shl_load ();
11172 /* The GNU C library defines this for functions which it implements
11173     to always fail with ENOSYS.  Some functions are actually named
11174     something starting with __ and the normal name is an alias.  */
11175 #if defined (__stub_shl_load) || defined (__stub___shl_load)
11176 choke me
11177 #else
11178 char (*f) () = shl_load;
11179 #endif
11180 #ifdef __cplusplus
11181 }
11182 #endif
11183
11184 int
11185 main ()
11186 {
11187 return f != shl_load;
11188   ;
11189   return 0;
11190 }
11191 _ACEOF
11192 rm -f conftest.$ac_objext conftest$ac_exeext
11193 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11194   (eval $ac_link) 2>&5
11195   ac_status=$?
11196   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11197   (exit $ac_status); } &&
11198          { ac_try='test -s conftest$ac_exeext'
11199   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11200   (eval $ac_try) 2>&5
11201   ac_status=$?
11202   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11203   (exit $ac_status); }; }; then
11204   ac_cv_func_shl_load=yes
11205 else
11206   echo "$as_me: failed program was:" >&5
11207 sed 's/^/| /' conftest.$ac_ext >&5
11208
11209 ac_cv_func_shl_load=no
11210 fi
11211 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11212 fi
11213 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
11214 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
11215 if test $ac_cv_func_shl_load = yes; then
11216   lt_cv_dlopen="shl_load"
11217 else
11218   echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
11219 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
11220 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
11221   echo $ECHO_N "(cached) $ECHO_C" >&6
11222 else
11223   ac_check_lib_save_LIBS=$LIBS
11224 LIBS="-ldld  $LIBS"
11225 cat >conftest.$ac_ext <<_ACEOF
11226 #line $LINENO "configure"
11227 /* confdefs.h.  */
11228 _ACEOF
11229 cat confdefs.h >>conftest.$ac_ext
11230 cat >>conftest.$ac_ext <<_ACEOF
11231 /* end confdefs.h.  */
11232
11233 /* Override any gcc2 internal prototype to avoid an error.  */
11234 #ifdef __cplusplus
11235 extern "C"
11236 #endif
11237 /* We use char because int might match the return type of a gcc2
11238    builtin and then its argument prototype would still apply.  */
11239 char shl_load ();
11240 int
11241 main ()
11242 {
11243 shl_load ();
11244   ;
11245   return 0;
11246 }
11247 _ACEOF
11248 rm -f conftest.$ac_objext conftest$ac_exeext
11249 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11250   (eval $ac_link) 2>&5
11251   ac_status=$?
11252   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11253   (exit $ac_status); } &&
11254          { ac_try='test -s conftest$ac_exeext'
11255   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11256   (eval $ac_try) 2>&5
11257   ac_status=$?
11258   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11259   (exit $ac_status); }; }; then
11260   ac_cv_lib_dld_shl_load=yes
11261 else
11262   echo "$as_me: failed program was:" >&5
11263 sed 's/^/| /' conftest.$ac_ext >&5
11264
11265 ac_cv_lib_dld_shl_load=no
11266 fi
11267 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11268 LIBS=$ac_check_lib_save_LIBS
11269 fi
11270 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
11271 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
11272 if test $ac_cv_lib_dld_shl_load = yes; then
11273   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
11274 else
11275   echo "$as_me:$LINENO: checking for dlopen" >&5
11276 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
11277 if test "${ac_cv_func_dlopen+set}" = set; then
11278   echo $ECHO_N "(cached) $ECHO_C" >&6
11279 else
11280   cat >conftest.$ac_ext <<_ACEOF
11281 #line $LINENO "configure"
11282 /* confdefs.h.  */
11283 _ACEOF
11284 cat confdefs.h >>conftest.$ac_ext
11285 cat >>conftest.$ac_ext <<_ACEOF
11286 /* end confdefs.h.  */
11287 /* System header to define __stub macros and hopefully few prototypes,
11288     which can conflict with char dlopen (); below.
11289     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11290     <limits.h> exists even on freestanding compilers.  */
11291 #ifdef __STDC__
11292 # include <limits.h>
11293 #else
11294 # include <assert.h>
11295 #endif
11296 /* Override any gcc2 internal prototype to avoid an error.  */
11297 #ifdef __cplusplus
11298 extern "C"
11299 {
11300 #endif
11301 /* We use char because int might match the return type of a gcc2
11302    builtin and then its argument prototype would still apply.  */
11303 char dlopen ();
11304 /* The GNU C library defines this for functions which it implements
11305     to always fail with ENOSYS.  Some functions are actually named
11306     something starting with __ and the normal name is an alias.  */
11307 #if defined (__stub_dlopen) || defined (__stub___dlopen)
11308 choke me
11309 #else
11310 char (*f) () = dlopen;
11311 #endif
11312 #ifdef __cplusplus
11313 }
11314 #endif
11315
11316 int
11317 main ()
11318 {
11319 return f != dlopen;
11320   ;
11321   return 0;
11322 }
11323 _ACEOF
11324 rm -f conftest.$ac_objext conftest$ac_exeext
11325 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11326   (eval $ac_link) 2>&5
11327   ac_status=$?
11328   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11329   (exit $ac_status); } &&
11330          { ac_try='test -s conftest$ac_exeext'
11331   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11332   (eval $ac_try) 2>&5
11333   ac_status=$?
11334   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11335   (exit $ac_status); }; }; then
11336   ac_cv_func_dlopen=yes
11337 else
11338   echo "$as_me: failed program was:" >&5
11339 sed 's/^/| /' conftest.$ac_ext >&5
11340
11341 ac_cv_func_dlopen=no
11342 fi
11343 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11344 fi
11345 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
11346 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
11347 if test $ac_cv_func_dlopen = yes; then
11348   lt_cv_dlopen="dlopen"
11349 else
11350   echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
11351 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
11352 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
11353   echo $ECHO_N "(cached) $ECHO_C" >&6
11354 else
11355   ac_check_lib_save_LIBS=$LIBS
11356 LIBS="-ldl  $LIBS"
11357 cat >conftest.$ac_ext <<_ACEOF
11358 #line $LINENO "configure"
11359 /* confdefs.h.  */
11360 _ACEOF
11361 cat confdefs.h >>conftest.$ac_ext
11362 cat >>conftest.$ac_ext <<_ACEOF
11363 /* end confdefs.h.  */
11364
11365 /* Override any gcc2 internal prototype to avoid an error.  */
11366 #ifdef __cplusplus
11367 extern "C"
11368 #endif
11369 /* We use char because int might match the return type of a gcc2
11370    builtin and then its argument prototype would still apply.  */
11371 char dlopen ();
11372 int
11373 main ()
11374 {
11375 dlopen ();
11376   ;
11377   return 0;
11378 }
11379 _ACEOF
11380 rm -f conftest.$ac_objext conftest$ac_exeext
11381 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11382   (eval $ac_link) 2>&5
11383   ac_status=$?
11384   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11385   (exit $ac_status); } &&
11386          { ac_try='test -s conftest$ac_exeext'
11387   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11388   (eval $ac_try) 2>&5
11389   ac_status=$?
11390   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11391   (exit $ac_status); }; }; then
11392   ac_cv_lib_dl_dlopen=yes
11393 else
11394   echo "$as_me: failed program was:" >&5
11395 sed 's/^/| /' conftest.$ac_ext >&5
11396
11397 ac_cv_lib_dl_dlopen=no
11398 fi
11399 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11400 LIBS=$ac_check_lib_save_LIBS
11401 fi
11402 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
11403 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
11404 if test $ac_cv_lib_dl_dlopen = yes; then
11405   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11406 else
11407   echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
11408 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
11409 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
11410   echo $ECHO_N "(cached) $ECHO_C" >&6
11411 else
11412   ac_check_lib_save_LIBS=$LIBS
11413 LIBS="-lsvld  $LIBS"
11414 cat >conftest.$ac_ext <<_ACEOF
11415 #line $LINENO "configure"
11416 /* confdefs.h.  */
11417 _ACEOF
11418 cat confdefs.h >>conftest.$ac_ext
11419 cat >>conftest.$ac_ext <<_ACEOF
11420 /* end confdefs.h.  */
11421
11422 /* Override any gcc2 internal prototype to avoid an error.  */
11423 #ifdef __cplusplus
11424 extern "C"
11425 #endif
11426 /* We use char because int might match the return type of a gcc2
11427    builtin and then its argument prototype would still apply.  */
11428 char dlopen ();
11429 int
11430 main ()
11431 {
11432 dlopen ();
11433   ;
11434   return 0;
11435 }
11436 _ACEOF
11437 rm -f conftest.$ac_objext conftest$ac_exeext
11438 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11439   (eval $ac_link) 2>&5
11440   ac_status=$?
11441   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11442   (exit $ac_status); } &&
11443          { ac_try='test -s conftest$ac_exeext'
11444   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11445   (eval $ac_try) 2>&5
11446   ac_status=$?
11447   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11448   (exit $ac_status); }; }; then
11449   ac_cv_lib_svld_dlopen=yes
11450 else
11451   echo "$as_me: failed program was:" >&5
11452 sed 's/^/| /' conftest.$ac_ext >&5
11453
11454 ac_cv_lib_svld_dlopen=no
11455 fi
11456 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11457 LIBS=$ac_check_lib_save_LIBS
11458 fi
11459 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
11460 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
11461 if test $ac_cv_lib_svld_dlopen = yes; then
11462   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11463 else
11464   echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
11465 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
11466 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
11467   echo $ECHO_N "(cached) $ECHO_C" >&6
11468 else
11469   ac_check_lib_save_LIBS=$LIBS
11470 LIBS="-ldld  $LIBS"
11471 cat >conftest.$ac_ext <<_ACEOF
11472 #line $LINENO "configure"
11473 /* confdefs.h.  */
11474 _ACEOF
11475 cat confdefs.h >>conftest.$ac_ext
11476 cat >>conftest.$ac_ext <<_ACEOF
11477 /* end confdefs.h.  */
11478
11479 /* Override any gcc2 internal prototype to avoid an error.  */
11480 #ifdef __cplusplus
11481 extern "C"
11482 #endif
11483 /* We use char because int might match the return type of a gcc2
11484    builtin and then its argument prototype would still apply.  */
11485 char dld_link ();
11486 int
11487 main ()
11488 {
11489 dld_link ();
11490   ;
11491   return 0;
11492 }
11493 _ACEOF
11494 rm -f conftest.$ac_objext conftest$ac_exeext
11495 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11496   (eval $ac_link) 2>&5
11497   ac_status=$?
11498   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11499   (exit $ac_status); } &&
11500          { ac_try='test -s conftest$ac_exeext'
11501   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11502   (eval $ac_try) 2>&5
11503   ac_status=$?
11504   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11505   (exit $ac_status); }; }; then
11506   ac_cv_lib_dld_dld_link=yes
11507 else
11508   echo "$as_me: failed program was:" >&5
11509 sed 's/^/| /' conftest.$ac_ext >&5
11510
11511 ac_cv_lib_dld_dld_link=no
11512 fi
11513 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11514 LIBS=$ac_check_lib_save_LIBS
11515 fi
11516 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
11517 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
11518 if test $ac_cv_lib_dld_dld_link = yes; then
11519   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
11520 fi
11521
11522
11523 fi
11524
11525
11526 fi
11527
11528
11529 fi
11530
11531
11532 fi
11533
11534
11535 fi
11536
11537     ;;
11538   esac
11539
11540   if test "x$lt_cv_dlopen" != xno; then
11541     enable_dlopen=yes
11542   else
11543     enable_dlopen=no
11544   fi
11545
11546   case $lt_cv_dlopen in
11547   dlopen)
11548     save_CPPFLAGS="$CPPFLAGS"
11549     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11550
11551     save_LDFLAGS="$LDFLAGS"
11552     eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11553
11554     save_LIBS="$LIBS"
11555     LIBS="$lt_cv_dlopen_libs $LIBS"
11556
11557     echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
11558 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
11559 if test "${lt_cv_dlopen_self+set}" = set; then
11560   echo $ECHO_N "(cached) $ECHO_C" >&6
11561 else
11562           if test "$cross_compiling" = yes; then :
11563   lt_cv_dlopen_self=cross
11564 else
11565   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11566   lt_status=$lt_dlunknown
11567   cat > conftest.$ac_ext <<EOF
11568 #line 11568 "configure"
11569 #include "confdefs.h"
11570
11571 #if HAVE_DLFCN_H
11572 #include <dlfcn.h>
11573 #endif
11574
11575 #include <stdio.h>
11576
11577 #ifdef RTLD_GLOBAL
11578 #  define LT_DLGLOBAL           RTLD_GLOBAL
11579 #else
11580 #  ifdef DL_GLOBAL
11581 #    define LT_DLGLOBAL         DL_GLOBAL
11582 #  else
11583 #    define LT_DLGLOBAL         0
11584 #  endif
11585 #endif
11586
11587 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11588    find out it does not work in some platform. */
11589 #ifndef LT_DLLAZY_OR_NOW
11590 #  ifdef RTLD_LAZY
11591 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
11592 #  else
11593 #    ifdef DL_LAZY
11594 #      define LT_DLLAZY_OR_NOW          DL_LAZY
11595 #    else
11596 #      ifdef RTLD_NOW
11597 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
11598 #      else
11599 #        ifdef DL_NOW
11600 #          define LT_DLLAZY_OR_NOW      DL_NOW
11601 #        else
11602 #          define LT_DLLAZY_OR_NOW      0
11603 #        endif
11604 #      endif
11605 #    endif
11606 #  endif
11607 #endif
11608
11609 #ifdef __cplusplus
11610 extern "C" void exit (int);
11611 #endif
11612
11613 void fnord() { int i=42;}
11614 int main ()
11615 {
11616   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11617   int status = $lt_dlunknown;
11618
11619   if (self)
11620     {
11621       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11622       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11623       /* dlclose (self); */
11624     }
11625
11626     exit (status);
11627 }
11628 EOF
11629   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11630   (eval $ac_link) 2>&5
11631   ac_status=$?
11632   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11633   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
11634     (./conftest; exit; ) 2>/dev/null
11635     lt_status=$?
11636     case x$lt_status in
11637       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11638       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11639       x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
11640     esac
11641   else :
11642     # compilation failed
11643     lt_cv_dlopen_self=no
11644   fi
11645 fi
11646 rm -fr conftest*
11647
11648
11649 fi
11650 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
11651 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
11652
11653     if test "x$lt_cv_dlopen_self" = xyes; then
11654       LDFLAGS="$LDFLAGS $link_static_flag"
11655       echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
11656 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
11657 if test "${lt_cv_dlopen_self_static+set}" = set; then
11658   echo $ECHO_N "(cached) $ECHO_C" >&6
11659 else
11660           if test "$cross_compiling" = yes; then :
11661   lt_cv_dlopen_self_static=cross
11662 else
11663   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11664   lt_status=$lt_dlunknown
11665   cat > conftest.$ac_ext <<EOF
11666 #line 11666 "configure"
11667 #include "confdefs.h"
11668
11669 #if HAVE_DLFCN_H
11670 #include <dlfcn.h>
11671 #endif
11672
11673 #include <stdio.h>
11674
11675 #ifdef RTLD_GLOBAL
11676 #  define LT_DLGLOBAL           RTLD_GLOBAL
11677 #else
11678 #  ifdef DL_GLOBAL
11679 #    define LT_DLGLOBAL         DL_GLOBAL
11680 #  else
11681 #    define LT_DLGLOBAL         0
11682 #  endif
11683 #endif
11684
11685 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11686    find out it does not work in some platform. */
11687 #ifndef LT_DLLAZY_OR_NOW
11688 #  ifdef RTLD_LAZY
11689 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
11690 #  else
11691 #    ifdef DL_LAZY
11692 #      define LT_DLLAZY_OR_NOW          DL_LAZY
11693 #    else
11694 #      ifdef RTLD_NOW
11695 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
11696 #      else
11697 #        ifdef DL_NOW
11698 #          define LT_DLLAZY_OR_NOW      DL_NOW
11699 #        else
11700 #          define LT_DLLAZY_OR_NOW      0
11701 #        endif
11702 #      endif
11703 #    endif
11704 #  endif
11705 #endif
11706
11707 #ifdef __cplusplus
11708 extern "C" void exit (int);
11709 #endif
11710
11711 void fnord() { int i=42;}
11712 int main ()
11713 {
11714   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11715   int status = $lt_dlunknown;
11716
11717   if (self)
11718     {
11719       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11720       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11721       /* dlclose (self); */
11722     }
11723
11724     exit (status);
11725 }
11726 EOF
11727   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11728   (eval $ac_link) 2>&5
11729   ac_status=$?
11730   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11731   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
11732     (./conftest; exit; ) 2>/dev/null
11733     lt_status=$?
11734     case x$lt_status in
11735       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11736       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11737       x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
11738     esac
11739   else :
11740     # compilation failed
11741     lt_cv_dlopen_self_static=no
11742   fi
11743 fi
11744 rm -fr conftest*
11745
11746
11747 fi
11748 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
11749 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
11750     fi
11751
11752     CPPFLAGS="$save_CPPFLAGS"
11753     LDFLAGS="$save_LDFLAGS"
11754     LIBS="$save_LIBS"
11755     ;;
11756   esac
11757
11758   case $lt_cv_dlopen_self in
11759   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11760   *) enable_dlopen_self=unknown ;;
11761   esac
11762
11763   case $lt_cv_dlopen_self_static in
11764   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11765   *) enable_dlopen_self_static=unknown ;;
11766   esac
11767 fi
11768
11769
11770 # The else clause should only fire when bootstrapping the
11771 # libtool distribution, otherwise you forgot to ship ltmain.sh
11772 # with your package, and you will get complaints that there are
11773 # no rules to generate ltmain.sh.
11774 if test -f "$ltmain"; then
11775   # See if we are running on zsh, and set the options which allow our commands through
11776   # without removal of \ escapes.
11777   if test -n "${ZSH_VERSION+set}" ; then
11778     setopt NO_GLOB_SUBST
11779   fi
11780   # Now quote all the things that may contain metacharacters while being
11781   # careful not to overquote the AC_SUBSTed values.  We take copies of the
11782   # variables and quote the copies for generation of the libtool script.
11783   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \
11784     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
11785     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
11786     deplibs_check_method reload_flag reload_cmds need_locks \
11787     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
11788     lt_cv_sys_global_symbol_to_c_name_address \
11789     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
11790     old_postinstall_cmds old_postuninstall_cmds \
11791     compiler_CXX \
11792     CC_CXX \
11793     LD_CXX \
11794     lt_prog_compiler_wl_CXX \
11795     lt_prog_compiler_pic_CXX \
11796     lt_prog_compiler_static_CXX \
11797     lt_prog_compiler_no_builtin_flag_CXX \
11798     export_dynamic_flag_spec_CXX \
11799     thread_safe_flag_spec_CXX \
11800     whole_archive_flag_spec_CXX \
11801     enable_shared_with_static_runtimes_CXX \
11802     old_archive_cmds_CXX \
11803     old_archive_from_new_cmds_CXX \
11804     predep_objects_CXX \
11805     postdep_objects_CXX \
11806     predeps_CXX \
11807     postdeps_CXX \
11808     compiler_lib_search_path_CXX \
11809     archive_cmds_CXX \
11810     archive_expsym_cmds_CXX \
11811     postinstall_cmds_CXX \
11812     postuninstall_cmds_CXX \
11813     old_archive_from_expsyms_cmds_CXX \
11814     allow_undefined_flag_CXX \
11815     no_undefined_flag_CXX \
11816     export_symbols_cmds_CXX \
11817     hardcode_libdir_flag_spec_CXX \
11818     hardcode_libdir_flag_spec_ld_CXX \
11819     hardcode_libdir_separator_CXX \
11820     hardcode_automatic_CXX \
11821     module_cmds_CXX \
11822     module_expsym_cmds_CXX \
11823     lt_cv_prog_compiler_c_o_CXX \
11824     exclude_expsyms_CXX \
11825     include_expsyms_CXX; do
11826
11827     case $var in
11828     old_archive_cmds_CXX | \
11829     old_archive_from_new_cmds_CXX | \
11830     archive_cmds_CXX | \
11831     archive_expsym_cmds_CXX | \
11832     module_cmds_CXX | \
11833     module_expsym_cmds_CXX | \
11834     old_archive_from_expsyms_cmds_CXX | \
11835     export_symbols_cmds_CXX | \
11836     extract_expsyms_cmds | reload_cmds | finish_cmds | \
11837     postinstall_cmds | postuninstall_cmds | \
11838     old_postinstall_cmds | old_postuninstall_cmds | \
11839     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
11840       # Double-quote double-evaled strings.
11841       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
11842       ;;
11843     *)
11844       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
11845       ;;
11846     esac
11847   done
11848
11849   case $lt_echo in
11850   *'\$0 --fallback-echo"')
11851     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
11852     ;;
11853   esac
11854
11855 cfgfile="$ofile"
11856
11857   cat <<__EOF__ >> "$cfgfile"
11858 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
11859
11860 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
11861
11862 # Shell to use when invoking shell scripts.
11863 SHELL=$lt_SHELL
11864
11865 # Whether or not to build shared libraries.
11866 build_libtool_libs=$enable_shared
11867
11868 # Whether or not to build static libraries.
11869 build_old_libs=$enable_static
11870
11871 # Whether or not to add -lc for building shared libraries.
11872 build_libtool_need_lc=$archive_cmds_need_lc_CXX
11873
11874 # Whether or not to disallow shared libs when runtime libs are static
11875 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
11876
11877 # Whether or not to optimize for fast installation.
11878 fast_install=$enable_fast_install
11879
11880 # The host system.
11881 host_alias=$host_alias
11882 host=$host
11883
11884 # An echo program that does not interpret backslashes.
11885 echo=$lt_echo
11886
11887 # The archiver.
11888 AR=$lt_AR
11889 AR_FLAGS=$lt_AR_FLAGS
11890
11891 # A C compiler.
11892 LTCC=$lt_LTCC
11893
11894 # A language-specific compiler.
11895 CC=$lt_compiler_CXX
11896
11897 # Is the compiler the GNU C compiler?
11898 with_gcc=$GCC_CXX
11899
11900 # An ERE matcher.
11901 EGREP=$lt_EGREP
11902
11903 # The linker used to build libraries.
11904 LD=$lt_LD_CXX
11905
11906 # Whether we need hard or soft links.
11907 LN_S=$lt_LN_S
11908
11909 # A BSD-compatible nm program.
11910 NM=$lt_NM
11911
11912 # A symbol stripping program
11913 STRIP=$STRIP
11914
11915 # Used to examine libraries when file_magic_cmd begins "file"
11916 MAGIC_CMD=$MAGIC_CMD
11917
11918 # Used on cygwin: DLL creation program.
11919 DLLTOOL="$DLLTOOL"
11920
11921 # Used on cygwin: object dumper.
11922 OBJDUMP="$OBJDUMP"
11923
11924 # Used on cygwin: assembler.
11925 AS="$AS"
11926
11927 # The name of the directory that contains temporary libtool files.
11928 objdir=$objdir
11929
11930 # How to create reloadable object files.
11931 reload_flag=$lt_reload_flag
11932 reload_cmds=$lt_reload_cmds
11933
11934 # How to pass a linker flag through the compiler.
11935 wl=$lt_lt_prog_compiler_wl_CXX
11936
11937 # Object file suffix (normally "o").
11938 objext="$ac_objext"
11939
11940 # Old archive suffix (normally "a").
11941 libext="$libext"
11942
11943 # Shared library suffix (normally ".so").
11944 shrext='$shrext'
11945
11946 # Executable file suffix (normally "").
11947 exeext="$exeext"
11948
11949 # Additional compiler flags for building library objects.
11950 pic_flag=$lt_lt_prog_compiler_pic_CXX
11951 pic_mode=$pic_mode
11952
11953 # What is the maximum length of a command?
11954 max_cmd_len=$lt_cv_sys_max_cmd_len
11955
11956 # Does compiler simultaneously support -c and -o options?
11957 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
11958
11959 # Must we lock files when doing compilation ?
11960 need_locks=$lt_need_locks
11961
11962 # Do we need the lib prefix for modules?
11963 need_lib_prefix=$need_lib_prefix
11964
11965 # Do we need a version for libraries?
11966 need_version=$need_version
11967
11968 # Whether dlopen is supported.
11969 dlopen_support=$enable_dlopen
11970
11971 # Whether dlopen of programs is supported.
11972 dlopen_self=$enable_dlopen_self
11973
11974 # Whether dlopen of statically linked programs is supported.
11975 dlopen_self_static=$enable_dlopen_self_static
11976
11977 # Compiler flag to prevent dynamic linking.
11978 link_static_flag=$lt_lt_prog_compiler_static_CXX
11979
11980 # Compiler flag to turn off builtin functions.
11981 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
11982
11983 # Compiler flag to allow reflexive dlopens.
11984 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
11985
11986 # Compiler flag to generate shared objects directly from archives.
11987 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
11988
11989 # Compiler flag to generate thread-safe objects.
11990 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
11991
11992 # Library versioning type.
11993 version_type=$version_type
11994
11995 # Format of library name prefix.
11996 libname_spec=$lt_libname_spec
11997
11998 # List of archive names.  First name is the real one, the rest are links.
11999 # The last name is the one that the linker finds with -lNAME.
12000 library_names_spec=$lt_library_names_spec
12001
12002 # The coded name of the library, if different from the real name.
12003 soname_spec=$lt_soname_spec
12004
12005 # Commands used to build and install an old-style archive.
12006 RANLIB=$lt_RANLIB
12007 old_archive_cmds=$lt_old_archive_cmds_CXX
12008 old_postinstall_cmds=$lt_old_postinstall_cmds
12009 old_postuninstall_cmds=$lt_old_postuninstall_cmds
12010
12011 # Create an old-style archive from a shared archive.
12012 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
12013
12014 # Create a temporary old-style archive to link instead of a shared archive.
12015 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
12016
12017 # Commands used to build and install a shared archive.
12018 archive_cmds=$lt_archive_cmds_CXX
12019 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
12020 postinstall_cmds=$lt_postinstall_cmds
12021 postuninstall_cmds=$lt_postuninstall_cmds
12022
12023 # Commands used to build a loadable module (assumed same as above if empty)
12024 module_cmds=$lt_module_cmds_CXX
12025 module_expsym_cmds=$lt_module_expsym_cmds_CXX
12026
12027 # Commands to strip libraries.
12028 old_striplib=$lt_old_striplib
12029 striplib=$lt_striplib
12030
12031 # Dependencies to place before the objects being linked to create a
12032 # shared library.
12033 predep_objects=$lt_predep_objects_CXX
12034
12035 # Dependencies to place after the objects being linked to create a
12036 # shared library.
12037 postdep_objects=$lt_postdep_objects_CXX
12038
12039 # Dependencies to place before the objects being linked to create a
12040 # shared library.
12041 predeps=$lt_predeps_CXX
12042
12043 # Dependencies to place after the objects being linked to create a
12044 # shared library.
12045 postdeps=$lt_postdeps_CXX
12046
12047 # The library search path used internally by the compiler when linking
12048 # a shared library.
12049 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
12050
12051 # Method to check whether dependent libraries are shared objects.
12052 deplibs_check_method=$lt_deplibs_check_method
12053
12054 # Command to use when deplibs_check_method == file_magic.
12055 file_magic_cmd=$lt_file_magic_cmd
12056
12057 # Flag that allows shared libraries with undefined symbols to be built.
12058 allow_undefined_flag=$lt_allow_undefined_flag_CXX
12059
12060 # Flag that forces no undefined symbols.
12061 no_undefined_flag=$lt_no_undefined_flag_CXX
12062
12063 # Commands used to finish a libtool library installation in a directory.
12064 finish_cmds=$lt_finish_cmds
12065
12066 # Same as above, but a single script fragment to be evaled but not shown.
12067 finish_eval=$lt_finish_eval
12068
12069 # Take the output of nm and produce a listing of raw symbols and C names.
12070 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
12071
12072 # Transform the output of nm in a proper C declaration
12073 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
12074
12075 # Transform the output of nm in a C name address pair
12076 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
12077
12078 # This is the shared library runtime path variable.
12079 runpath_var=$runpath_var
12080
12081 # This is the shared library path variable.
12082 shlibpath_var=$shlibpath_var
12083
12084 # Is shlibpath searched before the hard-coded library search path?
12085 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
12086
12087 # How to hardcode a shared library path into an executable.
12088 hardcode_action=$hardcode_action_CXX
12089
12090 # Whether we should hardcode library paths into libraries.
12091 hardcode_into_libs=$hardcode_into_libs
12092
12093 # Flag to hardcode \$libdir into a binary during linking.
12094 # This must work even if \$libdir does not exist.
12095 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
12096
12097 # If ld is used when linking, flag to hardcode \$libdir into
12098 # a binary during linking. This must work even if \$libdir does
12099 # not exist.
12100 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
12101
12102 # Whether we need a single -rpath flag with a separated argument.
12103 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
12104
12105 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
12106 # resulting binary.
12107 hardcode_direct=$hardcode_direct_CXX
12108
12109 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
12110 # resulting binary.
12111 hardcode_minus_L=$hardcode_minus_L_CXX
12112
12113 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
12114 # the resulting binary.
12115 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
12116
12117 # Set to yes if building a shared library automatically hardcodes DIR into the library
12118 # and all subsequent libraries and executables linked against it.
12119 hardcode_automatic=$hardcode_automatic_CXX
12120
12121 # Variables whose values should be saved in libtool wrapper scripts and
12122 # restored at relink time.
12123 variables_saved_for_relink="$variables_saved_for_relink"
12124
12125 # Whether libtool must link a program against all its dependency libraries.
12126 link_all_deplibs=$link_all_deplibs_CXX
12127
12128 # Compile-time system search path for libraries
12129 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
12130
12131 # Run-time system search path for libraries
12132 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
12133
12134 # Fix the shell variable \$srcfile for the compiler.
12135 fix_srcfile_path="$fix_srcfile_path_CXX"
12136
12137 # Set to yes if exported symbols are required.
12138 always_export_symbols=$always_export_symbols_CXX
12139
12140 # The commands to list exported symbols.
12141 export_symbols_cmds=$lt_export_symbols_cmds_CXX
12142
12143 # The commands to extract the exported symbol list from a shared archive.
12144 extract_expsyms_cmds=$lt_extract_expsyms_cmds
12145
12146 # Symbols that should not be listed in the preloaded symbols.
12147 exclude_expsyms=$lt_exclude_expsyms_CXX
12148
12149 # Symbols that must always be exported.
12150 include_expsyms=$lt_include_expsyms_CXX
12151
12152 # ### END LIBTOOL TAG CONFIG: $tagname
12153
12154 __EOF__
12155
12156
12157 else
12158   # If there is no Makefile yet, we rely on a make rule to execute
12159   # `config.status --recheck' to rerun these tests and create the
12160   # libtool script then.
12161   test -f Makefile && make "$ltmain"
12162 fi
12163
12164
12165 ac_ext=c
12166 ac_cpp='$CPP $CPPFLAGS'
12167 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12168 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12169 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12170
12171 CC=$lt_save_CC
12172 LDCXX=$LD
12173 LD=$lt_save_LD
12174 GCC=$lt_save_GCC
12175 with_gnu_ldcxx=$with_gnu_ld
12176 with_gnu_ld=$lt_save_with_gnu_ld
12177 lt_cv_path_LDCXX=$lt_cv_path_LD
12178 lt_cv_path_LD=$lt_save_path_LD
12179 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
12180 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
12181
12182         else
12183           tagname=""
12184         fi
12185         ;;
12186
12187       F77)
12188         if test -n "$F77" && test "X$F77" != "Xno"; then
12189
12190 ac_ext=f
12191 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
12192 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12193 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
12194
12195
12196 archive_cmds_need_lc_F77=no
12197 allow_undefined_flag_F77=
12198 always_export_symbols_F77=no
12199 archive_expsym_cmds_F77=
12200 export_dynamic_flag_spec_F77=
12201 hardcode_direct_F77=no
12202 hardcode_libdir_flag_spec_F77=
12203 hardcode_libdir_flag_spec_ld_F77=
12204 hardcode_libdir_separator_F77=
12205 hardcode_minus_L_F77=no
12206 hardcode_automatic_F77=no
12207 module_cmds_F77=
12208 module_expsym_cmds_F77=
12209 link_all_deplibs_F77=unknown
12210 old_archive_cmds_F77=$old_archive_cmds
12211 no_undefined_flag_F77=
12212 whole_archive_flag_spec_F77=
12213 enable_shared_with_static_runtimes_F77=no
12214
12215 # Source file extension for f77 test sources.
12216 ac_ext=f
12217
12218 # Object file extension for compiled f77 test sources.
12219 objext=o
12220 objext_F77=$objext
12221
12222 # Code to be used in simple compile tests
12223 lt_simple_compile_test_code="      subroutine t\n      return\n      end\n"
12224
12225 # Code to be used in simple link tests
12226 lt_simple_link_test_code="      program t\n      end\n"
12227
12228 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
12229
12230 # If no C compiler was specified, use CC.
12231 LTCC=${LTCC-"$CC"}
12232
12233 # Allow CC to be a program name with arguments.
12234 compiler=$CC
12235
12236
12237 # Allow CC to be a program name with arguments.
12238 lt_save_CC="$CC"
12239 CC=${F77-"f77"}
12240 compiler=$CC
12241 compiler_F77=$CC
12242 cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
12243
12244 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
12245 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
12246 echo "$as_me:$LINENO: result: $can_build_shared" >&5
12247 echo "${ECHO_T}$can_build_shared" >&6
12248
12249 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
12250 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
12251 test "$can_build_shared" = "no" && enable_shared=no
12252
12253 # On AIX, shared libraries and static libraries use the same namespace, and
12254 # are all built from PIC.
12255 case "$host_os" in
12256 aix3*)
12257   test "$enable_shared" = yes && enable_static=no
12258   if test -n "$RANLIB"; then
12259     archive_cmds="$archive_cmds~\$RANLIB \$lib"
12260     postinstall_cmds='$RANLIB $lib'
12261   fi
12262   ;;
12263 aix4*)
12264   test "$enable_shared" = yes && enable_static=no
12265   ;;
12266 esac
12267 echo "$as_me:$LINENO: result: $enable_shared" >&5
12268 echo "${ECHO_T}$enable_shared" >&6
12269
12270 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
12271 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
12272 # Make sure either enable_shared or enable_static is yes.
12273 test "$enable_shared" = yes || enable_static=yes
12274 echo "$as_me:$LINENO: result: $enable_static" >&5
12275 echo "${ECHO_T}$enable_static" >&6
12276
12277 test "$ld_shlibs_F77" = no && can_build_shared=no
12278
12279 GCC_F77="$G77"
12280 LD_F77="$LD"
12281
12282 lt_prog_compiler_wl_F77=
12283 lt_prog_compiler_pic_F77=
12284 lt_prog_compiler_static_F77=
12285
12286 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
12287 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
12288
12289   if test "$GCC" = yes; then
12290     lt_prog_compiler_wl_F77='-Wl,'
12291     lt_prog_compiler_static_F77='-static'
12292
12293     case $host_os in
12294       aix*)
12295       # All AIX code is PIC.
12296       if test "$host_cpu" = ia64; then
12297         # AIX 5 now supports IA64 processor
12298         lt_prog_compiler_static_F77='-Bstatic'
12299       fi
12300       ;;
12301
12302     amigaos*)
12303       # FIXME: we need at least 68020 code to build shared libraries, but
12304       # adding the `-m68020' flag to GCC prevents building anything better,
12305       # like `-m68040'.
12306       lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
12307       ;;
12308
12309     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12310       # PIC is the default for these OSes.
12311       ;;
12312
12313     mingw* | pw32* | os2*)
12314       # This hack is so that the source file can tell whether it is being
12315       # built for inclusion in a dll (and should export symbols for example).
12316       lt_prog_compiler_pic_F77='-DDLL_EXPORT'
12317       ;;
12318
12319     darwin* | rhapsody*)
12320       # PIC is the default on this platform
12321       # Common symbols not allowed in MH_DYLIB files
12322       lt_prog_compiler_pic_F77='-fno-common'
12323       ;;
12324
12325     msdosdjgpp*)
12326       # Just because we use GCC doesn't mean we suddenly get shared libraries
12327       # on systems that don't support them.
12328       lt_prog_compiler_can_build_shared_F77=no
12329       enable_shared=no
12330       ;;
12331
12332     sysv4*MP*)
12333       if test -d /usr/nec; then
12334         lt_prog_compiler_pic_F77=-Kconform_pic
12335       fi
12336       ;;
12337
12338     hpux*)
12339       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12340       # not for PA HP-UX.
12341       case "$host_cpu" in
12342       hppa*64*|ia64*)
12343         # +Z the default
12344         ;;
12345       *)
12346         lt_prog_compiler_pic_F77='-fPIC'
12347         ;;
12348       esac
12349       ;;
12350
12351     *)
12352       lt_prog_compiler_pic_F77='-fPIC'
12353       ;;
12354     esac
12355   else
12356     # PORTME Check for flag to pass linker flags through the system compiler.
12357     case $host_os in
12358     aix*)
12359       lt_prog_compiler_wl_F77='-Wl,'
12360       if test "$host_cpu" = ia64; then
12361         # AIX 5 now supports IA64 processor
12362         lt_prog_compiler_static_F77='-Bstatic'
12363       else
12364         lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
12365       fi
12366       ;;
12367
12368     mingw* | pw32* | os2*)
12369       # This hack is so that the source file can tell whether it is being
12370       # built for inclusion in a dll (and should export symbols for example).
12371       lt_prog_compiler_pic_F77='-DDLL_EXPORT'
12372       ;;
12373
12374     hpux9* | hpux10* | hpux11*)
12375       lt_prog_compiler_wl_F77='-Wl,'
12376       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12377       # not for PA HP-UX.
12378       case "$host_cpu" in
12379       hppa*64*|ia64*)
12380         # +Z the default
12381         ;;
12382       *)
12383         lt_prog_compiler_pic_F77='+Z'
12384         ;;
12385       esac
12386       # Is there a better lt_prog_compiler_static that works with the bundled CC?
12387       lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
12388       ;;
12389
12390     irix5* | irix6* | nonstopux*)
12391       lt_prog_compiler_wl_F77='-Wl,'
12392       # PIC (with -KPIC) is the default.
12393       lt_prog_compiler_static_F77='-non_shared'
12394       ;;
12395
12396     newsos6)
12397       lt_prog_compiler_pic_F77='-KPIC'
12398       lt_prog_compiler_static_F77='-Bstatic'
12399       ;;
12400
12401     linux*)
12402       case $CC in
12403       icc|ecc)
12404         lt_prog_compiler_wl_F77='-Wl,'
12405         lt_prog_compiler_pic_F77='-KPIC'
12406         lt_prog_compiler_static_F77='-static'
12407         ;;
12408       ccc)
12409         lt_prog_compiler_wl_F77='-Wl,'
12410         # All Alpha code is PIC.
12411         lt_prog_compiler_static_F77='-non_shared'
12412         ;;
12413       esac
12414       ;;
12415
12416     osf3* | osf4* | osf5*)
12417       lt_prog_compiler_wl_F77='-Wl,'
12418       # All OSF/1 code is PIC.
12419       lt_prog_compiler_static_F77='-non_shared'
12420       ;;
12421
12422     sco3.2v5*)
12423       lt_prog_compiler_pic_F77='-Kpic'
12424       lt_prog_compiler_static_F77='-dn'
12425       ;;
12426
12427     solaris*)
12428       lt_prog_compiler_wl_F77='-Wl,'
12429       lt_prog_compiler_pic_F77='-KPIC'
12430       lt_prog_compiler_static_F77='-Bstatic'
12431       ;;
12432
12433     sunos4*)
12434       lt_prog_compiler_wl_F77='-Qoption ld '
12435       lt_prog_compiler_pic_F77='-PIC'
12436       lt_prog_compiler_static_F77='-Bstatic'
12437       ;;
12438
12439     sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
12440       lt_prog_compiler_wl_F77='-Wl,'
12441       lt_prog_compiler_pic_F77='-KPIC'
12442       lt_prog_compiler_static_F77='-Bstatic'
12443       ;;
12444
12445     sysv4*MP*)
12446       if test -d /usr/nec ;then
12447         lt_prog_compiler_pic_F77='-Kconform_pic'
12448         lt_prog_compiler_static_F77='-Bstatic'
12449       fi
12450       ;;
12451
12452     uts4*)
12453       lt_prog_compiler_pic_F77='-pic'
12454       lt_prog_compiler_static_F77='-Bstatic'
12455       ;;
12456
12457     *)
12458       lt_prog_compiler_can_build_shared_F77=no
12459       ;;
12460     esac
12461   fi
12462
12463 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
12464 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6
12465
12466 #
12467 # Check to make sure the PIC flag actually works.
12468 #
12469 if test -n "$lt_prog_compiler_pic_F77"; then
12470   echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
12471 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6
12472 if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
12473   echo $ECHO_N "(cached) $ECHO_C" >&6
12474 else
12475   lt_prog_compiler_pic_works_F77=no
12476   ac_outfile=conftest.$ac_objext
12477    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12478    lt_compiler_flag="$lt_prog_compiler_pic_F77"
12479    # Insert the option either (1) after the last *FLAGS variable, or
12480    # (2) before a word containing "conftest.", or (3) at the end.
12481    # Note that $ac_compile itself does not contain backslashes and begins
12482    # with a dollar sign (not a hyphen), so the echo should work correctly.
12483    # The option is referenced via a variable to avoid confusing sed.
12484    lt_compile=`echo "$ac_compile" | $SED \
12485    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
12486    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12487    -e 's:$: $lt_compiler_flag:'`
12488    (eval echo "\"\$as_me:12488: $lt_compile\"" >&5)
12489    (eval "$lt_compile" 2>conftest.err)
12490    ac_status=$?
12491    cat conftest.err >&5
12492    echo "$as_me:12492: \$? = $ac_status" >&5
12493    if (exit $ac_status) && test -s "$ac_outfile"; then
12494      # The compiler can only warn and ignore the option if not recognized
12495      # So say no if there are warnings
12496      if test ! -s conftest.err; then
12497        lt_prog_compiler_pic_works_F77=yes
12498      fi
12499    fi
12500    $rm conftest*
12501
12502 fi
12503 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
12504 echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6
12505
12506 if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
12507     case $lt_prog_compiler_pic_F77 in
12508      "" | " "*) ;;
12509      *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
12510      esac
12511 else
12512     lt_prog_compiler_pic_F77=
12513      lt_prog_compiler_can_build_shared_F77=no
12514 fi
12515
12516 fi
12517 case "$host_os" in
12518   # For platforms which do not support PIC, -DPIC is meaningless:
12519   *djgpp*)
12520     lt_prog_compiler_pic_F77=
12521     ;;
12522   *)
12523     lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
12524     ;;
12525 esac
12526
12527 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
12528 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
12529 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
12530   echo $ECHO_N "(cached) $ECHO_C" >&6
12531 else
12532   lt_cv_prog_compiler_c_o_F77=no
12533    $rm -r conftest 2>/dev/null
12534    mkdir conftest
12535    cd conftest
12536    mkdir out
12537    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12538
12539    # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
12540    # that will create temporary files in the current directory regardless of
12541    # the output directory.  Thus, making CWD read-only will cause this test
12542    # to fail, enabling locking or at least warning the user not to do parallel
12543    # builds.
12544    chmod -w .
12545
12546    lt_compiler_flag="-o out/conftest2.$ac_objext"
12547    # Insert the option either (1) after the last *FLAGS variable, or
12548    # (2) before a word containing "conftest.", or (3) at the end.
12549    # Note that $ac_compile itself does not contain backslashes and begins
12550    # with a dollar sign (not a hyphen), so the echo should work correctly.
12551    lt_compile=`echo "$ac_compile" | $SED \
12552    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
12553    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12554    -e 's:$: $lt_compiler_flag:'`
12555    (eval echo "\"\$as_me:12555: $lt_compile\"" >&5)
12556    (eval "$lt_compile" 2>out/conftest.err)
12557    ac_status=$?
12558    cat out/conftest.err >&5
12559    echo "$as_me:12559: \$? = $ac_status" >&5
12560    if (exit $ac_status) && test -s out/conftest2.$ac_objext
12561    then
12562      # The compiler can only warn and ignore the option if not recognized
12563      # So say no if there are warnings
12564      if test ! -s out/conftest.err; then
12565        lt_cv_prog_compiler_c_o_F77=yes
12566      fi
12567    fi
12568    chmod u+w .
12569    $rm conftest* out/*
12570    rmdir out
12571    cd ..
12572    rmdir conftest
12573    $rm conftest*
12574
12575 fi
12576 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
12577 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6
12578
12579
12580 hard_links="nottested"
12581 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
12582   # do not overwrite the value of need_locks provided by the user
12583   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
12584 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
12585   hard_links=yes
12586   $rm conftest*
12587   ln conftest.a conftest.b 2>/dev/null && hard_links=no
12588   touch conftest.a
12589   ln conftest.a conftest.b 2>&5 || hard_links=no
12590   ln conftest.a conftest.b 2>/dev/null && hard_links=no
12591   echo "$as_me:$LINENO: result: $hard_links" >&5
12592 echo "${ECHO_T}$hard_links" >&6
12593   if test "$hard_links" = no; then
12594     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
12595 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
12596     need_locks=warn
12597   fi
12598 else
12599   need_locks=no
12600 fi
12601
12602 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12603 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
12604
12605   runpath_var=
12606   allow_undefined_flag_F77=
12607   enable_shared_with_static_runtimes_F77=no
12608   archive_cmds_F77=
12609   archive_expsym_cmds_F77=
12610   old_archive_From_new_cmds_F77=
12611   old_archive_from_expsyms_cmds_F77=
12612   export_dynamic_flag_spec_F77=
12613   whole_archive_flag_spec_F77=
12614   thread_safe_flag_spec_F77=
12615   hardcode_libdir_flag_spec_F77=
12616   hardcode_libdir_flag_spec_ld_F77=
12617   hardcode_libdir_separator_F77=
12618   hardcode_direct_F77=no
12619   hardcode_minus_L_F77=no
12620   hardcode_shlibpath_var_F77=unsupported
12621   link_all_deplibs_F77=unknown
12622   hardcode_automatic_F77=no
12623   module_cmds_F77=
12624   module_expsym_cmds_F77=
12625   always_export_symbols_F77=no
12626   export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12627   # include_expsyms should be a list of space-separated symbols to be *always*
12628   # included in the symbol list
12629   include_expsyms_F77=
12630   # exclude_expsyms can be an extended regexp of symbols to exclude
12631   # it will be wrapped by ` (' and `)$', so one must not match beginning or
12632   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
12633   # as well as any symbol that contains `d'.
12634   exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
12635   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
12636   # platforms (ab)use it in PIC code, but their linkers get confused if
12637   # the symbol is explicitly referenced.  Since portable code cannot
12638   # rely on this symbol name, it's probably fine to never include it in
12639   # preloaded symbol tables.
12640   extract_expsyms_cmds=
12641
12642   case $host_os in
12643   cygwin* | mingw* | pw32*)
12644     # FIXME: the MSVC++ port hasn't been tested in a loooong time
12645     # When not using gcc, we currently assume that we are using
12646     # Microsoft Visual C++.
12647     if test "$GCC" != yes; then
12648       with_gnu_ld=no
12649     fi
12650     ;;
12651   openbsd*)
12652     with_gnu_ld=no
12653     ;;
12654   esac
12655
12656   ld_shlibs_F77=yes
12657   if test "$with_gnu_ld" = yes; then
12658     # If archive_cmds runs LD, not CC, wlarc should be empty
12659     wlarc='${wl}'
12660
12661     # See if GNU ld supports shared libraries.
12662     case $host_os in
12663     aix3* | aix4* | aix5*)
12664       # On AIX/PPC, the GNU linker is very broken
12665       if test "$host_cpu" != ia64; then
12666         ld_shlibs_F77=no
12667         cat <<EOF 1>&2
12668
12669 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
12670 *** to be unable to reliably create shared libraries on AIX.
12671 *** Therefore, libtool is disabling shared libraries support.  If you
12672 *** really care for shared libraries, you may want to modify your PATH
12673 *** so that a non-GNU linker is found, and then restart.
12674
12675 EOF
12676       fi
12677       ;;
12678
12679     amigaos*)
12680       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)'
12681       hardcode_libdir_flag_spec_F77='-L$libdir'
12682       hardcode_minus_L_F77=yes
12683
12684       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
12685       # that the semantics of dynamic libraries on AmigaOS, at least up
12686       # to version 4, is to share data among multiple programs linked
12687       # with the same dynamic library.  Since this doesn't match the
12688       # behavior of shared libraries on other platforms, we can't use
12689       # them.
12690       ld_shlibs_F77=no
12691       ;;
12692
12693     beos*)
12694       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
12695         allow_undefined_flag_F77=unsupported
12696         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
12697         # support --undefined.  This deserves some investigation.  FIXME
12698         archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12699       else
12700         ld_shlibs_F77=no
12701       fi
12702       ;;
12703
12704     cygwin* | mingw* | pw32*)
12705       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
12706       # as there is no search path for DLLs.
12707       hardcode_libdir_flag_spec_F77='-L$libdir'
12708       allow_undefined_flag_F77=unsupported
12709       always_export_symbols_F77=no
12710       enable_shared_with_static_runtimes_F77=yes
12711       export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
12712
12713       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
12714         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
12715         # If the export-symbols file already is a .def file (1st line
12716         # is EXPORTS), use it as is; otherwise, prepend...
12717         archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12718           cp $export_symbols $output_objdir/$soname.def;
12719         else
12720           echo EXPORTS > $output_objdir/$soname.def;
12721           cat $export_symbols >> $output_objdir/$soname.def;
12722         fi~
12723         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
12724       else
12725         ld_shlibs=no
12726       fi
12727       ;;
12728
12729     netbsd*)
12730       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
12731         archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
12732         wlarc=
12733       else
12734         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12735         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12736       fi
12737       ;;
12738
12739     solaris* | sysv5*)
12740       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
12741         ld_shlibs_F77=no
12742         cat <<EOF 1>&2
12743
12744 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
12745 *** create shared libraries on Solaris systems.  Therefore, libtool
12746 *** is disabling shared libraries support.  We urge you to upgrade GNU
12747 *** binutils to release 2.9.1 or newer.  Another option is to modify
12748 *** your PATH or compiler configuration so that the native linker is
12749 *** used, and then restart.
12750
12751 EOF
12752       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
12753         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12754         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12755       else
12756         ld_shlibs_F77=no
12757       fi
12758       ;;
12759
12760     sunos4*)
12761       archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12762       wlarc=
12763       hardcode_direct_F77=yes
12764       hardcode_shlibpath_var_F77=no
12765       ;;
12766
12767     *)
12768       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
12769         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12770         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12771       else
12772         ld_shlibs_F77=no
12773       fi
12774       ;;
12775     esac
12776
12777     if test "$ld_shlibs_F77" = yes; then
12778       runpath_var=LD_RUN_PATH
12779       hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
12780       export_dynamic_flag_spec_F77='${wl}--export-dynamic'
12781       # ancient GNU ld didn't support --whole-archive et. al.
12782       if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
12783         whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12784       else
12785         whole_archive_flag_spec_F77=
12786       fi
12787     fi
12788   else
12789     # PORTME fill in a description of your system's linker (not GNU ld)
12790     case $host_os in
12791     aix3*)
12792       allow_undefined_flag_F77=unsupported
12793       always_export_symbols_F77=yes
12794       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'
12795       # Note: this linker hardcodes the directories in LIBPATH if there
12796       # are no directories specified by -L.
12797       hardcode_minus_L_F77=yes
12798       if test "$GCC" = yes && test -z "$link_static_flag"; then
12799         # Neither direct hardcoding nor static linking is supported with a
12800         # broken collect2.
12801         hardcode_direct_F77=unsupported
12802       fi
12803       ;;
12804
12805     aix4* | aix5*)
12806       if test "$host_cpu" = ia64; then
12807         # On IA64, the linker does run time linking by default, so we don't
12808         # have to do anything special.
12809         aix_use_runtimelinking=no
12810         exp_sym_flag='-Bexport'
12811         no_entry_flag=""
12812       else
12813         # If we're using GNU nm, then we don't want the "-C" option.
12814         # -C means demangle to AIX nm, but means don't demangle with GNU nm
12815         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
12816           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'
12817         else
12818           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'
12819         fi
12820         aix_use_runtimelinking=no
12821
12822         # Test if we are trying to use run time linking or normal
12823         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
12824         # need to do runtime linking.
12825         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
12826           for ld_flag in $LDFLAGS; do
12827           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
12828             aix_use_runtimelinking=yes
12829             break
12830           fi
12831           done
12832         esac
12833
12834         exp_sym_flag='-bexport'
12835         no_entry_flag='-bnoentry'
12836       fi
12837
12838       # When large executables or shared objects are built, AIX ld can
12839       # have problems creating the table of contents.  If linking a library
12840       # or program results in "error TOC overflow" add -mminimal-toc to
12841       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
12842       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
12843
12844       archive_cmds_F77=''
12845       hardcode_direct_F77=yes
12846       hardcode_libdir_separator_F77=':'
12847       link_all_deplibs_F77=yes
12848
12849       if test "$GCC" = yes; then
12850         case $host_os in aix4.012|aix4.012.*)
12851         # We only want to do this on AIX 4.2 and lower, the check
12852         # below for broken collect2 doesn't work under 4.3+
12853           collect2name=`${CC} -print-prog-name=collect2`
12854           if test -f "$collect2name" && \
12855            strings "$collect2name" | grep resolve_lib_name >/dev/null
12856           then
12857           # We have reworked collect2
12858           hardcode_direct_F77=yes
12859           else
12860           # We have old collect2
12861           hardcode_direct_F77=unsupported
12862           # It fails to find uninstalled libraries when the uninstalled
12863           # path is not listed in the libpath.  Setting hardcode_minus_L
12864           # to unsupported forces relinking
12865           hardcode_minus_L_F77=yes
12866           hardcode_libdir_flag_spec_F77='-L$libdir'
12867           hardcode_libdir_separator_F77=
12868           fi
12869         esac
12870         shared_flag='-shared'
12871       else
12872         # not using gcc
12873         if test "$host_cpu" = ia64; then
12874         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
12875         # chokes on -Wl,-G. The following line is correct:
12876           shared_flag='-G'
12877         else
12878         if test "$aix_use_runtimelinking" = yes; then
12879             shared_flag='${wl}-G'
12880           else
12881             shared_flag='${wl}-bM:SRE'
12882         fi
12883         fi
12884       fi
12885
12886       # It seems that -bexpall does not export symbols beginning with
12887       # underscore (_), so it is better to generate a list of symbols to export.
12888       always_export_symbols_F77=yes
12889       if test "$aix_use_runtimelinking" = yes; then
12890         # Warning - without using the other runtime loading flags (-brtl),
12891         # -berok will link without error, but may produce a broken library.
12892         allow_undefined_flag_F77='-berok'
12893        # Determine the default libpath from the value encoded in an empty executable.
12894        cat >conftest.$ac_ext <<_ACEOF
12895       program main
12896
12897       end
12898 _ACEOF
12899 rm -f conftest.$ac_objext conftest$ac_exeext
12900 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12901   (eval $ac_link) 2>&5
12902   ac_status=$?
12903   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12904   (exit $ac_status); } &&
12905          { ac_try='test -s conftest$ac_exeext'
12906   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12907   (eval $ac_try) 2>&5
12908   ac_status=$?
12909   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12910   (exit $ac_status); }; }; then
12911
12912 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
12913 }'`
12914 # Check for a 64-bit object if we didn't find anything.
12915 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; }
12916 }'`; fi
12917 else
12918   echo "$as_me: failed program was:" >&5
12919 sed 's/^/| /' conftest.$ac_ext >&5
12920
12921 fi
12922 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12923 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12924
12925        hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
12926         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"
12927        else
12928         if test "$host_cpu" = ia64; then
12929           hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
12930           allow_undefined_flag_F77="-z nodefs"
12931           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"
12932         else
12933          # Determine the default libpath from the value encoded in an empty executable.
12934          cat >conftest.$ac_ext <<_ACEOF
12935       program main
12936
12937       end
12938 _ACEOF
12939 rm -f conftest.$ac_objext conftest$ac_exeext
12940 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12941   (eval $ac_link) 2>&5
12942   ac_status=$?
12943   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12944   (exit $ac_status); } &&
12945          { ac_try='test -s conftest$ac_exeext'
12946   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12947   (eval $ac_try) 2>&5
12948   ac_status=$?
12949   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12950   (exit $ac_status); }; }; then
12951
12952 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
12953 }'`
12954 # Check for a 64-bit object if we didn't find anything.
12955 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; }
12956 }'`; fi
12957 else
12958   echo "$as_me: failed program was:" >&5
12959 sed 's/^/| /' conftest.$ac_ext >&5
12960
12961 fi
12962 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12963 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12964
12965          hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
12966           # Warning - without using the other run time loading flags,
12967           # -berok will link without error, but may produce a broken library.
12968           no_undefined_flag_F77=' ${wl}-bernotok'
12969           allow_undefined_flag_F77=' ${wl}-berok'
12970           # -bexpall does not export symbols beginning with underscore (_)
12971           always_export_symbols_F77=yes
12972           # Exported symbols can be pulled into shared objects from archives
12973           whole_archive_flag_spec_F77=' '
12974           archive_cmds_need_lc_F77=yes
12975           # This is similar to how AIX traditionally builds it's shared libraries.
12976           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'
12977         fi
12978       fi
12979       ;;
12980
12981     amigaos*)
12982       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)'
12983       hardcode_libdir_flag_spec_F77='-L$libdir'
12984       hardcode_minus_L_F77=yes
12985       # see comment about different semantics on the GNU ld section
12986       ld_shlibs_F77=no
12987       ;;
12988
12989     bsdi4*)
12990       export_dynamic_flag_spec_F77=-rdynamic
12991       ;;
12992
12993     cygwin* | mingw* | pw32*)
12994       # When not using gcc, we currently assume that we are using
12995       # Microsoft Visual C++.
12996       # hardcode_libdir_flag_spec is actually meaningless, as there is
12997       # no search path for DLLs.
12998       hardcode_libdir_flag_spec_F77=' '
12999       allow_undefined_flag_F77=unsupported
13000       # Tell ltmain to make .lib files, not .a files.
13001       libext=lib
13002       # Tell ltmain to make .dll files, not .so files.
13003       shrext=".dll"
13004       # FIXME: Setting linknames here is a bad hack.
13005       archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
13006       # The linker will automatically build a .lib file if we build a DLL.
13007       old_archive_From_new_cmds_F77='true'
13008       # FIXME: Should let the user specify the lib program.
13009       old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
13010       fix_srcfile_path='`cygpath -w "$srcfile"`'
13011       enable_shared_with_static_runtimes_F77=yes
13012       ;;
13013
13014     darwin* | rhapsody*)
13015     if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
13016       archive_cmds_need_lc_F77=no
13017       case "$host_os" in
13018       rhapsody* | darwin1.[012])
13019         allow_undefined_flag_F77='-undefined suppress'
13020         ;;
13021       *) # Darwin 1.3 on
13022         test -z ${LD_TWOLEVEL_NAMESPACE} && allow_undefined_flag_F77='-flat_namespace -undefined suppress'
13023         ;;
13024       esac
13025       # FIXME: Relying on posixy $() will cause problems for
13026       #        cross-compilation, but unfortunately the echo tests do not
13027       #        yet detect zsh echo's removal of \ escapes.  Also zsh mangles
13028       #        `"' quotes if we put them in here... so don't!
13029         lt_int_apple_cc_single_mod=no
13030         output_verbose_link_cmd='echo'
13031         if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
13032           lt_int_apple_cc_single_mod=yes
13033         fi
13034         if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
13035           archive_cmds_F77='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
13036         else
13037         archive_cmds_F77='$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
13038       fi
13039       module_cmds_F77='$CC -bundle ${wl}-bind_at_load $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags'
13040       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
13041         if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
13042           archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
13043         else
13044           archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
13045         fi
13046           module_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -bundle $allow_undefined_flag  -o $lib $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
13047       hardcode_direct_F77=no
13048       hardcode_automatic_F77=yes
13049       hardcode_shlibpath_var_F77=unsupported
13050       whole_archive_flag_spec_F77='-all_load $convenience'
13051       link_all_deplibs_F77=yes
13052     fi
13053       ;;
13054
13055     dgux*)
13056       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13057       hardcode_libdir_flag_spec_F77='-L$libdir'
13058       hardcode_shlibpath_var_F77=no
13059       ;;
13060
13061     freebsd1*)
13062       ld_shlibs_F77=no
13063       ;;
13064
13065     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
13066     # support.  Future versions do this automatically, but an explicit c++rt0.o
13067     # does not break anything, and helps significantly (at the cost of a little
13068     # extra space).
13069     freebsd2.2*)
13070       archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
13071       hardcode_libdir_flag_spec_F77='-R$libdir'
13072       hardcode_direct_F77=yes
13073       hardcode_shlibpath_var_F77=no
13074       ;;
13075
13076     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
13077     freebsd2*)
13078       archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13079       hardcode_direct_F77=yes
13080       hardcode_minus_L_F77=yes
13081       hardcode_shlibpath_var_F77=no
13082       ;;
13083
13084     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
13085     freebsd*)
13086       archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
13087       hardcode_libdir_flag_spec_F77='-R$libdir'
13088       hardcode_direct_F77=yes
13089       hardcode_shlibpath_var_F77=no
13090       ;;
13091
13092     hpux9*)
13093       if test "$GCC" = yes; then
13094         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'
13095       else
13096         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'
13097       fi
13098       hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
13099       hardcode_libdir_separator_F77=:
13100       hardcode_direct_F77=yes
13101
13102       # hardcode_minus_L: Not really in the search PATH,
13103       # but as the default location of the library.
13104       hardcode_minus_L_F77=yes
13105       export_dynamic_flag_spec_F77='${wl}-E'
13106       ;;
13107
13108     hpux10* | hpux11*)
13109       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
13110         case "$host_cpu" in
13111         hppa*64*|ia64*)
13112           archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13113           ;;
13114         *)
13115           archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13116           ;;
13117         esac
13118       else
13119         case "$host_cpu" in
13120         hppa*64*|ia64*)
13121           archive_cmds_F77='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
13122           ;;
13123         *)
13124           archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
13125           ;;
13126         esac
13127       fi
13128       if test "$with_gnu_ld" = no; then
13129         case "$host_cpu" in
13130         hppa*64*)
13131           hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
13132           hardcode_libdir_flag_spec_ld_F77='+b $libdir'
13133           hardcode_libdir_separator_F77=:
13134           hardcode_direct_F77=no
13135           hardcode_shlibpath_var_F77=no
13136           ;;
13137         ia64*)
13138           hardcode_libdir_flag_spec_F77='-L$libdir'
13139           hardcode_direct_F77=no
13140           hardcode_shlibpath_var_F77=no
13141
13142           # hardcode_minus_L: Not really in the search PATH,
13143           # but as the default location of the library.
13144           hardcode_minus_L_F77=yes
13145           ;;
13146         *)
13147           hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
13148           hardcode_libdir_separator_F77=:
13149           hardcode_direct_F77=yes
13150           export_dynamic_flag_spec_F77='${wl}-E'
13151
13152           # hardcode_minus_L: Not really in the search PATH,
13153           # but as the default location of the library.
13154           hardcode_minus_L_F77=yes
13155           ;;
13156         esac
13157       fi
13158       ;;
13159
13160     irix5* | irix6* | nonstopux*)
13161       if test "$GCC" = yes; then
13162         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'
13163       else
13164         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'
13165         hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
13166       fi
13167       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
13168       hardcode_libdir_separator_F77=:
13169       link_all_deplibs_F77=yes
13170       ;;
13171
13172     netbsd*)
13173       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13174         archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
13175       else
13176         archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
13177       fi
13178       hardcode_libdir_flag_spec_F77='-R$libdir'
13179       hardcode_direct_F77=yes
13180       hardcode_shlibpath_var_F77=no
13181       ;;
13182
13183     newsos6)
13184       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13185       hardcode_direct_F77=yes
13186       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
13187       hardcode_libdir_separator_F77=:
13188       hardcode_shlibpath_var_F77=no
13189       ;;
13190
13191     openbsd*)
13192       hardcode_direct_F77=yes
13193       hardcode_shlibpath_var_F77=no
13194       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13195         archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13196         hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
13197         export_dynamic_flag_spec_F77='${wl}-E'
13198       else
13199        case $host_os in
13200          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
13201            archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13202            hardcode_libdir_flag_spec_F77='-R$libdir'
13203            ;;
13204          *)
13205            archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13206            hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
13207            ;;
13208        esac
13209       fi
13210       ;;
13211
13212     os2*)
13213       hardcode_libdir_flag_spec_F77='-L$libdir'
13214       hardcode_minus_L_F77=yes
13215       allow_undefined_flag_F77=unsupported
13216       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'
13217       old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
13218       ;;
13219
13220     osf3*)
13221       if test "$GCC" = yes; then
13222         allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
13223         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'
13224       else
13225         allow_undefined_flag_F77=' -expect_unresolved \*'
13226         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'
13227       fi
13228       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
13229       hardcode_libdir_separator_F77=:
13230       ;;
13231
13232     osf4* | osf5*)      # as osf3* with the addition of -msym flag
13233       if test "$GCC" = yes; then
13234         allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
13235         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'
13236         hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
13237       else
13238         allow_undefined_flag_F77=' -expect_unresolved \*'
13239         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'
13240         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~
13241         $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'
13242
13243         # Both c and cxx compiler support -rpath directly
13244         hardcode_libdir_flag_spec_F77='-rpath $libdir'
13245       fi
13246       hardcode_libdir_separator_F77=:
13247       ;;
13248
13249     sco3.2v5*)
13250       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13251       hardcode_shlibpath_var_F77=no
13252       export_dynamic_flag_spec_F77='${wl}-Bexport'
13253       runpath_var=LD_RUN_PATH
13254       hardcode_runpath_var=yes
13255       ;;
13256
13257     solaris*)
13258       no_undefined_flag_F77=' -z text'
13259       if test "$GCC" = yes; then
13260         archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13261         archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13262           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
13263       else
13264         archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
13265         archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13266         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
13267       fi
13268       hardcode_libdir_flag_spec_F77='-R$libdir'
13269       hardcode_shlibpath_var_F77=no
13270       case $host_os in
13271       solaris2.[0-5] | solaris2.[0-5].*) ;;
13272       *) # Supported since Solaris 2.6 (maybe 2.5.1?)
13273         whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
13274       esac
13275       link_all_deplibs_F77=yes
13276       ;;
13277
13278     sunos4*)
13279       if test "x$host_vendor" = xsequent; then
13280         # Use $CC to link under sequent, because it throws in some extra .o
13281         # files that make .init and .fini sections work.
13282         archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
13283       else
13284         archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
13285       fi
13286       hardcode_libdir_flag_spec_F77='-L$libdir'
13287       hardcode_direct_F77=yes
13288       hardcode_minus_L_F77=yes
13289       hardcode_shlibpath_var_F77=no
13290       ;;
13291
13292     sysv4)
13293       case $host_vendor in
13294         sni)
13295           archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13296           hardcode_direct_F77=yes # is this really true???
13297         ;;
13298         siemens)
13299           ## LD is ld it makes a PLAMLIB
13300           ## CC just makes a GrossModule.
13301           archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
13302           reload_cmds_F77='$CC -r -o $output$reload_objs'
13303           hardcode_direct_F77=no
13304         ;;
13305         motorola)
13306           archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13307           hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
13308         ;;
13309       esac
13310       runpath_var='LD_RUN_PATH'
13311       hardcode_shlibpath_var_F77=no
13312       ;;
13313
13314     sysv4.3*)
13315       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13316       hardcode_shlibpath_var_F77=no
13317       export_dynamic_flag_spec_F77='-Bexport'
13318       ;;
13319
13320     sysv4*MP*)
13321       if test -d /usr/nec; then
13322         archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13323         hardcode_shlibpath_var_F77=no
13324         runpath_var=LD_RUN_PATH
13325         hardcode_runpath_var=yes
13326         ld_shlibs_F77=yes
13327       fi
13328       ;;
13329
13330     sysv4.2uw2*)
13331       archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
13332       hardcode_direct_F77=yes
13333       hardcode_minus_L_F77=no
13334       hardcode_shlibpath_var_F77=no
13335       hardcode_runpath_var=yes
13336       runpath_var=LD_RUN_PATH
13337       ;;
13338
13339    sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
13340       no_undefined_flag_F77='${wl}-z ${wl}text'
13341       if test "$GCC" = yes; then
13342         archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13343       else
13344         archive_cmds_F77='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13345       fi
13346       runpath_var='LD_RUN_PATH'
13347       hardcode_shlibpath_var_F77=no
13348       ;;
13349
13350     sysv5*)
13351       no_undefined_flag_F77=' -z text'
13352       # $CC -shared without GNU ld will not create a library from C++
13353       # object files and a static libstdc++, better avoid it by now
13354       archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
13355       archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13356                 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
13357       hardcode_libdir_flag_spec_F77=
13358       hardcode_shlibpath_var_F77=no
13359       runpath_var='LD_RUN_PATH'
13360       ;;
13361
13362     uts4*)
13363       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13364       hardcode_libdir_flag_spec_F77='-L$libdir'
13365       hardcode_shlibpath_var_F77=no
13366       ;;
13367
13368     *)
13369       ld_shlibs_F77=no
13370       ;;
13371     esac
13372   fi
13373
13374 echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
13375 echo "${ECHO_T}$ld_shlibs_F77" >&6
13376 test "$ld_shlibs_F77" = no && can_build_shared=no
13377
13378 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
13379 if test "$GCC" = yes; then
13380   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
13381 fi
13382
13383 #
13384 # Do we need to explicitly link libc?
13385 #
13386 case "x$archive_cmds_need_lc_F77" in
13387 x|xyes)
13388   # Assume -lc should be added
13389   archive_cmds_need_lc_F77=yes
13390
13391   if test "$enable_shared" = yes && test "$GCC" = yes; then
13392     case $archive_cmds_F77 in
13393     *'~'*)
13394       # FIXME: we may have to deal with multi-command sequences.
13395       ;;
13396     '$CC '*)
13397       # Test whether the compiler implicitly links with -lc since on some
13398       # systems, -lgcc has to come before -lc. If gcc already passes -lc
13399       # to ld, don't add -lc before -lgcc.
13400       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
13401 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
13402       $rm conftest*
13403       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13404
13405       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13406   (eval $ac_compile) 2>&5
13407   ac_status=$?
13408   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13409   (exit $ac_status); } 2>conftest.err; then
13410         soname=conftest
13411         lib=conftest
13412         libobjs=conftest.$ac_objext
13413         deplibs=
13414         wl=$lt_prog_compiler_wl_F77
13415         compiler_flags=-v
13416         linker_flags=-v
13417         verstring=
13418         output_objdir=.
13419         libname=conftest
13420         lt_save_allow_undefined_flag=$allow_undefined_flag_F77
13421         allow_undefined_flag_F77=
13422         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
13423   (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
13424   ac_status=$?
13425   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13426   (exit $ac_status); }
13427         then
13428           archive_cmds_need_lc_F77=no
13429         else
13430           archive_cmds_need_lc_F77=yes
13431         fi
13432         allow_undefined_flag_F77=$lt_save_allow_undefined_flag
13433       else
13434         cat conftest.err 1>&5
13435       fi
13436       $rm conftest*
13437       echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
13438 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6
13439       ;;
13440     esac
13441   fi
13442   ;;
13443 esac
13444
13445 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
13446 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
13447 hardcode_action_F77=
13448 if test -n "$hardcode_libdir_flag_spec_F77" || \
13449    test -n "$runpath_var F77" || \
13450    test "X$hardcode_automatic_F77"="Xyes" ; then
13451
13452   # We can hardcode non-existant directories.
13453   if test "$hardcode_direct_F77" != no &&
13454      # If the only mechanism to avoid hardcoding is shlibpath_var, we
13455      # have to relink, otherwise we might link with an installed library
13456      # when we should be linking with a yet-to-be-installed one
13457      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
13458      test "$hardcode_minus_L_F77" != no; then
13459     # Linking always hardcodes the temporary library directory.
13460     hardcode_action_F77=relink
13461   else
13462     # We can link without hardcoding, and we can hardcode nonexisting dirs.
13463     hardcode_action_F77=immediate
13464   fi
13465 else
13466   # We cannot hardcode anything, or else we can only hardcode existing
13467   # directories.
13468   hardcode_action_F77=unsupported
13469 fi
13470 echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
13471 echo "${ECHO_T}$hardcode_action_F77" >&6
13472
13473 if test "$hardcode_action_F77" = relink; then
13474   # Fast installation is not supported
13475   enable_fast_install=no
13476 elif test "$shlibpath_overrides_runpath" = yes ||
13477      test "$enable_shared" = no; then
13478   # Fast installation is not necessary
13479   enable_fast_install=needless
13480 fi
13481
13482 striplib=
13483 old_striplib=
13484 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
13485 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
13486 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
13487   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
13488   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
13489   echo "$as_me:$LINENO: result: yes" >&5
13490 echo "${ECHO_T}yes" >&6
13491 else
13492 # FIXME - insert some real tests, host_os isn't really good enough
13493   case $host_os in
13494    darwin*)
13495        if test -n "$STRIP" ; then
13496          striplib="$STRIP -x"
13497          echo "$as_me:$LINENO: result: yes" >&5
13498 echo "${ECHO_T}yes" >&6
13499        else
13500   echo "$as_me:$LINENO: result: no" >&5
13501 echo "${ECHO_T}no" >&6
13502 fi
13503        ;;
13504    *)
13505   echo "$as_me:$LINENO: result: no" >&5
13506 echo "${ECHO_T}no" >&6
13507     ;;
13508   esac
13509 fi
13510
13511 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
13512 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
13513 library_names_spec=
13514 libname_spec='lib$name'
13515 soname_spec=
13516 shrext=".so"
13517 postinstall_cmds=
13518 postuninstall_cmds=
13519 finish_cmds=
13520 finish_eval=
13521 shlibpath_var=
13522 shlibpath_overrides_runpath=unknown
13523 version_type=none
13524 dynamic_linker="$host_os ld.so"
13525 sys_lib_dlsearch_path_spec="/lib /usr/lib"
13526 if test "$GCC" = yes; then
13527   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13528   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
13529     # if the path contains ";" then we assume it to be the separator
13530     # otherwise default to the standard path separator (i.e. ":") - it is
13531     # assumed that no part of a normal pathname contains ";" but that should
13532     # okay in the real world where ";" in dirpaths is itself problematic.
13533     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13534   else
13535     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
13536   fi
13537 else
13538   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
13539 fi
13540 need_lib_prefix=unknown
13541 hardcode_into_libs=no
13542
13543 # when you set need_version to no, make sure it does not cause -set_version
13544 # flags to be left without arguments
13545 need_version=unknown
13546
13547 case $host_os in
13548 aix3*)
13549   version_type=linux
13550   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
13551   shlibpath_var=LIBPATH
13552
13553   # AIX 3 has no versioning support, so we append a major version to the name.
13554   soname_spec='${libname}${release}${shared_ext}$major'
13555   ;;
13556
13557 aix4* | aix5*)
13558   version_type=linux
13559   need_lib_prefix=no
13560   need_version=no
13561   hardcode_into_libs=yes
13562   if test "$host_cpu" = ia64; then
13563     # AIX 5 supports IA64
13564     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
13565     shlibpath_var=LD_LIBRARY_PATH
13566   else
13567     # With GCC up to 2.95.x, collect2 would create an import file
13568     # for dependence libraries.  The import file would start with
13569     # the line `#! .'.  This would cause the generated library to
13570     # depend on `.', always an invalid library.  This was fixed in
13571     # development snapshots of GCC prior to 3.0.
13572     case $host_os in
13573       aix4 | aix4.[01] | aix4.[01].*)
13574       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
13575            echo ' yes '
13576            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
13577         :
13578       else
13579         can_build_shared=no
13580       fi
13581       ;;
13582     esac
13583     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
13584     # soname into executable. Probably we can add versioning support to
13585     # collect2, so additional links can be useful in future.
13586     if test "$aix_use_runtimelinking" = yes; then
13587       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
13588       # instead of lib<name>.a to let people know that these are not
13589       # typical AIX shared libraries.
13590       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13591     else
13592       # We preserve .a as extension for shared libraries through AIX4.2
13593       # and later when we are not doing run time linking.
13594       library_names_spec='${libname}${release}.a $libname.a'
13595       soname_spec='${libname}${release}${shared_ext}$major'
13596     fi
13597     shlibpath_var=LIBPATH
13598   fi
13599   ;;
13600
13601 amigaos*)
13602   library_names_spec='$libname.ixlibrary $libname.a'
13603   # Create ${libname}_ixlibrary.a entries in /sys/libs.
13604   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'
13605   ;;
13606
13607 beos*)
13608   library_names_spec='${libname}${shared_ext}'
13609   dynamic_linker="$host_os ld.so"
13610   shlibpath_var=LIBRARY_PATH
13611   ;;
13612
13613 bsdi4*)
13614   version_type=linux
13615   need_version=no
13616   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13617   soname_spec='${libname}${release}${shared_ext}$major'
13618   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
13619   shlibpath_var=LD_LIBRARY_PATH
13620   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
13621   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
13622   # the default ld.so.conf also contains /usr/contrib/lib and
13623   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
13624   # libtool to hard-code these into programs
13625   ;;
13626
13627 cygwin* | mingw* | pw32*)
13628   version_type=windows
13629   shrext=".dll"
13630   need_version=no
13631   need_lib_prefix=no
13632
13633   case $GCC,$host_os in
13634   yes,cygwin* | yes,mingw* | yes,pw32*)
13635     library_names_spec='$libname.dll.a'
13636     # DLL is installed to $(libdir)/../bin by postinstall_cmds
13637     postinstall_cmds='base_file=`basename \${file}`~
13638       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
13639       dldir=$destdir/`dirname \$dlpath`~
13640       test -d \$dldir || mkdir -p \$dldir~
13641       $install_prog $dir/$dlname \$dldir/$dlname'
13642     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13643       dlpath=$dir/\$dldll~
13644        $rm \$dlpath'
13645     shlibpath_overrides_runpath=yes
13646
13647     case $host_os in
13648     cygwin*)
13649       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
13650       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13651       sys_lib_search_path_spec="/lib /lib/w32api /usr/lib /usr/local/lib"
13652       ;;
13653     mingw*)
13654       # MinGW DLLs use traditional 'lib' prefix
13655       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13656       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13657       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
13658         # It is most probably a Windows format PATH printed by
13659         # mingw gcc, but we are running on Cygwin. Gcc prints its search
13660         # path with ; separators, and with drive letters. We can handle the
13661         # drive letters (cygwin fileutils understands them), so leave them,
13662         # especially as we might pass files found there to a mingw objdump,
13663         # which wouldn't understand a cygwinified path. Ahh.
13664         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13665       else
13666         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
13667       fi
13668       ;;
13669     pw32*)
13670       # pw32 DLLs use 'pw' prefix rather than 'lib'
13671       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
13672       ;;
13673     esac
13674     ;;
13675
13676   *)
13677     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
13678     ;;
13679   esac
13680   dynamic_linker='Win32 ld.exe'
13681   # FIXME: first we should search . and the directory the executable is in
13682   shlibpath_var=PATH
13683   ;;
13684
13685 darwin* | rhapsody*)
13686   dynamic_linker="$host_os dyld"
13687   version_type=darwin
13688   need_lib_prefix=no
13689   need_version=no
13690   # FIXME: Relying on posixy $() will cause problems for
13691   #        cross-compilation, but unfortunately the echo tests do not
13692   #        yet detect zsh echo's removal of \ escapes.
13693   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
13694   soname_spec='${libname}${release}${major}$shared_ext'
13695   shlibpath_overrides_runpath=yes
13696   shlibpath_var=DYLD_LIBRARY_PATH
13697   shrext='$(test .$module = .yes && echo .so || echo .dylib)'
13698   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
13699   if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
13700   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"`
13701   fi
13702   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
13703   ;;
13704
13705 dgux*)
13706   version_type=linux
13707   need_lib_prefix=no
13708   need_version=no
13709   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
13710   soname_spec='${libname}${release}${shared_ext}$major'
13711   shlibpath_var=LD_LIBRARY_PATH
13712   ;;
13713
13714 freebsd1*)
13715   dynamic_linker=no
13716   ;;
13717
13718 freebsd*)
13719   objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
13720   version_type=freebsd-$objformat
13721   case $version_type in
13722     freebsd-elf*)
13723       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13724       need_version=no
13725       need_lib_prefix=no
13726       ;;
13727     freebsd-*)
13728       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
13729       need_version=yes
13730       ;;
13731   esac
13732   shlibpath_var=LD_LIBRARY_PATH
13733   case $host_os in
13734   freebsd2*)
13735     shlibpath_overrides_runpath=yes
13736     ;;
13737   freebsd3.01* | freebsdelf3.01*)
13738     shlibpath_overrides_runpath=yes
13739     hardcode_into_libs=yes
13740     ;;
13741   *) # from 3.2 on
13742     shlibpath_overrides_runpath=no
13743     hardcode_into_libs=yes
13744     ;;
13745   esac
13746   ;;
13747
13748 gnu*)
13749   version_type=linux
13750   need_lib_prefix=no
13751   need_version=no
13752   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
13753   soname_spec='${libname}${release}${shared_ext}$major'
13754   shlibpath_var=LD_LIBRARY_PATH
13755   hardcode_into_libs=yes
13756   ;;
13757
13758 hpux9* | hpux10* | hpux11*)
13759   # Give a soname corresponding to the major version so that dld.sl refuses to
13760   # link against other versions.
13761   version_type=sunos
13762   need_lib_prefix=no
13763   need_version=no
13764   case "$host_cpu" in
13765   ia64*)
13766     shrext='.so'
13767     hardcode_into_libs=yes
13768     dynamic_linker="$host_os dld.so"
13769     shlibpath_var=LD_LIBRARY_PATH
13770     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13771     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13772     soname_spec='${libname}${release}${shared_ext}$major'
13773     if test "X$HPUX_IA64_MODE" = X32; then
13774       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
13775     else
13776       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
13777     fi
13778     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13779     ;;
13780    hppa*64*)
13781      shrext='.sl'
13782      hardcode_into_libs=yes
13783      dynamic_linker="$host_os dld.sl"
13784      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
13785      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13786      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13787      soname_spec='${libname}${release}${shared_ext}$major'
13788      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
13789      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13790      ;;
13791    *)
13792     shrext='.sl'
13793     dynamic_linker="$host_os dld.sl"
13794     shlibpath_var=SHLIB_PATH
13795     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
13796     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13797     soname_spec='${libname}${release}${shared_ext}$major'
13798     ;;
13799   esac
13800   # HP-UX runs *really* slowly unless shared libraries are mode 555.
13801   postinstall_cmds='chmod 555 $lib'
13802   ;;
13803
13804 irix5* | irix6* | nonstopux*)
13805   case $host_os in
13806     nonstopux*) version_type=nonstopux ;;
13807     *)
13808         if test "$lt_cv_prog_gnu_ld" = yes; then
13809                 version_type=linux
13810         else
13811                 version_type=irix
13812         fi ;;
13813   esac
13814   need_lib_prefix=no
13815   need_version=no
13816   soname_spec='${libname}${release}${shared_ext}$major'
13817   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
13818   case $host_os in
13819   irix5* | nonstopux*)
13820     libsuff= shlibsuff=
13821     ;;
13822   *)
13823     case $LD in # libtool.m4 will add one of these switches to LD
13824     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
13825       libsuff= shlibsuff= libmagic=32-bit;;
13826     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
13827       libsuff=32 shlibsuff=N32 libmagic=N32;;
13828     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
13829       libsuff=64 shlibsuff=64 libmagic=64-bit;;
13830     *) libsuff= shlibsuff= libmagic=never-match;;
13831     esac
13832     ;;
13833   esac
13834   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
13835   shlibpath_overrides_runpath=no
13836   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
13837   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
13838   hardcode_into_libs=yes
13839   ;;
13840
13841 # No shared lib support for Linux oldld, aout, or coff.
13842 linux*oldld* | linux*aout* | linux*coff*)
13843   dynamic_linker=no
13844   ;;
13845
13846 # This must be Linux ELF.
13847 linux*)
13848   version_type=linux
13849   need_lib_prefix=no
13850   need_version=no
13851   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13852   soname_spec='${libname}${release}${shared_ext}$major'
13853   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
13854   shlibpath_var=LD_LIBRARY_PATH
13855   shlibpath_overrides_runpath=no
13856   # This implies no fast_install, which is unacceptable.
13857   # Some rework will be needed to allow for fast_install
13858   # before this can be enabled.
13859   hardcode_into_libs=yes
13860
13861   # We used to test for /lib/ld.so.1 and disable shared libraries on
13862   # powerpc, because MkLinux only supported shared libraries with the
13863   # GNU dynamic linker.  Since this was broken with cross compilers,
13864   # most powerpc-linux boxes support dynamic linking these days and
13865   # people can always --disable-shared, the test was removed, and we
13866   # assume the GNU/Linux dynamic linker is in use.
13867   dynamic_linker='GNU/Linux ld.so'
13868   ;;
13869
13870 netbsd*)
13871   version_type=sunos
13872   need_lib_prefix=no
13873   need_version=no
13874   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13875     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13876     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13877     dynamic_linker='NetBSD (a.out) ld.so'
13878   else
13879     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
13880     soname_spec='${libname}${release}${shared_ext}$major'
13881     dynamic_linker='NetBSD ld.elf_so'
13882   fi
13883   shlibpath_var=LD_LIBRARY_PATH
13884   shlibpath_overrides_runpath=yes
13885   hardcode_into_libs=yes
13886   ;;
13887
13888 newsos6)
13889   version_type=linux
13890   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13891   shlibpath_var=LD_LIBRARY_PATH
13892   shlibpath_overrides_runpath=yes
13893   ;;
13894
13895 nto-qnx)
13896   version_type=linux
13897   need_lib_prefix=no
13898   need_version=no
13899   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13900   soname_spec='${libname}${release}${shared_ext}$major'
13901   shlibpath_var=LD_LIBRARY_PATH
13902   shlibpath_overrides_runpath=yes
13903   ;;
13904
13905 openbsd*)
13906   version_type=sunos
13907   need_lib_prefix=no
13908   need_version=no
13909   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13910   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13911   shlibpath_var=LD_LIBRARY_PATH
13912   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13913     case $host_os in
13914       openbsd2.[89] | openbsd2.[89].*)
13915         shlibpath_overrides_runpath=no
13916         ;;
13917       *)
13918         shlibpath_overrides_runpath=yes
13919         ;;
13920       esac
13921   else
13922     shlibpath_overrides_runpath=yes
13923   fi
13924   ;;
13925
13926 os2*)
13927   libname_spec='$name'
13928   shrext=".dll"
13929   need_lib_prefix=no
13930   library_names_spec='$libname${shared_ext} $libname.a'
13931   dynamic_linker='OS/2 ld.exe'
13932   shlibpath_var=LIBPATH
13933   ;;
13934
13935 osf3* | osf4* | osf5*)
13936   version_type=osf
13937   need_lib_prefix=no
13938   need_version=no
13939   soname_spec='${libname}${release}${shared_ext}$major'
13940   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13941   shlibpath_var=LD_LIBRARY_PATH
13942   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
13943   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
13944   ;;
13945
13946 sco3.2v5*)
13947   version_type=osf
13948   soname_spec='${libname}${release}${shared_ext}$major'
13949   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13950   shlibpath_var=LD_LIBRARY_PATH
13951   ;;
13952
13953 solaris*)
13954   version_type=linux
13955   need_lib_prefix=no
13956   need_version=no
13957   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13958   soname_spec='${libname}${release}${shared_ext}$major'
13959   shlibpath_var=LD_LIBRARY_PATH
13960   shlibpath_overrides_runpath=yes
13961   hardcode_into_libs=yes
13962   # ldd complains unless libraries are executable
13963   postinstall_cmds='chmod +x $lib'
13964   ;;
13965
13966 sunos4*)
13967   version_type=sunos
13968   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13969   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
13970   shlibpath_var=LD_LIBRARY_PATH
13971   shlibpath_overrides_runpath=yes
13972   if test "$with_gnu_ld" = yes; then
13973     need_lib_prefix=no
13974   fi
13975   need_version=yes
13976   ;;
13977
13978 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
13979   version_type=linux
13980   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13981   soname_spec='${libname}${release}${shared_ext}$major'
13982   shlibpath_var=LD_LIBRARY_PATH
13983   case $host_vendor in
13984     sni)
13985       shlibpath_overrides_runpath=no
13986       need_lib_prefix=no
13987       export_dynamic_flag_spec='${wl}-Blargedynsym'
13988       runpath_var=LD_RUN_PATH
13989       ;;
13990     siemens)
13991       need_lib_prefix=no
13992       ;;
13993     motorola)
13994       need_lib_prefix=no
13995       need_version=no
13996       shlibpath_overrides_runpath=no
13997       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
13998       ;;
13999   esac
14000   ;;
14001
14002 sysv4*MP*)
14003   if test -d /usr/nec ;then
14004     version_type=linux
14005     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
14006     soname_spec='$libname${shared_ext}.$major'
14007     shlibpath_var=LD_LIBRARY_PATH
14008   fi
14009   ;;
14010
14011 uts4*)
14012   version_type=linux
14013   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14014   soname_spec='${libname}${release}${shared_ext}$major'
14015   shlibpath_var=LD_LIBRARY_PATH
14016   ;;
14017
14018 *)
14019   dynamic_linker=no
14020   ;;
14021 esac
14022 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
14023 echo "${ECHO_T}$dynamic_linker" >&6
14024 test "$dynamic_linker" = no && can_build_shared=no
14025
14026
14027 # The else clause should only fire when bootstrapping the
14028 # libtool distribution, otherwise you forgot to ship ltmain.sh
14029 # with your package, and you will get complaints that there are
14030 # no rules to generate ltmain.sh.
14031 if test -f "$ltmain"; then
14032   # See if we are running on zsh, and set the options which allow our commands through
14033   # without removal of \ escapes.
14034   if test -n "${ZSH_VERSION+set}" ; then
14035     setopt NO_GLOB_SUBST
14036   fi
14037   # Now quote all the things that may contain metacharacters while being
14038   # careful not to overquote the AC_SUBSTed values.  We take copies of the
14039   # variables and quote the copies for generation of the libtool script.
14040   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \
14041     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
14042     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
14043     deplibs_check_method reload_flag reload_cmds need_locks \
14044     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
14045     lt_cv_sys_global_symbol_to_c_name_address \
14046     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
14047     old_postinstall_cmds old_postuninstall_cmds \
14048     compiler_F77 \
14049     CC_F77 \
14050     LD_F77 \
14051     lt_prog_compiler_wl_F77 \
14052     lt_prog_compiler_pic_F77 \
14053     lt_prog_compiler_static_F77 \
14054     lt_prog_compiler_no_builtin_flag_F77 \
14055     export_dynamic_flag_spec_F77 \
14056     thread_safe_flag_spec_F77 \
14057     whole_archive_flag_spec_F77 \
14058     enable_shared_with_static_runtimes_F77 \
14059     old_archive_cmds_F77 \
14060     old_archive_from_new_cmds_F77 \
14061     predep_objects_F77 \
14062     postdep_objects_F77 \
14063     predeps_F77 \
14064     postdeps_F77 \
14065     compiler_lib_search_path_F77 \
14066     archive_cmds_F77 \
14067     archive_expsym_cmds_F77 \
14068     postinstall_cmds_F77 \
14069     postuninstall_cmds_F77 \
14070     old_archive_from_expsyms_cmds_F77 \
14071     allow_undefined_flag_F77 \
14072     no_undefined_flag_F77 \
14073     export_symbols_cmds_F77 \
14074     hardcode_libdir_flag_spec_F77 \
14075     hardcode_libdir_flag_spec_ld_F77 \
14076     hardcode_libdir_separator_F77 \
14077     hardcode_automatic_F77 \
14078     module_cmds_F77 \
14079     module_expsym_cmds_F77 \
14080     lt_cv_prog_compiler_c_o_F77 \
14081     exclude_expsyms_F77 \
14082     include_expsyms_F77; do
14083
14084     case $var in
14085     old_archive_cmds_F77 | \
14086     old_archive_from_new_cmds_F77 | \
14087     archive_cmds_F77 | \
14088     archive_expsym_cmds_F77 | \
14089     module_cmds_F77 | \
14090     module_expsym_cmds_F77 | \
14091     old_archive_from_expsyms_cmds_F77 | \
14092     export_symbols_cmds_F77 | \
14093     extract_expsyms_cmds | reload_cmds | finish_cmds | \
14094     postinstall_cmds | postuninstall_cmds | \
14095     old_postinstall_cmds | old_postuninstall_cmds | \
14096     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
14097       # Double-quote double-evaled strings.
14098       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
14099       ;;
14100     *)
14101       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
14102       ;;
14103     esac
14104   done
14105
14106   case $lt_echo in
14107   *'\$0 --fallback-echo"')
14108     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
14109     ;;
14110   esac
14111
14112 cfgfile="$ofile"
14113
14114   cat <<__EOF__ >> "$cfgfile"
14115 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
14116
14117 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
14118
14119 # Shell to use when invoking shell scripts.
14120 SHELL=$lt_SHELL
14121
14122 # Whether or not to build shared libraries.
14123 build_libtool_libs=$enable_shared
14124
14125 # Whether or not to build static libraries.
14126 build_old_libs=$enable_static
14127
14128 # Whether or not to add -lc for building shared libraries.
14129 build_libtool_need_lc=$archive_cmds_need_lc_F77
14130
14131 # Whether or not to disallow shared libs when runtime libs are static
14132 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
14133
14134 # Whether or not to optimize for fast installation.
14135 fast_install=$enable_fast_install
14136
14137 # The host system.
14138 host_alias=$host_alias
14139 host=$host
14140
14141 # An echo program that does not interpret backslashes.
14142 echo=$lt_echo
14143
14144 # The archiver.
14145 AR=$lt_AR
14146 AR_FLAGS=$lt_AR_FLAGS
14147
14148 # A C compiler.
14149 LTCC=$lt_LTCC
14150
14151 # A language-specific compiler.
14152 CC=$lt_compiler_F77
14153
14154 # Is the compiler the GNU C compiler?
14155 with_gcc=$GCC_F77
14156
14157 # An ERE matcher.
14158 EGREP=$lt_EGREP
14159
14160 # The linker used to build libraries.
14161 LD=$lt_LD_F77
14162
14163 # Whether we need hard or soft links.
14164 LN_S=$lt_LN_S
14165
14166 # A BSD-compatible nm program.
14167 NM=$lt_NM
14168
14169 # A symbol stripping program
14170 STRIP=$STRIP
14171
14172 # Used to examine libraries when file_magic_cmd begins "file"
14173 MAGIC_CMD=$MAGIC_CMD
14174
14175 # Used on cygwin: DLL creation program.
14176 DLLTOOL="$DLLTOOL"
14177
14178 # Used on cygwin: object dumper.
14179 OBJDUMP="$OBJDUMP"
14180
14181 # Used on cygwin: assembler.
14182 AS="$AS"
14183
14184 # The name of the directory that contains temporary libtool files.
14185 objdir=$objdir
14186
14187 # How to create reloadable object files.
14188 reload_flag=$lt_reload_flag
14189 reload_cmds=$lt_reload_cmds
14190
14191 # How to pass a linker flag through the compiler.
14192 wl=$lt_lt_prog_compiler_wl_F77
14193
14194 # Object file suffix (normally "o").
14195 objext="$ac_objext"
14196
14197 # Old archive suffix (normally "a").
14198 libext="$libext"
14199
14200 # Shared library suffix (normally ".so").
14201 shrext='$shrext'
14202
14203 # Executable file suffix (normally "").
14204 exeext="$exeext"
14205
14206 # Additional compiler flags for building library objects.
14207 pic_flag=$lt_lt_prog_compiler_pic_F77
14208 pic_mode=$pic_mode
14209
14210 # What is the maximum length of a command?
14211 max_cmd_len=$lt_cv_sys_max_cmd_len
14212
14213 # Does compiler simultaneously support -c and -o options?
14214 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
14215
14216 # Must we lock files when doing compilation ?
14217 need_locks=$lt_need_locks
14218
14219 # Do we need the lib prefix for modules?
14220 need_lib_prefix=$need_lib_prefix
14221
14222 # Do we need a version for libraries?
14223 need_version=$need_version
14224
14225 # Whether dlopen is supported.
14226 dlopen_support=$enable_dlopen
14227
14228 # Whether dlopen of programs is supported.
14229 dlopen_self=$enable_dlopen_self
14230
14231 # Whether dlopen of statically linked programs is supported.
14232 dlopen_self_static=$enable_dlopen_self_static
14233
14234 # Compiler flag to prevent dynamic linking.
14235 link_static_flag=$lt_lt_prog_compiler_static_F77
14236
14237 # Compiler flag to turn off builtin functions.
14238 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
14239
14240 # Compiler flag to allow reflexive dlopens.
14241 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
14242
14243 # Compiler flag to generate shared objects directly from archives.
14244 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
14245
14246 # Compiler flag to generate thread-safe objects.
14247 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
14248
14249 # Library versioning type.
14250 version_type=$version_type
14251
14252 # Format of library name prefix.
14253 libname_spec=$lt_libname_spec
14254
14255 # List of archive names.  First name is the real one, the rest are links.
14256 # The last name is the one that the linker finds with -lNAME.
14257 library_names_spec=$lt_library_names_spec
14258
14259 # The coded name of the library, if different from the real name.
14260 soname_spec=$lt_soname_spec
14261
14262 # Commands used to build and install an old-style archive.
14263 RANLIB=$lt_RANLIB
14264 old_archive_cmds=$lt_old_archive_cmds_F77
14265 old_postinstall_cmds=$lt_old_postinstall_cmds
14266 old_postuninstall_cmds=$lt_old_postuninstall_cmds
14267
14268 # Create an old-style archive from a shared archive.
14269 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
14270
14271 # Create a temporary old-style archive to link instead of a shared archive.
14272 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
14273
14274 # Commands used to build and install a shared archive.
14275 archive_cmds=$lt_archive_cmds_F77
14276 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
14277 postinstall_cmds=$lt_postinstall_cmds
14278 postuninstall_cmds=$lt_postuninstall_cmds
14279
14280 # Commands used to build a loadable module (assumed same as above if empty)
14281 module_cmds=$lt_module_cmds_F77
14282 module_expsym_cmds=$lt_module_expsym_cmds_F77
14283
14284 # Commands to strip libraries.
14285 old_striplib=$lt_old_striplib
14286 striplib=$lt_striplib
14287
14288 # Dependencies to place before the objects being linked to create a
14289 # shared library.
14290 predep_objects=$lt_predep_objects_F77
14291
14292 # Dependencies to place after the objects being linked to create a
14293 # shared library.
14294 postdep_objects=$lt_postdep_objects_F77
14295
14296 # Dependencies to place before the objects being linked to create a
14297 # shared library.
14298 predeps=$lt_predeps_F77
14299
14300 # Dependencies to place after the objects being linked to create a
14301 # shared library.
14302 postdeps=$lt_postdeps_F77
14303
14304 # The library search path used internally by the compiler when linking
14305 # a shared library.
14306 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
14307
14308 # Method to check whether dependent libraries are shared objects.
14309 deplibs_check_method=$lt_deplibs_check_method
14310
14311 # Command to use when deplibs_check_method == file_magic.
14312 file_magic_cmd=$lt_file_magic_cmd
14313
14314 # Flag that allows shared libraries with undefined symbols to be built.
14315 allow_undefined_flag=$lt_allow_undefined_flag_F77
14316
14317 # Flag that forces no undefined symbols.
14318 no_undefined_flag=$lt_no_undefined_flag_F77
14319
14320 # Commands used to finish a libtool library installation in a directory.
14321 finish_cmds=$lt_finish_cmds
14322
14323 # Same as above, but a single script fragment to be evaled but not shown.
14324 finish_eval=$lt_finish_eval
14325
14326 # Take the output of nm and produce a listing of raw symbols and C names.
14327 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
14328
14329 # Transform the output of nm in a proper C declaration
14330 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
14331
14332 # Transform the output of nm in a C name address pair
14333 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
14334
14335 # This is the shared library runtime path variable.
14336 runpath_var=$runpath_var
14337
14338 # This is the shared library path variable.
14339 shlibpath_var=$shlibpath_var
14340
14341 # Is shlibpath searched before the hard-coded library search path?
14342 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
14343
14344 # How to hardcode a shared library path into an executable.
14345 hardcode_action=$hardcode_action_F77
14346
14347 # Whether we should hardcode library paths into libraries.
14348 hardcode_into_libs=$hardcode_into_libs
14349
14350 # Flag to hardcode \$libdir into a binary during linking.
14351 # This must work even if \$libdir does not exist.
14352 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
14353
14354 # If ld is used when linking, flag to hardcode \$libdir into
14355 # a binary during linking. This must work even if \$libdir does
14356 # not exist.
14357 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
14358
14359 # Whether we need a single -rpath flag with a separated argument.
14360 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
14361
14362 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
14363 # resulting binary.
14364 hardcode_direct=$hardcode_direct_F77
14365
14366 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
14367 # resulting binary.
14368 hardcode_minus_L=$hardcode_minus_L_F77
14369
14370 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
14371 # the resulting binary.
14372 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
14373
14374 # Set to yes if building a shared library automatically hardcodes DIR into the library
14375 # and all subsequent libraries and executables linked against it.
14376 hardcode_automatic=$hardcode_automatic_F77
14377
14378 # Variables whose values should be saved in libtool wrapper scripts and
14379 # restored at relink time.
14380 variables_saved_for_relink="$variables_saved_for_relink"
14381
14382 # Whether libtool must link a program against all its dependency libraries.
14383 link_all_deplibs=$link_all_deplibs_F77
14384
14385 # Compile-time system search path for libraries
14386 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
14387
14388 # Run-time system search path for libraries
14389 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
14390
14391 # Fix the shell variable \$srcfile for the compiler.
14392 fix_srcfile_path="$fix_srcfile_path_F77"
14393
14394 # Set to yes if exported symbols are required.
14395 always_export_symbols=$always_export_symbols_F77
14396
14397 # The commands to list exported symbols.
14398 export_symbols_cmds=$lt_export_symbols_cmds_F77
14399
14400 # The commands to extract the exported symbol list from a shared archive.
14401 extract_expsyms_cmds=$lt_extract_expsyms_cmds
14402
14403 # Symbols that should not be listed in the preloaded symbols.
14404 exclude_expsyms=$lt_exclude_expsyms_F77
14405
14406 # Symbols that must always be exported.
14407 include_expsyms=$lt_include_expsyms_F77
14408
14409 # ### END LIBTOOL TAG CONFIG: $tagname
14410
14411 __EOF__
14412
14413
14414 else
14415   # If there is no Makefile yet, we rely on a make rule to execute
14416   # `config.status --recheck' to rerun these tests and create the
14417   # libtool script then.
14418   test -f Makefile && make "$ltmain"
14419 fi
14420
14421
14422 ac_ext=c
14423 ac_cpp='$CPP $CPPFLAGS'
14424 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14425 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14426 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14427
14428 CC="$lt_save_CC"
14429
14430         else
14431           tagname=""
14432         fi
14433         ;;
14434
14435       GCJ)
14436         if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
14437
14438
14439
14440 # Source file extension for Java test sources.
14441 ac_ext=java
14442
14443 # Object file extension for compiled Java test sources.
14444 objext=o
14445 objext_GCJ=$objext
14446
14447 # Code to be used in simple compile tests
14448 lt_simple_compile_test_code="class foo {}\n"
14449
14450 # Code to be used in simple link tests
14451 lt_simple_link_test_code='public class conftest { public static void main(String argv) {}; }\n'
14452
14453 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
14454
14455 # If no C compiler was specified, use CC.
14456 LTCC=${LTCC-"$CC"}
14457
14458 # Allow CC to be a program name with arguments.
14459 compiler=$CC
14460
14461
14462 # Allow CC to be a program name with arguments.
14463 lt_save_CC="$CC"
14464 CC=${GCJ-"gcj"}
14465 compiler=$CC
14466 compiler_GCJ=$CC
14467
14468 # GCJ did not exist at the time GCC didn't implicitly link libc in.
14469 archive_cmds_need_lc_GCJ=no
14470
14471 ## CAVEAT EMPTOR:
14472 ## There is no encapsulation within the following macros, do not change
14473 ## the running order or otherwise move them around unless you know exactly
14474 ## what you are doing...
14475
14476 lt_prog_compiler_no_builtin_flag_GCJ=
14477
14478 if test "$GCC" = yes; then
14479   lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
14480
14481   echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
14482 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
14483 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
14484   echo $ECHO_N "(cached) $ECHO_C" >&6
14485 else
14486   lt_cv_prog_compiler_rtti_exceptions=no
14487   ac_outfile=conftest.$ac_objext
14488    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14489    lt_compiler_flag="-fno-rtti -fno-exceptions"
14490    # Insert the option either (1) after the last *FLAGS variable, or
14491    # (2) before a word containing "conftest.", or (3) at the end.
14492    # Note that $ac_compile itself does not contain backslashes and begins
14493    # with a dollar sign (not a hyphen), so the echo should work correctly.
14494    # The option is referenced via a variable to avoid confusing sed.
14495    lt_compile=`echo "$ac_compile" | $SED \
14496    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
14497    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14498    -e 's:$: $lt_compiler_flag:'`
14499    (eval echo "\"\$as_me:14499: $lt_compile\"" >&5)
14500    (eval "$lt_compile" 2>conftest.err)
14501    ac_status=$?
14502    cat conftest.err >&5
14503    echo "$as_me:14503: \$? = $ac_status" >&5
14504    if (exit $ac_status) && test -s "$ac_outfile"; then
14505      # The compiler can only warn and ignore the option if not recognized
14506      # So say no if there are warnings
14507      if test ! -s conftest.err; then
14508        lt_cv_prog_compiler_rtti_exceptions=yes
14509      fi
14510    fi
14511    $rm conftest*
14512
14513 fi
14514 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
14515 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
14516
14517 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
14518     lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
14519 else
14520     :
14521 fi
14522
14523 fi
14524
14525 lt_prog_compiler_wl_GCJ=
14526 lt_prog_compiler_pic_GCJ=
14527 lt_prog_compiler_static_GCJ=
14528
14529 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
14530 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
14531
14532   if test "$GCC" = yes; then
14533     lt_prog_compiler_wl_GCJ='-Wl,'
14534     lt_prog_compiler_static_GCJ='-static'
14535
14536     case $host_os in
14537       aix*)
14538       # All AIX code is PIC.
14539       if test "$host_cpu" = ia64; then
14540         # AIX 5 now supports IA64 processor
14541         lt_prog_compiler_static_GCJ='-Bstatic'
14542       fi
14543       ;;
14544
14545     amigaos*)
14546       # FIXME: we need at least 68020 code to build shared libraries, but
14547       # adding the `-m68020' flag to GCC prevents building anything better,
14548       # like `-m68040'.
14549       lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
14550       ;;
14551
14552     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14553       # PIC is the default for these OSes.
14554       ;;
14555
14556     mingw* | pw32* | os2*)
14557       # This hack is so that the source file can tell whether it is being
14558       # built for inclusion in a dll (and should export symbols for example).
14559       lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
14560       ;;
14561
14562     darwin* | rhapsody*)
14563       # PIC is the default on this platform
14564       # Common symbols not allowed in MH_DYLIB files
14565       lt_prog_compiler_pic_GCJ='-fno-common'
14566       ;;
14567
14568     msdosdjgpp*)
14569       # Just because we use GCC doesn't mean we suddenly get shared libraries
14570       # on systems that don't support them.
14571       lt_prog_compiler_can_build_shared_GCJ=no
14572       enable_shared=no
14573       ;;
14574
14575     sysv4*MP*)
14576       if test -d /usr/nec; then
14577         lt_prog_compiler_pic_GCJ=-Kconform_pic
14578       fi
14579       ;;
14580
14581     hpux*)
14582       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14583       # not for PA HP-UX.
14584       case "$host_cpu" in
14585       hppa*64*|ia64*)
14586         # +Z the default
14587         ;;
14588       *)
14589         lt_prog_compiler_pic_GCJ='-fPIC'
14590         ;;
14591       esac
14592       ;;
14593
14594     *)
14595       lt_prog_compiler_pic_GCJ='-fPIC'
14596       ;;
14597     esac
14598   else
14599     # PORTME Check for flag to pass linker flags through the system compiler.
14600     case $host_os in
14601     aix*)
14602       lt_prog_compiler_wl_GCJ='-Wl,'
14603       if test "$host_cpu" = ia64; then
14604         # AIX 5 now supports IA64 processor
14605         lt_prog_compiler_static_GCJ='-Bstatic'
14606       else
14607         lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
14608       fi
14609       ;;
14610
14611     mingw* | pw32* | os2*)
14612       # This hack is so that the source file can tell whether it is being
14613       # built for inclusion in a dll (and should export symbols for example).
14614       lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
14615       ;;
14616
14617     hpux9* | hpux10* | hpux11*)
14618       lt_prog_compiler_wl_GCJ='-Wl,'
14619       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14620       # not for PA HP-UX.
14621       case "$host_cpu" in
14622       hppa*64*|ia64*)
14623         # +Z the default
14624         ;;
14625       *)
14626         lt_prog_compiler_pic_GCJ='+Z'
14627         ;;
14628       esac
14629       # Is there a better lt_prog_compiler_static that works with the bundled CC?
14630       lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
14631       ;;
14632
14633     irix5* | irix6* | nonstopux*)
14634       lt_prog_compiler_wl_GCJ='-Wl,'
14635       # PIC (with -KPIC) is the default.
14636       lt_prog_compiler_static_GCJ='-non_shared'
14637       ;;
14638
14639     newsos6)
14640       lt_prog_compiler_pic_GCJ='-KPIC'
14641       lt_prog_compiler_static_GCJ='-Bstatic'
14642       ;;
14643
14644     linux*)
14645       case $CC in
14646       icc|ecc)
14647         lt_prog_compiler_wl_GCJ='-Wl,'
14648         lt_prog_compiler_pic_GCJ='-KPIC'
14649         lt_prog_compiler_static_GCJ='-static'
14650         ;;
14651       ccc)
14652         lt_prog_compiler_wl_GCJ='-Wl,'
14653         # All Alpha code is PIC.
14654         lt_prog_compiler_static_GCJ='-non_shared'
14655         ;;
14656       esac
14657       ;;
14658
14659     osf3* | osf4* | osf5*)
14660       lt_prog_compiler_wl_GCJ='-Wl,'
14661       # All OSF/1 code is PIC.
14662       lt_prog_compiler_static_GCJ='-non_shared'
14663       ;;
14664
14665     sco3.2v5*)
14666       lt_prog_compiler_pic_GCJ='-Kpic'
14667       lt_prog_compiler_static_GCJ='-dn'
14668       ;;
14669
14670     solaris*)
14671       lt_prog_compiler_wl_GCJ='-Wl,'
14672       lt_prog_compiler_pic_GCJ='-KPIC'
14673       lt_prog_compiler_static_GCJ='-Bstatic'
14674       ;;
14675
14676     sunos4*)
14677       lt_prog_compiler_wl_GCJ='-Qoption ld '
14678       lt_prog_compiler_pic_GCJ='-PIC'
14679       lt_prog_compiler_static_GCJ='-Bstatic'
14680       ;;
14681
14682     sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
14683       lt_prog_compiler_wl_GCJ='-Wl,'
14684       lt_prog_compiler_pic_GCJ='-KPIC'
14685       lt_prog_compiler_static_GCJ='-Bstatic'
14686       ;;
14687
14688     sysv4*MP*)
14689       if test -d /usr/nec ;then
14690         lt_prog_compiler_pic_GCJ='-Kconform_pic'
14691         lt_prog_compiler_static_GCJ='-Bstatic'
14692       fi
14693       ;;
14694
14695     uts4*)
14696       lt_prog_compiler_pic_GCJ='-pic'
14697       lt_prog_compiler_static_GCJ='-Bstatic'
14698       ;;
14699
14700     *)
14701       lt_prog_compiler_can_build_shared_GCJ=no
14702       ;;
14703     esac
14704   fi
14705
14706 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
14707 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6
14708
14709 #
14710 # Check to make sure the PIC flag actually works.
14711 #
14712 if test -n "$lt_prog_compiler_pic_GCJ"; then
14713   echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
14714 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6
14715 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
14716   echo $ECHO_N "(cached) $ECHO_C" >&6
14717 else
14718   lt_prog_compiler_pic_works_GCJ=no
14719   ac_outfile=conftest.$ac_objext
14720    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14721    lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
14722    # Insert the option either (1) after the last *FLAGS variable, or
14723    # (2) before a word containing "conftest.", or (3) at the end.
14724    # Note that $ac_compile itself does not contain backslashes and begins
14725    # with a dollar sign (not a hyphen), so the echo should work correctly.
14726    # The option is referenced via a variable to avoid confusing sed.
14727    lt_compile=`echo "$ac_compile" | $SED \
14728    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
14729    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14730    -e 's:$: $lt_compiler_flag:'`
14731    (eval echo "\"\$as_me:14731: $lt_compile\"" >&5)
14732    (eval "$lt_compile" 2>conftest.err)
14733    ac_status=$?
14734    cat conftest.err >&5
14735    echo "$as_me:14735: \$? = $ac_status" >&5
14736    if (exit $ac_status) && test -s "$ac_outfile"; then
14737      # The compiler can only warn and ignore the option if not recognized
14738      # So say no if there are warnings
14739      if test ! -s conftest.err; then
14740        lt_prog_compiler_pic_works_GCJ=yes
14741      fi
14742    fi
14743    $rm conftest*
14744
14745 fi
14746 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
14747 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6
14748
14749 if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
14750     case $lt_prog_compiler_pic_GCJ in
14751      "" | " "*) ;;
14752      *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
14753      esac
14754 else
14755     lt_prog_compiler_pic_GCJ=
14756      lt_prog_compiler_can_build_shared_GCJ=no
14757 fi
14758
14759 fi
14760 case "$host_os" in
14761   # For platforms which do not support PIC, -DPIC is meaningless:
14762   *djgpp*)
14763     lt_prog_compiler_pic_GCJ=
14764     ;;
14765   *)
14766     lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
14767     ;;
14768 esac
14769
14770 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14771 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
14772 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
14773   echo $ECHO_N "(cached) $ECHO_C" >&6
14774 else
14775   lt_cv_prog_compiler_c_o_GCJ=no
14776    $rm -r conftest 2>/dev/null
14777    mkdir conftest
14778    cd conftest
14779    mkdir out
14780    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14781
14782    # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
14783    # that will create temporary files in the current directory regardless of
14784    # the output directory.  Thus, making CWD read-only will cause this test
14785    # to fail, enabling locking or at least warning the user not to do parallel
14786    # builds.
14787    chmod -w .
14788
14789    lt_compiler_flag="-o out/conftest2.$ac_objext"
14790    # Insert the option either (1) after the last *FLAGS variable, or
14791    # (2) before a word containing "conftest.", or (3) at the end.
14792    # Note that $ac_compile itself does not contain backslashes and begins
14793    # with a dollar sign (not a hyphen), so the echo should work correctly.
14794    lt_compile=`echo "$ac_compile" | $SED \
14795    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
14796    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14797    -e 's:$: $lt_compiler_flag:'`
14798    (eval echo "\"\$as_me:14798: $lt_compile\"" >&5)
14799    (eval "$lt_compile" 2>out/conftest.err)
14800    ac_status=$?
14801    cat out/conftest.err >&5
14802    echo "$as_me:14802: \$? = $ac_status" >&5
14803    if (exit $ac_status) && test -s out/conftest2.$ac_objext
14804    then
14805      # The compiler can only warn and ignore the option if not recognized
14806      # So say no if there are warnings
14807      if test ! -s out/conftest.err; then
14808        lt_cv_prog_compiler_c_o_GCJ=yes
14809      fi
14810    fi
14811    chmod u+w .
14812    $rm conftest* out/*
14813    rmdir out
14814    cd ..
14815    rmdir conftest
14816    $rm conftest*
14817
14818 fi
14819 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
14820 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6
14821
14822
14823 hard_links="nottested"
14824 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
14825   # do not overwrite the value of need_locks provided by the user
14826   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
14827 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
14828   hard_links=yes
14829   $rm conftest*
14830   ln conftest.a conftest.b 2>/dev/null && hard_links=no
14831   touch conftest.a
14832   ln conftest.a conftest.b 2>&5 || hard_links=no
14833   ln conftest.a conftest.b 2>/dev/null && hard_links=no
14834   echo "$as_me:$LINENO: result: $hard_links" >&5
14835 echo "${ECHO_T}$hard_links" >&6
14836   if test "$hard_links" = no; then
14837     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14838 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14839     need_locks=warn
14840   fi
14841 else
14842   need_locks=no
14843 fi
14844
14845 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14846 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
14847
14848   runpath_var=
14849   allow_undefined_flag_GCJ=
14850   enable_shared_with_static_runtimes_GCJ=no
14851   archive_cmds_GCJ=
14852   archive_expsym_cmds_GCJ=
14853   old_archive_From_new_cmds_GCJ=
14854   old_archive_from_expsyms_cmds_GCJ=
14855   export_dynamic_flag_spec_GCJ=
14856   whole_archive_flag_spec_GCJ=
14857   thread_safe_flag_spec_GCJ=
14858   hardcode_libdir_flag_spec_GCJ=
14859   hardcode_libdir_flag_spec_ld_GCJ=
14860   hardcode_libdir_separator_GCJ=
14861   hardcode_direct_GCJ=no
14862   hardcode_minus_L_GCJ=no
14863   hardcode_shlibpath_var_GCJ=unsupported
14864   link_all_deplibs_GCJ=unknown
14865   hardcode_automatic_GCJ=no
14866   module_cmds_GCJ=
14867   module_expsym_cmds_GCJ=
14868   always_export_symbols_GCJ=no
14869   export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14870   # include_expsyms should be a list of space-separated symbols to be *always*
14871   # included in the symbol list
14872   include_expsyms_GCJ=
14873   # exclude_expsyms can be an extended regexp of symbols to exclude
14874   # it will be wrapped by ` (' and `)$', so one must not match beginning or
14875   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
14876   # as well as any symbol that contains `d'.
14877   exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
14878   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
14879   # platforms (ab)use it in PIC code, but their linkers get confused if
14880   # the symbol is explicitly referenced.  Since portable code cannot
14881   # rely on this symbol name, it's probably fine to never include it in
14882   # preloaded symbol tables.
14883   extract_expsyms_cmds=
14884
14885   case $host_os in
14886   cygwin* | mingw* | pw32*)
14887     # FIXME: the MSVC++ port hasn't been tested in a loooong time
14888     # When not using gcc, we currently assume that we are using
14889     # Microsoft Visual C++.
14890     if test "$GCC" != yes; then
14891       with_gnu_ld=no
14892     fi
14893     ;;
14894   openbsd*)
14895     with_gnu_ld=no
14896     ;;
14897   esac
14898
14899   ld_shlibs_GCJ=yes
14900   if test "$with_gnu_ld" = yes; then
14901     # If archive_cmds runs LD, not CC, wlarc should be empty
14902     wlarc='${wl}'
14903
14904     # See if GNU ld supports shared libraries.
14905     case $host_os in
14906     aix3* | aix4* | aix5*)
14907       # On AIX/PPC, the GNU linker is very broken
14908       if test "$host_cpu" != ia64; then
14909         ld_shlibs_GCJ=no
14910         cat <<EOF 1>&2
14911
14912 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
14913 *** to be unable to reliably create shared libraries on AIX.
14914 *** Therefore, libtool is disabling shared libraries support.  If you
14915 *** really care for shared libraries, you may want to modify your PATH
14916 *** so that a non-GNU linker is found, and then restart.
14917
14918 EOF
14919       fi
14920       ;;
14921
14922     amigaos*)
14923       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)'
14924       hardcode_libdir_flag_spec_GCJ='-L$libdir'
14925       hardcode_minus_L_GCJ=yes
14926
14927       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
14928       # that the semantics of dynamic libraries on AmigaOS, at least up
14929       # to version 4, is to share data among multiple programs linked
14930       # with the same dynamic library.  Since this doesn't match the
14931       # behavior of shared libraries on other platforms, we can't use
14932       # them.
14933       ld_shlibs_GCJ=no
14934       ;;
14935
14936     beos*)
14937       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14938         allow_undefined_flag_GCJ=unsupported
14939         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
14940         # support --undefined.  This deserves some investigation.  FIXME
14941         archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14942       else
14943         ld_shlibs_GCJ=no
14944       fi
14945       ;;
14946
14947     cygwin* | mingw* | pw32*)
14948       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
14949       # as there is no search path for DLLs.
14950       hardcode_libdir_flag_spec_GCJ='-L$libdir'
14951       allow_undefined_flag_GCJ=unsupported
14952       always_export_symbols_GCJ=no
14953       enable_shared_with_static_runtimes_GCJ=yes
14954       export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
14955
14956       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
14957         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
14958         # If the export-symbols file already is a .def file (1st line
14959         # is EXPORTS), use it as is; otherwise, prepend...
14960         archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14961           cp $export_symbols $output_objdir/$soname.def;
14962         else
14963           echo EXPORTS > $output_objdir/$soname.def;
14964           cat $export_symbols >> $output_objdir/$soname.def;
14965         fi~
14966         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
14967       else
14968         ld_shlibs=no
14969       fi
14970       ;;
14971
14972     netbsd*)
14973       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14974         archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
14975         wlarc=
14976       else
14977         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14978         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14979       fi
14980       ;;
14981
14982     solaris* | sysv5*)
14983       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
14984         ld_shlibs_GCJ=no
14985         cat <<EOF 1>&2
14986
14987 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
14988 *** create shared libraries on Solaris systems.  Therefore, libtool
14989 *** is disabling shared libraries support.  We urge you to upgrade GNU
14990 *** binutils to release 2.9.1 or newer.  Another option is to modify
14991 *** your PATH or compiler configuration so that the native linker is
14992 *** used, and then restart.
14993
14994 EOF
14995       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14996         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14997         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14998       else
14999         ld_shlibs_GCJ=no
15000       fi
15001       ;;
15002
15003     sunos4*)
15004       archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15005       wlarc=
15006       hardcode_direct_GCJ=yes
15007       hardcode_shlibpath_var_GCJ=no
15008       ;;
15009
15010     *)
15011       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15012         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15013         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15014       else
15015         ld_shlibs_GCJ=no
15016       fi
15017       ;;
15018     esac
15019
15020     if test "$ld_shlibs_GCJ" = yes; then
15021       runpath_var=LD_RUN_PATH
15022       hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
15023       export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
15024       # ancient GNU ld didn't support --whole-archive et. al.
15025       if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
15026         whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15027       else
15028         whole_archive_flag_spec_GCJ=
15029       fi
15030     fi
15031   else
15032     # PORTME fill in a description of your system's linker (not GNU ld)
15033     case $host_os in
15034     aix3*)
15035       allow_undefined_flag_GCJ=unsupported
15036       always_export_symbols_GCJ=yes
15037       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'
15038       # Note: this linker hardcodes the directories in LIBPATH if there
15039       # are no directories specified by -L.
15040       hardcode_minus_L_GCJ=yes
15041       if test "$GCC" = yes && test -z "$link_static_flag"; then
15042         # Neither direct hardcoding nor static linking is supported with a
15043         # broken collect2.
15044         hardcode_direct_GCJ=unsupported
15045       fi
15046       ;;
15047
15048     aix4* | aix5*)
15049       if test "$host_cpu" = ia64; then
15050         # On IA64, the linker does run time linking by default, so we don't
15051         # have to do anything special.
15052         aix_use_runtimelinking=no
15053         exp_sym_flag='-Bexport'
15054         no_entry_flag=""
15055       else
15056         # If we're using GNU nm, then we don't want the "-C" option.
15057         # -C means demangle to AIX nm, but means don't demangle with GNU nm
15058         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
15059           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'
15060         else
15061           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'
15062         fi
15063         aix_use_runtimelinking=no
15064
15065         # Test if we are trying to use run time linking or normal
15066         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
15067         # need to do runtime linking.
15068         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
15069           for ld_flag in $LDFLAGS; do
15070           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
15071             aix_use_runtimelinking=yes
15072             break
15073           fi
15074           done
15075         esac
15076
15077         exp_sym_flag='-bexport'
15078         no_entry_flag='-bnoentry'
15079       fi
15080
15081       # When large executables or shared objects are built, AIX ld can
15082       # have problems creating the table of contents.  If linking a library
15083       # or program results in "error TOC overflow" add -mminimal-toc to
15084       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
15085       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15086
15087       archive_cmds_GCJ=''
15088       hardcode_direct_GCJ=yes
15089       hardcode_libdir_separator_GCJ=':'
15090       link_all_deplibs_GCJ=yes
15091
15092       if test "$GCC" = yes; then
15093         case $host_os in aix4.012|aix4.012.*)
15094         # We only want to do this on AIX 4.2 and lower, the check
15095         # below for broken collect2 doesn't work under 4.3+
15096           collect2name=`${CC} -print-prog-name=collect2`
15097           if test -f "$collect2name" && \
15098            strings "$collect2name" | grep resolve_lib_name >/dev/null
15099           then
15100           # We have reworked collect2
15101           hardcode_direct_GCJ=yes
15102           else
15103           # We have old collect2
15104           hardcode_direct_GCJ=unsupported
15105           # It fails to find uninstalled libraries when the uninstalled
15106           # path is not listed in the libpath.  Setting hardcode_minus_L
15107           # to unsupported forces relinking
15108           hardcode_minus_L_GCJ=yes
15109           hardcode_libdir_flag_spec_GCJ='-L$libdir'
15110           hardcode_libdir_separator_GCJ=
15111           fi
15112         esac
15113         shared_flag='-shared'
15114       else
15115         # not using gcc
15116         if test "$host_cpu" = ia64; then
15117         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15118         # chokes on -Wl,-G. The following line is correct:
15119           shared_flag='-G'
15120         else
15121         if test "$aix_use_runtimelinking" = yes; then
15122             shared_flag='${wl}-G'
15123           else
15124             shared_flag='${wl}-bM:SRE'
15125         fi
15126         fi
15127       fi
15128
15129       # It seems that -bexpall does not export symbols beginning with
15130       # underscore (_), so it is better to generate a list of symbols to export.
15131       always_export_symbols_GCJ=yes
15132       if test "$aix_use_runtimelinking" = yes; then
15133         # Warning - without using the other runtime loading flags (-brtl),
15134         # -berok will link without error, but may produce a broken library.
15135         allow_undefined_flag_GCJ='-berok'
15136        # Determine the default libpath from the value encoded in an empty executable.
15137        cat >conftest.$ac_ext <<_ACEOF
15138 #line $LINENO "configure"
15139 /* confdefs.h.  */
15140 _ACEOF
15141 cat confdefs.h >>conftest.$ac_ext
15142 cat >>conftest.$ac_ext <<_ACEOF
15143 /* end confdefs.h.  */
15144
15145 int
15146 main ()
15147 {
15148
15149   ;
15150   return 0;
15151 }
15152 _ACEOF
15153 rm -f conftest.$ac_objext conftest$ac_exeext
15154 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15155   (eval $ac_link) 2>&5
15156   ac_status=$?
15157   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15158   (exit $ac_status); } &&
15159          { ac_try='test -s conftest$ac_exeext'
15160   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15161   (eval $ac_try) 2>&5
15162   ac_status=$?
15163   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15164   (exit $ac_status); }; }; then
15165
15166 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
15167 }'`
15168 # Check for a 64-bit object if we didn't find anything.
15169 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; }
15170 }'`; fi
15171 else
15172   echo "$as_me: failed program was:" >&5
15173 sed 's/^/| /' conftest.$ac_ext >&5
15174
15175 fi
15176 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15177 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15178
15179        hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
15180         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"
15181        else
15182         if test "$host_cpu" = ia64; then
15183           hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
15184           allow_undefined_flag_GCJ="-z nodefs"
15185           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"
15186         else
15187          # Determine the default libpath from the value encoded in an empty executable.
15188          cat >conftest.$ac_ext <<_ACEOF
15189 #line $LINENO "configure"
15190 /* confdefs.h.  */
15191 _ACEOF
15192 cat confdefs.h >>conftest.$ac_ext
15193 cat >>conftest.$ac_ext <<_ACEOF
15194 /* end confdefs.h.  */
15195
15196 int
15197 main ()
15198 {
15199
15200   ;
15201   return 0;
15202 }
15203 _ACEOF
15204 rm -f conftest.$ac_objext conftest$ac_exeext
15205 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15206   (eval $ac_link) 2>&5
15207   ac_status=$?
15208   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15209   (exit $ac_status); } &&
15210          { ac_try='test -s conftest$ac_exeext'
15211   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15212   (eval $ac_try) 2>&5
15213   ac_status=$?
15214   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15215   (exit $ac_status); }; }; then
15216
15217 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
15218 }'`
15219 # Check for a 64-bit object if we didn't find anything.
15220 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; }
15221 }'`; fi
15222 else
15223   echo "$as_me: failed program was:" >&5
15224 sed 's/^/| /' conftest.$ac_ext >&5
15225
15226 fi
15227 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15228 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15229
15230          hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
15231           # Warning - without using the other run time loading flags,
15232           # -berok will link without error, but may produce a broken library.
15233           no_undefined_flag_GCJ=' ${wl}-bernotok'
15234           allow_undefined_flag_GCJ=' ${wl}-berok'
15235           # -bexpall does not export symbols beginning with underscore (_)
15236           always_export_symbols_GCJ=yes
15237           # Exported symbols can be pulled into shared objects from archives
15238           whole_archive_flag_spec_GCJ=' '
15239           archive_cmds_need_lc_GCJ=yes
15240           # This is similar to how AIX traditionally builds it's shared libraries.
15241           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'
15242         fi
15243       fi
15244       ;;
15245
15246     amigaos*)
15247       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)'
15248       hardcode_libdir_flag_spec_GCJ='-L$libdir'
15249       hardcode_minus_L_GCJ=yes
15250       # see comment about different semantics on the GNU ld section
15251       ld_shlibs_GCJ=no
15252       ;;
15253
15254     bsdi4*)
15255       export_dynamic_flag_spec_GCJ=-rdynamic
15256       ;;
15257
15258     cygwin* | mingw* | pw32*)
15259       # When not using gcc, we currently assume that we are using
15260       # Microsoft Visual C++.
15261       # hardcode_libdir_flag_spec is actually meaningless, as there is
15262       # no search path for DLLs.
15263       hardcode_libdir_flag_spec_GCJ=' '
15264       allow_undefined_flag_GCJ=unsupported
15265       # Tell ltmain to make .lib files, not .a files.
15266       libext=lib
15267       # Tell ltmain to make .dll files, not .so files.
15268       shrext=".dll"
15269       # FIXME: Setting linknames here is a bad hack.
15270       archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
15271       # The linker will automatically build a .lib file if we build a DLL.
15272       old_archive_From_new_cmds_GCJ='true'
15273       # FIXME: Should let the user specify the lib program.
15274       old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
15275       fix_srcfile_path='`cygpath -w "$srcfile"`'
15276       enable_shared_with_static_runtimes_GCJ=yes
15277       ;;
15278
15279     darwin* | rhapsody*)
15280     if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
15281       archive_cmds_need_lc_GCJ=no
15282       case "$host_os" in
15283       rhapsody* | darwin1.[012])
15284         allow_undefined_flag_GCJ='-undefined suppress'
15285         ;;
15286       *) # Darwin 1.3 on
15287         test -z ${LD_TWOLEVEL_NAMESPACE} && allow_undefined_flag_GCJ='-flat_namespace -undefined suppress'
15288         ;;
15289       esac
15290       # FIXME: Relying on posixy $() will cause problems for
15291       #        cross-compilation, but unfortunately the echo tests do not
15292       #        yet detect zsh echo's removal of \ escapes.  Also zsh mangles
15293       #        `"' quotes if we put them in here... so don't!
15294         lt_int_apple_cc_single_mod=no
15295         output_verbose_link_cmd='echo'
15296         if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
15297           lt_int_apple_cc_single_mod=yes
15298         fi
15299         if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
15300           archive_cmds_GCJ='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
15301         else
15302         archive_cmds_GCJ='$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
15303       fi
15304       module_cmds_GCJ='$CC -bundle ${wl}-bind_at_load $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags'
15305       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
15306         if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
15307           archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
15308         else
15309           archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
15310         fi
15311           module_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -bundle $allow_undefined_flag  -o $lib $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
15312       hardcode_direct_GCJ=no
15313       hardcode_automatic_GCJ=yes
15314       hardcode_shlibpath_var_GCJ=unsupported
15315       whole_archive_flag_spec_GCJ='-all_load $convenience'
15316       link_all_deplibs_GCJ=yes
15317     fi
15318       ;;
15319
15320     dgux*)
15321       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15322       hardcode_libdir_flag_spec_GCJ='-L$libdir'
15323       hardcode_shlibpath_var_GCJ=no
15324       ;;
15325
15326     freebsd1*)
15327       ld_shlibs_GCJ=no
15328       ;;
15329
15330     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
15331     # support.  Future versions do this automatically, but an explicit c++rt0.o
15332     # does not break anything, and helps significantly (at the cost of a little
15333     # extra space).
15334     freebsd2.2*)
15335       archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
15336       hardcode_libdir_flag_spec_GCJ='-R$libdir'
15337       hardcode_direct_GCJ=yes
15338       hardcode_shlibpath_var_GCJ=no
15339       ;;
15340
15341     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
15342     freebsd2*)
15343       archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15344       hardcode_direct_GCJ=yes
15345       hardcode_minus_L_GCJ=yes
15346       hardcode_shlibpath_var_GCJ=no
15347       ;;
15348
15349     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
15350     freebsd*)
15351       archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
15352       hardcode_libdir_flag_spec_GCJ='-R$libdir'
15353       hardcode_direct_GCJ=yes
15354       hardcode_shlibpath_var_GCJ=no
15355       ;;
15356
15357     hpux9*)
15358       if test "$GCC" = yes; then
15359         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'
15360       else
15361         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'
15362       fi
15363       hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
15364       hardcode_libdir_separator_GCJ=:
15365       hardcode_direct_GCJ=yes
15366
15367       # hardcode_minus_L: Not really in the search PATH,
15368       # but as the default location of the library.
15369       hardcode_minus_L_GCJ=yes
15370       export_dynamic_flag_spec_GCJ='${wl}-E'
15371       ;;
15372
15373     hpux10* | hpux11*)
15374       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15375         case "$host_cpu" in
15376         hppa*64*|ia64*)
15377           archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15378           ;;
15379         *)
15380           archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15381           ;;
15382         esac
15383       else
15384         case "$host_cpu" in
15385         hppa*64*|ia64*)
15386           archive_cmds_GCJ='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
15387           ;;
15388         *)
15389           archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15390           ;;
15391         esac
15392       fi
15393       if test "$with_gnu_ld" = no; then
15394         case "$host_cpu" in
15395         hppa*64*)
15396           hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
15397           hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
15398           hardcode_libdir_separator_GCJ=:
15399           hardcode_direct_GCJ=no
15400           hardcode_shlibpath_var_GCJ=no
15401           ;;
15402         ia64*)
15403           hardcode_libdir_flag_spec_GCJ='-L$libdir'
15404           hardcode_direct_GCJ=no
15405           hardcode_shlibpath_var_GCJ=no
15406
15407           # hardcode_minus_L: Not really in the search PATH,
15408           # but as the default location of the library.
15409           hardcode_minus_L_GCJ=yes
15410           ;;
15411         *)
15412           hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
15413           hardcode_libdir_separator_GCJ=:
15414           hardcode_direct_GCJ=yes
15415           export_dynamic_flag_spec_GCJ='${wl}-E'
15416
15417           # hardcode_minus_L: Not really in the search PATH,
15418           # but as the default location of the library.
15419           hardcode_minus_L_GCJ=yes
15420           ;;
15421         esac
15422       fi
15423       ;;
15424
15425     irix5* | irix6* | nonstopux*)
15426       if test "$GCC" = yes; then
15427         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'
15428       else
15429         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'
15430         hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
15431       fi
15432       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
15433       hardcode_libdir_separator_GCJ=:
15434       link_all_deplibs_GCJ=yes
15435       ;;
15436
15437     netbsd*)
15438       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15439         archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
15440       else
15441         archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
15442       fi
15443       hardcode_libdir_flag_spec_GCJ='-R$libdir'
15444       hardcode_direct_GCJ=yes
15445       hardcode_shlibpath_var_GCJ=no
15446       ;;
15447
15448     newsos6)
15449       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15450       hardcode_direct_GCJ=yes
15451       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
15452       hardcode_libdir_separator_GCJ=:
15453       hardcode_shlibpath_var_GCJ=no
15454       ;;
15455
15456     openbsd*)
15457       hardcode_direct_GCJ=yes
15458       hardcode_shlibpath_var_GCJ=no
15459       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15460         archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15461         hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
15462         export_dynamic_flag_spec_GCJ='${wl}-E'
15463       else
15464        case $host_os in
15465          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
15466            archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15467            hardcode_libdir_flag_spec_GCJ='-R$libdir'
15468            ;;
15469          *)
15470            archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15471            hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
15472            ;;
15473        esac
15474       fi
15475       ;;
15476
15477     os2*)
15478       hardcode_libdir_flag_spec_GCJ='-L$libdir'
15479       hardcode_minus_L_GCJ=yes
15480       allow_undefined_flag_GCJ=unsupported
15481       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'
15482       old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
15483       ;;
15484
15485     osf3*)
15486       if test "$GCC" = yes; then
15487         allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
15488         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'
15489       else
15490         allow_undefined_flag_GCJ=' -expect_unresolved \*'
15491         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'
15492       fi
15493       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
15494       hardcode_libdir_separator_GCJ=:
15495       ;;
15496
15497     osf4* | osf5*)      # as osf3* with the addition of -msym flag
15498       if test "$GCC" = yes; then
15499         allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
15500         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'
15501         hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
15502       else
15503         allow_undefined_flag_GCJ=' -expect_unresolved \*'
15504         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'
15505         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~
15506         $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'
15507
15508         # Both c and cxx compiler support -rpath directly
15509         hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
15510       fi
15511       hardcode_libdir_separator_GCJ=:
15512       ;;
15513
15514     sco3.2v5*)
15515       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15516       hardcode_shlibpath_var_GCJ=no
15517       export_dynamic_flag_spec_GCJ='${wl}-Bexport'
15518       runpath_var=LD_RUN_PATH
15519       hardcode_runpath_var=yes
15520       ;;
15521
15522     solaris*)
15523       no_undefined_flag_GCJ=' -z text'
15524       if test "$GCC" = yes; then
15525         archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15526         archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15527           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
15528       else
15529         archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
15530         archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15531         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
15532       fi
15533       hardcode_libdir_flag_spec_GCJ='-R$libdir'
15534       hardcode_shlibpath_var_GCJ=no
15535       case $host_os in
15536       solaris2.[0-5] | solaris2.[0-5].*) ;;
15537       *) # Supported since Solaris 2.6 (maybe 2.5.1?)
15538         whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
15539       esac
15540       link_all_deplibs_GCJ=yes
15541       ;;
15542
15543     sunos4*)
15544       if test "x$host_vendor" = xsequent; then
15545         # Use $CC to link under sequent, because it throws in some extra .o
15546         # files that make .init and .fini sections work.
15547         archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
15548       else
15549         archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
15550       fi
15551       hardcode_libdir_flag_spec_GCJ='-L$libdir'
15552       hardcode_direct_GCJ=yes
15553       hardcode_minus_L_GCJ=yes
15554       hardcode_shlibpath_var_GCJ=no
15555       ;;
15556
15557     sysv4)
15558       case $host_vendor in
15559         sni)
15560           archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15561           hardcode_direct_GCJ=yes # is this really true???
15562         ;;
15563         siemens)
15564           ## LD is ld it makes a PLAMLIB
15565           ## CC just makes a GrossModule.
15566           archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15567           reload_cmds_GCJ='$CC -r -o $output$reload_objs'
15568           hardcode_direct_GCJ=no
15569         ;;
15570         motorola)
15571           archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15572           hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
15573         ;;
15574       esac
15575       runpath_var='LD_RUN_PATH'
15576       hardcode_shlibpath_var_GCJ=no
15577       ;;
15578
15579     sysv4.3*)
15580       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15581       hardcode_shlibpath_var_GCJ=no
15582       export_dynamic_flag_spec_GCJ='-Bexport'
15583       ;;
15584
15585     sysv4*MP*)
15586       if test -d /usr/nec; then
15587         archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15588         hardcode_shlibpath_var_GCJ=no
15589         runpath_var=LD_RUN_PATH
15590         hardcode_runpath_var=yes
15591         ld_shlibs_GCJ=yes
15592       fi
15593       ;;
15594
15595     sysv4.2uw2*)
15596       archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15597       hardcode_direct_GCJ=yes
15598       hardcode_minus_L_GCJ=no
15599       hardcode_shlibpath_var_GCJ=no
15600       hardcode_runpath_var=yes
15601       runpath_var=LD_RUN_PATH
15602       ;;
15603
15604    sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
15605       no_undefined_flag_GCJ='${wl}-z ${wl}text'
15606       if test "$GCC" = yes; then
15607         archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15608       else
15609         archive_cmds_GCJ='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15610       fi
15611       runpath_var='LD_RUN_PATH'
15612       hardcode_shlibpath_var_GCJ=no
15613       ;;
15614
15615     sysv5*)
15616       no_undefined_flag_GCJ=' -z text'
15617       # $CC -shared without GNU ld will not create a library from C++
15618       # object files and a static libstdc++, better avoid it by now
15619       archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
15620       archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15621                 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
15622       hardcode_libdir_flag_spec_GCJ=
15623       hardcode_shlibpath_var_GCJ=no
15624       runpath_var='LD_RUN_PATH'
15625       ;;
15626
15627     uts4*)
15628       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15629       hardcode_libdir_flag_spec_GCJ='-L$libdir'
15630       hardcode_shlibpath_var_GCJ=no
15631       ;;
15632
15633     *)
15634       ld_shlibs_GCJ=no
15635       ;;
15636     esac
15637   fi
15638
15639 echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
15640 echo "${ECHO_T}$ld_shlibs_GCJ" >&6
15641 test "$ld_shlibs_GCJ" = no && can_build_shared=no
15642
15643 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15644 if test "$GCC" = yes; then
15645   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15646 fi
15647
15648 #
15649 # Do we need to explicitly link libc?
15650 #
15651 case "x$archive_cmds_need_lc_GCJ" in
15652 x|xyes)
15653   # Assume -lc should be added
15654   archive_cmds_need_lc_GCJ=yes
15655
15656   if test "$enable_shared" = yes && test "$GCC" = yes; then
15657     case $archive_cmds_GCJ in
15658     *'~'*)
15659       # FIXME: we may have to deal with multi-command sequences.
15660       ;;
15661     '$CC '*)
15662       # Test whether the compiler implicitly links with -lc since on some
15663       # systems, -lgcc has to come before -lc. If gcc already passes -lc
15664       # to ld, don't add -lc before -lgcc.
15665       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
15666 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
15667       $rm conftest*
15668       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15669
15670       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15671   (eval $ac_compile) 2>&5
15672   ac_status=$?
15673   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15674   (exit $ac_status); } 2>conftest.err; then
15675         soname=conftest
15676         lib=conftest
15677         libobjs=conftest.$ac_objext
15678         deplibs=
15679         wl=$lt_prog_compiler_wl_GCJ
15680         compiler_flags=-v
15681         linker_flags=-v
15682         verstring=
15683         output_objdir=.
15684         libname=conftest
15685         lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
15686         allow_undefined_flag_GCJ=
15687         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
15688   (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
15689   ac_status=$?
15690   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15691   (exit $ac_status); }
15692         then
15693           archive_cmds_need_lc_GCJ=no
15694         else
15695           archive_cmds_need_lc_GCJ=yes
15696         fi
15697         allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
15698       else
15699         cat conftest.err 1>&5
15700       fi
15701       $rm conftest*
15702       echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
15703 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6
15704       ;;
15705     esac
15706   fi
15707   ;;
15708 esac
15709
15710 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
15711 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
15712 hardcode_action_GCJ=
15713 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
15714    test -n "$runpath_var GCJ" || \
15715    test "X$hardcode_automatic_GCJ"="Xyes" ; then
15716
15717   # We can hardcode non-existant directories.
15718   if test "$hardcode_direct_GCJ" != no &&
15719      # If the only mechanism to avoid hardcoding is shlibpath_var, we
15720      # have to relink, otherwise we might link with an installed library
15721      # when we should be linking with a yet-to-be-installed one
15722      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
15723      test "$hardcode_minus_L_GCJ" != no; then
15724     # Linking always hardcodes the temporary library directory.
15725     hardcode_action_GCJ=relink
15726   else
15727     # We can link without hardcoding, and we can hardcode nonexisting dirs.
15728     hardcode_action_GCJ=immediate
15729   fi
15730 else
15731   # We cannot hardcode anything, or else we can only hardcode existing
15732   # directories.
15733   hardcode_action_GCJ=unsupported
15734 fi
15735 echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
15736 echo "${ECHO_T}$hardcode_action_GCJ" >&6
15737
15738 if test "$hardcode_action_GCJ" = relink; then
15739   # Fast installation is not supported
15740   enable_fast_install=no
15741 elif test "$shlibpath_overrides_runpath" = yes ||
15742      test "$enable_shared" = no; then
15743   # Fast installation is not necessary
15744   enable_fast_install=needless
15745 fi
15746
15747 striplib=
15748 old_striplib=
15749 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
15750 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
15751 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
15752   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
15753   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
15754   echo "$as_me:$LINENO: result: yes" >&5
15755 echo "${ECHO_T}yes" >&6
15756 else
15757 # FIXME - insert some real tests, host_os isn't really good enough
15758   case $host_os in
15759    darwin*)
15760        if test -n "$STRIP" ; then
15761          striplib="$STRIP -x"
15762          echo "$as_me:$LINENO: result: yes" >&5
15763 echo "${ECHO_T}yes" >&6
15764        else
15765   echo "$as_me:$LINENO: result: no" >&5
15766 echo "${ECHO_T}no" >&6
15767 fi
15768        ;;
15769    *)
15770   echo "$as_me:$LINENO: result: no" >&5
15771 echo "${ECHO_T}no" >&6
15772     ;;
15773   esac
15774 fi
15775
15776 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
15777 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
15778 library_names_spec=
15779 libname_spec='lib$name'
15780 soname_spec=
15781 shrext=".so"
15782 postinstall_cmds=
15783 postuninstall_cmds=
15784 finish_cmds=
15785 finish_eval=
15786 shlibpath_var=
15787 shlibpath_overrides_runpath=unknown
15788 version_type=none
15789 dynamic_linker="$host_os ld.so"
15790 sys_lib_dlsearch_path_spec="/lib /usr/lib"
15791 if test "$GCC" = yes; then
15792   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15793   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
15794     # if the path contains ";" then we assume it to be the separator
15795     # otherwise default to the standard path separator (i.e. ":") - it is
15796     # assumed that no part of a normal pathname contains ";" but that should
15797     # okay in the real world where ";" in dirpaths is itself problematic.
15798     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15799   else
15800     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
15801   fi
15802 else
15803   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
15804 fi
15805 need_lib_prefix=unknown
15806 hardcode_into_libs=no
15807
15808 # when you set need_version to no, make sure it does not cause -set_version
15809 # flags to be left without arguments
15810 need_version=unknown
15811
15812 case $host_os in
15813 aix3*)
15814   version_type=linux
15815   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15816   shlibpath_var=LIBPATH
15817
15818   # AIX 3 has no versioning support, so we append a major version to the name.
15819   soname_spec='${libname}${release}${shared_ext}$major'
15820   ;;
15821
15822 aix4* | aix5*)
15823   version_type=linux
15824   need_lib_prefix=no
15825   need_version=no
15826   hardcode_into_libs=yes
15827   if test "$host_cpu" = ia64; then
15828     # AIX 5 supports IA64
15829     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15830     shlibpath_var=LD_LIBRARY_PATH
15831   else
15832     # With GCC up to 2.95.x, collect2 would create an import file
15833     # for dependence libraries.  The import file would start with
15834     # the line `#! .'.  This would cause the generated library to
15835     # depend on `.', always an invalid library.  This was fixed in
15836     # development snapshots of GCC prior to 3.0.
15837     case $host_os in
15838       aix4 | aix4.[01] | aix4.[01].*)
15839       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15840            echo ' yes '
15841            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
15842         :
15843       else
15844         can_build_shared=no
15845       fi
15846       ;;
15847     esac
15848     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15849     # soname into executable. Probably we can add versioning support to
15850     # collect2, so additional links can be useful in future.
15851     if test "$aix_use_runtimelinking" = yes; then
15852       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15853       # instead of lib<name>.a to let people know that these are not
15854       # typical AIX shared libraries.
15855       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15856     else
15857       # We preserve .a as extension for shared libraries through AIX4.2
15858       # and later when we are not doing run time linking.
15859       library_names_spec='${libname}${release}.a $libname.a'
15860       soname_spec='${libname}${release}${shared_ext}$major'
15861     fi
15862     shlibpath_var=LIBPATH
15863   fi
15864   ;;
15865
15866 amigaos*)
15867   library_names_spec='$libname.ixlibrary $libname.a'
15868   # Create ${libname}_ixlibrary.a entries in /sys/libs.
15869   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'
15870   ;;
15871
15872 beos*)
15873   library_names_spec='${libname}${shared_ext}'
15874   dynamic_linker="$host_os ld.so"
15875   shlibpath_var=LIBRARY_PATH
15876   ;;
15877
15878 bsdi4*)
15879   version_type=linux
15880   need_version=no
15881   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15882   soname_spec='${libname}${release}${shared_ext}$major'
15883   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15884   shlibpath_var=LD_LIBRARY_PATH
15885   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15886   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15887   # the default ld.so.conf also contains /usr/contrib/lib and
15888   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15889   # libtool to hard-code these into programs
15890   ;;
15891
15892 cygwin* | mingw* | pw32*)
15893   version_type=windows
15894   shrext=".dll"
15895   need_version=no
15896   need_lib_prefix=no
15897
15898   case $GCC,$host_os in
15899   yes,cygwin* | yes,mingw* | yes,pw32*)
15900     library_names_spec='$libname.dll.a'
15901     # DLL is installed to $(libdir)/../bin by postinstall_cmds
15902     postinstall_cmds='base_file=`basename \${file}`~
15903       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
15904       dldir=$destdir/`dirname \$dlpath`~
15905       test -d \$dldir || mkdir -p \$dldir~
15906       $install_prog $dir/$dlname \$dldir/$dlname'
15907     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15908       dlpath=$dir/\$dldll~
15909        $rm \$dlpath'
15910     shlibpath_overrides_runpath=yes
15911
15912     case $host_os in
15913     cygwin*)
15914       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15915       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15916       sys_lib_search_path_spec="/lib /lib/w32api /usr/lib /usr/local/lib"
15917       ;;
15918     mingw*)
15919       # MinGW DLLs use traditional 'lib' prefix
15920       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15921       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15922       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
15923         # It is most probably a Windows format PATH printed by
15924         # mingw gcc, but we are running on Cygwin. Gcc prints its search
15925         # path with ; separators, and with drive letters. We can handle the
15926         # drive letters (cygwin fileutils understands them), so leave them,
15927         # especially as we might pass files found there to a mingw objdump,
15928         # which wouldn't understand a cygwinified path. Ahh.
15929         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15930       else
15931         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
15932       fi
15933       ;;
15934     pw32*)
15935       # pw32 DLLs use 'pw' prefix rather than 'lib'
15936       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
15937       ;;
15938     esac
15939     ;;
15940
15941   *)
15942     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15943     ;;
15944   esac
15945   dynamic_linker='Win32 ld.exe'
15946   # FIXME: first we should search . and the directory the executable is in
15947   shlibpath_var=PATH
15948   ;;
15949
15950 darwin* | rhapsody*)
15951   dynamic_linker="$host_os dyld"
15952   version_type=darwin
15953   need_lib_prefix=no
15954   need_version=no
15955   # FIXME: Relying on posixy $() will cause problems for
15956   #        cross-compilation, but unfortunately the echo tests do not
15957   #        yet detect zsh echo's removal of \ escapes.
15958   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15959   soname_spec='${libname}${release}${major}$shared_ext'
15960   shlibpath_overrides_runpath=yes
15961   shlibpath_var=DYLD_LIBRARY_PATH
15962   shrext='$(test .$module = .yes && echo .so || echo .dylib)'
15963   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
15964   if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
15965   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"`
15966   fi
15967   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15968   ;;
15969
15970 dgux*)
15971   version_type=linux
15972   need_lib_prefix=no
15973   need_version=no
15974   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15975   soname_spec='${libname}${release}${shared_ext}$major'
15976   shlibpath_var=LD_LIBRARY_PATH
15977   ;;
15978
15979 freebsd1*)
15980   dynamic_linker=no
15981   ;;
15982
15983 freebsd*)
15984   objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
15985   version_type=freebsd-$objformat
15986   case $version_type in
15987     freebsd-elf*)
15988       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15989       need_version=no
15990       need_lib_prefix=no
15991       ;;
15992     freebsd-*)
15993       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15994       need_version=yes
15995       ;;
15996   esac
15997   shlibpath_var=LD_LIBRARY_PATH
15998   case $host_os in
15999   freebsd2*)
16000     shlibpath_overrides_runpath=yes
16001     ;;
16002   freebsd3.01* | freebsdelf3.01*)
16003     shlibpath_overrides_runpath=yes
16004     hardcode_into_libs=yes
16005     ;;
16006   *) # from 3.2 on
16007     shlibpath_overrides_runpath=no
16008     hardcode_into_libs=yes
16009     ;;
16010   esac
16011   ;;
16012
16013 gnu*)
16014   version_type=linux
16015   need_lib_prefix=no
16016   need_version=no
16017   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16018   soname_spec='${libname}${release}${shared_ext}$major'
16019   shlibpath_var=LD_LIBRARY_PATH
16020   hardcode_into_libs=yes
16021   ;;
16022
16023 hpux9* | hpux10* | hpux11*)
16024   # Give a soname corresponding to the major version so that dld.sl refuses to
16025   # link against other versions.
16026   version_type=sunos
16027   need_lib_prefix=no
16028   need_version=no
16029   case "$host_cpu" in
16030   ia64*)
16031     shrext='.so'
16032     hardcode_into_libs=yes
16033     dynamic_linker="$host_os dld.so"
16034     shlibpath_var=LD_LIBRARY_PATH
16035     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16036     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16037     soname_spec='${libname}${release}${shared_ext}$major'
16038     if test "X$HPUX_IA64_MODE" = X32; then
16039       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16040     else
16041       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16042     fi
16043     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16044     ;;
16045    hppa*64*)
16046      shrext='.sl'
16047      hardcode_into_libs=yes
16048      dynamic_linker="$host_os dld.sl"
16049      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16050      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16051      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16052      soname_spec='${libname}${release}${shared_ext}$major'
16053      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16054      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16055      ;;
16056    *)
16057     shrext='.sl'
16058     dynamic_linker="$host_os dld.sl"
16059     shlibpath_var=SHLIB_PATH
16060     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16061     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16062     soname_spec='${libname}${release}${shared_ext}$major'
16063     ;;
16064   esac
16065   # HP-UX runs *really* slowly unless shared libraries are mode 555.
16066   postinstall_cmds='chmod 555 $lib'
16067   ;;
16068
16069 irix5* | irix6* | nonstopux*)
16070   case $host_os in
16071     nonstopux*) version_type=nonstopux ;;
16072     *)
16073         if test "$lt_cv_prog_gnu_ld" = yes; then
16074                 version_type=linux
16075         else
16076                 version_type=irix
16077         fi ;;
16078   esac
16079   need_lib_prefix=no
16080   need_version=no
16081   soname_spec='${libname}${release}${shared_ext}$major'
16082   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
16083   case $host_os in
16084   irix5* | nonstopux*)
16085     libsuff= shlibsuff=
16086     ;;
16087   *)
16088     case $LD in # libtool.m4 will add one of these switches to LD
16089     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16090       libsuff= shlibsuff= libmagic=32-bit;;
16091     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16092       libsuff=32 shlibsuff=N32 libmagic=N32;;
16093     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16094       libsuff=64 shlibsuff=64 libmagic=64-bit;;
16095     *) libsuff= shlibsuff= libmagic=never-match;;
16096     esac
16097     ;;
16098   esac
16099   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16100   shlibpath_overrides_runpath=no
16101   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16102   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
16103   hardcode_into_libs=yes
16104   ;;
16105
16106 # No shared lib support for Linux oldld, aout, or coff.
16107 linux*oldld* | linux*aout* | linux*coff*)
16108   dynamic_linker=no
16109   ;;
16110
16111 # This must be Linux ELF.
16112 linux*)
16113   version_type=linux
16114   need_lib_prefix=no
16115   need_version=no
16116   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16117   soname_spec='${libname}${release}${shared_ext}$major'
16118   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16119   shlibpath_var=LD_LIBRARY_PATH
16120   shlibpath_overrides_runpath=no
16121   # This implies no fast_install, which is unacceptable.
16122   # Some rework will be needed to allow for fast_install
16123   # before this can be enabled.
16124   hardcode_into_libs=yes
16125
16126   # We used to test for /lib/ld.so.1 and disable shared libraries on
16127   # powerpc, because MkLinux only supported shared libraries with the
16128   # GNU dynamic linker.  Since this was broken with cross compilers,
16129   # most powerpc-linux boxes support dynamic linking these days and
16130   # people can always --disable-shared, the test was removed, and we
16131   # assume the GNU/Linux dynamic linker is in use.
16132   dynamic_linker='GNU/Linux ld.so'
16133   ;;
16134
16135 netbsd*)
16136   version_type=sunos
16137   need_lib_prefix=no
16138   need_version=no
16139   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16140     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16141     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16142     dynamic_linker='NetBSD (a.out) ld.so'
16143   else
16144     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
16145     soname_spec='${libname}${release}${shared_ext}$major'
16146     dynamic_linker='NetBSD ld.elf_so'
16147   fi
16148   shlibpath_var=LD_LIBRARY_PATH
16149   shlibpath_overrides_runpath=yes
16150   hardcode_into_libs=yes
16151   ;;
16152
16153 newsos6)
16154   version_type=linux
16155   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16156   shlibpath_var=LD_LIBRARY_PATH
16157   shlibpath_overrides_runpath=yes
16158   ;;
16159
16160 nto-qnx)
16161   version_type=linux
16162   need_lib_prefix=no
16163   need_version=no
16164   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16165   soname_spec='${libname}${release}${shared_ext}$major'
16166   shlibpath_var=LD_LIBRARY_PATH
16167   shlibpath_overrides_runpath=yes
16168   ;;
16169
16170 openbsd*)
16171   version_type=sunos
16172   need_lib_prefix=no
16173   need_version=no
16174   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16175   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16176   shlibpath_var=LD_LIBRARY_PATH
16177   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16178     case $host_os in
16179       openbsd2.[89] | openbsd2.[89].*)
16180         shlibpath_overrides_runpath=no
16181         ;;
16182       *)
16183         shlibpath_overrides_runpath=yes
16184         ;;
16185       esac
16186   else
16187     shlibpath_overrides_runpath=yes
16188   fi
16189   ;;
16190
16191 os2*)
16192   libname_spec='$name'
16193   shrext=".dll"
16194   need_lib_prefix=no
16195   library_names_spec='$libname${shared_ext} $libname.a'
16196   dynamic_linker='OS/2 ld.exe'
16197   shlibpath_var=LIBPATH
16198   ;;
16199
16200 osf3* | osf4* | osf5*)
16201   version_type=osf
16202   need_lib_prefix=no
16203   need_version=no
16204   soname_spec='${libname}${release}${shared_ext}$major'
16205   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16206   shlibpath_var=LD_LIBRARY_PATH
16207   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16208   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16209   ;;
16210
16211 sco3.2v5*)
16212   version_type=osf
16213   soname_spec='${libname}${release}${shared_ext}$major'
16214   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16215   shlibpath_var=LD_LIBRARY_PATH
16216   ;;
16217
16218 solaris*)
16219   version_type=linux
16220   need_lib_prefix=no
16221   need_version=no
16222   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16223   soname_spec='${libname}${release}${shared_ext}$major'
16224   shlibpath_var=LD_LIBRARY_PATH
16225   shlibpath_overrides_runpath=yes
16226   hardcode_into_libs=yes
16227   # ldd complains unless libraries are executable
16228   postinstall_cmds='chmod +x $lib'
16229   ;;
16230
16231 sunos4*)
16232   version_type=sunos
16233   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16234   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16235   shlibpath_var=LD_LIBRARY_PATH
16236   shlibpath_overrides_runpath=yes
16237   if test "$with_gnu_ld" = yes; then
16238     need_lib_prefix=no
16239   fi
16240   need_version=yes
16241   ;;
16242
16243 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
16244   version_type=linux
16245   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16246   soname_spec='${libname}${release}${shared_ext}$major'
16247   shlibpath_var=LD_LIBRARY_PATH
16248   case $host_vendor in
16249     sni)
16250       shlibpath_overrides_runpath=no
16251       need_lib_prefix=no
16252       export_dynamic_flag_spec='${wl}-Blargedynsym'
16253       runpath_var=LD_RUN_PATH
16254       ;;
16255     siemens)
16256       need_lib_prefix=no
16257       ;;
16258     motorola)
16259       need_lib_prefix=no
16260       need_version=no
16261       shlibpath_overrides_runpath=no
16262       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16263       ;;
16264   esac
16265   ;;
16266
16267 sysv4*MP*)
16268   if test -d /usr/nec ;then
16269     version_type=linux
16270     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16271     soname_spec='$libname${shared_ext}.$major'
16272     shlibpath_var=LD_LIBRARY_PATH
16273   fi
16274   ;;
16275
16276 uts4*)
16277   version_type=linux
16278   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16279   soname_spec='${libname}${release}${shared_ext}$major'
16280   shlibpath_var=LD_LIBRARY_PATH
16281   ;;
16282
16283 *)
16284   dynamic_linker=no
16285   ;;
16286 esac
16287 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
16288 echo "${ECHO_T}$dynamic_linker" >&6
16289 test "$dynamic_linker" = no && can_build_shared=no
16290
16291 if test "x$enable_dlopen" != xyes; then
16292   enable_dlopen=unknown
16293   enable_dlopen_self=unknown
16294   enable_dlopen_self_static=unknown
16295 else
16296   lt_cv_dlopen=no
16297   lt_cv_dlopen_libs=
16298
16299   case $host_os in
16300   beos*)
16301     lt_cv_dlopen="load_add_on"
16302     lt_cv_dlopen_libs=
16303     lt_cv_dlopen_self=yes
16304     ;;
16305
16306   mingw* | pw32*)
16307     lt_cv_dlopen="LoadLibrary"
16308     lt_cv_dlopen_libs=
16309    ;;
16310
16311   cygwin*)
16312     lt_cv_dlopen="dlopen"
16313     lt_cv_dlopen_libs=
16314    ;;
16315
16316   darwin*)
16317   # if libdl is installed we need to link against it
16318     echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
16319 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
16320 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
16321   echo $ECHO_N "(cached) $ECHO_C" >&6
16322 else
16323   ac_check_lib_save_LIBS=$LIBS
16324 LIBS="-ldl  $LIBS"
16325 cat >conftest.$ac_ext <<_ACEOF
16326 #line $LINENO "configure"
16327 /* confdefs.h.  */
16328 _ACEOF
16329 cat confdefs.h >>conftest.$ac_ext
16330 cat >>conftest.$ac_ext <<_ACEOF
16331 /* end confdefs.h.  */
16332
16333 /* Override any gcc2 internal prototype to avoid an error.  */
16334 #ifdef __cplusplus
16335 extern "C"
16336 #endif
16337 /* We use char because int might match the return type of a gcc2
16338    builtin and then its argument prototype would still apply.  */
16339 char dlopen ();
16340 int
16341 main ()
16342 {
16343 dlopen ();
16344   ;
16345   return 0;
16346 }
16347 _ACEOF
16348 rm -f conftest.$ac_objext conftest$ac_exeext
16349 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16350   (eval $ac_link) 2>&5
16351   ac_status=$?
16352   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16353   (exit $ac_status); } &&
16354          { ac_try='test -s conftest$ac_exeext'
16355   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16356   (eval $ac_try) 2>&5
16357   ac_status=$?
16358   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16359   (exit $ac_status); }; }; then
16360   ac_cv_lib_dl_dlopen=yes
16361 else
16362   echo "$as_me: failed program was:" >&5
16363 sed 's/^/| /' conftest.$ac_ext >&5
16364
16365 ac_cv_lib_dl_dlopen=no
16366 fi
16367 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16368 LIBS=$ac_check_lib_save_LIBS
16369 fi
16370 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
16371 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
16372 if test $ac_cv_lib_dl_dlopen = yes; then
16373   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
16374 else
16375
16376     lt_cv_dlopen="dyld"
16377     lt_cv_dlopen_libs=
16378     lt_cv_dlopen_self=yes
16379
16380 fi
16381
16382    ;;
16383
16384   *)
16385     echo "$as_me:$LINENO: checking for shl_load" >&5
16386 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
16387 if test "${ac_cv_func_shl_load+set}" = set; then
16388   echo $ECHO_N "(cached) $ECHO_C" >&6
16389 else
16390   cat >conftest.$ac_ext <<_ACEOF
16391 #line $LINENO "configure"
16392 /* confdefs.h.  */
16393 _ACEOF
16394 cat confdefs.h >>conftest.$ac_ext
16395 cat >>conftest.$ac_ext <<_ACEOF
16396 /* end confdefs.h.  */
16397 /* System header to define __stub macros and hopefully few prototypes,
16398     which can conflict with char shl_load (); below.
16399     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16400     <limits.h> exists even on freestanding compilers.  */
16401 #ifdef __STDC__
16402 # include <limits.h>
16403 #else
16404 # include <assert.h>
16405 #endif
16406 /* Override any gcc2 internal prototype to avoid an error.  */
16407 #ifdef __cplusplus
16408 extern "C"
16409 {
16410 #endif
16411 /* We use char because int might match the return type of a gcc2
16412    builtin and then its argument prototype would still apply.  */
16413 char shl_load ();
16414 /* The GNU C library defines this for functions which it implements
16415     to always fail with ENOSYS.  Some functions are actually named
16416     something starting with __ and the normal name is an alias.  */
16417 #if defined (__stub_shl_load) || defined (__stub___shl_load)
16418 choke me
16419 #else
16420 char (*f) () = shl_load;
16421 #endif
16422 #ifdef __cplusplus
16423 }
16424 #endif
16425
16426 int
16427 main ()
16428 {
16429 return f != shl_load;
16430   ;
16431   return 0;
16432 }
16433 _ACEOF
16434 rm -f conftest.$ac_objext conftest$ac_exeext
16435 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16436   (eval $ac_link) 2>&5
16437   ac_status=$?
16438   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16439   (exit $ac_status); } &&
16440          { ac_try='test -s conftest$ac_exeext'
16441   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16442   (eval $ac_try) 2>&5
16443   ac_status=$?
16444   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16445   (exit $ac_status); }; }; then
16446   ac_cv_func_shl_load=yes
16447 else
16448   echo "$as_me: failed program was:" >&5
16449 sed 's/^/| /' conftest.$ac_ext >&5
16450
16451 ac_cv_func_shl_load=no
16452 fi
16453 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16454 fi
16455 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
16456 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
16457 if test $ac_cv_func_shl_load = yes; then
16458   lt_cv_dlopen="shl_load"
16459 else
16460   echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
16461 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
16462 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
16463   echo $ECHO_N "(cached) $ECHO_C" >&6
16464 else
16465   ac_check_lib_save_LIBS=$LIBS
16466 LIBS="-ldld  $LIBS"
16467 cat >conftest.$ac_ext <<_ACEOF
16468 #line $LINENO "configure"
16469 /* confdefs.h.  */
16470 _ACEOF
16471 cat confdefs.h >>conftest.$ac_ext
16472 cat >>conftest.$ac_ext <<_ACEOF
16473 /* end confdefs.h.  */
16474
16475 /* Override any gcc2 internal prototype to avoid an error.  */
16476 #ifdef __cplusplus
16477 extern "C"
16478 #endif
16479 /* We use char because int might match the return type of a gcc2
16480    builtin and then its argument prototype would still apply.  */
16481 char shl_load ();
16482 int
16483 main ()
16484 {
16485 shl_load ();
16486   ;
16487   return 0;
16488 }
16489 _ACEOF
16490 rm -f conftest.$ac_objext conftest$ac_exeext
16491 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16492   (eval $ac_link) 2>&5
16493   ac_status=$?
16494   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16495   (exit $ac_status); } &&
16496          { ac_try='test -s conftest$ac_exeext'
16497   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16498   (eval $ac_try) 2>&5
16499   ac_status=$?
16500   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16501   (exit $ac_status); }; }; then
16502   ac_cv_lib_dld_shl_load=yes
16503 else
16504   echo "$as_me: failed program was:" >&5
16505 sed 's/^/| /' conftest.$ac_ext >&5
16506
16507 ac_cv_lib_dld_shl_load=no
16508 fi
16509 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16510 LIBS=$ac_check_lib_save_LIBS
16511 fi
16512 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
16513 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
16514 if test $ac_cv_lib_dld_shl_load = yes; then
16515   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
16516 else
16517   echo "$as_me:$LINENO: checking for dlopen" >&5
16518 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
16519 if test "${ac_cv_func_dlopen+set}" = set; then
16520   echo $ECHO_N "(cached) $ECHO_C" >&6
16521 else
16522   cat >conftest.$ac_ext <<_ACEOF
16523 #line $LINENO "configure"
16524 /* confdefs.h.  */
16525 _ACEOF
16526 cat confdefs.h >>conftest.$ac_ext
16527 cat >>conftest.$ac_ext <<_ACEOF
16528 /* end confdefs.h.  */
16529 /* System header to define __stub macros and hopefully few prototypes,
16530     which can conflict with char dlopen (); below.
16531     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16532     <limits.h> exists even on freestanding compilers.  */
16533 #ifdef __STDC__
16534 # include <limits.h>
16535 #else
16536 # include <assert.h>
16537 #endif
16538 /* Override any gcc2 internal prototype to avoid an error.  */
16539 #ifdef __cplusplus
16540 extern "C"
16541 {
16542 #endif
16543 /* We use char because int might match the return type of a gcc2
16544    builtin and then its argument prototype would still apply.  */
16545 char dlopen ();
16546 /* The GNU C library defines this for functions which it implements
16547     to always fail with ENOSYS.  Some functions are actually named
16548     something starting with __ and the normal name is an alias.  */
16549 #if defined (__stub_dlopen) || defined (__stub___dlopen)
16550 choke me
16551 #else
16552 char (*f) () = dlopen;
16553 #endif
16554 #ifdef __cplusplus
16555 }
16556 #endif
16557
16558 int
16559 main ()
16560 {
16561 return f != dlopen;
16562   ;
16563   return 0;
16564 }
16565 _ACEOF
16566 rm -f conftest.$ac_objext conftest$ac_exeext
16567 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16568   (eval $ac_link) 2>&5
16569   ac_status=$?
16570   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16571   (exit $ac_status); } &&
16572          { ac_try='test -s conftest$ac_exeext'
16573   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16574   (eval $ac_try) 2>&5
16575   ac_status=$?
16576   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16577   (exit $ac_status); }; }; then
16578   ac_cv_func_dlopen=yes
16579 else
16580   echo "$as_me: failed program was:" >&5
16581 sed 's/^/| /' conftest.$ac_ext >&5
16582
16583 ac_cv_func_dlopen=no
16584 fi
16585 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16586 fi
16587 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
16588 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
16589 if test $ac_cv_func_dlopen = yes; then
16590   lt_cv_dlopen="dlopen"
16591 else
16592   echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
16593 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
16594 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
16595   echo $ECHO_N "(cached) $ECHO_C" >&6
16596 else
16597   ac_check_lib_save_LIBS=$LIBS
16598 LIBS="-ldl  $LIBS"
16599 cat >conftest.$ac_ext <<_ACEOF
16600 #line $LINENO "configure"
16601 /* confdefs.h.  */
16602 _ACEOF
16603 cat confdefs.h >>conftest.$ac_ext
16604 cat >>conftest.$ac_ext <<_ACEOF
16605 /* end confdefs.h.  */
16606
16607 /* Override any gcc2 internal prototype to avoid an error.  */
16608 #ifdef __cplusplus
16609 extern "C"
16610 #endif
16611 /* We use char because int might match the return type of a gcc2
16612    builtin and then its argument prototype would still apply.  */
16613 char dlopen ();
16614 int
16615 main ()
16616 {
16617 dlopen ();
16618   ;
16619   return 0;
16620 }
16621 _ACEOF
16622 rm -f conftest.$ac_objext conftest$ac_exeext
16623 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16624   (eval $ac_link) 2>&5
16625   ac_status=$?
16626   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16627   (exit $ac_status); } &&
16628          { ac_try='test -s conftest$ac_exeext'
16629   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16630   (eval $ac_try) 2>&5
16631   ac_status=$?
16632   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16633   (exit $ac_status); }; }; then
16634   ac_cv_lib_dl_dlopen=yes
16635 else
16636   echo "$as_me: failed program was:" >&5
16637 sed 's/^/| /' conftest.$ac_ext >&5
16638
16639 ac_cv_lib_dl_dlopen=no
16640 fi
16641 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16642 LIBS=$ac_check_lib_save_LIBS
16643 fi
16644 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
16645 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
16646 if test $ac_cv_lib_dl_dlopen = yes; then
16647   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
16648 else
16649   echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
16650 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
16651 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
16652   echo $ECHO_N "(cached) $ECHO_C" >&6
16653 else
16654   ac_check_lib_save_LIBS=$LIBS
16655 LIBS="-lsvld  $LIBS"
16656 cat >conftest.$ac_ext <<_ACEOF
16657 #line $LINENO "configure"
16658 /* confdefs.h.  */
16659 _ACEOF
16660 cat confdefs.h >>conftest.$ac_ext
16661 cat >>conftest.$ac_ext <<_ACEOF
16662 /* end confdefs.h.  */
16663
16664 /* Override any gcc2 internal prototype to avoid an error.  */
16665 #ifdef __cplusplus
16666 extern "C"
16667 #endif
16668 /* We use char because int might match the return type of a gcc2
16669    builtin and then its argument prototype would still apply.  */
16670 char dlopen ();
16671 int
16672 main ()
16673 {
16674 dlopen ();
16675   ;
16676   return 0;
16677 }
16678 _ACEOF
16679 rm -f conftest.$ac_objext conftest$ac_exeext
16680 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16681   (eval $ac_link) 2>&5
16682   ac_status=$?
16683   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16684   (exit $ac_status); } &&
16685          { ac_try='test -s conftest$ac_exeext'
16686   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16687   (eval $ac_try) 2>&5
16688   ac_status=$?
16689   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16690   (exit $ac_status); }; }; then
16691   ac_cv_lib_svld_dlopen=yes
16692 else
16693   echo "$as_me: failed program was:" >&5
16694 sed 's/^/| /' conftest.$ac_ext >&5
16695
16696 ac_cv_lib_svld_dlopen=no
16697 fi
16698 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16699 LIBS=$ac_check_lib_save_LIBS
16700 fi
16701 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
16702 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
16703 if test $ac_cv_lib_svld_dlopen = yes; then
16704   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
16705 else
16706   echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
16707 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
16708 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
16709   echo $ECHO_N "(cached) $ECHO_C" >&6
16710 else
16711   ac_check_lib_save_LIBS=$LIBS
16712 LIBS="-ldld  $LIBS"
16713 cat >conftest.$ac_ext <<_ACEOF
16714 #line $LINENO "configure"
16715 /* confdefs.h.  */
16716 _ACEOF
16717 cat confdefs.h >>conftest.$ac_ext
16718 cat >>conftest.$ac_ext <<_ACEOF
16719 /* end confdefs.h.  */
16720
16721 /* Override any gcc2 internal prototype to avoid an error.  */
16722 #ifdef __cplusplus
16723 extern "C"
16724 #endif
16725 /* We use char because int might match the return type of a gcc2
16726    builtin and then its argument prototype would still apply.  */
16727 char dld_link ();
16728 int
16729 main ()
16730 {
16731 dld_link ();
16732   ;
16733   return 0;
16734 }
16735 _ACEOF
16736 rm -f conftest.$ac_objext conftest$ac_exeext
16737 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16738   (eval $ac_link) 2>&5
16739   ac_status=$?
16740   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16741   (exit $ac_status); } &&
16742          { ac_try='test -s conftest$ac_exeext'
16743   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16744   (eval $ac_try) 2>&5
16745   ac_status=$?
16746   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16747   (exit $ac_status); }; }; then
16748   ac_cv_lib_dld_dld_link=yes
16749 else
16750   echo "$as_me: failed program was:" >&5
16751 sed 's/^/| /' conftest.$ac_ext >&5
16752
16753 ac_cv_lib_dld_dld_link=no
16754 fi
16755 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16756 LIBS=$ac_check_lib_save_LIBS
16757 fi
16758 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
16759 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
16760 if test $ac_cv_lib_dld_dld_link = yes; then
16761   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
16762 fi
16763
16764
16765 fi
16766
16767
16768 fi
16769
16770
16771 fi
16772
16773
16774 fi
16775
16776
16777 fi
16778
16779     ;;
16780   esac
16781
16782   if test "x$lt_cv_dlopen" != xno; then
16783     enable_dlopen=yes
16784   else
16785     enable_dlopen=no
16786   fi
16787
16788   case $lt_cv_dlopen in
16789   dlopen)
16790     save_CPPFLAGS="$CPPFLAGS"
16791     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
16792
16793     save_LDFLAGS="$LDFLAGS"
16794     eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
16795
16796     save_LIBS="$LIBS"
16797     LIBS="$lt_cv_dlopen_libs $LIBS"
16798
16799     echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
16800 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
16801 if test "${lt_cv_dlopen_self+set}" = set; then
16802   echo $ECHO_N "(cached) $ECHO_C" >&6
16803 else
16804           if test "$cross_compiling" = yes; then :
16805   lt_cv_dlopen_self=cross
16806 else
16807   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
16808   lt_status=$lt_dlunknown
16809   cat > conftest.$ac_ext <<EOF
16810 #line 16810 "configure"
16811 #include "confdefs.h"
16812
16813 #if HAVE_DLFCN_H
16814 #include <dlfcn.h>
16815 #endif
16816
16817 #include <stdio.h>
16818
16819 #ifdef RTLD_GLOBAL
16820 #  define LT_DLGLOBAL           RTLD_GLOBAL
16821 #else
16822 #  ifdef DL_GLOBAL
16823 #    define LT_DLGLOBAL         DL_GLOBAL
16824 #  else
16825 #    define LT_DLGLOBAL         0
16826 #  endif
16827 #endif
16828
16829 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
16830    find out it does not work in some platform. */
16831 #ifndef LT_DLLAZY_OR_NOW
16832 #  ifdef RTLD_LAZY
16833 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
16834 #  else
16835 #    ifdef DL_LAZY
16836 #      define LT_DLLAZY_OR_NOW          DL_LAZY
16837 #    else
16838 #      ifdef RTLD_NOW
16839 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
16840 #      else
16841 #        ifdef DL_NOW
16842 #          define LT_DLLAZY_OR_NOW      DL_NOW
16843 #        else
16844 #          define LT_DLLAZY_OR_NOW      0
16845 #        endif
16846 #      endif
16847 #    endif
16848 #  endif
16849 #endif
16850
16851 #ifdef __cplusplus
16852 extern "C" void exit (int);
16853 #endif
16854
16855 void fnord() { int i=42;}
16856 int main ()
16857 {
16858   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
16859   int status = $lt_dlunknown;
16860
16861   if (self)
16862     {
16863       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
16864       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
16865       /* dlclose (self); */
16866     }
16867
16868     exit (status);
16869 }
16870 EOF
16871   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16872   (eval $ac_link) 2>&5
16873   ac_status=$?
16874   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16875   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
16876     (./conftest; exit; ) 2>/dev/null
16877     lt_status=$?
16878     case x$lt_status in
16879       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
16880       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
16881       x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
16882     esac
16883   else :
16884     # compilation failed
16885     lt_cv_dlopen_self=no
16886   fi
16887 fi
16888 rm -fr conftest*
16889
16890
16891 fi
16892 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
16893 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
16894
16895     if test "x$lt_cv_dlopen_self" = xyes; then
16896       LDFLAGS="$LDFLAGS $link_static_flag"
16897       echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
16898 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
16899 if test "${lt_cv_dlopen_self_static+set}" = set; then
16900   echo $ECHO_N "(cached) $ECHO_C" >&6
16901 else
16902           if test "$cross_compiling" = yes; then :
16903   lt_cv_dlopen_self_static=cross
16904 else
16905   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
16906   lt_status=$lt_dlunknown
16907   cat > conftest.$ac_ext <<EOF
16908 #line 16908 "configure"
16909 #include "confdefs.h"
16910
16911 #if HAVE_DLFCN_H
16912 #include <dlfcn.h>
16913 #endif
16914
16915 #include <stdio.h>
16916
16917 #ifdef RTLD_GLOBAL
16918 #  define LT_DLGLOBAL           RTLD_GLOBAL
16919 #else
16920 #  ifdef DL_GLOBAL
16921 #    define LT_DLGLOBAL         DL_GLOBAL
16922 #  else
16923 #    define LT_DLGLOBAL         0
16924 #  endif
16925 #endif
16926
16927 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
16928    find out it does not work in some platform. */
16929 #ifndef LT_DLLAZY_OR_NOW
16930 #  ifdef RTLD_LAZY
16931 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
16932 #  else
16933 #    ifdef DL_LAZY
16934 #      define LT_DLLAZY_OR_NOW          DL_LAZY
16935 #    else
16936 #      ifdef RTLD_NOW
16937 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
16938 #      else
16939 #        ifdef DL_NOW
16940 #          define LT_DLLAZY_OR_NOW      DL_NOW
16941 #        else
16942 #          define LT_DLLAZY_OR_NOW      0
16943 #        endif
16944 #      endif
16945 #    endif
16946 #  endif
16947 #endif
16948
16949 #ifdef __cplusplus
16950 extern "C" void exit (int);
16951 #endif
16952
16953 void fnord() { int i=42;}
16954 int main ()
16955 {
16956   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
16957   int status = $lt_dlunknown;
16958
16959   if (self)
16960     {
16961       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
16962       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
16963       /* dlclose (self); */
16964     }
16965
16966     exit (status);
16967 }
16968 EOF
16969   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16970   (eval $ac_link) 2>&5
16971   ac_status=$?
16972   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16973   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
16974     (./conftest; exit; ) 2>/dev/null
16975     lt_status=$?
16976     case x$lt_status in
16977       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
16978       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
16979       x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
16980     esac
16981   else :
16982     # compilation failed
16983     lt_cv_dlopen_self_static=no
16984   fi
16985 fi
16986 rm -fr conftest*
16987
16988
16989 fi
16990 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
16991 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
16992     fi
16993
16994     CPPFLAGS="$save_CPPFLAGS"
16995     LDFLAGS="$save_LDFLAGS"
16996     LIBS="$save_LIBS"
16997     ;;
16998   esac
16999
17000   case $lt_cv_dlopen_self in
17001   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
17002   *) enable_dlopen_self=unknown ;;
17003   esac
17004
17005   case $lt_cv_dlopen_self_static in
17006   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
17007   *) enable_dlopen_self_static=unknown ;;
17008   esac
17009 fi
17010
17011
17012 # The else clause should only fire when bootstrapping the
17013 # libtool distribution, otherwise you forgot to ship ltmain.sh
17014 # with your package, and you will get complaints that there are
17015 # no rules to generate ltmain.sh.
17016 if test -f "$ltmain"; then
17017   # See if we are running on zsh, and set the options which allow our commands through
17018   # without removal of \ escapes.
17019   if test -n "${ZSH_VERSION+set}" ; then
17020     setopt NO_GLOB_SUBST
17021   fi
17022   # Now quote all the things that may contain metacharacters while being
17023   # careful not to overquote the AC_SUBSTed values.  We take copies of the
17024   # variables and quote the copies for generation of the libtool script.
17025   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \
17026     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
17027     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
17028     deplibs_check_method reload_flag reload_cmds need_locks \
17029     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
17030     lt_cv_sys_global_symbol_to_c_name_address \
17031     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
17032     old_postinstall_cmds old_postuninstall_cmds \
17033     compiler_GCJ \
17034     CC_GCJ \
17035     LD_GCJ \
17036     lt_prog_compiler_wl_GCJ \
17037     lt_prog_compiler_pic_GCJ \
17038     lt_prog_compiler_static_GCJ \
17039     lt_prog_compiler_no_builtin_flag_GCJ \
17040     export_dynamic_flag_spec_GCJ \
17041     thread_safe_flag_spec_GCJ \
17042     whole_archive_flag_spec_GCJ \
17043     enable_shared_with_static_runtimes_GCJ \
17044     old_archive_cmds_GCJ \
17045     old_archive_from_new_cmds_GCJ \
17046     predep_objects_GCJ \
17047     postdep_objects_GCJ \
17048     predeps_GCJ \
17049     postdeps_GCJ \
17050     compiler_lib_search_path_GCJ \
17051     archive_cmds_GCJ \
17052     archive_expsym_cmds_GCJ \
17053     postinstall_cmds_GCJ \
17054     postuninstall_cmds_GCJ \
17055     old_archive_from_expsyms_cmds_GCJ \
17056     allow_undefined_flag_GCJ \
17057     no_undefined_flag_GCJ \
17058     export_symbols_cmds_GCJ \
17059     hardcode_libdir_flag_spec_GCJ \
17060     hardcode_libdir_flag_spec_ld_GCJ \
17061     hardcode_libdir_separator_GCJ \
17062     hardcode_automatic_GCJ \
17063     module_cmds_GCJ \
17064     module_expsym_cmds_GCJ \
17065     lt_cv_prog_compiler_c_o_GCJ \
17066     exclude_expsyms_GCJ \
17067     include_expsyms_GCJ; do
17068
17069     case $var in
17070     old_archive_cmds_GCJ | \
17071     old_archive_from_new_cmds_GCJ | \
17072     archive_cmds_GCJ | \
17073     archive_expsym_cmds_GCJ | \
17074     module_cmds_GCJ | \
17075     module_expsym_cmds_GCJ | \
17076     old_archive_from_expsyms_cmds_GCJ | \
17077     export_symbols_cmds_GCJ | \
17078     extract_expsyms_cmds | reload_cmds | finish_cmds | \
17079     postinstall_cmds | postuninstall_cmds | \
17080     old_postinstall_cmds | old_postuninstall_cmds | \
17081     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
17082       # Double-quote double-evaled strings.
17083       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
17084       ;;
17085     *)
17086       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
17087       ;;
17088     esac
17089   done
17090
17091   case $lt_echo in
17092   *'\$0 --fallback-echo"')
17093     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
17094     ;;
17095   esac
17096
17097 cfgfile="$ofile"
17098
17099   cat <<__EOF__ >> "$cfgfile"
17100 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
17101
17102 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17103
17104 # Shell to use when invoking shell scripts.
17105 SHELL=$lt_SHELL
17106
17107 # Whether or not to build shared libraries.
17108 build_libtool_libs=$enable_shared
17109
17110 # Whether or not to build static libraries.
17111 build_old_libs=$enable_static
17112
17113 # Whether or not to add -lc for building shared libraries.
17114 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
17115
17116 # Whether or not to disallow shared libs when runtime libs are static
17117 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
17118
17119 # Whether or not to optimize for fast installation.
17120 fast_install=$enable_fast_install
17121
17122 # The host system.
17123 host_alias=$host_alias
17124 host=$host
17125
17126 # An echo program that does not interpret backslashes.
17127 echo=$lt_echo
17128
17129 # The archiver.
17130 AR=$lt_AR
17131 AR_FLAGS=$lt_AR_FLAGS
17132
17133 # A C compiler.
17134 LTCC=$lt_LTCC
17135
17136 # A language-specific compiler.
17137 CC=$lt_compiler_GCJ
17138
17139 # Is the compiler the GNU C compiler?
17140 with_gcc=$GCC_GCJ
17141
17142 # An ERE matcher.
17143 EGREP=$lt_EGREP
17144
17145 # The linker used to build libraries.
17146 LD=$lt_LD_GCJ
17147
17148 # Whether we need hard or soft links.
17149 LN_S=$lt_LN_S
17150
17151 # A BSD-compatible nm program.
17152 NM=$lt_NM
17153
17154 # A symbol stripping program
17155 STRIP=$STRIP
17156
17157 # Used to examine libraries when file_magic_cmd begins "file"
17158 MAGIC_CMD=$MAGIC_CMD
17159
17160 # Used on cygwin: DLL creation program.
17161 DLLTOOL="$DLLTOOL"
17162
17163 # Used on cygwin: object dumper.
17164 OBJDUMP="$OBJDUMP"
17165
17166 # Used on cygwin: assembler.
17167 AS="$AS"
17168
17169 # The name of the directory that contains temporary libtool files.
17170 objdir=$objdir
17171
17172 # How to create reloadable object files.
17173 reload_flag=$lt_reload_flag
17174 reload_cmds=$lt_reload_cmds
17175
17176 # How to pass a linker flag through the compiler.
17177 wl=$lt_lt_prog_compiler_wl_GCJ
17178
17179 # Object file suffix (normally "o").
17180 objext="$ac_objext"
17181
17182 # Old archive suffix (normally "a").
17183 libext="$libext"
17184
17185 # Shared library suffix (normally ".so").
17186 shrext='$shrext'
17187
17188 # Executable file suffix (normally "").
17189 exeext="$exeext"
17190
17191 # Additional compiler flags for building library objects.
17192 pic_flag=$lt_lt_prog_compiler_pic_GCJ
17193 pic_mode=$pic_mode
17194
17195 # What is the maximum length of a command?
17196 max_cmd_len=$lt_cv_sys_max_cmd_len
17197
17198 # Does compiler simultaneously support -c and -o options?
17199 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
17200
17201 # Must we lock files when doing compilation ?
17202 need_locks=$lt_need_locks
17203
17204 # Do we need the lib prefix for modules?
17205 need_lib_prefix=$need_lib_prefix
17206
17207 # Do we need a version for libraries?
17208 need_version=$need_version
17209
17210 # Whether dlopen is supported.
17211 dlopen_support=$enable_dlopen
17212
17213 # Whether dlopen of programs is supported.
17214 dlopen_self=$enable_dlopen_self
17215
17216 # Whether dlopen of statically linked programs is supported.
17217 dlopen_self_static=$enable_dlopen_self_static
17218
17219 # Compiler flag to prevent dynamic linking.
17220 link_static_flag=$lt_lt_prog_compiler_static_GCJ
17221
17222 # Compiler flag to turn off builtin functions.
17223 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
17224
17225 # Compiler flag to allow reflexive dlopens.
17226 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
17227
17228 # Compiler flag to generate shared objects directly from archives.
17229 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
17230
17231 # Compiler flag to generate thread-safe objects.
17232 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
17233
17234 # Library versioning type.
17235 version_type=$version_type
17236
17237 # Format of library name prefix.
17238 libname_spec=$lt_libname_spec
17239
17240 # List of archive names.  First name is the real one, the rest are links.
17241 # The last name is the one that the linker finds with -lNAME.
17242 library_names_spec=$lt_library_names_spec
17243
17244 # The coded name of the library, if different from the real name.
17245 soname_spec=$lt_soname_spec
17246
17247 # Commands used to build and install an old-style archive.
17248 RANLIB=$lt_RANLIB
17249 old_archive_cmds=$lt_old_archive_cmds_GCJ
17250 old_postinstall_cmds=$lt_old_postinstall_cmds
17251 old_postuninstall_cmds=$lt_old_postuninstall_cmds
17252
17253 # Create an old-style archive from a shared archive.
17254 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
17255
17256 # Create a temporary old-style archive to link instead of a shared archive.
17257 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
17258
17259 # Commands used to build and install a shared archive.
17260 archive_cmds=$lt_archive_cmds_GCJ
17261 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
17262 postinstall_cmds=$lt_postinstall_cmds
17263 postuninstall_cmds=$lt_postuninstall_cmds
17264
17265 # Commands used to build a loadable module (assumed same as above if empty)
17266 module_cmds=$lt_module_cmds_GCJ
17267 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
17268
17269 # Commands to strip libraries.
17270 old_striplib=$lt_old_striplib
17271 striplib=$lt_striplib
17272
17273 # Dependencies to place before the objects being linked to create a
17274 # shared library.
17275 predep_objects=$lt_predep_objects_GCJ
17276
17277 # Dependencies to place after the objects being linked to create a
17278 # shared library.
17279 postdep_objects=$lt_postdep_objects_GCJ
17280
17281 # Dependencies to place before the objects being linked to create a
17282 # shared library.
17283 predeps=$lt_predeps_GCJ
17284
17285 # Dependencies to place after the objects being linked to create a
17286 # shared library.
17287 postdeps=$lt_postdeps_GCJ
17288
17289 # The library search path used internally by the compiler when linking
17290 # a shared library.
17291 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
17292
17293 # Method to check whether dependent libraries are shared objects.
17294 deplibs_check_method=$lt_deplibs_check_method
17295
17296 # Command to use when deplibs_check_method == file_magic.
17297 file_magic_cmd=$lt_file_magic_cmd
17298
17299 # Flag that allows shared libraries with undefined symbols to be built.
17300 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
17301
17302 # Flag that forces no undefined symbols.
17303 no_undefined_flag=$lt_no_undefined_flag_GCJ
17304
17305 # Commands used to finish a libtool library installation in a directory.
17306 finish_cmds=$lt_finish_cmds
17307
17308 # Same as above, but a single script fragment to be evaled but not shown.
17309 finish_eval=$lt_finish_eval
17310
17311 # Take the output of nm and produce a listing of raw symbols and C names.
17312 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
17313
17314 # Transform the output of nm in a proper C declaration
17315 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
17316
17317 # Transform the output of nm in a C name address pair
17318 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
17319
17320 # This is the shared library runtime path variable.
17321 runpath_var=$runpath_var
17322
17323 # This is the shared library path variable.
17324 shlibpath_var=$shlibpath_var
17325
17326 # Is shlibpath searched before the hard-coded library search path?
17327 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
17328
17329 # How to hardcode a shared library path into an executable.
17330 hardcode_action=$hardcode_action_GCJ
17331
17332 # Whether we should hardcode library paths into libraries.
17333 hardcode_into_libs=$hardcode_into_libs
17334
17335 # Flag to hardcode \$libdir into a binary during linking.
17336 # This must work even if \$libdir does not exist.
17337 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
17338
17339 # If ld is used when linking, flag to hardcode \$libdir into
17340 # a binary during linking. This must work even if \$libdir does
17341 # not exist.
17342 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
17343
17344 # Whether we need a single -rpath flag with a separated argument.
17345 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
17346
17347 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
17348 # resulting binary.
17349 hardcode_direct=$hardcode_direct_GCJ
17350
17351 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
17352 # resulting binary.
17353 hardcode_minus_L=$hardcode_minus_L_GCJ
17354
17355 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
17356 # the resulting binary.
17357 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
17358
17359 # Set to yes if building a shared library automatically hardcodes DIR into the library
17360 # and all subsequent libraries and executables linked against it.
17361 hardcode_automatic=$hardcode_automatic_GCJ
17362
17363 # Variables whose values should be saved in libtool wrapper scripts and
17364 # restored at relink time.
17365 variables_saved_for_relink="$variables_saved_for_relink"
17366
17367 # Whether libtool must link a program against all its dependency libraries.
17368 link_all_deplibs=$link_all_deplibs_GCJ
17369
17370 # Compile-time system search path for libraries
17371 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
17372
17373 # Run-time system search path for libraries
17374 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
17375
17376 # Fix the shell variable \$srcfile for the compiler.
17377 fix_srcfile_path="$fix_srcfile_path_GCJ"
17378
17379 # Set to yes if exported symbols are required.
17380 always_export_symbols=$always_export_symbols_GCJ
17381
17382 # The commands to list exported symbols.
17383 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
17384
17385 # The commands to extract the exported symbol list from a shared archive.
17386 extract_expsyms_cmds=$lt_extract_expsyms_cmds
17387
17388 # Symbols that should not be listed in the preloaded symbols.
17389 exclude_expsyms=$lt_exclude_expsyms_GCJ
17390
17391 # Symbols that must always be exported.
17392 include_expsyms=$lt_include_expsyms_GCJ
17393
17394 # ### END LIBTOOL TAG CONFIG: $tagname
17395
17396 __EOF__
17397
17398
17399 else
17400   # If there is no Makefile yet, we rely on a make rule to execute
17401   # `config.status --recheck' to rerun these tests and create the
17402   # libtool script then.
17403   test -f Makefile && make "$ltmain"
17404 fi
17405
17406
17407 ac_ext=c
17408 ac_cpp='$CPP $CPPFLAGS'
17409 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17410 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17411 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17412
17413 CC="$lt_save_CC"
17414
17415         else
17416           tagname=""
17417         fi
17418         ;;
17419
17420       RC)
17421
17422
17423
17424 # Source file extension for RC test sources.
17425 ac_ext=rc
17426
17427 # Object file extension for compiled RC test sources.
17428 objext=o
17429 objext_RC=$objext
17430
17431 # Code to be used in simple compile tests
17432 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
17433
17434 # Code to be used in simple link tests
17435 lt_simple_link_test_code="$lt_simple_compile_test_code"
17436
17437 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
17438
17439 # If no C compiler was specified, use CC.
17440 LTCC=${LTCC-"$CC"}
17441
17442 # Allow CC to be a program name with arguments.
17443 compiler=$CC
17444
17445
17446 # Allow CC to be a program name with arguments.
17447 lt_save_CC="$CC"
17448 CC=${RC-"windres"}
17449 compiler=$CC
17450 compiler_RC=$CC
17451 lt_cv_prog_compiler_c_o_RC=yes
17452
17453 # The else clause should only fire when bootstrapping the
17454 # libtool distribution, otherwise you forgot to ship ltmain.sh
17455 # with your package, and you will get complaints that there are
17456 # no rules to generate ltmain.sh.
17457 if test -f "$ltmain"; then
17458   # See if we are running on zsh, and set the options which allow our commands through
17459   # without removal of \ escapes.
17460   if test -n "${ZSH_VERSION+set}" ; then
17461     setopt NO_GLOB_SUBST
17462   fi
17463   # Now quote all the things that may contain metacharacters while being
17464   # careful not to overquote the AC_SUBSTed values.  We take copies of the
17465   # variables and quote the copies for generation of the libtool script.
17466   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \
17467     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
17468     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
17469     deplibs_check_method reload_flag reload_cmds need_locks \
17470     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
17471     lt_cv_sys_global_symbol_to_c_name_address \
17472     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
17473     old_postinstall_cmds old_postuninstall_cmds \
17474     compiler_RC \
17475     CC_RC \
17476     LD_RC \
17477     lt_prog_compiler_wl_RC \
17478     lt_prog_compiler_pic_RC \
17479     lt_prog_compiler_static_RC \
17480     lt_prog_compiler_no_builtin_flag_RC \
17481     export_dynamic_flag_spec_RC \
17482     thread_safe_flag_spec_RC \
17483     whole_archive_flag_spec_RC \
17484     enable_shared_with_static_runtimes_RC \
17485     old_archive_cmds_RC \
17486     old_archive_from_new_cmds_RC \
17487     predep_objects_RC \
17488     postdep_objects_RC \
17489     predeps_RC \
17490     postdeps_RC \
17491     compiler_lib_search_path_RC \
17492     archive_cmds_RC \
17493     archive_expsym_cmds_RC \
17494     postinstall_cmds_RC \
17495     postuninstall_cmds_RC \
17496     old_archive_from_expsyms_cmds_RC \
17497     allow_undefined_flag_RC \
17498     no_undefined_flag_RC \
17499     export_symbols_cmds_RC \
17500     hardcode_libdir_flag_spec_RC \
17501     hardcode_libdir_flag_spec_ld_RC \
17502     hardcode_libdir_separator_RC \
17503     hardcode_automatic_RC \
17504     module_cmds_RC \
17505     module_expsym_cmds_RC \
17506     lt_cv_prog_compiler_c_o_RC \
17507     exclude_expsyms_RC \
17508     include_expsyms_RC; do
17509
17510     case $var in
17511     old_archive_cmds_RC | \
17512     old_archive_from_new_cmds_RC | \
17513     archive_cmds_RC | \
17514     archive_expsym_cmds_RC | \
17515     module_cmds_RC | \
17516     module_expsym_cmds_RC | \
17517     old_archive_from_expsyms_cmds_RC | \
17518     export_symbols_cmds_RC | \
17519     extract_expsyms_cmds | reload_cmds | finish_cmds | \
17520     postinstall_cmds | postuninstall_cmds | \
17521     old_postinstall_cmds | old_postuninstall_cmds | \
17522     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
17523       # Double-quote double-evaled strings.
17524       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
17525       ;;
17526     *)
17527       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
17528       ;;
17529     esac
17530   done
17531
17532   case $lt_echo in
17533   *'\$0 --fallback-echo"')
17534     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
17535     ;;
17536   esac
17537
17538 cfgfile="$ofile"
17539
17540   cat <<__EOF__ >> "$cfgfile"
17541 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
17542
17543 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17544
17545 # Shell to use when invoking shell scripts.
17546 SHELL=$lt_SHELL
17547
17548 # Whether or not to build shared libraries.
17549 build_libtool_libs=$enable_shared
17550
17551 # Whether or not to build static libraries.
17552 build_old_libs=$enable_static
17553
17554 # Whether or not to add -lc for building shared libraries.
17555 build_libtool_need_lc=$archive_cmds_need_lc_RC
17556
17557 # Whether or not to disallow shared libs when runtime libs are static
17558 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
17559
17560 # Whether or not to optimize for fast installation.
17561 fast_install=$enable_fast_install
17562
17563 # The host system.
17564 host_alias=$host_alias
17565 host=$host
17566
17567 # An echo program that does not interpret backslashes.
17568 echo=$lt_echo
17569
17570 # The archiver.
17571 AR=$lt_AR
17572 AR_FLAGS=$lt_AR_FLAGS
17573
17574 # A C compiler.
17575 LTCC=$lt_LTCC
17576
17577 # A language-specific compiler.
17578 CC=$lt_compiler_RC
17579
17580 # Is the compiler the GNU C compiler?
17581 with_gcc=$GCC_RC
17582
17583 # An ERE matcher.
17584 EGREP=$lt_EGREP
17585
17586 # The linker used to build libraries.
17587 LD=$lt_LD_RC
17588
17589 # Whether we need hard or soft links.
17590 LN_S=$lt_LN_S
17591
17592 # A BSD-compatible nm program.
17593 NM=$lt_NM
17594
17595 # A symbol stripping program
17596 STRIP=$STRIP
17597
17598 # Used to examine libraries when file_magic_cmd begins "file"
17599 MAGIC_CMD=$MAGIC_CMD
17600
17601 # Used on cygwin: DLL creation program.
17602 DLLTOOL="$DLLTOOL"
17603
17604 # Used on cygwin: object dumper.
17605 OBJDUMP="$OBJDUMP"
17606
17607 # Used on cygwin: assembler.
17608 AS="$AS"
17609
17610 # The name of the directory that contains temporary libtool files.
17611 objdir=$objdir
17612
17613 # How to create reloadable object files.
17614 reload_flag=$lt_reload_flag
17615 reload_cmds=$lt_reload_cmds
17616
17617 # How to pass a linker flag through the compiler.
17618 wl=$lt_lt_prog_compiler_wl_RC
17619
17620 # Object file suffix (normally "o").
17621 objext="$ac_objext"
17622
17623 # Old archive suffix (normally "a").
17624 libext="$libext"
17625
17626 # Shared library suffix (normally ".so").
17627 shrext='$shrext'
17628
17629 # Executable file suffix (normally "").
17630 exeext="$exeext"
17631
17632 # Additional compiler flags for building library objects.
17633 pic_flag=$lt_lt_prog_compiler_pic_RC
17634 pic_mode=$pic_mode
17635
17636 # What is the maximum length of a command?
17637 max_cmd_len=$lt_cv_sys_max_cmd_len
17638
17639 # Does compiler simultaneously support -c and -o options?
17640 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
17641
17642 # Must we lock files when doing compilation ?
17643 need_locks=$lt_need_locks
17644
17645 # Do we need the lib prefix for modules?
17646 need_lib_prefix=$need_lib_prefix
17647
17648 # Do we need a version for libraries?
17649 need_version=$need_version
17650
17651 # Whether dlopen is supported.
17652 dlopen_support=$enable_dlopen
17653
17654 # Whether dlopen of programs is supported.
17655 dlopen_self=$enable_dlopen_self
17656
17657 # Whether dlopen of statically linked programs is supported.
17658 dlopen_self_static=$enable_dlopen_self_static
17659
17660 # Compiler flag to prevent dynamic linking.
17661 link_static_flag=$lt_lt_prog_compiler_static_RC
17662
17663 # Compiler flag to turn off builtin functions.
17664 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
17665
17666 # Compiler flag to allow reflexive dlopens.
17667 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
17668
17669 # Compiler flag to generate shared objects directly from archives.
17670 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
17671
17672 # Compiler flag to generate thread-safe objects.
17673 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
17674
17675 # Library versioning type.
17676 version_type=$version_type
17677
17678 # Format of library name prefix.
17679 libname_spec=$lt_libname_spec
17680
17681 # List of archive names.  First name is the real one, the rest are links.
17682 # The last name is the one that the linker finds with -lNAME.
17683 library_names_spec=$lt_library_names_spec
17684
17685 # The coded name of the library, if different from the real name.
17686 soname_spec=$lt_soname_spec
17687
17688 # Commands used to build and install an old-style archive.
17689 RANLIB=$lt_RANLIB
17690 old_archive_cmds=$lt_old_archive_cmds_RC
17691 old_postinstall_cmds=$lt_old_postinstall_cmds
17692 old_postuninstall_cmds=$lt_old_postuninstall_cmds
17693
17694 # Create an old-style archive from a shared archive.
17695 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
17696
17697 # Create a temporary old-style archive to link instead of a shared archive.
17698 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
17699
17700 # Commands used to build and install a shared archive.
17701 archive_cmds=$lt_archive_cmds_RC
17702 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
17703 postinstall_cmds=$lt_postinstall_cmds
17704 postuninstall_cmds=$lt_postuninstall_cmds
17705
17706 # Commands used to build a loadable module (assumed same as above if empty)
17707 module_cmds=$lt_module_cmds_RC
17708 module_expsym_cmds=$lt_module_expsym_cmds_RC
17709
17710 # Commands to strip libraries.
17711 old_striplib=$lt_old_striplib
17712 striplib=$lt_striplib
17713
17714 # Dependencies to place before the objects being linked to create a
17715 # shared library.
17716 predep_objects=$lt_predep_objects_RC
17717
17718 # Dependencies to place after the objects being linked to create a
17719 # shared library.
17720 postdep_objects=$lt_postdep_objects_RC
17721
17722 # Dependencies to place before the objects being linked to create a
17723 # shared library.
17724 predeps=$lt_predeps_RC
17725
17726 # Dependencies to place after the objects being linked to create a
17727 # shared library.
17728 postdeps=$lt_postdeps_RC
17729
17730 # The library search path used internally by the compiler when linking
17731 # a shared library.
17732 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
17733
17734 # Method to check whether dependent libraries are shared objects.
17735 deplibs_check_method=$lt_deplibs_check_method
17736
17737 # Command to use when deplibs_check_method == file_magic.
17738 file_magic_cmd=$lt_file_magic_cmd
17739
17740 # Flag that allows shared libraries with undefined symbols to be built.
17741 allow_undefined_flag=$lt_allow_undefined_flag_RC
17742
17743 # Flag that forces no undefined symbols.
17744 no_undefined_flag=$lt_no_undefined_flag_RC
17745
17746 # Commands used to finish a libtool library installation in a directory.
17747 finish_cmds=$lt_finish_cmds
17748
17749 # Same as above, but a single script fragment to be evaled but not shown.
17750 finish_eval=$lt_finish_eval
17751
17752 # Take the output of nm and produce a listing of raw symbols and C names.
17753 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
17754
17755 # Transform the output of nm in a proper C declaration
17756 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
17757
17758 # Transform the output of nm in a C name address pair
17759 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
17760
17761 # This is the shared library runtime path variable.
17762 runpath_var=$runpath_var
17763
17764 # This is the shared library path variable.
17765 shlibpath_var=$shlibpath_var
17766
17767 # Is shlibpath searched before the hard-coded library search path?
17768 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
17769
17770 # How to hardcode a shared library path into an executable.
17771 hardcode_action=$hardcode_action_RC
17772
17773 # Whether we should hardcode library paths into libraries.
17774 hardcode_into_libs=$hardcode_into_libs
17775
17776 # Flag to hardcode \$libdir into a binary during linking.
17777 # This must work even if \$libdir does not exist.
17778 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
17779
17780 # If ld is used when linking, flag to hardcode \$libdir into
17781 # a binary during linking. This must work even if \$libdir does
17782 # not exist.
17783 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
17784
17785 # Whether we need a single -rpath flag with a separated argument.
17786 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
17787
17788 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
17789 # resulting binary.
17790 hardcode_direct=$hardcode_direct_RC
17791
17792 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
17793 # resulting binary.
17794 hardcode_minus_L=$hardcode_minus_L_RC
17795
17796 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
17797 # the resulting binary.
17798 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
17799
17800 # Set to yes if building a shared library automatically hardcodes DIR into the library
17801 # and all subsequent libraries and executables linked against it.
17802 hardcode_automatic=$hardcode_automatic_RC
17803
17804 # Variables whose values should be saved in libtool wrapper scripts and
17805 # restored at relink time.
17806 variables_saved_for_relink="$variables_saved_for_relink"
17807
17808 # Whether libtool must link a program against all its dependency libraries.
17809 link_all_deplibs=$link_all_deplibs_RC
17810
17811 # Compile-time system search path for libraries
17812 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
17813
17814 # Run-time system search path for libraries
17815 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
17816
17817 # Fix the shell variable \$srcfile for the compiler.
17818 fix_srcfile_path="$fix_srcfile_path_RC"
17819
17820 # Set to yes if exported symbols are required.
17821 always_export_symbols=$always_export_symbols_RC
17822
17823 # The commands to list exported symbols.
17824 export_symbols_cmds=$lt_export_symbols_cmds_RC
17825
17826 # The commands to extract the exported symbol list from a shared archive.
17827 extract_expsyms_cmds=$lt_extract_expsyms_cmds
17828
17829 # Symbols that should not be listed in the preloaded symbols.
17830 exclude_expsyms=$lt_exclude_expsyms_RC
17831
17832 # Symbols that must always be exported.
17833 include_expsyms=$lt_include_expsyms_RC
17834
17835 # ### END LIBTOOL TAG CONFIG: $tagname
17836
17837 __EOF__
17838
17839
17840 else
17841   # If there is no Makefile yet, we rely on a make rule to execute
17842   # `config.status --recheck' to rerun these tests and create the
17843   # libtool script then.
17844   test -f Makefile && make "$ltmain"
17845 fi
17846
17847
17848 ac_ext=c
17849 ac_cpp='$CPP $CPPFLAGS'
17850 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17851 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17852 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17853
17854 CC="$lt_save_CC"
17855
17856         ;;
17857
17858       *)
17859         { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
17860 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
17861    { (exit 1); exit 1; }; }
17862         ;;
17863       esac
17864
17865       # Append the new tag name to the list of available tags.
17866       if test -n "$tagname" ; then
17867       available_tags="$available_tags $tagname"
17868     fi
17869     fi
17870   done
17871   IFS="$lt_save_ifs"
17872
17873   # Now substitute the updated list of available tags.
17874   if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
17875     mv "${ofile}T" "$ofile"
17876     chmod +x "$ofile"
17877   else
17878     rm -f "${ofile}T"
17879     { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
17880 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
17881    { (exit 1); exit 1; }; }
17882   fi
17883 fi
17884
17885
17886
17887 # This can be used to rebuild libtool when needed
17888 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
17889
17890 # Always use our own libtool.
17891 LIBTOOL='$(SHELL) $(top_builddir)/mklib'
17892
17893 # Prevent multiple expansion
17894
17895
17896
17897
17898
17899
17900
17901
17902
17903
17904
17905
17906
17907
17908
17909
17910
17911
17912
17913
17914
17915 # Extract the first word of "pwd", so it can be a program name with args.
17916 set dummy pwd; ac_word=$2
17917 echo "$as_me:$LINENO: checking for $ac_word" >&5
17918 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
17919 if test "${ac_cv_path_RPWD+set}" = set; then
17920   echo $ECHO_N "(cached) $ECHO_C" >&6
17921 else
17922   case $RPWD in
17923   [\\/]* | ?:[\\/]*)
17924   ac_cv_path_RPWD="$RPWD" # Let the user override the test with a path.
17925   ;;
17926   *)
17927   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17928 for as_dir in $PATH
17929 do
17930   IFS=$as_save_IFS
17931   test -z "$as_dir" && as_dir=.
17932   for ac_exec_ext in '' $ac_executable_extensions; do
17933   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17934     ac_cv_path_RPWD="$as_dir/$ac_word$ac_exec_ext"
17935     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
17936     break 2
17937   fi
17938 done
17939 done
17940
17941   ;;
17942 esac
17943 fi
17944 RPWD=$ac_cv_path_RPWD
17945
17946 if test -n "$RPWD"; then
17947   echo "$as_me:$LINENO: result: $RPWD" >&5
17948 echo "${ECHO_T}$RPWD" >&6
17949 else
17950   echo "$as_me:$LINENO: result: no" >&5
17951 echo "${ECHO_T}no" >&6
17952 fi
17953
17954 # Extract the first word of "ar", so it can be a program name with args.
17955 set dummy ar; ac_word=$2
17956 echo "$as_me:$LINENO: checking for $ac_word" >&5
17957 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
17958 if test "${ac_cv_path_AR+set}" = set; then
17959   echo $ECHO_N "(cached) $ECHO_C" >&6
17960 else
17961   case $AR in
17962   [\\/]* | ?:[\\/]*)
17963   ac_cv_path_AR="$AR" # Let the user override the test with a path.
17964   ;;
17965   *)
17966   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17967 for as_dir in $PATH
17968 do
17969   IFS=$as_save_IFS
17970   test -z "$as_dir" && as_dir=.
17971   for ac_exec_ext in '' $ac_executable_extensions; do
17972   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17973     ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext"
17974     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
17975     break 2
17976   fi
17977 done
17978 done
17979
17980   ;;
17981 esac
17982 fi
17983 AR=$ac_cv_path_AR
17984
17985 if test -n "$AR"; then
17986   echo "$as_me:$LINENO: result: $AR" >&5
17987 echo "${ECHO_T}$AR" >&6
17988 else
17989   echo "$as_me:$LINENO: result: no" >&5
17990 echo "${ECHO_T}no" >&6
17991 fi
17992
17993 # Extract the first word of "sed", so it can be a program name with args.
17994 set dummy sed; ac_word=$2
17995 echo "$as_me:$LINENO: checking for $ac_word" >&5
17996 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
17997 if test "${ac_cv_path_SED+set}" = set; then
17998   echo $ECHO_N "(cached) $ECHO_C" >&6
17999 else
18000   case $SED in
18001   [\\/]* | ?:[\\/]*)
18002   ac_cv_path_SED="$SED" # Let the user override the test with a path.
18003   ;;
18004   *)
18005   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18006 for as_dir in $PATH
18007 do
18008   IFS=$as_save_IFS
18009   test -z "$as_dir" && as_dir=.
18010   for ac_exec_ext in '' $ac_executable_extensions; do
18011   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18012     ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
18013     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18014     break 2
18015   fi
18016 done
18017 done
18018
18019   ;;
18020 esac
18021 fi
18022 SED=$ac_cv_path_SED
18023
18024 if test -n "$SED"; then
18025   echo "$as_me:$LINENO: result: $SED" >&5
18026 echo "${ECHO_T}$SED" >&6
18027 else
18028   echo "$as_me:$LINENO: result: no" >&5
18029 echo "${ECHO_T}no" >&6
18030 fi
18031
18032 # Extract the first word of "rm", so it can be a program name with args.
18033 set dummy rm; ac_word=$2
18034 echo "$as_me:$LINENO: checking for $ac_word" >&5
18035 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18036 if test "${ac_cv_path_RM+set}" = set; then
18037   echo $ECHO_N "(cached) $ECHO_C" >&6
18038 else
18039   case $RM in
18040   [\\/]* | ?:[\\/]*)
18041   ac_cv_path_RM="$RM" # Let the user override the test with a path.
18042   ;;
18043   *)
18044   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18045 for as_dir in $PATH
18046 do
18047   IFS=$as_save_IFS
18048   test -z "$as_dir" && as_dir=.
18049   for ac_exec_ext in '' $ac_executable_extensions; do
18050   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18051     ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
18052     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18053     break 2
18054   fi
18055 done
18056 done
18057
18058   ;;
18059 esac
18060 fi
18061 RM=$ac_cv_path_RM
18062
18063 if test -n "$RM"; then
18064   echo "$as_me:$LINENO: result: $RM" >&5
18065 echo "${ECHO_T}$RM" >&6
18066 else
18067   echo "$as_me:$LINENO: result: no" >&5
18068 echo "${ECHO_T}no" >&6
18069 fi
18070
18071 # Extract the first word of "echo", so it can be a program name with args.
18072 set dummy echo; ac_word=$2
18073 echo "$as_me:$LINENO: checking for $ac_word" >&5
18074 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18075 if test "${ac_cv_path_ECHO+set}" = set; then
18076   echo $ECHO_N "(cached) $ECHO_C" >&6
18077 else
18078   case $ECHO in
18079   [\\/]* | ?:[\\/]*)
18080   ac_cv_path_ECHO="$ECHO" # Let the user override the test with a path.
18081   ;;
18082   *)
18083   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18084 for as_dir in $PATH
18085 do
18086   IFS=$as_save_IFS
18087   test -z "$as_dir" && as_dir=.
18088   for ac_exec_ext in '' $ac_executable_extensions; do
18089   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18090     ac_cv_path_ECHO="$as_dir/$ac_word$ac_exec_ext"
18091     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18092     break 2
18093   fi
18094 done
18095 done
18096
18097   ;;
18098 esac
18099 fi
18100 ECHO=$ac_cv_path_ECHO
18101
18102 if test -n "$ECHO"; then
18103   echo "$as_me:$LINENO: result: $ECHO" >&5
18104 echo "${ECHO_T}$ECHO" >&6
18105 else
18106   echo "$as_me:$LINENO: result: no" >&5
18107 echo "${ECHO_T}no" >&6
18108 fi
18109
18110 # Extract the first word of "mkdir", so it can be a program name with args.
18111 set dummy mkdir; ac_word=$2
18112 echo "$as_me:$LINENO: checking for $ac_word" >&5
18113 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18114 if test "${ac_cv_path_MKDIR+set}" = set; then
18115   echo $ECHO_N "(cached) $ECHO_C" >&6
18116 else
18117   case $MKDIR in
18118   [\\/]* | ?:[\\/]*)
18119   ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
18120   ;;
18121   *)
18122   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18123 for as_dir in $PATH
18124 do
18125   IFS=$as_save_IFS
18126   test -z "$as_dir" && as_dir=.
18127   for ac_exec_ext in '' $ac_executable_extensions; do
18128   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18129     ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
18130     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18131     break 2
18132   fi
18133 done
18134 done
18135
18136   ;;
18137 esac
18138 fi
18139 MKDIR=$ac_cv_path_MKDIR
18140
18141 if test -n "$MKDIR"; then
18142   echo "$as_me:$LINENO: result: $MKDIR" >&5
18143 echo "${ECHO_T}$MKDIR" >&6
18144 else
18145   echo "$as_me:$LINENO: result: no" >&5
18146 echo "${ECHO_T}no" >&6
18147 fi
18148
18149 # Extract the first word of "date", so it can be a program name with args.
18150 set dummy date; ac_word=$2
18151 echo "$as_me:$LINENO: checking for $ac_word" >&5
18152 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18153 if test "${ac_cv_path_DATE+set}" = set; then
18154   echo $ECHO_N "(cached) $ECHO_C" >&6
18155 else
18156   case $DATE in
18157   [\\/]* | ?:[\\/]*)
18158   ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
18159   ;;
18160   *)
18161   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18162 for as_dir in $PATH
18163 do
18164   IFS=$as_save_IFS
18165   test -z "$as_dir" && as_dir=.
18166   for ac_exec_ext in '' $ac_executable_extensions; do
18167   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18168     ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
18169     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18170     break 2
18171   fi
18172 done
18173 done
18174
18175   ;;
18176 esac
18177 fi
18178 DATE=$ac_cv_path_DATE
18179
18180 if test -n "$DATE"; then
18181   echo "$as_me:$LINENO: result: $DATE" >&5
18182 echo "${ECHO_T}$DATE" >&6
18183 else
18184   echo "$as_me:$LINENO: result: no" >&5
18185 echo "${ECHO_T}no" >&6
18186 fi
18187
18188 # Extract the first word of "mv", so it can be a program name with args.
18189 set dummy mv; ac_word=$2
18190 echo "$as_me:$LINENO: checking for $ac_word" >&5
18191 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18192 if test "${ac_cv_path_MV+set}" = set; then
18193   echo $ECHO_N "(cached) $ECHO_C" >&6
18194 else
18195   case $MV in
18196   [\\/]* | ?:[\\/]*)
18197   ac_cv_path_MV="$MV" # Let the user override the test with a path.
18198   ;;
18199   *)
18200   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18201 for as_dir in $PATH
18202 do
18203   IFS=$as_save_IFS
18204   test -z "$as_dir" && as_dir=.
18205   for ac_exec_ext in '' $ac_executable_extensions; do
18206   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18207     ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
18208     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18209     break 2
18210   fi
18211 done
18212 done
18213
18214   ;;
18215 esac
18216 fi
18217 MV=$ac_cv_path_MV
18218
18219 if test -n "$MV"; then
18220   echo "$as_me:$LINENO: result: $MV" >&5
18221 echo "${ECHO_T}$MV" >&6
18222 else
18223   echo "$as_me:$LINENO: result: no" >&5
18224 echo "${ECHO_T}no" >&6
18225 fi
18226
18227 # Extract the first word of "dot", so it can be a program name with args.
18228 set dummy dot; ac_word=$2
18229 echo "$as_me:$LINENO: checking for $ac_word" >&5
18230 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18231 if test "${ac_cv_path_DOT+set}" = set; then
18232   echo $ECHO_N "(cached) $ECHO_C" >&6
18233 else
18234   case $DOT in
18235   [\\/]* | ?:[\\/]*)
18236   ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
18237   ;;
18238   *)
18239   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18240 for as_dir in $PATH
18241 do
18242   IFS=$as_save_IFS
18243   test -z "$as_dir" && as_dir=.
18244   for ac_exec_ext in '' $ac_executable_extensions; do
18245   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18246     ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
18247     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18248     break 2
18249   fi
18250 done
18251 done
18252
18253   ;;
18254 esac
18255 fi
18256 DOT=$ac_cv_path_DOT
18257
18258 if test -n "$DOT"; then
18259   echo "$as_me:$LINENO: result: $DOT" >&5
18260 echo "${ECHO_T}$DOT" >&6
18261 else
18262   echo "$as_me:$LINENO: result: no" >&5
18263 echo "${ECHO_T}no" >&6
18264 fi
18265
18266 # Extract the first word of "etags", so it can be a program name with args.
18267 set dummy etags; ac_word=$2
18268 echo "$as_me:$LINENO: checking for $ac_word" >&5
18269 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18270 if test "${ac_cv_path_ETAGS+set}" = set; then
18271   echo $ECHO_N "(cached) $ECHO_C" >&6
18272 else
18273   case $ETAGS in
18274   [\\/]* | ?:[\\/]*)
18275   ac_cv_path_ETAGS="$ETAGS" # Let the user override the test with a path.
18276   ;;
18277   *)
18278   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18279 for as_dir in $PATH
18280 do
18281   IFS=$as_save_IFS
18282   test -z "$as_dir" && as_dir=.
18283   for ac_exec_ext in '' $ac_executable_extensions; do
18284   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18285     ac_cv_path_ETAGS="$as_dir/$ac_word$ac_exec_ext"
18286     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18287     break 2
18288   fi
18289 done
18290 done
18291
18292   ;;
18293 esac
18294 fi
18295 ETAGS=$ac_cv_path_ETAGS
18296
18297 if test -n "$ETAGS"; then
18298   echo "$as_me:$LINENO: result: $ETAGS" >&5
18299 echo "${ECHO_T}$ETAGS" >&6
18300 else
18301   echo "$as_me:$LINENO: result: no" >&5
18302 echo "${ECHO_T}no" >&6
18303 fi
18304
18305 # Extract the first word of "purify", so it can be a program name with args.
18306 set dummy purify; ac_word=$2
18307 echo "$as_me:$LINENO: checking for $ac_word" >&5
18308 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18309 if test "${ac_cv_path_PURIFY+set}" = set; then
18310   echo $ECHO_N "(cached) $ECHO_C" >&6
18311 else
18312   case $PURIFY in
18313   [\\/]* | ?:[\\/]*)
18314   ac_cv_path_PURIFY="$PURIFY" # Let the user override the test with a path.
18315   ;;
18316   *)
18317   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18318 for as_dir in $PATH
18319 do
18320   IFS=$as_save_IFS
18321   test -z "$as_dir" && as_dir=.
18322   for ac_exec_ext in '' $ac_executable_extensions; do
18323   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18324     ac_cv_path_PURIFY="$as_dir/$ac_word$ac_exec_ext"
18325     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18326     break 2
18327   fi
18328 done
18329 done
18330
18331   ;;
18332 esac
18333 fi
18334 PURIFY=$ac_cv_path_PURIFY
18335
18336 if test -n "$PURIFY"; then
18337   echo "$as_me:$LINENO: result: $PURIFY" >&5
18338 echo "${ECHO_T}$PURIFY" >&6
18339 else
18340   echo "$as_me:$LINENO: result: no" >&5
18341 echo "${ECHO_T}no" >&6
18342 fi
18343
18344 # Extract the first word of "python", so it can be a program name with args.
18345 set dummy python; ac_word=$2
18346 echo "$as_me:$LINENO: checking for $ac_word" >&5
18347 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18348 if test "${ac_cv_path_PYTHON+set}" = set; then
18349   echo $ECHO_N "(cached) $ECHO_C" >&6
18350 else
18351   case $PYTHON in
18352   [\\/]* | ?:[\\/]*)
18353   ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
18354   ;;
18355   *)
18356   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18357 for as_dir in $PATH
18358 do
18359   IFS=$as_save_IFS
18360   test -z "$as_dir" && as_dir=.
18361   for ac_exec_ext in '' $ac_executable_extensions; do
18362   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18363     ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
18364     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18365     break 2
18366   fi
18367 done
18368 done
18369
18370   ;;
18371 esac
18372 fi
18373 PYTHON=$ac_cv_path_PYTHON
18374
18375 if test -n "$PYTHON"; then
18376   echo "$as_me:$LINENO: result: $PYTHON" >&5
18377 echo "${ECHO_T}$PYTHON" >&6
18378 else
18379   echo "$as_me:$LINENO: result: no" >&5
18380 echo "${ECHO_T}no" >&6
18381 fi
18382
18383 # Extract the first word of "qmtest", so it can be a program name with args.
18384 set dummy qmtest; ac_word=$2
18385 echo "$as_me:$LINENO: checking for $ac_word" >&5
18386 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18387 if test "${ac_cv_path_QMTEST+set}" = set; then
18388   echo $ECHO_N "(cached) $ECHO_C" >&6
18389 else
18390   case $QMTEST in
18391   [\\/]* | ?:[\\/]*)
18392   ac_cv_path_QMTEST="$QMTEST" # Let the user override the test with a path.
18393   ;;
18394   *)
18395   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18396 for as_dir in $PATH
18397 do
18398   IFS=$as_save_IFS
18399   test -z "$as_dir" && as_dir=.
18400   for ac_exec_ext in '' $ac_executable_extensions; do
18401   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18402     ac_cv_path_QMTEST="$as_dir/$ac_word$ac_exec_ext"
18403     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18404     break 2
18405   fi
18406 done
18407 done
18408
18409   ;;
18410 esac
18411 fi
18412 QMTEST=$ac_cv_path_QMTEST
18413
18414 if test -n "$QMTEST"; then
18415   echo "$as_me:$LINENO: result: $QMTEST" >&5
18416 echo "${ECHO_T}$QMTEST" >&6
18417 else
18418   echo "$as_me:$LINENO: result: no" >&5
18419 echo "${ECHO_T}no" >&6
18420 fi
18421
18422
18423 pyversion=`$PYTHON -V 2>&1 | cut -d\  -f2`
18424 pymajor=`echo $pyversion | cut -d. -f1`
18425 pyminor=`echo $pyversion | cut -d. -f2`
18426
18427 if test "$pymajor" -ge "2"
18428 then
18429         if test "$pymajor" -eq "2"
18430         then
18431                 if test "$pyminor" -lt "2"
18432                 then
18433                         { { echo "$as_me:$LINENO: error: Python 2.2 or greater required" >&5
18434 echo "$as_me: error: Python 2.2 or greater required" >&2;}
18435    { (exit 1); exit 1; }; }
18436                 fi
18437         fi
18438 else
18439         { { echo "$as_me:$LINENO: error: Python 2.2 or greater required" >&5
18440 echo "$as_me: error: Python 2.2 or greater required" >&2;}
18441    { (exit 1); exit 1; }; }
18442 fi
18443
18444
18445
18446
18447
18448 echo "$as_me:$LINENO: checking for elf_begin in -lelf" >&5
18449 echo $ECHO_N "checking for elf_begin in -lelf... $ECHO_C" >&6
18450 if test "${ac_cv_lib_elf_elf_begin+set}" = set; then
18451   echo $ECHO_N "(cached) $ECHO_C" >&6
18452 else
18453   ac_check_lib_save_LIBS=$LIBS
18454 LIBS="-lelf  $LIBS"
18455 cat >conftest.$ac_ext <<_ACEOF
18456 #line $LINENO "configure"
18457 /* confdefs.h.  */
18458 _ACEOF
18459 cat confdefs.h >>conftest.$ac_ext
18460 cat >>conftest.$ac_ext <<_ACEOF
18461 /* end confdefs.h.  */
18462
18463 /* Override any gcc2 internal prototype to avoid an error.  */
18464 #ifdef __cplusplus
18465 extern "C"
18466 #endif
18467 /* We use char because int might match the return type of a gcc2
18468    builtin and then its argument prototype would still apply.  */
18469 char elf_begin ();
18470 int
18471 main ()
18472 {
18473 elf_begin ();
18474   ;
18475   return 0;
18476 }
18477 _ACEOF
18478 rm -f conftest.$ac_objext conftest$ac_exeext
18479 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18480   (eval $ac_link) 2>&5
18481   ac_status=$?
18482   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18483   (exit $ac_status); } &&
18484          { ac_try='test -s conftest$ac_exeext'
18485   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18486   (eval $ac_try) 2>&5
18487   ac_status=$?
18488   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18489   (exit $ac_status); }; }; then
18490   ac_cv_lib_elf_elf_begin=yes
18491 else
18492   echo "$as_me: failed program was:" >&5
18493 sed 's/^/| /' conftest.$ac_ext >&5
18494
18495 ac_cv_lib_elf_elf_begin=no
18496 fi
18497 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18498 LIBS=$ac_check_lib_save_LIBS
18499 fi
18500 echo "$as_me:$LINENO: result: $ac_cv_lib_elf_elf_begin" >&5
18501 echo "${ECHO_T}$ac_cv_lib_elf_elf_begin" >&6
18502 if test $ac_cv_lib_elf_elf_begin = yes; then
18503   cat >>confdefs.h <<_ACEOF
18504 #define HAVE_LIBELF 1
18505 _ACEOF
18506
18507   LIBS="-lelf $LIBS"
18508
18509 fi
18510
18511
18512 echo "$as_me:$LINENO: checking for library containing dlopen" >&5
18513 echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6
18514 if test "${ac_cv_search_dlopen+set}" = set; then
18515   echo $ECHO_N "(cached) $ECHO_C" >&6
18516 else
18517   ac_func_search_save_LIBS=$LIBS
18518 ac_cv_search_dlopen=no
18519 cat >conftest.$ac_ext <<_ACEOF
18520 #line $LINENO "configure"
18521 /* confdefs.h.  */
18522 _ACEOF
18523 cat confdefs.h >>conftest.$ac_ext
18524 cat >>conftest.$ac_ext <<_ACEOF
18525 /* end confdefs.h.  */
18526
18527 /* Override any gcc2 internal prototype to avoid an error.  */
18528 #ifdef __cplusplus
18529 extern "C"
18530 #endif
18531 /* We use char because int might match the return type of a gcc2
18532    builtin and then its argument prototype would still apply.  */
18533 char dlopen ();
18534 int
18535 main ()
18536 {
18537 dlopen ();
18538   ;
18539   return 0;
18540 }
18541 _ACEOF
18542 rm -f conftest.$ac_objext conftest$ac_exeext
18543 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18544   (eval $ac_link) 2>&5
18545   ac_status=$?
18546   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18547   (exit $ac_status); } &&
18548          { ac_try='test -s conftest$ac_exeext'
18549   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18550   (eval $ac_try) 2>&5
18551   ac_status=$?
18552   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18553   (exit $ac_status); }; }; then
18554   ac_cv_search_dlopen="none required"
18555 else
18556   echo "$as_me: failed program was:" >&5
18557 sed 's/^/| /' conftest.$ac_ext >&5
18558
18559 fi
18560 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18561 if test "$ac_cv_search_dlopen" = no; then
18562   for ac_lib in dl; do
18563     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
18564     cat >conftest.$ac_ext <<_ACEOF
18565 #line $LINENO "configure"
18566 /* confdefs.h.  */
18567 _ACEOF
18568 cat confdefs.h >>conftest.$ac_ext
18569 cat >>conftest.$ac_ext <<_ACEOF
18570 /* end confdefs.h.  */
18571
18572 /* Override any gcc2 internal prototype to avoid an error.  */
18573 #ifdef __cplusplus
18574 extern "C"
18575 #endif
18576 /* We use char because int might match the return type of a gcc2
18577    builtin and then its argument prototype would still apply.  */
18578 char dlopen ();
18579 int
18580 main ()
18581 {
18582 dlopen ();
18583   ;
18584   return 0;
18585 }
18586 _ACEOF
18587 rm -f conftest.$ac_objext conftest$ac_exeext
18588 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18589   (eval $ac_link) 2>&5
18590   ac_status=$?
18591   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18592   (exit $ac_status); } &&
18593          { ac_try='test -s conftest$ac_exeext'
18594   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18595   (eval $ac_try) 2>&5
18596   ac_status=$?
18597   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18598   (exit $ac_status); }; }; then
18599   ac_cv_search_dlopen="-l$ac_lib"
18600 break
18601 else
18602   echo "$as_me: failed program was:" >&5
18603 sed 's/^/| /' conftest.$ac_ext >&5
18604
18605 fi
18606 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18607   done
18608 fi
18609 LIBS=$ac_func_search_save_LIBS
18610 fi
18611 echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
18612 echo "${ECHO_T}$ac_cv_search_dlopen" >&6
18613 if test "$ac_cv_search_dlopen" != no; then
18614   test "$ac_cv_search_dlopen" = "none required" || LIBS="$ac_cv_search_dlopen $LIBS"
18615
18616 else
18617   { { echo "$as_me:$LINENO: error: dlopen() required but not found" >&5
18618 echo "$as_me: error: dlopen() required but not found" >&2;}
18619    { (exit 1); exit 1; }; }
18620 fi
18621
18622
18623 echo "$as_me:$LINENO: checking for library containing mallinfo" >&5
18624 echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6
18625 if test "${ac_cv_search_mallinfo+set}" = set; then
18626   echo $ECHO_N "(cached) $ECHO_C" >&6
18627 else
18628   ac_func_search_save_LIBS=$LIBS
18629 ac_cv_search_mallinfo=no
18630 cat >conftest.$ac_ext <<_ACEOF
18631 #line $LINENO "configure"
18632 /* confdefs.h.  */
18633 _ACEOF
18634 cat confdefs.h >>conftest.$ac_ext
18635 cat >>conftest.$ac_ext <<_ACEOF
18636 /* end confdefs.h.  */
18637
18638 /* Override any gcc2 internal prototype to avoid an error.  */
18639 #ifdef __cplusplus
18640 extern "C"
18641 #endif
18642 /* We use char because int might match the return type of a gcc2
18643    builtin and then its argument prototype would still apply.  */
18644 char mallinfo ();
18645 int
18646 main ()
18647 {
18648 mallinfo ();
18649   ;
18650   return 0;
18651 }
18652 _ACEOF
18653 rm -f conftest.$ac_objext conftest$ac_exeext
18654 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18655   (eval $ac_link) 2>&5
18656   ac_status=$?
18657   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18658   (exit $ac_status); } &&
18659          { ac_try='test -s conftest$ac_exeext'
18660   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18661   (eval $ac_try) 2>&5
18662   ac_status=$?
18663   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18664   (exit $ac_status); }; }; then
18665   ac_cv_search_mallinfo="none required"
18666 else
18667   echo "$as_me: failed program was:" >&5
18668 sed 's/^/| /' conftest.$ac_ext >&5
18669
18670 fi
18671 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18672 if test "$ac_cv_search_mallinfo" = no; then
18673   for ac_lib in malloc; do
18674     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
18675     cat >conftest.$ac_ext <<_ACEOF
18676 #line $LINENO "configure"
18677 /* confdefs.h.  */
18678 _ACEOF
18679 cat confdefs.h >>conftest.$ac_ext
18680 cat >>conftest.$ac_ext <<_ACEOF
18681 /* end confdefs.h.  */
18682
18683 /* Override any gcc2 internal prototype to avoid an error.  */
18684 #ifdef __cplusplus
18685 extern "C"
18686 #endif
18687 /* We use char because int might match the return type of a gcc2
18688    builtin and then its argument prototype would still apply.  */
18689 char mallinfo ();
18690 int
18691 main ()
18692 {
18693 mallinfo ();
18694   ;
18695   return 0;
18696 }
18697 _ACEOF
18698 rm -f conftest.$ac_objext conftest$ac_exeext
18699 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18700   (eval $ac_link) 2>&5
18701   ac_status=$?
18702   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18703   (exit $ac_status); } &&
18704          { ac_try='test -s conftest$ac_exeext'
18705   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18706   (eval $ac_try) 2>&5
18707   ac_status=$?
18708   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18709   (exit $ac_status); }; }; then
18710   ac_cv_search_mallinfo="-l$ac_lib"
18711 break
18712 else
18713   echo "$as_me: failed program was:" >&5
18714 sed 's/^/| /' conftest.$ac_ext >&5
18715
18716 fi
18717 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18718   done
18719 fi
18720 LIBS=$ac_func_search_save_LIBS
18721 fi
18722 echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5
18723 echo "${ECHO_T}$ac_cv_search_mallinfo" >&6
18724 if test "$ac_cv_search_mallinfo" != no; then
18725   test "$ac_cv_search_mallinfo" = "none required" || LIBS="$ac_cv_search_mallinfo $LIBS"
18726   cat >>confdefs.h <<\_ACEOF
18727 #define HAVE_MALLINFO 1
18728 _ACEOF
18729
18730 fi
18731
18732
18733
18734 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
18735 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
18736 if test "${ac_cv_header_stdc+set}" = set; then
18737   echo $ECHO_N "(cached) $ECHO_C" >&6
18738 else
18739   cat >conftest.$ac_ext <<_ACEOF
18740 #line $LINENO "configure"
18741 /* confdefs.h.  */
18742 _ACEOF
18743 cat confdefs.h >>conftest.$ac_ext
18744 cat >>conftest.$ac_ext <<_ACEOF
18745 /* end confdefs.h.  */
18746 #include <stdlib.h>
18747 #include <stdarg.h>
18748 #include <string.h>
18749 #include <float.h>
18750
18751 int
18752 main ()
18753 {
18754
18755   ;
18756   return 0;
18757 }
18758 _ACEOF
18759 rm -f conftest.$ac_objext
18760 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18761   (eval $ac_compile) 2>&5
18762   ac_status=$?
18763   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18764   (exit $ac_status); } &&
18765          { ac_try='test -s conftest.$ac_objext'
18766   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18767   (eval $ac_try) 2>&5
18768   ac_status=$?
18769   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18770   (exit $ac_status); }; }; then
18771   ac_cv_header_stdc=yes
18772 else
18773   echo "$as_me: failed program was:" >&5
18774 sed 's/^/| /' conftest.$ac_ext >&5
18775
18776 ac_cv_header_stdc=no
18777 fi
18778 rm -f conftest.$ac_objext conftest.$ac_ext
18779
18780 if test $ac_cv_header_stdc = yes; then
18781   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
18782   cat >conftest.$ac_ext <<_ACEOF
18783 #line $LINENO "configure"
18784 /* confdefs.h.  */
18785 _ACEOF
18786 cat confdefs.h >>conftest.$ac_ext
18787 cat >>conftest.$ac_ext <<_ACEOF
18788 /* end confdefs.h.  */
18789 #include <string.h>
18790
18791 _ACEOF
18792 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18793   $EGREP "memchr" >/dev/null 2>&1; then
18794   :
18795 else
18796   ac_cv_header_stdc=no
18797 fi
18798 rm -f conftest*
18799
18800 fi
18801
18802 if test $ac_cv_header_stdc = yes; then
18803   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
18804   cat >conftest.$ac_ext <<_ACEOF
18805 #line $LINENO "configure"
18806 /* confdefs.h.  */
18807 _ACEOF
18808 cat confdefs.h >>conftest.$ac_ext
18809 cat >>conftest.$ac_ext <<_ACEOF
18810 /* end confdefs.h.  */
18811 #include <stdlib.h>
18812
18813 _ACEOF
18814 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18815   $EGREP "free" >/dev/null 2>&1; then
18816   :
18817 else
18818   ac_cv_header_stdc=no
18819 fi
18820 rm -f conftest*
18821
18822 fi
18823
18824 if test $ac_cv_header_stdc = yes; then
18825   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
18826   if test "$cross_compiling" = yes; then
18827   :
18828 else
18829   cat >conftest.$ac_ext <<_ACEOF
18830 #line $LINENO "configure"
18831 /* confdefs.h.  */
18832 _ACEOF
18833 cat confdefs.h >>conftest.$ac_ext
18834 cat >>conftest.$ac_ext <<_ACEOF
18835 /* end confdefs.h.  */
18836 #include <ctype.h>
18837 #if ((' ' & 0x0FF) == 0x020)
18838 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
18839 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
18840 #else
18841 # define ISLOWER(c) \
18842                    (('a' <= (c) && (c) <= 'i') \
18843                      || ('j' <= (c) && (c) <= 'r') \
18844                      || ('s' <= (c) && (c) <= 'z'))
18845 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
18846 #endif
18847
18848 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
18849 int
18850 main ()
18851 {
18852   int i;
18853   for (i = 0; i < 256; i++)
18854     if (XOR (islower (i), ISLOWER (i))
18855         || toupper (i) != TOUPPER (i))
18856       exit(2);
18857   exit (0);
18858 }
18859 _ACEOF
18860 rm -f conftest$ac_exeext
18861 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18862   (eval $ac_link) 2>&5
18863   ac_status=$?
18864   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18865   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18866   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18867   (eval $ac_try) 2>&5
18868   ac_status=$?
18869   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18870   (exit $ac_status); }; }; then
18871   :
18872 else
18873   echo "$as_me: program exited with status $ac_status" >&5
18874 echo "$as_me: failed program was:" >&5
18875 sed 's/^/| /' conftest.$ac_ext >&5
18876
18877 ( exit $ac_status )
18878 ac_cv_header_stdc=no
18879 fi
18880 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18881 fi
18882 fi
18883 fi
18884 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
18885 echo "${ECHO_T}$ac_cv_header_stdc" >&6
18886 if test $ac_cv_header_stdc = yes; then
18887
18888 cat >>confdefs.h <<\_ACEOF
18889 #define STDC_HEADERS 1
18890 _ACEOF
18891
18892 fi
18893
18894 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
18895 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
18896 if test "${ac_cv_header_sys_wait_h+set}" = set; then
18897   echo $ECHO_N "(cached) $ECHO_C" >&6
18898 else
18899   cat >conftest.$ac_ext <<_ACEOF
18900 #line $LINENO "configure"
18901 /* confdefs.h.  */
18902 _ACEOF
18903 cat confdefs.h >>conftest.$ac_ext
18904 cat >>conftest.$ac_ext <<_ACEOF
18905 /* end confdefs.h.  */
18906 #include <sys/types.h>
18907 #include <sys/wait.h>
18908 #ifndef WEXITSTATUS
18909 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
18910 #endif
18911 #ifndef WIFEXITED
18912 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
18913 #endif
18914
18915 int
18916 main ()
18917 {
18918   int s;
18919   wait (&s);
18920   s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
18921   ;
18922   return 0;
18923 }
18924 _ACEOF
18925 rm -f conftest.$ac_objext
18926 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18927   (eval $ac_compile) 2>&5
18928   ac_status=$?
18929   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18930   (exit $ac_status); } &&
18931          { ac_try='test -s conftest.$ac_objext'
18932   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18933   (eval $ac_try) 2>&5
18934   ac_status=$?
18935   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18936   (exit $ac_status); }; }; then
18937   ac_cv_header_sys_wait_h=yes
18938 else
18939   echo "$as_me: failed program was:" >&5
18940 sed 's/^/| /' conftest.$ac_ext >&5
18941
18942 ac_cv_header_sys_wait_h=no
18943 fi
18944 rm -f conftest.$ac_objext conftest.$ac_ext
18945 fi
18946 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
18947 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
18948 if test $ac_cv_header_sys_wait_h = yes; then
18949
18950 cat >>confdefs.h <<\_ACEOF
18951 #define HAVE_SYS_WAIT_H 1
18952 _ACEOF
18953
18954 fi
18955
18956
18957
18958
18959
18960
18961
18962
18963
18964
18965 for ac_header in assert.h fcntl.h limits.h sys/time.h unistd.h errno.h signal.h math.h
18966 do
18967 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18968 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18969   echo "$as_me:$LINENO: checking for $ac_header" >&5
18970 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18971 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18972   echo $ECHO_N "(cached) $ECHO_C" >&6
18973 fi
18974 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18975 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18976 else
18977   # Is the header compilable?
18978 echo "$as_me:$LINENO: checking $ac_header usability" >&5
18979 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
18980 cat >conftest.$ac_ext <<_ACEOF
18981 #line $LINENO "configure"
18982 /* confdefs.h.  */
18983 _ACEOF
18984 cat confdefs.h >>conftest.$ac_ext
18985 cat >>conftest.$ac_ext <<_ACEOF
18986 /* end confdefs.h.  */
18987 $ac_includes_default
18988 #include <$ac_header>
18989 _ACEOF
18990 rm -f conftest.$ac_objext
18991 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18992   (eval $ac_compile) 2>&5
18993   ac_status=$?
18994   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18995   (exit $ac_status); } &&
18996          { ac_try='test -s conftest.$ac_objext'
18997   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18998   (eval $ac_try) 2>&5
18999   ac_status=$?
19000   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19001   (exit $ac_status); }; }; then
19002   ac_header_compiler=yes
19003 else
19004   echo "$as_me: failed program was:" >&5
19005 sed 's/^/| /' conftest.$ac_ext >&5
19006
19007 ac_header_compiler=no
19008 fi
19009 rm -f conftest.$ac_objext conftest.$ac_ext
19010 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19011 echo "${ECHO_T}$ac_header_compiler" >&6
19012
19013 # Is the header present?
19014 echo "$as_me:$LINENO: checking $ac_header presence" >&5
19015 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19016 cat >conftest.$ac_ext <<_ACEOF
19017 #line $LINENO "configure"
19018 /* confdefs.h.  */
19019 _ACEOF
19020 cat confdefs.h >>conftest.$ac_ext
19021 cat >>conftest.$ac_ext <<_ACEOF
19022 /* end confdefs.h.  */
19023 #include <$ac_header>
19024 _ACEOF
19025 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19026   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19027   ac_status=$?
19028   grep -v '^ *+' conftest.er1 >conftest.err
19029   rm -f conftest.er1
19030   cat conftest.err >&5
19031   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19032   (exit $ac_status); } >/dev/null; then
19033   if test -s conftest.err; then
19034     ac_cpp_err=$ac_c_preproc_warn_flag
19035   else
19036     ac_cpp_err=
19037   fi
19038 else
19039   ac_cpp_err=yes
19040 fi
19041 if test -z "$ac_cpp_err"; then
19042   ac_header_preproc=yes
19043 else
19044   echo "$as_me: failed program was:" >&5
19045 sed 's/^/| /' conftest.$ac_ext >&5
19046
19047   ac_header_preproc=no
19048 fi
19049 rm -f conftest.err conftest.$ac_ext
19050 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19051 echo "${ECHO_T}$ac_header_preproc" >&6
19052
19053 # So?  What about this header?
19054 case $ac_header_compiler:$ac_header_preproc in
19055   yes:no )
19056     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19057 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19058     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19059 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19060     (
19061       cat <<\_ASBOX
19062 ## ------------------------------------ ##
19063 ## Report this to bug-autoconf@gnu.org. ##
19064 ## ------------------------------------ ##
19065 _ASBOX
19066     ) |
19067       sed "s/^/$as_me: WARNING:     /" >&2
19068     ;;
19069   no:yes )
19070     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19071 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19072     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19073 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19074     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19075 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19076     (
19077       cat <<\_ASBOX
19078 ## ------------------------------------ ##
19079 ## Report this to bug-autoconf@gnu.org. ##
19080 ## ------------------------------------ ##
19081 _ASBOX
19082     ) |
19083       sed "s/^/$as_me: WARNING:     /" >&2
19084     ;;
19085 esac
19086 echo "$as_me:$LINENO: checking for $ac_header" >&5
19087 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19088 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19089   echo $ECHO_N "(cached) $ECHO_C" >&6
19090 else
19091   eval "$as_ac_Header=$ac_header_preproc"
19092 fi
19093 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19094 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19095
19096 fi
19097 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19098   cat >>confdefs.h <<_ACEOF
19099 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19100 _ACEOF
19101
19102 fi
19103
19104 done
19105
19106
19107
19108
19109
19110
19111 for ac_header in malloc.h strings.h sys/mman.h sys/resource.h
19112 do
19113 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19114 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19115   echo "$as_me:$LINENO: checking for $ac_header" >&5
19116 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19117 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19118   echo $ECHO_N "(cached) $ECHO_C" >&6
19119 fi
19120 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19121 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19122 else
19123   # Is the header compilable?
19124 echo "$as_me:$LINENO: checking $ac_header usability" >&5
19125 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19126 cat >conftest.$ac_ext <<_ACEOF
19127 #line $LINENO "configure"
19128 /* confdefs.h.  */
19129 _ACEOF
19130 cat confdefs.h >>conftest.$ac_ext
19131 cat >>conftest.$ac_ext <<_ACEOF
19132 /* end confdefs.h.  */
19133 $ac_includes_default
19134 #include <$ac_header>
19135 _ACEOF
19136 rm -f conftest.$ac_objext
19137 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19138   (eval $ac_compile) 2>&5
19139   ac_status=$?
19140   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19141   (exit $ac_status); } &&
19142          { ac_try='test -s conftest.$ac_objext'
19143   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19144   (eval $ac_try) 2>&5
19145   ac_status=$?
19146   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19147   (exit $ac_status); }; }; then
19148   ac_header_compiler=yes
19149 else
19150   echo "$as_me: failed program was:" >&5
19151 sed 's/^/| /' conftest.$ac_ext >&5
19152
19153 ac_header_compiler=no
19154 fi
19155 rm -f conftest.$ac_objext conftest.$ac_ext
19156 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19157 echo "${ECHO_T}$ac_header_compiler" >&6
19158
19159 # Is the header present?
19160 echo "$as_me:$LINENO: checking $ac_header presence" >&5
19161 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19162 cat >conftest.$ac_ext <<_ACEOF
19163 #line $LINENO "configure"
19164 /* confdefs.h.  */
19165 _ACEOF
19166 cat confdefs.h >>conftest.$ac_ext
19167 cat >>conftest.$ac_ext <<_ACEOF
19168 /* end confdefs.h.  */
19169 #include <$ac_header>
19170 _ACEOF
19171 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19172   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19173   ac_status=$?
19174   grep -v '^ *+' conftest.er1 >conftest.err
19175   rm -f conftest.er1
19176   cat conftest.err >&5
19177   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19178   (exit $ac_status); } >/dev/null; then
19179   if test -s conftest.err; then
19180     ac_cpp_err=$ac_c_preproc_warn_flag
19181   else
19182     ac_cpp_err=
19183   fi
19184 else
19185   ac_cpp_err=yes
19186 fi
19187 if test -z "$ac_cpp_err"; then
19188   ac_header_preproc=yes
19189 else
19190   echo "$as_me: failed program was:" >&5
19191 sed 's/^/| /' conftest.$ac_ext >&5
19192
19193   ac_header_preproc=no
19194 fi
19195 rm -f conftest.err conftest.$ac_ext
19196 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19197 echo "${ECHO_T}$ac_header_preproc" >&6
19198
19199 # So?  What about this header?
19200 case $ac_header_compiler:$ac_header_preproc in
19201   yes:no )
19202     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19203 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19204     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19205 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19206     (
19207       cat <<\_ASBOX
19208 ## ------------------------------------ ##
19209 ## Report this to bug-autoconf@gnu.org. ##
19210 ## ------------------------------------ ##
19211 _ASBOX
19212     ) |
19213       sed "s/^/$as_me: WARNING:     /" >&2
19214     ;;
19215   no:yes )
19216     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19217 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19218     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19219 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19220     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19221 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19222     (
19223       cat <<\_ASBOX
19224 ## ------------------------------------ ##
19225 ## Report this to bug-autoconf@gnu.org. ##
19226 ## ------------------------------------ ##
19227 _ASBOX
19228     ) |
19229       sed "s/^/$as_me: WARNING:     /" >&2
19230     ;;
19231 esac
19232 echo "$as_me:$LINENO: checking for $ac_header" >&5
19233 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19234 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19235   echo $ECHO_N "(cached) $ECHO_C" >&6
19236 else
19237   eval "$as_ac_Header=$ac_header_preproc"
19238 fi
19239 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19240 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19241
19242 fi
19243 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19244   cat >>confdefs.h <<_ACEOF
19245 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19246 _ACEOF
19247
19248 fi
19249
19250 done
19251
19252
19253
19254
19255 for ac_header in dlfcn.h link.h
19256 do
19257 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19258 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19259   echo "$as_me:$LINENO: checking for $ac_header" >&5
19260 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19261 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19262   echo $ECHO_N "(cached) $ECHO_C" >&6
19263 fi
19264 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19265 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19266 else
19267   # Is the header compilable?
19268 echo "$as_me:$LINENO: checking $ac_header usability" >&5
19269 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19270 cat >conftest.$ac_ext <<_ACEOF
19271 #line $LINENO "configure"
19272 /* confdefs.h.  */
19273 _ACEOF
19274 cat confdefs.h >>conftest.$ac_ext
19275 cat >>conftest.$ac_ext <<_ACEOF
19276 /* end confdefs.h.  */
19277 $ac_includes_default
19278 #include <$ac_header>
19279 _ACEOF
19280 rm -f conftest.$ac_objext
19281 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19282   (eval $ac_compile) 2>&5
19283   ac_status=$?
19284   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19285   (exit $ac_status); } &&
19286          { ac_try='test -s conftest.$ac_objext'
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); }; }; then
19292   ac_header_compiler=yes
19293 else
19294   echo "$as_me: failed program was:" >&5
19295 sed 's/^/| /' conftest.$ac_ext >&5
19296
19297 ac_header_compiler=no
19298 fi
19299 rm -f conftest.$ac_objext conftest.$ac_ext
19300 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19301 echo "${ECHO_T}$ac_header_compiler" >&6
19302
19303 # Is the header present?
19304 echo "$as_me:$LINENO: checking $ac_header presence" >&5
19305 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19306 cat >conftest.$ac_ext <<_ACEOF
19307 #line $LINENO "configure"
19308 /* confdefs.h.  */
19309 _ACEOF
19310 cat confdefs.h >>conftest.$ac_ext
19311 cat >>conftest.$ac_ext <<_ACEOF
19312 /* end confdefs.h.  */
19313 #include <$ac_header>
19314 _ACEOF
19315 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19316   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19317   ac_status=$?
19318   grep -v '^ *+' conftest.er1 >conftest.err
19319   rm -f conftest.er1
19320   cat conftest.err >&5
19321   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19322   (exit $ac_status); } >/dev/null; then
19323   if test -s conftest.err; then
19324     ac_cpp_err=$ac_c_preproc_warn_flag
19325   else
19326     ac_cpp_err=
19327   fi
19328 else
19329   ac_cpp_err=yes
19330 fi
19331 if test -z "$ac_cpp_err"; then
19332   ac_header_preproc=yes
19333 else
19334   echo "$as_me: failed program was:" >&5
19335 sed 's/^/| /' conftest.$ac_ext >&5
19336
19337   ac_header_preproc=no
19338 fi
19339 rm -f conftest.err conftest.$ac_ext
19340 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19341 echo "${ECHO_T}$ac_header_preproc" >&6
19342
19343 # So?  What about this header?
19344 case $ac_header_compiler:$ac_header_preproc in
19345   yes:no )
19346     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19347 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19348     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19349 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19350     (
19351       cat <<\_ASBOX
19352 ## ------------------------------------ ##
19353 ## Report this to bug-autoconf@gnu.org. ##
19354 ## ------------------------------------ ##
19355 _ASBOX
19356     ) |
19357       sed "s/^/$as_me: WARNING:     /" >&2
19358     ;;
19359   no:yes )
19360     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19361 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19362     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19363 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19364     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19365 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19366     (
19367       cat <<\_ASBOX
19368 ## ------------------------------------ ##
19369 ## Report this to bug-autoconf@gnu.org. ##
19370 ## ------------------------------------ ##
19371 _ASBOX
19372     ) |
19373       sed "s/^/$as_me: WARNING:     /" >&2
19374     ;;
19375 esac
19376 echo "$as_me:$LINENO: checking for $ac_header" >&5
19377 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19378 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19379   echo $ECHO_N "(cached) $ECHO_C" >&6
19380 else
19381   eval "$as_ac_Header=$ac_header_preproc"
19382 fi
19383 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19384 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19385
19386 fi
19387 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19388   cat >>confdefs.h <<_ACEOF
19389 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19390 _ACEOF
19391
19392 fi
19393
19394 done
19395
19396
19397
19398 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
19399 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
19400 if test "${ac_cv_c_const+set}" = set; then
19401   echo $ECHO_N "(cached) $ECHO_C" >&6
19402 else
19403   cat >conftest.$ac_ext <<_ACEOF
19404 #line $LINENO "configure"
19405 /* confdefs.h.  */
19406 _ACEOF
19407 cat confdefs.h >>conftest.$ac_ext
19408 cat >>conftest.$ac_ext <<_ACEOF
19409 /* end confdefs.h.  */
19410
19411 int
19412 main ()
19413 {
19414 /* FIXME: Include the comments suggested by Paul. */
19415 #ifndef __cplusplus
19416   /* Ultrix mips cc rejects this.  */
19417   typedef int charset[2];
19418   const charset x;
19419   /* SunOS 4.1.1 cc rejects this.  */
19420   char const *const *ccp;
19421   char **p;
19422   /* NEC SVR4.0.2 mips cc rejects this.  */
19423   struct point {int x, y;};
19424   static struct point const zero = {0,0};
19425   /* AIX XL C 1.02.0.0 rejects this.
19426      It does not let you subtract one const X* pointer from another in
19427      an arm of an if-expression whose if-part is not a constant
19428      expression */
19429   const char *g = "string";
19430   ccp = &g + (g ? g-g : 0);
19431   /* HPUX 7.0 cc rejects these. */
19432   ++ccp;
19433   p = (char**) ccp;
19434   ccp = (char const *const *) p;
19435   { /* SCO 3.2v4 cc rejects this.  */
19436     char *t;
19437     char const *s = 0 ? (char *) 0 : (char const *) 0;
19438
19439     *t++ = 0;
19440   }
19441   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
19442     int x[] = {25, 17};
19443     const int *foo = &x[0];
19444     ++foo;
19445   }
19446   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
19447     typedef const int *iptr;
19448     iptr p = 0;
19449     ++p;
19450   }
19451   { /* AIX XL C 1.02.0.0 rejects this saying
19452        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
19453     struct s { int j; const int *ap[3]; };
19454     struct s *b; b->j = 5;
19455   }
19456   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
19457     const int foo = 10;
19458   }
19459 #endif
19460
19461   ;
19462   return 0;
19463 }
19464 _ACEOF
19465 rm -f conftest.$ac_objext
19466 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19467   (eval $ac_compile) 2>&5
19468   ac_status=$?
19469   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19470   (exit $ac_status); } &&
19471          { ac_try='test -s conftest.$ac_objext'
19472   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19473   (eval $ac_try) 2>&5
19474   ac_status=$?
19475   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19476   (exit $ac_status); }; }; then
19477   ac_cv_c_const=yes
19478 else
19479   echo "$as_me: failed program was:" >&5
19480 sed 's/^/| /' conftest.$ac_ext >&5
19481
19482 ac_cv_c_const=no
19483 fi
19484 rm -f conftest.$ac_objext conftest.$ac_ext
19485 fi
19486 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
19487 echo "${ECHO_T}$ac_cv_c_const" >&6
19488 if test $ac_cv_c_const = no; then
19489
19490 cat >>confdefs.h <<\_ACEOF
19491 #define const
19492 _ACEOF
19493
19494 fi
19495
19496 echo "$as_me:$LINENO: checking for inline" >&5
19497 echo $ECHO_N "checking for inline... $ECHO_C" >&6
19498 if test "${ac_cv_c_inline+set}" = set; then
19499   echo $ECHO_N "(cached) $ECHO_C" >&6
19500 else
19501   ac_cv_c_inline=no
19502 for ac_kw in inline __inline__ __inline; do
19503   cat >conftest.$ac_ext <<_ACEOF
19504 #line $LINENO "configure"
19505 /* confdefs.h.  */
19506 _ACEOF
19507 cat confdefs.h >>conftest.$ac_ext
19508 cat >>conftest.$ac_ext <<_ACEOF
19509 /* end confdefs.h.  */
19510 #ifndef __cplusplus
19511 typedef int foo_t;
19512 static $ac_kw foo_t static_foo () {return 0; }
19513 $ac_kw foo_t foo () {return 0; }
19514 #endif
19515
19516 _ACEOF
19517 rm -f conftest.$ac_objext
19518 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19519   (eval $ac_compile) 2>&5
19520   ac_status=$?
19521   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19522   (exit $ac_status); } &&
19523          { ac_try='test -s conftest.$ac_objext'
19524   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19525   (eval $ac_try) 2>&5
19526   ac_status=$?
19527   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19528   (exit $ac_status); }; }; then
19529   ac_cv_c_inline=$ac_kw; break
19530 else
19531   echo "$as_me: failed program was:" >&5
19532 sed 's/^/| /' conftest.$ac_ext >&5
19533
19534 fi
19535 rm -f conftest.$ac_objext conftest.$ac_ext
19536 done
19537
19538 fi
19539 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
19540 echo "${ECHO_T}$ac_cv_c_inline" >&6
19541 case $ac_cv_c_inline in
19542   inline | yes) ;;
19543   no)
19544 cat >>confdefs.h <<\_ACEOF
19545 #define inline
19546 _ACEOF
19547  ;;
19548   *)  cat >>confdefs.h <<_ACEOF
19549 #define inline $ac_cv_c_inline
19550 _ACEOF
19551  ;;
19552 esac
19553
19554
19555 echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
19556 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
19557 if test "${ac_cv_c_bigendian+set}" = set; then
19558   echo $ECHO_N "(cached) $ECHO_C" >&6
19559 else
19560   # See if sys/param.h defines the BYTE_ORDER macro.
19561 cat >conftest.$ac_ext <<_ACEOF
19562 #line $LINENO "configure"
19563 /* confdefs.h.  */
19564 _ACEOF
19565 cat confdefs.h >>conftest.$ac_ext
19566 cat >>conftest.$ac_ext <<_ACEOF
19567 /* end confdefs.h.  */
19568 #include <sys/types.h>
19569 #include <sys/param.h>
19570
19571 int
19572 main ()
19573 {
19574 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
19575  bogus endian macros
19576 #endif
19577
19578   ;
19579   return 0;
19580 }
19581 _ACEOF
19582 rm -f conftest.$ac_objext
19583 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19584   (eval $ac_compile) 2>&5
19585   ac_status=$?
19586   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19587   (exit $ac_status); } &&
19588          { ac_try='test -s conftest.$ac_objext'
19589   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19590   (eval $ac_try) 2>&5
19591   ac_status=$?
19592   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19593   (exit $ac_status); }; }; then
19594   # It does; now see whether it defined to BIG_ENDIAN or not.
19595 cat >conftest.$ac_ext <<_ACEOF
19596 #line $LINENO "configure"
19597 /* confdefs.h.  */
19598 _ACEOF
19599 cat confdefs.h >>conftest.$ac_ext
19600 cat >>conftest.$ac_ext <<_ACEOF
19601 /* end confdefs.h.  */
19602 #include <sys/types.h>
19603 #include <sys/param.h>
19604
19605 int
19606 main ()
19607 {
19608 #if BYTE_ORDER != BIG_ENDIAN
19609  not big endian
19610 #endif
19611
19612   ;
19613   return 0;
19614 }
19615 _ACEOF
19616 rm -f conftest.$ac_objext
19617 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19618   (eval $ac_compile) 2>&5
19619   ac_status=$?
19620   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19621   (exit $ac_status); } &&
19622          { ac_try='test -s conftest.$ac_objext'
19623   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19624   (eval $ac_try) 2>&5
19625   ac_status=$?
19626   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19627   (exit $ac_status); }; }; then
19628   ac_cv_c_bigendian=yes
19629 else
19630   echo "$as_me: failed program was:" >&5
19631 sed 's/^/| /' conftest.$ac_ext >&5
19632
19633 ac_cv_c_bigendian=no
19634 fi
19635 rm -f conftest.$ac_objext conftest.$ac_ext
19636 else
19637   echo "$as_me: failed program was:" >&5
19638 sed 's/^/| /' conftest.$ac_ext >&5
19639
19640 # It does not; compile a test program.
19641 if test "$cross_compiling" = yes; then
19642   # try to guess the endianness by grepping values into an object file
19643   ac_cv_c_bigendian=unknown
19644   cat >conftest.$ac_ext <<_ACEOF
19645 #line $LINENO "configure"
19646 /* confdefs.h.  */
19647 _ACEOF
19648 cat confdefs.h >>conftest.$ac_ext
19649 cat >>conftest.$ac_ext <<_ACEOF
19650 /* end confdefs.h.  */
19651 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
19652 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
19653 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
19654 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
19655 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
19656 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
19657 int
19658 main ()
19659 {
19660  _ascii (); _ebcdic ();
19661   ;
19662   return 0;
19663 }
19664 _ACEOF
19665 rm -f conftest.$ac_objext
19666 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19667   (eval $ac_compile) 2>&5
19668   ac_status=$?
19669   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19670   (exit $ac_status); } &&
19671          { ac_try='test -s conftest.$ac_objext'
19672   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19673   (eval $ac_try) 2>&5
19674   ac_status=$?
19675   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19676   (exit $ac_status); }; }; then
19677   if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
19678   ac_cv_c_bigendian=yes
19679 fi
19680 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
19681   if test "$ac_cv_c_bigendian" = unknown; then
19682     ac_cv_c_bigendian=no
19683   else
19684     # finding both strings is unlikely to happen, but who knows?
19685     ac_cv_c_bigendian=unknown
19686   fi
19687 fi
19688 else
19689   echo "$as_me: failed program was:" >&5
19690 sed 's/^/| /' conftest.$ac_ext >&5
19691
19692 fi
19693 rm -f conftest.$ac_objext conftest.$ac_ext
19694 else
19695   cat >conftest.$ac_ext <<_ACEOF
19696 #line $LINENO "configure"
19697 /* confdefs.h.  */
19698 _ACEOF
19699 cat confdefs.h >>conftest.$ac_ext
19700 cat >>conftest.$ac_ext <<_ACEOF
19701 /* end confdefs.h.  */
19702 int
19703 main ()
19704 {
19705   /* Are we little or big endian?  From Harbison&Steele.  */
19706   union
19707   {
19708     long l;
19709     char c[sizeof (long)];
19710   } u;
19711   u.l = 1;
19712   exit (u.c[sizeof (long) - 1] == 1);
19713 }
19714 _ACEOF
19715 rm -f conftest$ac_exeext
19716 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19717   (eval $ac_link) 2>&5
19718   ac_status=$?
19719   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19720   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19721   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19722   (eval $ac_try) 2>&5
19723   ac_status=$?
19724   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19725   (exit $ac_status); }; }; then
19726   ac_cv_c_bigendian=no
19727 else
19728   echo "$as_me: program exited with status $ac_status" >&5
19729 echo "$as_me: failed program was:" >&5
19730 sed 's/^/| /' conftest.$ac_ext >&5
19731
19732 ( exit $ac_status )
19733 ac_cv_c_bigendian=yes
19734 fi
19735 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19736 fi
19737 fi
19738 rm -f conftest.$ac_objext conftest.$ac_ext
19739 fi
19740 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
19741 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
19742 case $ac_cv_c_bigendian in
19743   yes)
19744     cat >>confdefs.h <<\_ACEOF
19745 #define ENDIAN_BIG 1
19746 _ACEOF
19747  ;;
19748   no)
19749     cat >>confdefs.h <<\_ACEOF
19750 #define ENDIAN_LITTLE 1
19751 _ACEOF
19752  ;;
19753   *)
19754     { { echo "$as_me:$LINENO: error: unknown endianness
19755 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
19756 echo "$as_me: error: unknown endianness
19757 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
19758    { (exit 1); exit 1; }; } ;;
19759 esac
19760
19761
19762 echo "$as_me:$LINENO: checking for pid_t" >&5
19763 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
19764 if test "${ac_cv_type_pid_t+set}" = set; then
19765   echo $ECHO_N "(cached) $ECHO_C" >&6
19766 else
19767   cat >conftest.$ac_ext <<_ACEOF
19768 #line $LINENO "configure"
19769 /* confdefs.h.  */
19770 _ACEOF
19771 cat confdefs.h >>conftest.$ac_ext
19772 cat >>conftest.$ac_ext <<_ACEOF
19773 /* end confdefs.h.  */
19774 $ac_includes_default
19775 int
19776 main ()
19777 {
19778 if ((pid_t *) 0)
19779   return 0;
19780 if (sizeof (pid_t))
19781   return 0;
19782   ;
19783   return 0;
19784 }
19785 _ACEOF
19786 rm -f conftest.$ac_objext
19787 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19788   (eval $ac_compile) 2>&5
19789   ac_status=$?
19790   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19791   (exit $ac_status); } &&
19792          { ac_try='test -s conftest.$ac_objext'
19793   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19794   (eval $ac_try) 2>&5
19795   ac_status=$?
19796   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19797   (exit $ac_status); }; }; then
19798   ac_cv_type_pid_t=yes
19799 else
19800   echo "$as_me: failed program was:" >&5
19801 sed 's/^/| /' conftest.$ac_ext >&5
19802
19803 ac_cv_type_pid_t=no
19804 fi
19805 rm -f conftest.$ac_objext conftest.$ac_ext
19806 fi
19807 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
19808 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
19809 if test $ac_cv_type_pid_t = yes; then
19810   :
19811 else
19812
19813 cat >>confdefs.h <<_ACEOF
19814 #define pid_t int
19815 _ACEOF
19816
19817 fi
19818
19819 echo "$as_me:$LINENO: checking for size_t" >&5
19820 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
19821 if test "${ac_cv_type_size_t+set}" = set; then
19822   echo $ECHO_N "(cached) $ECHO_C" >&6
19823 else
19824   cat >conftest.$ac_ext <<_ACEOF
19825 #line $LINENO "configure"
19826 /* confdefs.h.  */
19827 _ACEOF
19828 cat confdefs.h >>conftest.$ac_ext
19829 cat >>conftest.$ac_ext <<_ACEOF
19830 /* end confdefs.h.  */
19831 $ac_includes_default
19832 int
19833 main ()
19834 {
19835 if ((size_t *) 0)
19836   return 0;
19837 if (sizeof (size_t))
19838   return 0;
19839   ;
19840   return 0;
19841 }
19842 _ACEOF
19843 rm -f conftest.$ac_objext
19844 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19845   (eval $ac_compile) 2>&5
19846   ac_status=$?
19847   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19848   (exit $ac_status); } &&
19849          { ac_try='test -s conftest.$ac_objext'
19850   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19851   (eval $ac_try) 2>&5
19852   ac_status=$?
19853   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19854   (exit $ac_status); }; }; then
19855   ac_cv_type_size_t=yes
19856 else
19857   echo "$as_me: failed program was:" >&5
19858 sed 's/^/| /' conftest.$ac_ext >&5
19859
19860 ac_cv_type_size_t=no
19861 fi
19862 rm -f conftest.$ac_objext conftest.$ac_ext
19863 fi
19864 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
19865 echo "${ECHO_T}$ac_cv_type_size_t" >&6
19866 if test $ac_cv_type_size_t = yes; then
19867   :
19868 else
19869
19870 cat >>confdefs.h <<_ACEOF
19871 #define size_t unsigned
19872 _ACEOF
19873
19874 fi
19875
19876 echo "$as_me:$LINENO: checking for int64_t" >&5
19877 echo $ECHO_N "checking for int64_t... $ECHO_C" >&6
19878 if test "${ac_cv_type_int64_t+set}" = set; then
19879   echo $ECHO_N "(cached) $ECHO_C" >&6
19880 else
19881   cat >conftest.$ac_ext <<_ACEOF
19882 #line $LINENO "configure"
19883 /* confdefs.h.  */
19884 _ACEOF
19885 cat confdefs.h >>conftest.$ac_ext
19886 cat >>conftest.$ac_ext <<_ACEOF
19887 /* end confdefs.h.  */
19888 $ac_includes_default
19889 int
19890 main ()
19891 {
19892 if ((int64_t *) 0)
19893   return 0;
19894 if (sizeof (int64_t))
19895   return 0;
19896   ;
19897   return 0;
19898 }
19899 _ACEOF
19900 rm -f conftest.$ac_objext
19901 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19902   (eval $ac_compile) 2>&5
19903   ac_status=$?
19904   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19905   (exit $ac_status); } &&
19906          { ac_try='test -s conftest.$ac_objext'
19907   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19908   (eval $ac_try) 2>&5
19909   ac_status=$?
19910   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19911   (exit $ac_status); }; }; then
19912   ac_cv_type_int64_t=yes
19913 else
19914   echo "$as_me: failed program was:" >&5
19915 sed 's/^/| /' conftest.$ac_ext >&5
19916
19917 ac_cv_type_int64_t=no
19918 fi
19919 rm -f conftest.$ac_objext conftest.$ac_ext
19920 fi
19921 echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
19922 echo "${ECHO_T}$ac_cv_type_int64_t" >&6
19923 if test $ac_cv_type_int64_t = yes; then
19924
19925 cat >>confdefs.h <<_ACEOF
19926 #define HAVE_INT64_T 1
19927 _ACEOF
19928
19929
19930 else
19931   { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5
19932 echo "$as_me: error: Type int64_t required but not found" >&2;}
19933    { (exit 1); exit 1; }; }
19934 fi
19935
19936 echo "$as_me:$LINENO: checking for uint64_t" >&5
19937 echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6
19938 if test "${ac_cv_type_uint64_t+set}" = set; then
19939   echo $ECHO_N "(cached) $ECHO_C" >&6
19940 else
19941   cat >conftest.$ac_ext <<_ACEOF
19942 #line $LINENO "configure"
19943 /* confdefs.h.  */
19944 _ACEOF
19945 cat confdefs.h >>conftest.$ac_ext
19946 cat >>conftest.$ac_ext <<_ACEOF
19947 /* end confdefs.h.  */
19948 $ac_includes_default
19949 int
19950 main ()
19951 {
19952 if ((uint64_t *) 0)
19953   return 0;
19954 if (sizeof (uint64_t))
19955   return 0;
19956   ;
19957   return 0;
19958 }
19959 _ACEOF
19960 rm -f conftest.$ac_objext
19961 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19962   (eval $ac_compile) 2>&5
19963   ac_status=$?
19964   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19965   (exit $ac_status); } &&
19966          { ac_try='test -s conftest.$ac_objext'
19967   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19968   (eval $ac_try) 2>&5
19969   ac_status=$?
19970   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19971   (exit $ac_status); }; }; then
19972   ac_cv_type_uint64_t=yes
19973 else
19974   echo "$as_me: failed program was:" >&5
19975 sed 's/^/| /' conftest.$ac_ext >&5
19976
19977 ac_cv_type_uint64_t=no
19978 fi
19979 rm -f conftest.$ac_objext conftest.$ac_ext
19980 fi
19981 echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
19982 echo "${ECHO_T}$ac_cv_type_uint64_t" >&6
19983 if test $ac_cv_type_uint64_t = yes; then
19984
19985 cat >>confdefs.h <<_ACEOF
19986 #define HAVE_UINT64_T 1
19987 _ACEOF
19988
19989
19990 else
19991   { { echo "$as_me:$LINENO: error: Type uint64_t required but not found" >&5
19992 echo "$as_me: error: Type uint64_t required but not found" >&2;}
19993    { (exit 1); exit 1; }; }
19994 fi
19995
19996 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
19997 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
19998 if test "${ac_cv_header_time+set}" = set; then
19999   echo $ECHO_N "(cached) $ECHO_C" >&6
20000 else
20001   cat >conftest.$ac_ext <<_ACEOF
20002 #line $LINENO "configure"
20003 /* confdefs.h.  */
20004 _ACEOF
20005 cat confdefs.h >>conftest.$ac_ext
20006 cat >>conftest.$ac_ext <<_ACEOF
20007 /* end confdefs.h.  */
20008 #include <sys/types.h>
20009 #include <sys/time.h>
20010 #include <time.h>
20011
20012 int
20013 main ()
20014 {
20015 if ((struct tm *) 0)
20016 return 0;
20017   ;
20018   return 0;
20019 }
20020 _ACEOF
20021 rm -f conftest.$ac_objext
20022 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20023   (eval $ac_compile) 2>&5
20024   ac_status=$?
20025   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20026   (exit $ac_status); } &&
20027          { ac_try='test -s conftest.$ac_objext'
20028   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20029   (eval $ac_try) 2>&5
20030   ac_status=$?
20031   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20032   (exit $ac_status); }; }; then
20033   ac_cv_header_time=yes
20034 else
20035   echo "$as_me: failed program was:" >&5
20036 sed 's/^/| /' conftest.$ac_ext >&5
20037
20038 ac_cv_header_time=no
20039 fi
20040 rm -f conftest.$ac_objext conftest.$ac_ext
20041 fi
20042 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
20043 echo "${ECHO_T}$ac_cv_header_time" >&6
20044 if test $ac_cv_header_time = yes; then
20045
20046 cat >>confdefs.h <<\_ACEOF
20047 #define TIME_WITH_SYS_TIME 1
20048 _ACEOF
20049
20050 fi
20051
20052 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
20053 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
20054 if test "${ac_cv_struct_tm+set}" = set; then
20055   echo $ECHO_N "(cached) $ECHO_C" >&6
20056 else
20057   cat >conftest.$ac_ext <<_ACEOF
20058 #line $LINENO "configure"
20059 /* confdefs.h.  */
20060 _ACEOF
20061 cat confdefs.h >>conftest.$ac_ext
20062 cat >>conftest.$ac_ext <<_ACEOF
20063 /* end confdefs.h.  */
20064 #include <sys/types.h>
20065 #include <time.h>
20066
20067 int
20068 main ()
20069 {
20070 struct tm *tp; tp->tm_sec;
20071   ;
20072   return 0;
20073 }
20074 _ACEOF
20075 rm -f conftest.$ac_objext
20076 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20077   (eval $ac_compile) 2>&5
20078   ac_status=$?
20079   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20080   (exit $ac_status); } &&
20081          { ac_try='test -s conftest.$ac_objext'
20082   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20083   (eval $ac_try) 2>&5
20084   ac_status=$?
20085   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20086   (exit $ac_status); }; }; then
20087   ac_cv_struct_tm=time.h
20088 else
20089   echo "$as_me: failed program was:" >&5
20090 sed 's/^/| /' conftest.$ac_ext >&5
20091
20092 ac_cv_struct_tm=sys/time.h
20093 fi
20094 rm -f conftest.$ac_objext conftest.$ac_ext
20095 fi
20096 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
20097 echo "${ECHO_T}$ac_cv_struct_tm" >&6
20098 if test $ac_cv_struct_tm = sys/time.h; then
20099
20100 cat >>confdefs.h <<\_ACEOF
20101 #define TM_IN_SYS_TIME 1
20102 _ACEOF
20103
20104 fi
20105
20106
20107 echo "$as_me:$LINENO: checking whether the compiler implements namespaces" >&5
20108 echo $ECHO_N "checking whether the compiler implements namespaces... $ECHO_C" >&6
20109 if test "${ac_cv_cxx_namespaces+set}" = set; then
20110   echo $ECHO_N "(cached) $ECHO_C" >&6
20111 else
20112
20113
20114  ac_ext=cc
20115 ac_cpp='$CXXCPP $CPPFLAGS'
20116 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20117 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20118 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20119
20120  cat >conftest.$ac_ext <<_ACEOF
20121 #line $LINENO "configure"
20122 /* confdefs.h.  */
20123 _ACEOF
20124 cat confdefs.h >>conftest.$ac_ext
20125 cat >>conftest.$ac_ext <<_ACEOF
20126 /* end confdefs.h.  */
20127 namespace Outer { namespace Inner { int i = 0; }}
20128 int
20129 main ()
20130 {
20131 using namespace Outer::Inner; return i;
20132   ;
20133   return 0;
20134 }
20135 _ACEOF
20136 rm -f conftest.$ac_objext
20137 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20138   (eval $ac_compile) 2>&5
20139   ac_status=$?
20140   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20141   (exit $ac_status); } &&
20142          { ac_try='test -s conftest.$ac_objext'
20143   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20144   (eval $ac_try) 2>&5
20145   ac_status=$?
20146   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20147   (exit $ac_status); }; }; then
20148   ac_cv_cxx_namespaces=yes
20149 else
20150   echo "$as_me: failed program was:" >&5
20151 sed 's/^/| /' conftest.$ac_ext >&5
20152
20153 ac_cv_cxx_namespaces=no
20154 fi
20155 rm -f conftest.$ac_objext conftest.$ac_ext
20156  ac_ext=c
20157 ac_cpp='$CPP $CPPFLAGS'
20158 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20159 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20160 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20161
20162
20163 fi
20164 echo "$as_me:$LINENO: result: $ac_cv_cxx_namespaces" >&5
20165 echo "${ECHO_T}$ac_cv_cxx_namespaces" >&6
20166 if test "$ac_cv_cxx_namespaces" = yes; then
20167
20168 cat >>confdefs.h <<\_ACEOF
20169 #define HAVE_NAMESPACES
20170 _ACEOF
20171
20172 fi
20173
20174 echo "$as_me:$LINENO: checking whether the compiler has ext/hash_map" >&5
20175 echo $ECHO_N "checking whether the compiler has ext/hash_map... $ECHO_C" >&6
20176 if test "${ac_cv_cxx_have_ext_hash_map+set}" = set; then
20177   echo $ECHO_N "(cached) $ECHO_C" >&6
20178 else
20179
20180
20181
20182   ac_ext=cc
20183 ac_cpp='$CXXCPP $CPPFLAGS'
20184 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20185 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20186 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20187
20188   cat >conftest.$ac_ext <<_ACEOF
20189 #line $LINENO "configure"
20190 /* confdefs.h.  */
20191 _ACEOF
20192 cat confdefs.h >>conftest.$ac_ext
20193 cat >>conftest.$ac_ext <<_ACEOF
20194 /* end confdefs.h.  */
20195 #include <ext/hash_map>
20196 #ifdef HAVE_NAMESPACES
20197 using namespace std;
20198 #endif
20199 int
20200 main ()
20201 {
20202 hash_map<int, int> t; return 0;
20203   ;
20204   return 0;
20205 }
20206 _ACEOF
20207 rm -f conftest.$ac_objext
20208 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20209   (eval $ac_compile) 2>&5
20210   ac_status=$?
20211   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20212   (exit $ac_status); } &&
20213          { ac_try='test -s conftest.$ac_objext'
20214   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20215   (eval $ac_try) 2>&5
20216   ac_status=$?
20217   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20218   (exit $ac_status); }; }; then
20219   ac_cv_cxx_have_ext_hash_map=std
20220 else
20221   echo "$as_me: failed program was:" >&5
20222 sed 's/^/| /' conftest.$ac_ext >&5
20223
20224 ac_cv_cxx_have_ext_hash_map=no
20225 fi
20226 rm -f conftest.$ac_objext conftest.$ac_ext
20227   cat >conftest.$ac_ext <<_ACEOF
20228 #line $LINENO "configure"
20229 /* confdefs.h.  */
20230 _ACEOF
20231 cat confdefs.h >>conftest.$ac_ext
20232 cat >>conftest.$ac_ext <<_ACEOF
20233 /* end confdefs.h.  */
20234 #include <ext/hash_map>
20235 #ifdef HAVE_NAMESPACES
20236 using namespace __gnu_cxx;
20237 #endif
20238 int
20239 main ()
20240 {
20241 hash_map<int, int> t; return 0;
20242   ;
20243   return 0;
20244 }
20245 _ACEOF
20246 rm -f conftest.$ac_objext
20247 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20248   (eval $ac_compile) 2>&5
20249   ac_status=$?
20250   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20251   (exit $ac_status); } &&
20252          { ac_try='test -s conftest.$ac_objext'
20253   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20254   (eval $ac_try) 2>&5
20255   ac_status=$?
20256   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20257   (exit $ac_status); }; }; then
20258   ac_cv_cxx_have_ext_hash_map=gnu
20259 else
20260   echo "$as_me: failed program was:" >&5
20261 sed 's/^/| /' conftest.$ac_ext >&5
20262
20263 ac_cv_cxx_have_ext_hash_map=no
20264 fi
20265 rm -f conftest.$ac_objext conftest.$ac_ext
20266   ac_ext=c
20267 ac_cpp='$CPP $CPPFLAGS'
20268 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20269 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20270 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20271
20272
20273 fi
20274 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_ext_hash_map" >&5
20275 echo "${ECHO_T}$ac_cv_cxx_have_ext_hash_map" >&6
20276 if test "$ac_cv_cxx_have_ext_hash_map" = std; then
20277
20278 cat >>confdefs.h <<\_ACEOF
20279 #define HAVE_STD_EXT_HASH_MAP
20280 _ACEOF
20281
20282 fi
20283 if test "$ac_cv_cxx_have_ext_hash_map" = gnu; then
20284
20285 cat >>confdefs.h <<\_ACEOF
20286 #define HAVE_GNU_EXT_HASH_MAP
20287 _ACEOF
20288
20289 fi
20290
20291 echo "$as_me:$LINENO: checking whether the compiler has ext/hash_set" >&5
20292 echo $ECHO_N "checking whether the compiler has ext/hash_set... $ECHO_C" >&6
20293 if test "${ac_cv_cxx_have_ext_hash_set+set}" = set; then
20294   echo $ECHO_N "(cached) $ECHO_C" >&6
20295 else
20296
20297
20298
20299   ac_ext=cc
20300 ac_cpp='$CXXCPP $CPPFLAGS'
20301 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20302 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20303 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20304
20305   cat >conftest.$ac_ext <<_ACEOF
20306 #line $LINENO "configure"
20307 /* confdefs.h.  */
20308 _ACEOF
20309 cat confdefs.h >>conftest.$ac_ext
20310 cat >>conftest.$ac_ext <<_ACEOF
20311 /* end confdefs.h.  */
20312 #include <ext/hash_set>
20313 #ifdef HAVE_NAMESPACES
20314 using namespace std;
20315 #endif
20316 int
20317 main ()
20318 {
20319 hash_set<int> t; return 0;
20320   ;
20321   return 0;
20322 }
20323 _ACEOF
20324 rm -f conftest.$ac_objext
20325 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20326   (eval $ac_compile) 2>&5
20327   ac_status=$?
20328   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20329   (exit $ac_status); } &&
20330          { ac_try='test -s conftest.$ac_objext'
20331   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20332   (eval $ac_try) 2>&5
20333   ac_status=$?
20334   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20335   (exit $ac_status); }; }; then
20336   ac_cv_cxx_have_ext_hash_set=std
20337 else
20338   echo "$as_me: failed program was:" >&5
20339 sed 's/^/| /' conftest.$ac_ext >&5
20340
20341 ac_cv_cxx_have_ext_hash_set=no
20342 fi
20343 rm -f conftest.$ac_objext conftest.$ac_ext
20344   cat >conftest.$ac_ext <<_ACEOF
20345 #line $LINENO "configure"
20346 /* confdefs.h.  */
20347 _ACEOF
20348 cat confdefs.h >>conftest.$ac_ext
20349 cat >>conftest.$ac_ext <<_ACEOF
20350 /* end confdefs.h.  */
20351 #include <ext/hash_set>
20352 #ifdef HAVE_NAMESPACES
20353 using namespace __gnu_cxx;
20354 #endif
20355 int
20356 main ()
20357 {
20358 hash_set<int> t; return 0;
20359   ;
20360   return 0;
20361 }
20362 _ACEOF
20363 rm -f conftest.$ac_objext
20364 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20365   (eval $ac_compile) 2>&5
20366   ac_status=$?
20367   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20368   (exit $ac_status); } &&
20369          { ac_try='test -s conftest.$ac_objext'
20370   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20371   (eval $ac_try) 2>&5
20372   ac_status=$?
20373   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20374   (exit $ac_status); }; }; then
20375   ac_cv_cxx_have_ext_hash_set=gnu
20376 else
20377   echo "$as_me: failed program was:" >&5
20378 sed 's/^/| /' conftest.$ac_ext >&5
20379
20380 ac_cv_cxx_have_ext_hash_set=no
20381 fi
20382 rm -f conftest.$ac_objext conftest.$ac_ext
20383   ac_ext=c
20384 ac_cpp='$CPP $CPPFLAGS'
20385 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20386 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20387 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20388
20389
20390 fi
20391 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_ext_hash_set" >&5
20392 echo "${ECHO_T}$ac_cv_cxx_have_ext_hash_set" >&6
20393 if test "$ac_cv_cxx_have_ext_hash_set" = std; then
20394
20395 cat >>confdefs.h <<\_ACEOF
20396 #define HAVE_STD_EXT_HASH_SET
20397 _ACEOF
20398
20399 fi
20400 if test "$ac_cv_cxx_have_ext_hash_set" = gnu; then
20401
20402 cat >>confdefs.h <<\_ACEOF
20403 #define HAVE_GNU_EXT_HASH_SET
20404 _ACEOF
20405
20406 fi
20407
20408 echo "$as_me:$LINENO: checking whether the compiler has ext/slist" >&5
20409 echo $ECHO_N "checking whether the compiler has ext/slist... $ECHO_C" >&6
20410 if test "${ac_cv_cxx_have_ext_slist+set}" = set; then
20411   echo $ECHO_N "(cached) $ECHO_C" >&6
20412 else
20413
20414
20415
20416   ac_ext=cc
20417 ac_cpp='$CXXCPP $CPPFLAGS'
20418 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20419 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20420 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20421
20422   cat >conftest.$ac_ext <<_ACEOF
20423 #line $LINENO "configure"
20424 /* confdefs.h.  */
20425 _ACEOF
20426 cat confdefs.h >>conftest.$ac_ext
20427 cat >>conftest.$ac_ext <<_ACEOF
20428 /* end confdefs.h.  */
20429 #include <ext/slist>
20430 #ifdef HAVE_NAMESPACES
20431 using namespace std;
20432 #endif
20433 int
20434 main ()
20435 {
20436 slist<int> s; return 0;
20437   ;
20438   return 0;
20439 }
20440 _ACEOF
20441 rm -f conftest.$ac_objext
20442 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20443   (eval $ac_compile) 2>&5
20444   ac_status=$?
20445   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20446   (exit $ac_status); } &&
20447          { ac_try='test -s conftest.$ac_objext'
20448   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20449   (eval $ac_try) 2>&5
20450   ac_status=$?
20451   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20452   (exit $ac_status); }; }; then
20453   ac_cv_cxx_have_ext_slist=std
20454 else
20455   echo "$as_me: failed program was:" >&5
20456 sed 's/^/| /' conftest.$ac_ext >&5
20457
20458 ac_cv_cxx_have_ext_slist=no
20459 fi
20460 rm -f conftest.$ac_objext conftest.$ac_ext
20461   cat >conftest.$ac_ext <<_ACEOF
20462 #line $LINENO "configure"
20463 /* confdefs.h.  */
20464 _ACEOF
20465 cat confdefs.h >>conftest.$ac_ext
20466 cat >>conftest.$ac_ext <<_ACEOF
20467 /* end confdefs.h.  */
20468 #include <ext/slist>
20469 #ifdef HAVE_NAMESPACES
20470 using namespace __gnu_cxx;
20471 #endif
20472 int
20473 main ()
20474 {
20475 slist<int> s; return 0;
20476   ;
20477   return 0;
20478 }
20479 _ACEOF
20480 rm -f conftest.$ac_objext
20481 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20482   (eval $ac_compile) 2>&5
20483   ac_status=$?
20484   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20485   (exit $ac_status); } &&
20486          { ac_try='test -s conftest.$ac_objext'
20487   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20488   (eval $ac_try) 2>&5
20489   ac_status=$?
20490   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20491   (exit $ac_status); }; }; then
20492   ac_cv_cxx_have_ext_slist=gnu
20493 else
20494   echo "$as_me: failed program was:" >&5
20495 sed 's/^/| /' conftest.$ac_ext >&5
20496
20497 ac_cv_cxx_have_ext_slist=no
20498 fi
20499 rm -f conftest.$ac_objext conftest.$ac_ext
20500
20501   ac_ext=c
20502 ac_cpp='$CPP $CPPFLAGS'
20503 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20504 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20505 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20506
20507
20508 fi
20509 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_ext_slist" >&5
20510 echo "${ECHO_T}$ac_cv_cxx_have_ext_slist" >&6
20511 if test "$ac_cv_cxx_have_ext_slist" = std; then
20512
20513 cat >>confdefs.h <<\_ACEOF
20514 #define HAVE_EXT_SLIST std
20515 _ACEOF
20516
20517 fi
20518 if test "$ac_cv_cxx_have_ext_slist" = gnu; then
20519
20520 cat >>confdefs.h <<\_ACEOF
20521 #define HAVE_EXT_SLIST gnu
20522 _ACEOF
20523
20524 fi
20525
20526 echo "$as_me:$LINENO: checking whether the compiler has the standard iterator" >&5
20527 echo $ECHO_N "checking whether the compiler has the standard iterator... $ECHO_C" >&6
20528 if test "${ac_cv_cxx_have_std_iterator+set}" = set; then
20529   echo $ECHO_N "(cached) $ECHO_C" >&6
20530 else
20531
20532
20533
20534   ac_ext=cc
20535 ac_cpp='$CXXCPP $CPPFLAGS'
20536 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20537 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20538 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20539
20540   cat >conftest.$ac_ext <<_ACEOF
20541 #line $LINENO "configure"
20542 /* confdefs.h.  */
20543 _ACEOF
20544 cat confdefs.h >>conftest.$ac_ext
20545 cat >>conftest.$ac_ext <<_ACEOF
20546 /* end confdefs.h.  */
20547 #include <iterator>
20548 #ifdef HAVE_NAMESPACES
20549 using namespace std;
20550 #endif
20551 int
20552 main ()
20553 {
20554 iterator<int,int,int> t; return 0;
20555   ;
20556   return 0;
20557 }
20558 _ACEOF
20559 rm -f conftest.$ac_objext
20560 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20561   (eval $ac_compile) 2>&5
20562   ac_status=$?
20563   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20564   (exit $ac_status); } &&
20565          { ac_try='test -s conftest.$ac_objext'
20566   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20567   (eval $ac_try) 2>&5
20568   ac_status=$?
20569   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20570   (exit $ac_status); }; }; then
20571   ac_cv_cxx_have_std_iterator=yes
20572 else
20573   echo "$as_me: failed program was:" >&5
20574 sed 's/^/| /' conftest.$ac_ext >&5
20575
20576 ac_cv_cxx_have_std_iterator=no
20577 fi
20578 rm -f conftest.$ac_objext conftest.$ac_ext
20579   ac_ext=c
20580 ac_cpp='$CPP $CPPFLAGS'
20581 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20582 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20583 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20584
20585
20586 fi
20587 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_iterator" >&5
20588 echo "${ECHO_T}$ac_cv_cxx_have_std_iterator" >&6
20589 if test "$ac_cv_cxx_have_std_iterator" = yes; then
20590
20591 cat >>confdefs.h <<\_ACEOF
20592 #define HAVE_STD_ITERATOR
20593 _ACEOF
20594
20595 fi
20596
20597 echo "$as_me:$LINENO: checking whether the compiler has the bidirectional iterator" >&5
20598 echo $ECHO_N "checking whether the compiler has the bidirectional iterator... $ECHO_C" >&6
20599 if test "${ac_cv_cxx_have_bi_iterator+set}" = set; then
20600   echo $ECHO_N "(cached) $ECHO_C" >&6
20601 else
20602
20603
20604
20605   ac_ext=cc
20606 ac_cpp='$CXXCPP $CPPFLAGS'
20607 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20608 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20609 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20610
20611   cat >conftest.$ac_ext <<_ACEOF
20612 #line $LINENO "configure"
20613 /* confdefs.h.  */
20614 _ACEOF
20615 cat confdefs.h >>conftest.$ac_ext
20616 cat >>conftest.$ac_ext <<_ACEOF
20617 /* end confdefs.h.  */
20618 #include <iterator>
20619 #ifdef HAVE_NAMESPACES
20620 using namespace std;
20621 #endif
20622 int
20623 main ()
20624 {
20625 bidirectional_iterator<int,int> t; return 0;
20626   ;
20627   return 0;
20628 }
20629 _ACEOF
20630 rm -f conftest.$ac_objext
20631 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20632   (eval $ac_compile) 2>&5
20633   ac_status=$?
20634   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20635   (exit $ac_status); } &&
20636          { ac_try='test -s conftest.$ac_objext'
20637   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20638   (eval $ac_try) 2>&5
20639   ac_status=$?
20640   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20641   (exit $ac_status); }; }; then
20642   ac_cv_cxx_have_bi_iterator=yes
20643 else
20644   echo "$as_me: failed program was:" >&5
20645 sed 's/^/| /' conftest.$ac_ext >&5
20646
20647 ac_cv_cxx_have_bi_iterator=no
20648 fi
20649 rm -f conftest.$ac_objext conftest.$ac_ext
20650   ac_ext=c
20651 ac_cpp='$CPP $CPPFLAGS'
20652 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20653 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20654 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20655
20656
20657 fi
20658 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_bi_iterator" >&5
20659 echo "${ECHO_T}$ac_cv_cxx_have_bi_iterator" >&6
20660 if test "$ac_cv_cxx_have_bi_iterator" = yes; then
20661
20662 cat >>confdefs.h <<\_ACEOF
20663 #define HAVE_BI_ITERATOR
20664 _ACEOF
20665
20666 fi
20667
20668 echo "$as_me:$LINENO: checking whether the compiler has forward iterators" >&5
20669 echo $ECHO_N "checking whether the compiler has forward iterators... $ECHO_C" >&6
20670 if test "${ac_cv_cxx_have_fwd_iterator+set}" = set; then
20671   echo $ECHO_N "(cached) $ECHO_C" >&6
20672 else
20673
20674
20675
20676   ac_ext=cc
20677 ac_cpp='$CXXCPP $CPPFLAGS'
20678 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20679 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20680 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20681
20682   cat >conftest.$ac_ext <<_ACEOF
20683 #line $LINENO "configure"
20684 /* confdefs.h.  */
20685 _ACEOF
20686 cat confdefs.h >>conftest.$ac_ext
20687 cat >>conftest.$ac_ext <<_ACEOF
20688 /* end confdefs.h.  */
20689 #include <iterator>
20690 #ifdef HAVE_NAMESPACES
20691 using namespace std;
20692 #endif
20693 int
20694 main ()
20695 {
20696 forward_iterator<int,int> t; return 0;
20697   ;
20698   return 0;
20699 }
20700 _ACEOF
20701 rm -f conftest.$ac_objext
20702 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20703   (eval $ac_compile) 2>&5
20704   ac_status=$?
20705   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20706   (exit $ac_status); } &&
20707          { ac_try='test -s conftest.$ac_objext'
20708   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20709   (eval $ac_try) 2>&5
20710   ac_status=$?
20711   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20712   (exit $ac_status); }; }; then
20713   ac_cv_cxx_have_fwd_iterator=yes
20714 else
20715   echo "$as_me: failed program was:" >&5
20716 sed 's/^/| /' conftest.$ac_ext >&5
20717
20718 ac_cv_cxx_have_fwd_iterator=no
20719 fi
20720 rm -f conftest.$ac_objext conftest.$ac_ext
20721   ac_ext=c
20722 ac_cpp='$CPP $CPPFLAGS'
20723 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20724 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20725 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20726
20727
20728 fi
20729 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_fwd_iterator" >&5
20730 echo "${ECHO_T}$ac_cv_cxx_have_fwd_iterator" >&6
20731 if test "$ac_cv_cxx_have_fwd_iterator" = yes; then
20732
20733 cat >>confdefs.h <<\_ACEOF
20734 #define HAVE_FWD_ITERATOR
20735 _ACEOF
20736
20737 fi
20738
20739
20740 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
20741 # for constant arguments.  Useless!
20742 echo "$as_me:$LINENO: checking for working alloca.h" >&5
20743 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
20744 if test "${ac_cv_working_alloca_h+set}" = set; then
20745   echo $ECHO_N "(cached) $ECHO_C" >&6
20746 else
20747   cat >conftest.$ac_ext <<_ACEOF
20748 #line $LINENO "configure"
20749 /* confdefs.h.  */
20750 _ACEOF
20751 cat confdefs.h >>conftest.$ac_ext
20752 cat >>conftest.$ac_ext <<_ACEOF
20753 /* end confdefs.h.  */
20754 #include <alloca.h>
20755 int
20756 main ()
20757 {
20758 char *p = (char *) alloca (2 * sizeof (int));
20759   ;
20760   return 0;
20761 }
20762 _ACEOF
20763 rm -f conftest.$ac_objext conftest$ac_exeext
20764 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20765   (eval $ac_link) 2>&5
20766   ac_status=$?
20767   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20768   (exit $ac_status); } &&
20769          { ac_try='test -s conftest$ac_exeext'
20770   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20771   (eval $ac_try) 2>&5
20772   ac_status=$?
20773   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20774   (exit $ac_status); }; }; then
20775   ac_cv_working_alloca_h=yes
20776 else
20777   echo "$as_me: failed program was:" >&5
20778 sed 's/^/| /' conftest.$ac_ext >&5
20779
20780 ac_cv_working_alloca_h=no
20781 fi
20782 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
20783 fi
20784 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
20785 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
20786 if test $ac_cv_working_alloca_h = yes; then
20787
20788 cat >>confdefs.h <<\_ACEOF
20789 #define HAVE_ALLOCA_H 1
20790 _ACEOF
20791
20792 fi
20793
20794 echo "$as_me:$LINENO: checking for alloca" >&5
20795 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
20796 if test "${ac_cv_func_alloca_works+set}" = set; then
20797   echo $ECHO_N "(cached) $ECHO_C" >&6
20798 else
20799   cat >conftest.$ac_ext <<_ACEOF
20800 #line $LINENO "configure"
20801 /* confdefs.h.  */
20802 _ACEOF
20803 cat confdefs.h >>conftest.$ac_ext
20804 cat >>conftest.$ac_ext <<_ACEOF
20805 /* end confdefs.h.  */
20806 #ifdef __GNUC__
20807 # define alloca __builtin_alloca
20808 #else
20809 # ifdef _MSC_VER
20810 #  include <malloc.h>
20811 #  define alloca _alloca
20812 # else
20813 #  if HAVE_ALLOCA_H
20814 #   include <alloca.h>
20815 #  else
20816 #   ifdef _AIX
20817  #pragma alloca
20818 #   else
20819 #    ifndef alloca /* predefined by HP cc +Olibcalls */
20820 char *alloca ();
20821 #    endif
20822 #   endif
20823 #  endif
20824 # endif
20825 #endif
20826
20827 int
20828 main ()
20829 {
20830 char *p = (char *) alloca (1);
20831   ;
20832   return 0;
20833 }
20834 _ACEOF
20835 rm -f conftest.$ac_objext conftest$ac_exeext
20836 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20837   (eval $ac_link) 2>&5
20838   ac_status=$?
20839   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20840   (exit $ac_status); } &&
20841          { ac_try='test -s conftest$ac_exeext'
20842   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20843   (eval $ac_try) 2>&5
20844   ac_status=$?
20845   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20846   (exit $ac_status); }; }; then
20847   ac_cv_func_alloca_works=yes
20848 else
20849   echo "$as_me: failed program was:" >&5
20850 sed 's/^/| /' conftest.$ac_ext >&5
20851
20852 ac_cv_func_alloca_works=no
20853 fi
20854 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
20855 fi
20856 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
20857 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
20858
20859 if test $ac_cv_func_alloca_works = yes; then
20860
20861 cat >>confdefs.h <<\_ACEOF
20862 #define HAVE_ALLOCA 1
20863 _ACEOF
20864
20865 else
20866   # The SVR3 libPW and SVR4 libucb both contain incompatible functions
20867 # that cause trouble.  Some versions do not even contain alloca or
20868 # contain a buggy version.  If you still want to use their alloca,
20869 # use ar to extract alloca.o from them instead of compiling alloca.c.
20870
20871 ALLOCA=alloca.$ac_objext
20872
20873 cat >>confdefs.h <<\_ACEOF
20874 #define C_ALLOCA 1
20875 _ACEOF
20876
20877
20878 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
20879 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
20880 if test "${ac_cv_os_cray+set}" = set; then
20881   echo $ECHO_N "(cached) $ECHO_C" >&6
20882 else
20883   cat >conftest.$ac_ext <<_ACEOF
20884 #line $LINENO "configure"
20885 /* confdefs.h.  */
20886 _ACEOF
20887 cat confdefs.h >>conftest.$ac_ext
20888 cat >>conftest.$ac_ext <<_ACEOF
20889 /* end confdefs.h.  */
20890 #if defined(CRAY) && ! defined(CRAY2)
20891 webecray
20892 #else
20893 wenotbecray
20894 #endif
20895
20896 _ACEOF
20897 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20898   $EGREP "webecray" >/dev/null 2>&1; then
20899   ac_cv_os_cray=yes
20900 else
20901   ac_cv_os_cray=no
20902 fi
20903 rm -f conftest*
20904
20905 fi
20906 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
20907 echo "${ECHO_T}$ac_cv_os_cray" >&6
20908 if test $ac_cv_os_cray = yes; then
20909   for ac_func in _getb67 GETB67 getb67; do
20910     as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20911 echo "$as_me:$LINENO: checking for $ac_func" >&5
20912 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
20913 if eval "test \"\${$as_ac_var+set}\" = set"; then
20914   echo $ECHO_N "(cached) $ECHO_C" >&6
20915 else
20916   cat >conftest.$ac_ext <<_ACEOF
20917 #line $LINENO "configure"
20918 /* confdefs.h.  */
20919 _ACEOF
20920 cat confdefs.h >>conftest.$ac_ext
20921 cat >>conftest.$ac_ext <<_ACEOF
20922 /* end confdefs.h.  */
20923 /* System header to define __stub macros and hopefully few prototypes,
20924     which can conflict with char $ac_func (); below.
20925     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20926     <limits.h> exists even on freestanding compilers.  */
20927 #ifdef __STDC__
20928 # include <limits.h>
20929 #else
20930 # include <assert.h>
20931 #endif
20932 /* Override any gcc2 internal prototype to avoid an error.  */
20933 #ifdef __cplusplus
20934 extern "C"
20935 {
20936 #endif
20937 /* We use char because int might match the return type of a gcc2
20938    builtin and then its argument prototype would still apply.  */
20939 char $ac_func ();
20940 /* The GNU C library defines this for functions which it implements
20941     to always fail with ENOSYS.  Some functions are actually named
20942     something starting with __ and the normal name is an alias.  */
20943 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20944 choke me
20945 #else
20946 char (*f) () = $ac_func;
20947 #endif
20948 #ifdef __cplusplus
20949 }
20950 #endif
20951
20952 int
20953 main ()
20954 {
20955 return f != $ac_func;
20956   ;
20957   return 0;
20958 }
20959 _ACEOF
20960 rm -f conftest.$ac_objext conftest$ac_exeext
20961 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20962   (eval $ac_link) 2>&5
20963   ac_status=$?
20964   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20965   (exit $ac_status); } &&
20966          { ac_try='test -s conftest$ac_exeext'
20967   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20968   (eval $ac_try) 2>&5
20969   ac_status=$?
20970   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20971   (exit $ac_status); }; }; then
20972   eval "$as_ac_var=yes"
20973 else
20974   echo "$as_me: failed program was:" >&5
20975 sed 's/^/| /' conftest.$ac_ext >&5
20976
20977 eval "$as_ac_var=no"
20978 fi
20979 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
20980 fi
20981 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
20982 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
20983 if test `eval echo '${'$as_ac_var'}'` = yes; then
20984
20985 cat >>confdefs.h <<_ACEOF
20986 #define CRAY_STACKSEG_END $ac_func
20987 _ACEOF
20988
20989     break
20990 fi
20991
20992   done
20993 fi
20994
20995 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
20996 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
20997 if test "${ac_cv_c_stack_direction+set}" = set; then
20998   echo $ECHO_N "(cached) $ECHO_C" >&6
20999 else
21000   if test "$cross_compiling" = yes; then
21001   ac_cv_c_stack_direction=0
21002 else
21003   cat >conftest.$ac_ext <<_ACEOF
21004 #line $LINENO "configure"
21005 /* confdefs.h.  */
21006 _ACEOF
21007 cat confdefs.h >>conftest.$ac_ext
21008 cat >>conftest.$ac_ext <<_ACEOF
21009 /* end confdefs.h.  */
21010 int
21011 find_stack_direction ()
21012 {
21013   static char *addr = 0;
21014   auto char dummy;
21015   if (addr == 0)
21016     {
21017       addr = &dummy;
21018       return find_stack_direction ();
21019     }
21020   else
21021     return (&dummy > addr) ? 1 : -1;
21022 }
21023
21024 int
21025 main ()
21026 {
21027   exit (find_stack_direction () < 0);
21028 }
21029 _ACEOF
21030 rm -f conftest$ac_exeext
21031 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21032   (eval $ac_link) 2>&5
21033   ac_status=$?
21034   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21035   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21036   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21037   (eval $ac_try) 2>&5
21038   ac_status=$?
21039   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21040   (exit $ac_status); }; }; then
21041   ac_cv_c_stack_direction=1
21042 else
21043   echo "$as_me: program exited with status $ac_status" >&5
21044 echo "$as_me: failed program was:" >&5
21045 sed 's/^/| /' conftest.$ac_ext >&5
21046
21047 ( exit $ac_status )
21048 ac_cv_c_stack_direction=-1
21049 fi
21050 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21051 fi
21052 fi
21053 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
21054 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
21055
21056 cat >>confdefs.h <<_ACEOF
21057 #define STACK_DIRECTION $ac_cv_c_stack_direction
21058 _ACEOF
21059
21060
21061 fi
21062
21063 if test $ac_cv_c_compiler_gnu = yes; then
21064     echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
21065 echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6
21066 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
21067   echo $ECHO_N "(cached) $ECHO_C" >&6
21068 else
21069     ac_pattern="Autoconf.*'x'"
21070   cat >conftest.$ac_ext <<_ACEOF
21071 #line $LINENO "configure"
21072 /* confdefs.h.  */
21073 _ACEOF
21074 cat confdefs.h >>conftest.$ac_ext
21075 cat >>conftest.$ac_ext <<_ACEOF
21076 /* end confdefs.h.  */
21077 #include <sgtty.h>
21078 Autoconf TIOCGETP
21079 _ACEOF
21080 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21081   $EGREP "$ac_pattern" >/dev/null 2>&1; then
21082   ac_cv_prog_gcc_traditional=yes
21083 else
21084   ac_cv_prog_gcc_traditional=no
21085 fi
21086 rm -f conftest*
21087
21088
21089   if test $ac_cv_prog_gcc_traditional = no; then
21090     cat >conftest.$ac_ext <<_ACEOF
21091 #line $LINENO "configure"
21092 /* confdefs.h.  */
21093 _ACEOF
21094 cat confdefs.h >>conftest.$ac_ext
21095 cat >>conftest.$ac_ext <<_ACEOF
21096 /* end confdefs.h.  */
21097 #include <termio.h>
21098 Autoconf TCGETA
21099 _ACEOF
21100 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21101   $EGREP "$ac_pattern" >/dev/null 2>&1; then
21102   ac_cv_prog_gcc_traditional=yes
21103 fi
21104 rm -f conftest*
21105
21106   fi
21107 fi
21108 echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
21109 echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6
21110   if test $ac_cv_prog_gcc_traditional = yes; then
21111     CC="$CC -traditional"
21112   fi
21113 fi
21114
21115 echo "$as_me:$LINENO: checking for working memcmp" >&5
21116 echo $ECHO_N "checking for working memcmp... $ECHO_C" >&6
21117 if test "${ac_cv_func_memcmp_working+set}" = set; then
21118   echo $ECHO_N "(cached) $ECHO_C" >&6
21119 else
21120   if test "$cross_compiling" = yes; then
21121   ac_cv_func_memcmp_working=no
21122 else
21123   cat >conftest.$ac_ext <<_ACEOF
21124 #line $LINENO "configure"
21125 /* confdefs.h.  */
21126 _ACEOF
21127 cat confdefs.h >>conftest.$ac_ext
21128 cat >>conftest.$ac_ext <<_ACEOF
21129 /* end confdefs.h.  */
21130
21131 int
21132 main ()
21133 {
21134
21135   /* Some versions of memcmp are not 8-bit clean.  */
21136   char c0 = 0x40, c1 = 0x80, c2 = 0x81;
21137   if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
21138     exit (1);
21139
21140   /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
21141      or more and with at least one buffer not starting on a 4-byte boundary.
21142      William Lewis provided this test program.   */
21143   {
21144     char foo[21];
21145     char bar[21];
21146     int i;
21147     for (i = 0; i < 4; i++)
21148       {
21149         char *a = foo + i;
21150         char *b = bar + i;
21151         strcpy (a, "--------01111111");
21152         strcpy (b, "--------10000000");
21153         if (memcmp (a, b, 16) >= 0)
21154           exit (1);
21155       }
21156     exit (0);
21157   }
21158
21159   ;
21160   return 0;
21161 }
21162 _ACEOF
21163 rm -f conftest$ac_exeext
21164 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21165   (eval $ac_link) 2>&5
21166   ac_status=$?
21167   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21168   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21169   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21170   (eval $ac_try) 2>&5
21171   ac_status=$?
21172   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21173   (exit $ac_status); }; }; then
21174   ac_cv_func_memcmp_working=yes
21175 else
21176   echo "$as_me: program exited with status $ac_status" >&5
21177 echo "$as_me: failed program was:" >&5
21178 sed 's/^/| /' conftest.$ac_ext >&5
21179
21180 ( exit $ac_status )
21181 ac_cv_func_memcmp_working=no
21182 fi
21183 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21184 fi
21185 fi
21186 echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
21187 echo "${ECHO_T}$ac_cv_func_memcmp_working" >&6
21188 test $ac_cv_func_memcmp_working = no && LIBOBJS="$LIBOBJS memcmp.$ac_objext"
21189
21190
21191
21192 for ac_header in stdlib.h unistd.h
21193 do
21194 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21195 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21196   echo "$as_me:$LINENO: checking for $ac_header" >&5
21197 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21198 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21199   echo $ECHO_N "(cached) $ECHO_C" >&6
21200 fi
21201 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21202 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21203 else
21204   # Is the header compilable?
21205 echo "$as_me:$LINENO: checking $ac_header usability" >&5
21206 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
21207 cat >conftest.$ac_ext <<_ACEOF
21208 #line $LINENO "configure"
21209 /* confdefs.h.  */
21210 _ACEOF
21211 cat confdefs.h >>conftest.$ac_ext
21212 cat >>conftest.$ac_ext <<_ACEOF
21213 /* end confdefs.h.  */
21214 $ac_includes_default
21215 #include <$ac_header>
21216 _ACEOF
21217 rm -f conftest.$ac_objext
21218 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21219   (eval $ac_compile) 2>&5
21220   ac_status=$?
21221   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21222   (exit $ac_status); } &&
21223          { ac_try='test -s conftest.$ac_objext'
21224   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21225   (eval $ac_try) 2>&5
21226   ac_status=$?
21227   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21228   (exit $ac_status); }; }; then
21229   ac_header_compiler=yes
21230 else
21231   echo "$as_me: failed program was:" >&5
21232 sed 's/^/| /' conftest.$ac_ext >&5
21233
21234 ac_header_compiler=no
21235 fi
21236 rm -f conftest.$ac_objext conftest.$ac_ext
21237 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21238 echo "${ECHO_T}$ac_header_compiler" >&6
21239
21240 # Is the header present?
21241 echo "$as_me:$LINENO: checking $ac_header presence" >&5
21242 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
21243 cat >conftest.$ac_ext <<_ACEOF
21244 #line $LINENO "configure"
21245 /* confdefs.h.  */
21246 _ACEOF
21247 cat confdefs.h >>conftest.$ac_ext
21248 cat >>conftest.$ac_ext <<_ACEOF
21249 /* end confdefs.h.  */
21250 #include <$ac_header>
21251 _ACEOF
21252 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21253   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21254   ac_status=$?
21255   grep -v '^ *+' conftest.er1 >conftest.err
21256   rm -f conftest.er1
21257   cat conftest.err >&5
21258   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21259   (exit $ac_status); } >/dev/null; then
21260   if test -s conftest.err; then
21261     ac_cpp_err=$ac_c_preproc_warn_flag
21262   else
21263     ac_cpp_err=
21264   fi
21265 else
21266   ac_cpp_err=yes
21267 fi
21268 if test -z "$ac_cpp_err"; then
21269   ac_header_preproc=yes
21270 else
21271   echo "$as_me: failed program was:" >&5
21272 sed 's/^/| /' conftest.$ac_ext >&5
21273
21274   ac_header_preproc=no
21275 fi
21276 rm -f conftest.err conftest.$ac_ext
21277 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21278 echo "${ECHO_T}$ac_header_preproc" >&6
21279
21280 # So?  What about this header?
21281 case $ac_header_compiler:$ac_header_preproc in
21282   yes:no )
21283     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21284 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21285     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21286 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21287     (
21288       cat <<\_ASBOX
21289 ## ------------------------------------ ##
21290 ## Report this to bug-autoconf@gnu.org. ##
21291 ## ------------------------------------ ##
21292 _ASBOX
21293     ) |
21294       sed "s/^/$as_me: WARNING:     /" >&2
21295     ;;
21296   no:yes )
21297     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21298 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21299     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21300 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21301     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21302 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21303     (
21304       cat <<\_ASBOX
21305 ## ------------------------------------ ##
21306 ## Report this to bug-autoconf@gnu.org. ##
21307 ## ------------------------------------ ##
21308 _ASBOX
21309     ) |
21310       sed "s/^/$as_me: WARNING:     /" >&2
21311     ;;
21312 esac
21313 echo "$as_me:$LINENO: checking for $ac_header" >&5
21314 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21315 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21316   echo $ECHO_N "(cached) $ECHO_C" >&6
21317 else
21318   eval "$as_ac_Header=$ac_header_preproc"
21319 fi
21320 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21321 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21322
21323 fi
21324 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21325   cat >>confdefs.h <<_ACEOF
21326 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21327 _ACEOF
21328
21329 fi
21330
21331 done
21332
21333
21334 for ac_func in getpagesize
21335 do
21336 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21337 echo "$as_me:$LINENO: checking for $ac_func" >&5
21338 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
21339 if eval "test \"\${$as_ac_var+set}\" = set"; then
21340   echo $ECHO_N "(cached) $ECHO_C" >&6
21341 else
21342   cat >conftest.$ac_ext <<_ACEOF
21343 #line $LINENO "configure"
21344 /* confdefs.h.  */
21345 _ACEOF
21346 cat confdefs.h >>conftest.$ac_ext
21347 cat >>conftest.$ac_ext <<_ACEOF
21348 /* end confdefs.h.  */
21349 /* System header to define __stub macros and hopefully few prototypes,
21350     which can conflict with char $ac_func (); below.
21351     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21352     <limits.h> exists even on freestanding compilers.  */
21353 #ifdef __STDC__
21354 # include <limits.h>
21355 #else
21356 # include <assert.h>
21357 #endif
21358 /* Override any gcc2 internal prototype to avoid an error.  */
21359 #ifdef __cplusplus
21360 extern "C"
21361 {
21362 #endif
21363 /* We use char because int might match the return type of a gcc2
21364    builtin and then its argument prototype would still apply.  */
21365 char $ac_func ();
21366 /* The GNU C library defines this for functions which it implements
21367     to always fail with ENOSYS.  Some functions are actually named
21368     something starting with __ and the normal name is an alias.  */
21369 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21370 choke me
21371 #else
21372 char (*f) () = $ac_func;
21373 #endif
21374 #ifdef __cplusplus
21375 }
21376 #endif
21377
21378 int
21379 main ()
21380 {
21381 return f != $ac_func;
21382   ;
21383   return 0;
21384 }
21385 _ACEOF
21386 rm -f conftest.$ac_objext conftest$ac_exeext
21387 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21388   (eval $ac_link) 2>&5
21389   ac_status=$?
21390   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21391   (exit $ac_status); } &&
21392          { ac_try='test -s conftest$ac_exeext'
21393   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21394   (eval $ac_try) 2>&5
21395   ac_status=$?
21396   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21397   (exit $ac_status); }; }; then
21398   eval "$as_ac_var=yes"
21399 else
21400   echo "$as_me: failed program was:" >&5
21401 sed 's/^/| /' conftest.$ac_ext >&5
21402
21403 eval "$as_ac_var=no"
21404 fi
21405 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21406 fi
21407 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
21408 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
21409 if test `eval echo '${'$as_ac_var'}'` = yes; then
21410   cat >>confdefs.h <<_ACEOF
21411 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21412 _ACEOF
21413
21414 fi
21415 done
21416
21417 echo "$as_me:$LINENO: checking for working mmap" >&5
21418 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
21419 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
21420   echo $ECHO_N "(cached) $ECHO_C" >&6
21421 else
21422   if test "$cross_compiling" = yes; then
21423   ac_cv_func_mmap_fixed_mapped=no
21424 else
21425   cat >conftest.$ac_ext <<_ACEOF
21426 #line $LINENO "configure"
21427 /* confdefs.h.  */
21428 _ACEOF
21429 cat confdefs.h >>conftest.$ac_ext
21430 cat >>conftest.$ac_ext <<_ACEOF
21431 /* end confdefs.h.  */
21432 $ac_includes_default
21433 /* malloc might have been renamed as rpl_malloc. */
21434 #undef malloc
21435
21436 /* Thanks to Mike Haertel and Jim Avera for this test.
21437    Here is a matrix of mmap possibilities:
21438         mmap private not fixed
21439         mmap private fixed at somewhere currently unmapped
21440         mmap private fixed at somewhere already mapped
21441         mmap shared not fixed
21442         mmap shared fixed at somewhere currently unmapped
21443         mmap shared fixed at somewhere already mapped
21444    For private mappings, we should verify that changes cannot be read()
21445    back from the file, nor mmap's back from the file at a different
21446    address.  (There have been systems where private was not correctly
21447    implemented like the infamous i386 svr4.0, and systems where the
21448    VM page cache was not coherent with the file system buffer cache
21449    like early versions of FreeBSD and possibly contemporary NetBSD.)
21450    For shared mappings, we should conversely verify that changes get
21451    propagated back to all the places they're supposed to be.
21452
21453    Grep wants private fixed already mapped.
21454    The main things grep needs to know about mmap are:
21455    * does it exist and is it safe to write into the mmap'd area
21456    * how to use it (BSD variants)  */
21457
21458 #include <fcntl.h>
21459 #include <sys/mman.h>
21460
21461 #if !STDC_HEADERS && !HAVE_STDLIB_H
21462 char *malloc ();
21463 #endif
21464
21465 /* This mess was copied from the GNU getpagesize.h.  */
21466 #if !HAVE_GETPAGESIZE
21467 /* Assume that all systems that can run configure have sys/param.h.  */
21468 # if !HAVE_SYS_PARAM_H
21469 #  define HAVE_SYS_PARAM_H 1
21470 # endif
21471
21472 # ifdef _SC_PAGESIZE
21473 #  define getpagesize() sysconf(_SC_PAGESIZE)
21474 # else /* no _SC_PAGESIZE */
21475 #  if HAVE_SYS_PARAM_H
21476 #   include <sys/param.h>
21477 #   ifdef EXEC_PAGESIZE
21478 #    define getpagesize() EXEC_PAGESIZE
21479 #   else /* no EXEC_PAGESIZE */
21480 #    ifdef NBPG
21481 #     define getpagesize() NBPG * CLSIZE
21482 #     ifndef CLSIZE
21483 #      define CLSIZE 1
21484 #     endif /* no CLSIZE */
21485 #    else /* no NBPG */
21486 #     ifdef NBPC
21487 #      define getpagesize() NBPC
21488 #     else /* no NBPC */
21489 #      ifdef PAGESIZE
21490 #       define getpagesize() PAGESIZE
21491 #      endif /* PAGESIZE */
21492 #     endif /* no NBPC */
21493 #    endif /* no NBPG */
21494 #   endif /* no EXEC_PAGESIZE */
21495 #  else /* no HAVE_SYS_PARAM_H */
21496 #   define getpagesize() 8192   /* punt totally */
21497 #  endif /* no HAVE_SYS_PARAM_H */
21498 # endif /* no _SC_PAGESIZE */
21499
21500 #endif /* no HAVE_GETPAGESIZE */
21501
21502 int
21503 main ()
21504 {
21505   char *data, *data2, *data3;
21506   int i, pagesize;
21507   int fd;
21508
21509   pagesize = getpagesize ();
21510
21511   /* First, make a file with some known garbage in it. */
21512   data = (char *) malloc (pagesize);
21513   if (!data)
21514     exit (1);
21515   for (i = 0; i < pagesize; ++i)
21516     *(data + i) = rand ();
21517   umask (0);
21518   fd = creat ("conftest.mmap", 0600);
21519   if (fd < 0)
21520     exit (1);
21521   if (write (fd, data, pagesize) != pagesize)
21522     exit (1);
21523   close (fd);
21524
21525   /* Next, try to mmap the file at a fixed address which already has
21526      something else allocated at it.  If we can, also make sure that
21527      we see the same garbage.  */
21528   fd = open ("conftest.mmap", O_RDWR);
21529   if (fd < 0)
21530     exit (1);
21531   data2 = (char *) malloc (2 * pagesize);
21532   if (!data2)
21533     exit (1);
21534   data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
21535   if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
21536                      MAP_PRIVATE | MAP_FIXED, fd, 0L))
21537     exit (1);
21538   for (i = 0; i < pagesize; ++i)
21539     if (*(data + i) != *(data2 + i))
21540       exit (1);
21541
21542   /* Finally, make sure that changes to the mapped area do not
21543      percolate back to the file as seen by read().  (This is a bug on
21544      some variants of i386 svr4.0.)  */
21545   for (i = 0; i < pagesize; ++i)
21546     *(data2 + i) = *(data2 + i) + 1;
21547   data3 = (char *) malloc (pagesize);
21548   if (!data3)
21549     exit (1);
21550   if (read (fd, data3, pagesize) != pagesize)
21551     exit (1);
21552   for (i = 0; i < pagesize; ++i)
21553     if (*(data + i) != *(data3 + i))
21554       exit (1);
21555   close (fd);
21556   exit (0);
21557 }
21558 _ACEOF
21559 rm -f conftest$ac_exeext
21560 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21561   (eval $ac_link) 2>&5
21562   ac_status=$?
21563   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21564   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21565   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21566   (eval $ac_try) 2>&5
21567   ac_status=$?
21568   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21569   (exit $ac_status); }; }; then
21570   ac_cv_func_mmap_fixed_mapped=yes
21571 else
21572   echo "$as_me: program exited with status $ac_status" >&5
21573 echo "$as_me: failed program was:" >&5
21574 sed 's/^/| /' conftest.$ac_ext >&5
21575
21576 ( exit $ac_status )
21577 ac_cv_func_mmap_fixed_mapped=no
21578 fi
21579 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21580 fi
21581 fi
21582 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
21583 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
21584 if test $ac_cv_func_mmap_fixed_mapped = yes; then
21585
21586 cat >>confdefs.h <<\_ACEOF
21587 #define HAVE_MMAP 1
21588 _ACEOF
21589
21590 fi
21591 rm -f conftest.mmap
21592
21593 echo "$as_me:$LINENO: checking for mmap of files" >&5
21594 echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6
21595 if test "${ac_cv_func_mmap_file+set}" = set; then
21596   echo $ECHO_N "(cached) $ECHO_C" >&6
21597 else
21598
21599
21600   ac_ext=c
21601 ac_cpp='$CPP $CPPFLAGS'
21602 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21603 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21604 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21605
21606   if test "$cross_compiling" = yes; then
21607   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
21608 See \`config.log' for more details." >&5
21609 echo "$as_me: error: cannot run test program while cross compiling
21610 See \`config.log' for more details." >&2;}
21611    { (exit 1); exit 1; }; }
21612 else
21613   cat >conftest.$ac_ext <<_ACEOF
21614 #line $LINENO "configure"
21615 /* confdefs.h.  */
21616 _ACEOF
21617 cat confdefs.h >>conftest.$ac_ext
21618 cat >>conftest.$ac_ext <<_ACEOF
21619 /* end confdefs.h.  */
21620
21621 #ifdef HAVE_SYS_MMAN_H
21622 #include <sys/mman.h>
21623 #endif
21624
21625 #ifdef HAVE_SYS_TYPES_H
21626 #include <sys/types.h>
21627 #endif
21628
21629 #ifdef HAVE_FCNTL_H
21630 #include <fcntl.h>
21631 #endif
21632
21633   int fd;
21634   int main () {
21635   fd = creat ("foo",0777); fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0); unlink ("foo"); return (fd != MAP_FAILED);}
21636 _ACEOF
21637 rm -f conftest$ac_exeext
21638 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21639   (eval $ac_link) 2>&5
21640   ac_status=$?
21641   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21642   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21643   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21644   (eval $ac_try) 2>&5
21645   ac_status=$?
21646   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21647   (exit $ac_status); }; }; then
21648   ac_cv_func_mmap_file=yes
21649 else
21650   echo "$as_me: program exited with status $ac_status" >&5
21651 echo "$as_me: failed program was:" >&5
21652 sed 's/^/| /' conftest.$ac_ext >&5
21653
21654 ( exit $ac_status )
21655 ac_cv_func_mmap_file=no
21656 fi
21657 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21658 fi
21659   ac_ext=c
21660 ac_cpp='$CPP $CPPFLAGS'
21661 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21662 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21663 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21664
21665
21666 fi
21667 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
21668 echo "${ECHO_T}$ac_cv_func_mmap_file" >&6
21669 if test "$ac_cv_func_mmap_file" = yes; then
21670    cat >>confdefs.h <<\_ACEOF
21671 #define HAVE_MMAP_FILE 1
21672 _ACEOF
21673
21674    MMAP_FILE=yes
21675
21676 fi
21677
21678 if test ${ac_cv_func_mmap_file} = "no"
21679 then
21680         { { echo "$as_me:$LINENO: error: mmap() of files required but not found" >&5
21681 echo "$as_me: error: mmap() of files required but not found" >&2;}
21682    { (exit 1); exit 1; }; }
21683 fi
21684 echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5
21685 echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6
21686 if test "${ac_cv_header_mmap_anon+set}" = set; then
21687   echo $ECHO_N "(cached) $ECHO_C" >&6
21688 else
21689
21690
21691   ac_ext=c
21692 ac_cpp='$CPP $CPPFLAGS'
21693 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21694 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21695 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21696
21697   cat >conftest.$ac_ext <<_ACEOF
21698 #line $LINENO "configure"
21699 /* confdefs.h.  */
21700 _ACEOF
21701 cat confdefs.h >>conftest.$ac_ext
21702 cat >>conftest.$ac_ext <<_ACEOF
21703 /* end confdefs.h.  */
21704 #include <sys/mman.h>
21705   #include <unistd.h>
21706   #include <fcntl.h>
21707 int
21708 main ()
21709 {
21710 mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0);
21711   ;
21712   return 0;
21713 }
21714 _ACEOF
21715 rm -f conftest.$ac_objext
21716 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21717   (eval $ac_compile) 2>&5
21718   ac_status=$?
21719   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21720   (exit $ac_status); } &&
21721          { ac_try='test -s conftest.$ac_objext'
21722   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21723   (eval $ac_try) 2>&5
21724   ac_status=$?
21725   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21726   (exit $ac_status); }; }; then
21727   ac_cv_header_mmap_anon=yes
21728 else
21729   echo "$as_me: failed program was:" >&5
21730 sed 's/^/| /' conftest.$ac_ext >&5
21731
21732 ac_cv_header_mmap_anon=no
21733 fi
21734 rm -f conftest.$ac_objext conftest.$ac_ext
21735   ac_ext=c
21736 ac_cpp='$CPP $CPPFLAGS'
21737 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21738 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21739 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21740
21741
21742 fi
21743 echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5
21744 echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6
21745 if test "$ac_cv_header_mmap_anon" = yes; then
21746    cat >>confdefs.h <<\_ACEOF
21747 #define HAVE_MMAP_ANONYMOUS 1
21748 _ACEOF
21749
21750 fi
21751
21752 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
21753 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
21754 if test "${ac_cv_type_signal+set}" = set; then
21755   echo $ECHO_N "(cached) $ECHO_C" >&6
21756 else
21757   cat >conftest.$ac_ext <<_ACEOF
21758 #line $LINENO "configure"
21759 /* confdefs.h.  */
21760 _ACEOF
21761 cat confdefs.h >>conftest.$ac_ext
21762 cat >>conftest.$ac_ext <<_ACEOF
21763 /* end confdefs.h.  */
21764 #include <sys/types.h>
21765 #include <signal.h>
21766 #ifdef signal
21767 # undef signal
21768 #endif
21769 #ifdef __cplusplus
21770 extern "C" void (*signal (int, void (*)(int)))(int);
21771 #else
21772 void (*signal ()) ();
21773 #endif
21774
21775 int
21776 main ()
21777 {
21778 int i;
21779   ;
21780   return 0;
21781 }
21782 _ACEOF
21783 rm -f conftest.$ac_objext
21784 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21785   (eval $ac_compile) 2>&5
21786   ac_status=$?
21787   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21788   (exit $ac_status); } &&
21789          { ac_try='test -s conftest.$ac_objext'
21790   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21791   (eval $ac_try) 2>&5
21792   ac_status=$?
21793   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21794   (exit $ac_status); }; }; then
21795   ac_cv_type_signal=void
21796 else
21797   echo "$as_me: failed program was:" >&5
21798 sed 's/^/| /' conftest.$ac_ext >&5
21799
21800 ac_cv_type_signal=int
21801 fi
21802 rm -f conftest.$ac_objext conftest.$ac_ext
21803 fi
21804 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
21805 echo "${ECHO_T}$ac_cv_type_signal" >&6
21806
21807 cat >>confdefs.h <<_ACEOF
21808 #define RETSIGTYPE $ac_cv_type_signal
21809 _ACEOF
21810
21811
21812
21813
21814
21815
21816
21817
21818
21819
21820
21821 for ac_func in getcwd gettimeofday strcspn strdup strerror strspn strstr strtod strtol
21822 do
21823 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21824 echo "$as_me:$LINENO: checking for $ac_func" >&5
21825 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
21826 if eval "test \"\${$as_ac_var+set}\" = set"; then
21827   echo $ECHO_N "(cached) $ECHO_C" >&6
21828 else
21829   cat >conftest.$ac_ext <<_ACEOF
21830 #line $LINENO "configure"
21831 /* confdefs.h.  */
21832 _ACEOF
21833 cat confdefs.h >>conftest.$ac_ext
21834 cat >>conftest.$ac_ext <<_ACEOF
21835 /* end confdefs.h.  */
21836 /* System header to define __stub macros and hopefully few prototypes,
21837     which can conflict with char $ac_func (); below.
21838     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21839     <limits.h> exists even on freestanding compilers.  */
21840 #ifdef __STDC__
21841 # include <limits.h>
21842 #else
21843 # include <assert.h>
21844 #endif
21845 /* Override any gcc2 internal prototype to avoid an error.  */
21846 #ifdef __cplusplus
21847 extern "C"
21848 {
21849 #endif
21850 /* We use char because int might match the return type of a gcc2
21851    builtin and then its argument prototype would still apply.  */
21852 char $ac_func ();
21853 /* The GNU C library defines this for functions which it implements
21854     to always fail with ENOSYS.  Some functions are actually named
21855     something starting with __ and the normal name is an alias.  */
21856 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21857 choke me
21858 #else
21859 char (*f) () = $ac_func;
21860 #endif
21861 #ifdef __cplusplus
21862 }
21863 #endif
21864
21865 int
21866 main ()
21867 {
21868 return f != $ac_func;
21869   ;
21870   return 0;
21871 }
21872 _ACEOF
21873 rm -f conftest.$ac_objext conftest$ac_exeext
21874 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21875   (eval $ac_link) 2>&5
21876   ac_status=$?
21877   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21878   (exit $ac_status); } &&
21879          { ac_try='test -s conftest$ac_exeext'
21880   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21881   (eval $ac_try) 2>&5
21882   ac_status=$?
21883   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21884   (exit $ac_status); }; }; then
21885   eval "$as_ac_var=yes"
21886 else
21887   echo "$as_me: failed program was:" >&5
21888 sed 's/^/| /' conftest.$ac_ext >&5
21889
21890 eval "$as_ac_var=no"
21891 fi
21892 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21893 fi
21894 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
21895 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
21896 if test `eval echo '${'$as_ac_var'}'` = yes; then
21897   cat >>confdefs.h <<_ACEOF
21898 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21899 _ACEOF
21900
21901 fi
21902 done
21903
21904
21905
21906 echo "$as_me:$LINENO: checking for mmap" >&5
21907 echo $ECHO_N "checking for mmap... $ECHO_C" >&6
21908 if test "${ac_cv_func_mmap+set}" = set; then
21909   echo $ECHO_N "(cached) $ECHO_C" >&6
21910 else
21911   cat >conftest.$ac_ext <<_ACEOF
21912 #line $LINENO "configure"
21913 /* confdefs.h.  */
21914 _ACEOF
21915 cat confdefs.h >>conftest.$ac_ext
21916 cat >>conftest.$ac_ext <<_ACEOF
21917 /* end confdefs.h.  */
21918 /* System header to define __stub macros and hopefully few prototypes,
21919     which can conflict with char mmap (); below.
21920     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21921     <limits.h> exists even on freestanding compilers.  */
21922 #ifdef __STDC__
21923 # include <limits.h>
21924 #else
21925 # include <assert.h>
21926 #endif
21927 /* Override any gcc2 internal prototype to avoid an error.  */
21928 #ifdef __cplusplus
21929 extern "C"
21930 {
21931 #endif
21932 /* We use char because int might match the return type of a gcc2
21933    builtin and then its argument prototype would still apply.  */
21934 char mmap ();
21935 /* The GNU C library defines this for functions which it implements
21936     to always fail with ENOSYS.  Some functions are actually named
21937     something starting with __ and the normal name is an alias.  */
21938 #if defined (__stub_mmap) || defined (__stub___mmap)
21939 choke me
21940 #else
21941 char (*f) () = mmap;
21942 #endif
21943 #ifdef __cplusplus
21944 }
21945 #endif
21946
21947 int
21948 main ()
21949 {
21950 return f != mmap;
21951   ;
21952   return 0;
21953 }
21954 _ACEOF
21955 rm -f conftest.$ac_objext conftest$ac_exeext
21956 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21957   (eval $ac_link) 2>&5
21958   ac_status=$?
21959   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21960   (exit $ac_status); } &&
21961          { ac_try='test -s conftest$ac_exeext'
21962   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21963   (eval $ac_try) 2>&5
21964   ac_status=$?
21965   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21966   (exit $ac_status); }; }; then
21967   ac_cv_func_mmap=yes
21968 else
21969   echo "$as_me: failed program was:" >&5
21970 sed 's/^/| /' conftest.$ac_ext >&5
21971
21972 ac_cv_func_mmap=no
21973 fi
21974 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21975 fi
21976 echo "$as_me:$LINENO: result: $ac_cv_func_mmap" >&5
21977 echo "${ECHO_T}$ac_cv_func_mmap" >&6
21978 if test $ac_cv_func_mmap = yes; then
21979   :
21980 else
21981   { { echo "$as_me:$LINENO: error: Function mmap() required but not found" >&5
21982 echo "$as_me: error: Function mmap() required but not found" >&2;}
21983    { (exit 1); exit 1; }; }
21984 fi
21985
21986 echo "$as_me:$LINENO: checking for mprotect" >&5
21987 echo $ECHO_N "checking for mprotect... $ECHO_C" >&6
21988 if test "${ac_cv_func_mprotect+set}" = set; then
21989   echo $ECHO_N "(cached) $ECHO_C" >&6
21990 else
21991   cat >conftest.$ac_ext <<_ACEOF
21992 #line $LINENO "configure"
21993 /* confdefs.h.  */
21994 _ACEOF
21995 cat confdefs.h >>conftest.$ac_ext
21996 cat >>conftest.$ac_ext <<_ACEOF
21997 /* end confdefs.h.  */
21998 /* System header to define __stub macros and hopefully few prototypes,
21999     which can conflict with char mprotect (); below.
22000     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22001     <limits.h> exists even on freestanding compilers.  */
22002 #ifdef __STDC__
22003 # include <limits.h>
22004 #else
22005 # include <assert.h>
22006 #endif
22007 /* Override any gcc2 internal prototype to avoid an error.  */
22008 #ifdef __cplusplus
22009 extern "C"
22010 {
22011 #endif
22012 /* We use char because int might match the return type of a gcc2
22013    builtin and then its argument prototype would still apply.  */
22014 char mprotect ();
22015 /* The GNU C library defines this for functions which it implements
22016     to always fail with ENOSYS.  Some functions are actually named
22017     something starting with __ and the normal name is an alias.  */
22018 #if defined (__stub_mprotect) || defined (__stub___mprotect)
22019 choke me
22020 #else
22021 char (*f) () = mprotect;
22022 #endif
22023 #ifdef __cplusplus
22024 }
22025 #endif
22026
22027 int
22028 main ()
22029 {
22030 return f != mprotect;
22031   ;
22032   return 0;
22033 }
22034 _ACEOF
22035 rm -f conftest.$ac_objext conftest$ac_exeext
22036 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22037   (eval $ac_link) 2>&5
22038   ac_status=$?
22039   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22040   (exit $ac_status); } &&
22041          { ac_try='test -s conftest$ac_exeext'
22042   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22043   (eval $ac_try) 2>&5
22044   ac_status=$?
22045   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22046   (exit $ac_status); }; }; then
22047   ac_cv_func_mprotect=yes
22048 else
22049   echo "$as_me: failed program was:" >&5
22050 sed 's/^/| /' conftest.$ac_ext >&5
22051
22052 ac_cv_func_mprotect=no
22053 fi
22054 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
22055 fi
22056 echo "$as_me:$LINENO: result: $ac_cv_func_mprotect" >&5
22057 echo "${ECHO_T}$ac_cv_func_mprotect" >&6
22058 if test $ac_cv_func_mprotect = yes; then
22059   :
22060 else
22061   { { echo "$as_me:$LINENO: error: Function mprotect() required but not found" >&5
22062 echo "$as_me: error: Function mprotect() required but not found" >&2;}
22063    { (exit 1); exit 1; }; }
22064 fi
22065
22066
22067
22068 # Check whether --enable-purify or --disable-purify was given.
22069 if test "${enable_purify+set}" = set; then
22070   enableval="$enable_purify"
22071
22072 else
22073   enableval="no"
22074 fi;
22075 if test ${enableval} = "no"
22076 then
22077         ENABLE_PURIFY=
22078
22079 else
22080         ENABLE_PURIFY=ENABLE_PURIFY=1
22081
22082 fi
22083
22084 # Check whether --enable-optimized or --disable-optimized was given.
22085 if test "${enable_optimized+set}" = set; then
22086   enableval="$enable_optimized"
22087
22088 else
22089   enableval=no
22090 fi;
22091 if test ${enableval} = "no"
22092 then
22093         ENABLE_OPTIMIZED=
22094
22095 else
22096         ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1
22097
22098 fi
22099
22100 # Check whether --enable-spec or --disable-spec was given.
22101 if test "${enable_spec+set}" = set; then
22102   enableval="$enable_spec"
22103
22104 else
22105   enableval=no
22106 fi;
22107 if test ${enableval} = "no"
22108 then
22109         USE_SPEC=
22110
22111 else
22112         USE_SPEC=USE_SPEC=1
22113
22114 fi
22115
22116 # Check whether --enable-precompiled_bytecode or --disable-precompiled_bytecode was given.
22117 if test "${enable_precompiled_bytecode+set}" = set; then
22118   enableval="$enable_precompiled_bytecode"
22119
22120 else
22121   enableval=no
22122 fi;
22123 if test ${enableval} = "no"
22124 then
22125         UPB=
22126
22127 else
22128         UPB=USE_PRECOMPILED_BYTECODE=1
22129
22130 fi
22131
22132
22133 # Check whether --enable-llc_diffs or --disable-llc_diffs was given.
22134 if test "${enable_llc_diffs+set}" = set; then
22135   enableval="$enable_llc_diffs"
22136
22137 else
22138   enableval=yes
22139 fi;
22140 if test ${enableval} = "no"
22141 then
22142         DISABLE_LLC_DIFFS=DISABLE_LLC_DIFFS:=1
22143
22144 else
22145         DISABLE_LLC_DIFFS=
22146
22147 fi
22148
22149 # Check whether --enable-jit or --disable-jit was given.
22150 if test "${enable_jit+set}" = set; then
22151   enableval="$enable_jit"
22152
22153 else
22154   enableval=default
22155 fi;
22156
22157 if test ${enableval} = "no"
22158 then
22159         JIT=
22160
22161 else
22162         case $target in
22163                 *i*86*)
22164                         JIT=TARGET_HAS_JIT=1
22165
22166                         ;;
22167                 *sparc*)
22168                         JIT=TARGET_HAS_JIT=1
22169
22170                         ;;
22171                 *)
22172                         JIT=
22173
22174                         ;;
22175         esac
22176 fi
22177
22178
22179
22180 # Check whether --with-spec or --without-spec was given.
22181 if test "${with_spec+set}" = set; then
22182   withval="$with_spec"
22183   SPEC_ROOT=$withval
22184
22185 else
22186   SPEC_ROOT=/home/vadve/shared/benchmarks/speccpu2000/benchspec
22187
22188 fi;
22189
22190
22191 # Check whether --with-llvmgccdir or --without-llvmgccdir was given.
22192 if test "${with_llvmgccdir+set}" = set; then
22193   withval="$with_llvmgccdir"
22194   LLVMGCCDIR=$withval
22195
22196 fi;
22197
22198
22199 # Check whether --with-bcrepos or --without-bcrepos was given.
22200 if test "${with_bcrepos+set}" = set; then
22201   withval="$with_bcrepos"
22202   BCR=$withval
22203
22204 else
22205   BCR=/home/vadve/lattner/LLVMPrograms
22206
22207 fi;
22208
22209
22210 # Check whether --with-papi or --without-papi was given.
22211 if test "${with_papi+set}" = set; then
22212   withval="$with_papi"
22213   PAPIDIR=$withval
22214
22215 else
22216   PAPIDIR=/home/vadve/shared/Sparc/papi-2.3.4.1
22217
22218 fi;
22219
22220
22221 # Check whether --with-purify or --without-purify was given.
22222 if test "${with_purify+set}" = set; then
22223   withval="$with_purify"
22224   PURIFY=$withval
22225
22226 fi;
22227
22228 if test ${USER}
22229 then
22230         if test -d /localhome/${USER}
22231         then
22232                 OBJROOT=/localhome/${USER}
22233
22234         else
22235                 OBJROOT=.
22236
22237         fi
22238 else
22239         OBJROOT=.
22240
22241 fi
22242
22243
22244 # Check whether --with-objroot or --without-objroot was given.
22245 if test "${with_objroot+set}" = set; then
22246   withval="$with_objroot"
22247   OBJROOT=$withval
22248
22249 fi;
22250
22251
22252           ac_config_files="$ac_config_files Makefile.config"
22253 cat >confcache <<\_ACEOF
22254 # This file is a shell script that caches the results of configure
22255 # tests run on this system so they can be shared between configure
22256 # scripts and configure runs, see configure's option --config-cache.
22257 # It is not useful on other systems.  If it contains results you don't
22258 # want to keep, you may remove or edit it.
22259 #
22260 # config.status only pays attention to the cache file if you give it
22261 # the --recheck option to rerun configure.
22262 #
22263 # `ac_cv_env_foo' variables (set or unset) will be overridden when
22264 # loading this file, other *unset* `ac_cv_foo' will be assigned the
22265 # following values.
22266
22267 _ACEOF
22268
22269 # The following way of writing the cache mishandles newlines in values,
22270 # but we know of no workaround that is simple, portable, and efficient.
22271 # So, don't put newlines in cache variables' values.
22272 # Ultrix sh set writes to stderr and can't be redirected directly,
22273 # and sets the high bit in the cache file unless we assign to the vars.
22274 {
22275   (set) 2>&1 |
22276     case `(ac_space=' '; set | grep ac_space) 2>&1` in
22277     *ac_space=\ *)
22278       # `set' does not quote correctly, so add quotes (double-quote
22279       # substitution turns \\\\ into \\, and sed turns \\ into \).
22280       sed -n \
22281         "s/'/'\\\\''/g;
22282           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
22283       ;;
22284     *)
22285       # `set' quotes correctly as required by POSIX, so do not add quotes.
22286       sed -n \
22287         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
22288       ;;
22289     esac;
22290 } |
22291   sed '
22292      t clear
22293      : clear
22294      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
22295      t end
22296      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
22297      : end' >>confcache
22298 if diff $cache_file confcache >/dev/null 2>&1; then :; else
22299   if test -w $cache_file; then
22300     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
22301     cat confcache >$cache_file
22302   else
22303     echo "not updating unwritable cache $cache_file"
22304   fi
22305 fi
22306 rm -f confcache
22307
22308 test "x$prefix" = xNONE && prefix=$ac_default_prefix
22309 # Let make expand exec_prefix.
22310 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
22311
22312 # VPATH may cause trouble with some makes, so we remove $(srcdir),
22313 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
22314 # trailing colons and then remove the whole line if VPATH becomes empty
22315 # (actually we leave an empty line to preserve line numbers).
22316 if test "x$srcdir" = x.; then
22317   ac_vpsub='/^[         ]*VPATH[        ]*=/{
22318 s/:*\$(srcdir):*/:/;
22319 s/:*\${srcdir}:*/:/;
22320 s/:*@srcdir@:*/:/;
22321 s/^\([^=]*=[    ]*\):*/\1/;
22322 s/:*$//;
22323 s/^[^=]*=[      ]*$//;
22324 }'
22325 fi
22326
22327 DEFS=-DHAVE_CONFIG_H
22328
22329 ac_libobjs=
22330 ac_ltlibobjs=
22331 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
22332   # 1. Remove the extension, and $U if already installed.
22333   ac_i=`echo "$ac_i" |
22334          sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
22335   # 2. Add them.
22336   ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
22337   ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
22338 done
22339 LIBOBJS=$ac_libobjs
22340
22341 LTLIBOBJS=$ac_ltlibobjs
22342
22343
22344
22345 : ${CONFIG_STATUS=./config.status}
22346 ac_clean_files_save=$ac_clean_files
22347 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
22348 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
22349 echo "$as_me: creating $CONFIG_STATUS" >&6;}
22350 cat >$CONFIG_STATUS <<_ACEOF
22351 #! $SHELL
22352 # Generated by $as_me.
22353 # Run this file to recreate the current configuration.
22354 # Compiler output produced by configure, useful for debugging
22355 # configure, is in config.log if it exists.
22356
22357 debug=false
22358 ac_cs_recheck=false
22359 ac_cs_silent=false
22360 SHELL=\${CONFIG_SHELL-$SHELL}
22361 _ACEOF
22362
22363 cat >>$CONFIG_STATUS <<\_ACEOF
22364 ## --------------------- ##
22365 ## M4sh Initialization.  ##
22366 ## --------------------- ##
22367
22368 # Be Bourne compatible
22369 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
22370   emulate sh
22371   NULLCMD=:
22372   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
22373   # is contrary to our usage.  Disable this feature.
22374   alias -g '${1+"$@"}'='"$@"'
22375 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
22376   set -o posix
22377 fi
22378
22379 # Support unset when possible.
22380 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
22381   as_unset=unset
22382 else
22383   as_unset=false
22384 fi
22385
22386
22387 # Work around bugs in pre-3.0 UWIN ksh.
22388 $as_unset ENV MAIL MAILPATH
22389 PS1='$ '
22390 PS2='> '
22391 PS4='+ '
22392
22393 # NLS nuisances.
22394 for as_var in \
22395   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
22396   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
22397   LC_TELEPHONE LC_TIME
22398 do
22399   if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
22400     eval $as_var=C; export $as_var
22401   else
22402     $as_unset $as_var
22403   fi
22404 done
22405
22406 # Required to use basename.
22407 if expr a : '\(a\)' >/dev/null 2>&1; then
22408   as_expr=expr
22409 else
22410   as_expr=false
22411 fi
22412
22413 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
22414   as_basename=basename
22415 else
22416   as_basename=false
22417 fi
22418
22419
22420 # Name of the executable.
22421 as_me=`$as_basename "$0" ||
22422 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
22423          X"$0" : 'X\(//\)$' \| \
22424          X"$0" : 'X\(/\)$' \| \
22425          .     : '\(.\)' 2>/dev/null ||
22426 echo X/"$0" |
22427     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
22428           /^X\/\(\/\/\)$/{ s//\1/; q; }
22429           /^X\/\(\/\).*/{ s//\1/; q; }
22430           s/.*/./; q'`
22431
22432
22433 # PATH needs CR, and LINENO needs CR and PATH.
22434 # Avoid depending upon Character Ranges.
22435 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
22436 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
22437 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
22438 as_cr_digits='0123456789'
22439 as_cr_alnum=$as_cr_Letters$as_cr_digits
22440
22441 # The user is always right.
22442 if test "${PATH_SEPARATOR+set}" != set; then
22443   echo "#! /bin/sh" >conf$$.sh
22444   echo  "exit 0"   >>conf$$.sh
22445   chmod +x conf$$.sh
22446   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
22447     PATH_SEPARATOR=';'
22448   else
22449     PATH_SEPARATOR=:
22450   fi
22451   rm -f conf$$.sh
22452 fi
22453
22454
22455   as_lineno_1=$LINENO
22456   as_lineno_2=$LINENO
22457   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
22458   test "x$as_lineno_1" != "x$as_lineno_2" &&
22459   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
22460   # Find who we are.  Look in the path if we contain no path at all
22461   # relative or not.
22462   case $0 in
22463     *[\\/]* ) as_myself=$0 ;;
22464     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22465 for as_dir in $PATH
22466 do
22467   IFS=$as_save_IFS
22468   test -z "$as_dir" && as_dir=.
22469   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
22470 done
22471
22472        ;;
22473   esac
22474   # We did not find ourselves, most probably we were run as `sh COMMAND'
22475   # in which case we are not to be found in the path.
22476   if test "x$as_myself" = x; then
22477     as_myself=$0
22478   fi
22479   if test ! -f "$as_myself"; then
22480     { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
22481 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
22482    { (exit 1); exit 1; }; }
22483   fi
22484   case $CONFIG_SHELL in
22485   '')
22486     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22487 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
22488 do
22489   IFS=$as_save_IFS
22490   test -z "$as_dir" && as_dir=.
22491   for as_base in sh bash ksh sh5; do
22492          case $as_dir in
22493          /*)
22494            if ("$as_dir/$as_base" -c '
22495   as_lineno_1=$LINENO
22496   as_lineno_2=$LINENO
22497   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
22498   test "x$as_lineno_1" != "x$as_lineno_2" &&
22499   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
22500              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
22501              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
22502              CONFIG_SHELL=$as_dir/$as_base
22503              export CONFIG_SHELL
22504              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
22505            fi;;
22506          esac
22507        done
22508 done
22509 ;;
22510   esac
22511
22512   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
22513   # uniformly replaced by the line number.  The first 'sed' inserts a
22514   # line-number line before each line; the second 'sed' does the real
22515   # work.  The second script uses 'N' to pair each line-number line
22516   # with the numbered line, and appends trailing '-' during
22517   # substitution so that $LINENO is not a special case at line end.
22518   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
22519   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
22520   sed '=' <$as_myself |
22521     sed '
22522       N
22523       s,$,-,
22524       : loop
22525       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
22526       t loop
22527       s,-$,,
22528       s,^['$as_cr_digits']*\n,,
22529     ' >$as_me.lineno &&
22530   chmod +x $as_me.lineno ||
22531     { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
22532 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
22533    { (exit 1); exit 1; }; }
22534
22535   # Don't try to exec as it changes $[0], causing all sort of problems
22536   # (the dirname of $[0] is not the place where we might find the
22537   # original and so on.  Autoconf is especially sensible to this).
22538   . ./$as_me.lineno
22539   # Exit status is that of the last command.
22540   exit
22541 }
22542
22543
22544 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
22545   *c*,-n*) ECHO_N= ECHO_C='
22546 ' ECHO_T='      ' ;;
22547   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
22548   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
22549 esac
22550
22551 if expr a : '\(a\)' >/dev/null 2>&1; then
22552   as_expr=expr
22553 else
22554   as_expr=false
22555 fi
22556
22557 rm -f conf$$ conf$$.exe conf$$.file
22558 echo >conf$$.file
22559 if ln -s conf$$.file conf$$ 2>/dev/null; then
22560   # We could just check for DJGPP; but this test a) works b) is more generic
22561   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
22562   if test -f conf$$.exe; then
22563     # Don't use ln at all; we don't have any links
22564     as_ln_s='cp -p'
22565   else
22566     as_ln_s='ln -s'
22567   fi
22568 elif ln conf$$.file conf$$ 2>/dev/null; then
22569   as_ln_s=ln
22570 else
22571   as_ln_s='cp -p'
22572 fi
22573 rm -f conf$$ conf$$.exe conf$$.file
22574
22575 if mkdir -p . 2>/dev/null; then
22576   as_mkdir_p=:
22577 else
22578   as_mkdir_p=false
22579 fi
22580
22581 as_executable_p="test -f"
22582
22583 # Sed expression to map a string onto a valid CPP name.
22584 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
22585
22586 # Sed expression to map a string onto a valid variable name.
22587 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
22588
22589
22590 # IFS
22591 # We need space, tab and new line, in precisely that order.
22592 as_nl='
22593 '
22594 IFS="   $as_nl"
22595
22596 # CDPATH.
22597 $as_unset CDPATH
22598
22599 exec 6>&1
22600
22601 # Open the log real soon, to keep \$[0] and so on meaningful, and to
22602 # report actual input values of CONFIG_FILES etc. instead of their
22603 # values after options handling.  Logging --version etc. is OK.
22604 exec 5>>config.log
22605 {
22606   echo
22607   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
22608 ## Running $as_me. ##
22609 _ASBOX
22610 } >&5
22611 cat >&5 <<_CSEOF
22612
22613 This file was extended by [LLVM] $as_me [1.0], which was
22614 generated by GNU Autoconf 2.57.  Invocation command line was
22615
22616   CONFIG_FILES    = $CONFIG_FILES
22617   CONFIG_HEADERS  = $CONFIG_HEADERS
22618   CONFIG_LINKS    = $CONFIG_LINKS
22619   CONFIG_COMMANDS = $CONFIG_COMMANDS
22620   $ $0 $@
22621
22622 _CSEOF
22623 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
22624 echo >&5
22625 _ACEOF
22626
22627 # Files that config.status was made for.
22628 if test -n "$ac_config_files"; then
22629   echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
22630 fi
22631
22632 if test -n "$ac_config_headers"; then
22633   echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
22634 fi
22635
22636 if test -n "$ac_config_links"; then
22637   echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
22638 fi
22639
22640 if test -n "$ac_config_commands"; then
22641   echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
22642 fi
22643
22644 cat >>$CONFIG_STATUS <<\_ACEOF
22645
22646 ac_cs_usage="\
22647 \`$as_me' instantiates files from templates according to the
22648 current configuration.
22649
22650 Usage: $0 [OPTIONS] [FILE]...
22651
22652   -h, --help       print this help, then exit
22653   -V, --version    print version number, then exit
22654   -q, --quiet      do not print progress messages
22655   -d, --debug      don't remove temporary files
22656       --recheck    update $as_me by reconfiguring in the same conditions
22657   --file=FILE[:TEMPLATE]
22658                    instantiate the configuration file FILE
22659   --header=FILE[:TEMPLATE]
22660                    instantiate the configuration header FILE
22661
22662 Configuration files:
22663 $config_files
22664
22665 Configuration headers:
22666 $config_headers
22667
22668 Report bugs to <bug-autoconf@gnu.org>."
22669 _ACEOF
22670
22671 cat >>$CONFIG_STATUS <<_ACEOF
22672 ac_cs_version="\\
22673 [LLVM] config.status [1.0]
22674 configured by $0, generated by GNU Autoconf 2.57,
22675   with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
22676
22677 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
22678 Free Software Foundation, Inc.
22679 This config.status script is free software; the Free Software Foundation
22680 gives unlimited permission to copy, distribute and modify it."
22681 srcdir=$srcdir
22682 INSTALL="$INSTALL"
22683 _ACEOF
22684
22685 cat >>$CONFIG_STATUS <<\_ACEOF
22686 # If no file are specified by the user, then we need to provide default
22687 # value.  By we need to know if files were specified by the user.
22688 ac_need_defaults=:
22689 while test $# != 0
22690 do
22691   case $1 in
22692   --*=*)
22693     ac_option=`expr "x$1" : 'x\([^=]*\)='`
22694     ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
22695     ac_shift=:
22696     ;;
22697   -*)
22698     ac_option=$1
22699     ac_optarg=$2
22700     ac_shift=shift
22701     ;;
22702   *) # This is not an option, so the user has probably given explicit
22703      # arguments.
22704      ac_option=$1
22705      ac_need_defaults=false;;
22706   esac
22707
22708   case $ac_option in
22709   # Handling of the options.
22710 _ACEOF
22711 cat >>$CONFIG_STATUS <<\_ACEOF
22712   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
22713     ac_cs_recheck=: ;;
22714   --version | --vers* | -V )
22715     echo "$ac_cs_version"; exit 0 ;;
22716   --he | --h)
22717     # Conflict between --help and --header
22718     { { echo "$as_me:$LINENO: error: ambiguous option: $1
22719 Try \`$0 --help' for more information." >&5
22720 echo "$as_me: error: ambiguous option: $1
22721 Try \`$0 --help' for more information." >&2;}
22722    { (exit 1); exit 1; }; };;
22723   --help | --hel | -h )
22724     echo "$ac_cs_usage"; exit 0 ;;
22725   --debug | --d* | -d )
22726     debug=: ;;
22727   --file | --fil | --fi | --f )
22728     $ac_shift
22729     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
22730     ac_need_defaults=false;;
22731   --header | --heade | --head | --hea )
22732     $ac_shift
22733     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
22734     ac_need_defaults=false;;
22735   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
22736   | -silent | --silent | --silen | --sile | --sil | --si | --s)
22737     ac_cs_silent=: ;;
22738
22739   # This is an error.
22740   -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
22741 Try \`$0 --help' for more information." >&5
22742 echo "$as_me: error: unrecognized option: $1
22743 Try \`$0 --help' for more information." >&2;}
22744    { (exit 1); exit 1; }; } ;;
22745
22746   *) ac_config_targets="$ac_config_targets $1" ;;
22747
22748   esac
22749   shift
22750 done
22751
22752 ac_configure_extra_args=
22753
22754 if $ac_cs_silent; then
22755   exec 6>/dev/null
22756   ac_configure_extra_args="$ac_configure_extra_args --silent"
22757 fi
22758
22759 _ACEOF
22760 cat >>$CONFIG_STATUS <<_ACEOF
22761 if \$ac_cs_recheck; then
22762   echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
22763   exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
22764 fi
22765
22766 _ACEOF
22767
22768
22769
22770
22771
22772 cat >>$CONFIG_STATUS <<\_ACEOF
22773 for ac_config_target in $ac_config_targets
22774 do
22775   case "$ac_config_target" in
22776   # Handling of arguments.
22777   "Makefile.config" ) CONFIG_FILES="$CONFIG_FILES Makefile.config" ;;
22778   "include/Config/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/Config/config.h" ;;
22779   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
22780 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
22781    { (exit 1); exit 1; }; };;
22782   esac
22783 done
22784
22785 # If the user did not use the arguments to specify the items to instantiate,
22786 # then the envvar interface is used.  Set only those that are not.
22787 # We use the long form for the default assignment because of an extremely
22788 # bizarre bug on SunOS 4.1.3.
22789 if $ac_need_defaults; then
22790   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
22791   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
22792 fi
22793
22794 # Have a temporary directory for convenience.  Make it in the build tree
22795 # simply because there is no reason to put it here, and in addition,
22796 # creating and moving files from /tmp can sometimes cause problems.
22797 # Create a temporary directory, and hook for its removal unless debugging.
22798 $debug ||
22799 {
22800   trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
22801   trap '{ (exit 1); exit 1; }' 1 2 13 15
22802 }
22803
22804 # Create a (secure) tmp directory for tmp files.
22805
22806 {
22807   tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
22808   test -n "$tmp" && test -d "$tmp"
22809 }  ||
22810 {
22811   tmp=./confstat$$-$RANDOM
22812   (umask 077 && mkdir $tmp)
22813 } ||
22814 {
22815    echo "$me: cannot create a temporary directory in ." >&2
22816    { (exit 1); exit 1; }
22817 }
22818
22819 _ACEOF
22820
22821 cat >>$CONFIG_STATUS <<_ACEOF
22822
22823 #
22824 # CONFIG_FILES section.
22825 #
22826
22827 # No need to generate the scripts if there are no CONFIG_FILES.
22828 # This happens for instance when ./config.status config.h
22829 if test -n "\$CONFIG_FILES"; then
22830   # Protect against being on the right side of a sed subst in config.status.
22831   sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
22832    s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
22833 s,@SHELL@,$SHELL,;t t
22834 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
22835 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
22836 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
22837 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
22838 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
22839 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
22840 s,@exec_prefix@,$exec_prefix,;t t
22841 s,@prefix@,$prefix,;t t
22842 s,@program_transform_name@,$program_transform_name,;t t
22843 s,@bindir@,$bindir,;t t
22844 s,@sbindir@,$sbindir,;t t
22845 s,@libexecdir@,$libexecdir,;t t
22846 s,@datadir@,$datadir,;t t
22847 s,@sysconfdir@,$sysconfdir,;t t
22848 s,@sharedstatedir@,$sharedstatedir,;t t
22849 s,@localstatedir@,$localstatedir,;t t
22850 s,@libdir@,$libdir,;t t
22851 s,@includedir@,$includedir,;t t
22852 s,@oldincludedir@,$oldincludedir,;t t
22853 s,@infodir@,$infodir,;t t
22854 s,@mandir@,$mandir,;t t
22855 s,@build_alias@,$build_alias,;t t
22856 s,@host_alias@,$host_alias,;t t
22857 s,@target_alias@,$target_alias,;t t
22858 s,@DEFS@,$DEFS,;t t
22859 s,@ECHO_C@,$ECHO_C,;t t
22860 s,@ECHO_N@,$ECHO_N,;t t
22861 s,@ECHO_T@,$ECHO_T,;t t
22862 s,@LIBS@,$LIBS,;t t
22863 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
22864 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
22865 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
22866 s,@build@,$build,;t t
22867 s,@build_cpu@,$build_cpu,;t t
22868 s,@build_vendor@,$build_vendor,;t t
22869 s,@build_os@,$build_os,;t t
22870 s,@host@,$host,;t t
22871 s,@host_cpu@,$host_cpu,;t t
22872 s,@host_vendor@,$host_vendor,;t t
22873 s,@host_os@,$host_os,;t t
22874 s,@target@,$target,;t t
22875 s,@target_cpu@,$target_cpu,;t t
22876 s,@target_vendor@,$target_vendor,;t t
22877 s,@target_os@,$target_os,;t t
22878 s,@OS@,$OS,;t t
22879 s,@LLVMGCCDIR@,$LLVMGCCDIR,;t t
22880 s,@ARCH@,$ARCH,;t t
22881 s,@CXX@,$CXX,;t t
22882 s,@CXXFLAGS@,$CXXFLAGS,;t t
22883 s,@LDFLAGS@,$LDFLAGS,;t t
22884 s,@CPPFLAGS@,$CPPFLAGS,;t t
22885 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
22886 s,@EXEEXT@,$EXEEXT,;t t
22887 s,@OBJEXT@,$OBJEXT,;t t
22888 s,@CC@,$CC,;t t
22889 s,@CFLAGS@,$CFLAGS,;t t
22890 s,@ac_ct_CC@,$ac_ct_CC,;t t
22891 s,@CPP@,$CPP,;t t
22892 s,@ifGNUmake@,$ifGNUmake,;t t
22893 s,@LEX@,$LEX,;t t
22894 s,@LEXLIB@,$LEXLIB,;t t
22895 s,@LEX_OUTPUT_ROOT@,$LEX_OUTPUT_ROOT,;t t
22896 s,@YACC@,$YACC,;t t
22897 s,@EGREP@,$EGREP,;t t
22898 s,@LN_S@,$LN_S,;t t
22899 s,@ECHO@,$ECHO,;t t
22900 s,@AR@,$AR,;t t
22901 s,@ac_ct_AR@,$ac_ct_AR,;t t
22902 s,@RANLIB@,$RANLIB,;t t
22903 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
22904 s,@STRIP@,$STRIP,;t t
22905 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
22906 s,@CXXCPP@,$CXXCPP,;t t
22907 s,@F77@,$F77,;t t
22908 s,@FFLAGS@,$FFLAGS,;t t
22909 s,@ac_ct_F77@,$ac_ct_F77,;t t
22910 s,@LIBTOOL@,$LIBTOOL,;t t
22911 s,@RPWD@,$RPWD,;t t
22912 s,@SED@,$SED,;t t
22913 s,@RM@,$RM,;t t
22914 s,@MKDIR@,$MKDIR,;t t
22915 s,@DATE@,$DATE,;t t
22916 s,@MV@,$MV,;t t
22917 s,@DOT@,$DOT,;t t
22918 s,@ETAGS@,$ETAGS,;t t
22919 s,@PURIFY@,$PURIFY,;t t
22920 s,@PYTHON@,$PYTHON,;t t
22921 s,@QMTEST@,$QMTEST,;t t
22922 s,@ALLOCA@,$ALLOCA,;t t
22923 s,@LIBOBJS@,$LIBOBJS,;t t
22924 s,@MMAP_FILE@,$MMAP_FILE,;t t
22925 s,@ENABLE_PURIFY@,$ENABLE_PURIFY,;t t
22926 s,@ENABLE_OPTIMIZED@,$ENABLE_OPTIMIZED,;t t
22927 s,@USE_SPEC@,$USE_SPEC,;t t
22928 s,@UPB@,$UPB,;t t
22929 s,@DISABLE_LLC_DIFFS@,$DISABLE_LLC_DIFFS,;t t
22930 s,@JIT@,$JIT,;t t
22931 s,@SPEC_ROOT@,$SPEC_ROOT,;t t
22932 s,@BCR@,$BCR,;t t
22933 s,@PAPIDIR@,$PAPIDIR,;t t
22934 s,@OBJROOT@,$OBJROOT,;t t
22935 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
22936 CEOF
22937
22938 _ACEOF
22939
22940   cat >>$CONFIG_STATUS <<\_ACEOF
22941   # Split the substitutions into bite-sized pieces for seds with
22942   # small command number limits, like on Digital OSF/1 and HP-UX.
22943   ac_max_sed_lines=48
22944   ac_sed_frag=1 # Number of current file.
22945   ac_beg=1 # First line for current file.
22946   ac_end=$ac_max_sed_lines # Line after last line for current file.
22947   ac_more_lines=:
22948   ac_sed_cmds=
22949   while $ac_more_lines; do
22950     if test $ac_beg -gt 1; then
22951       sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
22952     else
22953       sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
22954     fi
22955     if test ! -s $tmp/subs.frag; then
22956       ac_more_lines=false
22957     else
22958       # The purpose of the label and of the branching condition is to
22959       # speed up the sed processing (if there are no `@' at all, there
22960       # is no need to browse any of the substitutions).
22961       # These are the two extra sed commands mentioned above.
22962       (echo ':t
22963   /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
22964       if test -z "$ac_sed_cmds"; then
22965         ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
22966       else
22967         ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
22968       fi
22969       ac_sed_frag=`expr $ac_sed_frag + 1`
22970       ac_beg=$ac_end
22971       ac_end=`expr $ac_end + $ac_max_sed_lines`
22972     fi
22973   done
22974   if test -z "$ac_sed_cmds"; then
22975     ac_sed_cmds=cat
22976   fi
22977 fi # test -n "$CONFIG_FILES"
22978
22979 _ACEOF
22980 cat >>$CONFIG_STATUS <<\_ACEOF
22981 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
22982   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
22983   case $ac_file in
22984   - | *:- | *:-:* ) # input from stdin
22985         cat >$tmp/stdin
22986         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
22987         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
22988   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
22989         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
22990   * )   ac_file_in=$ac_file.in ;;
22991   esac
22992
22993   # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
22994   ac_dir=`(dirname "$ac_file") 2>/dev/null ||
22995 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22996          X"$ac_file" : 'X\(//\)[^/]' \| \
22997          X"$ac_file" : 'X\(//\)$' \| \
22998          X"$ac_file" : 'X\(/\)' \| \
22999          .     : '\(.\)' 2>/dev/null ||
23000 echo X"$ac_file" |
23001     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23002           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23003           /^X\(\/\/\)$/{ s//\1/; q; }
23004           /^X\(\/\).*/{ s//\1/; q; }
23005           s/.*/./; q'`
23006   { if $as_mkdir_p; then
23007     mkdir -p "$ac_dir"
23008   else
23009     as_dir="$ac_dir"
23010     as_dirs=
23011     while test ! -d "$as_dir"; do
23012       as_dirs="$as_dir $as_dirs"
23013       as_dir=`(dirname "$as_dir") 2>/dev/null ||
23014 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23015          X"$as_dir" : 'X\(//\)[^/]' \| \
23016          X"$as_dir" : 'X\(//\)$' \| \
23017          X"$as_dir" : 'X\(/\)' \| \
23018          .     : '\(.\)' 2>/dev/null ||
23019 echo X"$as_dir" |
23020     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23021           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23022           /^X\(\/\/\)$/{ s//\1/; q; }
23023           /^X\(\/\).*/{ s//\1/; q; }
23024           s/.*/./; q'`
23025     done
23026     test ! -n "$as_dirs" || mkdir $as_dirs
23027   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
23028 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
23029    { (exit 1); exit 1; }; }; }
23030
23031   ac_builddir=.
23032
23033 if test "$ac_dir" != .; then
23034   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
23035   # A "../" for each directory in $ac_dir_suffix.
23036   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
23037 else
23038   ac_dir_suffix= ac_top_builddir=
23039 fi
23040
23041 case $srcdir in
23042   .)  # No --srcdir option.  We are building in place.
23043     ac_srcdir=.
23044     if test -z "$ac_top_builddir"; then
23045        ac_top_srcdir=.
23046     else
23047        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
23048     fi ;;
23049   [\\/]* | ?:[\\/]* )  # Absolute path.
23050     ac_srcdir=$srcdir$ac_dir_suffix;
23051     ac_top_srcdir=$srcdir ;;
23052   *) # Relative path.
23053     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
23054     ac_top_srcdir=$ac_top_builddir$srcdir ;;
23055 esac
23056 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
23057 # absolute.
23058 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
23059 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
23060 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
23061 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
23062
23063
23064   case $INSTALL in
23065   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
23066   *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
23067   esac
23068
23069   if test x"$ac_file" != x-; then
23070     { echo "$as_me:$LINENO: creating $ac_file" >&5
23071 echo "$as_me: creating $ac_file" >&6;}
23072     rm -f "$ac_file"
23073   fi
23074   # Let's still pretend it is `configure' which instantiates (i.e., don't
23075   # use $as_me), people would be surprised to read:
23076   #    /* config.h.  Generated by config.status.  */
23077   if test x"$ac_file" = x-; then
23078     configure_input=
23079   else
23080     configure_input="$ac_file.  "
23081   fi
23082   configure_input=$configure_input"Generated from `echo $ac_file_in |
23083                                      sed 's,.*/,,'` by configure."
23084
23085   # First look for the input files in the build tree, otherwise in the
23086   # src tree.
23087   ac_file_inputs=`IFS=:
23088     for f in $ac_file_in; do
23089       case $f in
23090       -) echo $tmp/stdin ;;
23091       [\\/$]*)
23092          # Absolute (can't be DOS-style, as IFS=:)
23093          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
23094 echo "$as_me: error: cannot find input file: $f" >&2;}
23095    { (exit 1); exit 1; }; }
23096          echo $f;;
23097       *) # Relative
23098          if test -f "$f"; then
23099            # Build tree
23100            echo $f
23101          elif test -f "$srcdir/$f"; then
23102            # Source tree
23103            echo $srcdir/$f
23104          else
23105            # /dev/null tree
23106            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
23107 echo "$as_me: error: cannot find input file: $f" >&2;}
23108    { (exit 1); exit 1; }; }
23109          fi;;
23110       esac
23111     done` || { (exit 1); exit 1; }
23112 _ACEOF
23113 cat >>$CONFIG_STATUS <<_ACEOF
23114   sed "$ac_vpsub
23115 $extrasub
23116 _ACEOF
23117 cat >>$CONFIG_STATUS <<\_ACEOF
23118 :t
23119 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
23120 s,@configure_input@,$configure_input,;t t
23121 s,@srcdir@,$ac_srcdir,;t t
23122 s,@abs_srcdir@,$ac_abs_srcdir,;t t
23123 s,@top_srcdir@,$ac_top_srcdir,;t t
23124 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
23125 s,@builddir@,$ac_builddir,;t t
23126 s,@abs_builddir@,$ac_abs_builddir,;t t
23127 s,@top_builddir@,$ac_top_builddir,;t t
23128 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
23129 s,@INSTALL@,$ac_INSTALL,;t t
23130 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
23131   rm -f $tmp/stdin
23132   if test x"$ac_file" != x-; then
23133     mv $tmp/out $ac_file
23134   else
23135     cat $tmp/out
23136     rm -f $tmp/out
23137   fi
23138
23139 done
23140 _ACEOF
23141 cat >>$CONFIG_STATUS <<\_ACEOF
23142
23143 #
23144 # CONFIG_HEADER section.
23145 #
23146
23147 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
23148 # NAME is the cpp macro being defined and VALUE is the value it is being given.
23149 #
23150 # ac_d sets the value in "#define NAME VALUE" lines.
23151 ac_dA='s,^\([   ]*\)#\([        ]*define[       ][      ]*\)'
23152 ac_dB='[        ].*$,\1#\2'
23153 ac_dC=' '
23154 ac_dD=',;t'
23155 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
23156 ac_uA='s,^\([   ]*\)#\([        ]*\)undef\([    ][      ]*\)'
23157 ac_uB='$,\1#\2define\3'
23158 ac_uC=' '
23159 ac_uD=',;t'
23160
23161 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
23162   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
23163   case $ac_file in
23164   - | *:- | *:-:* ) # input from stdin
23165         cat >$tmp/stdin
23166         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
23167         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
23168   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
23169         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
23170   * )   ac_file_in=$ac_file.in ;;
23171   esac
23172
23173   test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
23174 echo "$as_me: creating $ac_file" >&6;}
23175
23176   # First look for the input files in the build tree, otherwise in the
23177   # src tree.
23178   ac_file_inputs=`IFS=:
23179     for f in $ac_file_in; do
23180       case $f in
23181       -) echo $tmp/stdin ;;
23182       [\\/$]*)
23183          # Absolute (can't be DOS-style, as IFS=:)
23184          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
23185 echo "$as_me: error: cannot find input file: $f" >&2;}
23186    { (exit 1); exit 1; }; }
23187          echo $f;;
23188       *) # Relative
23189          if test -f "$f"; then
23190            # Build tree
23191            echo $f
23192          elif test -f "$srcdir/$f"; then
23193            # Source tree
23194            echo $srcdir/$f
23195          else
23196            # /dev/null tree
23197            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
23198 echo "$as_me: error: cannot find input file: $f" >&2;}
23199    { (exit 1); exit 1; }; }
23200          fi;;
23201       esac
23202     done` || { (exit 1); exit 1; }
23203   # Remove the trailing spaces.
23204   sed 's/[      ]*$//' $ac_file_inputs >$tmp/in
23205
23206 _ACEOF
23207
23208 # Transform confdefs.h into two sed scripts, `conftest.defines' and
23209 # `conftest.undefs', that substitutes the proper values into
23210 # config.h.in to produce config.h.  The first handles `#define'
23211 # templates, and the second `#undef' templates.
23212 # And first: Protect against being on the right side of a sed subst in
23213 # config.status.  Protect against being in an unquoted here document
23214 # in config.status.
23215 rm -f conftest.defines conftest.undefs
23216 # Using a here document instead of a string reduces the quoting nightmare.
23217 # Putting comments in sed scripts is not portable.
23218 #
23219 # `end' is used to avoid that the second main sed command (meant for
23220 # 0-ary CPP macros) applies to n-ary macro definitions.
23221 # See the Autoconf documentation for `clear'.
23222 cat >confdef2sed.sed <<\_ACEOF
23223 s/[\\&,]/\\&/g
23224 s,[\\$`],\\&,g
23225 t clear
23226 : clear
23227 s,^[    ]*#[    ]*define[       ][      ]*\([^  (][^    (]*\)\(([^)]*)\)[       ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
23228 t end
23229 s,^[    ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
23230 : end
23231 _ACEOF
23232 # If some macros were called several times there might be several times
23233 # the same #defines, which is useless.  Nevertheless, we may not want to
23234 # sort them, since we want the *last* AC-DEFINE to be honored.
23235 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
23236 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
23237 rm -f confdef2sed.sed
23238
23239 # This sed command replaces #undef with comments.  This is necessary, for
23240 # example, in the case of _POSIX_SOURCE, which is predefined and required
23241 # on some systems where configure will not decide to define it.
23242 cat >>conftest.undefs <<\_ACEOF
23243 s,^[    ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
23244 _ACEOF
23245
23246 # Break up conftest.defines because some shells have a limit on the size
23247 # of here documents, and old seds have small limits too (100 cmds).
23248 echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
23249 echo '  if grep "^[     ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
23250 echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
23251 echo '  :' >>$CONFIG_STATUS
23252 rm -f conftest.tail
23253 while grep . conftest.defines >/dev/null
23254 do
23255   # Write a limited-size here document to $tmp/defines.sed.
23256   echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
23257   # Speed up: don't consider the non `#define' lines.
23258   echo '/^[     ]*#[    ]*define/!b' >>$CONFIG_STATUS
23259   # Work around the forget-to-reset-the-flag bug.
23260   echo 't clr' >>$CONFIG_STATUS
23261   echo ': clr' >>$CONFIG_STATUS
23262   sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
23263   echo 'CEOF
23264   sed -f $tmp/defines.sed $tmp/in >$tmp/out
23265   rm -f $tmp/in
23266   mv $tmp/out $tmp/in
23267 ' >>$CONFIG_STATUS
23268   sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
23269   rm -f conftest.defines
23270   mv conftest.tail conftest.defines
23271 done
23272 rm -f conftest.defines
23273 echo '  fi # grep' >>$CONFIG_STATUS
23274 echo >>$CONFIG_STATUS
23275
23276 # Break up conftest.undefs because some shells have a limit on the size
23277 # of here documents, and old seds have small limits too (100 cmds).
23278 echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
23279 rm -f conftest.tail
23280 while grep . conftest.undefs >/dev/null
23281 do
23282   # Write a limited-size here document to $tmp/undefs.sed.
23283   echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
23284   # Speed up: don't consider the non `#undef'
23285   echo '/^[     ]*#[    ]*undef/!b' >>$CONFIG_STATUS
23286   # Work around the forget-to-reset-the-flag bug.
23287   echo 't clr' >>$CONFIG_STATUS
23288   echo ': clr' >>$CONFIG_STATUS
23289   sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
23290   echo 'CEOF
23291   sed -f $tmp/undefs.sed $tmp/in >$tmp/out
23292   rm -f $tmp/in
23293   mv $tmp/out $tmp/in
23294 ' >>$CONFIG_STATUS
23295   sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
23296   rm -f conftest.undefs
23297   mv conftest.tail conftest.undefs
23298 done
23299 rm -f conftest.undefs
23300
23301 cat >>$CONFIG_STATUS <<\_ACEOF
23302   # Let's still pretend it is `configure' which instantiates (i.e., don't
23303   # use $as_me), people would be surprised to read:
23304   #    /* config.h.  Generated by config.status.  */
23305   if test x"$ac_file" = x-; then
23306     echo "/* Generated by configure.  */" >$tmp/config.h
23307   else
23308     echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
23309   fi
23310   cat $tmp/in >>$tmp/config.h
23311   rm -f $tmp/in
23312   if test x"$ac_file" != x-; then
23313     if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
23314       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
23315 echo "$as_me: $ac_file is unchanged" >&6;}
23316     else
23317       ac_dir=`(dirname "$ac_file") 2>/dev/null ||
23318 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23319          X"$ac_file" : 'X\(//\)[^/]' \| \
23320          X"$ac_file" : 'X\(//\)$' \| \
23321          X"$ac_file" : 'X\(/\)' \| \
23322          .     : '\(.\)' 2>/dev/null ||
23323 echo X"$ac_file" |
23324     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23325           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23326           /^X\(\/\/\)$/{ s//\1/; q; }
23327           /^X\(\/\).*/{ s//\1/; q; }
23328           s/.*/./; q'`
23329       { if $as_mkdir_p; then
23330     mkdir -p "$ac_dir"
23331   else
23332     as_dir="$ac_dir"
23333     as_dirs=
23334     while test ! -d "$as_dir"; do
23335       as_dirs="$as_dir $as_dirs"
23336       as_dir=`(dirname "$as_dir") 2>/dev/null ||
23337 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23338          X"$as_dir" : 'X\(//\)[^/]' \| \
23339          X"$as_dir" : 'X\(//\)$' \| \
23340          X"$as_dir" : 'X\(/\)' \| \
23341          .     : '\(.\)' 2>/dev/null ||
23342 echo X"$as_dir" |
23343     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23344           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23345           /^X\(\/\/\)$/{ s//\1/; q; }
23346           /^X\(\/\).*/{ s//\1/; q; }
23347           s/.*/./; q'`
23348     done
23349     test ! -n "$as_dirs" || mkdir $as_dirs
23350   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
23351 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
23352    { (exit 1); exit 1; }; }; }
23353
23354       rm -f $ac_file
23355       mv $tmp/config.h $ac_file
23356     fi
23357   else
23358     cat $tmp/config.h
23359     rm -f $tmp/config.h
23360   fi
23361 done
23362 _ACEOF
23363
23364 cat >>$CONFIG_STATUS <<\_ACEOF
23365
23366 { (exit 0); exit 0; }
23367 _ACEOF
23368 chmod +x $CONFIG_STATUS
23369 ac_clean_files=$ac_clean_files_save
23370
23371
23372 # configure is writing to config.log, and then calls config.status.
23373 # config.status does its own redirection, appending to config.log.
23374 # Unfortunately, on DOS this fails, as config.log is still kept open
23375 # by configure, so config.status won't be able to write to it; its
23376 # output is simply discarded.  So we exec the FD to /dev/null,
23377 # effectively closing config.log, so it can be properly (re)opened and
23378 # appended to by config.status.  When coming back to configure, we
23379 # need to make the FD available again.
23380 if test "$no_create" != yes; then
23381   ac_cs_success=:
23382   ac_config_status_args=
23383   test "$silent" = yes &&
23384     ac_config_status_args="$ac_config_status_args --quiet"
23385   exec 5>/dev/null
23386   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
23387   exec 5>>config.log
23388   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
23389   # would make configure fail if this is the last instruction.
23390   $ac_cs_success || { (exit 1); exit 1; }
23391 fi
23392