96feba0d8d74264dfdff6ea254a616ac822fd1ac
[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 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
1054 Some influential environment variables:
1055   CXX         C++ compiler command
1056   CXXFLAGS    C++ compiler flags
1057   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1058               nonstandard directory <lib dir>
1059   CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
1060               headers in a nonstandard directory <include dir>
1061   CC          C compiler command
1062   CFLAGS      C compiler flags
1063   CPP         C preprocessor
1064   CXXCPP      C++ preprocessor
1065   F77         Fortran 77 compiler command
1066   FFLAGS      Fortran 77 compiler flags
1067
1068 Use these variables to override the choices made by `configure' or to help
1069 it to find libraries and programs with nonstandard names/locations.
1070
1071 Report bugs to <llvmbugs@cs.uiuc.edu>.
1072 _ACEOF
1073 fi
1074
1075 if test "$ac_init_help" = "recursive"; then
1076   # If there are subdirs, report their specific --help.
1077   ac_popdir=`pwd`
1078   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1079     test -d $ac_dir || continue
1080     ac_builddir=.
1081
1082 if test "$ac_dir" != .; then
1083   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1084   # A "../" for each directory in $ac_dir_suffix.
1085   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1086 else
1087   ac_dir_suffix= ac_top_builddir=
1088 fi
1089
1090 case $srcdir in
1091   .)  # No --srcdir option.  We are building in place.
1092     ac_srcdir=.
1093     if test -z "$ac_top_builddir"; then
1094        ac_top_srcdir=.
1095     else
1096        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1097     fi ;;
1098   [\\/]* | ?:[\\/]* )  # Absolute path.
1099     ac_srcdir=$srcdir$ac_dir_suffix;
1100     ac_top_srcdir=$srcdir ;;
1101   *) # Relative path.
1102     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1103     ac_top_srcdir=$ac_top_builddir$srcdir ;;
1104 esac
1105 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
1106 # absolute.
1107 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
1108 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
1109 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
1110 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
1111
1112     cd $ac_dir
1113     # Check for guested configure; otherwise get Cygnus style configure.
1114     if test -f $ac_srcdir/configure.gnu; then
1115       echo
1116       $SHELL $ac_srcdir/configure.gnu  --help=recursive
1117     elif test -f $ac_srcdir/configure; then
1118       echo
1119       $SHELL $ac_srcdir/configure  --help=recursive
1120     elif test -f $ac_srcdir/configure.ac ||
1121            test -f $ac_srcdir/configure.in; then
1122       echo
1123       $ac_configure --help
1124     else
1125       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1126     fi
1127     cd $ac_popdir
1128   done
1129 fi
1130
1131 test -n "$ac_init_help" && exit 0
1132 if $ac_init_version; then
1133   cat <<\_ACEOF
1134 [LLVM] configure [1.0]
1135 generated by GNU Autoconf 2.57
1136
1137 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
1138 Free Software Foundation, Inc.
1139 This configure script is free software; the Free Software Foundation
1140 gives unlimited permission to copy, distribute and modify it.
1141 _ACEOF
1142   exit 0
1143 fi
1144 exec 5>config.log
1145 cat >&5 <<_ACEOF
1146 This file contains any messages produced by compilers while
1147 running configure, to aid debugging if configure makes a mistake.
1148
1149 It was created by [LLVM] $as_me [1.0], which was
1150 generated by GNU Autoconf 2.57.  Invocation command line was
1151
1152   $ $0 $@
1153
1154 _ACEOF
1155 {
1156 cat <<_ASUNAME
1157 ## --------- ##
1158 ## Platform. ##
1159 ## --------- ##
1160
1161 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1162 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1163 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1164 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1165 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1166
1167 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1168 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1169
1170 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1171 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1172 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1173 hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
1174 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1175 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1176 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1177
1178 _ASUNAME
1179
1180 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1181 for as_dir in $PATH
1182 do
1183   IFS=$as_save_IFS
1184   test -z "$as_dir" && as_dir=.
1185   echo "PATH: $as_dir"
1186 done
1187
1188 } >&5
1189
1190 cat >&5 <<_ACEOF
1191
1192
1193 ## ----------- ##
1194 ## Core tests. ##
1195 ## ----------- ##
1196
1197 _ACEOF
1198
1199
1200 # Keep a trace of the command line.
1201 # Strip out --no-create and --no-recursion so they do not pile up.
1202 # Strip out --silent because we don't want to record it for future runs.
1203 # Also quote any args containing shell meta-characters.
1204 # Make two passes to allow for proper duplicate-argument suppression.
1205 ac_configure_args=
1206 ac_configure_args0=
1207 ac_configure_args1=
1208 ac_sep=
1209 ac_must_keep_next=false
1210 for ac_pass in 1 2
1211 do
1212   for ac_arg
1213   do
1214     case $ac_arg in
1215     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1216     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1217     | -silent | --silent | --silen | --sile | --sil)
1218       continue ;;
1219     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1220       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1221     esac
1222     case $ac_pass in
1223     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1224     2)
1225       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1226       if test $ac_must_keep_next = true; then
1227         ac_must_keep_next=false # Got value, back to normal.
1228       else
1229         case $ac_arg in
1230           *=* | --config-cache | -C | -disable-* | --disable-* \
1231           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1232           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1233           | -with-* | --with-* | -without-* | --without-* | --x)
1234             case "$ac_configure_args0 " in
1235               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1236             esac
1237             ;;
1238           -* ) ac_must_keep_next=true ;;
1239         esac
1240       fi
1241       ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1242       # Get rid of the leading space.
1243       ac_sep=" "
1244       ;;
1245     esac
1246   done
1247 done
1248 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1249 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1250
1251 # When interrupted or exit'd, cleanup temporary files, and complete
1252 # config.log.  We remove comments because anyway the quotes in there
1253 # would cause problems or look ugly.
1254 # WARNING: Be sure not to use single quotes in there, as some shells,
1255 # such as our DU 5.0 friend, will then `close' the trap.
1256 trap 'exit_status=$?
1257   # Save into config.log some information that might help in debugging.
1258   {
1259     echo
1260
1261     cat <<\_ASBOX
1262 ## ---------------- ##
1263 ## Cache variables. ##
1264 ## ---------------- ##
1265 _ASBOX
1266     echo
1267     # The following way of writing the cache mishandles newlines in values,
1268 {
1269   (set) 2>&1 |
1270     case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1271     *ac_space=\ *)
1272       sed -n \
1273         "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1274           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1275       ;;
1276     *)
1277       sed -n \
1278         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1279       ;;
1280     esac;
1281 }
1282     echo
1283
1284     cat <<\_ASBOX
1285 ## ----------------- ##
1286 ## Output variables. ##
1287 ## ----------------- ##
1288 _ASBOX
1289     echo
1290     for ac_var in $ac_subst_vars
1291     do
1292       eval ac_val=$`echo $ac_var`
1293       echo "$ac_var='"'"'$ac_val'"'"'"
1294     done | sort
1295     echo
1296
1297     if test -n "$ac_subst_files"; then
1298       cat <<\_ASBOX
1299 ## ------------- ##
1300 ## Output files. ##
1301 ## ------------- ##
1302 _ASBOX
1303       echo
1304       for ac_var in $ac_subst_files
1305       do
1306         eval ac_val=$`echo $ac_var`
1307         echo "$ac_var='"'"'$ac_val'"'"'"
1308       done | sort
1309       echo
1310     fi
1311
1312     if test -s confdefs.h; then
1313       cat <<\_ASBOX
1314 ## ----------- ##
1315 ## confdefs.h. ##
1316 ## ----------- ##
1317 _ASBOX
1318       echo
1319       sed "/^$/d" confdefs.h | sort
1320       echo
1321     fi
1322     test "$ac_signal" != 0 &&
1323       echo "$as_me: caught signal $ac_signal"
1324     echo "$as_me: exit $exit_status"
1325   } >&5
1326   rm -f core core.* *.core &&
1327   rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1328     exit $exit_status
1329      ' 0
1330 for ac_signal in 1 2 13 15; do
1331   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1332 done
1333 ac_signal=0
1334
1335 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1336 rm -rf conftest* confdefs.h
1337 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1338 echo >confdefs.h
1339
1340 # Predefined preprocessor variables.
1341
1342 cat >>confdefs.h <<_ACEOF
1343 #define PACKAGE_NAME "$PACKAGE_NAME"
1344 _ACEOF
1345
1346
1347 cat >>confdefs.h <<_ACEOF
1348 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1349 _ACEOF
1350
1351
1352 cat >>confdefs.h <<_ACEOF
1353 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1354 _ACEOF
1355
1356
1357 cat >>confdefs.h <<_ACEOF
1358 #define PACKAGE_STRING "$PACKAGE_STRING"
1359 _ACEOF
1360
1361
1362 cat >>confdefs.h <<_ACEOF
1363 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1364 _ACEOF
1365
1366
1367 # Let the site file select an alternate cache file if it wants to.
1368 # Prefer explicitly selected file to automatically selected ones.
1369 if test -z "$CONFIG_SITE"; then
1370   if test "x$prefix" != xNONE; then
1371     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1372   else
1373     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1374   fi
1375 fi
1376 for ac_site_file in $CONFIG_SITE; do
1377   if test -r "$ac_site_file"; then
1378     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1379 echo "$as_me: loading site script $ac_site_file" >&6;}
1380     sed 's/^/| /' "$ac_site_file" >&5
1381     . "$ac_site_file"
1382   fi
1383 done
1384
1385 if test -r "$cache_file"; then
1386   # Some versions of bash will fail to source /dev/null (special
1387   # files actually), so we avoid doing that.
1388   if test -f "$cache_file"; then
1389     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1390 echo "$as_me: loading cache $cache_file" >&6;}
1391     case $cache_file in
1392       [\\/]* | ?:[\\/]* ) . $cache_file;;
1393       *)                      . ./$cache_file;;
1394     esac
1395   fi
1396 else
1397   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1398 echo "$as_me: creating cache $cache_file" >&6;}
1399   >$cache_file
1400 fi
1401
1402 # Check that the precious variables saved in the cache have kept the same
1403 # value.
1404 ac_cache_corrupted=false
1405 for ac_var in `(set) 2>&1 |
1406                sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1407   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1408   eval ac_new_set=\$ac_env_${ac_var}_set
1409   eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1410   eval ac_new_val="\$ac_env_${ac_var}_value"
1411   case $ac_old_set,$ac_new_set in
1412     set,)
1413       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1414 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1415       ac_cache_corrupted=: ;;
1416     ,set)
1417       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1418 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1419       ac_cache_corrupted=: ;;
1420     ,);;
1421     *)
1422       if test "x$ac_old_val" != "x$ac_new_val"; then
1423         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1424 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1425         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1426 echo "$as_me:   former value:  $ac_old_val" >&2;}
1427         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1428 echo "$as_me:   current value: $ac_new_val" >&2;}
1429         ac_cache_corrupted=:
1430       fi;;
1431   esac
1432   # Pass precious variables to config.status.
1433   if test "$ac_new_set" = set; then
1434     case $ac_new_val in
1435     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1436       ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1437     *) ac_arg=$ac_var=$ac_new_val ;;
1438     esac
1439     case " $ac_configure_args " in
1440       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1441       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1442     esac
1443   fi
1444 done
1445 if $ac_cache_corrupted; then
1446   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1447 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1448   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1449 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1450    { (exit 1); exit 1; }; }
1451 fi
1452
1453 ac_ext=c
1454 ac_cpp='$CPP $CPPFLAGS'
1455 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1456 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1457 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1458
1459
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 ac_aux_dir=
1487 for ac_dir in autoconf $srcdir/autoconf; do
1488   if test -f $ac_dir/install-sh; then
1489     ac_aux_dir=$ac_dir
1490     ac_install_sh="$ac_aux_dir/install-sh -c"
1491     break
1492   elif test -f $ac_dir/install.sh; then
1493     ac_aux_dir=$ac_dir
1494     ac_install_sh="$ac_aux_dir/install.sh -c"
1495     break
1496   elif test -f $ac_dir/shtool; then
1497     ac_aux_dir=$ac_dir
1498     ac_install_sh="$ac_aux_dir/shtool install -c"
1499     break
1500   fi
1501 done
1502 if test -z "$ac_aux_dir"; then
1503   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf $srcdir/autoconf" >&5
1504 echo "$as_me: error: cannot find install-sh or install.sh in autoconf $srcdir/autoconf" >&2;}
1505    { (exit 1); exit 1; }; }
1506 fi
1507 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1508 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1509 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1510
1511
1512 if test ${srcdir} != "."
1513 then
1514         if test -f ${srcdir}/include/Config/config.h
1515         then
1516                 { { echo "$as_me:$LINENO: error: Already configured in ${srcdir}" >&5
1517 echo "$as_me: error: Already configured in ${srcdir}" >&2;}
1518    { (exit 1); exit 1; }; }
1519         fi
1520 fi
1521
1522           ac_config_headers="$ac_config_headers include/Config/config.h"
1523
1524           ac_config_commands="$ac_config_commands Makefile"
1525
1526
1527           ac_config_commands="$ac_config_commands Makefile.common"
1528
1529
1530           ac_config_commands="$ac_config_commands Makefile.rules"
1531
1532
1533           ac_config_commands="$ac_config_commands lib/Makefile"
1534
1535
1536           ac_config_commands="$ac_config_commands lib/Analysis/Makefile"
1537
1538
1539           ac_config_commands="$ac_config_commands lib/Analysis/DataStructure/Makefile"
1540
1541
1542           ac_config_commands="$ac_config_commands lib/Analysis/IPA/Makefile"
1543
1544
1545           ac_config_commands="$ac_config_commands lib/Analysis/LiveVar/Makefile"
1546
1547
1548           ac_config_commands="$ac_config_commands lib/AsmParser/Makefile"
1549
1550
1551           ac_config_commands="$ac_config_commands lib/Bytecode/Makefile"
1552
1553
1554           ac_config_commands="$ac_config_commands lib/Bytecode/Reader/Makefile"
1555
1556
1557           ac_config_commands="$ac_config_commands lib/Bytecode/Writer/Makefile"
1558
1559
1560           ac_config_commands="$ac_config_commands lib/CWriter/Makefile"
1561
1562
1563           ac_config_commands="$ac_config_commands lib/CodeGen/Makefile"
1564
1565
1566           ac_config_commands="$ac_config_commands lib/CodeGen/InstrSched/Makefile"
1567
1568
1569           ac_config_commands="$ac_config_commands lib/CodeGen/InstrSelection/Makefile"
1570
1571
1572           ac_config_commands="$ac_config_commands lib/CodeGen/ModuloScheduling/Makefile"
1573
1574
1575           ac_config_commands="$ac_config_commands lib/CodeGen/RegAlloc/Makefile"
1576
1577
1578           ac_config_commands="$ac_config_commands lib/CodeGen/SelectionDAG/Makefile"
1579
1580
1581           ac_config_commands="$ac_config_commands lib/ExecutionEngine/Makefile"
1582
1583
1584           ac_config_commands="$ac_config_commands lib/ExecutionEngine/Interpreter/Makefile"
1585
1586
1587           ac_config_commands="$ac_config_commands lib/ExecutionEngine/JIT/Makefile"
1588
1589
1590           ac_config_commands="$ac_config_commands lib/Support/Makefile"
1591
1592
1593           ac_config_commands="$ac_config_commands lib/Target/Makefile"
1594
1595
1596           ac_config_commands="$ac_config_commands lib/Target/Sparc/Makefile"
1597
1598
1599           ac_config_commands="$ac_config_commands lib/Target/X86/Makefile"
1600
1601
1602           ac_config_commands="$ac_config_commands lib/Transforms/Makefile"
1603
1604
1605           ac_config_commands="$ac_config_commands lib/Transforms/Hello/Makefile"
1606
1607
1608           ac_config_commands="$ac_config_commands lib/Transforms/IPO/Makefile"
1609
1610
1611           ac_config_commands="$ac_config_commands lib/Transforms/Instrumentation/Makefile"
1612
1613
1614           ac_config_commands="$ac_config_commands lib/Transforms/Instrumentation/ProfilePaths/Makefile"
1615
1616
1617           ac_config_commands="$ac_config_commands lib/Transforms/Scalar/Makefile"
1618
1619
1620           ac_config_commands="$ac_config_commands lib/Transforms/Utils/Makefile"
1621
1622
1623           ac_config_commands="$ac_config_commands lib/VMCore/Makefile"
1624
1625
1626           ac_config_commands="$ac_config_commands runtime/Makefile"
1627
1628
1629           ac_config_commands="$ac_config_commands runtime/GCCLibraries/Makefile"
1630
1631
1632           ac_config_commands="$ac_config_commands runtime/GCCLibraries/crtend/Makefile"
1633
1634
1635           ac_config_commands="$ac_config_commands runtime/GCCLibraries/libc/Makefile"
1636
1637
1638           ac_config_commands="$ac_config_commands runtime/GCCLibraries/libcurses/Makefile"
1639
1640
1641           ac_config_commands="$ac_config_commands runtime/GCCLibraries/libg/Makefile"
1642
1643
1644           ac_config_commands="$ac_config_commands runtime/GCCLibraries/libgcc/Makefile"
1645
1646
1647           ac_config_commands="$ac_config_commands runtime/GCCLibraries/libm/Makefile"
1648
1649
1650           ac_config_commands="$ac_config_commands runtime/GCCLibraries/libmalloc/Makefile"
1651
1652
1653           ac_config_commands="$ac_config_commands runtime/GCCLibraries/libtermcap/Makefile"
1654
1655
1656           ac_config_commands="$ac_config_commands runtime/GCCLibraries/libucb/Makefile"
1657
1658
1659           ac_config_commands="$ac_config_commands runtime/GCCLibraries/libutempter/Makefile"
1660
1661
1662           ac_config_commands="$ac_config_commands runtime/GCCLibraries/libutil/Makefile"
1663
1664
1665           ac_config_commands="$ac_config_commands runtime/libdummy/Makefile"
1666
1667
1668           ac_config_commands="$ac_config_commands runtime/libtrace/Makefile"
1669
1670
1671           ac_config_commands="$ac_config_commands test/Makefile"
1672
1673
1674           ac_config_commands="$ac_config_commands test/Makefile.tests"
1675
1676
1677           ac_config_commands="$ac_config_commands test/QMTestDB/QMTest/llvm.py"
1678
1679
1680           ac_config_commands="$ac_config_commands test/Programs/Makefile"
1681
1682
1683           ac_config_commands="$ac_config_commands test/Programs/Makefile.programs"
1684
1685
1686           ac_config_commands="$ac_config_commands test/Programs/TEST.aa.Makefile"
1687
1688
1689           ac_config_commands="$ac_config_commands test/Programs/TEST.dsgraph.report"
1690
1691
1692           ac_config_commands="$ac_config_commands test/Programs/TEST.micro.report"
1693
1694
1695           ac_config_commands="$ac_config_commands test/Programs/TEST.aa.report"
1696
1697
1698           ac_config_commands="$ac_config_commands test/Programs/TEST.example.Makefile"
1699
1700
1701           ac_config_commands="$ac_config_commands test/Programs/TEST.nightly.Makefile"
1702
1703
1704           ac_config_commands="$ac_config_commands test/Programs/TEST.buildrepo.Makefile"
1705
1706
1707           ac_config_commands="$ac_config_commands test/Programs/TEST.jit.Makefile"
1708
1709
1710           ac_config_commands="$ac_config_commands test/Programs/TEST.nightly.report"
1711
1712
1713           ac_config_commands="$ac_config_commands test/Programs/TEST.dsgraph.Makefile"
1714
1715
1716           ac_config_commands="$ac_config_commands test/Programs/TEST.jit.report"
1717
1718
1719           ac_config_commands="$ac_config_commands test/Programs/TEST.typesafe.Makefile"
1720
1721
1722           ac_config_commands="$ac_config_commands test/Programs/TEST.dsgraph.gnuplot"
1723
1724
1725           ac_config_commands="$ac_config_commands test/Programs/TEST.micro.Makefile"
1726
1727
1728           ac_config_commands="$ac_config_commands test/Programs/External/Makefile"
1729
1730
1731           ac_config_commands="$ac_config_commands test/Programs/External/SPEC/Makefile"
1732
1733
1734           ac_config_commands="$ac_config_commands test/Programs/External/SPEC/Makefile.spec"
1735
1736
1737           ac_config_commands="$ac_config_commands test/Programs/External/SPEC/CFP2000/Makefile"
1738
1739
1740           ac_config_commands="$ac_config_commands test/Programs/External/SPEC/CFP2000/179.art/Makefile"
1741
1742
1743           ac_config_commands="$ac_config_commands test/Programs/External/SPEC/CFP2000/183.equake/Makefile"
1744
1745
1746           ac_config_commands="$ac_config_commands test/Programs/External/SPEC/CFP2000/188.ammp/Makefile"
1747
1748
1749           ac_config_commands="$ac_config_commands test/Programs/External/SPEC/CINT2000/Makefile"
1750
1751
1752           ac_config_commands="$ac_config_commands test/Programs/External/SPEC/CINT2000/164.gzip/Makefile"
1753
1754
1755           ac_config_commands="$ac_config_commands test/Programs/External/SPEC/CINT2000/175.vpr/Makefile"
1756
1757
1758           ac_config_commands="$ac_config_commands test/Programs/External/SPEC/CINT2000/176.gcc/Makefile"
1759
1760
1761           ac_config_commands="$ac_config_commands test/Programs/External/SPEC/CINT2000/181.mcf/Makefile"
1762
1763
1764           ac_config_commands="$ac_config_commands test/Programs/External/SPEC/CINT2000/186.crafty/Makefile"
1765
1766
1767           ac_config_commands="$ac_config_commands test/Programs/External/SPEC/CINT2000/197.parser/Makefile"
1768
1769
1770           ac_config_commands="$ac_config_commands test/Programs/External/SPEC/CINT2000/254.gap/Makefile"
1771
1772
1773           ac_config_commands="$ac_config_commands test/Programs/External/SPEC/CINT2000/255.vortex/Makefile"
1774
1775
1776           ac_config_commands="$ac_config_commands test/Programs/External/SPEC/CINT2000/256.bzip2/Makefile"
1777
1778
1779           ac_config_commands="$ac_config_commands test/Programs/External/SPEC/CINT2000/300.twolf/Makefile"
1780
1781
1782           ac_config_commands="$ac_config_commands test/Programs/LLVMSource/Makefile"
1783
1784
1785           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Makefile"
1786
1787
1788           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Makefile.multisrc"
1789
1790
1791           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Applications/Makefile"
1792
1793
1794           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Applications/Burg/Makefile"
1795
1796
1797           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Applications/aha/Makefile"
1798
1799
1800           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Applications/sgefa/Makefile"
1801
1802
1803           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/Makefile"
1804
1805
1806           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/Fhourstones/Makefile"
1807
1808
1809           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/McCat/Makefile"
1810
1811
1812           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/McCat/01-qbsort/Makefile"
1813
1814
1815           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/McCat/03-testtrie/Makefile"
1816
1817
1818           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/McCat/04-bisect/Makefile"
1819
1820
1821           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/McCat/05-eks/Makefile"
1822
1823
1824           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/McCat/08-main/Makefile"
1825
1826
1827           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/McCat/09-vor/Makefile"
1828
1829
1830           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/McCat/12-IOtest/Makefile"
1831
1832
1833           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/McCat/15-trie/Makefile"
1834
1835
1836           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/McCat/17-bintr/Makefile"
1837
1838
1839           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/McCat/18-imp/Makefile"
1840
1841
1842           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/Olden/Makefile"
1843
1844
1845           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/Olden/bh/Makefile"
1846
1847
1848           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/Olden/bisort/Makefile"
1849
1850
1851           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/Olden/em3d/Makefile"
1852
1853
1854           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/Olden/health/Makefile"
1855
1856
1857           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/Olden/mst/Makefile"
1858
1859
1860           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/Olden/perimeter/Makefile"
1861
1862
1863           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/Olden/power/Makefile"
1864
1865
1866           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/Olden/treeadd/Makefile"
1867
1868
1869           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/Olden/tsp/Makefile"
1870
1871
1872           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/Olden/voronoi/Makefile"
1873
1874
1875           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/OptimizerEval/Makefile"
1876
1877
1878           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/Ptrdist/Makefile"
1879
1880
1881           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/Ptrdist/anagram/Makefile"
1882
1883
1884           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/Ptrdist/bc/Makefile"
1885
1886
1887           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/Ptrdist/ft/Makefile"
1888
1889
1890           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/Ptrdist/ks/Makefile"
1891
1892
1893           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/Ptrdist/yacr2/Makefile"
1894
1895
1896           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/llubenchmark/Makefile"
1897
1898
1899           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/sim/Makefile"
1900
1901
1902           ac_config_commands="$ac_config_commands test/Programs/NoSource/Makefile"
1903
1904
1905           ac_config_commands="$ac_config_commands test/Programs/NoSource/Flex/Makefile"
1906
1907
1908           ac_config_commands="$ac_config_commands test/Programs/NoSource/Larn/Makefile"
1909
1910
1911           ac_config_commands="$ac_config_commands test/Programs/NoSource/Moria-5.5.2/Makefile"
1912
1913
1914           ac_config_commands="$ac_config_commands test/Programs/NoSource/Povray31/Makefile"
1915
1916
1917           ac_config_commands="$ac_config_commands test/Programs/NoSource/m4/Makefile"
1918
1919
1920           ac_config_commands="$ac_config_commands test/Programs/SingleSource/Makefile"
1921
1922
1923           ac_config_commands="$ac_config_commands test/Programs/SingleSource/Makefile.singlesrc"
1924
1925
1926           ac_config_commands="$ac_config_commands test/Programs/SingleSource/Gizmos/Makefile"
1927
1928
1929           ac_config_commands="$ac_config_commands test/Programs/SingleSource/Benchmarks/Makefile"
1930
1931
1932           ac_config_commands="$ac_config_commands test/Programs/SingleSource/Benchmarks/Dhrystone/Makefile"
1933
1934
1935           ac_config_commands="$ac_config_commands test/Programs/SingleSource/Benchmarks/Shootout/Makefile"
1936
1937
1938           ac_config_commands="$ac_config_commands test/Programs/SingleSource/Benchmarks/Stanford/Makefile"
1939
1940
1941           ac_config_commands="$ac_config_commands test/Programs/SingleSource/Benchmarks/Misc/Makefile"
1942
1943
1944           ac_config_commands="$ac_config_commands test/Programs/SingleSource/CustomChecked/Makefile"
1945
1946
1947           ac_config_commands="$ac_config_commands test/Programs/SingleSource/UnitTests/Makefile"
1948
1949
1950           ac_config_commands="$ac_config_commands test/Programs/SingleSource/UnitTests/SetjmpLongjmp/Makefile"
1951
1952
1953           ac_config_commands="$ac_config_commands test/Programs/SingleSource/Regression/Makefile"
1954
1955
1956           ac_config_commands="$ac_config_commands tools/Makefile"
1957
1958
1959           ac_config_commands="$ac_config_commands tools/analyze/Makefile"
1960
1961
1962           ac_config_commands="$ac_config_commands tools/bugpoint/Makefile"
1963
1964
1965           ac_config_commands="$ac_config_commands tools/extract/Makefile"
1966
1967
1968           ac_config_commands="$ac_config_commands tools/gccas/Makefile"
1969
1970
1971           ac_config_commands="$ac_config_commands tools/gccld/Makefile"
1972
1973
1974           ac_config_commands="$ac_config_commands tools/llc/Makefile"
1975
1976
1977           ac_config_commands="$ac_config_commands tools/llee/Makefile"
1978
1979
1980           ac_config_commands="$ac_config_commands tools/lli/Makefile"
1981
1982
1983           ac_config_commands="$ac_config_commands tools/llvm-ar/Makefile"
1984
1985
1986           ac_config_commands="$ac_config_commands tools/llvm-as/Makefile"
1987
1988
1989           ac_config_commands="$ac_config_commands tools/llvm-dis/Makefile"
1990
1991
1992           ac_config_commands="$ac_config_commands tools/llvm-link/Makefile"
1993
1994
1995           ac_config_commands="$ac_config_commands tools/opt/Makefile"
1996
1997
1998           ac_config_commands="$ac_config_commands utils/Makefile"
1999
2000
2001           ac_config_commands="$ac_config_commands utils/Burg/Makefile"
2002
2003
2004           ac_config_commands="$ac_config_commands utils/Burg/Doc/Makefile"
2005
2006
2007           ac_config_commands="$ac_config_commands utils/TableGen/Makefile"
2008
2009
2010           ac_config_commands="$ac_config_commands www/docs/Makefile"
2011
2012
2013           ac_config_commands="$ac_config_commands projects/Makefile"
2014
2015
2016           ac_config_commands="$ac_config_commands projects/sample/Makefile"
2017
2018
2019           ac_config_commands="$ac_config_commands projects/sample/Makefile.common"
2020
2021
2022           ac_config_commands="$ac_config_commands projects/sample/Makefile.config"
2023
2024
2025           ac_config_commands="$ac_config_commands projects/sample/lib/Makefile"
2026
2027
2028           ac_config_commands="$ac_config_commands projects/sample/lib/sample/Makefile"
2029
2030
2031           ac_config_commands="$ac_config_commands projects/sample/tools/Makefile"
2032
2033
2034           ac_config_commands="$ac_config_commands projects/sample/tools/sample/Makefile"
2035
2036
2037           ac_config_commands="$ac_config_commands projects/ModuleMaker/Makefile"
2038
2039
2040           ac_config_commands="$ac_config_commands projects/ModuleMaker/Makefile.common"
2041
2042
2043           ac_config_commands="$ac_config_commands projects/ModuleMaker/tools/Makefile"
2044
2045
2046           ac_config_commands="$ac_config_commands projects/ModuleMaker/tools/ModuleMaker/Makefile"
2047
2048
2049
2050
2051 # Find a good install program.  We prefer a C program (faster),
2052 # so one script is as good as another.  But avoid the broken or
2053 # incompatible versions:
2054 # SysV /etc/install, /usr/sbin/install
2055 # SunOS /usr/etc/install
2056 # IRIX /sbin/install
2057 # AIX /bin/install
2058 # AmigaOS /C/install, which installs bootblocks on floppy discs
2059 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2060 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2061 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2062 # ./install, which can be erroneously created by make from ./install.sh.
2063 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2064 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
2065 if test -z "$INSTALL"; then
2066 if test "${ac_cv_path_install+set}" = set; then
2067   echo $ECHO_N "(cached) $ECHO_C" >&6
2068 else
2069   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2070 for as_dir in $PATH
2071 do
2072   IFS=$as_save_IFS
2073   test -z "$as_dir" && as_dir=.
2074   # Account for people who put trailing slashes in PATH elements.
2075 case $as_dir/ in
2076   ./ | .// | /cC/* | \
2077   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2078   /usr/ucb/* ) ;;
2079   *)
2080     # OSF1 and SCO ODT 3.0 have their own names for install.
2081     # Don't use installbsd from OSF since it installs stuff as root
2082     # by default.
2083     for ac_prog in ginstall scoinst install; do
2084       for ac_exec_ext in '' $ac_executable_extensions; do
2085         if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2086           if test $ac_prog = install &&
2087             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2088             # AIX install.  It has an incompatible calling convention.
2089             :
2090           elif test $ac_prog = install &&
2091             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2092             # program-specific install script used by HP pwplus--don't use.
2093             :
2094           else
2095             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2096             break 3
2097           fi
2098         fi
2099       done
2100     done
2101     ;;
2102 esac
2103 done
2104
2105
2106 fi
2107   if test "${ac_cv_path_install+set}" = set; then
2108     INSTALL=$ac_cv_path_install
2109   else
2110     # As a last resort, use the slow shell script.  We don't cache a
2111     # path for INSTALL within a source directory, because that will
2112     # break other packages using the cache if that directory is
2113     # removed, or if the path is relative.
2114     INSTALL=$ac_install_sh
2115   fi
2116 fi
2117 echo "$as_me:$LINENO: result: $INSTALL" >&5
2118 echo "${ECHO_T}$INSTALL" >&6
2119
2120 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2121 # It thinks the first close brace ends the variable substitution.
2122 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2123
2124 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2125
2126 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2127
2128
2129 # Make sure we can run config.sub.
2130 $ac_config_sub sun4 >/dev/null 2>&1 ||
2131   { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
2132 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
2133    { (exit 1); exit 1; }; }
2134
2135 echo "$as_me:$LINENO: checking build system type" >&5
2136 echo $ECHO_N "checking build system type... $ECHO_C" >&6
2137 if test "${ac_cv_build+set}" = set; then
2138   echo $ECHO_N "(cached) $ECHO_C" >&6
2139 else
2140   ac_cv_build_alias=$build_alias
2141 test -z "$ac_cv_build_alias" &&
2142   ac_cv_build_alias=`$ac_config_guess`
2143 test -z "$ac_cv_build_alias" &&
2144   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2145 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2146    { (exit 1); exit 1; }; }
2147 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
2148   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
2149 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
2150    { (exit 1); exit 1; }; }
2151
2152 fi
2153 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2154 echo "${ECHO_T}$ac_cv_build" >&6
2155 build=$ac_cv_build
2156 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
2157 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
2158 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
2159
2160
2161 echo "$as_me:$LINENO: checking host system type" >&5
2162 echo $ECHO_N "checking host system type... $ECHO_C" >&6
2163 if test "${ac_cv_host+set}" = set; then
2164   echo $ECHO_N "(cached) $ECHO_C" >&6
2165 else
2166   ac_cv_host_alias=$host_alias
2167 test -z "$ac_cv_host_alias" &&
2168   ac_cv_host_alias=$ac_cv_build_alias
2169 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
2170   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
2171 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
2172    { (exit 1); exit 1; }; }
2173
2174 fi
2175 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2176 echo "${ECHO_T}$ac_cv_host" >&6
2177 host=$ac_cv_host
2178 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
2179 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
2180 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
2181
2182
2183 echo "$as_me:$LINENO: checking target system type" >&5
2184 echo $ECHO_N "checking target system type... $ECHO_C" >&6
2185 if test "${ac_cv_target+set}" = set; then
2186   echo $ECHO_N "(cached) $ECHO_C" >&6
2187 else
2188   ac_cv_target_alias=$target_alias
2189 test "x$ac_cv_target_alias" = "x" &&
2190   ac_cv_target_alias=$ac_cv_host_alias
2191 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
2192   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
2193 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
2194    { (exit 1); exit 1; }; }
2195
2196 fi
2197 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
2198 echo "${ECHO_T}$ac_cv_target" >&6
2199 target=$ac_cv_target
2200 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
2201 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
2202 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
2203
2204
2205 # The aliases save the names the user supplied, while $host etc.
2206 # will get canonicalized.
2207 test -n "$target_alias" &&
2208   test "$program_prefix$program_suffix$program_transform_name" = \
2209     NONENONEs,x,x, &&
2210   program_prefix=${target_alias}-
2211
2212 case $build in
2213         *i*86*)  OS=Linux
2214
2215                  LLVMGCCDIR=/home/vadve/lattner/local/x86/llvm-gcc/
2216
2217                  ;;
2218
2219         *sparc*) OS=SunOS
2220
2221                  LLVMGCCDIR=/home/vadve/lattner/local/sparc/llvm-gcc/
2222
2223                  ;;
2224
2225         *)       OS=Unknown
2226
2227                  ;;
2228 esac
2229
2230 case $target in
2231         *sparc*solaris*)  target=sparcv9-sun-solaris2.8
2232
2233                           ;;
2234 esac
2235
2236 case $target in
2237         *i*86*)           ARCH=x86
2238
2239                           ;;
2240         *sparc*solaris*)  ARCH=Sparc
2241
2242                           ;;
2243 esac
2244
2245
2246 ac_ext=cc
2247 ac_cpp='$CXXCPP $CPPFLAGS'
2248 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2249 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2250 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2251 if test -n "$ac_tool_prefix"; then
2252   for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2253   do
2254     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2255 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2256 echo "$as_me:$LINENO: checking for $ac_word" >&5
2257 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2258 if test "${ac_cv_prog_CXX+set}" = set; then
2259   echo $ECHO_N "(cached) $ECHO_C" >&6
2260 else
2261   if test -n "$CXX"; then
2262   ac_cv_prog_CXX="$CXX" # Let the user override the test.
2263 else
2264 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2265 for as_dir in $PATH
2266 do
2267   IFS=$as_save_IFS
2268   test -z "$as_dir" && as_dir=.
2269   for ac_exec_ext in '' $ac_executable_extensions; do
2270   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2271     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2272     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2273     break 2
2274   fi
2275 done
2276 done
2277
2278 fi
2279 fi
2280 CXX=$ac_cv_prog_CXX
2281 if test -n "$CXX"; then
2282   echo "$as_me:$LINENO: result: $CXX" >&5
2283 echo "${ECHO_T}$CXX" >&6
2284 else
2285   echo "$as_me:$LINENO: result: no" >&5
2286 echo "${ECHO_T}no" >&6
2287 fi
2288
2289     test -n "$CXX" && break
2290   done
2291 fi
2292 if test -z "$CXX"; then
2293   ac_ct_CXX=$CXX
2294   for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2295 do
2296   # Extract the first word of "$ac_prog", so it can be a program name with args.
2297 set dummy $ac_prog; ac_word=$2
2298 echo "$as_me:$LINENO: checking for $ac_word" >&5
2299 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2300 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2301   echo $ECHO_N "(cached) $ECHO_C" >&6
2302 else
2303   if test -n "$ac_ct_CXX"; then
2304   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2305 else
2306 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2307 for as_dir in $PATH
2308 do
2309   IFS=$as_save_IFS
2310   test -z "$as_dir" && as_dir=.
2311   for ac_exec_ext in '' $ac_executable_extensions; do
2312   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2313     ac_cv_prog_ac_ct_CXX="$ac_prog"
2314     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2315     break 2
2316   fi
2317 done
2318 done
2319
2320 fi
2321 fi
2322 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2323 if test -n "$ac_ct_CXX"; then
2324   echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2325 echo "${ECHO_T}$ac_ct_CXX" >&6
2326 else
2327   echo "$as_me:$LINENO: result: no" >&5
2328 echo "${ECHO_T}no" >&6
2329 fi
2330
2331   test -n "$ac_ct_CXX" && break
2332 done
2333 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
2334
2335   CXX=$ac_ct_CXX
2336 fi
2337
2338
2339 # Provide some information about the compiler.
2340 echo "$as_me:$LINENO:" \
2341      "checking for C++ compiler version" >&5
2342 ac_compiler=`set X $ac_compile; echo $2`
2343 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2344   (eval $ac_compiler --version </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 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2354   (eval $ac_compiler -V </dev/null >&5) 2>&5
2355   ac_status=$?
2356   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2357   (exit $ac_status); }
2358
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
2371   ;
2372   return 0;
2373 }
2374 _ACEOF
2375 ac_clean_files_save=$ac_clean_files
2376 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2377 # Try to create an executable without -o first, disregard a.out.
2378 # It will help us diagnose broken compilers, and finding out an intuition
2379 # of exeext.
2380 echo "$as_me:$LINENO: checking for C++ compiler default output" >&5
2381 echo $ECHO_N "checking for C++ compiler default output... $ECHO_C" >&6
2382 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2383 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2384   (eval $ac_link_default) 2>&5
2385   ac_status=$?
2386   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2387   (exit $ac_status); }; then
2388   # Find the output, starting from the most likely.  This scheme is
2389 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2390 # resort.
2391
2392 # Be careful to initialize this variable, since it used to be cached.
2393 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2394 ac_cv_exeext=
2395 # b.out is created by i960 compilers.
2396 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2397 do
2398   test -f "$ac_file" || continue
2399   case $ac_file in
2400     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2401         ;;
2402     conftest.$ac_ext )
2403         # This is the source file.
2404         ;;
2405     [ab].out )
2406         # We found the default executable, but exeext='' is most
2407         # certainly right.
2408         break;;
2409     *.* )
2410         ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2411         # FIXME: I believe we export ac_cv_exeext for Libtool,
2412         # but it would be cool to find out if it's true.  Does anybody
2413         # maintain Libtool? --akim.
2414         export ac_cv_exeext
2415         break;;
2416     * )
2417         break;;
2418   esac
2419 done
2420 else
2421   echo "$as_me: failed program was:" >&5
2422 sed 's/^/| /' conftest.$ac_ext >&5
2423
2424 { { echo "$as_me:$LINENO: error: C++ compiler cannot create executables
2425 See \`config.log' for more details." >&5
2426 echo "$as_me: error: C++ compiler cannot create executables
2427 See \`config.log' for more details." >&2;}
2428    { (exit 77); exit 77; }; }
2429 fi
2430
2431 ac_exeext=$ac_cv_exeext
2432 echo "$as_me:$LINENO: result: $ac_file" >&5
2433 echo "${ECHO_T}$ac_file" >&6
2434
2435 # Check the compiler produces executables we can run.  If not, either
2436 # the compiler is broken, or we cross compile.
2437 echo "$as_me:$LINENO: checking whether the C++ compiler works" >&5
2438 echo $ECHO_N "checking whether the C++ compiler works... $ECHO_C" >&6
2439 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2440 # If not cross compiling, check that we can run a simple program.
2441 if test "$cross_compiling" != yes; then
2442   if { ac_try='./$ac_file'
2443   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2444   (eval $ac_try) 2>&5
2445   ac_status=$?
2446   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2447   (exit $ac_status); }; }; then
2448     cross_compiling=no
2449   else
2450     if test "$cross_compiling" = maybe; then
2451         cross_compiling=yes
2452     else
2453         { { echo "$as_me:$LINENO: error: cannot run C++ compiled programs.
2454 If you meant to cross compile, use \`--host'.
2455 See \`config.log' for more details." >&5
2456 echo "$as_me: error: cannot run C++ compiled programs.
2457 If you meant to cross compile, use \`--host'.
2458 See \`config.log' for more details." >&2;}
2459    { (exit 1); exit 1; }; }
2460     fi
2461   fi
2462 fi
2463 echo "$as_me:$LINENO: result: yes" >&5
2464 echo "${ECHO_T}yes" >&6
2465
2466 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2467 ac_clean_files=$ac_clean_files_save
2468 # Check the compiler produces executables we can run.  If not, either
2469 # the compiler is broken, or we cross compile.
2470 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2471 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2472 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2473 echo "${ECHO_T}$cross_compiling" >&6
2474
2475 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2476 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2477 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2478   (eval $ac_link) 2>&5
2479   ac_status=$?
2480   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2481   (exit $ac_status); }; then
2482   # If both `conftest.exe' and `conftest' are `present' (well, observable)
2483 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2484 # work properly (i.e., refer to `conftest.exe'), while it won't with
2485 # `rm'.
2486 for ac_file in conftest.exe conftest conftest.*; do
2487   test -f "$ac_file" || continue
2488   case $ac_file in
2489     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2490     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2491           export ac_cv_exeext
2492           break;;
2493     * ) break;;
2494   esac
2495 done
2496 else
2497   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2498 See \`config.log' for more details." >&5
2499 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2500 See \`config.log' for more details." >&2;}
2501    { (exit 1); exit 1; }; }
2502 fi
2503
2504 rm -f conftest$ac_cv_exeext
2505 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2506 echo "${ECHO_T}$ac_cv_exeext" >&6
2507
2508 rm -f conftest.$ac_ext
2509 EXEEXT=$ac_cv_exeext
2510 ac_exeext=$EXEEXT
2511 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2512 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2513 if test "${ac_cv_objext+set}" = set; then
2514   echo $ECHO_N "(cached) $ECHO_C" >&6
2515 else
2516   cat >conftest.$ac_ext <<_ACEOF
2517 #line $LINENO "configure"
2518 /* confdefs.h.  */
2519 _ACEOF
2520 cat confdefs.h >>conftest.$ac_ext
2521 cat >>conftest.$ac_ext <<_ACEOF
2522 /* end confdefs.h.  */
2523
2524 int
2525 main ()
2526 {
2527
2528   ;
2529   return 0;
2530 }
2531 _ACEOF
2532 rm -f conftest.o conftest.obj
2533 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2534   (eval $ac_compile) 2>&5
2535   ac_status=$?
2536   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2537   (exit $ac_status); }; then
2538   for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2539   case $ac_file in
2540     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2541     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2542        break;;
2543   esac
2544 done
2545 else
2546   echo "$as_me: failed program was:" >&5
2547 sed 's/^/| /' conftest.$ac_ext >&5
2548
2549 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2550 See \`config.log' for more details." >&5
2551 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2552 See \`config.log' for more details." >&2;}
2553    { (exit 1); exit 1; }; }
2554 fi
2555
2556 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2557 fi
2558 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2559 echo "${ECHO_T}$ac_cv_objext" >&6
2560 OBJEXT=$ac_cv_objext
2561 ac_objext=$OBJEXT
2562 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2563 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
2564 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2565   echo $ECHO_N "(cached) $ECHO_C" >&6
2566 else
2567   cat >conftest.$ac_ext <<_ACEOF
2568 #line $LINENO "configure"
2569 /* confdefs.h.  */
2570 _ACEOF
2571 cat confdefs.h >>conftest.$ac_ext
2572 cat >>conftest.$ac_ext <<_ACEOF
2573 /* end confdefs.h.  */
2574
2575 int
2576 main ()
2577 {
2578 #ifndef __GNUC__
2579        choke me
2580 #endif
2581
2582   ;
2583   return 0;
2584 }
2585 _ACEOF
2586 rm -f conftest.$ac_objext
2587 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2588   (eval $ac_compile) 2>&5
2589   ac_status=$?
2590   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2591   (exit $ac_status); } &&
2592          { ac_try='test -s conftest.$ac_objext'
2593   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2594   (eval $ac_try) 2>&5
2595   ac_status=$?
2596   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2597   (exit $ac_status); }; }; then
2598   ac_compiler_gnu=yes
2599 else
2600   echo "$as_me: failed program was:" >&5
2601 sed 's/^/| /' conftest.$ac_ext >&5
2602
2603 ac_compiler_gnu=no
2604 fi
2605 rm -f conftest.$ac_objext conftest.$ac_ext
2606 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2607
2608 fi
2609 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
2610 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
2611 GXX=`test $ac_compiler_gnu = yes && echo yes`
2612 ac_test_CXXFLAGS=${CXXFLAGS+set}
2613 ac_save_CXXFLAGS=$CXXFLAGS
2614 CXXFLAGS="-g"
2615 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
2616 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
2617 if test "${ac_cv_prog_cxx_g+set}" = set; then
2618   echo $ECHO_N "(cached) $ECHO_C" >&6
2619 else
2620   cat >conftest.$ac_ext <<_ACEOF
2621 #line $LINENO "configure"
2622 /* confdefs.h.  */
2623 _ACEOF
2624 cat confdefs.h >>conftest.$ac_ext
2625 cat >>conftest.$ac_ext <<_ACEOF
2626 /* end confdefs.h.  */
2627
2628 int
2629 main ()
2630 {
2631
2632   ;
2633   return 0;
2634 }
2635 _ACEOF
2636 rm -f conftest.$ac_objext
2637 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2638   (eval $ac_compile) 2>&5
2639   ac_status=$?
2640   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2641   (exit $ac_status); } &&
2642          { ac_try='test -s conftest.$ac_objext'
2643   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2644   (eval $ac_try) 2>&5
2645   ac_status=$?
2646   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2647   (exit $ac_status); }; }; then
2648   ac_cv_prog_cxx_g=yes
2649 else
2650   echo "$as_me: failed program was:" >&5
2651 sed 's/^/| /' conftest.$ac_ext >&5
2652
2653 ac_cv_prog_cxx_g=no
2654 fi
2655 rm -f conftest.$ac_objext conftest.$ac_ext
2656 fi
2657 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
2658 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
2659 if test "$ac_test_CXXFLAGS" = set; then
2660   CXXFLAGS=$ac_save_CXXFLAGS
2661 elif test $ac_cv_prog_cxx_g = yes; then
2662   if test "$GXX" = yes; then
2663     CXXFLAGS="-g -O2"
2664   else
2665     CXXFLAGS="-g"
2666   fi
2667 else
2668   if test "$GXX" = yes; then
2669     CXXFLAGS="-O2"
2670   else
2671     CXXFLAGS=
2672   fi
2673 fi
2674 for ac_declaration in \
2675    ''\
2676    '#include <stdlib.h>' \
2677    'extern "C" void std::exit (int) throw (); using std::exit;' \
2678    'extern "C" void std::exit (int); using std::exit;' \
2679    'extern "C" void exit (int) throw ();' \
2680    'extern "C" void exit (int);' \
2681    'void exit (int);'
2682 do
2683   cat >conftest.$ac_ext <<_ACEOF
2684 #line $LINENO "configure"
2685 /* confdefs.h.  */
2686 _ACEOF
2687 cat confdefs.h >>conftest.$ac_ext
2688 cat >>conftest.$ac_ext <<_ACEOF
2689 /* end confdefs.h.  */
2690 #include <stdlib.h>
2691 $ac_declaration
2692 int
2693 main ()
2694 {
2695 exit (42);
2696   ;
2697   return 0;
2698 }
2699 _ACEOF
2700 rm -f conftest.$ac_objext
2701 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2702   (eval $ac_compile) 2>&5
2703   ac_status=$?
2704   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2705   (exit $ac_status); } &&
2706          { ac_try='test -s conftest.$ac_objext'
2707   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2708   (eval $ac_try) 2>&5
2709   ac_status=$?
2710   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2711   (exit $ac_status); }; }; then
2712   :
2713 else
2714   echo "$as_me: failed program was:" >&5
2715 sed 's/^/| /' conftest.$ac_ext >&5
2716
2717 continue
2718 fi
2719 rm -f conftest.$ac_objext conftest.$ac_ext
2720   cat >conftest.$ac_ext <<_ACEOF
2721 #line $LINENO "configure"
2722 /* confdefs.h.  */
2723 _ACEOF
2724 cat confdefs.h >>conftest.$ac_ext
2725 cat >>conftest.$ac_ext <<_ACEOF
2726 /* end confdefs.h.  */
2727 $ac_declaration
2728 int
2729 main ()
2730 {
2731 exit (42);
2732   ;
2733   return 0;
2734 }
2735 _ACEOF
2736 rm -f conftest.$ac_objext
2737 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2738   (eval $ac_compile) 2>&5
2739   ac_status=$?
2740   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2741   (exit $ac_status); } &&
2742          { ac_try='test -s conftest.$ac_objext'
2743   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2744   (eval $ac_try) 2>&5
2745   ac_status=$?
2746   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2747   (exit $ac_status); }; }; then
2748   break
2749 else
2750   echo "$as_me: failed program was:" >&5
2751 sed 's/^/| /' conftest.$ac_ext >&5
2752
2753 fi
2754 rm -f conftest.$ac_objext conftest.$ac_ext
2755 done
2756 rm -f conftest*
2757 if test -n "$ac_declaration"; then
2758   echo '#ifdef __cplusplus' >>confdefs.h
2759   echo $ac_declaration      >>confdefs.h
2760   echo '#endif'             >>confdefs.h
2761 fi
2762
2763 ac_ext=c
2764 ac_cpp='$CPP $CPPFLAGS'
2765 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2766 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2767 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2768
2769 ac_ext=c
2770 ac_cpp='$CPP $CPPFLAGS'
2771 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2772 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2773 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2774 if test -n "$ac_tool_prefix"; then
2775   for ac_prog in gcc
2776   do
2777     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2778 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2779 echo "$as_me:$LINENO: checking for $ac_word" >&5
2780 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2781 if test "${ac_cv_prog_CC+set}" = set; then
2782   echo $ECHO_N "(cached) $ECHO_C" >&6
2783 else
2784   if test -n "$CC"; then
2785   ac_cv_prog_CC="$CC" # Let the user override the test.
2786 else
2787 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2788 for as_dir in $PATH
2789 do
2790   IFS=$as_save_IFS
2791   test -z "$as_dir" && as_dir=.
2792   for ac_exec_ext in '' $ac_executable_extensions; do
2793   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2794     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2795     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2796     break 2
2797   fi
2798 done
2799 done
2800
2801 fi
2802 fi
2803 CC=$ac_cv_prog_CC
2804 if test -n "$CC"; then
2805   echo "$as_me:$LINENO: result: $CC" >&5
2806 echo "${ECHO_T}$CC" >&6
2807 else
2808   echo "$as_me:$LINENO: result: no" >&5
2809 echo "${ECHO_T}no" >&6
2810 fi
2811
2812     test -n "$CC" && break
2813   done
2814 fi
2815 if test -z "$CC"; then
2816   ac_ct_CC=$CC
2817   for ac_prog in gcc
2818 do
2819   # Extract the first word of "$ac_prog", so it can be a program name with args.
2820 set dummy $ac_prog; ac_word=$2
2821 echo "$as_me:$LINENO: checking for $ac_word" >&5
2822 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2823 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2824   echo $ECHO_N "(cached) $ECHO_C" >&6
2825 else
2826   if test -n "$ac_ct_CC"; then
2827   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2828 else
2829 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2830 for as_dir in $PATH
2831 do
2832   IFS=$as_save_IFS
2833   test -z "$as_dir" && as_dir=.
2834   for ac_exec_ext in '' $ac_executable_extensions; do
2835   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2836     ac_cv_prog_ac_ct_CC="$ac_prog"
2837     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2838     break 2
2839   fi
2840 done
2841 done
2842
2843 fi
2844 fi
2845 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2846 if test -n "$ac_ct_CC"; then
2847   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2848 echo "${ECHO_T}$ac_ct_CC" >&6
2849 else
2850   echo "$as_me:$LINENO: result: no" >&5
2851 echo "${ECHO_T}no" >&6
2852 fi
2853
2854   test -n "$ac_ct_CC" && break
2855 done
2856
2857   CC=$ac_ct_CC
2858 fi
2859
2860
2861 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2862 See \`config.log' for more details." >&5
2863 echo "$as_me: error: no acceptable C compiler found in \$PATH
2864 See \`config.log' for more details." >&2;}
2865    { (exit 1); exit 1; }; }
2866
2867 # Provide some information about the compiler.
2868 echo "$as_me:$LINENO:" \
2869      "checking for C compiler version" >&5
2870 ac_compiler=`set X $ac_compile; echo $2`
2871 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2872   (eval $ac_compiler --version </dev/null >&5) 2>&5
2873   ac_status=$?
2874   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2875   (exit $ac_status); }
2876 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2877   (eval $ac_compiler -v </dev/null >&5) 2>&5
2878   ac_status=$?
2879   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2880   (exit $ac_status); }
2881 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2882   (eval $ac_compiler -V </dev/null >&5) 2>&5
2883   ac_status=$?
2884   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2885   (exit $ac_status); }
2886
2887 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2888 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2889 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2890   echo $ECHO_N "(cached) $ECHO_C" >&6
2891 else
2892   cat >conftest.$ac_ext <<_ACEOF
2893 #line $LINENO "configure"
2894 /* confdefs.h.  */
2895 _ACEOF
2896 cat confdefs.h >>conftest.$ac_ext
2897 cat >>conftest.$ac_ext <<_ACEOF
2898 /* end confdefs.h.  */
2899
2900 int
2901 main ()
2902 {
2903 #ifndef __GNUC__
2904        choke me
2905 #endif
2906
2907   ;
2908   return 0;
2909 }
2910 _ACEOF
2911 rm -f conftest.$ac_objext
2912 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2913   (eval $ac_compile) 2>&5
2914   ac_status=$?
2915   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2916   (exit $ac_status); } &&
2917          { ac_try='test -s conftest.$ac_objext'
2918   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2919   (eval $ac_try) 2>&5
2920   ac_status=$?
2921   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2922   (exit $ac_status); }; }; then
2923   ac_compiler_gnu=yes
2924 else
2925   echo "$as_me: failed program was:" >&5
2926 sed 's/^/| /' conftest.$ac_ext >&5
2927
2928 ac_compiler_gnu=no
2929 fi
2930 rm -f conftest.$ac_objext conftest.$ac_ext
2931 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2932
2933 fi
2934 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2935 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2936 GCC=`test $ac_compiler_gnu = yes && echo yes`
2937 ac_test_CFLAGS=${CFLAGS+set}
2938 ac_save_CFLAGS=$CFLAGS
2939 CFLAGS="-g"
2940 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2941 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2942 if test "${ac_cv_prog_cc_g+set}" = set; then
2943   echo $ECHO_N "(cached) $ECHO_C" >&6
2944 else
2945   cat >conftest.$ac_ext <<_ACEOF
2946 #line $LINENO "configure"
2947 /* confdefs.h.  */
2948 _ACEOF
2949 cat confdefs.h >>conftest.$ac_ext
2950 cat >>conftest.$ac_ext <<_ACEOF
2951 /* end confdefs.h.  */
2952
2953 int
2954 main ()
2955 {
2956
2957   ;
2958   return 0;
2959 }
2960 _ACEOF
2961 rm -f conftest.$ac_objext
2962 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2963   (eval $ac_compile) 2>&5
2964   ac_status=$?
2965   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2966   (exit $ac_status); } &&
2967          { ac_try='test -s conftest.$ac_objext'
2968   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2969   (eval $ac_try) 2>&5
2970   ac_status=$?
2971   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2972   (exit $ac_status); }; }; then
2973   ac_cv_prog_cc_g=yes
2974 else
2975   echo "$as_me: failed program was:" >&5
2976 sed 's/^/| /' conftest.$ac_ext >&5
2977
2978 ac_cv_prog_cc_g=no
2979 fi
2980 rm -f conftest.$ac_objext conftest.$ac_ext
2981 fi
2982 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2983 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2984 if test "$ac_test_CFLAGS" = set; then
2985   CFLAGS=$ac_save_CFLAGS
2986 elif test $ac_cv_prog_cc_g = yes; then
2987   if test "$GCC" = yes; then
2988     CFLAGS="-g -O2"
2989   else
2990     CFLAGS="-g"
2991   fi
2992 else
2993   if test "$GCC" = yes; then
2994     CFLAGS="-O2"
2995   else
2996     CFLAGS=
2997   fi
2998 fi
2999 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
3000 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
3001 if test "${ac_cv_prog_cc_stdc+set}" = set; then
3002   echo $ECHO_N "(cached) $ECHO_C" >&6
3003 else
3004   ac_cv_prog_cc_stdc=no
3005 ac_save_CC=$CC
3006 cat >conftest.$ac_ext <<_ACEOF
3007 #line $LINENO "configure"
3008 /* confdefs.h.  */
3009 _ACEOF
3010 cat confdefs.h >>conftest.$ac_ext
3011 cat >>conftest.$ac_ext <<_ACEOF
3012 /* end confdefs.h.  */
3013 #include <stdarg.h>
3014 #include <stdio.h>
3015 #include <sys/types.h>
3016 #include <sys/stat.h>
3017 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3018 struct buf { int x; };
3019 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3020 static char *e (p, i)
3021      char **p;
3022      int i;
3023 {
3024   return p[i];
3025 }
3026 static char *f (char * (*g) (char **, int), char **p, ...)
3027 {
3028   char *s;
3029   va_list v;
3030   va_start (v,p);
3031   s = g (p, va_arg (v,int));
3032   va_end (v);
3033   return s;
3034 }
3035 int test (int i, double x);
3036 struct s1 {int (*f) (int a);};
3037 struct s2 {int (*f) (double a);};
3038 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3039 int argc;
3040 char **argv;
3041 int
3042 main ()
3043 {
3044 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3045   ;
3046   return 0;
3047 }
3048 _ACEOF
3049 # Don't try gcc -ansi; that turns off useful extensions and
3050 # breaks some systems' header files.
3051 # AIX                   -qlanglvl=ansi
3052 # Ultrix and OSF/1      -std1
3053 # HP-UX 10.20 and later -Ae
3054 # HP-UX older versions  -Aa -D_HPUX_SOURCE
3055 # SVR4                  -Xc -D__EXTENSIONS__
3056 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3057 do
3058   CC="$ac_save_CC $ac_arg"
3059   rm -f conftest.$ac_objext
3060 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3061   (eval $ac_compile) 2>&5
3062   ac_status=$?
3063   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3064   (exit $ac_status); } &&
3065          { ac_try='test -s conftest.$ac_objext'
3066   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3067   (eval $ac_try) 2>&5
3068   ac_status=$?
3069   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3070   (exit $ac_status); }; }; then
3071   ac_cv_prog_cc_stdc=$ac_arg
3072 break
3073 else
3074   echo "$as_me: failed program was:" >&5
3075 sed 's/^/| /' conftest.$ac_ext >&5
3076
3077 fi
3078 rm -f conftest.$ac_objext
3079 done
3080 rm -f conftest.$ac_ext conftest.$ac_objext
3081 CC=$ac_save_CC
3082
3083 fi
3084
3085 case "x$ac_cv_prog_cc_stdc" in
3086   x|xno)
3087     echo "$as_me:$LINENO: result: none needed" >&5
3088 echo "${ECHO_T}none needed" >&6 ;;
3089   *)
3090     echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
3091 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
3092     CC="$CC $ac_cv_prog_cc_stdc" ;;
3093 esac
3094
3095 # Some people use a C++ compiler to compile C.  Since we use `exit',
3096 # in C++ we need to declare it.  In case someone uses the same compiler
3097 # for both compiling C and C++ we need to have the C++ compiler decide
3098 # the declaration of exit, since it's the most demanding environment.
3099 cat >conftest.$ac_ext <<_ACEOF
3100 #ifndef __cplusplus
3101   choke me
3102 #endif
3103 _ACEOF
3104 rm -f conftest.$ac_objext
3105 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3106   (eval $ac_compile) 2>&5
3107   ac_status=$?
3108   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3109   (exit $ac_status); } &&
3110          { ac_try='test -s conftest.$ac_objext'
3111   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3112   (eval $ac_try) 2>&5
3113   ac_status=$?
3114   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3115   (exit $ac_status); }; }; then
3116   for ac_declaration in \
3117    ''\
3118    '#include <stdlib.h>' \
3119    'extern "C" void std::exit (int) throw (); using std::exit;' \
3120    'extern "C" void std::exit (int); using std::exit;' \
3121    'extern "C" void exit (int) throw ();' \
3122    'extern "C" void exit (int);' \
3123    'void exit (int);'
3124 do
3125   cat >conftest.$ac_ext <<_ACEOF
3126 #line $LINENO "configure"
3127 /* confdefs.h.  */
3128 _ACEOF
3129 cat confdefs.h >>conftest.$ac_ext
3130 cat >>conftest.$ac_ext <<_ACEOF
3131 /* end confdefs.h.  */
3132 #include <stdlib.h>
3133 $ac_declaration
3134 int
3135 main ()
3136 {
3137 exit (42);
3138   ;
3139   return 0;
3140 }
3141 _ACEOF
3142 rm -f conftest.$ac_objext
3143 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3144   (eval $ac_compile) 2>&5
3145   ac_status=$?
3146   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3147   (exit $ac_status); } &&
3148          { ac_try='test -s conftest.$ac_objext'
3149   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3150   (eval $ac_try) 2>&5
3151   ac_status=$?
3152   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3153   (exit $ac_status); }; }; then
3154   :
3155 else
3156   echo "$as_me: failed program was:" >&5
3157 sed 's/^/| /' conftest.$ac_ext >&5
3158
3159 continue
3160 fi
3161 rm -f conftest.$ac_objext conftest.$ac_ext
3162   cat >conftest.$ac_ext <<_ACEOF
3163 #line $LINENO "configure"
3164 /* confdefs.h.  */
3165 _ACEOF
3166 cat confdefs.h >>conftest.$ac_ext
3167 cat >>conftest.$ac_ext <<_ACEOF
3168 /* end confdefs.h.  */
3169 $ac_declaration
3170 int
3171 main ()
3172 {
3173 exit (42);
3174   ;
3175   return 0;
3176 }
3177 _ACEOF
3178 rm -f conftest.$ac_objext
3179 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3180   (eval $ac_compile) 2>&5
3181   ac_status=$?
3182   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3183   (exit $ac_status); } &&
3184          { ac_try='test -s conftest.$ac_objext'
3185   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3186   (eval $ac_try) 2>&5
3187   ac_status=$?
3188   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3189   (exit $ac_status); }; }; then
3190   break
3191 else
3192   echo "$as_me: failed program was:" >&5
3193 sed 's/^/| /' conftest.$ac_ext >&5
3194
3195 fi
3196 rm -f conftest.$ac_objext conftest.$ac_ext
3197 done
3198 rm -f conftest*
3199 if test -n "$ac_declaration"; then
3200   echo '#ifdef __cplusplus' >>confdefs.h
3201   echo $ac_declaration      >>confdefs.h
3202   echo '#endif'             >>confdefs.h
3203 fi
3204
3205 else
3206   echo "$as_me: failed program was:" >&5
3207 sed 's/^/| /' conftest.$ac_ext >&5
3208
3209 fi
3210 rm -f conftest.$ac_objext conftest.$ac_ext
3211 ac_ext=c
3212 ac_cpp='$CPP $CPPFLAGS'
3213 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3214 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3215 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3216
3217 ac_ext=c
3218 ac_cpp='$CPP $CPPFLAGS'
3219 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3220 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3221 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3222 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3223 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3224 # On Suns, sometimes $CPP names a directory.
3225 if test -n "$CPP" && test -d "$CPP"; then
3226   CPP=
3227 fi
3228 if test -z "$CPP"; then
3229   if test "${ac_cv_prog_CPP+set}" = set; then
3230   echo $ECHO_N "(cached) $ECHO_C" >&6
3231 else
3232       # Double quotes because CPP needs to be expanded
3233     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3234     do
3235       ac_preproc_ok=false
3236 for ac_c_preproc_warn_flag in '' yes
3237 do
3238   # Use a header file that comes with gcc, so configuring glibc
3239   # with a fresh cross-compiler works.
3240   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3241   # <limits.h> exists even on freestanding compilers.
3242   # On the NeXT, cc -E runs the code through the compiler's parser,
3243   # not just through cpp. "Syntax error" is here to catch this case.
3244   cat >conftest.$ac_ext <<_ACEOF
3245 #line $LINENO "configure"
3246 /* confdefs.h.  */
3247 _ACEOF
3248 cat confdefs.h >>conftest.$ac_ext
3249 cat >>conftest.$ac_ext <<_ACEOF
3250 /* end confdefs.h.  */
3251 #ifdef __STDC__
3252 # include <limits.h>
3253 #else
3254 # include <assert.h>
3255 #endif
3256                      Syntax error
3257 _ACEOF
3258 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3259   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3260   ac_status=$?
3261   grep -v '^ *+' conftest.er1 >conftest.err
3262   rm -f conftest.er1
3263   cat conftest.err >&5
3264   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3265   (exit $ac_status); } >/dev/null; then
3266   if test -s conftest.err; then
3267     ac_cpp_err=$ac_c_preproc_warn_flag
3268   else
3269     ac_cpp_err=
3270   fi
3271 else
3272   ac_cpp_err=yes
3273 fi
3274 if test -z "$ac_cpp_err"; then
3275   :
3276 else
3277   echo "$as_me: failed program was:" >&5
3278 sed 's/^/| /' conftest.$ac_ext >&5
3279
3280   # Broken: fails on valid input.
3281 continue
3282 fi
3283 rm -f conftest.err conftest.$ac_ext
3284
3285   # OK, works on sane cases.  Now check whether non-existent headers
3286   # can be detected and how.
3287   cat >conftest.$ac_ext <<_ACEOF
3288 #line $LINENO "configure"
3289 /* confdefs.h.  */
3290 _ACEOF
3291 cat confdefs.h >>conftest.$ac_ext
3292 cat >>conftest.$ac_ext <<_ACEOF
3293 /* end confdefs.h.  */
3294 #include <ac_nonexistent.h>
3295 _ACEOF
3296 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3297   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3298   ac_status=$?
3299   grep -v '^ *+' conftest.er1 >conftest.err
3300   rm -f conftest.er1
3301   cat conftest.err >&5
3302   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3303   (exit $ac_status); } >/dev/null; then
3304   if test -s conftest.err; then
3305     ac_cpp_err=$ac_c_preproc_warn_flag
3306   else
3307     ac_cpp_err=
3308   fi
3309 else
3310   ac_cpp_err=yes
3311 fi
3312 if test -z "$ac_cpp_err"; then
3313   # Broken: success on invalid input.
3314 continue
3315 else
3316   echo "$as_me: failed program was:" >&5
3317 sed 's/^/| /' conftest.$ac_ext >&5
3318
3319   # Passes both tests.
3320 ac_preproc_ok=:
3321 break
3322 fi
3323 rm -f conftest.err conftest.$ac_ext
3324
3325 done
3326 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3327 rm -f conftest.err conftest.$ac_ext
3328 if $ac_preproc_ok; then
3329   break
3330 fi
3331
3332     done
3333     ac_cv_prog_CPP=$CPP
3334
3335 fi
3336   CPP=$ac_cv_prog_CPP
3337 else
3338   ac_cv_prog_CPP=$CPP
3339 fi
3340 echo "$as_me:$LINENO: result: $CPP" >&5
3341 echo "${ECHO_T}$CPP" >&6
3342 ac_preproc_ok=false
3343 for ac_c_preproc_warn_flag in '' yes
3344 do
3345   # Use a header file that comes with gcc, so configuring glibc
3346   # with a fresh cross-compiler works.
3347   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3348   # <limits.h> exists even on freestanding compilers.
3349   # On the NeXT, cc -E runs the code through the compiler's parser,
3350   # not just through cpp. "Syntax error" is here to catch this case.
3351   cat >conftest.$ac_ext <<_ACEOF
3352 #line $LINENO "configure"
3353 /* confdefs.h.  */
3354 _ACEOF
3355 cat confdefs.h >>conftest.$ac_ext
3356 cat >>conftest.$ac_ext <<_ACEOF
3357 /* end confdefs.h.  */
3358 #ifdef __STDC__
3359 # include <limits.h>
3360 #else
3361 # include <assert.h>
3362 #endif
3363                      Syntax error
3364 _ACEOF
3365 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3366   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3367   ac_status=$?
3368   grep -v '^ *+' conftest.er1 >conftest.err
3369   rm -f conftest.er1
3370   cat conftest.err >&5
3371   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3372   (exit $ac_status); } >/dev/null; then
3373   if test -s conftest.err; then
3374     ac_cpp_err=$ac_c_preproc_warn_flag
3375   else
3376     ac_cpp_err=
3377   fi
3378 else
3379   ac_cpp_err=yes
3380 fi
3381 if test -z "$ac_cpp_err"; then
3382   :
3383 else
3384   echo "$as_me: failed program was:" >&5
3385 sed 's/^/| /' conftest.$ac_ext >&5
3386
3387   # Broken: fails on valid input.
3388 continue
3389 fi
3390 rm -f conftest.err conftest.$ac_ext
3391
3392   # OK, works on sane cases.  Now check whether non-existent headers
3393   # can be detected and how.
3394   cat >conftest.$ac_ext <<_ACEOF
3395 #line $LINENO "configure"
3396 /* confdefs.h.  */
3397 _ACEOF
3398 cat confdefs.h >>conftest.$ac_ext
3399 cat >>conftest.$ac_ext <<_ACEOF
3400 /* end confdefs.h.  */
3401 #include <ac_nonexistent.h>
3402 _ACEOF
3403 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3404   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3405   ac_status=$?
3406   grep -v '^ *+' conftest.er1 >conftest.err
3407   rm -f conftest.er1
3408   cat conftest.err >&5
3409   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3410   (exit $ac_status); } >/dev/null; then
3411   if test -s conftest.err; then
3412     ac_cpp_err=$ac_c_preproc_warn_flag
3413   else
3414     ac_cpp_err=
3415   fi
3416 else
3417   ac_cpp_err=yes
3418 fi
3419 if test -z "$ac_cpp_err"; then
3420   # Broken: success on invalid input.
3421 continue
3422 else
3423   echo "$as_me: failed program was:" >&5
3424 sed 's/^/| /' conftest.$ac_ext >&5
3425
3426   # Passes both tests.
3427 ac_preproc_ok=:
3428 break
3429 fi
3430 rm -f conftest.err conftest.$ac_ext
3431
3432 done
3433 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3434 rm -f conftest.err conftest.$ac_ext
3435 if $ac_preproc_ok; then
3436   :
3437 else
3438   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3439 See \`config.log' for more details." >&5
3440 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3441 See \`config.log' for more details." >&2;}
3442    { (exit 1); exit 1; }; }
3443 fi
3444
3445 ac_ext=c
3446 ac_cpp='$CPP $CPPFLAGS'
3447 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3448 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3449 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3450
3451
3452 if test "$GCC" != "yes"
3453 then
3454         { { echo "$as_me:$LINENO: error: gcc required but not found" >&5
3455 echo "$as_me: error: gcc required but not found" >&2;}
3456    { (exit 1); exit 1; }; }
3457 fi
3458
3459 if test "$GXX" != "yes"
3460 then
3461         { { echo "$as_me:$LINENO: error: g++ required but not found" >&5
3462 echo "$as_me: error: g++ required but not found" >&2;}
3463    { (exit 1); exit 1; }; }
3464 fi
3465
3466 gccmajor=`$CC --version | head -n 1 | awk '{print $NF;}' | cut -d. -f1`
3467 if test "$gccmajor" -lt "3"
3468 then
3469         { { echo "$as_me:$LINENO: error: gcc 3.x required" >&5
3470 echo "$as_me: error: gcc 3.x required" >&2;}
3471    { (exit 1); exit 1; }; }
3472 fi
3473
3474  echo "$as_me:$LINENO: checking for GNU make" >&5
3475 echo $ECHO_N "checking for GNU make... $ECHO_C" >&6
3476 if test "${_cv_gnu_make_command+set}" = set; then
3477   echo $ECHO_N "(cached) $ECHO_C" >&6
3478 else
3479   _cv_gnu_make_command='' ;
3480                 for a in "$MAKE" make gmake gnumake ; do
3481                         if test -z "$a" ; then continue ; fi ;
3482                         if  ( sh -c "$a --version" 2> /dev/null | grep GNU  2>&1 > /dev/null ) ;  then
3483                                 _cv_gnu_make_command=$a ;
3484                                 break;
3485                         fi
3486                 done ;
3487
3488 fi
3489 echo "$as_me:$LINENO: result: $_cv_gnu_make_command" >&5
3490 echo "${ECHO_T}$_cv_gnu_make_command" >&6 ;
3491         if test  "x$_cv_gnu_make_command" != "x"  ; then
3492                 ifGNUmake='' ;
3493         else
3494                 ifGNUmake='#' ;
3495                 echo "$as_me:$LINENO: result: \"Not found\"" >&5
3496 echo "${ECHO_T}\"Not found\"" >&6;
3497         fi
3498
3499
3500 if test -z "$_cv_gnu_make_command"
3501 then
3502         { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5
3503 echo "$as_me: error: GNU Make required but not found" >&2;}
3504    { (exit 1); exit 1; }; }
3505 fi
3506
3507
3508 echo "$as_me:$LINENO: checking " >&5
3509 echo $ECHO_N "checking ... $ECHO_C" >&6
3510 if test "${ac_cv_has_flex+set}" = set; then
3511   echo $ECHO_N "(cached) $ECHO_C" >&6
3512 else
3513   for ac_prog in flex lex
3514 do
3515   # Extract the first word of "$ac_prog", so it can be a program name with args.
3516 set dummy $ac_prog; ac_word=$2
3517 echo "$as_me:$LINENO: checking for $ac_word" >&5
3518 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3519 if test "${ac_cv_prog_LEX+set}" = set; then
3520   echo $ECHO_N "(cached) $ECHO_C" >&6
3521 else
3522   if test -n "$LEX"; then
3523   ac_cv_prog_LEX="$LEX" # Let the user override the test.
3524 else
3525 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3526 for as_dir in $PATH
3527 do
3528   IFS=$as_save_IFS
3529   test -z "$as_dir" && as_dir=.
3530   for ac_exec_ext in '' $ac_executable_extensions; do
3531   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3532     ac_cv_prog_LEX="$ac_prog"
3533     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3534     break 2
3535   fi
3536 done
3537 done
3538
3539 fi
3540 fi
3541 LEX=$ac_cv_prog_LEX
3542 if test -n "$LEX"; then
3543   echo "$as_me:$LINENO: result: $LEX" >&5
3544 echo "${ECHO_T}$LEX" >&6
3545 else
3546   echo "$as_me:$LINENO: result: no" >&5
3547 echo "${ECHO_T}no" >&6
3548 fi
3549
3550   test -n "$LEX" && break
3551 done
3552 test -n "$LEX" || LEX=":"
3553
3554 if test -z "$LEXLIB"
3555 then
3556   echo "$as_me:$LINENO: checking for yywrap in -lfl" >&5
3557 echo $ECHO_N "checking for yywrap in -lfl... $ECHO_C" >&6
3558 if test "${ac_cv_lib_fl_yywrap+set}" = set; then
3559   echo $ECHO_N "(cached) $ECHO_C" >&6
3560 else
3561   ac_check_lib_save_LIBS=$LIBS
3562 LIBS="-lfl  $LIBS"
3563 cat >conftest.$ac_ext <<_ACEOF
3564 #line $LINENO "configure"
3565 /* confdefs.h.  */
3566 _ACEOF
3567 cat confdefs.h >>conftest.$ac_ext
3568 cat >>conftest.$ac_ext <<_ACEOF
3569 /* end confdefs.h.  */
3570
3571 /* Override any gcc2 internal prototype to avoid an error.  */
3572 #ifdef __cplusplus
3573 extern "C"
3574 #endif
3575 /* We use char because int might match the return type of a gcc2
3576    builtin and then its argument prototype would still apply.  */
3577 char yywrap ();
3578 int
3579 main ()
3580 {
3581 yywrap ();
3582   ;
3583   return 0;
3584 }
3585 _ACEOF
3586 rm -f conftest.$ac_objext conftest$ac_exeext
3587 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3588   (eval $ac_link) 2>&5
3589   ac_status=$?
3590   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3591   (exit $ac_status); } &&
3592          { ac_try='test -s conftest$ac_exeext'
3593   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3594   (eval $ac_try) 2>&5
3595   ac_status=$?
3596   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3597   (exit $ac_status); }; }; then
3598   ac_cv_lib_fl_yywrap=yes
3599 else
3600   echo "$as_me: failed program was:" >&5
3601 sed 's/^/| /' conftest.$ac_ext >&5
3602
3603 ac_cv_lib_fl_yywrap=no
3604 fi
3605 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3606 LIBS=$ac_check_lib_save_LIBS
3607 fi
3608 echo "$as_me:$LINENO: result: $ac_cv_lib_fl_yywrap" >&5
3609 echo "${ECHO_T}$ac_cv_lib_fl_yywrap" >&6
3610 if test $ac_cv_lib_fl_yywrap = yes; then
3611   LEXLIB="-lfl"
3612 else
3613   echo "$as_me:$LINENO: checking for yywrap in -ll" >&5
3614 echo $ECHO_N "checking for yywrap in -ll... $ECHO_C" >&6
3615 if test "${ac_cv_lib_l_yywrap+set}" = set; then
3616   echo $ECHO_N "(cached) $ECHO_C" >&6
3617 else
3618   ac_check_lib_save_LIBS=$LIBS
3619 LIBS="-ll  $LIBS"
3620 cat >conftest.$ac_ext <<_ACEOF
3621 #line $LINENO "configure"
3622 /* confdefs.h.  */
3623 _ACEOF
3624 cat confdefs.h >>conftest.$ac_ext
3625 cat >>conftest.$ac_ext <<_ACEOF
3626 /* end confdefs.h.  */
3627
3628 /* Override any gcc2 internal prototype to avoid an error.  */
3629 #ifdef __cplusplus
3630 extern "C"
3631 #endif
3632 /* We use char because int might match the return type of a gcc2
3633    builtin and then its argument prototype would still apply.  */
3634 char yywrap ();
3635 int
3636 main ()
3637 {
3638 yywrap ();
3639   ;
3640   return 0;
3641 }
3642 _ACEOF
3643 rm -f conftest.$ac_objext conftest$ac_exeext
3644 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3645   (eval $ac_link) 2>&5
3646   ac_status=$?
3647   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3648   (exit $ac_status); } &&
3649          { ac_try='test -s conftest$ac_exeext'
3650   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3651   (eval $ac_try) 2>&5
3652   ac_status=$?
3653   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3654   (exit $ac_status); }; }; then
3655   ac_cv_lib_l_yywrap=yes
3656 else
3657   echo "$as_me: failed program was:" >&5
3658 sed 's/^/| /' conftest.$ac_ext >&5
3659
3660 ac_cv_lib_l_yywrap=no
3661 fi
3662 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3663 LIBS=$ac_check_lib_save_LIBS
3664 fi
3665 echo "$as_me:$LINENO: result: $ac_cv_lib_l_yywrap" >&5
3666 echo "${ECHO_T}$ac_cv_lib_l_yywrap" >&6
3667 if test $ac_cv_lib_l_yywrap = yes; then
3668   LEXLIB="-ll"
3669 fi
3670
3671 fi
3672
3673 fi
3674
3675 if test "x$LEX" != "x:"; then
3676   echo "$as_me:$LINENO: checking lex output file root" >&5
3677 echo $ECHO_N "checking lex output file root... $ECHO_C" >&6
3678 if test "${ac_cv_prog_lex_root+set}" = set; then
3679   echo $ECHO_N "(cached) $ECHO_C" >&6
3680 else
3681   # The minimal lex program is just a single line: %%.  But some broken lexes
3682 # (Solaris, I think it was) want two %% lines, so accommodate them.
3683 cat >conftest.l <<_ACEOF
3684 %%
3685 %%
3686 _ACEOF
3687 { (eval echo "$as_me:$LINENO: \"$LEX conftest.l\"") >&5
3688   (eval $LEX conftest.l) 2>&5
3689   ac_status=$?
3690   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3691   (exit $ac_status); }
3692 if test -f lex.yy.c; then
3693   ac_cv_prog_lex_root=lex.yy
3694 elif test -f lexyy.c; then
3695   ac_cv_prog_lex_root=lexyy
3696 else
3697   { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5
3698 echo "$as_me: error: cannot find output from $LEX; giving up" >&2;}
3699    { (exit 1); exit 1; }; }
3700 fi
3701 fi
3702 echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5
3703 echo "${ECHO_T}$ac_cv_prog_lex_root" >&6
3704 rm -f conftest.l
3705 LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
3706
3707 echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5
3708 echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6
3709 if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then
3710   echo $ECHO_N "(cached) $ECHO_C" >&6
3711 else
3712   # POSIX says lex can declare yytext either as a pointer or an array; the
3713 # default is implementation-dependent. Figure out which it is, since
3714 # not all implementations provide the %pointer and %array declarations.
3715 ac_cv_prog_lex_yytext_pointer=no
3716 echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c
3717 ac_save_LIBS=$LIBS
3718 LIBS="$LIBS $LEXLIB"
3719 cat >conftest.$ac_ext <<_ACEOF
3720 `cat $LEX_OUTPUT_ROOT.c`
3721 _ACEOF
3722 rm -f conftest.$ac_objext conftest$ac_exeext
3723 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3724   (eval $ac_link) 2>&5
3725   ac_status=$?
3726   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3727   (exit $ac_status); } &&
3728          { ac_try='test -s conftest$ac_exeext'
3729   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3730   (eval $ac_try) 2>&5
3731   ac_status=$?
3732   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3733   (exit $ac_status); }; }; then
3734   ac_cv_prog_lex_yytext_pointer=yes
3735 else
3736   echo "$as_me: failed program was:" >&5
3737 sed 's/^/| /' conftest.$ac_ext >&5
3738
3739 fi
3740 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3741 LIBS=$ac_save_LIBS
3742 rm -f "${LEX_OUTPUT_ROOT}.c"
3743
3744 fi
3745 echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5
3746 echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6
3747 if test $ac_cv_prog_lex_yytext_pointer = yes; then
3748
3749 cat >>confdefs.h <<\_ACEOF
3750 #define YYTEXT_POINTER 1
3751 _ACEOF
3752
3753 fi
3754
3755 fi
3756
3757 fi
3758 echo "$as_me:$LINENO: result: $ac_cv_has_flex" >&5
3759 echo "${ECHO_T}$ac_cv_has_flex" >&6
3760 if test "$LEX" != "flex"; then
3761   { { echo "$as_me:$LINENO: error: flex not found but required" >&5
3762 echo "$as_me: error: flex not found but required" >&2;}
3763    { (exit 1); exit 1; }; }
3764 fi
3765
3766 echo "$as_me:$LINENO: checking " >&5
3767 echo $ECHO_N "checking ... $ECHO_C" >&6
3768 if test "${ac_cv_has_bison+set}" = set; then
3769   echo $ECHO_N "(cached) $ECHO_C" >&6
3770 else
3771   for ac_prog in 'bison -y' byacc
3772 do
3773   # Extract the first word of "$ac_prog", so it can be a program name with args.
3774 set dummy $ac_prog; ac_word=$2
3775 echo "$as_me:$LINENO: checking for $ac_word" >&5
3776 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3777 if test "${ac_cv_prog_YACC+set}" = set; then
3778   echo $ECHO_N "(cached) $ECHO_C" >&6
3779 else
3780   if test -n "$YACC"; then
3781   ac_cv_prog_YACC="$YACC" # Let the user override the test.
3782 else
3783 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3784 for as_dir in $PATH
3785 do
3786   IFS=$as_save_IFS
3787   test -z "$as_dir" && as_dir=.
3788   for ac_exec_ext in '' $ac_executable_extensions; do
3789   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3790     ac_cv_prog_YACC="$ac_prog"
3791     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3792     break 2
3793   fi
3794 done
3795 done
3796
3797 fi
3798 fi
3799 YACC=$ac_cv_prog_YACC
3800 if test -n "$YACC"; then
3801   echo "$as_me:$LINENO: result: $YACC" >&5
3802 echo "${ECHO_T}$YACC" >&6
3803 else
3804   echo "$as_me:$LINENO: result: no" >&5
3805 echo "${ECHO_T}no" >&6
3806 fi
3807
3808   test -n "$YACC" && break
3809 done
3810 test -n "$YACC" || YACC="yacc"
3811
3812
3813 fi
3814 echo "$as_me:$LINENO: result: $ac_cv_has_bison" >&5
3815 echo "${ECHO_T}$ac_cv_has_bison" >&6
3816 if test "$YACC" != "bison -y"; then
3817   { { echo "$as_me:$LINENO: error: bison not found but required" >&5
3818 echo "$as_me: error: bison not found but required" >&2;}
3819    { (exit 1); exit 1; }; }
3820 else
3821   YACC=bison
3822
3823 fi
3824
3825
3826 # Check whether --enable-shared or --disable-shared was given.
3827 if test "${enable_shared+set}" = set; then
3828   enableval="$enable_shared"
3829   p=${PACKAGE-default}
3830     case $enableval in
3831     yes) enable_shared=yes ;;
3832     no) enable_shared=no ;;
3833     *)
3834       enable_shared=no
3835       # Look at the argument we got.  We use all the common list separators.
3836       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3837       for pkg in $enableval; do
3838         IFS="$lt_save_ifs"
3839         if test "X$pkg" = "X$p"; then
3840           enable_shared=yes
3841         fi
3842       done
3843       IFS="$lt_save_ifs"
3844       ;;
3845     esac
3846 else
3847   enable_shared=yes
3848 fi;
3849
3850 # Check whether --enable-static or --disable-static was given.
3851 if test "${enable_static+set}" = set; then
3852   enableval="$enable_static"
3853   p=${PACKAGE-default}
3854     case $enableval in
3855     yes) enable_static=yes ;;
3856     no) enable_static=no ;;
3857     *)
3858      enable_static=no
3859       # Look at the argument we got.  We use all the common list separators.
3860       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3861       for pkg in $enableval; do
3862         IFS="$lt_save_ifs"
3863         if test "X$pkg" = "X$p"; then
3864           enable_static=yes
3865         fi
3866       done
3867       IFS="$lt_save_ifs"
3868       ;;
3869     esac
3870 else
3871   enable_static=yes
3872 fi;
3873
3874 # Check whether --enable-fast-install or --disable-fast-install was given.
3875 if test "${enable_fast_install+set}" = set; then
3876   enableval="$enable_fast_install"
3877   p=${PACKAGE-default}
3878     case $enableval in
3879     yes) enable_fast_install=yes ;;
3880     no) enable_fast_install=no ;;
3881     *)
3882       enable_fast_install=no
3883       # Look at the argument we got.  We use all the common list separators.
3884       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3885       for pkg in $enableval; do
3886         IFS="$lt_save_ifs"
3887         if test "X$pkg" = "X$p"; then
3888           enable_fast_install=yes
3889         fi
3890       done
3891       IFS="$lt_save_ifs"
3892       ;;
3893     esac
3894 else
3895   enable_fast_install=yes
3896 fi;
3897
3898 echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3899 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
3900 if test "${lt_cv_path_SED+set}" = set; then
3901   echo $ECHO_N "(cached) $ECHO_C" >&6
3902 else
3903   # Loop through the user's path and test for sed and gsed.
3904 # Then use that list of sed's as ones to test for truncation.
3905 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3906 for as_dir in $PATH
3907 do
3908   IFS=$as_save_IFS
3909   test -z "$as_dir" && as_dir=.
3910   for lt_ac_prog in sed gsed; do
3911     for ac_exec_ext in '' $ac_executable_extensions; do
3912       if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
3913         lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
3914       fi
3915     done
3916   done
3917 done
3918 lt_ac_max=0
3919 lt_ac_count=0
3920 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
3921 # along with /bin/sed that truncates output.
3922 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
3923   test ! -f $lt_ac_sed && break
3924   cat /dev/null > conftest.in
3925   lt_ac_count=0
3926   echo $ECHO_N "0123456789$ECHO_C" >conftest.in
3927   # Check for GNU sed and select it if it is found.
3928   if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
3929     lt_cv_path_SED=$lt_ac_sed
3930     break
3931   fi
3932   while true; do
3933     cat conftest.in conftest.in >conftest.tmp
3934     mv conftest.tmp conftest.in
3935     cp conftest.in conftest.nl
3936     echo >>conftest.nl
3937     $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
3938     cmp -s conftest.out conftest.nl || break
3939     # 10000 chars as input seems more than enough
3940     test $lt_ac_count -gt 10 && break
3941     lt_ac_count=`expr $lt_ac_count + 1`
3942     if test $lt_ac_count -gt $lt_ac_max; then
3943       lt_ac_max=$lt_ac_count
3944       lt_cv_path_SED=$lt_ac_sed
3945     fi
3946   done
3947 done
3948 SED=$lt_cv_path_SED
3949
3950 fi
3951
3952 echo "$as_me:$LINENO: result: $SED" >&5
3953 echo "${ECHO_T}$SED" >&6
3954
3955 echo "$as_me:$LINENO: checking for egrep" >&5
3956 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3957 if test "${ac_cv_prog_egrep+set}" = set; then
3958   echo $ECHO_N "(cached) $ECHO_C" >&6
3959 else
3960   if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3961     then ac_cv_prog_egrep='grep -E'
3962     else ac_cv_prog_egrep='egrep'
3963     fi
3964 fi
3965 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3966 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3967  EGREP=$ac_cv_prog_egrep
3968
3969
3970
3971 # Check whether --with-gnu-ld or --without-gnu-ld was given.
3972 if test "${with_gnu_ld+set}" = set; then
3973   withval="$with_gnu_ld"
3974   test "$withval" = no || with_gnu_ld=yes
3975 else
3976   with_gnu_ld=no
3977 fi;
3978 ac_prog=ld
3979 if test "$GCC" = yes; then
3980   # Check if gcc -print-prog-name=ld gives a path.
3981   echo "$as_me:$LINENO: checking for ld used by $CC" >&5
3982 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
3983   case $host in
3984   *-*-mingw*)
3985     # gcc leaves a trailing carriage return which upsets mingw
3986     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3987   *)
3988     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3989   esac
3990   case $ac_prog in
3991     # Accept absolute paths.
3992     [\\/]* | ?:[\\/]*)
3993       re_direlt='/[^/][^/]*/\.\./'
3994       # Canonicalize the path of ld
3995       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
3996       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
3997         ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
3998       done
3999       test -z "$LD" && LD="$ac_prog"
4000       ;;
4001   "")
4002     # If it fails, then pretend we aren't using GCC.
4003     ac_prog=ld
4004     ;;
4005   *)
4006     # If it is relative, then search for the first ld in PATH.
4007     with_gnu_ld=unknown
4008     ;;
4009   esac
4010 elif test "$with_gnu_ld" = yes; then
4011   echo "$as_me:$LINENO: checking for GNU ld" >&5
4012 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
4013 else
4014   echo "$as_me:$LINENO: checking for non-GNU ld" >&5
4015 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
4016 fi
4017 if test "${lt_cv_path_LD+set}" = set; then
4018   echo $ECHO_N "(cached) $ECHO_C" >&6
4019 else
4020   if test -z "$LD"; then
4021   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4022   for ac_dir in $PATH; do
4023     IFS="$lt_save_ifs"
4024     test -z "$ac_dir" && ac_dir=.
4025     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4026       lt_cv_path_LD="$ac_dir/$ac_prog"
4027       # Check to see if the program is GNU ld.  I'd rather use --version,
4028       # but apparently some GNU ld's only accept -v.
4029       # Break only if it was the GNU/non-GNU ld that we prefer.
4030       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4031       *GNU* | *'with BFD'*)
4032         test "$with_gnu_ld" != no && break
4033         ;;
4034       *)
4035         test "$with_gnu_ld" != yes && break
4036         ;;
4037       esac
4038     fi
4039   done
4040   IFS="$lt_save_ifs"
4041 else
4042   lt_cv_path_LD="$LD" # Let the user override the test with a path.
4043 fi
4044 fi
4045
4046 LD="$lt_cv_path_LD"
4047 if test -n "$LD"; then
4048   echo "$as_me:$LINENO: result: $LD" >&5
4049 echo "${ECHO_T}$LD" >&6
4050 else
4051   echo "$as_me:$LINENO: result: no" >&5
4052 echo "${ECHO_T}no" >&6
4053 fi
4054 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
4055 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
4056    { (exit 1); exit 1; }; }
4057 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4058 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
4059 if test "${lt_cv_prog_gnu_ld+set}" = set; then
4060   echo $ECHO_N "(cached) $ECHO_C" >&6
4061 else
4062   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
4063 case `"$LD" -v 2>&1 </dev/null` in
4064 *GNU* | *'with BFD'*)
4065   lt_cv_prog_gnu_ld=yes
4066   ;;
4067 *)
4068   lt_cv_prog_gnu_ld=no
4069   ;;
4070 esac
4071 fi
4072 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
4073 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
4074 with_gnu_ld=$lt_cv_prog_gnu_ld
4075
4076
4077 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
4078 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
4079 if test "${lt_cv_ld_reload_flag+set}" = set; then
4080   echo $ECHO_N "(cached) $ECHO_C" >&6
4081 else
4082   lt_cv_ld_reload_flag='-r'
4083 fi
4084 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
4085 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
4086 reload_flag=$lt_cv_ld_reload_flag
4087 case $reload_flag in
4088 "" | " "*) ;;
4089 *) reload_flag=" $reload_flag" ;;
4090 esac
4091 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4092
4093 echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
4094 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
4095 if test "${lt_cv_path_NM+set}" = set; then
4096   echo $ECHO_N "(cached) $ECHO_C" >&6
4097 else
4098   if test -n "$NM"; then
4099   # Let the user override the test.
4100   lt_cv_path_NM="$NM"
4101 else
4102   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4103   for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
4104     IFS="$lt_save_ifs"
4105     test -z "$ac_dir" && ac_dir=.
4106     tmp_nm="$ac_dir/${ac_tool_prefix}nm"
4107     if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4108       # Check to see if the nm accepts a BSD-compat flag.
4109       # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4110       #   nm: unknown option "B" ignored
4111       # Tru64's nm complains that /dev/null is an invalid object file
4112       case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4113       */dev/null* | *'Invalid file or object type'*)
4114         lt_cv_path_NM="$tmp_nm -B"
4115         break
4116         ;;
4117       *)
4118         case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4119         */dev/null*)
4120           lt_cv_path_NM="$tmp_nm -p"
4121           break
4122           ;;
4123         *)
4124           lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4125           continue # so that we can try to find one that supports BSD flags
4126           ;;
4127         esac
4128       esac
4129     fi
4130   done
4131   IFS="$lt_save_ifs"
4132   test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
4133 fi
4134 fi
4135 echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
4136 echo "${ECHO_T}$lt_cv_path_NM" >&6
4137 NM="$lt_cv_path_NM"
4138
4139 echo "$as_me:$LINENO: checking whether ln -s works" >&5
4140 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
4141 LN_S=$as_ln_s
4142 if test "$LN_S" = "ln -s"; then
4143   echo "$as_me:$LINENO: result: yes" >&5
4144 echo "${ECHO_T}yes" >&6
4145 else
4146   echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4147 echo "${ECHO_T}no, using $LN_S" >&6
4148 fi
4149
4150 echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
4151 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
4152 if test "${lt_cv_deplibs_check_method+set}" = set; then
4153   echo $ECHO_N "(cached) $ECHO_C" >&6
4154 else
4155   lt_cv_file_magic_cmd='$MAGIC_CMD'
4156 lt_cv_file_magic_test_file=
4157 lt_cv_deplibs_check_method='unknown'
4158 # Need to set the preceding variable on all platforms that support
4159 # interlibrary dependencies.
4160 # 'none' -- dependencies not supported.
4161 # `unknown' -- same as none, but documents that we really don't know.
4162 # 'pass_all' -- all dependencies passed with no checks.
4163 # 'test_compile' -- check by making test program.
4164 # 'file_magic [[regex]]' -- check by looking for files in library path
4165 # which responds to the $file_magic_cmd with a given extended regex.
4166 # If you have `file' or equivalent on your system and you're not sure
4167 # whether `pass_all' will *always* work, you probably want this one.
4168
4169 case $host_os in
4170 aix4* | aix5*)
4171   lt_cv_deplibs_check_method=pass_all
4172   ;;
4173
4174 beos*)
4175   lt_cv_deplibs_check_method=pass_all
4176   ;;
4177
4178 bsdi4*)
4179   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4180   lt_cv_file_magic_cmd='/usr/bin/file -L'
4181   lt_cv_file_magic_test_file=/shlib/libc.so
4182   ;;
4183
4184 cygwin* | mingw* | pw32*)
4185   # win32_libid is a shell function defined in ltmain.sh
4186   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4187   lt_cv_file_magic_cmd='win32_libid'
4188   ;;
4189
4190 darwin* | rhapsody*)
4191   # this will be overwritten by pass_all, but leave it in just in case
4192   lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
4193   lt_cv_file_magic_cmd='/usr/bin/file -L'
4194   case "$host_os" in
4195   rhapsody* | darwin1.[012])
4196     lt_cv_file_magic_test_file=`/System/Library/Frameworks/System.framework/System`
4197     ;;
4198   *) # Darwin 1.3 on
4199     lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
4200     ;;
4201   esac
4202   lt_cv_deplibs_check_method=pass_all
4203   ;;
4204
4205 freebsd*)
4206   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4207     case $host_cpu in
4208     i*86 )
4209       # Not sure whether the presence of OpenBSD here was a mistake.
4210       # Let's accept both of them until this is cleared up.
4211       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
4212       lt_cv_file_magic_cmd=/usr/bin/file
4213       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4214       ;;
4215     esac
4216   else
4217     lt_cv_deplibs_check_method=pass_all
4218   fi
4219   ;;
4220
4221 gnu*)
4222   lt_cv_deplibs_check_method=pass_all
4223   ;;
4224
4225 hpux10.20* | hpux11*)
4226   lt_cv_file_magic_cmd=/usr/bin/file
4227   case "$host_cpu" in
4228   ia64*)
4229     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4230     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4231     ;;
4232   hppa*64*)
4233     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]'
4234     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4235     ;;
4236   *)
4237     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4238     lt_cv_file_magic_test_file=/usr/lib/libc.sl
4239     ;;
4240   esac
4241   ;;
4242
4243 irix5* | irix6* | nonstopux*)
4244   case $host_os in
4245   irix5* | nonstopux*)
4246     # this will be overridden with pass_all, but let us keep it just in case
4247     lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
4248     ;;
4249   *)
4250     case $LD in
4251     *-32|*"-32 ") libmagic=32-bit;;
4252     *-n32|*"-n32 ") libmagic=N32;;
4253     *-64|*"-64 ") libmagic=64-bit;;
4254     *) libmagic=never-match;;
4255     esac
4256     # this will be overridden with pass_all, but let us keep it just in case
4257     lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
4258     ;;
4259   esac
4260   lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
4261   lt_cv_deplibs_check_method=pass_all
4262   ;;
4263
4264 # This must be Linux ELF.
4265 linux*)
4266   case $host_cpu in
4267   alpha* | hppa* | i*86 | ia64* | m68* | mips | mipsel | powerpc* | sparc* | s390* | sh*)
4268     lt_cv_deplibs_check_method=pass_all ;;
4269   *)
4270     # glibc up to 2.1.1 does not perform some relocations on ARM
4271     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
4272   esac
4273   lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
4274   ;;
4275
4276 netbsd*)
4277   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4278     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4279   else
4280     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
4281   fi
4282   ;;
4283
4284 newos6*)
4285   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4286   lt_cv_file_magic_cmd=/usr/bin/file
4287   lt_cv_file_magic_test_file=/usr/lib/libnls.so
4288   ;;
4289
4290 nto-qnx)
4291   lt_cv_deplibs_check_method=unknown
4292   ;;
4293
4294 openbsd*)
4295   lt_cv_file_magic_cmd=/usr/bin/file
4296   lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4297   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4298     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB shared object'
4299   else
4300     lt_cv_deplibs_check_method='file_magic OpenBSD.* shared library'
4301   fi
4302   ;;
4303
4304 osf3* | osf4* | osf5*)
4305   # this will be overridden with pass_all, but let us keep it just in case
4306   lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
4307   lt_cv_file_magic_test_file=/shlib/libc.so
4308   lt_cv_deplibs_check_method=pass_all
4309   ;;
4310
4311 sco3.2v5*)
4312   lt_cv_deplibs_check_method=pass_all
4313   ;;
4314
4315 solaris*)
4316   lt_cv_deplibs_check_method=pass_all
4317   lt_cv_file_magic_test_file=/lib/libc.so
4318   ;;
4319
4320 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
4321   case $host_vendor in
4322   motorola)
4323     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]'
4324     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4325     ;;
4326   ncr)
4327     lt_cv_deplibs_check_method=pass_all
4328     ;;
4329   sequent)
4330     lt_cv_file_magic_cmd='/bin/file'
4331     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4332     ;;
4333   sni)
4334     lt_cv_file_magic_cmd='/bin/file'
4335     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4336     lt_cv_file_magic_test_file=/lib/libc.so
4337     ;;
4338   siemens)
4339     lt_cv_deplibs_check_method=pass_all
4340     ;;
4341   esac
4342   ;;
4343
4344 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*)
4345   lt_cv_deplibs_check_method=pass_all
4346   ;;
4347 esac
4348
4349 fi
4350 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
4351 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
4352 file_magic_cmd=$lt_cv_file_magic_cmd
4353 deplibs_check_method=$lt_cv_deplibs_check_method
4354 test -z "$deplibs_check_method" && deplibs_check_method=unknown
4355
4356
4357
4358
4359 # If no C compiler was specified, use CC.
4360 LTCC=${LTCC-"$CC"}
4361
4362 # Allow CC to be a program name with arguments.
4363 compiler=$CC
4364
4365 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
4366 if test "${enable_libtool_lock+set}" = set; then
4367   enableval="$enable_libtool_lock"
4368
4369 fi;
4370 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
4371
4372 # Some flags need to be propagated to the compiler or linker for good
4373 # libtool support.
4374 case $host in
4375 ia64-*-hpux*)
4376   # Find out which ABI we are using.
4377   echo 'int i;' > conftest.$ac_ext
4378   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4379   (eval $ac_compile) 2>&5
4380   ac_status=$?
4381   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4382   (exit $ac_status); }; then
4383     case `/usr/bin/file conftest.$ac_objext` in
4384     *ELF-32*)
4385       HPUX_IA64_MODE="32"
4386       ;;
4387     *ELF-64*)
4388       HPUX_IA64_MODE="64"
4389       ;;
4390     esac
4391   fi
4392   rm -rf conftest*
4393   ;;
4394 *-*-irix6*)
4395   # Find out which ABI we are using.
4396   echo '#line 4396 "configure"' > conftest.$ac_ext
4397   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4398   (eval $ac_compile) 2>&5
4399   ac_status=$?
4400   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4401   (exit $ac_status); }; then
4402    if test "$lt_cv_prog_gnu_ld" = yes; then
4403     case `/usr/bin/file conftest.$ac_objext` in
4404     *32-bit*)
4405       LD="${LD-ld} -melf32bsmip"
4406       ;;
4407     *N32*)
4408       LD="${LD-ld} -melf32bmipn32"
4409       ;;
4410     *64-bit*)
4411       LD="${LD-ld} -melf64bmip"
4412       ;;
4413     esac
4414    else
4415     case `/usr/bin/file conftest.$ac_objext` in
4416     *32-bit*)
4417       LD="${LD-ld} -32"
4418       ;;
4419     *N32*)
4420       LD="${LD-ld} -n32"
4421       ;;
4422     *64-bit*)
4423       LD="${LD-ld} -64"
4424       ;;
4425     esac
4426    fi
4427   fi
4428   rm -rf conftest*
4429   ;;
4430
4431 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
4432   # Find out which ABI we are using.
4433   echo 'int i;' > conftest.$ac_ext
4434   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4435   (eval $ac_compile) 2>&5
4436   ac_status=$?
4437   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4438   (exit $ac_status); }; then
4439     case "`/usr/bin/file conftest.o`" in
4440     *32-bit*)
4441       case $host in
4442         x86_64-*linux*)
4443           LD="${LD-ld} -m elf_i386"
4444           ;;
4445         ppc64-*linux*)
4446           LD="${LD-ld} -m elf32ppclinux"
4447           ;;
4448         s390x-*linux*)
4449           LD="${LD-ld} -m elf_s390"
4450           ;;
4451         sparc64-*linux*)
4452           LD="${LD-ld} -m elf32_sparc"
4453           ;;
4454       esac
4455       ;;
4456     *64-bit*)
4457       case $host in
4458         x86_64-*linux*)
4459           LD="${LD-ld} -m elf_x86_64"
4460           ;;
4461         ppc*-*linux*|powerpc*-*linux*)
4462           LD="${LD-ld} -m elf64ppc"
4463           ;;
4464         s390*-*linux*)
4465           LD="${LD-ld} -m elf64_s390"
4466           ;;
4467         sparc*-*linux*)
4468           LD="${LD-ld} -m elf64_sparc"
4469           ;;
4470       esac
4471       ;;
4472     esac
4473   fi
4474   rm -rf conftest*
4475   ;;
4476
4477 *-*-sco3.2v5*)
4478   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4479   SAVE_CFLAGS="$CFLAGS"
4480   CFLAGS="$CFLAGS -belf"
4481   echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
4482 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
4483 if test "${lt_cv_cc_needs_belf+set}" = set; then
4484   echo $ECHO_N "(cached) $ECHO_C" >&6
4485 else
4486   ac_ext=c
4487 ac_cpp='$CPP $CPPFLAGS'
4488 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4489 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4490 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4491
4492      cat >conftest.$ac_ext <<_ACEOF
4493 #line $LINENO "configure"
4494 /* confdefs.h.  */
4495 _ACEOF
4496 cat confdefs.h >>conftest.$ac_ext
4497 cat >>conftest.$ac_ext <<_ACEOF
4498 /* end confdefs.h.  */
4499
4500 int
4501 main ()
4502 {
4503
4504   ;
4505   return 0;
4506 }
4507 _ACEOF
4508 rm -f conftest.$ac_objext conftest$ac_exeext
4509 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4510   (eval $ac_link) 2>&5
4511   ac_status=$?
4512   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4513   (exit $ac_status); } &&
4514          { ac_try='test -s conftest$ac_exeext'
4515   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4516   (eval $ac_try) 2>&5
4517   ac_status=$?
4518   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4519   (exit $ac_status); }; }; then
4520   lt_cv_cc_needs_belf=yes
4521 else
4522   echo "$as_me: failed program was:" >&5
4523 sed 's/^/| /' conftest.$ac_ext >&5
4524
4525 lt_cv_cc_needs_belf=no
4526 fi
4527 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4528      ac_ext=c
4529 ac_cpp='$CPP $CPPFLAGS'
4530 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4531 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4532 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4533
4534 fi
4535 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
4536 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
4537   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4538     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4539     CFLAGS="$SAVE_CFLAGS"
4540   fi
4541   ;;
4542
4543 esac
4544
4545 need_locks="$enable_libtool_lock"
4546
4547
4548
4549 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4550 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4551 if test "${ac_cv_header_stdc+set}" = set; then
4552   echo $ECHO_N "(cached) $ECHO_C" >&6
4553 else
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 <stdlib.h>
4562 #include <stdarg.h>
4563 #include <string.h>
4564 #include <float.h>
4565
4566 int
4567 main ()
4568 {
4569
4570   ;
4571   return 0;
4572 }
4573 _ACEOF
4574 rm -f conftest.$ac_objext
4575 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4576   (eval $ac_compile) 2>&5
4577   ac_status=$?
4578   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4579   (exit $ac_status); } &&
4580          { ac_try='test -s conftest.$ac_objext'
4581   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4582   (eval $ac_try) 2>&5
4583   ac_status=$?
4584   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4585   (exit $ac_status); }; }; then
4586   ac_cv_header_stdc=yes
4587 else
4588   echo "$as_me: failed program was:" >&5
4589 sed 's/^/| /' conftest.$ac_ext >&5
4590
4591 ac_cv_header_stdc=no
4592 fi
4593 rm -f conftest.$ac_objext conftest.$ac_ext
4594
4595 if test $ac_cv_header_stdc = yes; then
4596   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4597   cat >conftest.$ac_ext <<_ACEOF
4598 #line $LINENO "configure"
4599 /* confdefs.h.  */
4600 _ACEOF
4601 cat confdefs.h >>conftest.$ac_ext
4602 cat >>conftest.$ac_ext <<_ACEOF
4603 /* end confdefs.h.  */
4604 #include <string.h>
4605
4606 _ACEOF
4607 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4608   $EGREP "memchr" >/dev/null 2>&1; then
4609   :
4610 else
4611   ac_cv_header_stdc=no
4612 fi
4613 rm -f conftest*
4614
4615 fi
4616
4617 if test $ac_cv_header_stdc = yes; then
4618   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4619   cat >conftest.$ac_ext <<_ACEOF
4620 #line $LINENO "configure"
4621 /* confdefs.h.  */
4622 _ACEOF
4623 cat confdefs.h >>conftest.$ac_ext
4624 cat >>conftest.$ac_ext <<_ACEOF
4625 /* end confdefs.h.  */
4626 #include <stdlib.h>
4627
4628 _ACEOF
4629 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4630   $EGREP "free" >/dev/null 2>&1; then
4631   :
4632 else
4633   ac_cv_header_stdc=no
4634 fi
4635 rm -f conftest*
4636
4637 fi
4638
4639 if test $ac_cv_header_stdc = yes; then
4640   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4641   if test "$cross_compiling" = yes; then
4642   :
4643 else
4644   cat >conftest.$ac_ext <<_ACEOF
4645 #line $LINENO "configure"
4646 /* confdefs.h.  */
4647 _ACEOF
4648 cat confdefs.h >>conftest.$ac_ext
4649 cat >>conftest.$ac_ext <<_ACEOF
4650 /* end confdefs.h.  */
4651 #include <ctype.h>
4652 #if ((' ' & 0x0FF) == 0x020)
4653 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4654 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4655 #else
4656 # define ISLOWER(c) \
4657                    (('a' <= (c) && (c) <= 'i') \
4658                      || ('j' <= (c) && (c) <= 'r') \
4659                      || ('s' <= (c) && (c) <= 'z'))
4660 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4661 #endif
4662
4663 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4664 int
4665 main ()
4666 {
4667   int i;
4668   for (i = 0; i < 256; i++)
4669     if (XOR (islower (i), ISLOWER (i))
4670         || toupper (i) != TOUPPER (i))
4671       exit(2);
4672   exit (0);
4673 }
4674 _ACEOF
4675 rm -f conftest$ac_exeext
4676 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4677   (eval $ac_link) 2>&5
4678   ac_status=$?
4679   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4680   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4681   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4682   (eval $ac_try) 2>&5
4683   ac_status=$?
4684   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4685   (exit $ac_status); }; }; then
4686   :
4687 else
4688   echo "$as_me: program exited with status $ac_status" >&5
4689 echo "$as_me: failed program was:" >&5
4690 sed 's/^/| /' conftest.$ac_ext >&5
4691
4692 ( exit $ac_status )
4693 ac_cv_header_stdc=no
4694 fi
4695 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4696 fi
4697 fi
4698 fi
4699 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4700 echo "${ECHO_T}$ac_cv_header_stdc" >&6
4701 if test $ac_cv_header_stdc = yes; then
4702
4703 cat >>confdefs.h <<\_ACEOF
4704 #define STDC_HEADERS 1
4705 _ACEOF
4706
4707 fi
4708
4709 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4710
4711
4712
4713
4714
4715
4716
4717
4718
4719 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4720                   inttypes.h stdint.h unistd.h
4721 do
4722 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4723 echo "$as_me:$LINENO: checking for $ac_header" >&5
4724 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4725 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4726   echo $ECHO_N "(cached) $ECHO_C" >&6
4727 else
4728   cat >conftest.$ac_ext <<_ACEOF
4729 #line $LINENO "configure"
4730 /* confdefs.h.  */
4731 _ACEOF
4732 cat confdefs.h >>conftest.$ac_ext
4733 cat >>conftest.$ac_ext <<_ACEOF
4734 /* end confdefs.h.  */
4735 $ac_includes_default
4736
4737 #include <$ac_header>
4738 _ACEOF
4739 rm -f conftest.$ac_objext
4740 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4741   (eval $ac_compile) 2>&5
4742   ac_status=$?
4743   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4744   (exit $ac_status); } &&
4745          { ac_try='test -s conftest.$ac_objext'
4746   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4747   (eval $ac_try) 2>&5
4748   ac_status=$?
4749   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4750   (exit $ac_status); }; }; then
4751   eval "$as_ac_Header=yes"
4752 else
4753   echo "$as_me: failed program was:" >&5
4754 sed 's/^/| /' conftest.$ac_ext >&5
4755
4756 eval "$as_ac_Header=no"
4757 fi
4758 rm -f conftest.$ac_objext conftest.$ac_ext
4759 fi
4760 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4761 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4762 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4763   cat >>confdefs.h <<_ACEOF
4764 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4765 _ACEOF
4766
4767 fi
4768
4769 done
4770
4771
4772
4773 for ac_header in dlfcn.h
4774 do
4775 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4776 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4777   echo "$as_me:$LINENO: checking for $ac_header" >&5
4778 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4779 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4780   echo $ECHO_N "(cached) $ECHO_C" >&6
4781 fi
4782 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4783 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4784 else
4785   # Is the header compilable?
4786 echo "$as_me:$LINENO: checking $ac_header usability" >&5
4787 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4788 cat >conftest.$ac_ext <<_ACEOF
4789 #line $LINENO "configure"
4790 /* confdefs.h.  */
4791 _ACEOF
4792 cat confdefs.h >>conftest.$ac_ext
4793 cat >>conftest.$ac_ext <<_ACEOF
4794 /* end confdefs.h.  */
4795 $ac_includes_default
4796 #include <$ac_header>
4797 _ACEOF
4798 rm -f conftest.$ac_objext
4799 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4800   (eval $ac_compile) 2>&5
4801   ac_status=$?
4802   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4803   (exit $ac_status); } &&
4804          { ac_try='test -s conftest.$ac_objext'
4805   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4806   (eval $ac_try) 2>&5
4807   ac_status=$?
4808   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4809   (exit $ac_status); }; }; then
4810   ac_header_compiler=yes
4811 else
4812   echo "$as_me: failed program was:" >&5
4813 sed 's/^/| /' conftest.$ac_ext >&5
4814
4815 ac_header_compiler=no
4816 fi
4817 rm -f conftest.$ac_objext conftest.$ac_ext
4818 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4819 echo "${ECHO_T}$ac_header_compiler" >&6
4820
4821 # Is the header present?
4822 echo "$as_me:$LINENO: checking $ac_header presence" >&5
4823 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4824 cat >conftest.$ac_ext <<_ACEOF
4825 #line $LINENO "configure"
4826 /* confdefs.h.  */
4827 _ACEOF
4828 cat confdefs.h >>conftest.$ac_ext
4829 cat >>conftest.$ac_ext <<_ACEOF
4830 /* end confdefs.h.  */
4831 #include <$ac_header>
4832 _ACEOF
4833 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4834   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4835   ac_status=$?
4836   grep -v '^ *+' conftest.er1 >conftest.err
4837   rm -f conftest.er1
4838   cat conftest.err >&5
4839   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4840   (exit $ac_status); } >/dev/null; then
4841   if test -s conftest.err; then
4842     ac_cpp_err=$ac_c_preproc_warn_flag
4843   else
4844     ac_cpp_err=
4845   fi
4846 else
4847   ac_cpp_err=yes
4848 fi
4849 if test -z "$ac_cpp_err"; then
4850   ac_header_preproc=yes
4851 else
4852   echo "$as_me: failed program was:" >&5
4853 sed 's/^/| /' conftest.$ac_ext >&5
4854
4855   ac_header_preproc=no
4856 fi
4857 rm -f conftest.err conftest.$ac_ext
4858 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4859 echo "${ECHO_T}$ac_header_preproc" >&6
4860
4861 # So?  What about this header?
4862 case $ac_header_compiler:$ac_header_preproc in
4863   yes:no )
4864     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4865 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4866     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4867 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4868     (
4869       cat <<\_ASBOX
4870 ## ------------------------------------ ##
4871 ## Report this to bug-autoconf@gnu.org. ##
4872 ## ------------------------------------ ##
4873 _ASBOX
4874     ) |
4875       sed "s/^/$as_me: WARNING:     /" >&2
4876     ;;
4877   no:yes )
4878     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4879 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4880     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4881 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4882     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4883 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4884     (
4885       cat <<\_ASBOX
4886 ## ------------------------------------ ##
4887 ## Report this to bug-autoconf@gnu.org. ##
4888 ## ------------------------------------ ##
4889 _ASBOX
4890     ) |
4891       sed "s/^/$as_me: WARNING:     /" >&2
4892     ;;
4893 esac
4894 echo "$as_me:$LINENO: checking for $ac_header" >&5
4895 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4896 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4897   echo $ECHO_N "(cached) $ECHO_C" >&6
4898 else
4899   eval "$as_ac_Header=$ac_header_preproc"
4900 fi
4901 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4902 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4903
4904 fi
4905 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4906   cat >>confdefs.h <<_ACEOF
4907 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4908 _ACEOF
4909
4910 fi
4911
4912 done
4913
4914 ac_ext=cc
4915 ac_cpp='$CXXCPP $CPPFLAGS'
4916 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4917 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4918 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4919 echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
4920 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
4921 if test -z "$CXXCPP"; then
4922   if test "${ac_cv_prog_CXXCPP+set}" = set; then
4923   echo $ECHO_N "(cached) $ECHO_C" >&6
4924 else
4925       # Double quotes because CXXCPP needs to be expanded
4926     for CXXCPP in "$CXX -E" "/lib/cpp"
4927     do
4928       ac_preproc_ok=false
4929 for ac_cxx_preproc_warn_flag in '' yes
4930 do
4931   # Use a header file that comes with gcc, so configuring glibc
4932   # with a fresh cross-compiler works.
4933   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4934   # <limits.h> exists even on freestanding compilers.
4935   # On the NeXT, cc -E runs the code through the compiler's parser,
4936   # not just through cpp. "Syntax error" is here to catch this case.
4937   cat >conftest.$ac_ext <<_ACEOF
4938 #line $LINENO "configure"
4939 /* confdefs.h.  */
4940 _ACEOF
4941 cat confdefs.h >>conftest.$ac_ext
4942 cat >>conftest.$ac_ext <<_ACEOF
4943 /* end confdefs.h.  */
4944 #ifdef __STDC__
4945 # include <limits.h>
4946 #else
4947 # include <assert.h>
4948 #endif
4949                      Syntax error
4950 _ACEOF
4951 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4952   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4953   ac_status=$?
4954   grep -v '^ *+' conftest.er1 >conftest.err
4955   rm -f conftest.er1
4956   cat conftest.err >&5
4957   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4958   (exit $ac_status); } >/dev/null; then
4959   if test -s conftest.err; then
4960     ac_cpp_err=$ac_cxx_preproc_warn_flag
4961   else
4962     ac_cpp_err=
4963   fi
4964 else
4965   ac_cpp_err=yes
4966 fi
4967 if test -z "$ac_cpp_err"; then
4968   :
4969 else
4970   echo "$as_me: failed program was:" >&5
4971 sed 's/^/| /' conftest.$ac_ext >&5
4972
4973   # Broken: fails on valid input.
4974 continue
4975 fi
4976 rm -f conftest.err conftest.$ac_ext
4977
4978   # OK, works on sane cases.  Now check whether non-existent headers
4979   # can be detected and how.
4980   cat >conftest.$ac_ext <<_ACEOF
4981 #line $LINENO "configure"
4982 /* confdefs.h.  */
4983 _ACEOF
4984 cat confdefs.h >>conftest.$ac_ext
4985 cat >>conftest.$ac_ext <<_ACEOF
4986 /* end confdefs.h.  */
4987 #include <ac_nonexistent.h>
4988 _ACEOF
4989 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4990   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4991   ac_status=$?
4992   grep -v '^ *+' conftest.er1 >conftest.err
4993   rm -f conftest.er1
4994   cat conftest.err >&5
4995   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4996   (exit $ac_status); } >/dev/null; then
4997   if test -s conftest.err; then
4998     ac_cpp_err=$ac_cxx_preproc_warn_flag
4999   else
5000     ac_cpp_err=
5001   fi
5002 else
5003   ac_cpp_err=yes
5004 fi
5005 if test -z "$ac_cpp_err"; then
5006   # Broken: success on invalid input.
5007 continue
5008 else
5009   echo "$as_me: failed program was:" >&5
5010 sed 's/^/| /' conftest.$ac_ext >&5
5011
5012   # Passes both tests.
5013 ac_preproc_ok=:
5014 break
5015 fi
5016 rm -f conftest.err conftest.$ac_ext
5017
5018 done
5019 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5020 rm -f conftest.err conftest.$ac_ext
5021 if $ac_preproc_ok; then
5022   break
5023 fi
5024
5025     done
5026     ac_cv_prog_CXXCPP=$CXXCPP
5027
5028 fi
5029   CXXCPP=$ac_cv_prog_CXXCPP
5030 else
5031   ac_cv_prog_CXXCPP=$CXXCPP
5032 fi
5033 echo "$as_me:$LINENO: result: $CXXCPP" >&5
5034 echo "${ECHO_T}$CXXCPP" >&6
5035 ac_preproc_ok=false
5036 for ac_cxx_preproc_warn_flag in '' yes
5037 do
5038   # Use a header file that comes with gcc, so configuring glibc
5039   # with a fresh cross-compiler works.
5040   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5041   # <limits.h> exists even on freestanding compilers.
5042   # On the NeXT, cc -E runs the code through the compiler's parser,
5043   # not just through cpp. "Syntax error" is here to catch this case.
5044   cat >conftest.$ac_ext <<_ACEOF
5045 #line $LINENO "configure"
5046 /* confdefs.h.  */
5047 _ACEOF
5048 cat confdefs.h >>conftest.$ac_ext
5049 cat >>conftest.$ac_ext <<_ACEOF
5050 /* end confdefs.h.  */
5051 #ifdef __STDC__
5052 # include <limits.h>
5053 #else
5054 # include <assert.h>
5055 #endif
5056                      Syntax error
5057 _ACEOF
5058 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5059   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5060   ac_status=$?
5061   grep -v '^ *+' conftest.er1 >conftest.err
5062   rm -f conftest.er1
5063   cat conftest.err >&5
5064   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5065   (exit $ac_status); } >/dev/null; then
5066   if test -s conftest.err; then
5067     ac_cpp_err=$ac_cxx_preproc_warn_flag
5068   else
5069     ac_cpp_err=
5070   fi
5071 else
5072   ac_cpp_err=yes
5073 fi
5074 if test -z "$ac_cpp_err"; then
5075   :
5076 else
5077   echo "$as_me: failed program was:" >&5
5078 sed 's/^/| /' conftest.$ac_ext >&5
5079
5080   # Broken: fails on valid input.
5081 continue
5082 fi
5083 rm -f conftest.err conftest.$ac_ext
5084
5085   # OK, works on sane cases.  Now check whether non-existent headers
5086   # can be detected and how.
5087   cat >conftest.$ac_ext <<_ACEOF
5088 #line $LINENO "configure"
5089 /* confdefs.h.  */
5090 _ACEOF
5091 cat confdefs.h >>conftest.$ac_ext
5092 cat >>conftest.$ac_ext <<_ACEOF
5093 /* end confdefs.h.  */
5094 #include <ac_nonexistent.h>
5095 _ACEOF
5096 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5097   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5098   ac_status=$?
5099   grep -v '^ *+' conftest.er1 >conftest.err
5100   rm -f conftest.er1
5101   cat conftest.err >&5
5102   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5103   (exit $ac_status); } >/dev/null; then
5104   if test -s conftest.err; then
5105     ac_cpp_err=$ac_cxx_preproc_warn_flag
5106   else
5107     ac_cpp_err=
5108   fi
5109 else
5110   ac_cpp_err=yes
5111 fi
5112 if test -z "$ac_cpp_err"; then
5113   # Broken: success on invalid input.
5114 continue
5115 else
5116   echo "$as_me: failed program was:" >&5
5117 sed 's/^/| /' conftest.$ac_ext >&5
5118
5119   # Passes both tests.
5120 ac_preproc_ok=:
5121 break
5122 fi
5123 rm -f conftest.err conftest.$ac_ext
5124
5125 done
5126 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5127 rm -f conftest.err conftest.$ac_ext
5128 if $ac_preproc_ok; then
5129   :
5130 else
5131   { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5132 See \`config.log' for more details." >&5
5133 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5134 See \`config.log' for more details." >&2;}
5135    { (exit 1); exit 1; }; }
5136 fi
5137
5138 ac_ext=cc
5139 ac_cpp='$CXXCPP $CPPFLAGS'
5140 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5141 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5142 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5143
5144
5145 ac_ext=f
5146 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
5147 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5148 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
5149 if test -n "$ac_tool_prefix"; then
5150   for ac_prog in g77 f77 xlf frt pgf77 fl32 af77 fort77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 lf95 g95
5151   do
5152     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5153 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5154 echo "$as_me:$LINENO: checking for $ac_word" >&5
5155 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5156 if test "${ac_cv_prog_F77+set}" = set; then
5157   echo $ECHO_N "(cached) $ECHO_C" >&6
5158 else
5159   if test -n "$F77"; then
5160   ac_cv_prog_F77="$F77" # Let the user override the test.
5161 else
5162 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5163 for as_dir in $PATH
5164 do
5165   IFS=$as_save_IFS
5166   test -z "$as_dir" && as_dir=.
5167   for ac_exec_ext in '' $ac_executable_extensions; do
5168   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5169     ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
5170     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5171     break 2
5172   fi
5173 done
5174 done
5175
5176 fi
5177 fi
5178 F77=$ac_cv_prog_F77
5179 if test -n "$F77"; then
5180   echo "$as_me:$LINENO: result: $F77" >&5
5181 echo "${ECHO_T}$F77" >&6
5182 else
5183   echo "$as_me:$LINENO: result: no" >&5
5184 echo "${ECHO_T}no" >&6
5185 fi
5186
5187     test -n "$F77" && break
5188   done
5189 fi
5190 if test -z "$F77"; then
5191   ac_ct_F77=$F77
5192   for ac_prog in g77 f77 xlf frt pgf77 fl32 af77 fort77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 lf95 g95
5193 do
5194   # Extract the first word of "$ac_prog", so it can be a program name with args.
5195 set dummy $ac_prog; ac_word=$2
5196 echo "$as_me:$LINENO: checking for $ac_word" >&5
5197 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5198 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
5199   echo $ECHO_N "(cached) $ECHO_C" >&6
5200 else
5201   if test -n "$ac_ct_F77"; then
5202   ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
5203 else
5204 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5205 for as_dir in $PATH
5206 do
5207   IFS=$as_save_IFS
5208   test -z "$as_dir" && as_dir=.
5209   for ac_exec_ext in '' $ac_executable_extensions; do
5210   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5211     ac_cv_prog_ac_ct_F77="$ac_prog"
5212     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5213     break 2
5214   fi
5215 done
5216 done
5217
5218 fi
5219 fi
5220 ac_ct_F77=$ac_cv_prog_ac_ct_F77
5221 if test -n "$ac_ct_F77"; then
5222   echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
5223 echo "${ECHO_T}$ac_ct_F77" >&6
5224 else
5225   echo "$as_me:$LINENO: result: no" >&5
5226 echo "${ECHO_T}no" >&6
5227 fi
5228
5229   test -n "$ac_ct_F77" && break
5230 done
5231
5232   F77=$ac_ct_F77
5233 fi
5234
5235
5236 # Provide some information about the compiler.
5237 echo "$as_me:5237:" \
5238      "checking for Fortran 77 compiler version" >&5
5239 ac_compiler=`set X $ac_compile; echo $2`
5240 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
5241   (eval $ac_compiler --version </dev/null >&5) 2>&5
5242   ac_status=$?
5243   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5244   (exit $ac_status); }
5245 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
5246   (eval $ac_compiler -v </dev/null >&5) 2>&5
5247   ac_status=$?
5248   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5249   (exit $ac_status); }
5250 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
5251   (eval $ac_compiler -V </dev/null >&5) 2>&5
5252   ac_status=$?
5253   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5254   (exit $ac_status); }
5255
5256 # If we don't use `.F' as extension, the preprocessor is not run on the
5257 # input file.
5258 ac_save_ext=$ac_ext
5259 ac_ext=F
5260 echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
5261 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
5262 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
5263   echo $ECHO_N "(cached) $ECHO_C" >&6
5264 else
5265   cat >conftest.$ac_ext <<_ACEOF
5266       program main
5267 #ifndef __GNUC__
5268        choke me
5269 #endif
5270
5271       end
5272 _ACEOF
5273 rm -f conftest.$ac_objext
5274 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5275   (eval $ac_compile) 2>&5
5276   ac_status=$?
5277   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5278   (exit $ac_status); } &&
5279          { ac_try='test -s conftest.$ac_objext'
5280   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5281   (eval $ac_try) 2>&5
5282   ac_status=$?
5283   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5284   (exit $ac_status); }; }; then
5285   ac_compiler_gnu=yes
5286 else
5287   echo "$as_me: failed program was:" >&5
5288 sed 's/^/| /' conftest.$ac_ext >&5
5289
5290 ac_compiler_gnu=no
5291 fi
5292 rm -f conftest.$ac_objext conftest.$ac_ext
5293 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
5294
5295 fi
5296 echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
5297 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
5298 ac_ext=$ac_save_ext
5299 G77=`test $ac_compiler_gnu = yes && echo yes`
5300 ac_test_FFLAGS=${FFLAGS+set}
5301 ac_save_FFLAGS=$FFLAGS
5302 FFLAGS=
5303 echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
5304 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
5305 if test "${ac_cv_prog_f77_g+set}" = set; then
5306   echo $ECHO_N "(cached) $ECHO_C" >&6
5307 else
5308   FFLAGS=-g
5309 cat >conftest.$ac_ext <<_ACEOF
5310       program main
5311
5312       end
5313 _ACEOF
5314 rm -f conftest.$ac_objext
5315 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5316   (eval $ac_compile) 2>&5
5317   ac_status=$?
5318   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5319   (exit $ac_status); } &&
5320          { ac_try='test -s conftest.$ac_objext'
5321   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5322   (eval $ac_try) 2>&5
5323   ac_status=$?
5324   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5325   (exit $ac_status); }; }; then
5326   ac_cv_prog_f77_g=yes
5327 else
5328   echo "$as_me: failed program was:" >&5
5329 sed 's/^/| /' conftest.$ac_ext >&5
5330
5331 ac_cv_prog_f77_g=no
5332 fi
5333 rm -f conftest.$ac_objext conftest.$ac_ext
5334
5335 fi
5336 echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
5337 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
5338 if test "$ac_test_FFLAGS" = set; then
5339   FFLAGS=$ac_save_FFLAGS
5340 elif test $ac_cv_prog_f77_g = yes; then
5341   if test "$G77" = yes; then
5342     FFLAGS="-g -O2"
5343   else
5344     FFLAGS="-g"
5345   fi
5346 else
5347   if test "$G77" = yes; then
5348     FFLAGS="-O2"
5349   else
5350     FFLAGS=
5351   fi
5352 fi
5353 ac_ext=c
5354 ac_cpp='$CPP $CPPFLAGS'
5355 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5356 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5357 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5358
5359
5360
5361 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
5362
5363 # find the maximum length of command line arguments
5364 echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
5365 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
5366 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
5367   echo $ECHO_N "(cached) $ECHO_C" >&6
5368 else
5369     i=0
5370   testring="ABCD"
5371
5372   case $build_os in
5373   msdosdjgpp*)
5374     # On DJGPP, this test can blow up pretty badly due to problems in libc
5375     # (any single argument exceeding 2000 bytes causes a buffer overrun
5376     # during glob expansion).  Even if it were fixed, the result of this
5377     # check would be larger than it should be.
5378     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
5379     ;;
5380
5381   gnu*)
5382     # Under GNU Hurd, this test is not required because there is
5383     # no limit to the length of command line arguments.
5384     # Libtool will interpret -1 as no limit whatsoever
5385     lt_cv_sys_max_cmd_len=-1;
5386     ;;
5387
5388   cygwin* | mingw*)
5389     # On Win9x/ME, this test blows up -- it succeeds, but takes
5390     # about 5 minutes as the teststring grows exponentially.
5391     # Worse, since 9x/ME are not pre-emptively multitasking,
5392     # you end up with a "frozen" computer, even though with patience
5393     # the test eventually succeeds (with a max line length of 256k).
5394     # Instead, let's just punt: use the minimum linelength reported by
5395     # all of the supported platforms: 8192 (on NT/2K/XP).
5396     lt_cv_sys_max_cmd_len=8192;
5397     ;;
5398
5399  *)
5400     # If test is not a shell built-in, we'll probably end up computing a
5401     # maximum length that is only half of the actual maximum length, but
5402     # we can't tell.
5403     while (test "X"`$CONFIG_SHELL $0 --fallback-echo "X$testring" 2>/dev/null` \
5404                = "XX$testring") >/dev/null 2>&1 &&
5405             new_result=`expr "X$testring" : ".*" 2>&1` &&
5406             lt_cv_sys_max_cmd_len=$new_result &&
5407             test $i != 17 # 1/2 MB should be enough
5408     do
5409       i=`expr $i + 1`
5410       testring=$testring$testring
5411     done
5412     testring=
5413     # Add a significant safety factor because C++ compilers can tack on massive
5414     # amounts of additional arguments before passing them to the linker.
5415     # It appears as though 1/2 is a usable value.
5416     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5417     ;;
5418   esac
5419
5420 fi
5421
5422 if test -n $lt_cv_sys_max_cmd_len ; then
5423   echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
5424 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
5425 else
5426   echo "$as_me:$LINENO: result: none" >&5
5427 echo "${ECHO_T}none" >&6
5428 fi
5429
5430
5431
5432
5433 # Check for command to grab the raw symbol name followed by C symbol from nm.
5434 echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
5435 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
5436 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
5437   echo $ECHO_N "(cached) $ECHO_C" >&6
5438 else
5439
5440 # These are sane defaults that work on at least a few old systems.
5441 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
5442
5443 # Character class describing NM global symbol codes.
5444 symcode='[BCDEGRST]'
5445
5446 # Regexp to match symbols that can be accessed directly from C.
5447 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5448
5449 # Transform the above into a raw symbol and a C symbol.
5450 symxfrm='\1 \2\3 \3'
5451
5452 # Transform an extracted symbol line into a proper C declaration
5453 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
5454
5455 # Transform an extracted symbol line into symbol name and symbol address
5456 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'"
5457
5458 # Define system-specific variables.
5459 case $host_os in
5460 aix*)
5461   symcode='[BCDT]'
5462   ;;
5463 cygwin* | mingw* | pw32*)
5464   symcode='[ABCDGISTW]'
5465   ;;
5466 hpux*) # Its linker distinguishes data from code symbols
5467   if test "$host_cpu" = ia64; then
5468     symcode='[ABCDEGRST]'
5469   fi
5470   lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5471   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'"
5472   ;;
5473 irix* | nonstopux*)
5474   symcode='[BCDEGRST]'
5475   ;;
5476 osf*)
5477   symcode='[BCDEGQRST]'
5478   ;;
5479 solaris* | sysv5*)
5480   symcode='[BDT]'
5481   ;;
5482 sysv4)
5483   symcode='[DFNSTU]'
5484   ;;
5485 esac
5486
5487 # Handle CRLF in mingw tool chain
5488 opt_cr=
5489 case $build_os in
5490 mingw*)
5491   opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5492   ;;
5493 esac
5494
5495 # If we're using GNU nm, then use its standard symbol codes.
5496 case `$NM -V 2>&1` in
5497 *GNU* | *'with BFD'*)
5498   symcode='[ABCDGISTW]' ;;
5499 esac
5500
5501 # Try without a prefix undercore, then with it.
5502 for ac_symprfx in "" "_"; do
5503
5504   # Write the raw and C identifiers.
5505   lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
5506
5507   # Check to see that the pipe works correctly.
5508   pipe_works=no
5509
5510   rm -f conftest*
5511   cat > conftest.$ac_ext <<EOF
5512 #ifdef __cplusplus
5513 extern "C" {
5514 #endif
5515 char nm_test_var;
5516 void nm_test_func(){}
5517 #ifdef __cplusplus
5518 }
5519 #endif
5520 int main(){nm_test_var='a';nm_test_func();return(0);}
5521 EOF
5522
5523   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5524   (eval $ac_compile) 2>&5
5525   ac_status=$?
5526   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5527   (exit $ac_status); }; then
5528     # Now try to grab the symbols.
5529     nlist=conftest.nm
5530     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
5531   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
5532   ac_status=$?
5533   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5534   (exit $ac_status); } && test -s "$nlist"; then
5535       # Try sorting and uniquifying the output.
5536       if sort "$nlist" | uniq > "$nlist"T; then
5537         mv -f "$nlist"T "$nlist"
5538       else
5539         rm -f "$nlist"T
5540       fi
5541
5542       # Make sure that we snagged all the symbols we need.
5543       if grep ' nm_test_var$' "$nlist" >/dev/null; then
5544         if grep ' nm_test_func$' "$nlist" >/dev/null; then
5545           cat <<EOF > conftest.$ac_ext
5546 #ifdef __cplusplus
5547 extern "C" {
5548 #endif
5549
5550 EOF
5551           # Now generate the symbol file.
5552           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
5553
5554           cat <<EOF >> conftest.$ac_ext
5555 #if defined (__STDC__) && __STDC__
5556 # define lt_ptr_t void *
5557 #else
5558 # define lt_ptr_t char *
5559 # define const
5560 #endif
5561
5562 /* The mapping between symbol names and symbols. */
5563 const struct {
5564   const char *name;
5565   lt_ptr_t address;
5566 }
5567 lt_preloaded_symbols[] =
5568 {
5569 EOF
5570           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
5571           cat <<\EOF >> conftest.$ac_ext
5572   {0, (lt_ptr_t) 0}
5573 };
5574
5575 #ifdef __cplusplus
5576 }
5577 #endif
5578 EOF
5579           # Now try linking the two files.
5580           mv conftest.$ac_objext conftstm.$ac_objext
5581           lt_save_LIBS="$LIBS"
5582           lt_save_CFLAGS="$CFLAGS"
5583           LIBS="conftstm.$ac_objext"
5584           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5585           if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5586   (eval $ac_link) 2>&5
5587   ac_status=$?
5588   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5589   (exit $ac_status); } && test -s conftest${ac_exeext}; then
5590             pipe_works=yes
5591           fi
5592           LIBS="$lt_save_LIBS"
5593           CFLAGS="$lt_save_CFLAGS"
5594         else
5595           echo "cannot find nm_test_func in $nlist" >&5
5596         fi
5597       else
5598         echo "cannot find nm_test_var in $nlist" >&5
5599       fi
5600     else
5601       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5602     fi
5603   else
5604     echo "$progname: failed program was:" >&5
5605     cat conftest.$ac_ext >&5
5606   fi
5607   rm -f conftest* conftst*
5608
5609   # Do not use the global_symbol_pipe unless it works.
5610   if test "$pipe_works" = yes; then
5611     break
5612   else
5613     lt_cv_sys_global_symbol_pipe=
5614   fi
5615 done
5616
5617 fi
5618
5619 if test -z "$lt_cv_sys_global_symbol_pipe"; then
5620   lt_cv_sys_global_symbol_to_cdecl=
5621 fi
5622 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5623   echo "$as_me:$LINENO: result: failed" >&5
5624 echo "${ECHO_T}failed" >&6
5625 else
5626   echo "$as_me:$LINENO: result: ok" >&5
5627 echo "${ECHO_T}ok" >&6
5628 fi
5629
5630 echo "$as_me:$LINENO: checking for objdir" >&5
5631 echo $ECHO_N "checking for objdir... $ECHO_C" >&6
5632 if test "${lt_cv_objdir+set}" = set; then
5633   echo $ECHO_N "(cached) $ECHO_C" >&6
5634 else
5635   rm -f .libs 2>/dev/null
5636 mkdir .libs 2>/dev/null
5637 if test -d .libs; then
5638   lt_cv_objdir=.libs
5639 else
5640   # MS-DOS does not allow filenames that begin with a dot.
5641   lt_cv_objdir=_libs
5642 fi
5643 rmdir .libs 2>/dev/null
5644 fi
5645 echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
5646 echo "${ECHO_T}$lt_cv_objdir" >&6
5647 objdir=$lt_cv_objdir
5648
5649
5650
5651
5652
5653 case $host_os in
5654 aix3*)
5655   # AIX sometimes has problems with the GCC collect2 program.  For some
5656   # reason, if we set the COLLECT_NAMES environment variable, the problems
5657   # vanish in a puff of smoke.
5658   if test "X${COLLECT_NAMES+set}" != Xset; then
5659     COLLECT_NAMES=
5660     export COLLECT_NAMES
5661   fi
5662   ;;
5663 esac
5664
5665 # Sed substitution that helps us do robust quoting.  It backslashifies
5666 # metacharacters that are still active within double-quoted strings.
5667 Xsed='sed -e s/^X//'
5668 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
5669
5670 # Same as above, but do not quote variable references.
5671 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
5672
5673 # Sed substitution to delay expansion of an escaped shell variable in a
5674 # double_quote_subst'ed string.
5675 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5676
5677 # Sed substitution to avoid accidental globbing in evaled expressions
5678 no_glob_subst='s/\*/\\\*/g'
5679
5680 # Constants:
5681 rm="rm -f"
5682
5683 # Global variables:
5684 default_ofile=mklib
5685 can_build_shared=yes
5686
5687 # All known linkers require a `.a' archive for static linking (except M$VC,
5688 # which needs '.lib').
5689 libext=a
5690 ltmain="$ac_aux_dir/ltmain.sh"
5691 ofile="$default_ofile"
5692 with_gnu_ld="$lt_cv_prog_gnu_ld"
5693
5694 if test -n "$ac_tool_prefix"; then
5695   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5696 set dummy ${ac_tool_prefix}ar; ac_word=$2
5697 echo "$as_me:$LINENO: checking for $ac_word" >&5
5698 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5699 if test "${ac_cv_prog_AR+set}" = set; then
5700   echo $ECHO_N "(cached) $ECHO_C" >&6
5701 else
5702   if test -n "$AR"; then
5703   ac_cv_prog_AR="$AR" # Let the user override the test.
5704 else
5705 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5706 for as_dir in $PATH
5707 do
5708   IFS=$as_save_IFS
5709   test -z "$as_dir" && as_dir=.
5710   for ac_exec_ext in '' $ac_executable_extensions; do
5711   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5712     ac_cv_prog_AR="${ac_tool_prefix}ar"
5713     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5714     break 2
5715   fi
5716 done
5717 done
5718
5719 fi
5720 fi
5721 AR=$ac_cv_prog_AR
5722 if test -n "$AR"; then
5723   echo "$as_me:$LINENO: result: $AR" >&5
5724 echo "${ECHO_T}$AR" >&6
5725 else
5726   echo "$as_me:$LINENO: result: no" >&5
5727 echo "${ECHO_T}no" >&6
5728 fi
5729
5730 fi
5731 if test -z "$ac_cv_prog_AR"; then
5732   ac_ct_AR=$AR
5733   # Extract the first word of "ar", so it can be a program name with args.
5734 set dummy ar; ac_word=$2
5735 echo "$as_me:$LINENO: checking for $ac_word" >&5
5736 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5737 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
5738   echo $ECHO_N "(cached) $ECHO_C" >&6
5739 else
5740   if test -n "$ac_ct_AR"; then
5741   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5742 else
5743 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5744 for as_dir in $PATH
5745 do
5746   IFS=$as_save_IFS
5747   test -z "$as_dir" && as_dir=.
5748   for ac_exec_ext in '' $ac_executable_extensions; do
5749   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5750     ac_cv_prog_ac_ct_AR="ar"
5751     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5752     break 2
5753   fi
5754 done
5755 done
5756
5757   test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
5758 fi
5759 fi
5760 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5761 if test -n "$ac_ct_AR"; then
5762   echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
5763 echo "${ECHO_T}$ac_ct_AR" >&6
5764 else
5765   echo "$as_me:$LINENO: result: no" >&5
5766 echo "${ECHO_T}no" >&6
5767 fi
5768
5769   AR=$ac_ct_AR
5770 else
5771   AR="$ac_cv_prog_AR"
5772 fi
5773
5774 if test -n "$ac_tool_prefix"; then
5775   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5776 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5777 echo "$as_me:$LINENO: checking for $ac_word" >&5
5778 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5779 if test "${ac_cv_prog_RANLIB+set}" = set; then
5780   echo $ECHO_N "(cached) $ECHO_C" >&6
5781 else
5782   if test -n "$RANLIB"; then
5783   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5784 else
5785 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5786 for as_dir in $PATH
5787 do
5788   IFS=$as_save_IFS
5789   test -z "$as_dir" && as_dir=.
5790   for ac_exec_ext in '' $ac_executable_extensions; do
5791   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5792     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5793     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5794     break 2
5795   fi
5796 done
5797 done
5798
5799 fi
5800 fi
5801 RANLIB=$ac_cv_prog_RANLIB
5802 if test -n "$RANLIB"; then
5803   echo "$as_me:$LINENO: result: $RANLIB" >&5
5804 echo "${ECHO_T}$RANLIB" >&6
5805 else
5806   echo "$as_me:$LINENO: result: no" >&5
5807 echo "${ECHO_T}no" >&6
5808 fi
5809
5810 fi
5811 if test -z "$ac_cv_prog_RANLIB"; then
5812   ac_ct_RANLIB=$RANLIB
5813   # Extract the first word of "ranlib", so it can be a program name with args.
5814 set dummy ranlib; ac_word=$2
5815 echo "$as_me:$LINENO: checking for $ac_word" >&5
5816 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5817 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5818   echo $ECHO_N "(cached) $ECHO_C" >&6
5819 else
5820   if test -n "$ac_ct_RANLIB"; then
5821   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5822 else
5823 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5824 for as_dir in $PATH
5825 do
5826   IFS=$as_save_IFS
5827   test -z "$as_dir" && as_dir=.
5828   for ac_exec_ext in '' $ac_executable_extensions; do
5829   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5830     ac_cv_prog_ac_ct_RANLIB="ranlib"
5831     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5832     break 2
5833   fi
5834 done
5835 done
5836
5837   test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
5838 fi
5839 fi
5840 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5841 if test -n "$ac_ct_RANLIB"; then
5842   echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5843 echo "${ECHO_T}$ac_ct_RANLIB" >&6
5844 else
5845   echo "$as_me:$LINENO: result: no" >&5
5846 echo "${ECHO_T}no" >&6
5847 fi
5848
5849   RANLIB=$ac_ct_RANLIB
5850 else
5851   RANLIB="$ac_cv_prog_RANLIB"
5852 fi
5853
5854 if test -n "$ac_tool_prefix"; then
5855   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5856 set dummy ${ac_tool_prefix}strip; ac_word=$2
5857 echo "$as_me:$LINENO: checking for $ac_word" >&5
5858 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5859 if test "${ac_cv_prog_STRIP+set}" = set; then
5860   echo $ECHO_N "(cached) $ECHO_C" >&6
5861 else
5862   if test -n "$STRIP"; then
5863   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5864 else
5865 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5866 for as_dir in $PATH
5867 do
5868   IFS=$as_save_IFS
5869   test -z "$as_dir" && as_dir=.
5870   for ac_exec_ext in '' $ac_executable_extensions; do
5871   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5872     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5873     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5874     break 2
5875   fi
5876 done
5877 done
5878
5879 fi
5880 fi
5881 STRIP=$ac_cv_prog_STRIP
5882 if test -n "$STRIP"; then
5883   echo "$as_me:$LINENO: result: $STRIP" >&5
5884 echo "${ECHO_T}$STRIP" >&6
5885 else
5886   echo "$as_me:$LINENO: result: no" >&5
5887 echo "${ECHO_T}no" >&6
5888 fi
5889
5890 fi
5891 if test -z "$ac_cv_prog_STRIP"; then
5892   ac_ct_STRIP=$STRIP
5893   # Extract the first word of "strip", so it can be a program name with args.
5894 set dummy strip; ac_word=$2
5895 echo "$as_me:$LINENO: checking for $ac_word" >&5
5896 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5897 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
5898   echo $ECHO_N "(cached) $ECHO_C" >&6
5899 else
5900   if test -n "$ac_ct_STRIP"; then
5901   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5902 else
5903 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5904 for as_dir in $PATH
5905 do
5906   IFS=$as_save_IFS
5907   test -z "$as_dir" && as_dir=.
5908   for ac_exec_ext in '' $ac_executable_extensions; do
5909   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5910     ac_cv_prog_ac_ct_STRIP="strip"
5911     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5912     break 2
5913   fi
5914 done
5915 done
5916
5917   test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
5918 fi
5919 fi
5920 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5921 if test -n "$ac_ct_STRIP"; then
5922   echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
5923 echo "${ECHO_T}$ac_ct_STRIP" >&6
5924 else
5925   echo "$as_me:$LINENO: result: no" >&5
5926 echo "${ECHO_T}no" >&6
5927 fi
5928
5929   STRIP=$ac_ct_STRIP
5930 else
5931   STRIP="$ac_cv_prog_STRIP"
5932 fi
5933
5934
5935 old_CC="$CC"
5936 old_CFLAGS="$CFLAGS"
5937
5938 # Set sane defaults for various variables
5939 test -z "$AR" && AR=ar
5940 test -z "$AR_FLAGS" && AR_FLAGS=cru
5941 test -z "$AS" && AS=as
5942 test -z "$CC" && CC=cc
5943 test -z "$LTCC" && LTCC=$CC
5944 test -z "$DLLTOOL" && DLLTOOL=dlltool
5945 test -z "$LD" && LD=ld
5946 test -z "$LN_S" && LN_S="ln -s"
5947 test -z "$MAGIC_CMD" && MAGIC_CMD=file
5948 test -z "$NM" && NM=nm
5949 test -z "$SED" && SED=sed
5950 test -z "$OBJDUMP" && OBJDUMP=objdump
5951 test -z "$RANLIB" && RANLIB=:
5952 test -z "$STRIP" && STRIP=:
5953 test -z "$ac_objext" && ac_objext=o
5954
5955 # Determine commands to create old-style static archives.
5956 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
5957 old_postinstall_cmds='chmod 644 $oldlib'
5958 old_postuninstall_cmds=
5959
5960 if test -n "$RANLIB"; then
5961   case $host_os in
5962   openbsd*)
5963     old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
5964     ;;
5965   *)
5966     old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
5967     ;;
5968   esac
5969   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
5970 fi
5971
5972 # Only perform the check for file, if the check method requires it
5973 case $deplibs_check_method in
5974 file_magic*)
5975   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
5976     echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
5977 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
5978 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
5979   echo $ECHO_N "(cached) $ECHO_C" >&6
5980 else
5981   case $MAGIC_CMD in
5982 [\\/*] |  ?:[\\/]*)
5983   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
5984   ;;
5985 *)
5986   lt_save_MAGIC_CMD="$MAGIC_CMD"
5987   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5988   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
5989   for ac_dir in $ac_dummy; do
5990     IFS="$lt_save_ifs"
5991     test -z "$ac_dir" && ac_dir=.
5992     if test -f $ac_dir/${ac_tool_prefix}file; then
5993       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
5994       if test -n "$file_magic_test_file"; then
5995         case $deplibs_check_method in
5996         "file_magic "*)
5997           file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
5998           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5999           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6000             $EGREP "$file_magic_regex" > /dev/null; then
6001             :
6002           else
6003             cat <<EOF 1>&2
6004
6005 *** Warning: the command libtool uses to detect shared libraries,
6006 *** $file_magic_cmd, produces output that libtool cannot recognize.
6007 *** The result is that libtool may fail to recognize shared libraries
6008 *** as such.  This will affect the creation of libtool libraries that
6009 *** depend on shared libraries, but programs linked with such libtool
6010 *** libraries will work regardless of this problem.  Nevertheless, you
6011 *** may want to report the problem to your system manager and/or to
6012 *** bug-libtool@gnu.org
6013
6014 EOF
6015           fi ;;
6016         esac
6017       fi
6018       break
6019     fi
6020   done
6021   IFS="$lt_save_ifs"
6022   MAGIC_CMD="$lt_save_MAGIC_CMD"
6023   ;;
6024 esac
6025 fi
6026
6027 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6028 if test -n "$MAGIC_CMD"; then
6029   echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6030 echo "${ECHO_T}$MAGIC_CMD" >&6
6031 else
6032   echo "$as_me:$LINENO: result: no" >&5
6033 echo "${ECHO_T}no" >&6
6034 fi
6035
6036 if test -z "$lt_cv_path_MAGIC_CMD"; then
6037   if test -n "$ac_tool_prefix"; then
6038     echo "$as_me:$LINENO: checking for file" >&5
6039 echo $ECHO_N "checking for file... $ECHO_C" >&6
6040 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6041   echo $ECHO_N "(cached) $ECHO_C" >&6
6042 else
6043   case $MAGIC_CMD in
6044 [\\/*] |  ?:[\\/]*)
6045   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6046   ;;
6047 *)
6048   lt_save_MAGIC_CMD="$MAGIC_CMD"
6049   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6050   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6051   for ac_dir in $ac_dummy; do
6052     IFS="$lt_save_ifs"
6053     test -z "$ac_dir" && ac_dir=.
6054     if test -f $ac_dir/file; then
6055       lt_cv_path_MAGIC_CMD="$ac_dir/file"
6056       if test -n "$file_magic_test_file"; then
6057         case $deplibs_check_method in
6058         "file_magic "*)
6059           file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
6060           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6061           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6062             $EGREP "$file_magic_regex" > /dev/null; then
6063             :
6064           else
6065             cat <<EOF 1>&2
6066
6067 *** Warning: the command libtool uses to detect shared libraries,
6068 *** $file_magic_cmd, produces output that libtool cannot recognize.
6069 *** The result is that libtool may fail to recognize shared libraries
6070 *** as such.  This will affect the creation of libtool libraries that
6071 *** depend on shared libraries, but programs linked with such libtool
6072 *** libraries will work regardless of this problem.  Nevertheless, you
6073 *** may want to report the problem to your system manager and/or to
6074 *** bug-libtool@gnu.org
6075
6076 EOF
6077           fi ;;
6078         esac
6079       fi
6080       break
6081     fi
6082   done
6083   IFS="$lt_save_ifs"
6084   MAGIC_CMD="$lt_save_MAGIC_CMD"
6085   ;;
6086 esac
6087 fi
6088
6089 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6090 if test -n "$MAGIC_CMD"; then
6091   echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6092 echo "${ECHO_T}$MAGIC_CMD" >&6
6093 else
6094   echo "$as_me:$LINENO: result: no" >&5
6095 echo "${ECHO_T}no" >&6
6096 fi
6097
6098   else
6099     MAGIC_CMD=:
6100   fi
6101 fi
6102
6103   fi
6104   ;;
6105 esac
6106
6107 enable_dlopen=no
6108 enable_win32_dll=no
6109
6110 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
6111 if test "${enable_libtool_lock+set}" = set; then
6112   enableval="$enable_libtool_lock"
6113
6114 fi;
6115 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6116
6117
6118 # Check whether --with-pic or --without-pic was given.
6119 if test "${with_pic+set}" = set; then
6120   withval="$with_pic"
6121   pic_mode="$withval"
6122 else
6123   pic_mode=default
6124 fi;
6125 test -z "$pic_mode" && pic_mode=default
6126
6127 # Use C for the default configuration in the libtool script
6128 tagname=
6129 lt_save_CC="$CC"
6130 ac_ext=c
6131 ac_cpp='$CPP $CPPFLAGS'
6132 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6133 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6134 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6135
6136
6137 # Source file extension for C test sources.
6138 ac_ext=c
6139
6140 # Object file extension for compiled C test sources.
6141 objext=o
6142 objext=$objext
6143
6144 # Code to be used in simple compile tests
6145 lt_simple_compile_test_code="int some_variable = 0;\n"
6146
6147 # Code to be used in simple link tests
6148 lt_simple_link_test_code='int main(){return(0);}\n'
6149
6150
6151 # If no C compiler was specified, use CC.
6152 LTCC=${LTCC-"$CC"}
6153
6154 # Allow CC to be a program name with arguments.
6155 compiler=$CC
6156
6157
6158 #
6159 # Check for any special shared library compilation flags.
6160 #
6161 lt_prog_cc_shlib=
6162 if test "$GCC" = no; then
6163   case $host_os in
6164   sco3.2v5*)
6165     lt_prog_cc_shlib='-belf'
6166     ;;
6167   esac
6168 fi
6169 if test -n "$lt_prog_cc_shlib"; then
6170   { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5
6171 echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;}
6172   if echo "$old_CC $old_CFLAGS " | grep "[      ]$lt_prog_cc_shlib[     ]" >/dev/null; then :
6173   else
6174     { echo "$as_me:$LINENO: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
6175 echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
6176     lt_cv_prog_cc_can_build_shared=no
6177   fi
6178 fi
6179
6180
6181 #
6182 # Check to make sure the static flag actually works.
6183 #
6184 echo "$as_me:$LINENO: checking if $compiler static flag $lt_prog_compiler_static works" >&5
6185 echo $ECHO_N "checking if $compiler static flag $lt_prog_compiler_static works... $ECHO_C" >&6
6186 if test "${lt_prog_compiler_static_works+set}" = set; then
6187   echo $ECHO_N "(cached) $ECHO_C" >&6
6188 else
6189   lt_prog_compiler_static_works=no
6190    save_LDFLAGS="$LDFLAGS"
6191    LDFLAGS="$LDFLAGS $lt_prog_compiler_static"
6192    printf "$lt_simple_link_test_code" > conftest.$ac_ext
6193    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
6194      # The compiler can only warn and ignore the option if not recognized
6195      # So say no if there are warnings
6196      if test -s conftest.err; then
6197        # Append any errors to the config.log.
6198        cat conftest.err 1>&5
6199      else
6200        lt_prog_compiler_static_works=yes
6201      fi
6202    fi
6203    $rm conftest*
6204    LDFLAGS="$save_LDFLAGS"
6205
6206 fi
6207 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
6208 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
6209
6210 if test x"$lt_prog_compiler_static_works" = xyes; then
6211     :
6212 else
6213     lt_prog_compiler_static=
6214 fi
6215
6216
6217
6218 ## CAVEAT EMPTOR:
6219 ## There is no encapsulation within the following macros, do not change
6220 ## the running order or otherwise move them around unless you know exactly
6221 ## what you are doing...
6222
6223 lt_prog_compiler_no_builtin_flag=
6224
6225 if test "$GCC" = yes; then
6226   lt_prog_compiler_no_builtin_flag=' -fno-builtin'
6227
6228   echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
6229 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
6230 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
6231   echo $ECHO_N "(cached) $ECHO_C" >&6
6232 else
6233   lt_cv_prog_compiler_rtti_exceptions=no
6234   ac_outfile=conftest.$ac_objext
6235    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6236    lt_compiler_flag="-fno-rtti -fno-exceptions"
6237    # Insert the option either (1) after the last *FLAGS variable, or
6238    # (2) before a word containing "conftest.", or (3) at the end.
6239    # Note that $ac_compile itself does not contain backslashes and begins
6240    # with a dollar sign (not a hyphen), so the echo should work correctly.
6241    # The option is referenced via a variable to avoid confusing sed.
6242    lt_compile=`echo "$ac_compile" | $SED \
6243    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
6244    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6245    -e 's:$: $lt_compiler_flag:'`
6246    (eval echo "\"\$as_me:6246: $lt_compile\"" >&5)
6247    (eval "$lt_compile" 2>conftest.err)
6248    ac_status=$?
6249    cat conftest.err >&5
6250    echo "$as_me:6250: \$? = $ac_status" >&5
6251    if (exit $ac_status) && test -s "$ac_outfile"; then
6252      # The compiler can only warn and ignore the option if not recognized
6253      # So say no if there are warnings
6254      if test ! -s conftest.err; then
6255        lt_cv_prog_compiler_rtti_exceptions=yes
6256      fi
6257    fi
6258    $rm conftest*
6259
6260 fi
6261 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
6262 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
6263
6264 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
6265     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
6266 else
6267     :
6268 fi
6269
6270 fi
6271
6272 lt_prog_compiler_wl=
6273 lt_prog_compiler_pic=
6274 lt_prog_compiler_static=
6275
6276 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
6277 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
6278
6279   if test "$GCC" = yes; then
6280     lt_prog_compiler_wl='-Wl,'
6281     lt_prog_compiler_static='-static'
6282
6283     case $host_os in
6284       aix*)
6285       # All AIX code is PIC.
6286       if test "$host_cpu" = ia64; then
6287         # AIX 5 now supports IA64 processor
6288         lt_prog_compiler_static='-Bstatic'
6289       fi
6290       ;;
6291
6292     amigaos*)
6293       # FIXME: we need at least 68020 code to build shared libraries, but
6294       # adding the `-m68020' flag to GCC prevents building anything better,
6295       # like `-m68040'.
6296       lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
6297       ;;
6298
6299     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
6300       # PIC is the default for these OSes.
6301       ;;
6302
6303     mingw* | pw32* | os2*)
6304       # This hack is so that the source file can tell whether it is being
6305       # built for inclusion in a dll (and should export symbols for example).
6306       lt_prog_compiler_pic='-DDLL_EXPORT'
6307       ;;
6308
6309     darwin* | rhapsody*)
6310       # PIC is the default on this platform
6311       # Common symbols not allowed in MH_DYLIB files
6312       lt_prog_compiler_pic='-fno-common'
6313       ;;
6314
6315     msdosdjgpp*)
6316       # Just because we use GCC doesn't mean we suddenly get shared libraries
6317       # on systems that don't support them.
6318       lt_prog_compiler_can_build_shared=no
6319       enable_shared=no
6320       ;;
6321
6322     sysv4*MP*)
6323       if test -d /usr/nec; then
6324         lt_prog_compiler_pic=-Kconform_pic
6325       fi
6326       ;;
6327
6328     hpux*)
6329       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6330       # not for PA HP-UX.
6331       case "$host_cpu" in
6332       hppa*64*|ia64*)
6333         # +Z the default
6334         ;;
6335       *)
6336         lt_prog_compiler_pic='-fPIC'
6337         ;;
6338       esac
6339       ;;
6340
6341     *)
6342       lt_prog_compiler_pic='-fPIC'
6343       ;;
6344     esac
6345   else
6346     # PORTME Check for flag to pass linker flags through the system compiler.
6347     case $host_os in
6348     aix*)
6349       lt_prog_compiler_wl='-Wl,'
6350       if test "$host_cpu" = ia64; then
6351         # AIX 5 now supports IA64 processor
6352         lt_prog_compiler_static='-Bstatic'
6353       else
6354         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
6355       fi
6356       ;;
6357
6358     mingw* | pw32* | os2*)
6359       # This hack is so that the source file can tell whether it is being
6360       # built for inclusion in a dll (and should export symbols for example).
6361       lt_prog_compiler_pic='-DDLL_EXPORT'
6362       ;;
6363
6364     hpux9* | hpux10* | hpux11*)
6365       lt_prog_compiler_wl='-Wl,'
6366       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6367       # not for PA HP-UX.
6368       case "$host_cpu" in
6369       hppa*64*|ia64*)
6370         # +Z the default
6371         ;;
6372       *)
6373         lt_prog_compiler_pic='+Z'
6374         ;;
6375       esac
6376       # Is there a better lt_prog_compiler_static that works with the bundled CC?
6377       lt_prog_compiler_static='${wl}-a ${wl}archive'
6378       ;;
6379
6380     irix5* | irix6* | nonstopux*)
6381       lt_prog_compiler_wl='-Wl,'
6382       # PIC (with -KPIC) is the default.
6383       lt_prog_compiler_static='-non_shared'
6384       ;;
6385
6386     newsos6)
6387       lt_prog_compiler_pic='-KPIC'
6388       lt_prog_compiler_static='-Bstatic'
6389       ;;
6390
6391     linux*)
6392       case $CC in
6393       icc|ecc)
6394         lt_prog_compiler_wl='-Wl,'
6395         lt_prog_compiler_pic='-KPIC'
6396         lt_prog_compiler_static='-static'
6397         ;;
6398       ccc)
6399         lt_prog_compiler_wl='-Wl,'
6400         # All Alpha code is PIC.
6401         lt_prog_compiler_static='-non_shared'
6402         ;;
6403       esac
6404       ;;
6405
6406     osf3* | osf4* | osf5*)
6407       lt_prog_compiler_wl='-Wl,'
6408       # All OSF/1 code is PIC.
6409       lt_prog_compiler_static='-non_shared'
6410       ;;
6411
6412     sco3.2v5*)
6413       lt_prog_compiler_pic='-Kpic'
6414       lt_prog_compiler_static='-dn'
6415       ;;
6416
6417     solaris*)
6418       lt_prog_compiler_wl='-Wl,'
6419       lt_prog_compiler_pic='-KPIC'
6420       lt_prog_compiler_static='-Bstatic'
6421       ;;
6422
6423     sunos4*)
6424       lt_prog_compiler_wl='-Qoption ld '
6425       lt_prog_compiler_pic='-PIC'
6426       lt_prog_compiler_static='-Bstatic'
6427       ;;
6428
6429     sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
6430       lt_prog_compiler_wl='-Wl,'
6431       lt_prog_compiler_pic='-KPIC'
6432       lt_prog_compiler_static='-Bstatic'
6433       ;;
6434
6435     sysv4*MP*)
6436       if test -d /usr/nec ;then
6437         lt_prog_compiler_pic='-Kconform_pic'
6438         lt_prog_compiler_static='-Bstatic'
6439       fi
6440       ;;
6441
6442     uts4*)
6443       lt_prog_compiler_pic='-pic'
6444       lt_prog_compiler_static='-Bstatic'
6445       ;;
6446
6447     *)
6448       lt_prog_compiler_can_build_shared=no
6449       ;;
6450     esac
6451   fi
6452
6453 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
6454 echo "${ECHO_T}$lt_prog_compiler_pic" >&6
6455
6456 #
6457 # Check to make sure the PIC flag actually works.
6458 #
6459 if test -n "$lt_prog_compiler_pic"; then
6460   echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
6461 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
6462 if test "${lt_prog_compiler_pic_works+set}" = set; then
6463   echo $ECHO_N "(cached) $ECHO_C" >&6
6464 else
6465   lt_prog_compiler_pic_works=no
6466   ac_outfile=conftest.$ac_objext
6467    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6468    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
6469    # Insert the option either (1) after the last *FLAGS variable, or
6470    # (2) before a word containing "conftest.", or (3) at the end.
6471    # Note that $ac_compile itself does not contain backslashes and begins
6472    # with a dollar sign (not a hyphen), so the echo should work correctly.
6473    # The option is referenced via a variable to avoid confusing sed.
6474    lt_compile=`echo "$ac_compile" | $SED \
6475    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
6476    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6477    -e 's:$: $lt_compiler_flag:'`
6478    (eval echo "\"\$as_me:6478: $lt_compile\"" >&5)
6479    (eval "$lt_compile" 2>conftest.err)
6480    ac_status=$?
6481    cat conftest.err >&5
6482    echo "$as_me:6482: \$? = $ac_status" >&5
6483    if (exit $ac_status) && test -s "$ac_outfile"; then
6484      # The compiler can only warn and ignore the option if not recognized
6485      # So say no if there are warnings
6486      if test ! -s conftest.err; then
6487        lt_prog_compiler_pic_works=yes
6488      fi
6489    fi
6490    $rm conftest*
6491
6492 fi
6493 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
6494 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
6495
6496 if test x"$lt_prog_compiler_pic_works" = xyes; then
6497     case $lt_prog_compiler_pic in
6498      "" | " "*) ;;
6499      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
6500      esac
6501 else
6502     lt_prog_compiler_pic=
6503      lt_prog_compiler_can_build_shared=no
6504 fi
6505
6506 fi
6507 case "$host_os" in
6508   # For platforms which do not support PIC, -DPIC is meaningless:
6509   *djgpp*)
6510     lt_prog_compiler_pic=
6511     ;;
6512   *)
6513     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
6514     ;;
6515 esac
6516
6517 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
6518 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
6519 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
6520   echo $ECHO_N "(cached) $ECHO_C" >&6
6521 else
6522   lt_cv_prog_compiler_c_o=no
6523    $rm -r conftest 2>/dev/null
6524    mkdir conftest
6525    cd conftest
6526    mkdir out
6527    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6528
6529    # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
6530    # that will create temporary files in the current directory regardless of
6531    # the output directory.  Thus, making CWD read-only will cause this test
6532    # to fail, enabling locking or at least warning the user not to do parallel
6533    # builds.
6534    chmod -w .
6535
6536    lt_compiler_flag="-o out/conftest2.$ac_objext"
6537    # Insert the option either (1) after the last *FLAGS variable, or
6538    # (2) before a word containing "conftest.", or (3) at the end.
6539    # Note that $ac_compile itself does not contain backslashes and begins
6540    # with a dollar sign (not a hyphen), so the echo should work correctly.
6541    lt_compile=`echo "$ac_compile" | $SED \
6542    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
6543    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6544    -e 's:$: $lt_compiler_flag:'`
6545    (eval echo "\"\$as_me:6545: $lt_compile\"" >&5)
6546    (eval "$lt_compile" 2>out/conftest.err)
6547    ac_status=$?
6548    cat out/conftest.err >&5
6549    echo "$as_me:6549: \$? = $ac_status" >&5
6550    if (exit $ac_status) && test -s out/conftest2.$ac_objext
6551    then
6552      # The compiler can only warn and ignore the option if not recognized
6553      # So say no if there are warnings
6554      if test ! -s out/conftest.err; then
6555        lt_cv_prog_compiler_c_o=yes
6556      fi
6557    fi
6558    chmod u+w .
6559    $rm conftest* out/*
6560    rmdir out
6561    cd ..
6562    rmdir conftest
6563    $rm conftest*
6564
6565 fi
6566 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
6567 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
6568
6569
6570 hard_links="nottested"
6571 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
6572   # do not overwrite the value of need_locks provided by the user
6573   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
6574 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
6575   hard_links=yes
6576   $rm conftest*
6577   ln conftest.a conftest.b 2>/dev/null && hard_links=no
6578   touch conftest.a
6579   ln conftest.a conftest.b 2>&5 || hard_links=no
6580   ln conftest.a conftest.b 2>/dev/null && hard_links=no
6581   echo "$as_me:$LINENO: result: $hard_links" >&5
6582 echo "${ECHO_T}$hard_links" >&6
6583   if test "$hard_links" = no; then
6584     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
6585 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
6586     need_locks=warn
6587   fi
6588 else
6589   need_locks=no
6590 fi
6591
6592 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
6593 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
6594
6595   runpath_var=
6596   allow_undefined_flag=
6597   enable_shared_with_static_runtimes=no
6598   archive_cmds=
6599   archive_expsym_cmds=
6600   old_archive_From_new_cmds=
6601   old_archive_from_expsyms_cmds=
6602   export_dynamic_flag_spec=
6603   whole_archive_flag_spec=
6604   thread_safe_flag_spec=
6605   hardcode_libdir_flag_spec=
6606   hardcode_libdir_flag_spec_ld=
6607   hardcode_libdir_separator=
6608   hardcode_direct=no
6609   hardcode_minus_L=no
6610   hardcode_shlibpath_var=unsupported
6611   link_all_deplibs=unknown
6612   hardcode_automatic=no
6613   module_cmds=
6614   module_expsym_cmds=
6615   always_export_symbols=no
6616   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
6617   # include_expsyms should be a list of space-separated symbols to be *always*
6618   # included in the symbol list
6619   include_expsyms=
6620   # exclude_expsyms can be an extended regexp of symbols to exclude
6621   # it will be wrapped by ` (' and `)$', so one must not match beginning or
6622   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
6623   # as well as any symbol that contains `d'.
6624   exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
6625   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
6626   # platforms (ab)use it in PIC code, but their linkers get confused if
6627   # the symbol is explicitly referenced.  Since portable code cannot
6628   # rely on this symbol name, it's probably fine to never include it in
6629   # preloaded symbol tables.
6630   extract_expsyms_cmds=
6631
6632   case $host_os in
6633   cygwin* | mingw* | pw32*)
6634     # FIXME: the MSVC++ port hasn't been tested in a loooong time
6635     # When not using gcc, we currently assume that we are using
6636     # Microsoft Visual C++.
6637     if test "$GCC" != yes; then
6638       with_gnu_ld=no
6639     fi
6640     ;;
6641   openbsd*)
6642     with_gnu_ld=no
6643     ;;
6644   esac
6645
6646   ld_shlibs=yes
6647   if test "$with_gnu_ld" = yes; then
6648     # If archive_cmds runs LD, not CC, wlarc should be empty
6649     wlarc='${wl}'
6650
6651     # See if GNU ld supports shared libraries.
6652     case $host_os in
6653     aix3* | aix4* | aix5*)
6654       # On AIX/PPC, the GNU linker is very broken
6655       if test "$host_cpu" != ia64; then
6656         ld_shlibs=no
6657         cat <<EOF 1>&2
6658
6659 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
6660 *** to be unable to reliably create shared libraries on AIX.
6661 *** Therefore, libtool is disabling shared libraries support.  If you
6662 *** really care for shared libraries, you may want to modify your PATH
6663 *** so that a non-GNU linker is found, and then restart.
6664
6665 EOF
6666       fi
6667       ;;
6668
6669     amigaos*)
6670       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)'
6671       hardcode_libdir_flag_spec='-L$libdir'
6672       hardcode_minus_L=yes
6673
6674       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
6675       # that the semantics of dynamic libraries on AmigaOS, at least up
6676       # to version 4, is to share data among multiple programs linked
6677       # with the same dynamic library.  Since this doesn't match the
6678       # behavior of shared libraries on other platforms, we can't use
6679       # them.
6680       ld_shlibs=no
6681       ;;
6682
6683     beos*)
6684       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6685         allow_undefined_flag=unsupported
6686         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
6687         # support --undefined.  This deserves some investigation.  FIXME
6688         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6689       else
6690         ld_shlibs=no
6691       fi
6692       ;;
6693
6694     cygwin* | mingw* | pw32*)
6695       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
6696       # as there is no search path for DLLs.
6697       hardcode_libdir_flag_spec='-L$libdir'
6698       allow_undefined_flag=unsupported
6699       always_export_symbols=no
6700       enable_shared_with_static_runtimes=yes
6701       export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
6702
6703       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
6704         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
6705         # If the export-symbols file already is a .def file (1st line
6706         # is EXPORTS), use it as is; otherwise, prepend...
6707         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
6708           cp $export_symbols $output_objdir/$soname.def;
6709         else
6710           echo EXPORTS > $output_objdir/$soname.def;
6711           cat $export_symbols >> $output_objdir/$soname.def;
6712         fi~
6713         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
6714       else
6715         ld_shlibs=no
6716       fi
6717       ;;
6718
6719     netbsd*)
6720       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6721         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
6722         wlarc=
6723       else
6724         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6725         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6726       fi
6727       ;;
6728
6729     solaris* | sysv5*)
6730       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
6731         ld_shlibs=no
6732         cat <<EOF 1>&2
6733
6734 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
6735 *** create shared libraries on Solaris systems.  Therefore, libtool
6736 *** is disabling shared libraries support.  We urge you to upgrade GNU
6737 *** binutils to release 2.9.1 or newer.  Another option is to modify
6738 *** your PATH or compiler configuration so that the native linker is
6739 *** used, and then restart.
6740
6741 EOF
6742       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6743         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6744         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6745       else
6746         ld_shlibs=no
6747       fi
6748       ;;
6749
6750     sunos4*)
6751       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6752       wlarc=
6753       hardcode_direct=yes
6754       hardcode_shlibpath_var=no
6755       ;;
6756
6757     *)
6758       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6759         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6760         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6761       else
6762         ld_shlibs=no
6763       fi
6764       ;;
6765     esac
6766
6767     if test "$ld_shlibs" = yes; then
6768       runpath_var=LD_RUN_PATH
6769       hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
6770       export_dynamic_flag_spec='${wl}--export-dynamic'
6771       # ancient GNU ld didn't support --whole-archive et. al.
6772       if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
6773         whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
6774       else
6775         whole_archive_flag_spec=
6776       fi
6777     fi
6778   else
6779     # PORTME fill in a description of your system's linker (not GNU ld)
6780     case $host_os in
6781     aix3*)
6782       allow_undefined_flag=unsupported
6783       always_export_symbols=yes
6784       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'
6785       # Note: this linker hardcodes the directories in LIBPATH if there
6786       # are no directories specified by -L.
6787       hardcode_minus_L=yes
6788       if test "$GCC" = yes && test -z "$link_static_flag"; then
6789         # Neither direct hardcoding nor static linking is supported with a
6790         # broken collect2.
6791         hardcode_direct=unsupported
6792       fi
6793       ;;
6794
6795     aix4* | aix5*)
6796       if test "$host_cpu" = ia64; then
6797         # On IA64, the linker does run time linking by default, so we don't
6798         # have to do anything special.
6799         aix_use_runtimelinking=no
6800         exp_sym_flag='-Bexport'
6801         no_entry_flag=""
6802       else
6803         # If we're using GNU nm, then we don't want the "-C" option.
6804         # -C means demangle to AIX nm, but means don't demangle with GNU nm
6805         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
6806           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'
6807         else
6808           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'
6809         fi
6810         aix_use_runtimelinking=no
6811
6812         # Test if we are trying to use run time linking or normal
6813         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
6814         # need to do runtime linking.
6815         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
6816           for ld_flag in $LDFLAGS; do
6817           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
6818             aix_use_runtimelinking=yes
6819             break
6820           fi
6821           done
6822         esac
6823
6824         exp_sym_flag='-bexport'
6825         no_entry_flag='-bnoentry'
6826       fi
6827
6828       # When large executables or shared objects are built, AIX ld can
6829       # have problems creating the table of contents.  If linking a library
6830       # or program results in "error TOC overflow" add -mminimal-toc to
6831       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
6832       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
6833
6834       archive_cmds=''
6835       hardcode_direct=yes
6836       hardcode_libdir_separator=':'
6837       link_all_deplibs=yes
6838
6839       if test "$GCC" = yes; then
6840         case $host_os in aix4.012|aix4.012.*)
6841         # We only want to do this on AIX 4.2 and lower, the check
6842         # below for broken collect2 doesn't work under 4.3+
6843           collect2name=`${CC} -print-prog-name=collect2`
6844           if test -f "$collect2name" && \
6845            strings "$collect2name" | grep resolve_lib_name >/dev/null
6846           then
6847           # We have reworked collect2
6848           hardcode_direct=yes
6849           else
6850           # We have old collect2
6851           hardcode_direct=unsupported
6852           # It fails to find uninstalled libraries when the uninstalled
6853           # path is not listed in the libpath.  Setting hardcode_minus_L
6854           # to unsupported forces relinking
6855           hardcode_minus_L=yes
6856           hardcode_libdir_flag_spec='-L$libdir'
6857           hardcode_libdir_separator=
6858           fi
6859         esac
6860         shared_flag='-shared'
6861       else
6862         # not using gcc
6863         if test "$host_cpu" = ia64; then
6864         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
6865         # chokes on -Wl,-G. The following line is correct:
6866           shared_flag='-G'
6867         else
6868         if test "$aix_use_runtimelinking" = yes; then
6869             shared_flag='${wl}-G'
6870           else
6871             shared_flag='${wl}-bM:SRE'
6872         fi
6873         fi
6874       fi
6875
6876       # It seems that -bexpall does not export symbols beginning with
6877       # underscore (_), so it is better to generate a list of symbols to export.
6878       always_export_symbols=yes
6879       if test "$aix_use_runtimelinking" = yes; then
6880         # Warning - without using the other runtime loading flags (-brtl),
6881         # -berok will link without error, but may produce a broken library.
6882         allow_undefined_flag='-berok'
6883        # Determine the default libpath from the value encoded in an empty executable.
6884        cat >conftest.$ac_ext <<_ACEOF
6885 #line $LINENO "configure"
6886 /* confdefs.h.  */
6887 _ACEOF
6888 cat confdefs.h >>conftest.$ac_ext
6889 cat >>conftest.$ac_ext <<_ACEOF
6890 /* end confdefs.h.  */
6891
6892 int
6893 main ()
6894 {
6895
6896   ;
6897   return 0;
6898 }
6899 _ACEOF
6900 rm -f conftest.$ac_objext conftest$ac_exeext
6901 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6902   (eval $ac_link) 2>&5
6903   ac_status=$?
6904   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6905   (exit $ac_status); } &&
6906          { ac_try='test -s conftest$ac_exeext'
6907   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6908   (eval $ac_try) 2>&5
6909   ac_status=$?
6910   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6911   (exit $ac_status); }; }; then
6912
6913 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
6914 }'`
6915 # Check for a 64-bit object if we didn't find anything.
6916 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; }
6917 }'`; fi
6918 else
6919   echo "$as_me: failed program was:" >&5
6920 sed 's/^/| /' conftest.$ac_ext >&5
6921
6922 fi
6923 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6924 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
6925
6926        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
6927         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"
6928        else
6929         if test "$host_cpu" = ia64; then
6930           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
6931           allow_undefined_flag="-z nodefs"
6932           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"
6933         else
6934          # Determine the default libpath from the value encoded in an empty executable.
6935          cat >conftest.$ac_ext <<_ACEOF
6936 #line $LINENO "configure"
6937 /* confdefs.h.  */
6938 _ACEOF
6939 cat confdefs.h >>conftest.$ac_ext
6940 cat >>conftest.$ac_ext <<_ACEOF
6941 /* end confdefs.h.  */
6942
6943 int
6944 main ()
6945 {
6946
6947   ;
6948   return 0;
6949 }
6950 _ACEOF
6951 rm -f conftest.$ac_objext conftest$ac_exeext
6952 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6953   (eval $ac_link) 2>&5
6954   ac_status=$?
6955   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6956   (exit $ac_status); } &&
6957          { ac_try='test -s conftest$ac_exeext'
6958   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6959   (eval $ac_try) 2>&5
6960   ac_status=$?
6961   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6962   (exit $ac_status); }; }; then
6963
6964 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
6965 }'`
6966 # Check for a 64-bit object if we didn't find anything.
6967 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; }
6968 }'`; fi
6969 else
6970   echo "$as_me: failed program was:" >&5
6971 sed 's/^/| /' conftest.$ac_ext >&5
6972
6973 fi
6974 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6975 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
6976
6977          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
6978           # Warning - without using the other run time loading flags,
6979           # -berok will link without error, but may produce a broken library.
6980           no_undefined_flag=' ${wl}-bernotok'
6981           allow_undefined_flag=' ${wl}-berok'
6982           # -bexpall does not export symbols beginning with underscore (_)
6983           always_export_symbols=yes
6984           # Exported symbols can be pulled into shared objects from archives
6985           whole_archive_flag_spec=' '
6986           archive_cmds_need_lc=yes
6987           # This is similar to how AIX traditionally builds it's shared libraries.
6988           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'
6989         fi
6990       fi
6991       ;;
6992
6993     amigaos*)
6994       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)'
6995       hardcode_libdir_flag_spec='-L$libdir'
6996       hardcode_minus_L=yes
6997       # see comment about different semantics on the GNU ld section
6998       ld_shlibs=no
6999       ;;
7000
7001     bsdi4*)
7002       export_dynamic_flag_spec=-rdynamic
7003       ;;
7004
7005     cygwin* | mingw* | pw32*)
7006       # When not using gcc, we currently assume that we are using
7007       # Microsoft Visual C++.
7008       # hardcode_libdir_flag_spec is actually meaningless, as there is
7009       # no search path for DLLs.
7010       hardcode_libdir_flag_spec=' '
7011       allow_undefined_flag=unsupported
7012       # Tell ltmain to make .lib files, not .a files.
7013       libext=lib
7014       # Tell ltmain to make .dll files, not .so files.
7015       shrext=".dll"
7016       # FIXME: Setting linknames here is a bad hack.
7017       archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
7018       # The linker will automatically build a .lib file if we build a DLL.
7019       old_archive_From_new_cmds='true'
7020       # FIXME: Should let the user specify the lib program.
7021       old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
7022       fix_srcfile_path='`cygpath -w "$srcfile"`'
7023       enable_shared_with_static_runtimes=yes
7024       ;;
7025
7026     darwin* | rhapsody*)
7027     if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
7028       archive_cmds_need_lc=no
7029       case "$host_os" in
7030       rhapsody* | darwin1.[012])
7031         allow_undefined_flag='-undefined suppress'
7032         ;;
7033       *) # Darwin 1.3 on
7034         test -z ${LD_TWOLEVEL_NAMESPACE} && allow_undefined_flag='-flat_namespace -undefined suppress'
7035         ;;
7036       esac
7037       # FIXME: Relying on posixy $() will cause problems for
7038       #        cross-compilation, but unfortunately the echo tests do not
7039       #        yet detect zsh echo's removal of \ escapes.  Also zsh mangles
7040       #        `"' quotes if we put them in here... so don't!
7041         lt_int_apple_cc_single_mod=no
7042         output_verbose_link_cmd='echo'
7043         if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
7044           lt_int_apple_cc_single_mod=yes
7045         fi
7046         if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
7047           archive_cmds='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
7048         else
7049         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'
7050       fi
7051       module_cmds='$CC -bundle ${wl}-bind_at_load $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags'
7052       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
7053         if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
7054           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}'
7055         else
7056           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}'
7057         fi
7058           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}'
7059       hardcode_direct=no
7060       hardcode_automatic=yes
7061       hardcode_shlibpath_var=unsupported
7062       whole_archive_flag_spec='-all_load $convenience'
7063       link_all_deplibs=yes
7064     fi
7065       ;;
7066
7067     dgux*)
7068       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7069       hardcode_libdir_flag_spec='-L$libdir'
7070       hardcode_shlibpath_var=no
7071       ;;
7072
7073     freebsd1*)
7074       ld_shlibs=no
7075       ;;
7076
7077     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
7078     # support.  Future versions do this automatically, but an explicit c++rt0.o
7079     # does not break anything, and helps significantly (at the cost of a little
7080     # extra space).
7081     freebsd2.2*)
7082       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
7083       hardcode_libdir_flag_spec='-R$libdir'
7084       hardcode_direct=yes
7085       hardcode_shlibpath_var=no
7086       ;;
7087
7088     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
7089     freebsd2*)
7090       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7091       hardcode_direct=yes
7092       hardcode_minus_L=yes
7093       hardcode_shlibpath_var=no
7094       ;;
7095
7096     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
7097     freebsd*)
7098       archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
7099       hardcode_libdir_flag_spec='-R$libdir'
7100       hardcode_direct=yes
7101       hardcode_shlibpath_var=no
7102       ;;
7103
7104     hpux9*)
7105       if test "$GCC" = yes; then
7106         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'
7107       else
7108         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'
7109       fi
7110       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7111       hardcode_libdir_separator=:
7112       hardcode_direct=yes
7113
7114       # hardcode_minus_L: Not really in the search PATH,
7115       # but as the default location of the library.
7116       hardcode_minus_L=yes
7117       export_dynamic_flag_spec='${wl}-E'
7118       ;;
7119
7120     hpux10* | hpux11*)
7121       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
7122         case "$host_cpu" in
7123         hppa*64*|ia64*)
7124           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7125           ;;
7126         *)
7127           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7128           ;;
7129         esac
7130       else
7131         case "$host_cpu" in
7132         hppa*64*|ia64*)
7133           archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
7134           ;;
7135         *)
7136           archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
7137           ;;
7138         esac
7139       fi
7140       if test "$with_gnu_ld" = no; then
7141         case "$host_cpu" in
7142         hppa*64*)
7143           hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7144           hardcode_libdir_flag_spec_ld='+b $libdir'
7145           hardcode_libdir_separator=:
7146           hardcode_direct=no
7147           hardcode_shlibpath_var=no
7148           ;;
7149         ia64*)
7150           hardcode_libdir_flag_spec='-L$libdir'
7151           hardcode_direct=no
7152           hardcode_shlibpath_var=no
7153
7154           # hardcode_minus_L: Not really in the search PATH,
7155           # but as the default location of the library.
7156           hardcode_minus_L=yes
7157           ;;
7158         *)
7159           hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7160           hardcode_libdir_separator=:
7161           hardcode_direct=yes
7162           export_dynamic_flag_spec='${wl}-E'
7163
7164           # hardcode_minus_L: Not really in the search PATH,
7165           # but as the default location of the library.
7166           hardcode_minus_L=yes
7167           ;;
7168         esac
7169       fi
7170       ;;
7171
7172     irix5* | irix6* | nonstopux*)
7173       if test "$GCC" = yes; then
7174         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'
7175       else
7176         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'
7177         hardcode_libdir_flag_spec_ld='-rpath $libdir'
7178       fi
7179       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7180       hardcode_libdir_separator=:
7181       link_all_deplibs=yes
7182       ;;
7183
7184     netbsd*)
7185       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7186         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
7187       else
7188         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
7189       fi
7190       hardcode_libdir_flag_spec='-R$libdir'
7191       hardcode_direct=yes
7192       hardcode_shlibpath_var=no
7193       ;;
7194
7195     newsos6)
7196       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7197       hardcode_direct=yes
7198       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7199       hardcode_libdir_separator=:
7200       hardcode_shlibpath_var=no
7201       ;;
7202
7203     openbsd*)
7204       hardcode_direct=yes
7205       hardcode_shlibpath_var=no
7206       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7207         archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7208         hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7209         export_dynamic_flag_spec='${wl}-E'
7210       else
7211        case $host_os in
7212          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
7213            archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7214            hardcode_libdir_flag_spec='-R$libdir'
7215            ;;
7216          *)
7217            archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7218            hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7219            ;;
7220        esac
7221       fi
7222       ;;
7223
7224     os2*)
7225       hardcode_libdir_flag_spec='-L$libdir'
7226       hardcode_minus_L=yes
7227       allow_undefined_flag=unsupported
7228       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'
7229       old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
7230       ;;
7231
7232     osf3*)
7233       if test "$GCC" = yes; then
7234         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7235         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'
7236       else
7237         allow_undefined_flag=' -expect_unresolved \*'
7238         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'
7239       fi
7240       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7241       hardcode_libdir_separator=:
7242       ;;
7243
7244     osf4* | osf5*)      # as osf3* with the addition of -msym flag
7245       if test "$GCC" = yes; then
7246         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7247         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'
7248         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7249       else
7250         allow_undefined_flag=' -expect_unresolved \*'
7251         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'
7252         archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
7253         $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'
7254
7255         # Both c and cxx compiler support -rpath directly
7256         hardcode_libdir_flag_spec='-rpath $libdir'
7257       fi
7258       hardcode_libdir_separator=:
7259       ;;
7260
7261     sco3.2v5*)
7262       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7263       hardcode_shlibpath_var=no
7264       export_dynamic_flag_spec='${wl}-Bexport'
7265       runpath_var=LD_RUN_PATH
7266       hardcode_runpath_var=yes
7267       ;;
7268
7269     solaris*)
7270       no_undefined_flag=' -z text'
7271       if test "$GCC" = yes; then
7272         archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7273         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7274           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
7275       else
7276         archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
7277         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7278         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
7279       fi
7280       hardcode_libdir_flag_spec='-R$libdir'
7281       hardcode_shlibpath_var=no
7282       case $host_os in
7283       solaris2.[0-5] | solaris2.[0-5].*) ;;
7284       *) # Supported since Solaris 2.6 (maybe 2.5.1?)
7285         whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
7286       esac
7287       link_all_deplibs=yes
7288       ;;
7289
7290     sunos4*)
7291       if test "x$host_vendor" = xsequent; then
7292         # Use $CC to link under sequent, because it throws in some extra .o
7293         # files that make .init and .fini sections work.
7294         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
7295       else
7296         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
7297       fi
7298       hardcode_libdir_flag_spec='-L$libdir'
7299       hardcode_direct=yes
7300       hardcode_minus_L=yes
7301       hardcode_shlibpath_var=no
7302       ;;
7303
7304     sysv4)
7305       case $host_vendor in
7306         sni)
7307           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7308           hardcode_direct=yes # is this really true???
7309         ;;
7310         siemens)
7311           ## LD is ld it makes a PLAMLIB
7312           ## CC just makes a GrossModule.
7313           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
7314           reload_cmds='$CC -r -o $output$reload_objs'
7315           hardcode_direct=no
7316         ;;
7317         motorola)
7318           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7319           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
7320         ;;
7321       esac
7322       runpath_var='LD_RUN_PATH'
7323       hardcode_shlibpath_var=no
7324       ;;
7325
7326     sysv4.3*)
7327       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7328       hardcode_shlibpath_var=no
7329       export_dynamic_flag_spec='-Bexport'
7330       ;;
7331
7332     sysv4*MP*)
7333       if test -d /usr/nec; then
7334         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7335         hardcode_shlibpath_var=no
7336         runpath_var=LD_RUN_PATH
7337         hardcode_runpath_var=yes
7338         ld_shlibs=yes
7339       fi
7340       ;;
7341
7342     sysv4.2uw2*)
7343       archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
7344       hardcode_direct=yes
7345       hardcode_minus_L=no
7346       hardcode_shlibpath_var=no
7347       hardcode_runpath_var=yes
7348       runpath_var=LD_RUN_PATH
7349       ;;
7350
7351    sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
7352       no_undefined_flag='${wl}-z ${wl}text'
7353       if test "$GCC" = yes; then
7354         archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7355       else
7356         archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7357       fi
7358       runpath_var='LD_RUN_PATH'
7359       hardcode_shlibpath_var=no
7360       ;;
7361
7362     sysv5*)
7363       no_undefined_flag=' -z text'
7364       # $CC -shared without GNU ld will not create a library from C++
7365       # object files and a static libstdc++, better avoid it by now
7366       archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
7367       archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7368                 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
7369       hardcode_libdir_flag_spec=
7370       hardcode_shlibpath_var=no
7371       runpath_var='LD_RUN_PATH'
7372       ;;
7373
7374     uts4*)
7375       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7376       hardcode_libdir_flag_spec='-L$libdir'
7377       hardcode_shlibpath_var=no
7378       ;;
7379
7380     *)
7381       ld_shlibs=no
7382       ;;
7383     esac
7384   fi
7385
7386 echo "$as_me:$LINENO: result: $ld_shlibs" >&5
7387 echo "${ECHO_T}$ld_shlibs" >&6
7388 test "$ld_shlibs" = no && can_build_shared=no
7389
7390 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
7391 if test "$GCC" = yes; then
7392   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
7393 fi
7394
7395 #
7396 # Do we need to explicitly link libc?
7397 #
7398 case "x$archive_cmds_need_lc" in
7399 x|xyes)
7400   # Assume -lc should be added
7401   archive_cmds_need_lc=yes
7402
7403   if test "$enable_shared" = yes && test "$GCC" = yes; then
7404     case $archive_cmds in
7405     *'~'*)
7406       # FIXME: we may have to deal with multi-command sequences.
7407       ;;
7408     '$CC '*)
7409       # Test whether the compiler implicitly links with -lc since on some
7410       # systems, -lgcc has to come before -lc. If gcc already passes -lc
7411       # to ld, don't add -lc before -lgcc.
7412       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
7413 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
7414       $rm conftest*
7415       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7416
7417       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7418   (eval $ac_compile) 2>&5
7419   ac_status=$?
7420   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7421   (exit $ac_status); } 2>conftest.err; then
7422         soname=conftest
7423         lib=conftest
7424         libobjs=conftest.$ac_objext
7425         deplibs=
7426         wl=$lt_prog_compiler_wl
7427         compiler_flags=-v
7428         linker_flags=-v
7429         verstring=
7430         output_objdir=.
7431         libname=conftest
7432         lt_save_allow_undefined_flag=$allow_undefined_flag
7433         allow_undefined_flag=
7434         if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
7435   (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
7436   ac_status=$?
7437   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7438   (exit $ac_status); }
7439         then
7440           archive_cmds_need_lc=no
7441         else
7442           archive_cmds_need_lc=yes
7443         fi
7444         allow_undefined_flag=$lt_save_allow_undefined_flag
7445       else
7446         cat conftest.err 1>&5
7447       fi
7448       $rm conftest*
7449       echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
7450 echo "${ECHO_T}$archive_cmds_need_lc" >&6
7451       ;;
7452     esac
7453   fi
7454   ;;
7455 esac
7456
7457 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
7458 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
7459 hardcode_action=
7460 if test -n "$hardcode_libdir_flag_spec" || \
7461    test -n "$runpath_var " || \
7462    test "X$hardcode_automatic"="Xyes" ; then
7463
7464   # We can hardcode non-existant directories.
7465   if test "$hardcode_direct" != no &&
7466      # If the only mechanism to avoid hardcoding is shlibpath_var, we
7467      # have to relink, otherwise we might link with an installed library
7468      # when we should be linking with a yet-to-be-installed one
7469      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
7470      test "$hardcode_minus_L" != no; then
7471     # Linking always hardcodes the temporary library directory.
7472     hardcode_action=relink
7473   else
7474     # We can link without hardcoding, and we can hardcode nonexisting dirs.
7475     hardcode_action=immediate
7476   fi
7477 else
7478   # We cannot hardcode anything, or else we can only hardcode existing
7479   # directories.
7480   hardcode_action=unsupported
7481 fi
7482 echo "$as_me:$LINENO: result: $hardcode_action" >&5
7483 echo "${ECHO_T}$hardcode_action" >&6
7484
7485 if test "$hardcode_action" = relink; then
7486   # Fast installation is not supported
7487   enable_fast_install=no
7488 elif test "$shlibpath_overrides_runpath" = yes ||
7489      test "$enable_shared" = no; then
7490   # Fast installation is not necessary
7491   enable_fast_install=needless
7492 fi
7493
7494 striplib=
7495 old_striplib=
7496 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
7497 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
7498 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
7499   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
7500   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
7501   echo "$as_me:$LINENO: result: yes" >&5
7502 echo "${ECHO_T}yes" >&6
7503 else
7504 # FIXME - insert some real tests, host_os isn't really good enough
7505   case $host_os in
7506    darwin*)
7507        if test -n "$STRIP" ; then
7508          striplib="$STRIP -x"
7509          echo "$as_me:$LINENO: result: yes" >&5
7510 echo "${ECHO_T}yes" >&6
7511        else
7512   echo "$as_me:$LINENO: result: no" >&5
7513 echo "${ECHO_T}no" >&6
7514 fi
7515        ;;
7516    *)
7517   echo "$as_me:$LINENO: result: no" >&5
7518 echo "${ECHO_T}no" >&6
7519     ;;
7520   esac
7521 fi
7522
7523 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
7524 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
7525 library_names_spec=
7526 libname_spec='lib$name'
7527 soname_spec=
7528 shrext=".so"
7529 postinstall_cmds=
7530 postuninstall_cmds=
7531 finish_cmds=
7532 finish_eval=
7533 shlibpath_var=
7534 shlibpath_overrides_runpath=unknown
7535 version_type=none
7536 dynamic_linker="$host_os ld.so"
7537 sys_lib_dlsearch_path_spec="/lib /usr/lib"
7538 if test "$GCC" = yes; then
7539   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
7540   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
7541     # if the path contains ";" then we assume it to be the separator
7542     # otherwise default to the standard path separator (i.e. ":") - it is
7543     # assumed that no part of a normal pathname contains ";" but that should
7544     # okay in the real world where ";" in dirpaths is itself problematic.
7545     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
7546   else
7547     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
7548   fi
7549 else
7550   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
7551 fi
7552 need_lib_prefix=unknown
7553 hardcode_into_libs=no
7554
7555 # when you set need_version to no, make sure it does not cause -set_version
7556 # flags to be left without arguments
7557 need_version=unknown
7558
7559 case $host_os in
7560 aix3*)
7561   version_type=linux
7562   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
7563   shlibpath_var=LIBPATH
7564
7565   # AIX 3 has no versioning support, so we append a major version to the name.
7566   soname_spec='${libname}${release}${shared_ext}$major'
7567   ;;
7568
7569 aix4* | aix5*)
7570   version_type=linux
7571   need_lib_prefix=no
7572   need_version=no
7573   hardcode_into_libs=yes
7574   if test "$host_cpu" = ia64; then
7575     # AIX 5 supports IA64
7576     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
7577     shlibpath_var=LD_LIBRARY_PATH
7578   else
7579     # With GCC up to 2.95.x, collect2 would create an import file
7580     # for dependence libraries.  The import file would start with
7581     # the line `#! .'.  This would cause the generated library to
7582     # depend on `.', always an invalid library.  This was fixed in
7583     # development snapshots of GCC prior to 3.0.
7584     case $host_os in
7585       aix4 | aix4.[01] | aix4.[01].*)
7586       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
7587            echo ' yes '
7588            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
7589         :
7590       else
7591         can_build_shared=no
7592       fi
7593       ;;
7594     esac
7595     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
7596     # soname into executable. Probably we can add versioning support to
7597     # collect2, so additional links can be useful in future.
7598     if test "$aix_use_runtimelinking" = yes; then
7599       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
7600       # instead of lib<name>.a to let people know that these are not
7601       # typical AIX shared libraries.
7602       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7603     else
7604       # We preserve .a as extension for shared libraries through AIX4.2
7605       # and later when we are not doing run time linking.
7606       library_names_spec='${libname}${release}.a $libname.a'
7607       soname_spec='${libname}${release}${shared_ext}$major'
7608     fi
7609     shlibpath_var=LIBPATH
7610   fi
7611   ;;
7612
7613 amigaos*)
7614   library_names_spec='$libname.ixlibrary $libname.a'
7615   # Create ${libname}_ixlibrary.a entries in /sys/libs.
7616   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'
7617   ;;
7618
7619 beos*)
7620   library_names_spec='${libname}${shared_ext}'
7621   dynamic_linker="$host_os ld.so"
7622   shlibpath_var=LIBRARY_PATH
7623   ;;
7624
7625 bsdi4*)
7626   version_type=linux
7627   need_version=no
7628   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7629   soname_spec='${libname}${release}${shared_ext}$major'
7630   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
7631   shlibpath_var=LD_LIBRARY_PATH
7632   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
7633   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
7634   # the default ld.so.conf also contains /usr/contrib/lib and
7635   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
7636   # libtool to hard-code these into programs
7637   ;;
7638
7639 cygwin* | mingw* | pw32*)
7640   version_type=windows
7641   shrext=".dll"
7642   need_version=no
7643   need_lib_prefix=no
7644
7645   case $GCC,$host_os in
7646   yes,cygwin* | yes,mingw* | yes,pw32*)
7647     library_names_spec='$libname.dll.a'
7648     # DLL is installed to $(libdir)/../bin by postinstall_cmds
7649     postinstall_cmds='base_file=`basename \${file}`~
7650       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
7651       dldir=$destdir/`dirname \$dlpath`~
7652       test -d \$dldir || mkdir -p \$dldir~
7653       $install_prog $dir/$dlname \$dldir/$dlname'
7654     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
7655       dlpath=$dir/\$dldll~
7656        $rm \$dlpath'
7657     shlibpath_overrides_runpath=yes
7658
7659     case $host_os in
7660     cygwin*)
7661       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
7662       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7663       sys_lib_search_path_spec="/lib /lib/w32api /usr/lib /usr/local/lib"
7664       ;;
7665     mingw*)
7666       # MinGW DLLs use traditional 'lib' prefix
7667       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7668       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
7669       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
7670         # It is most probably a Windows format PATH printed by
7671         # mingw gcc, but we are running on Cygwin. Gcc prints its search
7672         # path with ; separators, and with drive letters. We can handle the
7673         # drive letters (cygwin fileutils understands them), so leave them,
7674         # especially as we might pass files found there to a mingw objdump,
7675         # which wouldn't understand a cygwinified path. Ahh.
7676         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
7677       else
7678         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
7679       fi
7680       ;;
7681     pw32*)
7682       # pw32 DLLs use 'pw' prefix rather than 'lib'
7683       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
7684       ;;
7685     esac
7686     ;;
7687
7688   *)
7689     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
7690     ;;
7691   esac
7692   dynamic_linker='Win32 ld.exe'
7693   # FIXME: first we should search . and the directory the executable is in
7694   shlibpath_var=PATH
7695   ;;
7696
7697 darwin* | rhapsody*)
7698   dynamic_linker="$host_os dyld"
7699   version_type=darwin
7700   need_lib_prefix=no
7701   need_version=no
7702   # FIXME: Relying on posixy $() will cause problems for
7703   #        cross-compilation, but unfortunately the echo tests do not
7704   #        yet detect zsh echo's removal of \ escapes.
7705   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
7706   soname_spec='${libname}${release}${major}$shared_ext'
7707   shlibpath_overrides_runpath=yes
7708   shlibpath_var=DYLD_LIBRARY_PATH
7709   shrext='$(test .$module = .yes && echo .so || echo .dylib)'
7710   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
7711   if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
7712   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"`
7713   fi
7714   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
7715   ;;
7716
7717 dgux*)
7718   version_type=linux
7719   need_lib_prefix=no
7720   need_version=no
7721   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
7722   soname_spec='${libname}${release}${shared_ext}$major'
7723   shlibpath_var=LD_LIBRARY_PATH
7724   ;;
7725
7726 freebsd1*)
7727   dynamic_linker=no
7728   ;;
7729
7730 freebsd*)
7731   objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
7732   version_type=freebsd-$objformat
7733   case $version_type in
7734     freebsd-elf*)
7735       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
7736       need_version=no
7737       need_lib_prefix=no
7738       ;;
7739     freebsd-*)
7740       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
7741       need_version=yes
7742       ;;
7743   esac
7744   shlibpath_var=LD_LIBRARY_PATH
7745   case $host_os in
7746   freebsd2*)
7747     shlibpath_overrides_runpath=yes
7748     ;;
7749   freebsd3.01* | freebsdelf3.01*)
7750     shlibpath_overrides_runpath=yes
7751     hardcode_into_libs=yes
7752     ;;
7753   *) # from 3.2 on
7754     shlibpath_overrides_runpath=no
7755     hardcode_into_libs=yes
7756     ;;
7757   esac
7758   ;;
7759
7760 gnu*)
7761   version_type=linux
7762   need_lib_prefix=no
7763   need_version=no
7764   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
7765   soname_spec='${libname}${release}${shared_ext}$major'
7766   shlibpath_var=LD_LIBRARY_PATH
7767   hardcode_into_libs=yes
7768   ;;
7769
7770 hpux9* | hpux10* | hpux11*)
7771   # Give a soname corresponding to the major version so that dld.sl refuses to
7772   # link against other versions.
7773   version_type=sunos
7774   need_lib_prefix=no
7775   need_version=no
7776   case "$host_cpu" in
7777   ia64*)
7778     shrext='.so'
7779     hardcode_into_libs=yes
7780     dynamic_linker="$host_os dld.so"
7781     shlibpath_var=LD_LIBRARY_PATH
7782     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
7783     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7784     soname_spec='${libname}${release}${shared_ext}$major'
7785     if test "X$HPUX_IA64_MODE" = X32; then
7786       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
7787     else
7788       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
7789     fi
7790     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
7791     ;;
7792    hppa*64*)
7793      shrext='.sl'
7794      hardcode_into_libs=yes
7795      dynamic_linker="$host_os dld.sl"
7796      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
7797      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
7798      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7799      soname_spec='${libname}${release}${shared_ext}$major'
7800      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
7801      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
7802      ;;
7803    *)
7804     shrext='.sl'
7805     dynamic_linker="$host_os dld.sl"
7806     shlibpath_var=SHLIB_PATH
7807     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
7808     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7809     soname_spec='${libname}${release}${shared_ext}$major'
7810     ;;
7811   esac
7812   # HP-UX runs *really* slowly unless shared libraries are mode 555.
7813   postinstall_cmds='chmod 555 $lib'
7814   ;;
7815
7816 irix5* | irix6* | nonstopux*)
7817   case $host_os in
7818     nonstopux*) version_type=nonstopux ;;
7819     *)
7820         if test "$lt_cv_prog_gnu_ld" = yes; then
7821                 version_type=linux
7822         else
7823                 version_type=irix
7824         fi ;;
7825   esac
7826   need_lib_prefix=no
7827   need_version=no
7828   soname_spec='${libname}${release}${shared_ext}$major'
7829   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
7830   case $host_os in
7831   irix5* | nonstopux*)
7832     libsuff= shlibsuff=
7833     ;;
7834   *)
7835     case $LD in # libtool.m4 will add one of these switches to LD
7836     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
7837       libsuff= shlibsuff= libmagic=32-bit;;
7838     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
7839       libsuff=32 shlibsuff=N32 libmagic=N32;;
7840     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
7841       libsuff=64 shlibsuff=64 libmagic=64-bit;;
7842     *) libsuff= shlibsuff= libmagic=never-match;;
7843     esac
7844     ;;
7845   esac
7846   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
7847   shlibpath_overrides_runpath=no
7848   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
7849   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
7850   hardcode_into_libs=yes
7851   ;;
7852
7853 # No shared lib support for Linux oldld, aout, or coff.
7854 linux*oldld* | linux*aout* | linux*coff*)
7855   dynamic_linker=no
7856   ;;
7857
7858 # This must be Linux ELF.
7859 linux*)
7860   version_type=linux
7861   need_lib_prefix=no
7862   need_version=no
7863   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7864   soname_spec='${libname}${release}${shared_ext}$major'
7865   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
7866   shlibpath_var=LD_LIBRARY_PATH
7867   shlibpath_overrides_runpath=no
7868   # This implies no fast_install, which is unacceptable.
7869   # Some rework will be needed to allow for fast_install
7870   # before this can be enabled.
7871   hardcode_into_libs=yes
7872
7873   # We used to test for /lib/ld.so.1 and disable shared libraries on
7874   # powerpc, because MkLinux only supported shared libraries with the
7875   # GNU dynamic linker.  Since this was broken with cross compilers,
7876   # most powerpc-linux boxes support dynamic linking these days and
7877   # people can always --disable-shared, the test was removed, and we
7878   # assume the GNU/Linux dynamic linker is in use.
7879   dynamic_linker='GNU/Linux ld.so'
7880   ;;
7881
7882 netbsd*)
7883   version_type=sunos
7884   need_lib_prefix=no
7885   need_version=no
7886   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7887     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
7888     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
7889     dynamic_linker='NetBSD (a.out) ld.so'
7890   else
7891     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
7892     soname_spec='${libname}${release}${shared_ext}$major'
7893     dynamic_linker='NetBSD ld.elf_so'
7894   fi
7895   shlibpath_var=LD_LIBRARY_PATH
7896   shlibpath_overrides_runpath=yes
7897   hardcode_into_libs=yes
7898   ;;
7899
7900 newsos6)
7901   version_type=linux
7902   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7903   shlibpath_var=LD_LIBRARY_PATH
7904   shlibpath_overrides_runpath=yes
7905   ;;
7906
7907 nto-qnx)
7908   version_type=linux
7909   need_lib_prefix=no
7910   need_version=no
7911   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7912   soname_spec='${libname}${release}${shared_ext}$major'
7913   shlibpath_var=LD_LIBRARY_PATH
7914   shlibpath_overrides_runpath=yes
7915   ;;
7916
7917 openbsd*)
7918   version_type=sunos
7919   need_lib_prefix=no
7920   need_version=no
7921   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
7922   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
7923   shlibpath_var=LD_LIBRARY_PATH
7924   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7925     case $host_os in
7926       openbsd2.[89] | openbsd2.[89].*)
7927         shlibpath_overrides_runpath=no
7928         ;;
7929       *)
7930         shlibpath_overrides_runpath=yes
7931         ;;
7932       esac
7933   else
7934     shlibpath_overrides_runpath=yes
7935   fi
7936   ;;
7937
7938 os2*)
7939   libname_spec='$name'
7940   shrext=".dll"
7941   need_lib_prefix=no
7942   library_names_spec='$libname${shared_ext} $libname.a'
7943   dynamic_linker='OS/2 ld.exe'
7944   shlibpath_var=LIBPATH
7945   ;;
7946
7947 osf3* | osf4* | osf5*)
7948   version_type=osf
7949   need_lib_prefix=no
7950   need_version=no
7951   soname_spec='${libname}${release}${shared_ext}$major'
7952   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7953   shlibpath_var=LD_LIBRARY_PATH
7954   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
7955   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
7956   ;;
7957
7958 sco3.2v5*)
7959   version_type=osf
7960   soname_spec='${libname}${release}${shared_ext}$major'
7961   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7962   shlibpath_var=LD_LIBRARY_PATH
7963   ;;
7964
7965 solaris*)
7966   version_type=linux
7967   need_lib_prefix=no
7968   need_version=no
7969   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7970   soname_spec='${libname}${release}${shared_ext}$major'
7971   shlibpath_var=LD_LIBRARY_PATH
7972   shlibpath_overrides_runpath=yes
7973   hardcode_into_libs=yes
7974   # ldd complains unless libraries are executable
7975   postinstall_cmds='chmod +x $lib'
7976   ;;
7977
7978 sunos4*)
7979   version_type=sunos
7980   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
7981   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
7982   shlibpath_var=LD_LIBRARY_PATH
7983   shlibpath_overrides_runpath=yes
7984   if test "$with_gnu_ld" = yes; then
7985     need_lib_prefix=no
7986   fi
7987   need_version=yes
7988   ;;
7989
7990 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
7991   version_type=linux
7992   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7993   soname_spec='${libname}${release}${shared_ext}$major'
7994   shlibpath_var=LD_LIBRARY_PATH
7995   case $host_vendor in
7996     sni)
7997       shlibpath_overrides_runpath=no
7998       need_lib_prefix=no
7999       export_dynamic_flag_spec='${wl}-Blargedynsym'
8000       runpath_var=LD_RUN_PATH
8001       ;;
8002     siemens)
8003       need_lib_prefix=no
8004       ;;
8005     motorola)
8006       need_lib_prefix=no
8007       need_version=no
8008       shlibpath_overrides_runpath=no
8009       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
8010       ;;
8011   esac
8012   ;;
8013
8014 sysv4*MP*)
8015   if test -d /usr/nec ;then
8016     version_type=linux
8017     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
8018     soname_spec='$libname${shared_ext}.$major'
8019     shlibpath_var=LD_LIBRARY_PATH
8020   fi
8021   ;;
8022
8023 uts4*)
8024   version_type=linux
8025   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8026   soname_spec='${libname}${release}${shared_ext}$major'
8027   shlibpath_var=LD_LIBRARY_PATH
8028   ;;
8029
8030 *)
8031   dynamic_linker=no
8032   ;;
8033 esac
8034 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
8035 echo "${ECHO_T}$dynamic_linker" >&6
8036 test "$dynamic_linker" = no && can_build_shared=no
8037
8038 if test "x$enable_dlopen" != xyes; then
8039   enable_dlopen=unknown
8040   enable_dlopen_self=unknown
8041   enable_dlopen_self_static=unknown
8042 else
8043   lt_cv_dlopen=no
8044   lt_cv_dlopen_libs=
8045
8046   case $host_os in
8047   beos*)
8048     lt_cv_dlopen="load_add_on"
8049     lt_cv_dlopen_libs=
8050     lt_cv_dlopen_self=yes
8051     ;;
8052
8053   mingw* | pw32*)
8054     lt_cv_dlopen="LoadLibrary"
8055     lt_cv_dlopen_libs=
8056    ;;
8057
8058   cygwin*)
8059     lt_cv_dlopen="dlopen"
8060     lt_cv_dlopen_libs=
8061    ;;
8062
8063   darwin*)
8064   # if libdl is installed we need to link against it
8065     echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
8066 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
8067 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
8068   echo $ECHO_N "(cached) $ECHO_C" >&6
8069 else
8070   ac_check_lib_save_LIBS=$LIBS
8071 LIBS="-ldl  $LIBS"
8072 cat >conftest.$ac_ext <<_ACEOF
8073 #line $LINENO "configure"
8074 /* confdefs.h.  */
8075 _ACEOF
8076 cat confdefs.h >>conftest.$ac_ext
8077 cat >>conftest.$ac_ext <<_ACEOF
8078 /* end confdefs.h.  */
8079
8080 /* Override any gcc2 internal prototype to avoid an error.  */
8081 #ifdef __cplusplus
8082 extern "C"
8083 #endif
8084 /* We use char because int might match the return type of a gcc2
8085    builtin and then its argument prototype would still apply.  */
8086 char dlopen ();
8087 int
8088 main ()
8089 {
8090 dlopen ();
8091   ;
8092   return 0;
8093 }
8094 _ACEOF
8095 rm -f conftest.$ac_objext conftest$ac_exeext
8096 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8097   (eval $ac_link) 2>&5
8098   ac_status=$?
8099   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8100   (exit $ac_status); } &&
8101          { ac_try='test -s conftest$ac_exeext'
8102   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8103   (eval $ac_try) 2>&5
8104   ac_status=$?
8105   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8106   (exit $ac_status); }; }; then
8107   ac_cv_lib_dl_dlopen=yes
8108 else
8109   echo "$as_me: failed program was:" >&5
8110 sed 's/^/| /' conftest.$ac_ext >&5
8111
8112 ac_cv_lib_dl_dlopen=no
8113 fi
8114 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8115 LIBS=$ac_check_lib_save_LIBS
8116 fi
8117 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
8118 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
8119 if test $ac_cv_lib_dl_dlopen = yes; then
8120   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
8121 else
8122
8123     lt_cv_dlopen="dyld"
8124     lt_cv_dlopen_libs=
8125     lt_cv_dlopen_self=yes
8126
8127 fi
8128
8129    ;;
8130
8131   *)
8132     echo "$as_me:$LINENO: checking for shl_load" >&5
8133 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
8134 if test "${ac_cv_func_shl_load+set}" = set; then
8135   echo $ECHO_N "(cached) $ECHO_C" >&6
8136 else
8137   cat >conftest.$ac_ext <<_ACEOF
8138 #line $LINENO "configure"
8139 /* confdefs.h.  */
8140 _ACEOF
8141 cat confdefs.h >>conftest.$ac_ext
8142 cat >>conftest.$ac_ext <<_ACEOF
8143 /* end confdefs.h.  */
8144 /* System header to define __stub macros and hopefully few prototypes,
8145     which can conflict with char shl_load (); below.
8146     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8147     <limits.h> exists even on freestanding compilers.  */
8148 #ifdef __STDC__
8149 # include <limits.h>
8150 #else
8151 # include <assert.h>
8152 #endif
8153 /* Override any gcc2 internal prototype to avoid an error.  */
8154 #ifdef __cplusplus
8155 extern "C"
8156 {
8157 #endif
8158 /* We use char because int might match the return type of a gcc2
8159    builtin and then its argument prototype would still apply.  */
8160 char shl_load ();
8161 /* The GNU C library defines this for functions which it implements
8162     to always fail with ENOSYS.  Some functions are actually named
8163     something starting with __ and the normal name is an alias.  */
8164 #if defined (__stub_shl_load) || defined (__stub___shl_load)
8165 choke me
8166 #else
8167 char (*f) () = shl_load;
8168 #endif
8169 #ifdef __cplusplus
8170 }
8171 #endif
8172
8173 int
8174 main ()
8175 {
8176 return f != shl_load;
8177   ;
8178   return 0;
8179 }
8180 _ACEOF
8181 rm -f conftest.$ac_objext conftest$ac_exeext
8182 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8183   (eval $ac_link) 2>&5
8184   ac_status=$?
8185   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8186   (exit $ac_status); } &&
8187          { ac_try='test -s conftest$ac_exeext'
8188   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8189   (eval $ac_try) 2>&5
8190   ac_status=$?
8191   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8192   (exit $ac_status); }; }; then
8193   ac_cv_func_shl_load=yes
8194 else
8195   echo "$as_me: failed program was:" >&5
8196 sed 's/^/| /' conftest.$ac_ext >&5
8197
8198 ac_cv_func_shl_load=no
8199 fi
8200 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8201 fi
8202 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
8203 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
8204 if test $ac_cv_func_shl_load = yes; then
8205   lt_cv_dlopen="shl_load"
8206 else
8207   echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
8208 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
8209 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
8210   echo $ECHO_N "(cached) $ECHO_C" >&6
8211 else
8212   ac_check_lib_save_LIBS=$LIBS
8213 LIBS="-ldld  $LIBS"
8214 cat >conftest.$ac_ext <<_ACEOF
8215 #line $LINENO "configure"
8216 /* confdefs.h.  */
8217 _ACEOF
8218 cat confdefs.h >>conftest.$ac_ext
8219 cat >>conftest.$ac_ext <<_ACEOF
8220 /* end confdefs.h.  */
8221
8222 /* Override any gcc2 internal prototype to avoid an error.  */
8223 #ifdef __cplusplus
8224 extern "C"
8225 #endif
8226 /* We use char because int might match the return type of a gcc2
8227    builtin and then its argument prototype would still apply.  */
8228 char shl_load ();
8229 int
8230 main ()
8231 {
8232 shl_load ();
8233   ;
8234   return 0;
8235 }
8236 _ACEOF
8237 rm -f conftest.$ac_objext conftest$ac_exeext
8238 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8239   (eval $ac_link) 2>&5
8240   ac_status=$?
8241   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8242   (exit $ac_status); } &&
8243          { ac_try='test -s conftest$ac_exeext'
8244   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8245   (eval $ac_try) 2>&5
8246   ac_status=$?
8247   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8248   (exit $ac_status); }; }; then
8249   ac_cv_lib_dld_shl_load=yes
8250 else
8251   echo "$as_me: failed program was:" >&5
8252 sed 's/^/| /' conftest.$ac_ext >&5
8253
8254 ac_cv_lib_dld_shl_load=no
8255 fi
8256 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8257 LIBS=$ac_check_lib_save_LIBS
8258 fi
8259 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
8260 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
8261 if test $ac_cv_lib_dld_shl_load = yes; then
8262   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
8263 else
8264   echo "$as_me:$LINENO: checking for dlopen" >&5
8265 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
8266 if test "${ac_cv_func_dlopen+set}" = set; then
8267   echo $ECHO_N "(cached) $ECHO_C" >&6
8268 else
8269   cat >conftest.$ac_ext <<_ACEOF
8270 #line $LINENO "configure"
8271 /* confdefs.h.  */
8272 _ACEOF
8273 cat confdefs.h >>conftest.$ac_ext
8274 cat >>conftest.$ac_ext <<_ACEOF
8275 /* end confdefs.h.  */
8276 /* System header to define __stub macros and hopefully few prototypes,
8277     which can conflict with char dlopen (); below.
8278     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8279     <limits.h> exists even on freestanding compilers.  */
8280 #ifdef __STDC__
8281 # include <limits.h>
8282 #else
8283 # include <assert.h>
8284 #endif
8285 /* Override any gcc2 internal prototype to avoid an error.  */
8286 #ifdef __cplusplus
8287 extern "C"
8288 {
8289 #endif
8290 /* We use char because int might match the return type of a gcc2
8291    builtin and then its argument prototype would still apply.  */
8292 char dlopen ();
8293 /* The GNU C library defines this for functions which it implements
8294     to always fail with ENOSYS.  Some functions are actually named
8295     something starting with __ and the normal name is an alias.  */
8296 #if defined (__stub_dlopen) || defined (__stub___dlopen)
8297 choke me
8298 #else
8299 char (*f) () = dlopen;
8300 #endif
8301 #ifdef __cplusplus
8302 }
8303 #endif
8304
8305 int
8306 main ()
8307 {
8308 return f != dlopen;
8309   ;
8310   return 0;
8311 }
8312 _ACEOF
8313 rm -f conftest.$ac_objext conftest$ac_exeext
8314 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8315   (eval $ac_link) 2>&5
8316   ac_status=$?
8317   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8318   (exit $ac_status); } &&
8319          { ac_try='test -s conftest$ac_exeext'
8320   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8321   (eval $ac_try) 2>&5
8322   ac_status=$?
8323   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8324   (exit $ac_status); }; }; then
8325   ac_cv_func_dlopen=yes
8326 else
8327   echo "$as_me: failed program was:" >&5
8328 sed 's/^/| /' conftest.$ac_ext >&5
8329
8330 ac_cv_func_dlopen=no
8331 fi
8332 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8333 fi
8334 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
8335 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
8336 if test $ac_cv_func_dlopen = yes; then
8337   lt_cv_dlopen="dlopen"
8338 else
8339   echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
8340 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
8341 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
8342   echo $ECHO_N "(cached) $ECHO_C" >&6
8343 else
8344   ac_check_lib_save_LIBS=$LIBS
8345 LIBS="-ldl  $LIBS"
8346 cat >conftest.$ac_ext <<_ACEOF
8347 #line $LINENO "configure"
8348 /* confdefs.h.  */
8349 _ACEOF
8350 cat confdefs.h >>conftest.$ac_ext
8351 cat >>conftest.$ac_ext <<_ACEOF
8352 /* end confdefs.h.  */
8353
8354 /* Override any gcc2 internal prototype to avoid an error.  */
8355 #ifdef __cplusplus
8356 extern "C"
8357 #endif
8358 /* We use char because int might match the return type of a gcc2
8359    builtin and then its argument prototype would still apply.  */
8360 char dlopen ();
8361 int
8362 main ()
8363 {
8364 dlopen ();
8365   ;
8366   return 0;
8367 }
8368 _ACEOF
8369 rm -f conftest.$ac_objext conftest$ac_exeext
8370 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8371   (eval $ac_link) 2>&5
8372   ac_status=$?
8373   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8374   (exit $ac_status); } &&
8375          { ac_try='test -s conftest$ac_exeext'
8376   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8377   (eval $ac_try) 2>&5
8378   ac_status=$?
8379   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8380   (exit $ac_status); }; }; then
8381   ac_cv_lib_dl_dlopen=yes
8382 else
8383   echo "$as_me: failed program was:" >&5
8384 sed 's/^/| /' conftest.$ac_ext >&5
8385
8386 ac_cv_lib_dl_dlopen=no
8387 fi
8388 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8389 LIBS=$ac_check_lib_save_LIBS
8390 fi
8391 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
8392 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
8393 if test $ac_cv_lib_dl_dlopen = yes; then
8394   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
8395 else
8396   echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
8397 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
8398 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
8399   echo $ECHO_N "(cached) $ECHO_C" >&6
8400 else
8401   ac_check_lib_save_LIBS=$LIBS
8402 LIBS="-lsvld  $LIBS"
8403 cat >conftest.$ac_ext <<_ACEOF
8404 #line $LINENO "configure"
8405 /* confdefs.h.  */
8406 _ACEOF
8407 cat confdefs.h >>conftest.$ac_ext
8408 cat >>conftest.$ac_ext <<_ACEOF
8409 /* end confdefs.h.  */
8410
8411 /* Override any gcc2 internal prototype to avoid an error.  */
8412 #ifdef __cplusplus
8413 extern "C"
8414 #endif
8415 /* We use char because int might match the return type of a gcc2
8416    builtin and then its argument prototype would still apply.  */
8417 char dlopen ();
8418 int
8419 main ()
8420 {
8421 dlopen ();
8422   ;
8423   return 0;
8424 }
8425 _ACEOF
8426 rm -f conftest.$ac_objext conftest$ac_exeext
8427 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8428   (eval $ac_link) 2>&5
8429   ac_status=$?
8430   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8431   (exit $ac_status); } &&
8432          { ac_try='test -s conftest$ac_exeext'
8433   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8434   (eval $ac_try) 2>&5
8435   ac_status=$?
8436   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8437   (exit $ac_status); }; }; then
8438   ac_cv_lib_svld_dlopen=yes
8439 else
8440   echo "$as_me: failed program was:" >&5
8441 sed 's/^/| /' conftest.$ac_ext >&5
8442
8443 ac_cv_lib_svld_dlopen=no
8444 fi
8445 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8446 LIBS=$ac_check_lib_save_LIBS
8447 fi
8448 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
8449 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
8450 if test $ac_cv_lib_svld_dlopen = yes; then
8451   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
8452 else
8453   echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
8454 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
8455 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
8456   echo $ECHO_N "(cached) $ECHO_C" >&6
8457 else
8458   ac_check_lib_save_LIBS=$LIBS
8459 LIBS="-ldld  $LIBS"
8460 cat >conftest.$ac_ext <<_ACEOF
8461 #line $LINENO "configure"
8462 /* confdefs.h.  */
8463 _ACEOF
8464 cat confdefs.h >>conftest.$ac_ext
8465 cat >>conftest.$ac_ext <<_ACEOF
8466 /* end confdefs.h.  */
8467
8468 /* Override any gcc2 internal prototype to avoid an error.  */
8469 #ifdef __cplusplus
8470 extern "C"
8471 #endif
8472 /* We use char because int might match the return type of a gcc2
8473    builtin and then its argument prototype would still apply.  */
8474 char dld_link ();
8475 int
8476 main ()
8477 {
8478 dld_link ();
8479   ;
8480   return 0;
8481 }
8482 _ACEOF
8483 rm -f conftest.$ac_objext conftest$ac_exeext
8484 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8485   (eval $ac_link) 2>&5
8486   ac_status=$?
8487   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8488   (exit $ac_status); } &&
8489          { ac_try='test -s conftest$ac_exeext'
8490   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8491   (eval $ac_try) 2>&5
8492   ac_status=$?
8493   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8494   (exit $ac_status); }; }; then
8495   ac_cv_lib_dld_dld_link=yes
8496 else
8497   echo "$as_me: failed program was:" >&5
8498 sed 's/^/| /' conftest.$ac_ext >&5
8499
8500 ac_cv_lib_dld_dld_link=no
8501 fi
8502 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8503 LIBS=$ac_check_lib_save_LIBS
8504 fi
8505 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
8506 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
8507 if test $ac_cv_lib_dld_dld_link = yes; then
8508   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
8509 fi
8510
8511
8512 fi
8513
8514
8515 fi
8516
8517
8518 fi
8519
8520
8521 fi
8522
8523
8524 fi
8525
8526     ;;
8527   esac
8528
8529   if test "x$lt_cv_dlopen" != xno; then
8530     enable_dlopen=yes
8531   else
8532     enable_dlopen=no
8533   fi
8534
8535   case $lt_cv_dlopen in
8536   dlopen)
8537     save_CPPFLAGS="$CPPFLAGS"
8538     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
8539
8540     save_LDFLAGS="$LDFLAGS"
8541     eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
8542
8543     save_LIBS="$LIBS"
8544     LIBS="$lt_cv_dlopen_libs $LIBS"
8545
8546     echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
8547 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
8548 if test "${lt_cv_dlopen_self+set}" = set; then
8549   echo $ECHO_N "(cached) $ECHO_C" >&6
8550 else
8551           if test "$cross_compiling" = yes; then :
8552   lt_cv_dlopen_self=cross
8553 else
8554   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
8555   lt_status=$lt_dlunknown
8556   cat > conftest.$ac_ext <<EOF
8557 #line 8557 "configure"
8558 #include "confdefs.h"
8559
8560 #if HAVE_DLFCN_H
8561 #include <dlfcn.h>
8562 #endif
8563
8564 #include <stdio.h>
8565
8566 #ifdef RTLD_GLOBAL
8567 #  define LT_DLGLOBAL           RTLD_GLOBAL
8568 #else
8569 #  ifdef DL_GLOBAL
8570 #    define LT_DLGLOBAL         DL_GLOBAL
8571 #  else
8572 #    define LT_DLGLOBAL         0
8573 #  endif
8574 #endif
8575
8576 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
8577    find out it does not work in some platform. */
8578 #ifndef LT_DLLAZY_OR_NOW
8579 #  ifdef RTLD_LAZY
8580 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
8581 #  else
8582 #    ifdef DL_LAZY
8583 #      define LT_DLLAZY_OR_NOW          DL_LAZY
8584 #    else
8585 #      ifdef RTLD_NOW
8586 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
8587 #      else
8588 #        ifdef DL_NOW
8589 #          define LT_DLLAZY_OR_NOW      DL_NOW
8590 #        else
8591 #          define LT_DLLAZY_OR_NOW      0
8592 #        endif
8593 #      endif
8594 #    endif
8595 #  endif
8596 #endif
8597
8598 #ifdef __cplusplus
8599 extern "C" void exit (int);
8600 #endif
8601
8602 void fnord() { int i=42;}
8603 int main ()
8604 {
8605   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
8606   int status = $lt_dlunknown;
8607
8608   if (self)
8609     {
8610       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
8611       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
8612       /* dlclose (self); */
8613     }
8614
8615     exit (status);
8616 }
8617 EOF
8618   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8619   (eval $ac_link) 2>&5
8620   ac_status=$?
8621   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8622   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
8623     (./conftest; exit; ) 2>/dev/null
8624     lt_status=$?
8625     case x$lt_status in
8626       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
8627       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
8628       x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
8629     esac
8630   else :
8631     # compilation failed
8632     lt_cv_dlopen_self=no
8633   fi
8634 fi
8635 rm -fr conftest*
8636
8637
8638 fi
8639 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
8640 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
8641
8642     if test "x$lt_cv_dlopen_self" = xyes; then
8643       LDFLAGS="$LDFLAGS $link_static_flag"
8644       echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
8645 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
8646 if test "${lt_cv_dlopen_self_static+set}" = set; then
8647   echo $ECHO_N "(cached) $ECHO_C" >&6
8648 else
8649           if test "$cross_compiling" = yes; then :
8650   lt_cv_dlopen_self_static=cross
8651 else
8652   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
8653   lt_status=$lt_dlunknown
8654   cat > conftest.$ac_ext <<EOF
8655 #line 8655 "configure"
8656 #include "confdefs.h"
8657
8658 #if HAVE_DLFCN_H
8659 #include <dlfcn.h>
8660 #endif
8661
8662 #include <stdio.h>
8663
8664 #ifdef RTLD_GLOBAL
8665 #  define LT_DLGLOBAL           RTLD_GLOBAL
8666 #else
8667 #  ifdef DL_GLOBAL
8668 #    define LT_DLGLOBAL         DL_GLOBAL
8669 #  else
8670 #    define LT_DLGLOBAL         0
8671 #  endif
8672 #endif
8673
8674 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
8675    find out it does not work in some platform. */
8676 #ifndef LT_DLLAZY_OR_NOW
8677 #  ifdef RTLD_LAZY
8678 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
8679 #  else
8680 #    ifdef DL_LAZY
8681 #      define LT_DLLAZY_OR_NOW          DL_LAZY
8682 #    else
8683 #      ifdef RTLD_NOW
8684 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
8685 #      else
8686 #        ifdef DL_NOW
8687 #          define LT_DLLAZY_OR_NOW      DL_NOW
8688 #        else
8689 #          define LT_DLLAZY_OR_NOW      0
8690 #        endif
8691 #      endif
8692 #    endif
8693 #  endif
8694 #endif
8695
8696 #ifdef __cplusplus
8697 extern "C" void exit (int);
8698 #endif
8699
8700 void fnord() { int i=42;}
8701 int main ()
8702 {
8703   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
8704   int status = $lt_dlunknown;
8705
8706   if (self)
8707     {
8708       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
8709       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
8710       /* dlclose (self); */
8711     }
8712
8713     exit (status);
8714 }
8715 EOF
8716   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8717   (eval $ac_link) 2>&5
8718   ac_status=$?
8719   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8720   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
8721     (./conftest; exit; ) 2>/dev/null
8722     lt_status=$?
8723     case x$lt_status in
8724       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
8725       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
8726       x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
8727     esac
8728   else :
8729     # compilation failed
8730     lt_cv_dlopen_self_static=no
8731   fi
8732 fi
8733 rm -fr conftest*
8734
8735
8736 fi
8737 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
8738 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
8739     fi
8740
8741     CPPFLAGS="$save_CPPFLAGS"
8742     LDFLAGS="$save_LDFLAGS"
8743     LIBS="$save_LIBS"
8744     ;;
8745   esac
8746
8747   case $lt_cv_dlopen_self in
8748   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
8749   *) enable_dlopen_self=unknown ;;
8750   esac
8751
8752   case $lt_cv_dlopen_self_static in
8753   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
8754   *) enable_dlopen_self_static=unknown ;;
8755   esac
8756 fi
8757
8758
8759 # Report which librarie types wil actually be built
8760 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
8761 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
8762 echo "$as_me:$LINENO: result: $can_build_shared" >&5
8763 echo "${ECHO_T}$can_build_shared" >&6
8764
8765 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
8766 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
8767 test "$can_build_shared" = "no" && enable_shared=no
8768
8769 # On AIX, shared libraries and static libraries use the same namespace, and
8770 # are all built from PIC.
8771 case "$host_os" in
8772 aix3*)
8773   test "$enable_shared" = yes && enable_static=no
8774   if test -n "$RANLIB"; then
8775     archive_cmds="$archive_cmds~\$RANLIB \$lib"
8776     postinstall_cmds='$RANLIB $lib'
8777   fi
8778   ;;
8779
8780 aix4*)
8781   if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
8782     test "$enable_shared" = yes && enable_static=no
8783   fi
8784   ;;
8785   darwin* | rhapsody*)
8786   if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
8787     archive_cmds_need_lc=no
8788     case "$host_os" in
8789     rhapsody* | darwin1.[012])
8790       allow_undefined_flag='-undefined suppress'
8791       ;;
8792     *) # Darwin 1.3 on
8793       test -z ${LD_TWOLEVEL_NAMESPACE} && allow_undefined_flag='-flat_namespace -undefined suppress'
8794       ;;
8795     esac
8796     # FIXME: Relying on posixy $() will cause problems for
8797     #        cross-compilation, but unfortunately the echo tests do not
8798     #        yet detect zsh echo's removal of \ escapes.  Also zsh mangles
8799     #          `"' quotes if we put them in here... so don't!
8800                 output_verbose_link_cmd='echo'
8801     archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags -install_name $rpath/$soname $verstring'
8802     module_cmds='$CC -bundle $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags'
8803     # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
8804                   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}'
8805                   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}'
8806     hardcode_direct=no
8807     hardcode_automatic=yes
8808     hardcode_shlibpath_var=unsupported
8809     whole_archive_flag_spec='-all_load $convenience'
8810     link_all_deplibs=yes
8811     fi
8812     ;;
8813 esac
8814 echo "$as_me:$LINENO: result: $enable_shared" >&5
8815 echo "${ECHO_T}$enable_shared" >&6
8816
8817 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
8818 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
8819 # Make sure either enable_shared or enable_static is yes.
8820 test "$enable_shared" = yes || enable_static=yes
8821 echo "$as_me:$LINENO: result: $enable_static" >&5
8822 echo "${ECHO_T}$enable_static" >&6
8823
8824 # The else clause should only fire when bootstrapping the
8825 # libtool distribution, otherwise you forgot to ship ltmain.sh
8826 # with your package, and you will get complaints that there are
8827 # no rules to generate ltmain.sh.
8828 if test -f "$ltmain"; then
8829   # See if we are running on zsh, and set the options which allow our commands through
8830   # without removal of \ escapes.
8831   if test -n "${ZSH_VERSION+set}" ; then
8832     setopt NO_GLOB_SUBST
8833   fi
8834   # Now quote all the things that may contain metacharacters while being
8835   # careful not to overquote the AC_SUBSTed values.  We take copies of the
8836   # variables and quote the copies for generation of the libtool script.
8837   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \
8838     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
8839     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
8840     deplibs_check_method reload_flag reload_cmds need_locks \
8841     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
8842     lt_cv_sys_global_symbol_to_c_name_address \
8843     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
8844     old_postinstall_cmds old_postuninstall_cmds \
8845     compiler \
8846     CC \
8847     LD \
8848     lt_prog_compiler_wl \
8849     lt_prog_compiler_pic \
8850     lt_prog_compiler_static \
8851     lt_prog_compiler_no_builtin_flag \
8852     export_dynamic_flag_spec \
8853     thread_safe_flag_spec \
8854     whole_archive_flag_spec \
8855     enable_shared_with_static_runtimes \
8856     old_archive_cmds \
8857     old_archive_from_new_cmds \
8858     predep_objects \
8859     postdep_objects \
8860     predeps \
8861     postdeps \
8862     compiler_lib_search_path \
8863     archive_cmds \
8864     archive_expsym_cmds \
8865     postinstall_cmds \
8866     postuninstall_cmds \
8867     old_archive_from_expsyms_cmds \
8868     allow_undefined_flag \
8869     no_undefined_flag \
8870     export_symbols_cmds \
8871     hardcode_libdir_flag_spec \
8872     hardcode_libdir_flag_spec_ld \
8873     hardcode_libdir_separator \
8874     hardcode_automatic \
8875     module_cmds \
8876     module_expsym_cmds \
8877     lt_cv_prog_compiler_c_o \
8878     exclude_expsyms \
8879     include_expsyms; do
8880
8881     case $var in
8882     old_archive_cmds | \
8883     old_archive_from_new_cmds | \
8884     archive_cmds | \
8885     archive_expsym_cmds | \
8886     module_cmds | \
8887     module_expsym_cmds | \
8888     old_archive_from_expsyms_cmds | \
8889     export_symbols_cmds | \
8890     extract_expsyms_cmds | reload_cmds | finish_cmds | \
8891     postinstall_cmds | postuninstall_cmds | \
8892     old_postinstall_cmds | old_postuninstall_cmds | \
8893     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
8894       # Double-quote double-evaled strings.
8895       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
8896       ;;
8897     *)
8898       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
8899       ;;
8900     esac
8901   done
8902
8903   case $lt_echo in
8904   *'\$0 --fallback-echo"')
8905     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
8906     ;;
8907   esac
8908
8909 cfgfile="${ofile}T"
8910   trap "$rm \"$cfgfile\"; exit 1" 1 2 15
8911   $rm -f "$cfgfile"
8912   { echo "$as_me:$LINENO: creating $ofile" >&5
8913 echo "$as_me: creating $ofile" >&6;}
8914
8915   cat <<__EOF__ >> "$cfgfile"
8916 #! $SHELL
8917
8918 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
8919 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
8920 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
8921 #
8922 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
8923 # Free Software Foundation, Inc.
8924 #
8925 # This file is part of GNU Libtool:
8926 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
8927 #
8928 # This program is free software; you can redistribute it and/or modify
8929 # it under the terms of the GNU General Public License as published by
8930 # the Free Software Foundation; either version 2 of the License, or
8931 # (at your option) any later version.
8932 #
8933 # This program is distributed in the hope that it will be useful, but
8934 # WITHOUT ANY WARRANTY; without even the implied warranty of
8935 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
8936 # General Public License for more details.
8937 #
8938 # You should have received a copy of the GNU General Public License
8939 # along with this program; if not, write to the Free Software
8940 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
8941 #
8942 # As a special exception to the GNU General Public License, if you
8943 # distribute this file as part of a program that contains a
8944 # configuration script generated by Autoconf, you may include it under
8945 # the same distribution terms that you use for the rest of that program.
8946
8947 # A sed program that does not truncate output.
8948 SED=$lt_SED
8949
8950 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
8951 Xsed="$SED -e s/^X//"
8952
8953 # The HP-UX ksh and POSIX shell print the target directory to stdout
8954 # if CDPATH is set.
8955 if test "X\${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
8956
8957 # The names of the tagged configurations supported by this script.
8958 available_tags=
8959
8960 # ### BEGIN LIBTOOL CONFIG
8961
8962 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
8963
8964 # Shell to use when invoking shell scripts.
8965 SHELL=$lt_SHELL
8966
8967 # Whether or not to build shared libraries.
8968 build_libtool_libs=$enable_shared
8969
8970 # Whether or not to build static libraries.
8971 build_old_libs=$enable_static
8972
8973 # Whether or not to add -lc for building shared libraries.
8974 build_libtool_need_lc=$archive_cmds_need_lc
8975
8976 # Whether or not to disallow shared libs when runtime libs are static
8977 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
8978
8979 # Whether or not to optimize for fast installation.
8980 fast_install=$enable_fast_install
8981
8982 # The host system.
8983 host_alias=$host_alias
8984 host=$host
8985
8986 # An echo program that does not interpret backslashes.
8987 echo=$lt_echo
8988
8989 # The archiver.
8990 AR=$lt_AR
8991 AR_FLAGS=$lt_AR_FLAGS
8992
8993 # A C compiler.
8994 LTCC=$lt_LTCC
8995
8996 # A language-specific compiler.
8997 CC=$lt_compiler
8998
8999 # Is the compiler the GNU C compiler?
9000 with_gcc=$GCC
9001
9002 # An ERE matcher.
9003 EGREP=$lt_EGREP
9004
9005 # The linker used to build libraries.
9006 LD=$lt_LD
9007
9008 # Whether we need hard or soft links.
9009 LN_S=$lt_LN_S
9010
9011 # A BSD-compatible nm program.
9012 NM=$lt_NM
9013
9014 # A symbol stripping program
9015 STRIP=$STRIP
9016
9017 # Used to examine libraries when file_magic_cmd begins "file"
9018 MAGIC_CMD=$MAGIC_CMD
9019
9020 # Used on cygwin: DLL creation program.
9021 DLLTOOL="$DLLTOOL"
9022
9023 # Used on cygwin: object dumper.
9024 OBJDUMP="$OBJDUMP"
9025
9026 # Used on cygwin: assembler.
9027 AS="$AS"
9028
9029 # The name of the directory that contains temporary libtool files.
9030 objdir=$objdir
9031
9032 # How to create reloadable object files.
9033 reload_flag=$lt_reload_flag
9034 reload_cmds=$lt_reload_cmds
9035
9036 # How to pass a linker flag through the compiler.
9037 wl=$lt_lt_prog_compiler_wl
9038
9039 # Object file suffix (normally "o").
9040 objext="$ac_objext"
9041
9042 # Old archive suffix (normally "a").
9043 libext="$libext"
9044
9045 # Shared library suffix (normally ".so").
9046 shrext='$shrext'
9047
9048 # Executable file suffix (normally "").
9049 exeext="$exeext"
9050
9051 # Additional compiler flags for building library objects.
9052 pic_flag=$lt_lt_prog_compiler_pic
9053 pic_mode=$pic_mode
9054
9055 # What is the maximum length of a command?
9056 max_cmd_len=$lt_cv_sys_max_cmd_len
9057
9058 # Does compiler simultaneously support -c and -o options?
9059 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
9060
9061 # Must we lock files when doing compilation ?
9062 need_locks=$lt_need_locks
9063
9064 # Do we need the lib prefix for modules?
9065 need_lib_prefix=$need_lib_prefix
9066
9067 # Do we need a version for libraries?
9068 need_version=$need_version
9069
9070 # Whether dlopen is supported.
9071 dlopen_support=$enable_dlopen
9072
9073 # Whether dlopen of programs is supported.
9074 dlopen_self=$enable_dlopen_self
9075
9076 # Whether dlopen of statically linked programs is supported.
9077 dlopen_self_static=$enable_dlopen_self_static
9078
9079 # Compiler flag to prevent dynamic linking.
9080 link_static_flag=$lt_lt_prog_compiler_static
9081
9082 # Compiler flag to turn off builtin functions.
9083 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
9084
9085 # Compiler flag to allow reflexive dlopens.
9086 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
9087
9088 # Compiler flag to generate shared objects directly from archives.
9089 whole_archive_flag_spec=$lt_whole_archive_flag_spec
9090
9091 # Compiler flag to generate thread-safe objects.
9092 thread_safe_flag_spec=$lt_thread_safe_flag_spec
9093
9094 # Library versioning type.
9095 version_type=$version_type
9096
9097 # Format of library name prefix.
9098 libname_spec=$lt_libname_spec
9099
9100 # List of archive names.  First name is the real one, the rest are links.
9101 # The last name is the one that the linker finds with -lNAME.
9102 library_names_spec=$lt_library_names_spec
9103
9104 # The coded name of the library, if different from the real name.
9105 soname_spec=$lt_soname_spec
9106
9107 # Commands used to build and install an old-style archive.
9108 RANLIB=$lt_RANLIB
9109 old_archive_cmds=$lt_old_archive_cmds
9110 old_postinstall_cmds=$lt_old_postinstall_cmds
9111 old_postuninstall_cmds=$lt_old_postuninstall_cmds
9112
9113 # Create an old-style archive from a shared archive.
9114 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
9115
9116 # Create a temporary old-style archive to link instead of a shared archive.
9117 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
9118
9119 # Commands used to build and install a shared archive.
9120 archive_cmds=$lt_archive_cmds
9121 archive_expsym_cmds=$lt_archive_expsym_cmds
9122 postinstall_cmds=$lt_postinstall_cmds
9123 postuninstall_cmds=$lt_postuninstall_cmds
9124
9125 # Commands used to build a loadable module (assumed same as above if empty)
9126 module_cmds=$lt_module_cmds
9127 module_expsym_cmds=$lt_module_expsym_cmds
9128
9129 # Commands to strip libraries.
9130 old_striplib=$lt_old_striplib
9131 striplib=$lt_striplib
9132
9133 # Dependencies to place before the objects being linked to create a
9134 # shared library.
9135 predep_objects=$lt_predep_objects
9136
9137 # Dependencies to place after the objects being linked to create a
9138 # shared library.
9139 postdep_objects=$lt_postdep_objects
9140
9141 # Dependencies to place before the objects being linked to create a
9142 # shared library.
9143 predeps=$lt_predeps
9144
9145 # Dependencies to place after the objects being linked to create a
9146 # shared library.
9147 postdeps=$lt_postdeps
9148
9149 # The library search path used internally by the compiler when linking
9150 # a shared library.
9151 compiler_lib_search_path=$lt_compiler_lib_search_path
9152
9153 # Method to check whether dependent libraries are shared objects.
9154 deplibs_check_method=$lt_deplibs_check_method
9155
9156 # Command to use when deplibs_check_method == file_magic.
9157 file_magic_cmd=$lt_file_magic_cmd
9158
9159 # Flag that allows shared libraries with undefined symbols to be built.
9160 allow_undefined_flag=$lt_allow_undefined_flag
9161
9162 # Flag that forces no undefined symbols.
9163 no_undefined_flag=$lt_no_undefined_flag
9164
9165 # Commands used to finish a libtool library installation in a directory.
9166 finish_cmds=$lt_finish_cmds
9167
9168 # Same as above, but a single script fragment to be evaled but not shown.
9169 finish_eval=$lt_finish_eval
9170
9171 # Take the output of nm and produce a listing of raw symbols and C names.
9172 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
9173
9174 # Transform the output of nm in a proper C declaration
9175 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
9176
9177 # Transform the output of nm in a C name address pair
9178 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
9179
9180 # This is the shared library runtime path variable.
9181 runpath_var=$runpath_var
9182
9183 # This is the shared library path variable.
9184 shlibpath_var=$shlibpath_var
9185
9186 # Is shlibpath searched before the hard-coded library search path?
9187 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
9188
9189 # How to hardcode a shared library path into an executable.
9190 hardcode_action=$hardcode_action
9191
9192 # Whether we should hardcode library paths into libraries.
9193 hardcode_into_libs=$hardcode_into_libs
9194
9195 # Flag to hardcode \$libdir into a binary during linking.
9196 # This must work even if \$libdir does not exist.
9197 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
9198
9199 # If ld is used when linking, flag to hardcode \$libdir into
9200 # a binary during linking. This must work even if \$libdir does
9201 # not exist.
9202 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
9203
9204 # Whether we need a single -rpath flag with a separated argument.
9205 hardcode_libdir_separator=$lt_hardcode_libdir_separator
9206
9207 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
9208 # resulting binary.
9209 hardcode_direct=$hardcode_direct
9210
9211 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
9212 # resulting binary.
9213 hardcode_minus_L=$hardcode_minus_L
9214
9215 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
9216 # the resulting binary.
9217 hardcode_shlibpath_var=$hardcode_shlibpath_var
9218
9219 # Set to yes if building a shared library automatically hardcodes DIR into the library
9220 # and all subsequent libraries and executables linked against it.
9221 hardcode_automatic=$hardcode_automatic
9222
9223 # Variables whose values should be saved in libtool wrapper scripts and
9224 # restored at relink time.
9225 variables_saved_for_relink="$variables_saved_for_relink"
9226
9227 # Whether libtool must link a program against all its dependency libraries.
9228 link_all_deplibs=$link_all_deplibs
9229
9230 # Compile-time system search path for libraries
9231 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
9232
9233 # Run-time system search path for libraries
9234 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
9235
9236 # Fix the shell variable \$srcfile for the compiler.
9237 fix_srcfile_path="$fix_srcfile_path"
9238
9239 # Set to yes if exported symbols are required.
9240 always_export_symbols=$always_export_symbols
9241
9242 # The commands to list exported symbols.
9243 export_symbols_cmds=$lt_export_symbols_cmds
9244
9245 # The commands to extract the exported symbol list from a shared archive.
9246 extract_expsyms_cmds=$lt_extract_expsyms_cmds
9247
9248 # Symbols that should not be listed in the preloaded symbols.
9249 exclude_expsyms=$lt_exclude_expsyms
9250
9251 # Symbols that must always be exported.
9252 include_expsyms=$lt_include_expsyms
9253
9254 # ### END LIBTOOL CONFIG
9255
9256 __EOF__
9257
9258
9259   case $host_os in
9260   aix3*)
9261     cat <<\EOF >> "$cfgfile"
9262
9263 # AIX sometimes has problems with the GCC collect2 program.  For some
9264 # reason, if we set the COLLECT_NAMES environment variable, the problems
9265 # vanish in a puff of smoke.
9266 if test "X${COLLECT_NAMES+set}" != Xset; then
9267   COLLECT_NAMES=
9268   export COLLECT_NAMES
9269 fi
9270 EOF
9271     ;;
9272   esac
9273
9274   # We use sed instead of cat because bash on DJGPP gets confused if
9275   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
9276   # text mode, it properly converts lines to CR/LF.  This bash problem
9277   # is reportedly fixed, but why not run on old versions too?
9278   sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
9279
9280   mv -f "$cfgfile" "$ofile" || \
9281     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
9282   chmod +x "$ofile"
9283
9284 else
9285   # If there is no Makefile yet, we rely on a make rule to execute
9286   # `config.status --recheck' to rerun these tests and create the
9287   # libtool script then.
9288   test -f Makefile && make "$ltmain"
9289 fi
9290
9291
9292 ac_ext=c
9293 ac_cpp='$CPP $CPPFLAGS'
9294 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9295 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9296 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9297
9298 CC="$lt_save_CC"
9299
9300
9301 # Check whether --with-tags or --without-tags was given.
9302 if test "${with_tags+set}" = set; then
9303   withval="$with_tags"
9304   tagnames="$withval"
9305 fi;
9306
9307 if test -f "$ltmain" && test -n "$tagnames"; then
9308   if test ! -f "${ofile}"; then
9309     { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
9310 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
9311   fi
9312
9313   if test -z "$LTCC"; then
9314     eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
9315     if test -z "$LTCC"; then
9316       { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
9317 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
9318     else
9319       { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
9320 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
9321     fi
9322   fi
9323
9324   # Extract list of available tagged configurations in $ofile.
9325   # Note that this assumes the entire list is on one line.
9326   available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
9327
9328   lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9329   for tagname in $tagnames; do
9330     IFS="$lt_save_ifs"
9331     # Check whether tagname contains only valid characters
9332     case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
9333     "") ;;
9334     *)  { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
9335 echo "$as_me: error: invalid tag name: $tagname" >&2;}
9336    { (exit 1); exit 1; }; }
9337         ;;
9338     esac
9339
9340     if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
9341     then
9342       { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
9343 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
9344    { (exit 1); exit 1; }; }
9345     fi
9346
9347     # Update the list of available tags.
9348     if test -n "$tagname"; then
9349       echo appending configuration tag \"$tagname\" to $ofile
9350
9351       case $tagname in
9352       CXX)
9353         if test -n "$CXX" && test "X$CXX" != "Xno"; then
9354           ac_ext=cc
9355 ac_cpp='$CXXCPP $CPPFLAGS'
9356 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9357 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9358 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9359
9360
9361
9362
9363 archive_cmds_need_lc_CXX=no
9364 allow_undefined_flag_CXX=
9365 always_export_symbols_CXX=no
9366 archive_expsym_cmds_CXX=
9367 export_dynamic_flag_spec_CXX=
9368 hardcode_direct_CXX=no
9369 hardcode_libdir_flag_spec_CXX=
9370 hardcode_libdir_flag_spec_ld_CXX=
9371 hardcode_libdir_separator_CXX=
9372 hardcode_minus_L_CXX=no
9373 hardcode_automatic_CXX=no
9374 module_cmds_CXX=
9375 module_expsym_cmds_CXX=
9376 link_all_deplibs_CXX=unknown
9377 old_archive_cmds_CXX=$old_archive_cmds
9378 no_undefined_flag_CXX=
9379 whole_archive_flag_spec_CXX=
9380 enable_shared_with_static_runtimes_CXX=no
9381
9382 # Dependencies to place before and after the object being linked:
9383 predep_objects_CXX=
9384 postdep_objects_CXX=
9385 predeps_CXX=
9386 postdeps_CXX=
9387 compiler_lib_search_path_CXX=
9388
9389 # Source file extension for C++ test sources.
9390 ac_ext=cc
9391
9392 # Object file extension for compiled C++ test sources.
9393 objext=o
9394 objext_CXX=$objext
9395
9396 # Code to be used in simple compile tests
9397 lt_simple_compile_test_code="int some_variable = 0;\n"
9398
9399 # Code to be used in simple link tests
9400 lt_simple_link_test_code='int main(int, char *) { return(0); }\n'
9401
9402 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
9403
9404 # If no C compiler was specified, use CC.
9405 LTCC=${LTCC-"$CC"}
9406
9407 # Allow CC to be a program name with arguments.
9408 compiler=$CC
9409
9410
9411 # Allow CC to be a program name with arguments.
9412 lt_save_CC=$CC
9413 lt_save_LD=$LD
9414 lt_save_GCC=$GCC
9415 GCC=$GXX
9416 lt_save_with_gnu_ld=$with_gnu_ld
9417 lt_save_path_LD=$lt_cv_path_LD
9418 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
9419   lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
9420 else
9421   unset lt_cv_prog_gnu_ld
9422 fi
9423 if test -n "${lt_cv_path_LDCXX+set}"; then
9424   lt_cv_path_LD=$lt_cv_path_LDCXX
9425 else
9426   unset lt_cv_path_LD
9427 fi
9428 test -z "${LDCXX+set}" || LD=$LDCXX
9429 CC=${CXX-"c++"}
9430 compiler=$CC
9431 compiler_CXX=$CC
9432 cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
9433
9434 # We don't want -fno-exception wen compiling C++ code, so set the
9435 # no_builtin_flag separately
9436 if test "$GXX" = yes; then
9437   lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
9438 else
9439   lt_prog_compiler_no_builtin_flag_CXX=
9440 fi
9441
9442 if test "$GXX" = yes; then
9443   # Set up default GNU C++ configuration
9444
9445
9446 # Check whether --with-gnu-ld or --without-gnu-ld was given.
9447 if test "${with_gnu_ld+set}" = set; then
9448   withval="$with_gnu_ld"
9449   test "$withval" = no || with_gnu_ld=yes
9450 else
9451   with_gnu_ld=no
9452 fi;
9453 ac_prog=ld
9454 if test "$GCC" = yes; then
9455   # Check if gcc -print-prog-name=ld gives a path.
9456   echo "$as_me:$LINENO: checking for ld used by $CC" >&5
9457 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
9458   case $host in
9459   *-*-mingw*)
9460     # gcc leaves a trailing carriage return which upsets mingw
9461     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
9462   *)
9463     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
9464   esac
9465   case $ac_prog in
9466     # Accept absolute paths.
9467     [\\/]* | ?:[\\/]*)
9468       re_direlt='/[^/][^/]*/\.\./'
9469       # Canonicalize the path of ld
9470       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
9471       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
9472         ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
9473       done
9474       test -z "$LD" && LD="$ac_prog"
9475       ;;
9476   "")
9477     # If it fails, then pretend we aren't using GCC.
9478     ac_prog=ld
9479     ;;
9480   *)
9481     # If it is relative, then search for the first ld in PATH.
9482     with_gnu_ld=unknown
9483     ;;
9484   esac
9485 elif test "$with_gnu_ld" = yes; then
9486   echo "$as_me:$LINENO: checking for GNU ld" >&5
9487 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
9488 else
9489   echo "$as_me:$LINENO: checking for non-GNU ld" >&5
9490 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
9491 fi
9492 if test "${lt_cv_path_LD+set}" = set; then
9493   echo $ECHO_N "(cached) $ECHO_C" >&6
9494 else
9495   if test -z "$LD"; then
9496   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9497   for ac_dir in $PATH; do
9498     IFS="$lt_save_ifs"
9499     test -z "$ac_dir" && ac_dir=.
9500     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
9501       lt_cv_path_LD="$ac_dir/$ac_prog"
9502       # Check to see if the program is GNU ld.  I'd rather use --version,
9503       # but apparently some GNU ld's only accept -v.
9504       # Break only if it was the GNU/non-GNU ld that we prefer.
9505       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
9506       *GNU* | *'with BFD'*)
9507         test "$with_gnu_ld" != no && break
9508         ;;
9509       *)
9510         test "$with_gnu_ld" != yes && break
9511         ;;
9512       esac
9513     fi
9514   done
9515   IFS="$lt_save_ifs"
9516 else
9517   lt_cv_path_LD="$LD" # Let the user override the test with a path.
9518 fi
9519 fi
9520
9521 LD="$lt_cv_path_LD"
9522 if test -n "$LD"; then
9523   echo "$as_me:$LINENO: result: $LD" >&5
9524 echo "${ECHO_T}$LD" >&6
9525 else
9526   echo "$as_me:$LINENO: result: no" >&5
9527 echo "${ECHO_T}no" >&6
9528 fi
9529 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
9530 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
9531    { (exit 1); exit 1; }; }
9532 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
9533 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
9534 if test "${lt_cv_prog_gnu_ld+set}" = set; then
9535   echo $ECHO_N "(cached) $ECHO_C" >&6
9536 else
9537   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
9538 case `"$LD" -v 2>&1 </dev/null` in
9539 *GNU* | *'with BFD'*)
9540   lt_cv_prog_gnu_ld=yes
9541   ;;
9542 *)
9543   lt_cv_prog_gnu_ld=no
9544   ;;
9545 esac
9546 fi
9547 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
9548 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
9549 with_gnu_ld=$lt_cv_prog_gnu_ld
9550
9551
9552
9553   # Check if GNU C++ uses GNU ld as the underlying linker, since the
9554   # archiving commands below assume that GNU ld is being used.
9555   if test "$with_gnu_ld" = yes; then
9556     archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
9557     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'
9558
9559     hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
9560     export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
9561
9562     # If archive_cmds runs LD, not CC, wlarc should be empty
9563     # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
9564     #     investigate it a little bit more. (MM)
9565     wlarc='${wl}'
9566
9567     # ancient GNU ld didn't support --whole-archive et. al.
9568     if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
9569         grep 'no-whole-archive' > /dev/null; then
9570       whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9571     else
9572       whole_archive_flag_spec_CXX=
9573     fi
9574   else
9575     with_gnu_ld=no
9576     wlarc=
9577
9578     # A generic and very simple default shared library creation
9579     # command for GNU C++ for the case where it uses the native
9580     # linker, instead of GNU ld.  If possible, this setting should
9581     # overridden to take advantage of the native linker features on
9582     # the platform it is being used on.
9583     archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
9584   fi
9585
9586   # Commands to make compiler produce verbose output that lists
9587   # what "hidden" libraries, object files and flags are used when
9588   # linking a shared library.
9589   output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
9590
9591 else
9592   GXX=no
9593   with_gnu_ld=no
9594   wlarc=
9595 fi
9596
9597 # PORTME: fill in a description of your system's C++ link characteristics
9598 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9599 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
9600 ld_shlibs_CXX=yes
9601 case $host_os in
9602   aix3*)
9603     # FIXME: insert proper C++ library support
9604     ld_shlibs_CXX=no
9605     ;;
9606   aix4* | aix5*)
9607     if test "$host_cpu" = ia64; then
9608       # On IA64, the linker does run time linking by default, so we don't
9609       # have to do anything special.
9610       aix_use_runtimelinking=no
9611       exp_sym_flag='-Bexport'
9612       no_entry_flag=""
9613     else
9614       aix_use_runtimelinking=no
9615
9616       # Test if we are trying to use run time linking or normal
9617       # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9618       # need to do runtime linking.
9619       case $host_os in aix4.[23]|aix4.[23].*|aix5*)
9620         for ld_flag in $LDFLAGS; do
9621           case $ld_flag in
9622           *-brtl*)
9623             aix_use_runtimelinking=yes
9624             break
9625             ;;
9626           esac
9627         done
9628       esac
9629
9630       exp_sym_flag='-bexport'
9631       no_entry_flag='-bnoentry'
9632     fi
9633
9634     # When large executables or shared objects are built, AIX ld can
9635     # have problems creating the table of contents.  If linking a library
9636     # or program results in "error TOC overflow" add -mminimal-toc to
9637     # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
9638     # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9639
9640     archive_cmds_CXX=''
9641     hardcode_direct_CXX=yes
9642     hardcode_libdir_separator_CXX=':'
9643     link_all_deplibs_CXX=yes
9644
9645     if test "$GXX" = yes; then
9646       case $host_os in aix4.012|aix4.012.*)
9647       # We only want to do this on AIX 4.2 and lower, the check
9648       # below for broken collect2 doesn't work under 4.3+
9649         collect2name=`${CC} -print-prog-name=collect2`
9650         if test -f "$collect2name" && \
9651            strings "$collect2name" | grep resolve_lib_name >/dev/null
9652         then
9653           # We have reworked collect2
9654           hardcode_direct_CXX=yes
9655         else
9656           # We have old collect2
9657           hardcode_direct_CXX=unsupported
9658           # It fails to find uninstalled libraries when the uninstalled
9659           # path is not listed in the libpath.  Setting hardcode_minus_L
9660           # to unsupported forces relinking
9661           hardcode_minus_L_CXX=yes
9662           hardcode_libdir_flag_spec_CXX='-L$libdir'
9663           hardcode_libdir_separator_CXX=
9664         fi
9665       esac
9666       shared_flag='-shared'
9667     else
9668       # not using gcc
9669       if test "$host_cpu" = ia64; then
9670         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9671         # chokes on -Wl,-G. The following line is correct:
9672         shared_flag='-G'
9673       else
9674         if test "$aix_use_runtimelinking" = yes; then
9675           shared_flag='${wl}-G'
9676         else
9677           shared_flag='${wl}-bM:SRE'
9678         fi
9679       fi
9680     fi
9681
9682     # It seems that -bexpall does not export symbols beginning with
9683     # underscore (_), so it is better to generate a list of symbols to export.
9684     always_export_symbols_CXX=yes
9685     if test "$aix_use_runtimelinking" = yes; then
9686       # Warning - without using the other runtime loading flags (-brtl),
9687       # -berok will link without error, but may produce a broken library.
9688       allow_undefined_flag_CXX='-berok'
9689       # Determine the default libpath from the value encoded in an empty executable.
9690       cat >conftest.$ac_ext <<_ACEOF
9691 #line $LINENO "configure"
9692 /* confdefs.h.  */
9693 _ACEOF
9694 cat confdefs.h >>conftest.$ac_ext
9695 cat >>conftest.$ac_ext <<_ACEOF
9696 /* end confdefs.h.  */
9697
9698 int
9699 main ()
9700 {
9701
9702   ;
9703   return 0;
9704 }
9705 _ACEOF
9706 rm -f conftest.$ac_objext conftest$ac_exeext
9707 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9708   (eval $ac_link) 2>&5
9709   ac_status=$?
9710   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9711   (exit $ac_status); } &&
9712          { ac_try='test -s conftest$ac_exeext'
9713   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9714   (eval $ac_try) 2>&5
9715   ac_status=$?
9716   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9717   (exit $ac_status); }; }; then
9718
9719 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
9720 }'`
9721 # Check for a 64-bit object if we didn't find anything.
9722 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; }
9723 }'`; fi
9724 else
9725   echo "$as_me: failed program was:" >&5
9726 sed 's/^/| /' conftest.$ac_ext >&5
9727
9728 fi
9729 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9730 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9731
9732       hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
9733
9734       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"
9735      else
9736       if test "$host_cpu" = ia64; then
9737         hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
9738         allow_undefined_flag_CXX="-z nodefs"
9739         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"
9740       else
9741         # Determine the default libpath from the value encoded in an empty executable.
9742         cat >conftest.$ac_ext <<_ACEOF
9743 #line $LINENO "configure"
9744 /* confdefs.h.  */
9745 _ACEOF
9746 cat confdefs.h >>conftest.$ac_ext
9747 cat >>conftest.$ac_ext <<_ACEOF
9748 /* end confdefs.h.  */
9749
9750 int
9751 main ()
9752 {
9753
9754   ;
9755   return 0;
9756 }
9757 _ACEOF
9758 rm -f conftest.$ac_objext conftest$ac_exeext
9759 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9760   (eval $ac_link) 2>&5
9761   ac_status=$?
9762   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9763   (exit $ac_status); } &&
9764          { ac_try='test -s conftest$ac_exeext'
9765   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9766   (eval $ac_try) 2>&5
9767   ac_status=$?
9768   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9769   (exit $ac_status); }; }; then
9770
9771 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
9772 }'`
9773 # Check for a 64-bit object if we didn't find anything.
9774 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; }
9775 }'`; fi
9776 else
9777   echo "$as_me: failed program was:" >&5
9778 sed 's/^/| /' conftest.$ac_ext >&5
9779
9780 fi
9781 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9782 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9783
9784         hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
9785         # Warning - without using the other run time loading flags,
9786         # -berok will link without error, but may produce a broken library.
9787         no_undefined_flag_CXX=' ${wl}-bernotok'
9788         allow_undefined_flag_CXX=' ${wl}-berok'
9789         # -bexpall does not export symbols beginning with underscore (_)
9790         always_export_symbols_CXX=yes
9791         # Exported symbols can be pulled into shared objects from archives
9792         whole_archive_flag_spec_CXX=' '
9793         archive_cmds_need_lc_CXX=yes
9794         # This is similar to how AIX traditionally builds it's shared libraries.
9795         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'
9796       fi
9797     fi
9798     ;;
9799   chorus*)
9800     case $cc_basename in
9801       *)
9802         # FIXME: insert proper C++ library support
9803         ld_shlibs_CXX=no
9804         ;;
9805     esac
9806     ;;
9807
9808   cygwin* | mingw* | pw32*)
9809     # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
9810     # as there is no search path for DLLs.
9811     hardcode_libdir_flag_spec_CXX='-L$libdir'
9812     allow_undefined_flag_CXX=unsupported
9813     always_export_symbols_CXX=no
9814     enable_shared_with_static_runtimes_CXX=yes
9815
9816     if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
9817       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'
9818       # If the export-symbols file already is a .def file (1st line
9819       # is EXPORTS), use it as is; otherwise, prepend...
9820       archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9821         cp $export_symbols $output_objdir/$soname.def;
9822       else
9823         echo EXPORTS > $output_objdir/$soname.def;
9824         cat $export_symbols >> $output_objdir/$soname.def;
9825       fi~
9826       $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'
9827     else
9828       ld_shlibs_CXX=no
9829     fi
9830   ;;
9831
9832   darwin* | rhapsody*)
9833    if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
9834     archive_cmds_need_lc_CXX=no
9835     case "$host_os" in
9836     rhapsody* | darwin1.[012])
9837       allow_undefined_flag_CXX='-undefined suppress'
9838       ;;
9839     *) # Darwin 1.3 on
9840       test -z ${LD_TWOLEVEL_NAMESPACE} && allow_undefined_flag_CXX='-flat_namespace -undefined suppress'
9841       ;;
9842     esac
9843         lt_int_apple_cc_single_mod=no
9844         output_verbose_link_cmd='echo'
9845         if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
9846           lt_int_apple_cc_single_mod=yes
9847         fi
9848         if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
9849           archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
9850         else
9851         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'
9852       fi
9853       module_cmds_CXX='$CC -bundle ${wl}-bind_at_load $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags'
9854
9855     # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
9856       if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
9857         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}'
9858       else
9859         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}'
9860       fi
9861         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}'
9862     hardcode_direct_CXX=no
9863     hardcode_automatic_CXX=yes
9864     hardcode_shlibpath_var_CXX=unsupported
9865     whole_archive_flag_spec_CXX='-all_load $convenience'
9866     link_all_deplibs_CXX=yes
9867    fi
9868     ;;
9869
9870   dgux*)
9871     case $cc_basename in
9872       ec++)
9873         # FIXME: insert proper C++ library support
9874         ld_shlibs_CXX=no
9875         ;;
9876       ghcx)
9877         # Green Hills C++ Compiler
9878         # FIXME: insert proper C++ library support
9879         ld_shlibs_CXX=no
9880         ;;
9881       *)
9882         # FIXME: insert proper C++ library support
9883         ld_shlibs_CXX=no
9884         ;;
9885     esac
9886     ;;
9887   freebsd12*)
9888     # C++ shared libraries reported to be fairly broken before switch to ELF
9889     ld_shlibs_CXX=no
9890     ;;
9891   freebsd-elf*)
9892     archive_cmds_need_lc_CXX=no
9893     ;;
9894   freebsd*)
9895     # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
9896     # conventions
9897     ld_shlibs_CXX=yes
9898     ;;
9899   gnu*)
9900     ;;
9901   hpux9*)
9902     hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
9903     hardcode_libdir_separator_CXX=:
9904     export_dynamic_flag_spec_CXX='${wl}-E'
9905     hardcode_direct_CXX=yes
9906     hardcode_minus_L_CXX=yes # Not in the search PATH,
9907                                 # but as the default
9908                                 # location of the library.
9909
9910     case $cc_basename in
9911     CC)
9912       # FIXME: insert proper C++ library support
9913       ld_shlibs_CXX=no
9914       ;;
9915     aCC)
9916       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'
9917       # Commands to make compiler produce verbose output that lists
9918       # what "hidden" libraries, object files and flags are used when
9919       # linking a shared library.
9920       #
9921       # There doesn't appear to be a way to prevent this compiler from
9922       # explicitly linking system object files so we need to strip them
9923       # from the output so that they don't get included in the library
9924       # dependencies.
9925       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'
9926       ;;
9927     *)
9928       if test "$GXX" = yes; then
9929         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'
9930       else
9931         # FIXME: insert proper C++ library support
9932         ld_shlibs_CXX=no
9933       fi
9934       ;;
9935     esac
9936     ;;
9937   hpux10*|hpux11*)
9938     if test $with_gnu_ld = no; then
9939       case "$host_cpu" in
9940       hppa*64*)
9941         hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
9942         hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
9943         hardcode_libdir_separator_CXX=:
9944         ;;
9945       ia64*)
9946         hardcode_libdir_flag_spec_CXX='-L$libdir'
9947         ;;
9948       *)
9949         hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
9950         hardcode_libdir_separator_CXX=:
9951         export_dynamic_flag_spec_CXX='${wl}-E'
9952         ;;
9953       esac
9954     fi
9955     case "$host_cpu" in
9956     hppa*64*)
9957       hardcode_direct_CXX=no
9958       hardcode_shlibpath_var_CXX=no
9959       ;;
9960     ia64*)
9961       hardcode_direct_CXX=no
9962       hardcode_shlibpath_var_CXX=no
9963       hardcode_minus_L_CXX=yes # Not in the search PATH,
9964                                               # but as the default
9965                                               # location of the library.
9966       ;;
9967     *)
9968       hardcode_direct_CXX=yes
9969       hardcode_minus_L_CXX=yes # Not in the search PATH,
9970                                               # but as the default
9971                                               # location of the library.
9972       ;;
9973     esac
9974
9975     case $cc_basename in
9976       CC)
9977         # FIXME: insert proper C++ library support
9978         ld_shlibs_CXX=no
9979         ;;
9980       aCC)
9981         case "$host_cpu" in
9982         hppa*64*|ia64*)
9983           archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
9984           ;;
9985         *)
9986           archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
9987           ;;
9988         esac
9989         # Commands to make compiler produce verbose output that lists
9990         # what "hidden" libraries, object files and flags are used when
9991         # linking a shared library.
9992         #
9993         # There doesn't appear to be a way to prevent this compiler from
9994         # explicitly linking system object files so we need to strip them
9995         # from the output so that they don't get included in the library
9996         # dependencies.
9997         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'
9998         ;;
9999       *)
10000         if test "$GXX" = yes; then
10001           if test $with_gnu_ld = no; then
10002             case "$host_cpu" in
10003             ia64*|hppa*64*)
10004               archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
10005               ;;
10006             *)
10007               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'
10008               ;;
10009             esac
10010           fi
10011         else
10012           # FIXME: insert proper C++ library support
10013           ld_shlibs_CXX=no
10014         fi
10015         ;;
10016     esac
10017     ;;
10018   irix5* | irix6*)
10019     case $cc_basename in
10020       CC)
10021         # SGI C++
10022         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'
10023
10024         # Archives containing C++ object files must be created using
10025         # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
10026         # necessary to make sure instantiated templates are included
10027         # in the archive.
10028         old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
10029         ;;
10030       *)
10031         if test "$GXX" = yes; then
10032           if test "$with_gnu_ld" = no; then
10033             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'
10034           else
10035             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'
10036           fi
10037         fi
10038         link_all_deplibs_CXX=yes
10039         ;;
10040     esac
10041     hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10042     hardcode_libdir_separator_CXX=:
10043     ;;
10044   linux*)
10045     case $cc_basename in
10046       KCC)
10047         # Kuck and Associates, Inc. (KAI) C++ Compiler
10048
10049         # KCC will only create a shared library if the output file
10050         # ends with ".so" (or ".sl" for HP-UX), so rename the library
10051         # to its proper name (with version) after linking.
10052         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'
10053         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'
10054         # Commands to make compiler produce verbose output that lists
10055         # what "hidden" libraries, object files and flags are used when
10056         # linking a shared library.
10057         #
10058         # There doesn't appear to be a way to prevent this compiler from
10059         # explicitly linking system object files so we need to strip them
10060         # from the output so that they don't get included in the library
10061         # dependencies.
10062         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'
10063
10064         hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
10065         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10066
10067         # Archives containing C++ object files must be created using
10068         # "CC -Bstatic", where "CC" is the KAI C++ compiler.
10069         old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
10070         ;;
10071       icpc)
10072         # Intel C++
10073         with_gnu_ld=yes
10074         archive_cmds_need_lc_CXX=no
10075         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10076         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'
10077         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10078         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10079         whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
10080         ;;
10081       cxx)
10082         # Compaq C++
10083         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10084         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'
10085
10086         runpath_var=LD_RUN_PATH
10087         hardcode_libdir_flag_spec_CXX='-rpath $libdir'
10088         hardcode_libdir_separator_CXX=:
10089
10090         # Commands to make compiler produce verbose output that lists
10091         # what "hidden" libraries, object files and flags are used when
10092         # linking a shared library.
10093         #
10094         # There doesn't appear to be a way to prevent this compiler from
10095         # explicitly linking system object files so we need to strip them
10096         # from the output so that they don't get included in the library
10097         # dependencies.
10098         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'
10099         ;;
10100     esac
10101     ;;
10102   lynxos*)
10103     # FIXME: insert proper C++ library support
10104     ld_shlibs_CXX=no
10105     ;;
10106   m88k*)
10107     # FIXME: insert proper C++ library support
10108     ld_shlibs_CXX=no
10109     ;;
10110   mvs*)
10111     case $cc_basename in
10112       cxx)
10113         # FIXME: insert proper C++ library support
10114         ld_shlibs_CXX=no
10115         ;;
10116       *)
10117         # FIXME: insert proper C++ library support
10118         ld_shlibs_CXX=no
10119         ;;
10120     esac
10121     ;;
10122   netbsd*)
10123     if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
10124       archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
10125       wlarc=
10126       hardcode_libdir_flag_spec_CXX='-R$libdir'
10127       hardcode_direct_CXX=yes
10128       hardcode_shlibpath_var_CXX=no
10129     fi
10130     # Workaround some broken pre-1.5 toolchains
10131     output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
10132     ;;
10133   osf3*)
10134     case $cc_basename in
10135       KCC)
10136         # Kuck and Associates, Inc. (KAI) C++ Compiler
10137
10138         # KCC will only create a shared library if the output file
10139         # ends with ".so" (or ".sl" for HP-UX), so rename the library
10140         # to its proper name (with version) after linking.
10141         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'
10142
10143         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10144         hardcode_libdir_separator_CXX=:
10145
10146         # Archives containing C++ object files must be created using
10147         # "CC -Bstatic", where "CC" is the KAI C++ compiler.
10148         old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
10149
10150         ;;
10151       RCC)
10152         # Rational C++ 2.4.1
10153         # FIXME: insert proper C++ library support
10154         ld_shlibs_CXX=no
10155         ;;
10156       cxx)
10157         allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10158         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'
10159
10160         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10161         hardcode_libdir_separator_CXX=:
10162
10163         # Commands to make compiler produce verbose output that lists
10164         # what "hidden" libraries, object files and flags are used when
10165         # linking a shared library.
10166         #
10167         # There doesn't appear to be a way to prevent this compiler from
10168         # explicitly linking system object files so we need to strip them
10169         # from the output so that they don't get included in the library
10170         # dependencies.
10171         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'
10172         ;;
10173       *)
10174         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10175           allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10176           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'
10177
10178           hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10179           hardcode_libdir_separator_CXX=:
10180
10181           # Commands to make compiler produce verbose output that lists
10182           # what "hidden" libraries, object files and flags are used when
10183           # linking a shared library.
10184           output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10185
10186         else
10187           # FIXME: insert proper C++ library support
10188           ld_shlibs_CXX=no
10189         fi
10190         ;;
10191     esac
10192     ;;
10193   osf4* | osf5*)
10194     case $cc_basename in
10195       KCC)
10196         # Kuck and Associates, Inc. (KAI) C++ Compiler
10197
10198         # KCC will only create a shared library if the output file
10199         # ends with ".so" (or ".sl" for HP-UX), so rename the library
10200         # to its proper name (with version) after linking.
10201         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'
10202
10203         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10204         hardcode_libdir_separator_CXX=:
10205
10206         # Archives containing C++ object files must be created using
10207         # the KAI C++ compiler.
10208         old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
10209         ;;
10210       RCC)
10211         # Rational C++ 2.4.1
10212         # FIXME: insert proper C++ library support
10213         ld_shlibs_CXX=no
10214         ;;
10215       cxx)
10216         allow_undefined_flag_CXX=' -expect_unresolved \*'
10217         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'
10218         archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
10219           echo "-hidden">> $lib.exp~
10220           $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~
10221           $rm $lib.exp'
10222
10223         hardcode_libdir_flag_spec_CXX='-rpath $libdir'
10224         hardcode_libdir_separator_CXX=:
10225
10226         # Commands to make compiler produce verbose output that lists
10227         # what "hidden" libraries, object files and flags are used when
10228         # linking a shared library.
10229         #
10230         # There doesn't appear to be a way to prevent this compiler from
10231         # explicitly linking system object files so we need to strip them
10232         # from the output so that they don't get included in the library
10233         # dependencies.
10234         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'
10235         ;;
10236       *)
10237         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10238           allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10239          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'
10240
10241           hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10242           hardcode_libdir_separator_CXX=:
10243
10244           # Commands to make compiler produce verbose output that lists
10245           # what "hidden" libraries, object files and flags are used when
10246           # linking a shared library.
10247           output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10248
10249         else
10250           # FIXME: insert proper C++ library support
10251           ld_shlibs_CXX=no
10252         fi
10253         ;;
10254     esac
10255     ;;
10256   psos*)
10257     # FIXME: insert proper C++ library support
10258     ld_shlibs_CXX=no
10259     ;;
10260   sco*)
10261     archive_cmds_need_lc_CXX=no
10262     case $cc_basename in
10263       CC)
10264         # FIXME: insert proper C++ library support
10265         ld_shlibs_CXX=no
10266         ;;
10267       *)
10268         # FIXME: insert proper C++ library support
10269         ld_shlibs_CXX=no
10270         ;;
10271     esac
10272     ;;
10273   sunos4*)
10274     case $cc_basename in
10275       CC)
10276         # Sun C++ 4.x
10277         # FIXME: insert proper C++ library support
10278         ld_shlibs_CXX=no
10279         ;;
10280       lcc)
10281         # Lucid
10282         # FIXME: insert proper C++ library support
10283         ld_shlibs_CXX=no
10284         ;;
10285       *)
10286         # FIXME: insert proper C++ library support
10287         ld_shlibs_CXX=no
10288         ;;
10289     esac
10290     ;;
10291   solaris*)
10292     case $cc_basename in
10293       CC)
10294         # Sun C++ 4.2, 5.x and Centerline C++
10295         no_undefined_flag_CXX=' -zdefs'
10296         archive_cmds_CXX='$CC -G${allow_undefined_flag} -nolib -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10297         archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10298         $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'
10299
10300         hardcode_libdir_flag_spec_CXX='-R$libdir'
10301         hardcode_shlibpath_var_CXX=no
10302         case $host_os in
10303           solaris2.0-5 | solaris2.0-5.*) ;;
10304           *)
10305             # The C++ compiler is used as linker so we must use $wl
10306             # flag to pass the commands to the underlying system
10307             # linker.
10308             # Supported since Solaris 2.6 (maybe 2.5.1?)
10309             whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10310             ;;
10311         esac
10312         link_all_deplibs_CXX=yes
10313
10314         # Commands to make compiler produce verbose output that lists
10315         # what "hidden" libraries, object files and flags are used when
10316         # linking a shared library.
10317         #
10318         # There doesn't appear to be a way to prevent this compiler from
10319         # explicitly linking system object files so we need to strip them
10320         # from the output so that they don't get included in the library
10321         # dependencies.
10322         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'
10323
10324         # Archives containing C++ object files must be created using
10325         # "CC -xar", where "CC" is the Sun C++ compiler.  This is
10326         # necessary to make sure instantiated templates are included
10327         # in the archive.
10328         old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
10329         ;;
10330       gcx)
10331         # Green Hills C++ Compiler
10332         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10333
10334         # The C++ compiler must be used to create the archive.
10335         old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
10336         ;;
10337       *)
10338         # GNU C++ compiler with Solaris linker
10339         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10340           no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
10341           if $CC --version | grep -v '^2\.7' > /dev/null; then
10342             archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10343             archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10344                 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
10345
10346             # Commands to make compiler produce verbose output that lists
10347             # what "hidden" libraries, object files and flags are used when
10348             # linking a shared library.
10349             output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
10350           else
10351             # g++ 2.7 appears to require `-G' NOT `-shared' on this
10352             # platform.
10353             archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10354             archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10355                 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
10356
10357             # Commands to make compiler produce verbose output that lists
10358             # what "hidden" libraries, object files and flags are used when
10359             # linking a shared library.
10360             output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
10361           fi
10362
10363           hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
10364         fi
10365         ;;
10366     esac
10367     ;;
10368   sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
10369     archive_cmds_need_lc_CXX=no
10370     ;;
10371   tandem*)
10372     case $cc_basename in
10373       NCC)
10374         # NonStop-UX NCC 3.20
10375         # FIXME: insert proper C++ library support
10376         ld_shlibs_CXX=no
10377         ;;
10378       *)
10379         # FIXME: insert proper C++ library support
10380         ld_shlibs_CXX=no
10381         ;;
10382     esac
10383     ;;
10384   vxworks*)
10385     # FIXME: insert proper C++ library support
10386     ld_shlibs_CXX=no
10387     ;;
10388   *)
10389     # FIXME: insert proper C++ library support
10390     ld_shlibs_CXX=no
10391     ;;
10392 esac
10393 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
10394 echo "${ECHO_T}$ld_shlibs_CXX" >&6
10395 test "$ld_shlibs_CXX" = no && can_build_shared=no
10396
10397 GCC_CXX="$GXX"
10398 LD_CXX="$LD"
10399
10400 ## CAVEAT EMPTOR:
10401 ## There is no encapsulation within the following macros, do not change
10402 ## the running order or otherwise move them around unless you know exactly
10403 ## what you are doing...
10404
10405 cat > conftest.$ac_ext <<EOF
10406 class Foo
10407 {
10408 public:
10409   Foo (void) { a = 0; }
10410 private:
10411   int a;
10412 };
10413 EOF
10414
10415 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10416   (eval $ac_compile) 2>&5
10417   ac_status=$?
10418   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10419   (exit $ac_status); }; then
10420   # Parse the compiler output and extract the necessary
10421   # objects, libraries and library flags.
10422
10423   # Sentinel used to keep track of whether or not we are before
10424   # the conftest object file.
10425   pre_test_object_deps_done=no
10426
10427   # The `*' in the case matches for architectures that use `case' in
10428   # $output_verbose_cmd can trigger glob expansion during the loop
10429   # eval without this substitution.
10430   output_verbose_link_cmd="`$echo \"X$output_verbose_link_cmd\" | $Xsed -e \"$no_glob_subst\"`"
10431
10432   for p in `eval $output_verbose_link_cmd`; do
10433     case $p in
10434
10435     -L* | -R* | -l*)
10436        # Some compilers place space between "-{L,R}" and the path.
10437        # Remove the space.
10438        if test $p = "-L" \
10439           || test $p = "-R"; then
10440          prev=$p
10441          continue
10442        else
10443          prev=
10444        fi
10445
10446        if test "$pre_test_object_deps_done" = no; then
10447          case $p in
10448          -L* | -R*)
10449            # Internal compiler library paths should come after those
10450            # provided the user.  The postdeps already come after the
10451            # user supplied libs so there is no need to process them.
10452            if test -z "$compiler_lib_search_path_CXX"; then
10453              compiler_lib_search_path_CXX="${prev}${p}"
10454            else
10455              compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
10456            fi
10457            ;;
10458          # The "-l" case would never come before the object being
10459          # linked, so don't bother handling this case.
10460          esac
10461        else
10462          if test -z "$postdeps_CXX"; then
10463            postdeps_CXX="${prev}${p}"
10464          else
10465            postdeps_CXX="${postdeps_CXX} ${prev}${p}"
10466          fi
10467        fi
10468        ;;
10469
10470     *.$objext)
10471        # This assumes that the test object file only shows up
10472        # once in the compiler output.
10473        if test "$p" = "conftest.$objext"; then
10474          pre_test_object_deps_done=yes
10475          continue
10476        fi
10477
10478        if test "$pre_test_object_deps_done" = no; then
10479          if test -z "$predep_objects_CXX"; then
10480            predep_objects_CXX="$p"
10481          else
10482            predep_objects_CXX="$predep_objects_CXX $p"
10483          fi
10484        else
10485          if test -z "$postdep_objects_CXX"; then
10486            postdep_objects_CXX="$p"
10487          else
10488            postdep_objects_CXX="$postdep_objects_CXX $p"
10489          fi
10490        fi
10491        ;;
10492
10493     *) ;; # Ignore the rest.
10494
10495     esac
10496   done
10497
10498   # Clean up.
10499   rm -f a.out a.exe
10500 else
10501   echo "libtool.m4: error: problem compiling CXX test program"
10502 fi
10503
10504 $rm -f confest.$objext
10505
10506 case " $postdeps_CXX " in
10507 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
10508 esac
10509
10510 lt_prog_compiler_wl_CXX=
10511 lt_prog_compiler_pic_CXX=
10512 lt_prog_compiler_static_CXX=
10513
10514 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
10515 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
10516
10517   # C++ specific cases for pic, static, wl, etc.
10518   if test "$GXX" = yes; then
10519     lt_prog_compiler_wl_CXX='-Wl,'
10520     lt_prog_compiler_static_CXX='-static'
10521
10522     case $host_os in
10523     aix*)
10524       # All AIX code is PIC.
10525       if test "$host_cpu" = ia64; then
10526         # AIX 5 now supports IA64 processor
10527         lt_prog_compiler_static_CXX='-Bstatic'
10528       fi
10529       ;;
10530     amigaos*)
10531       # FIXME: we need at least 68020 code to build shared libraries, but
10532       # adding the `-m68020' flag to GCC prevents building anything better,
10533       # like `-m68040'.
10534       lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
10535       ;;
10536     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
10537       # PIC is the default for these OSes.
10538       ;;
10539     mingw* | os2* | pw32*)
10540       # This hack is so that the source file can tell whether it is being
10541       # built for inclusion in a dll (and should export symbols for example).
10542       lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
10543       ;;
10544     darwin* | rhapsody*)
10545       # PIC is the default on this platform
10546       # Common symbols not allowed in MH_DYLIB files
10547       lt_prog_compiler_pic_CXX='-fno-common'
10548       ;;
10549     *djgpp*)
10550       # DJGPP does not support shared libraries at all
10551       lt_prog_compiler_pic_CXX=
10552       ;;
10553     sysv4*MP*)
10554       if test -d /usr/nec; then
10555         lt_prog_compiler_pic_CXX=-Kconform_pic
10556       fi
10557       ;;
10558     hpux*)
10559       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
10560       # not for PA HP-UX.
10561       case "$host_cpu" in
10562       hppa*64*|ia64*)
10563         ;;
10564       *)
10565         lt_prog_compiler_pic_CXX='-fPIC'
10566         ;;
10567       esac
10568       ;;
10569     *)
10570       lt_prog_compiler_pic_CXX='-fPIC'
10571       ;;
10572     esac
10573   else
10574     case $host_os in
10575       aix4* | aix5*)
10576         # All AIX code is PIC.
10577         if test "$host_cpu" = ia64; then
10578           # AIX 5 now supports IA64 processor
10579           lt_prog_compiler_static_CXX='-Bstatic'
10580         else
10581           lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
10582         fi
10583         ;;
10584       chorus*)
10585         case $cc_basename in
10586         cxch68)
10587           # Green Hills C++ Compiler
10588           # _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"
10589           ;;
10590         esac
10591         ;;
10592       dgux*)
10593         case $cc_basename in
10594           ec++)
10595             lt_prog_compiler_pic_CXX='-KPIC'
10596             ;;
10597           ghcx)
10598             # Green Hills C++ Compiler
10599             lt_prog_compiler_pic_CXX='-pic'
10600             ;;
10601           *)
10602             ;;
10603         esac
10604         ;;
10605       freebsd*)
10606         # FreeBSD uses GNU C++
10607         ;;
10608       hpux9* | hpux10* | hpux11*)
10609         case $cc_basename in
10610           CC)
10611             lt_prog_compiler_wl_CXX='-Wl,'
10612             lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
10613             if test "$host_cpu" != ia64; then
10614               lt_prog_compiler_pic_CXX='+Z'
10615             fi
10616             ;;
10617           aCC)
10618             lt_prog_compiler_wl_CXX='-Wl,'
10619             lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
10620             case "$host_cpu" in
10621             hppa*64*|ia64*)
10622               # +Z the default
10623               ;;
10624             *)
10625               lt_prog_compiler_pic_CXX='+Z'
10626               ;;
10627             esac
10628             ;;
10629           *)
10630             ;;
10631         esac
10632         ;;
10633       irix5* | irix6* | nonstopux*)
10634         case $cc_basename in
10635           CC)
10636             lt_prog_compiler_wl_CXX='-Wl,'
10637             lt_prog_compiler_static_CXX='-non_shared'
10638             # CC pic flag -KPIC is the default.
10639             ;;
10640           *)
10641             ;;
10642         esac
10643         ;;
10644       linux*)
10645         case $cc_basename in
10646           KCC)
10647             # KAI C++ Compiler
10648             lt_prog_compiler_wl_CXX='--backend -Wl,'
10649             lt_prog_compiler_pic_CXX='-fPIC'
10650             ;;
10651           icpc)
10652             # Intel C++
10653             lt_prog_compiler_wl_CXX='-Wl,'
10654             lt_prog_compiler_pic_CXX='-KPIC'
10655             lt_prog_compiler_static_CXX='-static'
10656             ;;
10657           cxx)
10658             # Compaq C++
10659             # Make sure the PIC flag is empty.  It appears that all Alpha
10660             # Linux and Compaq Tru64 Unix objects are PIC.
10661             lt_prog_compiler_pic_CXX=
10662             lt_prog_compiler_static_CXX='-non_shared'
10663             ;;
10664           *)
10665             ;;
10666         esac
10667         ;;
10668       lynxos*)
10669         ;;
10670       m88k*)
10671         ;;
10672       mvs*)
10673         case $cc_basename in
10674           cxx)
10675             lt_prog_compiler_pic_CXX='-W c,exportall'
10676             ;;
10677           *)
10678             ;;
10679         esac
10680         ;;
10681       netbsd*)
10682         ;;
10683       osf3* | osf4* | osf5*)
10684         case $cc_basename in
10685           KCC)
10686             lt_prog_compiler_wl_CXX='--backend -Wl,'
10687             ;;
10688           RCC)
10689             # Rational C++ 2.4.1
10690             lt_prog_compiler_pic_CXX='-pic'
10691             ;;
10692           cxx)
10693             # Digital/Compaq C++
10694             lt_prog_compiler_wl_CXX='-Wl,'
10695             # Make sure the PIC flag is empty.  It appears that all Alpha
10696             # Linux and Compaq Tru64 Unix objects are PIC.
10697             lt_prog_compiler_pic_CXX=
10698             lt_prog_compiler_static_CXX='-non_shared'
10699             ;;
10700           *)
10701             ;;
10702         esac
10703         ;;
10704       psos*)
10705         ;;
10706       sco*)
10707         case $cc_basename in
10708           CC)
10709             lt_prog_compiler_pic_CXX='-fPIC'
10710             ;;
10711           *)
10712             ;;
10713         esac
10714         ;;
10715       solaris*)
10716         case $cc_basename in
10717           CC)
10718             # Sun C++ 4.2, 5.x and Centerline C++
10719             lt_prog_compiler_pic_CXX='-KPIC'
10720             lt_prog_compiler_static_CXX='-Bstatic'
10721             lt_prog_compiler_wl_CXX='-Qoption ld '
10722             ;;
10723           gcx)
10724             # Green Hills C++ Compiler
10725             lt_prog_compiler_pic_CXX='-PIC'
10726             ;;
10727           *)
10728             ;;
10729         esac
10730         ;;
10731       sunos4*)
10732         case $cc_basename in
10733           CC)
10734             # Sun C++ 4.x
10735             lt_prog_compiler_pic_CXX='-pic'
10736             lt_prog_compiler_static_CXX='-Bstatic'
10737             ;;
10738           lcc)
10739             # Lucid
10740             lt_prog_compiler_pic_CXX='-pic'
10741             ;;
10742           *)
10743             ;;
10744         esac
10745         ;;
10746       tandem*)
10747         case $cc_basename in
10748           NCC)
10749             # NonStop-UX NCC 3.20
10750             lt_prog_compiler_pic_CXX='-KPIC'
10751             ;;
10752           *)
10753             ;;
10754         esac
10755         ;;
10756       unixware*)
10757         ;;
10758       vxworks*)
10759         ;;
10760       *)
10761         lt_prog_compiler_can_build_shared_CXX=no
10762         ;;
10763     esac
10764   fi
10765
10766 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
10767 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6
10768
10769 #
10770 # Check to make sure the PIC flag actually works.
10771 #
10772 if test -n "$lt_prog_compiler_pic_CXX"; then
10773   echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
10774 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6
10775 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
10776   echo $ECHO_N "(cached) $ECHO_C" >&6
10777 else
10778   lt_prog_compiler_pic_works_CXX=no
10779   ac_outfile=conftest.$ac_objext
10780    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
10781    lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
10782    # Insert the option either (1) after the last *FLAGS variable, or
10783    # (2) before a word containing "conftest.", or (3) at the end.
10784    # Note that $ac_compile itself does not contain backslashes and begins
10785    # with a dollar sign (not a hyphen), so the echo should work correctly.
10786    # The option is referenced via a variable to avoid confusing sed.
10787    lt_compile=`echo "$ac_compile" | $SED \
10788    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
10789    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10790    -e 's:$: $lt_compiler_flag:'`
10791    (eval echo "\"\$as_me:10791: $lt_compile\"" >&5)
10792    (eval "$lt_compile" 2>conftest.err)
10793    ac_status=$?
10794    cat conftest.err >&5
10795    echo "$as_me:10795: \$? = $ac_status" >&5
10796    if (exit $ac_status) && test -s "$ac_outfile"; then
10797      # The compiler can only warn and ignore the option if not recognized
10798      # So say no if there are warnings
10799      if test ! -s conftest.err; then
10800        lt_prog_compiler_pic_works_CXX=yes
10801      fi
10802    fi
10803    $rm conftest*
10804
10805 fi
10806 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
10807 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6
10808
10809 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
10810     case $lt_prog_compiler_pic_CXX in
10811      "" | " "*) ;;
10812      *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
10813      esac
10814 else
10815     lt_prog_compiler_pic_CXX=
10816      lt_prog_compiler_can_build_shared_CXX=no
10817 fi
10818
10819 fi
10820 case "$host_os" in
10821   # For platforms which do not support PIC, -DPIC is meaningless:
10822   *djgpp*)
10823     lt_prog_compiler_pic_CXX=
10824     ;;
10825   *)
10826     lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
10827     ;;
10828 esac
10829
10830 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
10831 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
10832 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
10833   echo $ECHO_N "(cached) $ECHO_C" >&6
10834 else
10835   lt_cv_prog_compiler_c_o_CXX=no
10836    $rm -r conftest 2>/dev/null
10837    mkdir conftest
10838    cd conftest
10839    mkdir out
10840    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
10841
10842    # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
10843    # that will create temporary files in the current directory regardless of
10844    # the output directory.  Thus, making CWD read-only will cause this test
10845    # to fail, enabling locking or at least warning the user not to do parallel
10846    # builds.
10847    chmod -w .
10848
10849    lt_compiler_flag="-o out/conftest2.$ac_objext"
10850    # Insert the option either (1) after the last *FLAGS variable, or
10851    # (2) before a word containing "conftest.", or (3) at the end.
10852    # Note that $ac_compile itself does not contain backslashes and begins
10853    # with a dollar sign (not a hyphen), so the echo should work correctly.
10854    lt_compile=`echo "$ac_compile" | $SED \
10855    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
10856    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10857    -e 's:$: $lt_compiler_flag:'`
10858    (eval echo "\"\$as_me:10858: $lt_compile\"" >&5)
10859    (eval "$lt_compile" 2>out/conftest.err)
10860    ac_status=$?
10861    cat out/conftest.err >&5
10862    echo "$as_me:10862: \$? = $ac_status" >&5
10863    if (exit $ac_status) && test -s out/conftest2.$ac_objext
10864    then
10865      # The compiler can only warn and ignore the option if not recognized
10866      # So say no if there are warnings
10867      if test ! -s out/conftest.err; then
10868        lt_cv_prog_compiler_c_o_CXX=yes
10869      fi
10870    fi
10871    chmod u+w .
10872    $rm conftest* out/*
10873    rmdir out
10874    cd ..
10875    rmdir conftest
10876    $rm conftest*
10877
10878 fi
10879 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
10880 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
10881
10882
10883 hard_links="nottested"
10884 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
10885   # do not overwrite the value of need_locks provided by the user
10886   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
10887 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
10888   hard_links=yes
10889   $rm conftest*
10890   ln conftest.a conftest.b 2>/dev/null && hard_links=no
10891   touch conftest.a
10892   ln conftest.a conftest.b 2>&5 || hard_links=no
10893   ln conftest.a conftest.b 2>/dev/null && hard_links=no
10894   echo "$as_me:$LINENO: result: $hard_links" >&5
10895 echo "${ECHO_T}$hard_links" >&6
10896   if test "$hard_links" = no; then
10897     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
10898 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
10899     need_locks=warn
10900   fi
10901 else
10902   need_locks=no
10903 fi
10904
10905 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10906 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
10907
10908   export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
10909   case $host_os in
10910   aix4* | aix5*)
10911     # If we're using GNU nm, then we don't want the "-C" option.
10912     # -C means demangle to AIX nm, but means don't demangle with GNU nm
10913     if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
10914       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'
10915     else
10916       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'
10917     fi
10918     ;;
10919   pw32*)
10920     export_symbols_cmds_CXX="$ltdll_cmds"
10921   ;;
10922   cygwin* | mingw*)
10923     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
10924   ;;
10925   *)
10926     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
10927   ;;
10928   esac
10929
10930 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
10931 echo "${ECHO_T}$ld_shlibs_CXX" >&6
10932 test "$ld_shlibs_CXX" = no && can_build_shared=no
10933
10934 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10935 if test "$GCC" = yes; then
10936   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10937 fi
10938
10939 #
10940 # Do we need to explicitly link libc?
10941 #
10942 case "x$archive_cmds_need_lc_CXX" in
10943 x|xyes)
10944   # Assume -lc should be added
10945   archive_cmds_need_lc_CXX=yes
10946
10947   if test "$enable_shared" = yes && test "$GCC" = yes; then
10948     case $archive_cmds_CXX in
10949     *'~'*)
10950       # FIXME: we may have to deal with multi-command sequences.
10951       ;;
10952     '$CC '*)
10953       # Test whether the compiler implicitly links with -lc since on some
10954       # systems, -lgcc has to come before -lc. If gcc already passes -lc
10955       # to ld, don't add -lc before -lgcc.
10956       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
10957 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
10958       $rm conftest*
10959       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
10960
10961       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10962   (eval $ac_compile) 2>&5
10963   ac_status=$?
10964   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10965   (exit $ac_status); } 2>conftest.err; then
10966         soname=conftest
10967         lib=conftest
10968         libobjs=conftest.$ac_objext
10969         deplibs=
10970         wl=$lt_prog_compiler_wl_CXX
10971         compiler_flags=-v
10972         linker_flags=-v
10973         verstring=
10974         output_objdir=.
10975         libname=conftest
10976         lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
10977         allow_undefined_flag_CXX=
10978         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
10979   (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
10980   ac_status=$?
10981   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10982   (exit $ac_status); }
10983         then
10984           archive_cmds_need_lc_CXX=no
10985         else
10986           archive_cmds_need_lc_CXX=yes
10987         fi
10988         allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
10989       else
10990         cat conftest.err 1>&5
10991       fi
10992       $rm conftest*
10993       echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
10994 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6
10995       ;;
10996     esac
10997   fi
10998   ;;
10999 esac
11000
11001 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
11002 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
11003 hardcode_action_CXX=
11004 if test -n "$hardcode_libdir_flag_spec_CXX" || \
11005    test -n "$runpath_var CXX" || \
11006    test "X$hardcode_automatic_CXX"="Xyes" ; then
11007
11008   # We can hardcode non-existant directories.
11009   if test "$hardcode_direct_CXX" != no &&
11010      # If the only mechanism to avoid hardcoding is shlibpath_var, we
11011      # have to relink, otherwise we might link with an installed library
11012      # when we should be linking with a yet-to-be-installed one
11013      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
11014      test "$hardcode_minus_L_CXX" != no; then
11015     # Linking always hardcodes the temporary library directory.
11016     hardcode_action_CXX=relink
11017   else
11018     # We can link without hardcoding, and we can hardcode nonexisting dirs.
11019     hardcode_action_CXX=immediate
11020   fi
11021 else
11022   # We cannot hardcode anything, or else we can only hardcode existing
11023   # directories.
11024   hardcode_action_CXX=unsupported
11025 fi
11026 echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
11027 echo "${ECHO_T}$hardcode_action_CXX" >&6
11028
11029 if test "$hardcode_action_CXX" = relink; then
11030   # Fast installation is not supported
11031   enable_fast_install=no
11032 elif test "$shlibpath_overrides_runpath" = yes ||
11033      test "$enable_shared" = no; then
11034   # Fast installation is not necessary
11035   enable_fast_install=needless
11036 fi
11037
11038 striplib=
11039 old_striplib=
11040 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
11041 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
11042 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
11043   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11044   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11045   echo "$as_me:$LINENO: result: yes" >&5
11046 echo "${ECHO_T}yes" >&6
11047 else
11048 # FIXME - insert some real tests, host_os isn't really good enough
11049   case $host_os in
11050    darwin*)
11051        if test -n "$STRIP" ; then
11052          striplib="$STRIP -x"
11053          echo "$as_me:$LINENO: result: yes" >&5
11054 echo "${ECHO_T}yes" >&6
11055        else
11056   echo "$as_me:$LINENO: result: no" >&5
11057 echo "${ECHO_T}no" >&6
11058 fi
11059        ;;
11060    *)
11061   echo "$as_me:$LINENO: result: no" >&5
11062 echo "${ECHO_T}no" >&6
11063     ;;
11064   esac
11065 fi
11066
11067 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
11068 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
11069 library_names_spec=
11070 libname_spec='lib$name'
11071 soname_spec=
11072 shrext=".so"
11073 postinstall_cmds=
11074 postuninstall_cmds=
11075 finish_cmds=
11076 finish_eval=
11077 shlibpath_var=
11078 shlibpath_overrides_runpath=unknown
11079 version_type=none
11080 dynamic_linker="$host_os ld.so"
11081 sys_lib_dlsearch_path_spec="/lib /usr/lib"
11082 if test "$GCC" = yes; then
11083   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11084   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
11085     # if the path contains ";" then we assume it to be the separator
11086     # otherwise default to the standard path separator (i.e. ":") - it is
11087     # assumed that no part of a normal pathname contains ";" but that should
11088     # okay in the real world where ";" in dirpaths is itself problematic.
11089     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11090   else
11091     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
11092   fi
11093 else
11094   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11095 fi
11096 need_lib_prefix=unknown
11097 hardcode_into_libs=no
11098
11099 # when you set need_version to no, make sure it does not cause -set_version
11100 # flags to be left without arguments
11101 need_version=unknown
11102
11103 case $host_os in
11104 aix3*)
11105   version_type=linux
11106   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
11107   shlibpath_var=LIBPATH
11108
11109   # AIX 3 has no versioning support, so we append a major version to the name.
11110   soname_spec='${libname}${release}${shared_ext}$major'
11111   ;;
11112
11113 aix4* | aix5*)
11114   version_type=linux
11115   need_lib_prefix=no
11116   need_version=no
11117   hardcode_into_libs=yes
11118   if test "$host_cpu" = ia64; then
11119     # AIX 5 supports IA64
11120     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
11121     shlibpath_var=LD_LIBRARY_PATH
11122   else
11123     # With GCC up to 2.95.x, collect2 would create an import file
11124     # for dependence libraries.  The import file would start with
11125     # the line `#! .'.  This would cause the generated library to
11126     # depend on `.', always an invalid library.  This was fixed in
11127     # development snapshots of GCC prior to 3.0.
11128     case $host_os in
11129       aix4 | aix4.[01] | aix4.[01].*)
11130       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11131            echo ' yes '
11132            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
11133         :
11134       else
11135         can_build_shared=no
11136       fi
11137       ;;
11138     esac
11139     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
11140     # soname into executable. Probably we can add versioning support to
11141     # collect2, so additional links can be useful in future.
11142     if test "$aix_use_runtimelinking" = yes; then
11143       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11144       # instead of lib<name>.a to let people know that these are not
11145       # typical AIX shared libraries.
11146       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11147     else
11148       # We preserve .a as extension for shared libraries through AIX4.2
11149       # and later when we are not doing run time linking.
11150       library_names_spec='${libname}${release}.a $libname.a'
11151       soname_spec='${libname}${release}${shared_ext}$major'
11152     fi
11153     shlibpath_var=LIBPATH
11154   fi
11155   ;;
11156
11157 amigaos*)
11158   library_names_spec='$libname.ixlibrary $libname.a'
11159   # Create ${libname}_ixlibrary.a entries in /sys/libs.
11160   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'
11161   ;;
11162
11163 beos*)
11164   library_names_spec='${libname}${shared_ext}'
11165   dynamic_linker="$host_os ld.so"
11166   shlibpath_var=LIBRARY_PATH
11167   ;;
11168
11169 bsdi4*)
11170   version_type=linux
11171   need_version=no
11172   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11173   soname_spec='${libname}${release}${shared_ext}$major'
11174   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11175   shlibpath_var=LD_LIBRARY_PATH
11176   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11177   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11178   # the default ld.so.conf also contains /usr/contrib/lib and
11179   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11180   # libtool to hard-code these into programs
11181   ;;
11182
11183 cygwin* | mingw* | pw32*)
11184   version_type=windows
11185   shrext=".dll"
11186   need_version=no
11187   need_lib_prefix=no
11188
11189   case $GCC,$host_os in
11190   yes,cygwin* | yes,mingw* | yes,pw32*)
11191     library_names_spec='$libname.dll.a'
11192     # DLL is installed to $(libdir)/../bin by postinstall_cmds
11193     postinstall_cmds='base_file=`basename \${file}`~
11194       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
11195       dldir=$destdir/`dirname \$dlpath`~
11196       test -d \$dldir || mkdir -p \$dldir~
11197       $install_prog $dir/$dlname \$dldir/$dlname'
11198     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11199       dlpath=$dir/\$dldll~
11200        $rm \$dlpath'
11201     shlibpath_overrides_runpath=yes
11202
11203     case $host_os in
11204     cygwin*)
11205       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11206       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11207       sys_lib_search_path_spec="/lib /lib/w32api /usr/lib /usr/local/lib"
11208       ;;
11209     mingw*)
11210       # MinGW DLLs use traditional 'lib' prefix
11211       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11212       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11213       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
11214         # It is most probably a Windows format PATH printed by
11215         # mingw gcc, but we are running on Cygwin. Gcc prints its search
11216         # path with ; separators, and with drive letters. We can handle the
11217         # drive letters (cygwin fileutils understands them), so leave them,
11218         # especially as we might pass files found there to a mingw objdump,
11219         # which wouldn't understand a cygwinified path. Ahh.
11220         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11221       else
11222         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
11223       fi
11224       ;;
11225     pw32*)
11226       # pw32 DLLs use 'pw' prefix rather than 'lib'
11227       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
11228       ;;
11229     esac
11230     ;;
11231
11232   *)
11233     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11234     ;;
11235   esac
11236   dynamic_linker='Win32 ld.exe'
11237   # FIXME: first we should search . and the directory the executable is in
11238   shlibpath_var=PATH
11239   ;;
11240
11241 darwin* | rhapsody*)
11242   dynamic_linker="$host_os dyld"
11243   version_type=darwin
11244   need_lib_prefix=no
11245   need_version=no
11246   # FIXME: Relying on posixy $() will cause problems for
11247   #        cross-compilation, but unfortunately the echo tests do not
11248   #        yet detect zsh echo's removal of \ escapes.
11249   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11250   soname_spec='${libname}${release}${major}$shared_ext'
11251   shlibpath_overrides_runpath=yes
11252   shlibpath_var=DYLD_LIBRARY_PATH
11253   shrext='$(test .$module = .yes && echo .so || echo .dylib)'
11254   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
11255   if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
11256   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"`
11257   fi
11258   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11259   ;;
11260
11261 dgux*)
11262   version_type=linux
11263   need_lib_prefix=no
11264   need_version=no
11265   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11266   soname_spec='${libname}${release}${shared_ext}$major'
11267   shlibpath_var=LD_LIBRARY_PATH
11268   ;;
11269
11270 freebsd1*)
11271   dynamic_linker=no
11272   ;;
11273
11274 freebsd*)
11275   objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
11276   version_type=freebsd-$objformat
11277   case $version_type in
11278     freebsd-elf*)
11279       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11280       need_version=no
11281       need_lib_prefix=no
11282       ;;
11283     freebsd-*)
11284       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11285       need_version=yes
11286       ;;
11287   esac
11288   shlibpath_var=LD_LIBRARY_PATH
11289   case $host_os in
11290   freebsd2*)
11291     shlibpath_overrides_runpath=yes
11292     ;;
11293   freebsd3.01* | freebsdelf3.01*)
11294     shlibpath_overrides_runpath=yes
11295     hardcode_into_libs=yes
11296     ;;
11297   *) # from 3.2 on
11298     shlibpath_overrides_runpath=no
11299     hardcode_into_libs=yes
11300     ;;
11301   esac
11302   ;;
11303
11304 gnu*)
11305   version_type=linux
11306   need_lib_prefix=no
11307   need_version=no
11308   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11309   soname_spec='${libname}${release}${shared_ext}$major'
11310   shlibpath_var=LD_LIBRARY_PATH
11311   hardcode_into_libs=yes
11312   ;;
11313
11314 hpux9* | hpux10* | hpux11*)
11315   # Give a soname corresponding to the major version so that dld.sl refuses to
11316   # link against other versions.
11317   version_type=sunos
11318   need_lib_prefix=no
11319   need_version=no
11320   case "$host_cpu" in
11321   ia64*)
11322     shrext='.so'
11323     hardcode_into_libs=yes
11324     dynamic_linker="$host_os dld.so"
11325     shlibpath_var=LD_LIBRARY_PATH
11326     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11327     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11328     soname_spec='${libname}${release}${shared_ext}$major'
11329     if test "X$HPUX_IA64_MODE" = X32; then
11330       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11331     else
11332       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11333     fi
11334     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11335     ;;
11336    hppa*64*)
11337      shrext='.sl'
11338      hardcode_into_libs=yes
11339      dynamic_linker="$host_os dld.sl"
11340      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11341      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11342      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11343      soname_spec='${libname}${release}${shared_ext}$major'
11344      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11345      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11346      ;;
11347    *)
11348     shrext='.sl'
11349     dynamic_linker="$host_os dld.sl"
11350     shlibpath_var=SHLIB_PATH
11351     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11352     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11353     soname_spec='${libname}${release}${shared_ext}$major'
11354     ;;
11355   esac
11356   # HP-UX runs *really* slowly unless shared libraries are mode 555.
11357   postinstall_cmds='chmod 555 $lib'
11358   ;;
11359
11360 irix5* | irix6* | nonstopux*)
11361   case $host_os in
11362     nonstopux*) version_type=nonstopux ;;
11363     *)
11364         if test "$lt_cv_prog_gnu_ld" = yes; then
11365                 version_type=linux
11366         else
11367                 version_type=irix
11368         fi ;;
11369   esac
11370   need_lib_prefix=no
11371   need_version=no
11372   soname_spec='${libname}${release}${shared_ext}$major'
11373   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11374   case $host_os in
11375   irix5* | nonstopux*)
11376     libsuff= shlibsuff=
11377     ;;
11378   *)
11379     case $LD in # libtool.m4 will add one of these switches to LD
11380     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11381       libsuff= shlibsuff= libmagic=32-bit;;
11382     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11383       libsuff=32 shlibsuff=N32 libmagic=N32;;
11384     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11385       libsuff=64 shlibsuff=64 libmagic=64-bit;;
11386     *) libsuff= shlibsuff= libmagic=never-match;;
11387     esac
11388     ;;
11389   esac
11390   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11391   shlibpath_overrides_runpath=no
11392   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11393   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11394   hardcode_into_libs=yes
11395   ;;
11396
11397 # No shared lib support for Linux oldld, aout, or coff.
11398 linux*oldld* | linux*aout* | linux*coff*)
11399   dynamic_linker=no
11400   ;;
11401
11402 # This must be Linux ELF.
11403 linux*)
11404   version_type=linux
11405   need_lib_prefix=no
11406   need_version=no
11407   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11408   soname_spec='${libname}${release}${shared_ext}$major'
11409   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11410   shlibpath_var=LD_LIBRARY_PATH
11411   shlibpath_overrides_runpath=no
11412   # This implies no fast_install, which is unacceptable.
11413   # Some rework will be needed to allow for fast_install
11414   # before this can be enabled.
11415   hardcode_into_libs=yes
11416
11417   # We used to test for /lib/ld.so.1 and disable shared libraries on
11418   # powerpc, because MkLinux only supported shared libraries with the
11419   # GNU dynamic linker.  Since this was broken with cross compilers,
11420   # most powerpc-linux boxes support dynamic linking these days and
11421   # people can always --disable-shared, the test was removed, and we
11422   # assume the GNU/Linux dynamic linker is in use.
11423   dynamic_linker='GNU/Linux ld.so'
11424   ;;
11425
11426 netbsd*)
11427   version_type=sunos
11428   need_lib_prefix=no
11429   need_version=no
11430   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
11431     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11432     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11433     dynamic_linker='NetBSD (a.out) ld.so'
11434   else
11435     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
11436     soname_spec='${libname}${release}${shared_ext}$major'
11437     dynamic_linker='NetBSD ld.elf_so'
11438   fi
11439   shlibpath_var=LD_LIBRARY_PATH
11440   shlibpath_overrides_runpath=yes
11441   hardcode_into_libs=yes
11442   ;;
11443
11444 newsos6)
11445   version_type=linux
11446   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11447   shlibpath_var=LD_LIBRARY_PATH
11448   shlibpath_overrides_runpath=yes
11449   ;;
11450
11451 nto-qnx)
11452   version_type=linux
11453   need_lib_prefix=no
11454   need_version=no
11455   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11456   soname_spec='${libname}${release}${shared_ext}$major'
11457   shlibpath_var=LD_LIBRARY_PATH
11458   shlibpath_overrides_runpath=yes
11459   ;;
11460
11461 openbsd*)
11462   version_type=sunos
11463   need_lib_prefix=no
11464   need_version=no
11465   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11466   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11467   shlibpath_var=LD_LIBRARY_PATH
11468   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11469     case $host_os in
11470       openbsd2.[89] | openbsd2.[89].*)
11471         shlibpath_overrides_runpath=no
11472         ;;
11473       *)
11474         shlibpath_overrides_runpath=yes
11475         ;;
11476       esac
11477   else
11478     shlibpath_overrides_runpath=yes
11479   fi
11480   ;;
11481
11482 os2*)
11483   libname_spec='$name'
11484   shrext=".dll"
11485   need_lib_prefix=no
11486   library_names_spec='$libname${shared_ext} $libname.a'
11487   dynamic_linker='OS/2 ld.exe'
11488   shlibpath_var=LIBPATH
11489   ;;
11490
11491 osf3* | osf4* | osf5*)
11492   version_type=osf
11493   need_lib_prefix=no
11494   need_version=no
11495   soname_spec='${libname}${release}${shared_ext}$major'
11496   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11497   shlibpath_var=LD_LIBRARY_PATH
11498   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11499   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11500   ;;
11501
11502 sco3.2v5*)
11503   version_type=osf
11504   soname_spec='${libname}${release}${shared_ext}$major'
11505   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11506   shlibpath_var=LD_LIBRARY_PATH
11507   ;;
11508
11509 solaris*)
11510   version_type=linux
11511   need_lib_prefix=no
11512   need_version=no
11513   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11514   soname_spec='${libname}${release}${shared_ext}$major'
11515   shlibpath_var=LD_LIBRARY_PATH
11516   shlibpath_overrides_runpath=yes
11517   hardcode_into_libs=yes
11518   # ldd complains unless libraries are executable
11519   postinstall_cmds='chmod +x $lib'
11520   ;;
11521
11522 sunos4*)
11523   version_type=sunos
11524   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11525   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11526   shlibpath_var=LD_LIBRARY_PATH
11527   shlibpath_overrides_runpath=yes
11528   if test "$with_gnu_ld" = yes; then
11529     need_lib_prefix=no
11530   fi
11531   need_version=yes
11532   ;;
11533
11534 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
11535   version_type=linux
11536   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11537   soname_spec='${libname}${release}${shared_ext}$major'
11538   shlibpath_var=LD_LIBRARY_PATH
11539   case $host_vendor in
11540     sni)
11541       shlibpath_overrides_runpath=no
11542       need_lib_prefix=no
11543       export_dynamic_flag_spec='${wl}-Blargedynsym'
11544       runpath_var=LD_RUN_PATH
11545       ;;
11546     siemens)
11547       need_lib_prefix=no
11548       ;;
11549     motorola)
11550       need_lib_prefix=no
11551       need_version=no
11552       shlibpath_overrides_runpath=no
11553       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11554       ;;
11555   esac
11556   ;;
11557
11558 sysv4*MP*)
11559   if test -d /usr/nec ;then
11560     version_type=linux
11561     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11562     soname_spec='$libname${shared_ext}.$major'
11563     shlibpath_var=LD_LIBRARY_PATH
11564   fi
11565   ;;
11566
11567 uts4*)
11568   version_type=linux
11569   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11570   soname_spec='${libname}${release}${shared_ext}$major'
11571   shlibpath_var=LD_LIBRARY_PATH
11572   ;;
11573
11574 *)
11575   dynamic_linker=no
11576   ;;
11577 esac
11578 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
11579 echo "${ECHO_T}$dynamic_linker" >&6
11580 test "$dynamic_linker" = no && can_build_shared=no
11581
11582 if test "x$enable_dlopen" != xyes; then
11583   enable_dlopen=unknown
11584   enable_dlopen_self=unknown
11585   enable_dlopen_self_static=unknown
11586 else
11587   lt_cv_dlopen=no
11588   lt_cv_dlopen_libs=
11589
11590   case $host_os in
11591   beos*)
11592     lt_cv_dlopen="load_add_on"
11593     lt_cv_dlopen_libs=
11594     lt_cv_dlopen_self=yes
11595     ;;
11596
11597   mingw* | pw32*)
11598     lt_cv_dlopen="LoadLibrary"
11599     lt_cv_dlopen_libs=
11600    ;;
11601
11602   cygwin*)
11603     lt_cv_dlopen="dlopen"
11604     lt_cv_dlopen_libs=
11605    ;;
11606
11607   darwin*)
11608   # if libdl is installed we need to link against it
11609     echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
11610 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
11611 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
11612   echo $ECHO_N "(cached) $ECHO_C" >&6
11613 else
11614   ac_check_lib_save_LIBS=$LIBS
11615 LIBS="-ldl  $LIBS"
11616 cat >conftest.$ac_ext <<_ACEOF
11617 #line $LINENO "configure"
11618 /* confdefs.h.  */
11619 _ACEOF
11620 cat confdefs.h >>conftest.$ac_ext
11621 cat >>conftest.$ac_ext <<_ACEOF
11622 /* end confdefs.h.  */
11623
11624 /* Override any gcc2 internal prototype to avoid an error.  */
11625 #ifdef __cplusplus
11626 extern "C"
11627 #endif
11628 /* We use char because int might match the return type of a gcc2
11629    builtin and then its argument prototype would still apply.  */
11630 char dlopen ();
11631 int
11632 main ()
11633 {
11634 dlopen ();
11635   ;
11636   return 0;
11637 }
11638 _ACEOF
11639 rm -f conftest.$ac_objext conftest$ac_exeext
11640 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11641   (eval $ac_link) 2>&5
11642   ac_status=$?
11643   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11644   (exit $ac_status); } &&
11645          { ac_try='test -s conftest$ac_exeext'
11646   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11647   (eval $ac_try) 2>&5
11648   ac_status=$?
11649   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11650   (exit $ac_status); }; }; then
11651   ac_cv_lib_dl_dlopen=yes
11652 else
11653   echo "$as_me: failed program was:" >&5
11654 sed 's/^/| /' conftest.$ac_ext >&5
11655
11656 ac_cv_lib_dl_dlopen=no
11657 fi
11658 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11659 LIBS=$ac_check_lib_save_LIBS
11660 fi
11661 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
11662 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
11663 if test $ac_cv_lib_dl_dlopen = yes; then
11664   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11665 else
11666
11667     lt_cv_dlopen="dyld"
11668     lt_cv_dlopen_libs=
11669     lt_cv_dlopen_self=yes
11670
11671 fi
11672
11673    ;;
11674
11675   *)
11676     echo "$as_me:$LINENO: checking for shl_load" >&5
11677 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
11678 if test "${ac_cv_func_shl_load+set}" = set; then
11679   echo $ECHO_N "(cached) $ECHO_C" >&6
11680 else
11681   cat >conftest.$ac_ext <<_ACEOF
11682 #line $LINENO "configure"
11683 /* confdefs.h.  */
11684 _ACEOF
11685 cat confdefs.h >>conftest.$ac_ext
11686 cat >>conftest.$ac_ext <<_ACEOF
11687 /* end confdefs.h.  */
11688 /* System header to define __stub macros and hopefully few prototypes,
11689     which can conflict with char shl_load (); below.
11690     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11691     <limits.h> exists even on freestanding compilers.  */
11692 #ifdef __STDC__
11693 # include <limits.h>
11694 #else
11695 # include <assert.h>
11696 #endif
11697 /* Override any gcc2 internal prototype to avoid an error.  */
11698 #ifdef __cplusplus
11699 extern "C"
11700 {
11701 #endif
11702 /* We use char because int might match the return type of a gcc2
11703    builtin and then its argument prototype would still apply.  */
11704 char shl_load ();
11705 /* The GNU C library defines this for functions which it implements
11706     to always fail with ENOSYS.  Some functions are actually named
11707     something starting with __ and the normal name is an alias.  */
11708 #if defined (__stub_shl_load) || defined (__stub___shl_load)
11709 choke me
11710 #else
11711 char (*f) () = shl_load;
11712 #endif
11713 #ifdef __cplusplus
11714 }
11715 #endif
11716
11717 int
11718 main ()
11719 {
11720 return f != shl_load;
11721   ;
11722   return 0;
11723 }
11724 _ACEOF
11725 rm -f conftest.$ac_objext conftest$ac_exeext
11726 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11727   (eval $ac_link) 2>&5
11728   ac_status=$?
11729   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11730   (exit $ac_status); } &&
11731          { ac_try='test -s conftest$ac_exeext'
11732   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11733   (eval $ac_try) 2>&5
11734   ac_status=$?
11735   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11736   (exit $ac_status); }; }; then
11737   ac_cv_func_shl_load=yes
11738 else
11739   echo "$as_me: failed program was:" >&5
11740 sed 's/^/| /' conftest.$ac_ext >&5
11741
11742 ac_cv_func_shl_load=no
11743 fi
11744 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11745 fi
11746 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
11747 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
11748 if test $ac_cv_func_shl_load = yes; then
11749   lt_cv_dlopen="shl_load"
11750 else
11751   echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
11752 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
11753 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
11754   echo $ECHO_N "(cached) $ECHO_C" >&6
11755 else
11756   ac_check_lib_save_LIBS=$LIBS
11757 LIBS="-ldld  $LIBS"
11758 cat >conftest.$ac_ext <<_ACEOF
11759 #line $LINENO "configure"
11760 /* confdefs.h.  */
11761 _ACEOF
11762 cat confdefs.h >>conftest.$ac_ext
11763 cat >>conftest.$ac_ext <<_ACEOF
11764 /* end confdefs.h.  */
11765
11766 /* Override any gcc2 internal prototype to avoid an error.  */
11767 #ifdef __cplusplus
11768 extern "C"
11769 #endif
11770 /* We use char because int might match the return type of a gcc2
11771    builtin and then its argument prototype would still apply.  */
11772 char shl_load ();
11773 int
11774 main ()
11775 {
11776 shl_load ();
11777   ;
11778   return 0;
11779 }
11780 _ACEOF
11781 rm -f conftest.$ac_objext conftest$ac_exeext
11782 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11783   (eval $ac_link) 2>&5
11784   ac_status=$?
11785   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11786   (exit $ac_status); } &&
11787          { ac_try='test -s conftest$ac_exeext'
11788   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11789   (eval $ac_try) 2>&5
11790   ac_status=$?
11791   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11792   (exit $ac_status); }; }; then
11793   ac_cv_lib_dld_shl_load=yes
11794 else
11795   echo "$as_me: failed program was:" >&5
11796 sed 's/^/| /' conftest.$ac_ext >&5
11797
11798 ac_cv_lib_dld_shl_load=no
11799 fi
11800 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11801 LIBS=$ac_check_lib_save_LIBS
11802 fi
11803 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
11804 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
11805 if test $ac_cv_lib_dld_shl_load = yes; then
11806   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
11807 else
11808   echo "$as_me:$LINENO: checking for dlopen" >&5
11809 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
11810 if test "${ac_cv_func_dlopen+set}" = set; then
11811   echo $ECHO_N "(cached) $ECHO_C" >&6
11812 else
11813   cat >conftest.$ac_ext <<_ACEOF
11814 #line $LINENO "configure"
11815 /* confdefs.h.  */
11816 _ACEOF
11817 cat confdefs.h >>conftest.$ac_ext
11818 cat >>conftest.$ac_ext <<_ACEOF
11819 /* end confdefs.h.  */
11820 /* System header to define __stub macros and hopefully few prototypes,
11821     which can conflict with char dlopen (); below.
11822     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11823     <limits.h> exists even on freestanding compilers.  */
11824 #ifdef __STDC__
11825 # include <limits.h>
11826 #else
11827 # include <assert.h>
11828 #endif
11829 /* Override any gcc2 internal prototype to avoid an error.  */
11830 #ifdef __cplusplus
11831 extern "C"
11832 {
11833 #endif
11834 /* We use char because int might match the return type of a gcc2
11835    builtin and then its argument prototype would still apply.  */
11836 char dlopen ();
11837 /* The GNU C library defines this for functions which it implements
11838     to always fail with ENOSYS.  Some functions are actually named
11839     something starting with __ and the normal name is an alias.  */
11840 #if defined (__stub_dlopen) || defined (__stub___dlopen)
11841 choke me
11842 #else
11843 char (*f) () = dlopen;
11844 #endif
11845 #ifdef __cplusplus
11846 }
11847 #endif
11848
11849 int
11850 main ()
11851 {
11852 return f != dlopen;
11853   ;
11854   return 0;
11855 }
11856 _ACEOF
11857 rm -f conftest.$ac_objext conftest$ac_exeext
11858 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11859   (eval $ac_link) 2>&5
11860   ac_status=$?
11861   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11862   (exit $ac_status); } &&
11863          { ac_try='test -s conftest$ac_exeext'
11864   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11865   (eval $ac_try) 2>&5
11866   ac_status=$?
11867   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11868   (exit $ac_status); }; }; then
11869   ac_cv_func_dlopen=yes
11870 else
11871   echo "$as_me: failed program was:" >&5
11872 sed 's/^/| /' conftest.$ac_ext >&5
11873
11874 ac_cv_func_dlopen=no
11875 fi
11876 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11877 fi
11878 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
11879 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
11880 if test $ac_cv_func_dlopen = yes; then
11881   lt_cv_dlopen="dlopen"
11882 else
11883   echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
11884 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
11885 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
11886   echo $ECHO_N "(cached) $ECHO_C" >&6
11887 else
11888   ac_check_lib_save_LIBS=$LIBS
11889 LIBS="-ldl  $LIBS"
11890 cat >conftest.$ac_ext <<_ACEOF
11891 #line $LINENO "configure"
11892 /* confdefs.h.  */
11893 _ACEOF
11894 cat confdefs.h >>conftest.$ac_ext
11895 cat >>conftest.$ac_ext <<_ACEOF
11896 /* end confdefs.h.  */
11897
11898 /* Override any gcc2 internal prototype to avoid an error.  */
11899 #ifdef __cplusplus
11900 extern "C"
11901 #endif
11902 /* We use char because int might match the return type of a gcc2
11903    builtin and then its argument prototype would still apply.  */
11904 char dlopen ();
11905 int
11906 main ()
11907 {
11908 dlopen ();
11909   ;
11910   return 0;
11911 }
11912 _ACEOF
11913 rm -f conftest.$ac_objext conftest$ac_exeext
11914 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11915   (eval $ac_link) 2>&5
11916   ac_status=$?
11917   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11918   (exit $ac_status); } &&
11919          { ac_try='test -s conftest$ac_exeext'
11920   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11921   (eval $ac_try) 2>&5
11922   ac_status=$?
11923   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11924   (exit $ac_status); }; }; then
11925   ac_cv_lib_dl_dlopen=yes
11926 else
11927   echo "$as_me: failed program was:" >&5
11928 sed 's/^/| /' conftest.$ac_ext >&5
11929
11930 ac_cv_lib_dl_dlopen=no
11931 fi
11932 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11933 LIBS=$ac_check_lib_save_LIBS
11934 fi
11935 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
11936 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
11937 if test $ac_cv_lib_dl_dlopen = yes; then
11938   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11939 else
11940   echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
11941 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
11942 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
11943   echo $ECHO_N "(cached) $ECHO_C" >&6
11944 else
11945   ac_check_lib_save_LIBS=$LIBS
11946 LIBS="-lsvld  $LIBS"
11947 cat >conftest.$ac_ext <<_ACEOF
11948 #line $LINENO "configure"
11949 /* confdefs.h.  */
11950 _ACEOF
11951 cat confdefs.h >>conftest.$ac_ext
11952 cat >>conftest.$ac_ext <<_ACEOF
11953 /* end confdefs.h.  */
11954
11955 /* Override any gcc2 internal prototype to avoid an error.  */
11956 #ifdef __cplusplus
11957 extern "C"
11958 #endif
11959 /* We use char because int might match the return type of a gcc2
11960    builtin and then its argument prototype would still apply.  */
11961 char dlopen ();
11962 int
11963 main ()
11964 {
11965 dlopen ();
11966   ;
11967   return 0;
11968 }
11969 _ACEOF
11970 rm -f conftest.$ac_objext conftest$ac_exeext
11971 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11972   (eval $ac_link) 2>&5
11973   ac_status=$?
11974   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11975   (exit $ac_status); } &&
11976          { ac_try='test -s conftest$ac_exeext'
11977   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11978   (eval $ac_try) 2>&5
11979   ac_status=$?
11980   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11981   (exit $ac_status); }; }; then
11982   ac_cv_lib_svld_dlopen=yes
11983 else
11984   echo "$as_me: failed program was:" >&5
11985 sed 's/^/| /' conftest.$ac_ext >&5
11986
11987 ac_cv_lib_svld_dlopen=no
11988 fi
11989 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11990 LIBS=$ac_check_lib_save_LIBS
11991 fi
11992 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
11993 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
11994 if test $ac_cv_lib_svld_dlopen = yes; then
11995   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11996 else
11997   echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
11998 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
11999 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
12000   echo $ECHO_N "(cached) $ECHO_C" >&6
12001 else
12002   ac_check_lib_save_LIBS=$LIBS
12003 LIBS="-ldld  $LIBS"
12004 cat >conftest.$ac_ext <<_ACEOF
12005 #line $LINENO "configure"
12006 /* confdefs.h.  */
12007 _ACEOF
12008 cat confdefs.h >>conftest.$ac_ext
12009 cat >>conftest.$ac_ext <<_ACEOF
12010 /* end confdefs.h.  */
12011
12012 /* Override any gcc2 internal prototype to avoid an error.  */
12013 #ifdef __cplusplus
12014 extern "C"
12015 #endif
12016 /* We use char because int might match the return type of a gcc2
12017    builtin and then its argument prototype would still apply.  */
12018 char dld_link ();
12019 int
12020 main ()
12021 {
12022 dld_link ();
12023   ;
12024   return 0;
12025 }
12026 _ACEOF
12027 rm -f conftest.$ac_objext conftest$ac_exeext
12028 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12029   (eval $ac_link) 2>&5
12030   ac_status=$?
12031   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12032   (exit $ac_status); } &&
12033          { ac_try='test -s conftest$ac_exeext'
12034   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12035   (eval $ac_try) 2>&5
12036   ac_status=$?
12037   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12038   (exit $ac_status); }; }; then
12039   ac_cv_lib_dld_dld_link=yes
12040 else
12041   echo "$as_me: failed program was:" >&5
12042 sed 's/^/| /' conftest.$ac_ext >&5
12043
12044 ac_cv_lib_dld_dld_link=no
12045 fi
12046 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12047 LIBS=$ac_check_lib_save_LIBS
12048 fi
12049 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
12050 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
12051 if test $ac_cv_lib_dld_dld_link = yes; then
12052   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
12053 fi
12054
12055
12056 fi
12057
12058
12059 fi
12060
12061
12062 fi
12063
12064
12065 fi
12066
12067
12068 fi
12069
12070     ;;
12071   esac
12072
12073   if test "x$lt_cv_dlopen" != xno; then
12074     enable_dlopen=yes
12075   else
12076     enable_dlopen=no
12077   fi
12078
12079   case $lt_cv_dlopen in
12080   dlopen)
12081     save_CPPFLAGS="$CPPFLAGS"
12082     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12083
12084     save_LDFLAGS="$LDFLAGS"
12085     eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12086
12087     save_LIBS="$LIBS"
12088     LIBS="$lt_cv_dlopen_libs $LIBS"
12089
12090     echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
12091 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
12092 if test "${lt_cv_dlopen_self+set}" = set; then
12093   echo $ECHO_N "(cached) $ECHO_C" >&6
12094 else
12095           if test "$cross_compiling" = yes; then :
12096   lt_cv_dlopen_self=cross
12097 else
12098   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12099   lt_status=$lt_dlunknown
12100   cat > conftest.$ac_ext <<EOF
12101 #line 12101 "configure"
12102 #include "confdefs.h"
12103
12104 #if HAVE_DLFCN_H
12105 #include <dlfcn.h>
12106 #endif
12107
12108 #include <stdio.h>
12109
12110 #ifdef RTLD_GLOBAL
12111 #  define LT_DLGLOBAL           RTLD_GLOBAL
12112 #else
12113 #  ifdef DL_GLOBAL
12114 #    define LT_DLGLOBAL         DL_GLOBAL
12115 #  else
12116 #    define LT_DLGLOBAL         0
12117 #  endif
12118 #endif
12119
12120 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12121    find out it does not work in some platform. */
12122 #ifndef LT_DLLAZY_OR_NOW
12123 #  ifdef RTLD_LAZY
12124 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
12125 #  else
12126 #    ifdef DL_LAZY
12127 #      define LT_DLLAZY_OR_NOW          DL_LAZY
12128 #    else
12129 #      ifdef RTLD_NOW
12130 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
12131 #      else
12132 #        ifdef DL_NOW
12133 #          define LT_DLLAZY_OR_NOW      DL_NOW
12134 #        else
12135 #          define LT_DLLAZY_OR_NOW      0
12136 #        endif
12137 #      endif
12138 #    endif
12139 #  endif
12140 #endif
12141
12142 #ifdef __cplusplus
12143 extern "C" void exit (int);
12144 #endif
12145
12146 void fnord() { int i=42;}
12147 int main ()
12148 {
12149   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12150   int status = $lt_dlunknown;
12151
12152   if (self)
12153     {
12154       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
12155       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12156       /* dlclose (self); */
12157     }
12158
12159     exit (status);
12160 }
12161 EOF
12162   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12163   (eval $ac_link) 2>&5
12164   ac_status=$?
12165   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12166   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
12167     (./conftest; exit; ) 2>/dev/null
12168     lt_status=$?
12169     case x$lt_status in
12170       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12171       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12172       x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
12173     esac
12174   else :
12175     # compilation failed
12176     lt_cv_dlopen_self=no
12177   fi
12178 fi
12179 rm -fr conftest*
12180
12181
12182 fi
12183 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
12184 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
12185
12186     if test "x$lt_cv_dlopen_self" = xyes; then
12187       LDFLAGS="$LDFLAGS $link_static_flag"
12188       echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
12189 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
12190 if test "${lt_cv_dlopen_self_static+set}" = set; then
12191   echo $ECHO_N "(cached) $ECHO_C" >&6
12192 else
12193           if test "$cross_compiling" = yes; then :
12194   lt_cv_dlopen_self_static=cross
12195 else
12196   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12197   lt_status=$lt_dlunknown
12198   cat > conftest.$ac_ext <<EOF
12199 #line 12199 "configure"
12200 #include "confdefs.h"
12201
12202 #if HAVE_DLFCN_H
12203 #include <dlfcn.h>
12204 #endif
12205
12206 #include <stdio.h>
12207
12208 #ifdef RTLD_GLOBAL
12209 #  define LT_DLGLOBAL           RTLD_GLOBAL
12210 #else
12211 #  ifdef DL_GLOBAL
12212 #    define LT_DLGLOBAL         DL_GLOBAL
12213 #  else
12214 #    define LT_DLGLOBAL         0
12215 #  endif
12216 #endif
12217
12218 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12219    find out it does not work in some platform. */
12220 #ifndef LT_DLLAZY_OR_NOW
12221 #  ifdef RTLD_LAZY
12222 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
12223 #  else
12224 #    ifdef DL_LAZY
12225 #      define LT_DLLAZY_OR_NOW          DL_LAZY
12226 #    else
12227 #      ifdef RTLD_NOW
12228 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
12229 #      else
12230 #        ifdef DL_NOW
12231 #          define LT_DLLAZY_OR_NOW      DL_NOW
12232 #        else
12233 #          define LT_DLLAZY_OR_NOW      0
12234 #        endif
12235 #      endif
12236 #    endif
12237 #  endif
12238 #endif
12239
12240 #ifdef __cplusplus
12241 extern "C" void exit (int);
12242 #endif
12243
12244 void fnord() { int i=42;}
12245 int main ()
12246 {
12247   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12248   int status = $lt_dlunknown;
12249
12250   if (self)
12251     {
12252       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
12253       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12254       /* dlclose (self); */
12255     }
12256
12257     exit (status);
12258 }
12259 EOF
12260   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12261   (eval $ac_link) 2>&5
12262   ac_status=$?
12263   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12264   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
12265     (./conftest; exit; ) 2>/dev/null
12266     lt_status=$?
12267     case x$lt_status in
12268       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12269       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12270       x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
12271     esac
12272   else :
12273     # compilation failed
12274     lt_cv_dlopen_self_static=no
12275   fi
12276 fi
12277 rm -fr conftest*
12278
12279
12280 fi
12281 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
12282 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
12283     fi
12284
12285     CPPFLAGS="$save_CPPFLAGS"
12286     LDFLAGS="$save_LDFLAGS"
12287     LIBS="$save_LIBS"
12288     ;;
12289   esac
12290
12291   case $lt_cv_dlopen_self in
12292   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12293   *) enable_dlopen_self=unknown ;;
12294   esac
12295
12296   case $lt_cv_dlopen_self_static in
12297   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12298   *) enable_dlopen_self_static=unknown ;;
12299   esac
12300 fi
12301
12302
12303 # The else clause should only fire when bootstrapping the
12304 # libtool distribution, otherwise you forgot to ship ltmain.sh
12305 # with your package, and you will get complaints that there are
12306 # no rules to generate ltmain.sh.
12307 if test -f "$ltmain"; then
12308   # See if we are running on zsh, and set the options which allow our commands through
12309   # without removal of \ escapes.
12310   if test -n "${ZSH_VERSION+set}" ; then
12311     setopt NO_GLOB_SUBST
12312   fi
12313   # Now quote all the things that may contain metacharacters while being
12314   # careful not to overquote the AC_SUBSTed values.  We take copies of the
12315   # variables and quote the copies for generation of the libtool script.
12316   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \
12317     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
12318     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
12319     deplibs_check_method reload_flag reload_cmds need_locks \
12320     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
12321     lt_cv_sys_global_symbol_to_c_name_address \
12322     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
12323     old_postinstall_cmds old_postuninstall_cmds \
12324     compiler_CXX \
12325     CC_CXX \
12326     LD_CXX \
12327     lt_prog_compiler_wl_CXX \
12328     lt_prog_compiler_pic_CXX \
12329     lt_prog_compiler_static_CXX \
12330     lt_prog_compiler_no_builtin_flag_CXX \
12331     export_dynamic_flag_spec_CXX \
12332     thread_safe_flag_spec_CXX \
12333     whole_archive_flag_spec_CXX \
12334     enable_shared_with_static_runtimes_CXX \
12335     old_archive_cmds_CXX \
12336     old_archive_from_new_cmds_CXX \
12337     predep_objects_CXX \
12338     postdep_objects_CXX \
12339     predeps_CXX \
12340     postdeps_CXX \
12341     compiler_lib_search_path_CXX \
12342     archive_cmds_CXX \
12343     archive_expsym_cmds_CXX \
12344     postinstall_cmds_CXX \
12345     postuninstall_cmds_CXX \
12346     old_archive_from_expsyms_cmds_CXX \
12347     allow_undefined_flag_CXX \
12348     no_undefined_flag_CXX \
12349     export_symbols_cmds_CXX \
12350     hardcode_libdir_flag_spec_CXX \
12351     hardcode_libdir_flag_spec_ld_CXX \
12352     hardcode_libdir_separator_CXX \
12353     hardcode_automatic_CXX \
12354     module_cmds_CXX \
12355     module_expsym_cmds_CXX \
12356     lt_cv_prog_compiler_c_o_CXX \
12357     exclude_expsyms_CXX \
12358     include_expsyms_CXX; do
12359
12360     case $var in
12361     old_archive_cmds_CXX | \
12362     old_archive_from_new_cmds_CXX | \
12363     archive_cmds_CXX | \
12364     archive_expsym_cmds_CXX | \
12365     module_cmds_CXX | \
12366     module_expsym_cmds_CXX | \
12367     old_archive_from_expsyms_cmds_CXX | \
12368     export_symbols_cmds_CXX | \
12369     extract_expsyms_cmds | reload_cmds | finish_cmds | \
12370     postinstall_cmds | postuninstall_cmds | \
12371     old_postinstall_cmds | old_postuninstall_cmds | \
12372     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
12373       # Double-quote double-evaled strings.
12374       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
12375       ;;
12376     *)
12377       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
12378       ;;
12379     esac
12380   done
12381
12382   case $lt_echo in
12383   *'\$0 --fallback-echo"')
12384     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
12385     ;;
12386   esac
12387
12388 cfgfile="$ofile"
12389
12390   cat <<__EOF__ >> "$cfgfile"
12391 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
12392
12393 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
12394
12395 # Shell to use when invoking shell scripts.
12396 SHELL=$lt_SHELL
12397
12398 # Whether or not to build shared libraries.
12399 build_libtool_libs=$enable_shared
12400
12401 # Whether or not to build static libraries.
12402 build_old_libs=$enable_static
12403
12404 # Whether or not to add -lc for building shared libraries.
12405 build_libtool_need_lc=$archive_cmds_need_lc_CXX
12406
12407 # Whether or not to disallow shared libs when runtime libs are static
12408 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
12409
12410 # Whether or not to optimize for fast installation.
12411 fast_install=$enable_fast_install
12412
12413 # The host system.
12414 host_alias=$host_alias
12415 host=$host
12416
12417 # An echo program that does not interpret backslashes.
12418 echo=$lt_echo
12419
12420 # The archiver.
12421 AR=$lt_AR
12422 AR_FLAGS=$lt_AR_FLAGS
12423
12424 # A C compiler.
12425 LTCC=$lt_LTCC
12426
12427 # A language-specific compiler.
12428 CC=$lt_compiler_CXX
12429
12430 # Is the compiler the GNU C compiler?
12431 with_gcc=$GCC_CXX
12432
12433 # An ERE matcher.
12434 EGREP=$lt_EGREP
12435
12436 # The linker used to build libraries.
12437 LD=$lt_LD_CXX
12438
12439 # Whether we need hard or soft links.
12440 LN_S=$lt_LN_S
12441
12442 # A BSD-compatible nm program.
12443 NM=$lt_NM
12444
12445 # A symbol stripping program
12446 STRIP=$STRIP
12447
12448 # Used to examine libraries when file_magic_cmd begins "file"
12449 MAGIC_CMD=$MAGIC_CMD
12450
12451 # Used on cygwin: DLL creation program.
12452 DLLTOOL="$DLLTOOL"
12453
12454 # Used on cygwin: object dumper.
12455 OBJDUMP="$OBJDUMP"
12456
12457 # Used on cygwin: assembler.
12458 AS="$AS"
12459
12460 # The name of the directory that contains temporary libtool files.
12461 objdir=$objdir
12462
12463 # How to create reloadable object files.
12464 reload_flag=$lt_reload_flag
12465 reload_cmds=$lt_reload_cmds
12466
12467 # How to pass a linker flag through the compiler.
12468 wl=$lt_lt_prog_compiler_wl_CXX
12469
12470 # Object file suffix (normally "o").
12471 objext="$ac_objext"
12472
12473 # Old archive suffix (normally "a").
12474 libext="$libext"
12475
12476 # Shared library suffix (normally ".so").
12477 shrext='$shrext'
12478
12479 # Executable file suffix (normally "").
12480 exeext="$exeext"
12481
12482 # Additional compiler flags for building library objects.
12483 pic_flag=$lt_lt_prog_compiler_pic_CXX
12484 pic_mode=$pic_mode
12485
12486 # What is the maximum length of a command?
12487 max_cmd_len=$lt_cv_sys_max_cmd_len
12488
12489 # Does compiler simultaneously support -c and -o options?
12490 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
12491
12492 # Must we lock files when doing compilation ?
12493 need_locks=$lt_need_locks
12494
12495 # Do we need the lib prefix for modules?
12496 need_lib_prefix=$need_lib_prefix
12497
12498 # Do we need a version for libraries?
12499 need_version=$need_version
12500
12501 # Whether dlopen is supported.
12502 dlopen_support=$enable_dlopen
12503
12504 # Whether dlopen of programs is supported.
12505 dlopen_self=$enable_dlopen_self
12506
12507 # Whether dlopen of statically linked programs is supported.
12508 dlopen_self_static=$enable_dlopen_self_static
12509
12510 # Compiler flag to prevent dynamic linking.
12511 link_static_flag=$lt_lt_prog_compiler_static_CXX
12512
12513 # Compiler flag to turn off builtin functions.
12514 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
12515
12516 # Compiler flag to allow reflexive dlopens.
12517 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
12518
12519 # Compiler flag to generate shared objects directly from archives.
12520 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
12521
12522 # Compiler flag to generate thread-safe objects.
12523 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
12524
12525 # Library versioning type.
12526 version_type=$version_type
12527
12528 # Format of library name prefix.
12529 libname_spec=$lt_libname_spec
12530
12531 # List of archive names.  First name is the real one, the rest are links.
12532 # The last name is the one that the linker finds with -lNAME.
12533 library_names_spec=$lt_library_names_spec
12534
12535 # The coded name of the library, if different from the real name.
12536 soname_spec=$lt_soname_spec
12537
12538 # Commands used to build and install an old-style archive.
12539 RANLIB=$lt_RANLIB
12540 old_archive_cmds=$lt_old_archive_cmds_CXX
12541 old_postinstall_cmds=$lt_old_postinstall_cmds
12542 old_postuninstall_cmds=$lt_old_postuninstall_cmds
12543
12544 # Create an old-style archive from a shared archive.
12545 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
12546
12547 # Create a temporary old-style archive to link instead of a shared archive.
12548 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
12549
12550 # Commands used to build and install a shared archive.
12551 archive_cmds=$lt_archive_cmds_CXX
12552 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
12553 postinstall_cmds=$lt_postinstall_cmds
12554 postuninstall_cmds=$lt_postuninstall_cmds
12555
12556 # Commands used to build a loadable module (assumed same as above if empty)
12557 module_cmds=$lt_module_cmds_CXX
12558 module_expsym_cmds=$lt_module_expsym_cmds_CXX
12559
12560 # Commands to strip libraries.
12561 old_striplib=$lt_old_striplib
12562 striplib=$lt_striplib
12563
12564 # Dependencies to place before the objects being linked to create a
12565 # shared library.
12566 predep_objects=$lt_predep_objects_CXX
12567
12568 # Dependencies to place after the objects being linked to create a
12569 # shared library.
12570 postdep_objects=$lt_postdep_objects_CXX
12571
12572 # Dependencies to place before the objects being linked to create a
12573 # shared library.
12574 predeps=$lt_predeps_CXX
12575
12576 # Dependencies to place after the objects being linked to create a
12577 # shared library.
12578 postdeps=$lt_postdeps_CXX
12579
12580 # The library search path used internally by the compiler when linking
12581 # a shared library.
12582 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
12583
12584 # Method to check whether dependent libraries are shared objects.
12585 deplibs_check_method=$lt_deplibs_check_method
12586
12587 # Command to use when deplibs_check_method == file_magic.
12588 file_magic_cmd=$lt_file_magic_cmd
12589
12590 # Flag that allows shared libraries with undefined symbols to be built.
12591 allow_undefined_flag=$lt_allow_undefined_flag_CXX
12592
12593 # Flag that forces no undefined symbols.
12594 no_undefined_flag=$lt_no_undefined_flag_CXX
12595
12596 # Commands used to finish a libtool library installation in a directory.
12597 finish_cmds=$lt_finish_cmds
12598
12599 # Same as above, but a single script fragment to be evaled but not shown.
12600 finish_eval=$lt_finish_eval
12601
12602 # Take the output of nm and produce a listing of raw symbols and C names.
12603 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
12604
12605 # Transform the output of nm in a proper C declaration
12606 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
12607
12608 # Transform the output of nm in a C name address pair
12609 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
12610
12611 # This is the shared library runtime path variable.
12612 runpath_var=$runpath_var
12613
12614 # This is the shared library path variable.
12615 shlibpath_var=$shlibpath_var
12616
12617 # Is shlibpath searched before the hard-coded library search path?
12618 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
12619
12620 # How to hardcode a shared library path into an executable.
12621 hardcode_action=$hardcode_action_CXX
12622
12623 # Whether we should hardcode library paths into libraries.
12624 hardcode_into_libs=$hardcode_into_libs
12625
12626 # Flag to hardcode \$libdir into a binary during linking.
12627 # This must work even if \$libdir does not exist.
12628 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
12629
12630 # If ld is used when linking, flag to hardcode \$libdir into
12631 # a binary during linking. This must work even if \$libdir does
12632 # not exist.
12633 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
12634
12635 # Whether we need a single -rpath flag with a separated argument.
12636 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
12637
12638 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
12639 # resulting binary.
12640 hardcode_direct=$hardcode_direct_CXX
12641
12642 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
12643 # resulting binary.
12644 hardcode_minus_L=$hardcode_minus_L_CXX
12645
12646 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
12647 # the resulting binary.
12648 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
12649
12650 # Set to yes if building a shared library automatically hardcodes DIR into the library
12651 # and all subsequent libraries and executables linked against it.
12652 hardcode_automatic=$hardcode_automatic_CXX
12653
12654 # Variables whose values should be saved in libtool wrapper scripts and
12655 # restored at relink time.
12656 variables_saved_for_relink="$variables_saved_for_relink"
12657
12658 # Whether libtool must link a program against all its dependency libraries.
12659 link_all_deplibs=$link_all_deplibs_CXX
12660
12661 # Compile-time system search path for libraries
12662 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
12663
12664 # Run-time system search path for libraries
12665 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
12666
12667 # Fix the shell variable \$srcfile for the compiler.
12668 fix_srcfile_path="$fix_srcfile_path_CXX"
12669
12670 # Set to yes if exported symbols are required.
12671 always_export_symbols=$always_export_symbols_CXX
12672
12673 # The commands to list exported symbols.
12674 export_symbols_cmds=$lt_export_symbols_cmds_CXX
12675
12676 # The commands to extract the exported symbol list from a shared archive.
12677 extract_expsyms_cmds=$lt_extract_expsyms_cmds
12678
12679 # Symbols that should not be listed in the preloaded symbols.
12680 exclude_expsyms=$lt_exclude_expsyms_CXX
12681
12682 # Symbols that must always be exported.
12683 include_expsyms=$lt_include_expsyms_CXX
12684
12685 # ### END LIBTOOL TAG CONFIG: $tagname
12686
12687 __EOF__
12688
12689
12690 else
12691   # If there is no Makefile yet, we rely on a make rule to execute
12692   # `config.status --recheck' to rerun these tests and create the
12693   # libtool script then.
12694   test -f Makefile && make "$ltmain"
12695 fi
12696
12697
12698 ac_ext=c
12699 ac_cpp='$CPP $CPPFLAGS'
12700 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12701 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12702 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12703
12704 CC=$lt_save_CC
12705 LDCXX=$LD
12706 LD=$lt_save_LD
12707 GCC=$lt_save_GCC
12708 with_gnu_ldcxx=$with_gnu_ld
12709 with_gnu_ld=$lt_save_with_gnu_ld
12710 lt_cv_path_LDCXX=$lt_cv_path_LD
12711 lt_cv_path_LD=$lt_save_path_LD
12712 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
12713 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
12714
12715         else
12716           tagname=""
12717         fi
12718         ;;
12719
12720       F77)
12721         if test -n "$F77" && test "X$F77" != "Xno"; then
12722
12723 ac_ext=f
12724 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
12725 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12726 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
12727
12728
12729 archive_cmds_need_lc_F77=no
12730 allow_undefined_flag_F77=
12731 always_export_symbols_F77=no
12732 archive_expsym_cmds_F77=
12733 export_dynamic_flag_spec_F77=
12734 hardcode_direct_F77=no
12735 hardcode_libdir_flag_spec_F77=
12736 hardcode_libdir_flag_spec_ld_F77=
12737 hardcode_libdir_separator_F77=
12738 hardcode_minus_L_F77=no
12739 hardcode_automatic_F77=no
12740 module_cmds_F77=
12741 module_expsym_cmds_F77=
12742 link_all_deplibs_F77=unknown
12743 old_archive_cmds_F77=$old_archive_cmds
12744 no_undefined_flag_F77=
12745 whole_archive_flag_spec_F77=
12746 enable_shared_with_static_runtimes_F77=no
12747
12748 # Source file extension for f77 test sources.
12749 ac_ext=f
12750
12751 # Object file extension for compiled f77 test sources.
12752 objext=o
12753 objext_F77=$objext
12754
12755 # Code to be used in simple compile tests
12756 lt_simple_compile_test_code="      subroutine t\n      return\n      end\n"
12757
12758 # Code to be used in simple link tests
12759 lt_simple_link_test_code="      program t\n      end\n"
12760
12761 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
12762
12763 # If no C compiler was specified, use CC.
12764 LTCC=${LTCC-"$CC"}
12765
12766 # Allow CC to be a program name with arguments.
12767 compiler=$CC
12768
12769
12770 # Allow CC to be a program name with arguments.
12771 lt_save_CC="$CC"
12772 CC=${F77-"f77"}
12773 compiler=$CC
12774 compiler_F77=$CC
12775 cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
12776
12777 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
12778 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
12779 echo "$as_me:$LINENO: result: $can_build_shared" >&5
12780 echo "${ECHO_T}$can_build_shared" >&6
12781
12782 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
12783 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
12784 test "$can_build_shared" = "no" && enable_shared=no
12785
12786 # On AIX, shared libraries and static libraries use the same namespace, and
12787 # are all built from PIC.
12788 case "$host_os" in
12789 aix3*)
12790   test "$enable_shared" = yes && enable_static=no
12791   if test -n "$RANLIB"; then
12792     archive_cmds="$archive_cmds~\$RANLIB \$lib"
12793     postinstall_cmds='$RANLIB $lib'
12794   fi
12795   ;;
12796 aix4*)
12797   test "$enable_shared" = yes && enable_static=no
12798   ;;
12799 esac
12800 echo "$as_me:$LINENO: result: $enable_shared" >&5
12801 echo "${ECHO_T}$enable_shared" >&6
12802
12803 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
12804 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
12805 # Make sure either enable_shared or enable_static is yes.
12806 test "$enable_shared" = yes || enable_static=yes
12807 echo "$as_me:$LINENO: result: $enable_static" >&5
12808 echo "${ECHO_T}$enable_static" >&6
12809
12810 test "$ld_shlibs_F77" = no && can_build_shared=no
12811
12812 GCC_F77="$G77"
12813 LD_F77="$LD"
12814
12815 lt_prog_compiler_wl_F77=
12816 lt_prog_compiler_pic_F77=
12817 lt_prog_compiler_static_F77=
12818
12819 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
12820 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
12821
12822   if test "$GCC" = yes; then
12823     lt_prog_compiler_wl_F77='-Wl,'
12824     lt_prog_compiler_static_F77='-static'
12825
12826     case $host_os in
12827       aix*)
12828       # All AIX code is PIC.
12829       if test "$host_cpu" = ia64; then
12830         # AIX 5 now supports IA64 processor
12831         lt_prog_compiler_static_F77='-Bstatic'
12832       fi
12833       ;;
12834
12835     amigaos*)
12836       # FIXME: we need at least 68020 code to build shared libraries, but
12837       # adding the `-m68020' flag to GCC prevents building anything better,
12838       # like `-m68040'.
12839       lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
12840       ;;
12841
12842     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12843       # PIC is the default for these OSes.
12844       ;;
12845
12846     mingw* | pw32* | os2*)
12847       # This hack is so that the source file can tell whether it is being
12848       # built for inclusion in a dll (and should export symbols for example).
12849       lt_prog_compiler_pic_F77='-DDLL_EXPORT'
12850       ;;
12851
12852     darwin* | rhapsody*)
12853       # PIC is the default on this platform
12854       # Common symbols not allowed in MH_DYLIB files
12855       lt_prog_compiler_pic_F77='-fno-common'
12856       ;;
12857
12858     msdosdjgpp*)
12859       # Just because we use GCC doesn't mean we suddenly get shared libraries
12860       # on systems that don't support them.
12861       lt_prog_compiler_can_build_shared_F77=no
12862       enable_shared=no
12863       ;;
12864
12865     sysv4*MP*)
12866       if test -d /usr/nec; then
12867         lt_prog_compiler_pic_F77=-Kconform_pic
12868       fi
12869       ;;
12870
12871     hpux*)
12872       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12873       # not for PA HP-UX.
12874       case "$host_cpu" in
12875       hppa*64*|ia64*)
12876         # +Z the default
12877         ;;
12878       *)
12879         lt_prog_compiler_pic_F77='-fPIC'
12880         ;;
12881       esac
12882       ;;
12883
12884     *)
12885       lt_prog_compiler_pic_F77='-fPIC'
12886       ;;
12887     esac
12888   else
12889     # PORTME Check for flag to pass linker flags through the system compiler.
12890     case $host_os in
12891     aix*)
12892       lt_prog_compiler_wl_F77='-Wl,'
12893       if test "$host_cpu" = ia64; then
12894         # AIX 5 now supports IA64 processor
12895         lt_prog_compiler_static_F77='-Bstatic'
12896       else
12897         lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
12898       fi
12899       ;;
12900
12901     mingw* | pw32* | os2*)
12902       # This hack is so that the source file can tell whether it is being
12903       # built for inclusion in a dll (and should export symbols for example).
12904       lt_prog_compiler_pic_F77='-DDLL_EXPORT'
12905       ;;
12906
12907     hpux9* | hpux10* | hpux11*)
12908       lt_prog_compiler_wl_F77='-Wl,'
12909       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12910       # not for PA HP-UX.
12911       case "$host_cpu" in
12912       hppa*64*|ia64*)
12913         # +Z the default
12914         ;;
12915       *)
12916         lt_prog_compiler_pic_F77='+Z'
12917         ;;
12918       esac
12919       # Is there a better lt_prog_compiler_static that works with the bundled CC?
12920       lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
12921       ;;
12922
12923     irix5* | irix6* | nonstopux*)
12924       lt_prog_compiler_wl_F77='-Wl,'
12925       # PIC (with -KPIC) is the default.
12926       lt_prog_compiler_static_F77='-non_shared'
12927       ;;
12928
12929     newsos6)
12930       lt_prog_compiler_pic_F77='-KPIC'
12931       lt_prog_compiler_static_F77='-Bstatic'
12932       ;;
12933
12934     linux*)
12935       case $CC in
12936       icc|ecc)
12937         lt_prog_compiler_wl_F77='-Wl,'
12938         lt_prog_compiler_pic_F77='-KPIC'
12939         lt_prog_compiler_static_F77='-static'
12940         ;;
12941       ccc)
12942         lt_prog_compiler_wl_F77='-Wl,'
12943         # All Alpha code is PIC.
12944         lt_prog_compiler_static_F77='-non_shared'
12945         ;;
12946       esac
12947       ;;
12948
12949     osf3* | osf4* | osf5*)
12950       lt_prog_compiler_wl_F77='-Wl,'
12951       # All OSF/1 code is PIC.
12952       lt_prog_compiler_static_F77='-non_shared'
12953       ;;
12954
12955     sco3.2v5*)
12956       lt_prog_compiler_pic_F77='-Kpic'
12957       lt_prog_compiler_static_F77='-dn'
12958       ;;
12959
12960     solaris*)
12961       lt_prog_compiler_wl_F77='-Wl,'
12962       lt_prog_compiler_pic_F77='-KPIC'
12963       lt_prog_compiler_static_F77='-Bstatic'
12964       ;;
12965
12966     sunos4*)
12967       lt_prog_compiler_wl_F77='-Qoption ld '
12968       lt_prog_compiler_pic_F77='-PIC'
12969       lt_prog_compiler_static_F77='-Bstatic'
12970       ;;
12971
12972     sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
12973       lt_prog_compiler_wl_F77='-Wl,'
12974       lt_prog_compiler_pic_F77='-KPIC'
12975       lt_prog_compiler_static_F77='-Bstatic'
12976       ;;
12977
12978     sysv4*MP*)
12979       if test -d /usr/nec ;then
12980         lt_prog_compiler_pic_F77='-Kconform_pic'
12981         lt_prog_compiler_static_F77='-Bstatic'
12982       fi
12983       ;;
12984
12985     uts4*)
12986       lt_prog_compiler_pic_F77='-pic'
12987       lt_prog_compiler_static_F77='-Bstatic'
12988       ;;
12989
12990     *)
12991       lt_prog_compiler_can_build_shared_F77=no
12992       ;;
12993     esac
12994   fi
12995
12996 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
12997 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6
12998
12999 #
13000 # Check to make sure the PIC flag actually works.
13001 #
13002 if test -n "$lt_prog_compiler_pic_F77"; then
13003   echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
13004 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6
13005 if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
13006   echo $ECHO_N "(cached) $ECHO_C" >&6
13007 else
13008   lt_prog_compiler_pic_works_F77=no
13009   ac_outfile=conftest.$ac_objext
13010    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13011    lt_compiler_flag="$lt_prog_compiler_pic_F77"
13012    # Insert the option either (1) after the last *FLAGS variable, or
13013    # (2) before a word containing "conftest.", or (3) at the end.
13014    # Note that $ac_compile itself does not contain backslashes and begins
13015    # with a dollar sign (not a hyphen), so the echo should work correctly.
13016    # The option is referenced via a variable to avoid confusing sed.
13017    lt_compile=`echo "$ac_compile" | $SED \
13018    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
13019    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13020    -e 's:$: $lt_compiler_flag:'`
13021    (eval echo "\"\$as_me:13021: $lt_compile\"" >&5)
13022    (eval "$lt_compile" 2>conftest.err)
13023    ac_status=$?
13024    cat conftest.err >&5
13025    echo "$as_me:13025: \$? = $ac_status" >&5
13026    if (exit $ac_status) && test -s "$ac_outfile"; then
13027      # The compiler can only warn and ignore the option if not recognized
13028      # So say no if there are warnings
13029      if test ! -s conftest.err; then
13030        lt_prog_compiler_pic_works_F77=yes
13031      fi
13032    fi
13033    $rm conftest*
13034
13035 fi
13036 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
13037 echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6
13038
13039 if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
13040     case $lt_prog_compiler_pic_F77 in
13041      "" | " "*) ;;
13042      *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
13043      esac
13044 else
13045     lt_prog_compiler_pic_F77=
13046      lt_prog_compiler_can_build_shared_F77=no
13047 fi
13048
13049 fi
13050 case "$host_os" in
13051   # For platforms which do not support PIC, -DPIC is meaningless:
13052   *djgpp*)
13053     lt_prog_compiler_pic_F77=
13054     ;;
13055   *)
13056     lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
13057     ;;
13058 esac
13059
13060 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
13061 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
13062 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
13063   echo $ECHO_N "(cached) $ECHO_C" >&6
13064 else
13065   lt_cv_prog_compiler_c_o_F77=no
13066    $rm -r conftest 2>/dev/null
13067    mkdir conftest
13068    cd conftest
13069    mkdir out
13070    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13071
13072    # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
13073    # that will create temporary files in the current directory regardless of
13074    # the output directory.  Thus, making CWD read-only will cause this test
13075    # to fail, enabling locking or at least warning the user not to do parallel
13076    # builds.
13077    chmod -w .
13078
13079    lt_compiler_flag="-o out/conftest2.$ac_objext"
13080    # Insert the option either (1) after the last *FLAGS variable, or
13081    # (2) before a word containing "conftest.", or (3) at the end.
13082    # Note that $ac_compile itself does not contain backslashes and begins
13083    # with a dollar sign (not a hyphen), so the echo should work correctly.
13084    lt_compile=`echo "$ac_compile" | $SED \
13085    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
13086    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13087    -e 's:$: $lt_compiler_flag:'`
13088    (eval echo "\"\$as_me:13088: $lt_compile\"" >&5)
13089    (eval "$lt_compile" 2>out/conftest.err)
13090    ac_status=$?
13091    cat out/conftest.err >&5
13092    echo "$as_me:13092: \$? = $ac_status" >&5
13093    if (exit $ac_status) && test -s out/conftest2.$ac_objext
13094    then
13095      # The compiler can only warn and ignore the option if not recognized
13096      # So say no if there are warnings
13097      if test ! -s out/conftest.err; then
13098        lt_cv_prog_compiler_c_o_F77=yes
13099      fi
13100    fi
13101    chmod u+w .
13102    $rm conftest* out/*
13103    rmdir out
13104    cd ..
13105    rmdir conftest
13106    $rm conftest*
13107
13108 fi
13109 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
13110 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6
13111
13112
13113 hard_links="nottested"
13114 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
13115   # do not overwrite the value of need_locks provided by the user
13116   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
13117 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
13118   hard_links=yes
13119   $rm conftest*
13120   ln conftest.a conftest.b 2>/dev/null && hard_links=no
13121   touch conftest.a
13122   ln conftest.a conftest.b 2>&5 || hard_links=no
13123   ln conftest.a conftest.b 2>/dev/null && hard_links=no
13124   echo "$as_me:$LINENO: result: $hard_links" >&5
13125 echo "${ECHO_T}$hard_links" >&6
13126   if test "$hard_links" = no; then
13127     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13128 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13129     need_locks=warn
13130   fi
13131 else
13132   need_locks=no
13133 fi
13134
13135 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13136 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
13137
13138   runpath_var=
13139   allow_undefined_flag_F77=
13140   enable_shared_with_static_runtimes_F77=no
13141   archive_cmds_F77=
13142   archive_expsym_cmds_F77=
13143   old_archive_From_new_cmds_F77=
13144   old_archive_from_expsyms_cmds_F77=
13145   export_dynamic_flag_spec_F77=
13146   whole_archive_flag_spec_F77=
13147   thread_safe_flag_spec_F77=
13148   hardcode_libdir_flag_spec_F77=
13149   hardcode_libdir_flag_spec_ld_F77=
13150   hardcode_libdir_separator_F77=
13151   hardcode_direct_F77=no
13152   hardcode_minus_L_F77=no
13153   hardcode_shlibpath_var_F77=unsupported
13154   link_all_deplibs_F77=unknown
13155   hardcode_automatic_F77=no
13156   module_cmds_F77=
13157   module_expsym_cmds_F77=
13158   always_export_symbols_F77=no
13159   export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13160   # include_expsyms should be a list of space-separated symbols to be *always*
13161   # included in the symbol list
13162   include_expsyms_F77=
13163   # exclude_expsyms can be an extended regexp of symbols to exclude
13164   # it will be wrapped by ` (' and `)$', so one must not match beginning or
13165   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
13166   # as well as any symbol that contains `d'.
13167   exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
13168   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
13169   # platforms (ab)use it in PIC code, but their linkers get confused if
13170   # the symbol is explicitly referenced.  Since portable code cannot
13171   # rely on this symbol name, it's probably fine to never include it in
13172   # preloaded symbol tables.
13173   extract_expsyms_cmds=
13174
13175   case $host_os in
13176   cygwin* | mingw* | pw32*)
13177     # FIXME: the MSVC++ port hasn't been tested in a loooong time
13178     # When not using gcc, we currently assume that we are using
13179     # Microsoft Visual C++.
13180     if test "$GCC" != yes; then
13181       with_gnu_ld=no
13182     fi
13183     ;;
13184   openbsd*)
13185     with_gnu_ld=no
13186     ;;
13187   esac
13188
13189   ld_shlibs_F77=yes
13190   if test "$with_gnu_ld" = yes; then
13191     # If archive_cmds runs LD, not CC, wlarc should be empty
13192     wlarc='${wl}'
13193
13194     # See if GNU ld supports shared libraries.
13195     case $host_os in
13196     aix3* | aix4* | aix5*)
13197       # On AIX/PPC, the GNU linker is very broken
13198       if test "$host_cpu" != ia64; then
13199         ld_shlibs_F77=no
13200         cat <<EOF 1>&2
13201
13202 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
13203 *** to be unable to reliably create shared libraries on AIX.
13204 *** Therefore, libtool is disabling shared libraries support.  If you
13205 *** really care for shared libraries, you may want to modify your PATH
13206 *** so that a non-GNU linker is found, and then restart.
13207
13208 EOF
13209       fi
13210       ;;
13211
13212     amigaos*)
13213       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)'
13214       hardcode_libdir_flag_spec_F77='-L$libdir'
13215       hardcode_minus_L_F77=yes
13216
13217       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
13218       # that the semantics of dynamic libraries on AmigaOS, at least up
13219       # to version 4, is to share data among multiple programs linked
13220       # with the same dynamic library.  Since this doesn't match the
13221       # behavior of shared libraries on other platforms, we can't use
13222       # them.
13223       ld_shlibs_F77=no
13224       ;;
13225
13226     beos*)
13227       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13228         allow_undefined_flag_F77=unsupported
13229         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13230         # support --undefined.  This deserves some investigation.  FIXME
13231         archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13232       else
13233         ld_shlibs_F77=no
13234       fi
13235       ;;
13236
13237     cygwin* | mingw* | pw32*)
13238       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
13239       # as there is no search path for DLLs.
13240       hardcode_libdir_flag_spec_F77='-L$libdir'
13241       allow_undefined_flag_F77=unsupported
13242       always_export_symbols_F77=no
13243       enable_shared_with_static_runtimes_F77=yes
13244       export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
13245
13246       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
13247         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
13248         # If the export-symbols file already is a .def file (1st line
13249         # is EXPORTS), use it as is; otherwise, prepend...
13250         archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13251           cp $export_symbols $output_objdir/$soname.def;
13252         else
13253           echo EXPORTS > $output_objdir/$soname.def;
13254           cat $export_symbols >> $output_objdir/$soname.def;
13255         fi~
13256         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
13257       else
13258         ld_shlibs=no
13259       fi
13260       ;;
13261
13262     netbsd*)
13263       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13264         archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
13265         wlarc=
13266       else
13267         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13268         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13269       fi
13270       ;;
13271
13272     solaris* | sysv5*)
13273       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
13274         ld_shlibs_F77=no
13275         cat <<EOF 1>&2
13276
13277 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
13278 *** create shared libraries on Solaris systems.  Therefore, libtool
13279 *** is disabling shared libraries support.  We urge you to upgrade GNU
13280 *** binutils to release 2.9.1 or newer.  Another option is to modify
13281 *** your PATH or compiler configuration so that the native linker is
13282 *** used, and then restart.
13283
13284 EOF
13285       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13286         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13287         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13288       else
13289         ld_shlibs_F77=no
13290       fi
13291       ;;
13292
13293     sunos4*)
13294       archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13295       wlarc=
13296       hardcode_direct_F77=yes
13297       hardcode_shlibpath_var_F77=no
13298       ;;
13299
13300     *)
13301       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13302         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13303         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13304       else
13305         ld_shlibs_F77=no
13306       fi
13307       ;;
13308     esac
13309
13310     if test "$ld_shlibs_F77" = yes; then
13311       runpath_var=LD_RUN_PATH
13312       hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
13313       export_dynamic_flag_spec_F77='${wl}--export-dynamic'
13314       # ancient GNU ld didn't support --whole-archive et. al.
13315       if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
13316         whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13317       else
13318         whole_archive_flag_spec_F77=
13319       fi
13320     fi
13321   else
13322     # PORTME fill in a description of your system's linker (not GNU ld)
13323     case $host_os in
13324     aix3*)
13325       allow_undefined_flag_F77=unsupported
13326       always_export_symbols_F77=yes
13327       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'
13328       # Note: this linker hardcodes the directories in LIBPATH if there
13329       # are no directories specified by -L.
13330       hardcode_minus_L_F77=yes
13331       if test "$GCC" = yes && test -z "$link_static_flag"; then
13332         # Neither direct hardcoding nor static linking is supported with a
13333         # broken collect2.
13334         hardcode_direct_F77=unsupported
13335       fi
13336       ;;
13337
13338     aix4* | aix5*)
13339       if test "$host_cpu" = ia64; then
13340         # On IA64, the linker does run time linking by default, so we don't
13341         # have to do anything special.
13342         aix_use_runtimelinking=no
13343         exp_sym_flag='-Bexport'
13344         no_entry_flag=""
13345       else
13346         # If we're using GNU nm, then we don't want the "-C" option.
13347         # -C means demangle to AIX nm, but means don't demangle with GNU nm
13348         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
13349           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'
13350         else
13351           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'
13352         fi
13353         aix_use_runtimelinking=no
13354
13355         # Test if we are trying to use run time linking or normal
13356         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
13357         # need to do runtime linking.
13358         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
13359           for ld_flag in $LDFLAGS; do
13360           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
13361             aix_use_runtimelinking=yes
13362             break
13363           fi
13364           done
13365         esac
13366
13367         exp_sym_flag='-bexport'
13368         no_entry_flag='-bnoentry'
13369       fi
13370
13371       # When large executables or shared objects are built, AIX ld can
13372       # have problems creating the table of contents.  If linking a library
13373       # or program results in "error TOC overflow" add -mminimal-toc to
13374       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
13375       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13376
13377       archive_cmds_F77=''
13378       hardcode_direct_F77=yes
13379       hardcode_libdir_separator_F77=':'
13380       link_all_deplibs_F77=yes
13381
13382       if test "$GCC" = yes; then
13383         case $host_os in aix4.012|aix4.012.*)
13384         # We only want to do this on AIX 4.2 and lower, the check
13385         # below for broken collect2 doesn't work under 4.3+
13386           collect2name=`${CC} -print-prog-name=collect2`
13387           if test -f "$collect2name" && \
13388            strings "$collect2name" | grep resolve_lib_name >/dev/null
13389           then
13390           # We have reworked collect2
13391           hardcode_direct_F77=yes
13392           else
13393           # We have old collect2
13394           hardcode_direct_F77=unsupported
13395           # It fails to find uninstalled libraries when the uninstalled
13396           # path is not listed in the libpath.  Setting hardcode_minus_L
13397           # to unsupported forces relinking
13398           hardcode_minus_L_F77=yes
13399           hardcode_libdir_flag_spec_F77='-L$libdir'
13400           hardcode_libdir_separator_F77=
13401           fi
13402         esac
13403         shared_flag='-shared'
13404       else
13405         # not using gcc
13406         if test "$host_cpu" = ia64; then
13407         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13408         # chokes on -Wl,-G. The following line is correct:
13409           shared_flag='-G'
13410         else
13411         if test "$aix_use_runtimelinking" = yes; then
13412             shared_flag='${wl}-G'
13413           else
13414             shared_flag='${wl}-bM:SRE'
13415         fi
13416         fi
13417       fi
13418
13419       # It seems that -bexpall does not export symbols beginning with
13420       # underscore (_), so it is better to generate a list of symbols to export.
13421       always_export_symbols_F77=yes
13422       if test "$aix_use_runtimelinking" = yes; then
13423         # Warning - without using the other runtime loading flags (-brtl),
13424         # -berok will link without error, but may produce a broken library.
13425         allow_undefined_flag_F77='-berok'
13426        # Determine the default libpath from the value encoded in an empty executable.
13427        cat >conftest.$ac_ext <<_ACEOF
13428       program main
13429
13430       end
13431 _ACEOF
13432 rm -f conftest.$ac_objext conftest$ac_exeext
13433 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13434   (eval $ac_link) 2>&5
13435   ac_status=$?
13436   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13437   (exit $ac_status); } &&
13438          { ac_try='test -s conftest$ac_exeext'
13439   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13440   (eval $ac_try) 2>&5
13441   ac_status=$?
13442   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13443   (exit $ac_status); }; }; then
13444
13445 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
13446 }'`
13447 # Check for a 64-bit object if we didn't find anything.
13448 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; }
13449 }'`; fi
13450 else
13451   echo "$as_me: failed program was:" >&5
13452 sed 's/^/| /' conftest.$ac_ext >&5
13453
13454 fi
13455 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13456 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13457
13458        hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
13459         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"
13460        else
13461         if test "$host_cpu" = ia64; then
13462           hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
13463           allow_undefined_flag_F77="-z nodefs"
13464           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"
13465         else
13466          # Determine the default libpath from the value encoded in an empty executable.
13467          cat >conftest.$ac_ext <<_ACEOF
13468       program main
13469
13470       end
13471 _ACEOF
13472 rm -f conftest.$ac_objext conftest$ac_exeext
13473 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13474   (eval $ac_link) 2>&5
13475   ac_status=$?
13476   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13477   (exit $ac_status); } &&
13478          { ac_try='test -s conftest$ac_exeext'
13479   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13480   (eval $ac_try) 2>&5
13481   ac_status=$?
13482   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13483   (exit $ac_status); }; }; then
13484
13485 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
13486 }'`
13487 # Check for a 64-bit object if we didn't find anything.
13488 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; }
13489 }'`; fi
13490 else
13491   echo "$as_me: failed program was:" >&5
13492 sed 's/^/| /' conftest.$ac_ext >&5
13493
13494 fi
13495 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13496 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13497
13498          hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
13499           # Warning - without using the other run time loading flags,
13500           # -berok will link without error, but may produce a broken library.
13501           no_undefined_flag_F77=' ${wl}-bernotok'
13502           allow_undefined_flag_F77=' ${wl}-berok'
13503           # -bexpall does not export symbols beginning with underscore (_)
13504           always_export_symbols_F77=yes
13505           # Exported symbols can be pulled into shared objects from archives
13506           whole_archive_flag_spec_F77=' '
13507           archive_cmds_need_lc_F77=yes
13508           # This is similar to how AIX traditionally builds it's shared libraries.
13509           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'
13510         fi
13511       fi
13512       ;;
13513
13514     amigaos*)
13515       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)'
13516       hardcode_libdir_flag_spec_F77='-L$libdir'
13517       hardcode_minus_L_F77=yes
13518       # see comment about different semantics on the GNU ld section
13519       ld_shlibs_F77=no
13520       ;;
13521
13522     bsdi4*)
13523       export_dynamic_flag_spec_F77=-rdynamic
13524       ;;
13525
13526     cygwin* | mingw* | pw32*)
13527       # When not using gcc, we currently assume that we are using
13528       # Microsoft Visual C++.
13529       # hardcode_libdir_flag_spec is actually meaningless, as there is
13530       # no search path for DLLs.
13531       hardcode_libdir_flag_spec_F77=' '
13532       allow_undefined_flag_F77=unsupported
13533       # Tell ltmain to make .lib files, not .a files.
13534       libext=lib
13535       # Tell ltmain to make .dll files, not .so files.
13536       shrext=".dll"
13537       # FIXME: Setting linknames here is a bad hack.
13538       archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
13539       # The linker will automatically build a .lib file if we build a DLL.
13540       old_archive_From_new_cmds_F77='true'
13541       # FIXME: Should let the user specify the lib program.
13542       old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
13543       fix_srcfile_path='`cygpath -w "$srcfile"`'
13544       enable_shared_with_static_runtimes_F77=yes
13545       ;;
13546
13547     darwin* | rhapsody*)
13548     if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
13549       archive_cmds_need_lc_F77=no
13550       case "$host_os" in
13551       rhapsody* | darwin1.[012])
13552         allow_undefined_flag_F77='-undefined suppress'
13553         ;;
13554       *) # Darwin 1.3 on
13555         test -z ${LD_TWOLEVEL_NAMESPACE} && allow_undefined_flag_F77='-flat_namespace -undefined suppress'
13556         ;;
13557       esac
13558       # FIXME: Relying on posixy $() will cause problems for
13559       #        cross-compilation, but unfortunately the echo tests do not
13560       #        yet detect zsh echo's removal of \ escapes.  Also zsh mangles
13561       #        `"' quotes if we put them in here... so don't!
13562         lt_int_apple_cc_single_mod=no
13563         output_verbose_link_cmd='echo'
13564         if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
13565           lt_int_apple_cc_single_mod=yes
13566         fi
13567         if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
13568           archive_cmds_F77='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
13569         else
13570         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'
13571       fi
13572       module_cmds_F77='$CC -bundle ${wl}-bind_at_load $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags'
13573       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
13574         if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
13575           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}'
13576         else
13577           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}'
13578         fi
13579           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}'
13580       hardcode_direct_F77=no
13581       hardcode_automatic_F77=yes
13582       hardcode_shlibpath_var_F77=unsupported
13583       whole_archive_flag_spec_F77='-all_load $convenience'
13584       link_all_deplibs_F77=yes
13585     fi
13586       ;;
13587
13588     dgux*)
13589       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13590       hardcode_libdir_flag_spec_F77='-L$libdir'
13591       hardcode_shlibpath_var_F77=no
13592       ;;
13593
13594     freebsd1*)
13595       ld_shlibs_F77=no
13596       ;;
13597
13598     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
13599     # support.  Future versions do this automatically, but an explicit c++rt0.o
13600     # does not break anything, and helps significantly (at the cost of a little
13601     # extra space).
13602     freebsd2.2*)
13603       archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
13604       hardcode_libdir_flag_spec_F77='-R$libdir'
13605       hardcode_direct_F77=yes
13606       hardcode_shlibpath_var_F77=no
13607       ;;
13608
13609     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
13610     freebsd2*)
13611       archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13612       hardcode_direct_F77=yes
13613       hardcode_minus_L_F77=yes
13614       hardcode_shlibpath_var_F77=no
13615       ;;
13616
13617     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
13618     freebsd*)
13619       archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
13620       hardcode_libdir_flag_spec_F77='-R$libdir'
13621       hardcode_direct_F77=yes
13622       hardcode_shlibpath_var_F77=no
13623       ;;
13624
13625     hpux9*)
13626       if test "$GCC" = yes; then
13627         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'
13628       else
13629         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'
13630       fi
13631       hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
13632       hardcode_libdir_separator_F77=:
13633       hardcode_direct_F77=yes
13634
13635       # hardcode_minus_L: Not really in the search PATH,
13636       # but as the default location of the library.
13637       hardcode_minus_L_F77=yes
13638       export_dynamic_flag_spec_F77='${wl}-E'
13639       ;;
13640
13641     hpux10* | hpux11*)
13642       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
13643         case "$host_cpu" in
13644         hppa*64*|ia64*)
13645           archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13646           ;;
13647         *)
13648           archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13649           ;;
13650         esac
13651       else
13652         case "$host_cpu" in
13653         hppa*64*|ia64*)
13654           archive_cmds_F77='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
13655           ;;
13656         *)
13657           archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
13658           ;;
13659         esac
13660       fi
13661       if test "$with_gnu_ld" = no; then
13662         case "$host_cpu" in
13663         hppa*64*)
13664           hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
13665           hardcode_libdir_flag_spec_ld_F77='+b $libdir'
13666           hardcode_libdir_separator_F77=:
13667           hardcode_direct_F77=no
13668           hardcode_shlibpath_var_F77=no
13669           ;;
13670         ia64*)
13671           hardcode_libdir_flag_spec_F77='-L$libdir'
13672           hardcode_direct_F77=no
13673           hardcode_shlibpath_var_F77=no
13674
13675           # hardcode_minus_L: Not really in the search PATH,
13676           # but as the default location of the library.
13677           hardcode_minus_L_F77=yes
13678           ;;
13679         *)
13680           hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
13681           hardcode_libdir_separator_F77=:
13682           hardcode_direct_F77=yes
13683           export_dynamic_flag_spec_F77='${wl}-E'
13684
13685           # hardcode_minus_L: Not really in the search PATH,
13686           # but as the default location of the library.
13687           hardcode_minus_L_F77=yes
13688           ;;
13689         esac
13690       fi
13691       ;;
13692
13693     irix5* | irix6* | nonstopux*)
13694       if test "$GCC" = yes; then
13695         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'
13696       else
13697         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'
13698         hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
13699       fi
13700       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
13701       hardcode_libdir_separator_F77=:
13702       link_all_deplibs_F77=yes
13703       ;;
13704
13705     netbsd*)
13706       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13707         archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
13708       else
13709         archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
13710       fi
13711       hardcode_libdir_flag_spec_F77='-R$libdir'
13712       hardcode_direct_F77=yes
13713       hardcode_shlibpath_var_F77=no
13714       ;;
13715
13716     newsos6)
13717       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13718       hardcode_direct_F77=yes
13719       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
13720       hardcode_libdir_separator_F77=:
13721       hardcode_shlibpath_var_F77=no
13722       ;;
13723
13724     openbsd*)
13725       hardcode_direct_F77=yes
13726       hardcode_shlibpath_var_F77=no
13727       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13728         archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13729         hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
13730         export_dynamic_flag_spec_F77='${wl}-E'
13731       else
13732        case $host_os in
13733          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
13734            archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13735            hardcode_libdir_flag_spec_F77='-R$libdir'
13736            ;;
13737          *)
13738            archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13739            hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
13740            ;;
13741        esac
13742       fi
13743       ;;
13744
13745     os2*)
13746       hardcode_libdir_flag_spec_F77='-L$libdir'
13747       hardcode_minus_L_F77=yes
13748       allow_undefined_flag_F77=unsupported
13749       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'
13750       old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
13751       ;;
13752
13753     osf3*)
13754       if test "$GCC" = yes; then
13755         allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
13756         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'
13757       else
13758         allow_undefined_flag_F77=' -expect_unresolved \*'
13759         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'
13760       fi
13761       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
13762       hardcode_libdir_separator_F77=:
13763       ;;
13764
13765     osf4* | osf5*)      # as osf3* with the addition of -msym flag
13766       if test "$GCC" = yes; then
13767         allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
13768         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'
13769         hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
13770       else
13771         allow_undefined_flag_F77=' -expect_unresolved \*'
13772         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'
13773         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~
13774         $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'
13775
13776         # Both c and cxx compiler support -rpath directly
13777         hardcode_libdir_flag_spec_F77='-rpath $libdir'
13778       fi
13779       hardcode_libdir_separator_F77=:
13780       ;;
13781
13782     sco3.2v5*)
13783       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13784       hardcode_shlibpath_var_F77=no
13785       export_dynamic_flag_spec_F77='${wl}-Bexport'
13786       runpath_var=LD_RUN_PATH
13787       hardcode_runpath_var=yes
13788       ;;
13789
13790     solaris*)
13791       no_undefined_flag_F77=' -z text'
13792       if test "$GCC" = yes; then
13793         archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13794         archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13795           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
13796       else
13797         archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
13798         archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13799         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
13800       fi
13801       hardcode_libdir_flag_spec_F77='-R$libdir'
13802       hardcode_shlibpath_var_F77=no
13803       case $host_os in
13804       solaris2.[0-5] | solaris2.[0-5].*) ;;
13805       *) # Supported since Solaris 2.6 (maybe 2.5.1?)
13806         whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
13807       esac
13808       link_all_deplibs_F77=yes
13809       ;;
13810
13811     sunos4*)
13812       if test "x$host_vendor" = xsequent; then
13813         # Use $CC to link under sequent, because it throws in some extra .o
13814         # files that make .init and .fini sections work.
13815         archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
13816       else
13817         archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
13818       fi
13819       hardcode_libdir_flag_spec_F77='-L$libdir'
13820       hardcode_direct_F77=yes
13821       hardcode_minus_L_F77=yes
13822       hardcode_shlibpath_var_F77=no
13823       ;;
13824
13825     sysv4)
13826       case $host_vendor in
13827         sni)
13828           archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13829           hardcode_direct_F77=yes # is this really true???
13830         ;;
13831         siemens)
13832           ## LD is ld it makes a PLAMLIB
13833           ## CC just makes a GrossModule.
13834           archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
13835           reload_cmds_F77='$CC -r -o $output$reload_objs'
13836           hardcode_direct_F77=no
13837         ;;
13838         motorola)
13839           archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13840           hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
13841         ;;
13842       esac
13843       runpath_var='LD_RUN_PATH'
13844       hardcode_shlibpath_var_F77=no
13845       ;;
13846
13847     sysv4.3*)
13848       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13849       hardcode_shlibpath_var_F77=no
13850       export_dynamic_flag_spec_F77='-Bexport'
13851       ;;
13852
13853     sysv4*MP*)
13854       if test -d /usr/nec; then
13855         archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13856         hardcode_shlibpath_var_F77=no
13857         runpath_var=LD_RUN_PATH
13858         hardcode_runpath_var=yes
13859         ld_shlibs_F77=yes
13860       fi
13861       ;;
13862
13863     sysv4.2uw2*)
13864       archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
13865       hardcode_direct_F77=yes
13866       hardcode_minus_L_F77=no
13867       hardcode_shlibpath_var_F77=no
13868       hardcode_runpath_var=yes
13869       runpath_var=LD_RUN_PATH
13870       ;;
13871
13872    sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
13873       no_undefined_flag_F77='${wl}-z ${wl}text'
13874       if test "$GCC" = yes; then
13875         archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13876       else
13877         archive_cmds_F77='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13878       fi
13879       runpath_var='LD_RUN_PATH'
13880       hardcode_shlibpath_var_F77=no
13881       ;;
13882
13883     sysv5*)
13884       no_undefined_flag_F77=' -z text'
13885       # $CC -shared without GNU ld will not create a library from C++
13886       # object files and a static libstdc++, better avoid it by now
13887       archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
13888       archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13889                 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
13890       hardcode_libdir_flag_spec_F77=
13891       hardcode_shlibpath_var_F77=no
13892       runpath_var='LD_RUN_PATH'
13893       ;;
13894
13895     uts4*)
13896       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13897       hardcode_libdir_flag_spec_F77='-L$libdir'
13898       hardcode_shlibpath_var_F77=no
13899       ;;
13900
13901     *)
13902       ld_shlibs_F77=no
13903       ;;
13904     esac
13905   fi
13906
13907 echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
13908 echo "${ECHO_T}$ld_shlibs_F77" >&6
13909 test "$ld_shlibs_F77" = no && can_build_shared=no
13910
13911 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
13912 if test "$GCC" = yes; then
13913   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
13914 fi
13915
13916 #
13917 # Do we need to explicitly link libc?
13918 #
13919 case "x$archive_cmds_need_lc_F77" in
13920 x|xyes)
13921   # Assume -lc should be added
13922   archive_cmds_need_lc_F77=yes
13923
13924   if test "$enable_shared" = yes && test "$GCC" = yes; then
13925     case $archive_cmds_F77 in
13926     *'~'*)
13927       # FIXME: we may have to deal with multi-command sequences.
13928       ;;
13929     '$CC '*)
13930       # Test whether the compiler implicitly links with -lc since on some
13931       # systems, -lgcc has to come before -lc. If gcc already passes -lc
13932       # to ld, don't add -lc before -lgcc.
13933       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
13934 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
13935       $rm conftest*
13936       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13937
13938       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13939   (eval $ac_compile) 2>&5
13940   ac_status=$?
13941   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13942   (exit $ac_status); } 2>conftest.err; then
13943         soname=conftest
13944         lib=conftest
13945         libobjs=conftest.$ac_objext
13946         deplibs=
13947         wl=$lt_prog_compiler_wl_F77
13948         compiler_flags=-v
13949         linker_flags=-v
13950         verstring=
13951         output_objdir=.
13952         libname=conftest
13953         lt_save_allow_undefined_flag=$allow_undefined_flag_F77
13954         allow_undefined_flag_F77=
13955         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
13956   (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
13957   ac_status=$?
13958   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13959   (exit $ac_status); }
13960         then
13961           archive_cmds_need_lc_F77=no
13962         else
13963           archive_cmds_need_lc_F77=yes
13964         fi
13965         allow_undefined_flag_F77=$lt_save_allow_undefined_flag
13966       else
13967         cat conftest.err 1>&5
13968       fi
13969       $rm conftest*
13970       echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
13971 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6
13972       ;;
13973     esac
13974   fi
13975   ;;
13976 esac
13977
13978 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
13979 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
13980 hardcode_action_F77=
13981 if test -n "$hardcode_libdir_flag_spec_F77" || \
13982    test -n "$runpath_var F77" || \
13983    test "X$hardcode_automatic_F77"="Xyes" ; then
13984
13985   # We can hardcode non-existant directories.
13986   if test "$hardcode_direct_F77" != no &&
13987      # If the only mechanism to avoid hardcoding is shlibpath_var, we
13988      # have to relink, otherwise we might link with an installed library
13989      # when we should be linking with a yet-to-be-installed one
13990      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
13991      test "$hardcode_minus_L_F77" != no; then
13992     # Linking always hardcodes the temporary library directory.
13993     hardcode_action_F77=relink
13994   else
13995     # We can link without hardcoding, and we can hardcode nonexisting dirs.
13996     hardcode_action_F77=immediate
13997   fi
13998 else
13999   # We cannot hardcode anything, or else we can only hardcode existing
14000   # directories.
14001   hardcode_action_F77=unsupported
14002 fi
14003 echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
14004 echo "${ECHO_T}$hardcode_action_F77" >&6
14005
14006 if test "$hardcode_action_F77" = relink; then
14007   # Fast installation is not supported
14008   enable_fast_install=no
14009 elif test "$shlibpath_overrides_runpath" = yes ||
14010      test "$enable_shared" = no; then
14011   # Fast installation is not necessary
14012   enable_fast_install=needless
14013 fi
14014
14015 striplib=
14016 old_striplib=
14017 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
14018 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
14019 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
14020   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
14021   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
14022   echo "$as_me:$LINENO: result: yes" >&5
14023 echo "${ECHO_T}yes" >&6
14024 else
14025 # FIXME - insert some real tests, host_os isn't really good enough
14026   case $host_os in
14027    darwin*)
14028        if test -n "$STRIP" ; then
14029          striplib="$STRIP -x"
14030          echo "$as_me:$LINENO: result: yes" >&5
14031 echo "${ECHO_T}yes" >&6
14032        else
14033   echo "$as_me:$LINENO: result: no" >&5
14034 echo "${ECHO_T}no" >&6
14035 fi
14036        ;;
14037    *)
14038   echo "$as_me:$LINENO: result: no" >&5
14039 echo "${ECHO_T}no" >&6
14040     ;;
14041   esac
14042 fi
14043
14044 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
14045 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
14046 library_names_spec=
14047 libname_spec='lib$name'
14048 soname_spec=
14049 shrext=".so"
14050 postinstall_cmds=
14051 postuninstall_cmds=
14052 finish_cmds=
14053 finish_eval=
14054 shlibpath_var=
14055 shlibpath_overrides_runpath=unknown
14056 version_type=none
14057 dynamic_linker="$host_os ld.so"
14058 sys_lib_dlsearch_path_spec="/lib /usr/lib"
14059 if test "$GCC" = yes; then
14060   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14061   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
14062     # if the path contains ";" then we assume it to be the separator
14063     # otherwise default to the standard path separator (i.e. ":") - it is
14064     # assumed that no part of a normal pathname contains ";" but that should
14065     # okay in the real world where ";" in dirpaths is itself problematic.
14066     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14067   else
14068     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
14069   fi
14070 else
14071   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
14072 fi
14073 need_lib_prefix=unknown
14074 hardcode_into_libs=no
14075
14076 # when you set need_version to no, make sure it does not cause -set_version
14077 # flags to be left without arguments
14078 need_version=unknown
14079
14080 case $host_os in
14081 aix3*)
14082   version_type=linux
14083   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14084   shlibpath_var=LIBPATH
14085
14086   # AIX 3 has no versioning support, so we append a major version to the name.
14087   soname_spec='${libname}${release}${shared_ext}$major'
14088   ;;
14089
14090 aix4* | aix5*)
14091   version_type=linux
14092   need_lib_prefix=no
14093   need_version=no
14094   hardcode_into_libs=yes
14095   if test "$host_cpu" = ia64; then
14096     # AIX 5 supports IA64
14097     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14098     shlibpath_var=LD_LIBRARY_PATH
14099   else
14100     # With GCC up to 2.95.x, collect2 would create an import file
14101     # for dependence libraries.  The import file would start with
14102     # the line `#! .'.  This would cause the generated library to
14103     # depend on `.', always an invalid library.  This was fixed in
14104     # development snapshots of GCC prior to 3.0.
14105     case $host_os in
14106       aix4 | aix4.[01] | aix4.[01].*)
14107       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14108            echo ' yes '
14109            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
14110         :
14111       else
14112         can_build_shared=no
14113       fi
14114       ;;
14115     esac
14116     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14117     # soname into executable. Probably we can add versioning support to
14118     # collect2, so additional links can be useful in future.
14119     if test "$aix_use_runtimelinking" = yes; then
14120       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14121       # instead of lib<name>.a to let people know that these are not
14122       # typical AIX shared libraries.
14123       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14124     else
14125       # We preserve .a as extension for shared libraries through AIX4.2
14126       # and later when we are not doing run time linking.
14127       library_names_spec='${libname}${release}.a $libname.a'
14128       soname_spec='${libname}${release}${shared_ext}$major'
14129     fi
14130     shlibpath_var=LIBPATH
14131   fi
14132   ;;
14133
14134 amigaos*)
14135   library_names_spec='$libname.ixlibrary $libname.a'
14136   # Create ${libname}_ixlibrary.a entries in /sys/libs.
14137   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'
14138   ;;
14139
14140 beos*)
14141   library_names_spec='${libname}${shared_ext}'
14142   dynamic_linker="$host_os ld.so"
14143   shlibpath_var=LIBRARY_PATH
14144   ;;
14145
14146 bsdi4*)
14147   version_type=linux
14148   need_version=no
14149   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14150   soname_spec='${libname}${release}${shared_ext}$major'
14151   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14152   shlibpath_var=LD_LIBRARY_PATH
14153   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14154   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14155   # the default ld.so.conf also contains /usr/contrib/lib and
14156   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14157   # libtool to hard-code these into programs
14158   ;;
14159
14160 cygwin* | mingw* | pw32*)
14161   version_type=windows
14162   shrext=".dll"
14163   need_version=no
14164   need_lib_prefix=no
14165
14166   case $GCC,$host_os in
14167   yes,cygwin* | yes,mingw* | yes,pw32*)
14168     library_names_spec='$libname.dll.a'
14169     # DLL is installed to $(libdir)/../bin by postinstall_cmds
14170     postinstall_cmds='base_file=`basename \${file}`~
14171       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
14172       dldir=$destdir/`dirname \$dlpath`~
14173       test -d \$dldir || mkdir -p \$dldir~
14174       $install_prog $dir/$dlname \$dldir/$dlname'
14175     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14176       dlpath=$dir/\$dldll~
14177        $rm \$dlpath'
14178     shlibpath_overrides_runpath=yes
14179
14180     case $host_os in
14181     cygwin*)
14182       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14183       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14184       sys_lib_search_path_spec="/lib /lib/w32api /usr/lib /usr/local/lib"
14185       ;;
14186     mingw*)
14187       # MinGW DLLs use traditional 'lib' prefix
14188       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14189       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14190       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
14191         # It is most probably a Windows format PATH printed by
14192         # mingw gcc, but we are running on Cygwin. Gcc prints its search
14193         # path with ; separators, and with drive letters. We can handle the
14194         # drive letters (cygwin fileutils understands them), so leave them,
14195         # especially as we might pass files found there to a mingw objdump,
14196         # which wouldn't understand a cygwinified path. Ahh.
14197         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14198       else
14199         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
14200       fi
14201       ;;
14202     pw32*)
14203       # pw32 DLLs use 'pw' prefix rather than 'lib'
14204       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
14205       ;;
14206     esac
14207     ;;
14208
14209   *)
14210     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14211     ;;
14212   esac
14213   dynamic_linker='Win32 ld.exe'
14214   # FIXME: first we should search . and the directory the executable is in
14215   shlibpath_var=PATH
14216   ;;
14217
14218 darwin* | rhapsody*)
14219   dynamic_linker="$host_os dyld"
14220   version_type=darwin
14221   need_lib_prefix=no
14222   need_version=no
14223   # FIXME: Relying on posixy $() will cause problems for
14224   #        cross-compilation, but unfortunately the echo tests do not
14225   #        yet detect zsh echo's removal of \ escapes.
14226   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14227   soname_spec='${libname}${release}${major}$shared_ext'
14228   shlibpath_overrides_runpath=yes
14229   shlibpath_var=DYLD_LIBRARY_PATH
14230   shrext='$(test .$module = .yes && echo .so || echo .dylib)'
14231   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
14232   if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
14233   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"`
14234   fi
14235   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14236   ;;
14237
14238 dgux*)
14239   version_type=linux
14240   need_lib_prefix=no
14241   need_version=no
14242   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14243   soname_spec='${libname}${release}${shared_ext}$major'
14244   shlibpath_var=LD_LIBRARY_PATH
14245   ;;
14246
14247 freebsd1*)
14248   dynamic_linker=no
14249   ;;
14250
14251 freebsd*)
14252   objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
14253   version_type=freebsd-$objformat
14254   case $version_type in
14255     freebsd-elf*)
14256       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14257       need_version=no
14258       need_lib_prefix=no
14259       ;;
14260     freebsd-*)
14261       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
14262       need_version=yes
14263       ;;
14264   esac
14265   shlibpath_var=LD_LIBRARY_PATH
14266   case $host_os in
14267   freebsd2*)
14268     shlibpath_overrides_runpath=yes
14269     ;;
14270   freebsd3.01* | freebsdelf3.01*)
14271     shlibpath_overrides_runpath=yes
14272     hardcode_into_libs=yes
14273     ;;
14274   *) # from 3.2 on
14275     shlibpath_overrides_runpath=no
14276     hardcode_into_libs=yes
14277     ;;
14278   esac
14279   ;;
14280
14281 gnu*)
14282   version_type=linux
14283   need_lib_prefix=no
14284   need_version=no
14285   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14286   soname_spec='${libname}${release}${shared_ext}$major'
14287   shlibpath_var=LD_LIBRARY_PATH
14288   hardcode_into_libs=yes
14289   ;;
14290
14291 hpux9* | hpux10* | hpux11*)
14292   # Give a soname corresponding to the major version so that dld.sl refuses to
14293   # link against other versions.
14294   version_type=sunos
14295   need_lib_prefix=no
14296   need_version=no
14297   case "$host_cpu" in
14298   ia64*)
14299     shrext='.so'
14300     hardcode_into_libs=yes
14301     dynamic_linker="$host_os dld.so"
14302     shlibpath_var=LD_LIBRARY_PATH
14303     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14304     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14305     soname_spec='${libname}${release}${shared_ext}$major'
14306     if test "X$HPUX_IA64_MODE" = X32; then
14307       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14308     else
14309       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14310     fi
14311     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14312     ;;
14313    hppa*64*)
14314      shrext='.sl'
14315      hardcode_into_libs=yes
14316      dynamic_linker="$host_os dld.sl"
14317      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14318      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14319      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14320      soname_spec='${libname}${release}${shared_ext}$major'
14321      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14322      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14323      ;;
14324    *)
14325     shrext='.sl'
14326     dynamic_linker="$host_os dld.sl"
14327     shlibpath_var=SHLIB_PATH
14328     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14329     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14330     soname_spec='${libname}${release}${shared_ext}$major'
14331     ;;
14332   esac
14333   # HP-UX runs *really* slowly unless shared libraries are mode 555.
14334   postinstall_cmds='chmod 555 $lib'
14335   ;;
14336
14337 irix5* | irix6* | nonstopux*)
14338   case $host_os in
14339     nonstopux*) version_type=nonstopux ;;
14340     *)
14341         if test "$lt_cv_prog_gnu_ld" = yes; then
14342                 version_type=linux
14343         else
14344                 version_type=irix
14345         fi ;;
14346   esac
14347   need_lib_prefix=no
14348   need_version=no
14349   soname_spec='${libname}${release}${shared_ext}$major'
14350   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
14351   case $host_os in
14352   irix5* | nonstopux*)
14353     libsuff= shlibsuff=
14354     ;;
14355   *)
14356     case $LD in # libtool.m4 will add one of these switches to LD
14357     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14358       libsuff= shlibsuff= libmagic=32-bit;;
14359     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14360       libsuff=32 shlibsuff=N32 libmagic=N32;;
14361     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14362       libsuff=64 shlibsuff=64 libmagic=64-bit;;
14363     *) libsuff= shlibsuff= libmagic=never-match;;
14364     esac
14365     ;;
14366   esac
14367   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14368   shlibpath_overrides_runpath=no
14369   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14370   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
14371   hardcode_into_libs=yes
14372   ;;
14373
14374 # No shared lib support for Linux oldld, aout, or coff.
14375 linux*oldld* | linux*aout* | linux*coff*)
14376   dynamic_linker=no
14377   ;;
14378
14379 # This must be Linux ELF.
14380 linux*)
14381   version_type=linux
14382   need_lib_prefix=no
14383   need_version=no
14384   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14385   soname_spec='${libname}${release}${shared_ext}$major'
14386   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14387   shlibpath_var=LD_LIBRARY_PATH
14388   shlibpath_overrides_runpath=no
14389   # This implies no fast_install, which is unacceptable.
14390   # Some rework will be needed to allow for fast_install
14391   # before this can be enabled.
14392   hardcode_into_libs=yes
14393
14394   # We used to test for /lib/ld.so.1 and disable shared libraries on
14395   # powerpc, because MkLinux only supported shared libraries with the
14396   # GNU dynamic linker.  Since this was broken with cross compilers,
14397   # most powerpc-linux boxes support dynamic linking these days and
14398   # people can always --disable-shared, the test was removed, and we
14399   # assume the GNU/Linux dynamic linker is in use.
14400   dynamic_linker='GNU/Linux ld.so'
14401   ;;
14402
14403 netbsd*)
14404   version_type=sunos
14405   need_lib_prefix=no
14406   need_version=no
14407   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14408     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14409     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14410     dynamic_linker='NetBSD (a.out) ld.so'
14411   else
14412     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
14413     soname_spec='${libname}${release}${shared_ext}$major'
14414     dynamic_linker='NetBSD ld.elf_so'
14415   fi
14416   shlibpath_var=LD_LIBRARY_PATH
14417   shlibpath_overrides_runpath=yes
14418   hardcode_into_libs=yes
14419   ;;
14420
14421 newsos6)
14422   version_type=linux
14423   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14424   shlibpath_var=LD_LIBRARY_PATH
14425   shlibpath_overrides_runpath=yes
14426   ;;
14427
14428 nto-qnx)
14429   version_type=linux
14430   need_lib_prefix=no
14431   need_version=no
14432   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14433   soname_spec='${libname}${release}${shared_ext}$major'
14434   shlibpath_var=LD_LIBRARY_PATH
14435   shlibpath_overrides_runpath=yes
14436   ;;
14437
14438 openbsd*)
14439   version_type=sunos
14440   need_lib_prefix=no
14441   need_version=no
14442   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14443   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14444   shlibpath_var=LD_LIBRARY_PATH
14445   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14446     case $host_os in
14447       openbsd2.[89] | openbsd2.[89].*)
14448         shlibpath_overrides_runpath=no
14449         ;;
14450       *)
14451         shlibpath_overrides_runpath=yes
14452         ;;
14453       esac
14454   else
14455     shlibpath_overrides_runpath=yes
14456   fi
14457   ;;
14458
14459 os2*)
14460   libname_spec='$name'
14461   shrext=".dll"
14462   need_lib_prefix=no
14463   library_names_spec='$libname${shared_ext} $libname.a'
14464   dynamic_linker='OS/2 ld.exe'
14465   shlibpath_var=LIBPATH
14466   ;;
14467
14468 osf3* | osf4* | osf5*)
14469   version_type=osf
14470   need_lib_prefix=no
14471   need_version=no
14472   soname_spec='${libname}${release}${shared_ext}$major'
14473   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14474   shlibpath_var=LD_LIBRARY_PATH
14475   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14476   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
14477   ;;
14478
14479 sco3.2v5*)
14480   version_type=osf
14481   soname_spec='${libname}${release}${shared_ext}$major'
14482   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14483   shlibpath_var=LD_LIBRARY_PATH
14484   ;;
14485
14486 solaris*)
14487   version_type=linux
14488   need_lib_prefix=no
14489   need_version=no
14490   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14491   soname_spec='${libname}${release}${shared_ext}$major'
14492   shlibpath_var=LD_LIBRARY_PATH
14493   shlibpath_overrides_runpath=yes
14494   hardcode_into_libs=yes
14495   # ldd complains unless libraries are executable
14496   postinstall_cmds='chmod +x $lib'
14497   ;;
14498
14499 sunos4*)
14500   version_type=sunos
14501   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14502   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14503   shlibpath_var=LD_LIBRARY_PATH
14504   shlibpath_overrides_runpath=yes
14505   if test "$with_gnu_ld" = yes; then
14506     need_lib_prefix=no
14507   fi
14508   need_version=yes
14509   ;;
14510
14511 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
14512   version_type=linux
14513   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14514   soname_spec='${libname}${release}${shared_ext}$major'
14515   shlibpath_var=LD_LIBRARY_PATH
14516   case $host_vendor in
14517     sni)
14518       shlibpath_overrides_runpath=no
14519       need_lib_prefix=no
14520       export_dynamic_flag_spec='${wl}-Blargedynsym'
14521       runpath_var=LD_RUN_PATH
14522       ;;
14523     siemens)
14524       need_lib_prefix=no
14525       ;;
14526     motorola)
14527       need_lib_prefix=no
14528       need_version=no
14529       shlibpath_overrides_runpath=no
14530       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14531       ;;
14532   esac
14533   ;;
14534
14535 sysv4*MP*)
14536   if test -d /usr/nec ;then
14537     version_type=linux
14538     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
14539     soname_spec='$libname${shared_ext}.$major'
14540     shlibpath_var=LD_LIBRARY_PATH
14541   fi
14542   ;;
14543
14544 uts4*)
14545   version_type=linux
14546   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14547   soname_spec='${libname}${release}${shared_ext}$major'
14548   shlibpath_var=LD_LIBRARY_PATH
14549   ;;
14550
14551 *)
14552   dynamic_linker=no
14553   ;;
14554 esac
14555 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
14556 echo "${ECHO_T}$dynamic_linker" >&6
14557 test "$dynamic_linker" = no && can_build_shared=no
14558
14559
14560 # The else clause should only fire when bootstrapping the
14561 # libtool distribution, otherwise you forgot to ship ltmain.sh
14562 # with your package, and you will get complaints that there are
14563 # no rules to generate ltmain.sh.
14564 if test -f "$ltmain"; then
14565   # See if we are running on zsh, and set the options which allow our commands through
14566   # without removal of \ escapes.
14567   if test -n "${ZSH_VERSION+set}" ; then
14568     setopt NO_GLOB_SUBST
14569   fi
14570   # Now quote all the things that may contain metacharacters while being
14571   # careful not to overquote the AC_SUBSTed values.  We take copies of the
14572   # variables and quote the copies for generation of the libtool script.
14573   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \
14574     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
14575     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
14576     deplibs_check_method reload_flag reload_cmds need_locks \
14577     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
14578     lt_cv_sys_global_symbol_to_c_name_address \
14579     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
14580     old_postinstall_cmds old_postuninstall_cmds \
14581     compiler_F77 \
14582     CC_F77 \
14583     LD_F77 \
14584     lt_prog_compiler_wl_F77 \
14585     lt_prog_compiler_pic_F77 \
14586     lt_prog_compiler_static_F77 \
14587     lt_prog_compiler_no_builtin_flag_F77 \
14588     export_dynamic_flag_spec_F77 \
14589     thread_safe_flag_spec_F77 \
14590     whole_archive_flag_spec_F77 \
14591     enable_shared_with_static_runtimes_F77 \
14592     old_archive_cmds_F77 \
14593     old_archive_from_new_cmds_F77 \
14594     predep_objects_F77 \
14595     postdep_objects_F77 \
14596     predeps_F77 \
14597     postdeps_F77 \
14598     compiler_lib_search_path_F77 \
14599     archive_cmds_F77 \
14600     archive_expsym_cmds_F77 \
14601     postinstall_cmds_F77 \
14602     postuninstall_cmds_F77 \
14603     old_archive_from_expsyms_cmds_F77 \
14604     allow_undefined_flag_F77 \
14605     no_undefined_flag_F77 \
14606     export_symbols_cmds_F77 \
14607     hardcode_libdir_flag_spec_F77 \
14608     hardcode_libdir_flag_spec_ld_F77 \
14609     hardcode_libdir_separator_F77 \
14610     hardcode_automatic_F77 \
14611     module_cmds_F77 \
14612     module_expsym_cmds_F77 \
14613     lt_cv_prog_compiler_c_o_F77 \
14614     exclude_expsyms_F77 \
14615     include_expsyms_F77; do
14616
14617     case $var in
14618     old_archive_cmds_F77 | \
14619     old_archive_from_new_cmds_F77 | \
14620     archive_cmds_F77 | \
14621     archive_expsym_cmds_F77 | \
14622     module_cmds_F77 | \
14623     module_expsym_cmds_F77 | \
14624     old_archive_from_expsyms_cmds_F77 | \
14625     export_symbols_cmds_F77 | \
14626     extract_expsyms_cmds | reload_cmds | finish_cmds | \
14627     postinstall_cmds | postuninstall_cmds | \
14628     old_postinstall_cmds | old_postuninstall_cmds | \
14629     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
14630       # Double-quote double-evaled strings.
14631       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
14632       ;;
14633     *)
14634       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
14635       ;;
14636     esac
14637   done
14638
14639   case $lt_echo in
14640   *'\$0 --fallback-echo"')
14641     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
14642     ;;
14643   esac
14644
14645 cfgfile="$ofile"
14646
14647   cat <<__EOF__ >> "$cfgfile"
14648 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
14649
14650 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
14651
14652 # Shell to use when invoking shell scripts.
14653 SHELL=$lt_SHELL
14654
14655 # Whether or not to build shared libraries.
14656 build_libtool_libs=$enable_shared
14657
14658 # Whether or not to build static libraries.
14659 build_old_libs=$enable_static
14660
14661 # Whether or not to add -lc for building shared libraries.
14662 build_libtool_need_lc=$archive_cmds_need_lc_F77
14663
14664 # Whether or not to disallow shared libs when runtime libs are static
14665 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
14666
14667 # Whether or not to optimize for fast installation.
14668 fast_install=$enable_fast_install
14669
14670 # The host system.
14671 host_alias=$host_alias
14672 host=$host
14673
14674 # An echo program that does not interpret backslashes.
14675 echo=$lt_echo
14676
14677 # The archiver.
14678 AR=$lt_AR
14679 AR_FLAGS=$lt_AR_FLAGS
14680
14681 # A C compiler.
14682 LTCC=$lt_LTCC
14683
14684 # A language-specific compiler.
14685 CC=$lt_compiler_F77
14686
14687 # Is the compiler the GNU C compiler?
14688 with_gcc=$GCC_F77
14689
14690 # An ERE matcher.
14691 EGREP=$lt_EGREP
14692
14693 # The linker used to build libraries.
14694 LD=$lt_LD_F77
14695
14696 # Whether we need hard or soft links.
14697 LN_S=$lt_LN_S
14698
14699 # A BSD-compatible nm program.
14700 NM=$lt_NM
14701
14702 # A symbol stripping program
14703 STRIP=$STRIP
14704
14705 # Used to examine libraries when file_magic_cmd begins "file"
14706 MAGIC_CMD=$MAGIC_CMD
14707
14708 # Used on cygwin: DLL creation program.
14709 DLLTOOL="$DLLTOOL"
14710
14711 # Used on cygwin: object dumper.
14712 OBJDUMP="$OBJDUMP"
14713
14714 # Used on cygwin: assembler.
14715 AS="$AS"
14716
14717 # The name of the directory that contains temporary libtool files.
14718 objdir=$objdir
14719
14720 # How to create reloadable object files.
14721 reload_flag=$lt_reload_flag
14722 reload_cmds=$lt_reload_cmds
14723
14724 # How to pass a linker flag through the compiler.
14725 wl=$lt_lt_prog_compiler_wl_F77
14726
14727 # Object file suffix (normally "o").
14728 objext="$ac_objext"
14729
14730 # Old archive suffix (normally "a").
14731 libext="$libext"
14732
14733 # Shared library suffix (normally ".so").
14734 shrext='$shrext'
14735
14736 # Executable file suffix (normally "").
14737 exeext="$exeext"
14738
14739 # Additional compiler flags for building library objects.
14740 pic_flag=$lt_lt_prog_compiler_pic_F77
14741 pic_mode=$pic_mode
14742
14743 # What is the maximum length of a command?
14744 max_cmd_len=$lt_cv_sys_max_cmd_len
14745
14746 # Does compiler simultaneously support -c and -o options?
14747 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
14748
14749 # Must we lock files when doing compilation ?
14750 need_locks=$lt_need_locks
14751
14752 # Do we need the lib prefix for modules?
14753 need_lib_prefix=$need_lib_prefix
14754
14755 # Do we need a version for libraries?
14756 need_version=$need_version
14757
14758 # Whether dlopen is supported.
14759 dlopen_support=$enable_dlopen
14760
14761 # Whether dlopen of programs is supported.
14762 dlopen_self=$enable_dlopen_self
14763
14764 # Whether dlopen of statically linked programs is supported.
14765 dlopen_self_static=$enable_dlopen_self_static
14766
14767 # Compiler flag to prevent dynamic linking.
14768 link_static_flag=$lt_lt_prog_compiler_static_F77
14769
14770 # Compiler flag to turn off builtin functions.
14771 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
14772
14773 # Compiler flag to allow reflexive dlopens.
14774 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
14775
14776 # Compiler flag to generate shared objects directly from archives.
14777 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
14778
14779 # Compiler flag to generate thread-safe objects.
14780 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
14781
14782 # Library versioning type.
14783 version_type=$version_type
14784
14785 # Format of library name prefix.
14786 libname_spec=$lt_libname_spec
14787
14788 # List of archive names.  First name is the real one, the rest are links.
14789 # The last name is the one that the linker finds with -lNAME.
14790 library_names_spec=$lt_library_names_spec
14791
14792 # The coded name of the library, if different from the real name.
14793 soname_spec=$lt_soname_spec
14794
14795 # Commands used to build and install an old-style archive.
14796 RANLIB=$lt_RANLIB
14797 old_archive_cmds=$lt_old_archive_cmds_F77
14798 old_postinstall_cmds=$lt_old_postinstall_cmds
14799 old_postuninstall_cmds=$lt_old_postuninstall_cmds
14800
14801 # Create an old-style archive from a shared archive.
14802 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
14803
14804 # Create a temporary old-style archive to link instead of a shared archive.
14805 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
14806
14807 # Commands used to build and install a shared archive.
14808 archive_cmds=$lt_archive_cmds_F77
14809 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
14810 postinstall_cmds=$lt_postinstall_cmds
14811 postuninstall_cmds=$lt_postuninstall_cmds
14812
14813 # Commands used to build a loadable module (assumed same as above if empty)
14814 module_cmds=$lt_module_cmds_F77
14815 module_expsym_cmds=$lt_module_expsym_cmds_F77
14816
14817 # Commands to strip libraries.
14818 old_striplib=$lt_old_striplib
14819 striplib=$lt_striplib
14820
14821 # Dependencies to place before the objects being linked to create a
14822 # shared library.
14823 predep_objects=$lt_predep_objects_F77
14824
14825 # Dependencies to place after the objects being linked to create a
14826 # shared library.
14827 postdep_objects=$lt_postdep_objects_F77
14828
14829 # Dependencies to place before the objects being linked to create a
14830 # shared library.
14831 predeps=$lt_predeps_F77
14832
14833 # Dependencies to place after the objects being linked to create a
14834 # shared library.
14835 postdeps=$lt_postdeps_F77
14836
14837 # The library search path used internally by the compiler when linking
14838 # a shared library.
14839 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
14840
14841 # Method to check whether dependent libraries are shared objects.
14842 deplibs_check_method=$lt_deplibs_check_method
14843
14844 # Command to use when deplibs_check_method == file_magic.
14845 file_magic_cmd=$lt_file_magic_cmd
14846
14847 # Flag that allows shared libraries with undefined symbols to be built.
14848 allow_undefined_flag=$lt_allow_undefined_flag_F77
14849
14850 # Flag that forces no undefined symbols.
14851 no_undefined_flag=$lt_no_undefined_flag_F77
14852
14853 # Commands used to finish a libtool library installation in a directory.
14854 finish_cmds=$lt_finish_cmds
14855
14856 # Same as above, but a single script fragment to be evaled but not shown.
14857 finish_eval=$lt_finish_eval
14858
14859 # Take the output of nm and produce a listing of raw symbols and C names.
14860 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
14861
14862 # Transform the output of nm in a proper C declaration
14863 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
14864
14865 # Transform the output of nm in a C name address pair
14866 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
14867
14868 # This is the shared library runtime path variable.
14869 runpath_var=$runpath_var
14870
14871 # This is the shared library path variable.
14872 shlibpath_var=$shlibpath_var
14873
14874 # Is shlibpath searched before the hard-coded library search path?
14875 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
14876
14877 # How to hardcode a shared library path into an executable.
14878 hardcode_action=$hardcode_action_F77
14879
14880 # Whether we should hardcode library paths into libraries.
14881 hardcode_into_libs=$hardcode_into_libs
14882
14883 # Flag to hardcode \$libdir into a binary during linking.
14884 # This must work even if \$libdir does not exist.
14885 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
14886
14887 # If ld is used when linking, flag to hardcode \$libdir into
14888 # a binary during linking. This must work even if \$libdir does
14889 # not exist.
14890 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
14891
14892 # Whether we need a single -rpath flag with a separated argument.
14893 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
14894
14895 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
14896 # resulting binary.
14897 hardcode_direct=$hardcode_direct_F77
14898
14899 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
14900 # resulting binary.
14901 hardcode_minus_L=$hardcode_minus_L_F77
14902
14903 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
14904 # the resulting binary.
14905 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
14906
14907 # Set to yes if building a shared library automatically hardcodes DIR into the library
14908 # and all subsequent libraries and executables linked against it.
14909 hardcode_automatic=$hardcode_automatic_F77
14910
14911 # Variables whose values should be saved in libtool wrapper scripts and
14912 # restored at relink time.
14913 variables_saved_for_relink="$variables_saved_for_relink"
14914
14915 # Whether libtool must link a program against all its dependency libraries.
14916 link_all_deplibs=$link_all_deplibs_F77
14917
14918 # Compile-time system search path for libraries
14919 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
14920
14921 # Run-time system search path for libraries
14922 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
14923
14924 # Fix the shell variable \$srcfile for the compiler.
14925 fix_srcfile_path="$fix_srcfile_path_F77"
14926
14927 # Set to yes if exported symbols are required.
14928 always_export_symbols=$always_export_symbols_F77
14929
14930 # The commands to list exported symbols.
14931 export_symbols_cmds=$lt_export_symbols_cmds_F77
14932
14933 # The commands to extract the exported symbol list from a shared archive.
14934 extract_expsyms_cmds=$lt_extract_expsyms_cmds
14935
14936 # Symbols that should not be listed in the preloaded symbols.
14937 exclude_expsyms=$lt_exclude_expsyms_F77
14938
14939 # Symbols that must always be exported.
14940 include_expsyms=$lt_include_expsyms_F77
14941
14942 # ### END LIBTOOL TAG CONFIG: $tagname
14943
14944 __EOF__
14945
14946
14947 else
14948   # If there is no Makefile yet, we rely on a make rule to execute
14949   # `config.status --recheck' to rerun these tests and create the
14950   # libtool script then.
14951   test -f Makefile && make "$ltmain"
14952 fi
14953
14954
14955 ac_ext=c
14956 ac_cpp='$CPP $CPPFLAGS'
14957 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14958 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14959 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14960
14961 CC="$lt_save_CC"
14962
14963         else
14964           tagname=""
14965         fi
14966         ;;
14967
14968       GCJ)
14969         if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
14970
14971
14972
14973 # Source file extension for Java test sources.
14974 ac_ext=java
14975
14976 # Object file extension for compiled Java test sources.
14977 objext=o
14978 objext_GCJ=$objext
14979
14980 # Code to be used in simple compile tests
14981 lt_simple_compile_test_code="class foo {}\n"
14982
14983 # Code to be used in simple link tests
14984 lt_simple_link_test_code='public class conftest { public static void main(String argv) {}; }\n'
14985
14986 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
14987
14988 # If no C compiler was specified, use CC.
14989 LTCC=${LTCC-"$CC"}
14990
14991 # Allow CC to be a program name with arguments.
14992 compiler=$CC
14993
14994
14995 # Allow CC to be a program name with arguments.
14996 lt_save_CC="$CC"
14997 CC=${GCJ-"gcj"}
14998 compiler=$CC
14999 compiler_GCJ=$CC
15000
15001 # GCJ did not exist at the time GCC didn't implicitly link libc in.
15002 archive_cmds_need_lc_GCJ=no
15003
15004 ## CAVEAT EMPTOR:
15005 ## There is no encapsulation within the following macros, do not change
15006 ## the running order or otherwise move them around unless you know exactly
15007 ## what you are doing...
15008
15009 lt_prog_compiler_no_builtin_flag_GCJ=
15010
15011 if test "$GCC" = yes; then
15012   lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
15013
15014   echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
15015 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
15016 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
15017   echo $ECHO_N "(cached) $ECHO_C" >&6
15018 else
15019   lt_cv_prog_compiler_rtti_exceptions=no
15020   ac_outfile=conftest.$ac_objext
15021    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15022    lt_compiler_flag="-fno-rtti -fno-exceptions"
15023    # Insert the option either (1) after the last *FLAGS variable, or
15024    # (2) before a word containing "conftest.", or (3) at the end.
15025    # Note that $ac_compile itself does not contain backslashes and begins
15026    # with a dollar sign (not a hyphen), so the echo should work correctly.
15027    # The option is referenced via a variable to avoid confusing sed.
15028    lt_compile=`echo "$ac_compile" | $SED \
15029    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
15030    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15031    -e 's:$: $lt_compiler_flag:'`
15032    (eval echo "\"\$as_me:15032: $lt_compile\"" >&5)
15033    (eval "$lt_compile" 2>conftest.err)
15034    ac_status=$?
15035    cat conftest.err >&5
15036    echo "$as_me:15036: \$? = $ac_status" >&5
15037    if (exit $ac_status) && test -s "$ac_outfile"; then
15038      # The compiler can only warn and ignore the option if not recognized
15039      # So say no if there are warnings
15040      if test ! -s conftest.err; then
15041        lt_cv_prog_compiler_rtti_exceptions=yes
15042      fi
15043    fi
15044    $rm conftest*
15045
15046 fi
15047 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
15048 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
15049
15050 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
15051     lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
15052 else
15053     :
15054 fi
15055
15056 fi
15057
15058 lt_prog_compiler_wl_GCJ=
15059 lt_prog_compiler_pic_GCJ=
15060 lt_prog_compiler_static_GCJ=
15061
15062 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
15063 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
15064
15065   if test "$GCC" = yes; then
15066     lt_prog_compiler_wl_GCJ='-Wl,'
15067     lt_prog_compiler_static_GCJ='-static'
15068
15069     case $host_os in
15070       aix*)
15071       # All AIX code is PIC.
15072       if test "$host_cpu" = ia64; then
15073         # AIX 5 now supports IA64 processor
15074         lt_prog_compiler_static_GCJ='-Bstatic'
15075       fi
15076       ;;
15077
15078     amigaos*)
15079       # FIXME: we need at least 68020 code to build shared libraries, but
15080       # adding the `-m68020' flag to GCC prevents building anything better,
15081       # like `-m68040'.
15082       lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
15083       ;;
15084
15085     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
15086       # PIC is the default for these OSes.
15087       ;;
15088
15089     mingw* | pw32* | os2*)
15090       # This hack is so that the source file can tell whether it is being
15091       # built for inclusion in a dll (and should export symbols for example).
15092       lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
15093       ;;
15094
15095     darwin* | rhapsody*)
15096       # PIC is the default on this platform
15097       # Common symbols not allowed in MH_DYLIB files
15098       lt_prog_compiler_pic_GCJ='-fno-common'
15099       ;;
15100
15101     msdosdjgpp*)
15102       # Just because we use GCC doesn't mean we suddenly get shared libraries
15103       # on systems that don't support them.
15104       lt_prog_compiler_can_build_shared_GCJ=no
15105       enable_shared=no
15106       ;;
15107
15108     sysv4*MP*)
15109       if test -d /usr/nec; then
15110         lt_prog_compiler_pic_GCJ=-Kconform_pic
15111       fi
15112       ;;
15113
15114     hpux*)
15115       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15116       # not for PA HP-UX.
15117       case "$host_cpu" in
15118       hppa*64*|ia64*)
15119         # +Z the default
15120         ;;
15121       *)
15122         lt_prog_compiler_pic_GCJ='-fPIC'
15123         ;;
15124       esac
15125       ;;
15126
15127     *)
15128       lt_prog_compiler_pic_GCJ='-fPIC'
15129       ;;
15130     esac
15131   else
15132     # PORTME Check for flag to pass linker flags through the system compiler.
15133     case $host_os in
15134     aix*)
15135       lt_prog_compiler_wl_GCJ='-Wl,'
15136       if test "$host_cpu" = ia64; then
15137         # AIX 5 now supports IA64 processor
15138         lt_prog_compiler_static_GCJ='-Bstatic'
15139       else
15140         lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
15141       fi
15142       ;;
15143
15144     mingw* | pw32* | os2*)
15145       # This hack is so that the source file can tell whether it is being
15146       # built for inclusion in a dll (and should export symbols for example).
15147       lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
15148       ;;
15149
15150     hpux9* | hpux10* | hpux11*)
15151       lt_prog_compiler_wl_GCJ='-Wl,'
15152       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15153       # not for PA HP-UX.
15154       case "$host_cpu" in
15155       hppa*64*|ia64*)
15156         # +Z the default
15157         ;;
15158       *)
15159         lt_prog_compiler_pic_GCJ='+Z'
15160         ;;
15161       esac
15162       # Is there a better lt_prog_compiler_static that works with the bundled CC?
15163       lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
15164       ;;
15165
15166     irix5* | irix6* | nonstopux*)
15167       lt_prog_compiler_wl_GCJ='-Wl,'
15168       # PIC (with -KPIC) is the default.
15169       lt_prog_compiler_static_GCJ='-non_shared'
15170       ;;
15171
15172     newsos6)
15173       lt_prog_compiler_pic_GCJ='-KPIC'
15174       lt_prog_compiler_static_GCJ='-Bstatic'
15175       ;;
15176
15177     linux*)
15178       case $CC in
15179       icc|ecc)
15180         lt_prog_compiler_wl_GCJ='-Wl,'
15181         lt_prog_compiler_pic_GCJ='-KPIC'
15182         lt_prog_compiler_static_GCJ='-static'
15183         ;;
15184       ccc)
15185         lt_prog_compiler_wl_GCJ='-Wl,'
15186         # All Alpha code is PIC.
15187         lt_prog_compiler_static_GCJ='-non_shared'
15188         ;;
15189       esac
15190       ;;
15191
15192     osf3* | osf4* | osf5*)
15193       lt_prog_compiler_wl_GCJ='-Wl,'
15194       # All OSF/1 code is PIC.
15195       lt_prog_compiler_static_GCJ='-non_shared'
15196       ;;
15197
15198     sco3.2v5*)
15199       lt_prog_compiler_pic_GCJ='-Kpic'
15200       lt_prog_compiler_static_GCJ='-dn'
15201       ;;
15202
15203     solaris*)
15204       lt_prog_compiler_wl_GCJ='-Wl,'
15205       lt_prog_compiler_pic_GCJ='-KPIC'
15206       lt_prog_compiler_static_GCJ='-Bstatic'
15207       ;;
15208
15209     sunos4*)
15210       lt_prog_compiler_wl_GCJ='-Qoption ld '
15211       lt_prog_compiler_pic_GCJ='-PIC'
15212       lt_prog_compiler_static_GCJ='-Bstatic'
15213       ;;
15214
15215     sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
15216       lt_prog_compiler_wl_GCJ='-Wl,'
15217       lt_prog_compiler_pic_GCJ='-KPIC'
15218       lt_prog_compiler_static_GCJ='-Bstatic'
15219       ;;
15220
15221     sysv4*MP*)
15222       if test -d /usr/nec ;then
15223         lt_prog_compiler_pic_GCJ='-Kconform_pic'
15224         lt_prog_compiler_static_GCJ='-Bstatic'
15225       fi
15226       ;;
15227
15228     uts4*)
15229       lt_prog_compiler_pic_GCJ='-pic'
15230       lt_prog_compiler_static_GCJ='-Bstatic'
15231       ;;
15232
15233     *)
15234       lt_prog_compiler_can_build_shared_GCJ=no
15235       ;;
15236     esac
15237   fi
15238
15239 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
15240 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6
15241
15242 #
15243 # Check to make sure the PIC flag actually works.
15244 #
15245 if test -n "$lt_prog_compiler_pic_GCJ"; then
15246   echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
15247 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6
15248 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
15249   echo $ECHO_N "(cached) $ECHO_C" >&6
15250 else
15251   lt_prog_compiler_pic_works_GCJ=no
15252   ac_outfile=conftest.$ac_objext
15253    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15254    lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
15255    # Insert the option either (1) after the last *FLAGS variable, or
15256    # (2) before a word containing "conftest.", or (3) at the end.
15257    # Note that $ac_compile itself does not contain backslashes and begins
15258    # with a dollar sign (not a hyphen), so the echo should work correctly.
15259    # The option is referenced via a variable to avoid confusing sed.
15260    lt_compile=`echo "$ac_compile" | $SED \
15261    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
15262    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15263    -e 's:$: $lt_compiler_flag:'`
15264    (eval echo "\"\$as_me:15264: $lt_compile\"" >&5)
15265    (eval "$lt_compile" 2>conftest.err)
15266    ac_status=$?
15267    cat conftest.err >&5
15268    echo "$as_me:15268: \$? = $ac_status" >&5
15269    if (exit $ac_status) && test -s "$ac_outfile"; then
15270      # The compiler can only warn and ignore the option if not recognized
15271      # So say no if there are warnings
15272      if test ! -s conftest.err; then
15273        lt_prog_compiler_pic_works_GCJ=yes
15274      fi
15275    fi
15276    $rm conftest*
15277
15278 fi
15279 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
15280 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6
15281
15282 if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
15283     case $lt_prog_compiler_pic_GCJ in
15284      "" | " "*) ;;
15285      *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
15286      esac
15287 else
15288     lt_prog_compiler_pic_GCJ=
15289      lt_prog_compiler_can_build_shared_GCJ=no
15290 fi
15291
15292 fi
15293 case "$host_os" in
15294   # For platforms which do not support PIC, -DPIC is meaningless:
15295   *djgpp*)
15296     lt_prog_compiler_pic_GCJ=
15297     ;;
15298   *)
15299     lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
15300     ;;
15301 esac
15302
15303 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
15304 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
15305 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
15306   echo $ECHO_N "(cached) $ECHO_C" >&6
15307 else
15308   lt_cv_prog_compiler_c_o_GCJ=no
15309    $rm -r conftest 2>/dev/null
15310    mkdir conftest
15311    cd conftest
15312    mkdir out
15313    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15314
15315    # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
15316    # that will create temporary files in the current directory regardless of
15317    # the output directory.  Thus, making CWD read-only will cause this test
15318    # to fail, enabling locking or at least warning the user not to do parallel
15319    # builds.
15320    chmod -w .
15321
15322    lt_compiler_flag="-o out/conftest2.$ac_objext"
15323    # Insert the option either (1) after the last *FLAGS variable, or
15324    # (2) before a word containing "conftest.", or (3) at the end.
15325    # Note that $ac_compile itself does not contain backslashes and begins
15326    # with a dollar sign (not a hyphen), so the echo should work correctly.
15327    lt_compile=`echo "$ac_compile" | $SED \
15328    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
15329    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15330    -e 's:$: $lt_compiler_flag:'`
15331    (eval echo "\"\$as_me:15331: $lt_compile\"" >&5)
15332    (eval "$lt_compile" 2>out/conftest.err)
15333    ac_status=$?
15334    cat out/conftest.err >&5
15335    echo "$as_me:15335: \$? = $ac_status" >&5
15336    if (exit $ac_status) && test -s out/conftest2.$ac_objext
15337    then
15338      # The compiler can only warn and ignore the option if not recognized
15339      # So say no if there are warnings
15340      if test ! -s out/conftest.err; then
15341        lt_cv_prog_compiler_c_o_GCJ=yes
15342      fi
15343    fi
15344    chmod u+w .
15345    $rm conftest* out/*
15346    rmdir out
15347    cd ..
15348    rmdir conftest
15349    $rm conftest*
15350
15351 fi
15352 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
15353 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6
15354
15355
15356 hard_links="nottested"
15357 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
15358   # do not overwrite the value of need_locks provided by the user
15359   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
15360 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
15361   hard_links=yes
15362   $rm conftest*
15363   ln conftest.a conftest.b 2>/dev/null && hard_links=no
15364   touch conftest.a
15365   ln conftest.a conftest.b 2>&5 || hard_links=no
15366   ln conftest.a conftest.b 2>/dev/null && hard_links=no
15367   echo "$as_me:$LINENO: result: $hard_links" >&5
15368 echo "${ECHO_T}$hard_links" >&6
15369   if test "$hard_links" = no; then
15370     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15371 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15372     need_locks=warn
15373   fi
15374 else
15375   need_locks=no
15376 fi
15377
15378 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15379 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
15380
15381   runpath_var=
15382   allow_undefined_flag_GCJ=
15383   enable_shared_with_static_runtimes_GCJ=no
15384   archive_cmds_GCJ=
15385   archive_expsym_cmds_GCJ=
15386   old_archive_From_new_cmds_GCJ=
15387   old_archive_from_expsyms_cmds_GCJ=
15388   export_dynamic_flag_spec_GCJ=
15389   whole_archive_flag_spec_GCJ=
15390   thread_safe_flag_spec_GCJ=
15391   hardcode_libdir_flag_spec_GCJ=
15392   hardcode_libdir_flag_spec_ld_GCJ=
15393   hardcode_libdir_separator_GCJ=
15394   hardcode_direct_GCJ=no
15395   hardcode_minus_L_GCJ=no
15396   hardcode_shlibpath_var_GCJ=unsupported
15397   link_all_deplibs_GCJ=unknown
15398   hardcode_automatic_GCJ=no
15399   module_cmds_GCJ=
15400   module_expsym_cmds_GCJ=
15401   always_export_symbols_GCJ=no
15402   export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15403   # include_expsyms should be a list of space-separated symbols to be *always*
15404   # included in the symbol list
15405   include_expsyms_GCJ=
15406   # exclude_expsyms can be an extended regexp of symbols to exclude
15407   # it will be wrapped by ` (' and `)$', so one must not match beginning or
15408   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
15409   # as well as any symbol that contains `d'.
15410   exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
15411   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
15412   # platforms (ab)use it in PIC code, but their linkers get confused if
15413   # the symbol is explicitly referenced.  Since portable code cannot
15414   # rely on this symbol name, it's probably fine to never include it in
15415   # preloaded symbol tables.
15416   extract_expsyms_cmds=
15417
15418   case $host_os in
15419   cygwin* | mingw* | pw32*)
15420     # FIXME: the MSVC++ port hasn't been tested in a loooong time
15421     # When not using gcc, we currently assume that we are using
15422     # Microsoft Visual C++.
15423     if test "$GCC" != yes; then
15424       with_gnu_ld=no
15425     fi
15426     ;;
15427   openbsd*)
15428     with_gnu_ld=no
15429     ;;
15430   esac
15431
15432   ld_shlibs_GCJ=yes
15433   if test "$with_gnu_ld" = yes; then
15434     # If archive_cmds runs LD, not CC, wlarc should be empty
15435     wlarc='${wl}'
15436
15437     # See if GNU ld supports shared libraries.
15438     case $host_os in
15439     aix3* | aix4* | aix5*)
15440       # On AIX/PPC, the GNU linker is very broken
15441       if test "$host_cpu" != ia64; then
15442         ld_shlibs_GCJ=no
15443         cat <<EOF 1>&2
15444
15445 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
15446 *** to be unable to reliably create shared libraries on AIX.
15447 *** Therefore, libtool is disabling shared libraries support.  If you
15448 *** really care for shared libraries, you may want to modify your PATH
15449 *** so that a non-GNU linker is found, and then restart.
15450
15451 EOF
15452       fi
15453       ;;
15454
15455     amigaos*)
15456       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)'
15457       hardcode_libdir_flag_spec_GCJ='-L$libdir'
15458       hardcode_minus_L_GCJ=yes
15459
15460       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
15461       # that the semantics of dynamic libraries on AmigaOS, at least up
15462       # to version 4, is to share data among multiple programs linked
15463       # with the same dynamic library.  Since this doesn't match the
15464       # behavior of shared libraries on other platforms, we can't use
15465       # them.
15466       ld_shlibs_GCJ=no
15467       ;;
15468
15469     beos*)
15470       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15471         allow_undefined_flag_GCJ=unsupported
15472         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
15473         # support --undefined.  This deserves some investigation.  FIXME
15474         archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15475       else
15476         ld_shlibs_GCJ=no
15477       fi
15478       ;;
15479
15480     cygwin* | mingw* | pw32*)
15481       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
15482       # as there is no search path for DLLs.
15483       hardcode_libdir_flag_spec_GCJ='-L$libdir'
15484       allow_undefined_flag_GCJ=unsupported
15485       always_export_symbols_GCJ=no
15486       enable_shared_with_static_runtimes_GCJ=yes
15487       export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
15488
15489       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
15490         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
15491         # If the export-symbols file already is a .def file (1st line
15492         # is EXPORTS), use it as is; otherwise, prepend...
15493         archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15494           cp $export_symbols $output_objdir/$soname.def;
15495         else
15496           echo EXPORTS > $output_objdir/$soname.def;
15497           cat $export_symbols >> $output_objdir/$soname.def;
15498         fi~
15499         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
15500       else
15501         ld_shlibs=no
15502       fi
15503       ;;
15504
15505     netbsd*)
15506       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15507         archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
15508         wlarc=
15509       else
15510         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15511         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15512       fi
15513       ;;
15514
15515     solaris* | sysv5*)
15516       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
15517         ld_shlibs_GCJ=no
15518         cat <<EOF 1>&2
15519
15520 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
15521 *** create shared libraries on Solaris systems.  Therefore, libtool
15522 *** is disabling shared libraries support.  We urge you to upgrade GNU
15523 *** binutils to release 2.9.1 or newer.  Another option is to modify
15524 *** your PATH or compiler configuration so that the native linker is
15525 *** used, and then restart.
15526
15527 EOF
15528       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15529         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15530         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15531       else
15532         ld_shlibs_GCJ=no
15533       fi
15534       ;;
15535
15536     sunos4*)
15537       archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15538       wlarc=
15539       hardcode_direct_GCJ=yes
15540       hardcode_shlibpath_var_GCJ=no
15541       ;;
15542
15543     *)
15544       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15545         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15546         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15547       else
15548         ld_shlibs_GCJ=no
15549       fi
15550       ;;
15551     esac
15552
15553     if test "$ld_shlibs_GCJ" = yes; then
15554       runpath_var=LD_RUN_PATH
15555       hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
15556       export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
15557       # ancient GNU ld didn't support --whole-archive et. al.
15558       if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
15559         whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15560       else
15561         whole_archive_flag_spec_GCJ=
15562       fi
15563     fi
15564   else
15565     # PORTME fill in a description of your system's linker (not GNU ld)
15566     case $host_os in
15567     aix3*)
15568       allow_undefined_flag_GCJ=unsupported
15569       always_export_symbols_GCJ=yes
15570       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'
15571       # Note: this linker hardcodes the directories in LIBPATH if there
15572       # are no directories specified by -L.
15573       hardcode_minus_L_GCJ=yes
15574       if test "$GCC" = yes && test -z "$link_static_flag"; then
15575         # Neither direct hardcoding nor static linking is supported with a
15576         # broken collect2.
15577         hardcode_direct_GCJ=unsupported
15578       fi
15579       ;;
15580
15581     aix4* | aix5*)
15582       if test "$host_cpu" = ia64; then
15583         # On IA64, the linker does run time linking by default, so we don't
15584         # have to do anything special.
15585         aix_use_runtimelinking=no
15586         exp_sym_flag='-Bexport'
15587         no_entry_flag=""
15588       else
15589         # If we're using GNU nm, then we don't want the "-C" option.
15590         # -C means demangle to AIX nm, but means don't demangle with GNU nm
15591         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
15592           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'
15593         else
15594           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'
15595         fi
15596         aix_use_runtimelinking=no
15597
15598         # Test if we are trying to use run time linking or normal
15599         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
15600         # need to do runtime linking.
15601         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
15602           for ld_flag in $LDFLAGS; do
15603           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
15604             aix_use_runtimelinking=yes
15605             break
15606           fi
15607           done
15608         esac
15609
15610         exp_sym_flag='-bexport'
15611         no_entry_flag='-bnoentry'
15612       fi
15613
15614       # When large executables or shared objects are built, AIX ld can
15615       # have problems creating the table of contents.  If linking a library
15616       # or program results in "error TOC overflow" add -mminimal-toc to
15617       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
15618       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15619
15620       archive_cmds_GCJ=''
15621       hardcode_direct_GCJ=yes
15622       hardcode_libdir_separator_GCJ=':'
15623       link_all_deplibs_GCJ=yes
15624
15625       if test "$GCC" = yes; then
15626         case $host_os in aix4.012|aix4.012.*)
15627         # We only want to do this on AIX 4.2 and lower, the check
15628         # below for broken collect2 doesn't work under 4.3+
15629           collect2name=`${CC} -print-prog-name=collect2`
15630           if test -f "$collect2name" && \
15631            strings "$collect2name" | grep resolve_lib_name >/dev/null
15632           then
15633           # We have reworked collect2
15634           hardcode_direct_GCJ=yes
15635           else
15636           # We have old collect2
15637           hardcode_direct_GCJ=unsupported
15638           # It fails to find uninstalled libraries when the uninstalled
15639           # path is not listed in the libpath.  Setting hardcode_minus_L
15640           # to unsupported forces relinking
15641           hardcode_minus_L_GCJ=yes
15642           hardcode_libdir_flag_spec_GCJ='-L$libdir'
15643           hardcode_libdir_separator_GCJ=
15644           fi
15645         esac
15646         shared_flag='-shared'
15647       else
15648         # not using gcc
15649         if test "$host_cpu" = ia64; then
15650         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15651         # chokes on -Wl,-G. The following line is correct:
15652           shared_flag='-G'
15653         else
15654         if test "$aix_use_runtimelinking" = yes; then
15655             shared_flag='${wl}-G'
15656           else
15657             shared_flag='${wl}-bM:SRE'
15658         fi
15659         fi
15660       fi
15661
15662       # It seems that -bexpall does not export symbols beginning with
15663       # underscore (_), so it is better to generate a list of symbols to export.
15664       always_export_symbols_GCJ=yes
15665       if test "$aix_use_runtimelinking" = yes; then
15666         # Warning - without using the other runtime loading flags (-brtl),
15667         # -berok will link without error, but may produce a broken library.
15668         allow_undefined_flag_GCJ='-berok'
15669        # Determine the default libpath from the value encoded in an empty executable.
15670        cat >conftest.$ac_ext <<_ACEOF
15671 #line $LINENO "configure"
15672 /* confdefs.h.  */
15673 _ACEOF
15674 cat confdefs.h >>conftest.$ac_ext
15675 cat >>conftest.$ac_ext <<_ACEOF
15676 /* end confdefs.h.  */
15677
15678 int
15679 main ()
15680 {
15681
15682   ;
15683   return 0;
15684 }
15685 _ACEOF
15686 rm -f conftest.$ac_objext conftest$ac_exeext
15687 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15688   (eval $ac_link) 2>&5
15689   ac_status=$?
15690   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15691   (exit $ac_status); } &&
15692          { ac_try='test -s conftest$ac_exeext'
15693   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15694   (eval $ac_try) 2>&5
15695   ac_status=$?
15696   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15697   (exit $ac_status); }; }; then
15698
15699 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
15700 }'`
15701 # Check for a 64-bit object if we didn't find anything.
15702 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; }
15703 }'`; fi
15704 else
15705   echo "$as_me: failed program was:" >&5
15706 sed 's/^/| /' conftest.$ac_ext >&5
15707
15708 fi
15709 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15710 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15711
15712        hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
15713         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"
15714        else
15715         if test "$host_cpu" = ia64; then
15716           hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
15717           allow_undefined_flag_GCJ="-z nodefs"
15718           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"
15719         else
15720          # Determine the default libpath from the value encoded in an empty executable.
15721          cat >conftest.$ac_ext <<_ACEOF
15722 #line $LINENO "configure"
15723 /* confdefs.h.  */
15724 _ACEOF
15725 cat confdefs.h >>conftest.$ac_ext
15726 cat >>conftest.$ac_ext <<_ACEOF
15727 /* end confdefs.h.  */
15728
15729 int
15730 main ()
15731 {
15732
15733   ;
15734   return 0;
15735 }
15736 _ACEOF
15737 rm -f conftest.$ac_objext conftest$ac_exeext
15738 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15739   (eval $ac_link) 2>&5
15740   ac_status=$?
15741   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15742   (exit $ac_status); } &&
15743          { ac_try='test -s conftest$ac_exeext'
15744   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15745   (eval $ac_try) 2>&5
15746   ac_status=$?
15747   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15748   (exit $ac_status); }; }; then
15749
15750 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
15751 }'`
15752 # Check for a 64-bit object if we didn't find anything.
15753 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; }
15754 }'`; fi
15755 else
15756   echo "$as_me: failed program was:" >&5
15757 sed 's/^/| /' conftest.$ac_ext >&5
15758
15759 fi
15760 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15761 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15762
15763          hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
15764           # Warning - without using the other run time loading flags,
15765           # -berok will link without error, but may produce a broken library.
15766           no_undefined_flag_GCJ=' ${wl}-bernotok'
15767           allow_undefined_flag_GCJ=' ${wl}-berok'
15768           # -bexpall does not export symbols beginning with underscore (_)
15769           always_export_symbols_GCJ=yes
15770           # Exported symbols can be pulled into shared objects from archives
15771           whole_archive_flag_spec_GCJ=' '
15772           archive_cmds_need_lc_GCJ=yes
15773           # This is similar to how AIX traditionally builds it's shared libraries.
15774           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'
15775         fi
15776       fi
15777       ;;
15778
15779     amigaos*)
15780       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)'
15781       hardcode_libdir_flag_spec_GCJ='-L$libdir'
15782       hardcode_minus_L_GCJ=yes
15783       # see comment about different semantics on the GNU ld section
15784       ld_shlibs_GCJ=no
15785       ;;
15786
15787     bsdi4*)
15788       export_dynamic_flag_spec_GCJ=-rdynamic
15789       ;;
15790
15791     cygwin* | mingw* | pw32*)
15792       # When not using gcc, we currently assume that we are using
15793       # Microsoft Visual C++.
15794       # hardcode_libdir_flag_spec is actually meaningless, as there is
15795       # no search path for DLLs.
15796       hardcode_libdir_flag_spec_GCJ=' '
15797       allow_undefined_flag_GCJ=unsupported
15798       # Tell ltmain to make .lib files, not .a files.
15799       libext=lib
15800       # Tell ltmain to make .dll files, not .so files.
15801       shrext=".dll"
15802       # FIXME: Setting linknames here is a bad hack.
15803       archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
15804       # The linker will automatically build a .lib file if we build a DLL.
15805       old_archive_From_new_cmds_GCJ='true'
15806       # FIXME: Should let the user specify the lib program.
15807       old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
15808       fix_srcfile_path='`cygpath -w "$srcfile"`'
15809       enable_shared_with_static_runtimes_GCJ=yes
15810       ;;
15811
15812     darwin* | rhapsody*)
15813     if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
15814       archive_cmds_need_lc_GCJ=no
15815       case "$host_os" in
15816       rhapsody* | darwin1.[012])
15817         allow_undefined_flag_GCJ='-undefined suppress'
15818         ;;
15819       *) # Darwin 1.3 on
15820         test -z ${LD_TWOLEVEL_NAMESPACE} && allow_undefined_flag_GCJ='-flat_namespace -undefined suppress'
15821         ;;
15822       esac
15823       # FIXME: Relying on posixy $() will cause problems for
15824       #        cross-compilation, but unfortunately the echo tests do not
15825       #        yet detect zsh echo's removal of \ escapes.  Also zsh mangles
15826       #        `"' quotes if we put them in here... so don't!
15827         lt_int_apple_cc_single_mod=no
15828         output_verbose_link_cmd='echo'
15829         if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
15830           lt_int_apple_cc_single_mod=yes
15831         fi
15832         if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
15833           archive_cmds_GCJ='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
15834         else
15835         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'
15836       fi
15837       module_cmds_GCJ='$CC -bundle ${wl}-bind_at_load $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags'
15838       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
15839         if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
15840           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}'
15841         else
15842           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}'
15843         fi
15844           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}'
15845       hardcode_direct_GCJ=no
15846       hardcode_automatic_GCJ=yes
15847       hardcode_shlibpath_var_GCJ=unsupported
15848       whole_archive_flag_spec_GCJ='-all_load $convenience'
15849       link_all_deplibs_GCJ=yes
15850     fi
15851       ;;
15852
15853     dgux*)
15854       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15855       hardcode_libdir_flag_spec_GCJ='-L$libdir'
15856       hardcode_shlibpath_var_GCJ=no
15857       ;;
15858
15859     freebsd1*)
15860       ld_shlibs_GCJ=no
15861       ;;
15862
15863     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
15864     # support.  Future versions do this automatically, but an explicit c++rt0.o
15865     # does not break anything, and helps significantly (at the cost of a little
15866     # extra space).
15867     freebsd2.2*)
15868       archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
15869       hardcode_libdir_flag_spec_GCJ='-R$libdir'
15870       hardcode_direct_GCJ=yes
15871       hardcode_shlibpath_var_GCJ=no
15872       ;;
15873
15874     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
15875     freebsd2*)
15876       archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15877       hardcode_direct_GCJ=yes
15878       hardcode_minus_L_GCJ=yes
15879       hardcode_shlibpath_var_GCJ=no
15880       ;;
15881
15882     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
15883     freebsd*)
15884       archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
15885       hardcode_libdir_flag_spec_GCJ='-R$libdir'
15886       hardcode_direct_GCJ=yes
15887       hardcode_shlibpath_var_GCJ=no
15888       ;;
15889
15890     hpux9*)
15891       if test "$GCC" = yes; then
15892         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'
15893       else
15894         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'
15895       fi
15896       hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
15897       hardcode_libdir_separator_GCJ=:
15898       hardcode_direct_GCJ=yes
15899
15900       # hardcode_minus_L: Not really in the search PATH,
15901       # but as the default location of the library.
15902       hardcode_minus_L_GCJ=yes
15903       export_dynamic_flag_spec_GCJ='${wl}-E'
15904       ;;
15905
15906     hpux10* | hpux11*)
15907       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15908         case "$host_cpu" in
15909         hppa*64*|ia64*)
15910           archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15911           ;;
15912         *)
15913           archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15914           ;;
15915         esac
15916       else
15917         case "$host_cpu" in
15918         hppa*64*|ia64*)
15919           archive_cmds_GCJ='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
15920           ;;
15921         *)
15922           archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15923           ;;
15924         esac
15925       fi
15926       if test "$with_gnu_ld" = no; then
15927         case "$host_cpu" in
15928         hppa*64*)
15929           hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
15930           hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
15931           hardcode_libdir_separator_GCJ=:
15932           hardcode_direct_GCJ=no
15933           hardcode_shlibpath_var_GCJ=no
15934           ;;
15935         ia64*)
15936           hardcode_libdir_flag_spec_GCJ='-L$libdir'
15937           hardcode_direct_GCJ=no
15938           hardcode_shlibpath_var_GCJ=no
15939
15940           # hardcode_minus_L: Not really in the search PATH,
15941           # but as the default location of the library.
15942           hardcode_minus_L_GCJ=yes
15943           ;;
15944         *)
15945           hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
15946           hardcode_libdir_separator_GCJ=:
15947           hardcode_direct_GCJ=yes
15948           export_dynamic_flag_spec_GCJ='${wl}-E'
15949
15950           # hardcode_minus_L: Not really in the search PATH,
15951           # but as the default location of the library.
15952           hardcode_minus_L_GCJ=yes
15953           ;;
15954         esac
15955       fi
15956       ;;
15957
15958     irix5* | irix6* | nonstopux*)
15959       if test "$GCC" = yes; then
15960         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'
15961       else
15962         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'
15963         hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
15964       fi
15965       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
15966       hardcode_libdir_separator_GCJ=:
15967       link_all_deplibs_GCJ=yes
15968       ;;
15969
15970     netbsd*)
15971       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15972         archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
15973       else
15974         archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
15975       fi
15976       hardcode_libdir_flag_spec_GCJ='-R$libdir'
15977       hardcode_direct_GCJ=yes
15978       hardcode_shlibpath_var_GCJ=no
15979       ;;
15980
15981     newsos6)
15982       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15983       hardcode_direct_GCJ=yes
15984       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
15985       hardcode_libdir_separator_GCJ=:
15986       hardcode_shlibpath_var_GCJ=no
15987       ;;
15988
15989     openbsd*)
15990       hardcode_direct_GCJ=yes
15991       hardcode_shlibpath_var_GCJ=no
15992       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15993         archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15994         hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
15995         export_dynamic_flag_spec_GCJ='${wl}-E'
15996       else
15997        case $host_os in
15998          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
15999            archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16000            hardcode_libdir_flag_spec_GCJ='-R$libdir'
16001            ;;
16002          *)
16003            archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16004            hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16005            ;;
16006        esac
16007       fi
16008       ;;
16009
16010     os2*)
16011       hardcode_libdir_flag_spec_GCJ='-L$libdir'
16012       hardcode_minus_L_GCJ=yes
16013       allow_undefined_flag_GCJ=unsupported
16014       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'
16015       old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
16016       ;;
16017
16018     osf3*)
16019       if test "$GCC" = yes; then
16020         allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
16021         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'
16022       else
16023         allow_undefined_flag_GCJ=' -expect_unresolved \*'
16024         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'
16025       fi
16026       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16027       hardcode_libdir_separator_GCJ=:
16028       ;;
16029
16030     osf4* | osf5*)      # as osf3* with the addition of -msym flag
16031       if test "$GCC" = yes; then
16032         allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
16033         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'
16034         hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16035       else
16036         allow_undefined_flag_GCJ=' -expect_unresolved \*'
16037         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'
16038         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~
16039         $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'
16040
16041         # Both c and cxx compiler support -rpath directly
16042         hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
16043       fi
16044       hardcode_libdir_separator_GCJ=:
16045       ;;
16046
16047     sco3.2v5*)
16048       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16049       hardcode_shlibpath_var_GCJ=no
16050       export_dynamic_flag_spec_GCJ='${wl}-Bexport'
16051       runpath_var=LD_RUN_PATH
16052       hardcode_runpath_var=yes
16053       ;;
16054
16055     solaris*)
16056       no_undefined_flag_GCJ=' -z text'
16057       if test "$GCC" = yes; then
16058         archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16059         archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16060           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
16061       else
16062         archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16063         archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16064         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
16065       fi
16066       hardcode_libdir_flag_spec_GCJ='-R$libdir'
16067       hardcode_shlibpath_var_GCJ=no
16068       case $host_os in
16069       solaris2.[0-5] | solaris2.[0-5].*) ;;
16070       *) # Supported since Solaris 2.6 (maybe 2.5.1?)
16071         whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
16072       esac
16073       link_all_deplibs_GCJ=yes
16074       ;;
16075
16076     sunos4*)
16077       if test "x$host_vendor" = xsequent; then
16078         # Use $CC to link under sequent, because it throws in some extra .o
16079         # files that make .init and .fini sections work.
16080         archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
16081       else
16082         archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
16083       fi
16084       hardcode_libdir_flag_spec_GCJ='-L$libdir'
16085       hardcode_direct_GCJ=yes
16086       hardcode_minus_L_GCJ=yes
16087       hardcode_shlibpath_var_GCJ=no
16088       ;;
16089
16090     sysv4)
16091       case $host_vendor in
16092         sni)
16093           archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16094           hardcode_direct_GCJ=yes # is this really true???
16095         ;;
16096         siemens)
16097           ## LD is ld it makes a PLAMLIB
16098           ## CC just makes a GrossModule.
16099           archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16100           reload_cmds_GCJ='$CC -r -o $output$reload_objs'
16101           hardcode_direct_GCJ=no
16102         ;;
16103         motorola)
16104           archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16105           hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
16106         ;;
16107       esac
16108       runpath_var='LD_RUN_PATH'
16109       hardcode_shlibpath_var_GCJ=no
16110       ;;
16111
16112     sysv4.3*)
16113       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16114       hardcode_shlibpath_var_GCJ=no
16115       export_dynamic_flag_spec_GCJ='-Bexport'
16116       ;;
16117
16118     sysv4*MP*)
16119       if test -d /usr/nec; then
16120         archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16121         hardcode_shlibpath_var_GCJ=no
16122         runpath_var=LD_RUN_PATH
16123         hardcode_runpath_var=yes
16124         ld_shlibs_GCJ=yes
16125       fi
16126       ;;
16127
16128     sysv4.2uw2*)
16129       archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16130       hardcode_direct_GCJ=yes
16131       hardcode_minus_L_GCJ=no
16132       hardcode_shlibpath_var_GCJ=no
16133       hardcode_runpath_var=yes
16134       runpath_var=LD_RUN_PATH
16135       ;;
16136
16137    sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
16138       no_undefined_flag_GCJ='${wl}-z ${wl}text'
16139       if test "$GCC" = yes; then
16140         archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16141       else
16142         archive_cmds_GCJ='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16143       fi
16144       runpath_var='LD_RUN_PATH'
16145       hardcode_shlibpath_var_GCJ=no
16146       ;;
16147
16148     sysv5*)
16149       no_undefined_flag_GCJ=' -z text'
16150       # $CC -shared without GNU ld will not create a library from C++
16151       # object files and a static libstdc++, better avoid it by now
16152       archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16153       archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16154                 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
16155       hardcode_libdir_flag_spec_GCJ=
16156       hardcode_shlibpath_var_GCJ=no
16157       runpath_var='LD_RUN_PATH'
16158       ;;
16159
16160     uts4*)
16161       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16162       hardcode_libdir_flag_spec_GCJ='-L$libdir'
16163       hardcode_shlibpath_var_GCJ=no
16164       ;;
16165
16166     *)
16167       ld_shlibs_GCJ=no
16168       ;;
16169     esac
16170   fi
16171
16172 echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
16173 echo "${ECHO_T}$ld_shlibs_GCJ" >&6
16174 test "$ld_shlibs_GCJ" = no && can_build_shared=no
16175
16176 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16177 if test "$GCC" = yes; then
16178   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16179 fi
16180
16181 #
16182 # Do we need to explicitly link libc?
16183 #
16184 case "x$archive_cmds_need_lc_GCJ" in
16185 x|xyes)
16186   # Assume -lc should be added
16187   archive_cmds_need_lc_GCJ=yes
16188
16189   if test "$enable_shared" = yes && test "$GCC" = yes; then
16190     case $archive_cmds_GCJ in
16191     *'~'*)
16192       # FIXME: we may have to deal with multi-command sequences.
16193       ;;
16194     '$CC '*)
16195       # Test whether the compiler implicitly links with -lc since on some
16196       # systems, -lgcc has to come before -lc. If gcc already passes -lc
16197       # to ld, don't add -lc before -lgcc.
16198       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
16199 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
16200       $rm conftest*
16201       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16202
16203       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16204   (eval $ac_compile) 2>&5
16205   ac_status=$?
16206   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16207   (exit $ac_status); } 2>conftest.err; then
16208         soname=conftest
16209         lib=conftest
16210         libobjs=conftest.$ac_objext
16211         deplibs=
16212         wl=$lt_prog_compiler_wl_GCJ
16213         compiler_flags=-v
16214         linker_flags=-v
16215         verstring=
16216         output_objdir=.
16217         libname=conftest
16218         lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
16219         allow_undefined_flag_GCJ=
16220         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
16221   (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
16222   ac_status=$?
16223   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16224   (exit $ac_status); }
16225         then
16226           archive_cmds_need_lc_GCJ=no
16227         else
16228           archive_cmds_need_lc_GCJ=yes
16229         fi
16230         allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
16231       else
16232         cat conftest.err 1>&5
16233       fi
16234       $rm conftest*
16235       echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
16236 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6
16237       ;;
16238     esac
16239   fi
16240   ;;
16241 esac
16242
16243 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
16244 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
16245 hardcode_action_GCJ=
16246 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
16247    test -n "$runpath_var GCJ" || \
16248    test "X$hardcode_automatic_GCJ"="Xyes" ; then
16249
16250   # We can hardcode non-existant directories.
16251   if test "$hardcode_direct_GCJ" != no &&
16252      # If the only mechanism to avoid hardcoding is shlibpath_var, we
16253      # have to relink, otherwise we might link with an installed library
16254      # when we should be linking with a yet-to-be-installed one
16255      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
16256      test "$hardcode_minus_L_GCJ" != no; then
16257     # Linking always hardcodes the temporary library directory.
16258     hardcode_action_GCJ=relink
16259   else
16260     # We can link without hardcoding, and we can hardcode nonexisting dirs.
16261     hardcode_action_GCJ=immediate
16262   fi
16263 else
16264   # We cannot hardcode anything, or else we can only hardcode existing
16265   # directories.
16266   hardcode_action_GCJ=unsupported
16267 fi
16268 echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
16269 echo "${ECHO_T}$hardcode_action_GCJ" >&6
16270
16271 if test "$hardcode_action_GCJ" = relink; then
16272   # Fast installation is not supported
16273   enable_fast_install=no
16274 elif test "$shlibpath_overrides_runpath" = yes ||
16275      test "$enable_shared" = no; then
16276   # Fast installation is not necessary
16277   enable_fast_install=needless
16278 fi
16279
16280 striplib=
16281 old_striplib=
16282 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
16283 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
16284 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
16285   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
16286   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
16287   echo "$as_me:$LINENO: result: yes" >&5
16288 echo "${ECHO_T}yes" >&6
16289 else
16290 # FIXME - insert some real tests, host_os isn't really good enough
16291   case $host_os in
16292    darwin*)
16293        if test -n "$STRIP" ; then
16294          striplib="$STRIP -x"
16295          echo "$as_me:$LINENO: result: yes" >&5
16296 echo "${ECHO_T}yes" >&6
16297        else
16298   echo "$as_me:$LINENO: result: no" >&5
16299 echo "${ECHO_T}no" >&6
16300 fi
16301        ;;
16302    *)
16303   echo "$as_me:$LINENO: result: no" >&5
16304 echo "${ECHO_T}no" >&6
16305     ;;
16306   esac
16307 fi
16308
16309 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
16310 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
16311 library_names_spec=
16312 libname_spec='lib$name'
16313 soname_spec=
16314 shrext=".so"
16315 postinstall_cmds=
16316 postuninstall_cmds=
16317 finish_cmds=
16318 finish_eval=
16319 shlibpath_var=
16320 shlibpath_overrides_runpath=unknown
16321 version_type=none
16322 dynamic_linker="$host_os ld.so"
16323 sys_lib_dlsearch_path_spec="/lib /usr/lib"
16324 if test "$GCC" = yes; then
16325   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16326   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
16327     # if the path contains ";" then we assume it to be the separator
16328     # otherwise default to the standard path separator (i.e. ":") - it is
16329     # assumed that no part of a normal pathname contains ";" but that should
16330     # okay in the real world where ";" in dirpaths is itself problematic.
16331     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16332   else
16333     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
16334   fi
16335 else
16336   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
16337 fi
16338 need_lib_prefix=unknown
16339 hardcode_into_libs=no
16340
16341 # when you set need_version to no, make sure it does not cause -set_version
16342 # flags to be left without arguments
16343 need_version=unknown
16344
16345 case $host_os in
16346 aix3*)
16347   version_type=linux
16348   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
16349   shlibpath_var=LIBPATH
16350
16351   # AIX 3 has no versioning support, so we append a major version to the name.
16352   soname_spec='${libname}${release}${shared_ext}$major'
16353   ;;
16354
16355 aix4* | aix5*)
16356   version_type=linux
16357   need_lib_prefix=no
16358   need_version=no
16359   hardcode_into_libs=yes
16360   if test "$host_cpu" = ia64; then
16361     # AIX 5 supports IA64
16362     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16363     shlibpath_var=LD_LIBRARY_PATH
16364   else
16365     # With GCC up to 2.95.x, collect2 would create an import file
16366     # for dependence libraries.  The import file would start with
16367     # the line `#! .'.  This would cause the generated library to
16368     # depend on `.', always an invalid library.  This was fixed in
16369     # development snapshots of GCC prior to 3.0.
16370     case $host_os in
16371       aix4 | aix4.[01] | aix4.[01].*)
16372       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16373            echo ' yes '
16374            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
16375         :
16376       else
16377         can_build_shared=no
16378       fi
16379       ;;
16380     esac
16381     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16382     # soname into executable. Probably we can add versioning support to
16383     # collect2, so additional links can be useful in future.
16384     if test "$aix_use_runtimelinking" = yes; then
16385       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16386       # instead of lib<name>.a to let people know that these are not
16387       # typical AIX shared libraries.
16388       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16389     else
16390       # We preserve .a as extension for shared libraries through AIX4.2
16391       # and later when we are not doing run time linking.
16392       library_names_spec='${libname}${release}.a $libname.a'
16393       soname_spec='${libname}${release}${shared_ext}$major'
16394     fi
16395     shlibpath_var=LIBPATH
16396   fi
16397   ;;
16398
16399 amigaos*)
16400   library_names_spec='$libname.ixlibrary $libname.a'
16401   # Create ${libname}_ixlibrary.a entries in /sys/libs.
16402   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'
16403   ;;
16404
16405 beos*)
16406   library_names_spec='${libname}${shared_ext}'
16407   dynamic_linker="$host_os ld.so"
16408   shlibpath_var=LIBRARY_PATH
16409   ;;
16410
16411 bsdi4*)
16412   version_type=linux
16413   need_version=no
16414   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16415   soname_spec='${libname}${release}${shared_ext}$major'
16416   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16417   shlibpath_var=LD_LIBRARY_PATH
16418   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16419   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16420   # the default ld.so.conf also contains /usr/contrib/lib and
16421   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16422   # libtool to hard-code these into programs
16423   ;;
16424
16425 cygwin* | mingw* | pw32*)
16426   version_type=windows
16427   shrext=".dll"
16428   need_version=no
16429   need_lib_prefix=no
16430
16431   case $GCC,$host_os in
16432   yes,cygwin* | yes,mingw* | yes,pw32*)
16433     library_names_spec='$libname.dll.a'
16434     # DLL is installed to $(libdir)/../bin by postinstall_cmds
16435     postinstall_cmds='base_file=`basename \${file}`~
16436       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
16437       dldir=$destdir/`dirname \$dlpath`~
16438       test -d \$dldir || mkdir -p \$dldir~
16439       $install_prog $dir/$dlname \$dldir/$dlname'
16440     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16441       dlpath=$dir/\$dldll~
16442        $rm \$dlpath'
16443     shlibpath_overrides_runpath=yes
16444
16445     case $host_os in
16446     cygwin*)
16447       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16448       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16449       sys_lib_search_path_spec="/lib /lib/w32api /usr/lib /usr/local/lib"
16450       ;;
16451     mingw*)
16452       # MinGW DLLs use traditional 'lib' prefix
16453       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16454       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16455       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
16456         # It is most probably a Windows format PATH printed by
16457         # mingw gcc, but we are running on Cygwin. Gcc prints its search
16458         # path with ; separators, and with drive letters. We can handle the
16459         # drive letters (cygwin fileutils understands them), so leave them,
16460         # especially as we might pass files found there to a mingw objdump,
16461         # which wouldn't understand a cygwinified path. Ahh.
16462         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16463       else
16464         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
16465       fi
16466       ;;
16467     pw32*)
16468       # pw32 DLLs use 'pw' prefix rather than 'lib'
16469       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
16470       ;;
16471     esac
16472     ;;
16473
16474   *)
16475     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
16476     ;;
16477   esac
16478   dynamic_linker='Win32 ld.exe'
16479   # FIXME: first we should search . and the directory the executable is in
16480   shlibpath_var=PATH
16481   ;;
16482
16483 darwin* | rhapsody*)
16484   dynamic_linker="$host_os dyld"
16485   version_type=darwin
16486   need_lib_prefix=no
16487   need_version=no
16488   # FIXME: Relying on posixy $() will cause problems for
16489   #        cross-compilation, but unfortunately the echo tests do not
16490   #        yet detect zsh echo's removal of \ escapes.
16491   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
16492   soname_spec='${libname}${release}${major}$shared_ext'
16493   shlibpath_overrides_runpath=yes
16494   shlibpath_var=DYLD_LIBRARY_PATH
16495   shrext='$(test .$module = .yes && echo .so || echo .dylib)'
16496   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
16497   if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
16498   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"`
16499   fi
16500   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16501   ;;
16502
16503 dgux*)
16504   version_type=linux
16505   need_lib_prefix=no
16506   need_version=no
16507   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16508   soname_spec='${libname}${release}${shared_ext}$major'
16509   shlibpath_var=LD_LIBRARY_PATH
16510   ;;
16511
16512 freebsd1*)
16513   dynamic_linker=no
16514   ;;
16515
16516 freebsd*)
16517   objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
16518   version_type=freebsd-$objformat
16519   case $version_type in
16520     freebsd-elf*)
16521       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16522       need_version=no
16523       need_lib_prefix=no
16524       ;;
16525     freebsd-*)
16526       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
16527       need_version=yes
16528       ;;
16529   esac
16530   shlibpath_var=LD_LIBRARY_PATH
16531   case $host_os in
16532   freebsd2*)
16533     shlibpath_overrides_runpath=yes
16534     ;;
16535   freebsd3.01* | freebsdelf3.01*)
16536     shlibpath_overrides_runpath=yes
16537     hardcode_into_libs=yes
16538     ;;
16539   *) # from 3.2 on
16540     shlibpath_overrides_runpath=no
16541     hardcode_into_libs=yes
16542     ;;
16543   esac
16544   ;;
16545
16546 gnu*)
16547   version_type=linux
16548   need_lib_prefix=no
16549   need_version=no
16550   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16551   soname_spec='${libname}${release}${shared_ext}$major'
16552   shlibpath_var=LD_LIBRARY_PATH
16553   hardcode_into_libs=yes
16554   ;;
16555
16556 hpux9* | hpux10* | hpux11*)
16557   # Give a soname corresponding to the major version so that dld.sl refuses to
16558   # link against other versions.
16559   version_type=sunos
16560   need_lib_prefix=no
16561   need_version=no
16562   case "$host_cpu" in
16563   ia64*)
16564     shrext='.so'
16565     hardcode_into_libs=yes
16566     dynamic_linker="$host_os dld.so"
16567     shlibpath_var=LD_LIBRARY_PATH
16568     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16569     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16570     soname_spec='${libname}${release}${shared_ext}$major'
16571     if test "X$HPUX_IA64_MODE" = X32; then
16572       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16573     else
16574       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16575     fi
16576     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16577     ;;
16578    hppa*64*)
16579      shrext='.sl'
16580      hardcode_into_libs=yes
16581      dynamic_linker="$host_os dld.sl"
16582      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16583      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16584      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16585      soname_spec='${libname}${release}${shared_ext}$major'
16586      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16587      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16588      ;;
16589    *)
16590     shrext='.sl'
16591     dynamic_linker="$host_os dld.sl"
16592     shlibpath_var=SHLIB_PATH
16593     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16594     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16595     soname_spec='${libname}${release}${shared_ext}$major'
16596     ;;
16597   esac
16598   # HP-UX runs *really* slowly unless shared libraries are mode 555.
16599   postinstall_cmds='chmod 555 $lib'
16600   ;;
16601
16602 irix5* | irix6* | nonstopux*)
16603   case $host_os in
16604     nonstopux*) version_type=nonstopux ;;
16605     *)
16606         if test "$lt_cv_prog_gnu_ld" = yes; then
16607                 version_type=linux
16608         else
16609                 version_type=irix
16610         fi ;;
16611   esac
16612   need_lib_prefix=no
16613   need_version=no
16614   soname_spec='${libname}${release}${shared_ext}$major'
16615   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
16616   case $host_os in
16617   irix5* | nonstopux*)
16618     libsuff= shlibsuff=
16619     ;;
16620   *)
16621     case $LD in # libtool.m4 will add one of these switches to LD
16622     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16623       libsuff= shlibsuff= libmagic=32-bit;;
16624     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16625       libsuff=32 shlibsuff=N32 libmagic=N32;;
16626     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16627       libsuff=64 shlibsuff=64 libmagic=64-bit;;
16628     *) libsuff= shlibsuff= libmagic=never-match;;
16629     esac
16630     ;;
16631   esac
16632   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16633   shlibpath_overrides_runpath=no
16634   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16635   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
16636   hardcode_into_libs=yes
16637   ;;
16638
16639 # No shared lib support for Linux oldld, aout, or coff.
16640 linux*oldld* | linux*aout* | linux*coff*)
16641   dynamic_linker=no
16642   ;;
16643
16644 # This must be Linux ELF.
16645 linux*)
16646   version_type=linux
16647   need_lib_prefix=no
16648   need_version=no
16649   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16650   soname_spec='${libname}${release}${shared_ext}$major'
16651   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16652   shlibpath_var=LD_LIBRARY_PATH
16653   shlibpath_overrides_runpath=no
16654   # This implies no fast_install, which is unacceptable.
16655   # Some rework will be needed to allow for fast_install
16656   # before this can be enabled.
16657   hardcode_into_libs=yes
16658
16659   # We used to test for /lib/ld.so.1 and disable shared libraries on
16660   # powerpc, because MkLinux only supported shared libraries with the
16661   # GNU dynamic linker.  Since this was broken with cross compilers,
16662   # most powerpc-linux boxes support dynamic linking these days and
16663   # people can always --disable-shared, the test was removed, and we
16664   # assume the GNU/Linux dynamic linker is in use.
16665   dynamic_linker='GNU/Linux ld.so'
16666   ;;
16667
16668 netbsd*)
16669   version_type=sunos
16670   need_lib_prefix=no
16671   need_version=no
16672   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16673     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16674     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16675     dynamic_linker='NetBSD (a.out) ld.so'
16676   else
16677     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
16678     soname_spec='${libname}${release}${shared_ext}$major'
16679     dynamic_linker='NetBSD ld.elf_so'
16680   fi
16681   shlibpath_var=LD_LIBRARY_PATH
16682   shlibpath_overrides_runpath=yes
16683   hardcode_into_libs=yes
16684   ;;
16685
16686 newsos6)
16687   version_type=linux
16688   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16689   shlibpath_var=LD_LIBRARY_PATH
16690   shlibpath_overrides_runpath=yes
16691   ;;
16692
16693 nto-qnx)
16694   version_type=linux
16695   need_lib_prefix=no
16696   need_version=no
16697   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16698   soname_spec='${libname}${release}${shared_ext}$major'
16699   shlibpath_var=LD_LIBRARY_PATH
16700   shlibpath_overrides_runpath=yes
16701   ;;
16702
16703 openbsd*)
16704   version_type=sunos
16705   need_lib_prefix=no
16706   need_version=no
16707   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16708   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16709   shlibpath_var=LD_LIBRARY_PATH
16710   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16711     case $host_os in
16712       openbsd2.[89] | openbsd2.[89].*)
16713         shlibpath_overrides_runpath=no
16714         ;;
16715       *)
16716         shlibpath_overrides_runpath=yes
16717         ;;
16718       esac
16719   else
16720     shlibpath_overrides_runpath=yes
16721   fi
16722   ;;
16723
16724 os2*)
16725   libname_spec='$name'
16726   shrext=".dll"
16727   need_lib_prefix=no
16728   library_names_spec='$libname${shared_ext} $libname.a'
16729   dynamic_linker='OS/2 ld.exe'
16730   shlibpath_var=LIBPATH
16731   ;;
16732
16733 osf3* | osf4* | osf5*)
16734   version_type=osf
16735   need_lib_prefix=no
16736   need_version=no
16737   soname_spec='${libname}${release}${shared_ext}$major'
16738   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16739   shlibpath_var=LD_LIBRARY_PATH
16740   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16741   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16742   ;;
16743
16744 sco3.2v5*)
16745   version_type=osf
16746   soname_spec='${libname}${release}${shared_ext}$major'
16747   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16748   shlibpath_var=LD_LIBRARY_PATH
16749   ;;
16750
16751 solaris*)
16752   version_type=linux
16753   need_lib_prefix=no
16754   need_version=no
16755   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16756   soname_spec='${libname}${release}${shared_ext}$major'
16757   shlibpath_var=LD_LIBRARY_PATH
16758   shlibpath_overrides_runpath=yes
16759   hardcode_into_libs=yes
16760   # ldd complains unless libraries are executable
16761   postinstall_cmds='chmod +x $lib'
16762   ;;
16763
16764 sunos4*)
16765   version_type=sunos
16766   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16767   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16768   shlibpath_var=LD_LIBRARY_PATH
16769   shlibpath_overrides_runpath=yes
16770   if test "$with_gnu_ld" = yes; then
16771     need_lib_prefix=no
16772   fi
16773   need_version=yes
16774   ;;
16775
16776 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
16777   version_type=linux
16778   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16779   soname_spec='${libname}${release}${shared_ext}$major'
16780   shlibpath_var=LD_LIBRARY_PATH
16781   case $host_vendor in
16782     sni)
16783       shlibpath_overrides_runpath=no
16784       need_lib_prefix=no
16785       export_dynamic_flag_spec='${wl}-Blargedynsym'
16786       runpath_var=LD_RUN_PATH
16787       ;;
16788     siemens)
16789       need_lib_prefix=no
16790       ;;
16791     motorola)
16792       need_lib_prefix=no
16793       need_version=no
16794       shlibpath_overrides_runpath=no
16795       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16796       ;;
16797   esac
16798   ;;
16799
16800 sysv4*MP*)
16801   if test -d /usr/nec ;then
16802     version_type=linux
16803     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16804     soname_spec='$libname${shared_ext}.$major'
16805     shlibpath_var=LD_LIBRARY_PATH
16806   fi
16807   ;;
16808
16809 uts4*)
16810   version_type=linux
16811   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16812   soname_spec='${libname}${release}${shared_ext}$major'
16813   shlibpath_var=LD_LIBRARY_PATH
16814   ;;
16815
16816 *)
16817   dynamic_linker=no
16818   ;;
16819 esac
16820 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
16821 echo "${ECHO_T}$dynamic_linker" >&6
16822 test "$dynamic_linker" = no && can_build_shared=no
16823
16824 if test "x$enable_dlopen" != xyes; then
16825   enable_dlopen=unknown
16826   enable_dlopen_self=unknown
16827   enable_dlopen_self_static=unknown
16828 else
16829   lt_cv_dlopen=no
16830   lt_cv_dlopen_libs=
16831
16832   case $host_os in
16833   beos*)
16834     lt_cv_dlopen="load_add_on"
16835     lt_cv_dlopen_libs=
16836     lt_cv_dlopen_self=yes
16837     ;;
16838
16839   mingw* | pw32*)
16840     lt_cv_dlopen="LoadLibrary"
16841     lt_cv_dlopen_libs=
16842    ;;
16843
16844   cygwin*)
16845     lt_cv_dlopen="dlopen"
16846     lt_cv_dlopen_libs=
16847    ;;
16848
16849   darwin*)
16850   # if libdl is installed we need to link against it
16851     echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
16852 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
16853 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
16854   echo $ECHO_N "(cached) $ECHO_C" >&6
16855 else
16856   ac_check_lib_save_LIBS=$LIBS
16857 LIBS="-ldl  $LIBS"
16858 cat >conftest.$ac_ext <<_ACEOF
16859 #line $LINENO "configure"
16860 /* confdefs.h.  */
16861 _ACEOF
16862 cat confdefs.h >>conftest.$ac_ext
16863 cat >>conftest.$ac_ext <<_ACEOF
16864 /* end confdefs.h.  */
16865
16866 /* Override any gcc2 internal prototype to avoid an error.  */
16867 #ifdef __cplusplus
16868 extern "C"
16869 #endif
16870 /* We use char because int might match the return type of a gcc2
16871    builtin and then its argument prototype would still apply.  */
16872 char dlopen ();
16873 int
16874 main ()
16875 {
16876 dlopen ();
16877   ;
16878   return 0;
16879 }
16880 _ACEOF
16881 rm -f conftest.$ac_objext conftest$ac_exeext
16882 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16883   (eval $ac_link) 2>&5
16884   ac_status=$?
16885   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16886   (exit $ac_status); } &&
16887          { ac_try='test -s conftest$ac_exeext'
16888   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16889   (eval $ac_try) 2>&5
16890   ac_status=$?
16891   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16892   (exit $ac_status); }; }; then
16893   ac_cv_lib_dl_dlopen=yes
16894 else
16895   echo "$as_me: failed program was:" >&5
16896 sed 's/^/| /' conftest.$ac_ext >&5
16897
16898 ac_cv_lib_dl_dlopen=no
16899 fi
16900 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16901 LIBS=$ac_check_lib_save_LIBS
16902 fi
16903 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
16904 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
16905 if test $ac_cv_lib_dl_dlopen = yes; then
16906   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
16907 else
16908
16909     lt_cv_dlopen="dyld"
16910     lt_cv_dlopen_libs=
16911     lt_cv_dlopen_self=yes
16912
16913 fi
16914
16915    ;;
16916
16917   *)
16918     echo "$as_me:$LINENO: checking for shl_load" >&5
16919 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
16920 if test "${ac_cv_func_shl_load+set}" = set; then
16921   echo $ECHO_N "(cached) $ECHO_C" >&6
16922 else
16923   cat >conftest.$ac_ext <<_ACEOF
16924 #line $LINENO "configure"
16925 /* confdefs.h.  */
16926 _ACEOF
16927 cat confdefs.h >>conftest.$ac_ext
16928 cat >>conftest.$ac_ext <<_ACEOF
16929 /* end confdefs.h.  */
16930 /* System header to define __stub macros and hopefully few prototypes,
16931     which can conflict with char shl_load (); below.
16932     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16933     <limits.h> exists even on freestanding compilers.  */
16934 #ifdef __STDC__
16935 # include <limits.h>
16936 #else
16937 # include <assert.h>
16938 #endif
16939 /* Override any gcc2 internal prototype to avoid an error.  */
16940 #ifdef __cplusplus
16941 extern "C"
16942 {
16943 #endif
16944 /* We use char because int might match the return type of a gcc2
16945    builtin and then its argument prototype would still apply.  */
16946 char shl_load ();
16947 /* The GNU C library defines this for functions which it implements
16948     to always fail with ENOSYS.  Some functions are actually named
16949     something starting with __ and the normal name is an alias.  */
16950 #if defined (__stub_shl_load) || defined (__stub___shl_load)
16951 choke me
16952 #else
16953 char (*f) () = shl_load;
16954 #endif
16955 #ifdef __cplusplus
16956 }
16957 #endif
16958
16959 int
16960 main ()
16961 {
16962 return f != shl_load;
16963   ;
16964   return 0;
16965 }
16966 _ACEOF
16967 rm -f conftest.$ac_objext conftest$ac_exeext
16968 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16969   (eval $ac_link) 2>&5
16970   ac_status=$?
16971   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16972   (exit $ac_status); } &&
16973          { ac_try='test -s conftest$ac_exeext'
16974   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16975   (eval $ac_try) 2>&5
16976   ac_status=$?
16977   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16978   (exit $ac_status); }; }; then
16979   ac_cv_func_shl_load=yes
16980 else
16981   echo "$as_me: failed program was:" >&5
16982 sed 's/^/| /' conftest.$ac_ext >&5
16983
16984 ac_cv_func_shl_load=no
16985 fi
16986 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16987 fi
16988 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
16989 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
16990 if test $ac_cv_func_shl_load = yes; then
16991   lt_cv_dlopen="shl_load"
16992 else
16993   echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
16994 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
16995 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
16996   echo $ECHO_N "(cached) $ECHO_C" >&6
16997 else
16998   ac_check_lib_save_LIBS=$LIBS
16999 LIBS="-ldld  $LIBS"
17000 cat >conftest.$ac_ext <<_ACEOF
17001 #line $LINENO "configure"
17002 /* confdefs.h.  */
17003 _ACEOF
17004 cat confdefs.h >>conftest.$ac_ext
17005 cat >>conftest.$ac_ext <<_ACEOF
17006 /* end confdefs.h.  */
17007
17008 /* Override any gcc2 internal prototype to avoid an error.  */
17009 #ifdef __cplusplus
17010 extern "C"
17011 #endif
17012 /* We use char because int might match the return type of a gcc2
17013    builtin and then its argument prototype would still apply.  */
17014 char shl_load ();
17015 int
17016 main ()
17017 {
17018 shl_load ();
17019   ;
17020   return 0;
17021 }
17022 _ACEOF
17023 rm -f conftest.$ac_objext conftest$ac_exeext
17024 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17025   (eval $ac_link) 2>&5
17026   ac_status=$?
17027   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17028   (exit $ac_status); } &&
17029          { ac_try='test -s conftest$ac_exeext'
17030   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17031   (eval $ac_try) 2>&5
17032   ac_status=$?
17033   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17034   (exit $ac_status); }; }; then
17035   ac_cv_lib_dld_shl_load=yes
17036 else
17037   echo "$as_me: failed program was:" >&5
17038 sed 's/^/| /' conftest.$ac_ext >&5
17039
17040 ac_cv_lib_dld_shl_load=no
17041 fi
17042 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17043 LIBS=$ac_check_lib_save_LIBS
17044 fi
17045 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
17046 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
17047 if test $ac_cv_lib_dld_shl_load = yes; then
17048   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
17049 else
17050   echo "$as_me:$LINENO: checking for dlopen" >&5
17051 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
17052 if test "${ac_cv_func_dlopen+set}" = set; then
17053   echo $ECHO_N "(cached) $ECHO_C" >&6
17054 else
17055   cat >conftest.$ac_ext <<_ACEOF
17056 #line $LINENO "configure"
17057 /* confdefs.h.  */
17058 _ACEOF
17059 cat confdefs.h >>conftest.$ac_ext
17060 cat >>conftest.$ac_ext <<_ACEOF
17061 /* end confdefs.h.  */
17062 /* System header to define __stub macros and hopefully few prototypes,
17063     which can conflict with char dlopen (); below.
17064     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17065     <limits.h> exists even on freestanding compilers.  */
17066 #ifdef __STDC__
17067 # include <limits.h>
17068 #else
17069 # include <assert.h>
17070 #endif
17071 /* Override any gcc2 internal prototype to avoid an error.  */
17072 #ifdef __cplusplus
17073 extern "C"
17074 {
17075 #endif
17076 /* We use char because int might match the return type of a gcc2
17077    builtin and then its argument prototype would still apply.  */
17078 char dlopen ();
17079 /* The GNU C library defines this for functions which it implements
17080     to always fail with ENOSYS.  Some functions are actually named
17081     something starting with __ and the normal name is an alias.  */
17082 #if defined (__stub_dlopen) || defined (__stub___dlopen)
17083 choke me
17084 #else
17085 char (*f) () = dlopen;
17086 #endif
17087 #ifdef __cplusplus
17088 }
17089 #endif
17090
17091 int
17092 main ()
17093 {
17094 return f != dlopen;
17095   ;
17096   return 0;
17097 }
17098 _ACEOF
17099 rm -f conftest.$ac_objext conftest$ac_exeext
17100 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17101   (eval $ac_link) 2>&5
17102   ac_status=$?
17103   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17104   (exit $ac_status); } &&
17105          { ac_try='test -s conftest$ac_exeext'
17106   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17107   (eval $ac_try) 2>&5
17108   ac_status=$?
17109   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17110   (exit $ac_status); }; }; then
17111   ac_cv_func_dlopen=yes
17112 else
17113   echo "$as_me: failed program was:" >&5
17114 sed 's/^/| /' conftest.$ac_ext >&5
17115
17116 ac_cv_func_dlopen=no
17117 fi
17118 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17119 fi
17120 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
17121 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
17122 if test $ac_cv_func_dlopen = yes; then
17123   lt_cv_dlopen="dlopen"
17124 else
17125   echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
17126 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
17127 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
17128   echo $ECHO_N "(cached) $ECHO_C" >&6
17129 else
17130   ac_check_lib_save_LIBS=$LIBS
17131 LIBS="-ldl  $LIBS"
17132 cat >conftest.$ac_ext <<_ACEOF
17133 #line $LINENO "configure"
17134 /* confdefs.h.  */
17135 _ACEOF
17136 cat confdefs.h >>conftest.$ac_ext
17137 cat >>conftest.$ac_ext <<_ACEOF
17138 /* end confdefs.h.  */
17139
17140 /* Override any gcc2 internal prototype to avoid an error.  */
17141 #ifdef __cplusplus
17142 extern "C"
17143 #endif
17144 /* We use char because int might match the return type of a gcc2
17145    builtin and then its argument prototype would still apply.  */
17146 char dlopen ();
17147 int
17148 main ()
17149 {
17150 dlopen ();
17151   ;
17152   return 0;
17153 }
17154 _ACEOF
17155 rm -f conftest.$ac_objext conftest$ac_exeext
17156 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17157   (eval $ac_link) 2>&5
17158   ac_status=$?
17159   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17160   (exit $ac_status); } &&
17161          { ac_try='test -s conftest$ac_exeext'
17162   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17163   (eval $ac_try) 2>&5
17164   ac_status=$?
17165   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17166   (exit $ac_status); }; }; then
17167   ac_cv_lib_dl_dlopen=yes
17168 else
17169   echo "$as_me: failed program was:" >&5
17170 sed 's/^/| /' conftest.$ac_ext >&5
17171
17172 ac_cv_lib_dl_dlopen=no
17173 fi
17174 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17175 LIBS=$ac_check_lib_save_LIBS
17176 fi
17177 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
17178 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
17179 if test $ac_cv_lib_dl_dlopen = yes; then
17180   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17181 else
17182   echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
17183 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
17184 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
17185   echo $ECHO_N "(cached) $ECHO_C" >&6
17186 else
17187   ac_check_lib_save_LIBS=$LIBS
17188 LIBS="-lsvld  $LIBS"
17189 cat >conftest.$ac_ext <<_ACEOF
17190 #line $LINENO "configure"
17191 /* confdefs.h.  */
17192 _ACEOF
17193 cat confdefs.h >>conftest.$ac_ext
17194 cat >>conftest.$ac_ext <<_ACEOF
17195 /* end confdefs.h.  */
17196
17197 /* Override any gcc2 internal prototype to avoid an error.  */
17198 #ifdef __cplusplus
17199 extern "C"
17200 #endif
17201 /* We use char because int might match the return type of a gcc2
17202    builtin and then its argument prototype would still apply.  */
17203 char dlopen ();
17204 int
17205 main ()
17206 {
17207 dlopen ();
17208   ;
17209   return 0;
17210 }
17211 _ACEOF
17212 rm -f conftest.$ac_objext conftest$ac_exeext
17213 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17214   (eval $ac_link) 2>&5
17215   ac_status=$?
17216   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17217   (exit $ac_status); } &&
17218          { ac_try='test -s conftest$ac_exeext'
17219   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17220   (eval $ac_try) 2>&5
17221   ac_status=$?
17222   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17223   (exit $ac_status); }; }; then
17224   ac_cv_lib_svld_dlopen=yes
17225 else
17226   echo "$as_me: failed program was:" >&5
17227 sed 's/^/| /' conftest.$ac_ext >&5
17228
17229 ac_cv_lib_svld_dlopen=no
17230 fi
17231 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17232 LIBS=$ac_check_lib_save_LIBS
17233 fi
17234 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
17235 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
17236 if test $ac_cv_lib_svld_dlopen = yes; then
17237   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
17238 else
17239   echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
17240 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
17241 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
17242   echo $ECHO_N "(cached) $ECHO_C" >&6
17243 else
17244   ac_check_lib_save_LIBS=$LIBS
17245 LIBS="-ldld  $LIBS"
17246 cat >conftest.$ac_ext <<_ACEOF
17247 #line $LINENO "configure"
17248 /* confdefs.h.  */
17249 _ACEOF
17250 cat confdefs.h >>conftest.$ac_ext
17251 cat >>conftest.$ac_ext <<_ACEOF
17252 /* end confdefs.h.  */
17253
17254 /* Override any gcc2 internal prototype to avoid an error.  */
17255 #ifdef __cplusplus
17256 extern "C"
17257 #endif
17258 /* We use char because int might match the return type of a gcc2
17259    builtin and then its argument prototype would still apply.  */
17260 char dld_link ();
17261 int
17262 main ()
17263 {
17264 dld_link ();
17265   ;
17266   return 0;
17267 }
17268 _ACEOF
17269 rm -f conftest.$ac_objext conftest$ac_exeext
17270 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17271   (eval $ac_link) 2>&5
17272   ac_status=$?
17273   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17274   (exit $ac_status); } &&
17275          { ac_try='test -s conftest$ac_exeext'
17276   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17277   (eval $ac_try) 2>&5
17278   ac_status=$?
17279   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17280   (exit $ac_status); }; }; then
17281   ac_cv_lib_dld_dld_link=yes
17282 else
17283   echo "$as_me: failed program was:" >&5
17284 sed 's/^/| /' conftest.$ac_ext >&5
17285
17286 ac_cv_lib_dld_dld_link=no
17287 fi
17288 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17289 LIBS=$ac_check_lib_save_LIBS
17290 fi
17291 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
17292 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
17293 if test $ac_cv_lib_dld_dld_link = yes; then
17294   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
17295 fi
17296
17297
17298 fi
17299
17300
17301 fi
17302
17303
17304 fi
17305
17306
17307 fi
17308
17309
17310 fi
17311
17312     ;;
17313   esac
17314
17315   if test "x$lt_cv_dlopen" != xno; then
17316     enable_dlopen=yes
17317   else
17318     enable_dlopen=no
17319   fi
17320
17321   case $lt_cv_dlopen in
17322   dlopen)
17323     save_CPPFLAGS="$CPPFLAGS"
17324     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
17325
17326     save_LDFLAGS="$LDFLAGS"
17327     eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
17328
17329     save_LIBS="$LIBS"
17330     LIBS="$lt_cv_dlopen_libs $LIBS"
17331
17332     echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
17333 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
17334 if test "${lt_cv_dlopen_self+set}" = set; then
17335   echo $ECHO_N "(cached) $ECHO_C" >&6
17336 else
17337           if test "$cross_compiling" = yes; then :
17338   lt_cv_dlopen_self=cross
17339 else
17340   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17341   lt_status=$lt_dlunknown
17342   cat > conftest.$ac_ext <<EOF
17343 #line 17343 "configure"
17344 #include "confdefs.h"
17345
17346 #if HAVE_DLFCN_H
17347 #include <dlfcn.h>
17348 #endif
17349
17350 #include <stdio.h>
17351
17352 #ifdef RTLD_GLOBAL
17353 #  define LT_DLGLOBAL           RTLD_GLOBAL
17354 #else
17355 #  ifdef DL_GLOBAL
17356 #    define LT_DLGLOBAL         DL_GLOBAL
17357 #  else
17358 #    define LT_DLGLOBAL         0
17359 #  endif
17360 #endif
17361
17362 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17363    find out it does not work in some platform. */
17364 #ifndef LT_DLLAZY_OR_NOW
17365 #  ifdef RTLD_LAZY
17366 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
17367 #  else
17368 #    ifdef DL_LAZY
17369 #      define LT_DLLAZY_OR_NOW          DL_LAZY
17370 #    else
17371 #      ifdef RTLD_NOW
17372 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
17373 #      else
17374 #        ifdef DL_NOW
17375 #          define LT_DLLAZY_OR_NOW      DL_NOW
17376 #        else
17377 #          define LT_DLLAZY_OR_NOW      0
17378 #        endif
17379 #      endif
17380 #    endif
17381 #  endif
17382 #endif
17383
17384 #ifdef __cplusplus
17385 extern "C" void exit (int);
17386 #endif
17387
17388 void fnord() { int i=42;}
17389 int main ()
17390 {
17391   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17392   int status = $lt_dlunknown;
17393
17394   if (self)
17395     {
17396       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
17397       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17398       /* dlclose (self); */
17399     }
17400
17401     exit (status);
17402 }
17403 EOF
17404   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17405   (eval $ac_link) 2>&5
17406   ac_status=$?
17407   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17408   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
17409     (./conftest; exit; ) 2>/dev/null
17410     lt_status=$?
17411     case x$lt_status in
17412       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
17413       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
17414       x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
17415     esac
17416   else :
17417     # compilation failed
17418     lt_cv_dlopen_self=no
17419   fi
17420 fi
17421 rm -fr conftest*
17422
17423
17424 fi
17425 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
17426 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
17427
17428     if test "x$lt_cv_dlopen_self" = xyes; then
17429       LDFLAGS="$LDFLAGS $link_static_flag"
17430       echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
17431 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
17432 if test "${lt_cv_dlopen_self_static+set}" = set; then
17433   echo $ECHO_N "(cached) $ECHO_C" >&6
17434 else
17435           if test "$cross_compiling" = yes; then :
17436   lt_cv_dlopen_self_static=cross
17437 else
17438   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17439   lt_status=$lt_dlunknown
17440   cat > conftest.$ac_ext <<EOF
17441 #line 17441 "configure"
17442 #include "confdefs.h"
17443
17444 #if HAVE_DLFCN_H
17445 #include <dlfcn.h>
17446 #endif
17447
17448 #include <stdio.h>
17449
17450 #ifdef RTLD_GLOBAL
17451 #  define LT_DLGLOBAL           RTLD_GLOBAL
17452 #else
17453 #  ifdef DL_GLOBAL
17454 #    define LT_DLGLOBAL         DL_GLOBAL
17455 #  else
17456 #    define LT_DLGLOBAL         0
17457 #  endif
17458 #endif
17459
17460 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17461    find out it does not work in some platform. */
17462 #ifndef LT_DLLAZY_OR_NOW
17463 #  ifdef RTLD_LAZY
17464 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
17465 #  else
17466 #    ifdef DL_LAZY
17467 #      define LT_DLLAZY_OR_NOW          DL_LAZY
17468 #    else
17469 #      ifdef RTLD_NOW
17470 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
17471 #      else
17472 #        ifdef DL_NOW
17473 #          define LT_DLLAZY_OR_NOW      DL_NOW
17474 #        else
17475 #          define LT_DLLAZY_OR_NOW      0
17476 #        endif
17477 #      endif
17478 #    endif
17479 #  endif
17480 #endif
17481
17482 #ifdef __cplusplus
17483 extern "C" void exit (int);
17484 #endif
17485
17486 void fnord() { int i=42;}
17487 int main ()
17488 {
17489   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17490   int status = $lt_dlunknown;
17491
17492   if (self)
17493     {
17494       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
17495       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17496       /* dlclose (self); */
17497     }
17498
17499     exit (status);
17500 }
17501 EOF
17502   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17503   (eval $ac_link) 2>&5
17504   ac_status=$?
17505   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17506   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
17507     (./conftest; exit; ) 2>/dev/null
17508     lt_status=$?
17509     case x$lt_status in
17510       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
17511       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
17512       x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
17513     esac
17514   else :
17515     # compilation failed
17516     lt_cv_dlopen_self_static=no
17517   fi
17518 fi
17519 rm -fr conftest*
17520
17521
17522 fi
17523 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
17524 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
17525     fi
17526
17527     CPPFLAGS="$save_CPPFLAGS"
17528     LDFLAGS="$save_LDFLAGS"
17529     LIBS="$save_LIBS"
17530     ;;
17531   esac
17532
17533   case $lt_cv_dlopen_self in
17534   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
17535   *) enable_dlopen_self=unknown ;;
17536   esac
17537
17538   case $lt_cv_dlopen_self_static in
17539   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
17540   *) enable_dlopen_self_static=unknown ;;
17541   esac
17542 fi
17543
17544
17545 # The else clause should only fire when bootstrapping the
17546 # libtool distribution, otherwise you forgot to ship ltmain.sh
17547 # with your package, and you will get complaints that there are
17548 # no rules to generate ltmain.sh.
17549 if test -f "$ltmain"; then
17550   # See if we are running on zsh, and set the options which allow our commands through
17551   # without removal of \ escapes.
17552   if test -n "${ZSH_VERSION+set}" ; then
17553     setopt NO_GLOB_SUBST
17554   fi
17555   # Now quote all the things that may contain metacharacters while being
17556   # careful not to overquote the AC_SUBSTed values.  We take copies of the
17557   # variables and quote the copies for generation of the libtool script.
17558   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \
17559     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
17560     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
17561     deplibs_check_method reload_flag reload_cmds need_locks \
17562     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
17563     lt_cv_sys_global_symbol_to_c_name_address \
17564     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
17565     old_postinstall_cmds old_postuninstall_cmds \
17566     compiler_GCJ \
17567     CC_GCJ \
17568     LD_GCJ \
17569     lt_prog_compiler_wl_GCJ \
17570     lt_prog_compiler_pic_GCJ \
17571     lt_prog_compiler_static_GCJ \
17572     lt_prog_compiler_no_builtin_flag_GCJ \
17573     export_dynamic_flag_spec_GCJ \
17574     thread_safe_flag_spec_GCJ \
17575     whole_archive_flag_spec_GCJ \
17576     enable_shared_with_static_runtimes_GCJ \
17577     old_archive_cmds_GCJ \
17578     old_archive_from_new_cmds_GCJ \
17579     predep_objects_GCJ \
17580     postdep_objects_GCJ \
17581     predeps_GCJ \
17582     postdeps_GCJ \
17583     compiler_lib_search_path_GCJ \
17584     archive_cmds_GCJ \
17585     archive_expsym_cmds_GCJ \
17586     postinstall_cmds_GCJ \
17587     postuninstall_cmds_GCJ \
17588     old_archive_from_expsyms_cmds_GCJ \
17589     allow_undefined_flag_GCJ \
17590     no_undefined_flag_GCJ \
17591     export_symbols_cmds_GCJ \
17592     hardcode_libdir_flag_spec_GCJ \
17593     hardcode_libdir_flag_spec_ld_GCJ \
17594     hardcode_libdir_separator_GCJ \
17595     hardcode_automatic_GCJ \
17596     module_cmds_GCJ \
17597     module_expsym_cmds_GCJ \
17598     lt_cv_prog_compiler_c_o_GCJ \
17599     exclude_expsyms_GCJ \
17600     include_expsyms_GCJ; do
17601
17602     case $var in
17603     old_archive_cmds_GCJ | \
17604     old_archive_from_new_cmds_GCJ | \
17605     archive_cmds_GCJ | \
17606     archive_expsym_cmds_GCJ | \
17607     module_cmds_GCJ | \
17608     module_expsym_cmds_GCJ | \
17609     old_archive_from_expsyms_cmds_GCJ | \
17610     export_symbols_cmds_GCJ | \
17611     extract_expsyms_cmds | reload_cmds | finish_cmds | \
17612     postinstall_cmds | postuninstall_cmds | \
17613     old_postinstall_cmds | old_postuninstall_cmds | \
17614     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
17615       # Double-quote double-evaled strings.
17616       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
17617       ;;
17618     *)
17619       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
17620       ;;
17621     esac
17622   done
17623
17624   case $lt_echo in
17625   *'\$0 --fallback-echo"')
17626     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
17627     ;;
17628   esac
17629
17630 cfgfile="$ofile"
17631
17632   cat <<__EOF__ >> "$cfgfile"
17633 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
17634
17635 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17636
17637 # Shell to use when invoking shell scripts.
17638 SHELL=$lt_SHELL
17639
17640 # Whether or not to build shared libraries.
17641 build_libtool_libs=$enable_shared
17642
17643 # Whether or not to build static libraries.
17644 build_old_libs=$enable_static
17645
17646 # Whether or not to add -lc for building shared libraries.
17647 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
17648
17649 # Whether or not to disallow shared libs when runtime libs are static
17650 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
17651
17652 # Whether or not to optimize for fast installation.
17653 fast_install=$enable_fast_install
17654
17655 # The host system.
17656 host_alias=$host_alias
17657 host=$host
17658
17659 # An echo program that does not interpret backslashes.
17660 echo=$lt_echo
17661
17662 # The archiver.
17663 AR=$lt_AR
17664 AR_FLAGS=$lt_AR_FLAGS
17665
17666 # A C compiler.
17667 LTCC=$lt_LTCC
17668
17669 # A language-specific compiler.
17670 CC=$lt_compiler_GCJ
17671
17672 # Is the compiler the GNU C compiler?
17673 with_gcc=$GCC_GCJ
17674
17675 # An ERE matcher.
17676 EGREP=$lt_EGREP
17677
17678 # The linker used to build libraries.
17679 LD=$lt_LD_GCJ
17680
17681 # Whether we need hard or soft links.
17682 LN_S=$lt_LN_S
17683
17684 # A BSD-compatible nm program.
17685 NM=$lt_NM
17686
17687 # A symbol stripping program
17688 STRIP=$STRIP
17689
17690 # Used to examine libraries when file_magic_cmd begins "file"
17691 MAGIC_CMD=$MAGIC_CMD
17692
17693 # Used on cygwin: DLL creation program.
17694 DLLTOOL="$DLLTOOL"
17695
17696 # Used on cygwin: object dumper.
17697 OBJDUMP="$OBJDUMP"
17698
17699 # Used on cygwin: assembler.
17700 AS="$AS"
17701
17702 # The name of the directory that contains temporary libtool files.
17703 objdir=$objdir
17704
17705 # How to create reloadable object files.
17706 reload_flag=$lt_reload_flag
17707 reload_cmds=$lt_reload_cmds
17708
17709 # How to pass a linker flag through the compiler.
17710 wl=$lt_lt_prog_compiler_wl_GCJ
17711
17712 # Object file suffix (normally "o").
17713 objext="$ac_objext"
17714
17715 # Old archive suffix (normally "a").
17716 libext="$libext"
17717
17718 # Shared library suffix (normally ".so").
17719 shrext='$shrext'
17720
17721 # Executable file suffix (normally "").
17722 exeext="$exeext"
17723
17724 # Additional compiler flags for building library objects.
17725 pic_flag=$lt_lt_prog_compiler_pic_GCJ
17726 pic_mode=$pic_mode
17727
17728 # What is the maximum length of a command?
17729 max_cmd_len=$lt_cv_sys_max_cmd_len
17730
17731 # Does compiler simultaneously support -c and -o options?
17732 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
17733
17734 # Must we lock files when doing compilation ?
17735 need_locks=$lt_need_locks
17736
17737 # Do we need the lib prefix for modules?
17738 need_lib_prefix=$need_lib_prefix
17739
17740 # Do we need a version for libraries?
17741 need_version=$need_version
17742
17743 # Whether dlopen is supported.
17744 dlopen_support=$enable_dlopen
17745
17746 # Whether dlopen of programs is supported.
17747 dlopen_self=$enable_dlopen_self
17748
17749 # Whether dlopen of statically linked programs is supported.
17750 dlopen_self_static=$enable_dlopen_self_static
17751
17752 # Compiler flag to prevent dynamic linking.
17753 link_static_flag=$lt_lt_prog_compiler_static_GCJ
17754
17755 # Compiler flag to turn off builtin functions.
17756 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
17757
17758 # Compiler flag to allow reflexive dlopens.
17759 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
17760
17761 # Compiler flag to generate shared objects directly from archives.
17762 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
17763
17764 # Compiler flag to generate thread-safe objects.
17765 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
17766
17767 # Library versioning type.
17768 version_type=$version_type
17769
17770 # Format of library name prefix.
17771 libname_spec=$lt_libname_spec
17772
17773 # List of archive names.  First name is the real one, the rest are links.
17774 # The last name is the one that the linker finds with -lNAME.
17775 library_names_spec=$lt_library_names_spec
17776
17777 # The coded name of the library, if different from the real name.
17778 soname_spec=$lt_soname_spec
17779
17780 # Commands used to build and install an old-style archive.
17781 RANLIB=$lt_RANLIB
17782 old_archive_cmds=$lt_old_archive_cmds_GCJ
17783 old_postinstall_cmds=$lt_old_postinstall_cmds
17784 old_postuninstall_cmds=$lt_old_postuninstall_cmds
17785
17786 # Create an old-style archive from a shared archive.
17787 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
17788
17789 # Create a temporary old-style archive to link instead of a shared archive.
17790 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
17791
17792 # Commands used to build and install a shared archive.
17793 archive_cmds=$lt_archive_cmds_GCJ
17794 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
17795 postinstall_cmds=$lt_postinstall_cmds
17796 postuninstall_cmds=$lt_postuninstall_cmds
17797
17798 # Commands used to build a loadable module (assumed same as above if empty)
17799 module_cmds=$lt_module_cmds_GCJ
17800 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
17801
17802 # Commands to strip libraries.
17803 old_striplib=$lt_old_striplib
17804 striplib=$lt_striplib
17805
17806 # Dependencies to place before the objects being linked to create a
17807 # shared library.
17808 predep_objects=$lt_predep_objects_GCJ
17809
17810 # Dependencies to place after the objects being linked to create a
17811 # shared library.
17812 postdep_objects=$lt_postdep_objects_GCJ
17813
17814 # Dependencies to place before the objects being linked to create a
17815 # shared library.
17816 predeps=$lt_predeps_GCJ
17817
17818 # Dependencies to place after the objects being linked to create a
17819 # shared library.
17820 postdeps=$lt_postdeps_GCJ
17821
17822 # The library search path used internally by the compiler when linking
17823 # a shared library.
17824 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
17825
17826 # Method to check whether dependent libraries are shared objects.
17827 deplibs_check_method=$lt_deplibs_check_method
17828
17829 # Command to use when deplibs_check_method == file_magic.
17830 file_magic_cmd=$lt_file_magic_cmd
17831
17832 # Flag that allows shared libraries with undefined symbols to be built.
17833 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
17834
17835 # Flag that forces no undefined symbols.
17836 no_undefined_flag=$lt_no_undefined_flag_GCJ
17837
17838 # Commands used to finish a libtool library installation in a directory.
17839 finish_cmds=$lt_finish_cmds
17840
17841 # Same as above, but a single script fragment to be evaled but not shown.
17842 finish_eval=$lt_finish_eval
17843
17844 # Take the output of nm and produce a listing of raw symbols and C names.
17845 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
17846
17847 # Transform the output of nm in a proper C declaration
17848 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
17849
17850 # Transform the output of nm in a C name address pair
17851 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
17852
17853 # This is the shared library runtime path variable.
17854 runpath_var=$runpath_var
17855
17856 # This is the shared library path variable.
17857 shlibpath_var=$shlibpath_var
17858
17859 # Is shlibpath searched before the hard-coded library search path?
17860 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
17861
17862 # How to hardcode a shared library path into an executable.
17863 hardcode_action=$hardcode_action_GCJ
17864
17865 # Whether we should hardcode library paths into libraries.
17866 hardcode_into_libs=$hardcode_into_libs
17867
17868 # Flag to hardcode \$libdir into a binary during linking.
17869 # This must work even if \$libdir does not exist.
17870 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
17871
17872 # If ld is used when linking, flag to hardcode \$libdir into
17873 # a binary during linking. This must work even if \$libdir does
17874 # not exist.
17875 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
17876
17877 # Whether we need a single -rpath flag with a separated argument.
17878 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
17879
17880 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
17881 # resulting binary.
17882 hardcode_direct=$hardcode_direct_GCJ
17883
17884 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
17885 # resulting binary.
17886 hardcode_minus_L=$hardcode_minus_L_GCJ
17887
17888 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
17889 # the resulting binary.
17890 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
17891
17892 # Set to yes if building a shared library automatically hardcodes DIR into the library
17893 # and all subsequent libraries and executables linked against it.
17894 hardcode_automatic=$hardcode_automatic_GCJ
17895
17896 # Variables whose values should be saved in libtool wrapper scripts and
17897 # restored at relink time.
17898 variables_saved_for_relink="$variables_saved_for_relink"
17899
17900 # Whether libtool must link a program against all its dependency libraries.
17901 link_all_deplibs=$link_all_deplibs_GCJ
17902
17903 # Compile-time system search path for libraries
17904 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
17905
17906 # Run-time system search path for libraries
17907 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
17908
17909 # Fix the shell variable \$srcfile for the compiler.
17910 fix_srcfile_path="$fix_srcfile_path_GCJ"
17911
17912 # Set to yes if exported symbols are required.
17913 always_export_symbols=$always_export_symbols_GCJ
17914
17915 # The commands to list exported symbols.
17916 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
17917
17918 # The commands to extract the exported symbol list from a shared archive.
17919 extract_expsyms_cmds=$lt_extract_expsyms_cmds
17920
17921 # Symbols that should not be listed in the preloaded symbols.
17922 exclude_expsyms=$lt_exclude_expsyms_GCJ
17923
17924 # Symbols that must always be exported.
17925 include_expsyms=$lt_include_expsyms_GCJ
17926
17927 # ### END LIBTOOL TAG CONFIG: $tagname
17928
17929 __EOF__
17930
17931
17932 else
17933   # If there is no Makefile yet, we rely on a make rule to execute
17934   # `config.status --recheck' to rerun these tests and create the
17935   # libtool script then.
17936   test -f Makefile && make "$ltmain"
17937 fi
17938
17939
17940 ac_ext=c
17941 ac_cpp='$CPP $CPPFLAGS'
17942 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17943 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17944 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17945
17946 CC="$lt_save_CC"
17947
17948         else
17949           tagname=""
17950         fi
17951         ;;
17952
17953       RC)
17954
17955
17956
17957 # Source file extension for RC test sources.
17958 ac_ext=rc
17959
17960 # Object file extension for compiled RC test sources.
17961 objext=o
17962 objext_RC=$objext
17963
17964 # Code to be used in simple compile tests
17965 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
17966
17967 # Code to be used in simple link tests
17968 lt_simple_link_test_code="$lt_simple_compile_test_code"
17969
17970 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
17971
17972 # If no C compiler was specified, use CC.
17973 LTCC=${LTCC-"$CC"}
17974
17975 # Allow CC to be a program name with arguments.
17976 compiler=$CC
17977
17978
17979 # Allow CC to be a program name with arguments.
17980 lt_save_CC="$CC"
17981 CC=${RC-"windres"}
17982 compiler=$CC
17983 compiler_RC=$CC
17984 lt_cv_prog_compiler_c_o_RC=yes
17985
17986 # The else clause should only fire when bootstrapping the
17987 # libtool distribution, otherwise you forgot to ship ltmain.sh
17988 # with your package, and you will get complaints that there are
17989 # no rules to generate ltmain.sh.
17990 if test -f "$ltmain"; then
17991   # See if we are running on zsh, and set the options which allow our commands through
17992   # without removal of \ escapes.
17993   if test -n "${ZSH_VERSION+set}" ; then
17994     setopt NO_GLOB_SUBST
17995   fi
17996   # Now quote all the things that may contain metacharacters while being
17997   # careful not to overquote the AC_SUBSTed values.  We take copies of the
17998   # variables and quote the copies for generation of the libtool script.
17999   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \
18000     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18001     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18002     deplibs_check_method reload_flag reload_cmds need_locks \
18003     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18004     lt_cv_sys_global_symbol_to_c_name_address \
18005     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18006     old_postinstall_cmds old_postuninstall_cmds \
18007     compiler_RC \
18008     CC_RC \
18009     LD_RC \
18010     lt_prog_compiler_wl_RC \
18011     lt_prog_compiler_pic_RC \
18012     lt_prog_compiler_static_RC \
18013     lt_prog_compiler_no_builtin_flag_RC \
18014     export_dynamic_flag_spec_RC \
18015     thread_safe_flag_spec_RC \
18016     whole_archive_flag_spec_RC \
18017     enable_shared_with_static_runtimes_RC \
18018     old_archive_cmds_RC \
18019     old_archive_from_new_cmds_RC \
18020     predep_objects_RC \
18021     postdep_objects_RC \
18022     predeps_RC \
18023     postdeps_RC \
18024     compiler_lib_search_path_RC \
18025     archive_cmds_RC \
18026     archive_expsym_cmds_RC \
18027     postinstall_cmds_RC \
18028     postuninstall_cmds_RC \
18029     old_archive_from_expsyms_cmds_RC \
18030     allow_undefined_flag_RC \
18031     no_undefined_flag_RC \
18032     export_symbols_cmds_RC \
18033     hardcode_libdir_flag_spec_RC \
18034     hardcode_libdir_flag_spec_ld_RC \
18035     hardcode_libdir_separator_RC \
18036     hardcode_automatic_RC \
18037     module_cmds_RC \
18038     module_expsym_cmds_RC \
18039     lt_cv_prog_compiler_c_o_RC \
18040     exclude_expsyms_RC \
18041     include_expsyms_RC; do
18042
18043     case $var in
18044     old_archive_cmds_RC | \
18045     old_archive_from_new_cmds_RC | \
18046     archive_cmds_RC | \
18047     archive_expsym_cmds_RC | \
18048     module_cmds_RC | \
18049     module_expsym_cmds_RC | \
18050     old_archive_from_expsyms_cmds_RC | \
18051     export_symbols_cmds_RC | \
18052     extract_expsyms_cmds | reload_cmds | finish_cmds | \
18053     postinstall_cmds | postuninstall_cmds | \
18054     old_postinstall_cmds | old_postuninstall_cmds | \
18055     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18056       # Double-quote double-evaled strings.
18057       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18058       ;;
18059     *)
18060       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18061       ;;
18062     esac
18063   done
18064
18065   case $lt_echo in
18066   *'\$0 --fallback-echo"')
18067     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18068     ;;
18069   esac
18070
18071 cfgfile="$ofile"
18072
18073   cat <<__EOF__ >> "$cfgfile"
18074 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
18075
18076 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18077
18078 # Shell to use when invoking shell scripts.
18079 SHELL=$lt_SHELL
18080
18081 # Whether or not to build shared libraries.
18082 build_libtool_libs=$enable_shared
18083
18084 # Whether or not to build static libraries.
18085 build_old_libs=$enable_static
18086
18087 # Whether or not to add -lc for building shared libraries.
18088 build_libtool_need_lc=$archive_cmds_need_lc_RC
18089
18090 # Whether or not to disallow shared libs when runtime libs are static
18091 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
18092
18093 # Whether or not to optimize for fast installation.
18094 fast_install=$enable_fast_install
18095
18096 # The host system.
18097 host_alias=$host_alias
18098 host=$host
18099
18100 # An echo program that does not interpret backslashes.
18101 echo=$lt_echo
18102
18103 # The archiver.
18104 AR=$lt_AR
18105 AR_FLAGS=$lt_AR_FLAGS
18106
18107 # A C compiler.
18108 LTCC=$lt_LTCC
18109
18110 # A language-specific compiler.
18111 CC=$lt_compiler_RC
18112
18113 # Is the compiler the GNU C compiler?
18114 with_gcc=$GCC_RC
18115
18116 # An ERE matcher.
18117 EGREP=$lt_EGREP
18118
18119 # The linker used to build libraries.
18120 LD=$lt_LD_RC
18121
18122 # Whether we need hard or soft links.
18123 LN_S=$lt_LN_S
18124
18125 # A BSD-compatible nm program.
18126 NM=$lt_NM
18127
18128 # A symbol stripping program
18129 STRIP=$STRIP
18130
18131 # Used to examine libraries when file_magic_cmd begins "file"
18132 MAGIC_CMD=$MAGIC_CMD
18133
18134 # Used on cygwin: DLL creation program.
18135 DLLTOOL="$DLLTOOL"
18136
18137 # Used on cygwin: object dumper.
18138 OBJDUMP="$OBJDUMP"
18139
18140 # Used on cygwin: assembler.
18141 AS="$AS"
18142
18143 # The name of the directory that contains temporary libtool files.
18144 objdir=$objdir
18145
18146 # How to create reloadable object files.
18147 reload_flag=$lt_reload_flag
18148 reload_cmds=$lt_reload_cmds
18149
18150 # How to pass a linker flag through the compiler.
18151 wl=$lt_lt_prog_compiler_wl_RC
18152
18153 # Object file suffix (normally "o").
18154 objext="$ac_objext"
18155
18156 # Old archive suffix (normally "a").
18157 libext="$libext"
18158
18159 # Shared library suffix (normally ".so").
18160 shrext='$shrext'
18161
18162 # Executable file suffix (normally "").
18163 exeext="$exeext"
18164
18165 # Additional compiler flags for building library objects.
18166 pic_flag=$lt_lt_prog_compiler_pic_RC
18167 pic_mode=$pic_mode
18168
18169 # What is the maximum length of a command?
18170 max_cmd_len=$lt_cv_sys_max_cmd_len
18171
18172 # Does compiler simultaneously support -c and -o options?
18173 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
18174
18175 # Must we lock files when doing compilation ?
18176 need_locks=$lt_need_locks
18177
18178 # Do we need the lib prefix for modules?
18179 need_lib_prefix=$need_lib_prefix
18180
18181 # Do we need a version for libraries?
18182 need_version=$need_version
18183
18184 # Whether dlopen is supported.
18185 dlopen_support=$enable_dlopen
18186
18187 # Whether dlopen of programs is supported.
18188 dlopen_self=$enable_dlopen_self
18189
18190 # Whether dlopen of statically linked programs is supported.
18191 dlopen_self_static=$enable_dlopen_self_static
18192
18193 # Compiler flag to prevent dynamic linking.
18194 link_static_flag=$lt_lt_prog_compiler_static_RC
18195
18196 # Compiler flag to turn off builtin functions.
18197 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
18198
18199 # Compiler flag to allow reflexive dlopens.
18200 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
18201
18202 # Compiler flag to generate shared objects directly from archives.
18203 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
18204
18205 # Compiler flag to generate thread-safe objects.
18206 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
18207
18208 # Library versioning type.
18209 version_type=$version_type
18210
18211 # Format of library name prefix.
18212 libname_spec=$lt_libname_spec
18213
18214 # List of archive names.  First name is the real one, the rest are links.
18215 # The last name is the one that the linker finds with -lNAME.
18216 library_names_spec=$lt_library_names_spec
18217
18218 # The coded name of the library, if different from the real name.
18219 soname_spec=$lt_soname_spec
18220
18221 # Commands used to build and install an old-style archive.
18222 RANLIB=$lt_RANLIB
18223 old_archive_cmds=$lt_old_archive_cmds_RC
18224 old_postinstall_cmds=$lt_old_postinstall_cmds
18225 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18226
18227 # Create an old-style archive from a shared archive.
18228 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
18229
18230 # Create a temporary old-style archive to link instead of a shared archive.
18231 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
18232
18233 # Commands used to build and install a shared archive.
18234 archive_cmds=$lt_archive_cmds_RC
18235 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
18236 postinstall_cmds=$lt_postinstall_cmds
18237 postuninstall_cmds=$lt_postuninstall_cmds
18238
18239 # Commands used to build a loadable module (assumed same as above if empty)
18240 module_cmds=$lt_module_cmds_RC
18241 module_expsym_cmds=$lt_module_expsym_cmds_RC
18242
18243 # Commands to strip libraries.
18244 old_striplib=$lt_old_striplib
18245 striplib=$lt_striplib
18246
18247 # Dependencies to place before the objects being linked to create a
18248 # shared library.
18249 predep_objects=$lt_predep_objects_RC
18250
18251 # Dependencies to place after the objects being linked to create a
18252 # shared library.
18253 postdep_objects=$lt_postdep_objects_RC
18254
18255 # Dependencies to place before the objects being linked to create a
18256 # shared library.
18257 predeps=$lt_predeps_RC
18258
18259 # Dependencies to place after the objects being linked to create a
18260 # shared library.
18261 postdeps=$lt_postdeps_RC
18262
18263 # The library search path used internally by the compiler when linking
18264 # a shared library.
18265 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
18266
18267 # Method to check whether dependent libraries are shared objects.
18268 deplibs_check_method=$lt_deplibs_check_method
18269
18270 # Command to use when deplibs_check_method == file_magic.
18271 file_magic_cmd=$lt_file_magic_cmd
18272
18273 # Flag that allows shared libraries with undefined symbols to be built.
18274 allow_undefined_flag=$lt_allow_undefined_flag_RC
18275
18276 # Flag that forces no undefined symbols.
18277 no_undefined_flag=$lt_no_undefined_flag_RC
18278
18279 # Commands used to finish a libtool library installation in a directory.
18280 finish_cmds=$lt_finish_cmds
18281
18282 # Same as above, but a single script fragment to be evaled but not shown.
18283 finish_eval=$lt_finish_eval
18284
18285 # Take the output of nm and produce a listing of raw symbols and C names.
18286 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18287
18288 # Transform the output of nm in a proper C declaration
18289 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18290
18291 # Transform the output of nm in a C name address pair
18292 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18293
18294 # This is the shared library runtime path variable.
18295 runpath_var=$runpath_var
18296
18297 # This is the shared library path variable.
18298 shlibpath_var=$shlibpath_var
18299
18300 # Is shlibpath searched before the hard-coded library search path?
18301 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18302
18303 # How to hardcode a shared library path into an executable.
18304 hardcode_action=$hardcode_action_RC
18305
18306 # Whether we should hardcode library paths into libraries.
18307 hardcode_into_libs=$hardcode_into_libs
18308
18309 # Flag to hardcode \$libdir into a binary during linking.
18310 # This must work even if \$libdir does not exist.
18311 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
18312
18313 # If ld is used when linking, flag to hardcode \$libdir into
18314 # a binary during linking. This must work even if \$libdir does
18315 # not exist.
18316 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
18317
18318 # Whether we need a single -rpath flag with a separated argument.
18319 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
18320
18321 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18322 # resulting binary.
18323 hardcode_direct=$hardcode_direct_RC
18324
18325 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18326 # resulting binary.
18327 hardcode_minus_L=$hardcode_minus_L_RC
18328
18329 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18330 # the resulting binary.
18331 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
18332
18333 # Set to yes if building a shared library automatically hardcodes DIR into the library
18334 # and all subsequent libraries and executables linked against it.
18335 hardcode_automatic=$hardcode_automatic_RC
18336
18337 # Variables whose values should be saved in libtool wrapper scripts and
18338 # restored at relink time.
18339 variables_saved_for_relink="$variables_saved_for_relink"
18340
18341 # Whether libtool must link a program against all its dependency libraries.
18342 link_all_deplibs=$link_all_deplibs_RC
18343
18344 # Compile-time system search path for libraries
18345 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18346
18347 # Run-time system search path for libraries
18348 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18349
18350 # Fix the shell variable \$srcfile for the compiler.
18351 fix_srcfile_path="$fix_srcfile_path_RC"
18352
18353 # Set to yes if exported symbols are required.
18354 always_export_symbols=$always_export_symbols_RC
18355
18356 # The commands to list exported symbols.
18357 export_symbols_cmds=$lt_export_symbols_cmds_RC
18358
18359 # The commands to extract the exported symbol list from a shared archive.
18360 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18361
18362 # Symbols that should not be listed in the preloaded symbols.
18363 exclude_expsyms=$lt_exclude_expsyms_RC
18364
18365 # Symbols that must always be exported.
18366 include_expsyms=$lt_include_expsyms_RC
18367
18368 # ### END LIBTOOL TAG CONFIG: $tagname
18369
18370 __EOF__
18371
18372
18373 else
18374   # If there is no Makefile yet, we rely on a make rule to execute
18375   # `config.status --recheck' to rerun these tests and create the
18376   # libtool script then.
18377   test -f Makefile && make "$ltmain"
18378 fi
18379
18380
18381 ac_ext=c
18382 ac_cpp='$CPP $CPPFLAGS'
18383 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18384 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18385 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18386
18387 CC="$lt_save_CC"
18388
18389         ;;
18390
18391       *)
18392         { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
18393 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
18394    { (exit 1); exit 1; }; }
18395         ;;
18396       esac
18397
18398       # Append the new tag name to the list of available tags.
18399       if test -n "$tagname" ; then
18400       available_tags="$available_tags $tagname"
18401     fi
18402     fi
18403   done
18404   IFS="$lt_save_ifs"
18405
18406   # Now substitute the updated list of available tags.
18407   if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
18408     mv "${ofile}T" "$ofile"
18409     chmod +x "$ofile"
18410   else
18411     rm -f "${ofile}T"
18412     { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
18413 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
18414    { (exit 1); exit 1; }; }
18415   fi
18416 fi
18417
18418
18419
18420 # This can be used to rebuild libtool when needed
18421 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
18422
18423 # Always use our own libtool.
18424 LIBTOOL='$(SHELL) $(top_builddir)/mklib'
18425
18426 # Prevent multiple expansion
18427
18428
18429
18430
18431
18432
18433
18434
18435
18436
18437
18438
18439
18440
18441
18442
18443
18444
18445
18446
18447
18448 # Extract the first word of "pwd", so it can be a program name with args.
18449 set dummy pwd; ac_word=$2
18450 echo "$as_me:$LINENO: checking for $ac_word" >&5
18451 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18452 if test "${ac_cv_path_RPWD+set}" = set; then
18453   echo $ECHO_N "(cached) $ECHO_C" >&6
18454 else
18455   case $RPWD in
18456   [\\/]* | ?:[\\/]*)
18457   ac_cv_path_RPWD="$RPWD" # Let the user override the test with a path.
18458   ;;
18459   *)
18460   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18461 for as_dir in $PATH
18462 do
18463   IFS=$as_save_IFS
18464   test -z "$as_dir" && as_dir=.
18465   for ac_exec_ext in '' $ac_executable_extensions; do
18466   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18467     ac_cv_path_RPWD="$as_dir/$ac_word$ac_exec_ext"
18468     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18469     break 2
18470   fi
18471 done
18472 done
18473
18474   test -z "$ac_cv_path_RPWD" && ac_cv_path_RPWD="false"
18475   ;;
18476 esac
18477 fi
18478 RPWD=$ac_cv_path_RPWD
18479
18480 if test -n "$RPWD"; then
18481   echo "$as_me:$LINENO: result: $RPWD" >&5
18482 echo "${ECHO_T}$RPWD" >&6
18483 else
18484   echo "$as_me:$LINENO: result: no" >&5
18485 echo "${ECHO_T}no" >&6
18486 fi
18487
18488 if test ${RPWD} = "false"
18489 then
18490         { { echo "$as_me:$LINENO: error: pwd required but not found" >&5
18491 echo "$as_me: error: pwd required but not found" >&2;}
18492    { (exit 1); exit 1; }; }
18493 fi
18494
18495 # Extract the first word of "ar", so it can be a program name with args.
18496 set dummy ar; ac_word=$2
18497 echo "$as_me:$LINENO: checking for $ac_word" >&5
18498 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18499 if test "${ac_cv_path_AR+set}" = set; then
18500   echo $ECHO_N "(cached) $ECHO_C" >&6
18501 else
18502   case $AR in
18503   [\\/]* | ?:[\\/]*)
18504   ac_cv_path_AR="$AR" # Let the user override the test with a path.
18505   ;;
18506   *)
18507   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18508 for as_dir in $PATH
18509 do
18510   IFS=$as_save_IFS
18511   test -z "$as_dir" && as_dir=.
18512   for ac_exec_ext in '' $ac_executable_extensions; do
18513   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18514     ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext"
18515     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18516     break 2
18517   fi
18518 done
18519 done
18520
18521   test -z "$ac_cv_path_AR" && ac_cv_path_AR="false"
18522   ;;
18523 esac
18524 fi
18525 AR=$ac_cv_path_AR
18526
18527 if test -n "$AR"; then
18528   echo "$as_me:$LINENO: result: $AR" >&5
18529 echo "${ECHO_T}$AR" >&6
18530 else
18531   echo "$as_me:$LINENO: result: no" >&5
18532 echo "${ECHO_T}no" >&6
18533 fi
18534
18535 if test ${AR} = "false"
18536 then
18537         { { echo "$as_me:$LINENO: error: ar required but not found" >&5
18538 echo "$as_me: error: ar required but not found" >&2;}
18539    { (exit 1); exit 1; }; }
18540 fi
18541
18542 # Extract the first word of "sed", so it can be a program name with args.
18543 set dummy sed; ac_word=$2
18544 echo "$as_me:$LINENO: checking for $ac_word" >&5
18545 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18546 if test "${ac_cv_path_SED+set}" = set; then
18547   echo $ECHO_N "(cached) $ECHO_C" >&6
18548 else
18549   case $SED in
18550   [\\/]* | ?:[\\/]*)
18551   ac_cv_path_SED="$SED" # Let the user override the test with a path.
18552   ;;
18553   *)
18554   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18555 for as_dir in $PATH
18556 do
18557   IFS=$as_save_IFS
18558   test -z "$as_dir" && as_dir=.
18559   for ac_exec_ext in '' $ac_executable_extensions; do
18560   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18561     ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
18562     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18563     break 2
18564   fi
18565 done
18566 done
18567
18568   test -z "$ac_cv_path_SED" && ac_cv_path_SED="false"
18569   ;;
18570 esac
18571 fi
18572 SED=$ac_cv_path_SED
18573
18574 if test -n "$SED"; then
18575   echo "$as_me:$LINENO: result: $SED" >&5
18576 echo "${ECHO_T}$SED" >&6
18577 else
18578   echo "$as_me:$LINENO: result: no" >&5
18579 echo "${ECHO_T}no" >&6
18580 fi
18581
18582 if test ${SED} = "false"
18583 then
18584         { { echo "$as_me:$LINENO: error: sed required but not found" >&5
18585 echo "$as_me: error: sed required but not found" >&2;}
18586    { (exit 1); exit 1; }; }
18587 fi
18588
18589 # Extract the first word of "rm", so it can be a program name with args.
18590 set dummy rm; ac_word=$2
18591 echo "$as_me:$LINENO: checking for $ac_word" >&5
18592 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18593 if test "${ac_cv_path_RM+set}" = set; then
18594   echo $ECHO_N "(cached) $ECHO_C" >&6
18595 else
18596   case $RM in
18597   [\\/]* | ?:[\\/]*)
18598   ac_cv_path_RM="$RM" # Let the user override the test with a path.
18599   ;;
18600   *)
18601   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18602 for as_dir in $PATH
18603 do
18604   IFS=$as_save_IFS
18605   test -z "$as_dir" && as_dir=.
18606   for ac_exec_ext in '' $ac_executable_extensions; do
18607   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18608     ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
18609     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18610     break 2
18611   fi
18612 done
18613 done
18614
18615   test -z "$ac_cv_path_RM" && ac_cv_path_RM="false"
18616   ;;
18617 esac
18618 fi
18619 RM=$ac_cv_path_RM
18620
18621 if test -n "$RM"; then
18622   echo "$as_me:$LINENO: result: $RM" >&5
18623 echo "${ECHO_T}$RM" >&6
18624 else
18625   echo "$as_me:$LINENO: result: no" >&5
18626 echo "${ECHO_T}no" >&6
18627 fi
18628
18629 if test ${RM} = "false"
18630 then
18631         { { echo "$as_me:$LINENO: error: rm required but not found" >&5
18632 echo "$as_me: error: rm required but not found" >&2;}
18633    { (exit 1); exit 1; }; }
18634 fi
18635
18636 # Extract the first word of "echo", so it can be a program name with args.
18637 set dummy echo; ac_word=$2
18638 echo "$as_me:$LINENO: checking for $ac_word" >&5
18639 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18640 if test "${ac_cv_path_ECHO+set}" = set; then
18641   echo $ECHO_N "(cached) $ECHO_C" >&6
18642 else
18643   case $ECHO in
18644   [\\/]* | ?:[\\/]*)
18645   ac_cv_path_ECHO="$ECHO" # Let the user override the test with a path.
18646   ;;
18647   *)
18648   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18649 for as_dir in $PATH
18650 do
18651   IFS=$as_save_IFS
18652   test -z "$as_dir" && as_dir=.
18653   for ac_exec_ext in '' $ac_executable_extensions; do
18654   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18655     ac_cv_path_ECHO="$as_dir/$ac_word$ac_exec_ext"
18656     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18657     break 2
18658   fi
18659 done
18660 done
18661
18662   test -z "$ac_cv_path_ECHO" && ac_cv_path_ECHO="false"
18663   ;;
18664 esac
18665 fi
18666 ECHO=$ac_cv_path_ECHO
18667
18668 if test -n "$ECHO"; then
18669   echo "$as_me:$LINENO: result: $ECHO" >&5
18670 echo "${ECHO_T}$ECHO" >&6
18671 else
18672   echo "$as_me:$LINENO: result: no" >&5
18673 echo "${ECHO_T}no" >&6
18674 fi
18675
18676 if test ${ECHO} = "false"
18677 then
18678         { { echo "$as_me:$LINENO: error: echo required but not found" >&5
18679 echo "$as_me: error: echo required but not found" >&2;}
18680    { (exit 1); exit 1; }; }
18681 fi
18682
18683 # Extract the first word of "mkdir", so it can be a program name with args.
18684 set dummy mkdir; ac_word=$2
18685 echo "$as_me:$LINENO: checking for $ac_word" >&5
18686 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18687 if test "${ac_cv_path_MKDIR+set}" = set; then
18688   echo $ECHO_N "(cached) $ECHO_C" >&6
18689 else
18690   case $MKDIR in
18691   [\\/]* | ?:[\\/]*)
18692   ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
18693   ;;
18694   *)
18695   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18696 for as_dir in $PATH
18697 do
18698   IFS=$as_save_IFS
18699   test -z "$as_dir" && as_dir=.
18700   for ac_exec_ext in '' $ac_executable_extensions; do
18701   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18702     ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
18703     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18704     break 2
18705   fi
18706 done
18707 done
18708
18709   test -z "$ac_cv_path_MKDIR" && ac_cv_path_MKDIR="false"
18710   ;;
18711 esac
18712 fi
18713 MKDIR=$ac_cv_path_MKDIR
18714
18715 if test -n "$MKDIR"; then
18716   echo "$as_me:$LINENO: result: $MKDIR" >&5
18717 echo "${ECHO_T}$MKDIR" >&6
18718 else
18719   echo "$as_me:$LINENO: result: no" >&5
18720 echo "${ECHO_T}no" >&6
18721 fi
18722
18723 if test ${MKDIR} = "false"
18724 then
18725         { { echo "$as_me:$LINENO: error: mkdir required but not found" >&5
18726 echo "$as_me: error: mkdir required but not found" >&2;}
18727    { (exit 1); exit 1; }; }
18728 fi
18729
18730 # Extract the first word of "date", so it can be a program name with args.
18731 set dummy date; ac_word=$2
18732 echo "$as_me:$LINENO: checking for $ac_word" >&5
18733 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18734 if test "${ac_cv_path_DATE+set}" = set; then
18735   echo $ECHO_N "(cached) $ECHO_C" >&6
18736 else
18737   case $DATE in
18738   [\\/]* | ?:[\\/]*)
18739   ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
18740   ;;
18741   *)
18742   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18743 for as_dir in $PATH
18744 do
18745   IFS=$as_save_IFS
18746   test -z "$as_dir" && as_dir=.
18747   for ac_exec_ext in '' $ac_executable_extensions; do
18748   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18749     ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
18750     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18751     break 2
18752   fi
18753 done
18754 done
18755
18756   test -z "$ac_cv_path_DATE" && ac_cv_path_DATE="false"
18757   ;;
18758 esac
18759 fi
18760 DATE=$ac_cv_path_DATE
18761
18762 if test -n "$DATE"; then
18763   echo "$as_me:$LINENO: result: $DATE" >&5
18764 echo "${ECHO_T}$DATE" >&6
18765 else
18766   echo "$as_me:$LINENO: result: no" >&5
18767 echo "${ECHO_T}no" >&6
18768 fi
18769
18770 if test ${DATE} = "false"
18771 then
18772         { { echo "$as_me:$LINENO: error: date required but not found" >&5
18773 echo "$as_me: error: date required but not found" >&2;}
18774    { (exit 1); exit 1; }; }
18775 fi
18776
18777 # Extract the first word of "mv", so it can be a program name with args.
18778 set dummy mv; ac_word=$2
18779 echo "$as_me:$LINENO: checking for $ac_word" >&5
18780 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18781 if test "${ac_cv_path_MV+set}" = set; then
18782   echo $ECHO_N "(cached) $ECHO_C" >&6
18783 else
18784   case $MV in
18785   [\\/]* | ?:[\\/]*)
18786   ac_cv_path_MV="$MV" # Let the user override the test with a path.
18787   ;;
18788   *)
18789   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18790 for as_dir in $PATH
18791 do
18792   IFS=$as_save_IFS
18793   test -z "$as_dir" && as_dir=.
18794   for ac_exec_ext in '' $ac_executable_extensions; do
18795   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18796     ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
18797     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18798     break 2
18799   fi
18800 done
18801 done
18802
18803   test -z "$ac_cv_path_MV" && ac_cv_path_MV="false"
18804   ;;
18805 esac
18806 fi
18807 MV=$ac_cv_path_MV
18808
18809 if test -n "$MV"; then
18810   echo "$as_me:$LINENO: result: $MV" >&5
18811 echo "${ECHO_T}$MV" >&6
18812 else
18813   echo "$as_me:$LINENO: result: no" >&5
18814 echo "${ECHO_T}no" >&6
18815 fi
18816
18817 if test ${MV} = "false"
18818 then
18819         { { echo "$as_me:$LINENO: error: mv required but not found" >&5
18820 echo "$as_me: error: mv required but not found" >&2;}
18821    { (exit 1); exit 1; }; }
18822 fi
18823
18824 # Extract the first word of "dot", so it can be a program name with args.
18825 set dummy dot; ac_word=$2
18826 echo "$as_me:$LINENO: checking for $ac_word" >&5
18827 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18828 if test "${ac_cv_path_DOT+set}" = set; then
18829   echo $ECHO_N "(cached) $ECHO_C" >&6
18830 else
18831   case $DOT in
18832   [\\/]* | ?:[\\/]*)
18833   ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
18834   ;;
18835   *)
18836   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18837 for as_dir in $PATH
18838 do
18839   IFS=$as_save_IFS
18840   test -z "$as_dir" && as_dir=.
18841   for ac_exec_ext in '' $ac_executable_extensions; do
18842   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18843     ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
18844     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18845     break 2
18846   fi
18847 done
18848 done
18849
18850   test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="false"
18851   ;;
18852 esac
18853 fi
18854 DOT=$ac_cv_path_DOT
18855
18856 if test -n "$DOT"; then
18857   echo "$as_me:$LINENO: result: $DOT" >&5
18858 echo "${ECHO_T}$DOT" >&6
18859 else
18860   echo "$as_me:$LINENO: result: no" >&5
18861 echo "${ECHO_T}no" >&6
18862 fi
18863
18864
18865 # Extract the first word of "etags", so it can be a program name with args.
18866 set dummy etags; ac_word=$2
18867 echo "$as_me:$LINENO: checking for $ac_word" >&5
18868 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18869 if test "${ac_cv_path_ETAGS+set}" = set; then
18870   echo $ECHO_N "(cached) $ECHO_C" >&6
18871 else
18872   case $ETAGS in
18873   [\\/]* | ?:[\\/]*)
18874   ac_cv_path_ETAGS="$ETAGS" # Let the user override the test with a path.
18875   ;;
18876   *)
18877   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18878 for as_dir in $PATH
18879 do
18880   IFS=$as_save_IFS
18881   test -z "$as_dir" && as_dir=.
18882   for ac_exec_ext in '' $ac_executable_extensions; do
18883   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18884     ac_cv_path_ETAGS="$as_dir/$ac_word$ac_exec_ext"
18885     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18886     break 2
18887   fi
18888 done
18889 done
18890
18891   test -z "$ac_cv_path_ETAGS" && ac_cv_path_ETAGS="false"
18892   ;;
18893 esac
18894 fi
18895 ETAGS=$ac_cv_path_ETAGS
18896
18897 if test -n "$ETAGS"; then
18898   echo "$as_me:$LINENO: result: $ETAGS" >&5
18899 echo "${ECHO_T}$ETAGS" >&6
18900 else
18901   echo "$as_me:$LINENO: result: no" >&5
18902 echo "${ECHO_T}no" >&6
18903 fi
18904
18905
18906 # Extract the first word of "purify", so it can be a program name with args.
18907 set dummy purify; ac_word=$2
18908 echo "$as_me:$LINENO: checking for $ac_word" >&5
18909 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18910 if test "${ac_cv_path_PURIFY+set}" = set; then
18911   echo $ECHO_N "(cached) $ECHO_C" >&6
18912 else
18913   case $PURIFY in
18914   [\\/]* | ?:[\\/]*)
18915   ac_cv_path_PURIFY="$PURIFY" # Let the user override the test with a path.
18916   ;;
18917   *)
18918   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18919 for as_dir in $PATH
18920 do
18921   IFS=$as_save_IFS
18922   test -z "$as_dir" && as_dir=.
18923   for ac_exec_ext in '' $ac_executable_extensions; do
18924   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18925     ac_cv_path_PURIFY="$as_dir/$ac_word$ac_exec_ext"
18926     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18927     break 2
18928   fi
18929 done
18930 done
18931
18932   test -z "$ac_cv_path_PURIFY" && ac_cv_path_PURIFY="false"
18933   ;;
18934 esac
18935 fi
18936 PURIFY=$ac_cv_path_PURIFY
18937
18938 if test -n "$PURIFY"; then
18939   echo "$as_me:$LINENO: result: $PURIFY" >&5
18940 echo "${ECHO_T}$PURIFY" >&6
18941 else
18942   echo "$as_me:$LINENO: result: no" >&5
18943 echo "${ECHO_T}no" >&6
18944 fi
18945
18946
18947 # Extract the first word of "python", so it can be a program name with args.
18948 set dummy python; ac_word=$2
18949 echo "$as_me:$LINENO: checking for $ac_word" >&5
18950 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18951 if test "${ac_cv_path_PYTHON+set}" = set; then
18952   echo $ECHO_N "(cached) $ECHO_C" >&6
18953 else
18954   case $PYTHON in
18955   [\\/]* | ?:[\\/]*)
18956   ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
18957   ;;
18958   *)
18959   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18960 for as_dir in $PATH
18961 do
18962   IFS=$as_save_IFS
18963   test -z "$as_dir" && as_dir=.
18964   for ac_exec_ext in '' $ac_executable_extensions; do
18965   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18966     ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
18967     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18968     break 2
18969   fi
18970 done
18971 done
18972
18973   test -z "$ac_cv_path_PYTHON" && ac_cv_path_PYTHON="false"
18974   ;;
18975 esac
18976 fi
18977 PYTHON=$ac_cv_path_PYTHON
18978
18979 if test -n "$PYTHON"; then
18980   echo "$as_me:$LINENO: result: $PYTHON" >&5
18981 echo "${ECHO_T}$PYTHON" >&6
18982 else
18983   echo "$as_me:$LINENO: result: no" >&5
18984 echo "${ECHO_T}no" >&6
18985 fi
18986
18987 if test ${PYTHON} = "false"
18988 then
18989         { echo "$as_me:$LINENO: WARNING: python required but not found" >&5
18990 echo "$as_me: WARNING: python required but not found" >&2;}
18991 fi
18992
18993 # Extract the first word of "qmtest", so it can be a program name with args.
18994 set dummy qmtest; ac_word=$2
18995 echo "$as_me:$LINENO: checking for $ac_word" >&5
18996 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18997 if test "${ac_cv_path_QMTEST+set}" = set; then
18998   echo $ECHO_N "(cached) $ECHO_C" >&6
18999 else
19000   case $QMTEST in
19001   [\\/]* | ?:[\\/]*)
19002   ac_cv_path_QMTEST="$QMTEST" # Let the user override the test with a path.
19003   ;;
19004   *)
19005   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19006 for as_dir in $PATH
19007 do
19008   IFS=$as_save_IFS
19009   test -z "$as_dir" && as_dir=.
19010   for ac_exec_ext in '' $ac_executable_extensions; do
19011   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19012     ac_cv_path_QMTEST="$as_dir/$ac_word$ac_exec_ext"
19013     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19014     break 2
19015   fi
19016 done
19017 done
19018
19019   test -z "$ac_cv_path_QMTEST" && ac_cv_path_QMTEST="false"
19020   ;;
19021 esac
19022 fi
19023 QMTEST=$ac_cv_path_QMTEST
19024
19025 if test -n "$QMTEST"; then
19026   echo "$as_me:$LINENO: result: $QMTEST" >&5
19027 echo "${ECHO_T}$QMTEST" >&6
19028 else
19029   echo "$as_me:$LINENO: result: no" >&5
19030 echo "${ECHO_T}no" >&6
19031 fi
19032
19033 if test ${QMTEST} = "false"
19034 then
19035         { echo "$as_me:$LINENO: WARNING: qmtest required but not found" >&5
19036 echo "$as_me: WARNING: qmtest required but not found" >&2;}
19037 fi
19038
19039 pyversion=`$PYTHON -V 2>&1 | cut -d\  -f2`
19040 pymajor=`echo $pyversion | cut -d. -f1`
19041 pyminor=`echo $pyversion | cut -d. -f2`
19042
19043 if test "$pymajor" -ge "2"
19044 then
19045         if test "$pymajor" -eq "2"
19046         then
19047                 if test "$pyminor" -lt "2"
19048                 then
19049                         { { echo "$as_me:$LINENO: error: Python 2.2 or greater required" >&5
19050 echo "$as_me: error: Python 2.2 or greater required" >&2;}
19051    { (exit 1); exit 1; }; }
19052                 fi
19053         fi
19054 else
19055         { { echo "$as_me:$LINENO: error: Python 2.2 or greater required" >&5
19056 echo "$as_me: error: Python 2.2 or greater required" >&2;}
19057    { (exit 1); exit 1; }; }
19058 fi
19059
19060
19061
19062
19063
19064 echo "$as_me:$LINENO: checking for elf_begin in -lelf" >&5
19065 echo $ECHO_N "checking for elf_begin in -lelf... $ECHO_C" >&6
19066 if test "${ac_cv_lib_elf_elf_begin+set}" = set; then
19067   echo $ECHO_N "(cached) $ECHO_C" >&6
19068 else
19069   ac_check_lib_save_LIBS=$LIBS
19070 LIBS="-lelf  $LIBS"
19071 cat >conftest.$ac_ext <<_ACEOF
19072 #line $LINENO "configure"
19073 /* confdefs.h.  */
19074 _ACEOF
19075 cat confdefs.h >>conftest.$ac_ext
19076 cat >>conftest.$ac_ext <<_ACEOF
19077 /* end confdefs.h.  */
19078
19079 /* Override any gcc2 internal prototype to avoid an error.  */
19080 #ifdef __cplusplus
19081 extern "C"
19082 #endif
19083 /* We use char because int might match the return type of a gcc2
19084    builtin and then its argument prototype would still apply.  */
19085 char elf_begin ();
19086 int
19087 main ()
19088 {
19089 elf_begin ();
19090   ;
19091   return 0;
19092 }
19093 _ACEOF
19094 rm -f conftest.$ac_objext conftest$ac_exeext
19095 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19096   (eval $ac_link) 2>&5
19097   ac_status=$?
19098   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19099   (exit $ac_status); } &&
19100          { ac_try='test -s conftest$ac_exeext'
19101   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19102   (eval $ac_try) 2>&5
19103   ac_status=$?
19104   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19105   (exit $ac_status); }; }; then
19106   ac_cv_lib_elf_elf_begin=yes
19107 else
19108   echo "$as_me: failed program was:" >&5
19109 sed 's/^/| /' conftest.$ac_ext >&5
19110
19111 ac_cv_lib_elf_elf_begin=no
19112 fi
19113 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
19114 LIBS=$ac_check_lib_save_LIBS
19115 fi
19116 echo "$as_me:$LINENO: result: $ac_cv_lib_elf_elf_begin" >&5
19117 echo "${ECHO_T}$ac_cv_lib_elf_elf_begin" >&6
19118 if test $ac_cv_lib_elf_elf_begin = yes; then
19119   cat >>confdefs.h <<_ACEOF
19120 #define HAVE_LIBELF 1
19121 _ACEOF
19122
19123   LIBS="-lelf $LIBS"
19124
19125 fi
19126
19127
19128 echo "$as_me:$LINENO: checking for library containing dlopen" >&5
19129 echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6
19130 if test "${ac_cv_search_dlopen+set}" = set; then
19131   echo $ECHO_N "(cached) $ECHO_C" >&6
19132 else
19133   ac_func_search_save_LIBS=$LIBS
19134 ac_cv_search_dlopen=no
19135 cat >conftest.$ac_ext <<_ACEOF
19136 #line $LINENO "configure"
19137 /* confdefs.h.  */
19138 _ACEOF
19139 cat confdefs.h >>conftest.$ac_ext
19140 cat >>conftest.$ac_ext <<_ACEOF
19141 /* end confdefs.h.  */
19142
19143 /* Override any gcc2 internal prototype to avoid an error.  */
19144 #ifdef __cplusplus
19145 extern "C"
19146 #endif
19147 /* We use char because int might match the return type of a gcc2
19148    builtin and then its argument prototype would still apply.  */
19149 char dlopen ();
19150 int
19151 main ()
19152 {
19153 dlopen ();
19154   ;
19155   return 0;
19156 }
19157 _ACEOF
19158 rm -f conftest.$ac_objext conftest$ac_exeext
19159 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19160   (eval $ac_link) 2>&5
19161   ac_status=$?
19162   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19163   (exit $ac_status); } &&
19164          { ac_try='test -s conftest$ac_exeext'
19165   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19166   (eval $ac_try) 2>&5
19167   ac_status=$?
19168   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19169   (exit $ac_status); }; }; then
19170   ac_cv_search_dlopen="none required"
19171 else
19172   echo "$as_me: failed program was:" >&5
19173 sed 's/^/| /' conftest.$ac_ext >&5
19174
19175 fi
19176 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
19177 if test "$ac_cv_search_dlopen" = no; then
19178   for ac_lib in dl; do
19179     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
19180     cat >conftest.$ac_ext <<_ACEOF
19181 #line $LINENO "configure"
19182 /* confdefs.h.  */
19183 _ACEOF
19184 cat confdefs.h >>conftest.$ac_ext
19185 cat >>conftest.$ac_ext <<_ACEOF
19186 /* end confdefs.h.  */
19187
19188 /* Override any gcc2 internal prototype to avoid an error.  */
19189 #ifdef __cplusplus
19190 extern "C"
19191 #endif
19192 /* We use char because int might match the return type of a gcc2
19193    builtin and then its argument prototype would still apply.  */
19194 char dlopen ();
19195 int
19196 main ()
19197 {
19198 dlopen ();
19199   ;
19200   return 0;
19201 }
19202 _ACEOF
19203 rm -f conftest.$ac_objext conftest$ac_exeext
19204 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19205   (eval $ac_link) 2>&5
19206   ac_status=$?
19207   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19208   (exit $ac_status); } &&
19209          { ac_try='test -s conftest$ac_exeext'
19210   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19211   (eval $ac_try) 2>&5
19212   ac_status=$?
19213   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19214   (exit $ac_status); }; }; then
19215   ac_cv_search_dlopen="-l$ac_lib"
19216 break
19217 else
19218   echo "$as_me: failed program was:" >&5
19219 sed 's/^/| /' conftest.$ac_ext >&5
19220
19221 fi
19222 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
19223   done
19224 fi
19225 LIBS=$ac_func_search_save_LIBS
19226 fi
19227 echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
19228 echo "${ECHO_T}$ac_cv_search_dlopen" >&6
19229 if test "$ac_cv_search_dlopen" != no; then
19230   test "$ac_cv_search_dlopen" = "none required" || LIBS="$ac_cv_search_dlopen $LIBS"
19231
19232 else
19233   { { echo "$as_me:$LINENO: error: dlopen() required but not found" >&5
19234 echo "$as_me: error: dlopen() required but not found" >&2;}
19235    { (exit 1); exit 1; }; }
19236 fi
19237
19238
19239 echo "$as_me:$LINENO: checking for library containing mallinfo" >&5
19240 echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6
19241 if test "${ac_cv_search_mallinfo+set}" = set; then
19242   echo $ECHO_N "(cached) $ECHO_C" >&6
19243 else
19244   ac_func_search_save_LIBS=$LIBS
19245 ac_cv_search_mallinfo=no
19246 cat >conftest.$ac_ext <<_ACEOF
19247 #line $LINENO "configure"
19248 /* confdefs.h.  */
19249 _ACEOF
19250 cat confdefs.h >>conftest.$ac_ext
19251 cat >>conftest.$ac_ext <<_ACEOF
19252 /* end confdefs.h.  */
19253
19254 /* Override any gcc2 internal prototype to avoid an error.  */
19255 #ifdef __cplusplus
19256 extern "C"
19257 #endif
19258 /* We use char because int might match the return type of a gcc2
19259    builtin and then its argument prototype would still apply.  */
19260 char mallinfo ();
19261 int
19262 main ()
19263 {
19264 mallinfo ();
19265   ;
19266   return 0;
19267 }
19268 _ACEOF
19269 rm -f conftest.$ac_objext conftest$ac_exeext
19270 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19271   (eval $ac_link) 2>&5
19272   ac_status=$?
19273   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19274   (exit $ac_status); } &&
19275          { ac_try='test -s conftest$ac_exeext'
19276   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19277   (eval $ac_try) 2>&5
19278   ac_status=$?
19279   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19280   (exit $ac_status); }; }; then
19281   ac_cv_search_mallinfo="none required"
19282 else
19283   echo "$as_me: failed program was:" >&5
19284 sed 's/^/| /' conftest.$ac_ext >&5
19285
19286 fi
19287 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
19288 if test "$ac_cv_search_mallinfo" = no; then
19289   for ac_lib in malloc; do
19290     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
19291     cat >conftest.$ac_ext <<_ACEOF
19292 #line $LINENO "configure"
19293 /* confdefs.h.  */
19294 _ACEOF
19295 cat confdefs.h >>conftest.$ac_ext
19296 cat >>conftest.$ac_ext <<_ACEOF
19297 /* end confdefs.h.  */
19298
19299 /* Override any gcc2 internal prototype to avoid an error.  */
19300 #ifdef __cplusplus
19301 extern "C"
19302 #endif
19303 /* We use char because int might match the return type of a gcc2
19304    builtin and then its argument prototype would still apply.  */
19305 char mallinfo ();
19306 int
19307 main ()
19308 {
19309 mallinfo ();
19310   ;
19311   return 0;
19312 }
19313 _ACEOF
19314 rm -f conftest.$ac_objext conftest$ac_exeext
19315 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19316   (eval $ac_link) 2>&5
19317   ac_status=$?
19318   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19319   (exit $ac_status); } &&
19320          { ac_try='test -s conftest$ac_exeext'
19321   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19322   (eval $ac_try) 2>&5
19323   ac_status=$?
19324   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19325   (exit $ac_status); }; }; then
19326   ac_cv_search_mallinfo="-l$ac_lib"
19327 break
19328 else
19329   echo "$as_me: failed program was:" >&5
19330 sed 's/^/| /' conftest.$ac_ext >&5
19331
19332 fi
19333 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
19334   done
19335 fi
19336 LIBS=$ac_func_search_save_LIBS
19337 fi
19338 echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5
19339 echo "${ECHO_T}$ac_cv_search_mallinfo" >&6
19340 if test "$ac_cv_search_mallinfo" != no; then
19341   test "$ac_cv_search_mallinfo" = "none required" || LIBS="$ac_cv_search_mallinfo $LIBS"
19342   cat >>confdefs.h <<\_ACEOF
19343 #define HAVE_MALLINFO 1
19344 _ACEOF
19345
19346 fi
19347
19348
19349
19350 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
19351 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
19352 if test "${ac_cv_header_stdc+set}" = set; then
19353   echo $ECHO_N "(cached) $ECHO_C" >&6
19354 else
19355   cat >conftest.$ac_ext <<_ACEOF
19356 #line $LINENO "configure"
19357 /* confdefs.h.  */
19358 _ACEOF
19359 cat confdefs.h >>conftest.$ac_ext
19360 cat >>conftest.$ac_ext <<_ACEOF
19361 /* end confdefs.h.  */
19362 #include <stdlib.h>
19363 #include <stdarg.h>
19364 #include <string.h>
19365 #include <float.h>
19366
19367 int
19368 main ()
19369 {
19370
19371   ;
19372   return 0;
19373 }
19374 _ACEOF
19375 rm -f conftest.$ac_objext
19376 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19377   (eval $ac_compile) 2>&5
19378   ac_status=$?
19379   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19380   (exit $ac_status); } &&
19381          { ac_try='test -s conftest.$ac_objext'
19382   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19383   (eval $ac_try) 2>&5
19384   ac_status=$?
19385   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19386   (exit $ac_status); }; }; then
19387   ac_cv_header_stdc=yes
19388 else
19389   echo "$as_me: failed program was:" >&5
19390 sed 's/^/| /' conftest.$ac_ext >&5
19391
19392 ac_cv_header_stdc=no
19393 fi
19394 rm -f conftest.$ac_objext conftest.$ac_ext
19395
19396 if test $ac_cv_header_stdc = yes; then
19397   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
19398   cat >conftest.$ac_ext <<_ACEOF
19399 #line $LINENO "configure"
19400 /* confdefs.h.  */
19401 _ACEOF
19402 cat confdefs.h >>conftest.$ac_ext
19403 cat >>conftest.$ac_ext <<_ACEOF
19404 /* end confdefs.h.  */
19405 #include <string.h>
19406
19407 _ACEOF
19408 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19409   $EGREP "memchr" >/dev/null 2>&1; then
19410   :
19411 else
19412   ac_cv_header_stdc=no
19413 fi
19414 rm -f conftest*
19415
19416 fi
19417
19418 if test $ac_cv_header_stdc = yes; then
19419   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
19420   cat >conftest.$ac_ext <<_ACEOF
19421 #line $LINENO "configure"
19422 /* confdefs.h.  */
19423 _ACEOF
19424 cat confdefs.h >>conftest.$ac_ext
19425 cat >>conftest.$ac_ext <<_ACEOF
19426 /* end confdefs.h.  */
19427 #include <stdlib.h>
19428
19429 _ACEOF
19430 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19431   $EGREP "free" >/dev/null 2>&1; then
19432   :
19433 else
19434   ac_cv_header_stdc=no
19435 fi
19436 rm -f conftest*
19437
19438 fi
19439
19440 if test $ac_cv_header_stdc = yes; then
19441   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
19442   if test "$cross_compiling" = yes; then
19443   :
19444 else
19445   cat >conftest.$ac_ext <<_ACEOF
19446 #line $LINENO "configure"
19447 /* confdefs.h.  */
19448 _ACEOF
19449 cat confdefs.h >>conftest.$ac_ext
19450 cat >>conftest.$ac_ext <<_ACEOF
19451 /* end confdefs.h.  */
19452 #include <ctype.h>
19453 #if ((' ' & 0x0FF) == 0x020)
19454 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
19455 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
19456 #else
19457 # define ISLOWER(c) \
19458                    (('a' <= (c) && (c) <= 'i') \
19459                      || ('j' <= (c) && (c) <= 'r') \
19460                      || ('s' <= (c) && (c) <= 'z'))
19461 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
19462 #endif
19463
19464 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
19465 int
19466 main ()
19467 {
19468   int i;
19469   for (i = 0; i < 256; i++)
19470     if (XOR (islower (i), ISLOWER (i))
19471         || toupper (i) != TOUPPER (i))
19472       exit(2);
19473   exit (0);
19474 }
19475 _ACEOF
19476 rm -f conftest$ac_exeext
19477 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19478   (eval $ac_link) 2>&5
19479   ac_status=$?
19480   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19481   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19482   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19483   (eval $ac_try) 2>&5
19484   ac_status=$?
19485   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19486   (exit $ac_status); }; }; then
19487   :
19488 else
19489   echo "$as_me: program exited with status $ac_status" >&5
19490 echo "$as_me: failed program was:" >&5
19491 sed 's/^/| /' conftest.$ac_ext >&5
19492
19493 ( exit $ac_status )
19494 ac_cv_header_stdc=no
19495 fi
19496 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19497 fi
19498 fi
19499 fi
19500 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
19501 echo "${ECHO_T}$ac_cv_header_stdc" >&6
19502 if test $ac_cv_header_stdc = yes; then
19503
19504 cat >>confdefs.h <<\_ACEOF
19505 #define STDC_HEADERS 1
19506 _ACEOF
19507
19508 fi
19509
19510 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
19511 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
19512 if test "${ac_cv_header_sys_wait_h+set}" = set; then
19513   echo $ECHO_N "(cached) $ECHO_C" >&6
19514 else
19515   cat >conftest.$ac_ext <<_ACEOF
19516 #line $LINENO "configure"
19517 /* confdefs.h.  */
19518 _ACEOF
19519 cat confdefs.h >>conftest.$ac_ext
19520 cat >>conftest.$ac_ext <<_ACEOF
19521 /* end confdefs.h.  */
19522 #include <sys/types.h>
19523 #include <sys/wait.h>
19524 #ifndef WEXITSTATUS
19525 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
19526 #endif
19527 #ifndef WIFEXITED
19528 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
19529 #endif
19530
19531 int
19532 main ()
19533 {
19534   int s;
19535   wait (&s);
19536   s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
19537   ;
19538   return 0;
19539 }
19540 _ACEOF
19541 rm -f conftest.$ac_objext
19542 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19543   (eval $ac_compile) 2>&5
19544   ac_status=$?
19545   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19546   (exit $ac_status); } &&
19547          { ac_try='test -s conftest.$ac_objext'
19548   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19549   (eval $ac_try) 2>&5
19550   ac_status=$?
19551   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19552   (exit $ac_status); }; }; then
19553   ac_cv_header_sys_wait_h=yes
19554 else
19555   echo "$as_me: failed program was:" >&5
19556 sed 's/^/| /' conftest.$ac_ext >&5
19557
19558 ac_cv_header_sys_wait_h=no
19559 fi
19560 rm -f conftest.$ac_objext conftest.$ac_ext
19561 fi
19562 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
19563 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
19564 if test $ac_cv_header_sys_wait_h = yes; then
19565
19566 cat >>confdefs.h <<\_ACEOF
19567 #define HAVE_SYS_WAIT_H 1
19568 _ACEOF
19569
19570 fi
19571
19572
19573
19574
19575
19576
19577
19578
19579
19580
19581 for ac_header in assert.h fcntl.h limits.h sys/time.h unistd.h errno.h signal.h math.h
19582 do
19583 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19584 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19585   echo "$as_me:$LINENO: checking for $ac_header" >&5
19586 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19587 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19588   echo $ECHO_N "(cached) $ECHO_C" >&6
19589 fi
19590 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19591 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19592 else
19593   # Is the header compilable?
19594 echo "$as_me:$LINENO: checking $ac_header usability" >&5
19595 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19596 cat >conftest.$ac_ext <<_ACEOF
19597 #line $LINENO "configure"
19598 /* confdefs.h.  */
19599 _ACEOF
19600 cat confdefs.h >>conftest.$ac_ext
19601 cat >>conftest.$ac_ext <<_ACEOF
19602 /* end confdefs.h.  */
19603 $ac_includes_default
19604 #include <$ac_header>
19605 _ACEOF
19606 rm -f conftest.$ac_objext
19607 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19608   (eval $ac_compile) 2>&5
19609   ac_status=$?
19610   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19611   (exit $ac_status); } &&
19612          { ac_try='test -s conftest.$ac_objext'
19613   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19614   (eval $ac_try) 2>&5
19615   ac_status=$?
19616   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19617   (exit $ac_status); }; }; then
19618   ac_header_compiler=yes
19619 else
19620   echo "$as_me: failed program was:" >&5
19621 sed 's/^/| /' conftest.$ac_ext >&5
19622
19623 ac_header_compiler=no
19624 fi
19625 rm -f conftest.$ac_objext conftest.$ac_ext
19626 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19627 echo "${ECHO_T}$ac_header_compiler" >&6
19628
19629 # Is the header present?
19630 echo "$as_me:$LINENO: checking $ac_header presence" >&5
19631 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19632 cat >conftest.$ac_ext <<_ACEOF
19633 #line $LINENO "configure"
19634 /* confdefs.h.  */
19635 _ACEOF
19636 cat confdefs.h >>conftest.$ac_ext
19637 cat >>conftest.$ac_ext <<_ACEOF
19638 /* end confdefs.h.  */
19639 #include <$ac_header>
19640 _ACEOF
19641 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19642   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19643   ac_status=$?
19644   grep -v '^ *+' conftest.er1 >conftest.err
19645   rm -f conftest.er1
19646   cat conftest.err >&5
19647   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19648   (exit $ac_status); } >/dev/null; then
19649   if test -s conftest.err; then
19650     ac_cpp_err=$ac_c_preproc_warn_flag
19651   else
19652     ac_cpp_err=
19653   fi
19654 else
19655   ac_cpp_err=yes
19656 fi
19657 if test -z "$ac_cpp_err"; then
19658   ac_header_preproc=yes
19659 else
19660   echo "$as_me: failed program was:" >&5
19661 sed 's/^/| /' conftest.$ac_ext >&5
19662
19663   ac_header_preproc=no
19664 fi
19665 rm -f conftest.err conftest.$ac_ext
19666 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19667 echo "${ECHO_T}$ac_header_preproc" >&6
19668
19669 # So?  What about this header?
19670 case $ac_header_compiler:$ac_header_preproc in
19671   yes:no )
19672     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19673 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19674     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19675 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19676     (
19677       cat <<\_ASBOX
19678 ## ------------------------------------ ##
19679 ## Report this to bug-autoconf@gnu.org. ##
19680 ## ------------------------------------ ##
19681 _ASBOX
19682     ) |
19683       sed "s/^/$as_me: WARNING:     /" >&2
19684     ;;
19685   no:yes )
19686     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19687 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19688     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19689 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19690     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19691 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19692     (
19693       cat <<\_ASBOX
19694 ## ------------------------------------ ##
19695 ## Report this to bug-autoconf@gnu.org. ##
19696 ## ------------------------------------ ##
19697 _ASBOX
19698     ) |
19699       sed "s/^/$as_me: WARNING:     /" >&2
19700     ;;
19701 esac
19702 echo "$as_me:$LINENO: checking for $ac_header" >&5
19703 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19704 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19705   echo $ECHO_N "(cached) $ECHO_C" >&6
19706 else
19707   eval "$as_ac_Header=$ac_header_preproc"
19708 fi
19709 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19710 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19711
19712 fi
19713 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19714   cat >>confdefs.h <<_ACEOF
19715 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19716 _ACEOF
19717
19718 fi
19719
19720 done
19721
19722
19723
19724
19725
19726
19727 for ac_header in malloc.h strings.h sys/mman.h sys/resource.h
19728 do
19729 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19730 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19731   echo "$as_me:$LINENO: checking for $ac_header" >&5
19732 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19733 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19734   echo $ECHO_N "(cached) $ECHO_C" >&6
19735 fi
19736 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19737 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19738 else
19739   # Is the header compilable?
19740 echo "$as_me:$LINENO: checking $ac_header usability" >&5
19741 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19742 cat >conftest.$ac_ext <<_ACEOF
19743 #line $LINENO "configure"
19744 /* confdefs.h.  */
19745 _ACEOF
19746 cat confdefs.h >>conftest.$ac_ext
19747 cat >>conftest.$ac_ext <<_ACEOF
19748 /* end confdefs.h.  */
19749 $ac_includes_default
19750 #include <$ac_header>
19751 _ACEOF
19752 rm -f conftest.$ac_objext
19753 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19754   (eval $ac_compile) 2>&5
19755   ac_status=$?
19756   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19757   (exit $ac_status); } &&
19758          { ac_try='test -s conftest.$ac_objext'
19759   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19760   (eval $ac_try) 2>&5
19761   ac_status=$?
19762   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19763   (exit $ac_status); }; }; then
19764   ac_header_compiler=yes
19765 else
19766   echo "$as_me: failed program was:" >&5
19767 sed 's/^/| /' conftest.$ac_ext >&5
19768
19769 ac_header_compiler=no
19770 fi
19771 rm -f conftest.$ac_objext conftest.$ac_ext
19772 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19773 echo "${ECHO_T}$ac_header_compiler" >&6
19774
19775 # Is the header present?
19776 echo "$as_me:$LINENO: checking $ac_header presence" >&5
19777 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19778 cat >conftest.$ac_ext <<_ACEOF
19779 #line $LINENO "configure"
19780 /* confdefs.h.  */
19781 _ACEOF
19782 cat confdefs.h >>conftest.$ac_ext
19783 cat >>conftest.$ac_ext <<_ACEOF
19784 /* end confdefs.h.  */
19785 #include <$ac_header>
19786 _ACEOF
19787 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19788   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19789   ac_status=$?
19790   grep -v '^ *+' conftest.er1 >conftest.err
19791   rm -f conftest.er1
19792   cat conftest.err >&5
19793   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19794   (exit $ac_status); } >/dev/null; then
19795   if test -s conftest.err; then
19796     ac_cpp_err=$ac_c_preproc_warn_flag
19797   else
19798     ac_cpp_err=
19799   fi
19800 else
19801   ac_cpp_err=yes
19802 fi
19803 if test -z "$ac_cpp_err"; then
19804   ac_header_preproc=yes
19805 else
19806   echo "$as_me: failed program was:" >&5
19807 sed 's/^/| /' conftest.$ac_ext >&5
19808
19809   ac_header_preproc=no
19810 fi
19811 rm -f conftest.err conftest.$ac_ext
19812 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19813 echo "${ECHO_T}$ac_header_preproc" >&6
19814
19815 # So?  What about this header?
19816 case $ac_header_compiler:$ac_header_preproc in
19817   yes:no )
19818     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19819 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19820     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19821 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19822     (
19823       cat <<\_ASBOX
19824 ## ------------------------------------ ##
19825 ## Report this to bug-autoconf@gnu.org. ##
19826 ## ------------------------------------ ##
19827 _ASBOX
19828     ) |
19829       sed "s/^/$as_me: WARNING:     /" >&2
19830     ;;
19831   no:yes )
19832     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19833 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19834     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19835 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19836     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19837 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19838     (
19839       cat <<\_ASBOX
19840 ## ------------------------------------ ##
19841 ## Report this to bug-autoconf@gnu.org. ##
19842 ## ------------------------------------ ##
19843 _ASBOX
19844     ) |
19845       sed "s/^/$as_me: WARNING:     /" >&2
19846     ;;
19847 esac
19848 echo "$as_me:$LINENO: checking for $ac_header" >&5
19849 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19850 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19851   echo $ECHO_N "(cached) $ECHO_C" >&6
19852 else
19853   eval "$as_ac_Header=$ac_header_preproc"
19854 fi
19855 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19856 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19857
19858 fi
19859 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19860   cat >>confdefs.h <<_ACEOF
19861 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19862 _ACEOF
19863
19864 fi
19865
19866 done
19867
19868
19869
19870
19871 for ac_header in dlfcn.h link.h
19872 do
19873 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19874 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19875   echo "$as_me:$LINENO: checking for $ac_header" >&5
19876 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19877 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19878   echo $ECHO_N "(cached) $ECHO_C" >&6
19879 fi
19880 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19881 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19882 else
19883   # Is the header compilable?
19884 echo "$as_me:$LINENO: checking $ac_header usability" >&5
19885 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19886 cat >conftest.$ac_ext <<_ACEOF
19887 #line $LINENO "configure"
19888 /* confdefs.h.  */
19889 _ACEOF
19890 cat confdefs.h >>conftest.$ac_ext
19891 cat >>conftest.$ac_ext <<_ACEOF
19892 /* end confdefs.h.  */
19893 $ac_includes_default
19894 #include <$ac_header>
19895 _ACEOF
19896 rm -f conftest.$ac_objext
19897 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19898   (eval $ac_compile) 2>&5
19899   ac_status=$?
19900   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19901   (exit $ac_status); } &&
19902          { ac_try='test -s conftest.$ac_objext'
19903   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19904   (eval $ac_try) 2>&5
19905   ac_status=$?
19906   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19907   (exit $ac_status); }; }; then
19908   ac_header_compiler=yes
19909 else
19910   echo "$as_me: failed program was:" >&5
19911 sed 's/^/| /' conftest.$ac_ext >&5
19912
19913 ac_header_compiler=no
19914 fi
19915 rm -f conftest.$ac_objext conftest.$ac_ext
19916 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19917 echo "${ECHO_T}$ac_header_compiler" >&6
19918
19919 # Is the header present?
19920 echo "$as_me:$LINENO: checking $ac_header presence" >&5
19921 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19922 cat >conftest.$ac_ext <<_ACEOF
19923 #line $LINENO "configure"
19924 /* confdefs.h.  */
19925 _ACEOF
19926 cat confdefs.h >>conftest.$ac_ext
19927 cat >>conftest.$ac_ext <<_ACEOF
19928 /* end confdefs.h.  */
19929 #include <$ac_header>
19930 _ACEOF
19931 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19932   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19933   ac_status=$?
19934   grep -v '^ *+' conftest.er1 >conftest.err
19935   rm -f conftest.er1
19936   cat conftest.err >&5
19937   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19938   (exit $ac_status); } >/dev/null; then
19939   if test -s conftest.err; then
19940     ac_cpp_err=$ac_c_preproc_warn_flag
19941   else
19942     ac_cpp_err=
19943   fi
19944 else
19945   ac_cpp_err=yes
19946 fi
19947 if test -z "$ac_cpp_err"; then
19948   ac_header_preproc=yes
19949 else
19950   echo "$as_me: failed program was:" >&5
19951 sed 's/^/| /' conftest.$ac_ext >&5
19952
19953   ac_header_preproc=no
19954 fi
19955 rm -f conftest.err conftest.$ac_ext
19956 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19957 echo "${ECHO_T}$ac_header_preproc" >&6
19958
19959 # So?  What about this header?
19960 case $ac_header_compiler:$ac_header_preproc in
19961   yes:no )
19962     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19963 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19964     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19965 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19966     (
19967       cat <<\_ASBOX
19968 ## ------------------------------------ ##
19969 ## Report this to bug-autoconf@gnu.org. ##
19970 ## ------------------------------------ ##
19971 _ASBOX
19972     ) |
19973       sed "s/^/$as_me: WARNING:     /" >&2
19974     ;;
19975   no:yes )
19976     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19977 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19978     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19979 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19980     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19981 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19982     (
19983       cat <<\_ASBOX
19984 ## ------------------------------------ ##
19985 ## Report this to bug-autoconf@gnu.org. ##
19986 ## ------------------------------------ ##
19987 _ASBOX
19988     ) |
19989       sed "s/^/$as_me: WARNING:     /" >&2
19990     ;;
19991 esac
19992 echo "$as_me:$LINENO: checking for $ac_header" >&5
19993 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19994 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19995   echo $ECHO_N "(cached) $ECHO_C" >&6
19996 else
19997   eval "$as_ac_Header=$ac_header_preproc"
19998 fi
19999 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20000 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20001
20002 fi
20003 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20004   cat >>confdefs.h <<_ACEOF
20005 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20006 _ACEOF
20007
20008 fi
20009
20010 done
20011
20012
20013
20014 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
20015 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
20016 if test "${ac_cv_c_const+set}" = set; then
20017   echo $ECHO_N "(cached) $ECHO_C" >&6
20018 else
20019   cat >conftest.$ac_ext <<_ACEOF
20020 #line $LINENO "configure"
20021 /* confdefs.h.  */
20022 _ACEOF
20023 cat confdefs.h >>conftest.$ac_ext
20024 cat >>conftest.$ac_ext <<_ACEOF
20025 /* end confdefs.h.  */
20026
20027 int
20028 main ()
20029 {
20030 /* FIXME: Include the comments suggested by Paul. */
20031 #ifndef __cplusplus
20032   /* Ultrix mips cc rejects this.  */
20033   typedef int charset[2];
20034   const charset x;
20035   /* SunOS 4.1.1 cc rejects this.  */
20036   char const *const *ccp;
20037   char **p;
20038   /* NEC SVR4.0.2 mips cc rejects this.  */
20039   struct point {int x, y;};
20040   static struct point const zero = {0,0};
20041   /* AIX XL C 1.02.0.0 rejects this.
20042      It does not let you subtract one const X* pointer from another in
20043      an arm of an if-expression whose if-part is not a constant
20044      expression */
20045   const char *g = "string";
20046   ccp = &g + (g ? g-g : 0);
20047   /* HPUX 7.0 cc rejects these. */
20048   ++ccp;
20049   p = (char**) ccp;
20050   ccp = (char const *const *) p;
20051   { /* SCO 3.2v4 cc rejects this.  */
20052     char *t;
20053     char const *s = 0 ? (char *) 0 : (char const *) 0;
20054
20055     *t++ = 0;
20056   }
20057   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
20058     int x[] = {25, 17};
20059     const int *foo = &x[0];
20060     ++foo;
20061   }
20062   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
20063     typedef const int *iptr;
20064     iptr p = 0;
20065     ++p;
20066   }
20067   { /* AIX XL C 1.02.0.0 rejects this saying
20068        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
20069     struct s { int j; const int *ap[3]; };
20070     struct s *b; b->j = 5;
20071   }
20072   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
20073     const int foo = 10;
20074   }
20075 #endif
20076
20077   ;
20078   return 0;
20079 }
20080 _ACEOF
20081 rm -f conftest.$ac_objext
20082 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20083   (eval $ac_compile) 2>&5
20084   ac_status=$?
20085   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20086   (exit $ac_status); } &&
20087          { ac_try='test -s conftest.$ac_objext'
20088   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20089   (eval $ac_try) 2>&5
20090   ac_status=$?
20091   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20092   (exit $ac_status); }; }; then
20093   ac_cv_c_const=yes
20094 else
20095   echo "$as_me: failed program was:" >&5
20096 sed 's/^/| /' conftest.$ac_ext >&5
20097
20098 ac_cv_c_const=no
20099 fi
20100 rm -f conftest.$ac_objext conftest.$ac_ext
20101 fi
20102 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
20103 echo "${ECHO_T}$ac_cv_c_const" >&6
20104 if test $ac_cv_c_const = no; then
20105
20106 cat >>confdefs.h <<\_ACEOF
20107 #define const
20108 _ACEOF
20109
20110 fi
20111
20112 echo "$as_me:$LINENO: checking for inline" >&5
20113 echo $ECHO_N "checking for inline... $ECHO_C" >&6
20114 if test "${ac_cv_c_inline+set}" = set; then
20115   echo $ECHO_N "(cached) $ECHO_C" >&6
20116 else
20117   ac_cv_c_inline=no
20118 for ac_kw in inline __inline__ __inline; do
20119   cat >conftest.$ac_ext <<_ACEOF
20120 #line $LINENO "configure"
20121 /* confdefs.h.  */
20122 _ACEOF
20123 cat confdefs.h >>conftest.$ac_ext
20124 cat >>conftest.$ac_ext <<_ACEOF
20125 /* end confdefs.h.  */
20126 #ifndef __cplusplus
20127 typedef int foo_t;
20128 static $ac_kw foo_t static_foo () {return 0; }
20129 $ac_kw foo_t foo () {return 0; }
20130 #endif
20131
20132 _ACEOF
20133 rm -f conftest.$ac_objext
20134 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20135   (eval $ac_compile) 2>&5
20136   ac_status=$?
20137   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20138   (exit $ac_status); } &&
20139          { ac_try='test -s conftest.$ac_objext'
20140   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20141   (eval $ac_try) 2>&5
20142   ac_status=$?
20143   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20144   (exit $ac_status); }; }; then
20145   ac_cv_c_inline=$ac_kw; break
20146 else
20147   echo "$as_me: failed program was:" >&5
20148 sed 's/^/| /' conftest.$ac_ext >&5
20149
20150 fi
20151 rm -f conftest.$ac_objext conftest.$ac_ext
20152 done
20153
20154 fi
20155 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
20156 echo "${ECHO_T}$ac_cv_c_inline" >&6
20157 case $ac_cv_c_inline in
20158   inline | yes) ;;
20159   no)
20160 cat >>confdefs.h <<\_ACEOF
20161 #define inline
20162 _ACEOF
20163  ;;
20164   *)  cat >>confdefs.h <<_ACEOF
20165 #define inline $ac_cv_c_inline
20166 _ACEOF
20167  ;;
20168 esac
20169
20170
20171 echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
20172 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
20173 if test "${ac_cv_c_bigendian+set}" = set; then
20174   echo $ECHO_N "(cached) $ECHO_C" >&6
20175 else
20176   # See if sys/param.h defines the BYTE_ORDER macro.
20177 cat >conftest.$ac_ext <<_ACEOF
20178 #line $LINENO "configure"
20179 /* confdefs.h.  */
20180 _ACEOF
20181 cat confdefs.h >>conftest.$ac_ext
20182 cat >>conftest.$ac_ext <<_ACEOF
20183 /* end confdefs.h.  */
20184 #include <sys/types.h>
20185 #include <sys/param.h>
20186
20187 int
20188 main ()
20189 {
20190 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
20191  bogus endian macros
20192 #endif
20193
20194   ;
20195   return 0;
20196 }
20197 _ACEOF
20198 rm -f conftest.$ac_objext
20199 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20200   (eval $ac_compile) 2>&5
20201   ac_status=$?
20202   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20203   (exit $ac_status); } &&
20204          { ac_try='test -s conftest.$ac_objext'
20205   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20206   (eval $ac_try) 2>&5
20207   ac_status=$?
20208   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20209   (exit $ac_status); }; }; then
20210   # It does; now see whether it defined to BIG_ENDIAN or not.
20211 cat >conftest.$ac_ext <<_ACEOF
20212 #line $LINENO "configure"
20213 /* confdefs.h.  */
20214 _ACEOF
20215 cat confdefs.h >>conftest.$ac_ext
20216 cat >>conftest.$ac_ext <<_ACEOF
20217 /* end confdefs.h.  */
20218 #include <sys/types.h>
20219 #include <sys/param.h>
20220
20221 int
20222 main ()
20223 {
20224 #if BYTE_ORDER != BIG_ENDIAN
20225  not big endian
20226 #endif
20227
20228   ;
20229   return 0;
20230 }
20231 _ACEOF
20232 rm -f conftest.$ac_objext
20233 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20234   (eval $ac_compile) 2>&5
20235   ac_status=$?
20236   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20237   (exit $ac_status); } &&
20238          { ac_try='test -s conftest.$ac_objext'
20239   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20240   (eval $ac_try) 2>&5
20241   ac_status=$?
20242   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20243   (exit $ac_status); }; }; then
20244   ac_cv_c_bigendian=yes
20245 else
20246   echo "$as_me: failed program was:" >&5
20247 sed 's/^/| /' conftest.$ac_ext >&5
20248
20249 ac_cv_c_bigendian=no
20250 fi
20251 rm -f conftest.$ac_objext conftest.$ac_ext
20252 else
20253   echo "$as_me: failed program was:" >&5
20254 sed 's/^/| /' conftest.$ac_ext >&5
20255
20256 # It does not; compile a test program.
20257 if test "$cross_compiling" = yes; then
20258   # try to guess the endianness by grepping values into an object file
20259   ac_cv_c_bigendian=unknown
20260   cat >conftest.$ac_ext <<_ACEOF
20261 #line $LINENO "configure"
20262 /* confdefs.h.  */
20263 _ACEOF
20264 cat confdefs.h >>conftest.$ac_ext
20265 cat >>conftest.$ac_ext <<_ACEOF
20266 /* end confdefs.h.  */
20267 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
20268 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
20269 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
20270 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
20271 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
20272 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
20273 int
20274 main ()
20275 {
20276  _ascii (); _ebcdic ();
20277   ;
20278   return 0;
20279 }
20280 _ACEOF
20281 rm -f conftest.$ac_objext
20282 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20283   (eval $ac_compile) 2>&5
20284   ac_status=$?
20285   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20286   (exit $ac_status); } &&
20287          { ac_try='test -s conftest.$ac_objext'
20288   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20289   (eval $ac_try) 2>&5
20290   ac_status=$?
20291   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20292   (exit $ac_status); }; }; then
20293   if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
20294   ac_cv_c_bigendian=yes
20295 fi
20296 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
20297   if test "$ac_cv_c_bigendian" = unknown; then
20298     ac_cv_c_bigendian=no
20299   else
20300     # finding both strings is unlikely to happen, but who knows?
20301     ac_cv_c_bigendian=unknown
20302   fi
20303 fi
20304 else
20305   echo "$as_me: failed program was:" >&5
20306 sed 's/^/| /' conftest.$ac_ext >&5
20307
20308 fi
20309 rm -f conftest.$ac_objext conftest.$ac_ext
20310 else
20311   cat >conftest.$ac_ext <<_ACEOF
20312 #line $LINENO "configure"
20313 /* confdefs.h.  */
20314 _ACEOF
20315 cat confdefs.h >>conftest.$ac_ext
20316 cat >>conftest.$ac_ext <<_ACEOF
20317 /* end confdefs.h.  */
20318 int
20319 main ()
20320 {
20321   /* Are we little or big endian?  From Harbison&Steele.  */
20322   union
20323   {
20324     long l;
20325     char c[sizeof (long)];
20326   } u;
20327   u.l = 1;
20328   exit (u.c[sizeof (long) - 1] == 1);
20329 }
20330 _ACEOF
20331 rm -f conftest$ac_exeext
20332 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20333   (eval $ac_link) 2>&5
20334   ac_status=$?
20335   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20336   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20337   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20338   (eval $ac_try) 2>&5
20339   ac_status=$?
20340   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20341   (exit $ac_status); }; }; then
20342   ac_cv_c_bigendian=no
20343 else
20344   echo "$as_me: program exited with status $ac_status" >&5
20345 echo "$as_me: failed program was:" >&5
20346 sed 's/^/| /' conftest.$ac_ext >&5
20347
20348 ( exit $ac_status )
20349 ac_cv_c_bigendian=yes
20350 fi
20351 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20352 fi
20353 fi
20354 rm -f conftest.$ac_objext conftest.$ac_ext
20355 fi
20356 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
20357 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
20358 case $ac_cv_c_bigendian in
20359   yes)
20360     cat >>confdefs.h <<\_ACEOF
20361 #define ENDIAN_BIG 1
20362 _ACEOF
20363  ;;
20364   no)
20365     cat >>confdefs.h <<\_ACEOF
20366 #define ENDIAN_LITTLE 1
20367 _ACEOF
20368  ;;
20369   *)
20370     { { echo "$as_me:$LINENO: error: unknown endianness
20371 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
20372 echo "$as_me: error: unknown endianness
20373 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
20374    { (exit 1); exit 1; }; } ;;
20375 esac
20376
20377
20378 echo "$as_me:$LINENO: checking for pid_t" >&5
20379 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
20380 if test "${ac_cv_type_pid_t+set}" = set; then
20381   echo $ECHO_N "(cached) $ECHO_C" >&6
20382 else
20383   cat >conftest.$ac_ext <<_ACEOF
20384 #line $LINENO "configure"
20385 /* confdefs.h.  */
20386 _ACEOF
20387 cat confdefs.h >>conftest.$ac_ext
20388 cat >>conftest.$ac_ext <<_ACEOF
20389 /* end confdefs.h.  */
20390 $ac_includes_default
20391 int
20392 main ()
20393 {
20394 if ((pid_t *) 0)
20395   return 0;
20396 if (sizeof (pid_t))
20397   return 0;
20398   ;
20399   return 0;
20400 }
20401 _ACEOF
20402 rm -f conftest.$ac_objext
20403 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20404   (eval $ac_compile) 2>&5
20405   ac_status=$?
20406   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20407   (exit $ac_status); } &&
20408          { ac_try='test -s conftest.$ac_objext'
20409   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20410   (eval $ac_try) 2>&5
20411   ac_status=$?
20412   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20413   (exit $ac_status); }; }; then
20414   ac_cv_type_pid_t=yes
20415 else
20416   echo "$as_me: failed program was:" >&5
20417 sed 's/^/| /' conftest.$ac_ext >&5
20418
20419 ac_cv_type_pid_t=no
20420 fi
20421 rm -f conftest.$ac_objext conftest.$ac_ext
20422 fi
20423 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
20424 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
20425 if test $ac_cv_type_pid_t = yes; then
20426   :
20427 else
20428
20429 cat >>confdefs.h <<_ACEOF
20430 #define pid_t int
20431 _ACEOF
20432
20433 fi
20434
20435 echo "$as_me:$LINENO: checking for size_t" >&5
20436 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
20437 if test "${ac_cv_type_size_t+set}" = set; then
20438   echo $ECHO_N "(cached) $ECHO_C" >&6
20439 else
20440   cat >conftest.$ac_ext <<_ACEOF
20441 #line $LINENO "configure"
20442 /* confdefs.h.  */
20443 _ACEOF
20444 cat confdefs.h >>conftest.$ac_ext
20445 cat >>conftest.$ac_ext <<_ACEOF
20446 /* end confdefs.h.  */
20447 $ac_includes_default
20448 int
20449 main ()
20450 {
20451 if ((size_t *) 0)
20452   return 0;
20453 if (sizeof (size_t))
20454   return 0;
20455   ;
20456   return 0;
20457 }
20458 _ACEOF
20459 rm -f conftest.$ac_objext
20460 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20461   (eval $ac_compile) 2>&5
20462   ac_status=$?
20463   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20464   (exit $ac_status); } &&
20465          { ac_try='test -s conftest.$ac_objext'
20466   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20467   (eval $ac_try) 2>&5
20468   ac_status=$?
20469   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20470   (exit $ac_status); }; }; then
20471   ac_cv_type_size_t=yes
20472 else
20473   echo "$as_me: failed program was:" >&5
20474 sed 's/^/| /' conftest.$ac_ext >&5
20475
20476 ac_cv_type_size_t=no
20477 fi
20478 rm -f conftest.$ac_objext conftest.$ac_ext
20479 fi
20480 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
20481 echo "${ECHO_T}$ac_cv_type_size_t" >&6
20482 if test $ac_cv_type_size_t = yes; then
20483   :
20484 else
20485
20486 cat >>confdefs.h <<_ACEOF
20487 #define size_t unsigned
20488 _ACEOF
20489
20490 fi
20491
20492 echo "$as_me:$LINENO: checking for int64_t" >&5
20493 echo $ECHO_N "checking for int64_t... $ECHO_C" >&6
20494 if test "${ac_cv_type_int64_t+set}" = set; then
20495   echo $ECHO_N "(cached) $ECHO_C" >&6
20496 else
20497   cat >conftest.$ac_ext <<_ACEOF
20498 #line $LINENO "configure"
20499 /* confdefs.h.  */
20500 _ACEOF
20501 cat confdefs.h >>conftest.$ac_ext
20502 cat >>conftest.$ac_ext <<_ACEOF
20503 /* end confdefs.h.  */
20504 $ac_includes_default
20505 int
20506 main ()
20507 {
20508 if ((int64_t *) 0)
20509   return 0;
20510 if (sizeof (int64_t))
20511   return 0;
20512   ;
20513   return 0;
20514 }
20515 _ACEOF
20516 rm -f conftest.$ac_objext
20517 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20518   (eval $ac_compile) 2>&5
20519   ac_status=$?
20520   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20521   (exit $ac_status); } &&
20522          { ac_try='test -s conftest.$ac_objext'
20523   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20524   (eval $ac_try) 2>&5
20525   ac_status=$?
20526   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20527   (exit $ac_status); }; }; then
20528   ac_cv_type_int64_t=yes
20529 else
20530   echo "$as_me: failed program was:" >&5
20531 sed 's/^/| /' conftest.$ac_ext >&5
20532
20533 ac_cv_type_int64_t=no
20534 fi
20535 rm -f conftest.$ac_objext conftest.$ac_ext
20536 fi
20537 echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
20538 echo "${ECHO_T}$ac_cv_type_int64_t" >&6
20539 if test $ac_cv_type_int64_t = yes; then
20540
20541 cat >>confdefs.h <<_ACEOF
20542 #define HAVE_INT64_T 1
20543 _ACEOF
20544
20545
20546 else
20547   { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5
20548 echo "$as_me: error: Type int64_t required but not found" >&2;}
20549    { (exit 1); exit 1; }; }
20550 fi
20551
20552 echo "$as_me:$LINENO: checking for uint64_t" >&5
20553 echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6
20554 if test "${ac_cv_type_uint64_t+set}" = set; then
20555   echo $ECHO_N "(cached) $ECHO_C" >&6
20556 else
20557   cat >conftest.$ac_ext <<_ACEOF
20558 #line $LINENO "configure"
20559 /* confdefs.h.  */
20560 _ACEOF
20561 cat confdefs.h >>conftest.$ac_ext
20562 cat >>conftest.$ac_ext <<_ACEOF
20563 /* end confdefs.h.  */
20564 $ac_includes_default
20565 int
20566 main ()
20567 {
20568 if ((uint64_t *) 0)
20569   return 0;
20570 if (sizeof (uint64_t))
20571   return 0;
20572   ;
20573   return 0;
20574 }
20575 _ACEOF
20576 rm -f conftest.$ac_objext
20577 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20578   (eval $ac_compile) 2>&5
20579   ac_status=$?
20580   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20581   (exit $ac_status); } &&
20582          { ac_try='test -s conftest.$ac_objext'
20583   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20584   (eval $ac_try) 2>&5
20585   ac_status=$?
20586   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20587   (exit $ac_status); }; }; then
20588   ac_cv_type_uint64_t=yes
20589 else
20590   echo "$as_me: failed program was:" >&5
20591 sed 's/^/| /' conftest.$ac_ext >&5
20592
20593 ac_cv_type_uint64_t=no
20594 fi
20595 rm -f conftest.$ac_objext conftest.$ac_ext
20596 fi
20597 echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
20598 echo "${ECHO_T}$ac_cv_type_uint64_t" >&6
20599 if test $ac_cv_type_uint64_t = yes; then
20600
20601 cat >>confdefs.h <<_ACEOF
20602 #define HAVE_UINT64_T 1
20603 _ACEOF
20604
20605
20606 else
20607   { { echo "$as_me:$LINENO: error: Type uint64_t required but not found" >&5
20608 echo "$as_me: error: Type uint64_t required but not found" >&2;}
20609    { (exit 1); exit 1; }; }
20610 fi
20611
20612 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
20613 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
20614 if test "${ac_cv_header_time+set}" = set; then
20615   echo $ECHO_N "(cached) $ECHO_C" >&6
20616 else
20617   cat >conftest.$ac_ext <<_ACEOF
20618 #line $LINENO "configure"
20619 /* confdefs.h.  */
20620 _ACEOF
20621 cat confdefs.h >>conftest.$ac_ext
20622 cat >>conftest.$ac_ext <<_ACEOF
20623 /* end confdefs.h.  */
20624 #include <sys/types.h>
20625 #include <sys/time.h>
20626 #include <time.h>
20627
20628 int
20629 main ()
20630 {
20631 if ((struct tm *) 0)
20632 return 0;
20633   ;
20634   return 0;
20635 }
20636 _ACEOF
20637 rm -f conftest.$ac_objext
20638 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20639   (eval $ac_compile) 2>&5
20640   ac_status=$?
20641   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20642   (exit $ac_status); } &&
20643          { ac_try='test -s conftest.$ac_objext'
20644   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20645   (eval $ac_try) 2>&5
20646   ac_status=$?
20647   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20648   (exit $ac_status); }; }; then
20649   ac_cv_header_time=yes
20650 else
20651   echo "$as_me: failed program was:" >&5
20652 sed 's/^/| /' conftest.$ac_ext >&5
20653
20654 ac_cv_header_time=no
20655 fi
20656 rm -f conftest.$ac_objext conftest.$ac_ext
20657 fi
20658 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
20659 echo "${ECHO_T}$ac_cv_header_time" >&6
20660 if test $ac_cv_header_time = yes; then
20661
20662 cat >>confdefs.h <<\_ACEOF
20663 #define TIME_WITH_SYS_TIME 1
20664 _ACEOF
20665
20666 fi
20667
20668 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
20669 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
20670 if test "${ac_cv_struct_tm+set}" = set; then
20671   echo $ECHO_N "(cached) $ECHO_C" >&6
20672 else
20673   cat >conftest.$ac_ext <<_ACEOF
20674 #line $LINENO "configure"
20675 /* confdefs.h.  */
20676 _ACEOF
20677 cat confdefs.h >>conftest.$ac_ext
20678 cat >>conftest.$ac_ext <<_ACEOF
20679 /* end confdefs.h.  */
20680 #include <sys/types.h>
20681 #include <time.h>
20682
20683 int
20684 main ()
20685 {
20686 struct tm *tp; tp->tm_sec;
20687   ;
20688   return 0;
20689 }
20690 _ACEOF
20691 rm -f conftest.$ac_objext
20692 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20693   (eval $ac_compile) 2>&5
20694   ac_status=$?
20695   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20696   (exit $ac_status); } &&
20697          { ac_try='test -s conftest.$ac_objext'
20698   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20699   (eval $ac_try) 2>&5
20700   ac_status=$?
20701   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20702   (exit $ac_status); }; }; then
20703   ac_cv_struct_tm=time.h
20704 else
20705   echo "$as_me: failed program was:" >&5
20706 sed 's/^/| /' conftest.$ac_ext >&5
20707
20708 ac_cv_struct_tm=sys/time.h
20709 fi
20710 rm -f conftest.$ac_objext conftest.$ac_ext
20711 fi
20712 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
20713 echo "${ECHO_T}$ac_cv_struct_tm" >&6
20714 if test $ac_cv_struct_tm = sys/time.h; then
20715
20716 cat >>confdefs.h <<\_ACEOF
20717 #define TM_IN_SYS_TIME 1
20718 _ACEOF
20719
20720 fi
20721
20722
20723 echo "$as_me:$LINENO: checking whether the compiler implements namespaces" >&5
20724 echo $ECHO_N "checking whether the compiler implements namespaces... $ECHO_C" >&6
20725 if test "${ac_cv_cxx_namespaces+set}" = set; then
20726   echo $ECHO_N "(cached) $ECHO_C" >&6
20727 else
20728
20729
20730  ac_ext=cc
20731 ac_cpp='$CXXCPP $CPPFLAGS'
20732 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20733 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20734 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20735
20736  cat >conftest.$ac_ext <<_ACEOF
20737 #line $LINENO "configure"
20738 /* confdefs.h.  */
20739 _ACEOF
20740 cat confdefs.h >>conftest.$ac_ext
20741 cat >>conftest.$ac_ext <<_ACEOF
20742 /* end confdefs.h.  */
20743 namespace Outer { namespace Inner { int i = 0; }}
20744 int
20745 main ()
20746 {
20747 using namespace Outer::Inner; return i;
20748   ;
20749   return 0;
20750 }
20751 _ACEOF
20752 rm -f conftest.$ac_objext
20753 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20754   (eval $ac_compile) 2>&5
20755   ac_status=$?
20756   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20757   (exit $ac_status); } &&
20758          { ac_try='test -s conftest.$ac_objext'
20759   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20760   (eval $ac_try) 2>&5
20761   ac_status=$?
20762   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20763   (exit $ac_status); }; }; then
20764   ac_cv_cxx_namespaces=yes
20765 else
20766   echo "$as_me: failed program was:" >&5
20767 sed 's/^/| /' conftest.$ac_ext >&5
20768
20769 ac_cv_cxx_namespaces=no
20770 fi
20771 rm -f conftest.$ac_objext conftest.$ac_ext
20772  ac_ext=c
20773 ac_cpp='$CPP $CPPFLAGS'
20774 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20775 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20776 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20777
20778
20779 fi
20780 echo "$as_me:$LINENO: result: $ac_cv_cxx_namespaces" >&5
20781 echo "${ECHO_T}$ac_cv_cxx_namespaces" >&6
20782 if test "$ac_cv_cxx_namespaces" = yes; then
20783
20784 cat >>confdefs.h <<\_ACEOF
20785 #define HAVE_NAMESPACES
20786 _ACEOF
20787
20788 fi
20789
20790 echo "$as_me:$LINENO: checking whether the compiler has ext/hash_map" >&5
20791 echo $ECHO_N "checking whether the compiler has ext/hash_map... $ECHO_C" >&6
20792 if test "${ac_cv_cxx_have_ext_hash_map+set}" = set; then
20793   echo $ECHO_N "(cached) $ECHO_C" >&6
20794 else
20795
20796
20797
20798   ac_ext=cc
20799 ac_cpp='$CXXCPP $CPPFLAGS'
20800 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20801 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20802 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20803
20804   cat >conftest.$ac_ext <<_ACEOF
20805 #line $LINENO "configure"
20806 /* confdefs.h.  */
20807 _ACEOF
20808 cat confdefs.h >>conftest.$ac_ext
20809 cat >>conftest.$ac_ext <<_ACEOF
20810 /* end confdefs.h.  */
20811 #include <ext/hash_map>
20812 #ifdef HAVE_NAMESPACES
20813 using namespace std;
20814 #endif
20815 int
20816 main ()
20817 {
20818 hash_map<int, int> t; return 0;
20819   ;
20820   return 0;
20821 }
20822 _ACEOF
20823 rm -f conftest.$ac_objext
20824 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20825   (eval $ac_compile) 2>&5
20826   ac_status=$?
20827   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20828   (exit $ac_status); } &&
20829          { ac_try='test -s conftest.$ac_objext'
20830   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20831   (eval $ac_try) 2>&5
20832   ac_status=$?
20833   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20834   (exit $ac_status); }; }; then
20835   ac_cv_cxx_have_ext_hash_map=std
20836 else
20837   echo "$as_me: failed program was:" >&5
20838 sed 's/^/| /' conftest.$ac_ext >&5
20839
20840 ac_cv_cxx_have_ext_hash_map=no
20841 fi
20842 rm -f conftest.$ac_objext conftest.$ac_ext
20843   cat >conftest.$ac_ext <<_ACEOF
20844 #line $LINENO "configure"
20845 /* confdefs.h.  */
20846 _ACEOF
20847 cat confdefs.h >>conftest.$ac_ext
20848 cat >>conftest.$ac_ext <<_ACEOF
20849 /* end confdefs.h.  */
20850 #include <ext/hash_map>
20851 #ifdef HAVE_NAMESPACES
20852 using namespace __gnu_cxx;
20853 #endif
20854 int
20855 main ()
20856 {
20857 hash_map<int, int> t; return 0;
20858   ;
20859   return 0;
20860 }
20861 _ACEOF
20862 rm -f conftest.$ac_objext
20863 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20864   (eval $ac_compile) 2>&5
20865   ac_status=$?
20866   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20867   (exit $ac_status); } &&
20868          { ac_try='test -s conftest.$ac_objext'
20869   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20870   (eval $ac_try) 2>&5
20871   ac_status=$?
20872   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20873   (exit $ac_status); }; }; then
20874   ac_cv_cxx_have_ext_hash_map=gnu
20875 else
20876   echo "$as_me: failed program was:" >&5
20877 sed 's/^/| /' conftest.$ac_ext >&5
20878
20879 ac_cv_cxx_have_ext_hash_map=no
20880 fi
20881 rm -f conftest.$ac_objext conftest.$ac_ext
20882   ac_ext=c
20883 ac_cpp='$CPP $CPPFLAGS'
20884 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20885 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20886 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20887
20888
20889 fi
20890 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_ext_hash_map" >&5
20891 echo "${ECHO_T}$ac_cv_cxx_have_ext_hash_map" >&6
20892 if test "$ac_cv_cxx_have_ext_hash_map" = std; then
20893
20894 cat >>confdefs.h <<\_ACEOF
20895 #define HAVE_STD_EXT_HASH_MAP
20896 _ACEOF
20897
20898 fi
20899 if test "$ac_cv_cxx_have_ext_hash_map" = gnu; then
20900
20901 cat >>confdefs.h <<\_ACEOF
20902 #define HAVE_GNU_EXT_HASH_MAP
20903 _ACEOF
20904
20905 fi
20906
20907 echo "$as_me:$LINENO: checking whether the compiler has ext/hash_set" >&5
20908 echo $ECHO_N "checking whether the compiler has ext/hash_set... $ECHO_C" >&6
20909 if test "${ac_cv_cxx_have_ext_hash_set+set}" = set; then
20910   echo $ECHO_N "(cached) $ECHO_C" >&6
20911 else
20912
20913
20914
20915   ac_ext=cc
20916 ac_cpp='$CXXCPP $CPPFLAGS'
20917 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20918 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20919 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20920
20921   cat >conftest.$ac_ext <<_ACEOF
20922 #line $LINENO "configure"
20923 /* confdefs.h.  */
20924 _ACEOF
20925 cat confdefs.h >>conftest.$ac_ext
20926 cat >>conftest.$ac_ext <<_ACEOF
20927 /* end confdefs.h.  */
20928 #include <ext/hash_set>
20929 #ifdef HAVE_NAMESPACES
20930 using namespace std;
20931 #endif
20932 int
20933 main ()
20934 {
20935 hash_set<int> t; return 0;
20936   ;
20937   return 0;
20938 }
20939 _ACEOF
20940 rm -f conftest.$ac_objext
20941 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20942   (eval $ac_compile) 2>&5
20943   ac_status=$?
20944   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20945   (exit $ac_status); } &&
20946          { ac_try='test -s conftest.$ac_objext'
20947   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20948   (eval $ac_try) 2>&5
20949   ac_status=$?
20950   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20951   (exit $ac_status); }; }; then
20952   ac_cv_cxx_have_ext_hash_set=std
20953 else
20954   echo "$as_me: failed program was:" >&5
20955 sed 's/^/| /' conftest.$ac_ext >&5
20956
20957 ac_cv_cxx_have_ext_hash_set=no
20958 fi
20959 rm -f conftest.$ac_objext conftest.$ac_ext
20960   cat >conftest.$ac_ext <<_ACEOF
20961 #line $LINENO "configure"
20962 /* confdefs.h.  */
20963 _ACEOF
20964 cat confdefs.h >>conftest.$ac_ext
20965 cat >>conftest.$ac_ext <<_ACEOF
20966 /* end confdefs.h.  */
20967 #include <ext/hash_set>
20968 #ifdef HAVE_NAMESPACES
20969 using namespace __gnu_cxx;
20970 #endif
20971 int
20972 main ()
20973 {
20974 hash_set<int> t; return 0;
20975   ;
20976   return 0;
20977 }
20978 _ACEOF
20979 rm -f conftest.$ac_objext
20980 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20981   (eval $ac_compile) 2>&5
20982   ac_status=$?
20983   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20984   (exit $ac_status); } &&
20985          { ac_try='test -s conftest.$ac_objext'
20986   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20987   (eval $ac_try) 2>&5
20988   ac_status=$?
20989   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20990   (exit $ac_status); }; }; then
20991   ac_cv_cxx_have_ext_hash_set=gnu
20992 else
20993   echo "$as_me: failed program was:" >&5
20994 sed 's/^/| /' conftest.$ac_ext >&5
20995
20996 ac_cv_cxx_have_ext_hash_set=no
20997 fi
20998 rm -f conftest.$ac_objext conftest.$ac_ext
20999   ac_ext=c
21000 ac_cpp='$CPP $CPPFLAGS'
21001 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21002 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21003 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21004
21005
21006 fi
21007 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_ext_hash_set" >&5
21008 echo "${ECHO_T}$ac_cv_cxx_have_ext_hash_set" >&6
21009 if test "$ac_cv_cxx_have_ext_hash_set" = std; then
21010
21011 cat >>confdefs.h <<\_ACEOF
21012 #define HAVE_STD_EXT_HASH_SET
21013 _ACEOF
21014
21015 fi
21016 if test "$ac_cv_cxx_have_ext_hash_set" = gnu; then
21017
21018 cat >>confdefs.h <<\_ACEOF
21019 #define HAVE_GNU_EXT_HASH_SET
21020 _ACEOF
21021
21022 fi
21023
21024 echo "$as_me:$LINENO: checking whether the compiler has ext/slist" >&5
21025 echo $ECHO_N "checking whether the compiler has ext/slist... $ECHO_C" >&6
21026 if test "${ac_cv_cxx_have_ext_slist+set}" = set; then
21027   echo $ECHO_N "(cached) $ECHO_C" >&6
21028 else
21029
21030
21031
21032   ac_ext=cc
21033 ac_cpp='$CXXCPP $CPPFLAGS'
21034 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21035 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21036 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21037
21038   cat >conftest.$ac_ext <<_ACEOF
21039 #line $LINENO "configure"
21040 /* confdefs.h.  */
21041 _ACEOF
21042 cat confdefs.h >>conftest.$ac_ext
21043 cat >>conftest.$ac_ext <<_ACEOF
21044 /* end confdefs.h.  */
21045 #include <ext/slist>
21046 #ifdef HAVE_NAMESPACES
21047 using namespace std;
21048 #endif
21049 int
21050 main ()
21051 {
21052 slist<int> s; return 0;
21053   ;
21054   return 0;
21055 }
21056 _ACEOF
21057 rm -f conftest.$ac_objext
21058 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21059   (eval $ac_compile) 2>&5
21060   ac_status=$?
21061   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21062   (exit $ac_status); } &&
21063          { ac_try='test -s conftest.$ac_objext'
21064   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21065   (eval $ac_try) 2>&5
21066   ac_status=$?
21067   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21068   (exit $ac_status); }; }; then
21069   ac_cv_cxx_have_ext_slist=std
21070 else
21071   echo "$as_me: failed program was:" >&5
21072 sed 's/^/| /' conftest.$ac_ext >&5
21073
21074 ac_cv_cxx_have_ext_slist=no
21075 fi
21076 rm -f conftest.$ac_objext conftest.$ac_ext
21077   cat >conftest.$ac_ext <<_ACEOF
21078 #line $LINENO "configure"
21079 /* confdefs.h.  */
21080 _ACEOF
21081 cat confdefs.h >>conftest.$ac_ext
21082 cat >>conftest.$ac_ext <<_ACEOF
21083 /* end confdefs.h.  */
21084 #include <ext/slist>
21085 #ifdef HAVE_NAMESPACES
21086 using namespace __gnu_cxx;
21087 #endif
21088 int
21089 main ()
21090 {
21091 slist<int> s; return 0;
21092   ;
21093   return 0;
21094 }
21095 _ACEOF
21096 rm -f conftest.$ac_objext
21097 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21098   (eval $ac_compile) 2>&5
21099   ac_status=$?
21100   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21101   (exit $ac_status); } &&
21102          { ac_try='test -s conftest.$ac_objext'
21103   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21104   (eval $ac_try) 2>&5
21105   ac_status=$?
21106   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21107   (exit $ac_status); }; }; then
21108   ac_cv_cxx_have_ext_slist=gnu
21109 else
21110   echo "$as_me: failed program was:" >&5
21111 sed 's/^/| /' conftest.$ac_ext >&5
21112
21113 ac_cv_cxx_have_ext_slist=no
21114 fi
21115 rm -f conftest.$ac_objext conftest.$ac_ext
21116
21117   ac_ext=c
21118 ac_cpp='$CPP $CPPFLAGS'
21119 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21120 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21121 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21122
21123
21124 fi
21125 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_ext_slist" >&5
21126 echo "${ECHO_T}$ac_cv_cxx_have_ext_slist" >&6
21127 if test "$ac_cv_cxx_have_ext_slist" = std; then
21128
21129 cat >>confdefs.h <<\_ACEOF
21130 #define HAVE_EXT_SLIST std
21131 _ACEOF
21132
21133 fi
21134 if test "$ac_cv_cxx_have_ext_slist" = gnu; then
21135
21136 cat >>confdefs.h <<\_ACEOF
21137 #define HAVE_EXT_SLIST gnu
21138 _ACEOF
21139
21140 fi
21141
21142 echo "$as_me:$LINENO: checking whether the compiler has the standard iterator" >&5
21143 echo $ECHO_N "checking whether the compiler has the standard iterator... $ECHO_C" >&6
21144 if test "${ac_cv_cxx_have_std_iterator+set}" = set; then
21145   echo $ECHO_N "(cached) $ECHO_C" >&6
21146 else
21147
21148
21149
21150   ac_ext=cc
21151 ac_cpp='$CXXCPP $CPPFLAGS'
21152 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21153 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21154 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21155
21156   cat >conftest.$ac_ext <<_ACEOF
21157 #line $LINENO "configure"
21158 /* confdefs.h.  */
21159 _ACEOF
21160 cat confdefs.h >>conftest.$ac_ext
21161 cat >>conftest.$ac_ext <<_ACEOF
21162 /* end confdefs.h.  */
21163 #include <iterator>
21164 #ifdef HAVE_NAMESPACES
21165 using namespace std;
21166 #endif
21167 int
21168 main ()
21169 {
21170 iterator<int,int,int> t; return 0;
21171   ;
21172   return 0;
21173 }
21174 _ACEOF
21175 rm -f conftest.$ac_objext
21176 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21177   (eval $ac_compile) 2>&5
21178   ac_status=$?
21179   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21180   (exit $ac_status); } &&
21181          { ac_try='test -s conftest.$ac_objext'
21182   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21183   (eval $ac_try) 2>&5
21184   ac_status=$?
21185   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21186   (exit $ac_status); }; }; then
21187   ac_cv_cxx_have_std_iterator=yes
21188 else
21189   echo "$as_me: failed program was:" >&5
21190 sed 's/^/| /' conftest.$ac_ext >&5
21191
21192 ac_cv_cxx_have_std_iterator=no
21193 fi
21194 rm -f conftest.$ac_objext conftest.$ac_ext
21195   ac_ext=c
21196 ac_cpp='$CPP $CPPFLAGS'
21197 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21198 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21199 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21200
21201
21202 fi
21203 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_iterator" >&5
21204 echo "${ECHO_T}$ac_cv_cxx_have_std_iterator" >&6
21205 if test "$ac_cv_cxx_have_std_iterator" = yes; then
21206
21207 cat >>confdefs.h <<\_ACEOF
21208 #define HAVE_STD_ITERATOR
21209 _ACEOF
21210
21211 fi
21212
21213 echo "$as_me:$LINENO: checking whether the compiler has the bidirectional iterator" >&5
21214 echo $ECHO_N "checking whether the compiler has the bidirectional iterator... $ECHO_C" >&6
21215 if test "${ac_cv_cxx_have_bi_iterator+set}" = set; then
21216   echo $ECHO_N "(cached) $ECHO_C" >&6
21217 else
21218
21219
21220
21221   ac_ext=cc
21222 ac_cpp='$CXXCPP $CPPFLAGS'
21223 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21224 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21225 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21226
21227   cat >conftest.$ac_ext <<_ACEOF
21228 #line $LINENO "configure"
21229 /* confdefs.h.  */
21230 _ACEOF
21231 cat confdefs.h >>conftest.$ac_ext
21232 cat >>conftest.$ac_ext <<_ACEOF
21233 /* end confdefs.h.  */
21234 #include <iterator>
21235 #ifdef HAVE_NAMESPACES
21236 using namespace std;
21237 #endif
21238 int
21239 main ()
21240 {
21241 bidirectional_iterator<int,int> t; return 0;
21242   ;
21243   return 0;
21244 }
21245 _ACEOF
21246 rm -f conftest.$ac_objext
21247 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21248   (eval $ac_compile) 2>&5
21249   ac_status=$?
21250   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21251   (exit $ac_status); } &&
21252          { ac_try='test -s conftest.$ac_objext'
21253   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21254   (eval $ac_try) 2>&5
21255   ac_status=$?
21256   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21257   (exit $ac_status); }; }; then
21258   ac_cv_cxx_have_bi_iterator=yes
21259 else
21260   echo "$as_me: failed program was:" >&5
21261 sed 's/^/| /' conftest.$ac_ext >&5
21262
21263 ac_cv_cxx_have_bi_iterator=no
21264 fi
21265 rm -f conftest.$ac_objext conftest.$ac_ext
21266   ac_ext=c
21267 ac_cpp='$CPP $CPPFLAGS'
21268 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21269 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21270 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21271
21272
21273 fi
21274 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_bi_iterator" >&5
21275 echo "${ECHO_T}$ac_cv_cxx_have_bi_iterator" >&6
21276 if test "$ac_cv_cxx_have_bi_iterator" = yes; then
21277
21278 cat >>confdefs.h <<\_ACEOF
21279 #define HAVE_BI_ITERATOR
21280 _ACEOF
21281
21282 fi
21283
21284 echo "$as_me:$LINENO: checking whether the compiler has forward iterators" >&5
21285 echo $ECHO_N "checking whether the compiler has forward iterators... $ECHO_C" >&6
21286 if test "${ac_cv_cxx_have_fwd_iterator+set}" = set; then
21287   echo $ECHO_N "(cached) $ECHO_C" >&6
21288 else
21289
21290
21291
21292   ac_ext=cc
21293 ac_cpp='$CXXCPP $CPPFLAGS'
21294 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21295 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21296 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21297
21298   cat >conftest.$ac_ext <<_ACEOF
21299 #line $LINENO "configure"
21300 /* confdefs.h.  */
21301 _ACEOF
21302 cat confdefs.h >>conftest.$ac_ext
21303 cat >>conftest.$ac_ext <<_ACEOF
21304 /* end confdefs.h.  */
21305 #include <iterator>
21306 #ifdef HAVE_NAMESPACES
21307 using namespace std;
21308 #endif
21309 int
21310 main ()
21311 {
21312 forward_iterator<int,int> t; return 0;
21313   ;
21314   return 0;
21315 }
21316 _ACEOF
21317 rm -f conftest.$ac_objext
21318 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21319   (eval $ac_compile) 2>&5
21320   ac_status=$?
21321   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21322   (exit $ac_status); } &&
21323          { ac_try='test -s conftest.$ac_objext'
21324   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21325   (eval $ac_try) 2>&5
21326   ac_status=$?
21327   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21328   (exit $ac_status); }; }; then
21329   ac_cv_cxx_have_fwd_iterator=yes
21330 else
21331   echo "$as_me: failed program was:" >&5
21332 sed 's/^/| /' conftest.$ac_ext >&5
21333
21334 ac_cv_cxx_have_fwd_iterator=no
21335 fi
21336 rm -f conftest.$ac_objext conftest.$ac_ext
21337   ac_ext=c
21338 ac_cpp='$CPP $CPPFLAGS'
21339 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21340 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21341 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21342
21343
21344 fi
21345 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_fwd_iterator" >&5
21346 echo "${ECHO_T}$ac_cv_cxx_have_fwd_iterator" >&6
21347 if test "$ac_cv_cxx_have_fwd_iterator" = yes; then
21348
21349 cat >>confdefs.h <<\_ACEOF
21350 #define HAVE_FWD_ITERATOR
21351 _ACEOF
21352
21353 fi
21354
21355
21356 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
21357 # for constant arguments.  Useless!
21358 echo "$as_me:$LINENO: checking for working alloca.h" >&5
21359 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
21360 if test "${ac_cv_working_alloca_h+set}" = set; then
21361   echo $ECHO_N "(cached) $ECHO_C" >&6
21362 else
21363   cat >conftest.$ac_ext <<_ACEOF
21364 #line $LINENO "configure"
21365 /* confdefs.h.  */
21366 _ACEOF
21367 cat confdefs.h >>conftest.$ac_ext
21368 cat >>conftest.$ac_ext <<_ACEOF
21369 /* end confdefs.h.  */
21370 #include <alloca.h>
21371 int
21372 main ()
21373 {
21374 char *p = (char *) alloca (2 * sizeof (int));
21375   ;
21376   return 0;
21377 }
21378 _ACEOF
21379 rm -f conftest.$ac_objext conftest$ac_exeext
21380 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21381   (eval $ac_link) 2>&5
21382   ac_status=$?
21383   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21384   (exit $ac_status); } &&
21385          { ac_try='test -s conftest$ac_exeext'
21386   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21387   (eval $ac_try) 2>&5
21388   ac_status=$?
21389   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21390   (exit $ac_status); }; }; then
21391   ac_cv_working_alloca_h=yes
21392 else
21393   echo "$as_me: failed program was:" >&5
21394 sed 's/^/| /' conftest.$ac_ext >&5
21395
21396 ac_cv_working_alloca_h=no
21397 fi
21398 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21399 fi
21400 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
21401 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
21402 if test $ac_cv_working_alloca_h = yes; then
21403
21404 cat >>confdefs.h <<\_ACEOF
21405 #define HAVE_ALLOCA_H 1
21406 _ACEOF
21407
21408 fi
21409
21410 echo "$as_me:$LINENO: checking for alloca" >&5
21411 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
21412 if test "${ac_cv_func_alloca_works+set}" = set; then
21413   echo $ECHO_N "(cached) $ECHO_C" >&6
21414 else
21415   cat >conftest.$ac_ext <<_ACEOF
21416 #line $LINENO "configure"
21417 /* confdefs.h.  */
21418 _ACEOF
21419 cat confdefs.h >>conftest.$ac_ext
21420 cat >>conftest.$ac_ext <<_ACEOF
21421 /* end confdefs.h.  */
21422 #ifdef __GNUC__
21423 # define alloca __builtin_alloca
21424 #else
21425 # ifdef _MSC_VER
21426 #  include <malloc.h>
21427 #  define alloca _alloca
21428 # else
21429 #  if HAVE_ALLOCA_H
21430 #   include <alloca.h>
21431 #  else
21432 #   ifdef _AIX
21433  #pragma alloca
21434 #   else
21435 #    ifndef alloca /* predefined by HP cc +Olibcalls */
21436 char *alloca ();
21437 #    endif
21438 #   endif
21439 #  endif
21440 # endif
21441 #endif
21442
21443 int
21444 main ()
21445 {
21446 char *p = (char *) alloca (1);
21447   ;
21448   return 0;
21449 }
21450 _ACEOF
21451 rm -f conftest.$ac_objext conftest$ac_exeext
21452 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21453   (eval $ac_link) 2>&5
21454   ac_status=$?
21455   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21456   (exit $ac_status); } &&
21457          { ac_try='test -s conftest$ac_exeext'
21458   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21459   (eval $ac_try) 2>&5
21460   ac_status=$?
21461   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21462   (exit $ac_status); }; }; then
21463   ac_cv_func_alloca_works=yes
21464 else
21465   echo "$as_me: failed program was:" >&5
21466 sed 's/^/| /' conftest.$ac_ext >&5
21467
21468 ac_cv_func_alloca_works=no
21469 fi
21470 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21471 fi
21472 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
21473 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
21474
21475 if test $ac_cv_func_alloca_works = yes; then
21476
21477 cat >>confdefs.h <<\_ACEOF
21478 #define HAVE_ALLOCA 1
21479 _ACEOF
21480
21481 else
21482   # The SVR3 libPW and SVR4 libucb both contain incompatible functions
21483 # that cause trouble.  Some versions do not even contain alloca or
21484 # contain a buggy version.  If you still want to use their alloca,
21485 # use ar to extract alloca.o from them instead of compiling alloca.c.
21486
21487 ALLOCA=alloca.$ac_objext
21488
21489 cat >>confdefs.h <<\_ACEOF
21490 #define C_ALLOCA 1
21491 _ACEOF
21492
21493
21494 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
21495 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
21496 if test "${ac_cv_os_cray+set}" = set; then
21497   echo $ECHO_N "(cached) $ECHO_C" >&6
21498 else
21499   cat >conftest.$ac_ext <<_ACEOF
21500 #line $LINENO "configure"
21501 /* confdefs.h.  */
21502 _ACEOF
21503 cat confdefs.h >>conftest.$ac_ext
21504 cat >>conftest.$ac_ext <<_ACEOF
21505 /* end confdefs.h.  */
21506 #if defined(CRAY) && ! defined(CRAY2)
21507 webecray
21508 #else
21509 wenotbecray
21510 #endif
21511
21512 _ACEOF
21513 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21514   $EGREP "webecray" >/dev/null 2>&1; then
21515   ac_cv_os_cray=yes
21516 else
21517   ac_cv_os_cray=no
21518 fi
21519 rm -f conftest*
21520
21521 fi
21522 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
21523 echo "${ECHO_T}$ac_cv_os_cray" >&6
21524 if test $ac_cv_os_cray = yes; then
21525   for ac_func in _getb67 GETB67 getb67; do
21526     as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21527 echo "$as_me:$LINENO: checking for $ac_func" >&5
21528 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
21529 if eval "test \"\${$as_ac_var+set}\" = set"; then
21530   echo $ECHO_N "(cached) $ECHO_C" >&6
21531 else
21532   cat >conftest.$ac_ext <<_ACEOF
21533 #line $LINENO "configure"
21534 /* confdefs.h.  */
21535 _ACEOF
21536 cat confdefs.h >>conftest.$ac_ext
21537 cat >>conftest.$ac_ext <<_ACEOF
21538 /* end confdefs.h.  */
21539 /* System header to define __stub macros and hopefully few prototypes,
21540     which can conflict with char $ac_func (); below.
21541     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21542     <limits.h> exists even on freestanding compilers.  */
21543 #ifdef __STDC__
21544 # include <limits.h>
21545 #else
21546 # include <assert.h>
21547 #endif
21548 /* Override any gcc2 internal prototype to avoid an error.  */
21549 #ifdef __cplusplus
21550 extern "C"
21551 {
21552 #endif
21553 /* We use char because int might match the return type of a gcc2
21554    builtin and then its argument prototype would still apply.  */
21555 char $ac_func ();
21556 /* The GNU C library defines this for functions which it implements
21557     to always fail with ENOSYS.  Some functions are actually named
21558     something starting with __ and the normal name is an alias.  */
21559 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21560 choke me
21561 #else
21562 char (*f) () = $ac_func;
21563 #endif
21564 #ifdef __cplusplus
21565 }
21566 #endif
21567
21568 int
21569 main ()
21570 {
21571 return f != $ac_func;
21572   ;
21573   return 0;
21574 }
21575 _ACEOF
21576 rm -f conftest.$ac_objext conftest$ac_exeext
21577 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21578   (eval $ac_link) 2>&5
21579   ac_status=$?
21580   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21581   (exit $ac_status); } &&
21582          { ac_try='test -s conftest$ac_exeext'
21583   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21584   (eval $ac_try) 2>&5
21585   ac_status=$?
21586   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21587   (exit $ac_status); }; }; then
21588   eval "$as_ac_var=yes"
21589 else
21590   echo "$as_me: failed program was:" >&5
21591 sed 's/^/| /' conftest.$ac_ext >&5
21592
21593 eval "$as_ac_var=no"
21594 fi
21595 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21596 fi
21597 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
21598 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
21599 if test `eval echo '${'$as_ac_var'}'` = yes; then
21600
21601 cat >>confdefs.h <<_ACEOF
21602 #define CRAY_STACKSEG_END $ac_func
21603 _ACEOF
21604
21605     break
21606 fi
21607
21608   done
21609 fi
21610
21611 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
21612 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
21613 if test "${ac_cv_c_stack_direction+set}" = set; then
21614   echo $ECHO_N "(cached) $ECHO_C" >&6
21615 else
21616   if test "$cross_compiling" = yes; then
21617   ac_cv_c_stack_direction=0
21618 else
21619   cat >conftest.$ac_ext <<_ACEOF
21620 #line $LINENO "configure"
21621 /* confdefs.h.  */
21622 _ACEOF
21623 cat confdefs.h >>conftest.$ac_ext
21624 cat >>conftest.$ac_ext <<_ACEOF
21625 /* end confdefs.h.  */
21626 int
21627 find_stack_direction ()
21628 {
21629   static char *addr = 0;
21630   auto char dummy;
21631   if (addr == 0)
21632     {
21633       addr = &dummy;
21634       return find_stack_direction ();
21635     }
21636   else
21637     return (&dummy > addr) ? 1 : -1;
21638 }
21639
21640 int
21641 main ()
21642 {
21643   exit (find_stack_direction () < 0);
21644 }
21645 _ACEOF
21646 rm -f conftest$ac_exeext
21647 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21648   (eval $ac_link) 2>&5
21649   ac_status=$?
21650   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21651   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21652   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21653   (eval $ac_try) 2>&5
21654   ac_status=$?
21655   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21656   (exit $ac_status); }; }; then
21657   ac_cv_c_stack_direction=1
21658 else
21659   echo "$as_me: program exited with status $ac_status" >&5
21660 echo "$as_me: failed program was:" >&5
21661 sed 's/^/| /' conftest.$ac_ext >&5
21662
21663 ( exit $ac_status )
21664 ac_cv_c_stack_direction=-1
21665 fi
21666 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21667 fi
21668 fi
21669 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
21670 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
21671
21672 cat >>confdefs.h <<_ACEOF
21673 #define STACK_DIRECTION $ac_cv_c_stack_direction
21674 _ACEOF
21675
21676
21677 fi
21678
21679 if test $ac_cv_c_compiler_gnu = yes; then
21680     echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
21681 echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6
21682 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
21683   echo $ECHO_N "(cached) $ECHO_C" >&6
21684 else
21685     ac_pattern="Autoconf.*'x'"
21686   cat >conftest.$ac_ext <<_ACEOF
21687 #line $LINENO "configure"
21688 /* confdefs.h.  */
21689 _ACEOF
21690 cat confdefs.h >>conftest.$ac_ext
21691 cat >>conftest.$ac_ext <<_ACEOF
21692 /* end confdefs.h.  */
21693 #include <sgtty.h>
21694 Autoconf TIOCGETP
21695 _ACEOF
21696 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21697   $EGREP "$ac_pattern" >/dev/null 2>&1; then
21698   ac_cv_prog_gcc_traditional=yes
21699 else
21700   ac_cv_prog_gcc_traditional=no
21701 fi
21702 rm -f conftest*
21703
21704
21705   if test $ac_cv_prog_gcc_traditional = no; then
21706     cat >conftest.$ac_ext <<_ACEOF
21707 #line $LINENO "configure"
21708 /* confdefs.h.  */
21709 _ACEOF
21710 cat confdefs.h >>conftest.$ac_ext
21711 cat >>conftest.$ac_ext <<_ACEOF
21712 /* end confdefs.h.  */
21713 #include <termio.h>
21714 Autoconf TCGETA
21715 _ACEOF
21716 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21717   $EGREP "$ac_pattern" >/dev/null 2>&1; then
21718   ac_cv_prog_gcc_traditional=yes
21719 fi
21720 rm -f conftest*
21721
21722   fi
21723 fi
21724 echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
21725 echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6
21726   if test $ac_cv_prog_gcc_traditional = yes; then
21727     CC="$CC -traditional"
21728   fi
21729 fi
21730
21731 echo "$as_me:$LINENO: checking for working memcmp" >&5
21732 echo $ECHO_N "checking for working memcmp... $ECHO_C" >&6
21733 if test "${ac_cv_func_memcmp_working+set}" = set; then
21734   echo $ECHO_N "(cached) $ECHO_C" >&6
21735 else
21736   if test "$cross_compiling" = yes; then
21737   ac_cv_func_memcmp_working=no
21738 else
21739   cat >conftest.$ac_ext <<_ACEOF
21740 #line $LINENO "configure"
21741 /* confdefs.h.  */
21742 _ACEOF
21743 cat confdefs.h >>conftest.$ac_ext
21744 cat >>conftest.$ac_ext <<_ACEOF
21745 /* end confdefs.h.  */
21746
21747 int
21748 main ()
21749 {
21750
21751   /* Some versions of memcmp are not 8-bit clean.  */
21752   char c0 = 0x40, c1 = 0x80, c2 = 0x81;
21753   if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
21754     exit (1);
21755
21756   /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
21757      or more and with at least one buffer not starting on a 4-byte boundary.
21758      William Lewis provided this test program.   */
21759   {
21760     char foo[21];
21761     char bar[21];
21762     int i;
21763     for (i = 0; i < 4; i++)
21764       {
21765         char *a = foo + i;
21766         char *b = bar + i;
21767         strcpy (a, "--------01111111");
21768         strcpy (b, "--------10000000");
21769         if (memcmp (a, b, 16) >= 0)
21770           exit (1);
21771       }
21772     exit (0);
21773   }
21774
21775   ;
21776   return 0;
21777 }
21778 _ACEOF
21779 rm -f conftest$ac_exeext
21780 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21781   (eval $ac_link) 2>&5
21782   ac_status=$?
21783   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21784   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21785   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21786   (eval $ac_try) 2>&5
21787   ac_status=$?
21788   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21789   (exit $ac_status); }; }; then
21790   ac_cv_func_memcmp_working=yes
21791 else
21792   echo "$as_me: program exited with status $ac_status" >&5
21793 echo "$as_me: failed program was:" >&5
21794 sed 's/^/| /' conftest.$ac_ext >&5
21795
21796 ( exit $ac_status )
21797 ac_cv_func_memcmp_working=no
21798 fi
21799 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21800 fi
21801 fi
21802 echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
21803 echo "${ECHO_T}$ac_cv_func_memcmp_working" >&6
21804 test $ac_cv_func_memcmp_working = no && LIBOBJS="$LIBOBJS memcmp.$ac_objext"
21805
21806
21807
21808 for ac_header in stdlib.h unistd.h
21809 do
21810 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21811 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21812   echo "$as_me:$LINENO: checking for $ac_header" >&5
21813 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21814 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21815   echo $ECHO_N "(cached) $ECHO_C" >&6
21816 fi
21817 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21818 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21819 else
21820   # Is the header compilable?
21821 echo "$as_me:$LINENO: checking $ac_header usability" >&5
21822 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
21823 cat >conftest.$ac_ext <<_ACEOF
21824 #line $LINENO "configure"
21825 /* confdefs.h.  */
21826 _ACEOF
21827 cat confdefs.h >>conftest.$ac_ext
21828 cat >>conftest.$ac_ext <<_ACEOF
21829 /* end confdefs.h.  */
21830 $ac_includes_default
21831 #include <$ac_header>
21832 _ACEOF
21833 rm -f conftest.$ac_objext
21834 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21835   (eval $ac_compile) 2>&5
21836   ac_status=$?
21837   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21838   (exit $ac_status); } &&
21839          { ac_try='test -s conftest.$ac_objext'
21840   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21841   (eval $ac_try) 2>&5
21842   ac_status=$?
21843   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21844   (exit $ac_status); }; }; then
21845   ac_header_compiler=yes
21846 else
21847   echo "$as_me: failed program was:" >&5
21848 sed 's/^/| /' conftest.$ac_ext >&5
21849
21850 ac_header_compiler=no
21851 fi
21852 rm -f conftest.$ac_objext conftest.$ac_ext
21853 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21854 echo "${ECHO_T}$ac_header_compiler" >&6
21855
21856 # Is the header present?
21857 echo "$as_me:$LINENO: checking $ac_header presence" >&5
21858 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
21859 cat >conftest.$ac_ext <<_ACEOF
21860 #line $LINENO "configure"
21861 /* confdefs.h.  */
21862 _ACEOF
21863 cat confdefs.h >>conftest.$ac_ext
21864 cat >>conftest.$ac_ext <<_ACEOF
21865 /* end confdefs.h.  */
21866 #include <$ac_header>
21867 _ACEOF
21868 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21869   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21870   ac_status=$?
21871   grep -v '^ *+' conftest.er1 >conftest.err
21872   rm -f conftest.er1
21873   cat conftest.err >&5
21874   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21875   (exit $ac_status); } >/dev/null; then
21876   if test -s conftest.err; then
21877     ac_cpp_err=$ac_c_preproc_warn_flag
21878   else
21879     ac_cpp_err=
21880   fi
21881 else
21882   ac_cpp_err=yes
21883 fi
21884 if test -z "$ac_cpp_err"; then
21885   ac_header_preproc=yes
21886 else
21887   echo "$as_me: failed program was:" >&5
21888 sed 's/^/| /' conftest.$ac_ext >&5
21889
21890   ac_header_preproc=no
21891 fi
21892 rm -f conftest.err conftest.$ac_ext
21893 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21894 echo "${ECHO_T}$ac_header_preproc" >&6
21895
21896 # So?  What about this header?
21897 case $ac_header_compiler:$ac_header_preproc in
21898   yes:no )
21899     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21900 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21901     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21902 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21903     (
21904       cat <<\_ASBOX
21905 ## ------------------------------------ ##
21906 ## Report this to bug-autoconf@gnu.org. ##
21907 ## ------------------------------------ ##
21908 _ASBOX
21909     ) |
21910       sed "s/^/$as_me: WARNING:     /" >&2
21911     ;;
21912   no:yes )
21913     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21914 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21915     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21916 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21917     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21918 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21919     (
21920       cat <<\_ASBOX
21921 ## ------------------------------------ ##
21922 ## Report this to bug-autoconf@gnu.org. ##
21923 ## ------------------------------------ ##
21924 _ASBOX
21925     ) |
21926       sed "s/^/$as_me: WARNING:     /" >&2
21927     ;;
21928 esac
21929 echo "$as_me:$LINENO: checking for $ac_header" >&5
21930 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21931 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21932   echo $ECHO_N "(cached) $ECHO_C" >&6
21933 else
21934   eval "$as_ac_Header=$ac_header_preproc"
21935 fi
21936 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21937 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21938
21939 fi
21940 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21941   cat >>confdefs.h <<_ACEOF
21942 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21943 _ACEOF
21944
21945 fi
21946
21947 done
21948
21949
21950 for ac_func in getpagesize
21951 do
21952 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21953 echo "$as_me:$LINENO: checking for $ac_func" >&5
21954 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
21955 if eval "test \"\${$as_ac_var+set}\" = set"; then
21956   echo $ECHO_N "(cached) $ECHO_C" >&6
21957 else
21958   cat >conftest.$ac_ext <<_ACEOF
21959 #line $LINENO "configure"
21960 /* confdefs.h.  */
21961 _ACEOF
21962 cat confdefs.h >>conftest.$ac_ext
21963 cat >>conftest.$ac_ext <<_ACEOF
21964 /* end confdefs.h.  */
21965 /* System header to define __stub macros and hopefully few prototypes,
21966     which can conflict with char $ac_func (); below.
21967     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21968     <limits.h> exists even on freestanding compilers.  */
21969 #ifdef __STDC__
21970 # include <limits.h>
21971 #else
21972 # include <assert.h>
21973 #endif
21974 /* Override any gcc2 internal prototype to avoid an error.  */
21975 #ifdef __cplusplus
21976 extern "C"
21977 {
21978 #endif
21979 /* We use char because int might match the return type of a gcc2
21980    builtin and then its argument prototype would still apply.  */
21981 char $ac_func ();
21982 /* The GNU C library defines this for functions which it implements
21983     to always fail with ENOSYS.  Some functions are actually named
21984     something starting with __ and the normal name is an alias.  */
21985 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21986 choke me
21987 #else
21988 char (*f) () = $ac_func;
21989 #endif
21990 #ifdef __cplusplus
21991 }
21992 #endif
21993
21994 int
21995 main ()
21996 {
21997 return f != $ac_func;
21998   ;
21999   return 0;
22000 }
22001 _ACEOF
22002 rm -f conftest.$ac_objext conftest$ac_exeext
22003 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22004   (eval $ac_link) 2>&5
22005   ac_status=$?
22006   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22007   (exit $ac_status); } &&
22008          { ac_try='test -s conftest$ac_exeext'
22009   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22010   (eval $ac_try) 2>&5
22011   ac_status=$?
22012   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22013   (exit $ac_status); }; }; then
22014   eval "$as_ac_var=yes"
22015 else
22016   echo "$as_me: failed program was:" >&5
22017 sed 's/^/| /' conftest.$ac_ext >&5
22018
22019 eval "$as_ac_var=no"
22020 fi
22021 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
22022 fi
22023 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
22024 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
22025 if test `eval echo '${'$as_ac_var'}'` = yes; then
22026   cat >>confdefs.h <<_ACEOF
22027 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22028 _ACEOF
22029
22030 fi
22031 done
22032
22033 echo "$as_me:$LINENO: checking for working mmap" >&5
22034 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
22035 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
22036   echo $ECHO_N "(cached) $ECHO_C" >&6
22037 else
22038   if test "$cross_compiling" = yes; then
22039   ac_cv_func_mmap_fixed_mapped=no
22040 else
22041   cat >conftest.$ac_ext <<_ACEOF
22042 #line $LINENO "configure"
22043 /* confdefs.h.  */
22044 _ACEOF
22045 cat confdefs.h >>conftest.$ac_ext
22046 cat >>conftest.$ac_ext <<_ACEOF
22047 /* end confdefs.h.  */
22048 $ac_includes_default
22049 /* malloc might have been renamed as rpl_malloc. */
22050 #undef malloc
22051
22052 /* Thanks to Mike Haertel and Jim Avera for this test.
22053    Here is a matrix of mmap possibilities:
22054         mmap private not fixed
22055         mmap private fixed at somewhere currently unmapped
22056         mmap private fixed at somewhere already mapped
22057         mmap shared not fixed
22058         mmap shared fixed at somewhere currently unmapped
22059         mmap shared fixed at somewhere already mapped
22060    For private mappings, we should verify that changes cannot be read()
22061    back from the file, nor mmap's back from the file at a different
22062    address.  (There have been systems where private was not correctly
22063    implemented like the infamous i386 svr4.0, and systems where the
22064    VM page cache was not coherent with the file system buffer cache
22065    like early versions of FreeBSD and possibly contemporary NetBSD.)
22066    For shared mappings, we should conversely verify that changes get
22067    propagated back to all the places they're supposed to be.
22068
22069    Grep wants private fixed already mapped.
22070    The main things grep needs to know about mmap are:
22071    * does it exist and is it safe to write into the mmap'd area
22072    * how to use it (BSD variants)  */
22073
22074 #include <fcntl.h>
22075 #include <sys/mman.h>
22076
22077 #if !STDC_HEADERS && !HAVE_STDLIB_H
22078 char *malloc ();
22079 #endif
22080
22081 /* This mess was copied from the GNU getpagesize.h.  */
22082 #if !HAVE_GETPAGESIZE
22083 /* Assume that all systems that can run configure have sys/param.h.  */
22084 # if !HAVE_SYS_PARAM_H
22085 #  define HAVE_SYS_PARAM_H 1
22086 # endif
22087
22088 # ifdef _SC_PAGESIZE
22089 #  define getpagesize() sysconf(_SC_PAGESIZE)
22090 # else /* no _SC_PAGESIZE */
22091 #  if HAVE_SYS_PARAM_H
22092 #   include <sys/param.h>
22093 #   ifdef EXEC_PAGESIZE
22094 #    define getpagesize() EXEC_PAGESIZE
22095 #   else /* no EXEC_PAGESIZE */
22096 #    ifdef NBPG
22097 #     define getpagesize() NBPG * CLSIZE
22098 #     ifndef CLSIZE
22099 #      define CLSIZE 1
22100 #     endif /* no CLSIZE */
22101 #    else /* no NBPG */
22102 #     ifdef NBPC
22103 #      define getpagesize() NBPC
22104 #     else /* no NBPC */
22105 #      ifdef PAGESIZE
22106 #       define getpagesize() PAGESIZE
22107 #      endif /* PAGESIZE */
22108 #     endif /* no NBPC */
22109 #    endif /* no NBPG */
22110 #   endif /* no EXEC_PAGESIZE */
22111 #  else /* no HAVE_SYS_PARAM_H */
22112 #   define getpagesize() 8192   /* punt totally */
22113 #  endif /* no HAVE_SYS_PARAM_H */
22114 # endif /* no _SC_PAGESIZE */
22115
22116 #endif /* no HAVE_GETPAGESIZE */
22117
22118 int
22119 main ()
22120 {
22121   char *data, *data2, *data3;
22122   int i, pagesize;
22123   int fd;
22124
22125   pagesize = getpagesize ();
22126
22127   /* First, make a file with some known garbage in it. */
22128   data = (char *) malloc (pagesize);
22129   if (!data)
22130     exit (1);
22131   for (i = 0; i < pagesize; ++i)
22132     *(data + i) = rand ();
22133   umask (0);
22134   fd = creat ("conftest.mmap", 0600);
22135   if (fd < 0)
22136     exit (1);
22137   if (write (fd, data, pagesize) != pagesize)
22138     exit (1);
22139   close (fd);
22140
22141   /* Next, try to mmap the file at a fixed address which already has
22142      something else allocated at it.  If we can, also make sure that
22143      we see the same garbage.  */
22144   fd = open ("conftest.mmap", O_RDWR);
22145   if (fd < 0)
22146     exit (1);
22147   data2 = (char *) malloc (2 * pagesize);
22148   if (!data2)
22149     exit (1);
22150   data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
22151   if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
22152                      MAP_PRIVATE | MAP_FIXED, fd, 0L))
22153     exit (1);
22154   for (i = 0; i < pagesize; ++i)
22155     if (*(data + i) != *(data2 + i))
22156       exit (1);
22157
22158   /* Finally, make sure that changes to the mapped area do not
22159      percolate back to the file as seen by read().  (This is a bug on
22160      some variants of i386 svr4.0.)  */
22161   for (i = 0; i < pagesize; ++i)
22162     *(data2 + i) = *(data2 + i) + 1;
22163   data3 = (char *) malloc (pagesize);
22164   if (!data3)
22165     exit (1);
22166   if (read (fd, data3, pagesize) != pagesize)
22167     exit (1);
22168   for (i = 0; i < pagesize; ++i)
22169     if (*(data + i) != *(data3 + i))
22170       exit (1);
22171   close (fd);
22172   exit (0);
22173 }
22174 _ACEOF
22175 rm -f conftest$ac_exeext
22176 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22177   (eval $ac_link) 2>&5
22178   ac_status=$?
22179   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22180   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22181   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22182   (eval $ac_try) 2>&5
22183   ac_status=$?
22184   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22185   (exit $ac_status); }; }; then
22186   ac_cv_func_mmap_fixed_mapped=yes
22187 else
22188   echo "$as_me: program exited with status $ac_status" >&5
22189 echo "$as_me: failed program was:" >&5
22190 sed 's/^/| /' conftest.$ac_ext >&5
22191
22192 ( exit $ac_status )
22193 ac_cv_func_mmap_fixed_mapped=no
22194 fi
22195 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22196 fi
22197 fi
22198 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
22199 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
22200 if test $ac_cv_func_mmap_fixed_mapped = yes; then
22201
22202 cat >>confdefs.h <<\_ACEOF
22203 #define HAVE_MMAP 1
22204 _ACEOF
22205
22206 fi
22207 rm -f conftest.mmap
22208
22209 echo "$as_me:$LINENO: checking for mmap of files" >&5
22210 echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6
22211 if test "${ac_cv_func_mmap_file+set}" = set; then
22212   echo $ECHO_N "(cached) $ECHO_C" >&6
22213 else
22214
22215
22216   ac_ext=c
22217 ac_cpp='$CPP $CPPFLAGS'
22218 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22219 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22220 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22221
22222   if test "$cross_compiling" = yes; then
22223   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
22224 See \`config.log' for more details." >&5
22225 echo "$as_me: error: cannot run test program while cross compiling
22226 See \`config.log' for more details." >&2;}
22227    { (exit 1); exit 1; }; }
22228 else
22229   cat >conftest.$ac_ext <<_ACEOF
22230 #line $LINENO "configure"
22231 /* confdefs.h.  */
22232 _ACEOF
22233 cat confdefs.h >>conftest.$ac_ext
22234 cat >>conftest.$ac_ext <<_ACEOF
22235 /* end confdefs.h.  */
22236
22237 #ifdef HAVE_SYS_MMAN_H
22238 #include <sys/mman.h>
22239 #endif
22240
22241 #ifdef HAVE_SYS_TYPES_H
22242 #include <sys/types.h>
22243 #endif
22244
22245 #ifdef HAVE_FCNTL_H
22246 #include <fcntl.h>
22247 #endif
22248
22249   int fd;
22250   int main () {
22251   fd = creat ("foo",0777); fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0); unlink ("foo"); return (fd != MAP_FAILED);}
22252 _ACEOF
22253 rm -f conftest$ac_exeext
22254 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22255   (eval $ac_link) 2>&5
22256   ac_status=$?
22257   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22258   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22259   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22260   (eval $ac_try) 2>&5
22261   ac_status=$?
22262   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22263   (exit $ac_status); }; }; then
22264   ac_cv_func_mmap_file=yes
22265 else
22266   echo "$as_me: program exited with status $ac_status" >&5
22267 echo "$as_me: failed program was:" >&5
22268 sed 's/^/| /' conftest.$ac_ext >&5
22269
22270 ( exit $ac_status )
22271 ac_cv_func_mmap_file=no
22272 fi
22273 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22274 fi
22275   ac_ext=c
22276 ac_cpp='$CPP $CPPFLAGS'
22277 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22278 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22279 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22280
22281
22282 fi
22283 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
22284 echo "${ECHO_T}$ac_cv_func_mmap_file" >&6
22285 if test "$ac_cv_func_mmap_file" = yes; then
22286    cat >>confdefs.h <<\_ACEOF
22287 #define HAVE_MMAP_FILE 1
22288 _ACEOF
22289
22290    MMAP_FILE=yes
22291
22292 fi
22293
22294 if test ${ac_cv_func_mmap_file} = "no"
22295 then
22296         { { echo "$as_me:$LINENO: error: mmap() of files required but not found" >&5
22297 echo "$as_me: error: mmap() of files required but not found" >&2;}
22298    { (exit 1); exit 1; }; }
22299 fi
22300 echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5
22301 echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6
22302 if test "${ac_cv_header_mmap_anon+set}" = set; then
22303   echo $ECHO_N "(cached) $ECHO_C" >&6
22304 else
22305
22306
22307   ac_ext=c
22308 ac_cpp='$CPP $CPPFLAGS'
22309 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22310 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22311 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22312
22313   cat >conftest.$ac_ext <<_ACEOF
22314 #line $LINENO "configure"
22315 /* confdefs.h.  */
22316 _ACEOF
22317 cat confdefs.h >>conftest.$ac_ext
22318 cat >>conftest.$ac_ext <<_ACEOF
22319 /* end confdefs.h.  */
22320 #include <sys/mman.h>
22321   #include <unistd.h>
22322   #include <fcntl.h>
22323 int
22324 main ()
22325 {
22326 mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0);
22327   ;
22328   return 0;
22329 }
22330 _ACEOF
22331 rm -f conftest.$ac_objext
22332 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22333   (eval $ac_compile) 2>&5
22334   ac_status=$?
22335   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22336   (exit $ac_status); } &&
22337          { ac_try='test -s conftest.$ac_objext'
22338   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22339   (eval $ac_try) 2>&5
22340   ac_status=$?
22341   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22342   (exit $ac_status); }; }; then
22343   ac_cv_header_mmap_anon=yes
22344 else
22345   echo "$as_me: failed program was:" >&5
22346 sed 's/^/| /' conftest.$ac_ext >&5
22347
22348 ac_cv_header_mmap_anon=no
22349 fi
22350 rm -f conftest.$ac_objext conftest.$ac_ext
22351   ac_ext=c
22352 ac_cpp='$CPP $CPPFLAGS'
22353 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22354 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22355 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22356
22357
22358 fi
22359 echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5
22360 echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6
22361 if test "$ac_cv_header_mmap_anon" = yes; then
22362    cat >>confdefs.h <<\_ACEOF
22363 #define HAVE_MMAP_ANONYMOUS 1
22364 _ACEOF
22365
22366 fi
22367
22368 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
22369 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
22370 if test "${ac_cv_type_signal+set}" = set; then
22371   echo $ECHO_N "(cached) $ECHO_C" >&6
22372 else
22373   cat >conftest.$ac_ext <<_ACEOF
22374 #line $LINENO "configure"
22375 /* confdefs.h.  */
22376 _ACEOF
22377 cat confdefs.h >>conftest.$ac_ext
22378 cat >>conftest.$ac_ext <<_ACEOF
22379 /* end confdefs.h.  */
22380 #include <sys/types.h>
22381 #include <signal.h>
22382 #ifdef signal
22383 # undef signal
22384 #endif
22385 #ifdef __cplusplus
22386 extern "C" void (*signal (int, void (*)(int)))(int);
22387 #else
22388 void (*signal ()) ();
22389 #endif
22390
22391 int
22392 main ()
22393 {
22394 int i;
22395   ;
22396   return 0;
22397 }
22398 _ACEOF
22399 rm -f conftest.$ac_objext
22400 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22401   (eval $ac_compile) 2>&5
22402   ac_status=$?
22403   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22404   (exit $ac_status); } &&
22405          { ac_try='test -s conftest.$ac_objext'
22406   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22407   (eval $ac_try) 2>&5
22408   ac_status=$?
22409   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22410   (exit $ac_status); }; }; then
22411   ac_cv_type_signal=void
22412 else
22413   echo "$as_me: failed program was:" >&5
22414 sed 's/^/| /' conftest.$ac_ext >&5
22415
22416 ac_cv_type_signal=int
22417 fi
22418 rm -f conftest.$ac_objext conftest.$ac_ext
22419 fi
22420 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
22421 echo "${ECHO_T}$ac_cv_type_signal" >&6
22422
22423 cat >>confdefs.h <<_ACEOF
22424 #define RETSIGTYPE $ac_cv_type_signal
22425 _ACEOF
22426
22427
22428
22429
22430
22431
22432
22433
22434
22435
22436
22437 for ac_func in getcwd gettimeofday strcspn strdup strerror strspn strstr strtod strtol
22438 do
22439 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22440 echo "$as_me:$LINENO: checking for $ac_func" >&5
22441 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
22442 if eval "test \"\${$as_ac_var+set}\" = set"; then
22443   echo $ECHO_N "(cached) $ECHO_C" >&6
22444 else
22445   cat >conftest.$ac_ext <<_ACEOF
22446 #line $LINENO "configure"
22447 /* confdefs.h.  */
22448 _ACEOF
22449 cat confdefs.h >>conftest.$ac_ext
22450 cat >>conftest.$ac_ext <<_ACEOF
22451 /* end confdefs.h.  */
22452 /* System header to define __stub macros and hopefully few prototypes,
22453     which can conflict with char $ac_func (); below.
22454     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22455     <limits.h> exists even on freestanding compilers.  */
22456 #ifdef __STDC__
22457 # include <limits.h>
22458 #else
22459 # include <assert.h>
22460 #endif
22461 /* Override any gcc2 internal prototype to avoid an error.  */
22462 #ifdef __cplusplus
22463 extern "C"
22464 {
22465 #endif
22466 /* We use char because int might match the return type of a gcc2
22467    builtin and then its argument prototype would still apply.  */
22468 char $ac_func ();
22469 /* The GNU C library defines this for functions which it implements
22470     to always fail with ENOSYS.  Some functions are actually named
22471     something starting with __ and the normal name is an alias.  */
22472 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22473 choke me
22474 #else
22475 char (*f) () = $ac_func;
22476 #endif
22477 #ifdef __cplusplus
22478 }
22479 #endif
22480
22481 int
22482 main ()
22483 {
22484 return f != $ac_func;
22485   ;
22486   return 0;
22487 }
22488 _ACEOF
22489 rm -f conftest.$ac_objext conftest$ac_exeext
22490 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22491   (eval $ac_link) 2>&5
22492   ac_status=$?
22493   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22494   (exit $ac_status); } &&
22495          { ac_try='test -s conftest$ac_exeext'
22496   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22497   (eval $ac_try) 2>&5
22498   ac_status=$?
22499   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22500   (exit $ac_status); }; }; then
22501   eval "$as_ac_var=yes"
22502 else
22503   echo "$as_me: failed program was:" >&5
22504 sed 's/^/| /' conftest.$ac_ext >&5
22505
22506 eval "$as_ac_var=no"
22507 fi
22508 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
22509 fi
22510 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
22511 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
22512 if test `eval echo '${'$as_ac_var'}'` = yes; then
22513   cat >>confdefs.h <<_ACEOF
22514 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22515 _ACEOF
22516
22517 fi
22518 done
22519
22520
22521
22522 echo "$as_me:$LINENO: checking for mmap" >&5
22523 echo $ECHO_N "checking for mmap... $ECHO_C" >&6
22524 if test "${ac_cv_func_mmap+set}" = set; then
22525   echo $ECHO_N "(cached) $ECHO_C" >&6
22526 else
22527   cat >conftest.$ac_ext <<_ACEOF
22528 #line $LINENO "configure"
22529 /* confdefs.h.  */
22530 _ACEOF
22531 cat confdefs.h >>conftest.$ac_ext
22532 cat >>conftest.$ac_ext <<_ACEOF
22533 /* end confdefs.h.  */
22534 /* System header to define __stub macros and hopefully few prototypes,
22535     which can conflict with char mmap (); below.
22536     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22537     <limits.h> exists even on freestanding compilers.  */
22538 #ifdef __STDC__
22539 # include <limits.h>
22540 #else
22541 # include <assert.h>
22542 #endif
22543 /* Override any gcc2 internal prototype to avoid an error.  */
22544 #ifdef __cplusplus
22545 extern "C"
22546 {
22547 #endif
22548 /* We use char because int might match the return type of a gcc2
22549    builtin and then its argument prototype would still apply.  */
22550 char mmap ();
22551 /* The GNU C library defines this for functions which it implements
22552     to always fail with ENOSYS.  Some functions are actually named
22553     something starting with __ and the normal name is an alias.  */
22554 #if defined (__stub_mmap) || defined (__stub___mmap)
22555 choke me
22556 #else
22557 char (*f) () = mmap;
22558 #endif
22559 #ifdef __cplusplus
22560 }
22561 #endif
22562
22563 int
22564 main ()
22565 {
22566 return f != mmap;
22567   ;
22568   return 0;
22569 }
22570 _ACEOF
22571 rm -f conftest.$ac_objext conftest$ac_exeext
22572 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22573   (eval $ac_link) 2>&5
22574   ac_status=$?
22575   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22576   (exit $ac_status); } &&
22577          { ac_try='test -s conftest$ac_exeext'
22578   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22579   (eval $ac_try) 2>&5
22580   ac_status=$?
22581   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22582   (exit $ac_status); }; }; then
22583   ac_cv_func_mmap=yes
22584 else
22585   echo "$as_me: failed program was:" >&5
22586 sed 's/^/| /' conftest.$ac_ext >&5
22587
22588 ac_cv_func_mmap=no
22589 fi
22590 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
22591 fi
22592 echo "$as_me:$LINENO: result: $ac_cv_func_mmap" >&5
22593 echo "${ECHO_T}$ac_cv_func_mmap" >&6
22594 if test $ac_cv_func_mmap = yes; then
22595   :
22596 else
22597   { { echo "$as_me:$LINENO: error: Function mmap() required but not found" >&5
22598 echo "$as_me: error: Function mmap() required but not found" >&2;}
22599    { (exit 1); exit 1; }; }
22600 fi
22601
22602 echo "$as_me:$LINENO: checking for mprotect" >&5
22603 echo $ECHO_N "checking for mprotect... $ECHO_C" >&6
22604 if test "${ac_cv_func_mprotect+set}" = set; then
22605   echo $ECHO_N "(cached) $ECHO_C" >&6
22606 else
22607   cat >conftest.$ac_ext <<_ACEOF
22608 #line $LINENO "configure"
22609 /* confdefs.h.  */
22610 _ACEOF
22611 cat confdefs.h >>conftest.$ac_ext
22612 cat >>conftest.$ac_ext <<_ACEOF
22613 /* end confdefs.h.  */
22614 /* System header to define __stub macros and hopefully few prototypes,
22615     which can conflict with char mprotect (); below.
22616     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22617     <limits.h> exists even on freestanding compilers.  */
22618 #ifdef __STDC__
22619 # include <limits.h>
22620 #else
22621 # include <assert.h>
22622 #endif
22623 /* Override any gcc2 internal prototype to avoid an error.  */
22624 #ifdef __cplusplus
22625 extern "C"
22626 {
22627 #endif
22628 /* We use char because int might match the return type of a gcc2
22629    builtin and then its argument prototype would still apply.  */
22630 char mprotect ();
22631 /* The GNU C library defines this for functions which it implements
22632     to always fail with ENOSYS.  Some functions are actually named
22633     something starting with __ and the normal name is an alias.  */
22634 #if defined (__stub_mprotect) || defined (__stub___mprotect)
22635 choke me
22636 #else
22637 char (*f) () = mprotect;
22638 #endif
22639 #ifdef __cplusplus
22640 }
22641 #endif
22642
22643 int
22644 main ()
22645 {
22646 return f != mprotect;
22647   ;
22648   return 0;
22649 }
22650 _ACEOF
22651 rm -f conftest.$ac_objext conftest$ac_exeext
22652 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22653   (eval $ac_link) 2>&5
22654   ac_status=$?
22655   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22656   (exit $ac_status); } &&
22657          { ac_try='test -s conftest$ac_exeext'
22658   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22659   (eval $ac_try) 2>&5
22660   ac_status=$?
22661   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22662   (exit $ac_status); }; }; then
22663   ac_cv_func_mprotect=yes
22664 else
22665   echo "$as_me: failed program was:" >&5
22666 sed 's/^/| /' conftest.$ac_ext >&5
22667
22668 ac_cv_func_mprotect=no
22669 fi
22670 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
22671 fi
22672 echo "$as_me:$LINENO: result: $ac_cv_func_mprotect" >&5
22673 echo "${ECHO_T}$ac_cv_func_mprotect" >&6
22674 if test $ac_cv_func_mprotect = yes; then
22675   :
22676 else
22677   { { echo "$as_me:$LINENO: error: Function mprotect() required but not found" >&5
22678 echo "$as_me: error: Function mprotect() required but not found" >&2;}
22679    { (exit 1); exit 1; }; }
22680 fi
22681
22682
22683
22684 # Check whether --enable-purify or --disable-purify was given.
22685 if test "${enable_purify+set}" = set; then
22686   enableval="$enable_purify"
22687
22688 else
22689   enableval="no"
22690 fi;
22691 if test ${enableval} = "no"
22692 then
22693         ENABLE_PURIFY=
22694
22695 else
22696         ENABLE_PURIFY=ENABLE_PURIFY=1
22697
22698 fi
22699
22700 # Check whether --enable-optimized or --disable-optimized was given.
22701 if test "${enable_optimized+set}" = set; then
22702   enableval="$enable_optimized"
22703
22704 else
22705   enableval=no
22706 fi;
22707 if test ${enableval} = "no"
22708 then
22709         ENABLE_OPTIMIZED=
22710
22711 else
22712         ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1
22713
22714 fi
22715
22716 # Check whether --enable-spec or --disable-spec was given.
22717 if test "${enable_spec+set}" = set; then
22718   enableval="$enable_spec"
22719
22720 else
22721   enableval=no
22722 fi;
22723 if test ${enableval} = "no"
22724 then
22725         USE_SPEC=
22726
22727 else
22728         USE_SPEC=USE_SPEC=1
22729
22730 fi
22731
22732 # Check whether --enable-precompiled_bytecode or --disable-precompiled_bytecode was given.
22733 if test "${enable_precompiled_bytecode+set}" = set; then
22734   enableval="$enable_precompiled_bytecode"
22735
22736 else
22737   enableval=no
22738 fi;
22739 if test ${enableval} = "no"
22740 then
22741         UPB=
22742
22743 else
22744         UPB=USE_PRECOMPILED_BYTECODE=1
22745
22746 fi
22747
22748
22749 # Check whether --enable-llc_diffs or --disable-llc_diffs was given.
22750 if test "${enable_llc_diffs+set}" = set; then
22751   enableval="$enable_llc_diffs"
22752
22753 else
22754   enableval=yes
22755 fi;
22756 if test ${enableval} = "no"
22757 then
22758         DISABLE_LLC_DIFFS=DISABLE_LLC_DIFFS:=1
22759
22760 else
22761         DISABLE_LLC_DIFFS=
22762
22763 fi
22764
22765 # Check whether --enable-jit or --disable-jit was given.
22766 if test "${enable_jit+set}" = set; then
22767   enableval="$enable_jit"
22768
22769 else
22770   enableval=default
22771 fi;
22772
22773 if test ${enableval} = "no"
22774 then
22775         JIT=
22776
22777 else
22778         case $target in
22779                 *i*86*)
22780                         JIT=TARGET_HAS_JIT=1
22781
22782                         ;;
22783                 *sparc*)
22784                         JIT=TARGET_HAS_JIT=1
22785
22786                         ;;
22787                 *)
22788                         JIT=
22789
22790                         ;;
22791         esac
22792 fi
22793
22794
22795
22796 # Check whether --with-spec or --without-spec was given.
22797 if test "${with_spec+set}" = set; then
22798   withval="$with_spec"
22799   SPEC_ROOT=$withval
22800
22801 else
22802   SPEC_ROOT=/home/vadve/shared/benchmarks/speccpu2000/benchspec
22803
22804 fi;
22805
22806
22807 # Check whether --with-llvmgccdir or --without-llvmgccdir was given.
22808 if test "${with_llvmgccdir+set}" = set; then
22809   withval="$with_llvmgccdir"
22810   LLVMGCCDIR=$withval
22811
22812 fi;
22813
22814
22815 # Check whether --with-bcrepos or --without-bcrepos was given.
22816 if test "${with_bcrepos+set}" = set; then
22817   withval="$with_bcrepos"
22818   BCR=$withval
22819
22820 else
22821   BCR=/home/vadve/lattner/LLVMPrograms
22822
22823 fi;
22824
22825
22826 # Check whether --with-papi or --without-papi was given.
22827 if test "${with_papi+set}" = set; then
22828   withval="$with_papi"
22829   PAPIDIR=$withval
22830
22831 else
22832   PAPIDIR=/home/vadve/shared/Sparc/papi-2.3.4.1
22833
22834 fi;
22835
22836
22837 # Check whether --with-purify or --without-purify was given.
22838 if test "${with_purify+set}" = set; then
22839   withval="$with_purify"
22840   PURIFY=$withval
22841
22842 fi;
22843
22844
22845           ac_config_files="$ac_config_files Makefile.config"
22846 cat >confcache <<\_ACEOF
22847 # This file is a shell script that caches the results of configure
22848 # tests run on this system so they can be shared between configure
22849 # scripts and configure runs, see configure's option --config-cache.
22850 # It is not useful on other systems.  If it contains results you don't
22851 # want to keep, you may remove or edit it.
22852 #
22853 # config.status only pays attention to the cache file if you give it
22854 # the --recheck option to rerun configure.
22855 #
22856 # `ac_cv_env_foo' variables (set or unset) will be overridden when
22857 # loading this file, other *unset* `ac_cv_foo' will be assigned the
22858 # following values.
22859
22860 _ACEOF
22861
22862 # The following way of writing the cache mishandles newlines in values,
22863 # but we know of no workaround that is simple, portable, and efficient.
22864 # So, don't put newlines in cache variables' values.
22865 # Ultrix sh set writes to stderr and can't be redirected directly,
22866 # and sets the high bit in the cache file unless we assign to the vars.
22867 {
22868   (set) 2>&1 |
22869     case `(ac_space=' '; set | grep ac_space) 2>&1` in
22870     *ac_space=\ *)
22871       # `set' does not quote correctly, so add quotes (double-quote
22872       # substitution turns \\\\ into \\, and sed turns \\ into \).
22873       sed -n \
22874         "s/'/'\\\\''/g;
22875           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
22876       ;;
22877     *)
22878       # `set' quotes correctly as required by POSIX, so do not add quotes.
22879       sed -n \
22880         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
22881       ;;
22882     esac;
22883 } |
22884   sed '
22885      t clear
22886      : clear
22887      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
22888      t end
22889      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
22890      : end' >>confcache
22891 if diff $cache_file confcache >/dev/null 2>&1; then :; else
22892   if test -w $cache_file; then
22893     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
22894     cat confcache >$cache_file
22895   else
22896     echo "not updating unwritable cache $cache_file"
22897   fi
22898 fi
22899 rm -f confcache
22900
22901 test "x$prefix" = xNONE && prefix=$ac_default_prefix
22902 # Let make expand exec_prefix.
22903 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
22904
22905 # VPATH may cause trouble with some makes, so we remove $(srcdir),
22906 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
22907 # trailing colons and then remove the whole line if VPATH becomes empty
22908 # (actually we leave an empty line to preserve line numbers).
22909 if test "x$srcdir" = x.; then
22910   ac_vpsub='/^[         ]*VPATH[        ]*=/{
22911 s/:*\$(srcdir):*/:/;
22912 s/:*\${srcdir}:*/:/;
22913 s/:*@srcdir@:*/:/;
22914 s/^\([^=]*=[    ]*\):*/\1/;
22915 s/:*$//;
22916 s/^[^=]*=[      ]*$//;
22917 }'
22918 fi
22919
22920 DEFS=-DHAVE_CONFIG_H
22921
22922 ac_libobjs=
22923 ac_ltlibobjs=
22924 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
22925   # 1. Remove the extension, and $U if already installed.
22926   ac_i=`echo "$ac_i" |
22927          sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
22928   # 2. Add them.
22929   ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
22930   ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
22931 done
22932 LIBOBJS=$ac_libobjs
22933
22934 LTLIBOBJS=$ac_ltlibobjs
22935
22936
22937
22938 : ${CONFIG_STATUS=./config.status}
22939 ac_clean_files_save=$ac_clean_files
22940 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
22941 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
22942 echo "$as_me: creating $CONFIG_STATUS" >&6;}
22943 cat >$CONFIG_STATUS <<_ACEOF
22944 #! $SHELL
22945 # Generated by $as_me.
22946 # Run this file to recreate the current configuration.
22947 # Compiler output produced by configure, useful for debugging
22948 # configure, is in config.log if it exists.
22949
22950 debug=false
22951 ac_cs_recheck=false
22952 ac_cs_silent=false
22953 SHELL=\${CONFIG_SHELL-$SHELL}
22954 _ACEOF
22955
22956 cat >>$CONFIG_STATUS <<\_ACEOF
22957 ## --------------------- ##
22958 ## M4sh Initialization.  ##
22959 ## --------------------- ##
22960
22961 # Be Bourne compatible
22962 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
22963   emulate sh
22964   NULLCMD=:
22965   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
22966   # is contrary to our usage.  Disable this feature.
22967   alias -g '${1+"$@"}'='"$@"'
22968 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
22969   set -o posix
22970 fi
22971
22972 # Support unset when possible.
22973 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
22974   as_unset=unset
22975 else
22976   as_unset=false
22977 fi
22978
22979
22980 # Work around bugs in pre-3.0 UWIN ksh.
22981 $as_unset ENV MAIL MAILPATH
22982 PS1='$ '
22983 PS2='> '
22984 PS4='+ '
22985
22986 # NLS nuisances.
22987 for as_var in \
22988   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
22989   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
22990   LC_TELEPHONE LC_TIME
22991 do
22992   if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
22993     eval $as_var=C; export $as_var
22994   else
22995     $as_unset $as_var
22996   fi
22997 done
22998
22999 # Required to use basename.
23000 if expr a : '\(a\)' >/dev/null 2>&1; then
23001   as_expr=expr
23002 else
23003   as_expr=false
23004 fi
23005
23006 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
23007   as_basename=basename
23008 else
23009   as_basename=false
23010 fi
23011
23012
23013 # Name of the executable.
23014 as_me=`$as_basename "$0" ||
23015 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
23016          X"$0" : 'X\(//\)$' \| \
23017          X"$0" : 'X\(/\)$' \| \
23018          .     : '\(.\)' 2>/dev/null ||
23019 echo X/"$0" |
23020     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
23021           /^X\/\(\/\/\)$/{ s//\1/; q; }
23022           /^X\/\(\/\).*/{ s//\1/; q; }
23023           s/.*/./; q'`
23024
23025
23026 # PATH needs CR, and LINENO needs CR and PATH.
23027 # Avoid depending upon Character Ranges.
23028 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
23029 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
23030 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
23031 as_cr_digits='0123456789'
23032 as_cr_alnum=$as_cr_Letters$as_cr_digits
23033
23034 # The user is always right.
23035 if test "${PATH_SEPARATOR+set}" != set; then
23036   echo "#! /bin/sh" >conf$$.sh
23037   echo  "exit 0"   >>conf$$.sh
23038   chmod +x conf$$.sh
23039   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
23040     PATH_SEPARATOR=';'
23041   else
23042     PATH_SEPARATOR=:
23043   fi
23044   rm -f conf$$.sh
23045 fi
23046
23047
23048   as_lineno_1=$LINENO
23049   as_lineno_2=$LINENO
23050   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
23051   test "x$as_lineno_1" != "x$as_lineno_2" &&
23052   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
23053   # Find who we are.  Look in the path if we contain no path at all
23054   # relative or not.
23055   case $0 in
23056     *[\\/]* ) as_myself=$0 ;;
23057     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23058 for as_dir in $PATH
23059 do
23060   IFS=$as_save_IFS
23061   test -z "$as_dir" && as_dir=.
23062   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
23063 done
23064
23065        ;;
23066   esac
23067   # We did not find ourselves, most probably we were run as `sh COMMAND'
23068   # in which case we are not to be found in the path.
23069   if test "x$as_myself" = x; then
23070     as_myself=$0
23071   fi
23072   if test ! -f "$as_myself"; then
23073     { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
23074 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
23075    { (exit 1); exit 1; }; }
23076   fi
23077   case $CONFIG_SHELL in
23078   '')
23079     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23080 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
23081 do
23082   IFS=$as_save_IFS
23083   test -z "$as_dir" && as_dir=.
23084   for as_base in sh bash ksh sh5; do
23085          case $as_dir in
23086          /*)
23087            if ("$as_dir/$as_base" -c '
23088   as_lineno_1=$LINENO
23089   as_lineno_2=$LINENO
23090   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
23091   test "x$as_lineno_1" != "x$as_lineno_2" &&
23092   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
23093              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
23094              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
23095              CONFIG_SHELL=$as_dir/$as_base
23096              export CONFIG_SHELL
23097              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
23098            fi;;
23099          esac
23100        done
23101 done
23102 ;;
23103   esac
23104
23105   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
23106   # uniformly replaced by the line number.  The first 'sed' inserts a
23107   # line-number line before each line; the second 'sed' does the real
23108   # work.  The second script uses 'N' to pair each line-number line
23109   # with the numbered line, and appends trailing '-' during
23110   # substitution so that $LINENO is not a special case at line end.
23111   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
23112   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
23113   sed '=' <$as_myself |
23114     sed '
23115       N
23116       s,$,-,
23117       : loop
23118       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
23119       t loop
23120       s,-$,,
23121       s,^['$as_cr_digits']*\n,,
23122     ' >$as_me.lineno &&
23123   chmod +x $as_me.lineno ||
23124     { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
23125 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
23126    { (exit 1); exit 1; }; }
23127
23128   # Don't try to exec as it changes $[0], causing all sort of problems
23129   # (the dirname of $[0] is not the place where we might find the
23130   # original and so on.  Autoconf is especially sensible to this).
23131   . ./$as_me.lineno
23132   # Exit status is that of the last command.
23133   exit
23134 }
23135
23136
23137 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
23138   *c*,-n*) ECHO_N= ECHO_C='
23139 ' ECHO_T='      ' ;;
23140   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
23141   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
23142 esac
23143
23144 if expr a : '\(a\)' >/dev/null 2>&1; then
23145   as_expr=expr
23146 else
23147   as_expr=false
23148 fi
23149
23150 rm -f conf$$ conf$$.exe conf$$.file
23151 echo >conf$$.file
23152 if ln -s conf$$.file conf$$ 2>/dev/null; then
23153   # We could just check for DJGPP; but this test a) works b) is more generic
23154   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
23155   if test -f conf$$.exe; then
23156     # Don't use ln at all; we don't have any links
23157     as_ln_s='cp -p'
23158   else
23159     as_ln_s='ln -s'
23160   fi
23161 elif ln conf$$.file conf$$ 2>/dev/null; then
23162   as_ln_s=ln
23163 else
23164   as_ln_s='cp -p'
23165 fi
23166 rm -f conf$$ conf$$.exe conf$$.file
23167
23168 if mkdir -p . 2>/dev/null; then
23169   as_mkdir_p=:
23170 else
23171   as_mkdir_p=false
23172 fi
23173
23174 as_executable_p="test -f"
23175
23176 # Sed expression to map a string onto a valid CPP name.
23177 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
23178
23179 # Sed expression to map a string onto a valid variable name.
23180 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
23181
23182
23183 # IFS
23184 # We need space, tab and new line, in precisely that order.
23185 as_nl='
23186 '
23187 IFS="   $as_nl"
23188
23189 # CDPATH.
23190 $as_unset CDPATH
23191
23192 exec 6>&1
23193
23194 # Open the log real soon, to keep \$[0] and so on meaningful, and to
23195 # report actual input values of CONFIG_FILES etc. instead of their
23196 # values after options handling.  Logging --version etc. is OK.
23197 exec 5>>config.log
23198 {
23199   echo
23200   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
23201 ## Running $as_me. ##
23202 _ASBOX
23203 } >&5
23204 cat >&5 <<_CSEOF
23205
23206 This file was extended by [LLVM] $as_me [1.0], which was
23207 generated by GNU Autoconf 2.57.  Invocation command line was
23208
23209   CONFIG_FILES    = $CONFIG_FILES
23210   CONFIG_HEADERS  = $CONFIG_HEADERS
23211   CONFIG_LINKS    = $CONFIG_LINKS
23212   CONFIG_COMMANDS = $CONFIG_COMMANDS
23213   $ $0 $@
23214
23215 _CSEOF
23216 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
23217 echo >&5
23218 _ACEOF
23219
23220 # Files that config.status was made for.
23221 if test -n "$ac_config_files"; then
23222   echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
23223 fi
23224
23225 if test -n "$ac_config_headers"; then
23226   echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
23227 fi
23228
23229 if test -n "$ac_config_links"; then
23230   echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
23231 fi
23232
23233 if test -n "$ac_config_commands"; then
23234   echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
23235 fi
23236
23237 cat >>$CONFIG_STATUS <<\_ACEOF
23238
23239 ac_cs_usage="\
23240 \`$as_me' instantiates files from templates according to the
23241 current configuration.
23242
23243 Usage: $0 [OPTIONS] [FILE]...
23244
23245   -h, --help       print this help, then exit
23246   -V, --version    print version number, then exit
23247   -q, --quiet      do not print progress messages
23248   -d, --debug      don't remove temporary files
23249       --recheck    update $as_me by reconfiguring in the same conditions
23250   --file=FILE[:TEMPLATE]
23251                    instantiate the configuration file FILE
23252   --header=FILE[:TEMPLATE]
23253                    instantiate the configuration header FILE
23254
23255 Configuration files:
23256 $config_files
23257
23258 Configuration headers:
23259 $config_headers
23260
23261 Configuration commands:
23262 $config_commands
23263
23264 Report bugs to <bug-autoconf@gnu.org>."
23265 _ACEOF
23266
23267 cat >>$CONFIG_STATUS <<_ACEOF
23268 ac_cs_version="\\
23269 [LLVM] config.status [1.0]
23270 configured by $0, generated by GNU Autoconf 2.57,
23271   with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
23272
23273 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
23274 Free Software Foundation, Inc.
23275 This config.status script is free software; the Free Software Foundation
23276 gives unlimited permission to copy, distribute and modify it."
23277 srcdir=$srcdir
23278 INSTALL="$INSTALL"
23279 _ACEOF
23280
23281 cat >>$CONFIG_STATUS <<\_ACEOF
23282 # If no file are specified by the user, then we need to provide default
23283 # value.  By we need to know if files were specified by the user.
23284 ac_need_defaults=:
23285 while test $# != 0
23286 do
23287   case $1 in
23288   --*=*)
23289     ac_option=`expr "x$1" : 'x\([^=]*\)='`
23290     ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
23291     ac_shift=:
23292     ;;
23293   -*)
23294     ac_option=$1
23295     ac_optarg=$2
23296     ac_shift=shift
23297     ;;
23298   *) # This is not an option, so the user has probably given explicit
23299      # arguments.
23300      ac_option=$1
23301      ac_need_defaults=false;;
23302   esac
23303
23304   case $ac_option in
23305   # Handling of the options.
23306 _ACEOF
23307 cat >>$CONFIG_STATUS <<\_ACEOF
23308   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
23309     ac_cs_recheck=: ;;
23310   --version | --vers* | -V )
23311     echo "$ac_cs_version"; exit 0 ;;
23312   --he | --h)
23313     # Conflict between --help and --header
23314     { { echo "$as_me:$LINENO: error: ambiguous option: $1
23315 Try \`$0 --help' for more information." >&5
23316 echo "$as_me: error: ambiguous option: $1
23317 Try \`$0 --help' for more information." >&2;}
23318    { (exit 1); exit 1; }; };;
23319   --help | --hel | -h )
23320     echo "$ac_cs_usage"; exit 0 ;;
23321   --debug | --d* | -d )
23322     debug=: ;;
23323   --file | --fil | --fi | --f )
23324     $ac_shift
23325     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
23326     ac_need_defaults=false;;
23327   --header | --heade | --head | --hea )
23328     $ac_shift
23329     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
23330     ac_need_defaults=false;;
23331   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
23332   | -silent | --silent | --silen | --sile | --sil | --si | --s)
23333     ac_cs_silent=: ;;
23334
23335   # This is an error.
23336   -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
23337 Try \`$0 --help' for more information." >&5
23338 echo "$as_me: error: unrecognized option: $1
23339 Try \`$0 --help' for more information." >&2;}
23340    { (exit 1); exit 1; }; } ;;
23341
23342   *) ac_config_targets="$ac_config_targets $1" ;;
23343
23344   esac
23345   shift
23346 done
23347
23348 ac_configure_extra_args=
23349
23350 if $ac_cs_silent; then
23351   exec 6>/dev/null
23352   ac_configure_extra_args="$ac_configure_extra_args --silent"
23353 fi
23354
23355 _ACEOF
23356 cat >>$CONFIG_STATUS <<_ACEOF
23357 if \$ac_cs_recheck; then
23358   echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
23359   exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
23360 fi
23361
23362 _ACEOF
23363
23364 cat >>$CONFIG_STATUS <<_ACEOF
23365 #
23366 # INIT-COMMANDS section.
23367 #
23368
23369 ${srcdir}/autoconf/mkinstalldirs `dirname Makefile`
23370 ${srcdir}/autoconf/mkinstalldirs `dirname Makefile.common`
23371 ${srcdir}/autoconf/mkinstalldirs `dirname Makefile.rules`
23372 ${srcdir}/autoconf/mkinstalldirs `dirname lib/Makefile`
23373 ${srcdir}/autoconf/mkinstalldirs `dirname lib/Analysis/Makefile`
23374 ${srcdir}/autoconf/mkinstalldirs `dirname lib/Analysis/DataStructure/Makefile`
23375 ${srcdir}/autoconf/mkinstalldirs `dirname lib/Analysis/IPA/Makefile`
23376 ${srcdir}/autoconf/mkinstalldirs `dirname lib/Analysis/LiveVar/Makefile`
23377 ${srcdir}/autoconf/mkinstalldirs `dirname lib/AsmParser/Makefile`
23378 ${srcdir}/autoconf/mkinstalldirs `dirname lib/Bytecode/Makefile`
23379 ${srcdir}/autoconf/mkinstalldirs `dirname lib/Bytecode/Reader/Makefile`
23380 ${srcdir}/autoconf/mkinstalldirs `dirname lib/Bytecode/Writer/Makefile`
23381 ${srcdir}/autoconf/mkinstalldirs `dirname lib/CWriter/Makefile`
23382 ${srcdir}/autoconf/mkinstalldirs `dirname lib/CodeGen/Makefile`
23383 ${srcdir}/autoconf/mkinstalldirs `dirname lib/CodeGen/InstrSched/Makefile`
23384 ${srcdir}/autoconf/mkinstalldirs `dirname lib/CodeGen/InstrSelection/Makefile`
23385 ${srcdir}/autoconf/mkinstalldirs `dirname lib/CodeGen/ModuloScheduling/Makefile`
23386 ${srcdir}/autoconf/mkinstalldirs `dirname lib/CodeGen/RegAlloc/Makefile`
23387 ${srcdir}/autoconf/mkinstalldirs `dirname lib/CodeGen/SelectionDAG/Makefile`
23388 ${srcdir}/autoconf/mkinstalldirs `dirname lib/ExecutionEngine/Makefile`
23389 ${srcdir}/autoconf/mkinstalldirs `dirname lib/ExecutionEngine/Interpreter/Makefile`
23390 ${srcdir}/autoconf/mkinstalldirs `dirname lib/ExecutionEngine/JIT/Makefile`
23391 ${srcdir}/autoconf/mkinstalldirs `dirname lib/Support/Makefile`
23392 ${srcdir}/autoconf/mkinstalldirs `dirname lib/Target/Makefile`
23393 ${srcdir}/autoconf/mkinstalldirs `dirname lib/Target/Sparc/Makefile`
23394 ${srcdir}/autoconf/mkinstalldirs `dirname lib/Target/X86/Makefile`
23395 ${srcdir}/autoconf/mkinstalldirs `dirname lib/Transforms/Makefile`
23396 ${srcdir}/autoconf/mkinstalldirs `dirname lib/Transforms/Hello/Makefile`
23397 ${srcdir}/autoconf/mkinstalldirs `dirname lib/Transforms/IPO/Makefile`
23398 ${srcdir}/autoconf/mkinstalldirs `dirname lib/Transforms/Instrumentation/Makefile`
23399 ${srcdir}/autoconf/mkinstalldirs `dirname lib/Transforms/Instrumentation/ProfilePaths/Makefile`
23400 ${srcdir}/autoconf/mkinstalldirs `dirname lib/Transforms/Scalar/Makefile`
23401 ${srcdir}/autoconf/mkinstalldirs `dirname lib/Transforms/Utils/Makefile`
23402 ${srcdir}/autoconf/mkinstalldirs `dirname lib/VMCore/Makefile`
23403 ${srcdir}/autoconf/mkinstalldirs `dirname runtime/Makefile`
23404 ${srcdir}/autoconf/mkinstalldirs `dirname runtime/GCCLibraries/Makefile`
23405 ${srcdir}/autoconf/mkinstalldirs `dirname runtime/GCCLibraries/crtend/Makefile`
23406 ${srcdir}/autoconf/mkinstalldirs `dirname runtime/GCCLibraries/libc/Makefile`
23407 ${srcdir}/autoconf/mkinstalldirs `dirname runtime/GCCLibraries/libcurses/Makefile`
23408 ${srcdir}/autoconf/mkinstalldirs `dirname runtime/GCCLibraries/libg/Makefile`
23409 ${srcdir}/autoconf/mkinstalldirs `dirname runtime/GCCLibraries/libgcc/Makefile`
23410 ${srcdir}/autoconf/mkinstalldirs `dirname runtime/GCCLibraries/libm/Makefile`
23411 ${srcdir}/autoconf/mkinstalldirs `dirname runtime/GCCLibraries/libmalloc/Makefile`
23412 ${srcdir}/autoconf/mkinstalldirs `dirname runtime/GCCLibraries/libtermcap/Makefile`
23413 ${srcdir}/autoconf/mkinstalldirs `dirname runtime/GCCLibraries/libucb/Makefile`
23414 ${srcdir}/autoconf/mkinstalldirs `dirname runtime/GCCLibraries/libutempter/Makefile`
23415 ${srcdir}/autoconf/mkinstalldirs `dirname runtime/GCCLibraries/libutil/Makefile`
23416 ${srcdir}/autoconf/mkinstalldirs `dirname runtime/libdummy/Makefile`
23417 ${srcdir}/autoconf/mkinstalldirs `dirname runtime/libtrace/Makefile`
23418 ${srcdir}/autoconf/mkinstalldirs `dirname test/Makefile`
23419 ${srcdir}/autoconf/mkinstalldirs `dirname test/Makefile.tests`
23420 ${srcdir}/autoconf/mkinstalldirs `dirname test/QMTestDB/QMTest/llvm.py`
23421 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/Makefile`
23422 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/Makefile.programs`
23423 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.aa.Makefile`
23424 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.dsgraph.report`
23425 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.micro.report`
23426 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.aa.report`
23427 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.example.Makefile`
23428 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.nightly.Makefile`
23429 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.buildrepo.Makefile`
23430 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.jit.Makefile`
23431 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.nightly.report`
23432 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.dsgraph.Makefile`
23433 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.jit.report`
23434 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.typesafe.Makefile`
23435 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.dsgraph.gnuplot`
23436 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.micro.Makefile`
23437 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/Makefile`
23438 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/Makefile`
23439 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/Makefile.spec`
23440 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/CFP2000/Makefile`
23441 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/CFP2000/179.art/Makefile`
23442 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/CFP2000/183.equake/Makefile`
23443 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/CFP2000/188.ammp/Makefile`
23444 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/CINT2000/Makefile`
23445 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/CINT2000/164.gzip/Makefile`
23446 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/CINT2000/175.vpr/Makefile`
23447 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/CINT2000/176.gcc/Makefile`
23448 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/CINT2000/181.mcf/Makefile`
23449 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/CINT2000/186.crafty/Makefile`
23450 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/CINT2000/197.parser/Makefile`
23451 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/CINT2000/254.gap/Makefile`
23452 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/CINT2000/255.vortex/Makefile`
23453 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/CINT2000/256.bzip2/Makefile`
23454 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/CINT2000/300.twolf/Makefile`
23455 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/LLVMSource/Makefile`
23456 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Makefile`
23457 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Makefile.multisrc`
23458 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Applications/Makefile`
23459 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Applications/Burg/Makefile`
23460 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Applications/aha/Makefile`
23461 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Applications/sgefa/Makefile`
23462 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/Makefile`
23463 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/Fhourstones/Makefile`
23464 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/McCat/Makefile`
23465 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/McCat/01-qbsort/Makefile`
23466 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/McCat/03-testtrie/Makefile`
23467 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/McCat/04-bisect/Makefile`
23468 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/McCat/05-eks/Makefile`
23469 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/McCat/08-main/Makefile`
23470 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/McCat/09-vor/Makefile`
23471 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/McCat/12-IOtest/Makefile`
23472 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/McCat/15-trie/Makefile`
23473 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/McCat/17-bintr/Makefile`
23474 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/McCat/18-imp/Makefile`
23475 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/Olden/Makefile`
23476 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/Olden/bh/Makefile`
23477 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/Olden/bisort/Makefile`
23478 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/Olden/em3d/Makefile`
23479 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/Olden/health/Makefile`
23480 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/Olden/mst/Makefile`
23481 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/Olden/perimeter/Makefile`
23482 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/Olden/power/Makefile`
23483 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/Olden/treeadd/Makefile`
23484 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/Olden/tsp/Makefile`
23485 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/Olden/voronoi/Makefile`
23486 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/OptimizerEval/Makefile`
23487 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/Ptrdist/Makefile`
23488 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/Ptrdist/anagram/Makefile`
23489 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/Ptrdist/bc/Makefile`
23490 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/Ptrdist/ft/Makefile`
23491 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/Ptrdist/ks/Makefile`
23492 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/Ptrdist/yacr2/Makefile`
23493 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/llubenchmark/Makefile`
23494 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/sim/Makefile`
23495 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/NoSource/Makefile`
23496 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/NoSource/Flex/Makefile`
23497 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/NoSource/Larn/Makefile`
23498 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/NoSource/Moria-5.5.2/Makefile`
23499 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/NoSource/Povray31/Makefile`
23500 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/NoSource/m4/Makefile`
23501 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/SingleSource/Makefile`
23502 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/SingleSource/Makefile.singlesrc`
23503 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/SingleSource/Gizmos/Makefile`
23504 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/SingleSource/Benchmarks/Makefile`
23505 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/SingleSource/Benchmarks/Dhrystone/Makefile`
23506 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/SingleSource/Benchmarks/Shootout/Makefile`
23507 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/SingleSource/Benchmarks/Stanford/Makefile`
23508 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/SingleSource/Benchmarks/Misc/Makefile`
23509 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/SingleSource/CustomChecked/Makefile`
23510 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/SingleSource/UnitTests/Makefile`
23511 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/SingleSource/UnitTests/SetjmpLongjmp/Makefile`
23512 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/SingleSource/Regression/Makefile`
23513 ${srcdir}/autoconf/mkinstalldirs `dirname tools/Makefile`
23514 ${srcdir}/autoconf/mkinstalldirs `dirname tools/analyze/Makefile`
23515 ${srcdir}/autoconf/mkinstalldirs `dirname tools/bugpoint/Makefile`
23516 ${srcdir}/autoconf/mkinstalldirs `dirname tools/extract/Makefile`
23517 ${srcdir}/autoconf/mkinstalldirs `dirname tools/gccas/Makefile`
23518 ${srcdir}/autoconf/mkinstalldirs `dirname tools/gccld/Makefile`
23519 ${srcdir}/autoconf/mkinstalldirs `dirname tools/llc/Makefile`
23520 ${srcdir}/autoconf/mkinstalldirs `dirname tools/llee/Makefile`
23521 ${srcdir}/autoconf/mkinstalldirs `dirname tools/lli/Makefile`
23522 ${srcdir}/autoconf/mkinstalldirs `dirname tools/llvm-ar/Makefile`
23523 ${srcdir}/autoconf/mkinstalldirs `dirname tools/llvm-as/Makefile`
23524 ${srcdir}/autoconf/mkinstalldirs `dirname tools/llvm-dis/Makefile`
23525 ${srcdir}/autoconf/mkinstalldirs `dirname tools/llvm-link/Makefile`
23526 ${srcdir}/autoconf/mkinstalldirs `dirname tools/opt/Makefile`
23527 ${srcdir}/autoconf/mkinstalldirs `dirname utils/Makefile`
23528 ${srcdir}/autoconf/mkinstalldirs `dirname utils/Burg/Makefile`
23529 ${srcdir}/autoconf/mkinstalldirs `dirname utils/Burg/Doc/Makefile`
23530 ${srcdir}/autoconf/mkinstalldirs `dirname utils/TableGen/Makefile`
23531 ${srcdir}/autoconf/mkinstalldirs `dirname www/docs/Makefile`
23532 ${srcdir}/autoconf/mkinstalldirs `dirname projects/Makefile`
23533 ${srcdir}/autoconf/mkinstalldirs `dirname projects/sample/Makefile`
23534 ${srcdir}/autoconf/mkinstalldirs `dirname projects/sample/Makefile.common`
23535 ${srcdir}/autoconf/mkinstalldirs `dirname projects/sample/Makefile.config`
23536 ${srcdir}/autoconf/mkinstalldirs `dirname projects/sample/lib/Makefile`
23537 ${srcdir}/autoconf/mkinstalldirs `dirname projects/sample/lib/sample/Makefile`
23538 ${srcdir}/autoconf/mkinstalldirs `dirname projects/sample/tools/Makefile`
23539 ${srcdir}/autoconf/mkinstalldirs `dirname projects/sample/tools/sample/Makefile`
23540 ${srcdir}/autoconf/mkinstalldirs `dirname projects/ModuleMaker/Makefile`
23541 ${srcdir}/autoconf/mkinstalldirs `dirname projects/ModuleMaker/Makefile.common`
23542 ${srcdir}/autoconf/mkinstalldirs `dirname projects/ModuleMaker/tools/Makefile`
23543 ${srcdir}/autoconf/mkinstalldirs `dirname projects/ModuleMaker/tools/ModuleMaker/Makefile`
23544
23545 _ACEOF
23546
23547
23548
23549 cat >>$CONFIG_STATUS <<\_ACEOF
23550 for ac_config_target in $ac_config_targets
23551 do
23552   case "$ac_config_target" in
23553   # Handling of arguments.
23554   "Makefile.config" ) CONFIG_FILES="$CONFIG_FILES Makefile.config" ;;
23555   "Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
23556   "Makefile.common" ) CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.common" ;;
23557   "Makefile.rules" ) CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.rules" ;;
23558   "lib/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;;
23559   "lib/Analysis/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Analysis/Makefile" ;;
23560   "lib/Analysis/DataStructure/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Analysis/DataStructure/Makefile" ;;
23561   "lib/Analysis/IPA/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Analysis/IPA/Makefile" ;;
23562   "lib/Analysis/LiveVar/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Analysis/LiveVar/Makefile" ;;
23563   "lib/AsmParser/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/AsmParser/Makefile" ;;
23564   "lib/Bytecode/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Bytecode/Makefile" ;;
23565   "lib/Bytecode/Reader/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Bytecode/Reader/Makefile" ;;
23566   "lib/Bytecode/Writer/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Bytecode/Writer/Makefile" ;;
23567   "lib/CWriter/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/CWriter/Makefile" ;;
23568   "lib/CodeGen/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/CodeGen/Makefile" ;;
23569   "lib/CodeGen/InstrSched/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/CodeGen/InstrSched/Makefile" ;;
23570   "lib/CodeGen/InstrSelection/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/CodeGen/InstrSelection/Makefile" ;;
23571   "lib/CodeGen/ModuloScheduling/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/CodeGen/ModuloScheduling/Makefile" ;;
23572   "lib/CodeGen/RegAlloc/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/CodeGen/RegAlloc/Makefile" ;;
23573   "lib/CodeGen/SelectionDAG/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/CodeGen/SelectionDAG/Makefile" ;;
23574   "lib/ExecutionEngine/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/ExecutionEngine/Makefile" ;;
23575   "lib/ExecutionEngine/Interpreter/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/ExecutionEngine/Interpreter/Makefile" ;;
23576   "lib/ExecutionEngine/JIT/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/ExecutionEngine/JIT/Makefile" ;;
23577   "lib/Support/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Support/Makefile" ;;
23578   "lib/Target/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Target/Makefile" ;;
23579   "lib/Target/Sparc/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Target/Sparc/Makefile" ;;
23580   "lib/Target/X86/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Target/X86/Makefile" ;;
23581   "lib/Transforms/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Transforms/Makefile" ;;
23582   "lib/Transforms/Hello/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Transforms/Hello/Makefile" ;;
23583   "lib/Transforms/IPO/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Transforms/IPO/Makefile" ;;
23584   "lib/Transforms/Instrumentation/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Transforms/Instrumentation/Makefile" ;;
23585   "lib/Transforms/Instrumentation/ProfilePaths/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Transforms/Instrumentation/ProfilePaths/Makefile" ;;
23586   "lib/Transforms/Scalar/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Transforms/Scalar/Makefile" ;;
23587   "lib/Transforms/Utils/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Transforms/Utils/Makefile" ;;
23588   "lib/VMCore/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/VMCore/Makefile" ;;
23589   "runtime/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/Makefile" ;;
23590   "runtime/GCCLibraries/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/GCCLibraries/Makefile" ;;
23591   "runtime/GCCLibraries/crtend/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/GCCLibraries/crtend/Makefile" ;;
23592   "runtime/GCCLibraries/libc/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/GCCLibraries/libc/Makefile" ;;
23593   "runtime/GCCLibraries/libcurses/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/GCCLibraries/libcurses/Makefile" ;;
23594   "runtime/GCCLibraries/libg/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/GCCLibraries/libg/Makefile" ;;
23595   "runtime/GCCLibraries/libgcc/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/GCCLibraries/libgcc/Makefile" ;;
23596   "runtime/GCCLibraries/libm/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/GCCLibraries/libm/Makefile" ;;
23597   "runtime/GCCLibraries/libmalloc/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/GCCLibraries/libmalloc/Makefile" ;;
23598   "runtime/GCCLibraries/libtermcap/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/GCCLibraries/libtermcap/Makefile" ;;
23599   "runtime/GCCLibraries/libucb/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/GCCLibraries/libucb/Makefile" ;;
23600   "runtime/GCCLibraries/libutempter/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/GCCLibraries/libutempter/Makefile" ;;
23601   "runtime/GCCLibraries/libutil/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/GCCLibraries/libutil/Makefile" ;;
23602   "runtime/libdummy/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/libdummy/Makefile" ;;
23603   "runtime/libtrace/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/libtrace/Makefile" ;;
23604   "test/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile" ;;
23605   "test/Makefile.tests" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile.tests" ;;
23606   "test/QMTestDB/QMTest/llvm.py" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/QMTestDB/QMTest/llvm.py" ;;
23607   "test/Programs/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/Makefile" ;;
23608   "test/Programs/Makefile.programs" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/Makefile.programs" ;;
23609   "test/Programs/TEST.aa.Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.aa.Makefile" ;;
23610   "test/Programs/TEST.dsgraph.report" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.dsgraph.report" ;;
23611   "test/Programs/TEST.micro.report" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.micro.report" ;;
23612   "test/Programs/TEST.aa.report" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.aa.report" ;;
23613   "test/Programs/TEST.example.Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.example.Makefile" ;;
23614   "test/Programs/TEST.nightly.Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.nightly.Makefile" ;;
23615   "test/Programs/TEST.buildrepo.Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.buildrepo.Makefile" ;;
23616   "test/Programs/TEST.jit.Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.jit.Makefile" ;;
23617   "test/Programs/TEST.nightly.report" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.nightly.report" ;;
23618   "test/Programs/TEST.dsgraph.Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.dsgraph.Makefile" ;;
23619   "test/Programs/TEST.jit.report" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.jit.report" ;;
23620   "test/Programs/TEST.typesafe.Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.typesafe.Makefile" ;;
23621   "test/Programs/TEST.dsgraph.gnuplot" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.dsgraph.gnuplot" ;;
23622   "test/Programs/TEST.micro.Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.micro.Makefile" ;;
23623   "test/Programs/External/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/Makefile" ;;
23624   "test/Programs/External/SPEC/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/Makefile" ;;
23625   "test/Programs/External/SPEC/Makefile.spec" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/Makefile.spec" ;;
23626   "test/Programs/External/SPEC/CFP2000/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/CFP2000/Makefile" ;;
23627   "test/Programs/External/SPEC/CFP2000/179.art/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/CFP2000/179.art/Makefile" ;;
23628   "test/Programs/External/SPEC/CFP2000/183.equake/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/CFP2000/183.equake/Makefile" ;;
23629   "test/Programs/External/SPEC/CFP2000/188.ammp/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/CFP2000/188.ammp/Makefile" ;;
23630   "test/Programs/External/SPEC/CINT2000/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/CINT2000/Makefile" ;;
23631   "test/Programs/External/SPEC/CINT2000/164.gzip/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/CINT2000/164.gzip/Makefile" ;;
23632   "test/Programs/External/SPEC/CINT2000/175.vpr/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/CINT2000/175.vpr/Makefile" ;;
23633   "test/Programs/External/SPEC/CINT2000/176.gcc/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/CINT2000/176.gcc/Makefile" ;;
23634   "test/Programs/External/SPEC/CINT2000/181.mcf/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/CINT2000/181.mcf/Makefile" ;;
23635   "test/Programs/External/SPEC/CINT2000/186.crafty/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/CINT2000/186.crafty/Makefile" ;;
23636   "test/Programs/External/SPEC/CINT2000/197.parser/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/CINT2000/197.parser/Makefile" ;;
23637   "test/Programs/External/SPEC/CINT2000/254.gap/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/CINT2000/254.gap/Makefile" ;;
23638   "test/Programs/External/SPEC/CINT2000/255.vortex/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/CINT2000/255.vortex/Makefile" ;;
23639   "test/Programs/External/SPEC/CINT2000/256.bzip2/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/CINT2000/256.bzip2/Makefile" ;;
23640   "test/Programs/External/SPEC/CINT2000/300.twolf/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/CINT2000/300.twolf/Makefile" ;;
23641   "test/Programs/LLVMSource/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/LLVMSource/Makefile" ;;
23642   "test/Programs/MultiSource/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Makefile" ;;
23643   "test/Programs/MultiSource/Makefile.multisrc" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Makefile.multisrc" ;;
23644   "test/Programs/MultiSource/Applications/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Applications/Makefile" ;;
23645   "test/Programs/MultiSource/Applications/Burg/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Applications/Burg/Makefile" ;;
23646   "test/Programs/MultiSource/Applications/aha/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Applications/aha/Makefile" ;;
23647   "test/Programs/MultiSource/Applications/sgefa/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Applications/sgefa/Makefile" ;;
23648   "test/Programs/MultiSource/Benchmarks/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/Makefile" ;;
23649   "test/Programs/MultiSource/Benchmarks/Fhourstones/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/Fhourstones/Makefile" ;;
23650   "test/Programs/MultiSource/Benchmarks/McCat/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/McCat/Makefile" ;;
23651   "test/Programs/MultiSource/Benchmarks/McCat/01-qbsort/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/McCat/01-qbsort/Makefile" ;;
23652   "test/Programs/MultiSource/Benchmarks/McCat/03-testtrie/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/McCat/03-testtrie/Makefile" ;;
23653   "test/Programs/MultiSource/Benchmarks/McCat/04-bisect/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/McCat/04-bisect/Makefile" ;;
23654   "test/Programs/MultiSource/Benchmarks/McCat/05-eks/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/McCat/05-eks/Makefile" ;;
23655   "test/Programs/MultiSource/Benchmarks/McCat/08-main/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/McCat/08-main/Makefile" ;;
23656   "test/Programs/MultiSource/Benchmarks/McCat/09-vor/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/McCat/09-vor/Makefile" ;;
23657   "test/Programs/MultiSource/Benchmarks/McCat/12-IOtest/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/McCat/12-IOtest/Makefile" ;;
23658   "test/Programs/MultiSource/Benchmarks/McCat/15-trie/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/McCat/15-trie/Makefile" ;;
23659   "test/Programs/MultiSource/Benchmarks/McCat/17-bintr/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/McCat/17-bintr/Makefile" ;;
23660   "test/Programs/MultiSource/Benchmarks/McCat/18-imp/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/McCat/18-imp/Makefile" ;;
23661   "test/Programs/MultiSource/Benchmarks/Olden/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/Olden/Makefile" ;;
23662   "test/Programs/MultiSource/Benchmarks/Olden/bh/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/Olden/bh/Makefile" ;;
23663   "test/Programs/MultiSource/Benchmarks/Olden/bisort/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/Olden/bisort/Makefile" ;;
23664   "test/Programs/MultiSource/Benchmarks/Olden/em3d/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/Olden/em3d/Makefile" ;;
23665   "test/Programs/MultiSource/Benchmarks/Olden/health/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/Olden/health/Makefile" ;;
23666   "test/Programs/MultiSource/Benchmarks/Olden/mst/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/Olden/mst/Makefile" ;;
23667   "test/Programs/MultiSource/Benchmarks/Olden/perimeter/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/Olden/perimeter/Makefile" ;;
23668   "test/Programs/MultiSource/Benchmarks/Olden/power/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/Olden/power/Makefile" ;;
23669   "test/Programs/MultiSource/Benchmarks/Olden/treeadd/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/Olden/treeadd/Makefile" ;;
23670   "test/Programs/MultiSource/Benchmarks/Olden/tsp/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/Olden/tsp/Makefile" ;;
23671   "test/Programs/MultiSource/Benchmarks/Olden/voronoi/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/Olden/voronoi/Makefile" ;;
23672   "test/Programs/MultiSource/Benchmarks/OptimizerEval/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/OptimizerEval/Makefile" ;;
23673   "test/Programs/MultiSource/Benchmarks/Ptrdist/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/Ptrdist/Makefile" ;;
23674   "test/Programs/MultiSource/Benchmarks/Ptrdist/anagram/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/Ptrdist/anagram/Makefile" ;;
23675   "test/Programs/MultiSource/Benchmarks/Ptrdist/bc/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/Ptrdist/bc/Makefile" ;;
23676   "test/Programs/MultiSource/Benchmarks/Ptrdist/ft/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/Ptrdist/ft/Makefile" ;;
23677   "test/Programs/MultiSource/Benchmarks/Ptrdist/ks/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/Ptrdist/ks/Makefile" ;;
23678   "test/Programs/MultiSource/Benchmarks/Ptrdist/yacr2/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/Ptrdist/yacr2/Makefile" ;;
23679   "test/Programs/MultiSource/Benchmarks/llubenchmark/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/llubenchmark/Makefile" ;;
23680   "test/Programs/MultiSource/Benchmarks/sim/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/sim/Makefile" ;;
23681   "test/Programs/NoSource/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/NoSource/Makefile" ;;
23682   "test/Programs/NoSource/Flex/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/NoSource/Flex/Makefile" ;;
23683   "test/Programs/NoSource/Larn/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/NoSource/Larn/Makefile" ;;
23684   "test/Programs/NoSource/Moria-5.5.2/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/NoSource/Moria-5.5.2/Makefile" ;;
23685   "test/Programs/NoSource/Povray31/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/NoSource/Povray31/Makefile" ;;
23686   "test/Programs/NoSource/m4/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/NoSource/m4/Makefile" ;;
23687   "test/Programs/SingleSource/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/SingleSource/Makefile" ;;
23688   "test/Programs/SingleSource/Makefile.singlesrc" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/SingleSource/Makefile.singlesrc" ;;
23689   "test/Programs/SingleSource/Gizmos/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/SingleSource/Gizmos/Makefile" ;;
23690   "test/Programs/SingleSource/Benchmarks/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/SingleSource/Benchmarks/Makefile" ;;
23691   "test/Programs/SingleSource/Benchmarks/Dhrystone/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/SingleSource/Benchmarks/Dhrystone/Makefile" ;;
23692   "test/Programs/SingleSource/Benchmarks/Shootout/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/SingleSource/Benchmarks/Shootout/Makefile" ;;
23693   "test/Programs/SingleSource/Benchmarks/Stanford/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/SingleSource/Benchmarks/Stanford/Makefile" ;;
23694   "test/Programs/SingleSource/Benchmarks/Misc/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/SingleSource/Benchmarks/Misc/Makefile" ;;
23695   "test/Programs/SingleSource/CustomChecked/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/SingleSource/CustomChecked/Makefile" ;;
23696   "test/Programs/SingleSource/UnitTests/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/SingleSource/UnitTests/Makefile" ;;
23697   "test/Programs/SingleSource/UnitTests/SetjmpLongjmp/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/SingleSource/UnitTests/SetjmpLongjmp/Makefile" ;;
23698   "test/Programs/SingleSource/Regression/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/SingleSource/Regression/Makefile" ;;
23699   "tools/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;;
23700   "tools/analyze/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/analyze/Makefile" ;;
23701   "tools/bugpoint/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/bugpoint/Makefile" ;;
23702   "tools/extract/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/extract/Makefile" ;;
23703   "tools/gccas/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/gccas/Makefile" ;;
23704   "tools/gccld/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/gccld/Makefile" ;;
23705   "tools/llc/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/llc/Makefile" ;;
23706   "tools/llee/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/llee/Makefile" ;;
23707   "tools/lli/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/lli/Makefile" ;;
23708   "tools/llvm-ar/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/llvm-ar/Makefile" ;;
23709   "tools/llvm-as/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/llvm-as/Makefile" ;;
23710   "tools/llvm-dis/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/llvm-dis/Makefile" ;;
23711   "tools/llvm-link/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/llvm-link/Makefile" ;;
23712   "tools/opt/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/opt/Makefile" ;;
23713   "utils/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Makefile" ;;
23714   "utils/Burg/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Burg/Makefile" ;;
23715   "utils/Burg/Doc/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Burg/Doc/Makefile" ;;
23716   "utils/TableGen/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS utils/TableGen/Makefile" ;;
23717   "www/docs/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS www/docs/Makefile" ;;
23718   "projects/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Makefile" ;;
23719   "projects/sample/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS projects/sample/Makefile" ;;
23720   "projects/sample/Makefile.common" ) CONFIG_COMMANDS="$CONFIG_COMMANDS projects/sample/Makefile.common" ;;
23721   "projects/sample/Makefile.config" ) CONFIG_COMMANDS="$CONFIG_COMMANDS projects/sample/Makefile.config" ;;
23722   "projects/sample/lib/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS projects/sample/lib/Makefile" ;;
23723   "projects/sample/lib/sample/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS projects/sample/lib/sample/Makefile" ;;
23724   "projects/sample/tools/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS projects/sample/tools/Makefile" ;;
23725   "projects/sample/tools/sample/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS projects/sample/tools/sample/Makefile" ;;
23726   "projects/ModuleMaker/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS projects/ModuleMaker/Makefile" ;;
23727   "projects/ModuleMaker/Makefile.common" ) CONFIG_COMMANDS="$CONFIG_COMMANDS projects/ModuleMaker/Makefile.common" ;;
23728   "projects/ModuleMaker/tools/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS projects/ModuleMaker/tools/Makefile" ;;
23729   "projects/ModuleMaker/tools/ModuleMaker/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS projects/ModuleMaker/tools/ModuleMaker/Makefile" ;;
23730   "include/Config/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/Config/config.h" ;;
23731   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
23732 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
23733    { (exit 1); exit 1; }; };;
23734   esac
23735 done
23736
23737 # If the user did not use the arguments to specify the items to instantiate,
23738 # then the envvar interface is used.  Set only those that are not.
23739 # We use the long form for the default assignment because of an extremely
23740 # bizarre bug on SunOS 4.1.3.
23741 if $ac_need_defaults; then
23742   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
23743   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
23744   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
23745 fi
23746
23747 # Have a temporary directory for convenience.  Make it in the build tree
23748 # simply because there is no reason to put it here, and in addition,
23749 # creating and moving files from /tmp can sometimes cause problems.
23750 # Create a temporary directory, and hook for its removal unless debugging.
23751 $debug ||
23752 {
23753   trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
23754   trap '{ (exit 1); exit 1; }' 1 2 13 15
23755 }
23756
23757 # Create a (secure) tmp directory for tmp files.
23758
23759 {
23760   tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
23761   test -n "$tmp" && test -d "$tmp"
23762 }  ||
23763 {
23764   tmp=./confstat$$-$RANDOM
23765   (umask 077 && mkdir $tmp)
23766 } ||
23767 {
23768    echo "$me: cannot create a temporary directory in ." >&2
23769    { (exit 1); exit 1; }
23770 }
23771
23772 _ACEOF
23773
23774 cat >>$CONFIG_STATUS <<_ACEOF
23775
23776 #
23777 # CONFIG_FILES section.
23778 #
23779
23780 # No need to generate the scripts if there are no CONFIG_FILES.
23781 # This happens for instance when ./config.status config.h
23782 if test -n "\$CONFIG_FILES"; then
23783   # Protect against being on the right side of a sed subst in config.status.
23784   sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
23785    s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
23786 s,@SHELL@,$SHELL,;t t
23787 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
23788 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
23789 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
23790 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
23791 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
23792 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
23793 s,@exec_prefix@,$exec_prefix,;t t
23794 s,@prefix@,$prefix,;t t
23795 s,@program_transform_name@,$program_transform_name,;t t
23796 s,@bindir@,$bindir,;t t
23797 s,@sbindir@,$sbindir,;t t
23798 s,@libexecdir@,$libexecdir,;t t
23799 s,@datadir@,$datadir,;t t
23800 s,@sysconfdir@,$sysconfdir,;t t
23801 s,@sharedstatedir@,$sharedstatedir,;t t
23802 s,@localstatedir@,$localstatedir,;t t
23803 s,@libdir@,$libdir,;t t
23804 s,@includedir@,$includedir,;t t
23805 s,@oldincludedir@,$oldincludedir,;t t
23806 s,@infodir@,$infodir,;t t
23807 s,@mandir@,$mandir,;t t
23808 s,@build_alias@,$build_alias,;t t
23809 s,@host_alias@,$host_alias,;t t
23810 s,@target_alias@,$target_alias,;t t
23811 s,@DEFS@,$DEFS,;t t
23812 s,@ECHO_C@,$ECHO_C,;t t
23813 s,@ECHO_N@,$ECHO_N,;t t
23814 s,@ECHO_T@,$ECHO_T,;t t
23815 s,@LIBS@,$LIBS,;t t
23816 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
23817 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
23818 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
23819 s,@build@,$build,;t t
23820 s,@build_cpu@,$build_cpu,;t t
23821 s,@build_vendor@,$build_vendor,;t t
23822 s,@build_os@,$build_os,;t t
23823 s,@host@,$host,;t t
23824 s,@host_cpu@,$host_cpu,;t t
23825 s,@host_vendor@,$host_vendor,;t t
23826 s,@host_os@,$host_os,;t t
23827 s,@target@,$target,;t t
23828 s,@target_cpu@,$target_cpu,;t t
23829 s,@target_vendor@,$target_vendor,;t t
23830 s,@target_os@,$target_os,;t t
23831 s,@OS@,$OS,;t t
23832 s,@LLVMGCCDIR@,$LLVMGCCDIR,;t t
23833 s,@ARCH@,$ARCH,;t t
23834 s,@CXX@,$CXX,;t t
23835 s,@CXXFLAGS@,$CXXFLAGS,;t t
23836 s,@LDFLAGS@,$LDFLAGS,;t t
23837 s,@CPPFLAGS@,$CPPFLAGS,;t t
23838 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
23839 s,@EXEEXT@,$EXEEXT,;t t
23840 s,@OBJEXT@,$OBJEXT,;t t
23841 s,@CC@,$CC,;t t
23842 s,@CFLAGS@,$CFLAGS,;t t
23843 s,@ac_ct_CC@,$ac_ct_CC,;t t
23844 s,@CPP@,$CPP,;t t
23845 s,@ifGNUmake@,$ifGNUmake,;t t
23846 s,@LEX@,$LEX,;t t
23847 s,@LEXLIB@,$LEXLIB,;t t
23848 s,@LEX_OUTPUT_ROOT@,$LEX_OUTPUT_ROOT,;t t
23849 s,@YACC@,$YACC,;t t
23850 s,@EGREP@,$EGREP,;t t
23851 s,@LN_S@,$LN_S,;t t
23852 s,@ECHO@,$ECHO,;t t
23853 s,@AR@,$AR,;t t
23854 s,@ac_ct_AR@,$ac_ct_AR,;t t
23855 s,@RANLIB@,$RANLIB,;t t
23856 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
23857 s,@STRIP@,$STRIP,;t t
23858 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
23859 s,@CXXCPP@,$CXXCPP,;t t
23860 s,@F77@,$F77,;t t
23861 s,@FFLAGS@,$FFLAGS,;t t
23862 s,@ac_ct_F77@,$ac_ct_F77,;t t
23863 s,@LIBTOOL@,$LIBTOOL,;t t
23864 s,@RPWD@,$RPWD,;t t
23865 s,@SED@,$SED,;t t
23866 s,@RM@,$RM,;t t
23867 s,@MKDIR@,$MKDIR,;t t
23868 s,@DATE@,$DATE,;t t
23869 s,@MV@,$MV,;t t
23870 s,@DOT@,$DOT,;t t
23871 s,@ETAGS@,$ETAGS,;t t
23872 s,@PURIFY@,$PURIFY,;t t
23873 s,@PYTHON@,$PYTHON,;t t
23874 s,@QMTEST@,$QMTEST,;t t
23875 s,@ALLOCA@,$ALLOCA,;t t
23876 s,@LIBOBJS@,$LIBOBJS,;t t
23877 s,@MMAP_FILE@,$MMAP_FILE,;t t
23878 s,@ENABLE_PURIFY@,$ENABLE_PURIFY,;t t
23879 s,@ENABLE_OPTIMIZED@,$ENABLE_OPTIMIZED,;t t
23880 s,@USE_SPEC@,$USE_SPEC,;t t
23881 s,@UPB@,$UPB,;t t
23882 s,@DISABLE_LLC_DIFFS@,$DISABLE_LLC_DIFFS,;t t
23883 s,@JIT@,$JIT,;t t
23884 s,@SPEC_ROOT@,$SPEC_ROOT,;t t
23885 s,@BCR@,$BCR,;t t
23886 s,@PAPIDIR@,$PAPIDIR,;t t
23887 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
23888 CEOF
23889
23890 _ACEOF
23891
23892   cat >>$CONFIG_STATUS <<\_ACEOF
23893   # Split the substitutions into bite-sized pieces for seds with
23894   # small command number limits, like on Digital OSF/1 and HP-UX.
23895   ac_max_sed_lines=48
23896   ac_sed_frag=1 # Number of current file.
23897   ac_beg=1 # First line for current file.
23898   ac_end=$ac_max_sed_lines # Line after last line for current file.
23899   ac_more_lines=:
23900   ac_sed_cmds=
23901   while $ac_more_lines; do
23902     if test $ac_beg -gt 1; then
23903       sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
23904     else
23905       sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
23906     fi
23907     if test ! -s $tmp/subs.frag; then
23908       ac_more_lines=false
23909     else
23910       # The purpose of the label and of the branching condition is to
23911       # speed up the sed processing (if there are no `@' at all, there
23912       # is no need to browse any of the substitutions).
23913       # These are the two extra sed commands mentioned above.
23914       (echo ':t
23915   /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
23916       if test -z "$ac_sed_cmds"; then
23917         ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
23918       else
23919         ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
23920       fi
23921       ac_sed_frag=`expr $ac_sed_frag + 1`
23922       ac_beg=$ac_end
23923       ac_end=`expr $ac_end + $ac_max_sed_lines`
23924     fi
23925   done
23926   if test -z "$ac_sed_cmds"; then
23927     ac_sed_cmds=cat
23928   fi
23929 fi # test -n "$CONFIG_FILES"
23930
23931 _ACEOF
23932 cat >>$CONFIG_STATUS <<\_ACEOF
23933 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
23934   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
23935   case $ac_file in
23936   - | *:- | *:-:* ) # input from stdin
23937         cat >$tmp/stdin
23938         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
23939         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
23940   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
23941         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
23942   * )   ac_file_in=$ac_file.in ;;
23943   esac
23944
23945   # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
23946   ac_dir=`(dirname "$ac_file") 2>/dev/null ||
23947 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23948          X"$ac_file" : 'X\(//\)[^/]' \| \
23949          X"$ac_file" : 'X\(//\)$' \| \
23950          X"$ac_file" : 'X\(/\)' \| \
23951          .     : '\(.\)' 2>/dev/null ||
23952 echo X"$ac_file" |
23953     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23954           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23955           /^X\(\/\/\)$/{ s//\1/; q; }
23956           /^X\(\/\).*/{ s//\1/; q; }
23957           s/.*/./; q'`
23958   { if $as_mkdir_p; then
23959     mkdir -p "$ac_dir"
23960   else
23961     as_dir="$ac_dir"
23962     as_dirs=
23963     while test ! -d "$as_dir"; do
23964       as_dirs="$as_dir $as_dirs"
23965       as_dir=`(dirname "$as_dir") 2>/dev/null ||
23966 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23967          X"$as_dir" : 'X\(//\)[^/]' \| \
23968          X"$as_dir" : 'X\(//\)$' \| \
23969          X"$as_dir" : 'X\(/\)' \| \
23970          .     : '\(.\)' 2>/dev/null ||
23971 echo X"$as_dir" |
23972     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23973           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23974           /^X\(\/\/\)$/{ s//\1/; q; }
23975           /^X\(\/\).*/{ s//\1/; q; }
23976           s/.*/./; q'`
23977     done
23978     test ! -n "$as_dirs" || mkdir $as_dirs
23979   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
23980 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
23981    { (exit 1); exit 1; }; }; }
23982
23983   ac_builddir=.
23984
23985 if test "$ac_dir" != .; then
23986   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
23987   # A "../" for each directory in $ac_dir_suffix.
23988   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
23989 else
23990   ac_dir_suffix= ac_top_builddir=
23991 fi
23992
23993 case $srcdir in
23994   .)  # No --srcdir option.  We are building in place.
23995     ac_srcdir=.
23996     if test -z "$ac_top_builddir"; then
23997        ac_top_srcdir=.
23998     else
23999        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
24000     fi ;;
24001   [\\/]* | ?:[\\/]* )  # Absolute path.
24002     ac_srcdir=$srcdir$ac_dir_suffix;
24003     ac_top_srcdir=$srcdir ;;
24004   *) # Relative path.
24005     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
24006     ac_top_srcdir=$ac_top_builddir$srcdir ;;
24007 esac
24008 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
24009 # absolute.
24010 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
24011 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
24012 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
24013 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
24014
24015
24016   case $INSTALL in
24017   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
24018   *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
24019   esac
24020
24021   if test x"$ac_file" != x-; then
24022     { echo "$as_me:$LINENO: creating $ac_file" >&5
24023 echo "$as_me: creating $ac_file" >&6;}
24024     rm -f "$ac_file"
24025   fi
24026   # Let's still pretend it is `configure' which instantiates (i.e., don't
24027   # use $as_me), people would be surprised to read:
24028   #    /* config.h.  Generated by config.status.  */
24029   if test x"$ac_file" = x-; then
24030     configure_input=
24031   else
24032     configure_input="$ac_file.  "
24033   fi
24034   configure_input=$configure_input"Generated from `echo $ac_file_in |
24035                                      sed 's,.*/,,'` by configure."
24036
24037   # First look for the input files in the build tree, otherwise in the
24038   # src tree.
24039   ac_file_inputs=`IFS=:
24040     for f in $ac_file_in; do
24041       case $f in
24042       -) echo $tmp/stdin ;;
24043       [\\/$]*)
24044          # Absolute (can't be DOS-style, as IFS=:)
24045          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
24046 echo "$as_me: error: cannot find input file: $f" >&2;}
24047    { (exit 1); exit 1; }; }
24048          echo $f;;
24049       *) # Relative
24050          if test -f "$f"; then
24051            # Build tree
24052            echo $f
24053          elif test -f "$srcdir/$f"; then
24054            # Source tree
24055            echo $srcdir/$f
24056          else
24057            # /dev/null tree
24058            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
24059 echo "$as_me: error: cannot find input file: $f" >&2;}
24060    { (exit 1); exit 1; }; }
24061          fi;;
24062       esac
24063     done` || { (exit 1); exit 1; }
24064 _ACEOF
24065 cat >>$CONFIG_STATUS <<_ACEOF
24066   sed "$ac_vpsub
24067 $extrasub
24068 _ACEOF
24069 cat >>$CONFIG_STATUS <<\_ACEOF
24070 :t
24071 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
24072 s,@configure_input@,$configure_input,;t t
24073 s,@srcdir@,$ac_srcdir,;t t
24074 s,@abs_srcdir@,$ac_abs_srcdir,;t t
24075 s,@top_srcdir@,$ac_top_srcdir,;t t
24076 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
24077 s,@builddir@,$ac_builddir,;t t
24078 s,@abs_builddir@,$ac_abs_builddir,;t t
24079 s,@top_builddir@,$ac_top_builddir,;t t
24080 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
24081 s,@INSTALL@,$ac_INSTALL,;t t
24082 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
24083   rm -f $tmp/stdin
24084   if test x"$ac_file" != x-; then
24085     mv $tmp/out $ac_file
24086   else
24087     cat $tmp/out
24088     rm -f $tmp/out
24089   fi
24090
24091 done
24092 _ACEOF
24093 cat >>$CONFIG_STATUS <<\_ACEOF
24094
24095 #
24096 # CONFIG_HEADER section.
24097 #
24098
24099 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
24100 # NAME is the cpp macro being defined and VALUE is the value it is being given.
24101 #
24102 # ac_d sets the value in "#define NAME VALUE" lines.
24103 ac_dA='s,^\([   ]*\)#\([        ]*define[       ][      ]*\)'
24104 ac_dB='[        ].*$,\1#\2'
24105 ac_dC=' '
24106 ac_dD=',;t'
24107 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
24108 ac_uA='s,^\([   ]*\)#\([        ]*\)undef\([    ][      ]*\)'
24109 ac_uB='$,\1#\2define\3'
24110 ac_uC=' '
24111 ac_uD=',;t'
24112
24113 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
24114   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
24115   case $ac_file in
24116   - | *:- | *:-:* ) # input from stdin
24117         cat >$tmp/stdin
24118         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
24119         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
24120   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
24121         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
24122   * )   ac_file_in=$ac_file.in ;;
24123   esac
24124
24125   test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
24126 echo "$as_me: creating $ac_file" >&6;}
24127
24128   # First look for the input files in the build tree, otherwise in the
24129   # src tree.
24130   ac_file_inputs=`IFS=:
24131     for f in $ac_file_in; do
24132       case $f in
24133       -) echo $tmp/stdin ;;
24134       [\\/$]*)
24135          # Absolute (can't be DOS-style, as IFS=:)
24136          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
24137 echo "$as_me: error: cannot find input file: $f" >&2;}
24138    { (exit 1); exit 1; }; }
24139          echo $f;;
24140       *) # Relative
24141          if test -f "$f"; then
24142            # Build tree
24143            echo $f
24144          elif test -f "$srcdir/$f"; then
24145            # Source tree
24146            echo $srcdir/$f
24147          else
24148            # /dev/null tree
24149            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
24150 echo "$as_me: error: cannot find input file: $f" >&2;}
24151    { (exit 1); exit 1; }; }
24152          fi;;
24153       esac
24154     done` || { (exit 1); exit 1; }
24155   # Remove the trailing spaces.
24156   sed 's/[      ]*$//' $ac_file_inputs >$tmp/in
24157
24158 _ACEOF
24159
24160 # Transform confdefs.h into two sed scripts, `conftest.defines' and
24161 # `conftest.undefs', that substitutes the proper values into
24162 # config.h.in to produce config.h.  The first handles `#define'
24163 # templates, and the second `#undef' templates.
24164 # And first: Protect against being on the right side of a sed subst in
24165 # config.status.  Protect against being in an unquoted here document
24166 # in config.status.
24167 rm -f conftest.defines conftest.undefs
24168 # Using a here document instead of a string reduces the quoting nightmare.
24169 # Putting comments in sed scripts is not portable.
24170 #
24171 # `end' is used to avoid that the second main sed command (meant for
24172 # 0-ary CPP macros) applies to n-ary macro definitions.
24173 # See the Autoconf documentation for `clear'.
24174 cat >confdef2sed.sed <<\_ACEOF
24175 s/[\\&,]/\\&/g
24176 s,[\\$`],\\&,g
24177 t clear
24178 : clear
24179 s,^[    ]*#[    ]*define[       ][      ]*\([^  (][^    (]*\)\(([^)]*)\)[       ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
24180 t end
24181 s,^[    ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
24182 : end
24183 _ACEOF
24184 # If some macros were called several times there might be several times
24185 # the same #defines, which is useless.  Nevertheless, we may not want to
24186 # sort them, since we want the *last* AC-DEFINE to be honored.
24187 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
24188 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
24189 rm -f confdef2sed.sed
24190
24191 # This sed command replaces #undef with comments.  This is necessary, for
24192 # example, in the case of _POSIX_SOURCE, which is predefined and required
24193 # on some systems where configure will not decide to define it.
24194 cat >>conftest.undefs <<\_ACEOF
24195 s,^[    ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
24196 _ACEOF
24197
24198 # Break up conftest.defines because some shells have a limit on the size
24199 # of here documents, and old seds have small limits too (100 cmds).
24200 echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
24201 echo '  if grep "^[     ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
24202 echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
24203 echo '  :' >>$CONFIG_STATUS
24204 rm -f conftest.tail
24205 while grep . conftest.defines >/dev/null
24206 do
24207   # Write a limited-size here document to $tmp/defines.sed.
24208   echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
24209   # Speed up: don't consider the non `#define' lines.
24210   echo '/^[     ]*#[    ]*define/!b' >>$CONFIG_STATUS
24211   # Work around the forget-to-reset-the-flag bug.
24212   echo 't clr' >>$CONFIG_STATUS
24213   echo ': clr' >>$CONFIG_STATUS
24214   sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
24215   echo 'CEOF
24216   sed -f $tmp/defines.sed $tmp/in >$tmp/out
24217   rm -f $tmp/in
24218   mv $tmp/out $tmp/in
24219 ' >>$CONFIG_STATUS
24220   sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
24221   rm -f conftest.defines
24222   mv conftest.tail conftest.defines
24223 done
24224 rm -f conftest.defines
24225 echo '  fi # grep' >>$CONFIG_STATUS
24226 echo >>$CONFIG_STATUS
24227
24228 # Break up conftest.undefs because some shells have a limit on the size
24229 # of here documents, and old seds have small limits too (100 cmds).
24230 echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
24231 rm -f conftest.tail
24232 while grep . conftest.undefs >/dev/null
24233 do
24234   # Write a limited-size here document to $tmp/undefs.sed.
24235   echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
24236   # Speed up: don't consider the non `#undef'
24237   echo '/^[     ]*#[    ]*undef/!b' >>$CONFIG_STATUS
24238   # Work around the forget-to-reset-the-flag bug.
24239   echo 't clr' >>$CONFIG_STATUS
24240   echo ': clr' >>$CONFIG_STATUS
24241   sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
24242   echo 'CEOF
24243   sed -f $tmp/undefs.sed $tmp/in >$tmp/out
24244   rm -f $tmp/in
24245   mv $tmp/out $tmp/in
24246 ' >>$CONFIG_STATUS
24247   sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
24248   rm -f conftest.undefs
24249   mv conftest.tail conftest.undefs
24250 done
24251 rm -f conftest.undefs
24252
24253 cat >>$CONFIG_STATUS <<\_ACEOF
24254   # Let's still pretend it is `configure' which instantiates (i.e., don't
24255   # use $as_me), people would be surprised to read:
24256   #    /* config.h.  Generated by config.status.  */
24257   if test x"$ac_file" = x-; then
24258     echo "/* Generated by configure.  */" >$tmp/config.h
24259   else
24260     echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
24261   fi
24262   cat $tmp/in >>$tmp/config.h
24263   rm -f $tmp/in
24264   if test x"$ac_file" != x-; then
24265     if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
24266       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
24267 echo "$as_me: $ac_file is unchanged" >&6;}
24268     else
24269       ac_dir=`(dirname "$ac_file") 2>/dev/null ||
24270 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24271          X"$ac_file" : 'X\(//\)[^/]' \| \
24272          X"$ac_file" : 'X\(//\)$' \| \
24273          X"$ac_file" : 'X\(/\)' \| \
24274          .     : '\(.\)' 2>/dev/null ||
24275 echo X"$ac_file" |
24276     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24277           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24278           /^X\(\/\/\)$/{ s//\1/; q; }
24279           /^X\(\/\).*/{ s//\1/; q; }
24280           s/.*/./; q'`
24281       { if $as_mkdir_p; then
24282     mkdir -p "$ac_dir"
24283   else
24284     as_dir="$ac_dir"
24285     as_dirs=
24286     while test ! -d "$as_dir"; do
24287       as_dirs="$as_dir $as_dirs"
24288       as_dir=`(dirname "$as_dir") 2>/dev/null ||
24289 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24290          X"$as_dir" : 'X\(//\)[^/]' \| \
24291          X"$as_dir" : 'X\(//\)$' \| \
24292          X"$as_dir" : 'X\(/\)' \| \
24293          .     : '\(.\)' 2>/dev/null ||
24294 echo X"$as_dir" |
24295     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24296           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24297           /^X\(\/\/\)$/{ s//\1/; q; }
24298           /^X\(\/\).*/{ s//\1/; q; }
24299           s/.*/./; q'`
24300     done
24301     test ! -n "$as_dirs" || mkdir $as_dirs
24302   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
24303 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
24304    { (exit 1); exit 1; }; }; }
24305
24306       rm -f $ac_file
24307       mv $tmp/config.h $ac_file
24308     fi
24309   else
24310     cat $tmp/config.h
24311     rm -f $tmp/config.h
24312   fi
24313 done
24314 _ACEOF
24315 cat >>$CONFIG_STATUS <<\_ACEOF
24316
24317 #
24318 # CONFIG_COMMANDS section.
24319 #
24320 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
24321   ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
24322   ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
24323   ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
24324 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24325          X"$ac_dest" : 'X\(//\)[^/]' \| \
24326          X"$ac_dest" : 'X\(//\)$' \| \
24327          X"$ac_dest" : 'X\(/\)' \| \
24328          .     : '\(.\)' 2>/dev/null ||
24329 echo X"$ac_dest" |
24330     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24331           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24332           /^X\(\/\/\)$/{ s//\1/; q; }
24333           /^X\(\/\).*/{ s//\1/; q; }
24334           s/.*/./; q'`
24335   ac_builddir=.
24336
24337 if test "$ac_dir" != .; then
24338   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
24339   # A "../" for each directory in $ac_dir_suffix.
24340   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
24341 else
24342   ac_dir_suffix= ac_top_builddir=
24343 fi
24344
24345 case $srcdir in
24346   .)  # No --srcdir option.  We are building in place.
24347     ac_srcdir=.
24348     if test -z "$ac_top_builddir"; then
24349        ac_top_srcdir=.
24350     else
24351        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
24352     fi ;;
24353   [\\/]* | ?:[\\/]* )  # Absolute path.
24354     ac_srcdir=$srcdir$ac_dir_suffix;
24355     ac_top_srcdir=$srcdir ;;
24356   *) # Relative path.
24357     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
24358     ac_top_srcdir=$ac_top_builddir$srcdir ;;
24359 esac
24360 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
24361 # absolute.
24362 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
24363 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
24364 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
24365 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
24366
24367
24368   { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
24369 echo "$as_me: executing $ac_dest commands" >&6;}
24370   case $ac_dest in
24371     Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/Makefile Makefile ;;
24372     Makefile.common ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/Makefile.common Makefile.common ;;
24373     Makefile.rules ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/Makefile.rules Makefile.rules ;;
24374     lib/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Makefile lib/Makefile ;;
24375     lib/Analysis/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Analysis/Makefile lib/Analysis/Makefile ;;
24376     lib/Analysis/DataStructure/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Analysis/DataStructure/Makefile lib/Analysis/DataStructure/Makefile ;;
24377     lib/Analysis/IPA/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Analysis/IPA/Makefile lib/Analysis/IPA/Makefile ;;
24378     lib/Analysis/LiveVar/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Analysis/LiveVar/Makefile lib/Analysis/LiveVar/Makefile ;;
24379     lib/AsmParser/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/AsmParser/Makefile lib/AsmParser/Makefile ;;
24380     lib/Bytecode/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Bytecode/Makefile lib/Bytecode/Makefile ;;
24381     lib/Bytecode/Reader/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Bytecode/Reader/Makefile lib/Bytecode/Reader/Makefile ;;
24382     lib/Bytecode/Writer/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Bytecode/Writer/Makefile lib/Bytecode/Writer/Makefile ;;
24383     lib/CWriter/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/CWriter/Makefile lib/CWriter/Makefile ;;
24384     lib/CodeGen/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/CodeGen/Makefile lib/CodeGen/Makefile ;;
24385     lib/CodeGen/InstrSched/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/CodeGen/InstrSched/Makefile lib/CodeGen/InstrSched/Makefile ;;
24386     lib/CodeGen/InstrSelection/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/CodeGen/InstrSelection/Makefile lib/CodeGen/InstrSelection/Makefile ;;
24387     lib/CodeGen/ModuloScheduling/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/CodeGen/ModuloScheduling/Makefile lib/CodeGen/ModuloScheduling/Makefile ;;
24388     lib/CodeGen/RegAlloc/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/CodeGen/RegAlloc/Makefile lib/CodeGen/RegAlloc/Makefile ;;
24389     lib/CodeGen/SelectionDAG/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/CodeGen/SelectionDAG/Makefile lib/CodeGen/SelectionDAG/Makefile ;;
24390     lib/ExecutionEngine/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/ExecutionEngine/Makefile lib/ExecutionEngine/Makefile ;;
24391     lib/ExecutionEngine/Interpreter/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/ExecutionEngine/Interpreter/Makefile lib/ExecutionEngine/Interpreter/Makefile ;;
24392     lib/ExecutionEngine/JIT/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/ExecutionEngine/JIT/Makefile lib/ExecutionEngine/JIT/Makefile ;;
24393     lib/Support/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Support/Makefile lib/Support/Makefile ;;
24394     lib/Target/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Target/Makefile lib/Target/Makefile ;;
24395     lib/Target/Sparc/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Target/Sparc/Makefile lib/Target/Sparc/Makefile ;;
24396     lib/Target/X86/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Target/X86/Makefile lib/Target/X86/Makefile ;;
24397     lib/Transforms/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Transforms/Makefile lib/Transforms/Makefile ;;
24398     lib/Transforms/Hello/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Transforms/Hello/Makefile lib/Transforms/Hello/Makefile ;;
24399     lib/Transforms/IPO/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Transforms/IPO/Makefile lib/Transforms/IPO/Makefile ;;
24400     lib/Transforms/Instrumentation/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Transforms/Instrumentation/Makefile lib/Transforms/Instrumentation/Makefile ;;
24401     lib/Transforms/Instrumentation/ProfilePaths/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Transforms/Instrumentation/ProfilePaths/Makefile lib/Transforms/Instrumentation/ProfilePaths/Makefile ;;
24402     lib/Transforms/Scalar/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Transforms/Scalar/Makefile lib/Transforms/Scalar/Makefile ;;
24403     lib/Transforms/Utils/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Transforms/Utils/Makefile lib/Transforms/Utils/Makefile ;;
24404     lib/VMCore/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/VMCore/Makefile lib/VMCore/Makefile ;;
24405     runtime/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/runtime/Makefile runtime/Makefile ;;
24406     runtime/GCCLibraries/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/runtime/GCCLibraries/Makefile runtime/GCCLibraries/Makefile ;;
24407     runtime/GCCLibraries/crtend/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/runtime/GCCLibraries/crtend/Makefile runtime/GCCLibraries/crtend/Makefile ;;
24408     runtime/GCCLibraries/libc/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/runtime/GCCLibraries/libc/Makefile runtime/GCCLibraries/libc/Makefile ;;
24409     runtime/GCCLibraries/libcurses/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/runtime/GCCLibraries/libcurses/Makefile runtime/GCCLibraries/libcurses/Makefile ;;
24410     runtime/GCCLibraries/libg/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/runtime/GCCLibraries/libg/Makefile runtime/GCCLibraries/libg/Makefile ;;
24411     runtime/GCCLibraries/libgcc/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/runtime/GCCLibraries/libgcc/Makefile runtime/GCCLibraries/libgcc/Makefile ;;
24412     runtime/GCCLibraries/libm/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/runtime/GCCLibraries/libm/Makefile runtime/GCCLibraries/libm/Makefile ;;
24413     runtime/GCCLibraries/libmalloc/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/runtime/GCCLibraries/libmalloc/Makefile runtime/GCCLibraries/libmalloc/Makefile ;;
24414     runtime/GCCLibraries/libtermcap/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/runtime/GCCLibraries/libtermcap/Makefile runtime/GCCLibraries/libtermcap/Makefile ;;
24415     runtime/GCCLibraries/libucb/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/runtime/GCCLibraries/libucb/Makefile runtime/GCCLibraries/libucb/Makefile ;;
24416     runtime/GCCLibraries/libutempter/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/runtime/GCCLibraries/libutempter/Makefile runtime/GCCLibraries/libutempter/Makefile ;;
24417     runtime/GCCLibraries/libutil/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/runtime/GCCLibraries/libutil/Makefile runtime/GCCLibraries/libutil/Makefile ;;
24418     runtime/libdummy/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/runtime/libdummy/Makefile runtime/libdummy/Makefile ;;
24419     runtime/libtrace/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/runtime/libtrace/Makefile runtime/libtrace/Makefile ;;
24420     test/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Makefile test/Makefile ;;
24421     test/Makefile.tests ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Makefile.tests test/Makefile.tests ;;
24422     test/QMTestDB/QMTest/llvm.py ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/QMTestDB/QMTest/llvm.py test/QMTestDB/QMTest/llvm.py ;;
24423     test/Programs/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/Makefile test/Programs/Makefile ;;
24424     test/Programs/Makefile.programs ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/Makefile.programs test/Programs/Makefile.programs ;;
24425     test/Programs/TEST.aa.Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.aa.Makefile test/Programs/TEST.aa.Makefile ;;
24426     test/Programs/TEST.dsgraph.report ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.dsgraph.report test/Programs/TEST.dsgraph.report ;;
24427     test/Programs/TEST.micro.report ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.micro.report test/Programs/TEST.micro.report ;;
24428     test/Programs/TEST.aa.report ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.aa.report test/Programs/TEST.aa.report ;;
24429     test/Programs/TEST.example.Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.example.Makefile test/Programs/TEST.example.Makefile ;;
24430     test/Programs/TEST.nightly.Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.nightly.Makefile test/Programs/TEST.nightly.Makefile ;;
24431     test/Programs/TEST.buildrepo.Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.buildrepo.Makefile test/Programs/TEST.buildrepo.Makefile ;;
24432     test/Programs/TEST.jit.Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.jit.Makefile test/Programs/TEST.jit.Makefile ;;
24433     test/Programs/TEST.nightly.report ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.nightly.report test/Programs/TEST.nightly.report ;;
24434     test/Programs/TEST.dsgraph.Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.dsgraph.Makefile test/Programs/TEST.dsgraph.Makefile ;;
24435     test/Programs/TEST.jit.report ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.jit.report test/Programs/TEST.jit.report ;;
24436     test/Programs/TEST.typesafe.Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.typesafe.Makefile test/Programs/TEST.typesafe.Makefile ;;
24437     test/Programs/TEST.dsgraph.gnuplot ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.dsgraph.gnuplot test/Programs/TEST.dsgraph.gnuplot ;;
24438     test/Programs/TEST.micro.Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.micro.Makefile test/Programs/TEST.micro.Makefile ;;
24439     test/Programs/External/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/External/Makefile test/Programs/External/Makefile ;;
24440     test/Programs/External/SPEC/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/External/SPEC/Makefile test/Programs/External/SPEC/Makefile ;;
24441     test/Programs/External/SPEC/Makefile.spec ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/External/SPEC/Makefile.spec test/Programs/External/SPEC/Makefile.spec ;;
24442     test/Programs/External/SPEC/CFP2000/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/External/SPEC/CFP2000/Makefile test/Programs/External/SPEC/CFP2000/Makefile ;;
24443     test/Programs/External/SPEC/CFP2000/179.art/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/External/SPEC/CFP2000/179.art/Makefile test/Programs/External/SPEC/CFP2000/179.art/Makefile ;;
24444     test/Programs/External/SPEC/CFP2000/183.equake/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/External/SPEC/CFP2000/183.equake/Makefile test/Programs/External/SPEC/CFP2000/183.equake/Makefile ;;
24445     test/Programs/External/SPEC/CFP2000/188.ammp/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/External/SPEC/CFP2000/188.ammp/Makefile test/Programs/External/SPEC/CFP2000/188.ammp/Makefile ;;
24446     test/Programs/External/SPEC/CINT2000/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/External/SPEC/CINT2000/Makefile test/Programs/External/SPEC/CINT2000/Makefile ;;
24447     test/Programs/External/SPEC/CINT2000/164.gzip/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/External/SPEC/CINT2000/164.gzip/Makefile test/Programs/External/SPEC/CINT2000/164.gzip/Makefile ;;
24448     test/Programs/External/SPEC/CINT2000/175.vpr/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/External/SPEC/CINT2000/175.vpr/Makefile test/Programs/External/SPEC/CINT2000/175.vpr/Makefile ;;
24449     test/Programs/External/SPEC/CINT2000/176.gcc/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/External/SPEC/CINT2000/176.gcc/Makefile test/Programs/External/SPEC/CINT2000/176.gcc/Makefile ;;
24450     test/Programs/External/SPEC/CINT2000/181.mcf/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/External/SPEC/CINT2000/181.mcf/Makefile test/Programs/External/SPEC/CINT2000/181.mcf/Makefile ;;
24451     test/Programs/External/SPEC/CINT2000/186.crafty/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/External/SPEC/CINT2000/186.crafty/Makefile test/Programs/External/SPEC/CINT2000/186.crafty/Makefile ;;
24452     test/Programs/External/SPEC/CINT2000/197.parser/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/External/SPEC/CINT2000/197.parser/Makefile test/Programs/External/SPEC/CINT2000/197.parser/Makefile ;;
24453     test/Programs/External/SPEC/CINT2000/254.gap/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/External/SPEC/CINT2000/254.gap/Makefile test/Programs/External/SPEC/CINT2000/254.gap/Makefile ;;
24454     test/Programs/External/SPEC/CINT2000/255.vortex/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/External/SPEC/CINT2000/255.vortex/Makefile test/Programs/External/SPEC/CINT2000/255.vortex/Makefile ;;
24455     test/Programs/External/SPEC/CINT2000/256.bzip2/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/External/SPEC/CINT2000/256.bzip2/Makefile test/Programs/External/SPEC/CINT2000/256.bzip2/Makefile ;;
24456     test/Programs/External/SPEC/CINT2000/300.twolf/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/External/SPEC/CINT2000/300.twolf/Makefile test/Programs/External/SPEC/CINT2000/300.twolf/Makefile ;;
24457     test/Programs/LLVMSource/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/LLVMSource/Makefile test/Programs/LLVMSource/Makefile ;;
24458     test/Programs/MultiSource/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Makefile test/Programs/MultiSource/Makefile ;;
24459     test/Programs/MultiSource/Makefile.multisrc ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Makefile.multisrc test/Programs/MultiSource/Makefile.multisrc ;;
24460     test/Programs/MultiSource/Applications/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Applications/Makefile test/Programs/MultiSource/Applications/Makefile ;;
24461     test/Programs/MultiSource/Applications/Burg/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Applications/Burg/Makefile test/Programs/MultiSource/Applications/Burg/Makefile ;;
24462     test/Programs/MultiSource/Applications/aha/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Applications/aha/Makefile test/Programs/MultiSource/Applications/aha/Makefile ;;
24463     test/Programs/MultiSource/Applications/sgefa/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Applications/sgefa/Makefile test/Programs/MultiSource/Applications/sgefa/Makefile ;;
24464     test/Programs/MultiSource/Benchmarks/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Benchmarks/Makefile test/Programs/MultiSource/Benchmarks/Makefile ;;
24465     test/Programs/MultiSource/Benchmarks/Fhourstones/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Benchmarks/Fhourstones/Makefile test/Programs/MultiSource/Benchmarks/Fhourstones/Makefile ;;
24466     test/Programs/MultiSource/Benchmarks/McCat/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Benchmarks/McCat/Makefile test/Programs/MultiSource/Benchmarks/McCat/Makefile ;;
24467     test/Programs/MultiSource/Benchmarks/McCat/01-qbsort/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Benchmarks/McCat/01-qbsort/Makefile test/Programs/MultiSource/Benchmarks/McCat/01-qbsort/Makefile ;;
24468     test/Programs/MultiSource/Benchmarks/McCat/03-testtrie/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Benchmarks/McCat/03-testtrie/Makefile test/Programs/MultiSource/Benchmarks/McCat/03-testtrie/Makefile ;;
24469     test/Programs/MultiSource/Benchmarks/McCat/04-bisect/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Benchmarks/McCat/04-bisect/Makefile test/Programs/MultiSource/Benchmarks/McCat/04-bisect/Makefile ;;
24470     test/Programs/MultiSource/Benchmarks/McCat/05-eks/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Benchmarks/McCat/05-eks/Makefile test/Programs/MultiSource/Benchmarks/McCat/05-eks/Makefile ;;
24471     test/Programs/MultiSource/Benchmarks/McCat/08-main/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Benchmarks/McCat/08-main/Makefile test/Programs/MultiSource/Benchmarks/McCat/08-main/Makefile ;;
24472     test/Programs/MultiSource/Benchmarks/McCat/09-vor/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Benchmarks/McCat/09-vor/Makefile test/Programs/MultiSource/Benchmarks/McCat/09-vor/Makefile ;;
24473     test/Programs/MultiSource/Benchmarks/McCat/12-IOtest/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Benchmarks/McCat/12-IOtest/Makefile test/Programs/MultiSource/Benchmarks/McCat/12-IOtest/Makefile ;;
24474     test/Programs/MultiSource/Benchmarks/McCat/15-trie/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Benchmarks/McCat/15-trie/Makefile test/Programs/MultiSource/Benchmarks/McCat/15-trie/Makefile ;;
24475     test/Programs/MultiSource/Benchmarks/McCat/17-bintr/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Benchmarks/McCat/17-bintr/Makefile test/Programs/MultiSource/Benchmarks/McCat/17-bintr/Makefile ;;
24476     test/Programs/MultiSource/Benchmarks/McCat/18-imp/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Benchmarks/McCat/18-imp/Makefile test/Programs/MultiSource/Benchmarks/McCat/18-imp/Makefile ;;
24477     test/Programs/MultiSource/Benchmarks/Olden/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Benchmarks/Olden/Makefile test/Programs/MultiSource/Benchmarks/Olden/Makefile ;;
24478     test/Programs/MultiSource/Benchmarks/Olden/bh/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Benchmarks/Olden/bh/Makefile test/Programs/MultiSource/Benchmarks/Olden/bh/Makefile ;;
24479     test/Programs/MultiSource/Benchmarks/Olden/bisort/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Benchmarks/Olden/bisort/Makefile test/Programs/MultiSource/Benchmarks/Olden/bisort/Makefile ;;
24480     test/Programs/MultiSource/Benchmarks/Olden/em3d/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Benchmarks/Olden/em3d/Makefile test/Programs/MultiSource/Benchmarks/Olden/em3d/Makefile ;;
24481     test/Programs/MultiSource/Benchmarks/Olden/health/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Benchmarks/Olden/health/Makefile test/Programs/MultiSource/Benchmarks/Olden/health/Makefile ;;
24482     test/Programs/MultiSource/Benchmarks/Olden/mst/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Benchmarks/Olden/mst/Makefile test/Programs/MultiSource/Benchmarks/Olden/mst/Makefile ;;
24483     test/Programs/MultiSource/Benchmarks/Olden/perimeter/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Benchmarks/Olden/perimeter/Makefile test/Programs/MultiSource/Benchmarks/Olden/perimeter/Makefile ;;
24484     test/Programs/MultiSource/Benchmarks/Olden/power/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Benchmarks/Olden/power/Makefile test/Programs/MultiSource/Benchmarks/Olden/power/Makefile ;;
24485     test/Programs/MultiSource/Benchmarks/Olden/treeadd/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Benchmarks/Olden/treeadd/Makefile test/Programs/MultiSource/Benchmarks/Olden/treeadd/Makefile ;;
24486     test/Programs/MultiSource/Benchmarks/Olden/tsp/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Benchmarks/Olden/tsp/Makefile test/Programs/MultiSource/Benchmarks/Olden/tsp/Makefile ;;
24487     test/Programs/MultiSource/Benchmarks/Olden/voronoi/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Benchmarks/Olden/voronoi/Makefile test/Programs/MultiSource/Benchmarks/Olden/voronoi/Makefile ;;
24488     test/Programs/MultiSource/Benchmarks/OptimizerEval/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Benchmarks/OptimizerEval/Makefile test/Programs/MultiSource/Benchmarks/OptimizerEval/Makefile ;;
24489     test/Programs/MultiSource/Benchmarks/Ptrdist/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Benchmarks/Ptrdist/Makefile test/Programs/MultiSource/Benchmarks/Ptrdist/Makefile ;;
24490     test/Programs/MultiSource/Benchmarks/Ptrdist/anagram/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Benchmarks/Ptrdist/anagram/Makefile test/Programs/MultiSource/Benchmarks/Ptrdist/anagram/Makefile ;;
24491     test/Programs/MultiSource/Benchmarks/Ptrdist/bc/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Benchmarks/Ptrdist/bc/Makefile test/Programs/MultiSource/Benchmarks/Ptrdist/bc/Makefile ;;
24492     test/Programs/MultiSource/Benchmarks/Ptrdist/ft/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Benchmarks/Ptrdist/ft/Makefile test/Programs/MultiSource/Benchmarks/Ptrdist/ft/Makefile ;;
24493     test/Programs/MultiSource/Benchmarks/Ptrdist/ks/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Benchmarks/Ptrdist/ks/Makefile test/Programs/MultiSource/Benchmarks/Ptrdist/ks/Makefile ;;
24494     test/Programs/MultiSource/Benchmarks/Ptrdist/yacr2/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Benchmarks/Ptrdist/yacr2/Makefile test/Programs/MultiSource/Benchmarks/Ptrdist/yacr2/Makefile ;;
24495     test/Programs/MultiSource/Benchmarks/llubenchmark/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Benchmarks/llubenchmark/Makefile test/Programs/MultiSource/Benchmarks/llubenchmark/Makefile ;;
24496     test/Programs/MultiSource/Benchmarks/sim/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Benchmarks/sim/Makefile test/Programs/MultiSource/Benchmarks/sim/Makefile ;;
24497     test/Programs/NoSource/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/NoSource/Makefile test/Programs/NoSource/Makefile ;;
24498     test/Programs/NoSource/Flex/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/NoSource/Flex/Makefile test/Programs/NoSource/Flex/Makefile ;;
24499     test/Programs/NoSource/Larn/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/NoSource/Larn/Makefile test/Programs/NoSource/Larn/Makefile ;;
24500     test/Programs/NoSource/Moria-5.5.2/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/NoSource/Moria-5.5.2/Makefile test/Programs/NoSource/Moria-5.5.2/Makefile ;;
24501     test/Programs/NoSource/Povray31/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/NoSource/Povray31/Makefile test/Programs/NoSource/Povray31/Makefile ;;
24502     test/Programs/NoSource/m4/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/NoSource/m4/Makefile test/Programs/NoSource/m4/Makefile ;;
24503     test/Programs/SingleSource/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/SingleSource/Makefile test/Programs/SingleSource/Makefile ;;
24504     test/Programs/SingleSource/Makefile.singlesrc ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/SingleSource/Makefile.singlesrc test/Programs/SingleSource/Makefile.singlesrc ;;
24505     test/Programs/SingleSource/Gizmos/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/SingleSource/Gizmos/Makefile test/Programs/SingleSource/Gizmos/Makefile ;;
24506     test/Programs/SingleSource/Benchmarks/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/SingleSource/Benchmarks/Makefile test/Programs/SingleSource/Benchmarks/Makefile ;;
24507     test/Programs/SingleSource/Benchmarks/Dhrystone/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/SingleSource/Benchmarks/Dhrystone/Makefile test/Programs/SingleSource/Benchmarks/Dhrystone/Makefile ;;
24508     test/Programs/SingleSource/Benchmarks/Shootout/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/SingleSource/Benchmarks/Shootout/Makefile test/Programs/SingleSource/Benchmarks/Shootout/Makefile ;;
24509     test/Programs/SingleSource/Benchmarks/Stanford/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/SingleSource/Benchmarks/Stanford/Makefile test/Programs/SingleSource/Benchmarks/Stanford/Makefile ;;
24510     test/Programs/SingleSource/Benchmarks/Misc/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/SingleSource/Benchmarks/Misc/Makefile test/Programs/SingleSource/Benchmarks/Misc/Makefile ;;
24511     test/Programs/SingleSource/CustomChecked/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/SingleSource/CustomChecked/Makefile test/Programs/SingleSource/CustomChecked/Makefile ;;
24512     test/Programs/SingleSource/UnitTests/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/SingleSource/UnitTests/Makefile test/Programs/SingleSource/UnitTests/Makefile ;;
24513     test/Programs/SingleSource/UnitTests/SetjmpLongjmp/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/SingleSource/UnitTests/SetjmpLongjmp/Makefile test/Programs/SingleSource/UnitTests/SetjmpLongjmp/Makefile ;;
24514     test/Programs/SingleSource/Regression/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/SingleSource/Regression/Makefile test/Programs/SingleSource/Regression/Makefile ;;
24515     tools/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/Makefile tools/Makefile ;;
24516     tools/analyze/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/analyze/Makefile tools/analyze/Makefile ;;
24517     tools/bugpoint/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/bugpoint/Makefile tools/bugpoint/Makefile ;;
24518     tools/extract/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/extract/Makefile tools/extract/Makefile ;;
24519     tools/gccas/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/gccas/Makefile tools/gccas/Makefile ;;
24520     tools/gccld/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/gccld/Makefile tools/gccld/Makefile ;;
24521     tools/llc/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/llc/Makefile tools/llc/Makefile ;;
24522     tools/llee/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/llee/Makefile tools/llee/Makefile ;;
24523     tools/lli/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/lli/Makefile tools/lli/Makefile ;;
24524     tools/llvm-ar/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/llvm-ar/Makefile tools/llvm-ar/Makefile ;;
24525     tools/llvm-as/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/llvm-as/Makefile tools/llvm-as/Makefile ;;
24526     tools/llvm-dis/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/llvm-dis/Makefile tools/llvm-dis/Makefile ;;
24527     tools/llvm-link/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/llvm-link/Makefile tools/llvm-link/Makefile ;;
24528     tools/opt/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/opt/Makefile tools/opt/Makefile ;;
24529     utils/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/utils/Makefile utils/Makefile ;;
24530     utils/Burg/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/utils/Burg/Makefile utils/Burg/Makefile ;;
24531     utils/Burg/Doc/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/utils/Burg/Doc/Makefile utils/Burg/Doc/Makefile ;;
24532     utils/TableGen/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/utils/TableGen/Makefile utils/TableGen/Makefile ;;
24533     www/docs/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/www/docs/Makefile www/docs/Makefile ;;
24534     projects/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/projects/Makefile projects/Makefile ;;
24535     projects/sample/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/projects/sample/Makefile projects/sample/Makefile ;;
24536     projects/sample/Makefile.common ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/projects/sample/Makefile.common projects/sample/Makefile.common ;;
24537     projects/sample/Makefile.config ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/projects/sample/Makefile.config projects/sample/Makefile.config ;;
24538     projects/sample/lib/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/projects/sample/lib/Makefile projects/sample/lib/Makefile ;;
24539     projects/sample/lib/sample/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/projects/sample/lib/sample/Makefile projects/sample/lib/sample/Makefile ;;
24540     projects/sample/tools/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/projects/sample/tools/Makefile projects/sample/tools/Makefile ;;
24541     projects/sample/tools/sample/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/projects/sample/tools/sample/Makefile projects/sample/tools/sample/Makefile ;;
24542     projects/ModuleMaker/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/projects/ModuleMaker/Makefile projects/ModuleMaker/Makefile ;;
24543     projects/ModuleMaker/Makefile.common ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/projects/ModuleMaker/Makefile.common projects/ModuleMaker/Makefile.common ;;
24544     projects/ModuleMaker/tools/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/projects/ModuleMaker/tools/Makefile projects/ModuleMaker/tools/Makefile ;;
24545     projects/ModuleMaker/tools/ModuleMaker/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/projects/ModuleMaker/tools/ModuleMaker/Makefile projects/ModuleMaker/tools/ModuleMaker/Makefile ;;
24546   esac
24547 done
24548 _ACEOF
24549
24550 cat >>$CONFIG_STATUS <<\_ACEOF
24551
24552 { (exit 0); exit 0; }
24553 _ACEOF
24554 chmod +x $CONFIG_STATUS
24555 ac_clean_files=$ac_clean_files_save
24556
24557
24558 # configure is writing to config.log, and then calls config.status.
24559 # config.status does its own redirection, appending to config.log.
24560 # Unfortunately, on DOS this fails, as config.log is still kept open
24561 # by configure, so config.status won't be able to write to it; its
24562 # output is simply discarded.  So we exec the FD to /dev/null,
24563 # effectively closing config.log, so it can be properly (re)opened and
24564 # appended to by config.status.  When coming back to configure, we
24565 # need to make the FD available again.
24566 if test "$no_create" != yes; then
24567   ac_cs_success=:
24568   ac_config_status_args=
24569   test "$silent" = yes &&
24570     ac_config_status_args="$ac_config_status_args --quiet"
24571   exec 5>/dev/null
24572   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
24573   exec 5>>config.log
24574   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
24575   # would make configure fail if this is the last instruction.
24576   $ac_cs_success || { (exit 1); exit 1; }
24577 fi
24578