Updated for the new QMTest test suite. Temporary output file is now placed
[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/Target/Makefile"
1591
1592
1593           ac_config_commands="$ac_config_commands lib/Target/Sparc/Makefile"
1594
1595
1596           ac_config_commands="$ac_config_commands lib/Target/X86/Makefile"
1597
1598
1599           ac_config_commands="$ac_config_commands lib/Transforms/Makefile"
1600
1601
1602           ac_config_commands="$ac_config_commands lib/Transforms/Hello/Makefile"
1603
1604
1605           ac_config_commands="$ac_config_commands lib/Transforms/IPO/Makefile"
1606
1607
1608           ac_config_commands="$ac_config_commands lib/Transforms/Instrumentation/Makefile"
1609
1610
1611           ac_config_commands="$ac_config_commands lib/Transforms/Instrumentation/ProfilePaths/Makefile"
1612
1613
1614           ac_config_commands="$ac_config_commands lib/Transforms/Scalar/Makefile"
1615
1616
1617           ac_config_commands="$ac_config_commands lib/Transforms/Utils/Makefile"
1618
1619
1620           ac_config_commands="$ac_config_commands lib/VMCore/Makefile"
1621
1622
1623           ac_config_commands="$ac_config_commands runtime/Makefile"
1624
1625
1626           ac_config_commands="$ac_config_commands runtime/GCCLibraries/Makefile"
1627
1628
1629           ac_config_commands="$ac_config_commands runtime/GCCLibraries/crtend/Makefile"
1630
1631
1632           ac_config_commands="$ac_config_commands runtime/GCCLibraries/libc/Makefile"
1633
1634
1635           ac_config_commands="$ac_config_commands runtime/GCCLibraries/libcurses/Makefile"
1636
1637
1638           ac_config_commands="$ac_config_commands runtime/GCCLibraries/libg/Makefile"
1639
1640
1641           ac_config_commands="$ac_config_commands runtime/GCCLibraries/libgcc/Makefile"
1642
1643
1644           ac_config_commands="$ac_config_commands runtime/GCCLibraries/libm/Makefile"
1645
1646
1647           ac_config_commands="$ac_config_commands runtime/GCCLibraries/libmalloc/Makefile"
1648
1649
1650           ac_config_commands="$ac_config_commands runtime/GCCLibraries/libtermcap/Makefile"
1651
1652
1653           ac_config_commands="$ac_config_commands runtime/GCCLibraries/libucb/Makefile"
1654
1655
1656           ac_config_commands="$ac_config_commands runtime/GCCLibraries/libutempter/Makefile"
1657
1658
1659           ac_config_commands="$ac_config_commands runtime/GCCLibraries/libutil/Makefile"
1660
1661
1662           ac_config_commands="$ac_config_commands runtime/libdummy/Makefile"
1663
1664
1665           ac_config_commands="$ac_config_commands runtime/libtrace/Makefile"
1666
1667
1668           ac_config_commands="$ac_config_commands test/Makefile"
1669
1670
1671           ac_config_commands="$ac_config_commands test/Makefile.tests"
1672
1673
1674           ac_config_commands="$ac_config_commands test/QMTestDB/QMTest/llvm.py"
1675
1676
1677           ac_config_commands="$ac_config_commands test/Programs/Makefile"
1678
1679
1680           ac_config_commands="$ac_config_commands test/Programs/Makefile.programs"
1681
1682
1683           ac_config_commands="$ac_config_commands test/Programs/TEST.aa.Makefile"
1684
1685
1686           ac_config_commands="$ac_config_commands test/Programs/TEST.dsgraph.report"
1687
1688
1689           ac_config_commands="$ac_config_commands test/Programs/TEST.micro.report"
1690
1691
1692           ac_config_commands="$ac_config_commands test/Programs/TEST.aa.report"
1693
1694
1695           ac_config_commands="$ac_config_commands test/Programs/TEST.example.Makefile"
1696
1697
1698           ac_config_commands="$ac_config_commands test/Programs/TEST.nightly.Makefile"
1699
1700
1701           ac_config_commands="$ac_config_commands test/Programs/TEST.buildrepo.Makefile"
1702
1703
1704           ac_config_commands="$ac_config_commands test/Programs/TEST.jit.Makefile"
1705
1706
1707           ac_config_commands="$ac_config_commands test/Programs/TEST.nightly.report"
1708
1709
1710           ac_config_commands="$ac_config_commands test/Programs/TEST.dsgraph.Makefile"
1711
1712
1713           ac_config_commands="$ac_config_commands test/Programs/TEST.jit.report"
1714
1715
1716           ac_config_commands="$ac_config_commands test/Programs/TEST.typesafe.Makefile"
1717
1718
1719           ac_config_commands="$ac_config_commands test/Programs/TEST.dsgraph.gnuplot"
1720
1721
1722           ac_config_commands="$ac_config_commands test/Programs/TEST.micro.Makefile"
1723
1724
1725           ac_config_commands="$ac_config_commands test/Programs/External/Makefile"
1726
1727
1728           ac_config_commands="$ac_config_commands test/Programs/External/SPEC/Makefile"
1729
1730
1731           ac_config_commands="$ac_config_commands test/Programs/External/SPEC/Makefile.spec"
1732
1733
1734           ac_config_commands="$ac_config_commands test/Programs/External/SPEC/CFP2000/Makefile"
1735
1736
1737           ac_config_commands="$ac_config_commands test/Programs/External/SPEC/CFP2000/179.art/Makefile"
1738
1739
1740           ac_config_commands="$ac_config_commands test/Programs/External/SPEC/CFP2000/183.equake/Makefile"
1741
1742
1743           ac_config_commands="$ac_config_commands test/Programs/External/SPEC/CFP2000/188.ammp/Makefile"
1744
1745
1746           ac_config_commands="$ac_config_commands test/Programs/External/SPEC/CINT2000/Makefile"
1747
1748
1749           ac_config_commands="$ac_config_commands test/Programs/External/SPEC/CINT2000/164.gzip/Makefile"
1750
1751
1752           ac_config_commands="$ac_config_commands test/Programs/External/SPEC/CINT2000/175.vpr/Makefile"
1753
1754
1755           ac_config_commands="$ac_config_commands test/Programs/External/SPEC/CINT2000/176.gcc/Makefile"
1756
1757
1758           ac_config_commands="$ac_config_commands test/Programs/External/SPEC/CINT2000/181.mcf/Makefile"
1759
1760
1761           ac_config_commands="$ac_config_commands test/Programs/External/SPEC/CINT2000/186.crafty/Makefile"
1762
1763
1764           ac_config_commands="$ac_config_commands test/Programs/External/SPEC/CINT2000/197.parser/Makefile"
1765
1766
1767           ac_config_commands="$ac_config_commands test/Programs/External/SPEC/CINT2000/254.gap/Makefile"
1768
1769
1770           ac_config_commands="$ac_config_commands test/Programs/External/SPEC/CINT2000/255.vortex/Makefile"
1771
1772
1773           ac_config_commands="$ac_config_commands test/Programs/External/SPEC/CINT2000/256.bzip2/Makefile"
1774
1775
1776           ac_config_commands="$ac_config_commands test/Programs/External/SPEC/CINT2000/300.twolf/Makefile"
1777
1778
1779           ac_config_commands="$ac_config_commands test/Programs/LLVMSource/Makefile"
1780
1781
1782           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Makefile"
1783
1784
1785           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Makefile.multisrc"
1786
1787
1788           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Applications/Makefile"
1789
1790
1791           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Applications/Burg/Makefile"
1792
1793
1794           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Applications/aha/Makefile"
1795
1796
1797           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Applications/sgefa/Makefile"
1798
1799
1800           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/Makefile"
1801
1802
1803           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/Fhourstones/Makefile"
1804
1805
1806           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/McCat/Makefile"
1807
1808
1809           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/McCat/01-qbsort/Makefile"
1810
1811
1812           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/McCat/03-testtrie/Makefile"
1813
1814
1815           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/McCat/04-bisect/Makefile"
1816
1817
1818           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/McCat/05-eks/Makefile"
1819
1820
1821           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/McCat/08-main/Makefile"
1822
1823
1824           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/McCat/09-vor/Makefile"
1825
1826
1827           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/McCat/12-IOtest/Makefile"
1828
1829
1830           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/McCat/15-trie/Makefile"
1831
1832
1833           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/McCat/17-bintr/Makefile"
1834
1835
1836           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/McCat/18-imp/Makefile"
1837
1838
1839           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/Olden/Makefile"
1840
1841
1842           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/Olden/bh/Makefile"
1843
1844
1845           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/Olden/bisort/Makefile"
1846
1847
1848           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/Olden/em3d/Makefile"
1849
1850
1851           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/Olden/health/Makefile"
1852
1853
1854           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/Olden/mst/Makefile"
1855
1856
1857           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/Olden/perimeter/Makefile"
1858
1859
1860           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/Olden/power/Makefile"
1861
1862
1863           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/Olden/treeadd/Makefile"
1864
1865
1866           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/Olden/tsp/Makefile"
1867
1868
1869           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/Olden/voronoi/Makefile"
1870
1871
1872           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/OptimizerEval/Makefile"
1873
1874
1875           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/Ptrdist/Makefile"
1876
1877
1878           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/Ptrdist/anagram/Makefile"
1879
1880
1881           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/Ptrdist/bc/Makefile"
1882
1883
1884           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/Ptrdist/ft/Makefile"
1885
1886
1887           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/Ptrdist/ks/Makefile"
1888
1889
1890           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/Ptrdist/yacr2/Makefile"
1891
1892
1893           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/llubenchmark/Makefile"
1894
1895
1896           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/sim/Makefile"
1897
1898
1899           ac_config_commands="$ac_config_commands test/Programs/NoSource/Makefile"
1900
1901
1902           ac_config_commands="$ac_config_commands test/Programs/NoSource/Flex/Makefile"
1903
1904
1905           ac_config_commands="$ac_config_commands test/Programs/NoSource/Larn/Makefile"
1906
1907
1908           ac_config_commands="$ac_config_commands test/Programs/NoSource/Moria-5.5.2/Makefile"
1909
1910
1911           ac_config_commands="$ac_config_commands test/Programs/NoSource/Povray31/Makefile"
1912
1913
1914           ac_config_commands="$ac_config_commands test/Programs/NoSource/m4/Makefile"
1915
1916
1917           ac_config_commands="$ac_config_commands test/Programs/SingleSource/Makefile"
1918
1919
1920           ac_config_commands="$ac_config_commands test/Programs/SingleSource/Makefile.singlesrc"
1921
1922
1923           ac_config_commands="$ac_config_commands test/Programs/SingleSource/Gizmos/Makefile"
1924
1925
1926           ac_config_commands="$ac_config_commands test/Programs/SingleSource/Benchmarks/Makefile"
1927
1928
1929           ac_config_commands="$ac_config_commands test/Programs/SingleSource/Benchmarks/Dhrystone/Makefile"
1930
1931
1932           ac_config_commands="$ac_config_commands test/Programs/SingleSource/Benchmarks/Shootout/Makefile"
1933
1934
1935           ac_config_commands="$ac_config_commands test/Programs/SingleSource/Benchmarks/Stanford/Makefile"
1936
1937
1938           ac_config_commands="$ac_config_commands test/Programs/SingleSource/Benchmarks/Misc/Makefile"
1939
1940
1941           ac_config_commands="$ac_config_commands test/Programs/SingleSource/CustomChecked/Makefile"
1942
1943
1944           ac_config_commands="$ac_config_commands test/Programs/SingleSource/UnitTests/Makefile"
1945
1946
1947           ac_config_commands="$ac_config_commands test/Programs/SingleSource/UnitTests/SetjmpLongjmp/Makefile"
1948
1949
1950           ac_config_commands="$ac_config_commands test/Programs/SingleSource/Regression/Makefile"
1951
1952
1953           ac_config_commands="$ac_config_commands test/Programs/SingleSource/Regression/C/Makefile"
1954
1955
1956           ac_config_commands="$ac_config_commands test/Programs/SingleSource/Regression/C++/Makefile"
1957
1958
1959           ac_config_commands="$ac_config_commands tools/Makefile"
1960
1961
1962           ac_config_commands="$ac_config_commands tools/analyze/Makefile"
1963
1964
1965           ac_config_commands="$ac_config_commands tools/bugpoint/Makefile"
1966
1967
1968           ac_config_commands="$ac_config_commands tools/extract/Makefile"
1969
1970
1971           ac_config_commands="$ac_config_commands tools/gccas/Makefile"
1972
1973
1974           ac_config_commands="$ac_config_commands tools/gccld/Makefile"
1975
1976
1977           ac_config_commands="$ac_config_commands tools/llc/Makefile"
1978
1979
1980           ac_config_commands="$ac_config_commands tools/llee/Makefile"
1981
1982
1983           ac_config_commands="$ac_config_commands tools/lli/Makefile"
1984
1985
1986           ac_config_commands="$ac_config_commands tools/llvm-ar/Makefile"
1987
1988
1989           ac_config_commands="$ac_config_commands tools/llvm-as/Makefile"
1990
1991
1992           ac_config_commands="$ac_config_commands tools/llvm-dis/Makefile"
1993
1994
1995           ac_config_commands="$ac_config_commands tools/llvm-link/Makefile"
1996
1997
1998           ac_config_commands="$ac_config_commands tools/opt/Makefile"
1999
2000
2001           ac_config_commands="$ac_config_commands utils/Makefile"
2002
2003
2004           ac_config_commands="$ac_config_commands www/docs/Makefile"
2005
2006
2007           ac_config_commands="$ac_config_commands projects/Makefile"
2008
2009
2010           ac_config_commands="$ac_config_commands projects/sample/Makefile"
2011
2012
2013           ac_config_commands="$ac_config_commands projects/sample/Makefile.common"
2014
2015
2016           ac_config_commands="$ac_config_commands projects/sample/Makefile.config"
2017
2018
2019           ac_config_commands="$ac_config_commands projects/sample/lib/Makefile"
2020
2021
2022           ac_config_commands="$ac_config_commands projects/sample/lib/sample/Makefile"
2023
2024
2025           ac_config_commands="$ac_config_commands projects/sample/tools/Makefile"
2026
2027
2028           ac_config_commands="$ac_config_commands projects/sample/tools/sample/Makefile"
2029
2030
2031           ac_config_commands="$ac_config_commands projects/ModuleMaker/Makefile"
2032
2033
2034           ac_config_commands="$ac_config_commands projects/ModuleMaker/Makefile.common"
2035
2036
2037           ac_config_commands="$ac_config_commands projects/ModuleMaker/tools/Makefile"
2038
2039
2040           ac_config_commands="$ac_config_commands projects/ModuleMaker/tools/ModuleMaker/Makefile"
2041
2042
2043           ac_config_commands="$ac_config_commands support/Makefile"
2044
2045
2046           ac_config_commands="$ac_config_commands support/lib/Makefile"
2047
2048
2049           ac_config_commands="$ac_config_commands support/lib/Support/Makefile"
2050
2051
2052           ac_config_commands="$ac_config_commands support/tools/Makefile"
2053
2054
2055           ac_config_commands="$ac_config_commands support/tools/Burg/Makefile"
2056
2057
2058           ac_config_commands="$ac_config_commands support/tools/Burg/Doc/Makefile"
2059
2060
2061           ac_config_commands="$ac_config_commands support/tools/TableGen/Makefile"
2062
2063
2064
2065
2066 # Find a good install program.  We prefer a C program (faster),
2067 # so one script is as good as another.  But avoid the broken or
2068 # incompatible versions:
2069 # SysV /etc/install, /usr/sbin/install
2070 # SunOS /usr/etc/install
2071 # IRIX /sbin/install
2072 # AIX /bin/install
2073 # AmigaOS /C/install, which installs bootblocks on floppy discs
2074 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2075 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2076 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2077 # ./install, which can be erroneously created by make from ./install.sh.
2078 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2079 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
2080 if test -z "$INSTALL"; then
2081 if test "${ac_cv_path_install+set}" = set; then
2082   echo $ECHO_N "(cached) $ECHO_C" >&6
2083 else
2084   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2085 for as_dir in $PATH
2086 do
2087   IFS=$as_save_IFS
2088   test -z "$as_dir" && as_dir=.
2089   # Account for people who put trailing slashes in PATH elements.
2090 case $as_dir/ in
2091   ./ | .// | /cC/* | \
2092   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2093   /usr/ucb/* ) ;;
2094   *)
2095     # OSF1 and SCO ODT 3.0 have their own names for install.
2096     # Don't use installbsd from OSF since it installs stuff as root
2097     # by default.
2098     for ac_prog in ginstall scoinst install; do
2099       for ac_exec_ext in '' $ac_executable_extensions; do
2100         if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2101           if test $ac_prog = install &&
2102             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2103             # AIX install.  It has an incompatible calling convention.
2104             :
2105           elif test $ac_prog = install &&
2106             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2107             # program-specific install script used by HP pwplus--don't use.
2108             :
2109           else
2110             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2111             break 3
2112           fi
2113         fi
2114       done
2115     done
2116     ;;
2117 esac
2118 done
2119
2120
2121 fi
2122   if test "${ac_cv_path_install+set}" = set; then
2123     INSTALL=$ac_cv_path_install
2124   else
2125     # As a last resort, use the slow shell script.  We don't cache a
2126     # path for INSTALL within a source directory, because that will
2127     # break other packages using the cache if that directory is
2128     # removed, or if the path is relative.
2129     INSTALL=$ac_install_sh
2130   fi
2131 fi
2132 echo "$as_me:$LINENO: result: $INSTALL" >&5
2133 echo "${ECHO_T}$INSTALL" >&6
2134
2135 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2136 # It thinks the first close brace ends the variable substitution.
2137 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2138
2139 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2140
2141 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2142
2143
2144 # Make sure we can run config.sub.
2145 $ac_config_sub sun4 >/dev/null 2>&1 ||
2146   { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
2147 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
2148    { (exit 1); exit 1; }; }
2149
2150 echo "$as_me:$LINENO: checking build system type" >&5
2151 echo $ECHO_N "checking build system type... $ECHO_C" >&6
2152 if test "${ac_cv_build+set}" = set; then
2153   echo $ECHO_N "(cached) $ECHO_C" >&6
2154 else
2155   ac_cv_build_alias=$build_alias
2156 test -z "$ac_cv_build_alias" &&
2157   ac_cv_build_alias=`$ac_config_guess`
2158 test -z "$ac_cv_build_alias" &&
2159   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2160 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2161    { (exit 1); exit 1; }; }
2162 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
2163   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
2164 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
2165    { (exit 1); exit 1; }; }
2166
2167 fi
2168 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2169 echo "${ECHO_T}$ac_cv_build" >&6
2170 build=$ac_cv_build
2171 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
2172 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
2173 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
2174
2175
2176 echo "$as_me:$LINENO: checking host system type" >&5
2177 echo $ECHO_N "checking host system type... $ECHO_C" >&6
2178 if test "${ac_cv_host+set}" = set; then
2179   echo $ECHO_N "(cached) $ECHO_C" >&6
2180 else
2181   ac_cv_host_alias=$host_alias
2182 test -z "$ac_cv_host_alias" &&
2183   ac_cv_host_alias=$ac_cv_build_alias
2184 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
2185   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
2186 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
2187    { (exit 1); exit 1; }; }
2188
2189 fi
2190 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2191 echo "${ECHO_T}$ac_cv_host" >&6
2192 host=$ac_cv_host
2193 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
2194 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
2195 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
2196
2197
2198 echo "$as_me:$LINENO: checking target system type" >&5
2199 echo $ECHO_N "checking target system type... $ECHO_C" >&6
2200 if test "${ac_cv_target+set}" = set; then
2201   echo $ECHO_N "(cached) $ECHO_C" >&6
2202 else
2203   ac_cv_target_alias=$target_alias
2204 test "x$ac_cv_target_alias" = "x" &&
2205   ac_cv_target_alias=$ac_cv_host_alias
2206 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
2207   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
2208 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
2209    { (exit 1); exit 1; }; }
2210
2211 fi
2212 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
2213 echo "${ECHO_T}$ac_cv_target" >&6
2214 target=$ac_cv_target
2215 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
2216 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
2217 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
2218
2219
2220 # The aliases save the names the user supplied, while $host etc.
2221 # will get canonicalized.
2222 test -n "$target_alias" &&
2223   test "$program_prefix$program_suffix$program_transform_name" = \
2224     NONENONEs,x,x, &&
2225   program_prefix=${target_alias}-
2226
2227 case $build in
2228         *i*86*)  OS=Linux
2229
2230                  LLVMGCCDIR=/home/vadve/lattner/local/x86/llvm-gcc/
2231
2232                  ;;
2233
2234         *sparc*) OS=SunOS
2235
2236                  LLVMGCCDIR=/home/vadve/lattner/local/sparc/llvm-gcc/
2237
2238                  ;;
2239
2240         *)       OS=Unknown
2241
2242                  ;;
2243 esac
2244
2245 case $target in
2246         *sparc*solaris*)  target=sparcv9-sun-solaris2.8
2247
2248                           ;;
2249 esac
2250
2251 case $target in
2252         *i*86*)           ARCH=x86
2253
2254                           ;;
2255         *sparc*solaris*)  ARCH=Sparc
2256
2257                           ;;
2258 esac
2259
2260
2261 ac_ext=cc
2262 ac_cpp='$CXXCPP $CPPFLAGS'
2263 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2264 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2265 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2266 if test -n "$ac_tool_prefix"; then
2267   for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2268   do
2269     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2270 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2271 echo "$as_me:$LINENO: checking for $ac_word" >&5
2272 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2273 if test "${ac_cv_prog_CXX+set}" = set; then
2274   echo $ECHO_N "(cached) $ECHO_C" >&6
2275 else
2276   if test -n "$CXX"; then
2277   ac_cv_prog_CXX="$CXX" # Let the user override the test.
2278 else
2279 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2280 for as_dir in $PATH
2281 do
2282   IFS=$as_save_IFS
2283   test -z "$as_dir" && as_dir=.
2284   for ac_exec_ext in '' $ac_executable_extensions; do
2285   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2286     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2287     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2288     break 2
2289   fi
2290 done
2291 done
2292
2293 fi
2294 fi
2295 CXX=$ac_cv_prog_CXX
2296 if test -n "$CXX"; then
2297   echo "$as_me:$LINENO: result: $CXX" >&5
2298 echo "${ECHO_T}$CXX" >&6
2299 else
2300   echo "$as_me:$LINENO: result: no" >&5
2301 echo "${ECHO_T}no" >&6
2302 fi
2303
2304     test -n "$CXX" && break
2305   done
2306 fi
2307 if test -z "$CXX"; then
2308   ac_ct_CXX=$CXX
2309   for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2310 do
2311   # Extract the first word of "$ac_prog", so it can be a program name with args.
2312 set dummy $ac_prog; ac_word=$2
2313 echo "$as_me:$LINENO: checking for $ac_word" >&5
2314 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2315 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2316   echo $ECHO_N "(cached) $ECHO_C" >&6
2317 else
2318   if test -n "$ac_ct_CXX"; then
2319   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2320 else
2321 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2322 for as_dir in $PATH
2323 do
2324   IFS=$as_save_IFS
2325   test -z "$as_dir" && as_dir=.
2326   for ac_exec_ext in '' $ac_executable_extensions; do
2327   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2328     ac_cv_prog_ac_ct_CXX="$ac_prog"
2329     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2330     break 2
2331   fi
2332 done
2333 done
2334
2335 fi
2336 fi
2337 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2338 if test -n "$ac_ct_CXX"; then
2339   echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2340 echo "${ECHO_T}$ac_ct_CXX" >&6
2341 else
2342   echo "$as_me:$LINENO: result: no" >&5
2343 echo "${ECHO_T}no" >&6
2344 fi
2345
2346   test -n "$ac_ct_CXX" && break
2347 done
2348 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
2349
2350   CXX=$ac_ct_CXX
2351 fi
2352
2353
2354 # Provide some information about the compiler.
2355 echo "$as_me:$LINENO:" \
2356      "checking for C++ compiler version" >&5
2357 ac_compiler=`set X $ac_compile; echo $2`
2358 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2359   (eval $ac_compiler --version </dev/null >&5) 2>&5
2360   ac_status=$?
2361   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2362   (exit $ac_status); }
2363 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2364   (eval $ac_compiler -v </dev/null >&5) 2>&5
2365   ac_status=$?
2366   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2367   (exit $ac_status); }
2368 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2369   (eval $ac_compiler -V </dev/null >&5) 2>&5
2370   ac_status=$?
2371   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2372   (exit $ac_status); }
2373
2374 cat >conftest.$ac_ext <<_ACEOF
2375 #line $LINENO "configure"
2376 /* confdefs.h.  */
2377 _ACEOF
2378 cat confdefs.h >>conftest.$ac_ext
2379 cat >>conftest.$ac_ext <<_ACEOF
2380 /* end confdefs.h.  */
2381
2382 int
2383 main ()
2384 {
2385
2386   ;
2387   return 0;
2388 }
2389 _ACEOF
2390 ac_clean_files_save=$ac_clean_files
2391 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2392 # Try to create an executable without -o first, disregard a.out.
2393 # It will help us diagnose broken compilers, and finding out an intuition
2394 # of exeext.
2395 echo "$as_me:$LINENO: checking for C++ compiler default output" >&5
2396 echo $ECHO_N "checking for C++ compiler default output... $ECHO_C" >&6
2397 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2398 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2399   (eval $ac_link_default) 2>&5
2400   ac_status=$?
2401   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2402   (exit $ac_status); }; then
2403   # Find the output, starting from the most likely.  This scheme is
2404 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2405 # resort.
2406
2407 # Be careful to initialize this variable, since it used to be cached.
2408 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2409 ac_cv_exeext=
2410 # b.out is created by i960 compilers.
2411 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2412 do
2413   test -f "$ac_file" || continue
2414   case $ac_file in
2415     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2416         ;;
2417     conftest.$ac_ext )
2418         # This is the source file.
2419         ;;
2420     [ab].out )
2421         # We found the default executable, but exeext='' is most
2422         # certainly right.
2423         break;;
2424     *.* )
2425         ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2426         # FIXME: I believe we export ac_cv_exeext for Libtool,
2427         # but it would be cool to find out if it's true.  Does anybody
2428         # maintain Libtool? --akim.
2429         export ac_cv_exeext
2430         break;;
2431     * )
2432         break;;
2433   esac
2434 done
2435 else
2436   echo "$as_me: failed program was:" >&5
2437 sed 's/^/| /' conftest.$ac_ext >&5
2438
2439 { { echo "$as_me:$LINENO: error: C++ compiler cannot create executables
2440 See \`config.log' for more details." >&5
2441 echo "$as_me: error: C++ compiler cannot create executables
2442 See \`config.log' for more details." >&2;}
2443    { (exit 77); exit 77; }; }
2444 fi
2445
2446 ac_exeext=$ac_cv_exeext
2447 echo "$as_me:$LINENO: result: $ac_file" >&5
2448 echo "${ECHO_T}$ac_file" >&6
2449
2450 # Check the compiler produces executables we can run.  If not, either
2451 # the compiler is broken, or we cross compile.
2452 echo "$as_me:$LINENO: checking whether the C++ compiler works" >&5
2453 echo $ECHO_N "checking whether the C++ compiler works... $ECHO_C" >&6
2454 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2455 # If not cross compiling, check that we can run a simple program.
2456 if test "$cross_compiling" != yes; then
2457   if { ac_try='./$ac_file'
2458   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2459   (eval $ac_try) 2>&5
2460   ac_status=$?
2461   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2462   (exit $ac_status); }; }; then
2463     cross_compiling=no
2464   else
2465     if test "$cross_compiling" = maybe; then
2466         cross_compiling=yes
2467     else
2468         { { echo "$as_me:$LINENO: error: cannot run C++ compiled programs.
2469 If you meant to cross compile, use \`--host'.
2470 See \`config.log' for more details." >&5
2471 echo "$as_me: error: cannot run C++ compiled programs.
2472 If you meant to cross compile, use \`--host'.
2473 See \`config.log' for more details." >&2;}
2474    { (exit 1); exit 1; }; }
2475     fi
2476   fi
2477 fi
2478 echo "$as_me:$LINENO: result: yes" >&5
2479 echo "${ECHO_T}yes" >&6
2480
2481 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2482 ac_clean_files=$ac_clean_files_save
2483 # Check the compiler produces executables we can run.  If not, either
2484 # the compiler is broken, or we cross compile.
2485 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2486 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2487 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2488 echo "${ECHO_T}$cross_compiling" >&6
2489
2490 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2491 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2492 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2493   (eval $ac_link) 2>&5
2494   ac_status=$?
2495   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2496   (exit $ac_status); }; then
2497   # If both `conftest.exe' and `conftest' are `present' (well, observable)
2498 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2499 # work properly (i.e., refer to `conftest.exe'), while it won't with
2500 # `rm'.
2501 for ac_file in conftest.exe conftest conftest.*; do
2502   test -f "$ac_file" || continue
2503   case $ac_file in
2504     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2505     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2506           export ac_cv_exeext
2507           break;;
2508     * ) break;;
2509   esac
2510 done
2511 else
2512   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2513 See \`config.log' for more details." >&5
2514 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2515 See \`config.log' for more details." >&2;}
2516    { (exit 1); exit 1; }; }
2517 fi
2518
2519 rm -f conftest$ac_cv_exeext
2520 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2521 echo "${ECHO_T}$ac_cv_exeext" >&6
2522
2523 rm -f conftest.$ac_ext
2524 EXEEXT=$ac_cv_exeext
2525 ac_exeext=$EXEEXT
2526 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2527 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2528 if test "${ac_cv_objext+set}" = set; then
2529   echo $ECHO_N "(cached) $ECHO_C" >&6
2530 else
2531   cat >conftest.$ac_ext <<_ACEOF
2532 #line $LINENO "configure"
2533 /* confdefs.h.  */
2534 _ACEOF
2535 cat confdefs.h >>conftest.$ac_ext
2536 cat >>conftest.$ac_ext <<_ACEOF
2537 /* end confdefs.h.  */
2538
2539 int
2540 main ()
2541 {
2542
2543   ;
2544   return 0;
2545 }
2546 _ACEOF
2547 rm -f conftest.o conftest.obj
2548 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2549   (eval $ac_compile) 2>&5
2550   ac_status=$?
2551   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2552   (exit $ac_status); }; then
2553   for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2554   case $ac_file in
2555     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2556     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2557        break;;
2558   esac
2559 done
2560 else
2561   echo "$as_me: failed program was:" >&5
2562 sed 's/^/| /' conftest.$ac_ext >&5
2563
2564 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2565 See \`config.log' for more details." >&5
2566 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2567 See \`config.log' for more details." >&2;}
2568    { (exit 1); exit 1; }; }
2569 fi
2570
2571 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2572 fi
2573 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2574 echo "${ECHO_T}$ac_cv_objext" >&6
2575 OBJEXT=$ac_cv_objext
2576 ac_objext=$OBJEXT
2577 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2578 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
2579 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2580   echo $ECHO_N "(cached) $ECHO_C" >&6
2581 else
2582   cat >conftest.$ac_ext <<_ACEOF
2583 #line $LINENO "configure"
2584 /* confdefs.h.  */
2585 _ACEOF
2586 cat confdefs.h >>conftest.$ac_ext
2587 cat >>conftest.$ac_ext <<_ACEOF
2588 /* end confdefs.h.  */
2589
2590 int
2591 main ()
2592 {
2593 #ifndef __GNUC__
2594        choke me
2595 #endif
2596
2597   ;
2598   return 0;
2599 }
2600 _ACEOF
2601 rm -f conftest.$ac_objext
2602 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2603   (eval $ac_compile) 2>&5
2604   ac_status=$?
2605   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2606   (exit $ac_status); } &&
2607          { ac_try='test -s conftest.$ac_objext'
2608   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2609   (eval $ac_try) 2>&5
2610   ac_status=$?
2611   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2612   (exit $ac_status); }; }; then
2613   ac_compiler_gnu=yes
2614 else
2615   echo "$as_me: failed program was:" >&5
2616 sed 's/^/| /' conftest.$ac_ext >&5
2617
2618 ac_compiler_gnu=no
2619 fi
2620 rm -f conftest.$ac_objext conftest.$ac_ext
2621 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2622
2623 fi
2624 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
2625 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
2626 GXX=`test $ac_compiler_gnu = yes && echo yes`
2627 ac_test_CXXFLAGS=${CXXFLAGS+set}
2628 ac_save_CXXFLAGS=$CXXFLAGS
2629 CXXFLAGS="-g"
2630 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
2631 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
2632 if test "${ac_cv_prog_cxx_g+set}" = set; then
2633   echo $ECHO_N "(cached) $ECHO_C" >&6
2634 else
2635   cat >conftest.$ac_ext <<_ACEOF
2636 #line $LINENO "configure"
2637 /* confdefs.h.  */
2638 _ACEOF
2639 cat confdefs.h >>conftest.$ac_ext
2640 cat >>conftest.$ac_ext <<_ACEOF
2641 /* end confdefs.h.  */
2642
2643 int
2644 main ()
2645 {
2646
2647   ;
2648   return 0;
2649 }
2650 _ACEOF
2651 rm -f conftest.$ac_objext
2652 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2653   (eval $ac_compile) 2>&5
2654   ac_status=$?
2655   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2656   (exit $ac_status); } &&
2657          { ac_try='test -s conftest.$ac_objext'
2658   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2659   (eval $ac_try) 2>&5
2660   ac_status=$?
2661   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2662   (exit $ac_status); }; }; then
2663   ac_cv_prog_cxx_g=yes
2664 else
2665   echo "$as_me: failed program was:" >&5
2666 sed 's/^/| /' conftest.$ac_ext >&5
2667
2668 ac_cv_prog_cxx_g=no
2669 fi
2670 rm -f conftest.$ac_objext conftest.$ac_ext
2671 fi
2672 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
2673 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
2674 if test "$ac_test_CXXFLAGS" = set; then
2675   CXXFLAGS=$ac_save_CXXFLAGS
2676 elif test $ac_cv_prog_cxx_g = yes; then
2677   if test "$GXX" = yes; then
2678     CXXFLAGS="-g -O2"
2679   else
2680     CXXFLAGS="-g"
2681   fi
2682 else
2683   if test "$GXX" = yes; then
2684     CXXFLAGS="-O2"
2685   else
2686     CXXFLAGS=
2687   fi
2688 fi
2689 for ac_declaration in \
2690    ''\
2691    '#include <stdlib.h>' \
2692    'extern "C" void std::exit (int) throw (); using std::exit;' \
2693    'extern "C" void std::exit (int); using std::exit;' \
2694    'extern "C" void exit (int) throw ();' \
2695    'extern "C" void exit (int);' \
2696    'void exit (int);'
2697 do
2698   cat >conftest.$ac_ext <<_ACEOF
2699 #line $LINENO "configure"
2700 /* confdefs.h.  */
2701 _ACEOF
2702 cat confdefs.h >>conftest.$ac_ext
2703 cat >>conftest.$ac_ext <<_ACEOF
2704 /* end confdefs.h.  */
2705 #include <stdlib.h>
2706 $ac_declaration
2707 int
2708 main ()
2709 {
2710 exit (42);
2711   ;
2712   return 0;
2713 }
2714 _ACEOF
2715 rm -f conftest.$ac_objext
2716 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2717   (eval $ac_compile) 2>&5
2718   ac_status=$?
2719   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2720   (exit $ac_status); } &&
2721          { ac_try='test -s conftest.$ac_objext'
2722   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2723   (eval $ac_try) 2>&5
2724   ac_status=$?
2725   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2726   (exit $ac_status); }; }; then
2727   :
2728 else
2729   echo "$as_me: failed program was:" >&5
2730 sed 's/^/| /' conftest.$ac_ext >&5
2731
2732 continue
2733 fi
2734 rm -f conftest.$ac_objext conftest.$ac_ext
2735   cat >conftest.$ac_ext <<_ACEOF
2736 #line $LINENO "configure"
2737 /* confdefs.h.  */
2738 _ACEOF
2739 cat confdefs.h >>conftest.$ac_ext
2740 cat >>conftest.$ac_ext <<_ACEOF
2741 /* end confdefs.h.  */
2742 $ac_declaration
2743 int
2744 main ()
2745 {
2746 exit (42);
2747   ;
2748   return 0;
2749 }
2750 _ACEOF
2751 rm -f conftest.$ac_objext
2752 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2753   (eval $ac_compile) 2>&5
2754   ac_status=$?
2755   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2756   (exit $ac_status); } &&
2757          { ac_try='test -s conftest.$ac_objext'
2758   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2759   (eval $ac_try) 2>&5
2760   ac_status=$?
2761   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2762   (exit $ac_status); }; }; then
2763   break
2764 else
2765   echo "$as_me: failed program was:" >&5
2766 sed 's/^/| /' conftest.$ac_ext >&5
2767
2768 fi
2769 rm -f conftest.$ac_objext conftest.$ac_ext
2770 done
2771 rm -f conftest*
2772 if test -n "$ac_declaration"; then
2773   echo '#ifdef __cplusplus' >>confdefs.h
2774   echo $ac_declaration      >>confdefs.h
2775   echo '#endif'             >>confdefs.h
2776 fi
2777
2778 ac_ext=c
2779 ac_cpp='$CPP $CPPFLAGS'
2780 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2781 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2782 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2783
2784 ac_ext=c
2785 ac_cpp='$CPP $CPPFLAGS'
2786 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2787 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2788 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2789 if test -n "$ac_tool_prefix"; then
2790   for ac_prog in gcc
2791   do
2792     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2793 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2794 echo "$as_me:$LINENO: checking for $ac_word" >&5
2795 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2796 if test "${ac_cv_prog_CC+set}" = set; then
2797   echo $ECHO_N "(cached) $ECHO_C" >&6
2798 else
2799   if test -n "$CC"; then
2800   ac_cv_prog_CC="$CC" # Let the user override the test.
2801 else
2802 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2803 for as_dir in $PATH
2804 do
2805   IFS=$as_save_IFS
2806   test -z "$as_dir" && as_dir=.
2807   for ac_exec_ext in '' $ac_executable_extensions; do
2808   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2809     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2810     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2811     break 2
2812   fi
2813 done
2814 done
2815
2816 fi
2817 fi
2818 CC=$ac_cv_prog_CC
2819 if test -n "$CC"; then
2820   echo "$as_me:$LINENO: result: $CC" >&5
2821 echo "${ECHO_T}$CC" >&6
2822 else
2823   echo "$as_me:$LINENO: result: no" >&5
2824 echo "${ECHO_T}no" >&6
2825 fi
2826
2827     test -n "$CC" && break
2828   done
2829 fi
2830 if test -z "$CC"; then
2831   ac_ct_CC=$CC
2832   for ac_prog in gcc
2833 do
2834   # Extract the first word of "$ac_prog", so it can be a program name with args.
2835 set dummy $ac_prog; ac_word=$2
2836 echo "$as_me:$LINENO: checking for $ac_word" >&5
2837 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2838 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2839   echo $ECHO_N "(cached) $ECHO_C" >&6
2840 else
2841   if test -n "$ac_ct_CC"; then
2842   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2843 else
2844 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2845 for as_dir in $PATH
2846 do
2847   IFS=$as_save_IFS
2848   test -z "$as_dir" && as_dir=.
2849   for ac_exec_ext in '' $ac_executable_extensions; do
2850   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2851     ac_cv_prog_ac_ct_CC="$ac_prog"
2852     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2853     break 2
2854   fi
2855 done
2856 done
2857
2858 fi
2859 fi
2860 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2861 if test -n "$ac_ct_CC"; then
2862   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2863 echo "${ECHO_T}$ac_ct_CC" >&6
2864 else
2865   echo "$as_me:$LINENO: result: no" >&5
2866 echo "${ECHO_T}no" >&6
2867 fi
2868
2869   test -n "$ac_ct_CC" && break
2870 done
2871
2872   CC=$ac_ct_CC
2873 fi
2874
2875
2876 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2877 See \`config.log' for more details." >&5
2878 echo "$as_me: error: no acceptable C compiler found in \$PATH
2879 See \`config.log' for more details." >&2;}
2880    { (exit 1); exit 1; }; }
2881
2882 # Provide some information about the compiler.
2883 echo "$as_me:$LINENO:" \
2884      "checking for C compiler version" >&5
2885 ac_compiler=`set X $ac_compile; echo $2`
2886 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2887   (eval $ac_compiler --version </dev/null >&5) 2>&5
2888   ac_status=$?
2889   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2890   (exit $ac_status); }
2891 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2892   (eval $ac_compiler -v </dev/null >&5) 2>&5
2893   ac_status=$?
2894   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2895   (exit $ac_status); }
2896 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2897   (eval $ac_compiler -V </dev/null >&5) 2>&5
2898   ac_status=$?
2899   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2900   (exit $ac_status); }
2901
2902 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2903 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2904 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2905   echo $ECHO_N "(cached) $ECHO_C" >&6
2906 else
2907   cat >conftest.$ac_ext <<_ACEOF
2908 #line $LINENO "configure"
2909 /* confdefs.h.  */
2910 _ACEOF
2911 cat confdefs.h >>conftest.$ac_ext
2912 cat >>conftest.$ac_ext <<_ACEOF
2913 /* end confdefs.h.  */
2914
2915 int
2916 main ()
2917 {
2918 #ifndef __GNUC__
2919        choke me
2920 #endif
2921
2922   ;
2923   return 0;
2924 }
2925 _ACEOF
2926 rm -f conftest.$ac_objext
2927 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2928   (eval $ac_compile) 2>&5
2929   ac_status=$?
2930   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2931   (exit $ac_status); } &&
2932          { ac_try='test -s conftest.$ac_objext'
2933   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2934   (eval $ac_try) 2>&5
2935   ac_status=$?
2936   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2937   (exit $ac_status); }; }; then
2938   ac_compiler_gnu=yes
2939 else
2940   echo "$as_me: failed program was:" >&5
2941 sed 's/^/| /' conftest.$ac_ext >&5
2942
2943 ac_compiler_gnu=no
2944 fi
2945 rm -f conftest.$ac_objext conftest.$ac_ext
2946 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2947
2948 fi
2949 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2950 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2951 GCC=`test $ac_compiler_gnu = yes && echo yes`
2952 ac_test_CFLAGS=${CFLAGS+set}
2953 ac_save_CFLAGS=$CFLAGS
2954 CFLAGS="-g"
2955 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2956 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2957 if test "${ac_cv_prog_cc_g+set}" = set; then
2958   echo $ECHO_N "(cached) $ECHO_C" >&6
2959 else
2960   cat >conftest.$ac_ext <<_ACEOF
2961 #line $LINENO "configure"
2962 /* confdefs.h.  */
2963 _ACEOF
2964 cat confdefs.h >>conftest.$ac_ext
2965 cat >>conftest.$ac_ext <<_ACEOF
2966 /* end confdefs.h.  */
2967
2968 int
2969 main ()
2970 {
2971
2972   ;
2973   return 0;
2974 }
2975 _ACEOF
2976 rm -f conftest.$ac_objext
2977 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2978   (eval $ac_compile) 2>&5
2979   ac_status=$?
2980   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2981   (exit $ac_status); } &&
2982          { ac_try='test -s conftest.$ac_objext'
2983   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2984   (eval $ac_try) 2>&5
2985   ac_status=$?
2986   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2987   (exit $ac_status); }; }; then
2988   ac_cv_prog_cc_g=yes
2989 else
2990   echo "$as_me: failed program was:" >&5
2991 sed 's/^/| /' conftest.$ac_ext >&5
2992
2993 ac_cv_prog_cc_g=no
2994 fi
2995 rm -f conftest.$ac_objext conftest.$ac_ext
2996 fi
2997 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2998 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2999 if test "$ac_test_CFLAGS" = set; then
3000   CFLAGS=$ac_save_CFLAGS
3001 elif test $ac_cv_prog_cc_g = yes; then
3002   if test "$GCC" = yes; then
3003     CFLAGS="-g -O2"
3004   else
3005     CFLAGS="-g"
3006   fi
3007 else
3008   if test "$GCC" = yes; then
3009     CFLAGS="-O2"
3010   else
3011     CFLAGS=
3012   fi
3013 fi
3014 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
3015 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
3016 if test "${ac_cv_prog_cc_stdc+set}" = set; then
3017   echo $ECHO_N "(cached) $ECHO_C" >&6
3018 else
3019   ac_cv_prog_cc_stdc=no
3020 ac_save_CC=$CC
3021 cat >conftest.$ac_ext <<_ACEOF
3022 #line $LINENO "configure"
3023 /* confdefs.h.  */
3024 _ACEOF
3025 cat confdefs.h >>conftest.$ac_ext
3026 cat >>conftest.$ac_ext <<_ACEOF
3027 /* end confdefs.h.  */
3028 #include <stdarg.h>
3029 #include <stdio.h>
3030 #include <sys/types.h>
3031 #include <sys/stat.h>
3032 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3033 struct buf { int x; };
3034 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3035 static char *e (p, i)
3036      char **p;
3037      int i;
3038 {
3039   return p[i];
3040 }
3041 static char *f (char * (*g) (char **, int), char **p, ...)
3042 {
3043   char *s;
3044   va_list v;
3045   va_start (v,p);
3046   s = g (p, va_arg (v,int));
3047   va_end (v);
3048   return s;
3049 }
3050 int test (int i, double x);
3051 struct s1 {int (*f) (int a);};
3052 struct s2 {int (*f) (double a);};
3053 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3054 int argc;
3055 char **argv;
3056 int
3057 main ()
3058 {
3059 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3060   ;
3061   return 0;
3062 }
3063 _ACEOF
3064 # Don't try gcc -ansi; that turns off useful extensions and
3065 # breaks some systems' header files.
3066 # AIX                   -qlanglvl=ansi
3067 # Ultrix and OSF/1      -std1
3068 # HP-UX 10.20 and later -Ae
3069 # HP-UX older versions  -Aa -D_HPUX_SOURCE
3070 # SVR4                  -Xc -D__EXTENSIONS__
3071 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3072 do
3073   CC="$ac_save_CC $ac_arg"
3074   rm -f conftest.$ac_objext
3075 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3076   (eval $ac_compile) 2>&5
3077   ac_status=$?
3078   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3079   (exit $ac_status); } &&
3080          { ac_try='test -s conftest.$ac_objext'
3081   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3082   (eval $ac_try) 2>&5
3083   ac_status=$?
3084   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3085   (exit $ac_status); }; }; then
3086   ac_cv_prog_cc_stdc=$ac_arg
3087 break
3088 else
3089   echo "$as_me: failed program was:" >&5
3090 sed 's/^/| /' conftest.$ac_ext >&5
3091
3092 fi
3093 rm -f conftest.$ac_objext
3094 done
3095 rm -f conftest.$ac_ext conftest.$ac_objext
3096 CC=$ac_save_CC
3097
3098 fi
3099
3100 case "x$ac_cv_prog_cc_stdc" in
3101   x|xno)
3102     echo "$as_me:$LINENO: result: none needed" >&5
3103 echo "${ECHO_T}none needed" >&6 ;;
3104   *)
3105     echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
3106 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
3107     CC="$CC $ac_cv_prog_cc_stdc" ;;
3108 esac
3109
3110 # Some people use a C++ compiler to compile C.  Since we use `exit',
3111 # in C++ we need to declare it.  In case someone uses the same compiler
3112 # for both compiling C and C++ we need to have the C++ compiler decide
3113 # the declaration of exit, since it's the most demanding environment.
3114 cat >conftest.$ac_ext <<_ACEOF
3115 #ifndef __cplusplus
3116   choke me
3117 #endif
3118 _ACEOF
3119 rm -f conftest.$ac_objext
3120 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3121   (eval $ac_compile) 2>&5
3122   ac_status=$?
3123   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3124   (exit $ac_status); } &&
3125          { ac_try='test -s conftest.$ac_objext'
3126   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3127   (eval $ac_try) 2>&5
3128   ac_status=$?
3129   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3130   (exit $ac_status); }; }; then
3131   for ac_declaration in \
3132    ''\
3133    '#include <stdlib.h>' \
3134    'extern "C" void std::exit (int) throw (); using std::exit;' \
3135    'extern "C" void std::exit (int); using std::exit;' \
3136    'extern "C" void exit (int) throw ();' \
3137    'extern "C" void exit (int);' \
3138    'void exit (int);'
3139 do
3140   cat >conftest.$ac_ext <<_ACEOF
3141 #line $LINENO "configure"
3142 /* confdefs.h.  */
3143 _ACEOF
3144 cat confdefs.h >>conftest.$ac_ext
3145 cat >>conftest.$ac_ext <<_ACEOF
3146 /* end confdefs.h.  */
3147 #include <stdlib.h>
3148 $ac_declaration
3149 int
3150 main ()
3151 {
3152 exit (42);
3153   ;
3154   return 0;
3155 }
3156 _ACEOF
3157 rm -f conftest.$ac_objext
3158 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3159   (eval $ac_compile) 2>&5
3160   ac_status=$?
3161   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3162   (exit $ac_status); } &&
3163          { ac_try='test -s conftest.$ac_objext'
3164   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3165   (eval $ac_try) 2>&5
3166   ac_status=$?
3167   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3168   (exit $ac_status); }; }; then
3169   :
3170 else
3171   echo "$as_me: failed program was:" >&5
3172 sed 's/^/| /' conftest.$ac_ext >&5
3173
3174 continue
3175 fi
3176 rm -f conftest.$ac_objext conftest.$ac_ext
3177   cat >conftest.$ac_ext <<_ACEOF
3178 #line $LINENO "configure"
3179 /* confdefs.h.  */
3180 _ACEOF
3181 cat confdefs.h >>conftest.$ac_ext
3182 cat >>conftest.$ac_ext <<_ACEOF
3183 /* end confdefs.h.  */
3184 $ac_declaration
3185 int
3186 main ()
3187 {
3188 exit (42);
3189   ;
3190   return 0;
3191 }
3192 _ACEOF
3193 rm -f conftest.$ac_objext
3194 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3195   (eval $ac_compile) 2>&5
3196   ac_status=$?
3197   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3198   (exit $ac_status); } &&
3199          { ac_try='test -s conftest.$ac_objext'
3200   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3201   (eval $ac_try) 2>&5
3202   ac_status=$?
3203   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3204   (exit $ac_status); }; }; then
3205   break
3206 else
3207   echo "$as_me: failed program was:" >&5
3208 sed 's/^/| /' conftest.$ac_ext >&5
3209
3210 fi
3211 rm -f conftest.$ac_objext conftest.$ac_ext
3212 done
3213 rm -f conftest*
3214 if test -n "$ac_declaration"; then
3215   echo '#ifdef __cplusplus' >>confdefs.h
3216   echo $ac_declaration      >>confdefs.h
3217   echo '#endif'             >>confdefs.h
3218 fi
3219
3220 else
3221   echo "$as_me: failed program was:" >&5
3222 sed 's/^/| /' conftest.$ac_ext >&5
3223
3224 fi
3225 rm -f conftest.$ac_objext conftest.$ac_ext
3226 ac_ext=c
3227 ac_cpp='$CPP $CPPFLAGS'
3228 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3229 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3230 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3231
3232 ac_ext=c
3233 ac_cpp='$CPP $CPPFLAGS'
3234 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3235 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3236 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3237 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3238 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3239 # On Suns, sometimes $CPP names a directory.
3240 if test -n "$CPP" && test -d "$CPP"; then
3241   CPP=
3242 fi
3243 if test -z "$CPP"; then
3244   if test "${ac_cv_prog_CPP+set}" = set; then
3245   echo $ECHO_N "(cached) $ECHO_C" >&6
3246 else
3247       # Double quotes because CPP needs to be expanded
3248     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3249     do
3250       ac_preproc_ok=false
3251 for ac_c_preproc_warn_flag in '' yes
3252 do
3253   # Use a header file that comes with gcc, so configuring glibc
3254   # with a fresh cross-compiler works.
3255   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3256   # <limits.h> exists even on freestanding compilers.
3257   # On the NeXT, cc -E runs the code through the compiler's parser,
3258   # not just through cpp. "Syntax error" is here to catch this case.
3259   cat >conftest.$ac_ext <<_ACEOF
3260 #line $LINENO "configure"
3261 /* confdefs.h.  */
3262 _ACEOF
3263 cat confdefs.h >>conftest.$ac_ext
3264 cat >>conftest.$ac_ext <<_ACEOF
3265 /* end confdefs.h.  */
3266 #ifdef __STDC__
3267 # include <limits.h>
3268 #else
3269 # include <assert.h>
3270 #endif
3271                      Syntax error
3272 _ACEOF
3273 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3274   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3275   ac_status=$?
3276   grep -v '^ *+' conftest.er1 >conftest.err
3277   rm -f conftest.er1
3278   cat conftest.err >&5
3279   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3280   (exit $ac_status); } >/dev/null; then
3281   if test -s conftest.err; then
3282     ac_cpp_err=$ac_c_preproc_warn_flag
3283   else
3284     ac_cpp_err=
3285   fi
3286 else
3287   ac_cpp_err=yes
3288 fi
3289 if test -z "$ac_cpp_err"; then
3290   :
3291 else
3292   echo "$as_me: failed program was:" >&5
3293 sed 's/^/| /' conftest.$ac_ext >&5
3294
3295   # Broken: fails on valid input.
3296 continue
3297 fi
3298 rm -f conftest.err conftest.$ac_ext
3299
3300   # OK, works on sane cases.  Now check whether non-existent headers
3301   # can be detected and how.
3302   cat >conftest.$ac_ext <<_ACEOF
3303 #line $LINENO "configure"
3304 /* confdefs.h.  */
3305 _ACEOF
3306 cat confdefs.h >>conftest.$ac_ext
3307 cat >>conftest.$ac_ext <<_ACEOF
3308 /* end confdefs.h.  */
3309 #include <ac_nonexistent.h>
3310 _ACEOF
3311 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3312   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3313   ac_status=$?
3314   grep -v '^ *+' conftest.er1 >conftest.err
3315   rm -f conftest.er1
3316   cat conftest.err >&5
3317   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3318   (exit $ac_status); } >/dev/null; then
3319   if test -s conftest.err; then
3320     ac_cpp_err=$ac_c_preproc_warn_flag
3321   else
3322     ac_cpp_err=
3323   fi
3324 else
3325   ac_cpp_err=yes
3326 fi
3327 if test -z "$ac_cpp_err"; then
3328   # Broken: success on invalid input.
3329 continue
3330 else
3331   echo "$as_me: failed program was:" >&5
3332 sed 's/^/| /' conftest.$ac_ext >&5
3333
3334   # Passes both tests.
3335 ac_preproc_ok=:
3336 break
3337 fi
3338 rm -f conftest.err conftest.$ac_ext
3339
3340 done
3341 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3342 rm -f conftest.err conftest.$ac_ext
3343 if $ac_preproc_ok; then
3344   break
3345 fi
3346
3347     done
3348     ac_cv_prog_CPP=$CPP
3349
3350 fi
3351   CPP=$ac_cv_prog_CPP
3352 else
3353   ac_cv_prog_CPP=$CPP
3354 fi
3355 echo "$as_me:$LINENO: result: $CPP" >&5
3356 echo "${ECHO_T}$CPP" >&6
3357 ac_preproc_ok=false
3358 for ac_c_preproc_warn_flag in '' yes
3359 do
3360   # Use a header file that comes with gcc, so configuring glibc
3361   # with a fresh cross-compiler works.
3362   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3363   # <limits.h> exists even on freestanding compilers.
3364   # On the NeXT, cc -E runs the code through the compiler's parser,
3365   # not just through cpp. "Syntax error" is here to catch this case.
3366   cat >conftest.$ac_ext <<_ACEOF
3367 #line $LINENO "configure"
3368 /* confdefs.h.  */
3369 _ACEOF
3370 cat confdefs.h >>conftest.$ac_ext
3371 cat >>conftest.$ac_ext <<_ACEOF
3372 /* end confdefs.h.  */
3373 #ifdef __STDC__
3374 # include <limits.h>
3375 #else
3376 # include <assert.h>
3377 #endif
3378                      Syntax error
3379 _ACEOF
3380 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3381   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3382   ac_status=$?
3383   grep -v '^ *+' conftest.er1 >conftest.err
3384   rm -f conftest.er1
3385   cat conftest.err >&5
3386   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3387   (exit $ac_status); } >/dev/null; then
3388   if test -s conftest.err; then
3389     ac_cpp_err=$ac_c_preproc_warn_flag
3390   else
3391     ac_cpp_err=
3392   fi
3393 else
3394   ac_cpp_err=yes
3395 fi
3396 if test -z "$ac_cpp_err"; then
3397   :
3398 else
3399   echo "$as_me: failed program was:" >&5
3400 sed 's/^/| /' conftest.$ac_ext >&5
3401
3402   # Broken: fails on valid input.
3403 continue
3404 fi
3405 rm -f conftest.err conftest.$ac_ext
3406
3407   # OK, works on sane cases.  Now check whether non-existent headers
3408   # can be detected and how.
3409   cat >conftest.$ac_ext <<_ACEOF
3410 #line $LINENO "configure"
3411 /* confdefs.h.  */
3412 _ACEOF
3413 cat confdefs.h >>conftest.$ac_ext
3414 cat >>conftest.$ac_ext <<_ACEOF
3415 /* end confdefs.h.  */
3416 #include <ac_nonexistent.h>
3417 _ACEOF
3418 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3419   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3420   ac_status=$?
3421   grep -v '^ *+' conftest.er1 >conftest.err
3422   rm -f conftest.er1
3423   cat conftest.err >&5
3424   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3425   (exit $ac_status); } >/dev/null; then
3426   if test -s conftest.err; then
3427     ac_cpp_err=$ac_c_preproc_warn_flag
3428   else
3429     ac_cpp_err=
3430   fi
3431 else
3432   ac_cpp_err=yes
3433 fi
3434 if test -z "$ac_cpp_err"; then
3435   # Broken: success on invalid input.
3436 continue
3437 else
3438   echo "$as_me: failed program was:" >&5
3439 sed 's/^/| /' conftest.$ac_ext >&5
3440
3441   # Passes both tests.
3442 ac_preproc_ok=:
3443 break
3444 fi
3445 rm -f conftest.err conftest.$ac_ext
3446
3447 done
3448 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3449 rm -f conftest.err conftest.$ac_ext
3450 if $ac_preproc_ok; then
3451   :
3452 else
3453   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3454 See \`config.log' for more details." >&5
3455 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3456 See \`config.log' for more details." >&2;}
3457    { (exit 1); exit 1; }; }
3458 fi
3459
3460 ac_ext=c
3461 ac_cpp='$CPP $CPPFLAGS'
3462 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3463 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3464 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3465
3466
3467 if test "$GCC" != "yes"
3468 then
3469         { { echo "$as_me:$LINENO: error: gcc required but not found" >&5
3470 echo "$as_me: error: gcc required but not found" >&2;}
3471    { (exit 1); exit 1; }; }
3472 fi
3473
3474 if test "$GXX" != "yes"
3475 then
3476         { { echo "$as_me:$LINENO: error: g++ required but not found" >&5
3477 echo "$as_me: error: g++ required but not found" >&2;}
3478    { (exit 1); exit 1; }; }
3479 fi
3480
3481 gccmajor=`$CC --version | head -n 1 | awk '{print $NF;}' | cut -d. -f1`
3482 if test "$gccmajor" -lt "3"
3483 then
3484         { { echo "$as_me:$LINENO: error: gcc 3.x required" >&5
3485 echo "$as_me: error: gcc 3.x required" >&2;}
3486    { (exit 1); exit 1; }; }
3487 fi
3488
3489  echo "$as_me:$LINENO: checking for GNU make" >&5
3490 echo $ECHO_N "checking for GNU make... $ECHO_C" >&6
3491 if test "${_cv_gnu_make_command+set}" = set; then
3492   echo $ECHO_N "(cached) $ECHO_C" >&6
3493 else
3494   _cv_gnu_make_command='' ;
3495                 for a in "$MAKE" make gmake gnumake ; do
3496                         if test -z "$a" ; then continue ; fi ;
3497                         if  ( sh -c "$a --version" 2> /dev/null | grep GNU  2>&1 > /dev/null ) ;  then
3498                                 _cv_gnu_make_command=$a ;
3499                                 break;
3500                         fi
3501                 done ;
3502
3503 fi
3504 echo "$as_me:$LINENO: result: $_cv_gnu_make_command" >&5
3505 echo "${ECHO_T}$_cv_gnu_make_command" >&6 ;
3506         if test  "x$_cv_gnu_make_command" != "x"  ; then
3507                 ifGNUmake='' ;
3508         else
3509                 ifGNUmake='#' ;
3510                 echo "$as_me:$LINENO: result: \"Not found\"" >&5
3511 echo "${ECHO_T}\"Not found\"" >&6;
3512         fi
3513
3514
3515 if test -z "$_cv_gnu_make_command"
3516 then
3517         { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5
3518 echo "$as_me: error: GNU Make required but not found" >&2;}
3519    { (exit 1); exit 1; }; }
3520 fi
3521
3522
3523 echo "$as_me:$LINENO: checking " >&5
3524 echo $ECHO_N "checking ... $ECHO_C" >&6
3525 if test "${ac_cv_has_flex+set}" = set; then
3526   echo $ECHO_N "(cached) $ECHO_C" >&6
3527 else
3528   for ac_prog in flex lex
3529 do
3530   # Extract the first word of "$ac_prog", so it can be a program name with args.
3531 set dummy $ac_prog; ac_word=$2
3532 echo "$as_me:$LINENO: checking for $ac_word" >&5
3533 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3534 if test "${ac_cv_prog_LEX+set}" = set; then
3535   echo $ECHO_N "(cached) $ECHO_C" >&6
3536 else
3537   if test -n "$LEX"; then
3538   ac_cv_prog_LEX="$LEX" # Let the user override the test.
3539 else
3540 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3541 for as_dir in $PATH
3542 do
3543   IFS=$as_save_IFS
3544   test -z "$as_dir" && as_dir=.
3545   for ac_exec_ext in '' $ac_executable_extensions; do
3546   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3547     ac_cv_prog_LEX="$ac_prog"
3548     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3549     break 2
3550   fi
3551 done
3552 done
3553
3554 fi
3555 fi
3556 LEX=$ac_cv_prog_LEX
3557 if test -n "$LEX"; then
3558   echo "$as_me:$LINENO: result: $LEX" >&5
3559 echo "${ECHO_T}$LEX" >&6
3560 else
3561   echo "$as_me:$LINENO: result: no" >&5
3562 echo "${ECHO_T}no" >&6
3563 fi
3564
3565   test -n "$LEX" && break
3566 done
3567 test -n "$LEX" || LEX=":"
3568
3569 if test -z "$LEXLIB"
3570 then
3571   echo "$as_me:$LINENO: checking for yywrap in -lfl" >&5
3572 echo $ECHO_N "checking for yywrap in -lfl... $ECHO_C" >&6
3573 if test "${ac_cv_lib_fl_yywrap+set}" = set; then
3574   echo $ECHO_N "(cached) $ECHO_C" >&6
3575 else
3576   ac_check_lib_save_LIBS=$LIBS
3577 LIBS="-lfl  $LIBS"
3578 cat >conftest.$ac_ext <<_ACEOF
3579 #line $LINENO "configure"
3580 /* confdefs.h.  */
3581 _ACEOF
3582 cat confdefs.h >>conftest.$ac_ext
3583 cat >>conftest.$ac_ext <<_ACEOF
3584 /* end confdefs.h.  */
3585
3586 /* Override any gcc2 internal prototype to avoid an error.  */
3587 #ifdef __cplusplus
3588 extern "C"
3589 #endif
3590 /* We use char because int might match the return type of a gcc2
3591    builtin and then its argument prototype would still apply.  */
3592 char yywrap ();
3593 int
3594 main ()
3595 {
3596 yywrap ();
3597   ;
3598   return 0;
3599 }
3600 _ACEOF
3601 rm -f conftest.$ac_objext conftest$ac_exeext
3602 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3603   (eval $ac_link) 2>&5
3604   ac_status=$?
3605   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3606   (exit $ac_status); } &&
3607          { ac_try='test -s conftest$ac_exeext'
3608   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3609   (eval $ac_try) 2>&5
3610   ac_status=$?
3611   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3612   (exit $ac_status); }; }; then
3613   ac_cv_lib_fl_yywrap=yes
3614 else
3615   echo "$as_me: failed program was:" >&5
3616 sed 's/^/| /' conftest.$ac_ext >&5
3617
3618 ac_cv_lib_fl_yywrap=no
3619 fi
3620 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3621 LIBS=$ac_check_lib_save_LIBS
3622 fi
3623 echo "$as_me:$LINENO: result: $ac_cv_lib_fl_yywrap" >&5
3624 echo "${ECHO_T}$ac_cv_lib_fl_yywrap" >&6
3625 if test $ac_cv_lib_fl_yywrap = yes; then
3626   LEXLIB="-lfl"
3627 else
3628   echo "$as_me:$LINENO: checking for yywrap in -ll" >&5
3629 echo $ECHO_N "checking for yywrap in -ll... $ECHO_C" >&6
3630 if test "${ac_cv_lib_l_yywrap+set}" = set; then
3631   echo $ECHO_N "(cached) $ECHO_C" >&6
3632 else
3633   ac_check_lib_save_LIBS=$LIBS
3634 LIBS="-ll  $LIBS"
3635 cat >conftest.$ac_ext <<_ACEOF
3636 #line $LINENO "configure"
3637 /* confdefs.h.  */
3638 _ACEOF
3639 cat confdefs.h >>conftest.$ac_ext
3640 cat >>conftest.$ac_ext <<_ACEOF
3641 /* end confdefs.h.  */
3642
3643 /* Override any gcc2 internal prototype to avoid an error.  */
3644 #ifdef __cplusplus
3645 extern "C"
3646 #endif
3647 /* We use char because int might match the return type of a gcc2
3648    builtin and then its argument prototype would still apply.  */
3649 char yywrap ();
3650 int
3651 main ()
3652 {
3653 yywrap ();
3654   ;
3655   return 0;
3656 }
3657 _ACEOF
3658 rm -f conftest.$ac_objext conftest$ac_exeext
3659 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3660   (eval $ac_link) 2>&5
3661   ac_status=$?
3662   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3663   (exit $ac_status); } &&
3664          { ac_try='test -s conftest$ac_exeext'
3665   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3666   (eval $ac_try) 2>&5
3667   ac_status=$?
3668   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3669   (exit $ac_status); }; }; then
3670   ac_cv_lib_l_yywrap=yes
3671 else
3672   echo "$as_me: failed program was:" >&5
3673 sed 's/^/| /' conftest.$ac_ext >&5
3674
3675 ac_cv_lib_l_yywrap=no
3676 fi
3677 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3678 LIBS=$ac_check_lib_save_LIBS
3679 fi
3680 echo "$as_me:$LINENO: result: $ac_cv_lib_l_yywrap" >&5
3681 echo "${ECHO_T}$ac_cv_lib_l_yywrap" >&6
3682 if test $ac_cv_lib_l_yywrap = yes; then
3683   LEXLIB="-ll"
3684 fi
3685
3686 fi
3687
3688 fi
3689
3690 if test "x$LEX" != "x:"; then
3691   echo "$as_me:$LINENO: checking lex output file root" >&5
3692 echo $ECHO_N "checking lex output file root... $ECHO_C" >&6
3693 if test "${ac_cv_prog_lex_root+set}" = set; then
3694   echo $ECHO_N "(cached) $ECHO_C" >&6
3695 else
3696   # The minimal lex program is just a single line: %%.  But some broken lexes
3697 # (Solaris, I think it was) want two %% lines, so accommodate them.
3698 cat >conftest.l <<_ACEOF
3699 %%
3700 %%
3701 _ACEOF
3702 { (eval echo "$as_me:$LINENO: \"$LEX conftest.l\"") >&5
3703   (eval $LEX conftest.l) 2>&5
3704   ac_status=$?
3705   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3706   (exit $ac_status); }
3707 if test -f lex.yy.c; then
3708   ac_cv_prog_lex_root=lex.yy
3709 elif test -f lexyy.c; then
3710   ac_cv_prog_lex_root=lexyy
3711 else
3712   { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5
3713 echo "$as_me: error: cannot find output from $LEX; giving up" >&2;}
3714    { (exit 1); exit 1; }; }
3715 fi
3716 fi
3717 echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5
3718 echo "${ECHO_T}$ac_cv_prog_lex_root" >&6
3719 rm -f conftest.l
3720 LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
3721
3722 echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5
3723 echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6
3724 if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then
3725   echo $ECHO_N "(cached) $ECHO_C" >&6
3726 else
3727   # POSIX says lex can declare yytext either as a pointer or an array; the
3728 # default is implementation-dependent. Figure out which it is, since
3729 # not all implementations provide the %pointer and %array declarations.
3730 ac_cv_prog_lex_yytext_pointer=no
3731 echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c
3732 ac_save_LIBS=$LIBS
3733 LIBS="$LIBS $LEXLIB"
3734 cat >conftest.$ac_ext <<_ACEOF
3735 `cat $LEX_OUTPUT_ROOT.c`
3736 _ACEOF
3737 rm -f conftest.$ac_objext conftest$ac_exeext
3738 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3739   (eval $ac_link) 2>&5
3740   ac_status=$?
3741   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3742   (exit $ac_status); } &&
3743          { ac_try='test -s conftest$ac_exeext'
3744   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3745   (eval $ac_try) 2>&5
3746   ac_status=$?
3747   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3748   (exit $ac_status); }; }; then
3749   ac_cv_prog_lex_yytext_pointer=yes
3750 else
3751   echo "$as_me: failed program was:" >&5
3752 sed 's/^/| /' conftest.$ac_ext >&5
3753
3754 fi
3755 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3756 LIBS=$ac_save_LIBS
3757 rm -f "${LEX_OUTPUT_ROOT}.c"
3758
3759 fi
3760 echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5
3761 echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6
3762 if test $ac_cv_prog_lex_yytext_pointer = yes; then
3763
3764 cat >>confdefs.h <<\_ACEOF
3765 #define YYTEXT_POINTER 1
3766 _ACEOF
3767
3768 fi
3769
3770 fi
3771
3772 fi
3773 echo "$as_me:$LINENO: result: $ac_cv_has_flex" >&5
3774 echo "${ECHO_T}$ac_cv_has_flex" >&6
3775 if test "$LEX" != "flex"; then
3776   { { echo "$as_me:$LINENO: error: flex not found but required" >&5
3777 echo "$as_me: error: flex not found but required" >&2;}
3778    { (exit 1); exit 1; }; }
3779 fi
3780
3781 echo "$as_me:$LINENO: checking " >&5
3782 echo $ECHO_N "checking ... $ECHO_C" >&6
3783 if test "${ac_cv_has_bison+set}" = set; then
3784   echo $ECHO_N "(cached) $ECHO_C" >&6
3785 else
3786   for ac_prog in 'bison -y' byacc
3787 do
3788   # Extract the first word of "$ac_prog", so it can be a program name with args.
3789 set dummy $ac_prog; ac_word=$2
3790 echo "$as_me:$LINENO: checking for $ac_word" >&5
3791 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3792 if test "${ac_cv_prog_YACC+set}" = set; then
3793   echo $ECHO_N "(cached) $ECHO_C" >&6
3794 else
3795   if test -n "$YACC"; then
3796   ac_cv_prog_YACC="$YACC" # Let the user override the test.
3797 else
3798 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3799 for as_dir in $PATH
3800 do
3801   IFS=$as_save_IFS
3802   test -z "$as_dir" && as_dir=.
3803   for ac_exec_ext in '' $ac_executable_extensions; do
3804   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3805     ac_cv_prog_YACC="$ac_prog"
3806     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3807     break 2
3808   fi
3809 done
3810 done
3811
3812 fi
3813 fi
3814 YACC=$ac_cv_prog_YACC
3815 if test -n "$YACC"; then
3816   echo "$as_me:$LINENO: result: $YACC" >&5
3817 echo "${ECHO_T}$YACC" >&6
3818 else
3819   echo "$as_me:$LINENO: result: no" >&5
3820 echo "${ECHO_T}no" >&6
3821 fi
3822
3823   test -n "$YACC" && break
3824 done
3825 test -n "$YACC" || YACC="yacc"
3826
3827
3828 fi
3829 echo "$as_me:$LINENO: result: $ac_cv_has_bison" >&5
3830 echo "${ECHO_T}$ac_cv_has_bison" >&6
3831 if test "$YACC" != "bison -y"; then
3832   { { echo "$as_me:$LINENO: error: bison not found but required" >&5
3833 echo "$as_me: error: bison not found but required" >&2;}
3834    { (exit 1); exit 1; }; }
3835 else
3836   YACC=bison
3837
3838 fi
3839
3840
3841 # Check whether --enable-shared or --disable-shared was given.
3842 if test "${enable_shared+set}" = set; then
3843   enableval="$enable_shared"
3844   p=${PACKAGE-default}
3845     case $enableval in
3846     yes) enable_shared=yes ;;
3847     no) enable_shared=no ;;
3848     *)
3849       enable_shared=no
3850       # Look at the argument we got.  We use all the common list separators.
3851       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3852       for pkg in $enableval; do
3853         IFS="$lt_save_ifs"
3854         if test "X$pkg" = "X$p"; then
3855           enable_shared=yes
3856         fi
3857       done
3858       IFS="$lt_save_ifs"
3859       ;;
3860     esac
3861 else
3862   enable_shared=yes
3863 fi;
3864
3865 # Check whether --enable-static or --disable-static was given.
3866 if test "${enable_static+set}" = set; then
3867   enableval="$enable_static"
3868   p=${PACKAGE-default}
3869     case $enableval in
3870     yes) enable_static=yes ;;
3871     no) enable_static=no ;;
3872     *)
3873      enable_static=no
3874       # Look at the argument we got.  We use all the common list separators.
3875       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3876       for pkg in $enableval; do
3877         IFS="$lt_save_ifs"
3878         if test "X$pkg" = "X$p"; then
3879           enable_static=yes
3880         fi
3881       done
3882       IFS="$lt_save_ifs"
3883       ;;
3884     esac
3885 else
3886   enable_static=yes
3887 fi;
3888
3889 # Check whether --enable-fast-install or --disable-fast-install was given.
3890 if test "${enable_fast_install+set}" = set; then
3891   enableval="$enable_fast_install"
3892   p=${PACKAGE-default}
3893     case $enableval in
3894     yes) enable_fast_install=yes ;;
3895     no) enable_fast_install=no ;;
3896     *)
3897       enable_fast_install=no
3898       # Look at the argument we got.  We use all the common list separators.
3899       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3900       for pkg in $enableval; do
3901         IFS="$lt_save_ifs"
3902         if test "X$pkg" = "X$p"; then
3903           enable_fast_install=yes
3904         fi
3905       done
3906       IFS="$lt_save_ifs"
3907       ;;
3908     esac
3909 else
3910   enable_fast_install=yes
3911 fi;
3912
3913 echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3914 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
3915 if test "${lt_cv_path_SED+set}" = set; then
3916   echo $ECHO_N "(cached) $ECHO_C" >&6
3917 else
3918   # Loop through the user's path and test for sed and gsed.
3919 # Then use that list of sed's as ones to test for truncation.
3920 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3921 for as_dir in $PATH
3922 do
3923   IFS=$as_save_IFS
3924   test -z "$as_dir" && as_dir=.
3925   for lt_ac_prog in sed gsed; do
3926     for ac_exec_ext in '' $ac_executable_extensions; do
3927       if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
3928         lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
3929       fi
3930     done
3931   done
3932 done
3933 lt_ac_max=0
3934 lt_ac_count=0
3935 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
3936 # along with /bin/sed that truncates output.
3937 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
3938   test ! -f $lt_ac_sed && break
3939   cat /dev/null > conftest.in
3940   lt_ac_count=0
3941   echo $ECHO_N "0123456789$ECHO_C" >conftest.in
3942   # Check for GNU sed and select it if it is found.
3943   if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
3944     lt_cv_path_SED=$lt_ac_sed
3945     break
3946   fi
3947   while true; do
3948     cat conftest.in conftest.in >conftest.tmp
3949     mv conftest.tmp conftest.in
3950     cp conftest.in conftest.nl
3951     echo >>conftest.nl
3952     $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
3953     cmp -s conftest.out conftest.nl || break
3954     # 10000 chars as input seems more than enough
3955     test $lt_ac_count -gt 10 && break
3956     lt_ac_count=`expr $lt_ac_count + 1`
3957     if test $lt_ac_count -gt $lt_ac_max; then
3958       lt_ac_max=$lt_ac_count
3959       lt_cv_path_SED=$lt_ac_sed
3960     fi
3961   done
3962 done
3963 SED=$lt_cv_path_SED
3964
3965 fi
3966
3967 echo "$as_me:$LINENO: result: $SED" >&5
3968 echo "${ECHO_T}$SED" >&6
3969
3970 echo "$as_me:$LINENO: checking for egrep" >&5
3971 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3972 if test "${ac_cv_prog_egrep+set}" = set; then
3973   echo $ECHO_N "(cached) $ECHO_C" >&6
3974 else
3975   if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3976     then ac_cv_prog_egrep='grep -E'
3977     else ac_cv_prog_egrep='egrep'
3978     fi
3979 fi
3980 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3981 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3982  EGREP=$ac_cv_prog_egrep
3983
3984
3985
3986 # Check whether --with-gnu-ld or --without-gnu-ld was given.
3987 if test "${with_gnu_ld+set}" = set; then
3988   withval="$with_gnu_ld"
3989   test "$withval" = no || with_gnu_ld=yes
3990 else
3991   with_gnu_ld=no
3992 fi;
3993 ac_prog=ld
3994 if test "$GCC" = yes; then
3995   # Check if gcc -print-prog-name=ld gives a path.
3996   echo "$as_me:$LINENO: checking for ld used by $CC" >&5
3997 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
3998   case $host in
3999   *-*-mingw*)
4000     # gcc leaves a trailing carriage return which upsets mingw
4001     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4002   *)
4003     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4004   esac
4005   case $ac_prog in
4006     # Accept absolute paths.
4007     [\\/]* | ?:[\\/]*)
4008       re_direlt='/[^/][^/]*/\.\./'
4009       # Canonicalize the path of ld
4010       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
4011       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
4012         ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
4013       done
4014       test -z "$LD" && LD="$ac_prog"
4015       ;;
4016   "")
4017     # If it fails, then pretend we aren't using GCC.
4018     ac_prog=ld
4019     ;;
4020   *)
4021     # If it is relative, then search for the first ld in PATH.
4022     with_gnu_ld=unknown
4023     ;;
4024   esac
4025 elif test "$with_gnu_ld" = yes; then
4026   echo "$as_me:$LINENO: checking for GNU ld" >&5
4027 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
4028 else
4029   echo "$as_me:$LINENO: checking for non-GNU ld" >&5
4030 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
4031 fi
4032 if test "${lt_cv_path_LD+set}" = set; then
4033   echo $ECHO_N "(cached) $ECHO_C" >&6
4034 else
4035   if test -z "$LD"; then
4036   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4037   for ac_dir in $PATH; do
4038     IFS="$lt_save_ifs"
4039     test -z "$ac_dir" && ac_dir=.
4040     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4041       lt_cv_path_LD="$ac_dir/$ac_prog"
4042       # Check to see if the program is GNU ld.  I'd rather use --version,
4043       # but apparently some GNU ld's only accept -v.
4044       # Break only if it was the GNU/non-GNU ld that we prefer.
4045       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4046       *GNU* | *'with BFD'*)
4047         test "$with_gnu_ld" != no && break
4048         ;;
4049       *)
4050         test "$with_gnu_ld" != yes && break
4051         ;;
4052       esac
4053     fi
4054   done
4055   IFS="$lt_save_ifs"
4056 else
4057   lt_cv_path_LD="$LD" # Let the user override the test with a path.
4058 fi
4059 fi
4060
4061 LD="$lt_cv_path_LD"
4062 if test -n "$LD"; then
4063   echo "$as_me:$LINENO: result: $LD" >&5
4064 echo "${ECHO_T}$LD" >&6
4065 else
4066   echo "$as_me:$LINENO: result: no" >&5
4067 echo "${ECHO_T}no" >&6
4068 fi
4069 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
4070 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
4071    { (exit 1); exit 1; }; }
4072 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4073 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
4074 if test "${lt_cv_prog_gnu_ld+set}" = set; then
4075   echo $ECHO_N "(cached) $ECHO_C" >&6
4076 else
4077   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
4078 case `"$LD" -v 2>&1 </dev/null` in
4079 *GNU* | *'with BFD'*)
4080   lt_cv_prog_gnu_ld=yes
4081   ;;
4082 *)
4083   lt_cv_prog_gnu_ld=no
4084   ;;
4085 esac
4086 fi
4087 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
4088 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
4089 with_gnu_ld=$lt_cv_prog_gnu_ld
4090
4091
4092 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
4093 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
4094 if test "${lt_cv_ld_reload_flag+set}" = set; then
4095   echo $ECHO_N "(cached) $ECHO_C" >&6
4096 else
4097   lt_cv_ld_reload_flag='-r'
4098 fi
4099 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
4100 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
4101 reload_flag=$lt_cv_ld_reload_flag
4102 case $reload_flag in
4103 "" | " "*) ;;
4104 *) reload_flag=" $reload_flag" ;;
4105 esac
4106 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4107
4108 echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
4109 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
4110 if test "${lt_cv_path_NM+set}" = set; then
4111   echo $ECHO_N "(cached) $ECHO_C" >&6
4112 else
4113   if test -n "$NM"; then
4114   # Let the user override the test.
4115   lt_cv_path_NM="$NM"
4116 else
4117   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4118   for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
4119     IFS="$lt_save_ifs"
4120     test -z "$ac_dir" && ac_dir=.
4121     tmp_nm="$ac_dir/${ac_tool_prefix}nm"
4122     if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4123       # Check to see if the nm accepts a BSD-compat flag.
4124       # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4125       #   nm: unknown option "B" ignored
4126       # Tru64's nm complains that /dev/null is an invalid object file
4127       case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4128       */dev/null* | *'Invalid file or object type'*)
4129         lt_cv_path_NM="$tmp_nm -B"
4130         break
4131         ;;
4132       *)
4133         case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4134         */dev/null*)
4135           lt_cv_path_NM="$tmp_nm -p"
4136           break
4137           ;;
4138         *)
4139           lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4140           continue # so that we can try to find one that supports BSD flags
4141           ;;
4142         esac
4143       esac
4144     fi
4145   done
4146   IFS="$lt_save_ifs"
4147   test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
4148 fi
4149 fi
4150 echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
4151 echo "${ECHO_T}$lt_cv_path_NM" >&6
4152 NM="$lt_cv_path_NM"
4153
4154 echo "$as_me:$LINENO: checking whether ln -s works" >&5
4155 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
4156 LN_S=$as_ln_s
4157 if test "$LN_S" = "ln -s"; then
4158   echo "$as_me:$LINENO: result: yes" >&5
4159 echo "${ECHO_T}yes" >&6
4160 else
4161   echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4162 echo "${ECHO_T}no, using $LN_S" >&6
4163 fi
4164
4165 echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
4166 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
4167 if test "${lt_cv_deplibs_check_method+set}" = set; then
4168   echo $ECHO_N "(cached) $ECHO_C" >&6
4169 else
4170   lt_cv_file_magic_cmd='$MAGIC_CMD'
4171 lt_cv_file_magic_test_file=
4172 lt_cv_deplibs_check_method='unknown'
4173 # Need to set the preceding variable on all platforms that support
4174 # interlibrary dependencies.
4175 # 'none' -- dependencies not supported.
4176 # `unknown' -- same as none, but documents that we really don't know.
4177 # 'pass_all' -- all dependencies passed with no checks.
4178 # 'test_compile' -- check by making test program.
4179 # 'file_magic [[regex]]' -- check by looking for files in library path
4180 # which responds to the $file_magic_cmd with a given extended regex.
4181 # If you have `file' or equivalent on your system and you're not sure
4182 # whether `pass_all' will *always* work, you probably want this one.
4183
4184 case $host_os in
4185 aix4* | aix5*)
4186   lt_cv_deplibs_check_method=pass_all
4187   ;;
4188
4189 beos*)
4190   lt_cv_deplibs_check_method=pass_all
4191   ;;
4192
4193 bsdi4*)
4194   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4195   lt_cv_file_magic_cmd='/usr/bin/file -L'
4196   lt_cv_file_magic_test_file=/shlib/libc.so
4197   ;;
4198
4199 cygwin* | mingw* | pw32*)
4200   # win32_libid is a shell function defined in ltmain.sh
4201   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4202   lt_cv_file_magic_cmd='win32_libid'
4203   ;;
4204
4205 darwin* | rhapsody*)
4206   # this will be overwritten by pass_all, but leave it in just in case
4207   lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
4208   lt_cv_file_magic_cmd='/usr/bin/file -L'
4209   case "$host_os" in
4210   rhapsody* | darwin1.[012])
4211     lt_cv_file_magic_test_file=`/System/Library/Frameworks/System.framework/System`
4212     ;;
4213   *) # Darwin 1.3 on
4214     lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
4215     ;;
4216   esac
4217   lt_cv_deplibs_check_method=pass_all
4218   ;;
4219
4220 freebsd*)
4221   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4222     case $host_cpu in
4223     i*86 )
4224       # Not sure whether the presence of OpenBSD here was a mistake.
4225       # Let's accept both of them until this is cleared up.
4226       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
4227       lt_cv_file_magic_cmd=/usr/bin/file
4228       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4229       ;;
4230     esac
4231   else
4232     lt_cv_deplibs_check_method=pass_all
4233   fi
4234   ;;
4235
4236 gnu*)
4237   lt_cv_deplibs_check_method=pass_all
4238   ;;
4239
4240 hpux10.20* | hpux11*)
4241   lt_cv_file_magic_cmd=/usr/bin/file
4242   case "$host_cpu" in
4243   ia64*)
4244     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4245     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4246     ;;
4247   hppa*64*)
4248     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]'
4249     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4250     ;;
4251   *)
4252     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4253     lt_cv_file_magic_test_file=/usr/lib/libc.sl
4254     ;;
4255   esac
4256   ;;
4257
4258 irix5* | irix6* | nonstopux*)
4259   case $host_os in
4260   irix5* | nonstopux*)
4261     # this will be overridden with pass_all, but let us keep it just in case
4262     lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
4263     ;;
4264   *)
4265     case $LD in
4266     *-32|*"-32 ") libmagic=32-bit;;
4267     *-n32|*"-n32 ") libmagic=N32;;
4268     *-64|*"-64 ") libmagic=64-bit;;
4269     *) libmagic=never-match;;
4270     esac
4271     # this will be overridden with pass_all, but let us keep it just in case
4272     lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
4273     ;;
4274   esac
4275   lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
4276   lt_cv_deplibs_check_method=pass_all
4277   ;;
4278
4279 # This must be Linux ELF.
4280 linux*)
4281   case $host_cpu in
4282   alpha* | hppa* | i*86 | ia64* | m68* | mips | mipsel | powerpc* | sparc* | s390* | sh*)
4283     lt_cv_deplibs_check_method=pass_all ;;
4284   *)
4285     # glibc up to 2.1.1 does not perform some relocations on ARM
4286     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
4287   esac
4288   lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
4289   ;;
4290
4291 netbsd*)
4292   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4293     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4294   else
4295     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
4296   fi
4297   ;;
4298
4299 newos6*)
4300   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4301   lt_cv_file_magic_cmd=/usr/bin/file
4302   lt_cv_file_magic_test_file=/usr/lib/libnls.so
4303   ;;
4304
4305 nto-qnx)
4306   lt_cv_deplibs_check_method=unknown
4307   ;;
4308
4309 openbsd*)
4310   lt_cv_file_magic_cmd=/usr/bin/file
4311   lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4312   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4313     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB shared object'
4314   else
4315     lt_cv_deplibs_check_method='file_magic OpenBSD.* shared library'
4316   fi
4317   ;;
4318
4319 osf3* | osf4* | osf5*)
4320   # this will be overridden with pass_all, but let us keep it just in case
4321   lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
4322   lt_cv_file_magic_test_file=/shlib/libc.so
4323   lt_cv_deplibs_check_method=pass_all
4324   ;;
4325
4326 sco3.2v5*)
4327   lt_cv_deplibs_check_method=pass_all
4328   ;;
4329
4330 solaris*)
4331   lt_cv_deplibs_check_method=pass_all
4332   lt_cv_file_magic_test_file=/lib/libc.so
4333   ;;
4334
4335 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
4336   case $host_vendor in
4337   motorola)
4338     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]'
4339     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4340     ;;
4341   ncr)
4342     lt_cv_deplibs_check_method=pass_all
4343     ;;
4344   sequent)
4345     lt_cv_file_magic_cmd='/bin/file'
4346     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4347     ;;
4348   sni)
4349     lt_cv_file_magic_cmd='/bin/file'
4350     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4351     lt_cv_file_magic_test_file=/lib/libc.so
4352     ;;
4353   siemens)
4354     lt_cv_deplibs_check_method=pass_all
4355     ;;
4356   esac
4357   ;;
4358
4359 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*)
4360   lt_cv_deplibs_check_method=pass_all
4361   ;;
4362 esac
4363
4364 fi
4365 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
4366 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
4367 file_magic_cmd=$lt_cv_file_magic_cmd
4368 deplibs_check_method=$lt_cv_deplibs_check_method
4369 test -z "$deplibs_check_method" && deplibs_check_method=unknown
4370
4371
4372
4373
4374 # If no C compiler was specified, use CC.
4375 LTCC=${LTCC-"$CC"}
4376
4377 # Allow CC to be a program name with arguments.
4378 compiler=$CC
4379
4380 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
4381 if test "${enable_libtool_lock+set}" = set; then
4382   enableval="$enable_libtool_lock"
4383
4384 fi;
4385 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
4386
4387 # Some flags need to be propagated to the compiler or linker for good
4388 # libtool support.
4389 case $host in
4390 ia64-*-hpux*)
4391   # Find out which ABI we are using.
4392   echo 'int i;' > conftest.$ac_ext
4393   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4394   (eval $ac_compile) 2>&5
4395   ac_status=$?
4396   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4397   (exit $ac_status); }; then
4398     case `/usr/bin/file conftest.$ac_objext` in
4399     *ELF-32*)
4400       HPUX_IA64_MODE="32"
4401       ;;
4402     *ELF-64*)
4403       HPUX_IA64_MODE="64"
4404       ;;
4405     esac
4406   fi
4407   rm -rf conftest*
4408   ;;
4409 *-*-irix6*)
4410   # Find out which ABI we are using.
4411   echo '#line 4411 "configure"' > conftest.$ac_ext
4412   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4413   (eval $ac_compile) 2>&5
4414   ac_status=$?
4415   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4416   (exit $ac_status); }; then
4417    if test "$lt_cv_prog_gnu_ld" = yes; then
4418     case `/usr/bin/file conftest.$ac_objext` in
4419     *32-bit*)
4420       LD="${LD-ld} -melf32bsmip"
4421       ;;
4422     *N32*)
4423       LD="${LD-ld} -melf32bmipn32"
4424       ;;
4425     *64-bit*)
4426       LD="${LD-ld} -melf64bmip"
4427       ;;
4428     esac
4429    else
4430     case `/usr/bin/file conftest.$ac_objext` in
4431     *32-bit*)
4432       LD="${LD-ld} -32"
4433       ;;
4434     *N32*)
4435       LD="${LD-ld} -n32"
4436       ;;
4437     *64-bit*)
4438       LD="${LD-ld} -64"
4439       ;;
4440     esac
4441    fi
4442   fi
4443   rm -rf conftest*
4444   ;;
4445
4446 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
4447   # Find out which ABI we are using.
4448   echo 'int i;' > conftest.$ac_ext
4449   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4450   (eval $ac_compile) 2>&5
4451   ac_status=$?
4452   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4453   (exit $ac_status); }; then
4454     case "`/usr/bin/file conftest.o`" in
4455     *32-bit*)
4456       case $host in
4457         x86_64-*linux*)
4458           LD="${LD-ld} -m elf_i386"
4459           ;;
4460         ppc64-*linux*)
4461           LD="${LD-ld} -m elf32ppclinux"
4462           ;;
4463         s390x-*linux*)
4464           LD="${LD-ld} -m elf_s390"
4465           ;;
4466         sparc64-*linux*)
4467           LD="${LD-ld} -m elf32_sparc"
4468           ;;
4469       esac
4470       ;;
4471     *64-bit*)
4472       case $host in
4473         x86_64-*linux*)
4474           LD="${LD-ld} -m elf_x86_64"
4475           ;;
4476         ppc*-*linux*|powerpc*-*linux*)
4477           LD="${LD-ld} -m elf64ppc"
4478           ;;
4479         s390*-*linux*)
4480           LD="${LD-ld} -m elf64_s390"
4481           ;;
4482         sparc*-*linux*)
4483           LD="${LD-ld} -m elf64_sparc"
4484           ;;
4485       esac
4486       ;;
4487     esac
4488   fi
4489   rm -rf conftest*
4490   ;;
4491
4492 *-*-sco3.2v5*)
4493   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4494   SAVE_CFLAGS="$CFLAGS"
4495   CFLAGS="$CFLAGS -belf"
4496   echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
4497 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
4498 if test "${lt_cv_cc_needs_belf+set}" = set; then
4499   echo $ECHO_N "(cached) $ECHO_C" >&6
4500 else
4501   ac_ext=c
4502 ac_cpp='$CPP $CPPFLAGS'
4503 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4504 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4505 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4506
4507      cat >conftest.$ac_ext <<_ACEOF
4508 #line $LINENO "configure"
4509 /* confdefs.h.  */
4510 _ACEOF
4511 cat confdefs.h >>conftest.$ac_ext
4512 cat >>conftest.$ac_ext <<_ACEOF
4513 /* end confdefs.h.  */
4514
4515 int
4516 main ()
4517 {
4518
4519   ;
4520   return 0;
4521 }
4522 _ACEOF
4523 rm -f conftest.$ac_objext conftest$ac_exeext
4524 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4525   (eval $ac_link) 2>&5
4526   ac_status=$?
4527   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4528   (exit $ac_status); } &&
4529          { ac_try='test -s conftest$ac_exeext'
4530   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4531   (eval $ac_try) 2>&5
4532   ac_status=$?
4533   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4534   (exit $ac_status); }; }; then
4535   lt_cv_cc_needs_belf=yes
4536 else
4537   echo "$as_me: failed program was:" >&5
4538 sed 's/^/| /' conftest.$ac_ext >&5
4539
4540 lt_cv_cc_needs_belf=no
4541 fi
4542 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4543      ac_ext=c
4544 ac_cpp='$CPP $CPPFLAGS'
4545 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4546 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4547 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4548
4549 fi
4550 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
4551 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
4552   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4553     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4554     CFLAGS="$SAVE_CFLAGS"
4555   fi
4556   ;;
4557
4558 esac
4559
4560 need_locks="$enable_libtool_lock"
4561
4562
4563
4564 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4565 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4566 if test "${ac_cv_header_stdc+set}" = set; then
4567   echo $ECHO_N "(cached) $ECHO_C" >&6
4568 else
4569   cat >conftest.$ac_ext <<_ACEOF
4570 #line $LINENO "configure"
4571 /* confdefs.h.  */
4572 _ACEOF
4573 cat confdefs.h >>conftest.$ac_ext
4574 cat >>conftest.$ac_ext <<_ACEOF
4575 /* end confdefs.h.  */
4576 #include <stdlib.h>
4577 #include <stdarg.h>
4578 #include <string.h>
4579 #include <float.h>
4580
4581 int
4582 main ()
4583 {
4584
4585   ;
4586   return 0;
4587 }
4588 _ACEOF
4589 rm -f conftest.$ac_objext
4590 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4591   (eval $ac_compile) 2>&5
4592   ac_status=$?
4593   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4594   (exit $ac_status); } &&
4595          { ac_try='test -s conftest.$ac_objext'
4596   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4597   (eval $ac_try) 2>&5
4598   ac_status=$?
4599   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4600   (exit $ac_status); }; }; then
4601   ac_cv_header_stdc=yes
4602 else
4603   echo "$as_me: failed program was:" >&5
4604 sed 's/^/| /' conftest.$ac_ext >&5
4605
4606 ac_cv_header_stdc=no
4607 fi
4608 rm -f conftest.$ac_objext conftest.$ac_ext
4609
4610 if test $ac_cv_header_stdc = yes; then
4611   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4612   cat >conftest.$ac_ext <<_ACEOF
4613 #line $LINENO "configure"
4614 /* confdefs.h.  */
4615 _ACEOF
4616 cat confdefs.h >>conftest.$ac_ext
4617 cat >>conftest.$ac_ext <<_ACEOF
4618 /* end confdefs.h.  */
4619 #include <string.h>
4620
4621 _ACEOF
4622 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4623   $EGREP "memchr" >/dev/null 2>&1; then
4624   :
4625 else
4626   ac_cv_header_stdc=no
4627 fi
4628 rm -f conftest*
4629
4630 fi
4631
4632 if test $ac_cv_header_stdc = yes; then
4633   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4634   cat >conftest.$ac_ext <<_ACEOF
4635 #line $LINENO "configure"
4636 /* confdefs.h.  */
4637 _ACEOF
4638 cat confdefs.h >>conftest.$ac_ext
4639 cat >>conftest.$ac_ext <<_ACEOF
4640 /* end confdefs.h.  */
4641 #include <stdlib.h>
4642
4643 _ACEOF
4644 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4645   $EGREP "free" >/dev/null 2>&1; then
4646   :
4647 else
4648   ac_cv_header_stdc=no
4649 fi
4650 rm -f conftest*
4651
4652 fi
4653
4654 if test $ac_cv_header_stdc = yes; then
4655   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4656   if test "$cross_compiling" = yes; then
4657   :
4658 else
4659   cat >conftest.$ac_ext <<_ACEOF
4660 #line $LINENO "configure"
4661 /* confdefs.h.  */
4662 _ACEOF
4663 cat confdefs.h >>conftest.$ac_ext
4664 cat >>conftest.$ac_ext <<_ACEOF
4665 /* end confdefs.h.  */
4666 #include <ctype.h>
4667 #if ((' ' & 0x0FF) == 0x020)
4668 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4669 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4670 #else
4671 # define ISLOWER(c) \
4672                    (('a' <= (c) && (c) <= 'i') \
4673                      || ('j' <= (c) && (c) <= 'r') \
4674                      || ('s' <= (c) && (c) <= 'z'))
4675 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4676 #endif
4677
4678 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4679 int
4680 main ()
4681 {
4682   int i;
4683   for (i = 0; i < 256; i++)
4684     if (XOR (islower (i), ISLOWER (i))
4685         || toupper (i) != TOUPPER (i))
4686       exit(2);
4687   exit (0);
4688 }
4689 _ACEOF
4690 rm -f conftest$ac_exeext
4691 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4692   (eval $ac_link) 2>&5
4693   ac_status=$?
4694   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4695   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4696   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4697   (eval $ac_try) 2>&5
4698   ac_status=$?
4699   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4700   (exit $ac_status); }; }; then
4701   :
4702 else
4703   echo "$as_me: program exited with status $ac_status" >&5
4704 echo "$as_me: failed program was:" >&5
4705 sed 's/^/| /' conftest.$ac_ext >&5
4706
4707 ( exit $ac_status )
4708 ac_cv_header_stdc=no
4709 fi
4710 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4711 fi
4712 fi
4713 fi
4714 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4715 echo "${ECHO_T}$ac_cv_header_stdc" >&6
4716 if test $ac_cv_header_stdc = yes; then
4717
4718 cat >>confdefs.h <<\_ACEOF
4719 #define STDC_HEADERS 1
4720 _ACEOF
4721
4722 fi
4723
4724 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4725
4726
4727
4728
4729
4730
4731
4732
4733
4734 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4735                   inttypes.h stdint.h unistd.h
4736 do
4737 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4738 echo "$as_me:$LINENO: checking for $ac_header" >&5
4739 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4740 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4741   echo $ECHO_N "(cached) $ECHO_C" >&6
4742 else
4743   cat >conftest.$ac_ext <<_ACEOF
4744 #line $LINENO "configure"
4745 /* confdefs.h.  */
4746 _ACEOF
4747 cat confdefs.h >>conftest.$ac_ext
4748 cat >>conftest.$ac_ext <<_ACEOF
4749 /* end confdefs.h.  */
4750 $ac_includes_default
4751
4752 #include <$ac_header>
4753 _ACEOF
4754 rm -f conftest.$ac_objext
4755 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4756   (eval $ac_compile) 2>&5
4757   ac_status=$?
4758   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4759   (exit $ac_status); } &&
4760          { ac_try='test -s conftest.$ac_objext'
4761   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4762   (eval $ac_try) 2>&5
4763   ac_status=$?
4764   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4765   (exit $ac_status); }; }; then
4766   eval "$as_ac_Header=yes"
4767 else
4768   echo "$as_me: failed program was:" >&5
4769 sed 's/^/| /' conftest.$ac_ext >&5
4770
4771 eval "$as_ac_Header=no"
4772 fi
4773 rm -f conftest.$ac_objext conftest.$ac_ext
4774 fi
4775 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4776 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4777 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4778   cat >>confdefs.h <<_ACEOF
4779 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4780 _ACEOF
4781
4782 fi
4783
4784 done
4785
4786
4787
4788 for ac_header in dlfcn.h
4789 do
4790 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4791 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4792   echo "$as_me:$LINENO: checking for $ac_header" >&5
4793 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4794 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4795   echo $ECHO_N "(cached) $ECHO_C" >&6
4796 fi
4797 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4798 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4799 else
4800   # Is the header compilable?
4801 echo "$as_me:$LINENO: checking $ac_header usability" >&5
4802 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4803 cat >conftest.$ac_ext <<_ACEOF
4804 #line $LINENO "configure"
4805 /* confdefs.h.  */
4806 _ACEOF
4807 cat confdefs.h >>conftest.$ac_ext
4808 cat >>conftest.$ac_ext <<_ACEOF
4809 /* end confdefs.h.  */
4810 $ac_includes_default
4811 #include <$ac_header>
4812 _ACEOF
4813 rm -f conftest.$ac_objext
4814 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4815   (eval $ac_compile) 2>&5
4816   ac_status=$?
4817   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4818   (exit $ac_status); } &&
4819          { ac_try='test -s conftest.$ac_objext'
4820   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4821   (eval $ac_try) 2>&5
4822   ac_status=$?
4823   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4824   (exit $ac_status); }; }; then
4825   ac_header_compiler=yes
4826 else
4827   echo "$as_me: failed program was:" >&5
4828 sed 's/^/| /' conftest.$ac_ext >&5
4829
4830 ac_header_compiler=no
4831 fi
4832 rm -f conftest.$ac_objext conftest.$ac_ext
4833 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4834 echo "${ECHO_T}$ac_header_compiler" >&6
4835
4836 # Is the header present?
4837 echo "$as_me:$LINENO: checking $ac_header presence" >&5
4838 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4839 cat >conftest.$ac_ext <<_ACEOF
4840 #line $LINENO "configure"
4841 /* confdefs.h.  */
4842 _ACEOF
4843 cat confdefs.h >>conftest.$ac_ext
4844 cat >>conftest.$ac_ext <<_ACEOF
4845 /* end confdefs.h.  */
4846 #include <$ac_header>
4847 _ACEOF
4848 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4849   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4850   ac_status=$?
4851   grep -v '^ *+' conftest.er1 >conftest.err
4852   rm -f conftest.er1
4853   cat conftest.err >&5
4854   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4855   (exit $ac_status); } >/dev/null; then
4856   if test -s conftest.err; then
4857     ac_cpp_err=$ac_c_preproc_warn_flag
4858   else
4859     ac_cpp_err=
4860   fi
4861 else
4862   ac_cpp_err=yes
4863 fi
4864 if test -z "$ac_cpp_err"; then
4865   ac_header_preproc=yes
4866 else
4867   echo "$as_me: failed program was:" >&5
4868 sed 's/^/| /' conftest.$ac_ext >&5
4869
4870   ac_header_preproc=no
4871 fi
4872 rm -f conftest.err conftest.$ac_ext
4873 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4874 echo "${ECHO_T}$ac_header_preproc" >&6
4875
4876 # So?  What about this header?
4877 case $ac_header_compiler:$ac_header_preproc in
4878   yes:no )
4879     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4880 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4881     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4882 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4883     (
4884       cat <<\_ASBOX
4885 ## ------------------------------------ ##
4886 ## Report this to bug-autoconf@gnu.org. ##
4887 ## ------------------------------------ ##
4888 _ASBOX
4889     ) |
4890       sed "s/^/$as_me: WARNING:     /" >&2
4891     ;;
4892   no:yes )
4893     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4894 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4895     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4896 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4897     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4898 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4899     (
4900       cat <<\_ASBOX
4901 ## ------------------------------------ ##
4902 ## Report this to bug-autoconf@gnu.org. ##
4903 ## ------------------------------------ ##
4904 _ASBOX
4905     ) |
4906       sed "s/^/$as_me: WARNING:     /" >&2
4907     ;;
4908 esac
4909 echo "$as_me:$LINENO: checking for $ac_header" >&5
4910 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4911 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4912   echo $ECHO_N "(cached) $ECHO_C" >&6
4913 else
4914   eval "$as_ac_Header=$ac_header_preproc"
4915 fi
4916 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4917 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4918
4919 fi
4920 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4921   cat >>confdefs.h <<_ACEOF
4922 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4923 _ACEOF
4924
4925 fi
4926
4927 done
4928
4929 ac_ext=cc
4930 ac_cpp='$CXXCPP $CPPFLAGS'
4931 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4932 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4933 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4934 echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
4935 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
4936 if test -z "$CXXCPP"; then
4937   if test "${ac_cv_prog_CXXCPP+set}" = set; then
4938   echo $ECHO_N "(cached) $ECHO_C" >&6
4939 else
4940       # Double quotes because CXXCPP needs to be expanded
4941     for CXXCPP in "$CXX -E" "/lib/cpp"
4942     do
4943       ac_preproc_ok=false
4944 for ac_cxx_preproc_warn_flag in '' yes
4945 do
4946   # Use a header file that comes with gcc, so configuring glibc
4947   # with a fresh cross-compiler works.
4948   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4949   # <limits.h> exists even on freestanding compilers.
4950   # On the NeXT, cc -E runs the code through the compiler's parser,
4951   # not just through cpp. "Syntax error" is here to catch this case.
4952   cat >conftest.$ac_ext <<_ACEOF
4953 #line $LINENO "configure"
4954 /* confdefs.h.  */
4955 _ACEOF
4956 cat confdefs.h >>conftest.$ac_ext
4957 cat >>conftest.$ac_ext <<_ACEOF
4958 /* end confdefs.h.  */
4959 #ifdef __STDC__
4960 # include <limits.h>
4961 #else
4962 # include <assert.h>
4963 #endif
4964                      Syntax error
4965 _ACEOF
4966 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4967   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4968   ac_status=$?
4969   grep -v '^ *+' conftest.er1 >conftest.err
4970   rm -f conftest.er1
4971   cat conftest.err >&5
4972   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4973   (exit $ac_status); } >/dev/null; then
4974   if test -s conftest.err; then
4975     ac_cpp_err=$ac_cxx_preproc_warn_flag
4976   else
4977     ac_cpp_err=
4978   fi
4979 else
4980   ac_cpp_err=yes
4981 fi
4982 if test -z "$ac_cpp_err"; then
4983   :
4984 else
4985   echo "$as_me: failed program was:" >&5
4986 sed 's/^/| /' conftest.$ac_ext >&5
4987
4988   # Broken: fails on valid input.
4989 continue
4990 fi
4991 rm -f conftest.err conftest.$ac_ext
4992
4993   # OK, works on sane cases.  Now check whether non-existent headers
4994   # can be detected and how.
4995   cat >conftest.$ac_ext <<_ACEOF
4996 #line $LINENO "configure"
4997 /* confdefs.h.  */
4998 _ACEOF
4999 cat confdefs.h >>conftest.$ac_ext
5000 cat >>conftest.$ac_ext <<_ACEOF
5001 /* end confdefs.h.  */
5002 #include <ac_nonexistent.h>
5003 _ACEOF
5004 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5005   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5006   ac_status=$?
5007   grep -v '^ *+' conftest.er1 >conftest.err
5008   rm -f conftest.er1
5009   cat conftest.err >&5
5010   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5011   (exit $ac_status); } >/dev/null; then
5012   if test -s conftest.err; then
5013     ac_cpp_err=$ac_cxx_preproc_warn_flag
5014   else
5015     ac_cpp_err=
5016   fi
5017 else
5018   ac_cpp_err=yes
5019 fi
5020 if test -z "$ac_cpp_err"; then
5021   # Broken: success on invalid input.
5022 continue
5023 else
5024   echo "$as_me: failed program was:" >&5
5025 sed 's/^/| /' conftest.$ac_ext >&5
5026
5027   # Passes both tests.
5028 ac_preproc_ok=:
5029 break
5030 fi
5031 rm -f conftest.err conftest.$ac_ext
5032
5033 done
5034 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5035 rm -f conftest.err conftest.$ac_ext
5036 if $ac_preproc_ok; then
5037   break
5038 fi
5039
5040     done
5041     ac_cv_prog_CXXCPP=$CXXCPP
5042
5043 fi
5044   CXXCPP=$ac_cv_prog_CXXCPP
5045 else
5046   ac_cv_prog_CXXCPP=$CXXCPP
5047 fi
5048 echo "$as_me:$LINENO: result: $CXXCPP" >&5
5049 echo "${ECHO_T}$CXXCPP" >&6
5050 ac_preproc_ok=false
5051 for ac_cxx_preproc_warn_flag in '' yes
5052 do
5053   # Use a header file that comes with gcc, so configuring glibc
5054   # with a fresh cross-compiler works.
5055   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5056   # <limits.h> exists even on freestanding compilers.
5057   # On the NeXT, cc -E runs the code through the compiler's parser,
5058   # not just through cpp. "Syntax error" is here to catch this case.
5059   cat >conftest.$ac_ext <<_ACEOF
5060 #line $LINENO "configure"
5061 /* confdefs.h.  */
5062 _ACEOF
5063 cat confdefs.h >>conftest.$ac_ext
5064 cat >>conftest.$ac_ext <<_ACEOF
5065 /* end confdefs.h.  */
5066 #ifdef __STDC__
5067 # include <limits.h>
5068 #else
5069 # include <assert.h>
5070 #endif
5071                      Syntax error
5072 _ACEOF
5073 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5074   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5075   ac_status=$?
5076   grep -v '^ *+' conftest.er1 >conftest.err
5077   rm -f conftest.er1
5078   cat conftest.err >&5
5079   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5080   (exit $ac_status); } >/dev/null; then
5081   if test -s conftest.err; then
5082     ac_cpp_err=$ac_cxx_preproc_warn_flag
5083   else
5084     ac_cpp_err=
5085   fi
5086 else
5087   ac_cpp_err=yes
5088 fi
5089 if test -z "$ac_cpp_err"; then
5090   :
5091 else
5092   echo "$as_me: failed program was:" >&5
5093 sed 's/^/| /' conftest.$ac_ext >&5
5094
5095   # Broken: fails on valid input.
5096 continue
5097 fi
5098 rm -f conftest.err conftest.$ac_ext
5099
5100   # OK, works on sane cases.  Now check whether non-existent headers
5101   # can be detected and how.
5102   cat >conftest.$ac_ext <<_ACEOF
5103 #line $LINENO "configure"
5104 /* confdefs.h.  */
5105 _ACEOF
5106 cat confdefs.h >>conftest.$ac_ext
5107 cat >>conftest.$ac_ext <<_ACEOF
5108 /* end confdefs.h.  */
5109 #include <ac_nonexistent.h>
5110 _ACEOF
5111 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5112   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5113   ac_status=$?
5114   grep -v '^ *+' conftest.er1 >conftest.err
5115   rm -f conftest.er1
5116   cat conftest.err >&5
5117   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5118   (exit $ac_status); } >/dev/null; then
5119   if test -s conftest.err; then
5120     ac_cpp_err=$ac_cxx_preproc_warn_flag
5121   else
5122     ac_cpp_err=
5123   fi
5124 else
5125   ac_cpp_err=yes
5126 fi
5127 if test -z "$ac_cpp_err"; then
5128   # Broken: success on invalid input.
5129 continue
5130 else
5131   echo "$as_me: failed program was:" >&5
5132 sed 's/^/| /' conftest.$ac_ext >&5
5133
5134   # Passes both tests.
5135 ac_preproc_ok=:
5136 break
5137 fi
5138 rm -f conftest.err conftest.$ac_ext
5139
5140 done
5141 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5142 rm -f conftest.err conftest.$ac_ext
5143 if $ac_preproc_ok; then
5144   :
5145 else
5146   { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5147 See \`config.log' for more details." >&5
5148 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5149 See \`config.log' for more details." >&2;}
5150    { (exit 1); exit 1; }; }
5151 fi
5152
5153 ac_ext=cc
5154 ac_cpp='$CXXCPP $CPPFLAGS'
5155 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5156 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5157 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5158
5159
5160 ac_ext=f
5161 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
5162 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5163 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
5164 if test -n "$ac_tool_prefix"; then
5165   for ac_prog in g77 f77 xlf frt pgf77 fl32 af77 fort77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 lf95 g95
5166   do
5167     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5168 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5169 echo "$as_me:$LINENO: checking for $ac_word" >&5
5170 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5171 if test "${ac_cv_prog_F77+set}" = set; then
5172   echo $ECHO_N "(cached) $ECHO_C" >&6
5173 else
5174   if test -n "$F77"; then
5175   ac_cv_prog_F77="$F77" # Let the user override the test.
5176 else
5177 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5178 for as_dir in $PATH
5179 do
5180   IFS=$as_save_IFS
5181   test -z "$as_dir" && as_dir=.
5182   for ac_exec_ext in '' $ac_executable_extensions; do
5183   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5184     ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
5185     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5186     break 2
5187   fi
5188 done
5189 done
5190
5191 fi
5192 fi
5193 F77=$ac_cv_prog_F77
5194 if test -n "$F77"; then
5195   echo "$as_me:$LINENO: result: $F77" >&5
5196 echo "${ECHO_T}$F77" >&6
5197 else
5198   echo "$as_me:$LINENO: result: no" >&5
5199 echo "${ECHO_T}no" >&6
5200 fi
5201
5202     test -n "$F77" && break
5203   done
5204 fi
5205 if test -z "$F77"; then
5206   ac_ct_F77=$F77
5207   for ac_prog in g77 f77 xlf frt pgf77 fl32 af77 fort77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 lf95 g95
5208 do
5209   # Extract the first word of "$ac_prog", so it can be a program name with args.
5210 set dummy $ac_prog; ac_word=$2
5211 echo "$as_me:$LINENO: checking for $ac_word" >&5
5212 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5213 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
5214   echo $ECHO_N "(cached) $ECHO_C" >&6
5215 else
5216   if test -n "$ac_ct_F77"; then
5217   ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
5218 else
5219 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5220 for as_dir in $PATH
5221 do
5222   IFS=$as_save_IFS
5223   test -z "$as_dir" && as_dir=.
5224   for ac_exec_ext in '' $ac_executable_extensions; do
5225   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5226     ac_cv_prog_ac_ct_F77="$ac_prog"
5227     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5228     break 2
5229   fi
5230 done
5231 done
5232
5233 fi
5234 fi
5235 ac_ct_F77=$ac_cv_prog_ac_ct_F77
5236 if test -n "$ac_ct_F77"; then
5237   echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
5238 echo "${ECHO_T}$ac_ct_F77" >&6
5239 else
5240   echo "$as_me:$LINENO: result: no" >&5
5241 echo "${ECHO_T}no" >&6
5242 fi
5243
5244   test -n "$ac_ct_F77" && break
5245 done
5246
5247   F77=$ac_ct_F77
5248 fi
5249
5250
5251 # Provide some information about the compiler.
5252 echo "$as_me:5252:" \
5253      "checking for Fortran 77 compiler version" >&5
5254 ac_compiler=`set X $ac_compile; echo $2`
5255 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
5256   (eval $ac_compiler --version </dev/null >&5) 2>&5
5257   ac_status=$?
5258   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5259   (exit $ac_status); }
5260 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
5261   (eval $ac_compiler -v </dev/null >&5) 2>&5
5262   ac_status=$?
5263   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5264   (exit $ac_status); }
5265 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
5266   (eval $ac_compiler -V </dev/null >&5) 2>&5
5267   ac_status=$?
5268   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5269   (exit $ac_status); }
5270
5271 # If we don't use `.F' as extension, the preprocessor is not run on the
5272 # input file.
5273 ac_save_ext=$ac_ext
5274 ac_ext=F
5275 echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
5276 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
5277 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
5278   echo $ECHO_N "(cached) $ECHO_C" >&6
5279 else
5280   cat >conftest.$ac_ext <<_ACEOF
5281       program main
5282 #ifndef __GNUC__
5283        choke me
5284 #endif
5285
5286       end
5287 _ACEOF
5288 rm -f conftest.$ac_objext
5289 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5290   (eval $ac_compile) 2>&5
5291   ac_status=$?
5292   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5293   (exit $ac_status); } &&
5294          { ac_try='test -s conftest.$ac_objext'
5295   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5296   (eval $ac_try) 2>&5
5297   ac_status=$?
5298   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5299   (exit $ac_status); }; }; then
5300   ac_compiler_gnu=yes
5301 else
5302   echo "$as_me: failed program was:" >&5
5303 sed 's/^/| /' conftest.$ac_ext >&5
5304
5305 ac_compiler_gnu=no
5306 fi
5307 rm -f conftest.$ac_objext conftest.$ac_ext
5308 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
5309
5310 fi
5311 echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
5312 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
5313 ac_ext=$ac_save_ext
5314 G77=`test $ac_compiler_gnu = yes && echo yes`
5315 ac_test_FFLAGS=${FFLAGS+set}
5316 ac_save_FFLAGS=$FFLAGS
5317 FFLAGS=
5318 echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
5319 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
5320 if test "${ac_cv_prog_f77_g+set}" = set; then
5321   echo $ECHO_N "(cached) $ECHO_C" >&6
5322 else
5323   FFLAGS=-g
5324 cat >conftest.$ac_ext <<_ACEOF
5325       program main
5326
5327       end
5328 _ACEOF
5329 rm -f conftest.$ac_objext
5330 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5331   (eval $ac_compile) 2>&5
5332   ac_status=$?
5333   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5334   (exit $ac_status); } &&
5335          { ac_try='test -s conftest.$ac_objext'
5336   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5337   (eval $ac_try) 2>&5
5338   ac_status=$?
5339   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5340   (exit $ac_status); }; }; then
5341   ac_cv_prog_f77_g=yes
5342 else
5343   echo "$as_me: failed program was:" >&5
5344 sed 's/^/| /' conftest.$ac_ext >&5
5345
5346 ac_cv_prog_f77_g=no
5347 fi
5348 rm -f conftest.$ac_objext conftest.$ac_ext
5349
5350 fi
5351 echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
5352 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
5353 if test "$ac_test_FFLAGS" = set; then
5354   FFLAGS=$ac_save_FFLAGS
5355 elif test $ac_cv_prog_f77_g = yes; then
5356   if test "$G77" = yes; then
5357     FFLAGS="-g -O2"
5358   else
5359     FFLAGS="-g"
5360   fi
5361 else
5362   if test "$G77" = yes; then
5363     FFLAGS="-O2"
5364   else
5365     FFLAGS=
5366   fi
5367 fi
5368 ac_ext=c
5369 ac_cpp='$CPP $CPPFLAGS'
5370 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5371 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5372 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5373
5374
5375
5376 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
5377
5378 # find the maximum length of command line arguments
5379 echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
5380 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
5381 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
5382   echo $ECHO_N "(cached) $ECHO_C" >&6
5383 else
5384     i=0
5385   testring="ABCD"
5386
5387   case $build_os in
5388   msdosdjgpp*)
5389     # On DJGPP, this test can blow up pretty badly due to problems in libc
5390     # (any single argument exceeding 2000 bytes causes a buffer overrun
5391     # during glob expansion).  Even if it were fixed, the result of this
5392     # check would be larger than it should be.
5393     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
5394     ;;
5395
5396   gnu*)
5397     # Under GNU Hurd, this test is not required because there is
5398     # no limit to the length of command line arguments.
5399     # Libtool will interpret -1 as no limit whatsoever
5400     lt_cv_sys_max_cmd_len=-1;
5401     ;;
5402
5403   cygwin* | mingw*)
5404     # On Win9x/ME, this test blows up -- it succeeds, but takes
5405     # about 5 minutes as the teststring grows exponentially.
5406     # Worse, since 9x/ME are not pre-emptively multitasking,
5407     # you end up with a "frozen" computer, even though with patience
5408     # the test eventually succeeds (with a max line length of 256k).
5409     # Instead, let's just punt: use the minimum linelength reported by
5410     # all of the supported platforms: 8192 (on NT/2K/XP).
5411     lt_cv_sys_max_cmd_len=8192;
5412     ;;
5413
5414  *)
5415     # If test is not a shell built-in, we'll probably end up computing a
5416     # maximum length that is only half of the actual maximum length, but
5417     # we can't tell.
5418     while (test "X"`$CONFIG_SHELL $0 --fallback-echo "X$testring" 2>/dev/null` \
5419                = "XX$testring") >/dev/null 2>&1 &&
5420             new_result=`expr "X$testring" : ".*" 2>&1` &&
5421             lt_cv_sys_max_cmd_len=$new_result &&
5422             test $i != 17 # 1/2 MB should be enough
5423     do
5424       i=`expr $i + 1`
5425       testring=$testring$testring
5426     done
5427     testring=
5428     # Add a significant safety factor because C++ compilers can tack on massive
5429     # amounts of additional arguments before passing them to the linker.
5430     # It appears as though 1/2 is a usable value.
5431     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5432     ;;
5433   esac
5434
5435 fi
5436
5437 if test -n $lt_cv_sys_max_cmd_len ; then
5438   echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
5439 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
5440 else
5441   echo "$as_me:$LINENO: result: none" >&5
5442 echo "${ECHO_T}none" >&6
5443 fi
5444
5445
5446
5447
5448 # Check for command to grab the raw symbol name followed by C symbol from nm.
5449 echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
5450 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
5451 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
5452   echo $ECHO_N "(cached) $ECHO_C" >&6
5453 else
5454
5455 # These are sane defaults that work on at least a few old systems.
5456 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
5457
5458 # Character class describing NM global symbol codes.
5459 symcode='[BCDEGRST]'
5460
5461 # Regexp to match symbols that can be accessed directly from C.
5462 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5463
5464 # Transform the above into a raw symbol and a C symbol.
5465 symxfrm='\1 \2\3 \3'
5466
5467 # Transform an extracted symbol line into a proper C declaration
5468 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
5469
5470 # Transform an extracted symbol line into symbol name and symbol address
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 # Define system-specific variables.
5474 case $host_os in
5475 aix*)
5476   symcode='[BCDT]'
5477   ;;
5478 cygwin* | mingw* | pw32*)
5479   symcode='[ABCDGISTW]'
5480   ;;
5481 hpux*) # Its linker distinguishes data from code symbols
5482   if test "$host_cpu" = ia64; then
5483     symcode='[ABCDEGRST]'
5484   fi
5485   lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5486   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'"
5487   ;;
5488 irix* | nonstopux*)
5489   symcode='[BCDEGRST]'
5490   ;;
5491 osf*)
5492   symcode='[BCDEGQRST]'
5493   ;;
5494 solaris* | sysv5*)
5495   symcode='[BDT]'
5496   ;;
5497 sysv4)
5498   symcode='[DFNSTU]'
5499   ;;
5500 esac
5501
5502 # Handle CRLF in mingw tool chain
5503 opt_cr=
5504 case $build_os in
5505 mingw*)
5506   opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5507   ;;
5508 esac
5509
5510 # If we're using GNU nm, then use its standard symbol codes.
5511 case `$NM -V 2>&1` in
5512 *GNU* | *'with BFD'*)
5513   symcode='[ABCDGISTW]' ;;
5514 esac
5515
5516 # Try without a prefix undercore, then with it.
5517 for ac_symprfx in "" "_"; do
5518
5519   # Write the raw and C identifiers.
5520   lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
5521
5522   # Check to see that the pipe works correctly.
5523   pipe_works=no
5524
5525   rm -f conftest*
5526   cat > conftest.$ac_ext <<EOF
5527 #ifdef __cplusplus
5528 extern "C" {
5529 #endif
5530 char nm_test_var;
5531 void nm_test_func(){}
5532 #ifdef __cplusplus
5533 }
5534 #endif
5535 int main(){nm_test_var='a';nm_test_func();return(0);}
5536 EOF
5537
5538   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5539   (eval $ac_compile) 2>&5
5540   ac_status=$?
5541   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5542   (exit $ac_status); }; then
5543     # Now try to grab the symbols.
5544     nlist=conftest.nm
5545     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
5546   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
5547   ac_status=$?
5548   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5549   (exit $ac_status); } && test -s "$nlist"; then
5550       # Try sorting and uniquifying the output.
5551       if sort "$nlist" | uniq > "$nlist"T; then
5552         mv -f "$nlist"T "$nlist"
5553       else
5554         rm -f "$nlist"T
5555       fi
5556
5557       # Make sure that we snagged all the symbols we need.
5558       if grep ' nm_test_var$' "$nlist" >/dev/null; then
5559         if grep ' nm_test_func$' "$nlist" >/dev/null; then
5560           cat <<EOF > conftest.$ac_ext
5561 #ifdef __cplusplus
5562 extern "C" {
5563 #endif
5564
5565 EOF
5566           # Now generate the symbol file.
5567           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
5568
5569           cat <<EOF >> conftest.$ac_ext
5570 #if defined (__STDC__) && __STDC__
5571 # define lt_ptr_t void *
5572 #else
5573 # define lt_ptr_t char *
5574 # define const
5575 #endif
5576
5577 /* The mapping between symbol names and symbols. */
5578 const struct {
5579   const char *name;
5580   lt_ptr_t address;
5581 }
5582 lt_preloaded_symbols[] =
5583 {
5584 EOF
5585           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
5586           cat <<\EOF >> conftest.$ac_ext
5587   {0, (lt_ptr_t) 0}
5588 };
5589
5590 #ifdef __cplusplus
5591 }
5592 #endif
5593 EOF
5594           # Now try linking the two files.
5595           mv conftest.$ac_objext conftstm.$ac_objext
5596           lt_save_LIBS="$LIBS"
5597           lt_save_CFLAGS="$CFLAGS"
5598           LIBS="conftstm.$ac_objext"
5599           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5600           if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5601   (eval $ac_link) 2>&5
5602   ac_status=$?
5603   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5604   (exit $ac_status); } && test -s conftest${ac_exeext}; then
5605             pipe_works=yes
5606           fi
5607           LIBS="$lt_save_LIBS"
5608           CFLAGS="$lt_save_CFLAGS"
5609         else
5610           echo "cannot find nm_test_func in $nlist" >&5
5611         fi
5612       else
5613         echo "cannot find nm_test_var in $nlist" >&5
5614       fi
5615     else
5616       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5617     fi
5618   else
5619     echo "$progname: failed program was:" >&5
5620     cat conftest.$ac_ext >&5
5621   fi
5622   rm -f conftest* conftst*
5623
5624   # Do not use the global_symbol_pipe unless it works.
5625   if test "$pipe_works" = yes; then
5626     break
5627   else
5628     lt_cv_sys_global_symbol_pipe=
5629   fi
5630 done
5631
5632 fi
5633
5634 if test -z "$lt_cv_sys_global_symbol_pipe"; then
5635   lt_cv_sys_global_symbol_to_cdecl=
5636 fi
5637 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5638   echo "$as_me:$LINENO: result: failed" >&5
5639 echo "${ECHO_T}failed" >&6
5640 else
5641   echo "$as_me:$LINENO: result: ok" >&5
5642 echo "${ECHO_T}ok" >&6
5643 fi
5644
5645 echo "$as_me:$LINENO: checking for objdir" >&5
5646 echo $ECHO_N "checking for objdir... $ECHO_C" >&6
5647 if test "${lt_cv_objdir+set}" = set; then
5648   echo $ECHO_N "(cached) $ECHO_C" >&6
5649 else
5650   rm -f .libs 2>/dev/null
5651 mkdir .libs 2>/dev/null
5652 if test -d .libs; then
5653   lt_cv_objdir=.libs
5654 else
5655   # MS-DOS does not allow filenames that begin with a dot.
5656   lt_cv_objdir=_libs
5657 fi
5658 rmdir .libs 2>/dev/null
5659 fi
5660 echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
5661 echo "${ECHO_T}$lt_cv_objdir" >&6
5662 objdir=$lt_cv_objdir
5663
5664
5665
5666
5667
5668 case $host_os in
5669 aix3*)
5670   # AIX sometimes has problems with the GCC collect2 program.  For some
5671   # reason, if we set the COLLECT_NAMES environment variable, the problems
5672   # vanish in a puff of smoke.
5673   if test "X${COLLECT_NAMES+set}" != Xset; then
5674     COLLECT_NAMES=
5675     export COLLECT_NAMES
5676   fi
5677   ;;
5678 esac
5679
5680 # Sed substitution that helps us do robust quoting.  It backslashifies
5681 # metacharacters that are still active within double-quoted strings.
5682 Xsed='sed -e s/^X//'
5683 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
5684
5685 # Same as above, but do not quote variable references.
5686 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
5687
5688 # Sed substitution to delay expansion of an escaped shell variable in a
5689 # double_quote_subst'ed string.
5690 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5691
5692 # Sed substitution to avoid accidental globbing in evaled expressions
5693 no_glob_subst='s/\*/\\\*/g'
5694
5695 # Constants:
5696 rm="rm -f"
5697
5698 # Global variables:
5699 default_ofile=mklib
5700 can_build_shared=yes
5701
5702 # All known linkers require a `.a' archive for static linking (except M$VC,
5703 # which needs '.lib').
5704 libext=a
5705 ltmain="$ac_aux_dir/ltmain.sh"
5706 ofile="$default_ofile"
5707 with_gnu_ld="$lt_cv_prog_gnu_ld"
5708
5709 if test -n "$ac_tool_prefix"; then
5710   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5711 set dummy ${ac_tool_prefix}ar; ac_word=$2
5712 echo "$as_me:$LINENO: checking for $ac_word" >&5
5713 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5714 if test "${ac_cv_prog_AR+set}" = set; then
5715   echo $ECHO_N "(cached) $ECHO_C" >&6
5716 else
5717   if test -n "$AR"; then
5718   ac_cv_prog_AR="$AR" # Let the user override the test.
5719 else
5720 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5721 for as_dir in $PATH
5722 do
5723   IFS=$as_save_IFS
5724   test -z "$as_dir" && as_dir=.
5725   for ac_exec_ext in '' $ac_executable_extensions; do
5726   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5727     ac_cv_prog_AR="${ac_tool_prefix}ar"
5728     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5729     break 2
5730   fi
5731 done
5732 done
5733
5734 fi
5735 fi
5736 AR=$ac_cv_prog_AR
5737 if test -n "$AR"; then
5738   echo "$as_me:$LINENO: result: $AR" >&5
5739 echo "${ECHO_T}$AR" >&6
5740 else
5741   echo "$as_me:$LINENO: result: no" >&5
5742 echo "${ECHO_T}no" >&6
5743 fi
5744
5745 fi
5746 if test -z "$ac_cv_prog_AR"; then
5747   ac_ct_AR=$AR
5748   # Extract the first word of "ar", so it can be a program name with args.
5749 set dummy ar; ac_word=$2
5750 echo "$as_me:$LINENO: checking for $ac_word" >&5
5751 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5752 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
5753   echo $ECHO_N "(cached) $ECHO_C" >&6
5754 else
5755   if test -n "$ac_ct_AR"; then
5756   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5757 else
5758 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5759 for as_dir in $PATH
5760 do
5761   IFS=$as_save_IFS
5762   test -z "$as_dir" && as_dir=.
5763   for ac_exec_ext in '' $ac_executable_extensions; do
5764   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5765     ac_cv_prog_ac_ct_AR="ar"
5766     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5767     break 2
5768   fi
5769 done
5770 done
5771
5772   test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
5773 fi
5774 fi
5775 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5776 if test -n "$ac_ct_AR"; then
5777   echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
5778 echo "${ECHO_T}$ac_ct_AR" >&6
5779 else
5780   echo "$as_me:$LINENO: result: no" >&5
5781 echo "${ECHO_T}no" >&6
5782 fi
5783
5784   AR=$ac_ct_AR
5785 else
5786   AR="$ac_cv_prog_AR"
5787 fi
5788
5789 if test -n "$ac_tool_prefix"; then
5790   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5791 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5792 echo "$as_me:$LINENO: checking for $ac_word" >&5
5793 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5794 if test "${ac_cv_prog_RANLIB+set}" = set; then
5795   echo $ECHO_N "(cached) $ECHO_C" >&6
5796 else
5797   if test -n "$RANLIB"; then
5798   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5799 else
5800 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5801 for as_dir in $PATH
5802 do
5803   IFS=$as_save_IFS
5804   test -z "$as_dir" && as_dir=.
5805   for ac_exec_ext in '' $ac_executable_extensions; do
5806   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5807     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5808     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5809     break 2
5810   fi
5811 done
5812 done
5813
5814 fi
5815 fi
5816 RANLIB=$ac_cv_prog_RANLIB
5817 if test -n "$RANLIB"; then
5818   echo "$as_me:$LINENO: result: $RANLIB" >&5
5819 echo "${ECHO_T}$RANLIB" >&6
5820 else
5821   echo "$as_me:$LINENO: result: no" >&5
5822 echo "${ECHO_T}no" >&6
5823 fi
5824
5825 fi
5826 if test -z "$ac_cv_prog_RANLIB"; then
5827   ac_ct_RANLIB=$RANLIB
5828   # Extract the first word of "ranlib", so it can be a program name with args.
5829 set dummy ranlib; ac_word=$2
5830 echo "$as_me:$LINENO: checking for $ac_word" >&5
5831 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5832 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5833   echo $ECHO_N "(cached) $ECHO_C" >&6
5834 else
5835   if test -n "$ac_ct_RANLIB"; then
5836   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5837 else
5838 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5839 for as_dir in $PATH
5840 do
5841   IFS=$as_save_IFS
5842   test -z "$as_dir" && as_dir=.
5843   for ac_exec_ext in '' $ac_executable_extensions; do
5844   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5845     ac_cv_prog_ac_ct_RANLIB="ranlib"
5846     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5847     break 2
5848   fi
5849 done
5850 done
5851
5852   test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
5853 fi
5854 fi
5855 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5856 if test -n "$ac_ct_RANLIB"; then
5857   echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5858 echo "${ECHO_T}$ac_ct_RANLIB" >&6
5859 else
5860   echo "$as_me:$LINENO: result: no" >&5
5861 echo "${ECHO_T}no" >&6
5862 fi
5863
5864   RANLIB=$ac_ct_RANLIB
5865 else
5866   RANLIB="$ac_cv_prog_RANLIB"
5867 fi
5868
5869 if test -n "$ac_tool_prefix"; then
5870   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5871 set dummy ${ac_tool_prefix}strip; ac_word=$2
5872 echo "$as_me:$LINENO: checking for $ac_word" >&5
5873 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5874 if test "${ac_cv_prog_STRIP+set}" = set; then
5875   echo $ECHO_N "(cached) $ECHO_C" >&6
5876 else
5877   if test -n "$STRIP"; then
5878   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5879 else
5880 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5881 for as_dir in $PATH
5882 do
5883   IFS=$as_save_IFS
5884   test -z "$as_dir" && as_dir=.
5885   for ac_exec_ext in '' $ac_executable_extensions; do
5886   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5887     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5888     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5889     break 2
5890   fi
5891 done
5892 done
5893
5894 fi
5895 fi
5896 STRIP=$ac_cv_prog_STRIP
5897 if test -n "$STRIP"; then
5898   echo "$as_me:$LINENO: result: $STRIP" >&5
5899 echo "${ECHO_T}$STRIP" >&6
5900 else
5901   echo "$as_me:$LINENO: result: no" >&5
5902 echo "${ECHO_T}no" >&6
5903 fi
5904
5905 fi
5906 if test -z "$ac_cv_prog_STRIP"; then
5907   ac_ct_STRIP=$STRIP
5908   # Extract the first word of "strip", so it can be a program name with args.
5909 set dummy strip; ac_word=$2
5910 echo "$as_me:$LINENO: checking for $ac_word" >&5
5911 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5912 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
5913   echo $ECHO_N "(cached) $ECHO_C" >&6
5914 else
5915   if test -n "$ac_ct_STRIP"; then
5916   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5917 else
5918 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5919 for as_dir in $PATH
5920 do
5921   IFS=$as_save_IFS
5922   test -z "$as_dir" && as_dir=.
5923   for ac_exec_ext in '' $ac_executable_extensions; do
5924   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5925     ac_cv_prog_ac_ct_STRIP="strip"
5926     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5927     break 2
5928   fi
5929 done
5930 done
5931
5932   test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
5933 fi
5934 fi
5935 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5936 if test -n "$ac_ct_STRIP"; then
5937   echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
5938 echo "${ECHO_T}$ac_ct_STRIP" >&6
5939 else
5940   echo "$as_me:$LINENO: result: no" >&5
5941 echo "${ECHO_T}no" >&6
5942 fi
5943
5944   STRIP=$ac_ct_STRIP
5945 else
5946   STRIP="$ac_cv_prog_STRIP"
5947 fi
5948
5949
5950 old_CC="$CC"
5951 old_CFLAGS="$CFLAGS"
5952
5953 # Set sane defaults for various variables
5954 test -z "$AR" && AR=ar
5955 test -z "$AR_FLAGS" && AR_FLAGS=cru
5956 test -z "$AS" && AS=as
5957 test -z "$CC" && CC=cc
5958 test -z "$LTCC" && LTCC=$CC
5959 test -z "$DLLTOOL" && DLLTOOL=dlltool
5960 test -z "$LD" && LD=ld
5961 test -z "$LN_S" && LN_S="ln -s"
5962 test -z "$MAGIC_CMD" && MAGIC_CMD=file
5963 test -z "$NM" && NM=nm
5964 test -z "$SED" && SED=sed
5965 test -z "$OBJDUMP" && OBJDUMP=objdump
5966 test -z "$RANLIB" && RANLIB=:
5967 test -z "$STRIP" && STRIP=:
5968 test -z "$ac_objext" && ac_objext=o
5969
5970 # Determine commands to create old-style static archives.
5971 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
5972 old_postinstall_cmds='chmod 644 $oldlib'
5973 old_postuninstall_cmds=
5974
5975 if test -n "$RANLIB"; then
5976   case $host_os in
5977   openbsd*)
5978     old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
5979     ;;
5980   *)
5981     old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
5982     ;;
5983   esac
5984   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
5985 fi
5986
5987 # Only perform the check for file, if the check method requires it
5988 case $deplibs_check_method in
5989 file_magic*)
5990   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
5991     echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
5992 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
5993 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
5994   echo $ECHO_N "(cached) $ECHO_C" >&6
5995 else
5996   case $MAGIC_CMD in
5997 [\\/*] |  ?:[\\/]*)
5998   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
5999   ;;
6000 *)
6001   lt_save_MAGIC_CMD="$MAGIC_CMD"
6002   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6003   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6004   for ac_dir in $ac_dummy; do
6005     IFS="$lt_save_ifs"
6006     test -z "$ac_dir" && ac_dir=.
6007     if test -f $ac_dir/${ac_tool_prefix}file; then
6008       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
6009       if test -n "$file_magic_test_file"; then
6010         case $deplibs_check_method in
6011         "file_magic "*)
6012           file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
6013           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6014           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6015             $EGREP "$file_magic_regex" > /dev/null; then
6016             :
6017           else
6018             cat <<EOF 1>&2
6019
6020 *** Warning: the command libtool uses to detect shared libraries,
6021 *** $file_magic_cmd, produces output that libtool cannot recognize.
6022 *** The result is that libtool may fail to recognize shared libraries
6023 *** as such.  This will affect the creation of libtool libraries that
6024 *** depend on shared libraries, but programs linked with such libtool
6025 *** libraries will work regardless of this problem.  Nevertheless, you
6026 *** may want to report the problem to your system manager and/or to
6027 *** bug-libtool@gnu.org
6028
6029 EOF
6030           fi ;;
6031         esac
6032       fi
6033       break
6034     fi
6035   done
6036   IFS="$lt_save_ifs"
6037   MAGIC_CMD="$lt_save_MAGIC_CMD"
6038   ;;
6039 esac
6040 fi
6041
6042 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6043 if test -n "$MAGIC_CMD"; then
6044   echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6045 echo "${ECHO_T}$MAGIC_CMD" >&6
6046 else
6047   echo "$as_me:$LINENO: result: no" >&5
6048 echo "${ECHO_T}no" >&6
6049 fi
6050
6051 if test -z "$lt_cv_path_MAGIC_CMD"; then
6052   if test -n "$ac_tool_prefix"; then
6053     echo "$as_me:$LINENO: checking for file" >&5
6054 echo $ECHO_N "checking for file... $ECHO_C" >&6
6055 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6056   echo $ECHO_N "(cached) $ECHO_C" >&6
6057 else
6058   case $MAGIC_CMD in
6059 [\\/*] |  ?:[\\/]*)
6060   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6061   ;;
6062 *)
6063   lt_save_MAGIC_CMD="$MAGIC_CMD"
6064   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6065   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6066   for ac_dir in $ac_dummy; do
6067     IFS="$lt_save_ifs"
6068     test -z "$ac_dir" && ac_dir=.
6069     if test -f $ac_dir/file; then
6070       lt_cv_path_MAGIC_CMD="$ac_dir/file"
6071       if test -n "$file_magic_test_file"; then
6072         case $deplibs_check_method in
6073         "file_magic "*)
6074           file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
6075           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6076           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6077             $EGREP "$file_magic_regex" > /dev/null; then
6078             :
6079           else
6080             cat <<EOF 1>&2
6081
6082 *** Warning: the command libtool uses to detect shared libraries,
6083 *** $file_magic_cmd, produces output that libtool cannot recognize.
6084 *** The result is that libtool may fail to recognize shared libraries
6085 *** as such.  This will affect the creation of libtool libraries that
6086 *** depend on shared libraries, but programs linked with such libtool
6087 *** libraries will work regardless of this problem.  Nevertheless, you
6088 *** may want to report the problem to your system manager and/or to
6089 *** bug-libtool@gnu.org
6090
6091 EOF
6092           fi ;;
6093         esac
6094       fi
6095       break
6096     fi
6097   done
6098   IFS="$lt_save_ifs"
6099   MAGIC_CMD="$lt_save_MAGIC_CMD"
6100   ;;
6101 esac
6102 fi
6103
6104 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6105 if test -n "$MAGIC_CMD"; then
6106   echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6107 echo "${ECHO_T}$MAGIC_CMD" >&6
6108 else
6109   echo "$as_me:$LINENO: result: no" >&5
6110 echo "${ECHO_T}no" >&6
6111 fi
6112
6113   else
6114     MAGIC_CMD=:
6115   fi
6116 fi
6117
6118   fi
6119   ;;
6120 esac
6121
6122 enable_dlopen=no
6123 enable_win32_dll=no
6124
6125 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
6126 if test "${enable_libtool_lock+set}" = set; then
6127   enableval="$enable_libtool_lock"
6128
6129 fi;
6130 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6131
6132
6133 # Check whether --with-pic or --without-pic was given.
6134 if test "${with_pic+set}" = set; then
6135   withval="$with_pic"
6136   pic_mode="$withval"
6137 else
6138   pic_mode=default
6139 fi;
6140 test -z "$pic_mode" && pic_mode=default
6141
6142 # Use C for the default configuration in the libtool script
6143 tagname=
6144 lt_save_CC="$CC"
6145 ac_ext=c
6146 ac_cpp='$CPP $CPPFLAGS'
6147 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6148 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6149 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6150
6151
6152 # Source file extension for C test sources.
6153 ac_ext=c
6154
6155 # Object file extension for compiled C test sources.
6156 objext=o
6157 objext=$objext
6158
6159 # Code to be used in simple compile tests
6160 lt_simple_compile_test_code="int some_variable = 0;\n"
6161
6162 # Code to be used in simple link tests
6163 lt_simple_link_test_code='int main(){return(0);}\n'
6164
6165
6166 # If no C compiler was specified, use CC.
6167 LTCC=${LTCC-"$CC"}
6168
6169 # Allow CC to be a program name with arguments.
6170 compiler=$CC
6171
6172
6173 #
6174 # Check for any special shared library compilation flags.
6175 #
6176 lt_prog_cc_shlib=
6177 if test "$GCC" = no; then
6178   case $host_os in
6179   sco3.2v5*)
6180     lt_prog_cc_shlib='-belf'
6181     ;;
6182   esac
6183 fi
6184 if test -n "$lt_prog_cc_shlib"; then
6185   { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5
6186 echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;}
6187   if echo "$old_CC $old_CFLAGS " | grep "[      ]$lt_prog_cc_shlib[     ]" >/dev/null; then :
6188   else
6189     { echo "$as_me:$LINENO: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
6190 echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
6191     lt_cv_prog_cc_can_build_shared=no
6192   fi
6193 fi
6194
6195
6196 #
6197 # Check to make sure the static flag actually works.
6198 #
6199 echo "$as_me:$LINENO: checking if $compiler static flag $lt_prog_compiler_static works" >&5
6200 echo $ECHO_N "checking if $compiler static flag $lt_prog_compiler_static works... $ECHO_C" >&6
6201 if test "${lt_prog_compiler_static_works+set}" = set; then
6202   echo $ECHO_N "(cached) $ECHO_C" >&6
6203 else
6204   lt_prog_compiler_static_works=no
6205    save_LDFLAGS="$LDFLAGS"
6206    LDFLAGS="$LDFLAGS $lt_prog_compiler_static"
6207    printf "$lt_simple_link_test_code" > conftest.$ac_ext
6208    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
6209      # The compiler can only warn and ignore the option if not recognized
6210      # So say no if there are warnings
6211      if test -s conftest.err; then
6212        # Append any errors to the config.log.
6213        cat conftest.err 1>&5
6214      else
6215        lt_prog_compiler_static_works=yes
6216      fi
6217    fi
6218    $rm conftest*
6219    LDFLAGS="$save_LDFLAGS"
6220
6221 fi
6222 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
6223 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
6224
6225 if test x"$lt_prog_compiler_static_works" = xyes; then
6226     :
6227 else
6228     lt_prog_compiler_static=
6229 fi
6230
6231
6232
6233 ## CAVEAT EMPTOR:
6234 ## There is no encapsulation within the following macros, do not change
6235 ## the running order or otherwise move them around unless you know exactly
6236 ## what you are doing...
6237
6238 lt_prog_compiler_no_builtin_flag=
6239
6240 if test "$GCC" = yes; then
6241   lt_prog_compiler_no_builtin_flag=' -fno-builtin'
6242
6243   echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
6244 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
6245 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
6246   echo $ECHO_N "(cached) $ECHO_C" >&6
6247 else
6248   lt_cv_prog_compiler_rtti_exceptions=no
6249   ac_outfile=conftest.$ac_objext
6250    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6251    lt_compiler_flag="-fno-rtti -fno-exceptions"
6252    # Insert the option either (1) after the last *FLAGS variable, or
6253    # (2) before a word containing "conftest.", or (3) at the end.
6254    # Note that $ac_compile itself does not contain backslashes and begins
6255    # with a dollar sign (not a hyphen), so the echo should work correctly.
6256    # The option is referenced via a variable to avoid confusing sed.
6257    lt_compile=`echo "$ac_compile" | $SED \
6258    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
6259    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6260    -e 's:$: $lt_compiler_flag:'`
6261    (eval echo "\"\$as_me:6261: $lt_compile\"" >&5)
6262    (eval "$lt_compile" 2>conftest.err)
6263    ac_status=$?
6264    cat conftest.err >&5
6265    echo "$as_me:6265: \$? = $ac_status" >&5
6266    if (exit $ac_status) && test -s "$ac_outfile"; then
6267      # The compiler can only warn and ignore the option if not recognized
6268      # So say no if there are warnings
6269      if test ! -s conftest.err; then
6270        lt_cv_prog_compiler_rtti_exceptions=yes
6271      fi
6272    fi
6273    $rm conftest*
6274
6275 fi
6276 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
6277 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
6278
6279 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
6280     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
6281 else
6282     :
6283 fi
6284
6285 fi
6286
6287 lt_prog_compiler_wl=
6288 lt_prog_compiler_pic=
6289 lt_prog_compiler_static=
6290
6291 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
6292 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
6293
6294   if test "$GCC" = yes; then
6295     lt_prog_compiler_wl='-Wl,'
6296     lt_prog_compiler_static='-static'
6297
6298     case $host_os in
6299       aix*)
6300       # All AIX code is PIC.
6301       if test "$host_cpu" = ia64; then
6302         # AIX 5 now supports IA64 processor
6303         lt_prog_compiler_static='-Bstatic'
6304       fi
6305       ;;
6306
6307     amigaos*)
6308       # FIXME: we need at least 68020 code to build shared libraries, but
6309       # adding the `-m68020' flag to GCC prevents building anything better,
6310       # like `-m68040'.
6311       lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
6312       ;;
6313
6314     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
6315       # PIC is the default for these OSes.
6316       ;;
6317
6318     mingw* | pw32* | os2*)
6319       # This hack is so that the source file can tell whether it is being
6320       # built for inclusion in a dll (and should export symbols for example).
6321       lt_prog_compiler_pic='-DDLL_EXPORT'
6322       ;;
6323
6324     darwin* | rhapsody*)
6325       # PIC is the default on this platform
6326       # Common symbols not allowed in MH_DYLIB files
6327       lt_prog_compiler_pic='-fno-common'
6328       ;;
6329
6330     msdosdjgpp*)
6331       # Just because we use GCC doesn't mean we suddenly get shared libraries
6332       # on systems that don't support them.
6333       lt_prog_compiler_can_build_shared=no
6334       enable_shared=no
6335       ;;
6336
6337     sysv4*MP*)
6338       if test -d /usr/nec; then
6339         lt_prog_compiler_pic=-Kconform_pic
6340       fi
6341       ;;
6342
6343     hpux*)
6344       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6345       # not for PA HP-UX.
6346       case "$host_cpu" in
6347       hppa*64*|ia64*)
6348         # +Z the default
6349         ;;
6350       *)
6351         lt_prog_compiler_pic='-fPIC'
6352         ;;
6353       esac
6354       ;;
6355
6356     *)
6357       lt_prog_compiler_pic='-fPIC'
6358       ;;
6359     esac
6360   else
6361     # PORTME Check for flag to pass linker flags through the system compiler.
6362     case $host_os in
6363     aix*)
6364       lt_prog_compiler_wl='-Wl,'
6365       if test "$host_cpu" = ia64; then
6366         # AIX 5 now supports IA64 processor
6367         lt_prog_compiler_static='-Bstatic'
6368       else
6369         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
6370       fi
6371       ;;
6372
6373     mingw* | pw32* | os2*)
6374       # This hack is so that the source file can tell whether it is being
6375       # built for inclusion in a dll (and should export symbols for example).
6376       lt_prog_compiler_pic='-DDLL_EXPORT'
6377       ;;
6378
6379     hpux9* | hpux10* | hpux11*)
6380       lt_prog_compiler_wl='-Wl,'
6381       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6382       # not for PA HP-UX.
6383       case "$host_cpu" in
6384       hppa*64*|ia64*)
6385         # +Z the default
6386         ;;
6387       *)
6388         lt_prog_compiler_pic='+Z'
6389         ;;
6390       esac
6391       # Is there a better lt_prog_compiler_static that works with the bundled CC?
6392       lt_prog_compiler_static='${wl}-a ${wl}archive'
6393       ;;
6394
6395     irix5* | irix6* | nonstopux*)
6396       lt_prog_compiler_wl='-Wl,'
6397       # PIC (with -KPIC) is the default.
6398       lt_prog_compiler_static='-non_shared'
6399       ;;
6400
6401     newsos6)
6402       lt_prog_compiler_pic='-KPIC'
6403       lt_prog_compiler_static='-Bstatic'
6404       ;;
6405
6406     linux*)
6407       case $CC in
6408       icc|ecc)
6409         lt_prog_compiler_wl='-Wl,'
6410         lt_prog_compiler_pic='-KPIC'
6411         lt_prog_compiler_static='-static'
6412         ;;
6413       ccc)
6414         lt_prog_compiler_wl='-Wl,'
6415         # All Alpha code is PIC.
6416         lt_prog_compiler_static='-non_shared'
6417         ;;
6418       esac
6419       ;;
6420
6421     osf3* | osf4* | osf5*)
6422       lt_prog_compiler_wl='-Wl,'
6423       # All OSF/1 code is PIC.
6424       lt_prog_compiler_static='-non_shared'
6425       ;;
6426
6427     sco3.2v5*)
6428       lt_prog_compiler_pic='-Kpic'
6429       lt_prog_compiler_static='-dn'
6430       ;;
6431
6432     solaris*)
6433       lt_prog_compiler_wl='-Wl,'
6434       lt_prog_compiler_pic='-KPIC'
6435       lt_prog_compiler_static='-Bstatic'
6436       ;;
6437
6438     sunos4*)
6439       lt_prog_compiler_wl='-Qoption ld '
6440       lt_prog_compiler_pic='-PIC'
6441       lt_prog_compiler_static='-Bstatic'
6442       ;;
6443
6444     sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
6445       lt_prog_compiler_wl='-Wl,'
6446       lt_prog_compiler_pic='-KPIC'
6447       lt_prog_compiler_static='-Bstatic'
6448       ;;
6449
6450     sysv4*MP*)
6451       if test -d /usr/nec ;then
6452         lt_prog_compiler_pic='-Kconform_pic'
6453         lt_prog_compiler_static='-Bstatic'
6454       fi
6455       ;;
6456
6457     uts4*)
6458       lt_prog_compiler_pic='-pic'
6459       lt_prog_compiler_static='-Bstatic'
6460       ;;
6461
6462     *)
6463       lt_prog_compiler_can_build_shared=no
6464       ;;
6465     esac
6466   fi
6467
6468 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
6469 echo "${ECHO_T}$lt_prog_compiler_pic" >&6
6470
6471 #
6472 # Check to make sure the PIC flag actually works.
6473 #
6474 if test -n "$lt_prog_compiler_pic"; then
6475   echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
6476 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
6477 if test "${lt_prog_compiler_pic_works+set}" = set; then
6478   echo $ECHO_N "(cached) $ECHO_C" >&6
6479 else
6480   lt_prog_compiler_pic_works=no
6481   ac_outfile=conftest.$ac_objext
6482    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6483    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
6484    # Insert the option either (1) after the last *FLAGS variable, or
6485    # (2) before a word containing "conftest.", or (3) at the end.
6486    # Note that $ac_compile itself does not contain backslashes and begins
6487    # with a dollar sign (not a hyphen), so the echo should work correctly.
6488    # The option is referenced via a variable to avoid confusing sed.
6489    lt_compile=`echo "$ac_compile" | $SED \
6490    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
6491    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6492    -e 's:$: $lt_compiler_flag:'`
6493    (eval echo "\"\$as_me:6493: $lt_compile\"" >&5)
6494    (eval "$lt_compile" 2>conftest.err)
6495    ac_status=$?
6496    cat conftest.err >&5
6497    echo "$as_me:6497: \$? = $ac_status" >&5
6498    if (exit $ac_status) && test -s "$ac_outfile"; then
6499      # The compiler can only warn and ignore the option if not recognized
6500      # So say no if there are warnings
6501      if test ! -s conftest.err; then
6502        lt_prog_compiler_pic_works=yes
6503      fi
6504    fi
6505    $rm conftest*
6506
6507 fi
6508 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
6509 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
6510
6511 if test x"$lt_prog_compiler_pic_works" = xyes; then
6512     case $lt_prog_compiler_pic in
6513      "" | " "*) ;;
6514      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
6515      esac
6516 else
6517     lt_prog_compiler_pic=
6518      lt_prog_compiler_can_build_shared=no
6519 fi
6520
6521 fi
6522 case "$host_os" in
6523   # For platforms which do not support PIC, -DPIC is meaningless:
6524   *djgpp*)
6525     lt_prog_compiler_pic=
6526     ;;
6527   *)
6528     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
6529     ;;
6530 esac
6531
6532 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
6533 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
6534 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
6535   echo $ECHO_N "(cached) $ECHO_C" >&6
6536 else
6537   lt_cv_prog_compiler_c_o=no
6538    $rm -r conftest 2>/dev/null
6539    mkdir conftest
6540    cd conftest
6541    mkdir out
6542    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6543
6544    # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
6545    # that will create temporary files in the current directory regardless of
6546    # the output directory.  Thus, making CWD read-only will cause this test
6547    # to fail, enabling locking or at least warning the user not to do parallel
6548    # builds.
6549    chmod -w .
6550
6551    lt_compiler_flag="-o out/conftest2.$ac_objext"
6552    # Insert the option either (1) after the last *FLAGS variable, or
6553    # (2) before a word containing "conftest.", or (3) at the end.
6554    # Note that $ac_compile itself does not contain backslashes and begins
6555    # with a dollar sign (not a hyphen), so the echo should work correctly.
6556    lt_compile=`echo "$ac_compile" | $SED \
6557    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
6558    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6559    -e 's:$: $lt_compiler_flag:'`
6560    (eval echo "\"\$as_me:6560: $lt_compile\"" >&5)
6561    (eval "$lt_compile" 2>out/conftest.err)
6562    ac_status=$?
6563    cat out/conftest.err >&5
6564    echo "$as_me:6564: \$? = $ac_status" >&5
6565    if (exit $ac_status) && test -s out/conftest2.$ac_objext
6566    then
6567      # The compiler can only warn and ignore the option if not recognized
6568      # So say no if there are warnings
6569      if test ! -s out/conftest.err; then
6570        lt_cv_prog_compiler_c_o=yes
6571      fi
6572    fi
6573    chmod u+w .
6574    $rm conftest* out/*
6575    rmdir out
6576    cd ..
6577    rmdir conftest
6578    $rm conftest*
6579
6580 fi
6581 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
6582 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
6583
6584
6585 hard_links="nottested"
6586 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
6587   # do not overwrite the value of need_locks provided by the user
6588   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
6589 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
6590   hard_links=yes
6591   $rm conftest*
6592   ln conftest.a conftest.b 2>/dev/null && hard_links=no
6593   touch conftest.a
6594   ln conftest.a conftest.b 2>&5 || hard_links=no
6595   ln conftest.a conftest.b 2>/dev/null && hard_links=no
6596   echo "$as_me:$LINENO: result: $hard_links" >&5
6597 echo "${ECHO_T}$hard_links" >&6
6598   if test "$hard_links" = no; then
6599     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
6600 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
6601     need_locks=warn
6602   fi
6603 else
6604   need_locks=no
6605 fi
6606
6607 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
6608 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
6609
6610   runpath_var=
6611   allow_undefined_flag=
6612   enable_shared_with_static_runtimes=no
6613   archive_cmds=
6614   archive_expsym_cmds=
6615   old_archive_From_new_cmds=
6616   old_archive_from_expsyms_cmds=
6617   export_dynamic_flag_spec=
6618   whole_archive_flag_spec=
6619   thread_safe_flag_spec=
6620   hardcode_libdir_flag_spec=
6621   hardcode_libdir_flag_spec_ld=
6622   hardcode_libdir_separator=
6623   hardcode_direct=no
6624   hardcode_minus_L=no
6625   hardcode_shlibpath_var=unsupported
6626   link_all_deplibs=unknown
6627   hardcode_automatic=no
6628   module_cmds=
6629   module_expsym_cmds=
6630   always_export_symbols=no
6631   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
6632   # include_expsyms should be a list of space-separated symbols to be *always*
6633   # included in the symbol list
6634   include_expsyms=
6635   # exclude_expsyms can be an extended regexp of symbols to exclude
6636   # it will be wrapped by ` (' and `)$', so one must not match beginning or
6637   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
6638   # as well as any symbol that contains `d'.
6639   exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
6640   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
6641   # platforms (ab)use it in PIC code, but their linkers get confused if
6642   # the symbol is explicitly referenced.  Since portable code cannot
6643   # rely on this symbol name, it's probably fine to never include it in
6644   # preloaded symbol tables.
6645   extract_expsyms_cmds=
6646
6647   case $host_os in
6648   cygwin* | mingw* | pw32*)
6649     # FIXME: the MSVC++ port hasn't been tested in a loooong time
6650     # When not using gcc, we currently assume that we are using
6651     # Microsoft Visual C++.
6652     if test "$GCC" != yes; then
6653       with_gnu_ld=no
6654     fi
6655     ;;
6656   openbsd*)
6657     with_gnu_ld=no
6658     ;;
6659   esac
6660
6661   ld_shlibs=yes
6662   if test "$with_gnu_ld" = yes; then
6663     # If archive_cmds runs LD, not CC, wlarc should be empty
6664     wlarc='${wl}'
6665
6666     # See if GNU ld supports shared libraries.
6667     case $host_os in
6668     aix3* | aix4* | aix5*)
6669       # On AIX/PPC, the GNU linker is very broken
6670       if test "$host_cpu" != ia64; then
6671         ld_shlibs=no
6672         cat <<EOF 1>&2
6673
6674 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
6675 *** to be unable to reliably create shared libraries on AIX.
6676 *** Therefore, libtool is disabling shared libraries support.  If you
6677 *** really care for shared libraries, you may want to modify your PATH
6678 *** so that a non-GNU linker is found, and then restart.
6679
6680 EOF
6681       fi
6682       ;;
6683
6684     amigaos*)
6685       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)'
6686       hardcode_libdir_flag_spec='-L$libdir'
6687       hardcode_minus_L=yes
6688
6689       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
6690       # that the semantics of dynamic libraries on AmigaOS, at least up
6691       # to version 4, is to share data among multiple programs linked
6692       # with the same dynamic library.  Since this doesn't match the
6693       # behavior of shared libraries on other platforms, we can't use
6694       # them.
6695       ld_shlibs=no
6696       ;;
6697
6698     beos*)
6699       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6700         allow_undefined_flag=unsupported
6701         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
6702         # support --undefined.  This deserves some investigation.  FIXME
6703         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6704       else
6705         ld_shlibs=no
6706       fi
6707       ;;
6708
6709     cygwin* | mingw* | pw32*)
6710       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
6711       # as there is no search path for DLLs.
6712       hardcode_libdir_flag_spec='-L$libdir'
6713       allow_undefined_flag=unsupported
6714       always_export_symbols=no
6715       enable_shared_with_static_runtimes=yes
6716       export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
6717
6718       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
6719         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
6720         # If the export-symbols file already is a .def file (1st line
6721         # is EXPORTS), use it as is; otherwise, prepend...
6722         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
6723           cp $export_symbols $output_objdir/$soname.def;
6724         else
6725           echo EXPORTS > $output_objdir/$soname.def;
6726           cat $export_symbols >> $output_objdir/$soname.def;
6727         fi~
6728         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
6729       else
6730         ld_shlibs=no
6731       fi
6732       ;;
6733
6734     netbsd*)
6735       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6736         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
6737         wlarc=
6738       else
6739         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6740         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6741       fi
6742       ;;
6743
6744     solaris* | sysv5*)
6745       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
6746         ld_shlibs=no
6747         cat <<EOF 1>&2
6748
6749 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
6750 *** create shared libraries on Solaris systems.  Therefore, libtool
6751 *** is disabling shared libraries support.  We urge you to upgrade GNU
6752 *** binutils to release 2.9.1 or newer.  Another option is to modify
6753 *** your PATH or compiler configuration so that the native linker is
6754 *** used, and then restart.
6755
6756 EOF
6757       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6758         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6759         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6760       else
6761         ld_shlibs=no
6762       fi
6763       ;;
6764
6765     sunos4*)
6766       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6767       wlarc=
6768       hardcode_direct=yes
6769       hardcode_shlibpath_var=no
6770       ;;
6771
6772     *)
6773       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6774         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6775         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6776       else
6777         ld_shlibs=no
6778       fi
6779       ;;
6780     esac
6781
6782     if test "$ld_shlibs" = yes; then
6783       runpath_var=LD_RUN_PATH
6784       hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
6785       export_dynamic_flag_spec='${wl}--export-dynamic'
6786       # ancient GNU ld didn't support --whole-archive et. al.
6787       if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
6788         whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
6789       else
6790         whole_archive_flag_spec=
6791       fi
6792     fi
6793   else
6794     # PORTME fill in a description of your system's linker (not GNU ld)
6795     case $host_os in
6796     aix3*)
6797       allow_undefined_flag=unsupported
6798       always_export_symbols=yes
6799       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'
6800       # Note: this linker hardcodes the directories in LIBPATH if there
6801       # are no directories specified by -L.
6802       hardcode_minus_L=yes
6803       if test "$GCC" = yes && test -z "$link_static_flag"; then
6804         # Neither direct hardcoding nor static linking is supported with a
6805         # broken collect2.
6806         hardcode_direct=unsupported
6807       fi
6808       ;;
6809
6810     aix4* | aix5*)
6811       if test "$host_cpu" = ia64; then
6812         # On IA64, the linker does run time linking by default, so we don't
6813         # have to do anything special.
6814         aix_use_runtimelinking=no
6815         exp_sym_flag='-Bexport'
6816         no_entry_flag=""
6817       else
6818         # If we're using GNU nm, then we don't want the "-C" option.
6819         # -C means demangle to AIX nm, but means don't demangle with GNU nm
6820         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
6821           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'
6822         else
6823           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'
6824         fi
6825         aix_use_runtimelinking=no
6826
6827         # Test if we are trying to use run time linking or normal
6828         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
6829         # need to do runtime linking.
6830         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
6831           for ld_flag in $LDFLAGS; do
6832           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
6833             aix_use_runtimelinking=yes
6834             break
6835           fi
6836           done
6837         esac
6838
6839         exp_sym_flag='-bexport'
6840         no_entry_flag='-bnoentry'
6841       fi
6842
6843       # When large executables or shared objects are built, AIX ld can
6844       # have problems creating the table of contents.  If linking a library
6845       # or program results in "error TOC overflow" add -mminimal-toc to
6846       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
6847       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
6848
6849       archive_cmds=''
6850       hardcode_direct=yes
6851       hardcode_libdir_separator=':'
6852       link_all_deplibs=yes
6853
6854       if test "$GCC" = yes; then
6855         case $host_os in aix4.012|aix4.012.*)
6856         # We only want to do this on AIX 4.2 and lower, the check
6857         # below for broken collect2 doesn't work under 4.3+
6858           collect2name=`${CC} -print-prog-name=collect2`
6859           if test -f "$collect2name" && \
6860            strings "$collect2name" | grep resolve_lib_name >/dev/null
6861           then
6862           # We have reworked collect2
6863           hardcode_direct=yes
6864           else
6865           # We have old collect2
6866           hardcode_direct=unsupported
6867           # It fails to find uninstalled libraries when the uninstalled
6868           # path is not listed in the libpath.  Setting hardcode_minus_L
6869           # to unsupported forces relinking
6870           hardcode_minus_L=yes
6871           hardcode_libdir_flag_spec='-L$libdir'
6872           hardcode_libdir_separator=
6873           fi
6874         esac
6875         shared_flag='-shared'
6876       else
6877         # not using gcc
6878         if test "$host_cpu" = ia64; then
6879         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
6880         # chokes on -Wl,-G. The following line is correct:
6881           shared_flag='-G'
6882         else
6883         if test "$aix_use_runtimelinking" = yes; then
6884             shared_flag='${wl}-G'
6885           else
6886             shared_flag='${wl}-bM:SRE'
6887         fi
6888         fi
6889       fi
6890
6891       # It seems that -bexpall does not export symbols beginning with
6892       # underscore (_), so it is better to generate a list of symbols to export.
6893       always_export_symbols=yes
6894       if test "$aix_use_runtimelinking" = yes; then
6895         # Warning - without using the other runtime loading flags (-brtl),
6896         # -berok will link without error, but may produce a broken library.
6897         allow_undefined_flag='-berok'
6898        # Determine the default libpath from the value encoded in an empty executable.
6899        cat >conftest.$ac_ext <<_ACEOF
6900 #line $LINENO "configure"
6901 /* confdefs.h.  */
6902 _ACEOF
6903 cat confdefs.h >>conftest.$ac_ext
6904 cat >>conftest.$ac_ext <<_ACEOF
6905 /* end confdefs.h.  */
6906
6907 int
6908 main ()
6909 {
6910
6911   ;
6912   return 0;
6913 }
6914 _ACEOF
6915 rm -f conftest.$ac_objext conftest$ac_exeext
6916 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6917   (eval $ac_link) 2>&5
6918   ac_status=$?
6919   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6920   (exit $ac_status); } &&
6921          { ac_try='test -s conftest$ac_exeext'
6922   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6923   (eval $ac_try) 2>&5
6924   ac_status=$?
6925   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6926   (exit $ac_status); }; }; then
6927
6928 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
6929 }'`
6930 # Check for a 64-bit object if we didn't find anything.
6931 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; }
6932 }'`; fi
6933 else
6934   echo "$as_me: failed program was:" >&5
6935 sed 's/^/| /' conftest.$ac_ext >&5
6936
6937 fi
6938 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6939 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
6940
6941        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
6942         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"
6943        else
6944         if test "$host_cpu" = ia64; then
6945           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
6946           allow_undefined_flag="-z nodefs"
6947           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"
6948         else
6949          # Determine the default libpath from the value encoded in an empty executable.
6950          cat >conftest.$ac_ext <<_ACEOF
6951 #line $LINENO "configure"
6952 /* confdefs.h.  */
6953 _ACEOF
6954 cat confdefs.h >>conftest.$ac_ext
6955 cat >>conftest.$ac_ext <<_ACEOF
6956 /* end confdefs.h.  */
6957
6958 int
6959 main ()
6960 {
6961
6962   ;
6963   return 0;
6964 }
6965 _ACEOF
6966 rm -f conftest.$ac_objext conftest$ac_exeext
6967 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6968   (eval $ac_link) 2>&5
6969   ac_status=$?
6970   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6971   (exit $ac_status); } &&
6972          { ac_try='test -s conftest$ac_exeext'
6973   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6974   (eval $ac_try) 2>&5
6975   ac_status=$?
6976   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6977   (exit $ac_status); }; }; then
6978
6979 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
6980 }'`
6981 # Check for a 64-bit object if we didn't find anything.
6982 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; }
6983 }'`; fi
6984 else
6985   echo "$as_me: failed program was:" >&5
6986 sed 's/^/| /' conftest.$ac_ext >&5
6987
6988 fi
6989 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6990 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
6991
6992          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
6993           # Warning - without using the other run time loading flags,
6994           # -berok will link without error, but may produce a broken library.
6995           no_undefined_flag=' ${wl}-bernotok'
6996           allow_undefined_flag=' ${wl}-berok'
6997           # -bexpall does not export symbols beginning with underscore (_)
6998           always_export_symbols=yes
6999           # Exported symbols can be pulled into shared objects from archives
7000           whole_archive_flag_spec=' '
7001           archive_cmds_need_lc=yes
7002           # This is similar to how AIX traditionally builds it's shared libraries.
7003           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'
7004         fi
7005       fi
7006       ;;
7007
7008     amigaos*)
7009       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)'
7010       hardcode_libdir_flag_spec='-L$libdir'
7011       hardcode_minus_L=yes
7012       # see comment about different semantics on the GNU ld section
7013       ld_shlibs=no
7014       ;;
7015
7016     bsdi4*)
7017       export_dynamic_flag_spec=-rdynamic
7018       ;;
7019
7020     cygwin* | mingw* | pw32*)
7021       # When not using gcc, we currently assume that we are using
7022       # Microsoft Visual C++.
7023       # hardcode_libdir_flag_spec is actually meaningless, as there is
7024       # no search path for DLLs.
7025       hardcode_libdir_flag_spec=' '
7026       allow_undefined_flag=unsupported
7027       # Tell ltmain to make .lib files, not .a files.
7028       libext=lib
7029       # Tell ltmain to make .dll files, not .so files.
7030       shrext=".dll"
7031       # FIXME: Setting linknames here is a bad hack.
7032       archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
7033       # The linker will automatically build a .lib file if we build a DLL.
7034       old_archive_From_new_cmds='true'
7035       # FIXME: Should let the user specify the lib program.
7036       old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
7037       fix_srcfile_path='`cygpath -w "$srcfile"`'
7038       enable_shared_with_static_runtimes=yes
7039       ;;
7040
7041     darwin* | rhapsody*)
7042     if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
7043       archive_cmds_need_lc=no
7044       case "$host_os" in
7045       rhapsody* | darwin1.[012])
7046         allow_undefined_flag='-undefined suppress'
7047         ;;
7048       *) # Darwin 1.3 on
7049         test -z ${LD_TWOLEVEL_NAMESPACE} && allow_undefined_flag='-flat_namespace -undefined suppress'
7050         ;;
7051       esac
7052       # FIXME: Relying on posixy $() will cause problems for
7053       #        cross-compilation, but unfortunately the echo tests do not
7054       #        yet detect zsh echo's removal of \ escapes.  Also zsh mangles
7055       #        `"' quotes if we put them in here... so don't!
7056         lt_int_apple_cc_single_mod=no
7057         output_verbose_link_cmd='echo'
7058         if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
7059           lt_int_apple_cc_single_mod=yes
7060         fi
7061         if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
7062           archive_cmds='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
7063         else
7064         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'
7065       fi
7066       module_cmds='$CC -bundle ${wl}-bind_at_load $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags'
7067       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
7068         if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
7069           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}'
7070         else
7071           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}'
7072         fi
7073           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}'
7074       hardcode_direct=no
7075       hardcode_automatic=yes
7076       hardcode_shlibpath_var=unsupported
7077       whole_archive_flag_spec='-all_load $convenience'
7078       link_all_deplibs=yes
7079     fi
7080       ;;
7081
7082     dgux*)
7083       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7084       hardcode_libdir_flag_spec='-L$libdir'
7085       hardcode_shlibpath_var=no
7086       ;;
7087
7088     freebsd1*)
7089       ld_shlibs=no
7090       ;;
7091
7092     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
7093     # support.  Future versions do this automatically, but an explicit c++rt0.o
7094     # does not break anything, and helps significantly (at the cost of a little
7095     # extra space).
7096     freebsd2.2*)
7097       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
7098       hardcode_libdir_flag_spec='-R$libdir'
7099       hardcode_direct=yes
7100       hardcode_shlibpath_var=no
7101       ;;
7102
7103     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
7104     freebsd2*)
7105       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7106       hardcode_direct=yes
7107       hardcode_minus_L=yes
7108       hardcode_shlibpath_var=no
7109       ;;
7110
7111     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
7112     freebsd*)
7113       archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
7114       hardcode_libdir_flag_spec='-R$libdir'
7115       hardcode_direct=yes
7116       hardcode_shlibpath_var=no
7117       ;;
7118
7119     hpux9*)
7120       if test "$GCC" = yes; then
7121         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'
7122       else
7123         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'
7124       fi
7125       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7126       hardcode_libdir_separator=:
7127       hardcode_direct=yes
7128
7129       # hardcode_minus_L: Not really in the search PATH,
7130       # but as the default location of the library.
7131       hardcode_minus_L=yes
7132       export_dynamic_flag_spec='${wl}-E'
7133       ;;
7134
7135     hpux10* | hpux11*)
7136       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
7137         case "$host_cpu" in
7138         hppa*64*|ia64*)
7139           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7140           ;;
7141         *)
7142           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7143           ;;
7144         esac
7145       else
7146         case "$host_cpu" in
7147         hppa*64*|ia64*)
7148           archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
7149           ;;
7150         *)
7151           archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
7152           ;;
7153         esac
7154       fi
7155       if test "$with_gnu_ld" = no; then
7156         case "$host_cpu" in
7157         hppa*64*)
7158           hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7159           hardcode_libdir_flag_spec_ld='+b $libdir'
7160           hardcode_libdir_separator=:
7161           hardcode_direct=no
7162           hardcode_shlibpath_var=no
7163           ;;
7164         ia64*)
7165           hardcode_libdir_flag_spec='-L$libdir'
7166           hardcode_direct=no
7167           hardcode_shlibpath_var=no
7168
7169           # hardcode_minus_L: Not really in the search PATH,
7170           # but as the default location of the library.
7171           hardcode_minus_L=yes
7172           ;;
7173         *)
7174           hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7175           hardcode_libdir_separator=:
7176           hardcode_direct=yes
7177           export_dynamic_flag_spec='${wl}-E'
7178
7179           # hardcode_minus_L: Not really in the search PATH,
7180           # but as the default location of the library.
7181           hardcode_minus_L=yes
7182           ;;
7183         esac
7184       fi
7185       ;;
7186
7187     irix5* | irix6* | nonstopux*)
7188       if test "$GCC" = yes; then
7189         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'
7190       else
7191         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'
7192         hardcode_libdir_flag_spec_ld='-rpath $libdir'
7193       fi
7194       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7195       hardcode_libdir_separator=:
7196       link_all_deplibs=yes
7197       ;;
7198
7199     netbsd*)
7200       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7201         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
7202       else
7203         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
7204       fi
7205       hardcode_libdir_flag_spec='-R$libdir'
7206       hardcode_direct=yes
7207       hardcode_shlibpath_var=no
7208       ;;
7209
7210     newsos6)
7211       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7212       hardcode_direct=yes
7213       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7214       hardcode_libdir_separator=:
7215       hardcode_shlibpath_var=no
7216       ;;
7217
7218     openbsd*)
7219       hardcode_direct=yes
7220       hardcode_shlibpath_var=no
7221       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7222         archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7223         hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7224         export_dynamic_flag_spec='${wl}-E'
7225       else
7226        case $host_os in
7227          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
7228            archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7229            hardcode_libdir_flag_spec='-R$libdir'
7230            ;;
7231          *)
7232            archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7233            hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7234            ;;
7235        esac
7236       fi
7237       ;;
7238
7239     os2*)
7240       hardcode_libdir_flag_spec='-L$libdir'
7241       hardcode_minus_L=yes
7242       allow_undefined_flag=unsupported
7243       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'
7244       old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
7245       ;;
7246
7247     osf3*)
7248       if test "$GCC" = yes; then
7249         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7250         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'
7251       else
7252         allow_undefined_flag=' -expect_unresolved \*'
7253         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'
7254       fi
7255       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7256       hardcode_libdir_separator=:
7257       ;;
7258
7259     osf4* | osf5*)      # as osf3* with the addition of -msym flag
7260       if test "$GCC" = yes; then
7261         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7262         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'
7263         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7264       else
7265         allow_undefined_flag=' -expect_unresolved \*'
7266         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'
7267         archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
7268         $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'
7269
7270         # Both c and cxx compiler support -rpath directly
7271         hardcode_libdir_flag_spec='-rpath $libdir'
7272       fi
7273       hardcode_libdir_separator=:
7274       ;;
7275
7276     sco3.2v5*)
7277       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7278       hardcode_shlibpath_var=no
7279       export_dynamic_flag_spec='${wl}-Bexport'
7280       runpath_var=LD_RUN_PATH
7281       hardcode_runpath_var=yes
7282       ;;
7283
7284     solaris*)
7285       no_undefined_flag=' -z text'
7286       if test "$GCC" = yes; then
7287         archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7288         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7289           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
7290       else
7291         archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
7292         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7293         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
7294       fi
7295       hardcode_libdir_flag_spec='-R$libdir'
7296       hardcode_shlibpath_var=no
7297       case $host_os in
7298       solaris2.[0-5] | solaris2.[0-5].*) ;;
7299       *) # Supported since Solaris 2.6 (maybe 2.5.1?)
7300         whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
7301       esac
7302       link_all_deplibs=yes
7303       ;;
7304
7305     sunos4*)
7306       if test "x$host_vendor" = xsequent; then
7307         # Use $CC to link under sequent, because it throws in some extra .o
7308         # files that make .init and .fini sections work.
7309         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
7310       else
7311         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
7312       fi
7313       hardcode_libdir_flag_spec='-L$libdir'
7314       hardcode_direct=yes
7315       hardcode_minus_L=yes
7316       hardcode_shlibpath_var=no
7317       ;;
7318
7319     sysv4)
7320       case $host_vendor in
7321         sni)
7322           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7323           hardcode_direct=yes # is this really true???
7324         ;;
7325         siemens)
7326           ## LD is ld it makes a PLAMLIB
7327           ## CC just makes a GrossModule.
7328           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
7329           reload_cmds='$CC -r -o $output$reload_objs'
7330           hardcode_direct=no
7331         ;;
7332         motorola)
7333           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7334           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
7335         ;;
7336       esac
7337       runpath_var='LD_RUN_PATH'
7338       hardcode_shlibpath_var=no
7339       ;;
7340
7341     sysv4.3*)
7342       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7343       hardcode_shlibpath_var=no
7344       export_dynamic_flag_spec='-Bexport'
7345       ;;
7346
7347     sysv4*MP*)
7348       if test -d /usr/nec; then
7349         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7350         hardcode_shlibpath_var=no
7351         runpath_var=LD_RUN_PATH
7352         hardcode_runpath_var=yes
7353         ld_shlibs=yes
7354       fi
7355       ;;
7356
7357     sysv4.2uw2*)
7358       archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
7359       hardcode_direct=yes
7360       hardcode_minus_L=no
7361       hardcode_shlibpath_var=no
7362       hardcode_runpath_var=yes
7363       runpath_var=LD_RUN_PATH
7364       ;;
7365
7366    sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
7367       no_undefined_flag='${wl}-z ${wl}text'
7368       if test "$GCC" = yes; then
7369         archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7370       else
7371         archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7372       fi
7373       runpath_var='LD_RUN_PATH'
7374       hardcode_shlibpath_var=no
7375       ;;
7376
7377     sysv5*)
7378       no_undefined_flag=' -z text'
7379       # $CC -shared without GNU ld will not create a library from C++
7380       # object files and a static libstdc++, better avoid it by now
7381       archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
7382       archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7383                 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
7384       hardcode_libdir_flag_spec=
7385       hardcode_shlibpath_var=no
7386       runpath_var='LD_RUN_PATH'
7387       ;;
7388
7389     uts4*)
7390       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7391       hardcode_libdir_flag_spec='-L$libdir'
7392       hardcode_shlibpath_var=no
7393       ;;
7394
7395     *)
7396       ld_shlibs=no
7397       ;;
7398     esac
7399   fi
7400
7401 echo "$as_me:$LINENO: result: $ld_shlibs" >&5
7402 echo "${ECHO_T}$ld_shlibs" >&6
7403 test "$ld_shlibs" = no && can_build_shared=no
7404
7405 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
7406 if test "$GCC" = yes; then
7407   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
7408 fi
7409
7410 #
7411 # Do we need to explicitly link libc?
7412 #
7413 case "x$archive_cmds_need_lc" in
7414 x|xyes)
7415   # Assume -lc should be added
7416   archive_cmds_need_lc=yes
7417
7418   if test "$enable_shared" = yes && test "$GCC" = yes; then
7419     case $archive_cmds in
7420     *'~'*)
7421       # FIXME: we may have to deal with multi-command sequences.
7422       ;;
7423     '$CC '*)
7424       # Test whether the compiler implicitly links with -lc since on some
7425       # systems, -lgcc has to come before -lc. If gcc already passes -lc
7426       # to ld, don't add -lc before -lgcc.
7427       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
7428 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
7429       $rm conftest*
7430       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7431
7432       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7433   (eval $ac_compile) 2>&5
7434   ac_status=$?
7435   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7436   (exit $ac_status); } 2>conftest.err; then
7437         soname=conftest
7438         lib=conftest
7439         libobjs=conftest.$ac_objext
7440         deplibs=
7441         wl=$lt_prog_compiler_wl
7442         compiler_flags=-v
7443         linker_flags=-v
7444         verstring=
7445         output_objdir=.
7446         libname=conftest
7447         lt_save_allow_undefined_flag=$allow_undefined_flag
7448         allow_undefined_flag=
7449         if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
7450   (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
7451   ac_status=$?
7452   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7453   (exit $ac_status); }
7454         then
7455           archive_cmds_need_lc=no
7456         else
7457           archive_cmds_need_lc=yes
7458         fi
7459         allow_undefined_flag=$lt_save_allow_undefined_flag
7460       else
7461         cat conftest.err 1>&5
7462       fi
7463       $rm conftest*
7464       echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
7465 echo "${ECHO_T}$archive_cmds_need_lc" >&6
7466       ;;
7467     esac
7468   fi
7469   ;;
7470 esac
7471
7472 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
7473 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
7474 hardcode_action=
7475 if test -n "$hardcode_libdir_flag_spec" || \
7476    test -n "$runpath_var " || \
7477    test "X$hardcode_automatic"="Xyes" ; then
7478
7479   # We can hardcode non-existant directories.
7480   if test "$hardcode_direct" != no &&
7481      # If the only mechanism to avoid hardcoding is shlibpath_var, we
7482      # have to relink, otherwise we might link with an installed library
7483      # when we should be linking with a yet-to-be-installed one
7484      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
7485      test "$hardcode_minus_L" != no; then
7486     # Linking always hardcodes the temporary library directory.
7487     hardcode_action=relink
7488   else
7489     # We can link without hardcoding, and we can hardcode nonexisting dirs.
7490     hardcode_action=immediate
7491   fi
7492 else
7493   # We cannot hardcode anything, or else we can only hardcode existing
7494   # directories.
7495   hardcode_action=unsupported
7496 fi
7497 echo "$as_me:$LINENO: result: $hardcode_action" >&5
7498 echo "${ECHO_T}$hardcode_action" >&6
7499
7500 if test "$hardcode_action" = relink; then
7501   # Fast installation is not supported
7502   enable_fast_install=no
7503 elif test "$shlibpath_overrides_runpath" = yes ||
7504      test "$enable_shared" = no; then
7505   # Fast installation is not necessary
7506   enable_fast_install=needless
7507 fi
7508
7509 striplib=
7510 old_striplib=
7511 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
7512 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
7513 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
7514   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
7515   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
7516   echo "$as_me:$LINENO: result: yes" >&5
7517 echo "${ECHO_T}yes" >&6
7518 else
7519 # FIXME - insert some real tests, host_os isn't really good enough
7520   case $host_os in
7521    darwin*)
7522        if test -n "$STRIP" ; then
7523          striplib="$STRIP -x"
7524          echo "$as_me:$LINENO: result: yes" >&5
7525 echo "${ECHO_T}yes" >&6
7526        else
7527   echo "$as_me:$LINENO: result: no" >&5
7528 echo "${ECHO_T}no" >&6
7529 fi
7530        ;;
7531    *)
7532   echo "$as_me:$LINENO: result: no" >&5
7533 echo "${ECHO_T}no" >&6
7534     ;;
7535   esac
7536 fi
7537
7538 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
7539 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
7540 library_names_spec=
7541 libname_spec='lib$name'
7542 soname_spec=
7543 shrext=".so"
7544 postinstall_cmds=
7545 postuninstall_cmds=
7546 finish_cmds=
7547 finish_eval=
7548 shlibpath_var=
7549 shlibpath_overrides_runpath=unknown
7550 version_type=none
7551 dynamic_linker="$host_os ld.so"
7552 sys_lib_dlsearch_path_spec="/lib /usr/lib"
7553 if test "$GCC" = yes; then
7554   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
7555   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
7556     # if the path contains ";" then we assume it to be the separator
7557     # otherwise default to the standard path separator (i.e. ":") - it is
7558     # assumed that no part of a normal pathname contains ";" but that should
7559     # okay in the real world where ";" in dirpaths is itself problematic.
7560     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
7561   else
7562     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
7563   fi
7564 else
7565   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
7566 fi
7567 need_lib_prefix=unknown
7568 hardcode_into_libs=no
7569
7570 # when you set need_version to no, make sure it does not cause -set_version
7571 # flags to be left without arguments
7572 need_version=unknown
7573
7574 case $host_os in
7575 aix3*)
7576   version_type=linux
7577   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
7578   shlibpath_var=LIBPATH
7579
7580   # AIX 3 has no versioning support, so we append a major version to the name.
7581   soname_spec='${libname}${release}${shared_ext}$major'
7582   ;;
7583
7584 aix4* | aix5*)
7585   version_type=linux
7586   need_lib_prefix=no
7587   need_version=no
7588   hardcode_into_libs=yes
7589   if test "$host_cpu" = ia64; then
7590     # AIX 5 supports IA64
7591     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
7592     shlibpath_var=LD_LIBRARY_PATH
7593   else
7594     # With GCC up to 2.95.x, collect2 would create an import file
7595     # for dependence libraries.  The import file would start with
7596     # the line `#! .'.  This would cause the generated library to
7597     # depend on `.', always an invalid library.  This was fixed in
7598     # development snapshots of GCC prior to 3.0.
7599     case $host_os in
7600       aix4 | aix4.[01] | aix4.[01].*)
7601       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
7602            echo ' yes '
7603            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
7604         :
7605       else
7606         can_build_shared=no
7607       fi
7608       ;;
7609     esac
7610     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
7611     # soname into executable. Probably we can add versioning support to
7612     # collect2, so additional links can be useful in future.
7613     if test "$aix_use_runtimelinking" = yes; then
7614       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
7615       # instead of lib<name>.a to let people know that these are not
7616       # typical AIX shared libraries.
7617       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7618     else
7619       # We preserve .a as extension for shared libraries through AIX4.2
7620       # and later when we are not doing run time linking.
7621       library_names_spec='${libname}${release}.a $libname.a'
7622       soname_spec='${libname}${release}${shared_ext}$major'
7623     fi
7624     shlibpath_var=LIBPATH
7625   fi
7626   ;;
7627
7628 amigaos*)
7629   library_names_spec='$libname.ixlibrary $libname.a'
7630   # Create ${libname}_ixlibrary.a entries in /sys/libs.
7631   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'
7632   ;;
7633
7634 beos*)
7635   library_names_spec='${libname}${shared_ext}'
7636   dynamic_linker="$host_os ld.so"
7637   shlibpath_var=LIBRARY_PATH
7638   ;;
7639
7640 bsdi4*)
7641   version_type=linux
7642   need_version=no
7643   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7644   soname_spec='${libname}${release}${shared_ext}$major'
7645   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
7646   shlibpath_var=LD_LIBRARY_PATH
7647   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
7648   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
7649   # the default ld.so.conf also contains /usr/contrib/lib and
7650   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
7651   # libtool to hard-code these into programs
7652   ;;
7653
7654 cygwin* | mingw* | pw32*)
7655   version_type=windows
7656   shrext=".dll"
7657   need_version=no
7658   need_lib_prefix=no
7659
7660   case $GCC,$host_os in
7661   yes,cygwin* | yes,mingw* | yes,pw32*)
7662     library_names_spec='$libname.dll.a'
7663     # DLL is installed to $(libdir)/../bin by postinstall_cmds
7664     postinstall_cmds='base_file=`basename \${file}`~
7665       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
7666       dldir=$destdir/`dirname \$dlpath`~
7667       test -d \$dldir || mkdir -p \$dldir~
7668       $install_prog $dir/$dlname \$dldir/$dlname'
7669     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
7670       dlpath=$dir/\$dldll~
7671        $rm \$dlpath'
7672     shlibpath_overrides_runpath=yes
7673
7674     case $host_os in
7675     cygwin*)
7676       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
7677       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7678       sys_lib_search_path_spec="/lib /lib/w32api /usr/lib /usr/local/lib"
7679       ;;
7680     mingw*)
7681       # MinGW DLLs use traditional 'lib' prefix
7682       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7683       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
7684       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
7685         # It is most probably a Windows format PATH printed by
7686         # mingw gcc, but we are running on Cygwin. Gcc prints its search
7687         # path with ; separators, and with drive letters. We can handle the
7688         # drive letters (cygwin fileutils understands them), so leave them,
7689         # especially as we might pass files found there to a mingw objdump,
7690         # which wouldn't understand a cygwinified path. Ahh.
7691         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
7692       else
7693         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
7694       fi
7695       ;;
7696     pw32*)
7697       # pw32 DLLs use 'pw' prefix rather than 'lib'
7698       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
7699       ;;
7700     esac
7701     ;;
7702
7703   *)
7704     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
7705     ;;
7706   esac
7707   dynamic_linker='Win32 ld.exe'
7708   # FIXME: first we should search . and the directory the executable is in
7709   shlibpath_var=PATH
7710   ;;
7711
7712 darwin* | rhapsody*)
7713   dynamic_linker="$host_os dyld"
7714   version_type=darwin
7715   need_lib_prefix=no
7716   need_version=no
7717   # FIXME: Relying on posixy $() will cause problems for
7718   #        cross-compilation, but unfortunately the echo tests do not
7719   #        yet detect zsh echo's removal of \ escapes.
7720   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
7721   soname_spec='${libname}${release}${major}$shared_ext'
7722   shlibpath_overrides_runpath=yes
7723   shlibpath_var=DYLD_LIBRARY_PATH
7724   shrext='$(test .$module = .yes && echo .so || echo .dylib)'
7725   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
7726   if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
7727   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"`
7728   fi
7729   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
7730   ;;
7731
7732 dgux*)
7733   version_type=linux
7734   need_lib_prefix=no
7735   need_version=no
7736   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
7737   soname_spec='${libname}${release}${shared_ext}$major'
7738   shlibpath_var=LD_LIBRARY_PATH
7739   ;;
7740
7741 freebsd1*)
7742   dynamic_linker=no
7743   ;;
7744
7745 freebsd*)
7746   objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
7747   version_type=freebsd-$objformat
7748   case $version_type in
7749     freebsd-elf*)
7750       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
7751       need_version=no
7752       need_lib_prefix=no
7753       ;;
7754     freebsd-*)
7755       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
7756       need_version=yes
7757       ;;
7758   esac
7759   shlibpath_var=LD_LIBRARY_PATH
7760   case $host_os in
7761   freebsd2*)
7762     shlibpath_overrides_runpath=yes
7763     ;;
7764   freebsd3.01* | freebsdelf3.01*)
7765     shlibpath_overrides_runpath=yes
7766     hardcode_into_libs=yes
7767     ;;
7768   *) # from 3.2 on
7769     shlibpath_overrides_runpath=no
7770     hardcode_into_libs=yes
7771     ;;
7772   esac
7773   ;;
7774
7775 gnu*)
7776   version_type=linux
7777   need_lib_prefix=no
7778   need_version=no
7779   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
7780   soname_spec='${libname}${release}${shared_ext}$major'
7781   shlibpath_var=LD_LIBRARY_PATH
7782   hardcode_into_libs=yes
7783   ;;
7784
7785 hpux9* | hpux10* | hpux11*)
7786   # Give a soname corresponding to the major version so that dld.sl refuses to
7787   # link against other versions.
7788   version_type=sunos
7789   need_lib_prefix=no
7790   need_version=no
7791   case "$host_cpu" in
7792   ia64*)
7793     shrext='.so'
7794     hardcode_into_libs=yes
7795     dynamic_linker="$host_os dld.so"
7796     shlibpath_var=LD_LIBRARY_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     if test "X$HPUX_IA64_MODE" = X32; then
7801       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
7802     else
7803       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
7804     fi
7805     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
7806     ;;
7807    hppa*64*)
7808      shrext='.sl'
7809      hardcode_into_libs=yes
7810      dynamic_linker="$host_os dld.sl"
7811      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
7812      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
7813      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7814      soname_spec='${libname}${release}${shared_ext}$major'
7815      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
7816      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
7817      ;;
7818    *)
7819     shrext='.sl'
7820     dynamic_linker="$host_os dld.sl"
7821     shlibpath_var=SHLIB_PATH
7822     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
7823     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7824     soname_spec='${libname}${release}${shared_ext}$major'
7825     ;;
7826   esac
7827   # HP-UX runs *really* slowly unless shared libraries are mode 555.
7828   postinstall_cmds='chmod 555 $lib'
7829   ;;
7830
7831 irix5* | irix6* | nonstopux*)
7832   case $host_os in
7833     nonstopux*) version_type=nonstopux ;;
7834     *)
7835         if test "$lt_cv_prog_gnu_ld" = yes; then
7836                 version_type=linux
7837         else
7838                 version_type=irix
7839         fi ;;
7840   esac
7841   need_lib_prefix=no
7842   need_version=no
7843   soname_spec='${libname}${release}${shared_ext}$major'
7844   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
7845   case $host_os in
7846   irix5* | nonstopux*)
7847     libsuff= shlibsuff=
7848     ;;
7849   *)
7850     case $LD in # libtool.m4 will add one of these switches to LD
7851     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
7852       libsuff= shlibsuff= libmagic=32-bit;;
7853     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
7854       libsuff=32 shlibsuff=N32 libmagic=N32;;
7855     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
7856       libsuff=64 shlibsuff=64 libmagic=64-bit;;
7857     *) libsuff= shlibsuff= libmagic=never-match;;
7858     esac
7859     ;;
7860   esac
7861   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
7862   shlibpath_overrides_runpath=no
7863   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
7864   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
7865   hardcode_into_libs=yes
7866   ;;
7867
7868 # No shared lib support for Linux oldld, aout, or coff.
7869 linux*oldld* | linux*aout* | linux*coff*)
7870   dynamic_linker=no
7871   ;;
7872
7873 # This must be Linux ELF.
7874 linux*)
7875   version_type=linux
7876   need_lib_prefix=no
7877   need_version=no
7878   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7879   soname_spec='${libname}${release}${shared_ext}$major'
7880   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
7881   shlibpath_var=LD_LIBRARY_PATH
7882   shlibpath_overrides_runpath=no
7883   # This implies no fast_install, which is unacceptable.
7884   # Some rework will be needed to allow for fast_install
7885   # before this can be enabled.
7886   hardcode_into_libs=yes
7887
7888   # We used to test for /lib/ld.so.1 and disable shared libraries on
7889   # powerpc, because MkLinux only supported shared libraries with the
7890   # GNU dynamic linker.  Since this was broken with cross compilers,
7891   # most powerpc-linux boxes support dynamic linking these days and
7892   # people can always --disable-shared, the test was removed, and we
7893   # assume the GNU/Linux dynamic linker is in use.
7894   dynamic_linker='GNU/Linux ld.so'
7895   ;;
7896
7897 netbsd*)
7898   version_type=sunos
7899   need_lib_prefix=no
7900   need_version=no
7901   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7902     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
7903     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
7904     dynamic_linker='NetBSD (a.out) ld.so'
7905   else
7906     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
7907     soname_spec='${libname}${release}${shared_ext}$major'
7908     dynamic_linker='NetBSD ld.elf_so'
7909   fi
7910   shlibpath_var=LD_LIBRARY_PATH
7911   shlibpath_overrides_runpath=yes
7912   hardcode_into_libs=yes
7913   ;;
7914
7915 newsos6)
7916   version_type=linux
7917   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7918   shlibpath_var=LD_LIBRARY_PATH
7919   shlibpath_overrides_runpath=yes
7920   ;;
7921
7922 nto-qnx)
7923   version_type=linux
7924   need_lib_prefix=no
7925   need_version=no
7926   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7927   soname_spec='${libname}${release}${shared_ext}$major'
7928   shlibpath_var=LD_LIBRARY_PATH
7929   shlibpath_overrides_runpath=yes
7930   ;;
7931
7932 openbsd*)
7933   version_type=sunos
7934   need_lib_prefix=no
7935   need_version=no
7936   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
7937   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
7938   shlibpath_var=LD_LIBRARY_PATH
7939   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7940     case $host_os in
7941       openbsd2.[89] | openbsd2.[89].*)
7942         shlibpath_overrides_runpath=no
7943         ;;
7944       *)
7945         shlibpath_overrides_runpath=yes
7946         ;;
7947       esac
7948   else
7949     shlibpath_overrides_runpath=yes
7950   fi
7951   ;;
7952
7953 os2*)
7954   libname_spec='$name'
7955   shrext=".dll"
7956   need_lib_prefix=no
7957   library_names_spec='$libname${shared_ext} $libname.a'
7958   dynamic_linker='OS/2 ld.exe'
7959   shlibpath_var=LIBPATH
7960   ;;
7961
7962 osf3* | osf4* | osf5*)
7963   version_type=osf
7964   need_lib_prefix=no
7965   need_version=no
7966   soname_spec='${libname}${release}${shared_ext}$major'
7967   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7968   shlibpath_var=LD_LIBRARY_PATH
7969   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
7970   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
7971   ;;
7972
7973 sco3.2v5*)
7974   version_type=osf
7975   soname_spec='${libname}${release}${shared_ext}$major'
7976   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7977   shlibpath_var=LD_LIBRARY_PATH
7978   ;;
7979
7980 solaris*)
7981   version_type=linux
7982   need_lib_prefix=no
7983   need_version=no
7984   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7985   soname_spec='${libname}${release}${shared_ext}$major'
7986   shlibpath_var=LD_LIBRARY_PATH
7987   shlibpath_overrides_runpath=yes
7988   hardcode_into_libs=yes
7989   # ldd complains unless libraries are executable
7990   postinstall_cmds='chmod +x $lib'
7991   ;;
7992
7993 sunos4*)
7994   version_type=sunos
7995   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
7996   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
7997   shlibpath_var=LD_LIBRARY_PATH
7998   shlibpath_overrides_runpath=yes
7999   if test "$with_gnu_ld" = yes; then
8000     need_lib_prefix=no
8001   fi
8002   need_version=yes
8003   ;;
8004
8005 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
8006   version_type=linux
8007   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8008   soname_spec='${libname}${release}${shared_ext}$major'
8009   shlibpath_var=LD_LIBRARY_PATH
8010   case $host_vendor in
8011     sni)
8012       shlibpath_overrides_runpath=no
8013       need_lib_prefix=no
8014       export_dynamic_flag_spec='${wl}-Blargedynsym'
8015       runpath_var=LD_RUN_PATH
8016       ;;
8017     siemens)
8018       need_lib_prefix=no
8019       ;;
8020     motorola)
8021       need_lib_prefix=no
8022       need_version=no
8023       shlibpath_overrides_runpath=no
8024       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
8025       ;;
8026   esac
8027   ;;
8028
8029 sysv4*MP*)
8030   if test -d /usr/nec ;then
8031     version_type=linux
8032     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
8033     soname_spec='$libname${shared_ext}.$major'
8034     shlibpath_var=LD_LIBRARY_PATH
8035   fi
8036   ;;
8037
8038 uts4*)
8039   version_type=linux
8040   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8041   soname_spec='${libname}${release}${shared_ext}$major'
8042   shlibpath_var=LD_LIBRARY_PATH
8043   ;;
8044
8045 *)
8046   dynamic_linker=no
8047   ;;
8048 esac
8049 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
8050 echo "${ECHO_T}$dynamic_linker" >&6
8051 test "$dynamic_linker" = no && can_build_shared=no
8052
8053 if test "x$enable_dlopen" != xyes; then
8054   enable_dlopen=unknown
8055   enable_dlopen_self=unknown
8056   enable_dlopen_self_static=unknown
8057 else
8058   lt_cv_dlopen=no
8059   lt_cv_dlopen_libs=
8060
8061   case $host_os in
8062   beos*)
8063     lt_cv_dlopen="load_add_on"
8064     lt_cv_dlopen_libs=
8065     lt_cv_dlopen_self=yes
8066     ;;
8067
8068   mingw* | pw32*)
8069     lt_cv_dlopen="LoadLibrary"
8070     lt_cv_dlopen_libs=
8071    ;;
8072
8073   cygwin*)
8074     lt_cv_dlopen="dlopen"
8075     lt_cv_dlopen_libs=
8076    ;;
8077
8078   darwin*)
8079   # if libdl is installed we need to link against it
8080     echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
8081 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
8082 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
8083   echo $ECHO_N "(cached) $ECHO_C" >&6
8084 else
8085   ac_check_lib_save_LIBS=$LIBS
8086 LIBS="-ldl  $LIBS"
8087 cat >conftest.$ac_ext <<_ACEOF
8088 #line $LINENO "configure"
8089 /* confdefs.h.  */
8090 _ACEOF
8091 cat confdefs.h >>conftest.$ac_ext
8092 cat >>conftest.$ac_ext <<_ACEOF
8093 /* end confdefs.h.  */
8094
8095 /* Override any gcc2 internal prototype to avoid an error.  */
8096 #ifdef __cplusplus
8097 extern "C"
8098 #endif
8099 /* We use char because int might match the return type of a gcc2
8100    builtin and then its argument prototype would still apply.  */
8101 char dlopen ();
8102 int
8103 main ()
8104 {
8105 dlopen ();
8106   ;
8107   return 0;
8108 }
8109 _ACEOF
8110 rm -f conftest.$ac_objext conftest$ac_exeext
8111 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8112   (eval $ac_link) 2>&5
8113   ac_status=$?
8114   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8115   (exit $ac_status); } &&
8116          { ac_try='test -s conftest$ac_exeext'
8117   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8118   (eval $ac_try) 2>&5
8119   ac_status=$?
8120   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8121   (exit $ac_status); }; }; then
8122   ac_cv_lib_dl_dlopen=yes
8123 else
8124   echo "$as_me: failed program was:" >&5
8125 sed 's/^/| /' conftest.$ac_ext >&5
8126
8127 ac_cv_lib_dl_dlopen=no
8128 fi
8129 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8130 LIBS=$ac_check_lib_save_LIBS
8131 fi
8132 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
8133 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
8134 if test $ac_cv_lib_dl_dlopen = yes; then
8135   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
8136 else
8137
8138     lt_cv_dlopen="dyld"
8139     lt_cv_dlopen_libs=
8140     lt_cv_dlopen_self=yes
8141
8142 fi
8143
8144    ;;
8145
8146   *)
8147     echo "$as_me:$LINENO: checking for shl_load" >&5
8148 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
8149 if test "${ac_cv_func_shl_load+set}" = set; then
8150   echo $ECHO_N "(cached) $ECHO_C" >&6
8151 else
8152   cat >conftest.$ac_ext <<_ACEOF
8153 #line $LINENO "configure"
8154 /* confdefs.h.  */
8155 _ACEOF
8156 cat confdefs.h >>conftest.$ac_ext
8157 cat >>conftest.$ac_ext <<_ACEOF
8158 /* end confdefs.h.  */
8159 /* System header to define __stub macros and hopefully few prototypes,
8160     which can conflict with char shl_load (); below.
8161     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8162     <limits.h> exists even on freestanding compilers.  */
8163 #ifdef __STDC__
8164 # include <limits.h>
8165 #else
8166 # include <assert.h>
8167 #endif
8168 /* Override any gcc2 internal prototype to avoid an error.  */
8169 #ifdef __cplusplus
8170 extern "C"
8171 {
8172 #endif
8173 /* We use char because int might match the return type of a gcc2
8174    builtin and then its argument prototype would still apply.  */
8175 char shl_load ();
8176 /* The GNU C library defines this for functions which it implements
8177     to always fail with ENOSYS.  Some functions are actually named
8178     something starting with __ and the normal name is an alias.  */
8179 #if defined (__stub_shl_load) || defined (__stub___shl_load)
8180 choke me
8181 #else
8182 char (*f) () = shl_load;
8183 #endif
8184 #ifdef __cplusplus
8185 }
8186 #endif
8187
8188 int
8189 main ()
8190 {
8191 return f != shl_load;
8192   ;
8193   return 0;
8194 }
8195 _ACEOF
8196 rm -f conftest.$ac_objext conftest$ac_exeext
8197 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8198   (eval $ac_link) 2>&5
8199   ac_status=$?
8200   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8201   (exit $ac_status); } &&
8202          { ac_try='test -s conftest$ac_exeext'
8203   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8204   (eval $ac_try) 2>&5
8205   ac_status=$?
8206   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8207   (exit $ac_status); }; }; then
8208   ac_cv_func_shl_load=yes
8209 else
8210   echo "$as_me: failed program was:" >&5
8211 sed 's/^/| /' conftest.$ac_ext >&5
8212
8213 ac_cv_func_shl_load=no
8214 fi
8215 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8216 fi
8217 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
8218 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
8219 if test $ac_cv_func_shl_load = yes; then
8220   lt_cv_dlopen="shl_load"
8221 else
8222   echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
8223 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
8224 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
8225   echo $ECHO_N "(cached) $ECHO_C" >&6
8226 else
8227   ac_check_lib_save_LIBS=$LIBS
8228 LIBS="-ldld  $LIBS"
8229 cat >conftest.$ac_ext <<_ACEOF
8230 #line $LINENO "configure"
8231 /* confdefs.h.  */
8232 _ACEOF
8233 cat confdefs.h >>conftest.$ac_ext
8234 cat >>conftest.$ac_ext <<_ACEOF
8235 /* end confdefs.h.  */
8236
8237 /* Override any gcc2 internal prototype to avoid an error.  */
8238 #ifdef __cplusplus
8239 extern "C"
8240 #endif
8241 /* We use char because int might match the return type of a gcc2
8242    builtin and then its argument prototype would still apply.  */
8243 char shl_load ();
8244 int
8245 main ()
8246 {
8247 shl_load ();
8248   ;
8249   return 0;
8250 }
8251 _ACEOF
8252 rm -f conftest.$ac_objext conftest$ac_exeext
8253 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8254   (eval $ac_link) 2>&5
8255   ac_status=$?
8256   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8257   (exit $ac_status); } &&
8258          { ac_try='test -s conftest$ac_exeext'
8259   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8260   (eval $ac_try) 2>&5
8261   ac_status=$?
8262   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8263   (exit $ac_status); }; }; then
8264   ac_cv_lib_dld_shl_load=yes
8265 else
8266   echo "$as_me: failed program was:" >&5
8267 sed 's/^/| /' conftest.$ac_ext >&5
8268
8269 ac_cv_lib_dld_shl_load=no
8270 fi
8271 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8272 LIBS=$ac_check_lib_save_LIBS
8273 fi
8274 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
8275 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
8276 if test $ac_cv_lib_dld_shl_load = yes; then
8277   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
8278 else
8279   echo "$as_me:$LINENO: checking for dlopen" >&5
8280 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
8281 if test "${ac_cv_func_dlopen+set}" = set; then
8282   echo $ECHO_N "(cached) $ECHO_C" >&6
8283 else
8284   cat >conftest.$ac_ext <<_ACEOF
8285 #line $LINENO "configure"
8286 /* confdefs.h.  */
8287 _ACEOF
8288 cat confdefs.h >>conftest.$ac_ext
8289 cat >>conftest.$ac_ext <<_ACEOF
8290 /* end confdefs.h.  */
8291 /* System header to define __stub macros and hopefully few prototypes,
8292     which can conflict with char dlopen (); below.
8293     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8294     <limits.h> exists even on freestanding compilers.  */
8295 #ifdef __STDC__
8296 # include <limits.h>
8297 #else
8298 # include <assert.h>
8299 #endif
8300 /* Override any gcc2 internal prototype to avoid an error.  */
8301 #ifdef __cplusplus
8302 extern "C"
8303 {
8304 #endif
8305 /* We use char because int might match the return type of a gcc2
8306    builtin and then its argument prototype would still apply.  */
8307 char dlopen ();
8308 /* The GNU C library defines this for functions which it implements
8309     to always fail with ENOSYS.  Some functions are actually named
8310     something starting with __ and the normal name is an alias.  */
8311 #if defined (__stub_dlopen) || defined (__stub___dlopen)
8312 choke me
8313 #else
8314 char (*f) () = dlopen;
8315 #endif
8316 #ifdef __cplusplus
8317 }
8318 #endif
8319
8320 int
8321 main ()
8322 {
8323 return f != dlopen;
8324   ;
8325   return 0;
8326 }
8327 _ACEOF
8328 rm -f conftest.$ac_objext conftest$ac_exeext
8329 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8330   (eval $ac_link) 2>&5
8331   ac_status=$?
8332   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8333   (exit $ac_status); } &&
8334          { ac_try='test -s conftest$ac_exeext'
8335   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8336   (eval $ac_try) 2>&5
8337   ac_status=$?
8338   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8339   (exit $ac_status); }; }; then
8340   ac_cv_func_dlopen=yes
8341 else
8342   echo "$as_me: failed program was:" >&5
8343 sed 's/^/| /' conftest.$ac_ext >&5
8344
8345 ac_cv_func_dlopen=no
8346 fi
8347 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8348 fi
8349 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
8350 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
8351 if test $ac_cv_func_dlopen = yes; then
8352   lt_cv_dlopen="dlopen"
8353 else
8354   echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
8355 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
8356 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
8357   echo $ECHO_N "(cached) $ECHO_C" >&6
8358 else
8359   ac_check_lib_save_LIBS=$LIBS
8360 LIBS="-ldl  $LIBS"
8361 cat >conftest.$ac_ext <<_ACEOF
8362 #line $LINENO "configure"
8363 /* confdefs.h.  */
8364 _ACEOF
8365 cat confdefs.h >>conftest.$ac_ext
8366 cat >>conftest.$ac_ext <<_ACEOF
8367 /* end confdefs.h.  */
8368
8369 /* Override any gcc2 internal prototype to avoid an error.  */
8370 #ifdef __cplusplus
8371 extern "C"
8372 #endif
8373 /* We use char because int might match the return type of a gcc2
8374    builtin and then its argument prototype would still apply.  */
8375 char dlopen ();
8376 int
8377 main ()
8378 {
8379 dlopen ();
8380   ;
8381   return 0;
8382 }
8383 _ACEOF
8384 rm -f conftest.$ac_objext conftest$ac_exeext
8385 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8386   (eval $ac_link) 2>&5
8387   ac_status=$?
8388   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8389   (exit $ac_status); } &&
8390          { ac_try='test -s conftest$ac_exeext'
8391   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8392   (eval $ac_try) 2>&5
8393   ac_status=$?
8394   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8395   (exit $ac_status); }; }; then
8396   ac_cv_lib_dl_dlopen=yes
8397 else
8398   echo "$as_me: failed program was:" >&5
8399 sed 's/^/| /' conftest.$ac_ext >&5
8400
8401 ac_cv_lib_dl_dlopen=no
8402 fi
8403 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8404 LIBS=$ac_check_lib_save_LIBS
8405 fi
8406 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
8407 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
8408 if test $ac_cv_lib_dl_dlopen = yes; then
8409   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
8410 else
8411   echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
8412 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
8413 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
8414   echo $ECHO_N "(cached) $ECHO_C" >&6
8415 else
8416   ac_check_lib_save_LIBS=$LIBS
8417 LIBS="-lsvld  $LIBS"
8418 cat >conftest.$ac_ext <<_ACEOF
8419 #line $LINENO "configure"
8420 /* confdefs.h.  */
8421 _ACEOF
8422 cat confdefs.h >>conftest.$ac_ext
8423 cat >>conftest.$ac_ext <<_ACEOF
8424 /* end confdefs.h.  */
8425
8426 /* Override any gcc2 internal prototype to avoid an error.  */
8427 #ifdef __cplusplus
8428 extern "C"
8429 #endif
8430 /* We use char because int might match the return type of a gcc2
8431    builtin and then its argument prototype would still apply.  */
8432 char dlopen ();
8433 int
8434 main ()
8435 {
8436 dlopen ();
8437   ;
8438   return 0;
8439 }
8440 _ACEOF
8441 rm -f conftest.$ac_objext conftest$ac_exeext
8442 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8443   (eval $ac_link) 2>&5
8444   ac_status=$?
8445   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8446   (exit $ac_status); } &&
8447          { ac_try='test -s conftest$ac_exeext'
8448   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8449   (eval $ac_try) 2>&5
8450   ac_status=$?
8451   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8452   (exit $ac_status); }; }; then
8453   ac_cv_lib_svld_dlopen=yes
8454 else
8455   echo "$as_me: failed program was:" >&5
8456 sed 's/^/| /' conftest.$ac_ext >&5
8457
8458 ac_cv_lib_svld_dlopen=no
8459 fi
8460 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8461 LIBS=$ac_check_lib_save_LIBS
8462 fi
8463 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
8464 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
8465 if test $ac_cv_lib_svld_dlopen = yes; then
8466   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
8467 else
8468   echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
8469 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
8470 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
8471   echo $ECHO_N "(cached) $ECHO_C" >&6
8472 else
8473   ac_check_lib_save_LIBS=$LIBS
8474 LIBS="-ldld  $LIBS"
8475 cat >conftest.$ac_ext <<_ACEOF
8476 #line $LINENO "configure"
8477 /* confdefs.h.  */
8478 _ACEOF
8479 cat confdefs.h >>conftest.$ac_ext
8480 cat >>conftest.$ac_ext <<_ACEOF
8481 /* end confdefs.h.  */
8482
8483 /* Override any gcc2 internal prototype to avoid an error.  */
8484 #ifdef __cplusplus
8485 extern "C"
8486 #endif
8487 /* We use char because int might match the return type of a gcc2
8488    builtin and then its argument prototype would still apply.  */
8489 char dld_link ();
8490 int
8491 main ()
8492 {
8493 dld_link ();
8494   ;
8495   return 0;
8496 }
8497 _ACEOF
8498 rm -f conftest.$ac_objext conftest$ac_exeext
8499 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8500   (eval $ac_link) 2>&5
8501   ac_status=$?
8502   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8503   (exit $ac_status); } &&
8504          { ac_try='test -s conftest$ac_exeext'
8505   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8506   (eval $ac_try) 2>&5
8507   ac_status=$?
8508   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8509   (exit $ac_status); }; }; then
8510   ac_cv_lib_dld_dld_link=yes
8511 else
8512   echo "$as_me: failed program was:" >&5
8513 sed 's/^/| /' conftest.$ac_ext >&5
8514
8515 ac_cv_lib_dld_dld_link=no
8516 fi
8517 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8518 LIBS=$ac_check_lib_save_LIBS
8519 fi
8520 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
8521 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
8522 if test $ac_cv_lib_dld_dld_link = yes; then
8523   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
8524 fi
8525
8526
8527 fi
8528
8529
8530 fi
8531
8532
8533 fi
8534
8535
8536 fi
8537
8538
8539 fi
8540
8541     ;;
8542   esac
8543
8544   if test "x$lt_cv_dlopen" != xno; then
8545     enable_dlopen=yes
8546   else
8547     enable_dlopen=no
8548   fi
8549
8550   case $lt_cv_dlopen in
8551   dlopen)
8552     save_CPPFLAGS="$CPPFLAGS"
8553     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
8554
8555     save_LDFLAGS="$LDFLAGS"
8556     eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
8557
8558     save_LIBS="$LIBS"
8559     LIBS="$lt_cv_dlopen_libs $LIBS"
8560
8561     echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
8562 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
8563 if test "${lt_cv_dlopen_self+set}" = set; then
8564   echo $ECHO_N "(cached) $ECHO_C" >&6
8565 else
8566           if test "$cross_compiling" = yes; then :
8567   lt_cv_dlopen_self=cross
8568 else
8569   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
8570   lt_status=$lt_dlunknown
8571   cat > conftest.$ac_ext <<EOF
8572 #line 8572 "configure"
8573 #include "confdefs.h"
8574
8575 #if HAVE_DLFCN_H
8576 #include <dlfcn.h>
8577 #endif
8578
8579 #include <stdio.h>
8580
8581 #ifdef RTLD_GLOBAL
8582 #  define LT_DLGLOBAL           RTLD_GLOBAL
8583 #else
8584 #  ifdef DL_GLOBAL
8585 #    define LT_DLGLOBAL         DL_GLOBAL
8586 #  else
8587 #    define LT_DLGLOBAL         0
8588 #  endif
8589 #endif
8590
8591 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
8592    find out it does not work in some platform. */
8593 #ifndef LT_DLLAZY_OR_NOW
8594 #  ifdef RTLD_LAZY
8595 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
8596 #  else
8597 #    ifdef DL_LAZY
8598 #      define LT_DLLAZY_OR_NOW          DL_LAZY
8599 #    else
8600 #      ifdef RTLD_NOW
8601 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
8602 #      else
8603 #        ifdef DL_NOW
8604 #          define LT_DLLAZY_OR_NOW      DL_NOW
8605 #        else
8606 #          define LT_DLLAZY_OR_NOW      0
8607 #        endif
8608 #      endif
8609 #    endif
8610 #  endif
8611 #endif
8612
8613 #ifdef __cplusplus
8614 extern "C" void exit (int);
8615 #endif
8616
8617 void fnord() { int i=42;}
8618 int main ()
8619 {
8620   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
8621   int status = $lt_dlunknown;
8622
8623   if (self)
8624     {
8625       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
8626       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
8627       /* dlclose (self); */
8628     }
8629
8630     exit (status);
8631 }
8632 EOF
8633   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8634   (eval $ac_link) 2>&5
8635   ac_status=$?
8636   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8637   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
8638     (./conftest; exit; ) 2>/dev/null
8639     lt_status=$?
8640     case x$lt_status in
8641       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
8642       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
8643       x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
8644     esac
8645   else :
8646     # compilation failed
8647     lt_cv_dlopen_self=no
8648   fi
8649 fi
8650 rm -fr conftest*
8651
8652
8653 fi
8654 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
8655 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
8656
8657     if test "x$lt_cv_dlopen_self" = xyes; then
8658       LDFLAGS="$LDFLAGS $link_static_flag"
8659       echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
8660 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
8661 if test "${lt_cv_dlopen_self_static+set}" = set; then
8662   echo $ECHO_N "(cached) $ECHO_C" >&6
8663 else
8664           if test "$cross_compiling" = yes; then :
8665   lt_cv_dlopen_self_static=cross
8666 else
8667   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
8668   lt_status=$lt_dlunknown
8669   cat > conftest.$ac_ext <<EOF
8670 #line 8670 "configure"
8671 #include "confdefs.h"
8672
8673 #if HAVE_DLFCN_H
8674 #include <dlfcn.h>
8675 #endif
8676
8677 #include <stdio.h>
8678
8679 #ifdef RTLD_GLOBAL
8680 #  define LT_DLGLOBAL           RTLD_GLOBAL
8681 #else
8682 #  ifdef DL_GLOBAL
8683 #    define LT_DLGLOBAL         DL_GLOBAL
8684 #  else
8685 #    define LT_DLGLOBAL         0
8686 #  endif
8687 #endif
8688
8689 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
8690    find out it does not work in some platform. */
8691 #ifndef LT_DLLAZY_OR_NOW
8692 #  ifdef RTLD_LAZY
8693 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
8694 #  else
8695 #    ifdef DL_LAZY
8696 #      define LT_DLLAZY_OR_NOW          DL_LAZY
8697 #    else
8698 #      ifdef RTLD_NOW
8699 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
8700 #      else
8701 #        ifdef DL_NOW
8702 #          define LT_DLLAZY_OR_NOW      DL_NOW
8703 #        else
8704 #          define LT_DLLAZY_OR_NOW      0
8705 #        endif
8706 #      endif
8707 #    endif
8708 #  endif
8709 #endif
8710
8711 #ifdef __cplusplus
8712 extern "C" void exit (int);
8713 #endif
8714
8715 void fnord() { int i=42;}
8716 int main ()
8717 {
8718   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
8719   int status = $lt_dlunknown;
8720
8721   if (self)
8722     {
8723       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
8724       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
8725       /* dlclose (self); */
8726     }
8727
8728     exit (status);
8729 }
8730 EOF
8731   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8732   (eval $ac_link) 2>&5
8733   ac_status=$?
8734   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8735   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
8736     (./conftest; exit; ) 2>/dev/null
8737     lt_status=$?
8738     case x$lt_status in
8739       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
8740       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
8741       x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
8742     esac
8743   else :
8744     # compilation failed
8745     lt_cv_dlopen_self_static=no
8746   fi
8747 fi
8748 rm -fr conftest*
8749
8750
8751 fi
8752 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
8753 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
8754     fi
8755
8756     CPPFLAGS="$save_CPPFLAGS"
8757     LDFLAGS="$save_LDFLAGS"
8758     LIBS="$save_LIBS"
8759     ;;
8760   esac
8761
8762   case $lt_cv_dlopen_self in
8763   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
8764   *) enable_dlopen_self=unknown ;;
8765   esac
8766
8767   case $lt_cv_dlopen_self_static in
8768   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
8769   *) enable_dlopen_self_static=unknown ;;
8770   esac
8771 fi
8772
8773
8774 # Report which librarie types wil actually be built
8775 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
8776 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
8777 echo "$as_me:$LINENO: result: $can_build_shared" >&5
8778 echo "${ECHO_T}$can_build_shared" >&6
8779
8780 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
8781 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
8782 test "$can_build_shared" = "no" && enable_shared=no
8783
8784 # On AIX, shared libraries and static libraries use the same namespace, and
8785 # are all built from PIC.
8786 case "$host_os" in
8787 aix3*)
8788   test "$enable_shared" = yes && enable_static=no
8789   if test -n "$RANLIB"; then
8790     archive_cmds="$archive_cmds~\$RANLIB \$lib"
8791     postinstall_cmds='$RANLIB $lib'
8792   fi
8793   ;;
8794
8795 aix4*)
8796   if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
8797     test "$enable_shared" = yes && enable_static=no
8798   fi
8799   ;;
8800   darwin* | rhapsody*)
8801   if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
8802     archive_cmds_need_lc=no
8803     case "$host_os" in
8804     rhapsody* | darwin1.[012])
8805       allow_undefined_flag='-undefined suppress'
8806       ;;
8807     *) # Darwin 1.3 on
8808       test -z ${LD_TWOLEVEL_NAMESPACE} && allow_undefined_flag='-flat_namespace -undefined suppress'
8809       ;;
8810     esac
8811     # FIXME: Relying on posixy $() will cause problems for
8812     #        cross-compilation, but unfortunately the echo tests do not
8813     #        yet detect zsh echo's removal of \ escapes.  Also zsh mangles
8814     #          `"' quotes if we put them in here... so don't!
8815                 output_verbose_link_cmd='echo'
8816     archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags -install_name $rpath/$soname $verstring'
8817     module_cmds='$CC -bundle $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags'
8818     # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
8819                   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}'
8820                   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}'
8821     hardcode_direct=no
8822     hardcode_automatic=yes
8823     hardcode_shlibpath_var=unsupported
8824     whole_archive_flag_spec='-all_load $convenience'
8825     link_all_deplibs=yes
8826     fi
8827     ;;
8828 esac
8829 echo "$as_me:$LINENO: result: $enable_shared" >&5
8830 echo "${ECHO_T}$enable_shared" >&6
8831
8832 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
8833 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
8834 # Make sure either enable_shared or enable_static is yes.
8835 test "$enable_shared" = yes || enable_static=yes
8836 echo "$as_me:$LINENO: result: $enable_static" >&5
8837 echo "${ECHO_T}$enable_static" >&6
8838
8839 # The else clause should only fire when bootstrapping the
8840 # libtool distribution, otherwise you forgot to ship ltmain.sh
8841 # with your package, and you will get complaints that there are
8842 # no rules to generate ltmain.sh.
8843 if test -f "$ltmain"; then
8844   # See if we are running on zsh, and set the options which allow our commands through
8845   # without removal of \ escapes.
8846   if test -n "${ZSH_VERSION+set}" ; then
8847     setopt NO_GLOB_SUBST
8848   fi
8849   # Now quote all the things that may contain metacharacters while being
8850   # careful not to overquote the AC_SUBSTed values.  We take copies of the
8851   # variables and quote the copies for generation of the libtool script.
8852   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \
8853     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
8854     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
8855     deplibs_check_method reload_flag reload_cmds need_locks \
8856     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
8857     lt_cv_sys_global_symbol_to_c_name_address \
8858     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
8859     old_postinstall_cmds old_postuninstall_cmds \
8860     compiler \
8861     CC \
8862     LD \
8863     lt_prog_compiler_wl \
8864     lt_prog_compiler_pic \
8865     lt_prog_compiler_static \
8866     lt_prog_compiler_no_builtin_flag \
8867     export_dynamic_flag_spec \
8868     thread_safe_flag_spec \
8869     whole_archive_flag_spec \
8870     enable_shared_with_static_runtimes \
8871     old_archive_cmds \
8872     old_archive_from_new_cmds \
8873     predep_objects \
8874     postdep_objects \
8875     predeps \
8876     postdeps \
8877     compiler_lib_search_path \
8878     archive_cmds \
8879     archive_expsym_cmds \
8880     postinstall_cmds \
8881     postuninstall_cmds \
8882     old_archive_from_expsyms_cmds \
8883     allow_undefined_flag \
8884     no_undefined_flag \
8885     export_symbols_cmds \
8886     hardcode_libdir_flag_spec \
8887     hardcode_libdir_flag_spec_ld \
8888     hardcode_libdir_separator \
8889     hardcode_automatic \
8890     module_cmds \
8891     module_expsym_cmds \
8892     lt_cv_prog_compiler_c_o \
8893     exclude_expsyms \
8894     include_expsyms; do
8895
8896     case $var in
8897     old_archive_cmds | \
8898     old_archive_from_new_cmds | \
8899     archive_cmds | \
8900     archive_expsym_cmds | \
8901     module_cmds | \
8902     module_expsym_cmds | \
8903     old_archive_from_expsyms_cmds | \
8904     export_symbols_cmds | \
8905     extract_expsyms_cmds | reload_cmds | finish_cmds | \
8906     postinstall_cmds | postuninstall_cmds | \
8907     old_postinstall_cmds | old_postuninstall_cmds | \
8908     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
8909       # Double-quote double-evaled strings.
8910       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
8911       ;;
8912     *)
8913       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
8914       ;;
8915     esac
8916   done
8917
8918   case $lt_echo in
8919   *'\$0 --fallback-echo"')
8920     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
8921     ;;
8922   esac
8923
8924 cfgfile="${ofile}T"
8925   trap "$rm \"$cfgfile\"; exit 1" 1 2 15
8926   $rm -f "$cfgfile"
8927   { echo "$as_me:$LINENO: creating $ofile" >&5
8928 echo "$as_me: creating $ofile" >&6;}
8929
8930   cat <<__EOF__ >> "$cfgfile"
8931 #! $SHELL
8932
8933 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
8934 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
8935 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
8936 #
8937 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
8938 # Free Software Foundation, Inc.
8939 #
8940 # This file is part of GNU Libtool:
8941 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
8942 #
8943 # This program is free software; you can redistribute it and/or modify
8944 # it under the terms of the GNU General Public License as published by
8945 # the Free Software Foundation; either version 2 of the License, or
8946 # (at your option) any later version.
8947 #
8948 # This program is distributed in the hope that it will be useful, but
8949 # WITHOUT ANY WARRANTY; without even the implied warranty of
8950 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
8951 # General Public License for more details.
8952 #
8953 # You should have received a copy of the GNU General Public License
8954 # along with this program; if not, write to the Free Software
8955 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
8956 #
8957 # As a special exception to the GNU General Public License, if you
8958 # distribute this file as part of a program that contains a
8959 # configuration script generated by Autoconf, you may include it under
8960 # the same distribution terms that you use for the rest of that program.
8961
8962 # A sed program that does not truncate output.
8963 SED=$lt_SED
8964
8965 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
8966 Xsed="$SED -e s/^X//"
8967
8968 # The HP-UX ksh and POSIX shell print the target directory to stdout
8969 # if CDPATH is set.
8970 if test "X\${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
8971
8972 # The names of the tagged configurations supported by this script.
8973 available_tags=
8974
8975 # ### BEGIN LIBTOOL CONFIG
8976
8977 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
8978
8979 # Shell to use when invoking shell scripts.
8980 SHELL=$lt_SHELL
8981
8982 # Whether or not to build shared libraries.
8983 build_libtool_libs=$enable_shared
8984
8985 # Whether or not to build static libraries.
8986 build_old_libs=$enable_static
8987
8988 # Whether or not to add -lc for building shared libraries.
8989 build_libtool_need_lc=$archive_cmds_need_lc
8990
8991 # Whether or not to disallow shared libs when runtime libs are static
8992 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
8993
8994 # Whether or not to optimize for fast installation.
8995 fast_install=$enable_fast_install
8996
8997 # The host system.
8998 host_alias=$host_alias
8999 host=$host
9000
9001 # An echo program that does not interpret backslashes.
9002 echo=$lt_echo
9003
9004 # The archiver.
9005 AR=$lt_AR
9006 AR_FLAGS=$lt_AR_FLAGS
9007
9008 # A C compiler.
9009 LTCC=$lt_LTCC
9010
9011 # A language-specific compiler.
9012 CC=$lt_compiler
9013
9014 # Is the compiler the GNU C compiler?
9015 with_gcc=$GCC
9016
9017 # An ERE matcher.
9018 EGREP=$lt_EGREP
9019
9020 # The linker used to build libraries.
9021 LD=$lt_LD
9022
9023 # Whether we need hard or soft links.
9024 LN_S=$lt_LN_S
9025
9026 # A BSD-compatible nm program.
9027 NM=$lt_NM
9028
9029 # A symbol stripping program
9030 STRIP=$STRIP
9031
9032 # Used to examine libraries when file_magic_cmd begins "file"
9033 MAGIC_CMD=$MAGIC_CMD
9034
9035 # Used on cygwin: DLL creation program.
9036 DLLTOOL="$DLLTOOL"
9037
9038 # Used on cygwin: object dumper.
9039 OBJDUMP="$OBJDUMP"
9040
9041 # Used on cygwin: assembler.
9042 AS="$AS"
9043
9044 # The name of the directory that contains temporary libtool files.
9045 objdir=$objdir
9046
9047 # How to create reloadable object files.
9048 reload_flag=$lt_reload_flag
9049 reload_cmds=$lt_reload_cmds
9050
9051 # How to pass a linker flag through the compiler.
9052 wl=$lt_lt_prog_compiler_wl
9053
9054 # Object file suffix (normally "o").
9055 objext="$ac_objext"
9056
9057 # Old archive suffix (normally "a").
9058 libext="$libext"
9059
9060 # Shared library suffix (normally ".so").
9061 shrext='$shrext'
9062
9063 # Executable file suffix (normally "").
9064 exeext="$exeext"
9065
9066 # Additional compiler flags for building library objects.
9067 pic_flag=$lt_lt_prog_compiler_pic
9068 pic_mode=$pic_mode
9069
9070 # What is the maximum length of a command?
9071 max_cmd_len=$lt_cv_sys_max_cmd_len
9072
9073 # Does compiler simultaneously support -c and -o options?
9074 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
9075
9076 # Must we lock files when doing compilation ?
9077 need_locks=$lt_need_locks
9078
9079 # Do we need the lib prefix for modules?
9080 need_lib_prefix=$need_lib_prefix
9081
9082 # Do we need a version for libraries?
9083 need_version=$need_version
9084
9085 # Whether dlopen is supported.
9086 dlopen_support=$enable_dlopen
9087
9088 # Whether dlopen of programs is supported.
9089 dlopen_self=$enable_dlopen_self
9090
9091 # Whether dlopen of statically linked programs is supported.
9092 dlopen_self_static=$enable_dlopen_self_static
9093
9094 # Compiler flag to prevent dynamic linking.
9095 link_static_flag=$lt_lt_prog_compiler_static
9096
9097 # Compiler flag to turn off builtin functions.
9098 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
9099
9100 # Compiler flag to allow reflexive dlopens.
9101 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
9102
9103 # Compiler flag to generate shared objects directly from archives.
9104 whole_archive_flag_spec=$lt_whole_archive_flag_spec
9105
9106 # Compiler flag to generate thread-safe objects.
9107 thread_safe_flag_spec=$lt_thread_safe_flag_spec
9108
9109 # Library versioning type.
9110 version_type=$version_type
9111
9112 # Format of library name prefix.
9113 libname_spec=$lt_libname_spec
9114
9115 # List of archive names.  First name is the real one, the rest are links.
9116 # The last name is the one that the linker finds with -lNAME.
9117 library_names_spec=$lt_library_names_spec
9118
9119 # The coded name of the library, if different from the real name.
9120 soname_spec=$lt_soname_spec
9121
9122 # Commands used to build and install an old-style archive.
9123 RANLIB=$lt_RANLIB
9124 old_archive_cmds=$lt_old_archive_cmds
9125 old_postinstall_cmds=$lt_old_postinstall_cmds
9126 old_postuninstall_cmds=$lt_old_postuninstall_cmds
9127
9128 # Create an old-style archive from a shared archive.
9129 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
9130
9131 # Create a temporary old-style archive to link instead of a shared archive.
9132 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
9133
9134 # Commands used to build and install a shared archive.
9135 archive_cmds=$lt_archive_cmds
9136 archive_expsym_cmds=$lt_archive_expsym_cmds
9137 postinstall_cmds=$lt_postinstall_cmds
9138 postuninstall_cmds=$lt_postuninstall_cmds
9139
9140 # Commands used to build a loadable module (assumed same as above if empty)
9141 module_cmds=$lt_module_cmds
9142 module_expsym_cmds=$lt_module_expsym_cmds
9143
9144 # Commands to strip libraries.
9145 old_striplib=$lt_old_striplib
9146 striplib=$lt_striplib
9147
9148 # Dependencies to place before the objects being linked to create a
9149 # shared library.
9150 predep_objects=$lt_predep_objects
9151
9152 # Dependencies to place after the objects being linked to create a
9153 # shared library.
9154 postdep_objects=$lt_postdep_objects
9155
9156 # Dependencies to place before the objects being linked to create a
9157 # shared library.
9158 predeps=$lt_predeps
9159
9160 # Dependencies to place after the objects being linked to create a
9161 # shared library.
9162 postdeps=$lt_postdeps
9163
9164 # The library search path used internally by the compiler when linking
9165 # a shared library.
9166 compiler_lib_search_path=$lt_compiler_lib_search_path
9167
9168 # Method to check whether dependent libraries are shared objects.
9169 deplibs_check_method=$lt_deplibs_check_method
9170
9171 # Command to use when deplibs_check_method == file_magic.
9172 file_magic_cmd=$lt_file_magic_cmd
9173
9174 # Flag that allows shared libraries with undefined symbols to be built.
9175 allow_undefined_flag=$lt_allow_undefined_flag
9176
9177 # Flag that forces no undefined symbols.
9178 no_undefined_flag=$lt_no_undefined_flag
9179
9180 # Commands used to finish a libtool library installation in a directory.
9181 finish_cmds=$lt_finish_cmds
9182
9183 # Same as above, but a single script fragment to be evaled but not shown.
9184 finish_eval=$lt_finish_eval
9185
9186 # Take the output of nm and produce a listing of raw symbols and C names.
9187 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
9188
9189 # Transform the output of nm in a proper C declaration
9190 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
9191
9192 # Transform the output of nm in a C name address pair
9193 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
9194
9195 # This is the shared library runtime path variable.
9196 runpath_var=$runpath_var
9197
9198 # This is the shared library path variable.
9199 shlibpath_var=$shlibpath_var
9200
9201 # Is shlibpath searched before the hard-coded library search path?
9202 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
9203
9204 # How to hardcode a shared library path into an executable.
9205 hardcode_action=$hardcode_action
9206
9207 # Whether we should hardcode library paths into libraries.
9208 hardcode_into_libs=$hardcode_into_libs
9209
9210 # Flag to hardcode \$libdir into a binary during linking.
9211 # This must work even if \$libdir does not exist.
9212 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
9213
9214 # If ld is used when linking, flag to hardcode \$libdir into
9215 # a binary during linking. This must work even if \$libdir does
9216 # not exist.
9217 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
9218
9219 # Whether we need a single -rpath flag with a separated argument.
9220 hardcode_libdir_separator=$lt_hardcode_libdir_separator
9221
9222 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
9223 # resulting binary.
9224 hardcode_direct=$hardcode_direct
9225
9226 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
9227 # resulting binary.
9228 hardcode_minus_L=$hardcode_minus_L
9229
9230 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
9231 # the resulting binary.
9232 hardcode_shlibpath_var=$hardcode_shlibpath_var
9233
9234 # Set to yes if building a shared library automatically hardcodes DIR into the library
9235 # and all subsequent libraries and executables linked against it.
9236 hardcode_automatic=$hardcode_automatic
9237
9238 # Variables whose values should be saved in libtool wrapper scripts and
9239 # restored at relink time.
9240 variables_saved_for_relink="$variables_saved_for_relink"
9241
9242 # Whether libtool must link a program against all its dependency libraries.
9243 link_all_deplibs=$link_all_deplibs
9244
9245 # Compile-time system search path for libraries
9246 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
9247
9248 # Run-time system search path for libraries
9249 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
9250
9251 # Fix the shell variable \$srcfile for the compiler.
9252 fix_srcfile_path="$fix_srcfile_path"
9253
9254 # Set to yes if exported symbols are required.
9255 always_export_symbols=$always_export_symbols
9256
9257 # The commands to list exported symbols.
9258 export_symbols_cmds=$lt_export_symbols_cmds
9259
9260 # The commands to extract the exported symbol list from a shared archive.
9261 extract_expsyms_cmds=$lt_extract_expsyms_cmds
9262
9263 # Symbols that should not be listed in the preloaded symbols.
9264 exclude_expsyms=$lt_exclude_expsyms
9265
9266 # Symbols that must always be exported.
9267 include_expsyms=$lt_include_expsyms
9268
9269 # ### END LIBTOOL CONFIG
9270
9271 __EOF__
9272
9273
9274   case $host_os in
9275   aix3*)
9276     cat <<\EOF >> "$cfgfile"
9277
9278 # AIX sometimes has problems with the GCC collect2 program.  For some
9279 # reason, if we set the COLLECT_NAMES environment variable, the problems
9280 # vanish in a puff of smoke.
9281 if test "X${COLLECT_NAMES+set}" != Xset; then
9282   COLLECT_NAMES=
9283   export COLLECT_NAMES
9284 fi
9285 EOF
9286     ;;
9287   esac
9288
9289   # We use sed instead of cat because bash on DJGPP gets confused if
9290   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
9291   # text mode, it properly converts lines to CR/LF.  This bash problem
9292   # is reportedly fixed, but why not run on old versions too?
9293   sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
9294
9295   mv -f "$cfgfile" "$ofile" || \
9296     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
9297   chmod +x "$ofile"
9298
9299 else
9300   # If there is no Makefile yet, we rely on a make rule to execute
9301   # `config.status --recheck' to rerun these tests and create the
9302   # libtool script then.
9303   test -f Makefile && make "$ltmain"
9304 fi
9305
9306
9307 ac_ext=c
9308 ac_cpp='$CPP $CPPFLAGS'
9309 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9310 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9311 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9312
9313 CC="$lt_save_CC"
9314
9315
9316 # Check whether --with-tags or --without-tags was given.
9317 if test "${with_tags+set}" = set; then
9318   withval="$with_tags"
9319   tagnames="$withval"
9320 fi;
9321
9322 if test -f "$ltmain" && test -n "$tagnames"; then
9323   if test ! -f "${ofile}"; then
9324     { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
9325 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
9326   fi
9327
9328   if test -z "$LTCC"; then
9329     eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
9330     if test -z "$LTCC"; then
9331       { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
9332 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
9333     else
9334       { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
9335 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
9336     fi
9337   fi
9338
9339   # Extract list of available tagged configurations in $ofile.
9340   # Note that this assumes the entire list is on one line.
9341   available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
9342
9343   lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9344   for tagname in $tagnames; do
9345     IFS="$lt_save_ifs"
9346     # Check whether tagname contains only valid characters
9347     case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
9348     "") ;;
9349     *)  { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
9350 echo "$as_me: error: invalid tag name: $tagname" >&2;}
9351    { (exit 1); exit 1; }; }
9352         ;;
9353     esac
9354
9355     if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
9356     then
9357       { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
9358 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
9359    { (exit 1); exit 1; }; }
9360     fi
9361
9362     # Update the list of available tags.
9363     if test -n "$tagname"; then
9364       echo appending configuration tag \"$tagname\" to $ofile
9365
9366       case $tagname in
9367       CXX)
9368         if test -n "$CXX" && test "X$CXX" != "Xno"; then
9369           ac_ext=cc
9370 ac_cpp='$CXXCPP $CPPFLAGS'
9371 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9372 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9373 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9374
9375
9376
9377
9378 archive_cmds_need_lc_CXX=no
9379 allow_undefined_flag_CXX=
9380 always_export_symbols_CXX=no
9381 archive_expsym_cmds_CXX=
9382 export_dynamic_flag_spec_CXX=
9383 hardcode_direct_CXX=no
9384 hardcode_libdir_flag_spec_CXX=
9385 hardcode_libdir_flag_spec_ld_CXX=
9386 hardcode_libdir_separator_CXX=
9387 hardcode_minus_L_CXX=no
9388 hardcode_automatic_CXX=no
9389 module_cmds_CXX=
9390 module_expsym_cmds_CXX=
9391 link_all_deplibs_CXX=unknown
9392 old_archive_cmds_CXX=$old_archive_cmds
9393 no_undefined_flag_CXX=
9394 whole_archive_flag_spec_CXX=
9395 enable_shared_with_static_runtimes_CXX=no
9396
9397 # Dependencies to place before and after the object being linked:
9398 predep_objects_CXX=
9399 postdep_objects_CXX=
9400 predeps_CXX=
9401 postdeps_CXX=
9402 compiler_lib_search_path_CXX=
9403
9404 # Source file extension for C++ test sources.
9405 ac_ext=cc
9406
9407 # Object file extension for compiled C++ test sources.
9408 objext=o
9409 objext_CXX=$objext
9410
9411 # Code to be used in simple compile tests
9412 lt_simple_compile_test_code="int some_variable = 0;\n"
9413
9414 # Code to be used in simple link tests
9415 lt_simple_link_test_code='int main(int, char *) { return(0); }\n'
9416
9417 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
9418
9419 # If no C compiler was specified, use CC.
9420 LTCC=${LTCC-"$CC"}
9421
9422 # Allow CC to be a program name with arguments.
9423 compiler=$CC
9424
9425
9426 # Allow CC to be a program name with arguments.
9427 lt_save_CC=$CC
9428 lt_save_LD=$LD
9429 lt_save_GCC=$GCC
9430 GCC=$GXX
9431 lt_save_with_gnu_ld=$with_gnu_ld
9432 lt_save_path_LD=$lt_cv_path_LD
9433 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
9434   lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
9435 else
9436   unset lt_cv_prog_gnu_ld
9437 fi
9438 if test -n "${lt_cv_path_LDCXX+set}"; then
9439   lt_cv_path_LD=$lt_cv_path_LDCXX
9440 else
9441   unset lt_cv_path_LD
9442 fi
9443 test -z "${LDCXX+set}" || LD=$LDCXX
9444 CC=${CXX-"c++"}
9445 compiler=$CC
9446 compiler_CXX=$CC
9447 cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
9448
9449 # We don't want -fno-exception wen compiling C++ code, so set the
9450 # no_builtin_flag separately
9451 if test "$GXX" = yes; then
9452   lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
9453 else
9454   lt_prog_compiler_no_builtin_flag_CXX=
9455 fi
9456
9457 if test "$GXX" = yes; then
9458   # Set up default GNU C++ configuration
9459
9460
9461 # Check whether --with-gnu-ld or --without-gnu-ld was given.
9462 if test "${with_gnu_ld+set}" = set; then
9463   withval="$with_gnu_ld"
9464   test "$withval" = no || with_gnu_ld=yes
9465 else
9466   with_gnu_ld=no
9467 fi;
9468 ac_prog=ld
9469 if test "$GCC" = yes; then
9470   # Check if gcc -print-prog-name=ld gives a path.
9471   echo "$as_me:$LINENO: checking for ld used by $CC" >&5
9472 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
9473   case $host in
9474   *-*-mingw*)
9475     # gcc leaves a trailing carriage return which upsets mingw
9476     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
9477   *)
9478     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
9479   esac
9480   case $ac_prog in
9481     # Accept absolute paths.
9482     [\\/]* | ?:[\\/]*)
9483       re_direlt='/[^/][^/]*/\.\./'
9484       # Canonicalize the path of ld
9485       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
9486       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
9487         ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
9488       done
9489       test -z "$LD" && LD="$ac_prog"
9490       ;;
9491   "")
9492     # If it fails, then pretend we aren't using GCC.
9493     ac_prog=ld
9494     ;;
9495   *)
9496     # If it is relative, then search for the first ld in PATH.
9497     with_gnu_ld=unknown
9498     ;;
9499   esac
9500 elif test "$with_gnu_ld" = yes; then
9501   echo "$as_me:$LINENO: checking for GNU ld" >&5
9502 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
9503 else
9504   echo "$as_me:$LINENO: checking for non-GNU ld" >&5
9505 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
9506 fi
9507 if test "${lt_cv_path_LD+set}" = set; then
9508   echo $ECHO_N "(cached) $ECHO_C" >&6
9509 else
9510   if test -z "$LD"; then
9511   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9512   for ac_dir in $PATH; do
9513     IFS="$lt_save_ifs"
9514     test -z "$ac_dir" && ac_dir=.
9515     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
9516       lt_cv_path_LD="$ac_dir/$ac_prog"
9517       # Check to see if the program is GNU ld.  I'd rather use --version,
9518       # but apparently some GNU ld's only accept -v.
9519       # Break only if it was the GNU/non-GNU ld that we prefer.
9520       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
9521       *GNU* | *'with BFD'*)
9522         test "$with_gnu_ld" != no && break
9523         ;;
9524       *)
9525         test "$with_gnu_ld" != yes && break
9526         ;;
9527       esac
9528     fi
9529   done
9530   IFS="$lt_save_ifs"
9531 else
9532   lt_cv_path_LD="$LD" # Let the user override the test with a path.
9533 fi
9534 fi
9535
9536 LD="$lt_cv_path_LD"
9537 if test -n "$LD"; then
9538   echo "$as_me:$LINENO: result: $LD" >&5
9539 echo "${ECHO_T}$LD" >&6
9540 else
9541   echo "$as_me:$LINENO: result: no" >&5
9542 echo "${ECHO_T}no" >&6
9543 fi
9544 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
9545 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
9546    { (exit 1); exit 1; }; }
9547 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
9548 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
9549 if test "${lt_cv_prog_gnu_ld+set}" = set; then
9550   echo $ECHO_N "(cached) $ECHO_C" >&6
9551 else
9552   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
9553 case `"$LD" -v 2>&1 </dev/null` in
9554 *GNU* | *'with BFD'*)
9555   lt_cv_prog_gnu_ld=yes
9556   ;;
9557 *)
9558   lt_cv_prog_gnu_ld=no
9559   ;;
9560 esac
9561 fi
9562 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
9563 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
9564 with_gnu_ld=$lt_cv_prog_gnu_ld
9565
9566
9567
9568   # Check if GNU C++ uses GNU ld as the underlying linker, since the
9569   # archiving commands below assume that GNU ld is being used.
9570   if test "$with_gnu_ld" = yes; then
9571     archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
9572     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'
9573
9574     hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
9575     export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
9576
9577     # If archive_cmds runs LD, not CC, wlarc should be empty
9578     # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
9579     #     investigate it a little bit more. (MM)
9580     wlarc='${wl}'
9581
9582     # ancient GNU ld didn't support --whole-archive et. al.
9583     if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
9584         grep 'no-whole-archive' > /dev/null; then
9585       whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9586     else
9587       whole_archive_flag_spec_CXX=
9588     fi
9589   else
9590     with_gnu_ld=no
9591     wlarc=
9592
9593     # A generic and very simple default shared library creation
9594     # command for GNU C++ for the case where it uses the native
9595     # linker, instead of GNU ld.  If possible, this setting should
9596     # overridden to take advantage of the native linker features on
9597     # the platform it is being used on.
9598     archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
9599   fi
9600
9601   # Commands to make compiler produce verbose output that lists
9602   # what "hidden" libraries, object files and flags are used when
9603   # linking a shared library.
9604   output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
9605
9606 else
9607   GXX=no
9608   with_gnu_ld=no
9609   wlarc=
9610 fi
9611
9612 # PORTME: fill in a description of your system's C++ link characteristics
9613 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9614 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
9615 ld_shlibs_CXX=yes
9616 case $host_os in
9617   aix3*)
9618     # FIXME: insert proper C++ library support
9619     ld_shlibs_CXX=no
9620     ;;
9621   aix4* | aix5*)
9622     if test "$host_cpu" = ia64; then
9623       # On IA64, the linker does run time linking by default, so we don't
9624       # have to do anything special.
9625       aix_use_runtimelinking=no
9626       exp_sym_flag='-Bexport'
9627       no_entry_flag=""
9628     else
9629       aix_use_runtimelinking=no
9630
9631       # Test if we are trying to use run time linking or normal
9632       # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9633       # need to do runtime linking.
9634       case $host_os in aix4.[23]|aix4.[23].*|aix5*)
9635         for ld_flag in $LDFLAGS; do
9636           case $ld_flag in
9637           *-brtl*)
9638             aix_use_runtimelinking=yes
9639             break
9640             ;;
9641           esac
9642         done
9643       esac
9644
9645       exp_sym_flag='-bexport'
9646       no_entry_flag='-bnoentry'
9647     fi
9648
9649     # When large executables or shared objects are built, AIX ld can
9650     # have problems creating the table of contents.  If linking a library
9651     # or program results in "error TOC overflow" add -mminimal-toc to
9652     # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
9653     # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9654
9655     archive_cmds_CXX=''
9656     hardcode_direct_CXX=yes
9657     hardcode_libdir_separator_CXX=':'
9658     link_all_deplibs_CXX=yes
9659
9660     if test "$GXX" = yes; then
9661       case $host_os in aix4.012|aix4.012.*)
9662       # We only want to do this on AIX 4.2 and lower, the check
9663       # below for broken collect2 doesn't work under 4.3+
9664         collect2name=`${CC} -print-prog-name=collect2`
9665         if test -f "$collect2name" && \
9666            strings "$collect2name" | grep resolve_lib_name >/dev/null
9667         then
9668           # We have reworked collect2
9669           hardcode_direct_CXX=yes
9670         else
9671           # We have old collect2
9672           hardcode_direct_CXX=unsupported
9673           # It fails to find uninstalled libraries when the uninstalled
9674           # path is not listed in the libpath.  Setting hardcode_minus_L
9675           # to unsupported forces relinking
9676           hardcode_minus_L_CXX=yes
9677           hardcode_libdir_flag_spec_CXX='-L$libdir'
9678           hardcode_libdir_separator_CXX=
9679         fi
9680       esac
9681       shared_flag='-shared'
9682     else
9683       # not using gcc
9684       if test "$host_cpu" = ia64; then
9685         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9686         # chokes on -Wl,-G. The following line is correct:
9687         shared_flag='-G'
9688       else
9689         if test "$aix_use_runtimelinking" = yes; then
9690           shared_flag='${wl}-G'
9691         else
9692           shared_flag='${wl}-bM:SRE'
9693         fi
9694       fi
9695     fi
9696
9697     # It seems that -bexpall does not export symbols beginning with
9698     # underscore (_), so it is better to generate a list of symbols to export.
9699     always_export_symbols_CXX=yes
9700     if test "$aix_use_runtimelinking" = yes; then
9701       # Warning - without using the other runtime loading flags (-brtl),
9702       # -berok will link without error, but may produce a broken library.
9703       allow_undefined_flag_CXX='-berok'
9704       # Determine the default libpath from the value encoded in an empty executable.
9705       cat >conftest.$ac_ext <<_ACEOF
9706 #line $LINENO "configure"
9707 /* confdefs.h.  */
9708 _ACEOF
9709 cat confdefs.h >>conftest.$ac_ext
9710 cat >>conftest.$ac_ext <<_ACEOF
9711 /* end confdefs.h.  */
9712
9713 int
9714 main ()
9715 {
9716
9717   ;
9718   return 0;
9719 }
9720 _ACEOF
9721 rm -f conftest.$ac_objext conftest$ac_exeext
9722 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9723   (eval $ac_link) 2>&5
9724   ac_status=$?
9725   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9726   (exit $ac_status); } &&
9727          { ac_try='test -s conftest$ac_exeext'
9728   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9729   (eval $ac_try) 2>&5
9730   ac_status=$?
9731   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9732   (exit $ac_status); }; }; then
9733
9734 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
9735 }'`
9736 # Check for a 64-bit object if we didn't find anything.
9737 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; }
9738 }'`; fi
9739 else
9740   echo "$as_me: failed program was:" >&5
9741 sed 's/^/| /' conftest.$ac_ext >&5
9742
9743 fi
9744 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9745 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9746
9747       hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
9748
9749       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"
9750      else
9751       if test "$host_cpu" = ia64; then
9752         hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
9753         allow_undefined_flag_CXX="-z nodefs"
9754         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"
9755       else
9756         # Determine the default libpath from the value encoded in an empty executable.
9757         cat >conftest.$ac_ext <<_ACEOF
9758 #line $LINENO "configure"
9759 /* confdefs.h.  */
9760 _ACEOF
9761 cat confdefs.h >>conftest.$ac_ext
9762 cat >>conftest.$ac_ext <<_ACEOF
9763 /* end confdefs.h.  */
9764
9765 int
9766 main ()
9767 {
9768
9769   ;
9770   return 0;
9771 }
9772 _ACEOF
9773 rm -f conftest.$ac_objext conftest$ac_exeext
9774 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9775   (eval $ac_link) 2>&5
9776   ac_status=$?
9777   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9778   (exit $ac_status); } &&
9779          { ac_try='test -s conftest$ac_exeext'
9780   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9781   (eval $ac_try) 2>&5
9782   ac_status=$?
9783   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9784   (exit $ac_status); }; }; then
9785
9786 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
9787 }'`
9788 # Check for a 64-bit object if we didn't find anything.
9789 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; }
9790 }'`; fi
9791 else
9792   echo "$as_me: failed program was:" >&5
9793 sed 's/^/| /' conftest.$ac_ext >&5
9794
9795 fi
9796 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9797 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9798
9799         hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
9800         # Warning - without using the other run time loading flags,
9801         # -berok will link without error, but may produce a broken library.
9802         no_undefined_flag_CXX=' ${wl}-bernotok'
9803         allow_undefined_flag_CXX=' ${wl}-berok'
9804         # -bexpall does not export symbols beginning with underscore (_)
9805         always_export_symbols_CXX=yes
9806         # Exported symbols can be pulled into shared objects from archives
9807         whole_archive_flag_spec_CXX=' '
9808         archive_cmds_need_lc_CXX=yes
9809         # This is similar to how AIX traditionally builds it's shared libraries.
9810         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'
9811       fi
9812     fi
9813     ;;
9814   chorus*)
9815     case $cc_basename in
9816       *)
9817         # FIXME: insert proper C++ library support
9818         ld_shlibs_CXX=no
9819         ;;
9820     esac
9821     ;;
9822
9823   cygwin* | mingw* | pw32*)
9824     # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
9825     # as there is no search path for DLLs.
9826     hardcode_libdir_flag_spec_CXX='-L$libdir'
9827     allow_undefined_flag_CXX=unsupported
9828     always_export_symbols_CXX=no
9829     enable_shared_with_static_runtimes_CXX=yes
9830
9831     if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
9832       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'
9833       # If the export-symbols file already is a .def file (1st line
9834       # is EXPORTS), use it as is; otherwise, prepend...
9835       archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9836         cp $export_symbols $output_objdir/$soname.def;
9837       else
9838         echo EXPORTS > $output_objdir/$soname.def;
9839         cat $export_symbols >> $output_objdir/$soname.def;
9840       fi~
9841       $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'
9842     else
9843       ld_shlibs_CXX=no
9844     fi
9845   ;;
9846
9847   darwin* | rhapsody*)
9848    if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
9849     archive_cmds_need_lc_CXX=no
9850     case "$host_os" in
9851     rhapsody* | darwin1.[012])
9852       allow_undefined_flag_CXX='-undefined suppress'
9853       ;;
9854     *) # Darwin 1.3 on
9855       test -z ${LD_TWOLEVEL_NAMESPACE} && allow_undefined_flag_CXX='-flat_namespace -undefined suppress'
9856       ;;
9857     esac
9858         lt_int_apple_cc_single_mod=no
9859         output_verbose_link_cmd='echo'
9860         if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
9861           lt_int_apple_cc_single_mod=yes
9862         fi
9863         if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
9864           archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
9865         else
9866         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'
9867       fi
9868       module_cmds_CXX='$CC -bundle ${wl}-bind_at_load $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags'
9869
9870     # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
9871       if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
9872         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}'
9873       else
9874         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}'
9875       fi
9876         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}'
9877     hardcode_direct_CXX=no
9878     hardcode_automatic_CXX=yes
9879     hardcode_shlibpath_var_CXX=unsupported
9880     whole_archive_flag_spec_CXX='-all_load $convenience'
9881     link_all_deplibs_CXX=yes
9882    fi
9883     ;;
9884
9885   dgux*)
9886     case $cc_basename in
9887       ec++)
9888         # FIXME: insert proper C++ library support
9889         ld_shlibs_CXX=no
9890         ;;
9891       ghcx)
9892         # Green Hills C++ Compiler
9893         # FIXME: insert proper C++ library support
9894         ld_shlibs_CXX=no
9895         ;;
9896       *)
9897         # FIXME: insert proper C++ library support
9898         ld_shlibs_CXX=no
9899         ;;
9900     esac
9901     ;;
9902   freebsd12*)
9903     # C++ shared libraries reported to be fairly broken before switch to ELF
9904     ld_shlibs_CXX=no
9905     ;;
9906   freebsd-elf*)
9907     archive_cmds_need_lc_CXX=no
9908     ;;
9909   freebsd*)
9910     # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
9911     # conventions
9912     ld_shlibs_CXX=yes
9913     ;;
9914   gnu*)
9915     ;;
9916   hpux9*)
9917     hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
9918     hardcode_libdir_separator_CXX=:
9919     export_dynamic_flag_spec_CXX='${wl}-E'
9920     hardcode_direct_CXX=yes
9921     hardcode_minus_L_CXX=yes # Not in the search PATH,
9922                                 # but as the default
9923                                 # location of the library.
9924
9925     case $cc_basename in
9926     CC)
9927       # FIXME: insert proper C++ library support
9928       ld_shlibs_CXX=no
9929       ;;
9930     aCC)
9931       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'
9932       # Commands to make compiler produce verbose output that lists
9933       # what "hidden" libraries, object files and flags are used when
9934       # linking a shared library.
9935       #
9936       # There doesn't appear to be a way to prevent this compiler from
9937       # explicitly linking system object files so we need to strip them
9938       # from the output so that they don't get included in the library
9939       # dependencies.
9940       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'
9941       ;;
9942     *)
9943       if test "$GXX" = yes; then
9944         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'
9945       else
9946         # FIXME: insert proper C++ library support
9947         ld_shlibs_CXX=no
9948       fi
9949       ;;
9950     esac
9951     ;;
9952   hpux10*|hpux11*)
9953     if test $with_gnu_ld = no; then
9954       case "$host_cpu" in
9955       hppa*64*)
9956         hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
9957         hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
9958         hardcode_libdir_separator_CXX=:
9959         ;;
9960       ia64*)
9961         hardcode_libdir_flag_spec_CXX='-L$libdir'
9962         ;;
9963       *)
9964         hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
9965         hardcode_libdir_separator_CXX=:
9966         export_dynamic_flag_spec_CXX='${wl}-E'
9967         ;;
9968       esac
9969     fi
9970     case "$host_cpu" in
9971     hppa*64*)
9972       hardcode_direct_CXX=no
9973       hardcode_shlibpath_var_CXX=no
9974       ;;
9975     ia64*)
9976       hardcode_direct_CXX=no
9977       hardcode_shlibpath_var_CXX=no
9978       hardcode_minus_L_CXX=yes # Not in the search PATH,
9979                                               # but as the default
9980                                               # location of the library.
9981       ;;
9982     *)
9983       hardcode_direct_CXX=yes
9984       hardcode_minus_L_CXX=yes # Not in the search PATH,
9985                                               # but as the default
9986                                               # location of the library.
9987       ;;
9988     esac
9989
9990     case $cc_basename in
9991       CC)
9992         # FIXME: insert proper C++ library support
9993         ld_shlibs_CXX=no
9994         ;;
9995       aCC)
9996         case "$host_cpu" in
9997         hppa*64*|ia64*)
9998           archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
9999           ;;
10000         *)
10001           archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10002           ;;
10003         esac
10004         # Commands to make compiler produce verbose output that lists
10005         # what "hidden" libraries, object files and flags are used when
10006         # linking a shared library.
10007         #
10008         # There doesn't appear to be a way to prevent this compiler from
10009         # explicitly linking system object files so we need to strip them
10010         # from the output so that they don't get included in the library
10011         # dependencies.
10012         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'
10013         ;;
10014       *)
10015         if test "$GXX" = yes; then
10016           if test $with_gnu_ld = no; then
10017             case "$host_cpu" in
10018             ia64*|hppa*64*)
10019               archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
10020               ;;
10021             *)
10022               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'
10023               ;;
10024             esac
10025           fi
10026         else
10027           # FIXME: insert proper C++ library support
10028           ld_shlibs_CXX=no
10029         fi
10030         ;;
10031     esac
10032     ;;
10033   irix5* | irix6*)
10034     case $cc_basename in
10035       CC)
10036         # SGI C++
10037         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'
10038
10039         # Archives containing C++ object files must be created using
10040         # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
10041         # necessary to make sure instantiated templates are included
10042         # in the archive.
10043         old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
10044         ;;
10045       *)
10046         if test "$GXX" = yes; then
10047           if test "$with_gnu_ld" = no; then
10048             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'
10049           else
10050             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'
10051           fi
10052         fi
10053         link_all_deplibs_CXX=yes
10054         ;;
10055     esac
10056     hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10057     hardcode_libdir_separator_CXX=:
10058     ;;
10059   linux*)
10060     case $cc_basename in
10061       KCC)
10062         # Kuck and Associates, Inc. (KAI) C++ Compiler
10063
10064         # KCC will only create a shared library if the output file
10065         # ends with ".so" (or ".sl" for HP-UX), so rename the library
10066         # to its proper name (with version) after linking.
10067         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'
10068         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'
10069         # Commands to make compiler produce verbose output that lists
10070         # what "hidden" libraries, object files and flags are used when
10071         # linking a shared library.
10072         #
10073         # There doesn't appear to be a way to prevent this compiler from
10074         # explicitly linking system object files so we need to strip them
10075         # from the output so that they don't get included in the library
10076         # dependencies.
10077         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'
10078
10079         hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
10080         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10081
10082         # Archives containing C++ object files must be created using
10083         # "CC -Bstatic", where "CC" is the KAI C++ compiler.
10084         old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
10085         ;;
10086       icpc)
10087         # Intel C++
10088         with_gnu_ld=yes
10089         archive_cmds_need_lc_CXX=no
10090         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10091         archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10092         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10093         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10094         whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
10095         ;;
10096       cxx)
10097         # Compaq C++
10098         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10099         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'
10100
10101         runpath_var=LD_RUN_PATH
10102         hardcode_libdir_flag_spec_CXX='-rpath $libdir'
10103         hardcode_libdir_separator_CXX=:
10104
10105         # Commands to make compiler produce verbose output that lists
10106         # what "hidden" libraries, object files and flags are used when
10107         # linking a shared library.
10108         #
10109         # There doesn't appear to be a way to prevent this compiler from
10110         # explicitly linking system object files so we need to strip them
10111         # from the output so that they don't get included in the library
10112         # dependencies.
10113         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'
10114         ;;
10115     esac
10116     ;;
10117   lynxos*)
10118     # FIXME: insert proper C++ library support
10119     ld_shlibs_CXX=no
10120     ;;
10121   m88k*)
10122     # FIXME: insert proper C++ library support
10123     ld_shlibs_CXX=no
10124     ;;
10125   mvs*)
10126     case $cc_basename in
10127       cxx)
10128         # FIXME: insert proper C++ library support
10129         ld_shlibs_CXX=no
10130         ;;
10131       *)
10132         # FIXME: insert proper C++ library support
10133         ld_shlibs_CXX=no
10134         ;;
10135     esac
10136     ;;
10137   netbsd*)
10138     if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
10139       archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
10140       wlarc=
10141       hardcode_libdir_flag_spec_CXX='-R$libdir'
10142       hardcode_direct_CXX=yes
10143       hardcode_shlibpath_var_CXX=no
10144     fi
10145     # Workaround some broken pre-1.5 toolchains
10146     output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
10147     ;;
10148   osf3*)
10149     case $cc_basename in
10150       KCC)
10151         # Kuck and Associates, Inc. (KAI) C++ Compiler
10152
10153         # KCC will only create a shared library if the output file
10154         # ends with ".so" (or ".sl" for HP-UX), so rename the library
10155         # to its proper name (with version) after linking.
10156         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'
10157
10158         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10159         hardcode_libdir_separator_CXX=:
10160
10161         # Archives containing C++ object files must be created using
10162         # "CC -Bstatic", where "CC" is the KAI C++ compiler.
10163         old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
10164
10165         ;;
10166       RCC)
10167         # Rational C++ 2.4.1
10168         # FIXME: insert proper C++ library support
10169         ld_shlibs_CXX=no
10170         ;;
10171       cxx)
10172         allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10173         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'
10174
10175         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10176         hardcode_libdir_separator_CXX=:
10177
10178         # Commands to make compiler produce verbose output that lists
10179         # what "hidden" libraries, object files and flags are used when
10180         # linking a shared library.
10181         #
10182         # There doesn't appear to be a way to prevent this compiler from
10183         # explicitly linking system object files so we need to strip them
10184         # from the output so that they don't get included in the library
10185         # dependencies.
10186         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'
10187         ;;
10188       *)
10189         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10190           allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10191           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'
10192
10193           hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10194           hardcode_libdir_separator_CXX=:
10195
10196           # Commands to make compiler produce verbose output that lists
10197           # what "hidden" libraries, object files and flags are used when
10198           # linking a shared library.
10199           output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10200
10201         else
10202           # FIXME: insert proper C++ library support
10203           ld_shlibs_CXX=no
10204         fi
10205         ;;
10206     esac
10207     ;;
10208   osf4* | osf5*)
10209     case $cc_basename in
10210       KCC)
10211         # Kuck and Associates, Inc. (KAI) C++ Compiler
10212
10213         # KCC will only create a shared library if the output file
10214         # ends with ".so" (or ".sl" for HP-UX), so rename the library
10215         # to its proper name (with version) after linking.
10216         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'
10217
10218         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10219         hardcode_libdir_separator_CXX=:
10220
10221         # Archives containing C++ object files must be created using
10222         # the KAI C++ compiler.
10223         old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
10224         ;;
10225       RCC)
10226         # Rational C++ 2.4.1
10227         # FIXME: insert proper C++ library support
10228         ld_shlibs_CXX=no
10229         ;;
10230       cxx)
10231         allow_undefined_flag_CXX=' -expect_unresolved \*'
10232         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'
10233         archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
10234           echo "-hidden">> $lib.exp~
10235           $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~
10236           $rm $lib.exp'
10237
10238         hardcode_libdir_flag_spec_CXX='-rpath $libdir'
10239         hardcode_libdir_separator_CXX=:
10240
10241         # Commands to make compiler produce verbose output that lists
10242         # what "hidden" libraries, object files and flags are used when
10243         # linking a shared library.
10244         #
10245         # There doesn't appear to be a way to prevent this compiler from
10246         # explicitly linking system object files so we need to strip them
10247         # from the output so that they don't get included in the library
10248         # dependencies.
10249         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'
10250         ;;
10251       *)
10252         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10253           allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10254          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'
10255
10256           hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10257           hardcode_libdir_separator_CXX=:
10258
10259           # Commands to make compiler produce verbose output that lists
10260           # what "hidden" libraries, object files and flags are used when
10261           # linking a shared library.
10262           output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10263
10264         else
10265           # FIXME: insert proper C++ library support
10266           ld_shlibs_CXX=no
10267         fi
10268         ;;
10269     esac
10270     ;;
10271   psos*)
10272     # FIXME: insert proper C++ library support
10273     ld_shlibs_CXX=no
10274     ;;
10275   sco*)
10276     archive_cmds_need_lc_CXX=no
10277     case $cc_basename in
10278       CC)
10279         # FIXME: insert proper C++ library support
10280         ld_shlibs_CXX=no
10281         ;;
10282       *)
10283         # FIXME: insert proper C++ library support
10284         ld_shlibs_CXX=no
10285         ;;
10286     esac
10287     ;;
10288   sunos4*)
10289     case $cc_basename in
10290       CC)
10291         # Sun C++ 4.x
10292         # FIXME: insert proper C++ library support
10293         ld_shlibs_CXX=no
10294         ;;
10295       lcc)
10296         # Lucid
10297         # FIXME: insert proper C++ library support
10298         ld_shlibs_CXX=no
10299         ;;
10300       *)
10301         # FIXME: insert proper C++ library support
10302         ld_shlibs_CXX=no
10303         ;;
10304     esac
10305     ;;
10306   solaris*)
10307     case $cc_basename in
10308       CC)
10309         # Sun C++ 4.2, 5.x and Centerline C++
10310         no_undefined_flag_CXX=' -zdefs'
10311         archive_cmds_CXX='$CC -G${allow_undefined_flag} -nolib -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10312         archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10313         $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'
10314
10315         hardcode_libdir_flag_spec_CXX='-R$libdir'
10316         hardcode_shlibpath_var_CXX=no
10317         case $host_os in
10318           solaris2.0-5 | solaris2.0-5.*) ;;
10319           *)
10320             # The C++ compiler is used as linker so we must use $wl
10321             # flag to pass the commands to the underlying system
10322             # linker.
10323             # Supported since Solaris 2.6 (maybe 2.5.1?)
10324             whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10325             ;;
10326         esac
10327         link_all_deplibs_CXX=yes
10328
10329         # Commands to make compiler produce verbose output that lists
10330         # what "hidden" libraries, object files and flags are used when
10331         # linking a shared library.
10332         #
10333         # There doesn't appear to be a way to prevent this compiler from
10334         # explicitly linking system object files so we need to strip them
10335         # from the output so that they don't get included in the library
10336         # dependencies.
10337         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'
10338
10339         # Archives containing C++ object files must be created using
10340         # "CC -xar", where "CC" is the Sun C++ compiler.  This is
10341         # necessary to make sure instantiated templates are included
10342         # in the archive.
10343         old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
10344         ;;
10345       gcx)
10346         # Green Hills C++ Compiler
10347         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10348
10349         # The C++ compiler must be used to create the archive.
10350         old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
10351         ;;
10352       *)
10353         # GNU C++ compiler with Solaris linker
10354         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10355           no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
10356           if $CC --version | grep -v '^2\.7' > /dev/null; then
10357             archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10358             archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10359                 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
10360
10361             # Commands to make compiler produce verbose output that lists
10362             # what "hidden" libraries, object files and flags are used when
10363             # linking a shared library.
10364             output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
10365           else
10366             # g++ 2.7 appears to require `-G' NOT `-shared' on this
10367             # platform.
10368             archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10369             archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10370                 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
10371
10372             # Commands to make compiler produce verbose output that lists
10373             # what "hidden" libraries, object files and flags are used when
10374             # linking a shared library.
10375             output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
10376           fi
10377
10378           hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
10379         fi
10380         ;;
10381     esac
10382     ;;
10383   sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
10384     archive_cmds_need_lc_CXX=no
10385     ;;
10386   tandem*)
10387     case $cc_basename in
10388       NCC)
10389         # NonStop-UX NCC 3.20
10390         # FIXME: insert proper C++ library support
10391         ld_shlibs_CXX=no
10392         ;;
10393       *)
10394         # FIXME: insert proper C++ library support
10395         ld_shlibs_CXX=no
10396         ;;
10397     esac
10398     ;;
10399   vxworks*)
10400     # FIXME: insert proper C++ library support
10401     ld_shlibs_CXX=no
10402     ;;
10403   *)
10404     # FIXME: insert proper C++ library support
10405     ld_shlibs_CXX=no
10406     ;;
10407 esac
10408 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
10409 echo "${ECHO_T}$ld_shlibs_CXX" >&6
10410 test "$ld_shlibs_CXX" = no && can_build_shared=no
10411
10412 GCC_CXX="$GXX"
10413 LD_CXX="$LD"
10414
10415 ## CAVEAT EMPTOR:
10416 ## There is no encapsulation within the following macros, do not change
10417 ## the running order or otherwise move them around unless you know exactly
10418 ## what you are doing...
10419
10420 cat > conftest.$ac_ext <<EOF
10421 class Foo
10422 {
10423 public:
10424   Foo (void) { a = 0; }
10425 private:
10426   int a;
10427 };
10428 EOF
10429
10430 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10431   (eval $ac_compile) 2>&5
10432   ac_status=$?
10433   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10434   (exit $ac_status); }; then
10435   # Parse the compiler output and extract the necessary
10436   # objects, libraries and library flags.
10437
10438   # Sentinel used to keep track of whether or not we are before
10439   # the conftest object file.
10440   pre_test_object_deps_done=no
10441
10442   # The `*' in the case matches for architectures that use `case' in
10443   # $output_verbose_cmd can trigger glob expansion during the loop
10444   # eval without this substitution.
10445   output_verbose_link_cmd="`$echo \"X$output_verbose_link_cmd\" | $Xsed -e \"$no_glob_subst\"`"
10446
10447   for p in `eval $output_verbose_link_cmd`; do
10448     case $p in
10449
10450     -L* | -R* | -l*)
10451        # Some compilers place space between "-{L,R}" and the path.
10452        # Remove the space.
10453        if test $p = "-L" \
10454           || test $p = "-R"; then
10455          prev=$p
10456          continue
10457        else
10458          prev=
10459        fi
10460
10461        if test "$pre_test_object_deps_done" = no; then
10462          case $p in
10463          -L* | -R*)
10464            # Internal compiler library paths should come after those
10465            # provided the user.  The postdeps already come after the
10466            # user supplied libs so there is no need to process them.
10467            if test -z "$compiler_lib_search_path_CXX"; then
10468              compiler_lib_search_path_CXX="${prev}${p}"
10469            else
10470              compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
10471            fi
10472            ;;
10473          # The "-l" case would never come before the object being
10474          # linked, so don't bother handling this case.
10475          esac
10476        else
10477          if test -z "$postdeps_CXX"; then
10478            postdeps_CXX="${prev}${p}"
10479          else
10480            postdeps_CXX="${postdeps_CXX} ${prev}${p}"
10481          fi
10482        fi
10483        ;;
10484
10485     *.$objext)
10486        # This assumes that the test object file only shows up
10487        # once in the compiler output.
10488        if test "$p" = "conftest.$objext"; then
10489          pre_test_object_deps_done=yes
10490          continue
10491        fi
10492
10493        if test "$pre_test_object_deps_done" = no; then
10494          if test -z "$predep_objects_CXX"; then
10495            predep_objects_CXX="$p"
10496          else
10497            predep_objects_CXX="$predep_objects_CXX $p"
10498          fi
10499        else
10500          if test -z "$postdep_objects_CXX"; then
10501            postdep_objects_CXX="$p"
10502          else
10503            postdep_objects_CXX="$postdep_objects_CXX $p"
10504          fi
10505        fi
10506        ;;
10507
10508     *) ;; # Ignore the rest.
10509
10510     esac
10511   done
10512
10513   # Clean up.
10514   rm -f a.out a.exe
10515 else
10516   echo "libtool.m4: error: problem compiling CXX test program"
10517 fi
10518
10519 $rm -f confest.$objext
10520
10521 case " $postdeps_CXX " in
10522 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
10523 esac
10524
10525 lt_prog_compiler_wl_CXX=
10526 lt_prog_compiler_pic_CXX=
10527 lt_prog_compiler_static_CXX=
10528
10529 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
10530 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
10531
10532   # C++ specific cases for pic, static, wl, etc.
10533   if test "$GXX" = yes; then
10534     lt_prog_compiler_wl_CXX='-Wl,'
10535     lt_prog_compiler_static_CXX='-static'
10536
10537     case $host_os in
10538     aix*)
10539       # All AIX code is PIC.
10540       if test "$host_cpu" = ia64; then
10541         # AIX 5 now supports IA64 processor
10542         lt_prog_compiler_static_CXX='-Bstatic'
10543       fi
10544       ;;
10545     amigaos*)
10546       # FIXME: we need at least 68020 code to build shared libraries, but
10547       # adding the `-m68020' flag to GCC prevents building anything better,
10548       # like `-m68040'.
10549       lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
10550       ;;
10551     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
10552       # PIC is the default for these OSes.
10553       ;;
10554     mingw* | os2* | pw32*)
10555       # This hack is so that the source file can tell whether it is being
10556       # built for inclusion in a dll (and should export symbols for example).
10557       lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
10558       ;;
10559     darwin* | rhapsody*)
10560       # PIC is the default on this platform
10561       # Common symbols not allowed in MH_DYLIB files
10562       lt_prog_compiler_pic_CXX='-fno-common'
10563       ;;
10564     *djgpp*)
10565       # DJGPP does not support shared libraries at all
10566       lt_prog_compiler_pic_CXX=
10567       ;;
10568     sysv4*MP*)
10569       if test -d /usr/nec; then
10570         lt_prog_compiler_pic_CXX=-Kconform_pic
10571       fi
10572       ;;
10573     hpux*)
10574       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
10575       # not for PA HP-UX.
10576       case "$host_cpu" in
10577       hppa*64*|ia64*)
10578         ;;
10579       *)
10580         lt_prog_compiler_pic_CXX='-fPIC'
10581         ;;
10582       esac
10583       ;;
10584     *)
10585       lt_prog_compiler_pic_CXX='-fPIC'
10586       ;;
10587     esac
10588   else
10589     case $host_os in
10590       aix4* | aix5*)
10591         # All AIX code is PIC.
10592         if test "$host_cpu" = ia64; then
10593           # AIX 5 now supports IA64 processor
10594           lt_prog_compiler_static_CXX='-Bstatic'
10595         else
10596           lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
10597         fi
10598         ;;
10599       chorus*)
10600         case $cc_basename in
10601         cxch68)
10602           # Green Hills C++ Compiler
10603           # _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"
10604           ;;
10605         esac
10606         ;;
10607       dgux*)
10608         case $cc_basename in
10609           ec++)
10610             lt_prog_compiler_pic_CXX='-KPIC'
10611             ;;
10612           ghcx)
10613             # Green Hills C++ Compiler
10614             lt_prog_compiler_pic_CXX='-pic'
10615             ;;
10616           *)
10617             ;;
10618         esac
10619         ;;
10620       freebsd*)
10621         # FreeBSD uses GNU C++
10622         ;;
10623       hpux9* | hpux10* | hpux11*)
10624         case $cc_basename in
10625           CC)
10626             lt_prog_compiler_wl_CXX='-Wl,'
10627             lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
10628             if test "$host_cpu" != ia64; then
10629               lt_prog_compiler_pic_CXX='+Z'
10630             fi
10631             ;;
10632           aCC)
10633             lt_prog_compiler_wl_CXX='-Wl,'
10634             lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
10635             case "$host_cpu" in
10636             hppa*64*|ia64*)
10637               # +Z the default
10638               ;;
10639             *)
10640               lt_prog_compiler_pic_CXX='+Z'
10641               ;;
10642             esac
10643             ;;
10644           *)
10645             ;;
10646         esac
10647         ;;
10648       irix5* | irix6* | nonstopux*)
10649         case $cc_basename in
10650           CC)
10651             lt_prog_compiler_wl_CXX='-Wl,'
10652             lt_prog_compiler_static_CXX='-non_shared'
10653             # CC pic flag -KPIC is the default.
10654             ;;
10655           *)
10656             ;;
10657         esac
10658         ;;
10659       linux*)
10660         case $cc_basename in
10661           KCC)
10662             # KAI C++ Compiler
10663             lt_prog_compiler_wl_CXX='--backend -Wl,'
10664             lt_prog_compiler_pic_CXX='-fPIC'
10665             ;;
10666           icpc)
10667             # Intel C++
10668             lt_prog_compiler_wl_CXX='-Wl,'
10669             lt_prog_compiler_pic_CXX='-KPIC'
10670             lt_prog_compiler_static_CXX='-static'
10671             ;;
10672           cxx)
10673             # Compaq C++
10674             # Make sure the PIC flag is empty.  It appears that all Alpha
10675             # Linux and Compaq Tru64 Unix objects are PIC.
10676             lt_prog_compiler_pic_CXX=
10677             lt_prog_compiler_static_CXX='-non_shared'
10678             ;;
10679           *)
10680             ;;
10681         esac
10682         ;;
10683       lynxos*)
10684         ;;
10685       m88k*)
10686         ;;
10687       mvs*)
10688         case $cc_basename in
10689           cxx)
10690             lt_prog_compiler_pic_CXX='-W c,exportall'
10691             ;;
10692           *)
10693             ;;
10694         esac
10695         ;;
10696       netbsd*)
10697         ;;
10698       osf3* | osf4* | osf5*)
10699         case $cc_basename in
10700           KCC)
10701             lt_prog_compiler_wl_CXX='--backend -Wl,'
10702             ;;
10703           RCC)
10704             # Rational C++ 2.4.1
10705             lt_prog_compiler_pic_CXX='-pic'
10706             ;;
10707           cxx)
10708             # Digital/Compaq C++
10709             lt_prog_compiler_wl_CXX='-Wl,'
10710             # Make sure the PIC flag is empty.  It appears that all Alpha
10711             # Linux and Compaq Tru64 Unix objects are PIC.
10712             lt_prog_compiler_pic_CXX=
10713             lt_prog_compiler_static_CXX='-non_shared'
10714             ;;
10715           *)
10716             ;;
10717         esac
10718         ;;
10719       psos*)
10720         ;;
10721       sco*)
10722         case $cc_basename in
10723           CC)
10724             lt_prog_compiler_pic_CXX='-fPIC'
10725             ;;
10726           *)
10727             ;;
10728         esac
10729         ;;
10730       solaris*)
10731         case $cc_basename in
10732           CC)
10733             # Sun C++ 4.2, 5.x and Centerline C++
10734             lt_prog_compiler_pic_CXX='-KPIC'
10735             lt_prog_compiler_static_CXX='-Bstatic'
10736             lt_prog_compiler_wl_CXX='-Qoption ld '
10737             ;;
10738           gcx)
10739             # Green Hills C++ Compiler
10740             lt_prog_compiler_pic_CXX='-PIC'
10741             ;;
10742           *)
10743             ;;
10744         esac
10745         ;;
10746       sunos4*)
10747         case $cc_basename in
10748           CC)
10749             # Sun C++ 4.x
10750             lt_prog_compiler_pic_CXX='-pic'
10751             lt_prog_compiler_static_CXX='-Bstatic'
10752             ;;
10753           lcc)
10754             # Lucid
10755             lt_prog_compiler_pic_CXX='-pic'
10756             ;;
10757           *)
10758             ;;
10759         esac
10760         ;;
10761       tandem*)
10762         case $cc_basename in
10763           NCC)
10764             # NonStop-UX NCC 3.20
10765             lt_prog_compiler_pic_CXX='-KPIC'
10766             ;;
10767           *)
10768             ;;
10769         esac
10770         ;;
10771       unixware*)
10772         ;;
10773       vxworks*)
10774         ;;
10775       *)
10776         lt_prog_compiler_can_build_shared_CXX=no
10777         ;;
10778     esac
10779   fi
10780
10781 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
10782 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6
10783
10784 #
10785 # Check to make sure the PIC flag actually works.
10786 #
10787 if test -n "$lt_prog_compiler_pic_CXX"; then
10788   echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
10789 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6
10790 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
10791   echo $ECHO_N "(cached) $ECHO_C" >&6
10792 else
10793   lt_prog_compiler_pic_works_CXX=no
10794   ac_outfile=conftest.$ac_objext
10795    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
10796    lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
10797    # Insert the option either (1) after the last *FLAGS variable, or
10798    # (2) before a word containing "conftest.", or (3) at the end.
10799    # Note that $ac_compile itself does not contain backslashes and begins
10800    # with a dollar sign (not a hyphen), so the echo should work correctly.
10801    # The option is referenced via a variable to avoid confusing sed.
10802    lt_compile=`echo "$ac_compile" | $SED \
10803    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
10804    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10805    -e 's:$: $lt_compiler_flag:'`
10806    (eval echo "\"\$as_me:10806: $lt_compile\"" >&5)
10807    (eval "$lt_compile" 2>conftest.err)
10808    ac_status=$?
10809    cat conftest.err >&5
10810    echo "$as_me:10810: \$? = $ac_status" >&5
10811    if (exit $ac_status) && test -s "$ac_outfile"; then
10812      # The compiler can only warn and ignore the option if not recognized
10813      # So say no if there are warnings
10814      if test ! -s conftest.err; then
10815        lt_prog_compiler_pic_works_CXX=yes
10816      fi
10817    fi
10818    $rm conftest*
10819
10820 fi
10821 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
10822 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6
10823
10824 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
10825     case $lt_prog_compiler_pic_CXX in
10826      "" | " "*) ;;
10827      *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
10828      esac
10829 else
10830     lt_prog_compiler_pic_CXX=
10831      lt_prog_compiler_can_build_shared_CXX=no
10832 fi
10833
10834 fi
10835 case "$host_os" in
10836   # For platforms which do not support PIC, -DPIC is meaningless:
10837   *djgpp*)
10838     lt_prog_compiler_pic_CXX=
10839     ;;
10840   *)
10841     lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
10842     ;;
10843 esac
10844
10845 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
10846 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
10847 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
10848   echo $ECHO_N "(cached) $ECHO_C" >&6
10849 else
10850   lt_cv_prog_compiler_c_o_CXX=no
10851    $rm -r conftest 2>/dev/null
10852    mkdir conftest
10853    cd conftest
10854    mkdir out
10855    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
10856
10857    # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
10858    # that will create temporary files in the current directory regardless of
10859    # the output directory.  Thus, making CWD read-only will cause this test
10860    # to fail, enabling locking or at least warning the user not to do parallel
10861    # builds.
10862    chmod -w .
10863
10864    lt_compiler_flag="-o out/conftest2.$ac_objext"
10865    # Insert the option either (1) after the last *FLAGS variable, or
10866    # (2) before a word containing "conftest.", or (3) at the end.
10867    # Note that $ac_compile itself does not contain backslashes and begins
10868    # with a dollar sign (not a hyphen), so the echo should work correctly.
10869    lt_compile=`echo "$ac_compile" | $SED \
10870    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
10871    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10872    -e 's:$: $lt_compiler_flag:'`
10873    (eval echo "\"\$as_me:10873: $lt_compile\"" >&5)
10874    (eval "$lt_compile" 2>out/conftest.err)
10875    ac_status=$?
10876    cat out/conftest.err >&5
10877    echo "$as_me:10877: \$? = $ac_status" >&5
10878    if (exit $ac_status) && test -s out/conftest2.$ac_objext
10879    then
10880      # The compiler can only warn and ignore the option if not recognized
10881      # So say no if there are warnings
10882      if test ! -s out/conftest.err; then
10883        lt_cv_prog_compiler_c_o_CXX=yes
10884      fi
10885    fi
10886    chmod u+w .
10887    $rm conftest* out/*
10888    rmdir out
10889    cd ..
10890    rmdir conftest
10891    $rm conftest*
10892
10893 fi
10894 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
10895 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
10896
10897
10898 hard_links="nottested"
10899 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
10900   # do not overwrite the value of need_locks provided by the user
10901   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
10902 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
10903   hard_links=yes
10904   $rm conftest*
10905   ln conftest.a conftest.b 2>/dev/null && hard_links=no
10906   touch conftest.a
10907   ln conftest.a conftest.b 2>&5 || hard_links=no
10908   ln conftest.a conftest.b 2>/dev/null && hard_links=no
10909   echo "$as_me:$LINENO: result: $hard_links" >&5
10910 echo "${ECHO_T}$hard_links" >&6
10911   if test "$hard_links" = no; then
10912     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
10913 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
10914     need_locks=warn
10915   fi
10916 else
10917   need_locks=no
10918 fi
10919
10920 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10921 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
10922
10923   export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
10924   case $host_os in
10925   aix4* | aix5*)
10926     # If we're using GNU nm, then we don't want the "-C" option.
10927     # -C means demangle to AIX nm, but means don't demangle with GNU nm
10928     if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
10929       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'
10930     else
10931       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'
10932     fi
10933     ;;
10934   pw32*)
10935     export_symbols_cmds_CXX="$ltdll_cmds"
10936   ;;
10937   cygwin* | mingw*)
10938     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
10939   ;;
10940   *)
10941     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
10942   ;;
10943   esac
10944
10945 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
10946 echo "${ECHO_T}$ld_shlibs_CXX" >&6
10947 test "$ld_shlibs_CXX" = no && can_build_shared=no
10948
10949 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10950 if test "$GCC" = yes; then
10951   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10952 fi
10953
10954 #
10955 # Do we need to explicitly link libc?
10956 #
10957 case "x$archive_cmds_need_lc_CXX" in
10958 x|xyes)
10959   # Assume -lc should be added
10960   archive_cmds_need_lc_CXX=yes
10961
10962   if test "$enable_shared" = yes && test "$GCC" = yes; then
10963     case $archive_cmds_CXX in
10964     *'~'*)
10965       # FIXME: we may have to deal with multi-command sequences.
10966       ;;
10967     '$CC '*)
10968       # Test whether the compiler implicitly links with -lc since on some
10969       # systems, -lgcc has to come before -lc. If gcc already passes -lc
10970       # to ld, don't add -lc before -lgcc.
10971       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
10972 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
10973       $rm conftest*
10974       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
10975
10976       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10977   (eval $ac_compile) 2>&5
10978   ac_status=$?
10979   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10980   (exit $ac_status); } 2>conftest.err; then
10981         soname=conftest
10982         lib=conftest
10983         libobjs=conftest.$ac_objext
10984         deplibs=
10985         wl=$lt_prog_compiler_wl_CXX
10986         compiler_flags=-v
10987         linker_flags=-v
10988         verstring=
10989         output_objdir=.
10990         libname=conftest
10991         lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
10992         allow_undefined_flag_CXX=
10993         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
10994   (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
10995   ac_status=$?
10996   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10997   (exit $ac_status); }
10998         then
10999           archive_cmds_need_lc_CXX=no
11000         else
11001           archive_cmds_need_lc_CXX=yes
11002         fi
11003         allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
11004       else
11005         cat conftest.err 1>&5
11006       fi
11007       $rm conftest*
11008       echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
11009 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6
11010       ;;
11011     esac
11012   fi
11013   ;;
11014 esac
11015
11016 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
11017 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
11018 hardcode_action_CXX=
11019 if test -n "$hardcode_libdir_flag_spec_CXX" || \
11020    test -n "$runpath_var CXX" || \
11021    test "X$hardcode_automatic_CXX"="Xyes" ; then
11022
11023   # We can hardcode non-existant directories.
11024   if test "$hardcode_direct_CXX" != no &&
11025      # If the only mechanism to avoid hardcoding is shlibpath_var, we
11026      # have to relink, otherwise we might link with an installed library
11027      # when we should be linking with a yet-to-be-installed one
11028      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
11029      test "$hardcode_minus_L_CXX" != no; then
11030     # Linking always hardcodes the temporary library directory.
11031     hardcode_action_CXX=relink
11032   else
11033     # We can link without hardcoding, and we can hardcode nonexisting dirs.
11034     hardcode_action_CXX=immediate
11035   fi
11036 else
11037   # We cannot hardcode anything, or else we can only hardcode existing
11038   # directories.
11039   hardcode_action_CXX=unsupported
11040 fi
11041 echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
11042 echo "${ECHO_T}$hardcode_action_CXX" >&6
11043
11044 if test "$hardcode_action_CXX" = relink; then
11045   # Fast installation is not supported
11046   enable_fast_install=no
11047 elif test "$shlibpath_overrides_runpath" = yes ||
11048      test "$enable_shared" = no; then
11049   # Fast installation is not necessary
11050   enable_fast_install=needless
11051 fi
11052
11053 striplib=
11054 old_striplib=
11055 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
11056 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
11057 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
11058   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11059   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11060   echo "$as_me:$LINENO: result: yes" >&5
11061 echo "${ECHO_T}yes" >&6
11062 else
11063 # FIXME - insert some real tests, host_os isn't really good enough
11064   case $host_os in
11065    darwin*)
11066        if test -n "$STRIP" ; then
11067          striplib="$STRIP -x"
11068          echo "$as_me:$LINENO: result: yes" >&5
11069 echo "${ECHO_T}yes" >&6
11070        else
11071   echo "$as_me:$LINENO: result: no" >&5
11072 echo "${ECHO_T}no" >&6
11073 fi
11074        ;;
11075    *)
11076   echo "$as_me:$LINENO: result: no" >&5
11077 echo "${ECHO_T}no" >&6
11078     ;;
11079   esac
11080 fi
11081
11082 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
11083 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
11084 library_names_spec=
11085 libname_spec='lib$name'
11086 soname_spec=
11087 shrext=".so"
11088 postinstall_cmds=
11089 postuninstall_cmds=
11090 finish_cmds=
11091 finish_eval=
11092 shlibpath_var=
11093 shlibpath_overrides_runpath=unknown
11094 version_type=none
11095 dynamic_linker="$host_os ld.so"
11096 sys_lib_dlsearch_path_spec="/lib /usr/lib"
11097 if test "$GCC" = yes; then
11098   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11099   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
11100     # if the path contains ";" then we assume it to be the separator
11101     # otherwise default to the standard path separator (i.e. ":") - it is
11102     # assumed that no part of a normal pathname contains ";" but that should
11103     # okay in the real world where ";" in dirpaths is itself problematic.
11104     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11105   else
11106     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
11107   fi
11108 else
11109   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11110 fi
11111 need_lib_prefix=unknown
11112 hardcode_into_libs=no
11113
11114 # when you set need_version to no, make sure it does not cause -set_version
11115 # flags to be left without arguments
11116 need_version=unknown
11117
11118 case $host_os in
11119 aix3*)
11120   version_type=linux
11121   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
11122   shlibpath_var=LIBPATH
11123
11124   # AIX 3 has no versioning support, so we append a major version to the name.
11125   soname_spec='${libname}${release}${shared_ext}$major'
11126   ;;
11127
11128 aix4* | aix5*)
11129   version_type=linux
11130   need_lib_prefix=no
11131   need_version=no
11132   hardcode_into_libs=yes
11133   if test "$host_cpu" = ia64; then
11134     # AIX 5 supports IA64
11135     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
11136     shlibpath_var=LD_LIBRARY_PATH
11137   else
11138     # With GCC up to 2.95.x, collect2 would create an import file
11139     # for dependence libraries.  The import file would start with
11140     # the line `#! .'.  This would cause the generated library to
11141     # depend on `.', always an invalid library.  This was fixed in
11142     # development snapshots of GCC prior to 3.0.
11143     case $host_os in
11144       aix4 | aix4.[01] | aix4.[01].*)
11145       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11146            echo ' yes '
11147            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
11148         :
11149       else
11150         can_build_shared=no
11151       fi
11152       ;;
11153     esac
11154     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
11155     # soname into executable. Probably we can add versioning support to
11156     # collect2, so additional links can be useful in future.
11157     if test "$aix_use_runtimelinking" = yes; then
11158       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11159       # instead of lib<name>.a to let people know that these are not
11160       # typical AIX shared libraries.
11161       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11162     else
11163       # We preserve .a as extension for shared libraries through AIX4.2
11164       # and later when we are not doing run time linking.
11165       library_names_spec='${libname}${release}.a $libname.a'
11166       soname_spec='${libname}${release}${shared_ext}$major'
11167     fi
11168     shlibpath_var=LIBPATH
11169   fi
11170   ;;
11171
11172 amigaos*)
11173   library_names_spec='$libname.ixlibrary $libname.a'
11174   # Create ${libname}_ixlibrary.a entries in /sys/libs.
11175   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'
11176   ;;
11177
11178 beos*)
11179   library_names_spec='${libname}${shared_ext}'
11180   dynamic_linker="$host_os ld.so"
11181   shlibpath_var=LIBRARY_PATH
11182   ;;
11183
11184 bsdi4*)
11185   version_type=linux
11186   need_version=no
11187   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11188   soname_spec='${libname}${release}${shared_ext}$major'
11189   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11190   shlibpath_var=LD_LIBRARY_PATH
11191   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11192   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11193   # the default ld.so.conf also contains /usr/contrib/lib and
11194   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11195   # libtool to hard-code these into programs
11196   ;;
11197
11198 cygwin* | mingw* | pw32*)
11199   version_type=windows
11200   shrext=".dll"
11201   need_version=no
11202   need_lib_prefix=no
11203
11204   case $GCC,$host_os in
11205   yes,cygwin* | yes,mingw* | yes,pw32*)
11206     library_names_spec='$libname.dll.a'
11207     # DLL is installed to $(libdir)/../bin by postinstall_cmds
11208     postinstall_cmds='base_file=`basename \${file}`~
11209       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
11210       dldir=$destdir/`dirname \$dlpath`~
11211       test -d \$dldir || mkdir -p \$dldir~
11212       $install_prog $dir/$dlname \$dldir/$dlname'
11213     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11214       dlpath=$dir/\$dldll~
11215        $rm \$dlpath'
11216     shlibpath_overrides_runpath=yes
11217
11218     case $host_os in
11219     cygwin*)
11220       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11221       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11222       sys_lib_search_path_spec="/lib /lib/w32api /usr/lib /usr/local/lib"
11223       ;;
11224     mingw*)
11225       # MinGW DLLs use traditional 'lib' prefix
11226       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11227       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11228       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
11229         # It is most probably a Windows format PATH printed by
11230         # mingw gcc, but we are running on Cygwin. Gcc prints its search
11231         # path with ; separators, and with drive letters. We can handle the
11232         # drive letters (cygwin fileutils understands them), so leave them,
11233         # especially as we might pass files found there to a mingw objdump,
11234         # which wouldn't understand a cygwinified path. Ahh.
11235         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11236       else
11237         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
11238       fi
11239       ;;
11240     pw32*)
11241       # pw32 DLLs use 'pw' prefix rather than 'lib'
11242       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
11243       ;;
11244     esac
11245     ;;
11246
11247   *)
11248     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11249     ;;
11250   esac
11251   dynamic_linker='Win32 ld.exe'
11252   # FIXME: first we should search . and the directory the executable is in
11253   shlibpath_var=PATH
11254   ;;
11255
11256 darwin* | rhapsody*)
11257   dynamic_linker="$host_os dyld"
11258   version_type=darwin
11259   need_lib_prefix=no
11260   need_version=no
11261   # FIXME: Relying on posixy $() will cause problems for
11262   #        cross-compilation, but unfortunately the echo tests do not
11263   #        yet detect zsh echo's removal of \ escapes.
11264   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11265   soname_spec='${libname}${release}${major}$shared_ext'
11266   shlibpath_overrides_runpath=yes
11267   shlibpath_var=DYLD_LIBRARY_PATH
11268   shrext='$(test .$module = .yes && echo .so || echo .dylib)'
11269   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
11270   if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
11271   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"`
11272   fi
11273   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11274   ;;
11275
11276 dgux*)
11277   version_type=linux
11278   need_lib_prefix=no
11279   need_version=no
11280   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11281   soname_spec='${libname}${release}${shared_ext}$major'
11282   shlibpath_var=LD_LIBRARY_PATH
11283   ;;
11284
11285 freebsd1*)
11286   dynamic_linker=no
11287   ;;
11288
11289 freebsd*)
11290   objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
11291   version_type=freebsd-$objformat
11292   case $version_type in
11293     freebsd-elf*)
11294       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11295       need_version=no
11296       need_lib_prefix=no
11297       ;;
11298     freebsd-*)
11299       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11300       need_version=yes
11301       ;;
11302   esac
11303   shlibpath_var=LD_LIBRARY_PATH
11304   case $host_os in
11305   freebsd2*)
11306     shlibpath_overrides_runpath=yes
11307     ;;
11308   freebsd3.01* | freebsdelf3.01*)
11309     shlibpath_overrides_runpath=yes
11310     hardcode_into_libs=yes
11311     ;;
11312   *) # from 3.2 on
11313     shlibpath_overrides_runpath=no
11314     hardcode_into_libs=yes
11315     ;;
11316   esac
11317   ;;
11318
11319 gnu*)
11320   version_type=linux
11321   need_lib_prefix=no
11322   need_version=no
11323   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11324   soname_spec='${libname}${release}${shared_ext}$major'
11325   shlibpath_var=LD_LIBRARY_PATH
11326   hardcode_into_libs=yes
11327   ;;
11328
11329 hpux9* | hpux10* | hpux11*)
11330   # Give a soname corresponding to the major version so that dld.sl refuses to
11331   # link against other versions.
11332   version_type=sunos
11333   need_lib_prefix=no
11334   need_version=no
11335   case "$host_cpu" in
11336   ia64*)
11337     shrext='.so'
11338     hardcode_into_libs=yes
11339     dynamic_linker="$host_os dld.so"
11340     shlibpath_var=LD_LIBRARY_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     if test "X$HPUX_IA64_MODE" = X32; then
11345       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11346     else
11347       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11348     fi
11349     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11350     ;;
11351    hppa*64*)
11352      shrext='.sl'
11353      hardcode_into_libs=yes
11354      dynamic_linker="$host_os dld.sl"
11355      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11356      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11357      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11358      soname_spec='${libname}${release}${shared_ext}$major'
11359      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11360      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11361      ;;
11362    *)
11363     shrext='.sl'
11364     dynamic_linker="$host_os dld.sl"
11365     shlibpath_var=SHLIB_PATH
11366     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11367     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11368     soname_spec='${libname}${release}${shared_ext}$major'
11369     ;;
11370   esac
11371   # HP-UX runs *really* slowly unless shared libraries are mode 555.
11372   postinstall_cmds='chmod 555 $lib'
11373   ;;
11374
11375 irix5* | irix6* | nonstopux*)
11376   case $host_os in
11377     nonstopux*) version_type=nonstopux ;;
11378     *)
11379         if test "$lt_cv_prog_gnu_ld" = yes; then
11380                 version_type=linux
11381         else
11382                 version_type=irix
11383         fi ;;
11384   esac
11385   need_lib_prefix=no
11386   need_version=no
11387   soname_spec='${libname}${release}${shared_ext}$major'
11388   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11389   case $host_os in
11390   irix5* | nonstopux*)
11391     libsuff= shlibsuff=
11392     ;;
11393   *)
11394     case $LD in # libtool.m4 will add one of these switches to LD
11395     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11396       libsuff= shlibsuff= libmagic=32-bit;;
11397     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11398       libsuff=32 shlibsuff=N32 libmagic=N32;;
11399     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11400       libsuff=64 shlibsuff=64 libmagic=64-bit;;
11401     *) libsuff= shlibsuff= libmagic=never-match;;
11402     esac
11403     ;;
11404   esac
11405   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11406   shlibpath_overrides_runpath=no
11407   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11408   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11409   hardcode_into_libs=yes
11410   ;;
11411
11412 # No shared lib support for Linux oldld, aout, or coff.
11413 linux*oldld* | linux*aout* | linux*coff*)
11414   dynamic_linker=no
11415   ;;
11416
11417 # This must be Linux ELF.
11418 linux*)
11419   version_type=linux
11420   need_lib_prefix=no
11421   need_version=no
11422   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11423   soname_spec='${libname}${release}${shared_ext}$major'
11424   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11425   shlibpath_var=LD_LIBRARY_PATH
11426   shlibpath_overrides_runpath=no
11427   # This implies no fast_install, which is unacceptable.
11428   # Some rework will be needed to allow for fast_install
11429   # before this can be enabled.
11430   hardcode_into_libs=yes
11431
11432   # We used to test for /lib/ld.so.1 and disable shared libraries on
11433   # powerpc, because MkLinux only supported shared libraries with the
11434   # GNU dynamic linker.  Since this was broken with cross compilers,
11435   # most powerpc-linux boxes support dynamic linking these days and
11436   # people can always --disable-shared, the test was removed, and we
11437   # assume the GNU/Linux dynamic linker is in use.
11438   dynamic_linker='GNU/Linux ld.so'
11439   ;;
11440
11441 netbsd*)
11442   version_type=sunos
11443   need_lib_prefix=no
11444   need_version=no
11445   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
11446     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11447     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11448     dynamic_linker='NetBSD (a.out) ld.so'
11449   else
11450     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
11451     soname_spec='${libname}${release}${shared_ext}$major'
11452     dynamic_linker='NetBSD ld.elf_so'
11453   fi
11454   shlibpath_var=LD_LIBRARY_PATH
11455   shlibpath_overrides_runpath=yes
11456   hardcode_into_libs=yes
11457   ;;
11458
11459 newsos6)
11460   version_type=linux
11461   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11462   shlibpath_var=LD_LIBRARY_PATH
11463   shlibpath_overrides_runpath=yes
11464   ;;
11465
11466 nto-qnx)
11467   version_type=linux
11468   need_lib_prefix=no
11469   need_version=no
11470   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11471   soname_spec='${libname}${release}${shared_ext}$major'
11472   shlibpath_var=LD_LIBRARY_PATH
11473   shlibpath_overrides_runpath=yes
11474   ;;
11475
11476 openbsd*)
11477   version_type=sunos
11478   need_lib_prefix=no
11479   need_version=no
11480   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11481   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11482   shlibpath_var=LD_LIBRARY_PATH
11483   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11484     case $host_os in
11485       openbsd2.[89] | openbsd2.[89].*)
11486         shlibpath_overrides_runpath=no
11487         ;;
11488       *)
11489         shlibpath_overrides_runpath=yes
11490         ;;
11491       esac
11492   else
11493     shlibpath_overrides_runpath=yes
11494   fi
11495   ;;
11496
11497 os2*)
11498   libname_spec='$name'
11499   shrext=".dll"
11500   need_lib_prefix=no
11501   library_names_spec='$libname${shared_ext} $libname.a'
11502   dynamic_linker='OS/2 ld.exe'
11503   shlibpath_var=LIBPATH
11504   ;;
11505
11506 osf3* | osf4* | osf5*)
11507   version_type=osf
11508   need_lib_prefix=no
11509   need_version=no
11510   soname_spec='${libname}${release}${shared_ext}$major'
11511   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11512   shlibpath_var=LD_LIBRARY_PATH
11513   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11514   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11515   ;;
11516
11517 sco3.2v5*)
11518   version_type=osf
11519   soname_spec='${libname}${release}${shared_ext}$major'
11520   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11521   shlibpath_var=LD_LIBRARY_PATH
11522   ;;
11523
11524 solaris*)
11525   version_type=linux
11526   need_lib_prefix=no
11527   need_version=no
11528   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11529   soname_spec='${libname}${release}${shared_ext}$major'
11530   shlibpath_var=LD_LIBRARY_PATH
11531   shlibpath_overrides_runpath=yes
11532   hardcode_into_libs=yes
11533   # ldd complains unless libraries are executable
11534   postinstall_cmds='chmod +x $lib'
11535   ;;
11536
11537 sunos4*)
11538   version_type=sunos
11539   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11540   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11541   shlibpath_var=LD_LIBRARY_PATH
11542   shlibpath_overrides_runpath=yes
11543   if test "$with_gnu_ld" = yes; then
11544     need_lib_prefix=no
11545   fi
11546   need_version=yes
11547   ;;
11548
11549 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
11550   version_type=linux
11551   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11552   soname_spec='${libname}${release}${shared_ext}$major'
11553   shlibpath_var=LD_LIBRARY_PATH
11554   case $host_vendor in
11555     sni)
11556       shlibpath_overrides_runpath=no
11557       need_lib_prefix=no
11558       export_dynamic_flag_spec='${wl}-Blargedynsym'
11559       runpath_var=LD_RUN_PATH
11560       ;;
11561     siemens)
11562       need_lib_prefix=no
11563       ;;
11564     motorola)
11565       need_lib_prefix=no
11566       need_version=no
11567       shlibpath_overrides_runpath=no
11568       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11569       ;;
11570   esac
11571   ;;
11572
11573 sysv4*MP*)
11574   if test -d /usr/nec ;then
11575     version_type=linux
11576     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11577     soname_spec='$libname${shared_ext}.$major'
11578     shlibpath_var=LD_LIBRARY_PATH
11579   fi
11580   ;;
11581
11582 uts4*)
11583   version_type=linux
11584   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11585   soname_spec='${libname}${release}${shared_ext}$major'
11586   shlibpath_var=LD_LIBRARY_PATH
11587   ;;
11588
11589 *)
11590   dynamic_linker=no
11591   ;;
11592 esac
11593 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
11594 echo "${ECHO_T}$dynamic_linker" >&6
11595 test "$dynamic_linker" = no && can_build_shared=no
11596
11597 if test "x$enable_dlopen" != xyes; then
11598   enable_dlopen=unknown
11599   enable_dlopen_self=unknown
11600   enable_dlopen_self_static=unknown
11601 else
11602   lt_cv_dlopen=no
11603   lt_cv_dlopen_libs=
11604
11605   case $host_os in
11606   beos*)
11607     lt_cv_dlopen="load_add_on"
11608     lt_cv_dlopen_libs=
11609     lt_cv_dlopen_self=yes
11610     ;;
11611
11612   mingw* | pw32*)
11613     lt_cv_dlopen="LoadLibrary"
11614     lt_cv_dlopen_libs=
11615    ;;
11616
11617   cygwin*)
11618     lt_cv_dlopen="dlopen"
11619     lt_cv_dlopen_libs=
11620    ;;
11621
11622   darwin*)
11623   # if libdl is installed we need to link against it
11624     echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
11625 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
11626 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
11627   echo $ECHO_N "(cached) $ECHO_C" >&6
11628 else
11629   ac_check_lib_save_LIBS=$LIBS
11630 LIBS="-ldl  $LIBS"
11631 cat >conftest.$ac_ext <<_ACEOF
11632 #line $LINENO "configure"
11633 /* confdefs.h.  */
11634 _ACEOF
11635 cat confdefs.h >>conftest.$ac_ext
11636 cat >>conftest.$ac_ext <<_ACEOF
11637 /* end confdefs.h.  */
11638
11639 /* Override any gcc2 internal prototype to avoid an error.  */
11640 #ifdef __cplusplus
11641 extern "C"
11642 #endif
11643 /* We use char because int might match the return type of a gcc2
11644    builtin and then its argument prototype would still apply.  */
11645 char dlopen ();
11646 int
11647 main ()
11648 {
11649 dlopen ();
11650   ;
11651   return 0;
11652 }
11653 _ACEOF
11654 rm -f conftest.$ac_objext conftest$ac_exeext
11655 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11656   (eval $ac_link) 2>&5
11657   ac_status=$?
11658   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11659   (exit $ac_status); } &&
11660          { ac_try='test -s conftest$ac_exeext'
11661   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11662   (eval $ac_try) 2>&5
11663   ac_status=$?
11664   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11665   (exit $ac_status); }; }; then
11666   ac_cv_lib_dl_dlopen=yes
11667 else
11668   echo "$as_me: failed program was:" >&5
11669 sed 's/^/| /' conftest.$ac_ext >&5
11670
11671 ac_cv_lib_dl_dlopen=no
11672 fi
11673 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11674 LIBS=$ac_check_lib_save_LIBS
11675 fi
11676 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
11677 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
11678 if test $ac_cv_lib_dl_dlopen = yes; then
11679   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11680 else
11681
11682     lt_cv_dlopen="dyld"
11683     lt_cv_dlopen_libs=
11684     lt_cv_dlopen_self=yes
11685
11686 fi
11687
11688    ;;
11689
11690   *)
11691     echo "$as_me:$LINENO: checking for shl_load" >&5
11692 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
11693 if test "${ac_cv_func_shl_load+set}" = set; then
11694   echo $ECHO_N "(cached) $ECHO_C" >&6
11695 else
11696   cat >conftest.$ac_ext <<_ACEOF
11697 #line $LINENO "configure"
11698 /* confdefs.h.  */
11699 _ACEOF
11700 cat confdefs.h >>conftest.$ac_ext
11701 cat >>conftest.$ac_ext <<_ACEOF
11702 /* end confdefs.h.  */
11703 /* System header to define __stub macros and hopefully few prototypes,
11704     which can conflict with char shl_load (); below.
11705     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11706     <limits.h> exists even on freestanding compilers.  */
11707 #ifdef __STDC__
11708 # include <limits.h>
11709 #else
11710 # include <assert.h>
11711 #endif
11712 /* Override any gcc2 internal prototype to avoid an error.  */
11713 #ifdef __cplusplus
11714 extern "C"
11715 {
11716 #endif
11717 /* We use char because int might match the return type of a gcc2
11718    builtin and then its argument prototype would still apply.  */
11719 char shl_load ();
11720 /* The GNU C library defines this for functions which it implements
11721     to always fail with ENOSYS.  Some functions are actually named
11722     something starting with __ and the normal name is an alias.  */
11723 #if defined (__stub_shl_load) || defined (__stub___shl_load)
11724 choke me
11725 #else
11726 char (*f) () = shl_load;
11727 #endif
11728 #ifdef __cplusplus
11729 }
11730 #endif
11731
11732 int
11733 main ()
11734 {
11735 return f != shl_load;
11736   ;
11737   return 0;
11738 }
11739 _ACEOF
11740 rm -f conftest.$ac_objext conftest$ac_exeext
11741 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11742   (eval $ac_link) 2>&5
11743   ac_status=$?
11744   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11745   (exit $ac_status); } &&
11746          { ac_try='test -s conftest$ac_exeext'
11747   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11748   (eval $ac_try) 2>&5
11749   ac_status=$?
11750   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11751   (exit $ac_status); }; }; then
11752   ac_cv_func_shl_load=yes
11753 else
11754   echo "$as_me: failed program was:" >&5
11755 sed 's/^/| /' conftest.$ac_ext >&5
11756
11757 ac_cv_func_shl_load=no
11758 fi
11759 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11760 fi
11761 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
11762 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
11763 if test $ac_cv_func_shl_load = yes; then
11764   lt_cv_dlopen="shl_load"
11765 else
11766   echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
11767 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
11768 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
11769   echo $ECHO_N "(cached) $ECHO_C" >&6
11770 else
11771   ac_check_lib_save_LIBS=$LIBS
11772 LIBS="-ldld  $LIBS"
11773 cat >conftest.$ac_ext <<_ACEOF
11774 #line $LINENO "configure"
11775 /* confdefs.h.  */
11776 _ACEOF
11777 cat confdefs.h >>conftest.$ac_ext
11778 cat >>conftest.$ac_ext <<_ACEOF
11779 /* end confdefs.h.  */
11780
11781 /* Override any gcc2 internal prototype to avoid an error.  */
11782 #ifdef __cplusplus
11783 extern "C"
11784 #endif
11785 /* We use char because int might match the return type of a gcc2
11786    builtin and then its argument prototype would still apply.  */
11787 char shl_load ();
11788 int
11789 main ()
11790 {
11791 shl_load ();
11792   ;
11793   return 0;
11794 }
11795 _ACEOF
11796 rm -f conftest.$ac_objext conftest$ac_exeext
11797 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11798   (eval $ac_link) 2>&5
11799   ac_status=$?
11800   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11801   (exit $ac_status); } &&
11802          { ac_try='test -s conftest$ac_exeext'
11803   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11804   (eval $ac_try) 2>&5
11805   ac_status=$?
11806   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11807   (exit $ac_status); }; }; then
11808   ac_cv_lib_dld_shl_load=yes
11809 else
11810   echo "$as_me: failed program was:" >&5
11811 sed 's/^/| /' conftest.$ac_ext >&5
11812
11813 ac_cv_lib_dld_shl_load=no
11814 fi
11815 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11816 LIBS=$ac_check_lib_save_LIBS
11817 fi
11818 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
11819 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
11820 if test $ac_cv_lib_dld_shl_load = yes; then
11821   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
11822 else
11823   echo "$as_me:$LINENO: checking for dlopen" >&5
11824 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
11825 if test "${ac_cv_func_dlopen+set}" = set; then
11826   echo $ECHO_N "(cached) $ECHO_C" >&6
11827 else
11828   cat >conftest.$ac_ext <<_ACEOF
11829 #line $LINENO "configure"
11830 /* confdefs.h.  */
11831 _ACEOF
11832 cat confdefs.h >>conftest.$ac_ext
11833 cat >>conftest.$ac_ext <<_ACEOF
11834 /* end confdefs.h.  */
11835 /* System header to define __stub macros and hopefully few prototypes,
11836     which can conflict with char dlopen (); below.
11837     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11838     <limits.h> exists even on freestanding compilers.  */
11839 #ifdef __STDC__
11840 # include <limits.h>
11841 #else
11842 # include <assert.h>
11843 #endif
11844 /* Override any gcc2 internal prototype to avoid an error.  */
11845 #ifdef __cplusplus
11846 extern "C"
11847 {
11848 #endif
11849 /* We use char because int might match the return type of a gcc2
11850    builtin and then its argument prototype would still apply.  */
11851 char dlopen ();
11852 /* The GNU C library defines this for functions which it implements
11853     to always fail with ENOSYS.  Some functions are actually named
11854     something starting with __ and the normal name is an alias.  */
11855 #if defined (__stub_dlopen) || defined (__stub___dlopen)
11856 choke me
11857 #else
11858 char (*f) () = dlopen;
11859 #endif
11860 #ifdef __cplusplus
11861 }
11862 #endif
11863
11864 int
11865 main ()
11866 {
11867 return f != dlopen;
11868   ;
11869   return 0;
11870 }
11871 _ACEOF
11872 rm -f conftest.$ac_objext conftest$ac_exeext
11873 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11874   (eval $ac_link) 2>&5
11875   ac_status=$?
11876   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11877   (exit $ac_status); } &&
11878          { ac_try='test -s conftest$ac_exeext'
11879   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11880   (eval $ac_try) 2>&5
11881   ac_status=$?
11882   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11883   (exit $ac_status); }; }; then
11884   ac_cv_func_dlopen=yes
11885 else
11886   echo "$as_me: failed program was:" >&5
11887 sed 's/^/| /' conftest.$ac_ext >&5
11888
11889 ac_cv_func_dlopen=no
11890 fi
11891 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11892 fi
11893 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
11894 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
11895 if test $ac_cv_func_dlopen = yes; then
11896   lt_cv_dlopen="dlopen"
11897 else
11898   echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
11899 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
11900 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
11901   echo $ECHO_N "(cached) $ECHO_C" >&6
11902 else
11903   ac_check_lib_save_LIBS=$LIBS
11904 LIBS="-ldl  $LIBS"
11905 cat >conftest.$ac_ext <<_ACEOF
11906 #line $LINENO "configure"
11907 /* confdefs.h.  */
11908 _ACEOF
11909 cat confdefs.h >>conftest.$ac_ext
11910 cat >>conftest.$ac_ext <<_ACEOF
11911 /* end confdefs.h.  */
11912
11913 /* Override any gcc2 internal prototype to avoid an error.  */
11914 #ifdef __cplusplus
11915 extern "C"
11916 #endif
11917 /* We use char because int might match the return type of a gcc2
11918    builtin and then its argument prototype would still apply.  */
11919 char dlopen ();
11920 int
11921 main ()
11922 {
11923 dlopen ();
11924   ;
11925   return 0;
11926 }
11927 _ACEOF
11928 rm -f conftest.$ac_objext conftest$ac_exeext
11929 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11930   (eval $ac_link) 2>&5
11931   ac_status=$?
11932   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11933   (exit $ac_status); } &&
11934          { ac_try='test -s conftest$ac_exeext'
11935   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11936   (eval $ac_try) 2>&5
11937   ac_status=$?
11938   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11939   (exit $ac_status); }; }; then
11940   ac_cv_lib_dl_dlopen=yes
11941 else
11942   echo "$as_me: failed program was:" >&5
11943 sed 's/^/| /' conftest.$ac_ext >&5
11944
11945 ac_cv_lib_dl_dlopen=no
11946 fi
11947 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11948 LIBS=$ac_check_lib_save_LIBS
11949 fi
11950 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
11951 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
11952 if test $ac_cv_lib_dl_dlopen = yes; then
11953   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11954 else
11955   echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
11956 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
11957 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
11958   echo $ECHO_N "(cached) $ECHO_C" >&6
11959 else
11960   ac_check_lib_save_LIBS=$LIBS
11961 LIBS="-lsvld  $LIBS"
11962 cat >conftest.$ac_ext <<_ACEOF
11963 #line $LINENO "configure"
11964 /* confdefs.h.  */
11965 _ACEOF
11966 cat confdefs.h >>conftest.$ac_ext
11967 cat >>conftest.$ac_ext <<_ACEOF
11968 /* end confdefs.h.  */
11969
11970 /* Override any gcc2 internal prototype to avoid an error.  */
11971 #ifdef __cplusplus
11972 extern "C"
11973 #endif
11974 /* We use char because int might match the return type of a gcc2
11975    builtin and then its argument prototype would still apply.  */
11976 char dlopen ();
11977 int
11978 main ()
11979 {
11980 dlopen ();
11981   ;
11982   return 0;
11983 }
11984 _ACEOF
11985 rm -f conftest.$ac_objext conftest$ac_exeext
11986 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11987   (eval $ac_link) 2>&5
11988   ac_status=$?
11989   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11990   (exit $ac_status); } &&
11991          { ac_try='test -s conftest$ac_exeext'
11992   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11993   (eval $ac_try) 2>&5
11994   ac_status=$?
11995   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11996   (exit $ac_status); }; }; then
11997   ac_cv_lib_svld_dlopen=yes
11998 else
11999   echo "$as_me: failed program was:" >&5
12000 sed 's/^/| /' conftest.$ac_ext >&5
12001
12002 ac_cv_lib_svld_dlopen=no
12003 fi
12004 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12005 LIBS=$ac_check_lib_save_LIBS
12006 fi
12007 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
12008 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
12009 if test $ac_cv_lib_svld_dlopen = yes; then
12010   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
12011 else
12012   echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
12013 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
12014 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
12015   echo $ECHO_N "(cached) $ECHO_C" >&6
12016 else
12017   ac_check_lib_save_LIBS=$LIBS
12018 LIBS="-ldld  $LIBS"
12019 cat >conftest.$ac_ext <<_ACEOF
12020 #line $LINENO "configure"
12021 /* confdefs.h.  */
12022 _ACEOF
12023 cat confdefs.h >>conftest.$ac_ext
12024 cat >>conftest.$ac_ext <<_ACEOF
12025 /* end confdefs.h.  */
12026
12027 /* Override any gcc2 internal prototype to avoid an error.  */
12028 #ifdef __cplusplus
12029 extern "C"
12030 #endif
12031 /* We use char because int might match the return type of a gcc2
12032    builtin and then its argument prototype would still apply.  */
12033 char dld_link ();
12034 int
12035 main ()
12036 {
12037 dld_link ();
12038   ;
12039   return 0;
12040 }
12041 _ACEOF
12042 rm -f conftest.$ac_objext conftest$ac_exeext
12043 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12044   (eval $ac_link) 2>&5
12045   ac_status=$?
12046   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12047   (exit $ac_status); } &&
12048          { ac_try='test -s conftest$ac_exeext'
12049   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12050   (eval $ac_try) 2>&5
12051   ac_status=$?
12052   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12053   (exit $ac_status); }; }; then
12054   ac_cv_lib_dld_dld_link=yes
12055 else
12056   echo "$as_me: failed program was:" >&5
12057 sed 's/^/| /' conftest.$ac_ext >&5
12058
12059 ac_cv_lib_dld_dld_link=no
12060 fi
12061 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12062 LIBS=$ac_check_lib_save_LIBS
12063 fi
12064 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
12065 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
12066 if test $ac_cv_lib_dld_dld_link = yes; then
12067   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
12068 fi
12069
12070
12071 fi
12072
12073
12074 fi
12075
12076
12077 fi
12078
12079
12080 fi
12081
12082
12083 fi
12084
12085     ;;
12086   esac
12087
12088   if test "x$lt_cv_dlopen" != xno; then
12089     enable_dlopen=yes
12090   else
12091     enable_dlopen=no
12092   fi
12093
12094   case $lt_cv_dlopen in
12095   dlopen)
12096     save_CPPFLAGS="$CPPFLAGS"
12097     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12098
12099     save_LDFLAGS="$LDFLAGS"
12100     eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12101
12102     save_LIBS="$LIBS"
12103     LIBS="$lt_cv_dlopen_libs $LIBS"
12104
12105     echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
12106 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
12107 if test "${lt_cv_dlopen_self+set}" = set; then
12108   echo $ECHO_N "(cached) $ECHO_C" >&6
12109 else
12110           if test "$cross_compiling" = yes; then :
12111   lt_cv_dlopen_self=cross
12112 else
12113   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12114   lt_status=$lt_dlunknown
12115   cat > conftest.$ac_ext <<EOF
12116 #line 12116 "configure"
12117 #include "confdefs.h"
12118
12119 #if HAVE_DLFCN_H
12120 #include <dlfcn.h>
12121 #endif
12122
12123 #include <stdio.h>
12124
12125 #ifdef RTLD_GLOBAL
12126 #  define LT_DLGLOBAL           RTLD_GLOBAL
12127 #else
12128 #  ifdef DL_GLOBAL
12129 #    define LT_DLGLOBAL         DL_GLOBAL
12130 #  else
12131 #    define LT_DLGLOBAL         0
12132 #  endif
12133 #endif
12134
12135 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12136    find out it does not work in some platform. */
12137 #ifndef LT_DLLAZY_OR_NOW
12138 #  ifdef RTLD_LAZY
12139 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
12140 #  else
12141 #    ifdef DL_LAZY
12142 #      define LT_DLLAZY_OR_NOW          DL_LAZY
12143 #    else
12144 #      ifdef RTLD_NOW
12145 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
12146 #      else
12147 #        ifdef DL_NOW
12148 #          define LT_DLLAZY_OR_NOW      DL_NOW
12149 #        else
12150 #          define LT_DLLAZY_OR_NOW      0
12151 #        endif
12152 #      endif
12153 #    endif
12154 #  endif
12155 #endif
12156
12157 #ifdef __cplusplus
12158 extern "C" void exit (int);
12159 #endif
12160
12161 void fnord() { int i=42;}
12162 int main ()
12163 {
12164   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12165   int status = $lt_dlunknown;
12166
12167   if (self)
12168     {
12169       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
12170       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12171       /* dlclose (self); */
12172     }
12173
12174     exit (status);
12175 }
12176 EOF
12177   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12178   (eval $ac_link) 2>&5
12179   ac_status=$?
12180   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12181   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
12182     (./conftest; exit; ) 2>/dev/null
12183     lt_status=$?
12184     case x$lt_status in
12185       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12186       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12187       x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
12188     esac
12189   else :
12190     # compilation failed
12191     lt_cv_dlopen_self=no
12192   fi
12193 fi
12194 rm -fr conftest*
12195
12196
12197 fi
12198 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
12199 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
12200
12201     if test "x$lt_cv_dlopen_self" = xyes; then
12202       LDFLAGS="$LDFLAGS $link_static_flag"
12203       echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
12204 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
12205 if test "${lt_cv_dlopen_self_static+set}" = set; then
12206   echo $ECHO_N "(cached) $ECHO_C" >&6
12207 else
12208           if test "$cross_compiling" = yes; then :
12209   lt_cv_dlopen_self_static=cross
12210 else
12211   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12212   lt_status=$lt_dlunknown
12213   cat > conftest.$ac_ext <<EOF
12214 #line 12214 "configure"
12215 #include "confdefs.h"
12216
12217 #if HAVE_DLFCN_H
12218 #include <dlfcn.h>
12219 #endif
12220
12221 #include <stdio.h>
12222
12223 #ifdef RTLD_GLOBAL
12224 #  define LT_DLGLOBAL           RTLD_GLOBAL
12225 #else
12226 #  ifdef DL_GLOBAL
12227 #    define LT_DLGLOBAL         DL_GLOBAL
12228 #  else
12229 #    define LT_DLGLOBAL         0
12230 #  endif
12231 #endif
12232
12233 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12234    find out it does not work in some platform. */
12235 #ifndef LT_DLLAZY_OR_NOW
12236 #  ifdef RTLD_LAZY
12237 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
12238 #  else
12239 #    ifdef DL_LAZY
12240 #      define LT_DLLAZY_OR_NOW          DL_LAZY
12241 #    else
12242 #      ifdef RTLD_NOW
12243 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
12244 #      else
12245 #        ifdef DL_NOW
12246 #          define LT_DLLAZY_OR_NOW      DL_NOW
12247 #        else
12248 #          define LT_DLLAZY_OR_NOW      0
12249 #        endif
12250 #      endif
12251 #    endif
12252 #  endif
12253 #endif
12254
12255 #ifdef __cplusplus
12256 extern "C" void exit (int);
12257 #endif
12258
12259 void fnord() { int i=42;}
12260 int main ()
12261 {
12262   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12263   int status = $lt_dlunknown;
12264
12265   if (self)
12266     {
12267       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
12268       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12269       /* dlclose (self); */
12270     }
12271
12272     exit (status);
12273 }
12274 EOF
12275   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12276   (eval $ac_link) 2>&5
12277   ac_status=$?
12278   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12279   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
12280     (./conftest; exit; ) 2>/dev/null
12281     lt_status=$?
12282     case x$lt_status in
12283       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12284       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12285       x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
12286     esac
12287   else :
12288     # compilation failed
12289     lt_cv_dlopen_self_static=no
12290   fi
12291 fi
12292 rm -fr conftest*
12293
12294
12295 fi
12296 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
12297 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
12298     fi
12299
12300     CPPFLAGS="$save_CPPFLAGS"
12301     LDFLAGS="$save_LDFLAGS"
12302     LIBS="$save_LIBS"
12303     ;;
12304   esac
12305
12306   case $lt_cv_dlopen_self in
12307   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12308   *) enable_dlopen_self=unknown ;;
12309   esac
12310
12311   case $lt_cv_dlopen_self_static in
12312   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12313   *) enable_dlopen_self_static=unknown ;;
12314   esac
12315 fi
12316
12317
12318 # The else clause should only fire when bootstrapping the
12319 # libtool distribution, otherwise you forgot to ship ltmain.sh
12320 # with your package, and you will get complaints that there are
12321 # no rules to generate ltmain.sh.
12322 if test -f "$ltmain"; then
12323   # See if we are running on zsh, and set the options which allow our commands through
12324   # without removal of \ escapes.
12325   if test -n "${ZSH_VERSION+set}" ; then
12326     setopt NO_GLOB_SUBST
12327   fi
12328   # Now quote all the things that may contain metacharacters while being
12329   # careful not to overquote the AC_SUBSTed values.  We take copies of the
12330   # variables and quote the copies for generation of the libtool script.
12331   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \
12332     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
12333     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
12334     deplibs_check_method reload_flag reload_cmds need_locks \
12335     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
12336     lt_cv_sys_global_symbol_to_c_name_address \
12337     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
12338     old_postinstall_cmds old_postuninstall_cmds \
12339     compiler_CXX \
12340     CC_CXX \
12341     LD_CXX \
12342     lt_prog_compiler_wl_CXX \
12343     lt_prog_compiler_pic_CXX \
12344     lt_prog_compiler_static_CXX \
12345     lt_prog_compiler_no_builtin_flag_CXX \
12346     export_dynamic_flag_spec_CXX \
12347     thread_safe_flag_spec_CXX \
12348     whole_archive_flag_spec_CXX \
12349     enable_shared_with_static_runtimes_CXX \
12350     old_archive_cmds_CXX \
12351     old_archive_from_new_cmds_CXX \
12352     predep_objects_CXX \
12353     postdep_objects_CXX \
12354     predeps_CXX \
12355     postdeps_CXX \
12356     compiler_lib_search_path_CXX \
12357     archive_cmds_CXX \
12358     archive_expsym_cmds_CXX \
12359     postinstall_cmds_CXX \
12360     postuninstall_cmds_CXX \
12361     old_archive_from_expsyms_cmds_CXX \
12362     allow_undefined_flag_CXX \
12363     no_undefined_flag_CXX \
12364     export_symbols_cmds_CXX \
12365     hardcode_libdir_flag_spec_CXX \
12366     hardcode_libdir_flag_spec_ld_CXX \
12367     hardcode_libdir_separator_CXX \
12368     hardcode_automatic_CXX \
12369     module_cmds_CXX \
12370     module_expsym_cmds_CXX \
12371     lt_cv_prog_compiler_c_o_CXX \
12372     exclude_expsyms_CXX \
12373     include_expsyms_CXX; do
12374
12375     case $var in
12376     old_archive_cmds_CXX | \
12377     old_archive_from_new_cmds_CXX | \
12378     archive_cmds_CXX | \
12379     archive_expsym_cmds_CXX | \
12380     module_cmds_CXX | \
12381     module_expsym_cmds_CXX | \
12382     old_archive_from_expsyms_cmds_CXX | \
12383     export_symbols_cmds_CXX | \
12384     extract_expsyms_cmds | reload_cmds | finish_cmds | \
12385     postinstall_cmds | postuninstall_cmds | \
12386     old_postinstall_cmds | old_postuninstall_cmds | \
12387     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
12388       # Double-quote double-evaled strings.
12389       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
12390       ;;
12391     *)
12392       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
12393       ;;
12394     esac
12395   done
12396
12397   case $lt_echo in
12398   *'\$0 --fallback-echo"')
12399     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
12400     ;;
12401   esac
12402
12403 cfgfile="$ofile"
12404
12405   cat <<__EOF__ >> "$cfgfile"
12406 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
12407
12408 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
12409
12410 # Shell to use when invoking shell scripts.
12411 SHELL=$lt_SHELL
12412
12413 # Whether or not to build shared libraries.
12414 build_libtool_libs=$enable_shared
12415
12416 # Whether or not to build static libraries.
12417 build_old_libs=$enable_static
12418
12419 # Whether or not to add -lc for building shared libraries.
12420 build_libtool_need_lc=$archive_cmds_need_lc_CXX
12421
12422 # Whether or not to disallow shared libs when runtime libs are static
12423 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
12424
12425 # Whether or not to optimize for fast installation.
12426 fast_install=$enable_fast_install
12427
12428 # The host system.
12429 host_alias=$host_alias
12430 host=$host
12431
12432 # An echo program that does not interpret backslashes.
12433 echo=$lt_echo
12434
12435 # The archiver.
12436 AR=$lt_AR
12437 AR_FLAGS=$lt_AR_FLAGS
12438
12439 # A C compiler.
12440 LTCC=$lt_LTCC
12441
12442 # A language-specific compiler.
12443 CC=$lt_compiler_CXX
12444
12445 # Is the compiler the GNU C compiler?
12446 with_gcc=$GCC_CXX
12447
12448 # An ERE matcher.
12449 EGREP=$lt_EGREP
12450
12451 # The linker used to build libraries.
12452 LD=$lt_LD_CXX
12453
12454 # Whether we need hard or soft links.
12455 LN_S=$lt_LN_S
12456
12457 # A BSD-compatible nm program.
12458 NM=$lt_NM
12459
12460 # A symbol stripping program
12461 STRIP=$STRIP
12462
12463 # Used to examine libraries when file_magic_cmd begins "file"
12464 MAGIC_CMD=$MAGIC_CMD
12465
12466 # Used on cygwin: DLL creation program.
12467 DLLTOOL="$DLLTOOL"
12468
12469 # Used on cygwin: object dumper.
12470 OBJDUMP="$OBJDUMP"
12471
12472 # Used on cygwin: assembler.
12473 AS="$AS"
12474
12475 # The name of the directory that contains temporary libtool files.
12476 objdir=$objdir
12477
12478 # How to create reloadable object files.
12479 reload_flag=$lt_reload_flag
12480 reload_cmds=$lt_reload_cmds
12481
12482 # How to pass a linker flag through the compiler.
12483 wl=$lt_lt_prog_compiler_wl_CXX
12484
12485 # Object file suffix (normally "o").
12486 objext="$ac_objext"
12487
12488 # Old archive suffix (normally "a").
12489 libext="$libext"
12490
12491 # Shared library suffix (normally ".so").
12492 shrext='$shrext'
12493
12494 # Executable file suffix (normally "").
12495 exeext="$exeext"
12496
12497 # Additional compiler flags for building library objects.
12498 pic_flag=$lt_lt_prog_compiler_pic_CXX
12499 pic_mode=$pic_mode
12500
12501 # What is the maximum length of a command?
12502 max_cmd_len=$lt_cv_sys_max_cmd_len
12503
12504 # Does compiler simultaneously support -c and -o options?
12505 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
12506
12507 # Must we lock files when doing compilation ?
12508 need_locks=$lt_need_locks
12509
12510 # Do we need the lib prefix for modules?
12511 need_lib_prefix=$need_lib_prefix
12512
12513 # Do we need a version for libraries?
12514 need_version=$need_version
12515
12516 # Whether dlopen is supported.
12517 dlopen_support=$enable_dlopen
12518
12519 # Whether dlopen of programs is supported.
12520 dlopen_self=$enable_dlopen_self
12521
12522 # Whether dlopen of statically linked programs is supported.
12523 dlopen_self_static=$enable_dlopen_self_static
12524
12525 # Compiler flag to prevent dynamic linking.
12526 link_static_flag=$lt_lt_prog_compiler_static_CXX
12527
12528 # Compiler flag to turn off builtin functions.
12529 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
12530
12531 # Compiler flag to allow reflexive dlopens.
12532 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
12533
12534 # Compiler flag to generate shared objects directly from archives.
12535 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
12536
12537 # Compiler flag to generate thread-safe objects.
12538 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
12539
12540 # Library versioning type.
12541 version_type=$version_type
12542
12543 # Format of library name prefix.
12544 libname_spec=$lt_libname_spec
12545
12546 # List of archive names.  First name is the real one, the rest are links.
12547 # The last name is the one that the linker finds with -lNAME.
12548 library_names_spec=$lt_library_names_spec
12549
12550 # The coded name of the library, if different from the real name.
12551 soname_spec=$lt_soname_spec
12552
12553 # Commands used to build and install an old-style archive.
12554 RANLIB=$lt_RANLIB
12555 old_archive_cmds=$lt_old_archive_cmds_CXX
12556 old_postinstall_cmds=$lt_old_postinstall_cmds
12557 old_postuninstall_cmds=$lt_old_postuninstall_cmds
12558
12559 # Create an old-style archive from a shared archive.
12560 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
12561
12562 # Create a temporary old-style archive to link instead of a shared archive.
12563 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
12564
12565 # Commands used to build and install a shared archive.
12566 archive_cmds=$lt_archive_cmds_CXX
12567 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
12568 postinstall_cmds=$lt_postinstall_cmds
12569 postuninstall_cmds=$lt_postuninstall_cmds
12570
12571 # Commands used to build a loadable module (assumed same as above if empty)
12572 module_cmds=$lt_module_cmds_CXX
12573 module_expsym_cmds=$lt_module_expsym_cmds_CXX
12574
12575 # Commands to strip libraries.
12576 old_striplib=$lt_old_striplib
12577 striplib=$lt_striplib
12578
12579 # Dependencies to place before the objects being linked to create a
12580 # shared library.
12581 predep_objects=$lt_predep_objects_CXX
12582
12583 # Dependencies to place after the objects being linked to create a
12584 # shared library.
12585 postdep_objects=$lt_postdep_objects_CXX
12586
12587 # Dependencies to place before the objects being linked to create a
12588 # shared library.
12589 predeps=$lt_predeps_CXX
12590
12591 # Dependencies to place after the objects being linked to create a
12592 # shared library.
12593 postdeps=$lt_postdeps_CXX
12594
12595 # The library search path used internally by the compiler when linking
12596 # a shared library.
12597 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
12598
12599 # Method to check whether dependent libraries are shared objects.
12600 deplibs_check_method=$lt_deplibs_check_method
12601
12602 # Command to use when deplibs_check_method == file_magic.
12603 file_magic_cmd=$lt_file_magic_cmd
12604
12605 # Flag that allows shared libraries with undefined symbols to be built.
12606 allow_undefined_flag=$lt_allow_undefined_flag_CXX
12607
12608 # Flag that forces no undefined symbols.
12609 no_undefined_flag=$lt_no_undefined_flag_CXX
12610
12611 # Commands used to finish a libtool library installation in a directory.
12612 finish_cmds=$lt_finish_cmds
12613
12614 # Same as above, but a single script fragment to be evaled but not shown.
12615 finish_eval=$lt_finish_eval
12616
12617 # Take the output of nm and produce a listing of raw symbols and C names.
12618 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
12619
12620 # Transform the output of nm in a proper C declaration
12621 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
12622
12623 # Transform the output of nm in a C name address pair
12624 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
12625
12626 # This is the shared library runtime path variable.
12627 runpath_var=$runpath_var
12628
12629 # This is the shared library path variable.
12630 shlibpath_var=$shlibpath_var
12631
12632 # Is shlibpath searched before the hard-coded library search path?
12633 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
12634
12635 # How to hardcode a shared library path into an executable.
12636 hardcode_action=$hardcode_action_CXX
12637
12638 # Whether we should hardcode library paths into libraries.
12639 hardcode_into_libs=$hardcode_into_libs
12640
12641 # Flag to hardcode \$libdir into a binary during linking.
12642 # This must work even if \$libdir does not exist.
12643 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
12644
12645 # If ld is used when linking, flag to hardcode \$libdir into
12646 # a binary during linking. This must work even if \$libdir does
12647 # not exist.
12648 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
12649
12650 # Whether we need a single -rpath flag with a separated argument.
12651 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
12652
12653 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
12654 # resulting binary.
12655 hardcode_direct=$hardcode_direct_CXX
12656
12657 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
12658 # resulting binary.
12659 hardcode_minus_L=$hardcode_minus_L_CXX
12660
12661 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
12662 # the resulting binary.
12663 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
12664
12665 # Set to yes if building a shared library automatically hardcodes DIR into the library
12666 # and all subsequent libraries and executables linked against it.
12667 hardcode_automatic=$hardcode_automatic_CXX
12668
12669 # Variables whose values should be saved in libtool wrapper scripts and
12670 # restored at relink time.
12671 variables_saved_for_relink="$variables_saved_for_relink"
12672
12673 # Whether libtool must link a program against all its dependency libraries.
12674 link_all_deplibs=$link_all_deplibs_CXX
12675
12676 # Compile-time system search path for libraries
12677 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
12678
12679 # Run-time system search path for libraries
12680 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
12681
12682 # Fix the shell variable \$srcfile for the compiler.
12683 fix_srcfile_path="$fix_srcfile_path_CXX"
12684
12685 # Set to yes if exported symbols are required.
12686 always_export_symbols=$always_export_symbols_CXX
12687
12688 # The commands to list exported symbols.
12689 export_symbols_cmds=$lt_export_symbols_cmds_CXX
12690
12691 # The commands to extract the exported symbol list from a shared archive.
12692 extract_expsyms_cmds=$lt_extract_expsyms_cmds
12693
12694 # Symbols that should not be listed in the preloaded symbols.
12695 exclude_expsyms=$lt_exclude_expsyms_CXX
12696
12697 # Symbols that must always be exported.
12698 include_expsyms=$lt_include_expsyms_CXX
12699
12700 # ### END LIBTOOL TAG CONFIG: $tagname
12701
12702 __EOF__
12703
12704
12705 else
12706   # If there is no Makefile yet, we rely on a make rule to execute
12707   # `config.status --recheck' to rerun these tests and create the
12708   # libtool script then.
12709   test -f Makefile && make "$ltmain"
12710 fi
12711
12712
12713 ac_ext=c
12714 ac_cpp='$CPP $CPPFLAGS'
12715 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12716 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12717 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12718
12719 CC=$lt_save_CC
12720 LDCXX=$LD
12721 LD=$lt_save_LD
12722 GCC=$lt_save_GCC
12723 with_gnu_ldcxx=$with_gnu_ld
12724 with_gnu_ld=$lt_save_with_gnu_ld
12725 lt_cv_path_LDCXX=$lt_cv_path_LD
12726 lt_cv_path_LD=$lt_save_path_LD
12727 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
12728 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
12729
12730         else
12731           tagname=""
12732         fi
12733         ;;
12734
12735       F77)
12736         if test -n "$F77" && test "X$F77" != "Xno"; then
12737
12738 ac_ext=f
12739 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
12740 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12741 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
12742
12743
12744 archive_cmds_need_lc_F77=no
12745 allow_undefined_flag_F77=
12746 always_export_symbols_F77=no
12747 archive_expsym_cmds_F77=
12748 export_dynamic_flag_spec_F77=
12749 hardcode_direct_F77=no
12750 hardcode_libdir_flag_spec_F77=
12751 hardcode_libdir_flag_spec_ld_F77=
12752 hardcode_libdir_separator_F77=
12753 hardcode_minus_L_F77=no
12754 hardcode_automatic_F77=no
12755 module_cmds_F77=
12756 module_expsym_cmds_F77=
12757 link_all_deplibs_F77=unknown
12758 old_archive_cmds_F77=$old_archive_cmds
12759 no_undefined_flag_F77=
12760 whole_archive_flag_spec_F77=
12761 enable_shared_with_static_runtimes_F77=no
12762
12763 # Source file extension for f77 test sources.
12764 ac_ext=f
12765
12766 # Object file extension for compiled f77 test sources.
12767 objext=o
12768 objext_F77=$objext
12769
12770 # Code to be used in simple compile tests
12771 lt_simple_compile_test_code="      subroutine t\n      return\n      end\n"
12772
12773 # Code to be used in simple link tests
12774 lt_simple_link_test_code="      program t\n      end\n"
12775
12776 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
12777
12778 # If no C compiler was specified, use CC.
12779 LTCC=${LTCC-"$CC"}
12780
12781 # Allow CC to be a program name with arguments.
12782 compiler=$CC
12783
12784
12785 # Allow CC to be a program name with arguments.
12786 lt_save_CC="$CC"
12787 CC=${F77-"f77"}
12788 compiler=$CC
12789 compiler_F77=$CC
12790 cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
12791
12792 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
12793 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
12794 echo "$as_me:$LINENO: result: $can_build_shared" >&5
12795 echo "${ECHO_T}$can_build_shared" >&6
12796
12797 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
12798 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
12799 test "$can_build_shared" = "no" && enable_shared=no
12800
12801 # On AIX, shared libraries and static libraries use the same namespace, and
12802 # are all built from PIC.
12803 case "$host_os" in
12804 aix3*)
12805   test "$enable_shared" = yes && enable_static=no
12806   if test -n "$RANLIB"; then
12807     archive_cmds="$archive_cmds~\$RANLIB \$lib"
12808     postinstall_cmds='$RANLIB $lib'
12809   fi
12810   ;;
12811 aix4*)
12812   test "$enable_shared" = yes && enable_static=no
12813   ;;
12814 esac
12815 echo "$as_me:$LINENO: result: $enable_shared" >&5
12816 echo "${ECHO_T}$enable_shared" >&6
12817
12818 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
12819 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
12820 # Make sure either enable_shared or enable_static is yes.
12821 test "$enable_shared" = yes || enable_static=yes
12822 echo "$as_me:$LINENO: result: $enable_static" >&5
12823 echo "${ECHO_T}$enable_static" >&6
12824
12825 test "$ld_shlibs_F77" = no && can_build_shared=no
12826
12827 GCC_F77="$G77"
12828 LD_F77="$LD"
12829
12830 lt_prog_compiler_wl_F77=
12831 lt_prog_compiler_pic_F77=
12832 lt_prog_compiler_static_F77=
12833
12834 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
12835 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
12836
12837   if test "$GCC" = yes; then
12838     lt_prog_compiler_wl_F77='-Wl,'
12839     lt_prog_compiler_static_F77='-static'
12840
12841     case $host_os in
12842       aix*)
12843       # All AIX code is PIC.
12844       if test "$host_cpu" = ia64; then
12845         # AIX 5 now supports IA64 processor
12846         lt_prog_compiler_static_F77='-Bstatic'
12847       fi
12848       ;;
12849
12850     amigaos*)
12851       # FIXME: we need at least 68020 code to build shared libraries, but
12852       # adding the `-m68020' flag to GCC prevents building anything better,
12853       # like `-m68040'.
12854       lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
12855       ;;
12856
12857     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12858       # PIC is the default for these OSes.
12859       ;;
12860
12861     mingw* | pw32* | os2*)
12862       # This hack is so that the source file can tell whether it is being
12863       # built for inclusion in a dll (and should export symbols for example).
12864       lt_prog_compiler_pic_F77='-DDLL_EXPORT'
12865       ;;
12866
12867     darwin* | rhapsody*)
12868       # PIC is the default on this platform
12869       # Common symbols not allowed in MH_DYLIB files
12870       lt_prog_compiler_pic_F77='-fno-common'
12871       ;;
12872
12873     msdosdjgpp*)
12874       # Just because we use GCC doesn't mean we suddenly get shared libraries
12875       # on systems that don't support them.
12876       lt_prog_compiler_can_build_shared_F77=no
12877       enable_shared=no
12878       ;;
12879
12880     sysv4*MP*)
12881       if test -d /usr/nec; then
12882         lt_prog_compiler_pic_F77=-Kconform_pic
12883       fi
12884       ;;
12885
12886     hpux*)
12887       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12888       # not for PA HP-UX.
12889       case "$host_cpu" in
12890       hppa*64*|ia64*)
12891         # +Z the default
12892         ;;
12893       *)
12894         lt_prog_compiler_pic_F77='-fPIC'
12895         ;;
12896       esac
12897       ;;
12898
12899     *)
12900       lt_prog_compiler_pic_F77='-fPIC'
12901       ;;
12902     esac
12903   else
12904     # PORTME Check for flag to pass linker flags through the system compiler.
12905     case $host_os in
12906     aix*)
12907       lt_prog_compiler_wl_F77='-Wl,'
12908       if test "$host_cpu" = ia64; then
12909         # AIX 5 now supports IA64 processor
12910         lt_prog_compiler_static_F77='-Bstatic'
12911       else
12912         lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
12913       fi
12914       ;;
12915
12916     mingw* | pw32* | os2*)
12917       # This hack is so that the source file can tell whether it is being
12918       # built for inclusion in a dll (and should export symbols for example).
12919       lt_prog_compiler_pic_F77='-DDLL_EXPORT'
12920       ;;
12921
12922     hpux9* | hpux10* | hpux11*)
12923       lt_prog_compiler_wl_F77='-Wl,'
12924       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12925       # not for PA HP-UX.
12926       case "$host_cpu" in
12927       hppa*64*|ia64*)
12928         # +Z the default
12929         ;;
12930       *)
12931         lt_prog_compiler_pic_F77='+Z'
12932         ;;
12933       esac
12934       # Is there a better lt_prog_compiler_static that works with the bundled CC?
12935       lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
12936       ;;
12937
12938     irix5* | irix6* | nonstopux*)
12939       lt_prog_compiler_wl_F77='-Wl,'
12940       # PIC (with -KPIC) is the default.
12941       lt_prog_compiler_static_F77='-non_shared'
12942       ;;
12943
12944     newsos6)
12945       lt_prog_compiler_pic_F77='-KPIC'
12946       lt_prog_compiler_static_F77='-Bstatic'
12947       ;;
12948
12949     linux*)
12950       case $CC in
12951       icc|ecc)
12952         lt_prog_compiler_wl_F77='-Wl,'
12953         lt_prog_compiler_pic_F77='-KPIC'
12954         lt_prog_compiler_static_F77='-static'
12955         ;;
12956       ccc)
12957         lt_prog_compiler_wl_F77='-Wl,'
12958         # All Alpha code is PIC.
12959         lt_prog_compiler_static_F77='-non_shared'
12960         ;;
12961       esac
12962       ;;
12963
12964     osf3* | osf4* | osf5*)
12965       lt_prog_compiler_wl_F77='-Wl,'
12966       # All OSF/1 code is PIC.
12967       lt_prog_compiler_static_F77='-non_shared'
12968       ;;
12969
12970     sco3.2v5*)
12971       lt_prog_compiler_pic_F77='-Kpic'
12972       lt_prog_compiler_static_F77='-dn'
12973       ;;
12974
12975     solaris*)
12976       lt_prog_compiler_wl_F77='-Wl,'
12977       lt_prog_compiler_pic_F77='-KPIC'
12978       lt_prog_compiler_static_F77='-Bstatic'
12979       ;;
12980
12981     sunos4*)
12982       lt_prog_compiler_wl_F77='-Qoption ld '
12983       lt_prog_compiler_pic_F77='-PIC'
12984       lt_prog_compiler_static_F77='-Bstatic'
12985       ;;
12986
12987     sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
12988       lt_prog_compiler_wl_F77='-Wl,'
12989       lt_prog_compiler_pic_F77='-KPIC'
12990       lt_prog_compiler_static_F77='-Bstatic'
12991       ;;
12992
12993     sysv4*MP*)
12994       if test -d /usr/nec ;then
12995         lt_prog_compiler_pic_F77='-Kconform_pic'
12996         lt_prog_compiler_static_F77='-Bstatic'
12997       fi
12998       ;;
12999
13000     uts4*)
13001       lt_prog_compiler_pic_F77='-pic'
13002       lt_prog_compiler_static_F77='-Bstatic'
13003       ;;
13004
13005     *)
13006       lt_prog_compiler_can_build_shared_F77=no
13007       ;;
13008     esac
13009   fi
13010
13011 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
13012 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6
13013
13014 #
13015 # Check to make sure the PIC flag actually works.
13016 #
13017 if test -n "$lt_prog_compiler_pic_F77"; then
13018   echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
13019 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6
13020 if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
13021   echo $ECHO_N "(cached) $ECHO_C" >&6
13022 else
13023   lt_prog_compiler_pic_works_F77=no
13024   ac_outfile=conftest.$ac_objext
13025    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13026    lt_compiler_flag="$lt_prog_compiler_pic_F77"
13027    # Insert the option either (1) after the last *FLAGS variable, or
13028    # (2) before a word containing "conftest.", or (3) at the end.
13029    # Note that $ac_compile itself does not contain backslashes and begins
13030    # with a dollar sign (not a hyphen), so the echo should work correctly.
13031    # The option is referenced via a variable to avoid confusing sed.
13032    lt_compile=`echo "$ac_compile" | $SED \
13033    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
13034    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13035    -e 's:$: $lt_compiler_flag:'`
13036    (eval echo "\"\$as_me:13036: $lt_compile\"" >&5)
13037    (eval "$lt_compile" 2>conftest.err)
13038    ac_status=$?
13039    cat conftest.err >&5
13040    echo "$as_me:13040: \$? = $ac_status" >&5
13041    if (exit $ac_status) && test -s "$ac_outfile"; then
13042      # The compiler can only warn and ignore the option if not recognized
13043      # So say no if there are warnings
13044      if test ! -s conftest.err; then
13045        lt_prog_compiler_pic_works_F77=yes
13046      fi
13047    fi
13048    $rm conftest*
13049
13050 fi
13051 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
13052 echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6
13053
13054 if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
13055     case $lt_prog_compiler_pic_F77 in
13056      "" | " "*) ;;
13057      *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
13058      esac
13059 else
13060     lt_prog_compiler_pic_F77=
13061      lt_prog_compiler_can_build_shared_F77=no
13062 fi
13063
13064 fi
13065 case "$host_os" in
13066   # For platforms which do not support PIC, -DPIC is meaningless:
13067   *djgpp*)
13068     lt_prog_compiler_pic_F77=
13069     ;;
13070   *)
13071     lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
13072     ;;
13073 esac
13074
13075 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
13076 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
13077 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
13078   echo $ECHO_N "(cached) $ECHO_C" >&6
13079 else
13080   lt_cv_prog_compiler_c_o_F77=no
13081    $rm -r conftest 2>/dev/null
13082    mkdir conftest
13083    cd conftest
13084    mkdir out
13085    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13086
13087    # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
13088    # that will create temporary files in the current directory regardless of
13089    # the output directory.  Thus, making CWD read-only will cause this test
13090    # to fail, enabling locking or at least warning the user not to do parallel
13091    # builds.
13092    chmod -w .
13093
13094    lt_compiler_flag="-o out/conftest2.$ac_objext"
13095    # Insert the option either (1) after the last *FLAGS variable, or
13096    # (2) before a word containing "conftest.", or (3) at the end.
13097    # Note that $ac_compile itself does not contain backslashes and begins
13098    # with a dollar sign (not a hyphen), so the echo should work correctly.
13099    lt_compile=`echo "$ac_compile" | $SED \
13100    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
13101    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13102    -e 's:$: $lt_compiler_flag:'`
13103    (eval echo "\"\$as_me:13103: $lt_compile\"" >&5)
13104    (eval "$lt_compile" 2>out/conftest.err)
13105    ac_status=$?
13106    cat out/conftest.err >&5
13107    echo "$as_me:13107: \$? = $ac_status" >&5
13108    if (exit $ac_status) && test -s out/conftest2.$ac_objext
13109    then
13110      # The compiler can only warn and ignore the option if not recognized
13111      # So say no if there are warnings
13112      if test ! -s out/conftest.err; then
13113        lt_cv_prog_compiler_c_o_F77=yes
13114      fi
13115    fi
13116    chmod u+w .
13117    $rm conftest* out/*
13118    rmdir out
13119    cd ..
13120    rmdir conftest
13121    $rm conftest*
13122
13123 fi
13124 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
13125 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6
13126
13127
13128 hard_links="nottested"
13129 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
13130   # do not overwrite the value of need_locks provided by the user
13131   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
13132 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
13133   hard_links=yes
13134   $rm conftest*
13135   ln conftest.a conftest.b 2>/dev/null && hard_links=no
13136   touch conftest.a
13137   ln conftest.a conftest.b 2>&5 || hard_links=no
13138   ln conftest.a conftest.b 2>/dev/null && hard_links=no
13139   echo "$as_me:$LINENO: result: $hard_links" >&5
13140 echo "${ECHO_T}$hard_links" >&6
13141   if test "$hard_links" = no; then
13142     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13143 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13144     need_locks=warn
13145   fi
13146 else
13147   need_locks=no
13148 fi
13149
13150 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13151 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
13152
13153   runpath_var=
13154   allow_undefined_flag_F77=
13155   enable_shared_with_static_runtimes_F77=no
13156   archive_cmds_F77=
13157   archive_expsym_cmds_F77=
13158   old_archive_From_new_cmds_F77=
13159   old_archive_from_expsyms_cmds_F77=
13160   export_dynamic_flag_spec_F77=
13161   whole_archive_flag_spec_F77=
13162   thread_safe_flag_spec_F77=
13163   hardcode_libdir_flag_spec_F77=
13164   hardcode_libdir_flag_spec_ld_F77=
13165   hardcode_libdir_separator_F77=
13166   hardcode_direct_F77=no
13167   hardcode_minus_L_F77=no
13168   hardcode_shlibpath_var_F77=unsupported
13169   link_all_deplibs_F77=unknown
13170   hardcode_automatic_F77=no
13171   module_cmds_F77=
13172   module_expsym_cmds_F77=
13173   always_export_symbols_F77=no
13174   export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13175   # include_expsyms should be a list of space-separated symbols to be *always*
13176   # included in the symbol list
13177   include_expsyms_F77=
13178   # exclude_expsyms can be an extended regexp of symbols to exclude
13179   # it will be wrapped by ` (' and `)$', so one must not match beginning or
13180   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
13181   # as well as any symbol that contains `d'.
13182   exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
13183   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
13184   # platforms (ab)use it in PIC code, but their linkers get confused if
13185   # the symbol is explicitly referenced.  Since portable code cannot
13186   # rely on this symbol name, it's probably fine to never include it in
13187   # preloaded symbol tables.
13188   extract_expsyms_cmds=
13189
13190   case $host_os in
13191   cygwin* | mingw* | pw32*)
13192     # FIXME: the MSVC++ port hasn't been tested in a loooong time
13193     # When not using gcc, we currently assume that we are using
13194     # Microsoft Visual C++.
13195     if test "$GCC" != yes; then
13196       with_gnu_ld=no
13197     fi
13198     ;;
13199   openbsd*)
13200     with_gnu_ld=no
13201     ;;
13202   esac
13203
13204   ld_shlibs_F77=yes
13205   if test "$with_gnu_ld" = yes; then
13206     # If archive_cmds runs LD, not CC, wlarc should be empty
13207     wlarc='${wl}'
13208
13209     # See if GNU ld supports shared libraries.
13210     case $host_os in
13211     aix3* | aix4* | aix5*)
13212       # On AIX/PPC, the GNU linker is very broken
13213       if test "$host_cpu" != ia64; then
13214         ld_shlibs_F77=no
13215         cat <<EOF 1>&2
13216
13217 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
13218 *** to be unable to reliably create shared libraries on AIX.
13219 *** Therefore, libtool is disabling shared libraries support.  If you
13220 *** really care for shared libraries, you may want to modify your PATH
13221 *** so that a non-GNU linker is found, and then restart.
13222
13223 EOF
13224       fi
13225       ;;
13226
13227     amigaos*)
13228       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)'
13229       hardcode_libdir_flag_spec_F77='-L$libdir'
13230       hardcode_minus_L_F77=yes
13231
13232       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
13233       # that the semantics of dynamic libraries on AmigaOS, at least up
13234       # to version 4, is to share data among multiple programs linked
13235       # with the same dynamic library.  Since this doesn't match the
13236       # behavior of shared libraries on other platforms, we can't use
13237       # them.
13238       ld_shlibs_F77=no
13239       ;;
13240
13241     beos*)
13242       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13243         allow_undefined_flag_F77=unsupported
13244         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13245         # support --undefined.  This deserves some investigation.  FIXME
13246         archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13247       else
13248         ld_shlibs_F77=no
13249       fi
13250       ;;
13251
13252     cygwin* | mingw* | pw32*)
13253       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
13254       # as there is no search path for DLLs.
13255       hardcode_libdir_flag_spec_F77='-L$libdir'
13256       allow_undefined_flag_F77=unsupported
13257       always_export_symbols_F77=no
13258       enable_shared_with_static_runtimes_F77=yes
13259       export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
13260
13261       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
13262         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
13263         # If the export-symbols file already is a .def file (1st line
13264         # is EXPORTS), use it as is; otherwise, prepend...
13265         archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13266           cp $export_symbols $output_objdir/$soname.def;
13267         else
13268           echo EXPORTS > $output_objdir/$soname.def;
13269           cat $export_symbols >> $output_objdir/$soname.def;
13270         fi~
13271         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
13272       else
13273         ld_shlibs=no
13274       fi
13275       ;;
13276
13277     netbsd*)
13278       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13279         archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
13280         wlarc=
13281       else
13282         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13283         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13284       fi
13285       ;;
13286
13287     solaris* | sysv5*)
13288       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
13289         ld_shlibs_F77=no
13290         cat <<EOF 1>&2
13291
13292 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
13293 *** create shared libraries on Solaris systems.  Therefore, libtool
13294 *** is disabling shared libraries support.  We urge you to upgrade GNU
13295 *** binutils to release 2.9.1 or newer.  Another option is to modify
13296 *** your PATH or compiler configuration so that the native linker is
13297 *** used, and then restart.
13298
13299 EOF
13300       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13301         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13302         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13303       else
13304         ld_shlibs_F77=no
13305       fi
13306       ;;
13307
13308     sunos4*)
13309       archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13310       wlarc=
13311       hardcode_direct_F77=yes
13312       hardcode_shlibpath_var_F77=no
13313       ;;
13314
13315     *)
13316       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13317         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13318         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13319       else
13320         ld_shlibs_F77=no
13321       fi
13322       ;;
13323     esac
13324
13325     if test "$ld_shlibs_F77" = yes; then
13326       runpath_var=LD_RUN_PATH
13327       hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
13328       export_dynamic_flag_spec_F77='${wl}--export-dynamic'
13329       # ancient GNU ld didn't support --whole-archive et. al.
13330       if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
13331         whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13332       else
13333         whole_archive_flag_spec_F77=
13334       fi
13335     fi
13336   else
13337     # PORTME fill in a description of your system's linker (not GNU ld)
13338     case $host_os in
13339     aix3*)
13340       allow_undefined_flag_F77=unsupported
13341       always_export_symbols_F77=yes
13342       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'
13343       # Note: this linker hardcodes the directories in LIBPATH if there
13344       # are no directories specified by -L.
13345       hardcode_minus_L_F77=yes
13346       if test "$GCC" = yes && test -z "$link_static_flag"; then
13347         # Neither direct hardcoding nor static linking is supported with a
13348         # broken collect2.
13349         hardcode_direct_F77=unsupported
13350       fi
13351       ;;
13352
13353     aix4* | aix5*)
13354       if test "$host_cpu" = ia64; then
13355         # On IA64, the linker does run time linking by default, so we don't
13356         # have to do anything special.
13357         aix_use_runtimelinking=no
13358         exp_sym_flag='-Bexport'
13359         no_entry_flag=""
13360       else
13361         # If we're using GNU nm, then we don't want the "-C" option.
13362         # -C means demangle to AIX nm, but means don't demangle with GNU nm
13363         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
13364           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'
13365         else
13366           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'
13367         fi
13368         aix_use_runtimelinking=no
13369
13370         # Test if we are trying to use run time linking or normal
13371         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
13372         # need to do runtime linking.
13373         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
13374           for ld_flag in $LDFLAGS; do
13375           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
13376             aix_use_runtimelinking=yes
13377             break
13378           fi
13379           done
13380         esac
13381
13382         exp_sym_flag='-bexport'
13383         no_entry_flag='-bnoentry'
13384       fi
13385
13386       # When large executables or shared objects are built, AIX ld can
13387       # have problems creating the table of contents.  If linking a library
13388       # or program results in "error TOC overflow" add -mminimal-toc to
13389       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
13390       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13391
13392       archive_cmds_F77=''
13393       hardcode_direct_F77=yes
13394       hardcode_libdir_separator_F77=':'
13395       link_all_deplibs_F77=yes
13396
13397       if test "$GCC" = yes; then
13398         case $host_os in aix4.012|aix4.012.*)
13399         # We only want to do this on AIX 4.2 and lower, the check
13400         # below for broken collect2 doesn't work under 4.3+
13401           collect2name=`${CC} -print-prog-name=collect2`
13402           if test -f "$collect2name" && \
13403            strings "$collect2name" | grep resolve_lib_name >/dev/null
13404           then
13405           # We have reworked collect2
13406           hardcode_direct_F77=yes
13407           else
13408           # We have old collect2
13409           hardcode_direct_F77=unsupported
13410           # It fails to find uninstalled libraries when the uninstalled
13411           # path is not listed in the libpath.  Setting hardcode_minus_L
13412           # to unsupported forces relinking
13413           hardcode_minus_L_F77=yes
13414           hardcode_libdir_flag_spec_F77='-L$libdir'
13415           hardcode_libdir_separator_F77=
13416           fi
13417         esac
13418         shared_flag='-shared'
13419       else
13420         # not using gcc
13421         if test "$host_cpu" = ia64; then
13422         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13423         # chokes on -Wl,-G. The following line is correct:
13424           shared_flag='-G'
13425         else
13426         if test "$aix_use_runtimelinking" = yes; then
13427             shared_flag='${wl}-G'
13428           else
13429             shared_flag='${wl}-bM:SRE'
13430         fi
13431         fi
13432       fi
13433
13434       # It seems that -bexpall does not export symbols beginning with
13435       # underscore (_), so it is better to generate a list of symbols to export.
13436       always_export_symbols_F77=yes
13437       if test "$aix_use_runtimelinking" = yes; then
13438         # Warning - without using the other runtime loading flags (-brtl),
13439         # -berok will link without error, but may produce a broken library.
13440         allow_undefined_flag_F77='-berok'
13441        # Determine the default libpath from the value encoded in an empty executable.
13442        cat >conftest.$ac_ext <<_ACEOF
13443       program main
13444
13445       end
13446 _ACEOF
13447 rm -f conftest.$ac_objext conftest$ac_exeext
13448 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13449   (eval $ac_link) 2>&5
13450   ac_status=$?
13451   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13452   (exit $ac_status); } &&
13453          { ac_try='test -s conftest$ac_exeext'
13454   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13455   (eval $ac_try) 2>&5
13456   ac_status=$?
13457   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13458   (exit $ac_status); }; }; then
13459
13460 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
13461 }'`
13462 # Check for a 64-bit object if we didn't find anything.
13463 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; }
13464 }'`; fi
13465 else
13466   echo "$as_me: failed program was:" >&5
13467 sed 's/^/| /' conftest.$ac_ext >&5
13468
13469 fi
13470 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13471 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13472
13473        hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
13474         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"
13475        else
13476         if test "$host_cpu" = ia64; then
13477           hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
13478           allow_undefined_flag_F77="-z nodefs"
13479           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"
13480         else
13481          # Determine the default libpath from the value encoded in an empty executable.
13482          cat >conftest.$ac_ext <<_ACEOF
13483       program main
13484
13485       end
13486 _ACEOF
13487 rm -f conftest.$ac_objext conftest$ac_exeext
13488 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13489   (eval $ac_link) 2>&5
13490   ac_status=$?
13491   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13492   (exit $ac_status); } &&
13493          { ac_try='test -s conftest$ac_exeext'
13494   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13495   (eval $ac_try) 2>&5
13496   ac_status=$?
13497   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13498   (exit $ac_status); }; }; then
13499
13500 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
13501 }'`
13502 # Check for a 64-bit object if we didn't find anything.
13503 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; }
13504 }'`; fi
13505 else
13506   echo "$as_me: failed program was:" >&5
13507 sed 's/^/| /' conftest.$ac_ext >&5
13508
13509 fi
13510 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13511 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13512
13513          hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
13514           # Warning - without using the other run time loading flags,
13515           # -berok will link without error, but may produce a broken library.
13516           no_undefined_flag_F77=' ${wl}-bernotok'
13517           allow_undefined_flag_F77=' ${wl}-berok'
13518           # -bexpall does not export symbols beginning with underscore (_)
13519           always_export_symbols_F77=yes
13520           # Exported symbols can be pulled into shared objects from archives
13521           whole_archive_flag_spec_F77=' '
13522           archive_cmds_need_lc_F77=yes
13523           # This is similar to how AIX traditionally builds it's shared libraries.
13524           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'
13525         fi
13526       fi
13527       ;;
13528
13529     amigaos*)
13530       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)'
13531       hardcode_libdir_flag_spec_F77='-L$libdir'
13532       hardcode_minus_L_F77=yes
13533       # see comment about different semantics on the GNU ld section
13534       ld_shlibs_F77=no
13535       ;;
13536
13537     bsdi4*)
13538       export_dynamic_flag_spec_F77=-rdynamic
13539       ;;
13540
13541     cygwin* | mingw* | pw32*)
13542       # When not using gcc, we currently assume that we are using
13543       # Microsoft Visual C++.
13544       # hardcode_libdir_flag_spec is actually meaningless, as there is
13545       # no search path for DLLs.
13546       hardcode_libdir_flag_spec_F77=' '
13547       allow_undefined_flag_F77=unsupported
13548       # Tell ltmain to make .lib files, not .a files.
13549       libext=lib
13550       # Tell ltmain to make .dll files, not .so files.
13551       shrext=".dll"
13552       # FIXME: Setting linknames here is a bad hack.
13553       archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
13554       # The linker will automatically build a .lib file if we build a DLL.
13555       old_archive_From_new_cmds_F77='true'
13556       # FIXME: Should let the user specify the lib program.
13557       old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
13558       fix_srcfile_path='`cygpath -w "$srcfile"`'
13559       enable_shared_with_static_runtimes_F77=yes
13560       ;;
13561
13562     darwin* | rhapsody*)
13563     if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
13564       archive_cmds_need_lc_F77=no
13565       case "$host_os" in
13566       rhapsody* | darwin1.[012])
13567         allow_undefined_flag_F77='-undefined suppress'
13568         ;;
13569       *) # Darwin 1.3 on
13570         test -z ${LD_TWOLEVEL_NAMESPACE} && allow_undefined_flag_F77='-flat_namespace -undefined suppress'
13571         ;;
13572       esac
13573       # FIXME: Relying on posixy $() will cause problems for
13574       #        cross-compilation, but unfortunately the echo tests do not
13575       #        yet detect zsh echo's removal of \ escapes.  Also zsh mangles
13576       #        `"' quotes if we put them in here... so don't!
13577         lt_int_apple_cc_single_mod=no
13578         output_verbose_link_cmd='echo'
13579         if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
13580           lt_int_apple_cc_single_mod=yes
13581         fi
13582         if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
13583           archive_cmds_F77='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
13584         else
13585         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'
13586       fi
13587       module_cmds_F77='$CC -bundle ${wl}-bind_at_load $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags'
13588       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
13589         if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
13590           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}'
13591         else
13592           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}'
13593         fi
13594           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}'
13595       hardcode_direct_F77=no
13596       hardcode_automatic_F77=yes
13597       hardcode_shlibpath_var_F77=unsupported
13598       whole_archive_flag_spec_F77='-all_load $convenience'
13599       link_all_deplibs_F77=yes
13600     fi
13601       ;;
13602
13603     dgux*)
13604       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13605       hardcode_libdir_flag_spec_F77='-L$libdir'
13606       hardcode_shlibpath_var_F77=no
13607       ;;
13608
13609     freebsd1*)
13610       ld_shlibs_F77=no
13611       ;;
13612
13613     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
13614     # support.  Future versions do this automatically, but an explicit c++rt0.o
13615     # does not break anything, and helps significantly (at the cost of a little
13616     # extra space).
13617     freebsd2.2*)
13618       archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
13619       hardcode_libdir_flag_spec_F77='-R$libdir'
13620       hardcode_direct_F77=yes
13621       hardcode_shlibpath_var_F77=no
13622       ;;
13623
13624     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
13625     freebsd2*)
13626       archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13627       hardcode_direct_F77=yes
13628       hardcode_minus_L_F77=yes
13629       hardcode_shlibpath_var_F77=no
13630       ;;
13631
13632     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
13633     freebsd*)
13634       archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
13635       hardcode_libdir_flag_spec_F77='-R$libdir'
13636       hardcode_direct_F77=yes
13637       hardcode_shlibpath_var_F77=no
13638       ;;
13639
13640     hpux9*)
13641       if test "$GCC" = yes; then
13642         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'
13643       else
13644         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'
13645       fi
13646       hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
13647       hardcode_libdir_separator_F77=:
13648       hardcode_direct_F77=yes
13649
13650       # hardcode_minus_L: Not really in the search PATH,
13651       # but as the default location of the library.
13652       hardcode_minus_L_F77=yes
13653       export_dynamic_flag_spec_F77='${wl}-E'
13654       ;;
13655
13656     hpux10* | hpux11*)
13657       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
13658         case "$host_cpu" in
13659         hppa*64*|ia64*)
13660           archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13661           ;;
13662         *)
13663           archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13664           ;;
13665         esac
13666       else
13667         case "$host_cpu" in
13668         hppa*64*|ia64*)
13669           archive_cmds_F77='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
13670           ;;
13671         *)
13672           archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
13673           ;;
13674         esac
13675       fi
13676       if test "$with_gnu_ld" = no; then
13677         case "$host_cpu" in
13678         hppa*64*)
13679           hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
13680           hardcode_libdir_flag_spec_ld_F77='+b $libdir'
13681           hardcode_libdir_separator_F77=:
13682           hardcode_direct_F77=no
13683           hardcode_shlibpath_var_F77=no
13684           ;;
13685         ia64*)
13686           hardcode_libdir_flag_spec_F77='-L$libdir'
13687           hardcode_direct_F77=no
13688           hardcode_shlibpath_var_F77=no
13689
13690           # hardcode_minus_L: Not really in the search PATH,
13691           # but as the default location of the library.
13692           hardcode_minus_L_F77=yes
13693           ;;
13694         *)
13695           hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
13696           hardcode_libdir_separator_F77=:
13697           hardcode_direct_F77=yes
13698           export_dynamic_flag_spec_F77='${wl}-E'
13699
13700           # hardcode_minus_L: Not really in the search PATH,
13701           # but as the default location of the library.
13702           hardcode_minus_L_F77=yes
13703           ;;
13704         esac
13705       fi
13706       ;;
13707
13708     irix5* | irix6* | nonstopux*)
13709       if test "$GCC" = yes; then
13710         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'
13711       else
13712         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'
13713         hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
13714       fi
13715       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
13716       hardcode_libdir_separator_F77=:
13717       link_all_deplibs_F77=yes
13718       ;;
13719
13720     netbsd*)
13721       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13722         archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
13723       else
13724         archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
13725       fi
13726       hardcode_libdir_flag_spec_F77='-R$libdir'
13727       hardcode_direct_F77=yes
13728       hardcode_shlibpath_var_F77=no
13729       ;;
13730
13731     newsos6)
13732       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13733       hardcode_direct_F77=yes
13734       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
13735       hardcode_libdir_separator_F77=:
13736       hardcode_shlibpath_var_F77=no
13737       ;;
13738
13739     openbsd*)
13740       hardcode_direct_F77=yes
13741       hardcode_shlibpath_var_F77=no
13742       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13743         archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13744         hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
13745         export_dynamic_flag_spec_F77='${wl}-E'
13746       else
13747        case $host_os in
13748          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
13749            archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13750            hardcode_libdir_flag_spec_F77='-R$libdir'
13751            ;;
13752          *)
13753            archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13754            hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
13755            ;;
13756        esac
13757       fi
13758       ;;
13759
13760     os2*)
13761       hardcode_libdir_flag_spec_F77='-L$libdir'
13762       hardcode_minus_L_F77=yes
13763       allow_undefined_flag_F77=unsupported
13764       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'
13765       old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
13766       ;;
13767
13768     osf3*)
13769       if test "$GCC" = yes; then
13770         allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
13771         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'
13772       else
13773         allow_undefined_flag_F77=' -expect_unresolved \*'
13774         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'
13775       fi
13776       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
13777       hardcode_libdir_separator_F77=:
13778       ;;
13779
13780     osf4* | osf5*)      # as osf3* with the addition of -msym flag
13781       if test "$GCC" = yes; then
13782         allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
13783         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'
13784         hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
13785       else
13786         allow_undefined_flag_F77=' -expect_unresolved \*'
13787         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'
13788         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~
13789         $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'
13790
13791         # Both c and cxx compiler support -rpath directly
13792         hardcode_libdir_flag_spec_F77='-rpath $libdir'
13793       fi
13794       hardcode_libdir_separator_F77=:
13795       ;;
13796
13797     sco3.2v5*)
13798       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13799       hardcode_shlibpath_var_F77=no
13800       export_dynamic_flag_spec_F77='${wl}-Bexport'
13801       runpath_var=LD_RUN_PATH
13802       hardcode_runpath_var=yes
13803       ;;
13804
13805     solaris*)
13806       no_undefined_flag_F77=' -z text'
13807       if test "$GCC" = yes; then
13808         archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13809         archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13810           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
13811       else
13812         archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
13813         archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13814         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
13815       fi
13816       hardcode_libdir_flag_spec_F77='-R$libdir'
13817       hardcode_shlibpath_var_F77=no
13818       case $host_os in
13819       solaris2.[0-5] | solaris2.[0-5].*) ;;
13820       *) # Supported since Solaris 2.6 (maybe 2.5.1?)
13821         whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
13822       esac
13823       link_all_deplibs_F77=yes
13824       ;;
13825
13826     sunos4*)
13827       if test "x$host_vendor" = xsequent; then
13828         # Use $CC to link under sequent, because it throws in some extra .o
13829         # files that make .init and .fini sections work.
13830         archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
13831       else
13832         archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
13833       fi
13834       hardcode_libdir_flag_spec_F77='-L$libdir'
13835       hardcode_direct_F77=yes
13836       hardcode_minus_L_F77=yes
13837       hardcode_shlibpath_var_F77=no
13838       ;;
13839
13840     sysv4)
13841       case $host_vendor in
13842         sni)
13843           archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13844           hardcode_direct_F77=yes # is this really true???
13845         ;;
13846         siemens)
13847           ## LD is ld it makes a PLAMLIB
13848           ## CC just makes a GrossModule.
13849           archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
13850           reload_cmds_F77='$CC -r -o $output$reload_objs'
13851           hardcode_direct_F77=no
13852         ;;
13853         motorola)
13854           archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13855           hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
13856         ;;
13857       esac
13858       runpath_var='LD_RUN_PATH'
13859       hardcode_shlibpath_var_F77=no
13860       ;;
13861
13862     sysv4.3*)
13863       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13864       hardcode_shlibpath_var_F77=no
13865       export_dynamic_flag_spec_F77='-Bexport'
13866       ;;
13867
13868     sysv4*MP*)
13869       if test -d /usr/nec; then
13870         archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13871         hardcode_shlibpath_var_F77=no
13872         runpath_var=LD_RUN_PATH
13873         hardcode_runpath_var=yes
13874         ld_shlibs_F77=yes
13875       fi
13876       ;;
13877
13878     sysv4.2uw2*)
13879       archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
13880       hardcode_direct_F77=yes
13881       hardcode_minus_L_F77=no
13882       hardcode_shlibpath_var_F77=no
13883       hardcode_runpath_var=yes
13884       runpath_var=LD_RUN_PATH
13885       ;;
13886
13887    sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
13888       no_undefined_flag_F77='${wl}-z ${wl}text'
13889       if test "$GCC" = yes; then
13890         archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13891       else
13892         archive_cmds_F77='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13893       fi
13894       runpath_var='LD_RUN_PATH'
13895       hardcode_shlibpath_var_F77=no
13896       ;;
13897
13898     sysv5*)
13899       no_undefined_flag_F77=' -z text'
13900       # $CC -shared without GNU ld will not create a library from C++
13901       # object files and a static libstdc++, better avoid it by now
13902       archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
13903       archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13904                 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
13905       hardcode_libdir_flag_spec_F77=
13906       hardcode_shlibpath_var_F77=no
13907       runpath_var='LD_RUN_PATH'
13908       ;;
13909
13910     uts4*)
13911       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13912       hardcode_libdir_flag_spec_F77='-L$libdir'
13913       hardcode_shlibpath_var_F77=no
13914       ;;
13915
13916     *)
13917       ld_shlibs_F77=no
13918       ;;
13919     esac
13920   fi
13921
13922 echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
13923 echo "${ECHO_T}$ld_shlibs_F77" >&6
13924 test "$ld_shlibs_F77" = no && can_build_shared=no
13925
13926 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
13927 if test "$GCC" = yes; then
13928   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
13929 fi
13930
13931 #
13932 # Do we need to explicitly link libc?
13933 #
13934 case "x$archive_cmds_need_lc_F77" in
13935 x|xyes)
13936   # Assume -lc should be added
13937   archive_cmds_need_lc_F77=yes
13938
13939   if test "$enable_shared" = yes && test "$GCC" = yes; then
13940     case $archive_cmds_F77 in
13941     *'~'*)
13942       # FIXME: we may have to deal with multi-command sequences.
13943       ;;
13944     '$CC '*)
13945       # Test whether the compiler implicitly links with -lc since on some
13946       # systems, -lgcc has to come before -lc. If gcc already passes -lc
13947       # to ld, don't add -lc before -lgcc.
13948       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
13949 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
13950       $rm conftest*
13951       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13952
13953       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13954   (eval $ac_compile) 2>&5
13955   ac_status=$?
13956   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13957   (exit $ac_status); } 2>conftest.err; then
13958         soname=conftest
13959         lib=conftest
13960         libobjs=conftest.$ac_objext
13961         deplibs=
13962         wl=$lt_prog_compiler_wl_F77
13963         compiler_flags=-v
13964         linker_flags=-v
13965         verstring=
13966         output_objdir=.
13967         libname=conftest
13968         lt_save_allow_undefined_flag=$allow_undefined_flag_F77
13969         allow_undefined_flag_F77=
13970         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
13971   (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
13972   ac_status=$?
13973   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13974   (exit $ac_status); }
13975         then
13976           archive_cmds_need_lc_F77=no
13977         else
13978           archive_cmds_need_lc_F77=yes
13979         fi
13980         allow_undefined_flag_F77=$lt_save_allow_undefined_flag
13981       else
13982         cat conftest.err 1>&5
13983       fi
13984       $rm conftest*
13985       echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
13986 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6
13987       ;;
13988     esac
13989   fi
13990   ;;
13991 esac
13992
13993 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
13994 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
13995 hardcode_action_F77=
13996 if test -n "$hardcode_libdir_flag_spec_F77" || \
13997    test -n "$runpath_var F77" || \
13998    test "X$hardcode_automatic_F77"="Xyes" ; then
13999
14000   # We can hardcode non-existant directories.
14001   if test "$hardcode_direct_F77" != no &&
14002      # If the only mechanism to avoid hardcoding is shlibpath_var, we
14003      # have to relink, otherwise we might link with an installed library
14004      # when we should be linking with a yet-to-be-installed one
14005      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
14006      test "$hardcode_minus_L_F77" != no; then
14007     # Linking always hardcodes the temporary library directory.
14008     hardcode_action_F77=relink
14009   else
14010     # We can link without hardcoding, and we can hardcode nonexisting dirs.
14011     hardcode_action_F77=immediate
14012   fi
14013 else
14014   # We cannot hardcode anything, or else we can only hardcode existing
14015   # directories.
14016   hardcode_action_F77=unsupported
14017 fi
14018 echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
14019 echo "${ECHO_T}$hardcode_action_F77" >&6
14020
14021 if test "$hardcode_action_F77" = relink; then
14022   # Fast installation is not supported
14023   enable_fast_install=no
14024 elif test "$shlibpath_overrides_runpath" = yes ||
14025      test "$enable_shared" = no; then
14026   # Fast installation is not necessary
14027   enable_fast_install=needless
14028 fi
14029
14030 striplib=
14031 old_striplib=
14032 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
14033 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
14034 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
14035   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
14036   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
14037   echo "$as_me:$LINENO: result: yes" >&5
14038 echo "${ECHO_T}yes" >&6
14039 else
14040 # FIXME - insert some real tests, host_os isn't really good enough
14041   case $host_os in
14042    darwin*)
14043        if test -n "$STRIP" ; then
14044          striplib="$STRIP -x"
14045          echo "$as_me:$LINENO: result: yes" >&5
14046 echo "${ECHO_T}yes" >&6
14047        else
14048   echo "$as_me:$LINENO: result: no" >&5
14049 echo "${ECHO_T}no" >&6
14050 fi
14051        ;;
14052    *)
14053   echo "$as_me:$LINENO: result: no" >&5
14054 echo "${ECHO_T}no" >&6
14055     ;;
14056   esac
14057 fi
14058
14059 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
14060 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
14061 library_names_spec=
14062 libname_spec='lib$name'
14063 soname_spec=
14064 shrext=".so"
14065 postinstall_cmds=
14066 postuninstall_cmds=
14067 finish_cmds=
14068 finish_eval=
14069 shlibpath_var=
14070 shlibpath_overrides_runpath=unknown
14071 version_type=none
14072 dynamic_linker="$host_os ld.so"
14073 sys_lib_dlsearch_path_spec="/lib /usr/lib"
14074 if test "$GCC" = yes; then
14075   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14076   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
14077     # if the path contains ";" then we assume it to be the separator
14078     # otherwise default to the standard path separator (i.e. ":") - it is
14079     # assumed that no part of a normal pathname contains ";" but that should
14080     # okay in the real world where ";" in dirpaths is itself problematic.
14081     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14082   else
14083     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
14084   fi
14085 else
14086   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
14087 fi
14088 need_lib_prefix=unknown
14089 hardcode_into_libs=no
14090
14091 # when you set need_version to no, make sure it does not cause -set_version
14092 # flags to be left without arguments
14093 need_version=unknown
14094
14095 case $host_os in
14096 aix3*)
14097   version_type=linux
14098   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14099   shlibpath_var=LIBPATH
14100
14101   # AIX 3 has no versioning support, so we append a major version to the name.
14102   soname_spec='${libname}${release}${shared_ext}$major'
14103   ;;
14104
14105 aix4* | aix5*)
14106   version_type=linux
14107   need_lib_prefix=no
14108   need_version=no
14109   hardcode_into_libs=yes
14110   if test "$host_cpu" = ia64; then
14111     # AIX 5 supports IA64
14112     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14113     shlibpath_var=LD_LIBRARY_PATH
14114   else
14115     # With GCC up to 2.95.x, collect2 would create an import file
14116     # for dependence libraries.  The import file would start with
14117     # the line `#! .'.  This would cause the generated library to
14118     # depend on `.', always an invalid library.  This was fixed in
14119     # development snapshots of GCC prior to 3.0.
14120     case $host_os in
14121       aix4 | aix4.[01] | aix4.[01].*)
14122       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14123            echo ' yes '
14124            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
14125         :
14126       else
14127         can_build_shared=no
14128       fi
14129       ;;
14130     esac
14131     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14132     # soname into executable. Probably we can add versioning support to
14133     # collect2, so additional links can be useful in future.
14134     if test "$aix_use_runtimelinking" = yes; then
14135       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14136       # instead of lib<name>.a to let people know that these are not
14137       # typical AIX shared libraries.
14138       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14139     else
14140       # We preserve .a as extension for shared libraries through AIX4.2
14141       # and later when we are not doing run time linking.
14142       library_names_spec='${libname}${release}.a $libname.a'
14143       soname_spec='${libname}${release}${shared_ext}$major'
14144     fi
14145     shlibpath_var=LIBPATH
14146   fi
14147   ;;
14148
14149 amigaos*)
14150   library_names_spec='$libname.ixlibrary $libname.a'
14151   # Create ${libname}_ixlibrary.a entries in /sys/libs.
14152   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'
14153   ;;
14154
14155 beos*)
14156   library_names_spec='${libname}${shared_ext}'
14157   dynamic_linker="$host_os ld.so"
14158   shlibpath_var=LIBRARY_PATH
14159   ;;
14160
14161 bsdi4*)
14162   version_type=linux
14163   need_version=no
14164   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14165   soname_spec='${libname}${release}${shared_ext}$major'
14166   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14167   shlibpath_var=LD_LIBRARY_PATH
14168   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14169   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14170   # the default ld.so.conf also contains /usr/contrib/lib and
14171   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14172   # libtool to hard-code these into programs
14173   ;;
14174
14175 cygwin* | mingw* | pw32*)
14176   version_type=windows
14177   shrext=".dll"
14178   need_version=no
14179   need_lib_prefix=no
14180
14181   case $GCC,$host_os in
14182   yes,cygwin* | yes,mingw* | yes,pw32*)
14183     library_names_spec='$libname.dll.a'
14184     # DLL is installed to $(libdir)/../bin by postinstall_cmds
14185     postinstall_cmds='base_file=`basename \${file}`~
14186       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
14187       dldir=$destdir/`dirname \$dlpath`~
14188       test -d \$dldir || mkdir -p \$dldir~
14189       $install_prog $dir/$dlname \$dldir/$dlname'
14190     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14191       dlpath=$dir/\$dldll~
14192        $rm \$dlpath'
14193     shlibpath_overrides_runpath=yes
14194
14195     case $host_os in
14196     cygwin*)
14197       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14198       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14199       sys_lib_search_path_spec="/lib /lib/w32api /usr/lib /usr/local/lib"
14200       ;;
14201     mingw*)
14202       # MinGW DLLs use traditional 'lib' prefix
14203       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14204       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14205       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
14206         # It is most probably a Windows format PATH printed by
14207         # mingw gcc, but we are running on Cygwin. Gcc prints its search
14208         # path with ; separators, and with drive letters. We can handle the
14209         # drive letters (cygwin fileutils understands them), so leave them,
14210         # especially as we might pass files found there to a mingw objdump,
14211         # which wouldn't understand a cygwinified path. Ahh.
14212         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14213       else
14214         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
14215       fi
14216       ;;
14217     pw32*)
14218       # pw32 DLLs use 'pw' prefix rather than 'lib'
14219       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
14220       ;;
14221     esac
14222     ;;
14223
14224   *)
14225     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14226     ;;
14227   esac
14228   dynamic_linker='Win32 ld.exe'
14229   # FIXME: first we should search . and the directory the executable is in
14230   shlibpath_var=PATH
14231   ;;
14232
14233 darwin* | rhapsody*)
14234   dynamic_linker="$host_os dyld"
14235   version_type=darwin
14236   need_lib_prefix=no
14237   need_version=no
14238   # FIXME: Relying on posixy $() will cause problems for
14239   #        cross-compilation, but unfortunately the echo tests do not
14240   #        yet detect zsh echo's removal of \ escapes.
14241   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14242   soname_spec='${libname}${release}${major}$shared_ext'
14243   shlibpath_overrides_runpath=yes
14244   shlibpath_var=DYLD_LIBRARY_PATH
14245   shrext='$(test .$module = .yes && echo .so || echo .dylib)'
14246   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
14247   if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
14248   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"`
14249   fi
14250   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14251   ;;
14252
14253 dgux*)
14254   version_type=linux
14255   need_lib_prefix=no
14256   need_version=no
14257   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14258   soname_spec='${libname}${release}${shared_ext}$major'
14259   shlibpath_var=LD_LIBRARY_PATH
14260   ;;
14261
14262 freebsd1*)
14263   dynamic_linker=no
14264   ;;
14265
14266 freebsd*)
14267   objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
14268   version_type=freebsd-$objformat
14269   case $version_type in
14270     freebsd-elf*)
14271       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14272       need_version=no
14273       need_lib_prefix=no
14274       ;;
14275     freebsd-*)
14276       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
14277       need_version=yes
14278       ;;
14279   esac
14280   shlibpath_var=LD_LIBRARY_PATH
14281   case $host_os in
14282   freebsd2*)
14283     shlibpath_overrides_runpath=yes
14284     ;;
14285   freebsd3.01* | freebsdelf3.01*)
14286     shlibpath_overrides_runpath=yes
14287     hardcode_into_libs=yes
14288     ;;
14289   *) # from 3.2 on
14290     shlibpath_overrides_runpath=no
14291     hardcode_into_libs=yes
14292     ;;
14293   esac
14294   ;;
14295
14296 gnu*)
14297   version_type=linux
14298   need_lib_prefix=no
14299   need_version=no
14300   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14301   soname_spec='${libname}${release}${shared_ext}$major'
14302   shlibpath_var=LD_LIBRARY_PATH
14303   hardcode_into_libs=yes
14304   ;;
14305
14306 hpux9* | hpux10* | hpux11*)
14307   # Give a soname corresponding to the major version so that dld.sl refuses to
14308   # link against other versions.
14309   version_type=sunos
14310   need_lib_prefix=no
14311   need_version=no
14312   case "$host_cpu" in
14313   ia64*)
14314     shrext='.so'
14315     hardcode_into_libs=yes
14316     dynamic_linker="$host_os dld.so"
14317     shlibpath_var=LD_LIBRARY_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     if test "X$HPUX_IA64_MODE" = X32; then
14322       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14323     else
14324       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14325     fi
14326     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14327     ;;
14328    hppa*64*)
14329      shrext='.sl'
14330      hardcode_into_libs=yes
14331      dynamic_linker="$host_os dld.sl"
14332      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14333      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14334      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14335      soname_spec='${libname}${release}${shared_ext}$major'
14336      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14337      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14338      ;;
14339    *)
14340     shrext='.sl'
14341     dynamic_linker="$host_os dld.sl"
14342     shlibpath_var=SHLIB_PATH
14343     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14344     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14345     soname_spec='${libname}${release}${shared_ext}$major'
14346     ;;
14347   esac
14348   # HP-UX runs *really* slowly unless shared libraries are mode 555.
14349   postinstall_cmds='chmod 555 $lib'
14350   ;;
14351
14352 irix5* | irix6* | nonstopux*)
14353   case $host_os in
14354     nonstopux*) version_type=nonstopux ;;
14355     *)
14356         if test "$lt_cv_prog_gnu_ld" = yes; then
14357                 version_type=linux
14358         else
14359                 version_type=irix
14360         fi ;;
14361   esac
14362   need_lib_prefix=no
14363   need_version=no
14364   soname_spec='${libname}${release}${shared_ext}$major'
14365   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
14366   case $host_os in
14367   irix5* | nonstopux*)
14368     libsuff= shlibsuff=
14369     ;;
14370   *)
14371     case $LD in # libtool.m4 will add one of these switches to LD
14372     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14373       libsuff= shlibsuff= libmagic=32-bit;;
14374     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14375       libsuff=32 shlibsuff=N32 libmagic=N32;;
14376     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14377       libsuff=64 shlibsuff=64 libmagic=64-bit;;
14378     *) libsuff= shlibsuff= libmagic=never-match;;
14379     esac
14380     ;;
14381   esac
14382   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14383   shlibpath_overrides_runpath=no
14384   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14385   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
14386   hardcode_into_libs=yes
14387   ;;
14388
14389 # No shared lib support for Linux oldld, aout, or coff.
14390 linux*oldld* | linux*aout* | linux*coff*)
14391   dynamic_linker=no
14392   ;;
14393
14394 # This must be Linux ELF.
14395 linux*)
14396   version_type=linux
14397   need_lib_prefix=no
14398   need_version=no
14399   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14400   soname_spec='${libname}${release}${shared_ext}$major'
14401   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14402   shlibpath_var=LD_LIBRARY_PATH
14403   shlibpath_overrides_runpath=no
14404   # This implies no fast_install, which is unacceptable.
14405   # Some rework will be needed to allow for fast_install
14406   # before this can be enabled.
14407   hardcode_into_libs=yes
14408
14409   # We used to test for /lib/ld.so.1 and disable shared libraries on
14410   # powerpc, because MkLinux only supported shared libraries with the
14411   # GNU dynamic linker.  Since this was broken with cross compilers,
14412   # most powerpc-linux boxes support dynamic linking these days and
14413   # people can always --disable-shared, the test was removed, and we
14414   # assume the GNU/Linux dynamic linker is in use.
14415   dynamic_linker='GNU/Linux ld.so'
14416   ;;
14417
14418 netbsd*)
14419   version_type=sunos
14420   need_lib_prefix=no
14421   need_version=no
14422   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14423     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14424     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14425     dynamic_linker='NetBSD (a.out) ld.so'
14426   else
14427     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
14428     soname_spec='${libname}${release}${shared_ext}$major'
14429     dynamic_linker='NetBSD ld.elf_so'
14430   fi
14431   shlibpath_var=LD_LIBRARY_PATH
14432   shlibpath_overrides_runpath=yes
14433   hardcode_into_libs=yes
14434   ;;
14435
14436 newsos6)
14437   version_type=linux
14438   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14439   shlibpath_var=LD_LIBRARY_PATH
14440   shlibpath_overrides_runpath=yes
14441   ;;
14442
14443 nto-qnx)
14444   version_type=linux
14445   need_lib_prefix=no
14446   need_version=no
14447   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14448   soname_spec='${libname}${release}${shared_ext}$major'
14449   shlibpath_var=LD_LIBRARY_PATH
14450   shlibpath_overrides_runpath=yes
14451   ;;
14452
14453 openbsd*)
14454   version_type=sunos
14455   need_lib_prefix=no
14456   need_version=no
14457   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14458   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14459   shlibpath_var=LD_LIBRARY_PATH
14460   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14461     case $host_os in
14462       openbsd2.[89] | openbsd2.[89].*)
14463         shlibpath_overrides_runpath=no
14464         ;;
14465       *)
14466         shlibpath_overrides_runpath=yes
14467         ;;
14468       esac
14469   else
14470     shlibpath_overrides_runpath=yes
14471   fi
14472   ;;
14473
14474 os2*)
14475   libname_spec='$name'
14476   shrext=".dll"
14477   need_lib_prefix=no
14478   library_names_spec='$libname${shared_ext} $libname.a'
14479   dynamic_linker='OS/2 ld.exe'
14480   shlibpath_var=LIBPATH
14481   ;;
14482
14483 osf3* | osf4* | osf5*)
14484   version_type=osf
14485   need_lib_prefix=no
14486   need_version=no
14487   soname_spec='${libname}${release}${shared_ext}$major'
14488   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14489   shlibpath_var=LD_LIBRARY_PATH
14490   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14491   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
14492   ;;
14493
14494 sco3.2v5*)
14495   version_type=osf
14496   soname_spec='${libname}${release}${shared_ext}$major'
14497   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14498   shlibpath_var=LD_LIBRARY_PATH
14499   ;;
14500
14501 solaris*)
14502   version_type=linux
14503   need_lib_prefix=no
14504   need_version=no
14505   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14506   soname_spec='${libname}${release}${shared_ext}$major'
14507   shlibpath_var=LD_LIBRARY_PATH
14508   shlibpath_overrides_runpath=yes
14509   hardcode_into_libs=yes
14510   # ldd complains unless libraries are executable
14511   postinstall_cmds='chmod +x $lib'
14512   ;;
14513
14514 sunos4*)
14515   version_type=sunos
14516   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14517   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14518   shlibpath_var=LD_LIBRARY_PATH
14519   shlibpath_overrides_runpath=yes
14520   if test "$with_gnu_ld" = yes; then
14521     need_lib_prefix=no
14522   fi
14523   need_version=yes
14524   ;;
14525
14526 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
14527   version_type=linux
14528   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14529   soname_spec='${libname}${release}${shared_ext}$major'
14530   shlibpath_var=LD_LIBRARY_PATH
14531   case $host_vendor in
14532     sni)
14533       shlibpath_overrides_runpath=no
14534       need_lib_prefix=no
14535       export_dynamic_flag_spec='${wl}-Blargedynsym'
14536       runpath_var=LD_RUN_PATH
14537       ;;
14538     siemens)
14539       need_lib_prefix=no
14540       ;;
14541     motorola)
14542       need_lib_prefix=no
14543       need_version=no
14544       shlibpath_overrides_runpath=no
14545       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14546       ;;
14547   esac
14548   ;;
14549
14550 sysv4*MP*)
14551   if test -d /usr/nec ;then
14552     version_type=linux
14553     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
14554     soname_spec='$libname${shared_ext}.$major'
14555     shlibpath_var=LD_LIBRARY_PATH
14556   fi
14557   ;;
14558
14559 uts4*)
14560   version_type=linux
14561   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14562   soname_spec='${libname}${release}${shared_ext}$major'
14563   shlibpath_var=LD_LIBRARY_PATH
14564   ;;
14565
14566 *)
14567   dynamic_linker=no
14568   ;;
14569 esac
14570 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
14571 echo "${ECHO_T}$dynamic_linker" >&6
14572 test "$dynamic_linker" = no && can_build_shared=no
14573
14574
14575 # The else clause should only fire when bootstrapping the
14576 # libtool distribution, otherwise you forgot to ship ltmain.sh
14577 # with your package, and you will get complaints that there are
14578 # no rules to generate ltmain.sh.
14579 if test -f "$ltmain"; then
14580   # See if we are running on zsh, and set the options which allow our commands through
14581   # without removal of \ escapes.
14582   if test -n "${ZSH_VERSION+set}" ; then
14583     setopt NO_GLOB_SUBST
14584   fi
14585   # Now quote all the things that may contain metacharacters while being
14586   # careful not to overquote the AC_SUBSTed values.  We take copies of the
14587   # variables and quote the copies for generation of the libtool script.
14588   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \
14589     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
14590     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
14591     deplibs_check_method reload_flag reload_cmds need_locks \
14592     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
14593     lt_cv_sys_global_symbol_to_c_name_address \
14594     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
14595     old_postinstall_cmds old_postuninstall_cmds \
14596     compiler_F77 \
14597     CC_F77 \
14598     LD_F77 \
14599     lt_prog_compiler_wl_F77 \
14600     lt_prog_compiler_pic_F77 \
14601     lt_prog_compiler_static_F77 \
14602     lt_prog_compiler_no_builtin_flag_F77 \
14603     export_dynamic_flag_spec_F77 \
14604     thread_safe_flag_spec_F77 \
14605     whole_archive_flag_spec_F77 \
14606     enable_shared_with_static_runtimes_F77 \
14607     old_archive_cmds_F77 \
14608     old_archive_from_new_cmds_F77 \
14609     predep_objects_F77 \
14610     postdep_objects_F77 \
14611     predeps_F77 \
14612     postdeps_F77 \
14613     compiler_lib_search_path_F77 \
14614     archive_cmds_F77 \
14615     archive_expsym_cmds_F77 \
14616     postinstall_cmds_F77 \
14617     postuninstall_cmds_F77 \
14618     old_archive_from_expsyms_cmds_F77 \
14619     allow_undefined_flag_F77 \
14620     no_undefined_flag_F77 \
14621     export_symbols_cmds_F77 \
14622     hardcode_libdir_flag_spec_F77 \
14623     hardcode_libdir_flag_spec_ld_F77 \
14624     hardcode_libdir_separator_F77 \
14625     hardcode_automatic_F77 \
14626     module_cmds_F77 \
14627     module_expsym_cmds_F77 \
14628     lt_cv_prog_compiler_c_o_F77 \
14629     exclude_expsyms_F77 \
14630     include_expsyms_F77; do
14631
14632     case $var in
14633     old_archive_cmds_F77 | \
14634     old_archive_from_new_cmds_F77 | \
14635     archive_cmds_F77 | \
14636     archive_expsym_cmds_F77 | \
14637     module_cmds_F77 | \
14638     module_expsym_cmds_F77 | \
14639     old_archive_from_expsyms_cmds_F77 | \
14640     export_symbols_cmds_F77 | \
14641     extract_expsyms_cmds | reload_cmds | finish_cmds | \
14642     postinstall_cmds | postuninstall_cmds | \
14643     old_postinstall_cmds | old_postuninstall_cmds | \
14644     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
14645       # Double-quote double-evaled strings.
14646       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
14647       ;;
14648     *)
14649       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
14650       ;;
14651     esac
14652   done
14653
14654   case $lt_echo in
14655   *'\$0 --fallback-echo"')
14656     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
14657     ;;
14658   esac
14659
14660 cfgfile="$ofile"
14661
14662   cat <<__EOF__ >> "$cfgfile"
14663 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
14664
14665 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
14666
14667 # Shell to use when invoking shell scripts.
14668 SHELL=$lt_SHELL
14669
14670 # Whether or not to build shared libraries.
14671 build_libtool_libs=$enable_shared
14672
14673 # Whether or not to build static libraries.
14674 build_old_libs=$enable_static
14675
14676 # Whether or not to add -lc for building shared libraries.
14677 build_libtool_need_lc=$archive_cmds_need_lc_F77
14678
14679 # Whether or not to disallow shared libs when runtime libs are static
14680 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
14681
14682 # Whether or not to optimize for fast installation.
14683 fast_install=$enable_fast_install
14684
14685 # The host system.
14686 host_alias=$host_alias
14687 host=$host
14688
14689 # An echo program that does not interpret backslashes.
14690 echo=$lt_echo
14691
14692 # The archiver.
14693 AR=$lt_AR
14694 AR_FLAGS=$lt_AR_FLAGS
14695
14696 # A C compiler.
14697 LTCC=$lt_LTCC
14698
14699 # A language-specific compiler.
14700 CC=$lt_compiler_F77
14701
14702 # Is the compiler the GNU C compiler?
14703 with_gcc=$GCC_F77
14704
14705 # An ERE matcher.
14706 EGREP=$lt_EGREP
14707
14708 # The linker used to build libraries.
14709 LD=$lt_LD_F77
14710
14711 # Whether we need hard or soft links.
14712 LN_S=$lt_LN_S
14713
14714 # A BSD-compatible nm program.
14715 NM=$lt_NM
14716
14717 # A symbol stripping program
14718 STRIP=$STRIP
14719
14720 # Used to examine libraries when file_magic_cmd begins "file"
14721 MAGIC_CMD=$MAGIC_CMD
14722
14723 # Used on cygwin: DLL creation program.
14724 DLLTOOL="$DLLTOOL"
14725
14726 # Used on cygwin: object dumper.
14727 OBJDUMP="$OBJDUMP"
14728
14729 # Used on cygwin: assembler.
14730 AS="$AS"
14731
14732 # The name of the directory that contains temporary libtool files.
14733 objdir=$objdir
14734
14735 # How to create reloadable object files.
14736 reload_flag=$lt_reload_flag
14737 reload_cmds=$lt_reload_cmds
14738
14739 # How to pass a linker flag through the compiler.
14740 wl=$lt_lt_prog_compiler_wl_F77
14741
14742 # Object file suffix (normally "o").
14743 objext="$ac_objext"
14744
14745 # Old archive suffix (normally "a").
14746 libext="$libext"
14747
14748 # Shared library suffix (normally ".so").
14749 shrext='$shrext'
14750
14751 # Executable file suffix (normally "").
14752 exeext="$exeext"
14753
14754 # Additional compiler flags for building library objects.
14755 pic_flag=$lt_lt_prog_compiler_pic_F77
14756 pic_mode=$pic_mode
14757
14758 # What is the maximum length of a command?
14759 max_cmd_len=$lt_cv_sys_max_cmd_len
14760
14761 # Does compiler simultaneously support -c and -o options?
14762 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
14763
14764 # Must we lock files when doing compilation ?
14765 need_locks=$lt_need_locks
14766
14767 # Do we need the lib prefix for modules?
14768 need_lib_prefix=$need_lib_prefix
14769
14770 # Do we need a version for libraries?
14771 need_version=$need_version
14772
14773 # Whether dlopen is supported.
14774 dlopen_support=$enable_dlopen
14775
14776 # Whether dlopen of programs is supported.
14777 dlopen_self=$enable_dlopen_self
14778
14779 # Whether dlopen of statically linked programs is supported.
14780 dlopen_self_static=$enable_dlopen_self_static
14781
14782 # Compiler flag to prevent dynamic linking.
14783 link_static_flag=$lt_lt_prog_compiler_static_F77
14784
14785 # Compiler flag to turn off builtin functions.
14786 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
14787
14788 # Compiler flag to allow reflexive dlopens.
14789 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
14790
14791 # Compiler flag to generate shared objects directly from archives.
14792 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
14793
14794 # Compiler flag to generate thread-safe objects.
14795 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
14796
14797 # Library versioning type.
14798 version_type=$version_type
14799
14800 # Format of library name prefix.
14801 libname_spec=$lt_libname_spec
14802
14803 # List of archive names.  First name is the real one, the rest are links.
14804 # The last name is the one that the linker finds with -lNAME.
14805 library_names_spec=$lt_library_names_spec
14806
14807 # The coded name of the library, if different from the real name.
14808 soname_spec=$lt_soname_spec
14809
14810 # Commands used to build and install an old-style archive.
14811 RANLIB=$lt_RANLIB
14812 old_archive_cmds=$lt_old_archive_cmds_F77
14813 old_postinstall_cmds=$lt_old_postinstall_cmds
14814 old_postuninstall_cmds=$lt_old_postuninstall_cmds
14815
14816 # Create an old-style archive from a shared archive.
14817 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
14818
14819 # Create a temporary old-style archive to link instead of a shared archive.
14820 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
14821
14822 # Commands used to build and install a shared archive.
14823 archive_cmds=$lt_archive_cmds_F77
14824 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
14825 postinstall_cmds=$lt_postinstall_cmds
14826 postuninstall_cmds=$lt_postuninstall_cmds
14827
14828 # Commands used to build a loadable module (assumed same as above if empty)
14829 module_cmds=$lt_module_cmds_F77
14830 module_expsym_cmds=$lt_module_expsym_cmds_F77
14831
14832 # Commands to strip libraries.
14833 old_striplib=$lt_old_striplib
14834 striplib=$lt_striplib
14835
14836 # Dependencies to place before the objects being linked to create a
14837 # shared library.
14838 predep_objects=$lt_predep_objects_F77
14839
14840 # Dependencies to place after the objects being linked to create a
14841 # shared library.
14842 postdep_objects=$lt_postdep_objects_F77
14843
14844 # Dependencies to place before the objects being linked to create a
14845 # shared library.
14846 predeps=$lt_predeps_F77
14847
14848 # Dependencies to place after the objects being linked to create a
14849 # shared library.
14850 postdeps=$lt_postdeps_F77
14851
14852 # The library search path used internally by the compiler when linking
14853 # a shared library.
14854 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
14855
14856 # Method to check whether dependent libraries are shared objects.
14857 deplibs_check_method=$lt_deplibs_check_method
14858
14859 # Command to use when deplibs_check_method == file_magic.
14860 file_magic_cmd=$lt_file_magic_cmd
14861
14862 # Flag that allows shared libraries with undefined symbols to be built.
14863 allow_undefined_flag=$lt_allow_undefined_flag_F77
14864
14865 # Flag that forces no undefined symbols.
14866 no_undefined_flag=$lt_no_undefined_flag_F77
14867
14868 # Commands used to finish a libtool library installation in a directory.
14869 finish_cmds=$lt_finish_cmds
14870
14871 # Same as above, but a single script fragment to be evaled but not shown.
14872 finish_eval=$lt_finish_eval
14873
14874 # Take the output of nm and produce a listing of raw symbols and C names.
14875 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
14876
14877 # Transform the output of nm in a proper C declaration
14878 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
14879
14880 # Transform the output of nm in a C name address pair
14881 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
14882
14883 # This is the shared library runtime path variable.
14884 runpath_var=$runpath_var
14885
14886 # This is the shared library path variable.
14887 shlibpath_var=$shlibpath_var
14888
14889 # Is shlibpath searched before the hard-coded library search path?
14890 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
14891
14892 # How to hardcode a shared library path into an executable.
14893 hardcode_action=$hardcode_action_F77
14894
14895 # Whether we should hardcode library paths into libraries.
14896 hardcode_into_libs=$hardcode_into_libs
14897
14898 # Flag to hardcode \$libdir into a binary during linking.
14899 # This must work even if \$libdir does not exist.
14900 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
14901
14902 # If ld is used when linking, flag to hardcode \$libdir into
14903 # a binary during linking. This must work even if \$libdir does
14904 # not exist.
14905 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
14906
14907 # Whether we need a single -rpath flag with a separated argument.
14908 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
14909
14910 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
14911 # resulting binary.
14912 hardcode_direct=$hardcode_direct_F77
14913
14914 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
14915 # resulting binary.
14916 hardcode_minus_L=$hardcode_minus_L_F77
14917
14918 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
14919 # the resulting binary.
14920 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
14921
14922 # Set to yes if building a shared library automatically hardcodes DIR into the library
14923 # and all subsequent libraries and executables linked against it.
14924 hardcode_automatic=$hardcode_automatic_F77
14925
14926 # Variables whose values should be saved in libtool wrapper scripts and
14927 # restored at relink time.
14928 variables_saved_for_relink="$variables_saved_for_relink"
14929
14930 # Whether libtool must link a program against all its dependency libraries.
14931 link_all_deplibs=$link_all_deplibs_F77
14932
14933 # Compile-time system search path for libraries
14934 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
14935
14936 # Run-time system search path for libraries
14937 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
14938
14939 # Fix the shell variable \$srcfile for the compiler.
14940 fix_srcfile_path="$fix_srcfile_path_F77"
14941
14942 # Set to yes if exported symbols are required.
14943 always_export_symbols=$always_export_symbols_F77
14944
14945 # The commands to list exported symbols.
14946 export_symbols_cmds=$lt_export_symbols_cmds_F77
14947
14948 # The commands to extract the exported symbol list from a shared archive.
14949 extract_expsyms_cmds=$lt_extract_expsyms_cmds
14950
14951 # Symbols that should not be listed in the preloaded symbols.
14952 exclude_expsyms=$lt_exclude_expsyms_F77
14953
14954 # Symbols that must always be exported.
14955 include_expsyms=$lt_include_expsyms_F77
14956
14957 # ### END LIBTOOL TAG CONFIG: $tagname
14958
14959 __EOF__
14960
14961
14962 else
14963   # If there is no Makefile yet, we rely on a make rule to execute
14964   # `config.status --recheck' to rerun these tests and create the
14965   # libtool script then.
14966   test -f Makefile && make "$ltmain"
14967 fi
14968
14969
14970 ac_ext=c
14971 ac_cpp='$CPP $CPPFLAGS'
14972 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14973 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14974 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14975
14976 CC="$lt_save_CC"
14977
14978         else
14979           tagname=""
14980         fi
14981         ;;
14982
14983       GCJ)
14984         if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
14985
14986
14987
14988 # Source file extension for Java test sources.
14989 ac_ext=java
14990
14991 # Object file extension for compiled Java test sources.
14992 objext=o
14993 objext_GCJ=$objext
14994
14995 # Code to be used in simple compile tests
14996 lt_simple_compile_test_code="class foo {}\n"
14997
14998 # Code to be used in simple link tests
14999 lt_simple_link_test_code='public class conftest { public static void main(String argv) {}; }\n'
15000
15001 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
15002
15003 # If no C compiler was specified, use CC.
15004 LTCC=${LTCC-"$CC"}
15005
15006 # Allow CC to be a program name with arguments.
15007 compiler=$CC
15008
15009
15010 # Allow CC to be a program name with arguments.
15011 lt_save_CC="$CC"
15012 CC=${GCJ-"gcj"}
15013 compiler=$CC
15014 compiler_GCJ=$CC
15015
15016 # GCJ did not exist at the time GCC didn't implicitly link libc in.
15017 archive_cmds_need_lc_GCJ=no
15018
15019 ## CAVEAT EMPTOR:
15020 ## There is no encapsulation within the following macros, do not change
15021 ## the running order or otherwise move them around unless you know exactly
15022 ## what you are doing...
15023
15024 lt_prog_compiler_no_builtin_flag_GCJ=
15025
15026 if test "$GCC" = yes; then
15027   lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
15028
15029   echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
15030 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
15031 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
15032   echo $ECHO_N "(cached) $ECHO_C" >&6
15033 else
15034   lt_cv_prog_compiler_rtti_exceptions=no
15035   ac_outfile=conftest.$ac_objext
15036    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15037    lt_compiler_flag="-fno-rtti -fno-exceptions"
15038    # Insert the option either (1) after the last *FLAGS variable, or
15039    # (2) before a word containing "conftest.", or (3) at the end.
15040    # Note that $ac_compile itself does not contain backslashes and begins
15041    # with a dollar sign (not a hyphen), so the echo should work correctly.
15042    # The option is referenced via a variable to avoid confusing sed.
15043    lt_compile=`echo "$ac_compile" | $SED \
15044    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
15045    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15046    -e 's:$: $lt_compiler_flag:'`
15047    (eval echo "\"\$as_me:15047: $lt_compile\"" >&5)
15048    (eval "$lt_compile" 2>conftest.err)
15049    ac_status=$?
15050    cat conftest.err >&5
15051    echo "$as_me:15051: \$? = $ac_status" >&5
15052    if (exit $ac_status) && test -s "$ac_outfile"; then
15053      # The compiler can only warn and ignore the option if not recognized
15054      # So say no if there are warnings
15055      if test ! -s conftest.err; then
15056        lt_cv_prog_compiler_rtti_exceptions=yes
15057      fi
15058    fi
15059    $rm conftest*
15060
15061 fi
15062 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
15063 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
15064
15065 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
15066     lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
15067 else
15068     :
15069 fi
15070
15071 fi
15072
15073 lt_prog_compiler_wl_GCJ=
15074 lt_prog_compiler_pic_GCJ=
15075 lt_prog_compiler_static_GCJ=
15076
15077 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
15078 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
15079
15080   if test "$GCC" = yes; then
15081     lt_prog_compiler_wl_GCJ='-Wl,'
15082     lt_prog_compiler_static_GCJ='-static'
15083
15084     case $host_os in
15085       aix*)
15086       # All AIX code is PIC.
15087       if test "$host_cpu" = ia64; then
15088         # AIX 5 now supports IA64 processor
15089         lt_prog_compiler_static_GCJ='-Bstatic'
15090       fi
15091       ;;
15092
15093     amigaos*)
15094       # FIXME: we need at least 68020 code to build shared libraries, but
15095       # adding the `-m68020' flag to GCC prevents building anything better,
15096       # like `-m68040'.
15097       lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
15098       ;;
15099
15100     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
15101       # PIC is the default for these OSes.
15102       ;;
15103
15104     mingw* | pw32* | os2*)
15105       # This hack is so that the source file can tell whether it is being
15106       # built for inclusion in a dll (and should export symbols for example).
15107       lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
15108       ;;
15109
15110     darwin* | rhapsody*)
15111       # PIC is the default on this platform
15112       # Common symbols not allowed in MH_DYLIB files
15113       lt_prog_compiler_pic_GCJ='-fno-common'
15114       ;;
15115
15116     msdosdjgpp*)
15117       # Just because we use GCC doesn't mean we suddenly get shared libraries
15118       # on systems that don't support them.
15119       lt_prog_compiler_can_build_shared_GCJ=no
15120       enable_shared=no
15121       ;;
15122
15123     sysv4*MP*)
15124       if test -d /usr/nec; then
15125         lt_prog_compiler_pic_GCJ=-Kconform_pic
15126       fi
15127       ;;
15128
15129     hpux*)
15130       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15131       # not for PA HP-UX.
15132       case "$host_cpu" in
15133       hppa*64*|ia64*)
15134         # +Z the default
15135         ;;
15136       *)
15137         lt_prog_compiler_pic_GCJ='-fPIC'
15138         ;;
15139       esac
15140       ;;
15141
15142     *)
15143       lt_prog_compiler_pic_GCJ='-fPIC'
15144       ;;
15145     esac
15146   else
15147     # PORTME Check for flag to pass linker flags through the system compiler.
15148     case $host_os in
15149     aix*)
15150       lt_prog_compiler_wl_GCJ='-Wl,'
15151       if test "$host_cpu" = ia64; then
15152         # AIX 5 now supports IA64 processor
15153         lt_prog_compiler_static_GCJ='-Bstatic'
15154       else
15155         lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
15156       fi
15157       ;;
15158
15159     mingw* | pw32* | os2*)
15160       # This hack is so that the source file can tell whether it is being
15161       # built for inclusion in a dll (and should export symbols for example).
15162       lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
15163       ;;
15164
15165     hpux9* | hpux10* | hpux11*)
15166       lt_prog_compiler_wl_GCJ='-Wl,'
15167       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15168       # not for PA HP-UX.
15169       case "$host_cpu" in
15170       hppa*64*|ia64*)
15171         # +Z the default
15172         ;;
15173       *)
15174         lt_prog_compiler_pic_GCJ='+Z'
15175         ;;
15176       esac
15177       # Is there a better lt_prog_compiler_static that works with the bundled CC?
15178       lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
15179       ;;
15180
15181     irix5* | irix6* | nonstopux*)
15182       lt_prog_compiler_wl_GCJ='-Wl,'
15183       # PIC (with -KPIC) is the default.
15184       lt_prog_compiler_static_GCJ='-non_shared'
15185       ;;
15186
15187     newsos6)
15188       lt_prog_compiler_pic_GCJ='-KPIC'
15189       lt_prog_compiler_static_GCJ='-Bstatic'
15190       ;;
15191
15192     linux*)
15193       case $CC in
15194       icc|ecc)
15195         lt_prog_compiler_wl_GCJ='-Wl,'
15196         lt_prog_compiler_pic_GCJ='-KPIC'
15197         lt_prog_compiler_static_GCJ='-static'
15198         ;;
15199       ccc)
15200         lt_prog_compiler_wl_GCJ='-Wl,'
15201         # All Alpha code is PIC.
15202         lt_prog_compiler_static_GCJ='-non_shared'
15203         ;;
15204       esac
15205       ;;
15206
15207     osf3* | osf4* | osf5*)
15208       lt_prog_compiler_wl_GCJ='-Wl,'
15209       # All OSF/1 code is PIC.
15210       lt_prog_compiler_static_GCJ='-non_shared'
15211       ;;
15212
15213     sco3.2v5*)
15214       lt_prog_compiler_pic_GCJ='-Kpic'
15215       lt_prog_compiler_static_GCJ='-dn'
15216       ;;
15217
15218     solaris*)
15219       lt_prog_compiler_wl_GCJ='-Wl,'
15220       lt_prog_compiler_pic_GCJ='-KPIC'
15221       lt_prog_compiler_static_GCJ='-Bstatic'
15222       ;;
15223
15224     sunos4*)
15225       lt_prog_compiler_wl_GCJ='-Qoption ld '
15226       lt_prog_compiler_pic_GCJ='-PIC'
15227       lt_prog_compiler_static_GCJ='-Bstatic'
15228       ;;
15229
15230     sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
15231       lt_prog_compiler_wl_GCJ='-Wl,'
15232       lt_prog_compiler_pic_GCJ='-KPIC'
15233       lt_prog_compiler_static_GCJ='-Bstatic'
15234       ;;
15235
15236     sysv4*MP*)
15237       if test -d /usr/nec ;then
15238         lt_prog_compiler_pic_GCJ='-Kconform_pic'
15239         lt_prog_compiler_static_GCJ='-Bstatic'
15240       fi
15241       ;;
15242
15243     uts4*)
15244       lt_prog_compiler_pic_GCJ='-pic'
15245       lt_prog_compiler_static_GCJ='-Bstatic'
15246       ;;
15247
15248     *)
15249       lt_prog_compiler_can_build_shared_GCJ=no
15250       ;;
15251     esac
15252   fi
15253
15254 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
15255 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6
15256
15257 #
15258 # Check to make sure the PIC flag actually works.
15259 #
15260 if test -n "$lt_prog_compiler_pic_GCJ"; then
15261   echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
15262 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6
15263 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
15264   echo $ECHO_N "(cached) $ECHO_C" >&6
15265 else
15266   lt_prog_compiler_pic_works_GCJ=no
15267   ac_outfile=conftest.$ac_objext
15268    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15269    lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
15270    # Insert the option either (1) after the last *FLAGS variable, or
15271    # (2) before a word containing "conftest.", or (3) at the end.
15272    # Note that $ac_compile itself does not contain backslashes and begins
15273    # with a dollar sign (not a hyphen), so the echo should work correctly.
15274    # The option is referenced via a variable to avoid confusing sed.
15275    lt_compile=`echo "$ac_compile" | $SED \
15276    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
15277    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15278    -e 's:$: $lt_compiler_flag:'`
15279    (eval echo "\"\$as_me:15279: $lt_compile\"" >&5)
15280    (eval "$lt_compile" 2>conftest.err)
15281    ac_status=$?
15282    cat conftest.err >&5
15283    echo "$as_me:15283: \$? = $ac_status" >&5
15284    if (exit $ac_status) && test -s "$ac_outfile"; then
15285      # The compiler can only warn and ignore the option if not recognized
15286      # So say no if there are warnings
15287      if test ! -s conftest.err; then
15288        lt_prog_compiler_pic_works_GCJ=yes
15289      fi
15290    fi
15291    $rm conftest*
15292
15293 fi
15294 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
15295 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6
15296
15297 if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
15298     case $lt_prog_compiler_pic_GCJ in
15299      "" | " "*) ;;
15300      *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
15301      esac
15302 else
15303     lt_prog_compiler_pic_GCJ=
15304      lt_prog_compiler_can_build_shared_GCJ=no
15305 fi
15306
15307 fi
15308 case "$host_os" in
15309   # For platforms which do not support PIC, -DPIC is meaningless:
15310   *djgpp*)
15311     lt_prog_compiler_pic_GCJ=
15312     ;;
15313   *)
15314     lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
15315     ;;
15316 esac
15317
15318 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
15319 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
15320 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
15321   echo $ECHO_N "(cached) $ECHO_C" >&6
15322 else
15323   lt_cv_prog_compiler_c_o_GCJ=no
15324    $rm -r conftest 2>/dev/null
15325    mkdir conftest
15326    cd conftest
15327    mkdir out
15328    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15329
15330    # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
15331    # that will create temporary files in the current directory regardless of
15332    # the output directory.  Thus, making CWD read-only will cause this test
15333    # to fail, enabling locking or at least warning the user not to do parallel
15334    # builds.
15335    chmod -w .
15336
15337    lt_compiler_flag="-o out/conftest2.$ac_objext"
15338    # Insert the option either (1) after the last *FLAGS variable, or
15339    # (2) before a word containing "conftest.", or (3) at the end.
15340    # Note that $ac_compile itself does not contain backslashes and begins
15341    # with a dollar sign (not a hyphen), so the echo should work correctly.
15342    lt_compile=`echo "$ac_compile" | $SED \
15343    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
15344    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15345    -e 's:$: $lt_compiler_flag:'`
15346    (eval echo "\"\$as_me:15346: $lt_compile\"" >&5)
15347    (eval "$lt_compile" 2>out/conftest.err)
15348    ac_status=$?
15349    cat out/conftest.err >&5
15350    echo "$as_me:15350: \$? = $ac_status" >&5
15351    if (exit $ac_status) && test -s out/conftest2.$ac_objext
15352    then
15353      # The compiler can only warn and ignore the option if not recognized
15354      # So say no if there are warnings
15355      if test ! -s out/conftest.err; then
15356        lt_cv_prog_compiler_c_o_GCJ=yes
15357      fi
15358    fi
15359    chmod u+w .
15360    $rm conftest* out/*
15361    rmdir out
15362    cd ..
15363    rmdir conftest
15364    $rm conftest*
15365
15366 fi
15367 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
15368 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6
15369
15370
15371 hard_links="nottested"
15372 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
15373   # do not overwrite the value of need_locks provided by the user
15374   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
15375 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
15376   hard_links=yes
15377   $rm conftest*
15378   ln conftest.a conftest.b 2>/dev/null && hard_links=no
15379   touch conftest.a
15380   ln conftest.a conftest.b 2>&5 || hard_links=no
15381   ln conftest.a conftest.b 2>/dev/null && hard_links=no
15382   echo "$as_me:$LINENO: result: $hard_links" >&5
15383 echo "${ECHO_T}$hard_links" >&6
15384   if test "$hard_links" = no; then
15385     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15386 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15387     need_locks=warn
15388   fi
15389 else
15390   need_locks=no
15391 fi
15392
15393 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15394 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
15395
15396   runpath_var=
15397   allow_undefined_flag_GCJ=
15398   enable_shared_with_static_runtimes_GCJ=no
15399   archive_cmds_GCJ=
15400   archive_expsym_cmds_GCJ=
15401   old_archive_From_new_cmds_GCJ=
15402   old_archive_from_expsyms_cmds_GCJ=
15403   export_dynamic_flag_spec_GCJ=
15404   whole_archive_flag_spec_GCJ=
15405   thread_safe_flag_spec_GCJ=
15406   hardcode_libdir_flag_spec_GCJ=
15407   hardcode_libdir_flag_spec_ld_GCJ=
15408   hardcode_libdir_separator_GCJ=
15409   hardcode_direct_GCJ=no
15410   hardcode_minus_L_GCJ=no
15411   hardcode_shlibpath_var_GCJ=unsupported
15412   link_all_deplibs_GCJ=unknown
15413   hardcode_automatic_GCJ=no
15414   module_cmds_GCJ=
15415   module_expsym_cmds_GCJ=
15416   always_export_symbols_GCJ=no
15417   export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15418   # include_expsyms should be a list of space-separated symbols to be *always*
15419   # included in the symbol list
15420   include_expsyms_GCJ=
15421   # exclude_expsyms can be an extended regexp of symbols to exclude
15422   # it will be wrapped by ` (' and `)$', so one must not match beginning or
15423   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
15424   # as well as any symbol that contains `d'.
15425   exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
15426   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
15427   # platforms (ab)use it in PIC code, but their linkers get confused if
15428   # the symbol is explicitly referenced.  Since portable code cannot
15429   # rely on this symbol name, it's probably fine to never include it in
15430   # preloaded symbol tables.
15431   extract_expsyms_cmds=
15432
15433   case $host_os in
15434   cygwin* | mingw* | pw32*)
15435     # FIXME: the MSVC++ port hasn't been tested in a loooong time
15436     # When not using gcc, we currently assume that we are using
15437     # Microsoft Visual C++.
15438     if test "$GCC" != yes; then
15439       with_gnu_ld=no
15440     fi
15441     ;;
15442   openbsd*)
15443     with_gnu_ld=no
15444     ;;
15445   esac
15446
15447   ld_shlibs_GCJ=yes
15448   if test "$with_gnu_ld" = yes; then
15449     # If archive_cmds runs LD, not CC, wlarc should be empty
15450     wlarc='${wl}'
15451
15452     # See if GNU ld supports shared libraries.
15453     case $host_os in
15454     aix3* | aix4* | aix5*)
15455       # On AIX/PPC, the GNU linker is very broken
15456       if test "$host_cpu" != ia64; then
15457         ld_shlibs_GCJ=no
15458         cat <<EOF 1>&2
15459
15460 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
15461 *** to be unable to reliably create shared libraries on AIX.
15462 *** Therefore, libtool is disabling shared libraries support.  If you
15463 *** really care for shared libraries, you may want to modify your PATH
15464 *** so that a non-GNU linker is found, and then restart.
15465
15466 EOF
15467       fi
15468       ;;
15469
15470     amigaos*)
15471       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)'
15472       hardcode_libdir_flag_spec_GCJ='-L$libdir'
15473       hardcode_minus_L_GCJ=yes
15474
15475       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
15476       # that the semantics of dynamic libraries on AmigaOS, at least up
15477       # to version 4, is to share data among multiple programs linked
15478       # with the same dynamic library.  Since this doesn't match the
15479       # behavior of shared libraries on other platforms, we can't use
15480       # them.
15481       ld_shlibs_GCJ=no
15482       ;;
15483
15484     beos*)
15485       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15486         allow_undefined_flag_GCJ=unsupported
15487         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
15488         # support --undefined.  This deserves some investigation.  FIXME
15489         archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15490       else
15491         ld_shlibs_GCJ=no
15492       fi
15493       ;;
15494
15495     cygwin* | mingw* | pw32*)
15496       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
15497       # as there is no search path for DLLs.
15498       hardcode_libdir_flag_spec_GCJ='-L$libdir'
15499       allow_undefined_flag_GCJ=unsupported
15500       always_export_symbols_GCJ=no
15501       enable_shared_with_static_runtimes_GCJ=yes
15502       export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
15503
15504       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
15505         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
15506         # If the export-symbols file already is a .def file (1st line
15507         # is EXPORTS), use it as is; otherwise, prepend...
15508         archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15509           cp $export_symbols $output_objdir/$soname.def;
15510         else
15511           echo EXPORTS > $output_objdir/$soname.def;
15512           cat $export_symbols >> $output_objdir/$soname.def;
15513         fi~
15514         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
15515       else
15516         ld_shlibs=no
15517       fi
15518       ;;
15519
15520     netbsd*)
15521       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15522         archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
15523         wlarc=
15524       else
15525         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15526         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15527       fi
15528       ;;
15529
15530     solaris* | sysv5*)
15531       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
15532         ld_shlibs_GCJ=no
15533         cat <<EOF 1>&2
15534
15535 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
15536 *** create shared libraries on Solaris systems.  Therefore, libtool
15537 *** is disabling shared libraries support.  We urge you to upgrade GNU
15538 *** binutils to release 2.9.1 or newer.  Another option is to modify
15539 *** your PATH or compiler configuration so that the native linker is
15540 *** used, and then restart.
15541
15542 EOF
15543       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15544         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15545         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15546       else
15547         ld_shlibs_GCJ=no
15548       fi
15549       ;;
15550
15551     sunos4*)
15552       archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15553       wlarc=
15554       hardcode_direct_GCJ=yes
15555       hardcode_shlibpath_var_GCJ=no
15556       ;;
15557
15558     *)
15559       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15560         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15561         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15562       else
15563         ld_shlibs_GCJ=no
15564       fi
15565       ;;
15566     esac
15567
15568     if test "$ld_shlibs_GCJ" = yes; then
15569       runpath_var=LD_RUN_PATH
15570       hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
15571       export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
15572       # ancient GNU ld didn't support --whole-archive et. al.
15573       if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
15574         whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15575       else
15576         whole_archive_flag_spec_GCJ=
15577       fi
15578     fi
15579   else
15580     # PORTME fill in a description of your system's linker (not GNU ld)
15581     case $host_os in
15582     aix3*)
15583       allow_undefined_flag_GCJ=unsupported
15584       always_export_symbols_GCJ=yes
15585       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'
15586       # Note: this linker hardcodes the directories in LIBPATH if there
15587       # are no directories specified by -L.
15588       hardcode_minus_L_GCJ=yes
15589       if test "$GCC" = yes && test -z "$link_static_flag"; then
15590         # Neither direct hardcoding nor static linking is supported with a
15591         # broken collect2.
15592         hardcode_direct_GCJ=unsupported
15593       fi
15594       ;;
15595
15596     aix4* | aix5*)
15597       if test "$host_cpu" = ia64; then
15598         # On IA64, the linker does run time linking by default, so we don't
15599         # have to do anything special.
15600         aix_use_runtimelinking=no
15601         exp_sym_flag='-Bexport'
15602         no_entry_flag=""
15603       else
15604         # If we're using GNU nm, then we don't want the "-C" option.
15605         # -C means demangle to AIX nm, but means don't demangle with GNU nm
15606         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
15607           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'
15608         else
15609           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'
15610         fi
15611         aix_use_runtimelinking=no
15612
15613         # Test if we are trying to use run time linking or normal
15614         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
15615         # need to do runtime linking.
15616         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
15617           for ld_flag in $LDFLAGS; do
15618           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
15619             aix_use_runtimelinking=yes
15620             break
15621           fi
15622           done
15623         esac
15624
15625         exp_sym_flag='-bexport'
15626         no_entry_flag='-bnoentry'
15627       fi
15628
15629       # When large executables or shared objects are built, AIX ld can
15630       # have problems creating the table of contents.  If linking a library
15631       # or program results in "error TOC overflow" add -mminimal-toc to
15632       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
15633       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15634
15635       archive_cmds_GCJ=''
15636       hardcode_direct_GCJ=yes
15637       hardcode_libdir_separator_GCJ=':'
15638       link_all_deplibs_GCJ=yes
15639
15640       if test "$GCC" = yes; then
15641         case $host_os in aix4.012|aix4.012.*)
15642         # We only want to do this on AIX 4.2 and lower, the check
15643         # below for broken collect2 doesn't work under 4.3+
15644           collect2name=`${CC} -print-prog-name=collect2`
15645           if test -f "$collect2name" && \
15646            strings "$collect2name" | grep resolve_lib_name >/dev/null
15647           then
15648           # We have reworked collect2
15649           hardcode_direct_GCJ=yes
15650           else
15651           # We have old collect2
15652           hardcode_direct_GCJ=unsupported
15653           # It fails to find uninstalled libraries when the uninstalled
15654           # path is not listed in the libpath.  Setting hardcode_minus_L
15655           # to unsupported forces relinking
15656           hardcode_minus_L_GCJ=yes
15657           hardcode_libdir_flag_spec_GCJ='-L$libdir'
15658           hardcode_libdir_separator_GCJ=
15659           fi
15660         esac
15661         shared_flag='-shared'
15662       else
15663         # not using gcc
15664         if test "$host_cpu" = ia64; then
15665         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15666         # chokes on -Wl,-G. The following line is correct:
15667           shared_flag='-G'
15668         else
15669         if test "$aix_use_runtimelinking" = yes; then
15670             shared_flag='${wl}-G'
15671           else
15672             shared_flag='${wl}-bM:SRE'
15673         fi
15674         fi
15675       fi
15676
15677       # It seems that -bexpall does not export symbols beginning with
15678       # underscore (_), so it is better to generate a list of symbols to export.
15679       always_export_symbols_GCJ=yes
15680       if test "$aix_use_runtimelinking" = yes; then
15681         # Warning - without using the other runtime loading flags (-brtl),
15682         # -berok will link without error, but may produce a broken library.
15683         allow_undefined_flag_GCJ='-berok'
15684        # Determine the default libpath from the value encoded in an empty executable.
15685        cat >conftest.$ac_ext <<_ACEOF
15686 #line $LINENO "configure"
15687 /* confdefs.h.  */
15688 _ACEOF
15689 cat confdefs.h >>conftest.$ac_ext
15690 cat >>conftest.$ac_ext <<_ACEOF
15691 /* end confdefs.h.  */
15692
15693 int
15694 main ()
15695 {
15696
15697   ;
15698   return 0;
15699 }
15700 _ACEOF
15701 rm -f conftest.$ac_objext conftest$ac_exeext
15702 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15703   (eval $ac_link) 2>&5
15704   ac_status=$?
15705   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15706   (exit $ac_status); } &&
15707          { ac_try='test -s conftest$ac_exeext'
15708   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15709   (eval $ac_try) 2>&5
15710   ac_status=$?
15711   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15712   (exit $ac_status); }; }; then
15713
15714 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
15715 }'`
15716 # Check for a 64-bit object if we didn't find anything.
15717 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; }
15718 }'`; fi
15719 else
15720   echo "$as_me: failed program was:" >&5
15721 sed 's/^/| /' conftest.$ac_ext >&5
15722
15723 fi
15724 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15725 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15726
15727        hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
15728         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"
15729        else
15730         if test "$host_cpu" = ia64; then
15731           hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
15732           allow_undefined_flag_GCJ="-z nodefs"
15733           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"
15734         else
15735          # Determine the default libpath from the value encoded in an empty executable.
15736          cat >conftest.$ac_ext <<_ACEOF
15737 #line $LINENO "configure"
15738 /* confdefs.h.  */
15739 _ACEOF
15740 cat confdefs.h >>conftest.$ac_ext
15741 cat >>conftest.$ac_ext <<_ACEOF
15742 /* end confdefs.h.  */
15743
15744 int
15745 main ()
15746 {
15747
15748   ;
15749   return 0;
15750 }
15751 _ACEOF
15752 rm -f conftest.$ac_objext conftest$ac_exeext
15753 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15754   (eval $ac_link) 2>&5
15755   ac_status=$?
15756   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15757   (exit $ac_status); } &&
15758          { ac_try='test -s conftest$ac_exeext'
15759   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15760   (eval $ac_try) 2>&5
15761   ac_status=$?
15762   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15763   (exit $ac_status); }; }; then
15764
15765 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
15766 }'`
15767 # Check for a 64-bit object if we didn't find anything.
15768 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; }
15769 }'`; fi
15770 else
15771   echo "$as_me: failed program was:" >&5
15772 sed 's/^/| /' conftest.$ac_ext >&5
15773
15774 fi
15775 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15776 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15777
15778          hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
15779           # Warning - without using the other run time loading flags,
15780           # -berok will link without error, but may produce a broken library.
15781           no_undefined_flag_GCJ=' ${wl}-bernotok'
15782           allow_undefined_flag_GCJ=' ${wl}-berok'
15783           # -bexpall does not export symbols beginning with underscore (_)
15784           always_export_symbols_GCJ=yes
15785           # Exported symbols can be pulled into shared objects from archives
15786           whole_archive_flag_spec_GCJ=' '
15787           archive_cmds_need_lc_GCJ=yes
15788           # This is similar to how AIX traditionally builds it's shared libraries.
15789           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'
15790         fi
15791       fi
15792       ;;
15793
15794     amigaos*)
15795       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)'
15796       hardcode_libdir_flag_spec_GCJ='-L$libdir'
15797       hardcode_minus_L_GCJ=yes
15798       # see comment about different semantics on the GNU ld section
15799       ld_shlibs_GCJ=no
15800       ;;
15801
15802     bsdi4*)
15803       export_dynamic_flag_spec_GCJ=-rdynamic
15804       ;;
15805
15806     cygwin* | mingw* | pw32*)
15807       # When not using gcc, we currently assume that we are using
15808       # Microsoft Visual C++.
15809       # hardcode_libdir_flag_spec is actually meaningless, as there is
15810       # no search path for DLLs.
15811       hardcode_libdir_flag_spec_GCJ=' '
15812       allow_undefined_flag_GCJ=unsupported
15813       # Tell ltmain to make .lib files, not .a files.
15814       libext=lib
15815       # Tell ltmain to make .dll files, not .so files.
15816       shrext=".dll"
15817       # FIXME: Setting linknames here is a bad hack.
15818       archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
15819       # The linker will automatically build a .lib file if we build a DLL.
15820       old_archive_From_new_cmds_GCJ='true'
15821       # FIXME: Should let the user specify the lib program.
15822       old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
15823       fix_srcfile_path='`cygpath -w "$srcfile"`'
15824       enable_shared_with_static_runtimes_GCJ=yes
15825       ;;
15826
15827     darwin* | rhapsody*)
15828     if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
15829       archive_cmds_need_lc_GCJ=no
15830       case "$host_os" in
15831       rhapsody* | darwin1.[012])
15832         allow_undefined_flag_GCJ='-undefined suppress'
15833         ;;
15834       *) # Darwin 1.3 on
15835         test -z ${LD_TWOLEVEL_NAMESPACE} && allow_undefined_flag_GCJ='-flat_namespace -undefined suppress'
15836         ;;
15837       esac
15838       # FIXME: Relying on posixy $() will cause problems for
15839       #        cross-compilation, but unfortunately the echo tests do not
15840       #        yet detect zsh echo's removal of \ escapes.  Also zsh mangles
15841       #        `"' quotes if we put them in here... so don't!
15842         lt_int_apple_cc_single_mod=no
15843         output_verbose_link_cmd='echo'
15844         if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
15845           lt_int_apple_cc_single_mod=yes
15846         fi
15847         if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
15848           archive_cmds_GCJ='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
15849         else
15850         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'
15851       fi
15852       module_cmds_GCJ='$CC -bundle ${wl}-bind_at_load $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags'
15853       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
15854         if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
15855           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}'
15856         else
15857           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}'
15858         fi
15859           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}'
15860       hardcode_direct_GCJ=no
15861       hardcode_automatic_GCJ=yes
15862       hardcode_shlibpath_var_GCJ=unsupported
15863       whole_archive_flag_spec_GCJ='-all_load $convenience'
15864       link_all_deplibs_GCJ=yes
15865     fi
15866       ;;
15867
15868     dgux*)
15869       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15870       hardcode_libdir_flag_spec_GCJ='-L$libdir'
15871       hardcode_shlibpath_var_GCJ=no
15872       ;;
15873
15874     freebsd1*)
15875       ld_shlibs_GCJ=no
15876       ;;
15877
15878     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
15879     # support.  Future versions do this automatically, but an explicit c++rt0.o
15880     # does not break anything, and helps significantly (at the cost of a little
15881     # extra space).
15882     freebsd2.2*)
15883       archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
15884       hardcode_libdir_flag_spec_GCJ='-R$libdir'
15885       hardcode_direct_GCJ=yes
15886       hardcode_shlibpath_var_GCJ=no
15887       ;;
15888
15889     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
15890     freebsd2*)
15891       archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15892       hardcode_direct_GCJ=yes
15893       hardcode_minus_L_GCJ=yes
15894       hardcode_shlibpath_var_GCJ=no
15895       ;;
15896
15897     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
15898     freebsd*)
15899       archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
15900       hardcode_libdir_flag_spec_GCJ='-R$libdir'
15901       hardcode_direct_GCJ=yes
15902       hardcode_shlibpath_var_GCJ=no
15903       ;;
15904
15905     hpux9*)
15906       if test "$GCC" = yes; then
15907         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'
15908       else
15909         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'
15910       fi
15911       hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
15912       hardcode_libdir_separator_GCJ=:
15913       hardcode_direct_GCJ=yes
15914
15915       # hardcode_minus_L: Not really in the search PATH,
15916       # but as the default location of the library.
15917       hardcode_minus_L_GCJ=yes
15918       export_dynamic_flag_spec_GCJ='${wl}-E'
15919       ;;
15920
15921     hpux10* | hpux11*)
15922       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15923         case "$host_cpu" in
15924         hppa*64*|ia64*)
15925           archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15926           ;;
15927         *)
15928           archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15929           ;;
15930         esac
15931       else
15932         case "$host_cpu" in
15933         hppa*64*|ia64*)
15934           archive_cmds_GCJ='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
15935           ;;
15936         *)
15937           archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15938           ;;
15939         esac
15940       fi
15941       if test "$with_gnu_ld" = no; then
15942         case "$host_cpu" in
15943         hppa*64*)
15944           hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
15945           hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
15946           hardcode_libdir_separator_GCJ=:
15947           hardcode_direct_GCJ=no
15948           hardcode_shlibpath_var_GCJ=no
15949           ;;
15950         ia64*)
15951           hardcode_libdir_flag_spec_GCJ='-L$libdir'
15952           hardcode_direct_GCJ=no
15953           hardcode_shlibpath_var_GCJ=no
15954
15955           # hardcode_minus_L: Not really in the search PATH,
15956           # but as the default location of the library.
15957           hardcode_minus_L_GCJ=yes
15958           ;;
15959         *)
15960           hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
15961           hardcode_libdir_separator_GCJ=:
15962           hardcode_direct_GCJ=yes
15963           export_dynamic_flag_spec_GCJ='${wl}-E'
15964
15965           # hardcode_minus_L: Not really in the search PATH,
15966           # but as the default location of the library.
15967           hardcode_minus_L_GCJ=yes
15968           ;;
15969         esac
15970       fi
15971       ;;
15972
15973     irix5* | irix6* | nonstopux*)
15974       if test "$GCC" = yes; then
15975         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'
15976       else
15977         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'
15978         hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
15979       fi
15980       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
15981       hardcode_libdir_separator_GCJ=:
15982       link_all_deplibs_GCJ=yes
15983       ;;
15984
15985     netbsd*)
15986       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15987         archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
15988       else
15989         archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
15990       fi
15991       hardcode_libdir_flag_spec_GCJ='-R$libdir'
15992       hardcode_direct_GCJ=yes
15993       hardcode_shlibpath_var_GCJ=no
15994       ;;
15995
15996     newsos6)
15997       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15998       hardcode_direct_GCJ=yes
15999       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16000       hardcode_libdir_separator_GCJ=:
16001       hardcode_shlibpath_var_GCJ=no
16002       ;;
16003
16004     openbsd*)
16005       hardcode_direct_GCJ=yes
16006       hardcode_shlibpath_var_GCJ=no
16007       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16008         archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16009         hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16010         export_dynamic_flag_spec_GCJ='${wl}-E'
16011       else
16012        case $host_os in
16013          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
16014            archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16015            hardcode_libdir_flag_spec_GCJ='-R$libdir'
16016            ;;
16017          *)
16018            archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16019            hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16020            ;;
16021        esac
16022       fi
16023       ;;
16024
16025     os2*)
16026       hardcode_libdir_flag_spec_GCJ='-L$libdir'
16027       hardcode_minus_L_GCJ=yes
16028       allow_undefined_flag_GCJ=unsupported
16029       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'
16030       old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
16031       ;;
16032
16033     osf3*)
16034       if test "$GCC" = yes; then
16035         allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
16036         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'
16037       else
16038         allow_undefined_flag_GCJ=' -expect_unresolved \*'
16039         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'
16040       fi
16041       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16042       hardcode_libdir_separator_GCJ=:
16043       ;;
16044
16045     osf4* | osf5*)      # as osf3* with the addition of -msym flag
16046       if test "$GCC" = yes; then
16047         allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
16048         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'
16049         hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16050       else
16051         allow_undefined_flag_GCJ=' -expect_unresolved \*'
16052         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'
16053         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~
16054         $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'
16055
16056         # Both c and cxx compiler support -rpath directly
16057         hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
16058       fi
16059       hardcode_libdir_separator_GCJ=:
16060       ;;
16061
16062     sco3.2v5*)
16063       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16064       hardcode_shlibpath_var_GCJ=no
16065       export_dynamic_flag_spec_GCJ='${wl}-Bexport'
16066       runpath_var=LD_RUN_PATH
16067       hardcode_runpath_var=yes
16068       ;;
16069
16070     solaris*)
16071       no_undefined_flag_GCJ=' -z text'
16072       if test "$GCC" = yes; then
16073         archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16074         archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16075           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
16076       else
16077         archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16078         archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16079         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
16080       fi
16081       hardcode_libdir_flag_spec_GCJ='-R$libdir'
16082       hardcode_shlibpath_var_GCJ=no
16083       case $host_os in
16084       solaris2.[0-5] | solaris2.[0-5].*) ;;
16085       *) # Supported since Solaris 2.6 (maybe 2.5.1?)
16086         whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
16087       esac
16088       link_all_deplibs_GCJ=yes
16089       ;;
16090
16091     sunos4*)
16092       if test "x$host_vendor" = xsequent; then
16093         # Use $CC to link under sequent, because it throws in some extra .o
16094         # files that make .init and .fini sections work.
16095         archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
16096       else
16097         archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
16098       fi
16099       hardcode_libdir_flag_spec_GCJ='-L$libdir'
16100       hardcode_direct_GCJ=yes
16101       hardcode_minus_L_GCJ=yes
16102       hardcode_shlibpath_var_GCJ=no
16103       ;;
16104
16105     sysv4)
16106       case $host_vendor in
16107         sni)
16108           archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16109           hardcode_direct_GCJ=yes # is this really true???
16110         ;;
16111         siemens)
16112           ## LD is ld it makes a PLAMLIB
16113           ## CC just makes a GrossModule.
16114           archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16115           reload_cmds_GCJ='$CC -r -o $output$reload_objs'
16116           hardcode_direct_GCJ=no
16117         ;;
16118         motorola)
16119           archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16120           hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
16121         ;;
16122       esac
16123       runpath_var='LD_RUN_PATH'
16124       hardcode_shlibpath_var_GCJ=no
16125       ;;
16126
16127     sysv4.3*)
16128       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16129       hardcode_shlibpath_var_GCJ=no
16130       export_dynamic_flag_spec_GCJ='-Bexport'
16131       ;;
16132
16133     sysv4*MP*)
16134       if test -d /usr/nec; then
16135         archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16136         hardcode_shlibpath_var_GCJ=no
16137         runpath_var=LD_RUN_PATH
16138         hardcode_runpath_var=yes
16139         ld_shlibs_GCJ=yes
16140       fi
16141       ;;
16142
16143     sysv4.2uw2*)
16144       archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16145       hardcode_direct_GCJ=yes
16146       hardcode_minus_L_GCJ=no
16147       hardcode_shlibpath_var_GCJ=no
16148       hardcode_runpath_var=yes
16149       runpath_var=LD_RUN_PATH
16150       ;;
16151
16152    sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
16153       no_undefined_flag_GCJ='${wl}-z ${wl}text'
16154       if test "$GCC" = yes; then
16155         archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16156       else
16157         archive_cmds_GCJ='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16158       fi
16159       runpath_var='LD_RUN_PATH'
16160       hardcode_shlibpath_var_GCJ=no
16161       ;;
16162
16163     sysv5*)
16164       no_undefined_flag_GCJ=' -z text'
16165       # $CC -shared without GNU ld will not create a library from C++
16166       # object files and a static libstdc++, better avoid it by now
16167       archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16168       archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16169                 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
16170       hardcode_libdir_flag_spec_GCJ=
16171       hardcode_shlibpath_var_GCJ=no
16172       runpath_var='LD_RUN_PATH'
16173       ;;
16174
16175     uts4*)
16176       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16177       hardcode_libdir_flag_spec_GCJ='-L$libdir'
16178       hardcode_shlibpath_var_GCJ=no
16179       ;;
16180
16181     *)
16182       ld_shlibs_GCJ=no
16183       ;;
16184     esac
16185   fi
16186
16187 echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
16188 echo "${ECHO_T}$ld_shlibs_GCJ" >&6
16189 test "$ld_shlibs_GCJ" = no && can_build_shared=no
16190
16191 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16192 if test "$GCC" = yes; then
16193   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16194 fi
16195
16196 #
16197 # Do we need to explicitly link libc?
16198 #
16199 case "x$archive_cmds_need_lc_GCJ" in
16200 x|xyes)
16201   # Assume -lc should be added
16202   archive_cmds_need_lc_GCJ=yes
16203
16204   if test "$enable_shared" = yes && test "$GCC" = yes; then
16205     case $archive_cmds_GCJ in
16206     *'~'*)
16207       # FIXME: we may have to deal with multi-command sequences.
16208       ;;
16209     '$CC '*)
16210       # Test whether the compiler implicitly links with -lc since on some
16211       # systems, -lgcc has to come before -lc. If gcc already passes -lc
16212       # to ld, don't add -lc before -lgcc.
16213       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
16214 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
16215       $rm conftest*
16216       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16217
16218       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16219   (eval $ac_compile) 2>&5
16220   ac_status=$?
16221   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16222   (exit $ac_status); } 2>conftest.err; then
16223         soname=conftest
16224         lib=conftest
16225         libobjs=conftest.$ac_objext
16226         deplibs=
16227         wl=$lt_prog_compiler_wl_GCJ
16228         compiler_flags=-v
16229         linker_flags=-v
16230         verstring=
16231         output_objdir=.
16232         libname=conftest
16233         lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
16234         allow_undefined_flag_GCJ=
16235         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
16236   (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
16237   ac_status=$?
16238   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16239   (exit $ac_status); }
16240         then
16241           archive_cmds_need_lc_GCJ=no
16242         else
16243           archive_cmds_need_lc_GCJ=yes
16244         fi
16245         allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
16246       else
16247         cat conftest.err 1>&5
16248       fi
16249       $rm conftest*
16250       echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
16251 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6
16252       ;;
16253     esac
16254   fi
16255   ;;
16256 esac
16257
16258 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
16259 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
16260 hardcode_action_GCJ=
16261 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
16262    test -n "$runpath_var GCJ" || \
16263    test "X$hardcode_automatic_GCJ"="Xyes" ; then
16264
16265   # We can hardcode non-existant directories.
16266   if test "$hardcode_direct_GCJ" != no &&
16267      # If the only mechanism to avoid hardcoding is shlibpath_var, we
16268      # have to relink, otherwise we might link with an installed library
16269      # when we should be linking with a yet-to-be-installed one
16270      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
16271      test "$hardcode_minus_L_GCJ" != no; then
16272     # Linking always hardcodes the temporary library directory.
16273     hardcode_action_GCJ=relink
16274   else
16275     # We can link without hardcoding, and we can hardcode nonexisting dirs.
16276     hardcode_action_GCJ=immediate
16277   fi
16278 else
16279   # We cannot hardcode anything, or else we can only hardcode existing
16280   # directories.
16281   hardcode_action_GCJ=unsupported
16282 fi
16283 echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
16284 echo "${ECHO_T}$hardcode_action_GCJ" >&6
16285
16286 if test "$hardcode_action_GCJ" = relink; then
16287   # Fast installation is not supported
16288   enable_fast_install=no
16289 elif test "$shlibpath_overrides_runpath" = yes ||
16290      test "$enable_shared" = no; then
16291   # Fast installation is not necessary
16292   enable_fast_install=needless
16293 fi
16294
16295 striplib=
16296 old_striplib=
16297 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
16298 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
16299 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
16300   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
16301   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
16302   echo "$as_me:$LINENO: result: yes" >&5
16303 echo "${ECHO_T}yes" >&6
16304 else
16305 # FIXME - insert some real tests, host_os isn't really good enough
16306   case $host_os in
16307    darwin*)
16308        if test -n "$STRIP" ; then
16309          striplib="$STRIP -x"
16310          echo "$as_me:$LINENO: result: yes" >&5
16311 echo "${ECHO_T}yes" >&6
16312        else
16313   echo "$as_me:$LINENO: result: no" >&5
16314 echo "${ECHO_T}no" >&6
16315 fi
16316        ;;
16317    *)
16318   echo "$as_me:$LINENO: result: no" >&5
16319 echo "${ECHO_T}no" >&6
16320     ;;
16321   esac
16322 fi
16323
16324 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
16325 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
16326 library_names_spec=
16327 libname_spec='lib$name'
16328 soname_spec=
16329 shrext=".so"
16330 postinstall_cmds=
16331 postuninstall_cmds=
16332 finish_cmds=
16333 finish_eval=
16334 shlibpath_var=
16335 shlibpath_overrides_runpath=unknown
16336 version_type=none
16337 dynamic_linker="$host_os ld.so"
16338 sys_lib_dlsearch_path_spec="/lib /usr/lib"
16339 if test "$GCC" = yes; then
16340   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16341   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
16342     # if the path contains ";" then we assume it to be the separator
16343     # otherwise default to the standard path separator (i.e. ":") - it is
16344     # assumed that no part of a normal pathname contains ";" but that should
16345     # okay in the real world where ";" in dirpaths is itself problematic.
16346     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16347   else
16348     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
16349   fi
16350 else
16351   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
16352 fi
16353 need_lib_prefix=unknown
16354 hardcode_into_libs=no
16355
16356 # when you set need_version to no, make sure it does not cause -set_version
16357 # flags to be left without arguments
16358 need_version=unknown
16359
16360 case $host_os in
16361 aix3*)
16362   version_type=linux
16363   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
16364   shlibpath_var=LIBPATH
16365
16366   # AIX 3 has no versioning support, so we append a major version to the name.
16367   soname_spec='${libname}${release}${shared_ext}$major'
16368   ;;
16369
16370 aix4* | aix5*)
16371   version_type=linux
16372   need_lib_prefix=no
16373   need_version=no
16374   hardcode_into_libs=yes
16375   if test "$host_cpu" = ia64; then
16376     # AIX 5 supports IA64
16377     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16378     shlibpath_var=LD_LIBRARY_PATH
16379   else
16380     # With GCC up to 2.95.x, collect2 would create an import file
16381     # for dependence libraries.  The import file would start with
16382     # the line `#! .'.  This would cause the generated library to
16383     # depend on `.', always an invalid library.  This was fixed in
16384     # development snapshots of GCC prior to 3.0.
16385     case $host_os in
16386       aix4 | aix4.[01] | aix4.[01].*)
16387       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16388            echo ' yes '
16389            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
16390         :
16391       else
16392         can_build_shared=no
16393       fi
16394       ;;
16395     esac
16396     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16397     # soname into executable. Probably we can add versioning support to
16398     # collect2, so additional links can be useful in future.
16399     if test "$aix_use_runtimelinking" = yes; then
16400       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16401       # instead of lib<name>.a to let people know that these are not
16402       # typical AIX shared libraries.
16403       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16404     else
16405       # We preserve .a as extension for shared libraries through AIX4.2
16406       # and later when we are not doing run time linking.
16407       library_names_spec='${libname}${release}.a $libname.a'
16408       soname_spec='${libname}${release}${shared_ext}$major'
16409     fi
16410     shlibpath_var=LIBPATH
16411   fi
16412   ;;
16413
16414 amigaos*)
16415   library_names_spec='$libname.ixlibrary $libname.a'
16416   # Create ${libname}_ixlibrary.a entries in /sys/libs.
16417   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'
16418   ;;
16419
16420 beos*)
16421   library_names_spec='${libname}${shared_ext}'
16422   dynamic_linker="$host_os ld.so"
16423   shlibpath_var=LIBRARY_PATH
16424   ;;
16425
16426 bsdi4*)
16427   version_type=linux
16428   need_version=no
16429   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16430   soname_spec='${libname}${release}${shared_ext}$major'
16431   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16432   shlibpath_var=LD_LIBRARY_PATH
16433   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16434   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16435   # the default ld.so.conf also contains /usr/contrib/lib and
16436   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16437   # libtool to hard-code these into programs
16438   ;;
16439
16440 cygwin* | mingw* | pw32*)
16441   version_type=windows
16442   shrext=".dll"
16443   need_version=no
16444   need_lib_prefix=no
16445
16446   case $GCC,$host_os in
16447   yes,cygwin* | yes,mingw* | yes,pw32*)
16448     library_names_spec='$libname.dll.a'
16449     # DLL is installed to $(libdir)/../bin by postinstall_cmds
16450     postinstall_cmds='base_file=`basename \${file}`~
16451       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
16452       dldir=$destdir/`dirname \$dlpath`~
16453       test -d \$dldir || mkdir -p \$dldir~
16454       $install_prog $dir/$dlname \$dldir/$dlname'
16455     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16456       dlpath=$dir/\$dldll~
16457        $rm \$dlpath'
16458     shlibpath_overrides_runpath=yes
16459
16460     case $host_os in
16461     cygwin*)
16462       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16463       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16464       sys_lib_search_path_spec="/lib /lib/w32api /usr/lib /usr/local/lib"
16465       ;;
16466     mingw*)
16467       # MinGW DLLs use traditional 'lib' prefix
16468       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16469       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16470       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
16471         # It is most probably a Windows format PATH printed by
16472         # mingw gcc, but we are running on Cygwin. Gcc prints its search
16473         # path with ; separators, and with drive letters. We can handle the
16474         # drive letters (cygwin fileutils understands them), so leave them,
16475         # especially as we might pass files found there to a mingw objdump,
16476         # which wouldn't understand a cygwinified path. Ahh.
16477         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16478       else
16479         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
16480       fi
16481       ;;
16482     pw32*)
16483       # pw32 DLLs use 'pw' prefix rather than 'lib'
16484       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
16485       ;;
16486     esac
16487     ;;
16488
16489   *)
16490     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
16491     ;;
16492   esac
16493   dynamic_linker='Win32 ld.exe'
16494   # FIXME: first we should search . and the directory the executable is in
16495   shlibpath_var=PATH
16496   ;;
16497
16498 darwin* | rhapsody*)
16499   dynamic_linker="$host_os dyld"
16500   version_type=darwin
16501   need_lib_prefix=no
16502   need_version=no
16503   # FIXME: Relying on posixy $() will cause problems for
16504   #        cross-compilation, but unfortunately the echo tests do not
16505   #        yet detect zsh echo's removal of \ escapes.
16506   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
16507   soname_spec='${libname}${release}${major}$shared_ext'
16508   shlibpath_overrides_runpath=yes
16509   shlibpath_var=DYLD_LIBRARY_PATH
16510   shrext='$(test .$module = .yes && echo .so || echo .dylib)'
16511   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
16512   if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
16513   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"`
16514   fi
16515   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16516   ;;
16517
16518 dgux*)
16519   version_type=linux
16520   need_lib_prefix=no
16521   need_version=no
16522   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16523   soname_spec='${libname}${release}${shared_ext}$major'
16524   shlibpath_var=LD_LIBRARY_PATH
16525   ;;
16526
16527 freebsd1*)
16528   dynamic_linker=no
16529   ;;
16530
16531 freebsd*)
16532   objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
16533   version_type=freebsd-$objformat
16534   case $version_type in
16535     freebsd-elf*)
16536       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16537       need_version=no
16538       need_lib_prefix=no
16539       ;;
16540     freebsd-*)
16541       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
16542       need_version=yes
16543       ;;
16544   esac
16545   shlibpath_var=LD_LIBRARY_PATH
16546   case $host_os in
16547   freebsd2*)
16548     shlibpath_overrides_runpath=yes
16549     ;;
16550   freebsd3.01* | freebsdelf3.01*)
16551     shlibpath_overrides_runpath=yes
16552     hardcode_into_libs=yes
16553     ;;
16554   *) # from 3.2 on
16555     shlibpath_overrides_runpath=no
16556     hardcode_into_libs=yes
16557     ;;
16558   esac
16559   ;;
16560
16561 gnu*)
16562   version_type=linux
16563   need_lib_prefix=no
16564   need_version=no
16565   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16566   soname_spec='${libname}${release}${shared_ext}$major'
16567   shlibpath_var=LD_LIBRARY_PATH
16568   hardcode_into_libs=yes
16569   ;;
16570
16571 hpux9* | hpux10* | hpux11*)
16572   # Give a soname corresponding to the major version so that dld.sl refuses to
16573   # link against other versions.
16574   version_type=sunos
16575   need_lib_prefix=no
16576   need_version=no
16577   case "$host_cpu" in
16578   ia64*)
16579     shrext='.so'
16580     hardcode_into_libs=yes
16581     dynamic_linker="$host_os dld.so"
16582     shlibpath_var=LD_LIBRARY_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     if test "X$HPUX_IA64_MODE" = X32; then
16587       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16588     else
16589       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16590     fi
16591     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16592     ;;
16593    hppa*64*)
16594      shrext='.sl'
16595      hardcode_into_libs=yes
16596      dynamic_linker="$host_os dld.sl"
16597      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16598      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16599      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16600      soname_spec='${libname}${release}${shared_ext}$major'
16601      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16602      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16603      ;;
16604    *)
16605     shrext='.sl'
16606     dynamic_linker="$host_os dld.sl"
16607     shlibpath_var=SHLIB_PATH
16608     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16609     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16610     soname_spec='${libname}${release}${shared_ext}$major'
16611     ;;
16612   esac
16613   # HP-UX runs *really* slowly unless shared libraries are mode 555.
16614   postinstall_cmds='chmod 555 $lib'
16615   ;;
16616
16617 irix5* | irix6* | nonstopux*)
16618   case $host_os in
16619     nonstopux*) version_type=nonstopux ;;
16620     *)
16621         if test "$lt_cv_prog_gnu_ld" = yes; then
16622                 version_type=linux
16623         else
16624                 version_type=irix
16625         fi ;;
16626   esac
16627   need_lib_prefix=no
16628   need_version=no
16629   soname_spec='${libname}${release}${shared_ext}$major'
16630   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
16631   case $host_os in
16632   irix5* | nonstopux*)
16633     libsuff= shlibsuff=
16634     ;;
16635   *)
16636     case $LD in # libtool.m4 will add one of these switches to LD
16637     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16638       libsuff= shlibsuff= libmagic=32-bit;;
16639     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16640       libsuff=32 shlibsuff=N32 libmagic=N32;;
16641     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16642       libsuff=64 shlibsuff=64 libmagic=64-bit;;
16643     *) libsuff= shlibsuff= libmagic=never-match;;
16644     esac
16645     ;;
16646   esac
16647   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16648   shlibpath_overrides_runpath=no
16649   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16650   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
16651   hardcode_into_libs=yes
16652   ;;
16653
16654 # No shared lib support for Linux oldld, aout, or coff.
16655 linux*oldld* | linux*aout* | linux*coff*)
16656   dynamic_linker=no
16657   ;;
16658
16659 # This must be Linux ELF.
16660 linux*)
16661   version_type=linux
16662   need_lib_prefix=no
16663   need_version=no
16664   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16665   soname_spec='${libname}${release}${shared_ext}$major'
16666   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16667   shlibpath_var=LD_LIBRARY_PATH
16668   shlibpath_overrides_runpath=no
16669   # This implies no fast_install, which is unacceptable.
16670   # Some rework will be needed to allow for fast_install
16671   # before this can be enabled.
16672   hardcode_into_libs=yes
16673
16674   # We used to test for /lib/ld.so.1 and disable shared libraries on
16675   # powerpc, because MkLinux only supported shared libraries with the
16676   # GNU dynamic linker.  Since this was broken with cross compilers,
16677   # most powerpc-linux boxes support dynamic linking these days and
16678   # people can always --disable-shared, the test was removed, and we
16679   # assume the GNU/Linux dynamic linker is in use.
16680   dynamic_linker='GNU/Linux ld.so'
16681   ;;
16682
16683 netbsd*)
16684   version_type=sunos
16685   need_lib_prefix=no
16686   need_version=no
16687   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16688     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16689     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16690     dynamic_linker='NetBSD (a.out) ld.so'
16691   else
16692     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
16693     soname_spec='${libname}${release}${shared_ext}$major'
16694     dynamic_linker='NetBSD ld.elf_so'
16695   fi
16696   shlibpath_var=LD_LIBRARY_PATH
16697   shlibpath_overrides_runpath=yes
16698   hardcode_into_libs=yes
16699   ;;
16700
16701 newsos6)
16702   version_type=linux
16703   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16704   shlibpath_var=LD_LIBRARY_PATH
16705   shlibpath_overrides_runpath=yes
16706   ;;
16707
16708 nto-qnx)
16709   version_type=linux
16710   need_lib_prefix=no
16711   need_version=no
16712   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16713   soname_spec='${libname}${release}${shared_ext}$major'
16714   shlibpath_var=LD_LIBRARY_PATH
16715   shlibpath_overrides_runpath=yes
16716   ;;
16717
16718 openbsd*)
16719   version_type=sunos
16720   need_lib_prefix=no
16721   need_version=no
16722   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16723   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16724   shlibpath_var=LD_LIBRARY_PATH
16725   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16726     case $host_os in
16727       openbsd2.[89] | openbsd2.[89].*)
16728         shlibpath_overrides_runpath=no
16729         ;;
16730       *)
16731         shlibpath_overrides_runpath=yes
16732         ;;
16733       esac
16734   else
16735     shlibpath_overrides_runpath=yes
16736   fi
16737   ;;
16738
16739 os2*)
16740   libname_spec='$name'
16741   shrext=".dll"
16742   need_lib_prefix=no
16743   library_names_spec='$libname${shared_ext} $libname.a'
16744   dynamic_linker='OS/2 ld.exe'
16745   shlibpath_var=LIBPATH
16746   ;;
16747
16748 osf3* | osf4* | osf5*)
16749   version_type=osf
16750   need_lib_prefix=no
16751   need_version=no
16752   soname_spec='${libname}${release}${shared_ext}$major'
16753   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16754   shlibpath_var=LD_LIBRARY_PATH
16755   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16756   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16757   ;;
16758
16759 sco3.2v5*)
16760   version_type=osf
16761   soname_spec='${libname}${release}${shared_ext}$major'
16762   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16763   shlibpath_var=LD_LIBRARY_PATH
16764   ;;
16765
16766 solaris*)
16767   version_type=linux
16768   need_lib_prefix=no
16769   need_version=no
16770   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16771   soname_spec='${libname}${release}${shared_ext}$major'
16772   shlibpath_var=LD_LIBRARY_PATH
16773   shlibpath_overrides_runpath=yes
16774   hardcode_into_libs=yes
16775   # ldd complains unless libraries are executable
16776   postinstall_cmds='chmod +x $lib'
16777   ;;
16778
16779 sunos4*)
16780   version_type=sunos
16781   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16782   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16783   shlibpath_var=LD_LIBRARY_PATH
16784   shlibpath_overrides_runpath=yes
16785   if test "$with_gnu_ld" = yes; then
16786     need_lib_prefix=no
16787   fi
16788   need_version=yes
16789   ;;
16790
16791 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
16792   version_type=linux
16793   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16794   soname_spec='${libname}${release}${shared_ext}$major'
16795   shlibpath_var=LD_LIBRARY_PATH
16796   case $host_vendor in
16797     sni)
16798       shlibpath_overrides_runpath=no
16799       need_lib_prefix=no
16800       export_dynamic_flag_spec='${wl}-Blargedynsym'
16801       runpath_var=LD_RUN_PATH
16802       ;;
16803     siemens)
16804       need_lib_prefix=no
16805       ;;
16806     motorola)
16807       need_lib_prefix=no
16808       need_version=no
16809       shlibpath_overrides_runpath=no
16810       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16811       ;;
16812   esac
16813   ;;
16814
16815 sysv4*MP*)
16816   if test -d /usr/nec ;then
16817     version_type=linux
16818     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16819     soname_spec='$libname${shared_ext}.$major'
16820     shlibpath_var=LD_LIBRARY_PATH
16821   fi
16822   ;;
16823
16824 uts4*)
16825   version_type=linux
16826   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16827   soname_spec='${libname}${release}${shared_ext}$major'
16828   shlibpath_var=LD_LIBRARY_PATH
16829   ;;
16830
16831 *)
16832   dynamic_linker=no
16833   ;;
16834 esac
16835 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
16836 echo "${ECHO_T}$dynamic_linker" >&6
16837 test "$dynamic_linker" = no && can_build_shared=no
16838
16839 if test "x$enable_dlopen" != xyes; then
16840   enable_dlopen=unknown
16841   enable_dlopen_self=unknown
16842   enable_dlopen_self_static=unknown
16843 else
16844   lt_cv_dlopen=no
16845   lt_cv_dlopen_libs=
16846
16847   case $host_os in
16848   beos*)
16849     lt_cv_dlopen="load_add_on"
16850     lt_cv_dlopen_libs=
16851     lt_cv_dlopen_self=yes
16852     ;;
16853
16854   mingw* | pw32*)
16855     lt_cv_dlopen="LoadLibrary"
16856     lt_cv_dlopen_libs=
16857    ;;
16858
16859   cygwin*)
16860     lt_cv_dlopen="dlopen"
16861     lt_cv_dlopen_libs=
16862    ;;
16863
16864   darwin*)
16865   # if libdl is installed we need to link against it
16866     echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
16867 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
16868 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
16869   echo $ECHO_N "(cached) $ECHO_C" >&6
16870 else
16871   ac_check_lib_save_LIBS=$LIBS
16872 LIBS="-ldl  $LIBS"
16873 cat >conftest.$ac_ext <<_ACEOF
16874 #line $LINENO "configure"
16875 /* confdefs.h.  */
16876 _ACEOF
16877 cat confdefs.h >>conftest.$ac_ext
16878 cat >>conftest.$ac_ext <<_ACEOF
16879 /* end confdefs.h.  */
16880
16881 /* Override any gcc2 internal prototype to avoid an error.  */
16882 #ifdef __cplusplus
16883 extern "C"
16884 #endif
16885 /* We use char because int might match the return type of a gcc2
16886    builtin and then its argument prototype would still apply.  */
16887 char dlopen ();
16888 int
16889 main ()
16890 {
16891 dlopen ();
16892   ;
16893   return 0;
16894 }
16895 _ACEOF
16896 rm -f conftest.$ac_objext conftest$ac_exeext
16897 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16898   (eval $ac_link) 2>&5
16899   ac_status=$?
16900   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16901   (exit $ac_status); } &&
16902          { ac_try='test -s conftest$ac_exeext'
16903   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16904   (eval $ac_try) 2>&5
16905   ac_status=$?
16906   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16907   (exit $ac_status); }; }; then
16908   ac_cv_lib_dl_dlopen=yes
16909 else
16910   echo "$as_me: failed program was:" >&5
16911 sed 's/^/| /' conftest.$ac_ext >&5
16912
16913 ac_cv_lib_dl_dlopen=no
16914 fi
16915 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16916 LIBS=$ac_check_lib_save_LIBS
16917 fi
16918 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
16919 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
16920 if test $ac_cv_lib_dl_dlopen = yes; then
16921   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
16922 else
16923
16924     lt_cv_dlopen="dyld"
16925     lt_cv_dlopen_libs=
16926     lt_cv_dlopen_self=yes
16927
16928 fi
16929
16930    ;;
16931
16932   *)
16933     echo "$as_me:$LINENO: checking for shl_load" >&5
16934 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
16935 if test "${ac_cv_func_shl_load+set}" = set; then
16936   echo $ECHO_N "(cached) $ECHO_C" >&6
16937 else
16938   cat >conftest.$ac_ext <<_ACEOF
16939 #line $LINENO "configure"
16940 /* confdefs.h.  */
16941 _ACEOF
16942 cat confdefs.h >>conftest.$ac_ext
16943 cat >>conftest.$ac_ext <<_ACEOF
16944 /* end confdefs.h.  */
16945 /* System header to define __stub macros and hopefully few prototypes,
16946     which can conflict with char shl_load (); below.
16947     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16948     <limits.h> exists even on freestanding compilers.  */
16949 #ifdef __STDC__
16950 # include <limits.h>
16951 #else
16952 # include <assert.h>
16953 #endif
16954 /* Override any gcc2 internal prototype to avoid an error.  */
16955 #ifdef __cplusplus
16956 extern "C"
16957 {
16958 #endif
16959 /* We use char because int might match the return type of a gcc2
16960    builtin and then its argument prototype would still apply.  */
16961 char shl_load ();
16962 /* The GNU C library defines this for functions which it implements
16963     to always fail with ENOSYS.  Some functions are actually named
16964     something starting with __ and the normal name is an alias.  */
16965 #if defined (__stub_shl_load) || defined (__stub___shl_load)
16966 choke me
16967 #else
16968 char (*f) () = shl_load;
16969 #endif
16970 #ifdef __cplusplus
16971 }
16972 #endif
16973
16974 int
16975 main ()
16976 {
16977 return f != shl_load;
16978   ;
16979   return 0;
16980 }
16981 _ACEOF
16982 rm -f conftest.$ac_objext conftest$ac_exeext
16983 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16984   (eval $ac_link) 2>&5
16985   ac_status=$?
16986   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16987   (exit $ac_status); } &&
16988          { ac_try='test -s conftest$ac_exeext'
16989   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16990   (eval $ac_try) 2>&5
16991   ac_status=$?
16992   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16993   (exit $ac_status); }; }; then
16994   ac_cv_func_shl_load=yes
16995 else
16996   echo "$as_me: failed program was:" >&5
16997 sed 's/^/| /' conftest.$ac_ext >&5
16998
16999 ac_cv_func_shl_load=no
17000 fi
17001 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17002 fi
17003 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
17004 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
17005 if test $ac_cv_func_shl_load = yes; then
17006   lt_cv_dlopen="shl_load"
17007 else
17008   echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
17009 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
17010 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
17011   echo $ECHO_N "(cached) $ECHO_C" >&6
17012 else
17013   ac_check_lib_save_LIBS=$LIBS
17014 LIBS="-ldld  $LIBS"
17015 cat >conftest.$ac_ext <<_ACEOF
17016 #line $LINENO "configure"
17017 /* confdefs.h.  */
17018 _ACEOF
17019 cat confdefs.h >>conftest.$ac_ext
17020 cat >>conftest.$ac_ext <<_ACEOF
17021 /* end confdefs.h.  */
17022
17023 /* Override any gcc2 internal prototype to avoid an error.  */
17024 #ifdef __cplusplus
17025 extern "C"
17026 #endif
17027 /* We use char because int might match the return type of a gcc2
17028    builtin and then its argument prototype would still apply.  */
17029 char shl_load ();
17030 int
17031 main ()
17032 {
17033 shl_load ();
17034   ;
17035   return 0;
17036 }
17037 _ACEOF
17038 rm -f conftest.$ac_objext conftest$ac_exeext
17039 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17040   (eval $ac_link) 2>&5
17041   ac_status=$?
17042   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17043   (exit $ac_status); } &&
17044          { ac_try='test -s conftest$ac_exeext'
17045   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17046   (eval $ac_try) 2>&5
17047   ac_status=$?
17048   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17049   (exit $ac_status); }; }; then
17050   ac_cv_lib_dld_shl_load=yes
17051 else
17052   echo "$as_me: failed program was:" >&5
17053 sed 's/^/| /' conftest.$ac_ext >&5
17054
17055 ac_cv_lib_dld_shl_load=no
17056 fi
17057 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17058 LIBS=$ac_check_lib_save_LIBS
17059 fi
17060 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
17061 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
17062 if test $ac_cv_lib_dld_shl_load = yes; then
17063   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
17064 else
17065   echo "$as_me:$LINENO: checking for dlopen" >&5
17066 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
17067 if test "${ac_cv_func_dlopen+set}" = set; then
17068   echo $ECHO_N "(cached) $ECHO_C" >&6
17069 else
17070   cat >conftest.$ac_ext <<_ACEOF
17071 #line $LINENO "configure"
17072 /* confdefs.h.  */
17073 _ACEOF
17074 cat confdefs.h >>conftest.$ac_ext
17075 cat >>conftest.$ac_ext <<_ACEOF
17076 /* end confdefs.h.  */
17077 /* System header to define __stub macros and hopefully few prototypes,
17078     which can conflict with char dlopen (); below.
17079     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17080     <limits.h> exists even on freestanding compilers.  */
17081 #ifdef __STDC__
17082 # include <limits.h>
17083 #else
17084 # include <assert.h>
17085 #endif
17086 /* Override any gcc2 internal prototype to avoid an error.  */
17087 #ifdef __cplusplus
17088 extern "C"
17089 {
17090 #endif
17091 /* We use char because int might match the return type of a gcc2
17092    builtin and then its argument prototype would still apply.  */
17093 char dlopen ();
17094 /* The GNU C library defines this for functions which it implements
17095     to always fail with ENOSYS.  Some functions are actually named
17096     something starting with __ and the normal name is an alias.  */
17097 #if defined (__stub_dlopen) || defined (__stub___dlopen)
17098 choke me
17099 #else
17100 char (*f) () = dlopen;
17101 #endif
17102 #ifdef __cplusplus
17103 }
17104 #endif
17105
17106 int
17107 main ()
17108 {
17109 return f != dlopen;
17110   ;
17111   return 0;
17112 }
17113 _ACEOF
17114 rm -f conftest.$ac_objext conftest$ac_exeext
17115 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17116   (eval $ac_link) 2>&5
17117   ac_status=$?
17118   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17119   (exit $ac_status); } &&
17120          { ac_try='test -s conftest$ac_exeext'
17121   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17122   (eval $ac_try) 2>&5
17123   ac_status=$?
17124   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17125   (exit $ac_status); }; }; then
17126   ac_cv_func_dlopen=yes
17127 else
17128   echo "$as_me: failed program was:" >&5
17129 sed 's/^/| /' conftest.$ac_ext >&5
17130
17131 ac_cv_func_dlopen=no
17132 fi
17133 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17134 fi
17135 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
17136 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
17137 if test $ac_cv_func_dlopen = yes; then
17138   lt_cv_dlopen="dlopen"
17139 else
17140   echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
17141 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
17142 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
17143   echo $ECHO_N "(cached) $ECHO_C" >&6
17144 else
17145   ac_check_lib_save_LIBS=$LIBS
17146 LIBS="-ldl  $LIBS"
17147 cat >conftest.$ac_ext <<_ACEOF
17148 #line $LINENO "configure"
17149 /* confdefs.h.  */
17150 _ACEOF
17151 cat confdefs.h >>conftest.$ac_ext
17152 cat >>conftest.$ac_ext <<_ACEOF
17153 /* end confdefs.h.  */
17154
17155 /* Override any gcc2 internal prototype to avoid an error.  */
17156 #ifdef __cplusplus
17157 extern "C"
17158 #endif
17159 /* We use char because int might match the return type of a gcc2
17160    builtin and then its argument prototype would still apply.  */
17161 char dlopen ();
17162 int
17163 main ()
17164 {
17165 dlopen ();
17166   ;
17167   return 0;
17168 }
17169 _ACEOF
17170 rm -f conftest.$ac_objext conftest$ac_exeext
17171 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17172   (eval $ac_link) 2>&5
17173   ac_status=$?
17174   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17175   (exit $ac_status); } &&
17176          { ac_try='test -s conftest$ac_exeext'
17177   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17178   (eval $ac_try) 2>&5
17179   ac_status=$?
17180   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17181   (exit $ac_status); }; }; then
17182   ac_cv_lib_dl_dlopen=yes
17183 else
17184   echo "$as_me: failed program was:" >&5
17185 sed 's/^/| /' conftest.$ac_ext >&5
17186
17187 ac_cv_lib_dl_dlopen=no
17188 fi
17189 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17190 LIBS=$ac_check_lib_save_LIBS
17191 fi
17192 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
17193 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
17194 if test $ac_cv_lib_dl_dlopen = yes; then
17195   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17196 else
17197   echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
17198 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
17199 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
17200   echo $ECHO_N "(cached) $ECHO_C" >&6
17201 else
17202   ac_check_lib_save_LIBS=$LIBS
17203 LIBS="-lsvld  $LIBS"
17204 cat >conftest.$ac_ext <<_ACEOF
17205 #line $LINENO "configure"
17206 /* confdefs.h.  */
17207 _ACEOF
17208 cat confdefs.h >>conftest.$ac_ext
17209 cat >>conftest.$ac_ext <<_ACEOF
17210 /* end confdefs.h.  */
17211
17212 /* Override any gcc2 internal prototype to avoid an error.  */
17213 #ifdef __cplusplus
17214 extern "C"
17215 #endif
17216 /* We use char because int might match the return type of a gcc2
17217    builtin and then its argument prototype would still apply.  */
17218 char dlopen ();
17219 int
17220 main ()
17221 {
17222 dlopen ();
17223   ;
17224   return 0;
17225 }
17226 _ACEOF
17227 rm -f conftest.$ac_objext conftest$ac_exeext
17228 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17229   (eval $ac_link) 2>&5
17230   ac_status=$?
17231   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17232   (exit $ac_status); } &&
17233          { ac_try='test -s conftest$ac_exeext'
17234   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17235   (eval $ac_try) 2>&5
17236   ac_status=$?
17237   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17238   (exit $ac_status); }; }; then
17239   ac_cv_lib_svld_dlopen=yes
17240 else
17241   echo "$as_me: failed program was:" >&5
17242 sed 's/^/| /' conftest.$ac_ext >&5
17243
17244 ac_cv_lib_svld_dlopen=no
17245 fi
17246 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17247 LIBS=$ac_check_lib_save_LIBS
17248 fi
17249 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
17250 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
17251 if test $ac_cv_lib_svld_dlopen = yes; then
17252   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
17253 else
17254   echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
17255 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
17256 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
17257   echo $ECHO_N "(cached) $ECHO_C" >&6
17258 else
17259   ac_check_lib_save_LIBS=$LIBS
17260 LIBS="-ldld  $LIBS"
17261 cat >conftest.$ac_ext <<_ACEOF
17262 #line $LINENO "configure"
17263 /* confdefs.h.  */
17264 _ACEOF
17265 cat confdefs.h >>conftest.$ac_ext
17266 cat >>conftest.$ac_ext <<_ACEOF
17267 /* end confdefs.h.  */
17268
17269 /* Override any gcc2 internal prototype to avoid an error.  */
17270 #ifdef __cplusplus
17271 extern "C"
17272 #endif
17273 /* We use char because int might match the return type of a gcc2
17274    builtin and then its argument prototype would still apply.  */
17275 char dld_link ();
17276 int
17277 main ()
17278 {
17279 dld_link ();
17280   ;
17281   return 0;
17282 }
17283 _ACEOF
17284 rm -f conftest.$ac_objext conftest$ac_exeext
17285 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17286   (eval $ac_link) 2>&5
17287   ac_status=$?
17288   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17289   (exit $ac_status); } &&
17290          { ac_try='test -s conftest$ac_exeext'
17291   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17292   (eval $ac_try) 2>&5
17293   ac_status=$?
17294   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17295   (exit $ac_status); }; }; then
17296   ac_cv_lib_dld_dld_link=yes
17297 else
17298   echo "$as_me: failed program was:" >&5
17299 sed 's/^/| /' conftest.$ac_ext >&5
17300
17301 ac_cv_lib_dld_dld_link=no
17302 fi
17303 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17304 LIBS=$ac_check_lib_save_LIBS
17305 fi
17306 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
17307 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
17308 if test $ac_cv_lib_dld_dld_link = yes; then
17309   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
17310 fi
17311
17312
17313 fi
17314
17315
17316 fi
17317
17318
17319 fi
17320
17321
17322 fi
17323
17324
17325 fi
17326
17327     ;;
17328   esac
17329
17330   if test "x$lt_cv_dlopen" != xno; then
17331     enable_dlopen=yes
17332   else
17333     enable_dlopen=no
17334   fi
17335
17336   case $lt_cv_dlopen in
17337   dlopen)
17338     save_CPPFLAGS="$CPPFLAGS"
17339     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
17340
17341     save_LDFLAGS="$LDFLAGS"
17342     eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
17343
17344     save_LIBS="$LIBS"
17345     LIBS="$lt_cv_dlopen_libs $LIBS"
17346
17347     echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
17348 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
17349 if test "${lt_cv_dlopen_self+set}" = set; then
17350   echo $ECHO_N "(cached) $ECHO_C" >&6
17351 else
17352           if test "$cross_compiling" = yes; then :
17353   lt_cv_dlopen_self=cross
17354 else
17355   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17356   lt_status=$lt_dlunknown
17357   cat > conftest.$ac_ext <<EOF
17358 #line 17358 "configure"
17359 #include "confdefs.h"
17360
17361 #if HAVE_DLFCN_H
17362 #include <dlfcn.h>
17363 #endif
17364
17365 #include <stdio.h>
17366
17367 #ifdef RTLD_GLOBAL
17368 #  define LT_DLGLOBAL           RTLD_GLOBAL
17369 #else
17370 #  ifdef DL_GLOBAL
17371 #    define LT_DLGLOBAL         DL_GLOBAL
17372 #  else
17373 #    define LT_DLGLOBAL         0
17374 #  endif
17375 #endif
17376
17377 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17378    find out it does not work in some platform. */
17379 #ifndef LT_DLLAZY_OR_NOW
17380 #  ifdef RTLD_LAZY
17381 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
17382 #  else
17383 #    ifdef DL_LAZY
17384 #      define LT_DLLAZY_OR_NOW          DL_LAZY
17385 #    else
17386 #      ifdef RTLD_NOW
17387 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
17388 #      else
17389 #        ifdef DL_NOW
17390 #          define LT_DLLAZY_OR_NOW      DL_NOW
17391 #        else
17392 #          define LT_DLLAZY_OR_NOW      0
17393 #        endif
17394 #      endif
17395 #    endif
17396 #  endif
17397 #endif
17398
17399 #ifdef __cplusplus
17400 extern "C" void exit (int);
17401 #endif
17402
17403 void fnord() { int i=42;}
17404 int main ()
17405 {
17406   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17407   int status = $lt_dlunknown;
17408
17409   if (self)
17410     {
17411       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
17412       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17413       /* dlclose (self); */
17414     }
17415
17416     exit (status);
17417 }
17418 EOF
17419   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17420   (eval $ac_link) 2>&5
17421   ac_status=$?
17422   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17423   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
17424     (./conftest; exit; ) 2>/dev/null
17425     lt_status=$?
17426     case x$lt_status in
17427       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
17428       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
17429       x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
17430     esac
17431   else :
17432     # compilation failed
17433     lt_cv_dlopen_self=no
17434   fi
17435 fi
17436 rm -fr conftest*
17437
17438
17439 fi
17440 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
17441 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
17442
17443     if test "x$lt_cv_dlopen_self" = xyes; then
17444       LDFLAGS="$LDFLAGS $link_static_flag"
17445       echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
17446 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
17447 if test "${lt_cv_dlopen_self_static+set}" = set; then
17448   echo $ECHO_N "(cached) $ECHO_C" >&6
17449 else
17450           if test "$cross_compiling" = yes; then :
17451   lt_cv_dlopen_self_static=cross
17452 else
17453   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17454   lt_status=$lt_dlunknown
17455   cat > conftest.$ac_ext <<EOF
17456 #line 17456 "configure"
17457 #include "confdefs.h"
17458
17459 #if HAVE_DLFCN_H
17460 #include <dlfcn.h>
17461 #endif
17462
17463 #include <stdio.h>
17464
17465 #ifdef RTLD_GLOBAL
17466 #  define LT_DLGLOBAL           RTLD_GLOBAL
17467 #else
17468 #  ifdef DL_GLOBAL
17469 #    define LT_DLGLOBAL         DL_GLOBAL
17470 #  else
17471 #    define LT_DLGLOBAL         0
17472 #  endif
17473 #endif
17474
17475 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17476    find out it does not work in some platform. */
17477 #ifndef LT_DLLAZY_OR_NOW
17478 #  ifdef RTLD_LAZY
17479 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
17480 #  else
17481 #    ifdef DL_LAZY
17482 #      define LT_DLLAZY_OR_NOW          DL_LAZY
17483 #    else
17484 #      ifdef RTLD_NOW
17485 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
17486 #      else
17487 #        ifdef DL_NOW
17488 #          define LT_DLLAZY_OR_NOW      DL_NOW
17489 #        else
17490 #          define LT_DLLAZY_OR_NOW      0
17491 #        endif
17492 #      endif
17493 #    endif
17494 #  endif
17495 #endif
17496
17497 #ifdef __cplusplus
17498 extern "C" void exit (int);
17499 #endif
17500
17501 void fnord() { int i=42;}
17502 int main ()
17503 {
17504   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17505   int status = $lt_dlunknown;
17506
17507   if (self)
17508     {
17509       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
17510       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17511       /* dlclose (self); */
17512     }
17513
17514     exit (status);
17515 }
17516 EOF
17517   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17518   (eval $ac_link) 2>&5
17519   ac_status=$?
17520   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17521   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
17522     (./conftest; exit; ) 2>/dev/null
17523     lt_status=$?
17524     case x$lt_status in
17525       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
17526       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
17527       x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
17528     esac
17529   else :
17530     # compilation failed
17531     lt_cv_dlopen_self_static=no
17532   fi
17533 fi
17534 rm -fr conftest*
17535
17536
17537 fi
17538 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
17539 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
17540     fi
17541
17542     CPPFLAGS="$save_CPPFLAGS"
17543     LDFLAGS="$save_LDFLAGS"
17544     LIBS="$save_LIBS"
17545     ;;
17546   esac
17547
17548   case $lt_cv_dlopen_self in
17549   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
17550   *) enable_dlopen_self=unknown ;;
17551   esac
17552
17553   case $lt_cv_dlopen_self_static in
17554   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
17555   *) enable_dlopen_self_static=unknown ;;
17556   esac
17557 fi
17558
17559
17560 # The else clause should only fire when bootstrapping the
17561 # libtool distribution, otherwise you forgot to ship ltmain.sh
17562 # with your package, and you will get complaints that there are
17563 # no rules to generate ltmain.sh.
17564 if test -f "$ltmain"; then
17565   # See if we are running on zsh, and set the options which allow our commands through
17566   # without removal of \ escapes.
17567   if test -n "${ZSH_VERSION+set}" ; then
17568     setopt NO_GLOB_SUBST
17569   fi
17570   # Now quote all the things that may contain metacharacters while being
17571   # careful not to overquote the AC_SUBSTed values.  We take copies of the
17572   # variables and quote the copies for generation of the libtool script.
17573   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \
17574     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
17575     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
17576     deplibs_check_method reload_flag reload_cmds need_locks \
17577     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
17578     lt_cv_sys_global_symbol_to_c_name_address \
17579     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
17580     old_postinstall_cmds old_postuninstall_cmds \
17581     compiler_GCJ \
17582     CC_GCJ \
17583     LD_GCJ \
17584     lt_prog_compiler_wl_GCJ \
17585     lt_prog_compiler_pic_GCJ \
17586     lt_prog_compiler_static_GCJ \
17587     lt_prog_compiler_no_builtin_flag_GCJ \
17588     export_dynamic_flag_spec_GCJ \
17589     thread_safe_flag_spec_GCJ \
17590     whole_archive_flag_spec_GCJ \
17591     enable_shared_with_static_runtimes_GCJ \
17592     old_archive_cmds_GCJ \
17593     old_archive_from_new_cmds_GCJ \
17594     predep_objects_GCJ \
17595     postdep_objects_GCJ \
17596     predeps_GCJ \
17597     postdeps_GCJ \
17598     compiler_lib_search_path_GCJ \
17599     archive_cmds_GCJ \
17600     archive_expsym_cmds_GCJ \
17601     postinstall_cmds_GCJ \
17602     postuninstall_cmds_GCJ \
17603     old_archive_from_expsyms_cmds_GCJ \
17604     allow_undefined_flag_GCJ \
17605     no_undefined_flag_GCJ \
17606     export_symbols_cmds_GCJ \
17607     hardcode_libdir_flag_spec_GCJ \
17608     hardcode_libdir_flag_spec_ld_GCJ \
17609     hardcode_libdir_separator_GCJ \
17610     hardcode_automatic_GCJ \
17611     module_cmds_GCJ \
17612     module_expsym_cmds_GCJ \
17613     lt_cv_prog_compiler_c_o_GCJ \
17614     exclude_expsyms_GCJ \
17615     include_expsyms_GCJ; do
17616
17617     case $var in
17618     old_archive_cmds_GCJ | \
17619     old_archive_from_new_cmds_GCJ | \
17620     archive_cmds_GCJ | \
17621     archive_expsym_cmds_GCJ | \
17622     module_cmds_GCJ | \
17623     module_expsym_cmds_GCJ | \
17624     old_archive_from_expsyms_cmds_GCJ | \
17625     export_symbols_cmds_GCJ | \
17626     extract_expsyms_cmds | reload_cmds | finish_cmds | \
17627     postinstall_cmds | postuninstall_cmds | \
17628     old_postinstall_cmds | old_postuninstall_cmds | \
17629     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
17630       # Double-quote double-evaled strings.
17631       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
17632       ;;
17633     *)
17634       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
17635       ;;
17636     esac
17637   done
17638
17639   case $lt_echo in
17640   *'\$0 --fallback-echo"')
17641     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
17642     ;;
17643   esac
17644
17645 cfgfile="$ofile"
17646
17647   cat <<__EOF__ >> "$cfgfile"
17648 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
17649
17650 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17651
17652 # Shell to use when invoking shell scripts.
17653 SHELL=$lt_SHELL
17654
17655 # Whether or not to build shared libraries.
17656 build_libtool_libs=$enable_shared
17657
17658 # Whether or not to build static libraries.
17659 build_old_libs=$enable_static
17660
17661 # Whether or not to add -lc for building shared libraries.
17662 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
17663
17664 # Whether or not to disallow shared libs when runtime libs are static
17665 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
17666
17667 # Whether or not to optimize for fast installation.
17668 fast_install=$enable_fast_install
17669
17670 # The host system.
17671 host_alias=$host_alias
17672 host=$host
17673
17674 # An echo program that does not interpret backslashes.
17675 echo=$lt_echo
17676
17677 # The archiver.
17678 AR=$lt_AR
17679 AR_FLAGS=$lt_AR_FLAGS
17680
17681 # A C compiler.
17682 LTCC=$lt_LTCC
17683
17684 # A language-specific compiler.
17685 CC=$lt_compiler_GCJ
17686
17687 # Is the compiler the GNU C compiler?
17688 with_gcc=$GCC_GCJ
17689
17690 # An ERE matcher.
17691 EGREP=$lt_EGREP
17692
17693 # The linker used to build libraries.
17694 LD=$lt_LD_GCJ
17695
17696 # Whether we need hard or soft links.
17697 LN_S=$lt_LN_S
17698
17699 # A BSD-compatible nm program.
17700 NM=$lt_NM
17701
17702 # A symbol stripping program
17703 STRIP=$STRIP
17704
17705 # Used to examine libraries when file_magic_cmd begins "file"
17706 MAGIC_CMD=$MAGIC_CMD
17707
17708 # Used on cygwin: DLL creation program.
17709 DLLTOOL="$DLLTOOL"
17710
17711 # Used on cygwin: object dumper.
17712 OBJDUMP="$OBJDUMP"
17713
17714 # Used on cygwin: assembler.
17715 AS="$AS"
17716
17717 # The name of the directory that contains temporary libtool files.
17718 objdir=$objdir
17719
17720 # How to create reloadable object files.
17721 reload_flag=$lt_reload_flag
17722 reload_cmds=$lt_reload_cmds
17723
17724 # How to pass a linker flag through the compiler.
17725 wl=$lt_lt_prog_compiler_wl_GCJ
17726
17727 # Object file suffix (normally "o").
17728 objext="$ac_objext"
17729
17730 # Old archive suffix (normally "a").
17731 libext="$libext"
17732
17733 # Shared library suffix (normally ".so").
17734 shrext='$shrext'
17735
17736 # Executable file suffix (normally "").
17737 exeext="$exeext"
17738
17739 # Additional compiler flags for building library objects.
17740 pic_flag=$lt_lt_prog_compiler_pic_GCJ
17741 pic_mode=$pic_mode
17742
17743 # What is the maximum length of a command?
17744 max_cmd_len=$lt_cv_sys_max_cmd_len
17745
17746 # Does compiler simultaneously support -c and -o options?
17747 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
17748
17749 # Must we lock files when doing compilation ?
17750 need_locks=$lt_need_locks
17751
17752 # Do we need the lib prefix for modules?
17753 need_lib_prefix=$need_lib_prefix
17754
17755 # Do we need a version for libraries?
17756 need_version=$need_version
17757
17758 # Whether dlopen is supported.
17759 dlopen_support=$enable_dlopen
17760
17761 # Whether dlopen of programs is supported.
17762 dlopen_self=$enable_dlopen_self
17763
17764 # Whether dlopen of statically linked programs is supported.
17765 dlopen_self_static=$enable_dlopen_self_static
17766
17767 # Compiler flag to prevent dynamic linking.
17768 link_static_flag=$lt_lt_prog_compiler_static_GCJ
17769
17770 # Compiler flag to turn off builtin functions.
17771 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
17772
17773 # Compiler flag to allow reflexive dlopens.
17774 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
17775
17776 # Compiler flag to generate shared objects directly from archives.
17777 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
17778
17779 # Compiler flag to generate thread-safe objects.
17780 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
17781
17782 # Library versioning type.
17783 version_type=$version_type
17784
17785 # Format of library name prefix.
17786 libname_spec=$lt_libname_spec
17787
17788 # List of archive names.  First name is the real one, the rest are links.
17789 # The last name is the one that the linker finds with -lNAME.
17790 library_names_spec=$lt_library_names_spec
17791
17792 # The coded name of the library, if different from the real name.
17793 soname_spec=$lt_soname_spec
17794
17795 # Commands used to build and install an old-style archive.
17796 RANLIB=$lt_RANLIB
17797 old_archive_cmds=$lt_old_archive_cmds_GCJ
17798 old_postinstall_cmds=$lt_old_postinstall_cmds
17799 old_postuninstall_cmds=$lt_old_postuninstall_cmds
17800
17801 # Create an old-style archive from a shared archive.
17802 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
17803
17804 # Create a temporary old-style archive to link instead of a shared archive.
17805 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
17806
17807 # Commands used to build and install a shared archive.
17808 archive_cmds=$lt_archive_cmds_GCJ
17809 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
17810 postinstall_cmds=$lt_postinstall_cmds
17811 postuninstall_cmds=$lt_postuninstall_cmds
17812
17813 # Commands used to build a loadable module (assumed same as above if empty)
17814 module_cmds=$lt_module_cmds_GCJ
17815 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
17816
17817 # Commands to strip libraries.
17818 old_striplib=$lt_old_striplib
17819 striplib=$lt_striplib
17820
17821 # Dependencies to place before the objects being linked to create a
17822 # shared library.
17823 predep_objects=$lt_predep_objects_GCJ
17824
17825 # Dependencies to place after the objects being linked to create a
17826 # shared library.
17827 postdep_objects=$lt_postdep_objects_GCJ
17828
17829 # Dependencies to place before the objects being linked to create a
17830 # shared library.
17831 predeps=$lt_predeps_GCJ
17832
17833 # Dependencies to place after the objects being linked to create a
17834 # shared library.
17835 postdeps=$lt_postdeps_GCJ
17836
17837 # The library search path used internally by the compiler when linking
17838 # a shared library.
17839 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
17840
17841 # Method to check whether dependent libraries are shared objects.
17842 deplibs_check_method=$lt_deplibs_check_method
17843
17844 # Command to use when deplibs_check_method == file_magic.
17845 file_magic_cmd=$lt_file_magic_cmd
17846
17847 # Flag that allows shared libraries with undefined symbols to be built.
17848 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
17849
17850 # Flag that forces no undefined symbols.
17851 no_undefined_flag=$lt_no_undefined_flag_GCJ
17852
17853 # Commands used to finish a libtool library installation in a directory.
17854 finish_cmds=$lt_finish_cmds
17855
17856 # Same as above, but a single script fragment to be evaled but not shown.
17857 finish_eval=$lt_finish_eval
17858
17859 # Take the output of nm and produce a listing of raw symbols and C names.
17860 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
17861
17862 # Transform the output of nm in a proper C declaration
17863 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
17864
17865 # Transform the output of nm in a C name address pair
17866 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
17867
17868 # This is the shared library runtime path variable.
17869 runpath_var=$runpath_var
17870
17871 # This is the shared library path variable.
17872 shlibpath_var=$shlibpath_var
17873
17874 # Is shlibpath searched before the hard-coded library search path?
17875 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
17876
17877 # How to hardcode a shared library path into an executable.
17878 hardcode_action=$hardcode_action_GCJ
17879
17880 # Whether we should hardcode library paths into libraries.
17881 hardcode_into_libs=$hardcode_into_libs
17882
17883 # Flag to hardcode \$libdir into a binary during linking.
17884 # This must work even if \$libdir does not exist.
17885 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
17886
17887 # If ld is used when linking, flag to hardcode \$libdir into
17888 # a binary during linking. This must work even if \$libdir does
17889 # not exist.
17890 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
17891
17892 # Whether we need a single -rpath flag with a separated argument.
17893 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
17894
17895 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
17896 # resulting binary.
17897 hardcode_direct=$hardcode_direct_GCJ
17898
17899 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
17900 # resulting binary.
17901 hardcode_minus_L=$hardcode_minus_L_GCJ
17902
17903 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
17904 # the resulting binary.
17905 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
17906
17907 # Set to yes if building a shared library automatically hardcodes DIR into the library
17908 # and all subsequent libraries and executables linked against it.
17909 hardcode_automatic=$hardcode_automatic_GCJ
17910
17911 # Variables whose values should be saved in libtool wrapper scripts and
17912 # restored at relink time.
17913 variables_saved_for_relink="$variables_saved_for_relink"
17914
17915 # Whether libtool must link a program against all its dependency libraries.
17916 link_all_deplibs=$link_all_deplibs_GCJ
17917
17918 # Compile-time system search path for libraries
17919 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
17920
17921 # Run-time system search path for libraries
17922 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
17923
17924 # Fix the shell variable \$srcfile for the compiler.
17925 fix_srcfile_path="$fix_srcfile_path_GCJ"
17926
17927 # Set to yes if exported symbols are required.
17928 always_export_symbols=$always_export_symbols_GCJ
17929
17930 # The commands to list exported symbols.
17931 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
17932
17933 # The commands to extract the exported symbol list from a shared archive.
17934 extract_expsyms_cmds=$lt_extract_expsyms_cmds
17935
17936 # Symbols that should not be listed in the preloaded symbols.
17937 exclude_expsyms=$lt_exclude_expsyms_GCJ
17938
17939 # Symbols that must always be exported.
17940 include_expsyms=$lt_include_expsyms_GCJ
17941
17942 # ### END LIBTOOL TAG CONFIG: $tagname
17943
17944 __EOF__
17945
17946
17947 else
17948   # If there is no Makefile yet, we rely on a make rule to execute
17949   # `config.status --recheck' to rerun these tests and create the
17950   # libtool script then.
17951   test -f Makefile && make "$ltmain"
17952 fi
17953
17954
17955 ac_ext=c
17956 ac_cpp='$CPP $CPPFLAGS'
17957 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17958 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17959 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17960
17961 CC="$lt_save_CC"
17962
17963         else
17964           tagname=""
17965         fi
17966         ;;
17967
17968       RC)
17969
17970
17971
17972 # Source file extension for RC test sources.
17973 ac_ext=rc
17974
17975 # Object file extension for compiled RC test sources.
17976 objext=o
17977 objext_RC=$objext
17978
17979 # Code to be used in simple compile tests
17980 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
17981
17982 # Code to be used in simple link tests
17983 lt_simple_link_test_code="$lt_simple_compile_test_code"
17984
17985 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
17986
17987 # If no C compiler was specified, use CC.
17988 LTCC=${LTCC-"$CC"}
17989
17990 # Allow CC to be a program name with arguments.
17991 compiler=$CC
17992
17993
17994 # Allow CC to be a program name with arguments.
17995 lt_save_CC="$CC"
17996 CC=${RC-"windres"}
17997 compiler=$CC
17998 compiler_RC=$CC
17999 lt_cv_prog_compiler_c_o_RC=yes
18000
18001 # The else clause should only fire when bootstrapping the
18002 # libtool distribution, otherwise you forgot to ship ltmain.sh
18003 # with your package, and you will get complaints that there are
18004 # no rules to generate ltmain.sh.
18005 if test -f "$ltmain"; then
18006   # See if we are running on zsh, and set the options which allow our commands through
18007   # without removal of \ escapes.
18008   if test -n "${ZSH_VERSION+set}" ; then
18009     setopt NO_GLOB_SUBST
18010   fi
18011   # Now quote all the things that may contain metacharacters while being
18012   # careful not to overquote the AC_SUBSTed values.  We take copies of the
18013   # variables and quote the copies for generation of the libtool script.
18014   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \
18015     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18016     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18017     deplibs_check_method reload_flag reload_cmds need_locks \
18018     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18019     lt_cv_sys_global_symbol_to_c_name_address \
18020     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18021     old_postinstall_cmds old_postuninstall_cmds \
18022     compiler_RC \
18023     CC_RC \
18024     LD_RC \
18025     lt_prog_compiler_wl_RC \
18026     lt_prog_compiler_pic_RC \
18027     lt_prog_compiler_static_RC \
18028     lt_prog_compiler_no_builtin_flag_RC \
18029     export_dynamic_flag_spec_RC \
18030     thread_safe_flag_spec_RC \
18031     whole_archive_flag_spec_RC \
18032     enable_shared_with_static_runtimes_RC \
18033     old_archive_cmds_RC \
18034     old_archive_from_new_cmds_RC \
18035     predep_objects_RC \
18036     postdep_objects_RC \
18037     predeps_RC \
18038     postdeps_RC \
18039     compiler_lib_search_path_RC \
18040     archive_cmds_RC \
18041     archive_expsym_cmds_RC \
18042     postinstall_cmds_RC \
18043     postuninstall_cmds_RC \
18044     old_archive_from_expsyms_cmds_RC \
18045     allow_undefined_flag_RC \
18046     no_undefined_flag_RC \
18047     export_symbols_cmds_RC \
18048     hardcode_libdir_flag_spec_RC \
18049     hardcode_libdir_flag_spec_ld_RC \
18050     hardcode_libdir_separator_RC \
18051     hardcode_automatic_RC \
18052     module_cmds_RC \
18053     module_expsym_cmds_RC \
18054     lt_cv_prog_compiler_c_o_RC \
18055     exclude_expsyms_RC \
18056     include_expsyms_RC; do
18057
18058     case $var in
18059     old_archive_cmds_RC | \
18060     old_archive_from_new_cmds_RC | \
18061     archive_cmds_RC | \
18062     archive_expsym_cmds_RC | \
18063     module_cmds_RC | \
18064     module_expsym_cmds_RC | \
18065     old_archive_from_expsyms_cmds_RC | \
18066     export_symbols_cmds_RC | \
18067     extract_expsyms_cmds | reload_cmds | finish_cmds | \
18068     postinstall_cmds | postuninstall_cmds | \
18069     old_postinstall_cmds | old_postuninstall_cmds | \
18070     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18071       # Double-quote double-evaled strings.
18072       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18073       ;;
18074     *)
18075       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18076       ;;
18077     esac
18078   done
18079
18080   case $lt_echo in
18081   *'\$0 --fallback-echo"')
18082     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18083     ;;
18084   esac
18085
18086 cfgfile="$ofile"
18087
18088   cat <<__EOF__ >> "$cfgfile"
18089 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
18090
18091 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18092
18093 # Shell to use when invoking shell scripts.
18094 SHELL=$lt_SHELL
18095
18096 # Whether or not to build shared libraries.
18097 build_libtool_libs=$enable_shared
18098
18099 # Whether or not to build static libraries.
18100 build_old_libs=$enable_static
18101
18102 # Whether or not to add -lc for building shared libraries.
18103 build_libtool_need_lc=$archive_cmds_need_lc_RC
18104
18105 # Whether or not to disallow shared libs when runtime libs are static
18106 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
18107
18108 # Whether or not to optimize for fast installation.
18109 fast_install=$enable_fast_install
18110
18111 # The host system.
18112 host_alias=$host_alias
18113 host=$host
18114
18115 # An echo program that does not interpret backslashes.
18116 echo=$lt_echo
18117
18118 # The archiver.
18119 AR=$lt_AR
18120 AR_FLAGS=$lt_AR_FLAGS
18121
18122 # A C compiler.
18123 LTCC=$lt_LTCC
18124
18125 # A language-specific compiler.
18126 CC=$lt_compiler_RC
18127
18128 # Is the compiler the GNU C compiler?
18129 with_gcc=$GCC_RC
18130
18131 # An ERE matcher.
18132 EGREP=$lt_EGREP
18133
18134 # The linker used to build libraries.
18135 LD=$lt_LD_RC
18136
18137 # Whether we need hard or soft links.
18138 LN_S=$lt_LN_S
18139
18140 # A BSD-compatible nm program.
18141 NM=$lt_NM
18142
18143 # A symbol stripping program
18144 STRIP=$STRIP
18145
18146 # Used to examine libraries when file_magic_cmd begins "file"
18147 MAGIC_CMD=$MAGIC_CMD
18148
18149 # Used on cygwin: DLL creation program.
18150 DLLTOOL="$DLLTOOL"
18151
18152 # Used on cygwin: object dumper.
18153 OBJDUMP="$OBJDUMP"
18154
18155 # Used on cygwin: assembler.
18156 AS="$AS"
18157
18158 # The name of the directory that contains temporary libtool files.
18159 objdir=$objdir
18160
18161 # How to create reloadable object files.
18162 reload_flag=$lt_reload_flag
18163 reload_cmds=$lt_reload_cmds
18164
18165 # How to pass a linker flag through the compiler.
18166 wl=$lt_lt_prog_compiler_wl_RC
18167
18168 # Object file suffix (normally "o").
18169 objext="$ac_objext"
18170
18171 # Old archive suffix (normally "a").
18172 libext="$libext"
18173
18174 # Shared library suffix (normally ".so").
18175 shrext='$shrext'
18176
18177 # Executable file suffix (normally "").
18178 exeext="$exeext"
18179
18180 # Additional compiler flags for building library objects.
18181 pic_flag=$lt_lt_prog_compiler_pic_RC
18182 pic_mode=$pic_mode
18183
18184 # What is the maximum length of a command?
18185 max_cmd_len=$lt_cv_sys_max_cmd_len
18186
18187 # Does compiler simultaneously support -c and -o options?
18188 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
18189
18190 # Must we lock files when doing compilation ?
18191 need_locks=$lt_need_locks
18192
18193 # Do we need the lib prefix for modules?
18194 need_lib_prefix=$need_lib_prefix
18195
18196 # Do we need a version for libraries?
18197 need_version=$need_version
18198
18199 # Whether dlopen is supported.
18200 dlopen_support=$enable_dlopen
18201
18202 # Whether dlopen of programs is supported.
18203 dlopen_self=$enable_dlopen_self
18204
18205 # Whether dlopen of statically linked programs is supported.
18206 dlopen_self_static=$enable_dlopen_self_static
18207
18208 # Compiler flag to prevent dynamic linking.
18209 link_static_flag=$lt_lt_prog_compiler_static_RC
18210
18211 # Compiler flag to turn off builtin functions.
18212 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
18213
18214 # Compiler flag to allow reflexive dlopens.
18215 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
18216
18217 # Compiler flag to generate shared objects directly from archives.
18218 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
18219
18220 # Compiler flag to generate thread-safe objects.
18221 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
18222
18223 # Library versioning type.
18224 version_type=$version_type
18225
18226 # Format of library name prefix.
18227 libname_spec=$lt_libname_spec
18228
18229 # List of archive names.  First name is the real one, the rest are links.
18230 # The last name is the one that the linker finds with -lNAME.
18231 library_names_spec=$lt_library_names_spec
18232
18233 # The coded name of the library, if different from the real name.
18234 soname_spec=$lt_soname_spec
18235
18236 # Commands used to build and install an old-style archive.
18237 RANLIB=$lt_RANLIB
18238 old_archive_cmds=$lt_old_archive_cmds_RC
18239 old_postinstall_cmds=$lt_old_postinstall_cmds
18240 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18241
18242 # Create an old-style archive from a shared archive.
18243 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
18244
18245 # Create a temporary old-style archive to link instead of a shared archive.
18246 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
18247
18248 # Commands used to build and install a shared archive.
18249 archive_cmds=$lt_archive_cmds_RC
18250 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
18251 postinstall_cmds=$lt_postinstall_cmds
18252 postuninstall_cmds=$lt_postuninstall_cmds
18253
18254 # Commands used to build a loadable module (assumed same as above if empty)
18255 module_cmds=$lt_module_cmds_RC
18256 module_expsym_cmds=$lt_module_expsym_cmds_RC
18257
18258 # Commands to strip libraries.
18259 old_striplib=$lt_old_striplib
18260 striplib=$lt_striplib
18261
18262 # Dependencies to place before the objects being linked to create a
18263 # shared library.
18264 predep_objects=$lt_predep_objects_RC
18265
18266 # Dependencies to place after the objects being linked to create a
18267 # shared library.
18268 postdep_objects=$lt_postdep_objects_RC
18269
18270 # Dependencies to place before the objects being linked to create a
18271 # shared library.
18272 predeps=$lt_predeps_RC
18273
18274 # Dependencies to place after the objects being linked to create a
18275 # shared library.
18276 postdeps=$lt_postdeps_RC
18277
18278 # The library search path used internally by the compiler when linking
18279 # a shared library.
18280 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
18281
18282 # Method to check whether dependent libraries are shared objects.
18283 deplibs_check_method=$lt_deplibs_check_method
18284
18285 # Command to use when deplibs_check_method == file_magic.
18286 file_magic_cmd=$lt_file_magic_cmd
18287
18288 # Flag that allows shared libraries with undefined symbols to be built.
18289 allow_undefined_flag=$lt_allow_undefined_flag_RC
18290
18291 # Flag that forces no undefined symbols.
18292 no_undefined_flag=$lt_no_undefined_flag_RC
18293
18294 # Commands used to finish a libtool library installation in a directory.
18295 finish_cmds=$lt_finish_cmds
18296
18297 # Same as above, but a single script fragment to be evaled but not shown.
18298 finish_eval=$lt_finish_eval
18299
18300 # Take the output of nm and produce a listing of raw symbols and C names.
18301 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18302
18303 # Transform the output of nm in a proper C declaration
18304 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18305
18306 # Transform the output of nm in a C name address pair
18307 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18308
18309 # This is the shared library runtime path variable.
18310 runpath_var=$runpath_var
18311
18312 # This is the shared library path variable.
18313 shlibpath_var=$shlibpath_var
18314
18315 # Is shlibpath searched before the hard-coded library search path?
18316 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18317
18318 # How to hardcode a shared library path into an executable.
18319 hardcode_action=$hardcode_action_RC
18320
18321 # Whether we should hardcode library paths into libraries.
18322 hardcode_into_libs=$hardcode_into_libs
18323
18324 # Flag to hardcode \$libdir into a binary during linking.
18325 # This must work even if \$libdir does not exist.
18326 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
18327
18328 # If ld is used when linking, flag to hardcode \$libdir into
18329 # a binary during linking. This must work even if \$libdir does
18330 # not exist.
18331 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
18332
18333 # Whether we need a single -rpath flag with a separated argument.
18334 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
18335
18336 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18337 # resulting binary.
18338 hardcode_direct=$hardcode_direct_RC
18339
18340 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18341 # resulting binary.
18342 hardcode_minus_L=$hardcode_minus_L_RC
18343
18344 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18345 # the resulting binary.
18346 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
18347
18348 # Set to yes if building a shared library automatically hardcodes DIR into the library
18349 # and all subsequent libraries and executables linked against it.
18350 hardcode_automatic=$hardcode_automatic_RC
18351
18352 # Variables whose values should be saved in libtool wrapper scripts and
18353 # restored at relink time.
18354 variables_saved_for_relink="$variables_saved_for_relink"
18355
18356 # Whether libtool must link a program against all its dependency libraries.
18357 link_all_deplibs=$link_all_deplibs_RC
18358
18359 # Compile-time system search path for libraries
18360 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18361
18362 # Run-time system search path for libraries
18363 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18364
18365 # Fix the shell variable \$srcfile for the compiler.
18366 fix_srcfile_path="$fix_srcfile_path_RC"
18367
18368 # Set to yes if exported symbols are required.
18369 always_export_symbols=$always_export_symbols_RC
18370
18371 # The commands to list exported symbols.
18372 export_symbols_cmds=$lt_export_symbols_cmds_RC
18373
18374 # The commands to extract the exported symbol list from a shared archive.
18375 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18376
18377 # Symbols that should not be listed in the preloaded symbols.
18378 exclude_expsyms=$lt_exclude_expsyms_RC
18379
18380 # Symbols that must always be exported.
18381 include_expsyms=$lt_include_expsyms_RC
18382
18383 # ### END LIBTOOL TAG CONFIG: $tagname
18384
18385 __EOF__
18386
18387
18388 else
18389   # If there is no Makefile yet, we rely on a make rule to execute
18390   # `config.status --recheck' to rerun these tests and create the
18391   # libtool script then.
18392   test -f Makefile && make "$ltmain"
18393 fi
18394
18395
18396 ac_ext=c
18397 ac_cpp='$CPP $CPPFLAGS'
18398 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18399 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18400 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18401
18402 CC="$lt_save_CC"
18403
18404         ;;
18405
18406       *)
18407         { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
18408 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
18409    { (exit 1); exit 1; }; }
18410         ;;
18411       esac
18412
18413       # Append the new tag name to the list of available tags.
18414       if test -n "$tagname" ; then
18415       available_tags="$available_tags $tagname"
18416     fi
18417     fi
18418   done
18419   IFS="$lt_save_ifs"
18420
18421   # Now substitute the updated list of available tags.
18422   if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
18423     mv "${ofile}T" "$ofile"
18424     chmod +x "$ofile"
18425   else
18426     rm -f "${ofile}T"
18427     { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
18428 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
18429    { (exit 1); exit 1; }; }
18430   fi
18431 fi
18432
18433
18434
18435 # This can be used to rebuild libtool when needed
18436 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
18437
18438 # Always use our own libtool.
18439 LIBTOOL='$(SHELL) $(top_builddir)/mklib'
18440
18441 # Prevent multiple expansion
18442
18443
18444
18445
18446
18447
18448
18449
18450
18451
18452
18453
18454
18455
18456
18457
18458
18459
18460
18461
18462
18463 # Extract the first word of "pwd", so it can be a program name with args.
18464 set dummy pwd; ac_word=$2
18465 echo "$as_me:$LINENO: checking for $ac_word" >&5
18466 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18467 if test "${ac_cv_path_RPWD+set}" = set; then
18468   echo $ECHO_N "(cached) $ECHO_C" >&6
18469 else
18470   case $RPWD in
18471   [\\/]* | ?:[\\/]*)
18472   ac_cv_path_RPWD="$RPWD" # Let the user override the test with a path.
18473   ;;
18474   *)
18475   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18476 for as_dir in $PATH
18477 do
18478   IFS=$as_save_IFS
18479   test -z "$as_dir" && as_dir=.
18480   for ac_exec_ext in '' $ac_executable_extensions; do
18481   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18482     ac_cv_path_RPWD="$as_dir/$ac_word$ac_exec_ext"
18483     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18484     break 2
18485   fi
18486 done
18487 done
18488
18489   test -z "$ac_cv_path_RPWD" && ac_cv_path_RPWD="false"
18490   ;;
18491 esac
18492 fi
18493 RPWD=$ac_cv_path_RPWD
18494
18495 if test -n "$RPWD"; then
18496   echo "$as_me:$LINENO: result: $RPWD" >&5
18497 echo "${ECHO_T}$RPWD" >&6
18498 else
18499   echo "$as_me:$LINENO: result: no" >&5
18500 echo "${ECHO_T}no" >&6
18501 fi
18502
18503 if test ${RPWD} = "false"
18504 then
18505         { { echo "$as_me:$LINENO: error: pwd required but not found" >&5
18506 echo "$as_me: error: pwd required but not found" >&2;}
18507    { (exit 1); exit 1; }; }
18508 fi
18509
18510 # Extract the first word of "ar", so it can be a program name with args.
18511 set dummy ar; ac_word=$2
18512 echo "$as_me:$LINENO: checking for $ac_word" >&5
18513 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18514 if test "${ac_cv_path_AR+set}" = set; then
18515   echo $ECHO_N "(cached) $ECHO_C" >&6
18516 else
18517   case $AR in
18518   [\\/]* | ?:[\\/]*)
18519   ac_cv_path_AR="$AR" # Let the user override the test with a path.
18520   ;;
18521   *)
18522   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18523 for as_dir in $PATH
18524 do
18525   IFS=$as_save_IFS
18526   test -z "$as_dir" && as_dir=.
18527   for ac_exec_ext in '' $ac_executable_extensions; do
18528   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18529     ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext"
18530     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18531     break 2
18532   fi
18533 done
18534 done
18535
18536   test -z "$ac_cv_path_AR" && ac_cv_path_AR="false"
18537   ;;
18538 esac
18539 fi
18540 AR=$ac_cv_path_AR
18541
18542 if test -n "$AR"; then
18543   echo "$as_me:$LINENO: result: $AR" >&5
18544 echo "${ECHO_T}$AR" >&6
18545 else
18546   echo "$as_me:$LINENO: result: no" >&5
18547 echo "${ECHO_T}no" >&6
18548 fi
18549
18550 if test ${AR} = "false"
18551 then
18552         { { echo "$as_me:$LINENO: error: ar required but not found" >&5
18553 echo "$as_me: error: ar required but not found" >&2;}
18554    { (exit 1); exit 1; }; }
18555 fi
18556
18557 # Extract the first word of "sed", so it can be a program name with args.
18558 set dummy sed; ac_word=$2
18559 echo "$as_me:$LINENO: checking for $ac_word" >&5
18560 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18561 if test "${ac_cv_path_SED+set}" = set; then
18562   echo $ECHO_N "(cached) $ECHO_C" >&6
18563 else
18564   case $SED in
18565   [\\/]* | ?:[\\/]*)
18566   ac_cv_path_SED="$SED" # Let the user override the test with a path.
18567   ;;
18568   *)
18569   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18570 for as_dir in $PATH
18571 do
18572   IFS=$as_save_IFS
18573   test -z "$as_dir" && as_dir=.
18574   for ac_exec_ext in '' $ac_executable_extensions; do
18575   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18576     ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
18577     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18578     break 2
18579   fi
18580 done
18581 done
18582
18583   test -z "$ac_cv_path_SED" && ac_cv_path_SED="false"
18584   ;;
18585 esac
18586 fi
18587 SED=$ac_cv_path_SED
18588
18589 if test -n "$SED"; then
18590   echo "$as_me:$LINENO: result: $SED" >&5
18591 echo "${ECHO_T}$SED" >&6
18592 else
18593   echo "$as_me:$LINENO: result: no" >&5
18594 echo "${ECHO_T}no" >&6
18595 fi
18596
18597 if test ${SED} = "false"
18598 then
18599         { { echo "$as_me:$LINENO: error: sed required but not found" >&5
18600 echo "$as_me: error: sed required but not found" >&2;}
18601    { (exit 1); exit 1; }; }
18602 fi
18603
18604 # Extract the first word of "rm", so it can be a program name with args.
18605 set dummy rm; ac_word=$2
18606 echo "$as_me:$LINENO: checking for $ac_word" >&5
18607 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18608 if test "${ac_cv_path_RM+set}" = set; then
18609   echo $ECHO_N "(cached) $ECHO_C" >&6
18610 else
18611   case $RM in
18612   [\\/]* | ?:[\\/]*)
18613   ac_cv_path_RM="$RM" # Let the user override the test with a path.
18614   ;;
18615   *)
18616   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18617 for as_dir in $PATH
18618 do
18619   IFS=$as_save_IFS
18620   test -z "$as_dir" && as_dir=.
18621   for ac_exec_ext in '' $ac_executable_extensions; do
18622   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18623     ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
18624     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18625     break 2
18626   fi
18627 done
18628 done
18629
18630   test -z "$ac_cv_path_RM" && ac_cv_path_RM="false"
18631   ;;
18632 esac
18633 fi
18634 RM=$ac_cv_path_RM
18635
18636 if test -n "$RM"; then
18637   echo "$as_me:$LINENO: result: $RM" >&5
18638 echo "${ECHO_T}$RM" >&6
18639 else
18640   echo "$as_me:$LINENO: result: no" >&5
18641 echo "${ECHO_T}no" >&6
18642 fi
18643
18644 if test ${RM} = "false"
18645 then
18646         { { echo "$as_me:$LINENO: error: rm required but not found" >&5
18647 echo "$as_me: error: rm required but not found" >&2;}
18648    { (exit 1); exit 1; }; }
18649 fi
18650
18651 # Extract the first word of "echo", so it can be a program name with args.
18652 set dummy echo; ac_word=$2
18653 echo "$as_me:$LINENO: checking for $ac_word" >&5
18654 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18655 if test "${ac_cv_path_ECHO+set}" = set; then
18656   echo $ECHO_N "(cached) $ECHO_C" >&6
18657 else
18658   case $ECHO in
18659   [\\/]* | ?:[\\/]*)
18660   ac_cv_path_ECHO="$ECHO" # Let the user override the test with a path.
18661   ;;
18662   *)
18663   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18664 for as_dir in $PATH
18665 do
18666   IFS=$as_save_IFS
18667   test -z "$as_dir" && as_dir=.
18668   for ac_exec_ext in '' $ac_executable_extensions; do
18669   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18670     ac_cv_path_ECHO="$as_dir/$ac_word$ac_exec_ext"
18671     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18672     break 2
18673   fi
18674 done
18675 done
18676
18677   test -z "$ac_cv_path_ECHO" && ac_cv_path_ECHO="false"
18678   ;;
18679 esac
18680 fi
18681 ECHO=$ac_cv_path_ECHO
18682
18683 if test -n "$ECHO"; then
18684   echo "$as_me:$LINENO: result: $ECHO" >&5
18685 echo "${ECHO_T}$ECHO" >&6
18686 else
18687   echo "$as_me:$LINENO: result: no" >&5
18688 echo "${ECHO_T}no" >&6
18689 fi
18690
18691 if test ${ECHO} = "false"
18692 then
18693         { { echo "$as_me:$LINENO: error: echo required but not found" >&5
18694 echo "$as_me: error: echo required but not found" >&2;}
18695    { (exit 1); exit 1; }; }
18696 fi
18697
18698 # Extract the first word of "mkdir", so it can be a program name with args.
18699 set dummy mkdir; ac_word=$2
18700 echo "$as_me:$LINENO: checking for $ac_word" >&5
18701 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18702 if test "${ac_cv_path_MKDIR+set}" = set; then
18703   echo $ECHO_N "(cached) $ECHO_C" >&6
18704 else
18705   case $MKDIR in
18706   [\\/]* | ?:[\\/]*)
18707   ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
18708   ;;
18709   *)
18710   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18711 for as_dir in $PATH
18712 do
18713   IFS=$as_save_IFS
18714   test -z "$as_dir" && as_dir=.
18715   for ac_exec_ext in '' $ac_executable_extensions; do
18716   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18717     ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
18718     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18719     break 2
18720   fi
18721 done
18722 done
18723
18724   test -z "$ac_cv_path_MKDIR" && ac_cv_path_MKDIR="false"
18725   ;;
18726 esac
18727 fi
18728 MKDIR=$ac_cv_path_MKDIR
18729
18730 if test -n "$MKDIR"; then
18731   echo "$as_me:$LINENO: result: $MKDIR" >&5
18732 echo "${ECHO_T}$MKDIR" >&6
18733 else
18734   echo "$as_me:$LINENO: result: no" >&5
18735 echo "${ECHO_T}no" >&6
18736 fi
18737
18738 if test ${MKDIR} = "false"
18739 then
18740         { { echo "$as_me:$LINENO: error: mkdir required but not found" >&5
18741 echo "$as_me: error: mkdir required but not found" >&2;}
18742    { (exit 1); exit 1; }; }
18743 fi
18744
18745 # Extract the first word of "date", so it can be a program name with args.
18746 set dummy date; ac_word=$2
18747 echo "$as_me:$LINENO: checking for $ac_word" >&5
18748 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18749 if test "${ac_cv_path_DATE+set}" = set; then
18750   echo $ECHO_N "(cached) $ECHO_C" >&6
18751 else
18752   case $DATE in
18753   [\\/]* | ?:[\\/]*)
18754   ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
18755   ;;
18756   *)
18757   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18758 for as_dir in $PATH
18759 do
18760   IFS=$as_save_IFS
18761   test -z "$as_dir" && as_dir=.
18762   for ac_exec_ext in '' $ac_executable_extensions; do
18763   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18764     ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
18765     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18766     break 2
18767   fi
18768 done
18769 done
18770
18771   test -z "$ac_cv_path_DATE" && ac_cv_path_DATE="false"
18772   ;;
18773 esac
18774 fi
18775 DATE=$ac_cv_path_DATE
18776
18777 if test -n "$DATE"; then
18778   echo "$as_me:$LINENO: result: $DATE" >&5
18779 echo "${ECHO_T}$DATE" >&6
18780 else
18781   echo "$as_me:$LINENO: result: no" >&5
18782 echo "${ECHO_T}no" >&6
18783 fi
18784
18785 if test ${DATE} = "false"
18786 then
18787         { { echo "$as_me:$LINENO: error: date required but not found" >&5
18788 echo "$as_me: error: date required but not found" >&2;}
18789    { (exit 1); exit 1; }; }
18790 fi
18791
18792 # Extract the first word of "mv", so it can be a program name with args.
18793 set dummy mv; ac_word=$2
18794 echo "$as_me:$LINENO: checking for $ac_word" >&5
18795 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18796 if test "${ac_cv_path_MV+set}" = set; then
18797   echo $ECHO_N "(cached) $ECHO_C" >&6
18798 else
18799   case $MV in
18800   [\\/]* | ?:[\\/]*)
18801   ac_cv_path_MV="$MV" # Let the user override the test with a path.
18802   ;;
18803   *)
18804   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18805 for as_dir in $PATH
18806 do
18807   IFS=$as_save_IFS
18808   test -z "$as_dir" && as_dir=.
18809   for ac_exec_ext in '' $ac_executable_extensions; do
18810   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18811     ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
18812     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18813     break 2
18814   fi
18815 done
18816 done
18817
18818   test -z "$ac_cv_path_MV" && ac_cv_path_MV="false"
18819   ;;
18820 esac
18821 fi
18822 MV=$ac_cv_path_MV
18823
18824 if test -n "$MV"; then
18825   echo "$as_me:$LINENO: result: $MV" >&5
18826 echo "${ECHO_T}$MV" >&6
18827 else
18828   echo "$as_me:$LINENO: result: no" >&5
18829 echo "${ECHO_T}no" >&6
18830 fi
18831
18832 if test ${MV} = "false"
18833 then
18834         { { echo "$as_me:$LINENO: error: mv required but not found" >&5
18835 echo "$as_me: error: mv required but not found" >&2;}
18836    { (exit 1); exit 1; }; }
18837 fi
18838
18839 # Extract the first word of "dot", so it can be a program name with args.
18840 set dummy dot; ac_word=$2
18841 echo "$as_me:$LINENO: checking for $ac_word" >&5
18842 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18843 if test "${ac_cv_path_DOT+set}" = set; then
18844   echo $ECHO_N "(cached) $ECHO_C" >&6
18845 else
18846   case $DOT in
18847   [\\/]* | ?:[\\/]*)
18848   ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
18849   ;;
18850   *)
18851   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18852 for as_dir in $PATH
18853 do
18854   IFS=$as_save_IFS
18855   test -z "$as_dir" && as_dir=.
18856   for ac_exec_ext in '' $ac_executable_extensions; do
18857   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18858     ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
18859     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18860     break 2
18861   fi
18862 done
18863 done
18864
18865   test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="false"
18866   ;;
18867 esac
18868 fi
18869 DOT=$ac_cv_path_DOT
18870
18871 if test -n "$DOT"; then
18872   echo "$as_me:$LINENO: result: $DOT" >&5
18873 echo "${ECHO_T}$DOT" >&6
18874 else
18875   echo "$as_me:$LINENO: result: no" >&5
18876 echo "${ECHO_T}no" >&6
18877 fi
18878
18879
18880 # Extract the first word of "etags", so it can be a program name with args.
18881 set dummy etags; ac_word=$2
18882 echo "$as_me:$LINENO: checking for $ac_word" >&5
18883 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18884 if test "${ac_cv_path_ETAGS+set}" = set; then
18885   echo $ECHO_N "(cached) $ECHO_C" >&6
18886 else
18887   case $ETAGS in
18888   [\\/]* | ?:[\\/]*)
18889   ac_cv_path_ETAGS="$ETAGS" # Let the user override the test with a path.
18890   ;;
18891   *)
18892   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18893 for as_dir in $PATH
18894 do
18895   IFS=$as_save_IFS
18896   test -z "$as_dir" && as_dir=.
18897   for ac_exec_ext in '' $ac_executable_extensions; do
18898   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18899     ac_cv_path_ETAGS="$as_dir/$ac_word$ac_exec_ext"
18900     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18901     break 2
18902   fi
18903 done
18904 done
18905
18906   test -z "$ac_cv_path_ETAGS" && ac_cv_path_ETAGS="false"
18907   ;;
18908 esac
18909 fi
18910 ETAGS=$ac_cv_path_ETAGS
18911
18912 if test -n "$ETAGS"; then
18913   echo "$as_me:$LINENO: result: $ETAGS" >&5
18914 echo "${ECHO_T}$ETAGS" >&6
18915 else
18916   echo "$as_me:$LINENO: result: no" >&5
18917 echo "${ECHO_T}no" >&6
18918 fi
18919
18920
18921 # Extract the first word of "purify", so it can be a program name with args.
18922 set dummy purify; ac_word=$2
18923 echo "$as_me:$LINENO: checking for $ac_word" >&5
18924 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18925 if test "${ac_cv_path_PURIFY+set}" = set; then
18926   echo $ECHO_N "(cached) $ECHO_C" >&6
18927 else
18928   case $PURIFY in
18929   [\\/]* | ?:[\\/]*)
18930   ac_cv_path_PURIFY="$PURIFY" # Let the user override the test with a path.
18931   ;;
18932   *)
18933   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18934 for as_dir in $PATH
18935 do
18936   IFS=$as_save_IFS
18937   test -z "$as_dir" && as_dir=.
18938   for ac_exec_ext in '' $ac_executable_extensions; do
18939   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18940     ac_cv_path_PURIFY="$as_dir/$ac_word$ac_exec_ext"
18941     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18942     break 2
18943   fi
18944 done
18945 done
18946
18947   test -z "$ac_cv_path_PURIFY" && ac_cv_path_PURIFY="false"
18948   ;;
18949 esac
18950 fi
18951 PURIFY=$ac_cv_path_PURIFY
18952
18953 if test -n "$PURIFY"; then
18954   echo "$as_me:$LINENO: result: $PURIFY" >&5
18955 echo "${ECHO_T}$PURIFY" >&6
18956 else
18957   echo "$as_me:$LINENO: result: no" >&5
18958 echo "${ECHO_T}no" >&6
18959 fi
18960
18961
18962 # Extract the first word of "python", so it can be a program name with args.
18963 set dummy python; ac_word=$2
18964 echo "$as_me:$LINENO: checking for $ac_word" >&5
18965 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18966 if test "${ac_cv_path_PYTHON+set}" = set; then
18967   echo $ECHO_N "(cached) $ECHO_C" >&6
18968 else
18969   case $PYTHON in
18970   [\\/]* | ?:[\\/]*)
18971   ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
18972   ;;
18973   *)
18974   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18975 for as_dir in $PATH
18976 do
18977   IFS=$as_save_IFS
18978   test -z "$as_dir" && as_dir=.
18979   for ac_exec_ext in '' $ac_executable_extensions; do
18980   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18981     ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
18982     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18983     break 2
18984   fi
18985 done
18986 done
18987
18988   test -z "$ac_cv_path_PYTHON" && ac_cv_path_PYTHON="false"
18989   ;;
18990 esac
18991 fi
18992 PYTHON=$ac_cv_path_PYTHON
18993
18994 if test -n "$PYTHON"; then
18995   echo "$as_me:$LINENO: result: $PYTHON" >&5
18996 echo "${ECHO_T}$PYTHON" >&6
18997 else
18998   echo "$as_me:$LINENO: result: no" >&5
18999 echo "${ECHO_T}no" >&6
19000 fi
19001
19002 if test ${PYTHON} = "false"
19003 then
19004         { echo "$as_me:$LINENO: WARNING: python required but not found" >&5
19005 echo "$as_me: WARNING: python required but not found" >&2;}
19006 fi
19007
19008 # Extract the first word of "qmtest", so it can be a program name with args.
19009 set dummy qmtest; ac_word=$2
19010 echo "$as_me:$LINENO: checking for $ac_word" >&5
19011 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
19012 if test "${ac_cv_path_QMTEST+set}" = set; then
19013   echo $ECHO_N "(cached) $ECHO_C" >&6
19014 else
19015   case $QMTEST in
19016   [\\/]* | ?:[\\/]*)
19017   ac_cv_path_QMTEST="$QMTEST" # Let the user override the test with a path.
19018   ;;
19019   *)
19020   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19021 for as_dir in $PATH
19022 do
19023   IFS=$as_save_IFS
19024   test -z "$as_dir" && as_dir=.
19025   for ac_exec_ext in '' $ac_executable_extensions; do
19026   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19027     ac_cv_path_QMTEST="$as_dir/$ac_word$ac_exec_ext"
19028     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19029     break 2
19030   fi
19031 done
19032 done
19033
19034   test -z "$ac_cv_path_QMTEST" && ac_cv_path_QMTEST="false"
19035   ;;
19036 esac
19037 fi
19038 QMTEST=$ac_cv_path_QMTEST
19039
19040 if test -n "$QMTEST"; then
19041   echo "$as_me:$LINENO: result: $QMTEST" >&5
19042 echo "${ECHO_T}$QMTEST" >&6
19043 else
19044   echo "$as_me:$LINENO: result: no" >&5
19045 echo "${ECHO_T}no" >&6
19046 fi
19047
19048 if test ${QMTEST} = "false"
19049 then
19050         { echo "$as_me:$LINENO: WARNING: qmtest required but not found" >&5
19051 echo "$as_me: WARNING: qmtest required but not found" >&2;}
19052 fi
19053
19054 pyversion=`$PYTHON -V 2>&1 | cut -d\  -f2`
19055 pymajor=`echo $pyversion | cut -d. -f1`
19056 pyminor=`echo $pyversion | cut -d. -f2`
19057
19058 if test "$pymajor" -ge "2"
19059 then
19060         if test "$pymajor" -eq "2"
19061         then
19062                 if test "$pyminor" -lt "2"
19063                 then
19064                         { { echo "$as_me:$LINENO: error: Python 2.2 or greater required" >&5
19065 echo "$as_me: error: Python 2.2 or greater required" >&2;}
19066    { (exit 1); exit 1; }; }
19067                 fi
19068         fi
19069 else
19070         { { echo "$as_me:$LINENO: error: Python 2.2 or greater required" >&5
19071 echo "$as_me: error: Python 2.2 or greater required" >&2;}
19072    { (exit 1); exit 1; }; }
19073 fi
19074
19075
19076
19077
19078
19079 echo "$as_me:$LINENO: checking for elf_begin in -lelf" >&5
19080 echo $ECHO_N "checking for elf_begin in -lelf... $ECHO_C" >&6
19081 if test "${ac_cv_lib_elf_elf_begin+set}" = set; then
19082   echo $ECHO_N "(cached) $ECHO_C" >&6
19083 else
19084   ac_check_lib_save_LIBS=$LIBS
19085 LIBS="-lelf  $LIBS"
19086 cat >conftest.$ac_ext <<_ACEOF
19087 #line $LINENO "configure"
19088 /* confdefs.h.  */
19089 _ACEOF
19090 cat confdefs.h >>conftest.$ac_ext
19091 cat >>conftest.$ac_ext <<_ACEOF
19092 /* end confdefs.h.  */
19093
19094 /* Override any gcc2 internal prototype to avoid an error.  */
19095 #ifdef __cplusplus
19096 extern "C"
19097 #endif
19098 /* We use char because int might match the return type of a gcc2
19099    builtin and then its argument prototype would still apply.  */
19100 char elf_begin ();
19101 int
19102 main ()
19103 {
19104 elf_begin ();
19105   ;
19106   return 0;
19107 }
19108 _ACEOF
19109 rm -f conftest.$ac_objext conftest$ac_exeext
19110 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19111   (eval $ac_link) 2>&5
19112   ac_status=$?
19113   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19114   (exit $ac_status); } &&
19115          { ac_try='test -s conftest$ac_exeext'
19116   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19117   (eval $ac_try) 2>&5
19118   ac_status=$?
19119   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19120   (exit $ac_status); }; }; then
19121   ac_cv_lib_elf_elf_begin=yes
19122 else
19123   echo "$as_me: failed program was:" >&5
19124 sed 's/^/| /' conftest.$ac_ext >&5
19125
19126 ac_cv_lib_elf_elf_begin=no
19127 fi
19128 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
19129 LIBS=$ac_check_lib_save_LIBS
19130 fi
19131 echo "$as_me:$LINENO: result: $ac_cv_lib_elf_elf_begin" >&5
19132 echo "${ECHO_T}$ac_cv_lib_elf_elf_begin" >&6
19133 if test $ac_cv_lib_elf_elf_begin = yes; then
19134   cat >>confdefs.h <<_ACEOF
19135 #define HAVE_LIBELF 1
19136 _ACEOF
19137
19138   LIBS="-lelf $LIBS"
19139
19140 fi
19141
19142
19143 echo "$as_me:$LINENO: checking for library containing dlopen" >&5
19144 echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6
19145 if test "${ac_cv_search_dlopen+set}" = set; then
19146   echo $ECHO_N "(cached) $ECHO_C" >&6
19147 else
19148   ac_func_search_save_LIBS=$LIBS
19149 ac_cv_search_dlopen=no
19150 cat >conftest.$ac_ext <<_ACEOF
19151 #line $LINENO "configure"
19152 /* confdefs.h.  */
19153 _ACEOF
19154 cat confdefs.h >>conftest.$ac_ext
19155 cat >>conftest.$ac_ext <<_ACEOF
19156 /* end confdefs.h.  */
19157
19158 /* Override any gcc2 internal prototype to avoid an error.  */
19159 #ifdef __cplusplus
19160 extern "C"
19161 #endif
19162 /* We use char because int might match the return type of a gcc2
19163    builtin and then its argument prototype would still apply.  */
19164 char dlopen ();
19165 int
19166 main ()
19167 {
19168 dlopen ();
19169   ;
19170   return 0;
19171 }
19172 _ACEOF
19173 rm -f conftest.$ac_objext conftest$ac_exeext
19174 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19175   (eval $ac_link) 2>&5
19176   ac_status=$?
19177   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19178   (exit $ac_status); } &&
19179          { ac_try='test -s conftest$ac_exeext'
19180   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19181   (eval $ac_try) 2>&5
19182   ac_status=$?
19183   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19184   (exit $ac_status); }; }; then
19185   ac_cv_search_dlopen="none required"
19186 else
19187   echo "$as_me: failed program was:" >&5
19188 sed 's/^/| /' conftest.$ac_ext >&5
19189
19190 fi
19191 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
19192 if test "$ac_cv_search_dlopen" = no; then
19193   for ac_lib in dl; do
19194     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
19195     cat >conftest.$ac_ext <<_ACEOF
19196 #line $LINENO "configure"
19197 /* confdefs.h.  */
19198 _ACEOF
19199 cat confdefs.h >>conftest.$ac_ext
19200 cat >>conftest.$ac_ext <<_ACEOF
19201 /* end confdefs.h.  */
19202
19203 /* Override any gcc2 internal prototype to avoid an error.  */
19204 #ifdef __cplusplus
19205 extern "C"
19206 #endif
19207 /* We use char because int might match the return type of a gcc2
19208    builtin and then its argument prototype would still apply.  */
19209 char dlopen ();
19210 int
19211 main ()
19212 {
19213 dlopen ();
19214   ;
19215   return 0;
19216 }
19217 _ACEOF
19218 rm -f conftest.$ac_objext conftest$ac_exeext
19219 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19220   (eval $ac_link) 2>&5
19221   ac_status=$?
19222   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19223   (exit $ac_status); } &&
19224          { ac_try='test -s conftest$ac_exeext'
19225   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19226   (eval $ac_try) 2>&5
19227   ac_status=$?
19228   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19229   (exit $ac_status); }; }; then
19230   ac_cv_search_dlopen="-l$ac_lib"
19231 break
19232 else
19233   echo "$as_me: failed program was:" >&5
19234 sed 's/^/| /' conftest.$ac_ext >&5
19235
19236 fi
19237 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
19238   done
19239 fi
19240 LIBS=$ac_func_search_save_LIBS
19241 fi
19242 echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
19243 echo "${ECHO_T}$ac_cv_search_dlopen" >&6
19244 if test "$ac_cv_search_dlopen" != no; then
19245   test "$ac_cv_search_dlopen" = "none required" || LIBS="$ac_cv_search_dlopen $LIBS"
19246
19247 else
19248   { { echo "$as_me:$LINENO: error: dlopen() required but not found" >&5
19249 echo "$as_me: error: dlopen() required but not found" >&2;}
19250    { (exit 1); exit 1; }; }
19251 fi
19252
19253
19254 echo "$as_me:$LINENO: checking for library containing mallinfo" >&5
19255 echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6
19256 if test "${ac_cv_search_mallinfo+set}" = set; then
19257   echo $ECHO_N "(cached) $ECHO_C" >&6
19258 else
19259   ac_func_search_save_LIBS=$LIBS
19260 ac_cv_search_mallinfo=no
19261 cat >conftest.$ac_ext <<_ACEOF
19262 #line $LINENO "configure"
19263 /* confdefs.h.  */
19264 _ACEOF
19265 cat confdefs.h >>conftest.$ac_ext
19266 cat >>conftest.$ac_ext <<_ACEOF
19267 /* end confdefs.h.  */
19268
19269 /* Override any gcc2 internal prototype to avoid an error.  */
19270 #ifdef __cplusplus
19271 extern "C"
19272 #endif
19273 /* We use char because int might match the return type of a gcc2
19274    builtin and then its argument prototype would still apply.  */
19275 char mallinfo ();
19276 int
19277 main ()
19278 {
19279 mallinfo ();
19280   ;
19281   return 0;
19282 }
19283 _ACEOF
19284 rm -f conftest.$ac_objext conftest$ac_exeext
19285 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19286   (eval $ac_link) 2>&5
19287   ac_status=$?
19288   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19289   (exit $ac_status); } &&
19290          { ac_try='test -s conftest$ac_exeext'
19291   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19292   (eval $ac_try) 2>&5
19293   ac_status=$?
19294   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19295   (exit $ac_status); }; }; then
19296   ac_cv_search_mallinfo="none required"
19297 else
19298   echo "$as_me: failed program was:" >&5
19299 sed 's/^/| /' conftest.$ac_ext >&5
19300
19301 fi
19302 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
19303 if test "$ac_cv_search_mallinfo" = no; then
19304   for ac_lib in malloc; do
19305     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
19306     cat >conftest.$ac_ext <<_ACEOF
19307 #line $LINENO "configure"
19308 /* confdefs.h.  */
19309 _ACEOF
19310 cat confdefs.h >>conftest.$ac_ext
19311 cat >>conftest.$ac_ext <<_ACEOF
19312 /* end confdefs.h.  */
19313
19314 /* Override any gcc2 internal prototype to avoid an error.  */
19315 #ifdef __cplusplus
19316 extern "C"
19317 #endif
19318 /* We use char because int might match the return type of a gcc2
19319    builtin and then its argument prototype would still apply.  */
19320 char mallinfo ();
19321 int
19322 main ()
19323 {
19324 mallinfo ();
19325   ;
19326   return 0;
19327 }
19328 _ACEOF
19329 rm -f conftest.$ac_objext conftest$ac_exeext
19330 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19331   (eval $ac_link) 2>&5
19332   ac_status=$?
19333   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19334   (exit $ac_status); } &&
19335          { ac_try='test -s conftest$ac_exeext'
19336   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19337   (eval $ac_try) 2>&5
19338   ac_status=$?
19339   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19340   (exit $ac_status); }; }; then
19341   ac_cv_search_mallinfo="-l$ac_lib"
19342 break
19343 else
19344   echo "$as_me: failed program was:" >&5
19345 sed 's/^/| /' conftest.$ac_ext >&5
19346
19347 fi
19348 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
19349   done
19350 fi
19351 LIBS=$ac_func_search_save_LIBS
19352 fi
19353 echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5
19354 echo "${ECHO_T}$ac_cv_search_mallinfo" >&6
19355 if test "$ac_cv_search_mallinfo" != no; then
19356   test "$ac_cv_search_mallinfo" = "none required" || LIBS="$ac_cv_search_mallinfo $LIBS"
19357   cat >>confdefs.h <<\_ACEOF
19358 #define HAVE_MALLINFO 1
19359 _ACEOF
19360
19361 fi
19362
19363
19364
19365 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
19366 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
19367 if test "${ac_cv_header_stdc+set}" = set; then
19368   echo $ECHO_N "(cached) $ECHO_C" >&6
19369 else
19370   cat >conftest.$ac_ext <<_ACEOF
19371 #line $LINENO "configure"
19372 /* confdefs.h.  */
19373 _ACEOF
19374 cat confdefs.h >>conftest.$ac_ext
19375 cat >>conftest.$ac_ext <<_ACEOF
19376 /* end confdefs.h.  */
19377 #include <stdlib.h>
19378 #include <stdarg.h>
19379 #include <string.h>
19380 #include <float.h>
19381
19382 int
19383 main ()
19384 {
19385
19386   ;
19387   return 0;
19388 }
19389 _ACEOF
19390 rm -f conftest.$ac_objext
19391 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19392   (eval $ac_compile) 2>&5
19393   ac_status=$?
19394   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19395   (exit $ac_status); } &&
19396          { ac_try='test -s conftest.$ac_objext'
19397   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19398   (eval $ac_try) 2>&5
19399   ac_status=$?
19400   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19401   (exit $ac_status); }; }; then
19402   ac_cv_header_stdc=yes
19403 else
19404   echo "$as_me: failed program was:" >&5
19405 sed 's/^/| /' conftest.$ac_ext >&5
19406
19407 ac_cv_header_stdc=no
19408 fi
19409 rm -f conftest.$ac_objext conftest.$ac_ext
19410
19411 if test $ac_cv_header_stdc = yes; then
19412   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
19413   cat >conftest.$ac_ext <<_ACEOF
19414 #line $LINENO "configure"
19415 /* confdefs.h.  */
19416 _ACEOF
19417 cat confdefs.h >>conftest.$ac_ext
19418 cat >>conftest.$ac_ext <<_ACEOF
19419 /* end confdefs.h.  */
19420 #include <string.h>
19421
19422 _ACEOF
19423 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19424   $EGREP "memchr" >/dev/null 2>&1; then
19425   :
19426 else
19427   ac_cv_header_stdc=no
19428 fi
19429 rm -f conftest*
19430
19431 fi
19432
19433 if test $ac_cv_header_stdc = yes; then
19434   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
19435   cat >conftest.$ac_ext <<_ACEOF
19436 #line $LINENO "configure"
19437 /* confdefs.h.  */
19438 _ACEOF
19439 cat confdefs.h >>conftest.$ac_ext
19440 cat >>conftest.$ac_ext <<_ACEOF
19441 /* end confdefs.h.  */
19442 #include <stdlib.h>
19443
19444 _ACEOF
19445 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19446   $EGREP "free" >/dev/null 2>&1; then
19447   :
19448 else
19449   ac_cv_header_stdc=no
19450 fi
19451 rm -f conftest*
19452
19453 fi
19454
19455 if test $ac_cv_header_stdc = yes; then
19456   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
19457   if test "$cross_compiling" = yes; then
19458   :
19459 else
19460   cat >conftest.$ac_ext <<_ACEOF
19461 #line $LINENO "configure"
19462 /* confdefs.h.  */
19463 _ACEOF
19464 cat confdefs.h >>conftest.$ac_ext
19465 cat >>conftest.$ac_ext <<_ACEOF
19466 /* end confdefs.h.  */
19467 #include <ctype.h>
19468 #if ((' ' & 0x0FF) == 0x020)
19469 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
19470 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
19471 #else
19472 # define ISLOWER(c) \
19473                    (('a' <= (c) && (c) <= 'i') \
19474                      || ('j' <= (c) && (c) <= 'r') \
19475                      || ('s' <= (c) && (c) <= 'z'))
19476 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
19477 #endif
19478
19479 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
19480 int
19481 main ()
19482 {
19483   int i;
19484   for (i = 0; i < 256; i++)
19485     if (XOR (islower (i), ISLOWER (i))
19486         || toupper (i) != TOUPPER (i))
19487       exit(2);
19488   exit (0);
19489 }
19490 _ACEOF
19491 rm -f conftest$ac_exeext
19492 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19493   (eval $ac_link) 2>&5
19494   ac_status=$?
19495   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19496   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19497   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19498   (eval $ac_try) 2>&5
19499   ac_status=$?
19500   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19501   (exit $ac_status); }; }; then
19502   :
19503 else
19504   echo "$as_me: program exited with status $ac_status" >&5
19505 echo "$as_me: failed program was:" >&5
19506 sed 's/^/| /' conftest.$ac_ext >&5
19507
19508 ( exit $ac_status )
19509 ac_cv_header_stdc=no
19510 fi
19511 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19512 fi
19513 fi
19514 fi
19515 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
19516 echo "${ECHO_T}$ac_cv_header_stdc" >&6
19517 if test $ac_cv_header_stdc = yes; then
19518
19519 cat >>confdefs.h <<\_ACEOF
19520 #define STDC_HEADERS 1
19521 _ACEOF
19522
19523 fi
19524
19525 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
19526 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
19527 if test "${ac_cv_header_sys_wait_h+set}" = set; then
19528   echo $ECHO_N "(cached) $ECHO_C" >&6
19529 else
19530   cat >conftest.$ac_ext <<_ACEOF
19531 #line $LINENO "configure"
19532 /* confdefs.h.  */
19533 _ACEOF
19534 cat confdefs.h >>conftest.$ac_ext
19535 cat >>conftest.$ac_ext <<_ACEOF
19536 /* end confdefs.h.  */
19537 #include <sys/types.h>
19538 #include <sys/wait.h>
19539 #ifndef WEXITSTATUS
19540 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
19541 #endif
19542 #ifndef WIFEXITED
19543 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
19544 #endif
19545
19546 int
19547 main ()
19548 {
19549   int s;
19550   wait (&s);
19551   s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
19552   ;
19553   return 0;
19554 }
19555 _ACEOF
19556 rm -f conftest.$ac_objext
19557 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19558   (eval $ac_compile) 2>&5
19559   ac_status=$?
19560   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19561   (exit $ac_status); } &&
19562          { ac_try='test -s conftest.$ac_objext'
19563   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19564   (eval $ac_try) 2>&5
19565   ac_status=$?
19566   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19567   (exit $ac_status); }; }; then
19568   ac_cv_header_sys_wait_h=yes
19569 else
19570   echo "$as_me: failed program was:" >&5
19571 sed 's/^/| /' conftest.$ac_ext >&5
19572
19573 ac_cv_header_sys_wait_h=no
19574 fi
19575 rm -f conftest.$ac_objext conftest.$ac_ext
19576 fi
19577 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
19578 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
19579 if test $ac_cv_header_sys_wait_h = yes; then
19580
19581 cat >>confdefs.h <<\_ACEOF
19582 #define HAVE_SYS_WAIT_H 1
19583 _ACEOF
19584
19585 fi
19586
19587
19588
19589
19590
19591
19592
19593
19594
19595
19596 for ac_header in assert.h fcntl.h limits.h sys/time.h unistd.h errno.h signal.h math.h
19597 do
19598 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19599 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19600   echo "$as_me:$LINENO: checking for $ac_header" >&5
19601 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19602 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19603   echo $ECHO_N "(cached) $ECHO_C" >&6
19604 fi
19605 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19606 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19607 else
19608   # Is the header compilable?
19609 echo "$as_me:$LINENO: checking $ac_header usability" >&5
19610 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19611 cat >conftest.$ac_ext <<_ACEOF
19612 #line $LINENO "configure"
19613 /* confdefs.h.  */
19614 _ACEOF
19615 cat confdefs.h >>conftest.$ac_ext
19616 cat >>conftest.$ac_ext <<_ACEOF
19617 /* end confdefs.h.  */
19618 $ac_includes_default
19619 #include <$ac_header>
19620 _ACEOF
19621 rm -f conftest.$ac_objext
19622 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19623   (eval $ac_compile) 2>&5
19624   ac_status=$?
19625   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19626   (exit $ac_status); } &&
19627          { ac_try='test -s conftest.$ac_objext'
19628   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19629   (eval $ac_try) 2>&5
19630   ac_status=$?
19631   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19632   (exit $ac_status); }; }; then
19633   ac_header_compiler=yes
19634 else
19635   echo "$as_me: failed program was:" >&5
19636 sed 's/^/| /' conftest.$ac_ext >&5
19637
19638 ac_header_compiler=no
19639 fi
19640 rm -f conftest.$ac_objext conftest.$ac_ext
19641 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19642 echo "${ECHO_T}$ac_header_compiler" >&6
19643
19644 # Is the header present?
19645 echo "$as_me:$LINENO: checking $ac_header presence" >&5
19646 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19647 cat >conftest.$ac_ext <<_ACEOF
19648 #line $LINENO "configure"
19649 /* confdefs.h.  */
19650 _ACEOF
19651 cat confdefs.h >>conftest.$ac_ext
19652 cat >>conftest.$ac_ext <<_ACEOF
19653 /* end confdefs.h.  */
19654 #include <$ac_header>
19655 _ACEOF
19656 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19657   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19658   ac_status=$?
19659   grep -v '^ *+' conftest.er1 >conftest.err
19660   rm -f conftest.er1
19661   cat conftest.err >&5
19662   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19663   (exit $ac_status); } >/dev/null; then
19664   if test -s conftest.err; then
19665     ac_cpp_err=$ac_c_preproc_warn_flag
19666   else
19667     ac_cpp_err=
19668   fi
19669 else
19670   ac_cpp_err=yes
19671 fi
19672 if test -z "$ac_cpp_err"; then
19673   ac_header_preproc=yes
19674 else
19675   echo "$as_me: failed program was:" >&5
19676 sed 's/^/| /' conftest.$ac_ext >&5
19677
19678   ac_header_preproc=no
19679 fi
19680 rm -f conftest.err conftest.$ac_ext
19681 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19682 echo "${ECHO_T}$ac_header_preproc" >&6
19683
19684 # So?  What about this header?
19685 case $ac_header_compiler:$ac_header_preproc in
19686   yes:no )
19687     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19688 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19689     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19690 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19691     (
19692       cat <<\_ASBOX
19693 ## ------------------------------------ ##
19694 ## Report this to bug-autoconf@gnu.org. ##
19695 ## ------------------------------------ ##
19696 _ASBOX
19697     ) |
19698       sed "s/^/$as_me: WARNING:     /" >&2
19699     ;;
19700   no:yes )
19701     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19702 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19703     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19704 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19705     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19706 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19707     (
19708       cat <<\_ASBOX
19709 ## ------------------------------------ ##
19710 ## Report this to bug-autoconf@gnu.org. ##
19711 ## ------------------------------------ ##
19712 _ASBOX
19713     ) |
19714       sed "s/^/$as_me: WARNING:     /" >&2
19715     ;;
19716 esac
19717 echo "$as_me:$LINENO: checking for $ac_header" >&5
19718 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19719 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19720   echo $ECHO_N "(cached) $ECHO_C" >&6
19721 else
19722   eval "$as_ac_Header=$ac_header_preproc"
19723 fi
19724 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19725 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19726
19727 fi
19728 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19729   cat >>confdefs.h <<_ACEOF
19730 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19731 _ACEOF
19732
19733 fi
19734
19735 done
19736
19737
19738
19739
19740
19741
19742 for ac_header in malloc.h strings.h sys/mman.h sys/resource.h
19743 do
19744 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19745 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19746   echo "$as_me:$LINENO: checking for $ac_header" >&5
19747 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19748 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19749   echo $ECHO_N "(cached) $ECHO_C" >&6
19750 fi
19751 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19752 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19753 else
19754   # Is the header compilable?
19755 echo "$as_me:$LINENO: checking $ac_header usability" >&5
19756 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19757 cat >conftest.$ac_ext <<_ACEOF
19758 #line $LINENO "configure"
19759 /* confdefs.h.  */
19760 _ACEOF
19761 cat confdefs.h >>conftest.$ac_ext
19762 cat >>conftest.$ac_ext <<_ACEOF
19763 /* end confdefs.h.  */
19764 $ac_includes_default
19765 #include <$ac_header>
19766 _ACEOF
19767 rm -f conftest.$ac_objext
19768 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19769   (eval $ac_compile) 2>&5
19770   ac_status=$?
19771   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19772   (exit $ac_status); } &&
19773          { ac_try='test -s conftest.$ac_objext'
19774   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19775   (eval $ac_try) 2>&5
19776   ac_status=$?
19777   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19778   (exit $ac_status); }; }; then
19779   ac_header_compiler=yes
19780 else
19781   echo "$as_me: failed program was:" >&5
19782 sed 's/^/| /' conftest.$ac_ext >&5
19783
19784 ac_header_compiler=no
19785 fi
19786 rm -f conftest.$ac_objext conftest.$ac_ext
19787 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19788 echo "${ECHO_T}$ac_header_compiler" >&6
19789
19790 # Is the header present?
19791 echo "$as_me:$LINENO: checking $ac_header presence" >&5
19792 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19793 cat >conftest.$ac_ext <<_ACEOF
19794 #line $LINENO "configure"
19795 /* confdefs.h.  */
19796 _ACEOF
19797 cat confdefs.h >>conftest.$ac_ext
19798 cat >>conftest.$ac_ext <<_ACEOF
19799 /* end confdefs.h.  */
19800 #include <$ac_header>
19801 _ACEOF
19802 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19803   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19804   ac_status=$?
19805   grep -v '^ *+' conftest.er1 >conftest.err
19806   rm -f conftest.er1
19807   cat conftest.err >&5
19808   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19809   (exit $ac_status); } >/dev/null; then
19810   if test -s conftest.err; then
19811     ac_cpp_err=$ac_c_preproc_warn_flag
19812   else
19813     ac_cpp_err=
19814   fi
19815 else
19816   ac_cpp_err=yes
19817 fi
19818 if test -z "$ac_cpp_err"; then
19819   ac_header_preproc=yes
19820 else
19821   echo "$as_me: failed program was:" >&5
19822 sed 's/^/| /' conftest.$ac_ext >&5
19823
19824   ac_header_preproc=no
19825 fi
19826 rm -f conftest.err conftest.$ac_ext
19827 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19828 echo "${ECHO_T}$ac_header_preproc" >&6
19829
19830 # So?  What about this header?
19831 case $ac_header_compiler:$ac_header_preproc in
19832   yes:no )
19833     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19834 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19835     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19836 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19837     (
19838       cat <<\_ASBOX
19839 ## ------------------------------------ ##
19840 ## Report this to bug-autoconf@gnu.org. ##
19841 ## ------------------------------------ ##
19842 _ASBOX
19843     ) |
19844       sed "s/^/$as_me: WARNING:     /" >&2
19845     ;;
19846   no:yes )
19847     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19848 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19849     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19850 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19851     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19852 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19853     (
19854       cat <<\_ASBOX
19855 ## ------------------------------------ ##
19856 ## Report this to bug-autoconf@gnu.org. ##
19857 ## ------------------------------------ ##
19858 _ASBOX
19859     ) |
19860       sed "s/^/$as_me: WARNING:     /" >&2
19861     ;;
19862 esac
19863 echo "$as_me:$LINENO: checking for $ac_header" >&5
19864 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19865 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19866   echo $ECHO_N "(cached) $ECHO_C" >&6
19867 else
19868   eval "$as_ac_Header=$ac_header_preproc"
19869 fi
19870 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19871 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19872
19873 fi
19874 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19875   cat >>confdefs.h <<_ACEOF
19876 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19877 _ACEOF
19878
19879 fi
19880
19881 done
19882
19883
19884
19885
19886 for ac_header in dlfcn.h link.h
19887 do
19888 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19889 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19890   echo "$as_me:$LINENO: checking for $ac_header" >&5
19891 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19892 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19893   echo $ECHO_N "(cached) $ECHO_C" >&6
19894 fi
19895 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19896 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19897 else
19898   # Is the header compilable?
19899 echo "$as_me:$LINENO: checking $ac_header usability" >&5
19900 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19901 cat >conftest.$ac_ext <<_ACEOF
19902 #line $LINENO "configure"
19903 /* confdefs.h.  */
19904 _ACEOF
19905 cat confdefs.h >>conftest.$ac_ext
19906 cat >>conftest.$ac_ext <<_ACEOF
19907 /* end confdefs.h.  */
19908 $ac_includes_default
19909 #include <$ac_header>
19910 _ACEOF
19911 rm -f conftest.$ac_objext
19912 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19913   (eval $ac_compile) 2>&5
19914   ac_status=$?
19915   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19916   (exit $ac_status); } &&
19917          { ac_try='test -s conftest.$ac_objext'
19918   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19919   (eval $ac_try) 2>&5
19920   ac_status=$?
19921   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19922   (exit $ac_status); }; }; then
19923   ac_header_compiler=yes
19924 else
19925   echo "$as_me: failed program was:" >&5
19926 sed 's/^/| /' conftest.$ac_ext >&5
19927
19928 ac_header_compiler=no
19929 fi
19930 rm -f conftest.$ac_objext conftest.$ac_ext
19931 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19932 echo "${ECHO_T}$ac_header_compiler" >&6
19933
19934 # Is the header present?
19935 echo "$as_me:$LINENO: checking $ac_header presence" >&5
19936 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19937 cat >conftest.$ac_ext <<_ACEOF
19938 #line $LINENO "configure"
19939 /* confdefs.h.  */
19940 _ACEOF
19941 cat confdefs.h >>conftest.$ac_ext
19942 cat >>conftest.$ac_ext <<_ACEOF
19943 /* end confdefs.h.  */
19944 #include <$ac_header>
19945 _ACEOF
19946 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19947   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19948   ac_status=$?
19949   grep -v '^ *+' conftest.er1 >conftest.err
19950   rm -f conftest.er1
19951   cat conftest.err >&5
19952   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19953   (exit $ac_status); } >/dev/null; then
19954   if test -s conftest.err; then
19955     ac_cpp_err=$ac_c_preproc_warn_flag
19956   else
19957     ac_cpp_err=
19958   fi
19959 else
19960   ac_cpp_err=yes
19961 fi
19962 if test -z "$ac_cpp_err"; then
19963   ac_header_preproc=yes
19964 else
19965   echo "$as_me: failed program was:" >&5
19966 sed 's/^/| /' conftest.$ac_ext >&5
19967
19968   ac_header_preproc=no
19969 fi
19970 rm -f conftest.err conftest.$ac_ext
19971 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19972 echo "${ECHO_T}$ac_header_preproc" >&6
19973
19974 # So?  What about this header?
19975 case $ac_header_compiler:$ac_header_preproc in
19976   yes:no )
19977     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19978 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19979     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19980 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19981     (
19982       cat <<\_ASBOX
19983 ## ------------------------------------ ##
19984 ## Report this to bug-autoconf@gnu.org. ##
19985 ## ------------------------------------ ##
19986 _ASBOX
19987     ) |
19988       sed "s/^/$as_me: WARNING:     /" >&2
19989     ;;
19990   no:yes )
19991     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19992 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19993     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19994 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19995     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19996 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19997     (
19998       cat <<\_ASBOX
19999 ## ------------------------------------ ##
20000 ## Report this to bug-autoconf@gnu.org. ##
20001 ## ------------------------------------ ##
20002 _ASBOX
20003     ) |
20004       sed "s/^/$as_me: WARNING:     /" >&2
20005     ;;
20006 esac
20007 echo "$as_me:$LINENO: checking for $ac_header" >&5
20008 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20009 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20010   echo $ECHO_N "(cached) $ECHO_C" >&6
20011 else
20012   eval "$as_ac_Header=$ac_header_preproc"
20013 fi
20014 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20015 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20016
20017 fi
20018 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20019   cat >>confdefs.h <<_ACEOF
20020 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20021 _ACEOF
20022
20023 fi
20024
20025 done
20026
20027
20028
20029 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
20030 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
20031 if test "${ac_cv_c_const+set}" = set; then
20032   echo $ECHO_N "(cached) $ECHO_C" >&6
20033 else
20034   cat >conftest.$ac_ext <<_ACEOF
20035 #line $LINENO "configure"
20036 /* confdefs.h.  */
20037 _ACEOF
20038 cat confdefs.h >>conftest.$ac_ext
20039 cat >>conftest.$ac_ext <<_ACEOF
20040 /* end confdefs.h.  */
20041
20042 int
20043 main ()
20044 {
20045 /* FIXME: Include the comments suggested by Paul. */
20046 #ifndef __cplusplus
20047   /* Ultrix mips cc rejects this.  */
20048   typedef int charset[2];
20049   const charset x;
20050   /* SunOS 4.1.1 cc rejects this.  */
20051   char const *const *ccp;
20052   char **p;
20053   /* NEC SVR4.0.2 mips cc rejects this.  */
20054   struct point {int x, y;};
20055   static struct point const zero = {0,0};
20056   /* AIX XL C 1.02.0.0 rejects this.
20057      It does not let you subtract one const X* pointer from another in
20058      an arm of an if-expression whose if-part is not a constant
20059      expression */
20060   const char *g = "string";
20061   ccp = &g + (g ? g-g : 0);
20062   /* HPUX 7.0 cc rejects these. */
20063   ++ccp;
20064   p = (char**) ccp;
20065   ccp = (char const *const *) p;
20066   { /* SCO 3.2v4 cc rejects this.  */
20067     char *t;
20068     char const *s = 0 ? (char *) 0 : (char const *) 0;
20069
20070     *t++ = 0;
20071   }
20072   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
20073     int x[] = {25, 17};
20074     const int *foo = &x[0];
20075     ++foo;
20076   }
20077   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
20078     typedef const int *iptr;
20079     iptr p = 0;
20080     ++p;
20081   }
20082   { /* AIX XL C 1.02.0.0 rejects this saying
20083        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
20084     struct s { int j; const int *ap[3]; };
20085     struct s *b; b->j = 5;
20086   }
20087   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
20088     const int foo = 10;
20089   }
20090 #endif
20091
20092   ;
20093   return 0;
20094 }
20095 _ACEOF
20096 rm -f conftest.$ac_objext
20097 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20098   (eval $ac_compile) 2>&5
20099   ac_status=$?
20100   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20101   (exit $ac_status); } &&
20102          { ac_try='test -s conftest.$ac_objext'
20103   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20104   (eval $ac_try) 2>&5
20105   ac_status=$?
20106   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20107   (exit $ac_status); }; }; then
20108   ac_cv_c_const=yes
20109 else
20110   echo "$as_me: failed program was:" >&5
20111 sed 's/^/| /' conftest.$ac_ext >&5
20112
20113 ac_cv_c_const=no
20114 fi
20115 rm -f conftest.$ac_objext conftest.$ac_ext
20116 fi
20117 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
20118 echo "${ECHO_T}$ac_cv_c_const" >&6
20119 if test $ac_cv_c_const = no; then
20120
20121 cat >>confdefs.h <<\_ACEOF
20122 #define const
20123 _ACEOF
20124
20125 fi
20126
20127 echo "$as_me:$LINENO: checking for inline" >&5
20128 echo $ECHO_N "checking for inline... $ECHO_C" >&6
20129 if test "${ac_cv_c_inline+set}" = set; then
20130   echo $ECHO_N "(cached) $ECHO_C" >&6
20131 else
20132   ac_cv_c_inline=no
20133 for ac_kw in inline __inline__ __inline; do
20134   cat >conftest.$ac_ext <<_ACEOF
20135 #line $LINENO "configure"
20136 /* confdefs.h.  */
20137 _ACEOF
20138 cat confdefs.h >>conftest.$ac_ext
20139 cat >>conftest.$ac_ext <<_ACEOF
20140 /* end confdefs.h.  */
20141 #ifndef __cplusplus
20142 typedef int foo_t;
20143 static $ac_kw foo_t static_foo () {return 0; }
20144 $ac_kw foo_t foo () {return 0; }
20145 #endif
20146
20147 _ACEOF
20148 rm -f conftest.$ac_objext
20149 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20150   (eval $ac_compile) 2>&5
20151   ac_status=$?
20152   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20153   (exit $ac_status); } &&
20154          { ac_try='test -s conftest.$ac_objext'
20155   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20156   (eval $ac_try) 2>&5
20157   ac_status=$?
20158   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20159   (exit $ac_status); }; }; then
20160   ac_cv_c_inline=$ac_kw; break
20161 else
20162   echo "$as_me: failed program was:" >&5
20163 sed 's/^/| /' conftest.$ac_ext >&5
20164
20165 fi
20166 rm -f conftest.$ac_objext conftest.$ac_ext
20167 done
20168
20169 fi
20170 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
20171 echo "${ECHO_T}$ac_cv_c_inline" >&6
20172 case $ac_cv_c_inline in
20173   inline | yes) ;;
20174   no)
20175 cat >>confdefs.h <<\_ACEOF
20176 #define inline
20177 _ACEOF
20178  ;;
20179   *)  cat >>confdefs.h <<_ACEOF
20180 #define inline $ac_cv_c_inline
20181 _ACEOF
20182  ;;
20183 esac
20184
20185
20186 echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
20187 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
20188 if test "${ac_cv_c_bigendian+set}" = set; then
20189   echo $ECHO_N "(cached) $ECHO_C" >&6
20190 else
20191   # See if sys/param.h defines the BYTE_ORDER macro.
20192 cat >conftest.$ac_ext <<_ACEOF
20193 #line $LINENO "configure"
20194 /* confdefs.h.  */
20195 _ACEOF
20196 cat confdefs.h >>conftest.$ac_ext
20197 cat >>conftest.$ac_ext <<_ACEOF
20198 /* end confdefs.h.  */
20199 #include <sys/types.h>
20200 #include <sys/param.h>
20201
20202 int
20203 main ()
20204 {
20205 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
20206  bogus endian macros
20207 #endif
20208
20209   ;
20210   return 0;
20211 }
20212 _ACEOF
20213 rm -f conftest.$ac_objext
20214 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20215   (eval $ac_compile) 2>&5
20216   ac_status=$?
20217   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20218   (exit $ac_status); } &&
20219          { ac_try='test -s conftest.$ac_objext'
20220   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20221   (eval $ac_try) 2>&5
20222   ac_status=$?
20223   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20224   (exit $ac_status); }; }; then
20225   # It does; now see whether it defined to BIG_ENDIAN or not.
20226 cat >conftest.$ac_ext <<_ACEOF
20227 #line $LINENO "configure"
20228 /* confdefs.h.  */
20229 _ACEOF
20230 cat confdefs.h >>conftest.$ac_ext
20231 cat >>conftest.$ac_ext <<_ACEOF
20232 /* end confdefs.h.  */
20233 #include <sys/types.h>
20234 #include <sys/param.h>
20235
20236 int
20237 main ()
20238 {
20239 #if BYTE_ORDER != BIG_ENDIAN
20240  not big endian
20241 #endif
20242
20243   ;
20244   return 0;
20245 }
20246 _ACEOF
20247 rm -f conftest.$ac_objext
20248 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20249   (eval $ac_compile) 2>&5
20250   ac_status=$?
20251   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20252   (exit $ac_status); } &&
20253          { ac_try='test -s conftest.$ac_objext'
20254   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20255   (eval $ac_try) 2>&5
20256   ac_status=$?
20257   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20258   (exit $ac_status); }; }; then
20259   ac_cv_c_bigendian=yes
20260 else
20261   echo "$as_me: failed program was:" >&5
20262 sed 's/^/| /' conftest.$ac_ext >&5
20263
20264 ac_cv_c_bigendian=no
20265 fi
20266 rm -f conftest.$ac_objext conftest.$ac_ext
20267 else
20268   echo "$as_me: failed program was:" >&5
20269 sed 's/^/| /' conftest.$ac_ext >&5
20270
20271 # It does not; compile a test program.
20272 if test "$cross_compiling" = yes; then
20273   # try to guess the endianness by grepping values into an object file
20274   ac_cv_c_bigendian=unknown
20275   cat >conftest.$ac_ext <<_ACEOF
20276 #line $LINENO "configure"
20277 /* confdefs.h.  */
20278 _ACEOF
20279 cat confdefs.h >>conftest.$ac_ext
20280 cat >>conftest.$ac_ext <<_ACEOF
20281 /* end confdefs.h.  */
20282 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
20283 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
20284 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
20285 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
20286 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
20287 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
20288 int
20289 main ()
20290 {
20291  _ascii (); _ebcdic ();
20292   ;
20293   return 0;
20294 }
20295 _ACEOF
20296 rm -f conftest.$ac_objext
20297 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20298   (eval $ac_compile) 2>&5
20299   ac_status=$?
20300   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20301   (exit $ac_status); } &&
20302          { ac_try='test -s conftest.$ac_objext'
20303   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20304   (eval $ac_try) 2>&5
20305   ac_status=$?
20306   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20307   (exit $ac_status); }; }; then
20308   if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
20309   ac_cv_c_bigendian=yes
20310 fi
20311 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
20312   if test "$ac_cv_c_bigendian" = unknown; then
20313     ac_cv_c_bigendian=no
20314   else
20315     # finding both strings is unlikely to happen, but who knows?
20316     ac_cv_c_bigendian=unknown
20317   fi
20318 fi
20319 else
20320   echo "$as_me: failed program was:" >&5
20321 sed 's/^/| /' conftest.$ac_ext >&5
20322
20323 fi
20324 rm -f conftest.$ac_objext conftest.$ac_ext
20325 else
20326   cat >conftest.$ac_ext <<_ACEOF
20327 #line $LINENO "configure"
20328 /* confdefs.h.  */
20329 _ACEOF
20330 cat confdefs.h >>conftest.$ac_ext
20331 cat >>conftest.$ac_ext <<_ACEOF
20332 /* end confdefs.h.  */
20333 int
20334 main ()
20335 {
20336   /* Are we little or big endian?  From Harbison&Steele.  */
20337   union
20338   {
20339     long l;
20340     char c[sizeof (long)];
20341   } u;
20342   u.l = 1;
20343   exit (u.c[sizeof (long) - 1] == 1);
20344 }
20345 _ACEOF
20346 rm -f conftest$ac_exeext
20347 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20348   (eval $ac_link) 2>&5
20349   ac_status=$?
20350   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20351   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20352   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20353   (eval $ac_try) 2>&5
20354   ac_status=$?
20355   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20356   (exit $ac_status); }; }; then
20357   ac_cv_c_bigendian=no
20358 else
20359   echo "$as_me: program exited with status $ac_status" >&5
20360 echo "$as_me: failed program was:" >&5
20361 sed 's/^/| /' conftest.$ac_ext >&5
20362
20363 ( exit $ac_status )
20364 ac_cv_c_bigendian=yes
20365 fi
20366 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20367 fi
20368 fi
20369 rm -f conftest.$ac_objext conftest.$ac_ext
20370 fi
20371 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
20372 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
20373 case $ac_cv_c_bigendian in
20374   yes)
20375     cat >>confdefs.h <<\_ACEOF
20376 #define ENDIAN_BIG 1
20377 _ACEOF
20378  ;;
20379   no)
20380     cat >>confdefs.h <<\_ACEOF
20381 #define ENDIAN_LITTLE 1
20382 _ACEOF
20383  ;;
20384   *)
20385     { { echo "$as_me:$LINENO: error: unknown endianness
20386 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
20387 echo "$as_me: error: unknown endianness
20388 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
20389    { (exit 1); exit 1; }; } ;;
20390 esac
20391
20392
20393 echo "$as_me:$LINENO: checking for pid_t" >&5
20394 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
20395 if test "${ac_cv_type_pid_t+set}" = set; then
20396   echo $ECHO_N "(cached) $ECHO_C" >&6
20397 else
20398   cat >conftest.$ac_ext <<_ACEOF
20399 #line $LINENO "configure"
20400 /* confdefs.h.  */
20401 _ACEOF
20402 cat confdefs.h >>conftest.$ac_ext
20403 cat >>conftest.$ac_ext <<_ACEOF
20404 /* end confdefs.h.  */
20405 $ac_includes_default
20406 int
20407 main ()
20408 {
20409 if ((pid_t *) 0)
20410   return 0;
20411 if (sizeof (pid_t))
20412   return 0;
20413   ;
20414   return 0;
20415 }
20416 _ACEOF
20417 rm -f conftest.$ac_objext
20418 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20419   (eval $ac_compile) 2>&5
20420   ac_status=$?
20421   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20422   (exit $ac_status); } &&
20423          { ac_try='test -s conftest.$ac_objext'
20424   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20425   (eval $ac_try) 2>&5
20426   ac_status=$?
20427   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20428   (exit $ac_status); }; }; then
20429   ac_cv_type_pid_t=yes
20430 else
20431   echo "$as_me: failed program was:" >&5
20432 sed 's/^/| /' conftest.$ac_ext >&5
20433
20434 ac_cv_type_pid_t=no
20435 fi
20436 rm -f conftest.$ac_objext conftest.$ac_ext
20437 fi
20438 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
20439 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
20440 if test $ac_cv_type_pid_t = yes; then
20441   :
20442 else
20443
20444 cat >>confdefs.h <<_ACEOF
20445 #define pid_t int
20446 _ACEOF
20447
20448 fi
20449
20450 echo "$as_me:$LINENO: checking for size_t" >&5
20451 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
20452 if test "${ac_cv_type_size_t+set}" = set; then
20453   echo $ECHO_N "(cached) $ECHO_C" >&6
20454 else
20455   cat >conftest.$ac_ext <<_ACEOF
20456 #line $LINENO "configure"
20457 /* confdefs.h.  */
20458 _ACEOF
20459 cat confdefs.h >>conftest.$ac_ext
20460 cat >>conftest.$ac_ext <<_ACEOF
20461 /* end confdefs.h.  */
20462 $ac_includes_default
20463 int
20464 main ()
20465 {
20466 if ((size_t *) 0)
20467   return 0;
20468 if (sizeof (size_t))
20469   return 0;
20470   ;
20471   return 0;
20472 }
20473 _ACEOF
20474 rm -f conftest.$ac_objext
20475 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20476   (eval $ac_compile) 2>&5
20477   ac_status=$?
20478   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20479   (exit $ac_status); } &&
20480          { ac_try='test -s conftest.$ac_objext'
20481   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20482   (eval $ac_try) 2>&5
20483   ac_status=$?
20484   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20485   (exit $ac_status); }; }; then
20486   ac_cv_type_size_t=yes
20487 else
20488   echo "$as_me: failed program was:" >&5
20489 sed 's/^/| /' conftest.$ac_ext >&5
20490
20491 ac_cv_type_size_t=no
20492 fi
20493 rm -f conftest.$ac_objext conftest.$ac_ext
20494 fi
20495 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
20496 echo "${ECHO_T}$ac_cv_type_size_t" >&6
20497 if test $ac_cv_type_size_t = yes; then
20498   :
20499 else
20500
20501 cat >>confdefs.h <<_ACEOF
20502 #define size_t unsigned
20503 _ACEOF
20504
20505 fi
20506
20507 echo "$as_me:$LINENO: checking for int64_t" >&5
20508 echo $ECHO_N "checking for int64_t... $ECHO_C" >&6
20509 if test "${ac_cv_type_int64_t+set}" = set; then
20510   echo $ECHO_N "(cached) $ECHO_C" >&6
20511 else
20512   cat >conftest.$ac_ext <<_ACEOF
20513 #line $LINENO "configure"
20514 /* confdefs.h.  */
20515 _ACEOF
20516 cat confdefs.h >>conftest.$ac_ext
20517 cat >>conftest.$ac_ext <<_ACEOF
20518 /* end confdefs.h.  */
20519 $ac_includes_default
20520 int
20521 main ()
20522 {
20523 if ((int64_t *) 0)
20524   return 0;
20525 if (sizeof (int64_t))
20526   return 0;
20527   ;
20528   return 0;
20529 }
20530 _ACEOF
20531 rm -f conftest.$ac_objext
20532 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20533   (eval $ac_compile) 2>&5
20534   ac_status=$?
20535   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20536   (exit $ac_status); } &&
20537          { ac_try='test -s conftest.$ac_objext'
20538   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20539   (eval $ac_try) 2>&5
20540   ac_status=$?
20541   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20542   (exit $ac_status); }; }; then
20543   ac_cv_type_int64_t=yes
20544 else
20545   echo "$as_me: failed program was:" >&5
20546 sed 's/^/| /' conftest.$ac_ext >&5
20547
20548 ac_cv_type_int64_t=no
20549 fi
20550 rm -f conftest.$ac_objext conftest.$ac_ext
20551 fi
20552 echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
20553 echo "${ECHO_T}$ac_cv_type_int64_t" >&6
20554 if test $ac_cv_type_int64_t = yes; then
20555
20556 cat >>confdefs.h <<_ACEOF
20557 #define HAVE_INT64_T 1
20558 _ACEOF
20559
20560
20561 else
20562   { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5
20563 echo "$as_me: error: Type int64_t required but not found" >&2;}
20564    { (exit 1); exit 1; }; }
20565 fi
20566
20567 echo "$as_me:$LINENO: checking for uint64_t" >&5
20568 echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6
20569 if test "${ac_cv_type_uint64_t+set}" = set; then
20570   echo $ECHO_N "(cached) $ECHO_C" >&6
20571 else
20572   cat >conftest.$ac_ext <<_ACEOF
20573 #line $LINENO "configure"
20574 /* confdefs.h.  */
20575 _ACEOF
20576 cat confdefs.h >>conftest.$ac_ext
20577 cat >>conftest.$ac_ext <<_ACEOF
20578 /* end confdefs.h.  */
20579 $ac_includes_default
20580 int
20581 main ()
20582 {
20583 if ((uint64_t *) 0)
20584   return 0;
20585 if (sizeof (uint64_t))
20586   return 0;
20587   ;
20588   return 0;
20589 }
20590 _ACEOF
20591 rm -f conftest.$ac_objext
20592 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20593   (eval $ac_compile) 2>&5
20594   ac_status=$?
20595   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20596   (exit $ac_status); } &&
20597          { ac_try='test -s conftest.$ac_objext'
20598   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20599   (eval $ac_try) 2>&5
20600   ac_status=$?
20601   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20602   (exit $ac_status); }; }; then
20603   ac_cv_type_uint64_t=yes
20604 else
20605   echo "$as_me: failed program was:" >&5
20606 sed 's/^/| /' conftest.$ac_ext >&5
20607
20608 ac_cv_type_uint64_t=no
20609 fi
20610 rm -f conftest.$ac_objext conftest.$ac_ext
20611 fi
20612 echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
20613 echo "${ECHO_T}$ac_cv_type_uint64_t" >&6
20614 if test $ac_cv_type_uint64_t = yes; then
20615
20616 cat >>confdefs.h <<_ACEOF
20617 #define HAVE_UINT64_T 1
20618 _ACEOF
20619
20620
20621 else
20622   { { echo "$as_me:$LINENO: error: Type uint64_t required but not found" >&5
20623 echo "$as_me: error: Type uint64_t required but not found" >&2;}
20624    { (exit 1); exit 1; }; }
20625 fi
20626
20627 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
20628 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
20629 if test "${ac_cv_header_time+set}" = set; then
20630   echo $ECHO_N "(cached) $ECHO_C" >&6
20631 else
20632   cat >conftest.$ac_ext <<_ACEOF
20633 #line $LINENO "configure"
20634 /* confdefs.h.  */
20635 _ACEOF
20636 cat confdefs.h >>conftest.$ac_ext
20637 cat >>conftest.$ac_ext <<_ACEOF
20638 /* end confdefs.h.  */
20639 #include <sys/types.h>
20640 #include <sys/time.h>
20641 #include <time.h>
20642
20643 int
20644 main ()
20645 {
20646 if ((struct tm *) 0)
20647 return 0;
20648   ;
20649   return 0;
20650 }
20651 _ACEOF
20652 rm -f conftest.$ac_objext
20653 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20654   (eval $ac_compile) 2>&5
20655   ac_status=$?
20656   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20657   (exit $ac_status); } &&
20658          { ac_try='test -s conftest.$ac_objext'
20659   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20660   (eval $ac_try) 2>&5
20661   ac_status=$?
20662   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20663   (exit $ac_status); }; }; then
20664   ac_cv_header_time=yes
20665 else
20666   echo "$as_me: failed program was:" >&5
20667 sed 's/^/| /' conftest.$ac_ext >&5
20668
20669 ac_cv_header_time=no
20670 fi
20671 rm -f conftest.$ac_objext conftest.$ac_ext
20672 fi
20673 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
20674 echo "${ECHO_T}$ac_cv_header_time" >&6
20675 if test $ac_cv_header_time = yes; then
20676
20677 cat >>confdefs.h <<\_ACEOF
20678 #define TIME_WITH_SYS_TIME 1
20679 _ACEOF
20680
20681 fi
20682
20683 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
20684 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
20685 if test "${ac_cv_struct_tm+set}" = set; then
20686   echo $ECHO_N "(cached) $ECHO_C" >&6
20687 else
20688   cat >conftest.$ac_ext <<_ACEOF
20689 #line $LINENO "configure"
20690 /* confdefs.h.  */
20691 _ACEOF
20692 cat confdefs.h >>conftest.$ac_ext
20693 cat >>conftest.$ac_ext <<_ACEOF
20694 /* end confdefs.h.  */
20695 #include <sys/types.h>
20696 #include <time.h>
20697
20698 int
20699 main ()
20700 {
20701 struct tm *tp; tp->tm_sec;
20702   ;
20703   return 0;
20704 }
20705 _ACEOF
20706 rm -f conftest.$ac_objext
20707 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20708   (eval $ac_compile) 2>&5
20709   ac_status=$?
20710   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20711   (exit $ac_status); } &&
20712          { ac_try='test -s conftest.$ac_objext'
20713   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20714   (eval $ac_try) 2>&5
20715   ac_status=$?
20716   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20717   (exit $ac_status); }; }; then
20718   ac_cv_struct_tm=time.h
20719 else
20720   echo "$as_me: failed program was:" >&5
20721 sed 's/^/| /' conftest.$ac_ext >&5
20722
20723 ac_cv_struct_tm=sys/time.h
20724 fi
20725 rm -f conftest.$ac_objext conftest.$ac_ext
20726 fi
20727 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
20728 echo "${ECHO_T}$ac_cv_struct_tm" >&6
20729 if test $ac_cv_struct_tm = sys/time.h; then
20730
20731 cat >>confdefs.h <<\_ACEOF
20732 #define TM_IN_SYS_TIME 1
20733 _ACEOF
20734
20735 fi
20736
20737
20738 echo "$as_me:$LINENO: checking whether the compiler implements namespaces" >&5
20739 echo $ECHO_N "checking whether the compiler implements namespaces... $ECHO_C" >&6
20740 if test "${ac_cv_cxx_namespaces+set}" = set; then
20741   echo $ECHO_N "(cached) $ECHO_C" >&6
20742 else
20743
20744
20745  ac_ext=cc
20746 ac_cpp='$CXXCPP $CPPFLAGS'
20747 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20748 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20749 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20750
20751  cat >conftest.$ac_ext <<_ACEOF
20752 #line $LINENO "configure"
20753 /* confdefs.h.  */
20754 _ACEOF
20755 cat confdefs.h >>conftest.$ac_ext
20756 cat >>conftest.$ac_ext <<_ACEOF
20757 /* end confdefs.h.  */
20758 namespace Outer { namespace Inner { int i = 0; }}
20759 int
20760 main ()
20761 {
20762 using namespace Outer::Inner; return i;
20763   ;
20764   return 0;
20765 }
20766 _ACEOF
20767 rm -f conftest.$ac_objext
20768 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20769   (eval $ac_compile) 2>&5
20770   ac_status=$?
20771   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20772   (exit $ac_status); } &&
20773          { ac_try='test -s conftest.$ac_objext'
20774   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20775   (eval $ac_try) 2>&5
20776   ac_status=$?
20777   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20778   (exit $ac_status); }; }; then
20779   ac_cv_cxx_namespaces=yes
20780 else
20781   echo "$as_me: failed program was:" >&5
20782 sed 's/^/| /' conftest.$ac_ext >&5
20783
20784 ac_cv_cxx_namespaces=no
20785 fi
20786 rm -f conftest.$ac_objext conftest.$ac_ext
20787  ac_ext=c
20788 ac_cpp='$CPP $CPPFLAGS'
20789 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20790 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20791 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20792
20793
20794 fi
20795 echo "$as_me:$LINENO: result: $ac_cv_cxx_namespaces" >&5
20796 echo "${ECHO_T}$ac_cv_cxx_namespaces" >&6
20797 if test "$ac_cv_cxx_namespaces" = yes; then
20798
20799 cat >>confdefs.h <<\_ACEOF
20800 #define HAVE_NAMESPACES
20801 _ACEOF
20802
20803 fi
20804
20805 echo "$as_me:$LINENO: checking whether the compiler has ext/hash_map" >&5
20806 echo $ECHO_N "checking whether the compiler has ext/hash_map... $ECHO_C" >&6
20807 if test "${ac_cv_cxx_have_ext_hash_map+set}" = set; then
20808   echo $ECHO_N "(cached) $ECHO_C" >&6
20809 else
20810
20811
20812
20813   ac_ext=cc
20814 ac_cpp='$CXXCPP $CPPFLAGS'
20815 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20816 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20817 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20818
20819   cat >conftest.$ac_ext <<_ACEOF
20820 #line $LINENO "configure"
20821 /* confdefs.h.  */
20822 _ACEOF
20823 cat confdefs.h >>conftest.$ac_ext
20824 cat >>conftest.$ac_ext <<_ACEOF
20825 /* end confdefs.h.  */
20826 #include <ext/hash_map>
20827 #ifdef HAVE_NAMESPACES
20828 using namespace std;
20829 #endif
20830 int
20831 main ()
20832 {
20833 hash_map<int, int> t; return 0;
20834   ;
20835   return 0;
20836 }
20837 _ACEOF
20838 rm -f conftest.$ac_objext
20839 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20840   (eval $ac_compile) 2>&5
20841   ac_status=$?
20842   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20843   (exit $ac_status); } &&
20844          { ac_try='test -s conftest.$ac_objext'
20845   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20846   (eval $ac_try) 2>&5
20847   ac_status=$?
20848   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20849   (exit $ac_status); }; }; then
20850   ac_cv_cxx_have_ext_hash_map=std
20851 else
20852   echo "$as_me: failed program was:" >&5
20853 sed 's/^/| /' conftest.$ac_ext >&5
20854
20855 ac_cv_cxx_have_ext_hash_map=no
20856 fi
20857 rm -f conftest.$ac_objext conftest.$ac_ext
20858   cat >conftest.$ac_ext <<_ACEOF
20859 #line $LINENO "configure"
20860 /* confdefs.h.  */
20861 _ACEOF
20862 cat confdefs.h >>conftest.$ac_ext
20863 cat >>conftest.$ac_ext <<_ACEOF
20864 /* end confdefs.h.  */
20865 #include <ext/hash_map>
20866 #ifdef HAVE_NAMESPACES
20867 using namespace __gnu_cxx;
20868 #endif
20869 int
20870 main ()
20871 {
20872 hash_map<int, int> t; return 0;
20873   ;
20874   return 0;
20875 }
20876 _ACEOF
20877 rm -f conftest.$ac_objext
20878 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20879   (eval $ac_compile) 2>&5
20880   ac_status=$?
20881   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20882   (exit $ac_status); } &&
20883          { ac_try='test -s conftest.$ac_objext'
20884   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20885   (eval $ac_try) 2>&5
20886   ac_status=$?
20887   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20888   (exit $ac_status); }; }; then
20889   ac_cv_cxx_have_ext_hash_map=gnu
20890 else
20891   echo "$as_me: failed program was:" >&5
20892 sed 's/^/| /' conftest.$ac_ext >&5
20893
20894 ac_cv_cxx_have_ext_hash_map=no
20895 fi
20896 rm -f conftest.$ac_objext conftest.$ac_ext
20897   ac_ext=c
20898 ac_cpp='$CPP $CPPFLAGS'
20899 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20900 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20901 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20902
20903
20904 fi
20905 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_ext_hash_map" >&5
20906 echo "${ECHO_T}$ac_cv_cxx_have_ext_hash_map" >&6
20907 if test "$ac_cv_cxx_have_ext_hash_map" = std; then
20908
20909 cat >>confdefs.h <<\_ACEOF
20910 #define HAVE_STD_EXT_HASH_MAP
20911 _ACEOF
20912
20913 fi
20914 if test "$ac_cv_cxx_have_ext_hash_map" = gnu; then
20915
20916 cat >>confdefs.h <<\_ACEOF
20917 #define HAVE_GNU_EXT_HASH_MAP
20918 _ACEOF
20919
20920 fi
20921
20922 echo "$as_me:$LINENO: checking whether the compiler has ext/hash_set" >&5
20923 echo $ECHO_N "checking whether the compiler has ext/hash_set... $ECHO_C" >&6
20924 if test "${ac_cv_cxx_have_ext_hash_set+set}" = set; then
20925   echo $ECHO_N "(cached) $ECHO_C" >&6
20926 else
20927
20928
20929
20930   ac_ext=cc
20931 ac_cpp='$CXXCPP $CPPFLAGS'
20932 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20933 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20934 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20935
20936   cat >conftest.$ac_ext <<_ACEOF
20937 #line $LINENO "configure"
20938 /* confdefs.h.  */
20939 _ACEOF
20940 cat confdefs.h >>conftest.$ac_ext
20941 cat >>conftest.$ac_ext <<_ACEOF
20942 /* end confdefs.h.  */
20943 #include <ext/hash_set>
20944 #ifdef HAVE_NAMESPACES
20945 using namespace std;
20946 #endif
20947 int
20948 main ()
20949 {
20950 hash_set<int> t; return 0;
20951   ;
20952   return 0;
20953 }
20954 _ACEOF
20955 rm -f conftest.$ac_objext
20956 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20957   (eval $ac_compile) 2>&5
20958   ac_status=$?
20959   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20960   (exit $ac_status); } &&
20961          { ac_try='test -s conftest.$ac_objext'
20962   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20963   (eval $ac_try) 2>&5
20964   ac_status=$?
20965   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20966   (exit $ac_status); }; }; then
20967   ac_cv_cxx_have_ext_hash_set=std
20968 else
20969   echo "$as_me: failed program was:" >&5
20970 sed 's/^/| /' conftest.$ac_ext >&5
20971
20972 ac_cv_cxx_have_ext_hash_set=no
20973 fi
20974 rm -f conftest.$ac_objext conftest.$ac_ext
20975   cat >conftest.$ac_ext <<_ACEOF
20976 #line $LINENO "configure"
20977 /* confdefs.h.  */
20978 _ACEOF
20979 cat confdefs.h >>conftest.$ac_ext
20980 cat >>conftest.$ac_ext <<_ACEOF
20981 /* end confdefs.h.  */
20982 #include <ext/hash_set>
20983 #ifdef HAVE_NAMESPACES
20984 using namespace __gnu_cxx;
20985 #endif
20986 int
20987 main ()
20988 {
20989 hash_set<int> t; return 0;
20990   ;
20991   return 0;
20992 }
20993 _ACEOF
20994 rm -f conftest.$ac_objext
20995 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20996   (eval $ac_compile) 2>&5
20997   ac_status=$?
20998   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20999   (exit $ac_status); } &&
21000          { ac_try='test -s conftest.$ac_objext'
21001   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21002   (eval $ac_try) 2>&5
21003   ac_status=$?
21004   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21005   (exit $ac_status); }; }; then
21006   ac_cv_cxx_have_ext_hash_set=gnu
21007 else
21008   echo "$as_me: failed program was:" >&5
21009 sed 's/^/| /' conftest.$ac_ext >&5
21010
21011 ac_cv_cxx_have_ext_hash_set=no
21012 fi
21013 rm -f conftest.$ac_objext conftest.$ac_ext
21014   ac_ext=c
21015 ac_cpp='$CPP $CPPFLAGS'
21016 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21017 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21018 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21019
21020
21021 fi
21022 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_ext_hash_set" >&5
21023 echo "${ECHO_T}$ac_cv_cxx_have_ext_hash_set" >&6
21024 if test "$ac_cv_cxx_have_ext_hash_set" = std; then
21025
21026 cat >>confdefs.h <<\_ACEOF
21027 #define HAVE_STD_EXT_HASH_SET
21028 _ACEOF
21029
21030 fi
21031 if test "$ac_cv_cxx_have_ext_hash_set" = gnu; then
21032
21033 cat >>confdefs.h <<\_ACEOF
21034 #define HAVE_GNU_EXT_HASH_SET
21035 _ACEOF
21036
21037 fi
21038
21039 echo "$as_me:$LINENO: checking whether the compiler has ext/slist" >&5
21040 echo $ECHO_N "checking whether the compiler has ext/slist... $ECHO_C" >&6
21041 if test "${ac_cv_cxx_have_ext_slist+set}" = set; then
21042   echo $ECHO_N "(cached) $ECHO_C" >&6
21043 else
21044
21045
21046
21047   ac_ext=cc
21048 ac_cpp='$CXXCPP $CPPFLAGS'
21049 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21050 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21051 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21052
21053   cat >conftest.$ac_ext <<_ACEOF
21054 #line $LINENO "configure"
21055 /* confdefs.h.  */
21056 _ACEOF
21057 cat confdefs.h >>conftest.$ac_ext
21058 cat >>conftest.$ac_ext <<_ACEOF
21059 /* end confdefs.h.  */
21060 #include <ext/slist>
21061 #ifdef HAVE_NAMESPACES
21062 using namespace std;
21063 #endif
21064 int
21065 main ()
21066 {
21067 slist<int> s; return 0;
21068   ;
21069   return 0;
21070 }
21071 _ACEOF
21072 rm -f conftest.$ac_objext
21073 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21074   (eval $ac_compile) 2>&5
21075   ac_status=$?
21076   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21077   (exit $ac_status); } &&
21078          { ac_try='test -s conftest.$ac_objext'
21079   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21080   (eval $ac_try) 2>&5
21081   ac_status=$?
21082   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21083   (exit $ac_status); }; }; then
21084   ac_cv_cxx_have_ext_slist=std
21085 else
21086   echo "$as_me: failed program was:" >&5
21087 sed 's/^/| /' conftest.$ac_ext >&5
21088
21089 ac_cv_cxx_have_ext_slist=no
21090 fi
21091 rm -f conftest.$ac_objext conftest.$ac_ext
21092   cat >conftest.$ac_ext <<_ACEOF
21093 #line $LINENO "configure"
21094 /* confdefs.h.  */
21095 _ACEOF
21096 cat confdefs.h >>conftest.$ac_ext
21097 cat >>conftest.$ac_ext <<_ACEOF
21098 /* end confdefs.h.  */
21099 #include <ext/slist>
21100 #ifdef HAVE_NAMESPACES
21101 using namespace __gnu_cxx;
21102 #endif
21103 int
21104 main ()
21105 {
21106 slist<int> s; return 0;
21107   ;
21108   return 0;
21109 }
21110 _ACEOF
21111 rm -f conftest.$ac_objext
21112 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21113   (eval $ac_compile) 2>&5
21114   ac_status=$?
21115   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21116   (exit $ac_status); } &&
21117          { ac_try='test -s conftest.$ac_objext'
21118   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21119   (eval $ac_try) 2>&5
21120   ac_status=$?
21121   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21122   (exit $ac_status); }; }; then
21123   ac_cv_cxx_have_ext_slist=gnu
21124 else
21125   echo "$as_me: failed program was:" >&5
21126 sed 's/^/| /' conftest.$ac_ext >&5
21127
21128 ac_cv_cxx_have_ext_slist=no
21129 fi
21130 rm -f conftest.$ac_objext conftest.$ac_ext
21131
21132   ac_ext=c
21133 ac_cpp='$CPP $CPPFLAGS'
21134 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21135 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21136 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21137
21138
21139 fi
21140 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_ext_slist" >&5
21141 echo "${ECHO_T}$ac_cv_cxx_have_ext_slist" >&6
21142 if test "$ac_cv_cxx_have_ext_slist" = std; then
21143
21144 cat >>confdefs.h <<\_ACEOF
21145 #define HAVE_EXT_SLIST std
21146 _ACEOF
21147
21148 fi
21149 if test "$ac_cv_cxx_have_ext_slist" = gnu; then
21150
21151 cat >>confdefs.h <<\_ACEOF
21152 #define HAVE_EXT_SLIST gnu
21153 _ACEOF
21154
21155 fi
21156
21157 echo "$as_me:$LINENO: checking whether the compiler has the standard iterator" >&5
21158 echo $ECHO_N "checking whether the compiler has the standard iterator... $ECHO_C" >&6
21159 if test "${ac_cv_cxx_have_std_iterator+set}" = set; then
21160   echo $ECHO_N "(cached) $ECHO_C" >&6
21161 else
21162
21163
21164
21165   ac_ext=cc
21166 ac_cpp='$CXXCPP $CPPFLAGS'
21167 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21168 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21169 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21170
21171   cat >conftest.$ac_ext <<_ACEOF
21172 #line $LINENO "configure"
21173 /* confdefs.h.  */
21174 _ACEOF
21175 cat confdefs.h >>conftest.$ac_ext
21176 cat >>conftest.$ac_ext <<_ACEOF
21177 /* end confdefs.h.  */
21178 #include <iterator>
21179 #ifdef HAVE_NAMESPACES
21180 using namespace std;
21181 #endif
21182 int
21183 main ()
21184 {
21185 iterator<int,int,int> t; return 0;
21186   ;
21187   return 0;
21188 }
21189 _ACEOF
21190 rm -f conftest.$ac_objext
21191 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21192   (eval $ac_compile) 2>&5
21193   ac_status=$?
21194   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21195   (exit $ac_status); } &&
21196          { ac_try='test -s conftest.$ac_objext'
21197   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21198   (eval $ac_try) 2>&5
21199   ac_status=$?
21200   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21201   (exit $ac_status); }; }; then
21202   ac_cv_cxx_have_std_iterator=yes
21203 else
21204   echo "$as_me: failed program was:" >&5
21205 sed 's/^/| /' conftest.$ac_ext >&5
21206
21207 ac_cv_cxx_have_std_iterator=no
21208 fi
21209 rm -f conftest.$ac_objext conftest.$ac_ext
21210   ac_ext=c
21211 ac_cpp='$CPP $CPPFLAGS'
21212 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21213 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21214 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21215
21216
21217 fi
21218 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_iterator" >&5
21219 echo "${ECHO_T}$ac_cv_cxx_have_std_iterator" >&6
21220 if test "$ac_cv_cxx_have_std_iterator" = yes; then
21221
21222 cat >>confdefs.h <<\_ACEOF
21223 #define HAVE_STD_ITERATOR
21224 _ACEOF
21225
21226 fi
21227
21228 echo "$as_me:$LINENO: checking whether the compiler has the bidirectional iterator" >&5
21229 echo $ECHO_N "checking whether the compiler has the bidirectional iterator... $ECHO_C" >&6
21230 if test "${ac_cv_cxx_have_bi_iterator+set}" = set; then
21231   echo $ECHO_N "(cached) $ECHO_C" >&6
21232 else
21233
21234
21235
21236   ac_ext=cc
21237 ac_cpp='$CXXCPP $CPPFLAGS'
21238 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21239 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21240 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21241
21242   cat >conftest.$ac_ext <<_ACEOF
21243 #line $LINENO "configure"
21244 /* confdefs.h.  */
21245 _ACEOF
21246 cat confdefs.h >>conftest.$ac_ext
21247 cat >>conftest.$ac_ext <<_ACEOF
21248 /* end confdefs.h.  */
21249 #include <iterator>
21250 #ifdef HAVE_NAMESPACES
21251 using namespace std;
21252 #endif
21253 int
21254 main ()
21255 {
21256 bidirectional_iterator<int,int> t; return 0;
21257   ;
21258   return 0;
21259 }
21260 _ACEOF
21261 rm -f conftest.$ac_objext
21262 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21263   (eval $ac_compile) 2>&5
21264   ac_status=$?
21265   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21266   (exit $ac_status); } &&
21267          { ac_try='test -s conftest.$ac_objext'
21268   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21269   (eval $ac_try) 2>&5
21270   ac_status=$?
21271   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21272   (exit $ac_status); }; }; then
21273   ac_cv_cxx_have_bi_iterator=yes
21274 else
21275   echo "$as_me: failed program was:" >&5
21276 sed 's/^/| /' conftest.$ac_ext >&5
21277
21278 ac_cv_cxx_have_bi_iterator=no
21279 fi
21280 rm -f conftest.$ac_objext conftest.$ac_ext
21281   ac_ext=c
21282 ac_cpp='$CPP $CPPFLAGS'
21283 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21284 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21285 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21286
21287
21288 fi
21289 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_bi_iterator" >&5
21290 echo "${ECHO_T}$ac_cv_cxx_have_bi_iterator" >&6
21291 if test "$ac_cv_cxx_have_bi_iterator" = yes; then
21292
21293 cat >>confdefs.h <<\_ACEOF
21294 #define HAVE_BI_ITERATOR
21295 _ACEOF
21296
21297 fi
21298
21299 echo "$as_me:$LINENO: checking whether the compiler has forward iterators" >&5
21300 echo $ECHO_N "checking whether the compiler has forward iterators... $ECHO_C" >&6
21301 if test "${ac_cv_cxx_have_fwd_iterator+set}" = set; then
21302   echo $ECHO_N "(cached) $ECHO_C" >&6
21303 else
21304
21305
21306
21307   ac_ext=cc
21308 ac_cpp='$CXXCPP $CPPFLAGS'
21309 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21310 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21311 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21312
21313   cat >conftest.$ac_ext <<_ACEOF
21314 #line $LINENO "configure"
21315 /* confdefs.h.  */
21316 _ACEOF
21317 cat confdefs.h >>conftest.$ac_ext
21318 cat >>conftest.$ac_ext <<_ACEOF
21319 /* end confdefs.h.  */
21320 #include <iterator>
21321 #ifdef HAVE_NAMESPACES
21322 using namespace std;
21323 #endif
21324 int
21325 main ()
21326 {
21327 forward_iterator<int,int> t; return 0;
21328   ;
21329   return 0;
21330 }
21331 _ACEOF
21332 rm -f conftest.$ac_objext
21333 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21334   (eval $ac_compile) 2>&5
21335   ac_status=$?
21336   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21337   (exit $ac_status); } &&
21338          { ac_try='test -s conftest.$ac_objext'
21339   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21340   (eval $ac_try) 2>&5
21341   ac_status=$?
21342   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21343   (exit $ac_status); }; }; then
21344   ac_cv_cxx_have_fwd_iterator=yes
21345 else
21346   echo "$as_me: failed program was:" >&5
21347 sed 's/^/| /' conftest.$ac_ext >&5
21348
21349 ac_cv_cxx_have_fwd_iterator=no
21350 fi
21351 rm -f conftest.$ac_objext conftest.$ac_ext
21352   ac_ext=c
21353 ac_cpp='$CPP $CPPFLAGS'
21354 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21355 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21356 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21357
21358
21359 fi
21360 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_fwd_iterator" >&5
21361 echo "${ECHO_T}$ac_cv_cxx_have_fwd_iterator" >&6
21362 if test "$ac_cv_cxx_have_fwd_iterator" = yes; then
21363
21364 cat >>confdefs.h <<\_ACEOF
21365 #define HAVE_FWD_ITERATOR
21366 _ACEOF
21367
21368 fi
21369
21370
21371 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
21372 # for constant arguments.  Useless!
21373 echo "$as_me:$LINENO: checking for working alloca.h" >&5
21374 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
21375 if test "${ac_cv_working_alloca_h+set}" = set; then
21376   echo $ECHO_N "(cached) $ECHO_C" >&6
21377 else
21378   cat >conftest.$ac_ext <<_ACEOF
21379 #line $LINENO "configure"
21380 /* confdefs.h.  */
21381 _ACEOF
21382 cat confdefs.h >>conftest.$ac_ext
21383 cat >>conftest.$ac_ext <<_ACEOF
21384 /* end confdefs.h.  */
21385 #include <alloca.h>
21386 int
21387 main ()
21388 {
21389 char *p = (char *) alloca (2 * sizeof (int));
21390   ;
21391   return 0;
21392 }
21393 _ACEOF
21394 rm -f conftest.$ac_objext conftest$ac_exeext
21395 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21396   (eval $ac_link) 2>&5
21397   ac_status=$?
21398   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21399   (exit $ac_status); } &&
21400          { ac_try='test -s conftest$ac_exeext'
21401   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21402   (eval $ac_try) 2>&5
21403   ac_status=$?
21404   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21405   (exit $ac_status); }; }; then
21406   ac_cv_working_alloca_h=yes
21407 else
21408   echo "$as_me: failed program was:" >&5
21409 sed 's/^/| /' conftest.$ac_ext >&5
21410
21411 ac_cv_working_alloca_h=no
21412 fi
21413 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21414 fi
21415 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
21416 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
21417 if test $ac_cv_working_alloca_h = yes; then
21418
21419 cat >>confdefs.h <<\_ACEOF
21420 #define HAVE_ALLOCA_H 1
21421 _ACEOF
21422
21423 fi
21424
21425 echo "$as_me:$LINENO: checking for alloca" >&5
21426 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
21427 if test "${ac_cv_func_alloca_works+set}" = set; then
21428   echo $ECHO_N "(cached) $ECHO_C" >&6
21429 else
21430   cat >conftest.$ac_ext <<_ACEOF
21431 #line $LINENO "configure"
21432 /* confdefs.h.  */
21433 _ACEOF
21434 cat confdefs.h >>conftest.$ac_ext
21435 cat >>conftest.$ac_ext <<_ACEOF
21436 /* end confdefs.h.  */
21437 #ifdef __GNUC__
21438 # define alloca __builtin_alloca
21439 #else
21440 # ifdef _MSC_VER
21441 #  include <malloc.h>
21442 #  define alloca _alloca
21443 # else
21444 #  if HAVE_ALLOCA_H
21445 #   include <alloca.h>
21446 #  else
21447 #   ifdef _AIX
21448  #pragma alloca
21449 #   else
21450 #    ifndef alloca /* predefined by HP cc +Olibcalls */
21451 char *alloca ();
21452 #    endif
21453 #   endif
21454 #  endif
21455 # endif
21456 #endif
21457
21458 int
21459 main ()
21460 {
21461 char *p = (char *) alloca (1);
21462   ;
21463   return 0;
21464 }
21465 _ACEOF
21466 rm -f conftest.$ac_objext conftest$ac_exeext
21467 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21468   (eval $ac_link) 2>&5
21469   ac_status=$?
21470   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21471   (exit $ac_status); } &&
21472          { ac_try='test -s conftest$ac_exeext'
21473   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21474   (eval $ac_try) 2>&5
21475   ac_status=$?
21476   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21477   (exit $ac_status); }; }; then
21478   ac_cv_func_alloca_works=yes
21479 else
21480   echo "$as_me: failed program was:" >&5
21481 sed 's/^/| /' conftest.$ac_ext >&5
21482
21483 ac_cv_func_alloca_works=no
21484 fi
21485 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21486 fi
21487 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
21488 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
21489
21490 if test $ac_cv_func_alloca_works = yes; then
21491
21492 cat >>confdefs.h <<\_ACEOF
21493 #define HAVE_ALLOCA 1
21494 _ACEOF
21495
21496 else
21497   # The SVR3 libPW and SVR4 libucb both contain incompatible functions
21498 # that cause trouble.  Some versions do not even contain alloca or
21499 # contain a buggy version.  If you still want to use their alloca,
21500 # use ar to extract alloca.o from them instead of compiling alloca.c.
21501
21502 ALLOCA=alloca.$ac_objext
21503
21504 cat >>confdefs.h <<\_ACEOF
21505 #define C_ALLOCA 1
21506 _ACEOF
21507
21508
21509 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
21510 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
21511 if test "${ac_cv_os_cray+set}" = set; then
21512   echo $ECHO_N "(cached) $ECHO_C" >&6
21513 else
21514   cat >conftest.$ac_ext <<_ACEOF
21515 #line $LINENO "configure"
21516 /* confdefs.h.  */
21517 _ACEOF
21518 cat confdefs.h >>conftest.$ac_ext
21519 cat >>conftest.$ac_ext <<_ACEOF
21520 /* end confdefs.h.  */
21521 #if defined(CRAY) && ! defined(CRAY2)
21522 webecray
21523 #else
21524 wenotbecray
21525 #endif
21526
21527 _ACEOF
21528 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21529   $EGREP "webecray" >/dev/null 2>&1; then
21530   ac_cv_os_cray=yes
21531 else
21532   ac_cv_os_cray=no
21533 fi
21534 rm -f conftest*
21535
21536 fi
21537 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
21538 echo "${ECHO_T}$ac_cv_os_cray" >&6
21539 if test $ac_cv_os_cray = yes; then
21540   for ac_func in _getb67 GETB67 getb67; do
21541     as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21542 echo "$as_me:$LINENO: checking for $ac_func" >&5
21543 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
21544 if eval "test \"\${$as_ac_var+set}\" = set"; then
21545   echo $ECHO_N "(cached) $ECHO_C" >&6
21546 else
21547   cat >conftest.$ac_ext <<_ACEOF
21548 #line $LINENO "configure"
21549 /* confdefs.h.  */
21550 _ACEOF
21551 cat confdefs.h >>conftest.$ac_ext
21552 cat >>conftest.$ac_ext <<_ACEOF
21553 /* end confdefs.h.  */
21554 /* System header to define __stub macros and hopefully few prototypes,
21555     which can conflict with char $ac_func (); below.
21556     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21557     <limits.h> exists even on freestanding compilers.  */
21558 #ifdef __STDC__
21559 # include <limits.h>
21560 #else
21561 # include <assert.h>
21562 #endif
21563 /* Override any gcc2 internal prototype to avoid an error.  */
21564 #ifdef __cplusplus
21565 extern "C"
21566 {
21567 #endif
21568 /* We use char because int might match the return type of a gcc2
21569    builtin and then its argument prototype would still apply.  */
21570 char $ac_func ();
21571 /* The GNU C library defines this for functions which it implements
21572     to always fail with ENOSYS.  Some functions are actually named
21573     something starting with __ and the normal name is an alias.  */
21574 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21575 choke me
21576 #else
21577 char (*f) () = $ac_func;
21578 #endif
21579 #ifdef __cplusplus
21580 }
21581 #endif
21582
21583 int
21584 main ()
21585 {
21586 return f != $ac_func;
21587   ;
21588   return 0;
21589 }
21590 _ACEOF
21591 rm -f conftest.$ac_objext conftest$ac_exeext
21592 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21593   (eval $ac_link) 2>&5
21594   ac_status=$?
21595   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21596   (exit $ac_status); } &&
21597          { ac_try='test -s conftest$ac_exeext'
21598   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21599   (eval $ac_try) 2>&5
21600   ac_status=$?
21601   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21602   (exit $ac_status); }; }; then
21603   eval "$as_ac_var=yes"
21604 else
21605   echo "$as_me: failed program was:" >&5
21606 sed 's/^/| /' conftest.$ac_ext >&5
21607
21608 eval "$as_ac_var=no"
21609 fi
21610 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21611 fi
21612 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
21613 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
21614 if test `eval echo '${'$as_ac_var'}'` = yes; then
21615
21616 cat >>confdefs.h <<_ACEOF
21617 #define CRAY_STACKSEG_END $ac_func
21618 _ACEOF
21619
21620     break
21621 fi
21622
21623   done
21624 fi
21625
21626 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
21627 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
21628 if test "${ac_cv_c_stack_direction+set}" = set; then
21629   echo $ECHO_N "(cached) $ECHO_C" >&6
21630 else
21631   if test "$cross_compiling" = yes; then
21632   ac_cv_c_stack_direction=0
21633 else
21634   cat >conftest.$ac_ext <<_ACEOF
21635 #line $LINENO "configure"
21636 /* confdefs.h.  */
21637 _ACEOF
21638 cat confdefs.h >>conftest.$ac_ext
21639 cat >>conftest.$ac_ext <<_ACEOF
21640 /* end confdefs.h.  */
21641 int
21642 find_stack_direction ()
21643 {
21644   static char *addr = 0;
21645   auto char dummy;
21646   if (addr == 0)
21647     {
21648       addr = &dummy;
21649       return find_stack_direction ();
21650     }
21651   else
21652     return (&dummy > addr) ? 1 : -1;
21653 }
21654
21655 int
21656 main ()
21657 {
21658   exit (find_stack_direction () < 0);
21659 }
21660 _ACEOF
21661 rm -f conftest$ac_exeext
21662 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21663   (eval $ac_link) 2>&5
21664   ac_status=$?
21665   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21666   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21667   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21668   (eval $ac_try) 2>&5
21669   ac_status=$?
21670   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21671   (exit $ac_status); }; }; then
21672   ac_cv_c_stack_direction=1
21673 else
21674   echo "$as_me: program exited with status $ac_status" >&5
21675 echo "$as_me: failed program was:" >&5
21676 sed 's/^/| /' conftest.$ac_ext >&5
21677
21678 ( exit $ac_status )
21679 ac_cv_c_stack_direction=-1
21680 fi
21681 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21682 fi
21683 fi
21684 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
21685 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
21686
21687 cat >>confdefs.h <<_ACEOF
21688 #define STACK_DIRECTION $ac_cv_c_stack_direction
21689 _ACEOF
21690
21691
21692 fi
21693
21694 if test $ac_cv_c_compiler_gnu = yes; then
21695     echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
21696 echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6
21697 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
21698   echo $ECHO_N "(cached) $ECHO_C" >&6
21699 else
21700     ac_pattern="Autoconf.*'x'"
21701   cat >conftest.$ac_ext <<_ACEOF
21702 #line $LINENO "configure"
21703 /* confdefs.h.  */
21704 _ACEOF
21705 cat confdefs.h >>conftest.$ac_ext
21706 cat >>conftest.$ac_ext <<_ACEOF
21707 /* end confdefs.h.  */
21708 #include <sgtty.h>
21709 Autoconf TIOCGETP
21710 _ACEOF
21711 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21712   $EGREP "$ac_pattern" >/dev/null 2>&1; then
21713   ac_cv_prog_gcc_traditional=yes
21714 else
21715   ac_cv_prog_gcc_traditional=no
21716 fi
21717 rm -f conftest*
21718
21719
21720   if test $ac_cv_prog_gcc_traditional = no; then
21721     cat >conftest.$ac_ext <<_ACEOF
21722 #line $LINENO "configure"
21723 /* confdefs.h.  */
21724 _ACEOF
21725 cat confdefs.h >>conftest.$ac_ext
21726 cat >>conftest.$ac_ext <<_ACEOF
21727 /* end confdefs.h.  */
21728 #include <termio.h>
21729 Autoconf TCGETA
21730 _ACEOF
21731 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21732   $EGREP "$ac_pattern" >/dev/null 2>&1; then
21733   ac_cv_prog_gcc_traditional=yes
21734 fi
21735 rm -f conftest*
21736
21737   fi
21738 fi
21739 echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
21740 echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6
21741   if test $ac_cv_prog_gcc_traditional = yes; then
21742     CC="$CC -traditional"
21743   fi
21744 fi
21745
21746 echo "$as_me:$LINENO: checking for working memcmp" >&5
21747 echo $ECHO_N "checking for working memcmp... $ECHO_C" >&6
21748 if test "${ac_cv_func_memcmp_working+set}" = set; then
21749   echo $ECHO_N "(cached) $ECHO_C" >&6
21750 else
21751   if test "$cross_compiling" = yes; then
21752   ac_cv_func_memcmp_working=no
21753 else
21754   cat >conftest.$ac_ext <<_ACEOF
21755 #line $LINENO "configure"
21756 /* confdefs.h.  */
21757 _ACEOF
21758 cat confdefs.h >>conftest.$ac_ext
21759 cat >>conftest.$ac_ext <<_ACEOF
21760 /* end confdefs.h.  */
21761
21762 int
21763 main ()
21764 {
21765
21766   /* Some versions of memcmp are not 8-bit clean.  */
21767   char c0 = 0x40, c1 = 0x80, c2 = 0x81;
21768   if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
21769     exit (1);
21770
21771   /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
21772      or more and with at least one buffer not starting on a 4-byte boundary.
21773      William Lewis provided this test program.   */
21774   {
21775     char foo[21];
21776     char bar[21];
21777     int i;
21778     for (i = 0; i < 4; i++)
21779       {
21780         char *a = foo + i;
21781         char *b = bar + i;
21782         strcpy (a, "--------01111111");
21783         strcpy (b, "--------10000000");
21784         if (memcmp (a, b, 16) >= 0)
21785           exit (1);
21786       }
21787     exit (0);
21788   }
21789
21790   ;
21791   return 0;
21792 }
21793 _ACEOF
21794 rm -f conftest$ac_exeext
21795 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21796   (eval $ac_link) 2>&5
21797   ac_status=$?
21798   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21799   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21800   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21801   (eval $ac_try) 2>&5
21802   ac_status=$?
21803   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21804   (exit $ac_status); }; }; then
21805   ac_cv_func_memcmp_working=yes
21806 else
21807   echo "$as_me: program exited with status $ac_status" >&5
21808 echo "$as_me: failed program was:" >&5
21809 sed 's/^/| /' conftest.$ac_ext >&5
21810
21811 ( exit $ac_status )
21812 ac_cv_func_memcmp_working=no
21813 fi
21814 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21815 fi
21816 fi
21817 echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
21818 echo "${ECHO_T}$ac_cv_func_memcmp_working" >&6
21819 test $ac_cv_func_memcmp_working = no && LIBOBJS="$LIBOBJS memcmp.$ac_objext"
21820
21821
21822
21823 for ac_header in stdlib.h unistd.h
21824 do
21825 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21826 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21827   echo "$as_me:$LINENO: checking for $ac_header" >&5
21828 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21829 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21830   echo $ECHO_N "(cached) $ECHO_C" >&6
21831 fi
21832 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21833 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21834 else
21835   # Is the header compilable?
21836 echo "$as_me:$LINENO: checking $ac_header usability" >&5
21837 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
21838 cat >conftest.$ac_ext <<_ACEOF
21839 #line $LINENO "configure"
21840 /* confdefs.h.  */
21841 _ACEOF
21842 cat confdefs.h >>conftest.$ac_ext
21843 cat >>conftest.$ac_ext <<_ACEOF
21844 /* end confdefs.h.  */
21845 $ac_includes_default
21846 #include <$ac_header>
21847 _ACEOF
21848 rm -f conftest.$ac_objext
21849 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21850   (eval $ac_compile) 2>&5
21851   ac_status=$?
21852   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21853   (exit $ac_status); } &&
21854          { ac_try='test -s conftest.$ac_objext'
21855   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21856   (eval $ac_try) 2>&5
21857   ac_status=$?
21858   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21859   (exit $ac_status); }; }; then
21860   ac_header_compiler=yes
21861 else
21862   echo "$as_me: failed program was:" >&5
21863 sed 's/^/| /' conftest.$ac_ext >&5
21864
21865 ac_header_compiler=no
21866 fi
21867 rm -f conftest.$ac_objext conftest.$ac_ext
21868 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21869 echo "${ECHO_T}$ac_header_compiler" >&6
21870
21871 # Is the header present?
21872 echo "$as_me:$LINENO: checking $ac_header presence" >&5
21873 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
21874 cat >conftest.$ac_ext <<_ACEOF
21875 #line $LINENO "configure"
21876 /* confdefs.h.  */
21877 _ACEOF
21878 cat confdefs.h >>conftest.$ac_ext
21879 cat >>conftest.$ac_ext <<_ACEOF
21880 /* end confdefs.h.  */
21881 #include <$ac_header>
21882 _ACEOF
21883 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21884   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21885   ac_status=$?
21886   grep -v '^ *+' conftest.er1 >conftest.err
21887   rm -f conftest.er1
21888   cat conftest.err >&5
21889   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21890   (exit $ac_status); } >/dev/null; then
21891   if test -s conftest.err; then
21892     ac_cpp_err=$ac_c_preproc_warn_flag
21893   else
21894     ac_cpp_err=
21895   fi
21896 else
21897   ac_cpp_err=yes
21898 fi
21899 if test -z "$ac_cpp_err"; then
21900   ac_header_preproc=yes
21901 else
21902   echo "$as_me: failed program was:" >&5
21903 sed 's/^/| /' conftest.$ac_ext >&5
21904
21905   ac_header_preproc=no
21906 fi
21907 rm -f conftest.err conftest.$ac_ext
21908 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21909 echo "${ECHO_T}$ac_header_preproc" >&6
21910
21911 # So?  What about this header?
21912 case $ac_header_compiler:$ac_header_preproc in
21913   yes:no )
21914     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21915 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21916     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21917 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21918     (
21919       cat <<\_ASBOX
21920 ## ------------------------------------ ##
21921 ## Report this to bug-autoconf@gnu.org. ##
21922 ## ------------------------------------ ##
21923 _ASBOX
21924     ) |
21925       sed "s/^/$as_me: WARNING:     /" >&2
21926     ;;
21927   no:yes )
21928     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21929 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21930     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21931 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21932     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21933 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21934     (
21935       cat <<\_ASBOX
21936 ## ------------------------------------ ##
21937 ## Report this to bug-autoconf@gnu.org. ##
21938 ## ------------------------------------ ##
21939 _ASBOX
21940     ) |
21941       sed "s/^/$as_me: WARNING:     /" >&2
21942     ;;
21943 esac
21944 echo "$as_me:$LINENO: checking for $ac_header" >&5
21945 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21946 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21947   echo $ECHO_N "(cached) $ECHO_C" >&6
21948 else
21949   eval "$as_ac_Header=$ac_header_preproc"
21950 fi
21951 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21952 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21953
21954 fi
21955 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21956   cat >>confdefs.h <<_ACEOF
21957 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21958 _ACEOF
21959
21960 fi
21961
21962 done
21963
21964
21965 for ac_func in getpagesize
21966 do
21967 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21968 echo "$as_me:$LINENO: checking for $ac_func" >&5
21969 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
21970 if eval "test \"\${$as_ac_var+set}\" = set"; then
21971   echo $ECHO_N "(cached) $ECHO_C" >&6
21972 else
21973   cat >conftest.$ac_ext <<_ACEOF
21974 #line $LINENO "configure"
21975 /* confdefs.h.  */
21976 _ACEOF
21977 cat confdefs.h >>conftest.$ac_ext
21978 cat >>conftest.$ac_ext <<_ACEOF
21979 /* end confdefs.h.  */
21980 /* System header to define __stub macros and hopefully few prototypes,
21981     which can conflict with char $ac_func (); below.
21982     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21983     <limits.h> exists even on freestanding compilers.  */
21984 #ifdef __STDC__
21985 # include <limits.h>
21986 #else
21987 # include <assert.h>
21988 #endif
21989 /* Override any gcc2 internal prototype to avoid an error.  */
21990 #ifdef __cplusplus
21991 extern "C"
21992 {
21993 #endif
21994 /* We use char because int might match the return type of a gcc2
21995    builtin and then its argument prototype would still apply.  */
21996 char $ac_func ();
21997 /* The GNU C library defines this for functions which it implements
21998     to always fail with ENOSYS.  Some functions are actually named
21999     something starting with __ and the normal name is an alias.  */
22000 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22001 choke me
22002 #else
22003 char (*f) () = $ac_func;
22004 #endif
22005 #ifdef __cplusplus
22006 }
22007 #endif
22008
22009 int
22010 main ()
22011 {
22012 return f != $ac_func;
22013   ;
22014   return 0;
22015 }
22016 _ACEOF
22017 rm -f conftest.$ac_objext conftest$ac_exeext
22018 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22019   (eval $ac_link) 2>&5
22020   ac_status=$?
22021   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22022   (exit $ac_status); } &&
22023          { ac_try='test -s conftest$ac_exeext'
22024   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22025   (eval $ac_try) 2>&5
22026   ac_status=$?
22027   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22028   (exit $ac_status); }; }; then
22029   eval "$as_ac_var=yes"
22030 else
22031   echo "$as_me: failed program was:" >&5
22032 sed 's/^/| /' conftest.$ac_ext >&5
22033
22034 eval "$as_ac_var=no"
22035 fi
22036 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
22037 fi
22038 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
22039 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
22040 if test `eval echo '${'$as_ac_var'}'` = yes; then
22041   cat >>confdefs.h <<_ACEOF
22042 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22043 _ACEOF
22044
22045 fi
22046 done
22047
22048 echo "$as_me:$LINENO: checking for working mmap" >&5
22049 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
22050 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
22051   echo $ECHO_N "(cached) $ECHO_C" >&6
22052 else
22053   if test "$cross_compiling" = yes; then
22054   ac_cv_func_mmap_fixed_mapped=no
22055 else
22056   cat >conftest.$ac_ext <<_ACEOF
22057 #line $LINENO "configure"
22058 /* confdefs.h.  */
22059 _ACEOF
22060 cat confdefs.h >>conftest.$ac_ext
22061 cat >>conftest.$ac_ext <<_ACEOF
22062 /* end confdefs.h.  */
22063 $ac_includes_default
22064 /* malloc might have been renamed as rpl_malloc. */
22065 #undef malloc
22066
22067 /* Thanks to Mike Haertel and Jim Avera for this test.
22068    Here is a matrix of mmap possibilities:
22069         mmap private not fixed
22070         mmap private fixed at somewhere currently unmapped
22071         mmap private fixed at somewhere already mapped
22072         mmap shared not fixed
22073         mmap shared fixed at somewhere currently unmapped
22074         mmap shared fixed at somewhere already mapped
22075    For private mappings, we should verify that changes cannot be read()
22076    back from the file, nor mmap's back from the file at a different
22077    address.  (There have been systems where private was not correctly
22078    implemented like the infamous i386 svr4.0, and systems where the
22079    VM page cache was not coherent with the file system buffer cache
22080    like early versions of FreeBSD and possibly contemporary NetBSD.)
22081    For shared mappings, we should conversely verify that changes get
22082    propagated back to all the places they're supposed to be.
22083
22084    Grep wants private fixed already mapped.
22085    The main things grep needs to know about mmap are:
22086    * does it exist and is it safe to write into the mmap'd area
22087    * how to use it (BSD variants)  */
22088
22089 #include <fcntl.h>
22090 #include <sys/mman.h>
22091
22092 #if !STDC_HEADERS && !HAVE_STDLIB_H
22093 char *malloc ();
22094 #endif
22095
22096 /* This mess was copied from the GNU getpagesize.h.  */
22097 #if !HAVE_GETPAGESIZE
22098 /* Assume that all systems that can run configure have sys/param.h.  */
22099 # if !HAVE_SYS_PARAM_H
22100 #  define HAVE_SYS_PARAM_H 1
22101 # endif
22102
22103 # ifdef _SC_PAGESIZE
22104 #  define getpagesize() sysconf(_SC_PAGESIZE)
22105 # else /* no _SC_PAGESIZE */
22106 #  if HAVE_SYS_PARAM_H
22107 #   include <sys/param.h>
22108 #   ifdef EXEC_PAGESIZE
22109 #    define getpagesize() EXEC_PAGESIZE
22110 #   else /* no EXEC_PAGESIZE */
22111 #    ifdef NBPG
22112 #     define getpagesize() NBPG * CLSIZE
22113 #     ifndef CLSIZE
22114 #      define CLSIZE 1
22115 #     endif /* no CLSIZE */
22116 #    else /* no NBPG */
22117 #     ifdef NBPC
22118 #      define getpagesize() NBPC
22119 #     else /* no NBPC */
22120 #      ifdef PAGESIZE
22121 #       define getpagesize() PAGESIZE
22122 #      endif /* PAGESIZE */
22123 #     endif /* no NBPC */
22124 #    endif /* no NBPG */
22125 #   endif /* no EXEC_PAGESIZE */
22126 #  else /* no HAVE_SYS_PARAM_H */
22127 #   define getpagesize() 8192   /* punt totally */
22128 #  endif /* no HAVE_SYS_PARAM_H */
22129 # endif /* no _SC_PAGESIZE */
22130
22131 #endif /* no HAVE_GETPAGESIZE */
22132
22133 int
22134 main ()
22135 {
22136   char *data, *data2, *data3;
22137   int i, pagesize;
22138   int fd;
22139
22140   pagesize = getpagesize ();
22141
22142   /* First, make a file with some known garbage in it. */
22143   data = (char *) malloc (pagesize);
22144   if (!data)
22145     exit (1);
22146   for (i = 0; i < pagesize; ++i)
22147     *(data + i) = rand ();
22148   umask (0);
22149   fd = creat ("conftest.mmap", 0600);
22150   if (fd < 0)
22151     exit (1);
22152   if (write (fd, data, pagesize) != pagesize)
22153     exit (1);
22154   close (fd);
22155
22156   /* Next, try to mmap the file at a fixed address which already has
22157      something else allocated at it.  If we can, also make sure that
22158      we see the same garbage.  */
22159   fd = open ("conftest.mmap", O_RDWR);
22160   if (fd < 0)
22161     exit (1);
22162   data2 = (char *) malloc (2 * pagesize);
22163   if (!data2)
22164     exit (1);
22165   data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
22166   if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
22167                      MAP_PRIVATE | MAP_FIXED, fd, 0L))
22168     exit (1);
22169   for (i = 0; i < pagesize; ++i)
22170     if (*(data + i) != *(data2 + i))
22171       exit (1);
22172
22173   /* Finally, make sure that changes to the mapped area do not
22174      percolate back to the file as seen by read().  (This is a bug on
22175      some variants of i386 svr4.0.)  */
22176   for (i = 0; i < pagesize; ++i)
22177     *(data2 + i) = *(data2 + i) + 1;
22178   data3 = (char *) malloc (pagesize);
22179   if (!data3)
22180     exit (1);
22181   if (read (fd, data3, pagesize) != pagesize)
22182     exit (1);
22183   for (i = 0; i < pagesize; ++i)
22184     if (*(data + i) != *(data3 + i))
22185       exit (1);
22186   close (fd);
22187   exit (0);
22188 }
22189 _ACEOF
22190 rm -f conftest$ac_exeext
22191 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22192   (eval $ac_link) 2>&5
22193   ac_status=$?
22194   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22195   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22196   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22197   (eval $ac_try) 2>&5
22198   ac_status=$?
22199   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22200   (exit $ac_status); }; }; then
22201   ac_cv_func_mmap_fixed_mapped=yes
22202 else
22203   echo "$as_me: program exited with status $ac_status" >&5
22204 echo "$as_me: failed program was:" >&5
22205 sed 's/^/| /' conftest.$ac_ext >&5
22206
22207 ( exit $ac_status )
22208 ac_cv_func_mmap_fixed_mapped=no
22209 fi
22210 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22211 fi
22212 fi
22213 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
22214 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
22215 if test $ac_cv_func_mmap_fixed_mapped = yes; then
22216
22217 cat >>confdefs.h <<\_ACEOF
22218 #define HAVE_MMAP 1
22219 _ACEOF
22220
22221 fi
22222 rm -f conftest.mmap
22223
22224 echo "$as_me:$LINENO: checking for mmap of files" >&5
22225 echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6
22226 if test "${ac_cv_func_mmap_file+set}" = set; then
22227   echo $ECHO_N "(cached) $ECHO_C" >&6
22228 else
22229
22230
22231   ac_ext=c
22232 ac_cpp='$CPP $CPPFLAGS'
22233 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22234 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22235 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22236
22237   if test "$cross_compiling" = yes; then
22238   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
22239 See \`config.log' for more details." >&5
22240 echo "$as_me: error: cannot run test program while cross compiling
22241 See \`config.log' for more details." >&2;}
22242    { (exit 1); exit 1; }; }
22243 else
22244   cat >conftest.$ac_ext <<_ACEOF
22245 #line $LINENO "configure"
22246 /* confdefs.h.  */
22247 _ACEOF
22248 cat confdefs.h >>conftest.$ac_ext
22249 cat >>conftest.$ac_ext <<_ACEOF
22250 /* end confdefs.h.  */
22251
22252 #ifdef HAVE_SYS_MMAN_H
22253 #include <sys/mman.h>
22254 #endif
22255
22256 #ifdef HAVE_SYS_TYPES_H
22257 #include <sys/types.h>
22258 #endif
22259
22260 #ifdef HAVE_FCNTL_H
22261 #include <fcntl.h>
22262 #endif
22263
22264   int fd;
22265   int main () {
22266   fd = creat ("foo",0777); fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0); unlink ("foo"); return (fd != MAP_FAILED);}
22267 _ACEOF
22268 rm -f conftest$ac_exeext
22269 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22270   (eval $ac_link) 2>&5
22271   ac_status=$?
22272   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22273   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22274   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22275   (eval $ac_try) 2>&5
22276   ac_status=$?
22277   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22278   (exit $ac_status); }; }; then
22279   ac_cv_func_mmap_file=yes
22280 else
22281   echo "$as_me: program exited with status $ac_status" >&5
22282 echo "$as_me: failed program was:" >&5
22283 sed 's/^/| /' conftest.$ac_ext >&5
22284
22285 ( exit $ac_status )
22286 ac_cv_func_mmap_file=no
22287 fi
22288 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22289 fi
22290   ac_ext=c
22291 ac_cpp='$CPP $CPPFLAGS'
22292 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22293 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22294 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22295
22296
22297 fi
22298 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
22299 echo "${ECHO_T}$ac_cv_func_mmap_file" >&6
22300 if test "$ac_cv_func_mmap_file" = yes; then
22301    cat >>confdefs.h <<\_ACEOF
22302 #define HAVE_MMAP_FILE 1
22303 _ACEOF
22304
22305    MMAP_FILE=yes
22306
22307 fi
22308
22309 if test ${ac_cv_func_mmap_file} = "no"
22310 then
22311         { { echo "$as_me:$LINENO: error: mmap() of files required but not found" >&5
22312 echo "$as_me: error: mmap() of files required but not found" >&2;}
22313    { (exit 1); exit 1; }; }
22314 fi
22315 echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5
22316 echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6
22317 if test "${ac_cv_header_mmap_anon+set}" = set; then
22318   echo $ECHO_N "(cached) $ECHO_C" >&6
22319 else
22320
22321
22322   ac_ext=c
22323 ac_cpp='$CPP $CPPFLAGS'
22324 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22325 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22326 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22327
22328   cat >conftest.$ac_ext <<_ACEOF
22329 #line $LINENO "configure"
22330 /* confdefs.h.  */
22331 _ACEOF
22332 cat confdefs.h >>conftest.$ac_ext
22333 cat >>conftest.$ac_ext <<_ACEOF
22334 /* end confdefs.h.  */
22335 #include <sys/mman.h>
22336   #include <unistd.h>
22337   #include <fcntl.h>
22338 int
22339 main ()
22340 {
22341 mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0);
22342   ;
22343   return 0;
22344 }
22345 _ACEOF
22346 rm -f conftest.$ac_objext
22347 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22348   (eval $ac_compile) 2>&5
22349   ac_status=$?
22350   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22351   (exit $ac_status); } &&
22352          { ac_try='test -s conftest.$ac_objext'
22353   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22354   (eval $ac_try) 2>&5
22355   ac_status=$?
22356   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22357   (exit $ac_status); }; }; then
22358   ac_cv_header_mmap_anon=yes
22359 else
22360   echo "$as_me: failed program was:" >&5
22361 sed 's/^/| /' conftest.$ac_ext >&5
22362
22363 ac_cv_header_mmap_anon=no
22364 fi
22365 rm -f conftest.$ac_objext conftest.$ac_ext
22366   ac_ext=c
22367 ac_cpp='$CPP $CPPFLAGS'
22368 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22369 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22370 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22371
22372
22373 fi
22374 echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5
22375 echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6
22376 if test "$ac_cv_header_mmap_anon" = yes; then
22377    cat >>confdefs.h <<\_ACEOF
22378 #define HAVE_MMAP_ANONYMOUS 1
22379 _ACEOF
22380
22381 fi
22382
22383 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
22384 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
22385 if test "${ac_cv_type_signal+set}" = set; then
22386   echo $ECHO_N "(cached) $ECHO_C" >&6
22387 else
22388   cat >conftest.$ac_ext <<_ACEOF
22389 #line $LINENO "configure"
22390 /* confdefs.h.  */
22391 _ACEOF
22392 cat confdefs.h >>conftest.$ac_ext
22393 cat >>conftest.$ac_ext <<_ACEOF
22394 /* end confdefs.h.  */
22395 #include <sys/types.h>
22396 #include <signal.h>
22397 #ifdef signal
22398 # undef signal
22399 #endif
22400 #ifdef __cplusplus
22401 extern "C" void (*signal (int, void (*)(int)))(int);
22402 #else
22403 void (*signal ()) ();
22404 #endif
22405
22406 int
22407 main ()
22408 {
22409 int i;
22410   ;
22411   return 0;
22412 }
22413 _ACEOF
22414 rm -f conftest.$ac_objext
22415 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22416   (eval $ac_compile) 2>&5
22417   ac_status=$?
22418   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22419   (exit $ac_status); } &&
22420          { ac_try='test -s conftest.$ac_objext'
22421   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22422   (eval $ac_try) 2>&5
22423   ac_status=$?
22424   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22425   (exit $ac_status); }; }; then
22426   ac_cv_type_signal=void
22427 else
22428   echo "$as_me: failed program was:" >&5
22429 sed 's/^/| /' conftest.$ac_ext >&5
22430
22431 ac_cv_type_signal=int
22432 fi
22433 rm -f conftest.$ac_objext conftest.$ac_ext
22434 fi
22435 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
22436 echo "${ECHO_T}$ac_cv_type_signal" >&6
22437
22438 cat >>confdefs.h <<_ACEOF
22439 #define RETSIGTYPE $ac_cv_type_signal
22440 _ACEOF
22441
22442
22443
22444
22445
22446
22447
22448
22449
22450
22451
22452 for ac_func in getcwd gettimeofday strcspn strdup strerror strspn strstr strtod strtol
22453 do
22454 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22455 echo "$as_me:$LINENO: checking for $ac_func" >&5
22456 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
22457 if eval "test \"\${$as_ac_var+set}\" = set"; then
22458   echo $ECHO_N "(cached) $ECHO_C" >&6
22459 else
22460   cat >conftest.$ac_ext <<_ACEOF
22461 #line $LINENO "configure"
22462 /* confdefs.h.  */
22463 _ACEOF
22464 cat confdefs.h >>conftest.$ac_ext
22465 cat >>conftest.$ac_ext <<_ACEOF
22466 /* end confdefs.h.  */
22467 /* System header to define __stub macros and hopefully few prototypes,
22468     which can conflict with char $ac_func (); below.
22469     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22470     <limits.h> exists even on freestanding compilers.  */
22471 #ifdef __STDC__
22472 # include <limits.h>
22473 #else
22474 # include <assert.h>
22475 #endif
22476 /* Override any gcc2 internal prototype to avoid an error.  */
22477 #ifdef __cplusplus
22478 extern "C"
22479 {
22480 #endif
22481 /* We use char because int might match the return type of a gcc2
22482    builtin and then its argument prototype would still apply.  */
22483 char $ac_func ();
22484 /* The GNU C library defines this for functions which it implements
22485     to always fail with ENOSYS.  Some functions are actually named
22486     something starting with __ and the normal name is an alias.  */
22487 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22488 choke me
22489 #else
22490 char (*f) () = $ac_func;
22491 #endif
22492 #ifdef __cplusplus
22493 }
22494 #endif
22495
22496 int
22497 main ()
22498 {
22499 return f != $ac_func;
22500   ;
22501   return 0;
22502 }
22503 _ACEOF
22504 rm -f conftest.$ac_objext conftest$ac_exeext
22505 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22506   (eval $ac_link) 2>&5
22507   ac_status=$?
22508   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22509   (exit $ac_status); } &&
22510          { ac_try='test -s conftest$ac_exeext'
22511   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22512   (eval $ac_try) 2>&5
22513   ac_status=$?
22514   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22515   (exit $ac_status); }; }; then
22516   eval "$as_ac_var=yes"
22517 else
22518   echo "$as_me: failed program was:" >&5
22519 sed 's/^/| /' conftest.$ac_ext >&5
22520
22521 eval "$as_ac_var=no"
22522 fi
22523 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
22524 fi
22525 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
22526 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
22527 if test `eval echo '${'$as_ac_var'}'` = yes; then
22528   cat >>confdefs.h <<_ACEOF
22529 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22530 _ACEOF
22531
22532 fi
22533 done
22534
22535
22536
22537 echo "$as_me:$LINENO: checking for mmap" >&5
22538 echo $ECHO_N "checking for mmap... $ECHO_C" >&6
22539 if test "${ac_cv_func_mmap+set}" = set; then
22540   echo $ECHO_N "(cached) $ECHO_C" >&6
22541 else
22542   cat >conftest.$ac_ext <<_ACEOF
22543 #line $LINENO "configure"
22544 /* confdefs.h.  */
22545 _ACEOF
22546 cat confdefs.h >>conftest.$ac_ext
22547 cat >>conftest.$ac_ext <<_ACEOF
22548 /* end confdefs.h.  */
22549 /* System header to define __stub macros and hopefully few prototypes,
22550     which can conflict with char mmap (); below.
22551     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22552     <limits.h> exists even on freestanding compilers.  */
22553 #ifdef __STDC__
22554 # include <limits.h>
22555 #else
22556 # include <assert.h>
22557 #endif
22558 /* Override any gcc2 internal prototype to avoid an error.  */
22559 #ifdef __cplusplus
22560 extern "C"
22561 {
22562 #endif
22563 /* We use char because int might match the return type of a gcc2
22564    builtin and then its argument prototype would still apply.  */
22565 char mmap ();
22566 /* The GNU C library defines this for functions which it implements
22567     to always fail with ENOSYS.  Some functions are actually named
22568     something starting with __ and the normal name is an alias.  */
22569 #if defined (__stub_mmap) || defined (__stub___mmap)
22570 choke me
22571 #else
22572 char (*f) () = mmap;
22573 #endif
22574 #ifdef __cplusplus
22575 }
22576 #endif
22577
22578 int
22579 main ()
22580 {
22581 return f != mmap;
22582   ;
22583   return 0;
22584 }
22585 _ACEOF
22586 rm -f conftest.$ac_objext conftest$ac_exeext
22587 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22588   (eval $ac_link) 2>&5
22589   ac_status=$?
22590   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22591   (exit $ac_status); } &&
22592          { ac_try='test -s conftest$ac_exeext'
22593   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22594   (eval $ac_try) 2>&5
22595   ac_status=$?
22596   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22597   (exit $ac_status); }; }; then
22598   ac_cv_func_mmap=yes
22599 else
22600   echo "$as_me: failed program was:" >&5
22601 sed 's/^/| /' conftest.$ac_ext >&5
22602
22603 ac_cv_func_mmap=no
22604 fi
22605 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
22606 fi
22607 echo "$as_me:$LINENO: result: $ac_cv_func_mmap" >&5
22608 echo "${ECHO_T}$ac_cv_func_mmap" >&6
22609 if test $ac_cv_func_mmap = yes; then
22610   :
22611 else
22612   { { echo "$as_me:$LINENO: error: Function mmap() required but not found" >&5
22613 echo "$as_me: error: Function mmap() required but not found" >&2;}
22614    { (exit 1); exit 1; }; }
22615 fi
22616
22617 echo "$as_me:$LINENO: checking for mprotect" >&5
22618 echo $ECHO_N "checking for mprotect... $ECHO_C" >&6
22619 if test "${ac_cv_func_mprotect+set}" = set; then
22620   echo $ECHO_N "(cached) $ECHO_C" >&6
22621 else
22622   cat >conftest.$ac_ext <<_ACEOF
22623 #line $LINENO "configure"
22624 /* confdefs.h.  */
22625 _ACEOF
22626 cat confdefs.h >>conftest.$ac_ext
22627 cat >>conftest.$ac_ext <<_ACEOF
22628 /* end confdefs.h.  */
22629 /* System header to define __stub macros and hopefully few prototypes,
22630     which can conflict with char mprotect (); below.
22631     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22632     <limits.h> exists even on freestanding compilers.  */
22633 #ifdef __STDC__
22634 # include <limits.h>
22635 #else
22636 # include <assert.h>
22637 #endif
22638 /* Override any gcc2 internal prototype to avoid an error.  */
22639 #ifdef __cplusplus
22640 extern "C"
22641 {
22642 #endif
22643 /* We use char because int might match the return type of a gcc2
22644    builtin and then its argument prototype would still apply.  */
22645 char mprotect ();
22646 /* The GNU C library defines this for functions which it implements
22647     to always fail with ENOSYS.  Some functions are actually named
22648     something starting with __ and the normal name is an alias.  */
22649 #if defined (__stub_mprotect) || defined (__stub___mprotect)
22650 choke me
22651 #else
22652 char (*f) () = mprotect;
22653 #endif
22654 #ifdef __cplusplus
22655 }
22656 #endif
22657
22658 int
22659 main ()
22660 {
22661 return f != mprotect;
22662   ;
22663   return 0;
22664 }
22665 _ACEOF
22666 rm -f conftest.$ac_objext conftest$ac_exeext
22667 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22668   (eval $ac_link) 2>&5
22669   ac_status=$?
22670   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22671   (exit $ac_status); } &&
22672          { ac_try='test -s conftest$ac_exeext'
22673   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22674   (eval $ac_try) 2>&5
22675   ac_status=$?
22676   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22677   (exit $ac_status); }; }; then
22678   ac_cv_func_mprotect=yes
22679 else
22680   echo "$as_me: failed program was:" >&5
22681 sed 's/^/| /' conftest.$ac_ext >&5
22682
22683 ac_cv_func_mprotect=no
22684 fi
22685 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
22686 fi
22687 echo "$as_me:$LINENO: result: $ac_cv_func_mprotect" >&5
22688 echo "${ECHO_T}$ac_cv_func_mprotect" >&6
22689 if test $ac_cv_func_mprotect = yes; then
22690   :
22691 else
22692   { { echo "$as_me:$LINENO: error: Function mprotect() required but not found" >&5
22693 echo "$as_me: error: Function mprotect() required but not found" >&2;}
22694    { (exit 1); exit 1; }; }
22695 fi
22696
22697
22698
22699 # Check whether --enable-purify or --disable-purify was given.
22700 if test "${enable_purify+set}" = set; then
22701   enableval="$enable_purify"
22702
22703 else
22704   enableval="no"
22705 fi;
22706 if test ${enableval} = "no"
22707 then
22708         ENABLE_PURIFY=
22709
22710 else
22711         ENABLE_PURIFY=ENABLE_PURIFY=1
22712
22713 fi
22714
22715 # Check whether --enable-optimized or --disable-optimized was given.
22716 if test "${enable_optimized+set}" = set; then
22717   enableval="$enable_optimized"
22718
22719 else
22720   enableval=no
22721 fi;
22722 if test ${enableval} = "no"
22723 then
22724         ENABLE_OPTIMIZED=
22725
22726 else
22727         ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1
22728
22729 fi
22730
22731 # Check whether --enable-spec or --disable-spec was given.
22732 if test "${enable_spec+set}" = set; then
22733   enableval="$enable_spec"
22734
22735 else
22736   enableval=no
22737 fi;
22738 if test ${enableval} = "no"
22739 then
22740         USE_SPEC=
22741
22742 else
22743         USE_SPEC=USE_SPEC=1
22744
22745 fi
22746
22747 # Check whether --enable-precompiled_bytecode or --disable-precompiled_bytecode was given.
22748 if test "${enable_precompiled_bytecode+set}" = set; then
22749   enableval="$enable_precompiled_bytecode"
22750
22751 else
22752   enableval=no
22753 fi;
22754 if test ${enableval} = "no"
22755 then
22756         UPB=
22757
22758 else
22759         UPB=USE_PRECOMPILED_BYTECODE=1
22760
22761 fi
22762
22763
22764 # Check whether --enable-llc_diffs or --disable-llc_diffs was given.
22765 if test "${enable_llc_diffs+set}" = set; then
22766   enableval="$enable_llc_diffs"
22767
22768 else
22769   enableval=yes
22770 fi;
22771 if test ${enableval} = "no"
22772 then
22773         DISABLE_LLC_DIFFS=DISABLE_LLC_DIFFS:=1
22774
22775 else
22776         DISABLE_LLC_DIFFS=
22777
22778 fi
22779
22780 # Check whether --enable-jit or --disable-jit was given.
22781 if test "${enable_jit+set}" = set; then
22782   enableval="$enable_jit"
22783
22784 else
22785   enableval=default
22786 fi;
22787
22788 if test ${enableval} = "no"
22789 then
22790         JIT=
22791
22792 else
22793         case $target in
22794                 *i*86*)
22795                         JIT=TARGET_HAS_JIT=1
22796
22797                         ;;
22798                 *sparc*)
22799                         JIT=TARGET_HAS_JIT=1
22800
22801                         ;;
22802                 *)
22803                         JIT=
22804
22805                         ;;
22806         esac
22807 fi
22808
22809
22810
22811 # Check whether --with-spec or --without-spec was given.
22812 if test "${with_spec+set}" = set; then
22813   withval="$with_spec"
22814   SPEC_ROOT=$withval
22815
22816 else
22817   SPEC_ROOT=/home/vadve/shared/benchmarks/speccpu2000/benchspec
22818
22819 fi;
22820
22821
22822 # Check whether --with-llvmgccdir or --without-llvmgccdir was given.
22823 if test "${with_llvmgccdir+set}" = set; then
22824   withval="$with_llvmgccdir"
22825   LLVMGCCDIR=$withval
22826
22827 fi;
22828
22829
22830 # Check whether --with-bcrepos or --without-bcrepos was given.
22831 if test "${with_bcrepos+set}" = set; then
22832   withval="$with_bcrepos"
22833   BCR=$withval
22834
22835 else
22836   BCR=/home/vadve/lattner/LLVMPrograms
22837
22838 fi;
22839
22840
22841 # Check whether --with-papi or --without-papi was given.
22842 if test "${with_papi+set}" = set; then
22843   withval="$with_papi"
22844   PAPIDIR=$withval
22845
22846 else
22847   PAPIDIR=/home/vadve/shared/Sparc/papi-2.3.4.1
22848
22849 fi;
22850
22851
22852 # Check whether --with-purify or --without-purify was given.
22853 if test "${with_purify+set}" = set; then
22854   withval="$with_purify"
22855   PURIFY=$withval
22856
22857 fi;
22858
22859
22860           ac_config_files="$ac_config_files Makefile.config"
22861 cat >confcache <<\_ACEOF
22862 # This file is a shell script that caches the results of configure
22863 # tests run on this system so they can be shared between configure
22864 # scripts and configure runs, see configure's option --config-cache.
22865 # It is not useful on other systems.  If it contains results you don't
22866 # want to keep, you may remove or edit it.
22867 #
22868 # config.status only pays attention to the cache file if you give it
22869 # the --recheck option to rerun configure.
22870 #
22871 # `ac_cv_env_foo' variables (set or unset) will be overridden when
22872 # loading this file, other *unset* `ac_cv_foo' will be assigned the
22873 # following values.
22874
22875 _ACEOF
22876
22877 # The following way of writing the cache mishandles newlines in values,
22878 # but we know of no workaround that is simple, portable, and efficient.
22879 # So, don't put newlines in cache variables' values.
22880 # Ultrix sh set writes to stderr and can't be redirected directly,
22881 # and sets the high bit in the cache file unless we assign to the vars.
22882 {
22883   (set) 2>&1 |
22884     case `(ac_space=' '; set | grep ac_space) 2>&1` in
22885     *ac_space=\ *)
22886       # `set' does not quote correctly, so add quotes (double-quote
22887       # substitution turns \\\\ into \\, and sed turns \\ into \).
22888       sed -n \
22889         "s/'/'\\\\''/g;
22890           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
22891       ;;
22892     *)
22893       # `set' quotes correctly as required by POSIX, so do not add quotes.
22894       sed -n \
22895         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
22896       ;;
22897     esac;
22898 } |
22899   sed '
22900      t clear
22901      : clear
22902      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
22903      t end
22904      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
22905      : end' >>confcache
22906 if diff $cache_file confcache >/dev/null 2>&1; then :; else
22907   if test -w $cache_file; then
22908     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
22909     cat confcache >$cache_file
22910   else
22911     echo "not updating unwritable cache $cache_file"
22912   fi
22913 fi
22914 rm -f confcache
22915
22916 test "x$prefix" = xNONE && prefix=$ac_default_prefix
22917 # Let make expand exec_prefix.
22918 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
22919
22920 # VPATH may cause trouble with some makes, so we remove $(srcdir),
22921 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
22922 # trailing colons and then remove the whole line if VPATH becomes empty
22923 # (actually we leave an empty line to preserve line numbers).
22924 if test "x$srcdir" = x.; then
22925   ac_vpsub='/^[         ]*VPATH[        ]*=/{
22926 s/:*\$(srcdir):*/:/;
22927 s/:*\${srcdir}:*/:/;
22928 s/:*@srcdir@:*/:/;
22929 s/^\([^=]*=[    ]*\):*/\1/;
22930 s/:*$//;
22931 s/^[^=]*=[      ]*$//;
22932 }'
22933 fi
22934
22935 DEFS=-DHAVE_CONFIG_H
22936
22937 ac_libobjs=
22938 ac_ltlibobjs=
22939 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
22940   # 1. Remove the extension, and $U if already installed.
22941   ac_i=`echo "$ac_i" |
22942          sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
22943   # 2. Add them.
22944   ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
22945   ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
22946 done
22947 LIBOBJS=$ac_libobjs
22948
22949 LTLIBOBJS=$ac_ltlibobjs
22950
22951
22952
22953 : ${CONFIG_STATUS=./config.status}
22954 ac_clean_files_save=$ac_clean_files
22955 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
22956 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
22957 echo "$as_me: creating $CONFIG_STATUS" >&6;}
22958 cat >$CONFIG_STATUS <<_ACEOF
22959 #! $SHELL
22960 # Generated by $as_me.
22961 # Run this file to recreate the current configuration.
22962 # Compiler output produced by configure, useful for debugging
22963 # configure, is in config.log if it exists.
22964
22965 debug=false
22966 ac_cs_recheck=false
22967 ac_cs_silent=false
22968 SHELL=\${CONFIG_SHELL-$SHELL}
22969 _ACEOF
22970
22971 cat >>$CONFIG_STATUS <<\_ACEOF
22972 ## --------------------- ##
22973 ## M4sh Initialization.  ##
22974 ## --------------------- ##
22975
22976 # Be Bourne compatible
22977 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
22978   emulate sh
22979   NULLCMD=:
22980   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
22981   # is contrary to our usage.  Disable this feature.
22982   alias -g '${1+"$@"}'='"$@"'
22983 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
22984   set -o posix
22985 fi
22986
22987 # Support unset when possible.
22988 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
22989   as_unset=unset
22990 else
22991   as_unset=false
22992 fi
22993
22994
22995 # Work around bugs in pre-3.0 UWIN ksh.
22996 $as_unset ENV MAIL MAILPATH
22997 PS1='$ '
22998 PS2='> '
22999 PS4='+ '
23000
23001 # NLS nuisances.
23002 for as_var in \
23003   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
23004   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
23005   LC_TELEPHONE LC_TIME
23006 do
23007   if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
23008     eval $as_var=C; export $as_var
23009   else
23010     $as_unset $as_var
23011   fi
23012 done
23013
23014 # Required to use basename.
23015 if expr a : '\(a\)' >/dev/null 2>&1; then
23016   as_expr=expr
23017 else
23018   as_expr=false
23019 fi
23020
23021 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
23022   as_basename=basename
23023 else
23024   as_basename=false
23025 fi
23026
23027
23028 # Name of the executable.
23029 as_me=`$as_basename "$0" ||
23030 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
23031          X"$0" : 'X\(//\)$' \| \
23032          X"$0" : 'X\(/\)$' \| \
23033          .     : '\(.\)' 2>/dev/null ||
23034 echo X/"$0" |
23035     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
23036           /^X\/\(\/\/\)$/{ s//\1/; q; }
23037           /^X\/\(\/\).*/{ s//\1/; q; }
23038           s/.*/./; q'`
23039
23040
23041 # PATH needs CR, and LINENO needs CR and PATH.
23042 # Avoid depending upon Character Ranges.
23043 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
23044 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
23045 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
23046 as_cr_digits='0123456789'
23047 as_cr_alnum=$as_cr_Letters$as_cr_digits
23048
23049 # The user is always right.
23050 if test "${PATH_SEPARATOR+set}" != set; then
23051   echo "#! /bin/sh" >conf$$.sh
23052   echo  "exit 0"   >>conf$$.sh
23053   chmod +x conf$$.sh
23054   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
23055     PATH_SEPARATOR=';'
23056   else
23057     PATH_SEPARATOR=:
23058   fi
23059   rm -f conf$$.sh
23060 fi
23061
23062
23063   as_lineno_1=$LINENO
23064   as_lineno_2=$LINENO
23065   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
23066   test "x$as_lineno_1" != "x$as_lineno_2" &&
23067   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
23068   # Find who we are.  Look in the path if we contain no path at all
23069   # relative or not.
23070   case $0 in
23071     *[\\/]* ) as_myself=$0 ;;
23072     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23073 for as_dir in $PATH
23074 do
23075   IFS=$as_save_IFS
23076   test -z "$as_dir" && as_dir=.
23077   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
23078 done
23079
23080        ;;
23081   esac
23082   # We did not find ourselves, most probably we were run as `sh COMMAND'
23083   # in which case we are not to be found in the path.
23084   if test "x$as_myself" = x; then
23085     as_myself=$0
23086   fi
23087   if test ! -f "$as_myself"; then
23088     { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
23089 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
23090    { (exit 1); exit 1; }; }
23091   fi
23092   case $CONFIG_SHELL in
23093   '')
23094     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23095 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
23096 do
23097   IFS=$as_save_IFS
23098   test -z "$as_dir" && as_dir=.
23099   for as_base in sh bash ksh sh5; do
23100          case $as_dir in
23101          /*)
23102            if ("$as_dir/$as_base" -c '
23103   as_lineno_1=$LINENO
23104   as_lineno_2=$LINENO
23105   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
23106   test "x$as_lineno_1" != "x$as_lineno_2" &&
23107   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
23108              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
23109              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
23110              CONFIG_SHELL=$as_dir/$as_base
23111              export CONFIG_SHELL
23112              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
23113            fi;;
23114          esac
23115        done
23116 done
23117 ;;
23118   esac
23119
23120   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
23121   # uniformly replaced by the line number.  The first 'sed' inserts a
23122   # line-number line before each line; the second 'sed' does the real
23123   # work.  The second script uses 'N' to pair each line-number line
23124   # with the numbered line, and appends trailing '-' during
23125   # substitution so that $LINENO is not a special case at line end.
23126   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
23127   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
23128   sed '=' <$as_myself |
23129     sed '
23130       N
23131       s,$,-,
23132       : loop
23133       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
23134       t loop
23135       s,-$,,
23136       s,^['$as_cr_digits']*\n,,
23137     ' >$as_me.lineno &&
23138   chmod +x $as_me.lineno ||
23139     { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
23140 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
23141    { (exit 1); exit 1; }; }
23142
23143   # Don't try to exec as it changes $[0], causing all sort of problems
23144   # (the dirname of $[0] is not the place where we might find the
23145   # original and so on.  Autoconf is especially sensible to this).
23146   . ./$as_me.lineno
23147   # Exit status is that of the last command.
23148   exit
23149 }
23150
23151
23152 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
23153   *c*,-n*) ECHO_N= ECHO_C='
23154 ' ECHO_T='      ' ;;
23155   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
23156   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
23157 esac
23158
23159 if expr a : '\(a\)' >/dev/null 2>&1; then
23160   as_expr=expr
23161 else
23162   as_expr=false
23163 fi
23164
23165 rm -f conf$$ conf$$.exe conf$$.file
23166 echo >conf$$.file
23167 if ln -s conf$$.file conf$$ 2>/dev/null; then
23168   # We could just check for DJGPP; but this test a) works b) is more generic
23169   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
23170   if test -f conf$$.exe; then
23171     # Don't use ln at all; we don't have any links
23172     as_ln_s='cp -p'
23173   else
23174     as_ln_s='ln -s'
23175   fi
23176 elif ln conf$$.file conf$$ 2>/dev/null; then
23177   as_ln_s=ln
23178 else
23179   as_ln_s='cp -p'
23180 fi
23181 rm -f conf$$ conf$$.exe conf$$.file
23182
23183 if mkdir -p . 2>/dev/null; then
23184   as_mkdir_p=:
23185 else
23186   as_mkdir_p=false
23187 fi
23188
23189 as_executable_p="test -f"
23190
23191 # Sed expression to map a string onto a valid CPP name.
23192 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
23193
23194 # Sed expression to map a string onto a valid variable name.
23195 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
23196
23197
23198 # IFS
23199 # We need space, tab and new line, in precisely that order.
23200 as_nl='
23201 '
23202 IFS="   $as_nl"
23203
23204 # CDPATH.
23205 $as_unset CDPATH
23206
23207 exec 6>&1
23208
23209 # Open the log real soon, to keep \$[0] and so on meaningful, and to
23210 # report actual input values of CONFIG_FILES etc. instead of their
23211 # values after options handling.  Logging --version etc. is OK.
23212 exec 5>>config.log
23213 {
23214   echo
23215   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
23216 ## Running $as_me. ##
23217 _ASBOX
23218 } >&5
23219 cat >&5 <<_CSEOF
23220
23221 This file was extended by [LLVM] $as_me [1.0], which was
23222 generated by GNU Autoconf 2.57.  Invocation command line was
23223
23224   CONFIG_FILES    = $CONFIG_FILES
23225   CONFIG_HEADERS  = $CONFIG_HEADERS
23226   CONFIG_LINKS    = $CONFIG_LINKS
23227   CONFIG_COMMANDS = $CONFIG_COMMANDS
23228   $ $0 $@
23229
23230 _CSEOF
23231 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
23232 echo >&5
23233 _ACEOF
23234
23235 # Files that config.status was made for.
23236 if test -n "$ac_config_files"; then
23237   echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
23238 fi
23239
23240 if test -n "$ac_config_headers"; then
23241   echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
23242 fi
23243
23244 if test -n "$ac_config_links"; then
23245   echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
23246 fi
23247
23248 if test -n "$ac_config_commands"; then
23249   echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
23250 fi
23251
23252 cat >>$CONFIG_STATUS <<\_ACEOF
23253
23254 ac_cs_usage="\
23255 \`$as_me' instantiates files from templates according to the
23256 current configuration.
23257
23258 Usage: $0 [OPTIONS] [FILE]...
23259
23260   -h, --help       print this help, then exit
23261   -V, --version    print version number, then exit
23262   -q, --quiet      do not print progress messages
23263   -d, --debug      don't remove temporary files
23264       --recheck    update $as_me by reconfiguring in the same conditions
23265   --file=FILE[:TEMPLATE]
23266                    instantiate the configuration file FILE
23267   --header=FILE[:TEMPLATE]
23268                    instantiate the configuration header FILE
23269
23270 Configuration files:
23271 $config_files
23272
23273 Configuration headers:
23274 $config_headers
23275
23276 Configuration commands:
23277 $config_commands
23278
23279 Report bugs to <bug-autoconf@gnu.org>."
23280 _ACEOF
23281
23282 cat >>$CONFIG_STATUS <<_ACEOF
23283 ac_cs_version="\\
23284 [LLVM] config.status [1.0]
23285 configured by $0, generated by GNU Autoconf 2.57,
23286   with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
23287
23288 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
23289 Free Software Foundation, Inc.
23290 This config.status script is free software; the Free Software Foundation
23291 gives unlimited permission to copy, distribute and modify it."
23292 srcdir=$srcdir
23293 INSTALL="$INSTALL"
23294 _ACEOF
23295
23296 cat >>$CONFIG_STATUS <<\_ACEOF
23297 # If no file are specified by the user, then we need to provide default
23298 # value.  By we need to know if files were specified by the user.
23299 ac_need_defaults=:
23300 while test $# != 0
23301 do
23302   case $1 in
23303   --*=*)
23304     ac_option=`expr "x$1" : 'x\([^=]*\)='`
23305     ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
23306     ac_shift=:
23307     ;;
23308   -*)
23309     ac_option=$1
23310     ac_optarg=$2
23311     ac_shift=shift
23312     ;;
23313   *) # This is not an option, so the user has probably given explicit
23314      # arguments.
23315      ac_option=$1
23316      ac_need_defaults=false;;
23317   esac
23318
23319   case $ac_option in
23320   # Handling of the options.
23321 _ACEOF
23322 cat >>$CONFIG_STATUS <<\_ACEOF
23323   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
23324     ac_cs_recheck=: ;;
23325   --version | --vers* | -V )
23326     echo "$ac_cs_version"; exit 0 ;;
23327   --he | --h)
23328     # Conflict between --help and --header
23329     { { echo "$as_me:$LINENO: error: ambiguous option: $1
23330 Try \`$0 --help' for more information." >&5
23331 echo "$as_me: error: ambiguous option: $1
23332 Try \`$0 --help' for more information." >&2;}
23333    { (exit 1); exit 1; }; };;
23334   --help | --hel | -h )
23335     echo "$ac_cs_usage"; exit 0 ;;
23336   --debug | --d* | -d )
23337     debug=: ;;
23338   --file | --fil | --fi | --f )
23339     $ac_shift
23340     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
23341     ac_need_defaults=false;;
23342   --header | --heade | --head | --hea )
23343     $ac_shift
23344     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
23345     ac_need_defaults=false;;
23346   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
23347   | -silent | --silent | --silen | --sile | --sil | --si | --s)
23348     ac_cs_silent=: ;;
23349
23350   # This is an error.
23351   -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
23352 Try \`$0 --help' for more information." >&5
23353 echo "$as_me: error: unrecognized option: $1
23354 Try \`$0 --help' for more information." >&2;}
23355    { (exit 1); exit 1; }; } ;;
23356
23357   *) ac_config_targets="$ac_config_targets $1" ;;
23358
23359   esac
23360   shift
23361 done
23362
23363 ac_configure_extra_args=
23364
23365 if $ac_cs_silent; then
23366   exec 6>/dev/null
23367   ac_configure_extra_args="$ac_configure_extra_args --silent"
23368 fi
23369
23370 _ACEOF
23371 cat >>$CONFIG_STATUS <<_ACEOF
23372 if \$ac_cs_recheck; then
23373   echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
23374   exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
23375 fi
23376
23377 _ACEOF
23378
23379 cat >>$CONFIG_STATUS <<_ACEOF
23380 #
23381 # INIT-COMMANDS section.
23382 #
23383
23384 ${srcdir}/autoconf/mkinstalldirs `dirname Makefile`
23385 ${srcdir}/autoconf/mkinstalldirs `dirname Makefile.common`
23386 ${srcdir}/autoconf/mkinstalldirs `dirname Makefile.rules`
23387 ${srcdir}/autoconf/mkinstalldirs `dirname lib/Makefile`
23388 ${srcdir}/autoconf/mkinstalldirs `dirname lib/Analysis/Makefile`
23389 ${srcdir}/autoconf/mkinstalldirs `dirname lib/Analysis/DataStructure/Makefile`
23390 ${srcdir}/autoconf/mkinstalldirs `dirname lib/Analysis/IPA/Makefile`
23391 ${srcdir}/autoconf/mkinstalldirs `dirname lib/Analysis/LiveVar/Makefile`
23392 ${srcdir}/autoconf/mkinstalldirs `dirname lib/AsmParser/Makefile`
23393 ${srcdir}/autoconf/mkinstalldirs `dirname lib/Bytecode/Makefile`
23394 ${srcdir}/autoconf/mkinstalldirs `dirname lib/Bytecode/Reader/Makefile`
23395 ${srcdir}/autoconf/mkinstalldirs `dirname lib/Bytecode/Writer/Makefile`
23396 ${srcdir}/autoconf/mkinstalldirs `dirname lib/CWriter/Makefile`
23397 ${srcdir}/autoconf/mkinstalldirs `dirname lib/CodeGen/Makefile`
23398 ${srcdir}/autoconf/mkinstalldirs `dirname lib/CodeGen/InstrSched/Makefile`
23399 ${srcdir}/autoconf/mkinstalldirs `dirname lib/CodeGen/InstrSelection/Makefile`
23400 ${srcdir}/autoconf/mkinstalldirs `dirname lib/CodeGen/ModuloScheduling/Makefile`
23401 ${srcdir}/autoconf/mkinstalldirs `dirname lib/CodeGen/RegAlloc/Makefile`
23402 ${srcdir}/autoconf/mkinstalldirs `dirname lib/CodeGen/SelectionDAG/Makefile`
23403 ${srcdir}/autoconf/mkinstalldirs `dirname lib/ExecutionEngine/Makefile`
23404 ${srcdir}/autoconf/mkinstalldirs `dirname lib/ExecutionEngine/Interpreter/Makefile`
23405 ${srcdir}/autoconf/mkinstalldirs `dirname lib/ExecutionEngine/JIT/Makefile`
23406 ${srcdir}/autoconf/mkinstalldirs `dirname lib/Target/Makefile`
23407 ${srcdir}/autoconf/mkinstalldirs `dirname lib/Target/Sparc/Makefile`
23408 ${srcdir}/autoconf/mkinstalldirs `dirname lib/Target/X86/Makefile`
23409 ${srcdir}/autoconf/mkinstalldirs `dirname lib/Transforms/Makefile`
23410 ${srcdir}/autoconf/mkinstalldirs `dirname lib/Transforms/Hello/Makefile`
23411 ${srcdir}/autoconf/mkinstalldirs `dirname lib/Transforms/IPO/Makefile`
23412 ${srcdir}/autoconf/mkinstalldirs `dirname lib/Transforms/Instrumentation/Makefile`
23413 ${srcdir}/autoconf/mkinstalldirs `dirname lib/Transforms/Instrumentation/ProfilePaths/Makefile`
23414 ${srcdir}/autoconf/mkinstalldirs `dirname lib/Transforms/Scalar/Makefile`
23415 ${srcdir}/autoconf/mkinstalldirs `dirname lib/Transforms/Utils/Makefile`
23416 ${srcdir}/autoconf/mkinstalldirs `dirname lib/VMCore/Makefile`
23417 ${srcdir}/autoconf/mkinstalldirs `dirname runtime/Makefile`
23418 ${srcdir}/autoconf/mkinstalldirs `dirname runtime/GCCLibraries/Makefile`
23419 ${srcdir}/autoconf/mkinstalldirs `dirname runtime/GCCLibraries/crtend/Makefile`
23420 ${srcdir}/autoconf/mkinstalldirs `dirname runtime/GCCLibraries/libc/Makefile`
23421 ${srcdir}/autoconf/mkinstalldirs `dirname runtime/GCCLibraries/libcurses/Makefile`
23422 ${srcdir}/autoconf/mkinstalldirs `dirname runtime/GCCLibraries/libg/Makefile`
23423 ${srcdir}/autoconf/mkinstalldirs `dirname runtime/GCCLibraries/libgcc/Makefile`
23424 ${srcdir}/autoconf/mkinstalldirs `dirname runtime/GCCLibraries/libm/Makefile`
23425 ${srcdir}/autoconf/mkinstalldirs `dirname runtime/GCCLibraries/libmalloc/Makefile`
23426 ${srcdir}/autoconf/mkinstalldirs `dirname runtime/GCCLibraries/libtermcap/Makefile`
23427 ${srcdir}/autoconf/mkinstalldirs `dirname runtime/GCCLibraries/libucb/Makefile`
23428 ${srcdir}/autoconf/mkinstalldirs `dirname runtime/GCCLibraries/libutempter/Makefile`
23429 ${srcdir}/autoconf/mkinstalldirs `dirname runtime/GCCLibraries/libutil/Makefile`
23430 ${srcdir}/autoconf/mkinstalldirs `dirname runtime/libdummy/Makefile`
23431 ${srcdir}/autoconf/mkinstalldirs `dirname runtime/libtrace/Makefile`
23432 ${srcdir}/autoconf/mkinstalldirs `dirname test/Makefile`
23433 ${srcdir}/autoconf/mkinstalldirs `dirname test/Makefile.tests`
23434 ${srcdir}/autoconf/mkinstalldirs `dirname test/QMTestDB/QMTest/llvm.py`
23435 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/Makefile`
23436 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/Makefile.programs`
23437 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.aa.Makefile`
23438 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.dsgraph.report`
23439 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.micro.report`
23440 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.aa.report`
23441 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.example.Makefile`
23442 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.nightly.Makefile`
23443 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.buildrepo.Makefile`
23444 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.jit.Makefile`
23445 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.nightly.report`
23446 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.dsgraph.Makefile`
23447 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.jit.report`
23448 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.typesafe.Makefile`
23449 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.dsgraph.gnuplot`
23450 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.micro.Makefile`
23451 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/Makefile`
23452 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/Makefile`
23453 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/Makefile.spec`
23454 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/CFP2000/Makefile`
23455 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/CFP2000/179.art/Makefile`
23456 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/CFP2000/183.equake/Makefile`
23457 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/CFP2000/188.ammp/Makefile`
23458 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/CINT2000/Makefile`
23459 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/CINT2000/164.gzip/Makefile`
23460 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/CINT2000/175.vpr/Makefile`
23461 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/CINT2000/176.gcc/Makefile`
23462 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/CINT2000/181.mcf/Makefile`
23463 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/CINT2000/186.crafty/Makefile`
23464 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/CINT2000/197.parser/Makefile`
23465 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/CINT2000/254.gap/Makefile`
23466 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/CINT2000/255.vortex/Makefile`
23467 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/CINT2000/256.bzip2/Makefile`
23468 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/CINT2000/300.twolf/Makefile`
23469 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/LLVMSource/Makefile`
23470 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Makefile`
23471 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Makefile.multisrc`
23472 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Applications/Makefile`
23473 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Applications/Burg/Makefile`
23474 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Applications/aha/Makefile`
23475 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Applications/sgefa/Makefile`
23476 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/Makefile`
23477 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/Fhourstones/Makefile`
23478 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/McCat/Makefile`
23479 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/McCat/01-qbsort/Makefile`
23480 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/McCat/03-testtrie/Makefile`
23481 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/McCat/04-bisect/Makefile`
23482 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/McCat/05-eks/Makefile`
23483 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/McCat/08-main/Makefile`
23484 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/McCat/09-vor/Makefile`
23485 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/McCat/12-IOtest/Makefile`
23486 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/McCat/15-trie/Makefile`
23487 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/McCat/17-bintr/Makefile`
23488 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/McCat/18-imp/Makefile`
23489 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/Olden/Makefile`
23490 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/Olden/bh/Makefile`
23491 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/Olden/bisort/Makefile`
23492 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/Olden/em3d/Makefile`
23493 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/Olden/health/Makefile`
23494 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/Olden/mst/Makefile`
23495 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/Olden/perimeter/Makefile`
23496 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/Olden/power/Makefile`
23497 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/Olden/treeadd/Makefile`
23498 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/Olden/tsp/Makefile`
23499 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/Olden/voronoi/Makefile`
23500 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/OptimizerEval/Makefile`
23501 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/Ptrdist/Makefile`
23502 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/Ptrdist/anagram/Makefile`
23503 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/Ptrdist/bc/Makefile`
23504 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/Ptrdist/ft/Makefile`
23505 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/Ptrdist/ks/Makefile`
23506 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/Ptrdist/yacr2/Makefile`
23507 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/llubenchmark/Makefile`
23508 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/sim/Makefile`
23509 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/NoSource/Makefile`
23510 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/NoSource/Flex/Makefile`
23511 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/NoSource/Larn/Makefile`
23512 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/NoSource/Moria-5.5.2/Makefile`
23513 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/NoSource/Povray31/Makefile`
23514 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/NoSource/m4/Makefile`
23515 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/SingleSource/Makefile`
23516 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/SingleSource/Makefile.singlesrc`
23517 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/SingleSource/Gizmos/Makefile`
23518 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/SingleSource/Benchmarks/Makefile`
23519 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/SingleSource/Benchmarks/Dhrystone/Makefile`
23520 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/SingleSource/Benchmarks/Shootout/Makefile`
23521 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/SingleSource/Benchmarks/Stanford/Makefile`
23522 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/SingleSource/Benchmarks/Misc/Makefile`
23523 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/SingleSource/CustomChecked/Makefile`
23524 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/SingleSource/UnitTests/Makefile`
23525 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/SingleSource/UnitTests/SetjmpLongjmp/Makefile`
23526 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/SingleSource/Regression/Makefile`
23527 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/SingleSource/Regression/C/Makefile`
23528 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/SingleSource/Regression/C++/Makefile`
23529 ${srcdir}/autoconf/mkinstalldirs `dirname tools/Makefile`
23530 ${srcdir}/autoconf/mkinstalldirs `dirname tools/analyze/Makefile`
23531 ${srcdir}/autoconf/mkinstalldirs `dirname tools/bugpoint/Makefile`
23532 ${srcdir}/autoconf/mkinstalldirs `dirname tools/extract/Makefile`
23533 ${srcdir}/autoconf/mkinstalldirs `dirname tools/gccas/Makefile`
23534 ${srcdir}/autoconf/mkinstalldirs `dirname tools/gccld/Makefile`
23535 ${srcdir}/autoconf/mkinstalldirs `dirname tools/llc/Makefile`
23536 ${srcdir}/autoconf/mkinstalldirs `dirname tools/llee/Makefile`
23537 ${srcdir}/autoconf/mkinstalldirs `dirname tools/lli/Makefile`
23538 ${srcdir}/autoconf/mkinstalldirs `dirname tools/llvm-ar/Makefile`
23539 ${srcdir}/autoconf/mkinstalldirs `dirname tools/llvm-as/Makefile`
23540 ${srcdir}/autoconf/mkinstalldirs `dirname tools/llvm-dis/Makefile`
23541 ${srcdir}/autoconf/mkinstalldirs `dirname tools/llvm-link/Makefile`
23542 ${srcdir}/autoconf/mkinstalldirs `dirname tools/opt/Makefile`
23543 ${srcdir}/autoconf/mkinstalldirs `dirname utils/Makefile`
23544 ${srcdir}/autoconf/mkinstalldirs `dirname www/docs/Makefile`
23545 ${srcdir}/autoconf/mkinstalldirs `dirname projects/Makefile`
23546 ${srcdir}/autoconf/mkinstalldirs `dirname projects/sample/Makefile`
23547 ${srcdir}/autoconf/mkinstalldirs `dirname projects/sample/Makefile.common`
23548 ${srcdir}/autoconf/mkinstalldirs `dirname projects/sample/Makefile.config`
23549 ${srcdir}/autoconf/mkinstalldirs `dirname projects/sample/lib/Makefile`
23550 ${srcdir}/autoconf/mkinstalldirs `dirname projects/sample/lib/sample/Makefile`
23551 ${srcdir}/autoconf/mkinstalldirs `dirname projects/sample/tools/Makefile`
23552 ${srcdir}/autoconf/mkinstalldirs `dirname projects/sample/tools/sample/Makefile`
23553 ${srcdir}/autoconf/mkinstalldirs `dirname projects/ModuleMaker/Makefile`
23554 ${srcdir}/autoconf/mkinstalldirs `dirname projects/ModuleMaker/Makefile.common`
23555 ${srcdir}/autoconf/mkinstalldirs `dirname projects/ModuleMaker/tools/Makefile`
23556 ${srcdir}/autoconf/mkinstalldirs `dirname projects/ModuleMaker/tools/ModuleMaker/Makefile`
23557 ${srcdir}/autoconf/mkinstalldirs `dirname support/Makefile`
23558 ${srcdir}/autoconf/mkinstalldirs `dirname support/lib/Makefile`
23559 ${srcdir}/autoconf/mkinstalldirs `dirname support/lib/Support/Makefile`
23560 ${srcdir}/autoconf/mkinstalldirs `dirname support/tools/Makefile`
23561 ${srcdir}/autoconf/mkinstalldirs `dirname support/tools/Burg/Makefile`
23562 ${srcdir}/autoconf/mkinstalldirs `dirname support/tools/Burg/Doc/Makefile`
23563 ${srcdir}/autoconf/mkinstalldirs `dirname support/tools/TableGen/Makefile`
23564
23565 _ACEOF
23566
23567
23568
23569 cat >>$CONFIG_STATUS <<\_ACEOF
23570 for ac_config_target in $ac_config_targets
23571 do
23572   case "$ac_config_target" in
23573   # Handling of arguments.
23574   "Makefile.config" ) CONFIG_FILES="$CONFIG_FILES Makefile.config" ;;
23575   "Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
23576   "Makefile.common" ) CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.common" ;;
23577   "Makefile.rules" ) CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.rules" ;;
23578   "lib/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;;
23579   "lib/Analysis/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Analysis/Makefile" ;;
23580   "lib/Analysis/DataStructure/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Analysis/DataStructure/Makefile" ;;
23581   "lib/Analysis/IPA/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Analysis/IPA/Makefile" ;;
23582   "lib/Analysis/LiveVar/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Analysis/LiveVar/Makefile" ;;
23583   "lib/AsmParser/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/AsmParser/Makefile" ;;
23584   "lib/Bytecode/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Bytecode/Makefile" ;;
23585   "lib/Bytecode/Reader/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Bytecode/Reader/Makefile" ;;
23586   "lib/Bytecode/Writer/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Bytecode/Writer/Makefile" ;;
23587   "lib/CWriter/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/CWriter/Makefile" ;;
23588   "lib/CodeGen/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/CodeGen/Makefile" ;;
23589   "lib/CodeGen/InstrSched/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/CodeGen/InstrSched/Makefile" ;;
23590   "lib/CodeGen/InstrSelection/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/CodeGen/InstrSelection/Makefile" ;;
23591   "lib/CodeGen/ModuloScheduling/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/CodeGen/ModuloScheduling/Makefile" ;;
23592   "lib/CodeGen/RegAlloc/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/CodeGen/RegAlloc/Makefile" ;;
23593   "lib/CodeGen/SelectionDAG/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/CodeGen/SelectionDAG/Makefile" ;;
23594   "lib/ExecutionEngine/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/ExecutionEngine/Makefile" ;;
23595   "lib/ExecutionEngine/Interpreter/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/ExecutionEngine/Interpreter/Makefile" ;;
23596   "lib/ExecutionEngine/JIT/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/ExecutionEngine/JIT/Makefile" ;;
23597   "lib/Target/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Target/Makefile" ;;
23598   "lib/Target/Sparc/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Target/Sparc/Makefile" ;;
23599   "lib/Target/X86/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Target/X86/Makefile" ;;
23600   "lib/Transforms/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Transforms/Makefile" ;;
23601   "lib/Transforms/Hello/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Transforms/Hello/Makefile" ;;
23602   "lib/Transforms/IPO/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Transforms/IPO/Makefile" ;;
23603   "lib/Transforms/Instrumentation/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Transforms/Instrumentation/Makefile" ;;
23604   "lib/Transforms/Instrumentation/ProfilePaths/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Transforms/Instrumentation/ProfilePaths/Makefile" ;;
23605   "lib/Transforms/Scalar/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Transforms/Scalar/Makefile" ;;
23606   "lib/Transforms/Utils/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Transforms/Utils/Makefile" ;;
23607   "lib/VMCore/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/VMCore/Makefile" ;;
23608   "runtime/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/Makefile" ;;
23609   "runtime/GCCLibraries/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/GCCLibraries/Makefile" ;;
23610   "runtime/GCCLibraries/crtend/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/GCCLibraries/crtend/Makefile" ;;
23611   "runtime/GCCLibraries/libc/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/GCCLibraries/libc/Makefile" ;;
23612   "runtime/GCCLibraries/libcurses/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/GCCLibraries/libcurses/Makefile" ;;
23613   "runtime/GCCLibraries/libg/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/GCCLibraries/libg/Makefile" ;;
23614   "runtime/GCCLibraries/libgcc/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/GCCLibraries/libgcc/Makefile" ;;
23615   "runtime/GCCLibraries/libm/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/GCCLibraries/libm/Makefile" ;;
23616   "runtime/GCCLibraries/libmalloc/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/GCCLibraries/libmalloc/Makefile" ;;
23617   "runtime/GCCLibraries/libtermcap/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/GCCLibraries/libtermcap/Makefile" ;;
23618   "runtime/GCCLibraries/libucb/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/GCCLibraries/libucb/Makefile" ;;
23619   "runtime/GCCLibraries/libutempter/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/GCCLibraries/libutempter/Makefile" ;;
23620   "runtime/GCCLibraries/libutil/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/GCCLibraries/libutil/Makefile" ;;
23621   "runtime/libdummy/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/libdummy/Makefile" ;;
23622   "runtime/libtrace/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/libtrace/Makefile" ;;
23623   "test/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile" ;;
23624   "test/Makefile.tests" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile.tests" ;;
23625   "test/QMTestDB/QMTest/llvm.py" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/QMTestDB/QMTest/llvm.py" ;;
23626   "test/Programs/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/Makefile" ;;
23627   "test/Programs/Makefile.programs" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/Makefile.programs" ;;
23628   "test/Programs/TEST.aa.Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.aa.Makefile" ;;
23629   "test/Programs/TEST.dsgraph.report" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.dsgraph.report" ;;
23630   "test/Programs/TEST.micro.report" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.micro.report" ;;
23631   "test/Programs/TEST.aa.report" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.aa.report" ;;
23632   "test/Programs/TEST.example.Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.example.Makefile" ;;
23633   "test/Programs/TEST.nightly.Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.nightly.Makefile" ;;
23634   "test/Programs/TEST.buildrepo.Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.buildrepo.Makefile" ;;
23635   "test/Programs/TEST.jit.Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.jit.Makefile" ;;
23636   "test/Programs/TEST.nightly.report" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.nightly.report" ;;
23637   "test/Programs/TEST.dsgraph.Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.dsgraph.Makefile" ;;
23638   "test/Programs/TEST.jit.report" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.jit.report" ;;
23639   "test/Programs/TEST.typesafe.Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.typesafe.Makefile" ;;
23640   "test/Programs/TEST.dsgraph.gnuplot" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.dsgraph.gnuplot" ;;
23641   "test/Programs/TEST.micro.Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.micro.Makefile" ;;
23642   "test/Programs/External/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/Makefile" ;;
23643   "test/Programs/External/SPEC/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/Makefile" ;;
23644   "test/Programs/External/SPEC/Makefile.spec" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/Makefile.spec" ;;
23645   "test/Programs/External/SPEC/CFP2000/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/CFP2000/Makefile" ;;
23646   "test/Programs/External/SPEC/CFP2000/179.art/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/CFP2000/179.art/Makefile" ;;
23647   "test/Programs/External/SPEC/CFP2000/183.equake/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/CFP2000/183.equake/Makefile" ;;
23648   "test/Programs/External/SPEC/CFP2000/188.ammp/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/CFP2000/188.ammp/Makefile" ;;
23649   "test/Programs/External/SPEC/CINT2000/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/CINT2000/Makefile" ;;
23650   "test/Programs/External/SPEC/CINT2000/164.gzip/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/CINT2000/164.gzip/Makefile" ;;
23651   "test/Programs/External/SPEC/CINT2000/175.vpr/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/CINT2000/175.vpr/Makefile" ;;
23652   "test/Programs/External/SPEC/CINT2000/176.gcc/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/CINT2000/176.gcc/Makefile" ;;
23653   "test/Programs/External/SPEC/CINT2000/181.mcf/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/CINT2000/181.mcf/Makefile" ;;
23654   "test/Programs/External/SPEC/CINT2000/186.crafty/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/CINT2000/186.crafty/Makefile" ;;
23655   "test/Programs/External/SPEC/CINT2000/197.parser/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/CINT2000/197.parser/Makefile" ;;
23656   "test/Programs/External/SPEC/CINT2000/254.gap/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/CINT2000/254.gap/Makefile" ;;
23657   "test/Programs/External/SPEC/CINT2000/255.vortex/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/CINT2000/255.vortex/Makefile" ;;
23658   "test/Programs/External/SPEC/CINT2000/256.bzip2/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/CINT2000/256.bzip2/Makefile" ;;
23659   "test/Programs/External/SPEC/CINT2000/300.twolf/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/CINT2000/300.twolf/Makefile" ;;
23660   "test/Programs/LLVMSource/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/LLVMSource/Makefile" ;;
23661   "test/Programs/MultiSource/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Makefile" ;;
23662   "test/Programs/MultiSource/Makefile.multisrc" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Makefile.multisrc" ;;
23663   "test/Programs/MultiSource/Applications/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Applications/Makefile" ;;
23664   "test/Programs/MultiSource/Applications/Burg/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Applications/Burg/Makefile" ;;
23665   "test/Programs/MultiSource/Applications/aha/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Applications/aha/Makefile" ;;
23666   "test/Programs/MultiSource/Applications/sgefa/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Applications/sgefa/Makefile" ;;
23667   "test/Programs/MultiSource/Benchmarks/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/Makefile" ;;
23668   "test/Programs/MultiSource/Benchmarks/Fhourstones/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/Fhourstones/Makefile" ;;
23669   "test/Programs/MultiSource/Benchmarks/McCat/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/McCat/Makefile" ;;
23670   "test/Programs/MultiSource/Benchmarks/McCat/01-qbsort/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/McCat/01-qbsort/Makefile" ;;
23671   "test/Programs/MultiSource/Benchmarks/McCat/03-testtrie/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/McCat/03-testtrie/Makefile" ;;
23672   "test/Programs/MultiSource/Benchmarks/McCat/04-bisect/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/McCat/04-bisect/Makefile" ;;
23673   "test/Programs/MultiSource/Benchmarks/McCat/05-eks/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/McCat/05-eks/Makefile" ;;
23674   "test/Programs/MultiSource/Benchmarks/McCat/08-main/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/McCat/08-main/Makefile" ;;
23675   "test/Programs/MultiSource/Benchmarks/McCat/09-vor/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/McCat/09-vor/Makefile" ;;
23676   "test/Programs/MultiSource/Benchmarks/McCat/12-IOtest/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/McCat/12-IOtest/Makefile" ;;
23677   "test/Programs/MultiSource/Benchmarks/McCat/15-trie/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/McCat/15-trie/Makefile" ;;
23678   "test/Programs/MultiSource/Benchmarks/McCat/17-bintr/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/McCat/17-bintr/Makefile" ;;
23679   "test/Programs/MultiSource/Benchmarks/McCat/18-imp/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/McCat/18-imp/Makefile" ;;
23680   "test/Programs/MultiSource/Benchmarks/Olden/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/Olden/Makefile" ;;
23681   "test/Programs/MultiSource/Benchmarks/Olden/bh/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/Olden/bh/Makefile" ;;
23682   "test/Programs/MultiSource/Benchmarks/Olden/bisort/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/Olden/bisort/Makefile" ;;
23683   "test/Programs/MultiSource/Benchmarks/Olden/em3d/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/Olden/em3d/Makefile" ;;
23684   "test/Programs/MultiSource/Benchmarks/Olden/health/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/Olden/health/Makefile" ;;
23685   "test/Programs/MultiSource/Benchmarks/Olden/mst/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/Olden/mst/Makefile" ;;
23686   "test/Programs/MultiSource/Benchmarks/Olden/perimeter/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/Olden/perimeter/Makefile" ;;
23687   "test/Programs/MultiSource/Benchmarks/Olden/power/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/Olden/power/Makefile" ;;
23688   "test/Programs/MultiSource/Benchmarks/Olden/treeadd/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/Olden/treeadd/Makefile" ;;
23689   "test/Programs/MultiSource/Benchmarks/Olden/tsp/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/Olden/tsp/Makefile" ;;
23690   "test/Programs/MultiSource/Benchmarks/Olden/voronoi/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/Olden/voronoi/Makefile" ;;
23691   "test/Programs/MultiSource/Benchmarks/OptimizerEval/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/OptimizerEval/Makefile" ;;
23692   "test/Programs/MultiSource/Benchmarks/Ptrdist/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/Ptrdist/Makefile" ;;
23693   "test/Programs/MultiSource/Benchmarks/Ptrdist/anagram/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/Ptrdist/anagram/Makefile" ;;
23694   "test/Programs/MultiSource/Benchmarks/Ptrdist/bc/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/Ptrdist/bc/Makefile" ;;
23695   "test/Programs/MultiSource/Benchmarks/Ptrdist/ft/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/Ptrdist/ft/Makefile" ;;
23696   "test/Programs/MultiSource/Benchmarks/Ptrdist/ks/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/Ptrdist/ks/Makefile" ;;
23697   "test/Programs/MultiSource/Benchmarks/Ptrdist/yacr2/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/Ptrdist/yacr2/Makefile" ;;
23698   "test/Programs/MultiSource/Benchmarks/llubenchmark/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/llubenchmark/Makefile" ;;
23699   "test/Programs/MultiSource/Benchmarks/sim/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/sim/Makefile" ;;
23700   "test/Programs/NoSource/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/NoSource/Makefile" ;;
23701   "test/Programs/NoSource/Flex/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/NoSource/Flex/Makefile" ;;
23702   "test/Programs/NoSource/Larn/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/NoSource/Larn/Makefile" ;;
23703   "test/Programs/NoSource/Moria-5.5.2/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/NoSource/Moria-5.5.2/Makefile" ;;
23704   "test/Programs/NoSource/Povray31/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/NoSource/Povray31/Makefile" ;;
23705   "test/Programs/NoSource/m4/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/NoSource/m4/Makefile" ;;
23706   "test/Programs/SingleSource/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/SingleSource/Makefile" ;;
23707   "test/Programs/SingleSource/Makefile.singlesrc" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/SingleSource/Makefile.singlesrc" ;;
23708   "test/Programs/SingleSource/Gizmos/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/SingleSource/Gizmos/Makefile" ;;
23709   "test/Programs/SingleSource/Benchmarks/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/SingleSource/Benchmarks/Makefile" ;;
23710   "test/Programs/SingleSource/Benchmarks/Dhrystone/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/SingleSource/Benchmarks/Dhrystone/Makefile" ;;
23711   "test/Programs/SingleSource/Benchmarks/Shootout/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/SingleSource/Benchmarks/Shootout/Makefile" ;;
23712   "test/Programs/SingleSource/Benchmarks/Stanford/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/SingleSource/Benchmarks/Stanford/Makefile" ;;
23713   "test/Programs/SingleSource/Benchmarks/Misc/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/SingleSource/Benchmarks/Misc/Makefile" ;;
23714   "test/Programs/SingleSource/CustomChecked/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/SingleSource/CustomChecked/Makefile" ;;
23715   "test/Programs/SingleSource/UnitTests/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/SingleSource/UnitTests/Makefile" ;;
23716   "test/Programs/SingleSource/UnitTests/SetjmpLongjmp/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/SingleSource/UnitTests/SetjmpLongjmp/Makefile" ;;
23717   "test/Programs/SingleSource/Regression/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/SingleSource/Regression/Makefile" ;;
23718   "test/Programs/SingleSource/Regression/C/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/SingleSource/Regression/C/Makefile" ;;
23719   "test/Programs/SingleSource/Regression/C++/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/SingleSource/Regression/C++/Makefile" ;;
23720   "tools/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;;
23721   "tools/analyze/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/analyze/Makefile" ;;
23722   "tools/bugpoint/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/bugpoint/Makefile" ;;
23723   "tools/extract/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/extract/Makefile" ;;
23724   "tools/gccas/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/gccas/Makefile" ;;
23725   "tools/gccld/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/gccld/Makefile" ;;
23726   "tools/llc/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/llc/Makefile" ;;
23727   "tools/llee/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/llee/Makefile" ;;
23728   "tools/lli/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/lli/Makefile" ;;
23729   "tools/llvm-ar/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/llvm-ar/Makefile" ;;
23730   "tools/llvm-as/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/llvm-as/Makefile" ;;
23731   "tools/llvm-dis/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/llvm-dis/Makefile" ;;
23732   "tools/llvm-link/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/llvm-link/Makefile" ;;
23733   "tools/opt/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/opt/Makefile" ;;
23734   "utils/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Makefile" ;;
23735   "www/docs/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS www/docs/Makefile" ;;
23736   "projects/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Makefile" ;;
23737   "projects/sample/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS projects/sample/Makefile" ;;
23738   "projects/sample/Makefile.common" ) CONFIG_COMMANDS="$CONFIG_COMMANDS projects/sample/Makefile.common" ;;
23739   "projects/sample/Makefile.config" ) CONFIG_COMMANDS="$CONFIG_COMMANDS projects/sample/Makefile.config" ;;
23740   "projects/sample/lib/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS projects/sample/lib/Makefile" ;;
23741   "projects/sample/lib/sample/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS projects/sample/lib/sample/Makefile" ;;
23742   "projects/sample/tools/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS projects/sample/tools/Makefile" ;;
23743   "projects/sample/tools/sample/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS projects/sample/tools/sample/Makefile" ;;
23744   "projects/ModuleMaker/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS projects/ModuleMaker/Makefile" ;;
23745   "projects/ModuleMaker/Makefile.common" ) CONFIG_COMMANDS="$CONFIG_COMMANDS projects/ModuleMaker/Makefile.common" ;;
23746   "projects/ModuleMaker/tools/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS projects/ModuleMaker/tools/Makefile" ;;
23747   "projects/ModuleMaker/tools/ModuleMaker/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS projects/ModuleMaker/tools/ModuleMaker/Makefile" ;;
23748   "support/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS support/Makefile" ;;
23749   "support/lib/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS support/lib/Makefile" ;;
23750   "support/lib/Support/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS support/lib/Support/Makefile" ;;
23751   "support/tools/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS support/tools/Makefile" ;;
23752   "support/tools/Burg/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS support/tools/Burg/Makefile" ;;
23753   "support/tools/Burg/Doc/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS support/tools/Burg/Doc/Makefile" ;;
23754   "support/tools/TableGen/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS support/tools/TableGen/Makefile" ;;
23755   "include/Config/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/Config/config.h" ;;
23756   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
23757 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
23758    { (exit 1); exit 1; }; };;
23759   esac
23760 done
23761
23762 # If the user did not use the arguments to specify the items to instantiate,
23763 # then the envvar interface is used.  Set only those that are not.
23764 # We use the long form for the default assignment because of an extremely
23765 # bizarre bug on SunOS 4.1.3.
23766 if $ac_need_defaults; then
23767   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
23768   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
23769   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
23770 fi
23771
23772 # Have a temporary directory for convenience.  Make it in the build tree
23773 # simply because there is no reason to put it here, and in addition,
23774 # creating and moving files from /tmp can sometimes cause problems.
23775 # Create a temporary directory, and hook for its removal unless debugging.
23776 $debug ||
23777 {
23778   trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
23779   trap '{ (exit 1); exit 1; }' 1 2 13 15
23780 }
23781
23782 # Create a (secure) tmp directory for tmp files.
23783
23784 {
23785   tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
23786   test -n "$tmp" && test -d "$tmp"
23787 }  ||
23788 {
23789   tmp=./confstat$$-$RANDOM
23790   (umask 077 && mkdir $tmp)
23791 } ||
23792 {
23793    echo "$me: cannot create a temporary directory in ." >&2
23794    { (exit 1); exit 1; }
23795 }
23796
23797 _ACEOF
23798
23799 cat >>$CONFIG_STATUS <<_ACEOF
23800
23801 #
23802 # CONFIG_FILES section.
23803 #
23804
23805 # No need to generate the scripts if there are no CONFIG_FILES.
23806 # This happens for instance when ./config.status config.h
23807 if test -n "\$CONFIG_FILES"; then
23808   # Protect against being on the right side of a sed subst in config.status.
23809   sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
23810    s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
23811 s,@SHELL@,$SHELL,;t t
23812 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
23813 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
23814 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
23815 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
23816 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
23817 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
23818 s,@exec_prefix@,$exec_prefix,;t t
23819 s,@prefix@,$prefix,;t t
23820 s,@program_transform_name@,$program_transform_name,;t t
23821 s,@bindir@,$bindir,;t t
23822 s,@sbindir@,$sbindir,;t t
23823 s,@libexecdir@,$libexecdir,;t t
23824 s,@datadir@,$datadir,;t t
23825 s,@sysconfdir@,$sysconfdir,;t t
23826 s,@sharedstatedir@,$sharedstatedir,;t t
23827 s,@localstatedir@,$localstatedir,;t t
23828 s,@libdir@,$libdir,;t t
23829 s,@includedir@,$includedir,;t t
23830 s,@oldincludedir@,$oldincludedir,;t t
23831 s,@infodir@,$infodir,;t t
23832 s,@mandir@,$mandir,;t t
23833 s,@build_alias@,$build_alias,;t t
23834 s,@host_alias@,$host_alias,;t t
23835 s,@target_alias@,$target_alias,;t t
23836 s,@DEFS@,$DEFS,;t t
23837 s,@ECHO_C@,$ECHO_C,;t t
23838 s,@ECHO_N@,$ECHO_N,;t t
23839 s,@ECHO_T@,$ECHO_T,;t t
23840 s,@LIBS@,$LIBS,;t t
23841 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
23842 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
23843 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
23844 s,@build@,$build,;t t
23845 s,@build_cpu@,$build_cpu,;t t
23846 s,@build_vendor@,$build_vendor,;t t
23847 s,@build_os@,$build_os,;t t
23848 s,@host@,$host,;t t
23849 s,@host_cpu@,$host_cpu,;t t
23850 s,@host_vendor@,$host_vendor,;t t
23851 s,@host_os@,$host_os,;t t
23852 s,@target@,$target,;t t
23853 s,@target_cpu@,$target_cpu,;t t
23854 s,@target_vendor@,$target_vendor,;t t
23855 s,@target_os@,$target_os,;t t
23856 s,@OS@,$OS,;t t
23857 s,@LLVMGCCDIR@,$LLVMGCCDIR,;t t
23858 s,@ARCH@,$ARCH,;t t
23859 s,@CXX@,$CXX,;t t
23860 s,@CXXFLAGS@,$CXXFLAGS,;t t
23861 s,@LDFLAGS@,$LDFLAGS,;t t
23862 s,@CPPFLAGS@,$CPPFLAGS,;t t
23863 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
23864 s,@EXEEXT@,$EXEEXT,;t t
23865 s,@OBJEXT@,$OBJEXT,;t t
23866 s,@CC@,$CC,;t t
23867 s,@CFLAGS@,$CFLAGS,;t t
23868 s,@ac_ct_CC@,$ac_ct_CC,;t t
23869 s,@CPP@,$CPP,;t t
23870 s,@ifGNUmake@,$ifGNUmake,;t t
23871 s,@LEX@,$LEX,;t t
23872 s,@LEXLIB@,$LEXLIB,;t t
23873 s,@LEX_OUTPUT_ROOT@,$LEX_OUTPUT_ROOT,;t t
23874 s,@YACC@,$YACC,;t t
23875 s,@EGREP@,$EGREP,;t t
23876 s,@LN_S@,$LN_S,;t t
23877 s,@ECHO@,$ECHO,;t t
23878 s,@AR@,$AR,;t t
23879 s,@ac_ct_AR@,$ac_ct_AR,;t t
23880 s,@RANLIB@,$RANLIB,;t t
23881 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
23882 s,@STRIP@,$STRIP,;t t
23883 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
23884 s,@CXXCPP@,$CXXCPP,;t t
23885 s,@F77@,$F77,;t t
23886 s,@FFLAGS@,$FFLAGS,;t t
23887 s,@ac_ct_F77@,$ac_ct_F77,;t t
23888 s,@LIBTOOL@,$LIBTOOL,;t t
23889 s,@RPWD@,$RPWD,;t t
23890 s,@SED@,$SED,;t t
23891 s,@RM@,$RM,;t t
23892 s,@MKDIR@,$MKDIR,;t t
23893 s,@DATE@,$DATE,;t t
23894 s,@MV@,$MV,;t t
23895 s,@DOT@,$DOT,;t t
23896 s,@ETAGS@,$ETAGS,;t t
23897 s,@PURIFY@,$PURIFY,;t t
23898 s,@PYTHON@,$PYTHON,;t t
23899 s,@QMTEST@,$QMTEST,;t t
23900 s,@ALLOCA@,$ALLOCA,;t t
23901 s,@LIBOBJS@,$LIBOBJS,;t t
23902 s,@MMAP_FILE@,$MMAP_FILE,;t t
23903 s,@ENABLE_PURIFY@,$ENABLE_PURIFY,;t t
23904 s,@ENABLE_OPTIMIZED@,$ENABLE_OPTIMIZED,;t t
23905 s,@USE_SPEC@,$USE_SPEC,;t t
23906 s,@UPB@,$UPB,;t t
23907 s,@DISABLE_LLC_DIFFS@,$DISABLE_LLC_DIFFS,;t t
23908 s,@JIT@,$JIT,;t t
23909 s,@SPEC_ROOT@,$SPEC_ROOT,;t t
23910 s,@BCR@,$BCR,;t t
23911 s,@PAPIDIR@,$PAPIDIR,;t t
23912 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
23913 CEOF
23914
23915 _ACEOF
23916
23917   cat >>$CONFIG_STATUS <<\_ACEOF
23918   # Split the substitutions into bite-sized pieces for seds with
23919   # small command number limits, like on Digital OSF/1 and HP-UX.
23920   ac_max_sed_lines=48
23921   ac_sed_frag=1 # Number of current file.
23922   ac_beg=1 # First line for current file.
23923   ac_end=$ac_max_sed_lines # Line after last line for current file.
23924   ac_more_lines=:
23925   ac_sed_cmds=
23926   while $ac_more_lines; do
23927     if test $ac_beg -gt 1; then
23928       sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
23929     else
23930       sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
23931     fi
23932     if test ! -s $tmp/subs.frag; then
23933       ac_more_lines=false
23934     else
23935       # The purpose of the label and of the branching condition is to
23936       # speed up the sed processing (if there are no `@' at all, there
23937       # is no need to browse any of the substitutions).
23938       # These are the two extra sed commands mentioned above.
23939       (echo ':t
23940   /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
23941       if test -z "$ac_sed_cmds"; then
23942         ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
23943       else
23944         ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
23945       fi
23946       ac_sed_frag=`expr $ac_sed_frag + 1`
23947       ac_beg=$ac_end
23948       ac_end=`expr $ac_end + $ac_max_sed_lines`
23949     fi
23950   done
23951   if test -z "$ac_sed_cmds"; then
23952     ac_sed_cmds=cat
23953   fi
23954 fi # test -n "$CONFIG_FILES"
23955
23956 _ACEOF
23957 cat >>$CONFIG_STATUS <<\_ACEOF
23958 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
23959   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
23960   case $ac_file in
23961   - | *:- | *:-:* ) # input from stdin
23962         cat >$tmp/stdin
23963         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
23964         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
23965   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
23966         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
23967   * )   ac_file_in=$ac_file.in ;;
23968   esac
23969
23970   # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
23971   ac_dir=`(dirname "$ac_file") 2>/dev/null ||
23972 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23973          X"$ac_file" : 'X\(//\)[^/]' \| \
23974          X"$ac_file" : 'X\(//\)$' \| \
23975          X"$ac_file" : 'X\(/\)' \| \
23976          .     : '\(.\)' 2>/dev/null ||
23977 echo X"$ac_file" |
23978     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23979           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23980           /^X\(\/\/\)$/{ s//\1/; q; }
23981           /^X\(\/\).*/{ s//\1/; q; }
23982           s/.*/./; q'`
23983   { if $as_mkdir_p; then
23984     mkdir -p "$ac_dir"
23985   else
23986     as_dir="$ac_dir"
23987     as_dirs=
23988     while test ! -d "$as_dir"; do
23989       as_dirs="$as_dir $as_dirs"
23990       as_dir=`(dirname "$as_dir") 2>/dev/null ||
23991 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23992          X"$as_dir" : 'X\(//\)[^/]' \| \
23993          X"$as_dir" : 'X\(//\)$' \| \
23994          X"$as_dir" : 'X\(/\)' \| \
23995          .     : '\(.\)' 2>/dev/null ||
23996 echo X"$as_dir" |
23997     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23998           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23999           /^X\(\/\/\)$/{ s//\1/; q; }
24000           /^X\(\/\).*/{ s//\1/; q; }
24001           s/.*/./; q'`
24002     done
24003     test ! -n "$as_dirs" || mkdir $as_dirs
24004   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
24005 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
24006    { (exit 1); exit 1; }; }; }
24007
24008   ac_builddir=.
24009
24010 if test "$ac_dir" != .; then
24011   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
24012   # A "../" for each directory in $ac_dir_suffix.
24013   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
24014 else
24015   ac_dir_suffix= ac_top_builddir=
24016 fi
24017
24018 case $srcdir in
24019   .)  # No --srcdir option.  We are building in place.
24020     ac_srcdir=.
24021     if test -z "$ac_top_builddir"; then
24022        ac_top_srcdir=.
24023     else
24024        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
24025     fi ;;
24026   [\\/]* | ?:[\\/]* )  # Absolute path.
24027     ac_srcdir=$srcdir$ac_dir_suffix;
24028     ac_top_srcdir=$srcdir ;;
24029   *) # Relative path.
24030     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
24031     ac_top_srcdir=$ac_top_builddir$srcdir ;;
24032 esac
24033 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
24034 # absolute.
24035 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
24036 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
24037 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
24038 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
24039
24040
24041   case $INSTALL in
24042   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
24043   *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
24044   esac
24045
24046   if test x"$ac_file" != x-; then
24047     { echo "$as_me:$LINENO: creating $ac_file" >&5
24048 echo "$as_me: creating $ac_file" >&6;}
24049     rm -f "$ac_file"
24050   fi
24051   # Let's still pretend it is `configure' which instantiates (i.e., don't
24052   # use $as_me), people would be surprised to read:
24053   #    /* config.h.  Generated by config.status.  */
24054   if test x"$ac_file" = x-; then
24055     configure_input=
24056   else
24057     configure_input="$ac_file.  "
24058   fi
24059   configure_input=$configure_input"Generated from `echo $ac_file_in |
24060                                      sed 's,.*/,,'` by configure."
24061
24062   # First look for the input files in the build tree, otherwise in the
24063   # src tree.
24064   ac_file_inputs=`IFS=:
24065     for f in $ac_file_in; do
24066       case $f in
24067       -) echo $tmp/stdin ;;
24068       [\\/$]*)
24069          # Absolute (can't be DOS-style, as IFS=:)
24070          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
24071 echo "$as_me: error: cannot find input file: $f" >&2;}
24072    { (exit 1); exit 1; }; }
24073          echo $f;;
24074       *) # Relative
24075          if test -f "$f"; then
24076            # Build tree
24077            echo $f
24078          elif test -f "$srcdir/$f"; then
24079            # Source tree
24080            echo $srcdir/$f
24081          else
24082            # /dev/null tree
24083            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
24084 echo "$as_me: error: cannot find input file: $f" >&2;}
24085    { (exit 1); exit 1; }; }
24086          fi;;
24087       esac
24088     done` || { (exit 1); exit 1; }
24089 _ACEOF
24090 cat >>$CONFIG_STATUS <<_ACEOF
24091   sed "$ac_vpsub
24092 $extrasub
24093 _ACEOF
24094 cat >>$CONFIG_STATUS <<\_ACEOF
24095 :t
24096 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
24097 s,@configure_input@,$configure_input,;t t
24098 s,@srcdir@,$ac_srcdir,;t t
24099 s,@abs_srcdir@,$ac_abs_srcdir,;t t
24100 s,@top_srcdir@,$ac_top_srcdir,;t t
24101 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
24102 s,@builddir@,$ac_builddir,;t t
24103 s,@abs_builddir@,$ac_abs_builddir,;t t
24104 s,@top_builddir@,$ac_top_builddir,;t t
24105 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
24106 s,@INSTALL@,$ac_INSTALL,;t t
24107 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
24108   rm -f $tmp/stdin
24109   if test x"$ac_file" != x-; then
24110     mv $tmp/out $ac_file
24111   else
24112     cat $tmp/out
24113     rm -f $tmp/out
24114   fi
24115
24116 done
24117 _ACEOF
24118 cat >>$CONFIG_STATUS <<\_ACEOF
24119
24120 #
24121 # CONFIG_HEADER section.
24122 #
24123
24124 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
24125 # NAME is the cpp macro being defined and VALUE is the value it is being given.
24126 #
24127 # ac_d sets the value in "#define NAME VALUE" lines.
24128 ac_dA='s,^\([   ]*\)#\([        ]*define[       ][      ]*\)'
24129 ac_dB='[        ].*$,\1#\2'
24130 ac_dC=' '
24131 ac_dD=',;t'
24132 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
24133 ac_uA='s,^\([   ]*\)#\([        ]*\)undef\([    ][      ]*\)'
24134 ac_uB='$,\1#\2define\3'
24135 ac_uC=' '
24136 ac_uD=',;t'
24137
24138 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
24139   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
24140   case $ac_file in
24141   - | *:- | *:-:* ) # input from stdin
24142         cat >$tmp/stdin
24143         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
24144         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
24145   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
24146         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
24147   * )   ac_file_in=$ac_file.in ;;
24148   esac
24149
24150   test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
24151 echo "$as_me: creating $ac_file" >&6;}
24152
24153   # First look for the input files in the build tree, otherwise in the
24154   # src tree.
24155   ac_file_inputs=`IFS=:
24156     for f in $ac_file_in; do
24157       case $f in
24158       -) echo $tmp/stdin ;;
24159       [\\/$]*)
24160          # Absolute (can't be DOS-style, as IFS=:)
24161          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
24162 echo "$as_me: error: cannot find input file: $f" >&2;}
24163    { (exit 1); exit 1; }; }
24164          echo $f;;
24165       *) # Relative
24166          if test -f "$f"; then
24167            # Build tree
24168            echo $f
24169          elif test -f "$srcdir/$f"; then
24170            # Source tree
24171            echo $srcdir/$f
24172          else
24173            # /dev/null tree
24174            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
24175 echo "$as_me: error: cannot find input file: $f" >&2;}
24176    { (exit 1); exit 1; }; }
24177          fi;;
24178       esac
24179     done` || { (exit 1); exit 1; }
24180   # Remove the trailing spaces.
24181   sed 's/[      ]*$//' $ac_file_inputs >$tmp/in
24182
24183 _ACEOF
24184
24185 # Transform confdefs.h into two sed scripts, `conftest.defines' and
24186 # `conftest.undefs', that substitutes the proper values into
24187 # config.h.in to produce config.h.  The first handles `#define'
24188 # templates, and the second `#undef' templates.
24189 # And first: Protect against being on the right side of a sed subst in
24190 # config.status.  Protect against being in an unquoted here document
24191 # in config.status.
24192 rm -f conftest.defines conftest.undefs
24193 # Using a here document instead of a string reduces the quoting nightmare.
24194 # Putting comments in sed scripts is not portable.
24195 #
24196 # `end' is used to avoid that the second main sed command (meant for
24197 # 0-ary CPP macros) applies to n-ary macro definitions.
24198 # See the Autoconf documentation for `clear'.
24199 cat >confdef2sed.sed <<\_ACEOF
24200 s/[\\&,]/\\&/g
24201 s,[\\$`],\\&,g
24202 t clear
24203 : clear
24204 s,^[    ]*#[    ]*define[       ][      ]*\([^  (][^    (]*\)\(([^)]*)\)[       ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
24205 t end
24206 s,^[    ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
24207 : end
24208 _ACEOF
24209 # If some macros were called several times there might be several times
24210 # the same #defines, which is useless.  Nevertheless, we may not want to
24211 # sort them, since we want the *last* AC-DEFINE to be honored.
24212 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
24213 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
24214 rm -f confdef2sed.sed
24215
24216 # This sed command replaces #undef with comments.  This is necessary, for
24217 # example, in the case of _POSIX_SOURCE, which is predefined and required
24218 # on some systems where configure will not decide to define it.
24219 cat >>conftest.undefs <<\_ACEOF
24220 s,^[    ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
24221 _ACEOF
24222
24223 # Break up conftest.defines because some shells have a limit on the size
24224 # of here documents, and old seds have small limits too (100 cmds).
24225 echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
24226 echo '  if grep "^[     ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
24227 echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
24228 echo '  :' >>$CONFIG_STATUS
24229 rm -f conftest.tail
24230 while grep . conftest.defines >/dev/null
24231 do
24232   # Write a limited-size here document to $tmp/defines.sed.
24233   echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
24234   # Speed up: don't consider the non `#define' lines.
24235   echo '/^[     ]*#[    ]*define/!b' >>$CONFIG_STATUS
24236   # Work around the forget-to-reset-the-flag bug.
24237   echo 't clr' >>$CONFIG_STATUS
24238   echo ': clr' >>$CONFIG_STATUS
24239   sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
24240   echo 'CEOF
24241   sed -f $tmp/defines.sed $tmp/in >$tmp/out
24242   rm -f $tmp/in
24243   mv $tmp/out $tmp/in
24244 ' >>$CONFIG_STATUS
24245   sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
24246   rm -f conftest.defines
24247   mv conftest.tail conftest.defines
24248 done
24249 rm -f conftest.defines
24250 echo '  fi # grep' >>$CONFIG_STATUS
24251 echo >>$CONFIG_STATUS
24252
24253 # Break up conftest.undefs because some shells have a limit on the size
24254 # of here documents, and old seds have small limits too (100 cmds).
24255 echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
24256 rm -f conftest.tail
24257 while grep . conftest.undefs >/dev/null
24258 do
24259   # Write a limited-size here document to $tmp/undefs.sed.
24260   echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
24261   # Speed up: don't consider the non `#undef'
24262   echo '/^[     ]*#[    ]*undef/!b' >>$CONFIG_STATUS
24263   # Work around the forget-to-reset-the-flag bug.
24264   echo 't clr' >>$CONFIG_STATUS
24265   echo ': clr' >>$CONFIG_STATUS
24266   sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
24267   echo 'CEOF
24268   sed -f $tmp/undefs.sed $tmp/in >$tmp/out
24269   rm -f $tmp/in
24270   mv $tmp/out $tmp/in
24271 ' >>$CONFIG_STATUS
24272   sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
24273   rm -f conftest.undefs
24274   mv conftest.tail conftest.undefs
24275 done
24276 rm -f conftest.undefs
24277
24278 cat >>$CONFIG_STATUS <<\_ACEOF
24279   # Let's still pretend it is `configure' which instantiates (i.e., don't
24280   # use $as_me), people would be surprised to read:
24281   #    /* config.h.  Generated by config.status.  */
24282   if test x"$ac_file" = x-; then
24283     echo "/* Generated by configure.  */" >$tmp/config.h
24284   else
24285     echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
24286   fi
24287   cat $tmp/in >>$tmp/config.h
24288   rm -f $tmp/in
24289   if test x"$ac_file" != x-; then
24290     if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
24291       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
24292 echo "$as_me: $ac_file is unchanged" >&6;}
24293     else
24294       ac_dir=`(dirname "$ac_file") 2>/dev/null ||
24295 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24296          X"$ac_file" : 'X\(//\)[^/]' \| \
24297          X"$ac_file" : 'X\(//\)$' \| \
24298          X"$ac_file" : 'X\(/\)' \| \
24299          .     : '\(.\)' 2>/dev/null ||
24300 echo X"$ac_file" |
24301     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24302           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24303           /^X\(\/\/\)$/{ s//\1/; q; }
24304           /^X\(\/\).*/{ s//\1/; q; }
24305           s/.*/./; q'`
24306       { if $as_mkdir_p; then
24307     mkdir -p "$ac_dir"
24308   else
24309     as_dir="$ac_dir"
24310     as_dirs=
24311     while test ! -d "$as_dir"; do
24312       as_dirs="$as_dir $as_dirs"
24313       as_dir=`(dirname "$as_dir") 2>/dev/null ||
24314 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24315          X"$as_dir" : 'X\(//\)[^/]' \| \
24316          X"$as_dir" : 'X\(//\)$' \| \
24317          X"$as_dir" : 'X\(/\)' \| \
24318          .     : '\(.\)' 2>/dev/null ||
24319 echo X"$as_dir" |
24320     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24321           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24322           /^X\(\/\/\)$/{ s//\1/; q; }
24323           /^X\(\/\).*/{ s//\1/; q; }
24324           s/.*/./; q'`
24325     done
24326     test ! -n "$as_dirs" || mkdir $as_dirs
24327   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
24328 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
24329    { (exit 1); exit 1; }; }; }
24330
24331       rm -f $ac_file
24332       mv $tmp/config.h $ac_file
24333     fi
24334   else
24335     cat $tmp/config.h
24336     rm -f $tmp/config.h
24337   fi
24338 done
24339 _ACEOF
24340 cat >>$CONFIG_STATUS <<\_ACEOF
24341
24342 #
24343 # CONFIG_COMMANDS section.
24344 #
24345 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
24346   ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
24347   ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
24348   ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
24349 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24350          X"$ac_dest" : 'X\(//\)[^/]' \| \
24351          X"$ac_dest" : 'X\(//\)$' \| \
24352          X"$ac_dest" : 'X\(/\)' \| \
24353          .     : '\(.\)' 2>/dev/null ||
24354 echo X"$ac_dest" |
24355     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24356           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24357           /^X\(\/\/\)$/{ s//\1/; q; }
24358           /^X\(\/\).*/{ s//\1/; q; }
24359           s/.*/./; q'`
24360   ac_builddir=.
24361
24362 if test "$ac_dir" != .; then
24363   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
24364   # A "../" for each directory in $ac_dir_suffix.
24365   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
24366 else
24367   ac_dir_suffix= ac_top_builddir=
24368 fi
24369
24370 case $srcdir in
24371   .)  # No --srcdir option.  We are building in place.
24372     ac_srcdir=.
24373     if test -z "$ac_top_builddir"; then
24374        ac_top_srcdir=.
24375     else
24376        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
24377     fi ;;
24378   [\\/]* | ?:[\\/]* )  # Absolute path.
24379     ac_srcdir=$srcdir$ac_dir_suffix;
24380     ac_top_srcdir=$srcdir ;;
24381   *) # Relative path.
24382     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
24383     ac_top_srcdir=$ac_top_builddir$srcdir ;;
24384 esac
24385 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
24386 # absolute.
24387 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
24388 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
24389 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
24390 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
24391
24392
24393   { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
24394 echo "$as_me: executing $ac_dest commands" >&6;}
24395   case $ac_dest in
24396     Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/Makefile Makefile ;;
24397     Makefile.common ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/Makefile.common Makefile.common ;;
24398     Makefile.rules ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/Makefile.rules Makefile.rules ;;
24399     lib/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Makefile lib/Makefile ;;
24400     lib/Analysis/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Analysis/Makefile lib/Analysis/Makefile ;;
24401     lib/Analysis/DataStructure/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Analysis/DataStructure/Makefile lib/Analysis/DataStructure/Makefile ;;
24402     lib/Analysis/IPA/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Analysis/IPA/Makefile lib/Analysis/IPA/Makefile ;;
24403     lib/Analysis/LiveVar/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Analysis/LiveVar/Makefile lib/Analysis/LiveVar/Makefile ;;
24404     lib/AsmParser/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/AsmParser/Makefile lib/AsmParser/Makefile ;;
24405     lib/Bytecode/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Bytecode/Makefile lib/Bytecode/Makefile ;;
24406     lib/Bytecode/Reader/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Bytecode/Reader/Makefile lib/Bytecode/Reader/Makefile ;;
24407     lib/Bytecode/Writer/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Bytecode/Writer/Makefile lib/Bytecode/Writer/Makefile ;;
24408     lib/CWriter/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/CWriter/Makefile lib/CWriter/Makefile ;;
24409     lib/CodeGen/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/CodeGen/Makefile lib/CodeGen/Makefile ;;
24410     lib/CodeGen/InstrSched/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/CodeGen/InstrSched/Makefile lib/CodeGen/InstrSched/Makefile ;;
24411     lib/CodeGen/InstrSelection/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/CodeGen/InstrSelection/Makefile lib/CodeGen/InstrSelection/Makefile ;;
24412     lib/CodeGen/ModuloScheduling/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/CodeGen/ModuloScheduling/Makefile lib/CodeGen/ModuloScheduling/Makefile ;;
24413     lib/CodeGen/RegAlloc/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/CodeGen/RegAlloc/Makefile lib/CodeGen/RegAlloc/Makefile ;;
24414     lib/CodeGen/SelectionDAG/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/CodeGen/SelectionDAG/Makefile lib/CodeGen/SelectionDAG/Makefile ;;
24415     lib/ExecutionEngine/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/ExecutionEngine/Makefile lib/ExecutionEngine/Makefile ;;
24416     lib/ExecutionEngine/Interpreter/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/ExecutionEngine/Interpreter/Makefile lib/ExecutionEngine/Interpreter/Makefile ;;
24417     lib/ExecutionEngine/JIT/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/ExecutionEngine/JIT/Makefile lib/ExecutionEngine/JIT/Makefile ;;
24418     lib/Target/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Target/Makefile lib/Target/Makefile ;;
24419     lib/Target/Sparc/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Target/Sparc/Makefile lib/Target/Sparc/Makefile ;;
24420     lib/Target/X86/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Target/X86/Makefile lib/Target/X86/Makefile ;;
24421     lib/Transforms/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Transforms/Makefile lib/Transforms/Makefile ;;
24422     lib/Transforms/Hello/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Transforms/Hello/Makefile lib/Transforms/Hello/Makefile ;;
24423     lib/Transforms/IPO/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Transforms/IPO/Makefile lib/Transforms/IPO/Makefile ;;
24424     lib/Transforms/Instrumentation/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Transforms/Instrumentation/Makefile lib/Transforms/Instrumentation/Makefile ;;
24425     lib/Transforms/Instrumentation/ProfilePaths/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Transforms/Instrumentation/ProfilePaths/Makefile lib/Transforms/Instrumentation/ProfilePaths/Makefile ;;
24426     lib/Transforms/Scalar/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Transforms/Scalar/Makefile lib/Transforms/Scalar/Makefile ;;
24427     lib/Transforms/Utils/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Transforms/Utils/Makefile lib/Transforms/Utils/Makefile ;;
24428     lib/VMCore/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/VMCore/Makefile lib/VMCore/Makefile ;;
24429     runtime/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/runtime/Makefile runtime/Makefile ;;
24430     runtime/GCCLibraries/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/runtime/GCCLibraries/Makefile runtime/GCCLibraries/Makefile ;;
24431     runtime/GCCLibraries/crtend/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/runtime/GCCLibraries/crtend/Makefile runtime/GCCLibraries/crtend/Makefile ;;
24432     runtime/GCCLibraries/libc/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/runtime/GCCLibraries/libc/Makefile runtime/GCCLibraries/libc/Makefile ;;
24433     runtime/GCCLibraries/libcurses/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/runtime/GCCLibraries/libcurses/Makefile runtime/GCCLibraries/libcurses/Makefile ;;
24434     runtime/GCCLibraries/libg/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/runtime/GCCLibraries/libg/Makefile runtime/GCCLibraries/libg/Makefile ;;
24435     runtime/GCCLibraries/libgcc/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/runtime/GCCLibraries/libgcc/Makefile runtime/GCCLibraries/libgcc/Makefile ;;
24436     runtime/GCCLibraries/libm/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/runtime/GCCLibraries/libm/Makefile runtime/GCCLibraries/libm/Makefile ;;
24437     runtime/GCCLibraries/libmalloc/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/runtime/GCCLibraries/libmalloc/Makefile runtime/GCCLibraries/libmalloc/Makefile ;;
24438     runtime/GCCLibraries/libtermcap/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/runtime/GCCLibraries/libtermcap/Makefile runtime/GCCLibraries/libtermcap/Makefile ;;
24439     runtime/GCCLibraries/libucb/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/runtime/GCCLibraries/libucb/Makefile runtime/GCCLibraries/libucb/Makefile ;;
24440     runtime/GCCLibraries/libutempter/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/runtime/GCCLibraries/libutempter/Makefile runtime/GCCLibraries/libutempter/Makefile ;;
24441     runtime/GCCLibraries/libutil/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/runtime/GCCLibraries/libutil/Makefile runtime/GCCLibraries/libutil/Makefile ;;
24442     runtime/libdummy/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/runtime/libdummy/Makefile runtime/libdummy/Makefile ;;
24443     runtime/libtrace/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/runtime/libtrace/Makefile runtime/libtrace/Makefile ;;
24444     test/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Makefile test/Makefile ;;
24445     test/Makefile.tests ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Makefile.tests test/Makefile.tests ;;
24446     test/QMTestDB/QMTest/llvm.py ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/QMTestDB/QMTest/llvm.py test/QMTestDB/QMTest/llvm.py ;;
24447     test/Programs/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/Makefile test/Programs/Makefile ;;
24448     test/Programs/Makefile.programs ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/Makefile.programs test/Programs/Makefile.programs ;;
24449     test/Programs/TEST.aa.Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.aa.Makefile test/Programs/TEST.aa.Makefile ;;
24450     test/Programs/TEST.dsgraph.report ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.dsgraph.report test/Programs/TEST.dsgraph.report ;;
24451     test/Programs/TEST.micro.report ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.micro.report test/Programs/TEST.micro.report ;;
24452     test/Programs/TEST.aa.report ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.aa.report test/Programs/TEST.aa.report ;;
24453     test/Programs/TEST.example.Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.example.Makefile test/Programs/TEST.example.Makefile ;;
24454     test/Programs/TEST.nightly.Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.nightly.Makefile test/Programs/TEST.nightly.Makefile ;;
24455     test/Programs/TEST.buildrepo.Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.buildrepo.Makefile test/Programs/TEST.buildrepo.Makefile ;;
24456     test/Programs/TEST.jit.Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.jit.Makefile test/Programs/TEST.jit.Makefile ;;
24457     test/Programs/TEST.nightly.report ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.nightly.report test/Programs/TEST.nightly.report ;;
24458     test/Programs/TEST.dsgraph.Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.dsgraph.Makefile test/Programs/TEST.dsgraph.Makefile ;;
24459     test/Programs/TEST.jit.report ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.jit.report test/Programs/TEST.jit.report ;;
24460     test/Programs/TEST.typesafe.Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.typesafe.Makefile test/Programs/TEST.typesafe.Makefile ;;
24461     test/Programs/TEST.dsgraph.gnuplot ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.dsgraph.gnuplot test/Programs/TEST.dsgraph.gnuplot ;;
24462     test/Programs/TEST.micro.Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.micro.Makefile test/Programs/TEST.micro.Makefile ;;
24463     test/Programs/External/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/External/Makefile test/Programs/External/Makefile ;;
24464     test/Programs/External/SPEC/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/External/SPEC/Makefile test/Programs/External/SPEC/Makefile ;;
24465     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 ;;
24466     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 ;;
24467     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 ;;
24468     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 ;;
24469     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 ;;
24470     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 ;;
24471     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 ;;
24472     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 ;;
24473     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 ;;
24474     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 ;;
24475     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 ;;
24476     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 ;;
24477     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 ;;
24478     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 ;;
24479     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 ;;
24480     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 ;;
24481     test/Programs/LLVMSource/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/LLVMSource/Makefile test/Programs/LLVMSource/Makefile ;;
24482     test/Programs/MultiSource/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Makefile test/Programs/MultiSource/Makefile ;;
24483     test/Programs/MultiSource/Makefile.multisrc ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Makefile.multisrc test/Programs/MultiSource/Makefile.multisrc ;;
24484     test/Programs/MultiSource/Applications/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Applications/Makefile test/Programs/MultiSource/Applications/Makefile ;;
24485     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 ;;
24486     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 ;;
24487     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 ;;
24488     test/Programs/MultiSource/Benchmarks/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Benchmarks/Makefile test/Programs/MultiSource/Benchmarks/Makefile ;;
24489     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 ;;
24490     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 ;;
24491     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 ;;
24492     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 ;;
24493     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 ;;
24494     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 ;;
24495     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 ;;
24496     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 ;;
24497     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 ;;
24498     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 ;;
24499     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 ;;
24500     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 ;;
24501     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 ;;
24502     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 ;;
24503     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 ;;
24504     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 ;;
24505     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 ;;
24506     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 ;;
24507     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 ;;
24508     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 ;;
24509     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 ;;
24510     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 ;;
24511     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 ;;
24512     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 ;;
24513     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 ;;
24514     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 ;;
24515     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 ;;
24516     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 ;;
24517     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 ;;
24518     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 ;;
24519     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 ;;
24520     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 ;;
24521     test/Programs/NoSource/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/NoSource/Makefile test/Programs/NoSource/Makefile ;;
24522     test/Programs/NoSource/Flex/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/NoSource/Flex/Makefile test/Programs/NoSource/Flex/Makefile ;;
24523     test/Programs/NoSource/Larn/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/NoSource/Larn/Makefile test/Programs/NoSource/Larn/Makefile ;;
24524     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 ;;
24525     test/Programs/NoSource/Povray31/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/NoSource/Povray31/Makefile test/Programs/NoSource/Povray31/Makefile ;;
24526     test/Programs/NoSource/m4/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/NoSource/m4/Makefile test/Programs/NoSource/m4/Makefile ;;
24527     test/Programs/SingleSource/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/SingleSource/Makefile test/Programs/SingleSource/Makefile ;;
24528     test/Programs/SingleSource/Makefile.singlesrc ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/SingleSource/Makefile.singlesrc test/Programs/SingleSource/Makefile.singlesrc ;;
24529     test/Programs/SingleSource/Gizmos/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/SingleSource/Gizmos/Makefile test/Programs/SingleSource/Gizmos/Makefile ;;
24530     test/Programs/SingleSource/Benchmarks/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/SingleSource/Benchmarks/Makefile test/Programs/SingleSource/Benchmarks/Makefile ;;
24531     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 ;;
24532     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 ;;
24533     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 ;;
24534     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 ;;
24535     test/Programs/SingleSource/CustomChecked/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/SingleSource/CustomChecked/Makefile test/Programs/SingleSource/CustomChecked/Makefile ;;
24536     test/Programs/SingleSource/UnitTests/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/SingleSource/UnitTests/Makefile test/Programs/SingleSource/UnitTests/Makefile ;;
24537     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 ;;
24538     test/Programs/SingleSource/Regression/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/SingleSource/Regression/Makefile test/Programs/SingleSource/Regression/Makefile ;;
24539     test/Programs/SingleSource/Regression/C/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/SingleSource/Regression/C/Makefile test/Programs/SingleSource/Regression/C/Makefile ;;
24540     test/Programs/SingleSource/Regression/C++/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/SingleSource/Regression/C++/Makefile test/Programs/SingleSource/Regression/C++/Makefile ;;
24541     tools/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/Makefile tools/Makefile ;;
24542     tools/analyze/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/analyze/Makefile tools/analyze/Makefile ;;
24543     tools/bugpoint/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/bugpoint/Makefile tools/bugpoint/Makefile ;;
24544     tools/extract/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/extract/Makefile tools/extract/Makefile ;;
24545     tools/gccas/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/gccas/Makefile tools/gccas/Makefile ;;
24546     tools/gccld/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/gccld/Makefile tools/gccld/Makefile ;;
24547     tools/llc/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/llc/Makefile tools/llc/Makefile ;;
24548     tools/llee/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/llee/Makefile tools/llee/Makefile ;;
24549     tools/lli/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/lli/Makefile tools/lli/Makefile ;;
24550     tools/llvm-ar/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/llvm-ar/Makefile tools/llvm-ar/Makefile ;;
24551     tools/llvm-as/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/llvm-as/Makefile tools/llvm-as/Makefile ;;
24552     tools/llvm-dis/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/llvm-dis/Makefile tools/llvm-dis/Makefile ;;
24553     tools/llvm-link/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/llvm-link/Makefile tools/llvm-link/Makefile ;;
24554     tools/opt/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/opt/Makefile tools/opt/Makefile ;;
24555     utils/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/utils/Makefile utils/Makefile ;;
24556     www/docs/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/www/docs/Makefile www/docs/Makefile ;;
24557     projects/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/projects/Makefile projects/Makefile ;;
24558     projects/sample/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/projects/sample/Makefile projects/sample/Makefile ;;
24559     projects/sample/Makefile.common ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/projects/sample/Makefile.common projects/sample/Makefile.common ;;
24560     projects/sample/Makefile.config ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/projects/sample/Makefile.config projects/sample/Makefile.config ;;
24561     projects/sample/lib/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/projects/sample/lib/Makefile projects/sample/lib/Makefile ;;
24562     projects/sample/lib/sample/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/projects/sample/lib/sample/Makefile projects/sample/lib/sample/Makefile ;;
24563     projects/sample/tools/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/projects/sample/tools/Makefile projects/sample/tools/Makefile ;;
24564     projects/sample/tools/sample/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/projects/sample/tools/sample/Makefile projects/sample/tools/sample/Makefile ;;
24565     projects/ModuleMaker/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/projects/ModuleMaker/Makefile projects/ModuleMaker/Makefile ;;
24566     projects/ModuleMaker/Makefile.common ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/projects/ModuleMaker/Makefile.common projects/ModuleMaker/Makefile.common ;;
24567     projects/ModuleMaker/tools/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/projects/ModuleMaker/tools/Makefile projects/ModuleMaker/tools/Makefile ;;
24568     projects/ModuleMaker/tools/ModuleMaker/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/projects/ModuleMaker/tools/ModuleMaker/Makefile projects/ModuleMaker/tools/ModuleMaker/Makefile ;;
24569     support/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/support/Makefile support/Makefile ;;
24570     support/lib/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/support/lib/Makefile support/lib/Makefile ;;
24571     support/lib/Support/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/support/lib/Support/Makefile support/lib/Support/Makefile ;;
24572     support/tools/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/support/tools/Makefile support/tools/Makefile ;;
24573     support/tools/Burg/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/support/tools/Burg/Makefile support/tools/Burg/Makefile ;;
24574     support/tools/Burg/Doc/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/support/tools/Burg/Doc/Makefile support/tools/Burg/Doc/Makefile ;;
24575     support/tools/TableGen/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/support/tools/TableGen/Makefile support/tools/TableGen/Makefile ;;
24576   esac
24577 done
24578 _ACEOF
24579
24580 cat >>$CONFIG_STATUS <<\_ACEOF
24581
24582 { (exit 0); exit 0; }
24583 _ACEOF
24584 chmod +x $CONFIG_STATUS
24585 ac_clean_files=$ac_clean_files_save
24586
24587
24588 # configure is writing to config.log, and then calls config.status.
24589 # config.status does its own redirection, appending to config.log.
24590 # Unfortunately, on DOS this fails, as config.log is still kept open
24591 # by configure, so config.status won't be able to write to it; its
24592 # output is simply discarded.  So we exec the FD to /dev/null,
24593 # effectively closing config.log, so it can be properly (re)opened and
24594 # appended to by config.status.  When coming back to configure, we
24595 # need to make the FD available again.
24596 if test "$no_create" != yes; then
24597   ac_cs_success=:
24598   ac_config_status_args=
24599   test "$silent" = yes &&
24600     ac_config_status_args="$ac_config_status_args --quiet"
24601   exec 5>/dev/null
24602   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
24603   exec 5>>config.log
24604   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
24605   # would make configure fail if this is the last instruction.
24606   $ac_cs_success || { (exit 1); exit 1; }
24607 fi
24608