manually add the llvm-ar stuff. this should be regenerated
[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           ac_config_headers="$ac_config_headers include/Config/config.h"
1513
1514           ac_config_commands="$ac_config_commands Makefile"
1515
1516
1517           ac_config_commands="$ac_config_commands Makefile.common"
1518
1519
1520           ac_config_commands="$ac_config_commands Makefile.rules"
1521
1522
1523           ac_config_commands="$ac_config_commands lib/Makefile"
1524
1525
1526           ac_config_commands="$ac_config_commands lib/Analysis/Makefile"
1527
1528
1529           ac_config_commands="$ac_config_commands lib/Analysis/DataStructure/Makefile"
1530
1531
1532           ac_config_commands="$ac_config_commands lib/Analysis/IPA/Makefile"
1533
1534
1535           ac_config_commands="$ac_config_commands lib/Analysis/LiveVar/Makefile"
1536
1537
1538           ac_config_commands="$ac_config_commands lib/AsmParser/Makefile"
1539
1540
1541           ac_config_commands="$ac_config_commands lib/Bytecode/Makefile"
1542
1543
1544           ac_config_commands="$ac_config_commands lib/Bytecode/Reader/Makefile"
1545
1546
1547           ac_config_commands="$ac_config_commands lib/Bytecode/Writer/Makefile"
1548
1549
1550           ac_config_commands="$ac_config_commands lib/CWriter/Makefile"
1551
1552
1553           ac_config_commands="$ac_config_commands lib/CodeGen/Makefile"
1554
1555
1556           ac_config_commands="$ac_config_commands lib/CodeGen/InstrSched/Makefile"
1557
1558
1559           ac_config_commands="$ac_config_commands lib/CodeGen/InstrSelection/Makefile"
1560
1561
1562           ac_config_commands="$ac_config_commands lib/CodeGen/ModuloScheduling/Makefile"
1563
1564
1565           ac_config_commands="$ac_config_commands lib/CodeGen/RegAlloc/Makefile"
1566
1567
1568           ac_config_commands="$ac_config_commands lib/CodeGen/SelectionDAG/Makefile"
1569
1570
1571           ac_config_commands="$ac_config_commands lib/ExecutionEngine/Makefile"
1572
1573
1574           ac_config_commands="$ac_config_commands lib/ExecutionEngine/Interpreter/Makefile"
1575
1576
1577           ac_config_commands="$ac_config_commands lib/ExecutionEngine/JIT/Makefile"
1578
1579
1580           ac_config_commands="$ac_config_commands lib/Support/Makefile"
1581
1582
1583           ac_config_commands="$ac_config_commands lib/Target/Makefile"
1584
1585
1586           ac_config_commands="$ac_config_commands lib/Target/Sparc/Makefile"
1587
1588
1589           ac_config_commands="$ac_config_commands lib/Target/X86/Makefile"
1590
1591
1592           ac_config_commands="$ac_config_commands lib/Transforms/Makefile"
1593
1594
1595           ac_config_commands="$ac_config_commands lib/Transforms/Hello/Makefile"
1596
1597
1598           ac_config_commands="$ac_config_commands lib/Transforms/IPO/Makefile"
1599
1600
1601           ac_config_commands="$ac_config_commands lib/Transforms/Instrumentation/Makefile"
1602
1603
1604           ac_config_commands="$ac_config_commands lib/Transforms/Instrumentation/ProfilePaths/Makefile"
1605
1606
1607           ac_config_commands="$ac_config_commands lib/Transforms/Scalar/Makefile"
1608
1609
1610           ac_config_commands="$ac_config_commands lib/Transforms/Utils/Makefile"
1611
1612
1613           ac_config_commands="$ac_config_commands lib/VMCore/Makefile"
1614
1615
1616           ac_config_commands="$ac_config_commands runtime/Makefile"
1617
1618
1619           ac_config_commands="$ac_config_commands runtime/GCCLibraries/Makefile"
1620
1621
1622           ac_config_commands="$ac_config_commands runtime/GCCLibraries/crtend/Makefile"
1623
1624
1625           ac_config_commands="$ac_config_commands runtime/GCCLibraries/libc/Makefile"
1626
1627
1628           ac_config_commands="$ac_config_commands runtime/GCCLibraries/libcurses/Makefile"
1629
1630
1631           ac_config_commands="$ac_config_commands runtime/GCCLibraries/libexception/Makefile"
1632
1633
1634           ac_config_commands="$ac_config_commands runtime/GCCLibraries/libg/Makefile"
1635
1636
1637           ac_config_commands="$ac_config_commands runtime/GCCLibraries/libgcc/Makefile"
1638
1639
1640           ac_config_commands="$ac_config_commands runtime/GCCLibraries/libm/Makefile"
1641
1642
1643           ac_config_commands="$ac_config_commands runtime/GCCLibraries/libmalloc/Makefile"
1644
1645
1646           ac_config_commands="$ac_config_commands runtime/GCCLibraries/libtermcap/Makefile"
1647
1648
1649           ac_config_commands="$ac_config_commands runtime/GCCLibraries/libucb/Makefile"
1650
1651
1652           ac_config_commands="$ac_config_commands runtime/GCCLibraries/libutempter/Makefile"
1653
1654
1655           ac_config_commands="$ac_config_commands runtime/GCCLibraries/libutil/Makefile"
1656
1657
1658           ac_config_commands="$ac_config_commands runtime/libdummy/Makefile"
1659
1660
1661           ac_config_commands="$ac_config_commands runtime/libtrace/Makefile"
1662
1663
1664           ac_config_commands="$ac_config_commands test/Makefile"
1665
1666
1667           ac_config_commands="$ac_config_commands test/Makefile.tests"
1668
1669
1670           ac_config_commands="$ac_config_commands test/Programs/Makefile"
1671
1672
1673           ac_config_commands="$ac_config_commands test/Programs/Makefile.programs"
1674
1675
1676           ac_config_commands="$ac_config_commands test/Programs/TEST.aa.Makefile"
1677
1678
1679           ac_config_commands="$ac_config_commands test/Programs/TEST.dsgraph.report"
1680
1681
1682           ac_config_commands="$ac_config_commands test/Programs/TEST.micro.report"
1683
1684
1685           ac_config_commands="$ac_config_commands test/Programs/TEST.aa.report"
1686
1687
1688           ac_config_commands="$ac_config_commands test/Programs/TEST.example.Makefile"
1689
1690
1691           ac_config_commands="$ac_config_commands test/Programs/TEST.nightly.Makefile"
1692
1693
1694           ac_config_commands="$ac_config_commands test/Programs/TEST.buildrepo.Makefile"
1695
1696
1697           ac_config_commands="$ac_config_commands test/Programs/TEST.jit.Makefile"
1698
1699
1700           ac_config_commands="$ac_config_commands test/Programs/TEST.nightly.report"
1701
1702
1703           ac_config_commands="$ac_config_commands test/Programs/TEST.dsgraph.Makefile"
1704
1705
1706           ac_config_commands="$ac_config_commands test/Programs/TEST.jit.report"
1707
1708
1709           ac_config_commands="$ac_config_commands test/Programs/TEST.typesafe.Makefile"
1710
1711
1712           ac_config_commands="$ac_config_commands test/Programs/TEST.dsgraph.gnuplot"
1713
1714
1715           ac_config_commands="$ac_config_commands test/Programs/TEST.micro.Makefile"
1716
1717
1718           ac_config_commands="$ac_config_commands test/Programs/External/Makefile"
1719
1720
1721           ac_config_commands="$ac_config_commands test/Programs/External/SPEC/Makefile"
1722
1723
1724           ac_config_commands="$ac_config_commands test/Programs/External/SPEC/Makefile.spec"
1725
1726
1727           ac_config_commands="$ac_config_commands test/Programs/External/SPEC/CFP2000/Makefile"
1728
1729
1730           ac_config_commands="$ac_config_commands test/Programs/External/SPEC/CFP2000/179.art/Makefile"
1731
1732
1733           ac_config_commands="$ac_config_commands test/Programs/External/SPEC/CFP2000/183.equake/Makefile"
1734
1735
1736           ac_config_commands="$ac_config_commands test/Programs/External/SPEC/CFP2000/188.ammp/Makefile"
1737
1738
1739           ac_config_commands="$ac_config_commands test/Programs/External/SPEC/CINT2000/Makefile"
1740
1741
1742           ac_config_commands="$ac_config_commands test/Programs/External/SPEC/CINT2000/164.gzip/Makefile"
1743
1744
1745           ac_config_commands="$ac_config_commands test/Programs/External/SPEC/CINT2000/175.vpr/Makefile"
1746
1747
1748           ac_config_commands="$ac_config_commands test/Programs/External/SPEC/CINT2000/176.gcc/Makefile"
1749
1750
1751           ac_config_commands="$ac_config_commands test/Programs/External/SPEC/CINT2000/181.mcf/Makefile"
1752
1753
1754           ac_config_commands="$ac_config_commands test/Programs/External/SPEC/CINT2000/186.crafty/Makefile"
1755
1756
1757           ac_config_commands="$ac_config_commands test/Programs/External/SPEC/CINT2000/197.parser/Makefile"
1758
1759
1760           ac_config_commands="$ac_config_commands test/Programs/External/SPEC/CINT2000/254.gap/Makefile"
1761
1762
1763           ac_config_commands="$ac_config_commands test/Programs/External/SPEC/CINT2000/255.vortex/Makefile"
1764
1765
1766           ac_config_commands="$ac_config_commands test/Programs/External/SPEC/CINT2000/256.bzip2/Makefile"
1767
1768
1769           ac_config_commands="$ac_config_commands test/Programs/External/SPEC/CINT2000/300.twolf/Makefile"
1770
1771
1772           ac_config_commands="$ac_config_commands test/Programs/LLVMSource/Makefile"
1773
1774
1775           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Makefile"
1776
1777
1778           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Makefile.multisrc"
1779
1780
1781           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Applications/Makefile"
1782
1783
1784           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Applications/Burg/Makefile"
1785
1786
1787           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Applications/aha/Makefile"
1788
1789
1790           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Applications/sgefa/Makefile"
1791
1792
1793           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/Makefile"
1794
1795
1796           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/Fhourstones/Makefile"
1797
1798
1799           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/McCat/Makefile"
1800
1801
1802           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/McCat/01-qbsort/Makefile"
1803
1804
1805           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/McCat/03-testtrie/Makefile"
1806
1807
1808           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/McCat/04-bisect/Makefile"
1809
1810
1811           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/McCat/05-eks/Makefile"
1812
1813
1814           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/McCat/08-main/Makefile"
1815
1816
1817           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/McCat/09-vor/Makefile"
1818
1819
1820           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/McCat/12-IOtest/Makefile"
1821
1822
1823           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/McCat/15-trie/Makefile"
1824
1825
1826           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/McCat/17-bintr/Makefile"
1827
1828
1829           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/McCat/18-imp/Makefile"
1830
1831
1832           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/Olden/Makefile"
1833
1834
1835           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/Olden/bh/Makefile"
1836
1837
1838           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/Olden/bisort/Makefile"
1839
1840
1841           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/Olden/em3d/Makefile"
1842
1843
1844           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/Olden/health/Makefile"
1845
1846
1847           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/Olden/mst/Makefile"
1848
1849
1850           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/Olden/perimeter/Makefile"
1851
1852
1853           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/Olden/power/Makefile"
1854
1855
1856           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/Olden/treeadd/Makefile"
1857
1858
1859           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/Olden/tsp/Makefile"
1860
1861
1862           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/Olden/voronoi/Makefile"
1863
1864
1865           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/OptimizerEval/Makefile"
1866
1867
1868           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/Ptrdist/Makefile"
1869
1870
1871           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/Ptrdist/anagram/Makefile"
1872
1873
1874           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/Ptrdist/bc/Makefile"
1875
1876
1877           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/Ptrdist/ft/Makefile"
1878
1879
1880           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/Ptrdist/ks/Makefile"
1881
1882
1883           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/Ptrdist/yacr2/Makefile"
1884
1885
1886           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/llubenchmark/Makefile"
1887
1888
1889           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/sim/Makefile"
1890
1891
1892           ac_config_commands="$ac_config_commands test/Programs/NoSource/Makefile"
1893
1894
1895           ac_config_commands="$ac_config_commands test/Programs/NoSource/Flex/Makefile"
1896
1897
1898           ac_config_commands="$ac_config_commands test/Programs/NoSource/Larn/Makefile"
1899
1900
1901           ac_config_commands="$ac_config_commands test/Programs/NoSource/Moria-5.5.2/Makefile"
1902
1903
1904           ac_config_commands="$ac_config_commands test/Programs/NoSource/Povray31/Makefile"
1905
1906
1907           ac_config_commands="$ac_config_commands test/Programs/NoSource/m4/Makefile"
1908
1909
1910           ac_config_commands="$ac_config_commands test/Programs/SingleSource/Makefile"
1911
1912
1913           ac_config_commands="$ac_config_commands test/Programs/SingleSource/Makefile.singlesrc"
1914
1915
1916           ac_config_commands="$ac_config_commands test/Programs/SingleSource/Gizmos/Makefile"
1917
1918
1919           ac_config_commands="$ac_config_commands test/Programs/SingleSource/Benchmarks/Makefile"
1920
1921
1922           ac_config_commands="$ac_config_commands test/Programs/SingleSource/Benchmarks/Dhrystone/Makefile"
1923
1924
1925           ac_config_commands="$ac_config_commands test/Programs/SingleSource/Benchmarks/Shootout/Makefile"
1926
1927
1928           ac_config_commands="$ac_config_commands test/Programs/SingleSource/Benchmarks/Stanford/Makefile"
1929
1930
1931           ac_config_commands="$ac_config_commands test/Programs/SingleSource/Benchmarks/Misc/Makefile"
1932
1933
1934           ac_config_commands="$ac_config_commands test/Programs/SingleSource/CustomChecked/Makefile"
1935
1936
1937           ac_config_commands="$ac_config_commands test/Programs/SingleSource/UnitTests/Makefile"
1938
1939
1940           ac_config_commands="$ac_config_commands test/Programs/SingleSource/UnitTests/SetjmpLongjmp/Makefile"
1941
1942
1943           ac_config_commands="$ac_config_commands tools/Makefile"
1944
1945
1946           ac_config_commands="$ac_config_commands tools/analyze/Makefile"
1947
1948
1949           ac_config_commands="$ac_config_commands tools/as/Makefile"
1950
1951
1952           ac_config_commands="$ac_config_commands tools/bugpoint/Makefile"
1953
1954
1955           ac_config_commands="$ac_config_commands tools/dis/Makefile"
1956
1957
1958           ac_config_commands="$ac_config_commands tools/extract/Makefile"
1959
1960
1961           ac_config_commands="$ac_config_commands tools/gccas/Makefile"
1962
1963
1964           ac_config_commands="$ac_config_commands tools/gccld/Makefile"
1965
1966
1967           ac_config_commands="$ac_config_commands tools/link/Makefile"
1968
1969
1970           ac_config_commands="$ac_config_commands tools/llc/Makefile"
1971
1972
1973           ac_config_commands="$ac_config_commands tools/lli/Makefile"
1974
1975
1976           ac_config_commands="$ac_config_commands tools/opt/Makefile"
1977
1978
1979           ac_config_commands="$ac_config_commands tools/llee/Makefile"
1980
1981
1982           ac_config_commands="$ac_config_commands tools/llvm-as/Makefile"
1983
1984
1985           ac_config_commands="$ac_config_commands tools/llvm-ar/Makefile"
1986
1987
1988           ac_config_commands="$ac_config_commands tools/llvm-dis/Makefile"
1989
1990
1991           ac_config_commands="$ac_config_commands utils/Makefile"
1992
1993
1994           ac_config_commands="$ac_config_commands utils/Burg/Makefile"
1995
1996
1997           ac_config_commands="$ac_config_commands utils/Burg/Doc/Makefile"
1998
1999
2000           ac_config_commands="$ac_config_commands utils/TableGen/Makefile"
2001
2002
2003           ac_config_commands="$ac_config_commands www/docs/Makefile"
2004
2005
2006           ac_config_commands="$ac_config_commands projects/Makefile"
2007
2008
2009           ac_config_commands="$ac_config_commands projects/sample/Makefile"
2010
2011
2012           ac_config_commands="$ac_config_commands projects/sample/Makefile.common"
2013
2014
2015           ac_config_commands="$ac_config_commands projects/sample/Makefile.config"
2016
2017
2018           ac_config_commands="$ac_config_commands projects/sample/lib/Makefile"
2019
2020
2021           ac_config_commands="$ac_config_commands projects/sample/lib/sample/Makefile"
2022
2023
2024           ac_config_commands="$ac_config_commands projects/sample/tools/Makefile"
2025
2026
2027           ac_config_commands="$ac_config_commands projects/sample/tools/sample/Makefile"
2028
2029
2030           ac_config_commands="$ac_config_commands projects/ModuleMaker/Makefile"
2031
2032
2033           ac_config_commands="$ac_config_commands projects/ModuleMaker/Makefile.common"
2034
2035
2036           ac_config_commands="$ac_config_commands projects/ModuleMaker/tools/Makefile"
2037
2038
2039           ac_config_commands="$ac_config_commands projects/ModuleMaker/tools/ModuleMaker/Makefile"
2040
2041
2042
2043
2044 # Find a good install program.  We prefer a C program (faster),
2045 # so one script is as good as another.  But avoid the broken or
2046 # incompatible versions:
2047 # SysV /etc/install, /usr/sbin/install
2048 # SunOS /usr/etc/install
2049 # IRIX /sbin/install
2050 # AIX /bin/install
2051 # AmigaOS /C/install, which installs bootblocks on floppy discs
2052 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2053 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2054 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2055 # ./install, which can be erroneously created by make from ./install.sh.
2056 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2057 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
2058 if test -z "$INSTALL"; then
2059 if test "${ac_cv_path_install+set}" = set; then
2060   echo $ECHO_N "(cached) $ECHO_C" >&6
2061 else
2062   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2063 for as_dir in $PATH
2064 do
2065   IFS=$as_save_IFS
2066   test -z "$as_dir" && as_dir=.
2067   # Account for people who put trailing slashes in PATH elements.
2068 case $as_dir/ in
2069   ./ | .// | /cC/* | \
2070   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2071   /usr/ucb/* ) ;;
2072   *)
2073     # OSF1 and SCO ODT 3.0 have their own names for install.
2074     # Don't use installbsd from OSF since it installs stuff as root
2075     # by default.
2076     for ac_prog in ginstall scoinst install; do
2077       for ac_exec_ext in '' $ac_executable_extensions; do
2078         if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2079           if test $ac_prog = install &&
2080             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2081             # AIX install.  It has an incompatible calling convention.
2082             :
2083           elif test $ac_prog = install &&
2084             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2085             # program-specific install script used by HP pwplus--don't use.
2086             :
2087           else
2088             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2089             break 3
2090           fi
2091         fi
2092       done
2093     done
2094     ;;
2095 esac
2096 done
2097
2098
2099 fi
2100   if test "${ac_cv_path_install+set}" = set; then
2101     INSTALL=$ac_cv_path_install
2102   else
2103     # As a last resort, use the slow shell script.  We don't cache a
2104     # path for INSTALL within a source directory, because that will
2105     # break other packages using the cache if that directory is
2106     # removed, or if the path is relative.
2107     INSTALL=$ac_install_sh
2108   fi
2109 fi
2110 echo "$as_me:$LINENO: result: $INSTALL" >&5
2111 echo "${ECHO_T}$INSTALL" >&6
2112
2113 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2114 # It thinks the first close brace ends the variable substitution.
2115 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2116
2117 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2118
2119 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2120
2121
2122 # Make sure we can run config.sub.
2123 $ac_config_sub sun4 >/dev/null 2>&1 ||
2124   { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
2125 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
2126    { (exit 1); exit 1; }; }
2127
2128 echo "$as_me:$LINENO: checking build system type" >&5
2129 echo $ECHO_N "checking build system type... $ECHO_C" >&6
2130 if test "${ac_cv_build+set}" = set; then
2131   echo $ECHO_N "(cached) $ECHO_C" >&6
2132 else
2133   ac_cv_build_alias=$build_alias
2134 test -z "$ac_cv_build_alias" &&
2135   ac_cv_build_alias=`$ac_config_guess`
2136 test -z "$ac_cv_build_alias" &&
2137   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2138 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2139    { (exit 1); exit 1; }; }
2140 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
2141   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
2142 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
2143    { (exit 1); exit 1; }; }
2144
2145 fi
2146 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2147 echo "${ECHO_T}$ac_cv_build" >&6
2148 build=$ac_cv_build
2149 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
2150 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
2151 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
2152
2153
2154 echo "$as_me:$LINENO: checking host system type" >&5
2155 echo $ECHO_N "checking host system type... $ECHO_C" >&6
2156 if test "${ac_cv_host+set}" = set; then
2157   echo $ECHO_N "(cached) $ECHO_C" >&6
2158 else
2159   ac_cv_host_alias=$host_alias
2160 test -z "$ac_cv_host_alias" &&
2161   ac_cv_host_alias=$ac_cv_build_alias
2162 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
2163   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
2164 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
2165    { (exit 1); exit 1; }; }
2166
2167 fi
2168 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2169 echo "${ECHO_T}$ac_cv_host" >&6
2170 host=$ac_cv_host
2171 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
2172 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
2173 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
2174
2175
2176 echo "$as_me:$LINENO: checking target system type" >&5
2177 echo $ECHO_N "checking target system type... $ECHO_C" >&6
2178 if test "${ac_cv_target+set}" = set; then
2179   echo $ECHO_N "(cached) $ECHO_C" >&6
2180 else
2181   ac_cv_target_alias=$target_alias
2182 test "x$ac_cv_target_alias" = "x" &&
2183   ac_cv_target_alias=$ac_cv_host_alias
2184 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
2185   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
2186 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
2187    { (exit 1); exit 1; }; }
2188
2189 fi
2190 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
2191 echo "${ECHO_T}$ac_cv_target" >&6
2192 target=$ac_cv_target
2193 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
2194 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
2195 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
2196
2197
2198 # The aliases save the names the user supplied, while $host etc.
2199 # will get canonicalized.
2200 test -n "$target_alias" &&
2201   test "$program_prefix$program_suffix$program_transform_name" = \
2202     NONENONEs,x,x, &&
2203   program_prefix=${target_alias}-
2204
2205 case $build in
2206         *i*86*)  OS=Linux
2207
2208                  LLVMGCCDIR=/home/vadve/lattner/local/x86/llvm-gcc/
2209
2210                  ;;
2211
2212         *sparc*) OS=SunOS
2213
2214                  LLVMGCCDIR=/home/vadve/lattner/local/sparc/llvm-gcc/
2215
2216                  ;;
2217
2218         *)       OS=Unknown
2219
2220                  ;;
2221 esac
2222
2223 case $target in
2224         *sparc*solaris*)  target=sparcv9-sun-solaris2.8
2225
2226                           ;;
2227 esac
2228
2229 case $target in
2230         *i*86*)           ARCH=x86
2231
2232                           ;;
2233         *sparc*solaris*)  ARCH=Sparc
2234
2235                           ;;
2236 esac
2237
2238
2239 ac_ext=cc
2240 ac_cpp='$CXXCPP $CPPFLAGS'
2241 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2242 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2243 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2244 if test -n "$ac_tool_prefix"; then
2245   for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2246   do
2247     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2248 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2249 echo "$as_me:$LINENO: checking for $ac_word" >&5
2250 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2251 if test "${ac_cv_prog_CXX+set}" = set; then
2252   echo $ECHO_N "(cached) $ECHO_C" >&6
2253 else
2254   if test -n "$CXX"; then
2255   ac_cv_prog_CXX="$CXX" # Let the user override the test.
2256 else
2257 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2258 for as_dir in $PATH
2259 do
2260   IFS=$as_save_IFS
2261   test -z "$as_dir" && as_dir=.
2262   for ac_exec_ext in '' $ac_executable_extensions; do
2263   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2264     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2265     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2266     break 2
2267   fi
2268 done
2269 done
2270
2271 fi
2272 fi
2273 CXX=$ac_cv_prog_CXX
2274 if test -n "$CXX"; then
2275   echo "$as_me:$LINENO: result: $CXX" >&5
2276 echo "${ECHO_T}$CXX" >&6
2277 else
2278   echo "$as_me:$LINENO: result: no" >&5
2279 echo "${ECHO_T}no" >&6
2280 fi
2281
2282     test -n "$CXX" && break
2283   done
2284 fi
2285 if test -z "$CXX"; then
2286   ac_ct_CXX=$CXX
2287   for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2288 do
2289   # Extract the first word of "$ac_prog", so it can be a program name with args.
2290 set dummy $ac_prog; ac_word=$2
2291 echo "$as_me:$LINENO: checking for $ac_word" >&5
2292 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2293 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2294   echo $ECHO_N "(cached) $ECHO_C" >&6
2295 else
2296   if test -n "$ac_ct_CXX"; then
2297   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2298 else
2299 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2300 for as_dir in $PATH
2301 do
2302   IFS=$as_save_IFS
2303   test -z "$as_dir" && as_dir=.
2304   for ac_exec_ext in '' $ac_executable_extensions; do
2305   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2306     ac_cv_prog_ac_ct_CXX="$ac_prog"
2307     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2308     break 2
2309   fi
2310 done
2311 done
2312
2313 fi
2314 fi
2315 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2316 if test -n "$ac_ct_CXX"; then
2317   echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2318 echo "${ECHO_T}$ac_ct_CXX" >&6
2319 else
2320   echo "$as_me:$LINENO: result: no" >&5
2321 echo "${ECHO_T}no" >&6
2322 fi
2323
2324   test -n "$ac_ct_CXX" && break
2325 done
2326 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
2327
2328   CXX=$ac_ct_CXX
2329 fi
2330
2331
2332 # Provide some information about the compiler.
2333 echo "$as_me:$LINENO:" \
2334      "checking for C++ compiler version" >&5
2335 ac_compiler=`set X $ac_compile; echo $2`
2336 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2337   (eval $ac_compiler --version </dev/null >&5) 2>&5
2338   ac_status=$?
2339   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2340   (exit $ac_status); }
2341 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2342   (eval $ac_compiler -v </dev/null >&5) 2>&5
2343   ac_status=$?
2344   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2345   (exit $ac_status); }
2346 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2347   (eval $ac_compiler -V </dev/null >&5) 2>&5
2348   ac_status=$?
2349   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2350   (exit $ac_status); }
2351
2352 cat >conftest.$ac_ext <<_ACEOF
2353 #line $LINENO "configure"
2354 /* confdefs.h.  */
2355 _ACEOF
2356 cat confdefs.h >>conftest.$ac_ext
2357 cat >>conftest.$ac_ext <<_ACEOF
2358 /* end confdefs.h.  */
2359
2360 int
2361 main ()
2362 {
2363
2364   ;
2365   return 0;
2366 }
2367 _ACEOF
2368 ac_clean_files_save=$ac_clean_files
2369 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2370 # Try to create an executable without -o first, disregard a.out.
2371 # It will help us diagnose broken compilers, and finding out an intuition
2372 # of exeext.
2373 echo "$as_me:$LINENO: checking for C++ compiler default output" >&5
2374 echo $ECHO_N "checking for C++ compiler default output... $ECHO_C" >&6
2375 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2376 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2377   (eval $ac_link_default) 2>&5
2378   ac_status=$?
2379   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2380   (exit $ac_status); }; then
2381   # Find the output, starting from the most likely.  This scheme is
2382 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2383 # resort.
2384
2385 # Be careful to initialize this variable, since it used to be cached.
2386 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2387 ac_cv_exeext=
2388 # b.out is created by i960 compilers.
2389 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2390 do
2391   test -f "$ac_file" || continue
2392   case $ac_file in
2393     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2394         ;;
2395     conftest.$ac_ext )
2396         # This is the source file.
2397         ;;
2398     [ab].out )
2399         # We found the default executable, but exeext='' is most
2400         # certainly right.
2401         break;;
2402     *.* )
2403         ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2404         # FIXME: I believe we export ac_cv_exeext for Libtool,
2405         # but it would be cool to find out if it's true.  Does anybody
2406         # maintain Libtool? --akim.
2407         export ac_cv_exeext
2408         break;;
2409     * )
2410         break;;
2411   esac
2412 done
2413 else
2414   echo "$as_me: failed program was:" >&5
2415 sed 's/^/| /' conftest.$ac_ext >&5
2416
2417 { { echo "$as_me:$LINENO: error: C++ compiler cannot create executables
2418 See \`config.log' for more details." >&5
2419 echo "$as_me: error: C++ compiler cannot create executables
2420 See \`config.log' for more details." >&2;}
2421    { (exit 77); exit 77; }; }
2422 fi
2423
2424 ac_exeext=$ac_cv_exeext
2425 echo "$as_me:$LINENO: result: $ac_file" >&5
2426 echo "${ECHO_T}$ac_file" >&6
2427
2428 # Check the compiler produces executables we can run.  If not, either
2429 # the compiler is broken, or we cross compile.
2430 echo "$as_me:$LINENO: checking whether the C++ compiler works" >&5
2431 echo $ECHO_N "checking whether the C++ compiler works... $ECHO_C" >&6
2432 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2433 # If not cross compiling, check that we can run a simple program.
2434 if test "$cross_compiling" != yes; then
2435   if { ac_try='./$ac_file'
2436   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2437   (eval $ac_try) 2>&5
2438   ac_status=$?
2439   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2440   (exit $ac_status); }; }; then
2441     cross_compiling=no
2442   else
2443     if test "$cross_compiling" = maybe; then
2444         cross_compiling=yes
2445     else
2446         { { echo "$as_me:$LINENO: error: cannot run C++ compiled programs.
2447 If you meant to cross compile, use \`--host'.
2448 See \`config.log' for more details." >&5
2449 echo "$as_me: error: cannot run C++ compiled programs.
2450 If you meant to cross compile, use \`--host'.
2451 See \`config.log' for more details." >&2;}
2452    { (exit 1); exit 1; }; }
2453     fi
2454   fi
2455 fi
2456 echo "$as_me:$LINENO: result: yes" >&5
2457 echo "${ECHO_T}yes" >&6
2458
2459 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2460 ac_clean_files=$ac_clean_files_save
2461 # Check the compiler produces executables we can run.  If not, either
2462 # the compiler is broken, or we cross compile.
2463 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2464 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2465 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2466 echo "${ECHO_T}$cross_compiling" >&6
2467
2468 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2469 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2470 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2471   (eval $ac_link) 2>&5
2472   ac_status=$?
2473   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2474   (exit $ac_status); }; then
2475   # If both `conftest.exe' and `conftest' are `present' (well, observable)
2476 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2477 # work properly (i.e., refer to `conftest.exe'), while it won't with
2478 # `rm'.
2479 for ac_file in conftest.exe conftest conftest.*; do
2480   test -f "$ac_file" || continue
2481   case $ac_file in
2482     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2483     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2484           export ac_cv_exeext
2485           break;;
2486     * ) break;;
2487   esac
2488 done
2489 else
2490   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2491 See \`config.log' for more details." >&5
2492 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2493 See \`config.log' for more details." >&2;}
2494    { (exit 1); exit 1; }; }
2495 fi
2496
2497 rm -f conftest$ac_cv_exeext
2498 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2499 echo "${ECHO_T}$ac_cv_exeext" >&6
2500
2501 rm -f conftest.$ac_ext
2502 EXEEXT=$ac_cv_exeext
2503 ac_exeext=$EXEEXT
2504 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2505 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2506 if test "${ac_cv_objext+set}" = set; then
2507   echo $ECHO_N "(cached) $ECHO_C" >&6
2508 else
2509   cat >conftest.$ac_ext <<_ACEOF
2510 #line $LINENO "configure"
2511 /* confdefs.h.  */
2512 _ACEOF
2513 cat confdefs.h >>conftest.$ac_ext
2514 cat >>conftest.$ac_ext <<_ACEOF
2515 /* end confdefs.h.  */
2516
2517 int
2518 main ()
2519 {
2520
2521   ;
2522   return 0;
2523 }
2524 _ACEOF
2525 rm -f conftest.o conftest.obj
2526 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2527   (eval $ac_compile) 2>&5
2528   ac_status=$?
2529   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2530   (exit $ac_status); }; then
2531   for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2532   case $ac_file in
2533     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2534     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2535        break;;
2536   esac
2537 done
2538 else
2539   echo "$as_me: failed program was:" >&5
2540 sed 's/^/| /' conftest.$ac_ext >&5
2541
2542 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2543 See \`config.log' for more details." >&5
2544 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2545 See \`config.log' for more details." >&2;}
2546    { (exit 1); exit 1; }; }
2547 fi
2548
2549 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2550 fi
2551 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2552 echo "${ECHO_T}$ac_cv_objext" >&6
2553 OBJEXT=$ac_cv_objext
2554 ac_objext=$OBJEXT
2555 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2556 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
2557 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2558   echo $ECHO_N "(cached) $ECHO_C" >&6
2559 else
2560   cat >conftest.$ac_ext <<_ACEOF
2561 #line $LINENO "configure"
2562 /* confdefs.h.  */
2563 _ACEOF
2564 cat confdefs.h >>conftest.$ac_ext
2565 cat >>conftest.$ac_ext <<_ACEOF
2566 /* end confdefs.h.  */
2567
2568 int
2569 main ()
2570 {
2571 #ifndef __GNUC__
2572        choke me
2573 #endif
2574
2575   ;
2576   return 0;
2577 }
2578 _ACEOF
2579 rm -f conftest.$ac_objext
2580 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2581   (eval $ac_compile) 2>&5
2582   ac_status=$?
2583   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2584   (exit $ac_status); } &&
2585          { ac_try='test -s conftest.$ac_objext'
2586   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2587   (eval $ac_try) 2>&5
2588   ac_status=$?
2589   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2590   (exit $ac_status); }; }; then
2591   ac_compiler_gnu=yes
2592 else
2593   echo "$as_me: failed program was:" >&5
2594 sed 's/^/| /' conftest.$ac_ext >&5
2595
2596 ac_compiler_gnu=no
2597 fi
2598 rm -f conftest.$ac_objext conftest.$ac_ext
2599 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2600
2601 fi
2602 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
2603 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
2604 GXX=`test $ac_compiler_gnu = yes && echo yes`
2605 ac_test_CXXFLAGS=${CXXFLAGS+set}
2606 ac_save_CXXFLAGS=$CXXFLAGS
2607 CXXFLAGS="-g"
2608 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
2609 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
2610 if test "${ac_cv_prog_cxx_g+set}" = set; then
2611   echo $ECHO_N "(cached) $ECHO_C" >&6
2612 else
2613   cat >conftest.$ac_ext <<_ACEOF
2614 #line $LINENO "configure"
2615 /* confdefs.h.  */
2616 _ACEOF
2617 cat confdefs.h >>conftest.$ac_ext
2618 cat >>conftest.$ac_ext <<_ACEOF
2619 /* end confdefs.h.  */
2620
2621 int
2622 main ()
2623 {
2624
2625   ;
2626   return 0;
2627 }
2628 _ACEOF
2629 rm -f conftest.$ac_objext
2630 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2631   (eval $ac_compile) 2>&5
2632   ac_status=$?
2633   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2634   (exit $ac_status); } &&
2635          { ac_try='test -s conftest.$ac_objext'
2636   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2637   (eval $ac_try) 2>&5
2638   ac_status=$?
2639   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2640   (exit $ac_status); }; }; then
2641   ac_cv_prog_cxx_g=yes
2642 else
2643   echo "$as_me: failed program was:" >&5
2644 sed 's/^/| /' conftest.$ac_ext >&5
2645
2646 ac_cv_prog_cxx_g=no
2647 fi
2648 rm -f conftest.$ac_objext conftest.$ac_ext
2649 fi
2650 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
2651 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
2652 if test "$ac_test_CXXFLAGS" = set; then
2653   CXXFLAGS=$ac_save_CXXFLAGS
2654 elif test $ac_cv_prog_cxx_g = yes; then
2655   if test "$GXX" = yes; then
2656     CXXFLAGS="-g -O2"
2657   else
2658     CXXFLAGS="-g"
2659   fi
2660 else
2661   if test "$GXX" = yes; then
2662     CXXFLAGS="-O2"
2663   else
2664     CXXFLAGS=
2665   fi
2666 fi
2667 for ac_declaration in \
2668    ''\
2669    '#include <stdlib.h>' \
2670    'extern "C" void std::exit (int) throw (); using std::exit;' \
2671    'extern "C" void std::exit (int); using std::exit;' \
2672    'extern "C" void exit (int) throw ();' \
2673    'extern "C" void exit (int);' \
2674    'void exit (int);'
2675 do
2676   cat >conftest.$ac_ext <<_ACEOF
2677 #line $LINENO "configure"
2678 /* confdefs.h.  */
2679 _ACEOF
2680 cat confdefs.h >>conftest.$ac_ext
2681 cat >>conftest.$ac_ext <<_ACEOF
2682 /* end confdefs.h.  */
2683 #include <stdlib.h>
2684 $ac_declaration
2685 int
2686 main ()
2687 {
2688 exit (42);
2689   ;
2690   return 0;
2691 }
2692 _ACEOF
2693 rm -f conftest.$ac_objext
2694 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2695   (eval $ac_compile) 2>&5
2696   ac_status=$?
2697   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2698   (exit $ac_status); } &&
2699          { ac_try='test -s conftest.$ac_objext'
2700   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2701   (eval $ac_try) 2>&5
2702   ac_status=$?
2703   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2704   (exit $ac_status); }; }; then
2705   :
2706 else
2707   echo "$as_me: failed program was:" >&5
2708 sed 's/^/| /' conftest.$ac_ext >&5
2709
2710 continue
2711 fi
2712 rm -f conftest.$ac_objext conftest.$ac_ext
2713   cat >conftest.$ac_ext <<_ACEOF
2714 #line $LINENO "configure"
2715 /* confdefs.h.  */
2716 _ACEOF
2717 cat confdefs.h >>conftest.$ac_ext
2718 cat >>conftest.$ac_ext <<_ACEOF
2719 /* end confdefs.h.  */
2720 $ac_declaration
2721 int
2722 main ()
2723 {
2724 exit (42);
2725   ;
2726   return 0;
2727 }
2728 _ACEOF
2729 rm -f conftest.$ac_objext
2730 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2731   (eval $ac_compile) 2>&5
2732   ac_status=$?
2733   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2734   (exit $ac_status); } &&
2735          { ac_try='test -s conftest.$ac_objext'
2736   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2737   (eval $ac_try) 2>&5
2738   ac_status=$?
2739   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2740   (exit $ac_status); }; }; then
2741   break
2742 else
2743   echo "$as_me: failed program was:" >&5
2744 sed 's/^/| /' conftest.$ac_ext >&5
2745
2746 fi
2747 rm -f conftest.$ac_objext conftest.$ac_ext
2748 done
2749 rm -f conftest*
2750 if test -n "$ac_declaration"; then
2751   echo '#ifdef __cplusplus' >>confdefs.h
2752   echo $ac_declaration      >>confdefs.h
2753   echo '#endif'             >>confdefs.h
2754 fi
2755
2756 ac_ext=c
2757 ac_cpp='$CPP $CPPFLAGS'
2758 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2759 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2760 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2761
2762 ac_ext=c
2763 ac_cpp='$CPP $CPPFLAGS'
2764 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2765 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2766 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2767 if test -n "$ac_tool_prefix"; then
2768   for ac_prog in gcc
2769   do
2770     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2771 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2772 echo "$as_me:$LINENO: checking for $ac_word" >&5
2773 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2774 if test "${ac_cv_prog_CC+set}" = set; then
2775   echo $ECHO_N "(cached) $ECHO_C" >&6
2776 else
2777   if test -n "$CC"; then
2778   ac_cv_prog_CC="$CC" # Let the user override the test.
2779 else
2780 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2781 for as_dir in $PATH
2782 do
2783   IFS=$as_save_IFS
2784   test -z "$as_dir" && as_dir=.
2785   for ac_exec_ext in '' $ac_executable_extensions; do
2786   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2787     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2788     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2789     break 2
2790   fi
2791 done
2792 done
2793
2794 fi
2795 fi
2796 CC=$ac_cv_prog_CC
2797 if test -n "$CC"; then
2798   echo "$as_me:$LINENO: result: $CC" >&5
2799 echo "${ECHO_T}$CC" >&6
2800 else
2801   echo "$as_me:$LINENO: result: no" >&5
2802 echo "${ECHO_T}no" >&6
2803 fi
2804
2805     test -n "$CC" && break
2806   done
2807 fi
2808 if test -z "$CC"; then
2809   ac_ct_CC=$CC
2810   for ac_prog in gcc
2811 do
2812   # Extract the first word of "$ac_prog", so it can be a program name with args.
2813 set dummy $ac_prog; ac_word=$2
2814 echo "$as_me:$LINENO: checking for $ac_word" >&5
2815 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2816 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2817   echo $ECHO_N "(cached) $ECHO_C" >&6
2818 else
2819   if test -n "$ac_ct_CC"; then
2820   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2821 else
2822 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2823 for as_dir in $PATH
2824 do
2825   IFS=$as_save_IFS
2826   test -z "$as_dir" && as_dir=.
2827   for ac_exec_ext in '' $ac_executable_extensions; do
2828   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2829     ac_cv_prog_ac_ct_CC="$ac_prog"
2830     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2831     break 2
2832   fi
2833 done
2834 done
2835
2836 fi
2837 fi
2838 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2839 if test -n "$ac_ct_CC"; then
2840   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2841 echo "${ECHO_T}$ac_ct_CC" >&6
2842 else
2843   echo "$as_me:$LINENO: result: no" >&5
2844 echo "${ECHO_T}no" >&6
2845 fi
2846
2847   test -n "$ac_ct_CC" && break
2848 done
2849
2850   CC=$ac_ct_CC
2851 fi
2852
2853
2854 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2855 See \`config.log' for more details." >&5
2856 echo "$as_me: error: no acceptable C compiler found in \$PATH
2857 See \`config.log' for more details." >&2;}
2858    { (exit 1); exit 1; }; }
2859
2860 # Provide some information about the compiler.
2861 echo "$as_me:$LINENO:" \
2862      "checking for C compiler version" >&5
2863 ac_compiler=`set X $ac_compile; echo $2`
2864 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2865   (eval $ac_compiler --version </dev/null >&5) 2>&5
2866   ac_status=$?
2867   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2868   (exit $ac_status); }
2869 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2870   (eval $ac_compiler -v </dev/null >&5) 2>&5
2871   ac_status=$?
2872   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2873   (exit $ac_status); }
2874 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2875   (eval $ac_compiler -V </dev/null >&5) 2>&5
2876   ac_status=$?
2877   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2878   (exit $ac_status); }
2879
2880 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2881 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2882 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2883   echo $ECHO_N "(cached) $ECHO_C" >&6
2884 else
2885   cat >conftest.$ac_ext <<_ACEOF
2886 #line $LINENO "configure"
2887 /* confdefs.h.  */
2888 _ACEOF
2889 cat confdefs.h >>conftest.$ac_ext
2890 cat >>conftest.$ac_ext <<_ACEOF
2891 /* end confdefs.h.  */
2892
2893 int
2894 main ()
2895 {
2896 #ifndef __GNUC__
2897        choke me
2898 #endif
2899
2900   ;
2901   return 0;
2902 }
2903 _ACEOF
2904 rm -f conftest.$ac_objext
2905 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2906   (eval $ac_compile) 2>&5
2907   ac_status=$?
2908   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2909   (exit $ac_status); } &&
2910          { ac_try='test -s conftest.$ac_objext'
2911   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2912   (eval $ac_try) 2>&5
2913   ac_status=$?
2914   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2915   (exit $ac_status); }; }; then
2916   ac_compiler_gnu=yes
2917 else
2918   echo "$as_me: failed program was:" >&5
2919 sed 's/^/| /' conftest.$ac_ext >&5
2920
2921 ac_compiler_gnu=no
2922 fi
2923 rm -f conftest.$ac_objext conftest.$ac_ext
2924 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2925
2926 fi
2927 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2928 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2929 GCC=`test $ac_compiler_gnu = yes && echo yes`
2930 ac_test_CFLAGS=${CFLAGS+set}
2931 ac_save_CFLAGS=$CFLAGS
2932 CFLAGS="-g"
2933 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2934 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2935 if test "${ac_cv_prog_cc_g+set}" = set; then
2936   echo $ECHO_N "(cached) $ECHO_C" >&6
2937 else
2938   cat >conftest.$ac_ext <<_ACEOF
2939 #line $LINENO "configure"
2940 /* confdefs.h.  */
2941 _ACEOF
2942 cat confdefs.h >>conftest.$ac_ext
2943 cat >>conftest.$ac_ext <<_ACEOF
2944 /* end confdefs.h.  */
2945
2946 int
2947 main ()
2948 {
2949
2950   ;
2951   return 0;
2952 }
2953 _ACEOF
2954 rm -f conftest.$ac_objext
2955 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2956   (eval $ac_compile) 2>&5
2957   ac_status=$?
2958   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2959   (exit $ac_status); } &&
2960          { ac_try='test -s conftest.$ac_objext'
2961   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2962   (eval $ac_try) 2>&5
2963   ac_status=$?
2964   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2965   (exit $ac_status); }; }; then
2966   ac_cv_prog_cc_g=yes
2967 else
2968   echo "$as_me: failed program was:" >&5
2969 sed 's/^/| /' conftest.$ac_ext >&5
2970
2971 ac_cv_prog_cc_g=no
2972 fi
2973 rm -f conftest.$ac_objext conftest.$ac_ext
2974 fi
2975 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2976 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2977 if test "$ac_test_CFLAGS" = set; then
2978   CFLAGS=$ac_save_CFLAGS
2979 elif test $ac_cv_prog_cc_g = yes; then
2980   if test "$GCC" = yes; then
2981     CFLAGS="-g -O2"
2982   else
2983     CFLAGS="-g"
2984   fi
2985 else
2986   if test "$GCC" = yes; then
2987     CFLAGS="-O2"
2988   else
2989     CFLAGS=
2990   fi
2991 fi
2992 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2993 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2994 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2995   echo $ECHO_N "(cached) $ECHO_C" >&6
2996 else
2997   ac_cv_prog_cc_stdc=no
2998 ac_save_CC=$CC
2999 cat >conftest.$ac_ext <<_ACEOF
3000 #line $LINENO "configure"
3001 /* confdefs.h.  */
3002 _ACEOF
3003 cat confdefs.h >>conftest.$ac_ext
3004 cat >>conftest.$ac_ext <<_ACEOF
3005 /* end confdefs.h.  */
3006 #include <stdarg.h>
3007 #include <stdio.h>
3008 #include <sys/types.h>
3009 #include <sys/stat.h>
3010 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3011 struct buf { int x; };
3012 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3013 static char *e (p, i)
3014      char **p;
3015      int i;
3016 {
3017   return p[i];
3018 }
3019 static char *f (char * (*g) (char **, int), char **p, ...)
3020 {
3021   char *s;
3022   va_list v;
3023   va_start (v,p);
3024   s = g (p, va_arg (v,int));
3025   va_end (v);
3026   return s;
3027 }
3028 int test (int i, double x);
3029 struct s1 {int (*f) (int a);};
3030 struct s2 {int (*f) (double a);};
3031 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3032 int argc;
3033 char **argv;
3034 int
3035 main ()
3036 {
3037 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3038   ;
3039   return 0;
3040 }
3041 _ACEOF
3042 # Don't try gcc -ansi; that turns off useful extensions and
3043 # breaks some systems' header files.
3044 # AIX                   -qlanglvl=ansi
3045 # Ultrix and OSF/1      -std1
3046 # HP-UX 10.20 and later -Ae
3047 # HP-UX older versions  -Aa -D_HPUX_SOURCE
3048 # SVR4                  -Xc -D__EXTENSIONS__
3049 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3050 do
3051   CC="$ac_save_CC $ac_arg"
3052   rm -f conftest.$ac_objext
3053 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3054   (eval $ac_compile) 2>&5
3055   ac_status=$?
3056   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3057   (exit $ac_status); } &&
3058          { ac_try='test -s conftest.$ac_objext'
3059   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3060   (eval $ac_try) 2>&5
3061   ac_status=$?
3062   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3063   (exit $ac_status); }; }; then
3064   ac_cv_prog_cc_stdc=$ac_arg
3065 break
3066 else
3067   echo "$as_me: failed program was:" >&5
3068 sed 's/^/| /' conftest.$ac_ext >&5
3069
3070 fi
3071 rm -f conftest.$ac_objext
3072 done
3073 rm -f conftest.$ac_ext conftest.$ac_objext
3074 CC=$ac_save_CC
3075
3076 fi
3077
3078 case "x$ac_cv_prog_cc_stdc" in
3079   x|xno)
3080     echo "$as_me:$LINENO: result: none needed" >&5
3081 echo "${ECHO_T}none needed" >&6 ;;
3082   *)
3083     echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
3084 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
3085     CC="$CC $ac_cv_prog_cc_stdc" ;;
3086 esac
3087
3088 # Some people use a C++ compiler to compile C.  Since we use `exit',
3089 # in C++ we need to declare it.  In case someone uses the same compiler
3090 # for both compiling C and C++ we need to have the C++ compiler decide
3091 # the declaration of exit, since it's the most demanding environment.
3092 cat >conftest.$ac_ext <<_ACEOF
3093 #ifndef __cplusplus
3094   choke me
3095 #endif
3096 _ACEOF
3097 rm -f conftest.$ac_objext
3098 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3099   (eval $ac_compile) 2>&5
3100   ac_status=$?
3101   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3102   (exit $ac_status); } &&
3103          { ac_try='test -s conftest.$ac_objext'
3104   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3105   (eval $ac_try) 2>&5
3106   ac_status=$?
3107   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3108   (exit $ac_status); }; }; then
3109   for ac_declaration in \
3110    ''\
3111    '#include <stdlib.h>' \
3112    'extern "C" void std::exit (int) throw (); using std::exit;' \
3113    'extern "C" void std::exit (int); using std::exit;' \
3114    'extern "C" void exit (int) throw ();' \
3115    'extern "C" void exit (int);' \
3116    'void exit (int);'
3117 do
3118   cat >conftest.$ac_ext <<_ACEOF
3119 #line $LINENO "configure"
3120 /* confdefs.h.  */
3121 _ACEOF
3122 cat confdefs.h >>conftest.$ac_ext
3123 cat >>conftest.$ac_ext <<_ACEOF
3124 /* end confdefs.h.  */
3125 #include <stdlib.h>
3126 $ac_declaration
3127 int
3128 main ()
3129 {
3130 exit (42);
3131   ;
3132   return 0;
3133 }
3134 _ACEOF
3135 rm -f conftest.$ac_objext
3136 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3137   (eval $ac_compile) 2>&5
3138   ac_status=$?
3139   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3140   (exit $ac_status); } &&
3141          { ac_try='test -s conftest.$ac_objext'
3142   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3143   (eval $ac_try) 2>&5
3144   ac_status=$?
3145   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3146   (exit $ac_status); }; }; then
3147   :
3148 else
3149   echo "$as_me: failed program was:" >&5
3150 sed 's/^/| /' conftest.$ac_ext >&5
3151
3152 continue
3153 fi
3154 rm -f conftest.$ac_objext conftest.$ac_ext
3155   cat >conftest.$ac_ext <<_ACEOF
3156 #line $LINENO "configure"
3157 /* confdefs.h.  */
3158 _ACEOF
3159 cat confdefs.h >>conftest.$ac_ext
3160 cat >>conftest.$ac_ext <<_ACEOF
3161 /* end confdefs.h.  */
3162 $ac_declaration
3163 int
3164 main ()
3165 {
3166 exit (42);
3167   ;
3168   return 0;
3169 }
3170 _ACEOF
3171 rm -f conftest.$ac_objext
3172 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3173   (eval $ac_compile) 2>&5
3174   ac_status=$?
3175   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3176   (exit $ac_status); } &&
3177          { ac_try='test -s conftest.$ac_objext'
3178   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3179   (eval $ac_try) 2>&5
3180   ac_status=$?
3181   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3182   (exit $ac_status); }; }; then
3183   break
3184 else
3185   echo "$as_me: failed program was:" >&5
3186 sed 's/^/| /' conftest.$ac_ext >&5
3187
3188 fi
3189 rm -f conftest.$ac_objext conftest.$ac_ext
3190 done
3191 rm -f conftest*
3192 if test -n "$ac_declaration"; then
3193   echo '#ifdef __cplusplus' >>confdefs.h
3194   echo $ac_declaration      >>confdefs.h
3195   echo '#endif'             >>confdefs.h
3196 fi
3197
3198 else
3199   echo "$as_me: failed program was:" >&5
3200 sed 's/^/| /' conftest.$ac_ext >&5
3201
3202 fi
3203 rm -f conftest.$ac_objext conftest.$ac_ext
3204 ac_ext=c
3205 ac_cpp='$CPP $CPPFLAGS'
3206 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3207 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3208 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3209
3210 ac_ext=c
3211 ac_cpp='$CPP $CPPFLAGS'
3212 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3213 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3214 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3215 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3216 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3217 # On Suns, sometimes $CPP names a directory.
3218 if test -n "$CPP" && test -d "$CPP"; then
3219   CPP=
3220 fi
3221 if test -z "$CPP"; then
3222   if test "${ac_cv_prog_CPP+set}" = set; then
3223   echo $ECHO_N "(cached) $ECHO_C" >&6
3224 else
3225       # Double quotes because CPP needs to be expanded
3226     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3227     do
3228       ac_preproc_ok=false
3229 for ac_c_preproc_warn_flag in '' yes
3230 do
3231   # Use a header file that comes with gcc, so configuring glibc
3232   # with a fresh cross-compiler works.
3233   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3234   # <limits.h> exists even on freestanding compilers.
3235   # On the NeXT, cc -E runs the code through the compiler's parser,
3236   # not just through cpp. "Syntax error" is here to catch this case.
3237   cat >conftest.$ac_ext <<_ACEOF
3238 #line $LINENO "configure"
3239 /* confdefs.h.  */
3240 _ACEOF
3241 cat confdefs.h >>conftest.$ac_ext
3242 cat >>conftest.$ac_ext <<_ACEOF
3243 /* end confdefs.h.  */
3244 #ifdef __STDC__
3245 # include <limits.h>
3246 #else
3247 # include <assert.h>
3248 #endif
3249                      Syntax error
3250 _ACEOF
3251 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3252   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3253   ac_status=$?
3254   grep -v '^ *+' conftest.er1 >conftest.err
3255   rm -f conftest.er1
3256   cat conftest.err >&5
3257   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3258   (exit $ac_status); } >/dev/null; then
3259   if test -s conftest.err; then
3260     ac_cpp_err=$ac_c_preproc_warn_flag
3261   else
3262     ac_cpp_err=
3263   fi
3264 else
3265   ac_cpp_err=yes
3266 fi
3267 if test -z "$ac_cpp_err"; then
3268   :
3269 else
3270   echo "$as_me: failed program was:" >&5
3271 sed 's/^/| /' conftest.$ac_ext >&5
3272
3273   # Broken: fails on valid input.
3274 continue
3275 fi
3276 rm -f conftest.err conftest.$ac_ext
3277
3278   # OK, works on sane cases.  Now check whether non-existent headers
3279   # can be detected and how.
3280   cat >conftest.$ac_ext <<_ACEOF
3281 #line $LINENO "configure"
3282 /* confdefs.h.  */
3283 _ACEOF
3284 cat confdefs.h >>conftest.$ac_ext
3285 cat >>conftest.$ac_ext <<_ACEOF
3286 /* end confdefs.h.  */
3287 #include <ac_nonexistent.h>
3288 _ACEOF
3289 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3290   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3291   ac_status=$?
3292   grep -v '^ *+' conftest.er1 >conftest.err
3293   rm -f conftest.er1
3294   cat conftest.err >&5
3295   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3296   (exit $ac_status); } >/dev/null; then
3297   if test -s conftest.err; then
3298     ac_cpp_err=$ac_c_preproc_warn_flag
3299   else
3300     ac_cpp_err=
3301   fi
3302 else
3303   ac_cpp_err=yes
3304 fi
3305 if test -z "$ac_cpp_err"; then
3306   # Broken: success on invalid input.
3307 continue
3308 else
3309   echo "$as_me: failed program was:" >&5
3310 sed 's/^/| /' conftest.$ac_ext >&5
3311
3312   # Passes both tests.
3313 ac_preproc_ok=:
3314 break
3315 fi
3316 rm -f conftest.err conftest.$ac_ext
3317
3318 done
3319 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3320 rm -f conftest.err conftest.$ac_ext
3321 if $ac_preproc_ok; then
3322   break
3323 fi
3324
3325     done
3326     ac_cv_prog_CPP=$CPP
3327
3328 fi
3329   CPP=$ac_cv_prog_CPP
3330 else
3331   ac_cv_prog_CPP=$CPP
3332 fi
3333 echo "$as_me:$LINENO: result: $CPP" >&5
3334 echo "${ECHO_T}$CPP" >&6
3335 ac_preproc_ok=false
3336 for ac_c_preproc_warn_flag in '' yes
3337 do
3338   # Use a header file that comes with gcc, so configuring glibc
3339   # with a fresh cross-compiler works.
3340   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3341   # <limits.h> exists even on freestanding compilers.
3342   # On the NeXT, cc -E runs the code through the compiler's parser,
3343   # not just through cpp. "Syntax error" is here to catch this case.
3344   cat >conftest.$ac_ext <<_ACEOF
3345 #line $LINENO "configure"
3346 /* confdefs.h.  */
3347 _ACEOF
3348 cat confdefs.h >>conftest.$ac_ext
3349 cat >>conftest.$ac_ext <<_ACEOF
3350 /* end confdefs.h.  */
3351 #ifdef __STDC__
3352 # include <limits.h>
3353 #else
3354 # include <assert.h>
3355 #endif
3356                      Syntax error
3357 _ACEOF
3358 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3359   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3360   ac_status=$?
3361   grep -v '^ *+' conftest.er1 >conftest.err
3362   rm -f conftest.er1
3363   cat conftest.err >&5
3364   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3365   (exit $ac_status); } >/dev/null; then
3366   if test -s conftest.err; then
3367     ac_cpp_err=$ac_c_preproc_warn_flag
3368   else
3369     ac_cpp_err=
3370   fi
3371 else
3372   ac_cpp_err=yes
3373 fi
3374 if test -z "$ac_cpp_err"; then
3375   :
3376 else
3377   echo "$as_me: failed program was:" >&5
3378 sed 's/^/| /' conftest.$ac_ext >&5
3379
3380   # Broken: fails on valid input.
3381 continue
3382 fi
3383 rm -f conftest.err conftest.$ac_ext
3384
3385   # OK, works on sane cases.  Now check whether non-existent headers
3386   # can be detected and how.
3387   cat >conftest.$ac_ext <<_ACEOF
3388 #line $LINENO "configure"
3389 /* confdefs.h.  */
3390 _ACEOF
3391 cat confdefs.h >>conftest.$ac_ext
3392 cat >>conftest.$ac_ext <<_ACEOF
3393 /* end confdefs.h.  */
3394 #include <ac_nonexistent.h>
3395 _ACEOF
3396 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3397   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3398   ac_status=$?
3399   grep -v '^ *+' conftest.er1 >conftest.err
3400   rm -f conftest.er1
3401   cat conftest.err >&5
3402   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3403   (exit $ac_status); } >/dev/null; then
3404   if test -s conftest.err; then
3405     ac_cpp_err=$ac_c_preproc_warn_flag
3406   else
3407     ac_cpp_err=
3408   fi
3409 else
3410   ac_cpp_err=yes
3411 fi
3412 if test -z "$ac_cpp_err"; then
3413   # Broken: success on invalid input.
3414 continue
3415 else
3416   echo "$as_me: failed program was:" >&5
3417 sed 's/^/| /' conftest.$ac_ext >&5
3418
3419   # Passes both tests.
3420 ac_preproc_ok=:
3421 break
3422 fi
3423 rm -f conftest.err conftest.$ac_ext
3424
3425 done
3426 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3427 rm -f conftest.err conftest.$ac_ext
3428 if $ac_preproc_ok; then
3429   :
3430 else
3431   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3432 See \`config.log' for more details." >&5
3433 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3434 See \`config.log' for more details." >&2;}
3435    { (exit 1); exit 1; }; }
3436 fi
3437
3438 ac_ext=c
3439 ac_cpp='$CPP $CPPFLAGS'
3440 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3441 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3442 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3443
3444
3445 if test "$GCC" != "yes"
3446 then
3447         { { echo "$as_me:$LINENO: error: gcc required but not found" >&5
3448 echo "$as_me: error: gcc required but not found" >&2;}
3449    { (exit 1); exit 1; }; }
3450 fi
3451
3452 if test "$GXX" != "yes"
3453 then
3454         { { echo "$as_me:$LINENO: error: g++ required but not found" >&5
3455 echo "$as_me: error: g++ required but not found" >&2;}
3456    { (exit 1); exit 1; }; }
3457 fi
3458
3459 gccmajor=`$CC --version | head -n 1 | awk '{print $NF;}' | cut -d. -f1`
3460 if test "$gccmajor" -lt "3"
3461 then
3462         { { echo "$as_me:$LINENO: error: gcc 3.x required" >&5
3463 echo "$as_me: error: gcc 3.x required" >&2;}
3464    { (exit 1); exit 1; }; }
3465 fi
3466
3467  echo "$as_me:$LINENO: checking for GNU make" >&5
3468 echo $ECHO_N "checking for GNU make... $ECHO_C" >&6
3469 if test "${_cv_gnu_make_command+set}" = set; then
3470   echo $ECHO_N "(cached) $ECHO_C" >&6
3471 else
3472   _cv_gnu_make_command='' ;
3473                 for a in "$MAKE" make gmake gnumake ; do
3474                         if test -z "$a" ; then continue ; fi ;
3475                         if  ( sh -c "$a --version" 2> /dev/null | grep GNU  2>&1 > /dev/null ) ;  then
3476                                 _cv_gnu_make_command=$a ;
3477                                 break;
3478                         fi
3479                 done ;
3480
3481 fi
3482 echo "$as_me:$LINENO: result: $_cv_gnu_make_command" >&5
3483 echo "${ECHO_T}$_cv_gnu_make_command" >&6 ;
3484         if test  "x$_cv_gnu_make_command" != "x"  ; then
3485                 ifGNUmake='' ;
3486         else
3487                 ifGNUmake='#' ;
3488                 echo "$as_me:$LINENO: result: \"Not found\"" >&5
3489 echo "${ECHO_T}\"Not found\"" >&6;
3490         fi
3491
3492
3493 if test -z "$_cv_gnu_make_command"
3494 then
3495         { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5
3496 echo "$as_me: error: GNU Make required but not found" >&2;}
3497    { (exit 1); exit 1; }; }
3498 fi
3499
3500
3501 echo "$as_me:$LINENO: checking " >&5
3502 echo $ECHO_N "checking ... $ECHO_C" >&6
3503 if test "${ac_cv_has_flex+set}" = set; then
3504   echo $ECHO_N "(cached) $ECHO_C" >&6
3505 else
3506   for ac_prog in flex lex
3507 do
3508   # Extract the first word of "$ac_prog", so it can be a program name with args.
3509 set dummy $ac_prog; ac_word=$2
3510 echo "$as_me:$LINENO: checking for $ac_word" >&5
3511 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3512 if test "${ac_cv_prog_LEX+set}" = set; then
3513   echo $ECHO_N "(cached) $ECHO_C" >&6
3514 else
3515   if test -n "$LEX"; then
3516   ac_cv_prog_LEX="$LEX" # Let the user override the test.
3517 else
3518 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3519 for as_dir in $PATH
3520 do
3521   IFS=$as_save_IFS
3522   test -z "$as_dir" && as_dir=.
3523   for ac_exec_ext in '' $ac_executable_extensions; do
3524   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3525     ac_cv_prog_LEX="$ac_prog"
3526     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3527     break 2
3528   fi
3529 done
3530 done
3531
3532 fi
3533 fi
3534 LEX=$ac_cv_prog_LEX
3535 if test -n "$LEX"; then
3536   echo "$as_me:$LINENO: result: $LEX" >&5
3537 echo "${ECHO_T}$LEX" >&6
3538 else
3539   echo "$as_me:$LINENO: result: no" >&5
3540 echo "${ECHO_T}no" >&6
3541 fi
3542
3543   test -n "$LEX" && break
3544 done
3545 test -n "$LEX" || LEX=":"
3546
3547 if test -z "$LEXLIB"
3548 then
3549   echo "$as_me:$LINENO: checking for yywrap in -lfl" >&5
3550 echo $ECHO_N "checking for yywrap in -lfl... $ECHO_C" >&6
3551 if test "${ac_cv_lib_fl_yywrap+set}" = set; then
3552   echo $ECHO_N "(cached) $ECHO_C" >&6
3553 else
3554   ac_check_lib_save_LIBS=$LIBS
3555 LIBS="-lfl  $LIBS"
3556 cat >conftest.$ac_ext <<_ACEOF
3557 #line $LINENO "configure"
3558 /* confdefs.h.  */
3559 _ACEOF
3560 cat confdefs.h >>conftest.$ac_ext
3561 cat >>conftest.$ac_ext <<_ACEOF
3562 /* end confdefs.h.  */
3563
3564 /* Override any gcc2 internal prototype to avoid an error.  */
3565 #ifdef __cplusplus
3566 extern "C"
3567 #endif
3568 /* We use char because int might match the return type of a gcc2
3569    builtin and then its argument prototype would still apply.  */
3570 char yywrap ();
3571 int
3572 main ()
3573 {
3574 yywrap ();
3575   ;
3576   return 0;
3577 }
3578 _ACEOF
3579 rm -f conftest.$ac_objext conftest$ac_exeext
3580 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3581   (eval $ac_link) 2>&5
3582   ac_status=$?
3583   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3584   (exit $ac_status); } &&
3585          { ac_try='test -s conftest$ac_exeext'
3586   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3587   (eval $ac_try) 2>&5
3588   ac_status=$?
3589   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3590   (exit $ac_status); }; }; then
3591   ac_cv_lib_fl_yywrap=yes
3592 else
3593   echo "$as_me: failed program was:" >&5
3594 sed 's/^/| /' conftest.$ac_ext >&5
3595
3596 ac_cv_lib_fl_yywrap=no
3597 fi
3598 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3599 LIBS=$ac_check_lib_save_LIBS
3600 fi
3601 echo "$as_me:$LINENO: result: $ac_cv_lib_fl_yywrap" >&5
3602 echo "${ECHO_T}$ac_cv_lib_fl_yywrap" >&6
3603 if test $ac_cv_lib_fl_yywrap = yes; then
3604   LEXLIB="-lfl"
3605 else
3606   echo "$as_me:$LINENO: checking for yywrap in -ll" >&5
3607 echo $ECHO_N "checking for yywrap in -ll... $ECHO_C" >&6
3608 if test "${ac_cv_lib_l_yywrap+set}" = set; then
3609   echo $ECHO_N "(cached) $ECHO_C" >&6
3610 else
3611   ac_check_lib_save_LIBS=$LIBS
3612 LIBS="-ll  $LIBS"
3613 cat >conftest.$ac_ext <<_ACEOF
3614 #line $LINENO "configure"
3615 /* confdefs.h.  */
3616 _ACEOF
3617 cat confdefs.h >>conftest.$ac_ext
3618 cat >>conftest.$ac_ext <<_ACEOF
3619 /* end confdefs.h.  */
3620
3621 /* Override any gcc2 internal prototype to avoid an error.  */
3622 #ifdef __cplusplus
3623 extern "C"
3624 #endif
3625 /* We use char because int might match the return type of a gcc2
3626    builtin and then its argument prototype would still apply.  */
3627 char yywrap ();
3628 int
3629 main ()
3630 {
3631 yywrap ();
3632   ;
3633   return 0;
3634 }
3635 _ACEOF
3636 rm -f conftest.$ac_objext conftest$ac_exeext
3637 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3638   (eval $ac_link) 2>&5
3639   ac_status=$?
3640   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3641   (exit $ac_status); } &&
3642          { ac_try='test -s conftest$ac_exeext'
3643   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3644   (eval $ac_try) 2>&5
3645   ac_status=$?
3646   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3647   (exit $ac_status); }; }; then
3648   ac_cv_lib_l_yywrap=yes
3649 else
3650   echo "$as_me: failed program was:" >&5
3651 sed 's/^/| /' conftest.$ac_ext >&5
3652
3653 ac_cv_lib_l_yywrap=no
3654 fi
3655 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3656 LIBS=$ac_check_lib_save_LIBS
3657 fi
3658 echo "$as_me:$LINENO: result: $ac_cv_lib_l_yywrap" >&5
3659 echo "${ECHO_T}$ac_cv_lib_l_yywrap" >&6
3660 if test $ac_cv_lib_l_yywrap = yes; then
3661   LEXLIB="-ll"
3662 fi
3663
3664 fi
3665
3666 fi
3667
3668 if test "x$LEX" != "x:"; then
3669   echo "$as_me:$LINENO: checking lex output file root" >&5
3670 echo $ECHO_N "checking lex output file root... $ECHO_C" >&6
3671 if test "${ac_cv_prog_lex_root+set}" = set; then
3672   echo $ECHO_N "(cached) $ECHO_C" >&6
3673 else
3674   # The minimal lex program is just a single line: %%.  But some broken lexes
3675 # (Solaris, I think it was) want two %% lines, so accommodate them.
3676 cat >conftest.l <<_ACEOF
3677 %%
3678 %%
3679 _ACEOF
3680 { (eval echo "$as_me:$LINENO: \"$LEX conftest.l\"") >&5
3681   (eval $LEX conftest.l) 2>&5
3682   ac_status=$?
3683   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3684   (exit $ac_status); }
3685 if test -f lex.yy.c; then
3686   ac_cv_prog_lex_root=lex.yy
3687 elif test -f lexyy.c; then
3688   ac_cv_prog_lex_root=lexyy
3689 else
3690   { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5
3691 echo "$as_me: error: cannot find output from $LEX; giving up" >&2;}
3692    { (exit 1); exit 1; }; }
3693 fi
3694 fi
3695 echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5
3696 echo "${ECHO_T}$ac_cv_prog_lex_root" >&6
3697 rm -f conftest.l
3698 LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
3699
3700 echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5
3701 echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6
3702 if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then
3703   echo $ECHO_N "(cached) $ECHO_C" >&6
3704 else
3705   # POSIX says lex can declare yytext either as a pointer or an array; the
3706 # default is implementation-dependent. Figure out which it is, since
3707 # not all implementations provide the %pointer and %array declarations.
3708 ac_cv_prog_lex_yytext_pointer=no
3709 echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c
3710 ac_save_LIBS=$LIBS
3711 LIBS="$LIBS $LEXLIB"
3712 cat >conftest.$ac_ext <<_ACEOF
3713 `cat $LEX_OUTPUT_ROOT.c`
3714 _ACEOF
3715 rm -f conftest.$ac_objext conftest$ac_exeext
3716 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3717   (eval $ac_link) 2>&5
3718   ac_status=$?
3719   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3720   (exit $ac_status); } &&
3721          { ac_try='test -s conftest$ac_exeext'
3722   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3723   (eval $ac_try) 2>&5
3724   ac_status=$?
3725   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3726   (exit $ac_status); }; }; then
3727   ac_cv_prog_lex_yytext_pointer=yes
3728 else
3729   echo "$as_me: failed program was:" >&5
3730 sed 's/^/| /' conftest.$ac_ext >&5
3731
3732 fi
3733 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3734 LIBS=$ac_save_LIBS
3735 rm -f "${LEX_OUTPUT_ROOT}.c"
3736
3737 fi
3738 echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5
3739 echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6
3740 if test $ac_cv_prog_lex_yytext_pointer = yes; then
3741
3742 cat >>confdefs.h <<\_ACEOF
3743 #define YYTEXT_POINTER 1
3744 _ACEOF
3745
3746 fi
3747
3748 fi
3749
3750 fi
3751 echo "$as_me:$LINENO: result: $ac_cv_has_flex" >&5
3752 echo "${ECHO_T}$ac_cv_has_flex" >&6
3753 if test "$LEX" != "flex"; then
3754   { { echo "$as_me:$LINENO: error: flex not found but required" >&5
3755 echo "$as_me: error: flex not found but required" >&2;}
3756    { (exit 1); exit 1; }; }
3757 fi
3758
3759 echo "$as_me:$LINENO: checking " >&5
3760 echo $ECHO_N "checking ... $ECHO_C" >&6
3761 if test "${ac_cv_has_bison+set}" = set; then
3762   echo $ECHO_N "(cached) $ECHO_C" >&6
3763 else
3764   for ac_prog in 'bison -y' byacc
3765 do
3766   # Extract the first word of "$ac_prog", so it can be a program name with args.
3767 set dummy $ac_prog; ac_word=$2
3768 echo "$as_me:$LINENO: checking for $ac_word" >&5
3769 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3770 if test "${ac_cv_prog_YACC+set}" = set; then
3771   echo $ECHO_N "(cached) $ECHO_C" >&6
3772 else
3773   if test -n "$YACC"; then
3774   ac_cv_prog_YACC="$YACC" # Let the user override the test.
3775 else
3776 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3777 for as_dir in $PATH
3778 do
3779   IFS=$as_save_IFS
3780   test -z "$as_dir" && as_dir=.
3781   for ac_exec_ext in '' $ac_executable_extensions; do
3782   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3783     ac_cv_prog_YACC="$ac_prog"
3784     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3785     break 2
3786   fi
3787 done
3788 done
3789
3790 fi
3791 fi
3792 YACC=$ac_cv_prog_YACC
3793 if test -n "$YACC"; then
3794   echo "$as_me:$LINENO: result: $YACC" >&5
3795 echo "${ECHO_T}$YACC" >&6
3796 else
3797   echo "$as_me:$LINENO: result: no" >&5
3798 echo "${ECHO_T}no" >&6
3799 fi
3800
3801   test -n "$YACC" && break
3802 done
3803 test -n "$YACC" || YACC="yacc"
3804
3805
3806 fi
3807 echo "$as_me:$LINENO: result: $ac_cv_has_bison" >&5
3808 echo "${ECHO_T}$ac_cv_has_bison" >&6
3809 if test "$YACC" != "bison -y"; then
3810   { { echo "$as_me:$LINENO: error: bison not found but required" >&5
3811 echo "$as_me: error: bison not found but required" >&2;}
3812    { (exit 1); exit 1; }; }
3813 else
3814   YACC=bison
3815
3816 fi
3817
3818
3819 # Check whether --enable-shared or --disable-shared was given.
3820 if test "${enable_shared+set}" = set; then
3821   enableval="$enable_shared"
3822   p=${PACKAGE-default}
3823     case $enableval in
3824     yes) enable_shared=yes ;;
3825     no) enable_shared=no ;;
3826     *)
3827       enable_shared=no
3828       # Look at the argument we got.  We use all the common list separators.
3829       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3830       for pkg in $enableval; do
3831         IFS="$lt_save_ifs"
3832         if test "X$pkg" = "X$p"; then
3833           enable_shared=yes
3834         fi
3835       done
3836       IFS="$lt_save_ifs"
3837       ;;
3838     esac
3839 else
3840   enable_shared=yes
3841 fi;
3842
3843 # Check whether --enable-static or --disable-static was given.
3844 if test "${enable_static+set}" = set; then
3845   enableval="$enable_static"
3846   p=${PACKAGE-default}
3847     case $enableval in
3848     yes) enable_static=yes ;;
3849     no) enable_static=no ;;
3850     *)
3851      enable_static=no
3852       # Look at the argument we got.  We use all the common list separators.
3853       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3854       for pkg in $enableval; do
3855         IFS="$lt_save_ifs"
3856         if test "X$pkg" = "X$p"; then
3857           enable_static=yes
3858         fi
3859       done
3860       IFS="$lt_save_ifs"
3861       ;;
3862     esac
3863 else
3864   enable_static=yes
3865 fi;
3866
3867 # Check whether --enable-fast-install or --disable-fast-install was given.
3868 if test "${enable_fast_install+set}" = set; then
3869   enableval="$enable_fast_install"
3870   p=${PACKAGE-default}
3871     case $enableval in
3872     yes) enable_fast_install=yes ;;
3873     no) enable_fast_install=no ;;
3874     *)
3875       enable_fast_install=no
3876       # Look at the argument we got.  We use all the common list separators.
3877       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3878       for pkg in $enableval; do
3879         IFS="$lt_save_ifs"
3880         if test "X$pkg" = "X$p"; then
3881           enable_fast_install=yes
3882         fi
3883       done
3884       IFS="$lt_save_ifs"
3885       ;;
3886     esac
3887 else
3888   enable_fast_install=yes
3889 fi;
3890
3891 echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3892 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
3893 if test "${lt_cv_path_SED+set}" = set; then
3894   echo $ECHO_N "(cached) $ECHO_C" >&6
3895 else
3896   # Loop through the user's path and test for sed and gsed.
3897 # Then use that list of sed's as ones to test for truncation.
3898 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3899 for as_dir in $PATH
3900 do
3901   IFS=$as_save_IFS
3902   test -z "$as_dir" && as_dir=.
3903   for lt_ac_prog in sed gsed; do
3904     for ac_exec_ext in '' $ac_executable_extensions; do
3905       if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
3906         lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
3907       fi
3908     done
3909   done
3910 done
3911 lt_ac_max=0
3912 lt_ac_count=0
3913 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
3914 # along with /bin/sed that truncates output.
3915 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
3916   test ! -f $lt_ac_sed && break
3917   cat /dev/null > conftest.in
3918   lt_ac_count=0
3919   echo $ECHO_N "0123456789$ECHO_C" >conftest.in
3920   # Check for GNU sed and select it if it is found.
3921   if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
3922     lt_cv_path_SED=$lt_ac_sed
3923     break
3924   fi
3925   while true; do
3926     cat conftest.in conftest.in >conftest.tmp
3927     mv conftest.tmp conftest.in
3928     cp conftest.in conftest.nl
3929     echo >>conftest.nl
3930     $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
3931     cmp -s conftest.out conftest.nl || break
3932     # 10000 chars as input seems more than enough
3933     test $lt_ac_count -gt 10 && break
3934     lt_ac_count=`expr $lt_ac_count + 1`
3935     if test $lt_ac_count -gt $lt_ac_max; then
3936       lt_ac_max=$lt_ac_count
3937       lt_cv_path_SED=$lt_ac_sed
3938     fi
3939   done
3940 done
3941 SED=$lt_cv_path_SED
3942
3943 fi
3944
3945 echo "$as_me:$LINENO: result: $SED" >&5
3946 echo "${ECHO_T}$SED" >&6
3947
3948 echo "$as_me:$LINENO: checking for egrep" >&5
3949 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3950 if test "${ac_cv_prog_egrep+set}" = set; then
3951   echo $ECHO_N "(cached) $ECHO_C" >&6
3952 else
3953   if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3954     then ac_cv_prog_egrep='grep -E'
3955     else ac_cv_prog_egrep='egrep'
3956     fi
3957 fi
3958 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3959 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3960  EGREP=$ac_cv_prog_egrep
3961
3962
3963
3964 # Check whether --with-gnu-ld or --without-gnu-ld was given.
3965 if test "${with_gnu_ld+set}" = set; then
3966   withval="$with_gnu_ld"
3967   test "$withval" = no || with_gnu_ld=yes
3968 else
3969   with_gnu_ld=no
3970 fi;
3971 ac_prog=ld
3972 if test "$GCC" = yes; then
3973   # Check if gcc -print-prog-name=ld gives a path.
3974   echo "$as_me:$LINENO: checking for ld used by $CC" >&5
3975 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
3976   case $host in
3977   *-*-mingw*)
3978     # gcc leaves a trailing carriage return which upsets mingw
3979     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3980   *)
3981     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3982   esac
3983   case $ac_prog in
3984     # Accept absolute paths.
3985     [\\/]* | ?:[\\/]*)
3986       re_direlt='/[^/][^/]*/\.\./'
3987       # Canonicalize the path of ld
3988       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
3989       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
3990         ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
3991       done
3992       test -z "$LD" && LD="$ac_prog"
3993       ;;
3994   "")
3995     # If it fails, then pretend we aren't using GCC.
3996     ac_prog=ld
3997     ;;
3998   *)
3999     # If it is relative, then search for the first ld in PATH.
4000     with_gnu_ld=unknown
4001     ;;
4002   esac
4003 elif test "$with_gnu_ld" = yes; then
4004   echo "$as_me:$LINENO: checking for GNU ld" >&5
4005 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
4006 else
4007   echo "$as_me:$LINENO: checking for non-GNU ld" >&5
4008 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
4009 fi
4010 if test "${lt_cv_path_LD+set}" = set; then
4011   echo $ECHO_N "(cached) $ECHO_C" >&6
4012 else
4013   if test -z "$LD"; then
4014   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4015   for ac_dir in $PATH; do
4016     IFS="$lt_save_ifs"
4017     test -z "$ac_dir" && ac_dir=.
4018     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4019       lt_cv_path_LD="$ac_dir/$ac_prog"
4020       # Check to see if the program is GNU ld.  I'd rather use --version,
4021       # but apparently some GNU ld's only accept -v.
4022       # Break only if it was the GNU/non-GNU ld that we prefer.
4023       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4024       *GNU* | *'with BFD'*)
4025         test "$with_gnu_ld" != no && break
4026         ;;
4027       *)
4028         test "$with_gnu_ld" != yes && break
4029         ;;
4030       esac
4031     fi
4032   done
4033   IFS="$lt_save_ifs"
4034 else
4035   lt_cv_path_LD="$LD" # Let the user override the test with a path.
4036 fi
4037 fi
4038
4039 LD="$lt_cv_path_LD"
4040 if test -n "$LD"; then
4041   echo "$as_me:$LINENO: result: $LD" >&5
4042 echo "${ECHO_T}$LD" >&6
4043 else
4044   echo "$as_me:$LINENO: result: no" >&5
4045 echo "${ECHO_T}no" >&6
4046 fi
4047 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
4048 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
4049    { (exit 1); exit 1; }; }
4050 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4051 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
4052 if test "${lt_cv_prog_gnu_ld+set}" = set; then
4053   echo $ECHO_N "(cached) $ECHO_C" >&6
4054 else
4055   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
4056 case `"$LD" -v 2>&1 </dev/null` in
4057 *GNU* | *'with BFD'*)
4058   lt_cv_prog_gnu_ld=yes
4059   ;;
4060 *)
4061   lt_cv_prog_gnu_ld=no
4062   ;;
4063 esac
4064 fi
4065 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
4066 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
4067 with_gnu_ld=$lt_cv_prog_gnu_ld
4068
4069
4070 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
4071 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
4072 if test "${lt_cv_ld_reload_flag+set}" = set; then
4073   echo $ECHO_N "(cached) $ECHO_C" >&6
4074 else
4075   lt_cv_ld_reload_flag='-r'
4076 fi
4077 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
4078 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
4079 reload_flag=$lt_cv_ld_reload_flag
4080 case $reload_flag in
4081 "" | " "*) ;;
4082 *) reload_flag=" $reload_flag" ;;
4083 esac
4084 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4085
4086 echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
4087 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
4088 if test "${lt_cv_path_NM+set}" = set; then
4089   echo $ECHO_N "(cached) $ECHO_C" >&6
4090 else
4091   if test -n "$NM"; then
4092   # Let the user override the test.
4093   lt_cv_path_NM="$NM"
4094 else
4095   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4096   for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
4097     IFS="$lt_save_ifs"
4098     test -z "$ac_dir" && ac_dir=.
4099     tmp_nm="$ac_dir/${ac_tool_prefix}nm"
4100     if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4101       # Check to see if the nm accepts a BSD-compat flag.
4102       # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4103       #   nm: unknown option "B" ignored
4104       # Tru64's nm complains that /dev/null is an invalid object file
4105       case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4106       */dev/null* | *'Invalid file or object type'*)
4107         lt_cv_path_NM="$tmp_nm -B"
4108         break
4109         ;;
4110       *)
4111         case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4112         */dev/null*)
4113           lt_cv_path_NM="$tmp_nm -p"
4114           break
4115           ;;
4116         *)
4117           lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4118           continue # so that we can try to find one that supports BSD flags
4119           ;;
4120         esac
4121       esac
4122     fi
4123   done
4124   IFS="$lt_save_ifs"
4125   test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
4126 fi
4127 fi
4128 echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
4129 echo "${ECHO_T}$lt_cv_path_NM" >&6
4130 NM="$lt_cv_path_NM"
4131
4132 echo "$as_me:$LINENO: checking whether ln -s works" >&5
4133 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
4134 LN_S=$as_ln_s
4135 if test "$LN_S" = "ln -s"; then
4136   echo "$as_me:$LINENO: result: yes" >&5
4137 echo "${ECHO_T}yes" >&6
4138 else
4139   echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4140 echo "${ECHO_T}no, using $LN_S" >&6
4141 fi
4142
4143 echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
4144 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
4145 if test "${lt_cv_deplibs_check_method+set}" = set; then
4146   echo $ECHO_N "(cached) $ECHO_C" >&6
4147 else
4148   lt_cv_file_magic_cmd='$MAGIC_CMD'
4149 lt_cv_file_magic_test_file=
4150 lt_cv_deplibs_check_method='unknown'
4151 # Need to set the preceding variable on all platforms that support
4152 # interlibrary dependencies.
4153 # 'none' -- dependencies not supported.
4154 # `unknown' -- same as none, but documents that we really don't know.
4155 # 'pass_all' -- all dependencies passed with no checks.
4156 # 'test_compile' -- check by making test program.
4157 # 'file_magic [[regex]]' -- check by looking for files in library path
4158 # which responds to the $file_magic_cmd with a given extended regex.
4159 # If you have `file' or equivalent on your system and you're not sure
4160 # whether `pass_all' will *always* work, you probably want this one.
4161
4162 case $host_os in
4163 aix4* | aix5*)
4164   lt_cv_deplibs_check_method=pass_all
4165   ;;
4166
4167 beos*)
4168   lt_cv_deplibs_check_method=pass_all
4169   ;;
4170
4171 bsdi4*)
4172   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4173   lt_cv_file_magic_cmd='/usr/bin/file -L'
4174   lt_cv_file_magic_test_file=/shlib/libc.so
4175   ;;
4176
4177 cygwin* | mingw* | pw32*)
4178   # win32_libid is a shell function defined in ltmain.sh
4179   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4180   lt_cv_file_magic_cmd='win32_libid'
4181   ;;
4182
4183 darwin* | rhapsody*)
4184   # this will be overwritten by pass_all, but leave it in just in case
4185   lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
4186   lt_cv_file_magic_cmd='/usr/bin/file -L'
4187   case "$host_os" in
4188   rhapsody* | darwin1.[012])
4189     lt_cv_file_magic_test_file=`/System/Library/Frameworks/System.framework/System`
4190     ;;
4191   *) # Darwin 1.3 on
4192     lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
4193     ;;
4194   esac
4195   lt_cv_deplibs_check_method=pass_all
4196   ;;
4197
4198 freebsd*)
4199   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4200     case $host_cpu in
4201     i*86 )
4202       # Not sure whether the presence of OpenBSD here was a mistake.
4203       # Let's accept both of them until this is cleared up.
4204       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
4205       lt_cv_file_magic_cmd=/usr/bin/file
4206       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4207       ;;
4208     esac
4209   else
4210     lt_cv_deplibs_check_method=pass_all
4211   fi
4212   ;;
4213
4214 gnu*)
4215   lt_cv_deplibs_check_method=pass_all
4216   ;;
4217
4218 hpux10.20* | hpux11*)
4219   lt_cv_file_magic_cmd=/usr/bin/file
4220   case "$host_cpu" in
4221   ia64*)
4222     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4223     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4224     ;;
4225   hppa*64*)
4226     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]'
4227     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4228     ;;
4229   *)
4230     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4231     lt_cv_file_magic_test_file=/usr/lib/libc.sl
4232     ;;
4233   esac
4234   ;;
4235
4236 irix5* | irix6* | nonstopux*)
4237   case $host_os in
4238   irix5* | nonstopux*)
4239     # this will be overridden with pass_all, but let us keep it just in case
4240     lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
4241     ;;
4242   *)
4243     case $LD in
4244     *-32|*"-32 ") libmagic=32-bit;;
4245     *-n32|*"-n32 ") libmagic=N32;;
4246     *-64|*"-64 ") libmagic=64-bit;;
4247     *) libmagic=never-match;;
4248     esac
4249     # this will be overridden with pass_all, but let us keep it just in case
4250     lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
4251     ;;
4252   esac
4253   lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
4254   lt_cv_deplibs_check_method=pass_all
4255   ;;
4256
4257 # This must be Linux ELF.
4258 linux*)
4259   case $host_cpu in
4260   alpha* | hppa* | i*86 | ia64* | m68* | mips | mipsel | powerpc* | sparc* | s390* | sh*)
4261     lt_cv_deplibs_check_method=pass_all ;;
4262   *)
4263     # glibc up to 2.1.1 does not perform some relocations on ARM
4264     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
4265   esac
4266   lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
4267   ;;
4268
4269 netbsd*)
4270   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4271     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4272   else
4273     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
4274   fi
4275   ;;
4276
4277 newos6*)
4278   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4279   lt_cv_file_magic_cmd=/usr/bin/file
4280   lt_cv_file_magic_test_file=/usr/lib/libnls.so
4281   ;;
4282
4283 nto-qnx)
4284   lt_cv_deplibs_check_method=unknown
4285   ;;
4286
4287 openbsd*)
4288   lt_cv_file_magic_cmd=/usr/bin/file
4289   lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4290   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4291     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB shared object'
4292   else
4293     lt_cv_deplibs_check_method='file_magic OpenBSD.* shared library'
4294   fi
4295   ;;
4296
4297 osf3* | osf4* | osf5*)
4298   # this will be overridden with pass_all, but let us keep it just in case
4299   lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
4300   lt_cv_file_magic_test_file=/shlib/libc.so
4301   lt_cv_deplibs_check_method=pass_all
4302   ;;
4303
4304 sco3.2v5*)
4305   lt_cv_deplibs_check_method=pass_all
4306   ;;
4307
4308 solaris*)
4309   lt_cv_deplibs_check_method=pass_all
4310   lt_cv_file_magic_test_file=/lib/libc.so
4311   ;;
4312
4313 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
4314   case $host_vendor in
4315   motorola)
4316     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]'
4317     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4318     ;;
4319   ncr)
4320     lt_cv_deplibs_check_method=pass_all
4321     ;;
4322   sequent)
4323     lt_cv_file_magic_cmd='/bin/file'
4324     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4325     ;;
4326   sni)
4327     lt_cv_file_magic_cmd='/bin/file'
4328     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4329     lt_cv_file_magic_test_file=/lib/libc.so
4330     ;;
4331   siemens)
4332     lt_cv_deplibs_check_method=pass_all
4333     ;;
4334   esac
4335   ;;
4336
4337 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*)
4338   lt_cv_deplibs_check_method=pass_all
4339   ;;
4340 esac
4341
4342 fi
4343 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
4344 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
4345 file_magic_cmd=$lt_cv_file_magic_cmd
4346 deplibs_check_method=$lt_cv_deplibs_check_method
4347 test -z "$deplibs_check_method" && deplibs_check_method=unknown
4348
4349
4350
4351
4352 # If no C compiler was specified, use CC.
4353 LTCC=${LTCC-"$CC"}
4354
4355 # Allow CC to be a program name with arguments.
4356 compiler=$CC
4357
4358 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
4359 if test "${enable_libtool_lock+set}" = set; then
4360   enableval="$enable_libtool_lock"
4361
4362 fi;
4363 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
4364
4365 # Some flags need to be propagated to the compiler or linker for good
4366 # libtool support.
4367 case $host in
4368 ia64-*-hpux*)
4369   # Find out which ABI we are using.
4370   echo 'int i;' > conftest.$ac_ext
4371   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4372   (eval $ac_compile) 2>&5
4373   ac_status=$?
4374   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4375   (exit $ac_status); }; then
4376     case `/usr/bin/file conftest.$ac_objext` in
4377     *ELF-32*)
4378       HPUX_IA64_MODE="32"
4379       ;;
4380     *ELF-64*)
4381       HPUX_IA64_MODE="64"
4382       ;;
4383     esac
4384   fi
4385   rm -rf conftest*
4386   ;;
4387 *-*-irix6*)
4388   # Find out which ABI we are using.
4389   echo '#line 4386 "configure"' > conftest.$ac_ext
4390   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4391   (eval $ac_compile) 2>&5
4392   ac_status=$?
4393   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4394   (exit $ac_status); }; then
4395    if test "$lt_cv_prog_gnu_ld" = yes; then
4396     case `/usr/bin/file conftest.$ac_objext` in
4397     *32-bit*)
4398       LD="${LD-ld} -melf32bsmip"
4399       ;;
4400     *N32*)
4401       LD="${LD-ld} -melf32bmipn32"
4402       ;;
4403     *64-bit*)
4404       LD="${LD-ld} -melf64bmip"
4405       ;;
4406     esac
4407    else
4408     case `/usr/bin/file conftest.$ac_objext` in
4409     *32-bit*)
4410       LD="${LD-ld} -32"
4411       ;;
4412     *N32*)
4413       LD="${LD-ld} -n32"
4414       ;;
4415     *64-bit*)
4416       LD="${LD-ld} -64"
4417       ;;
4418     esac
4419    fi
4420   fi
4421   rm -rf conftest*
4422   ;;
4423
4424 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
4425   # Find out which ABI we are using.
4426   echo 'int i;' > conftest.$ac_ext
4427   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4428   (eval $ac_compile) 2>&5
4429   ac_status=$?
4430   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4431   (exit $ac_status); }; then
4432     case "`/usr/bin/file conftest.o`" in
4433     *32-bit*)
4434       case $host in
4435         x86_64-*linux*)
4436           LD="${LD-ld} -m elf_i386"
4437           ;;
4438         ppc64-*linux*)
4439           LD="${LD-ld} -m elf32ppclinux"
4440           ;;
4441         s390x-*linux*)
4442           LD="${LD-ld} -m elf_s390"
4443           ;;
4444         sparc64-*linux*)
4445           LD="${LD-ld} -m elf32_sparc"
4446           ;;
4447       esac
4448       ;;
4449     *64-bit*)
4450       case $host in
4451         x86_64-*linux*)
4452           LD="${LD-ld} -m elf_x86_64"
4453           ;;
4454         ppc*-*linux*|powerpc*-*linux*)
4455           LD="${LD-ld} -m elf64ppc"
4456           ;;
4457         s390*-*linux*)
4458           LD="${LD-ld} -m elf64_s390"
4459           ;;
4460         sparc*-*linux*)
4461           LD="${LD-ld} -m elf64_sparc"
4462           ;;
4463       esac
4464       ;;
4465     esac
4466   fi
4467   rm -rf conftest*
4468   ;;
4469
4470 *-*-sco3.2v5*)
4471   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4472   SAVE_CFLAGS="$CFLAGS"
4473   CFLAGS="$CFLAGS -belf"
4474   echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
4475 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
4476 if test "${lt_cv_cc_needs_belf+set}" = set; then
4477   echo $ECHO_N "(cached) $ECHO_C" >&6
4478 else
4479   ac_ext=c
4480 ac_cpp='$CPP $CPPFLAGS'
4481 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4482 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4483 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4484
4485      cat >conftest.$ac_ext <<_ACEOF
4486 #line $LINENO "configure"
4487 /* confdefs.h.  */
4488 _ACEOF
4489 cat confdefs.h >>conftest.$ac_ext
4490 cat >>conftest.$ac_ext <<_ACEOF
4491 /* end confdefs.h.  */
4492
4493 int
4494 main ()
4495 {
4496
4497   ;
4498   return 0;
4499 }
4500 _ACEOF
4501 rm -f conftest.$ac_objext conftest$ac_exeext
4502 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4503   (eval $ac_link) 2>&5
4504   ac_status=$?
4505   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4506   (exit $ac_status); } &&
4507          { ac_try='test -s conftest$ac_exeext'
4508   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4509   (eval $ac_try) 2>&5
4510   ac_status=$?
4511   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4512   (exit $ac_status); }; }; then
4513   lt_cv_cc_needs_belf=yes
4514 else
4515   echo "$as_me: failed program was:" >&5
4516 sed 's/^/| /' conftest.$ac_ext >&5
4517
4518 lt_cv_cc_needs_belf=no
4519 fi
4520 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4521      ac_ext=c
4522 ac_cpp='$CPP $CPPFLAGS'
4523 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4524 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4525 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4526
4527 fi
4528 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
4529 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
4530   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4531     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4532     CFLAGS="$SAVE_CFLAGS"
4533   fi
4534   ;;
4535
4536 esac
4537
4538 need_locks="$enable_libtool_lock"
4539
4540
4541
4542 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4543 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4544 if test "${ac_cv_header_stdc+set}" = set; then
4545   echo $ECHO_N "(cached) $ECHO_C" >&6
4546 else
4547   cat >conftest.$ac_ext <<_ACEOF
4548 #line $LINENO "configure"
4549 /* confdefs.h.  */
4550 _ACEOF
4551 cat confdefs.h >>conftest.$ac_ext
4552 cat >>conftest.$ac_ext <<_ACEOF
4553 /* end confdefs.h.  */
4554 #include <stdlib.h>
4555 #include <stdarg.h>
4556 #include <string.h>
4557 #include <float.h>
4558
4559 int
4560 main ()
4561 {
4562
4563   ;
4564   return 0;
4565 }
4566 _ACEOF
4567 rm -f conftest.$ac_objext
4568 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4569   (eval $ac_compile) 2>&5
4570   ac_status=$?
4571   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4572   (exit $ac_status); } &&
4573          { ac_try='test -s conftest.$ac_objext'
4574   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4575   (eval $ac_try) 2>&5
4576   ac_status=$?
4577   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4578   (exit $ac_status); }; }; then
4579   ac_cv_header_stdc=yes
4580 else
4581   echo "$as_me: failed program was:" >&5
4582 sed 's/^/| /' conftest.$ac_ext >&5
4583
4584 ac_cv_header_stdc=no
4585 fi
4586 rm -f conftest.$ac_objext conftest.$ac_ext
4587
4588 if test $ac_cv_header_stdc = yes; then
4589   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4590   cat >conftest.$ac_ext <<_ACEOF
4591 #line $LINENO "configure"
4592 /* confdefs.h.  */
4593 _ACEOF
4594 cat confdefs.h >>conftest.$ac_ext
4595 cat >>conftest.$ac_ext <<_ACEOF
4596 /* end confdefs.h.  */
4597 #include <string.h>
4598
4599 _ACEOF
4600 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4601   $EGREP "memchr" >/dev/null 2>&1; then
4602   :
4603 else
4604   ac_cv_header_stdc=no
4605 fi
4606 rm -f conftest*
4607
4608 fi
4609
4610 if test $ac_cv_header_stdc = yes; then
4611   # ISC 2.0.2 stdlib.h does not declare free, 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 <stdlib.h>
4620
4621 _ACEOF
4622 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4623   $EGREP "free" >/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   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4634   if test "$cross_compiling" = yes; then
4635   :
4636 else
4637   cat >conftest.$ac_ext <<_ACEOF
4638 #line $LINENO "configure"
4639 /* confdefs.h.  */
4640 _ACEOF
4641 cat confdefs.h >>conftest.$ac_ext
4642 cat >>conftest.$ac_ext <<_ACEOF
4643 /* end confdefs.h.  */
4644 #include <ctype.h>
4645 #if ((' ' & 0x0FF) == 0x020)
4646 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4647 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4648 #else
4649 # define ISLOWER(c) \
4650                    (('a' <= (c) && (c) <= 'i') \
4651                      || ('j' <= (c) && (c) <= 'r') \
4652                      || ('s' <= (c) && (c) <= 'z'))
4653 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4654 #endif
4655
4656 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4657 int
4658 main ()
4659 {
4660   int i;
4661   for (i = 0; i < 256; i++)
4662     if (XOR (islower (i), ISLOWER (i))
4663         || toupper (i) != TOUPPER (i))
4664       exit(2);
4665   exit (0);
4666 }
4667 _ACEOF
4668 rm -f conftest$ac_exeext
4669 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4670   (eval $ac_link) 2>&5
4671   ac_status=$?
4672   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4673   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4674   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4675   (eval $ac_try) 2>&5
4676   ac_status=$?
4677   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4678   (exit $ac_status); }; }; then
4679   :
4680 else
4681   echo "$as_me: program exited with status $ac_status" >&5
4682 echo "$as_me: failed program was:" >&5
4683 sed 's/^/| /' conftest.$ac_ext >&5
4684
4685 ( exit $ac_status )
4686 ac_cv_header_stdc=no
4687 fi
4688 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4689 fi
4690 fi
4691 fi
4692 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4693 echo "${ECHO_T}$ac_cv_header_stdc" >&6
4694 if test $ac_cv_header_stdc = yes; then
4695
4696 cat >>confdefs.h <<\_ACEOF
4697 #define STDC_HEADERS 1
4698 _ACEOF
4699
4700 fi
4701
4702 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4703
4704
4705
4706
4707
4708
4709
4710
4711
4712 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4713                   inttypes.h stdint.h unistd.h
4714 do
4715 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4716 echo "$as_me:$LINENO: checking for $ac_header" >&5
4717 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4718 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4719   echo $ECHO_N "(cached) $ECHO_C" >&6
4720 else
4721   cat >conftest.$ac_ext <<_ACEOF
4722 #line $LINENO "configure"
4723 /* confdefs.h.  */
4724 _ACEOF
4725 cat confdefs.h >>conftest.$ac_ext
4726 cat >>conftest.$ac_ext <<_ACEOF
4727 /* end confdefs.h.  */
4728 $ac_includes_default
4729
4730 #include <$ac_header>
4731 _ACEOF
4732 rm -f conftest.$ac_objext
4733 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4734   (eval $ac_compile) 2>&5
4735   ac_status=$?
4736   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4737   (exit $ac_status); } &&
4738          { ac_try='test -s conftest.$ac_objext'
4739   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4740   (eval $ac_try) 2>&5
4741   ac_status=$?
4742   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4743   (exit $ac_status); }; }; then
4744   eval "$as_ac_Header=yes"
4745 else
4746   echo "$as_me: failed program was:" >&5
4747 sed 's/^/| /' conftest.$ac_ext >&5
4748
4749 eval "$as_ac_Header=no"
4750 fi
4751 rm -f conftest.$ac_objext conftest.$ac_ext
4752 fi
4753 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4754 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4755 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4756   cat >>confdefs.h <<_ACEOF
4757 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4758 _ACEOF
4759
4760 fi
4761
4762 done
4763
4764
4765
4766 for ac_header in dlfcn.h
4767 do
4768 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4769 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4770   echo "$as_me:$LINENO: checking for $ac_header" >&5
4771 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4772 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4773   echo $ECHO_N "(cached) $ECHO_C" >&6
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 else
4778   # Is the header compilable?
4779 echo "$as_me:$LINENO: checking $ac_header usability" >&5
4780 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4781 cat >conftest.$ac_ext <<_ACEOF
4782 #line $LINENO "configure"
4783 /* confdefs.h.  */
4784 _ACEOF
4785 cat confdefs.h >>conftest.$ac_ext
4786 cat >>conftest.$ac_ext <<_ACEOF
4787 /* end confdefs.h.  */
4788 $ac_includes_default
4789 #include <$ac_header>
4790 _ACEOF
4791 rm -f conftest.$ac_objext
4792 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4793   (eval $ac_compile) 2>&5
4794   ac_status=$?
4795   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4796   (exit $ac_status); } &&
4797          { ac_try='test -s conftest.$ac_objext'
4798   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4799   (eval $ac_try) 2>&5
4800   ac_status=$?
4801   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4802   (exit $ac_status); }; }; then
4803   ac_header_compiler=yes
4804 else
4805   echo "$as_me: failed program was:" >&5
4806 sed 's/^/| /' conftest.$ac_ext >&5
4807
4808 ac_header_compiler=no
4809 fi
4810 rm -f conftest.$ac_objext conftest.$ac_ext
4811 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4812 echo "${ECHO_T}$ac_header_compiler" >&6
4813
4814 # Is the header present?
4815 echo "$as_me:$LINENO: checking $ac_header presence" >&5
4816 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4817 cat >conftest.$ac_ext <<_ACEOF
4818 #line $LINENO "configure"
4819 /* confdefs.h.  */
4820 _ACEOF
4821 cat confdefs.h >>conftest.$ac_ext
4822 cat >>conftest.$ac_ext <<_ACEOF
4823 /* end confdefs.h.  */
4824 #include <$ac_header>
4825 _ACEOF
4826 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4827   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4828   ac_status=$?
4829   grep -v '^ *+' conftest.er1 >conftest.err
4830   rm -f conftest.er1
4831   cat conftest.err >&5
4832   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4833   (exit $ac_status); } >/dev/null; then
4834   if test -s conftest.err; then
4835     ac_cpp_err=$ac_c_preproc_warn_flag
4836   else
4837     ac_cpp_err=
4838   fi
4839 else
4840   ac_cpp_err=yes
4841 fi
4842 if test -z "$ac_cpp_err"; then
4843   ac_header_preproc=yes
4844 else
4845   echo "$as_me: failed program was:" >&5
4846 sed 's/^/| /' conftest.$ac_ext >&5
4847
4848   ac_header_preproc=no
4849 fi
4850 rm -f conftest.err conftest.$ac_ext
4851 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4852 echo "${ECHO_T}$ac_header_preproc" >&6
4853
4854 # So?  What about this header?
4855 case $ac_header_compiler:$ac_header_preproc in
4856   yes:no )
4857     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4858 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4859     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4860 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4861     (
4862       cat <<\_ASBOX
4863 ## ------------------------------------ ##
4864 ## Report this to bug-autoconf@gnu.org. ##
4865 ## ------------------------------------ ##
4866 _ASBOX
4867     ) |
4868       sed "s/^/$as_me: WARNING:     /" >&2
4869     ;;
4870   no:yes )
4871     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4872 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4873     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4874 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4875     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4876 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4877     (
4878       cat <<\_ASBOX
4879 ## ------------------------------------ ##
4880 ## Report this to bug-autoconf@gnu.org. ##
4881 ## ------------------------------------ ##
4882 _ASBOX
4883     ) |
4884       sed "s/^/$as_me: WARNING:     /" >&2
4885     ;;
4886 esac
4887 echo "$as_me:$LINENO: checking for $ac_header" >&5
4888 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4889 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4890   echo $ECHO_N "(cached) $ECHO_C" >&6
4891 else
4892   eval "$as_ac_Header=$ac_header_preproc"
4893 fi
4894 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4895 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4896
4897 fi
4898 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4899   cat >>confdefs.h <<_ACEOF
4900 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4901 _ACEOF
4902
4903 fi
4904
4905 done
4906
4907 ac_ext=cc
4908 ac_cpp='$CXXCPP $CPPFLAGS'
4909 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4910 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4911 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4912 echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
4913 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
4914 if test -z "$CXXCPP"; then
4915   if test "${ac_cv_prog_CXXCPP+set}" = set; then
4916   echo $ECHO_N "(cached) $ECHO_C" >&6
4917 else
4918       # Double quotes because CXXCPP needs to be expanded
4919     for CXXCPP in "$CXX -E" "/lib/cpp"
4920     do
4921       ac_preproc_ok=false
4922 for ac_cxx_preproc_warn_flag in '' yes
4923 do
4924   # Use a header file that comes with gcc, so configuring glibc
4925   # with a fresh cross-compiler works.
4926   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4927   # <limits.h> exists even on freestanding compilers.
4928   # On the NeXT, cc -E runs the code through the compiler's parser,
4929   # not just through cpp. "Syntax error" is here to catch this case.
4930   cat >conftest.$ac_ext <<_ACEOF
4931 #line $LINENO "configure"
4932 /* confdefs.h.  */
4933 _ACEOF
4934 cat confdefs.h >>conftest.$ac_ext
4935 cat >>conftest.$ac_ext <<_ACEOF
4936 /* end confdefs.h.  */
4937 #ifdef __STDC__
4938 # include <limits.h>
4939 #else
4940 # include <assert.h>
4941 #endif
4942                      Syntax error
4943 _ACEOF
4944 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4945   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4946   ac_status=$?
4947   grep -v '^ *+' conftest.er1 >conftest.err
4948   rm -f conftest.er1
4949   cat conftest.err >&5
4950   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4951   (exit $ac_status); } >/dev/null; then
4952   if test -s conftest.err; then
4953     ac_cpp_err=$ac_cxx_preproc_warn_flag
4954   else
4955     ac_cpp_err=
4956   fi
4957 else
4958   ac_cpp_err=yes
4959 fi
4960 if test -z "$ac_cpp_err"; then
4961   :
4962 else
4963   echo "$as_me: failed program was:" >&5
4964 sed 's/^/| /' conftest.$ac_ext >&5
4965
4966   # Broken: fails on valid input.
4967 continue
4968 fi
4969 rm -f conftest.err conftest.$ac_ext
4970
4971   # OK, works on sane cases.  Now check whether non-existent headers
4972   # can be detected and how.
4973   cat >conftest.$ac_ext <<_ACEOF
4974 #line $LINENO "configure"
4975 /* confdefs.h.  */
4976 _ACEOF
4977 cat confdefs.h >>conftest.$ac_ext
4978 cat >>conftest.$ac_ext <<_ACEOF
4979 /* end confdefs.h.  */
4980 #include <ac_nonexistent.h>
4981 _ACEOF
4982 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4983   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4984   ac_status=$?
4985   grep -v '^ *+' conftest.er1 >conftest.err
4986   rm -f conftest.er1
4987   cat conftest.err >&5
4988   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4989   (exit $ac_status); } >/dev/null; then
4990   if test -s conftest.err; then
4991     ac_cpp_err=$ac_cxx_preproc_warn_flag
4992   else
4993     ac_cpp_err=
4994   fi
4995 else
4996   ac_cpp_err=yes
4997 fi
4998 if test -z "$ac_cpp_err"; then
4999   # Broken: success on invalid input.
5000 continue
5001 else
5002   echo "$as_me: failed program was:" >&5
5003 sed 's/^/| /' conftest.$ac_ext >&5
5004
5005   # Passes both tests.
5006 ac_preproc_ok=:
5007 break
5008 fi
5009 rm -f conftest.err conftest.$ac_ext
5010
5011 done
5012 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5013 rm -f conftest.err conftest.$ac_ext
5014 if $ac_preproc_ok; then
5015   break
5016 fi
5017
5018     done
5019     ac_cv_prog_CXXCPP=$CXXCPP
5020
5021 fi
5022   CXXCPP=$ac_cv_prog_CXXCPP
5023 else
5024   ac_cv_prog_CXXCPP=$CXXCPP
5025 fi
5026 echo "$as_me:$LINENO: result: $CXXCPP" >&5
5027 echo "${ECHO_T}$CXXCPP" >&6
5028 ac_preproc_ok=false
5029 for ac_cxx_preproc_warn_flag in '' yes
5030 do
5031   # Use a header file that comes with gcc, so configuring glibc
5032   # with a fresh cross-compiler works.
5033   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5034   # <limits.h> exists even on freestanding compilers.
5035   # On the NeXT, cc -E runs the code through the compiler's parser,
5036   # not just through cpp. "Syntax error" is here to catch this case.
5037   cat >conftest.$ac_ext <<_ACEOF
5038 #line $LINENO "configure"
5039 /* confdefs.h.  */
5040 _ACEOF
5041 cat confdefs.h >>conftest.$ac_ext
5042 cat >>conftest.$ac_ext <<_ACEOF
5043 /* end confdefs.h.  */
5044 #ifdef __STDC__
5045 # include <limits.h>
5046 #else
5047 # include <assert.h>
5048 #endif
5049                      Syntax error
5050 _ACEOF
5051 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5052   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5053   ac_status=$?
5054   grep -v '^ *+' conftest.er1 >conftest.err
5055   rm -f conftest.er1
5056   cat conftest.err >&5
5057   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5058   (exit $ac_status); } >/dev/null; then
5059   if test -s conftest.err; then
5060     ac_cpp_err=$ac_cxx_preproc_warn_flag
5061   else
5062     ac_cpp_err=
5063   fi
5064 else
5065   ac_cpp_err=yes
5066 fi
5067 if test -z "$ac_cpp_err"; then
5068   :
5069 else
5070   echo "$as_me: failed program was:" >&5
5071 sed 's/^/| /' conftest.$ac_ext >&5
5072
5073   # Broken: fails on valid input.
5074 continue
5075 fi
5076 rm -f conftest.err conftest.$ac_ext
5077
5078   # OK, works on sane cases.  Now check whether non-existent headers
5079   # can be detected and how.
5080   cat >conftest.$ac_ext <<_ACEOF
5081 #line $LINENO "configure"
5082 /* confdefs.h.  */
5083 _ACEOF
5084 cat confdefs.h >>conftest.$ac_ext
5085 cat >>conftest.$ac_ext <<_ACEOF
5086 /* end confdefs.h.  */
5087 #include <ac_nonexistent.h>
5088 _ACEOF
5089 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5090   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5091   ac_status=$?
5092   grep -v '^ *+' conftest.er1 >conftest.err
5093   rm -f conftest.er1
5094   cat conftest.err >&5
5095   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5096   (exit $ac_status); } >/dev/null; then
5097   if test -s conftest.err; then
5098     ac_cpp_err=$ac_cxx_preproc_warn_flag
5099   else
5100     ac_cpp_err=
5101   fi
5102 else
5103   ac_cpp_err=yes
5104 fi
5105 if test -z "$ac_cpp_err"; then
5106   # Broken: success on invalid input.
5107 continue
5108 else
5109   echo "$as_me: failed program was:" >&5
5110 sed 's/^/| /' conftest.$ac_ext >&5
5111
5112   # Passes both tests.
5113 ac_preproc_ok=:
5114 break
5115 fi
5116 rm -f conftest.err conftest.$ac_ext
5117
5118 done
5119 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5120 rm -f conftest.err conftest.$ac_ext
5121 if $ac_preproc_ok; then
5122   :
5123 else
5124   { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5125 See \`config.log' for more details." >&5
5126 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5127 See \`config.log' for more details." >&2;}
5128    { (exit 1); exit 1; }; }
5129 fi
5130
5131 ac_ext=cc
5132 ac_cpp='$CXXCPP $CPPFLAGS'
5133 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5134 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5135 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5136
5137
5138 ac_ext=f
5139 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
5140 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5141 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
5142 if test -n "$ac_tool_prefix"; then
5143   for ac_prog in g77 f77 xlf frt pgf77 fl32 af77 fort77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 lf95 g95
5144   do
5145     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5146 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5147 echo "$as_me:$LINENO: checking for $ac_word" >&5
5148 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5149 if test "${ac_cv_prog_F77+set}" = set; then
5150   echo $ECHO_N "(cached) $ECHO_C" >&6
5151 else
5152   if test -n "$F77"; then
5153   ac_cv_prog_F77="$F77" # Let the user override the test.
5154 else
5155 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5156 for as_dir in $PATH
5157 do
5158   IFS=$as_save_IFS
5159   test -z "$as_dir" && as_dir=.
5160   for ac_exec_ext in '' $ac_executable_extensions; do
5161   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5162     ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
5163     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5164     break 2
5165   fi
5166 done
5167 done
5168
5169 fi
5170 fi
5171 F77=$ac_cv_prog_F77
5172 if test -n "$F77"; then
5173   echo "$as_me:$LINENO: result: $F77" >&5
5174 echo "${ECHO_T}$F77" >&6
5175 else
5176   echo "$as_me:$LINENO: result: no" >&5
5177 echo "${ECHO_T}no" >&6
5178 fi
5179
5180     test -n "$F77" && break
5181   done
5182 fi
5183 if test -z "$F77"; then
5184   ac_ct_F77=$F77
5185   for ac_prog in g77 f77 xlf frt pgf77 fl32 af77 fort77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 lf95 g95
5186 do
5187   # Extract the first word of "$ac_prog", so it can be a program name with args.
5188 set dummy $ac_prog; ac_word=$2
5189 echo "$as_me:$LINENO: checking for $ac_word" >&5
5190 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5191 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
5192   echo $ECHO_N "(cached) $ECHO_C" >&6
5193 else
5194   if test -n "$ac_ct_F77"; then
5195   ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
5196 else
5197 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5198 for as_dir in $PATH
5199 do
5200   IFS=$as_save_IFS
5201   test -z "$as_dir" && as_dir=.
5202   for ac_exec_ext in '' $ac_executable_extensions; do
5203   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5204     ac_cv_prog_ac_ct_F77="$ac_prog"
5205     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5206     break 2
5207   fi
5208 done
5209 done
5210
5211 fi
5212 fi
5213 ac_ct_F77=$ac_cv_prog_ac_ct_F77
5214 if test -n "$ac_ct_F77"; then
5215   echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
5216 echo "${ECHO_T}$ac_ct_F77" >&6
5217 else
5218   echo "$as_me:$LINENO: result: no" >&5
5219 echo "${ECHO_T}no" >&6
5220 fi
5221
5222   test -n "$ac_ct_F77" && break
5223 done
5224
5225   F77=$ac_ct_F77
5226 fi
5227
5228
5229 # Provide some information about the compiler.
5230 echo "$as_me:5227:" \
5231      "checking for Fortran 77 compiler version" >&5
5232 ac_compiler=`set X $ac_compile; echo $2`
5233 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
5234   (eval $ac_compiler --version </dev/null >&5) 2>&5
5235   ac_status=$?
5236   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5237   (exit $ac_status); }
5238 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
5239   (eval $ac_compiler -v </dev/null >&5) 2>&5
5240   ac_status=$?
5241   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5242   (exit $ac_status); }
5243 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
5244   (eval $ac_compiler -V </dev/null >&5) 2>&5
5245   ac_status=$?
5246   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5247   (exit $ac_status); }
5248
5249 # If we don't use `.F' as extension, the preprocessor is not run on the
5250 # input file.
5251 ac_save_ext=$ac_ext
5252 ac_ext=F
5253 echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
5254 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
5255 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
5256   echo $ECHO_N "(cached) $ECHO_C" >&6
5257 else
5258   cat >conftest.$ac_ext <<_ACEOF
5259       program main
5260 #ifndef __GNUC__
5261        choke me
5262 #endif
5263
5264       end
5265 _ACEOF
5266 rm -f conftest.$ac_objext
5267 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5268   (eval $ac_compile) 2>&5
5269   ac_status=$?
5270   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5271   (exit $ac_status); } &&
5272          { ac_try='test -s conftest.$ac_objext'
5273   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5274   (eval $ac_try) 2>&5
5275   ac_status=$?
5276   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5277   (exit $ac_status); }; }; then
5278   ac_compiler_gnu=yes
5279 else
5280   echo "$as_me: failed program was:" >&5
5281 sed 's/^/| /' conftest.$ac_ext >&5
5282
5283 ac_compiler_gnu=no
5284 fi
5285 rm -f conftest.$ac_objext conftest.$ac_ext
5286 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
5287
5288 fi
5289 echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
5290 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
5291 ac_ext=$ac_save_ext
5292 G77=`test $ac_compiler_gnu = yes && echo yes`
5293 ac_test_FFLAGS=${FFLAGS+set}
5294 ac_save_FFLAGS=$FFLAGS
5295 FFLAGS=
5296 echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
5297 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
5298 if test "${ac_cv_prog_f77_g+set}" = set; then
5299   echo $ECHO_N "(cached) $ECHO_C" >&6
5300 else
5301   FFLAGS=-g
5302 cat >conftest.$ac_ext <<_ACEOF
5303       program main
5304
5305       end
5306 _ACEOF
5307 rm -f conftest.$ac_objext
5308 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5309   (eval $ac_compile) 2>&5
5310   ac_status=$?
5311   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5312   (exit $ac_status); } &&
5313          { ac_try='test -s conftest.$ac_objext'
5314   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5315   (eval $ac_try) 2>&5
5316   ac_status=$?
5317   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5318   (exit $ac_status); }; }; then
5319   ac_cv_prog_f77_g=yes
5320 else
5321   echo "$as_me: failed program was:" >&5
5322 sed 's/^/| /' conftest.$ac_ext >&5
5323
5324 ac_cv_prog_f77_g=no
5325 fi
5326 rm -f conftest.$ac_objext conftest.$ac_ext
5327
5328 fi
5329 echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
5330 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
5331 if test "$ac_test_FFLAGS" = set; then
5332   FFLAGS=$ac_save_FFLAGS
5333 elif test $ac_cv_prog_f77_g = yes; then
5334   if test "$G77" = yes; then
5335     FFLAGS="-g -O2"
5336   else
5337     FFLAGS="-g"
5338   fi
5339 else
5340   if test "$G77" = yes; then
5341     FFLAGS="-O2"
5342   else
5343     FFLAGS=
5344   fi
5345 fi
5346 ac_ext=c
5347 ac_cpp='$CPP $CPPFLAGS'
5348 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5349 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5350 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5351
5352
5353
5354 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
5355
5356 # find the maximum length of command line arguments
5357 echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
5358 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
5359 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
5360   echo $ECHO_N "(cached) $ECHO_C" >&6
5361 else
5362     i=0
5363   testring="ABCD"
5364
5365   case $build_os in
5366   msdosdjgpp*)
5367     # On DJGPP, this test can blow up pretty badly due to problems in libc
5368     # (any single argument exceeding 2000 bytes causes a buffer overrun
5369     # during glob expansion).  Even if it were fixed, the result of this
5370     # check would be larger than it should be.
5371     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
5372     ;;
5373
5374   gnu*)
5375     # Under GNU Hurd, this test is not required because there is
5376     # no limit to the length of command line arguments.
5377     # Libtool will interpret -1 as no limit whatsoever
5378     lt_cv_sys_max_cmd_len=-1;
5379     ;;
5380
5381   cygwin* | mingw*)
5382     # On Win9x/ME, this test blows up -- it succeeds, but takes
5383     # about 5 minutes as the teststring grows exponentially.
5384     # Worse, since 9x/ME are not pre-emptively multitasking,
5385     # you end up with a "frozen" computer, even though with patience
5386     # the test eventually succeeds (with a max line length of 256k).
5387     # Instead, let's just punt: use the minimum linelength reported by
5388     # all of the supported platforms: 8192 (on NT/2K/XP).
5389     lt_cv_sys_max_cmd_len=8192;
5390     ;;
5391
5392  *)
5393     # If test is not a shell built-in, we'll probably end up computing a
5394     # maximum length that is only half of the actual maximum length, but
5395     # we can't tell.
5396     while (test "X"`$CONFIG_SHELL $0 --fallback-echo "X$testring" 2>/dev/null` \
5397                = "XX$testring") >/dev/null 2>&1 &&
5398             new_result=`expr "X$testring" : ".*" 2>&1` &&
5399             lt_cv_sys_max_cmd_len=$new_result &&
5400             test $i != 17 # 1/2 MB should be enough
5401     do
5402       i=`expr $i + 1`
5403       testring=$testring$testring
5404     done
5405     testring=
5406     # Add a significant safety factor because C++ compilers can tack on massive
5407     # amounts of additional arguments before passing them to the linker.
5408     # It appears as though 1/2 is a usable value.
5409     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5410     ;;
5411   esac
5412
5413 fi
5414
5415 if test -n $lt_cv_sys_max_cmd_len ; then
5416   echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
5417 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
5418 else
5419   echo "$as_me:$LINENO: result: none" >&5
5420 echo "${ECHO_T}none" >&6
5421 fi
5422
5423
5424
5425
5426 # Check for command to grab the raw symbol name followed by C symbol from nm.
5427 echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
5428 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
5429 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
5430   echo $ECHO_N "(cached) $ECHO_C" >&6
5431 else
5432
5433 # These are sane defaults that work on at least a few old systems.
5434 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
5435
5436 # Character class describing NM global symbol codes.
5437 symcode='[BCDEGRST]'
5438
5439 # Regexp to match symbols that can be accessed directly from C.
5440 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5441
5442 # Transform the above into a raw symbol and a C symbol.
5443 symxfrm='\1 \2\3 \3'
5444
5445 # Transform an extracted symbol line into a proper C declaration
5446 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
5447
5448 # Transform an extracted symbol line into symbol name and symbol address
5449 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'"
5450
5451 # Define system-specific variables.
5452 case $host_os in
5453 aix*)
5454   symcode='[BCDT]'
5455   ;;
5456 cygwin* | mingw* | pw32*)
5457   symcode='[ABCDGISTW]'
5458   ;;
5459 hpux*) # Its linker distinguishes data from code symbols
5460   if test "$host_cpu" = ia64; then
5461     symcode='[ABCDEGRST]'
5462   fi
5463   lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5464   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'"
5465   ;;
5466 irix* | nonstopux*)
5467   symcode='[BCDEGRST]'
5468   ;;
5469 osf*)
5470   symcode='[BCDEGQRST]'
5471   ;;
5472 solaris* | sysv5*)
5473   symcode='[BDT]'
5474   ;;
5475 sysv4)
5476   symcode='[DFNSTU]'
5477   ;;
5478 esac
5479
5480 # Handle CRLF in mingw tool chain
5481 opt_cr=
5482 case $build_os in
5483 mingw*)
5484   opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5485   ;;
5486 esac
5487
5488 # If we're using GNU nm, then use its standard symbol codes.
5489 case `$NM -V 2>&1` in
5490 *GNU* | *'with BFD'*)
5491   symcode='[ABCDGISTW]' ;;
5492 esac
5493
5494 # Try without a prefix undercore, then with it.
5495 for ac_symprfx in "" "_"; do
5496
5497   # Write the raw and C identifiers.
5498   lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
5499
5500   # Check to see that the pipe works correctly.
5501   pipe_works=no
5502
5503   rm -f conftest*
5504   cat > conftest.$ac_ext <<EOF
5505 #ifdef __cplusplus
5506 extern "C" {
5507 #endif
5508 char nm_test_var;
5509 void nm_test_func(){}
5510 #ifdef __cplusplus
5511 }
5512 #endif
5513 int main(){nm_test_var='a';nm_test_func();return(0);}
5514 EOF
5515
5516   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5517   (eval $ac_compile) 2>&5
5518   ac_status=$?
5519   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5520   (exit $ac_status); }; then
5521     # Now try to grab the symbols.
5522     nlist=conftest.nm
5523     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
5524   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
5525   ac_status=$?
5526   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5527   (exit $ac_status); } && test -s "$nlist"; then
5528       # Try sorting and uniquifying the output.
5529       if sort "$nlist" | uniq > "$nlist"T; then
5530         mv -f "$nlist"T "$nlist"
5531       else
5532         rm -f "$nlist"T
5533       fi
5534
5535       # Make sure that we snagged all the symbols we need.
5536       if grep ' nm_test_var$' "$nlist" >/dev/null; then
5537         if grep ' nm_test_func$' "$nlist" >/dev/null; then
5538           cat <<EOF > conftest.$ac_ext
5539 #ifdef __cplusplus
5540 extern "C" {
5541 #endif
5542
5543 EOF
5544           # Now generate the symbol file.
5545           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
5546
5547           cat <<EOF >> conftest.$ac_ext
5548 #if defined (__STDC__) && __STDC__
5549 # define lt_ptr_t void *
5550 #else
5551 # define lt_ptr_t char *
5552 # define const
5553 #endif
5554
5555 /* The mapping between symbol names and symbols. */
5556 const struct {
5557   const char *name;
5558   lt_ptr_t address;
5559 }
5560 lt_preloaded_symbols[] =
5561 {
5562 EOF
5563           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
5564           cat <<\EOF >> conftest.$ac_ext
5565   {0, (lt_ptr_t) 0}
5566 };
5567
5568 #ifdef __cplusplus
5569 }
5570 #endif
5571 EOF
5572           # Now try linking the two files.
5573           mv conftest.$ac_objext conftstm.$ac_objext
5574           lt_save_LIBS="$LIBS"
5575           lt_save_CFLAGS="$CFLAGS"
5576           LIBS="conftstm.$ac_objext"
5577           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5578           if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5579   (eval $ac_link) 2>&5
5580   ac_status=$?
5581   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5582   (exit $ac_status); } && test -s conftest${ac_exeext}; then
5583             pipe_works=yes
5584           fi
5585           LIBS="$lt_save_LIBS"
5586           CFLAGS="$lt_save_CFLAGS"
5587         else
5588           echo "cannot find nm_test_func in $nlist" >&5
5589         fi
5590       else
5591         echo "cannot find nm_test_var in $nlist" >&5
5592       fi
5593     else
5594       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5595     fi
5596   else
5597     echo "$progname: failed program was:" >&5
5598     cat conftest.$ac_ext >&5
5599   fi
5600   rm -f conftest* conftst*
5601
5602   # Do not use the global_symbol_pipe unless it works.
5603   if test "$pipe_works" = yes; then
5604     break
5605   else
5606     lt_cv_sys_global_symbol_pipe=
5607   fi
5608 done
5609
5610 fi
5611
5612 if test -z "$lt_cv_sys_global_symbol_pipe"; then
5613   lt_cv_sys_global_symbol_to_cdecl=
5614 fi
5615 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5616   echo "$as_me:$LINENO: result: failed" >&5
5617 echo "${ECHO_T}failed" >&6
5618 else
5619   echo "$as_me:$LINENO: result: ok" >&5
5620 echo "${ECHO_T}ok" >&6
5621 fi
5622
5623 echo "$as_me:$LINENO: checking for objdir" >&5
5624 echo $ECHO_N "checking for objdir... $ECHO_C" >&6
5625 if test "${lt_cv_objdir+set}" = set; then
5626   echo $ECHO_N "(cached) $ECHO_C" >&6
5627 else
5628   rm -f .libs 2>/dev/null
5629 mkdir .libs 2>/dev/null
5630 if test -d .libs; then
5631   lt_cv_objdir=.libs
5632 else
5633   # MS-DOS does not allow filenames that begin with a dot.
5634   lt_cv_objdir=_libs
5635 fi
5636 rmdir .libs 2>/dev/null
5637 fi
5638 echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
5639 echo "${ECHO_T}$lt_cv_objdir" >&6
5640 objdir=$lt_cv_objdir
5641
5642
5643
5644
5645
5646 case $host_os in
5647 aix3*)
5648   # AIX sometimes has problems with the GCC collect2 program.  For some
5649   # reason, if we set the COLLECT_NAMES environment variable, the problems
5650   # vanish in a puff of smoke.
5651   if test "X${COLLECT_NAMES+set}" != Xset; then
5652     COLLECT_NAMES=
5653     export COLLECT_NAMES
5654   fi
5655   ;;
5656 esac
5657
5658 # Sed substitution that helps us do robust quoting.  It backslashifies
5659 # metacharacters that are still active within double-quoted strings.
5660 Xsed='sed -e s/^X//'
5661 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
5662
5663 # Same as above, but do not quote variable references.
5664 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
5665
5666 # Sed substitution to delay expansion of an escaped shell variable in a
5667 # double_quote_subst'ed string.
5668 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5669
5670 # Sed substitution to avoid accidental globbing in evaled expressions
5671 no_glob_subst='s/\*/\\\*/g'
5672
5673 # Constants:
5674 rm="rm -f"
5675
5676 # Global variables:
5677 default_ofile=mklib
5678 can_build_shared=yes
5679
5680 # All known linkers require a `.a' archive for static linking (except M$VC,
5681 # which needs '.lib').
5682 libext=a
5683 ltmain="$ac_aux_dir/ltmain.sh"
5684 ofile="$default_ofile"
5685 with_gnu_ld="$lt_cv_prog_gnu_ld"
5686
5687 if test -n "$ac_tool_prefix"; then
5688   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5689 set dummy ${ac_tool_prefix}ar; ac_word=$2
5690 echo "$as_me:$LINENO: checking for $ac_word" >&5
5691 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5692 if test "${ac_cv_prog_AR+set}" = set; then
5693   echo $ECHO_N "(cached) $ECHO_C" >&6
5694 else
5695   if test -n "$AR"; then
5696   ac_cv_prog_AR="$AR" # Let the user override the test.
5697 else
5698 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5699 for as_dir in $PATH
5700 do
5701   IFS=$as_save_IFS
5702   test -z "$as_dir" && as_dir=.
5703   for ac_exec_ext in '' $ac_executable_extensions; do
5704   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5705     ac_cv_prog_AR="${ac_tool_prefix}ar"
5706     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5707     break 2
5708   fi
5709 done
5710 done
5711
5712 fi
5713 fi
5714 AR=$ac_cv_prog_AR
5715 if test -n "$AR"; then
5716   echo "$as_me:$LINENO: result: $AR" >&5
5717 echo "${ECHO_T}$AR" >&6
5718 else
5719   echo "$as_me:$LINENO: result: no" >&5
5720 echo "${ECHO_T}no" >&6
5721 fi
5722
5723 fi
5724 if test -z "$ac_cv_prog_AR"; then
5725   ac_ct_AR=$AR
5726   # Extract the first word of "ar", so it can be a program name with args.
5727 set dummy ar; ac_word=$2
5728 echo "$as_me:$LINENO: checking for $ac_word" >&5
5729 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5730 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
5731   echo $ECHO_N "(cached) $ECHO_C" >&6
5732 else
5733   if test -n "$ac_ct_AR"; then
5734   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5735 else
5736 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5737 for as_dir in $PATH
5738 do
5739   IFS=$as_save_IFS
5740   test -z "$as_dir" && as_dir=.
5741   for ac_exec_ext in '' $ac_executable_extensions; do
5742   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5743     ac_cv_prog_ac_ct_AR="ar"
5744     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5745     break 2
5746   fi
5747 done
5748 done
5749
5750   test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
5751 fi
5752 fi
5753 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5754 if test -n "$ac_ct_AR"; then
5755   echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
5756 echo "${ECHO_T}$ac_ct_AR" >&6
5757 else
5758   echo "$as_me:$LINENO: result: no" >&5
5759 echo "${ECHO_T}no" >&6
5760 fi
5761
5762   AR=$ac_ct_AR
5763 else
5764   AR="$ac_cv_prog_AR"
5765 fi
5766
5767 if test -n "$ac_tool_prefix"; then
5768   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5769 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5770 echo "$as_me:$LINENO: checking for $ac_word" >&5
5771 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5772 if test "${ac_cv_prog_RANLIB+set}" = set; then
5773   echo $ECHO_N "(cached) $ECHO_C" >&6
5774 else
5775   if test -n "$RANLIB"; then
5776   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5777 else
5778 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5779 for as_dir in $PATH
5780 do
5781   IFS=$as_save_IFS
5782   test -z "$as_dir" && as_dir=.
5783   for ac_exec_ext in '' $ac_executable_extensions; do
5784   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5785     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5786     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5787     break 2
5788   fi
5789 done
5790 done
5791
5792 fi
5793 fi
5794 RANLIB=$ac_cv_prog_RANLIB
5795 if test -n "$RANLIB"; then
5796   echo "$as_me:$LINENO: result: $RANLIB" >&5
5797 echo "${ECHO_T}$RANLIB" >&6
5798 else
5799   echo "$as_me:$LINENO: result: no" >&5
5800 echo "${ECHO_T}no" >&6
5801 fi
5802
5803 fi
5804 if test -z "$ac_cv_prog_RANLIB"; then
5805   ac_ct_RANLIB=$RANLIB
5806   # Extract the first word of "ranlib", so it can be a program name with args.
5807 set dummy ranlib; ac_word=$2
5808 echo "$as_me:$LINENO: checking for $ac_word" >&5
5809 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5810 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5811   echo $ECHO_N "(cached) $ECHO_C" >&6
5812 else
5813   if test -n "$ac_ct_RANLIB"; then
5814   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5815 else
5816 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5817 for as_dir in $PATH
5818 do
5819   IFS=$as_save_IFS
5820   test -z "$as_dir" && as_dir=.
5821   for ac_exec_ext in '' $ac_executable_extensions; do
5822   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5823     ac_cv_prog_ac_ct_RANLIB="ranlib"
5824     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5825     break 2
5826   fi
5827 done
5828 done
5829
5830   test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
5831 fi
5832 fi
5833 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5834 if test -n "$ac_ct_RANLIB"; then
5835   echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5836 echo "${ECHO_T}$ac_ct_RANLIB" >&6
5837 else
5838   echo "$as_me:$LINENO: result: no" >&5
5839 echo "${ECHO_T}no" >&6
5840 fi
5841
5842   RANLIB=$ac_ct_RANLIB
5843 else
5844   RANLIB="$ac_cv_prog_RANLIB"
5845 fi
5846
5847 if test -n "$ac_tool_prefix"; then
5848   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5849 set dummy ${ac_tool_prefix}strip; ac_word=$2
5850 echo "$as_me:$LINENO: checking for $ac_word" >&5
5851 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5852 if test "${ac_cv_prog_STRIP+set}" = set; then
5853   echo $ECHO_N "(cached) $ECHO_C" >&6
5854 else
5855   if test -n "$STRIP"; then
5856   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5857 else
5858 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5859 for as_dir in $PATH
5860 do
5861   IFS=$as_save_IFS
5862   test -z "$as_dir" && as_dir=.
5863   for ac_exec_ext in '' $ac_executable_extensions; do
5864   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5865     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5866     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5867     break 2
5868   fi
5869 done
5870 done
5871
5872 fi
5873 fi
5874 STRIP=$ac_cv_prog_STRIP
5875 if test -n "$STRIP"; then
5876   echo "$as_me:$LINENO: result: $STRIP" >&5
5877 echo "${ECHO_T}$STRIP" >&6
5878 else
5879   echo "$as_me:$LINENO: result: no" >&5
5880 echo "${ECHO_T}no" >&6
5881 fi
5882
5883 fi
5884 if test -z "$ac_cv_prog_STRIP"; then
5885   ac_ct_STRIP=$STRIP
5886   # Extract the first word of "strip", so it can be a program name with args.
5887 set dummy strip; ac_word=$2
5888 echo "$as_me:$LINENO: checking for $ac_word" >&5
5889 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5890 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
5891   echo $ECHO_N "(cached) $ECHO_C" >&6
5892 else
5893   if test -n "$ac_ct_STRIP"; then
5894   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5895 else
5896 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5897 for as_dir in $PATH
5898 do
5899   IFS=$as_save_IFS
5900   test -z "$as_dir" && as_dir=.
5901   for ac_exec_ext in '' $ac_executable_extensions; do
5902   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5903     ac_cv_prog_ac_ct_STRIP="strip"
5904     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5905     break 2
5906   fi
5907 done
5908 done
5909
5910   test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
5911 fi
5912 fi
5913 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5914 if test -n "$ac_ct_STRIP"; then
5915   echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
5916 echo "${ECHO_T}$ac_ct_STRIP" >&6
5917 else
5918   echo "$as_me:$LINENO: result: no" >&5
5919 echo "${ECHO_T}no" >&6
5920 fi
5921
5922   STRIP=$ac_ct_STRIP
5923 else
5924   STRIP="$ac_cv_prog_STRIP"
5925 fi
5926
5927
5928 old_CC="$CC"
5929 old_CFLAGS="$CFLAGS"
5930
5931 # Set sane defaults for various variables
5932 test -z "$AR" && AR=ar
5933 test -z "$AR_FLAGS" && AR_FLAGS=cru
5934 test -z "$AS" && AS=as
5935 test -z "$CC" && CC=cc
5936 test -z "$LTCC" && LTCC=$CC
5937 test -z "$DLLTOOL" && DLLTOOL=dlltool
5938 test -z "$LD" && LD=ld
5939 test -z "$LN_S" && LN_S="ln -s"
5940 test -z "$MAGIC_CMD" && MAGIC_CMD=file
5941 test -z "$NM" && NM=nm
5942 test -z "$SED" && SED=sed
5943 test -z "$OBJDUMP" && OBJDUMP=objdump
5944 test -z "$RANLIB" && RANLIB=:
5945 test -z "$STRIP" && STRIP=:
5946 test -z "$ac_objext" && ac_objext=o
5947
5948 # Determine commands to create old-style static archives.
5949 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
5950 old_postinstall_cmds='chmod 644 $oldlib'
5951 old_postuninstall_cmds=
5952
5953 if test -n "$RANLIB"; then
5954   case $host_os in
5955   openbsd*)
5956     old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
5957     ;;
5958   *)
5959     old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
5960     ;;
5961   esac
5962   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
5963 fi
5964
5965 # Only perform the check for file, if the check method requires it
5966 case $deplibs_check_method in
5967 file_magic*)
5968   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
5969     echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
5970 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
5971 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
5972   echo $ECHO_N "(cached) $ECHO_C" >&6
5973 else
5974   case $MAGIC_CMD in
5975 [\\/*] |  ?:[\\/]*)
5976   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
5977   ;;
5978 *)
5979   lt_save_MAGIC_CMD="$MAGIC_CMD"
5980   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5981   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
5982   for ac_dir in $ac_dummy; do
5983     IFS="$lt_save_ifs"
5984     test -z "$ac_dir" && ac_dir=.
5985     if test -f $ac_dir/${ac_tool_prefix}file; then
5986       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
5987       if test -n "$file_magic_test_file"; then
5988         case $deplibs_check_method in
5989         "file_magic "*)
5990           file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
5991           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5992           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
5993             $EGREP "$file_magic_regex" > /dev/null; then
5994             :
5995           else
5996             cat <<EOF 1>&2
5997
5998 *** Warning: the command libtool uses to detect shared libraries,
5999 *** $file_magic_cmd, produces output that libtool cannot recognize.
6000 *** The result is that libtool may fail to recognize shared libraries
6001 *** as such.  This will affect the creation of libtool libraries that
6002 *** depend on shared libraries, but programs linked with such libtool
6003 *** libraries will work regardless of this problem.  Nevertheless, you
6004 *** may want to report the problem to your system manager and/or to
6005 *** bug-libtool@gnu.org
6006
6007 EOF
6008           fi ;;
6009         esac
6010       fi
6011       break
6012     fi
6013   done
6014   IFS="$lt_save_ifs"
6015   MAGIC_CMD="$lt_save_MAGIC_CMD"
6016   ;;
6017 esac
6018 fi
6019
6020 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6021 if test -n "$MAGIC_CMD"; then
6022   echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6023 echo "${ECHO_T}$MAGIC_CMD" >&6
6024 else
6025   echo "$as_me:$LINENO: result: no" >&5
6026 echo "${ECHO_T}no" >&6
6027 fi
6028
6029 if test -z "$lt_cv_path_MAGIC_CMD"; then
6030   if test -n "$ac_tool_prefix"; then
6031     echo "$as_me:$LINENO: checking for file" >&5
6032 echo $ECHO_N "checking for file... $ECHO_C" >&6
6033 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6034   echo $ECHO_N "(cached) $ECHO_C" >&6
6035 else
6036   case $MAGIC_CMD in
6037 [\\/*] |  ?:[\\/]*)
6038   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6039   ;;
6040 *)
6041   lt_save_MAGIC_CMD="$MAGIC_CMD"
6042   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6043   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6044   for ac_dir in $ac_dummy; do
6045     IFS="$lt_save_ifs"
6046     test -z "$ac_dir" && ac_dir=.
6047     if test -f $ac_dir/file; then
6048       lt_cv_path_MAGIC_CMD="$ac_dir/file"
6049       if test -n "$file_magic_test_file"; then
6050         case $deplibs_check_method in
6051         "file_magic "*)
6052           file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
6053           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6054           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6055             $EGREP "$file_magic_regex" > /dev/null; then
6056             :
6057           else
6058             cat <<EOF 1>&2
6059
6060 *** Warning: the command libtool uses to detect shared libraries,
6061 *** $file_magic_cmd, produces output that libtool cannot recognize.
6062 *** The result is that libtool may fail to recognize shared libraries
6063 *** as such.  This will affect the creation of libtool libraries that
6064 *** depend on shared libraries, but programs linked with such libtool
6065 *** libraries will work regardless of this problem.  Nevertheless, you
6066 *** may want to report the problem to your system manager and/or to
6067 *** bug-libtool@gnu.org
6068
6069 EOF
6070           fi ;;
6071         esac
6072       fi
6073       break
6074     fi
6075   done
6076   IFS="$lt_save_ifs"
6077   MAGIC_CMD="$lt_save_MAGIC_CMD"
6078   ;;
6079 esac
6080 fi
6081
6082 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6083 if test -n "$MAGIC_CMD"; then
6084   echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6085 echo "${ECHO_T}$MAGIC_CMD" >&6
6086 else
6087   echo "$as_me:$LINENO: result: no" >&5
6088 echo "${ECHO_T}no" >&6
6089 fi
6090
6091   else
6092     MAGIC_CMD=:
6093   fi
6094 fi
6095
6096   fi
6097   ;;
6098 esac
6099
6100 enable_dlopen=no
6101 enable_win32_dll=no
6102
6103 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
6104 if test "${enable_libtool_lock+set}" = set; then
6105   enableval="$enable_libtool_lock"
6106
6107 fi;
6108 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6109
6110
6111 # Check whether --with-pic or --without-pic was given.
6112 if test "${with_pic+set}" = set; then
6113   withval="$with_pic"
6114   pic_mode="$withval"
6115 else
6116   pic_mode=default
6117 fi;
6118 test -z "$pic_mode" && pic_mode=default
6119
6120 # Use C for the default configuration in the libtool script
6121 tagname=
6122 lt_save_CC="$CC"
6123 ac_ext=c
6124 ac_cpp='$CPP $CPPFLAGS'
6125 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6126 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6127 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6128
6129
6130 # Source file extension for C test sources.
6131 ac_ext=c
6132
6133 # Object file extension for compiled C test sources.
6134 objext=o
6135 objext=$objext
6136
6137 # Code to be used in simple compile tests
6138 lt_simple_compile_test_code="int some_variable = 0;\n"
6139
6140 # Code to be used in simple link tests
6141 lt_simple_link_test_code='int main(){return(0);}\n'
6142
6143
6144 # If no C compiler was specified, use CC.
6145 LTCC=${LTCC-"$CC"}
6146
6147 # Allow CC to be a program name with arguments.
6148 compiler=$CC
6149
6150
6151 #
6152 # Check for any special shared library compilation flags.
6153 #
6154 lt_prog_cc_shlib=
6155 if test "$GCC" = no; then
6156   case $host_os in
6157   sco3.2v5*)
6158     lt_prog_cc_shlib='-belf'
6159     ;;
6160   esac
6161 fi
6162 if test -n "$lt_prog_cc_shlib"; then
6163   { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5
6164 echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;}
6165   if echo "$old_CC $old_CFLAGS " | grep "[      ]$lt_prog_cc_shlib[     ]" >/dev/null; then :
6166   else
6167     { echo "$as_me:$LINENO: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
6168 echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
6169     lt_cv_prog_cc_can_build_shared=no
6170   fi
6171 fi
6172
6173
6174 #
6175 # Check to make sure the static flag actually works.
6176 #
6177 echo "$as_me:$LINENO: checking if $compiler static flag $lt_prog_compiler_static works" >&5
6178 echo $ECHO_N "checking if $compiler static flag $lt_prog_compiler_static works... $ECHO_C" >&6
6179 if test "${lt_prog_compiler_static_works+set}" = set; then
6180   echo $ECHO_N "(cached) $ECHO_C" >&6
6181 else
6182   lt_prog_compiler_static_works=no
6183    save_LDFLAGS="$LDFLAGS"
6184    LDFLAGS="$LDFLAGS $lt_prog_compiler_static"
6185    printf "$lt_simple_link_test_code" > conftest.$ac_ext
6186    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
6187      # The compiler can only warn and ignore the option if not recognized
6188      # So say no if there are warnings
6189      if test -s conftest.err; then
6190        # Append any errors to the config.log.
6191        cat conftest.err 1>&5
6192      else
6193        lt_prog_compiler_static_works=yes
6194      fi
6195    fi
6196    $rm conftest*
6197    LDFLAGS="$save_LDFLAGS"
6198
6199 fi
6200 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
6201 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
6202
6203 if test x"$lt_prog_compiler_static_works" = xyes; then
6204     :
6205 else
6206     lt_prog_compiler_static=
6207 fi
6208
6209
6210
6211 ## CAVEAT EMPTOR:
6212 ## There is no encapsulation within the following macros, do not change
6213 ## the running order or otherwise move them around unless you know exactly
6214 ## what you are doing...
6215
6216 lt_prog_compiler_no_builtin_flag=
6217
6218 if test "$GCC" = yes; then
6219   lt_prog_compiler_no_builtin_flag=' -fno-builtin'
6220
6221   echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
6222 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
6223 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
6224   echo $ECHO_N "(cached) $ECHO_C" >&6
6225 else
6226   lt_cv_prog_compiler_rtti_exceptions=no
6227   ac_outfile=conftest.$ac_objext
6228    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6229    lt_compiler_flag="-fno-rtti -fno-exceptions"
6230    # Insert the option either (1) after the last *FLAGS variable, or
6231    # (2) before a word containing "conftest.", or (3) at the end.
6232    # Note that $ac_compile itself does not contain backslashes and begins
6233    # with a dollar sign (not a hyphen), so the echo should work correctly.
6234    # The option is referenced via a variable to avoid confusing sed.
6235    lt_compile=`echo "$ac_compile" | $SED \
6236    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
6237    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6238    -e 's:$: $lt_compiler_flag:'`
6239    (eval echo "\"\$as_me:6236: $lt_compile\"" >&5)
6240    (eval "$lt_compile" 2>conftest.err)
6241    ac_status=$?
6242    cat conftest.err >&5
6243    echo "$as_me:6240: \$? = $ac_status" >&5
6244    if (exit $ac_status) && test -s "$ac_outfile"; then
6245      # The compiler can only warn and ignore the option if not recognized
6246      # So say no if there are warnings
6247      if test ! -s conftest.err; then
6248        lt_cv_prog_compiler_rtti_exceptions=yes
6249      fi
6250    fi
6251    $rm conftest*
6252
6253 fi
6254 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
6255 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
6256
6257 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
6258     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
6259 else
6260     :
6261 fi
6262
6263 fi
6264
6265 lt_prog_compiler_wl=
6266 lt_prog_compiler_pic=
6267 lt_prog_compiler_static=
6268
6269 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
6270 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
6271
6272   if test "$GCC" = yes; then
6273     lt_prog_compiler_wl='-Wl,'
6274     lt_prog_compiler_static='-static'
6275
6276     case $host_os in
6277       aix*)
6278       # All AIX code is PIC.
6279       if test "$host_cpu" = ia64; then
6280         # AIX 5 now supports IA64 processor
6281         lt_prog_compiler_static='-Bstatic'
6282       fi
6283       ;;
6284
6285     amigaos*)
6286       # FIXME: we need at least 68020 code to build shared libraries, but
6287       # adding the `-m68020' flag to GCC prevents building anything better,
6288       # like `-m68040'.
6289       lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
6290       ;;
6291
6292     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
6293       # PIC is the default for these OSes.
6294       ;;
6295
6296     mingw* | pw32* | os2*)
6297       # This hack is so that the source file can tell whether it is being
6298       # built for inclusion in a dll (and should export symbols for example).
6299       lt_prog_compiler_pic='-DDLL_EXPORT'
6300       ;;
6301
6302     darwin* | rhapsody*)
6303       # PIC is the default on this platform
6304       # Common symbols not allowed in MH_DYLIB files
6305       lt_prog_compiler_pic='-fno-common'
6306       ;;
6307
6308     msdosdjgpp*)
6309       # Just because we use GCC doesn't mean we suddenly get shared libraries
6310       # on systems that don't support them.
6311       lt_prog_compiler_can_build_shared=no
6312       enable_shared=no
6313       ;;
6314
6315     sysv4*MP*)
6316       if test -d /usr/nec; then
6317         lt_prog_compiler_pic=-Kconform_pic
6318       fi
6319       ;;
6320
6321     hpux*)
6322       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6323       # not for PA HP-UX.
6324       case "$host_cpu" in
6325       hppa*64*|ia64*)
6326         # +Z the default
6327         ;;
6328       *)
6329         lt_prog_compiler_pic='-fPIC'
6330         ;;
6331       esac
6332       ;;
6333
6334     *)
6335       lt_prog_compiler_pic='-fPIC'
6336       ;;
6337     esac
6338   else
6339     # PORTME Check for flag to pass linker flags through the system compiler.
6340     case $host_os in
6341     aix*)
6342       lt_prog_compiler_wl='-Wl,'
6343       if test "$host_cpu" = ia64; then
6344         # AIX 5 now supports IA64 processor
6345         lt_prog_compiler_static='-Bstatic'
6346       else
6347         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
6348       fi
6349       ;;
6350
6351     mingw* | pw32* | os2*)
6352       # This hack is so that the source file can tell whether it is being
6353       # built for inclusion in a dll (and should export symbols for example).
6354       lt_prog_compiler_pic='-DDLL_EXPORT'
6355       ;;
6356
6357     hpux9* | hpux10* | hpux11*)
6358       lt_prog_compiler_wl='-Wl,'
6359       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6360       # not for PA HP-UX.
6361       case "$host_cpu" in
6362       hppa*64*|ia64*)
6363         # +Z the default
6364         ;;
6365       *)
6366         lt_prog_compiler_pic='+Z'
6367         ;;
6368       esac
6369       # Is there a better lt_prog_compiler_static that works with the bundled CC?
6370       lt_prog_compiler_static='${wl}-a ${wl}archive'
6371       ;;
6372
6373     irix5* | irix6* | nonstopux*)
6374       lt_prog_compiler_wl='-Wl,'
6375       # PIC (with -KPIC) is the default.
6376       lt_prog_compiler_static='-non_shared'
6377       ;;
6378
6379     newsos6)
6380       lt_prog_compiler_pic='-KPIC'
6381       lt_prog_compiler_static='-Bstatic'
6382       ;;
6383
6384     linux*)
6385       case $CC in
6386       icc|ecc)
6387         lt_prog_compiler_wl='-Wl,'
6388         lt_prog_compiler_pic='-KPIC'
6389         lt_prog_compiler_static='-static'
6390         ;;
6391       ccc)
6392         lt_prog_compiler_wl='-Wl,'
6393         # All Alpha code is PIC.
6394         lt_prog_compiler_static='-non_shared'
6395         ;;
6396       esac
6397       ;;
6398
6399     osf3* | osf4* | osf5*)
6400       lt_prog_compiler_wl='-Wl,'
6401       # All OSF/1 code is PIC.
6402       lt_prog_compiler_static='-non_shared'
6403       ;;
6404
6405     sco3.2v5*)
6406       lt_prog_compiler_pic='-Kpic'
6407       lt_prog_compiler_static='-dn'
6408       ;;
6409
6410     solaris*)
6411       lt_prog_compiler_wl='-Wl,'
6412       lt_prog_compiler_pic='-KPIC'
6413       lt_prog_compiler_static='-Bstatic'
6414       ;;
6415
6416     sunos4*)
6417       lt_prog_compiler_wl='-Qoption ld '
6418       lt_prog_compiler_pic='-PIC'
6419       lt_prog_compiler_static='-Bstatic'
6420       ;;
6421
6422     sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
6423       lt_prog_compiler_wl='-Wl,'
6424       lt_prog_compiler_pic='-KPIC'
6425       lt_prog_compiler_static='-Bstatic'
6426       ;;
6427
6428     sysv4*MP*)
6429       if test -d /usr/nec ;then
6430         lt_prog_compiler_pic='-Kconform_pic'
6431         lt_prog_compiler_static='-Bstatic'
6432       fi
6433       ;;
6434
6435     uts4*)
6436       lt_prog_compiler_pic='-pic'
6437       lt_prog_compiler_static='-Bstatic'
6438       ;;
6439
6440     *)
6441       lt_prog_compiler_can_build_shared=no
6442       ;;
6443     esac
6444   fi
6445
6446 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
6447 echo "${ECHO_T}$lt_prog_compiler_pic" >&6
6448
6449 #
6450 # Check to make sure the PIC flag actually works.
6451 #
6452 if test -n "$lt_prog_compiler_pic"; then
6453   echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
6454 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
6455 if test "${lt_prog_compiler_pic_works+set}" = set; then
6456   echo $ECHO_N "(cached) $ECHO_C" >&6
6457 else
6458   lt_prog_compiler_pic_works=no
6459   ac_outfile=conftest.$ac_objext
6460    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6461    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
6462    # Insert the option either (1) after the last *FLAGS variable, or
6463    # (2) before a word containing "conftest.", or (3) at the end.
6464    # Note that $ac_compile itself does not contain backslashes and begins
6465    # with a dollar sign (not a hyphen), so the echo should work correctly.
6466    # The option is referenced via a variable to avoid confusing sed.
6467    lt_compile=`echo "$ac_compile" | $SED \
6468    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
6469    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6470    -e 's:$: $lt_compiler_flag:'`
6471    (eval echo "\"\$as_me:6468: $lt_compile\"" >&5)
6472    (eval "$lt_compile" 2>conftest.err)
6473    ac_status=$?
6474    cat conftest.err >&5
6475    echo "$as_me:6472: \$? = $ac_status" >&5
6476    if (exit $ac_status) && test -s "$ac_outfile"; then
6477      # The compiler can only warn and ignore the option if not recognized
6478      # So say no if there are warnings
6479      if test ! -s conftest.err; then
6480        lt_prog_compiler_pic_works=yes
6481      fi
6482    fi
6483    $rm conftest*
6484
6485 fi
6486 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
6487 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
6488
6489 if test x"$lt_prog_compiler_pic_works" = xyes; then
6490     case $lt_prog_compiler_pic in
6491      "" | " "*) ;;
6492      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
6493      esac
6494 else
6495     lt_prog_compiler_pic=
6496      lt_prog_compiler_can_build_shared=no
6497 fi
6498
6499 fi
6500 case "$host_os" in
6501   # For platforms which do not support PIC, -DPIC is meaningless:
6502   *djgpp*)
6503     lt_prog_compiler_pic=
6504     ;;
6505   *)
6506     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
6507     ;;
6508 esac
6509
6510 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
6511 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
6512 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
6513   echo $ECHO_N "(cached) $ECHO_C" >&6
6514 else
6515   lt_cv_prog_compiler_c_o=no
6516    $rm -r conftest 2>/dev/null
6517    mkdir conftest
6518    cd conftest
6519    mkdir out
6520    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6521
6522    # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
6523    # that will create temporary files in the current directory regardless of
6524    # the output directory.  Thus, making CWD read-only will cause this test
6525    # to fail, enabling locking or at least warning the user not to do parallel
6526    # builds.
6527    chmod -w .
6528
6529    lt_compiler_flag="-o out/conftest2.$ac_objext"
6530    # Insert the option either (1) after the last *FLAGS variable, or
6531    # (2) before a word containing "conftest.", or (3) at the end.
6532    # Note that $ac_compile itself does not contain backslashes and begins
6533    # with a dollar sign (not a hyphen), so the echo should work correctly.
6534    lt_compile=`echo "$ac_compile" | $SED \
6535    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
6536    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6537    -e 's:$: $lt_compiler_flag:'`
6538    (eval echo "\"\$as_me:6535: $lt_compile\"" >&5)
6539    (eval "$lt_compile" 2>out/conftest.err)
6540    ac_status=$?
6541    cat out/conftest.err >&5
6542    echo "$as_me:6539: \$? = $ac_status" >&5
6543    if (exit $ac_status) && test -s out/conftest2.$ac_objext
6544    then
6545      # The compiler can only warn and ignore the option if not recognized
6546      # So say no if there are warnings
6547      if test ! -s out/conftest.err; then
6548        lt_cv_prog_compiler_c_o=yes
6549      fi
6550    fi
6551    chmod u+w .
6552    $rm conftest* out/*
6553    rmdir out
6554    cd ..
6555    rmdir conftest
6556    $rm conftest*
6557
6558 fi
6559 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
6560 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
6561
6562
6563 hard_links="nottested"
6564 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
6565   # do not overwrite the value of need_locks provided by the user
6566   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
6567 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
6568   hard_links=yes
6569   $rm conftest*
6570   ln conftest.a conftest.b 2>/dev/null && hard_links=no
6571   touch conftest.a
6572   ln conftest.a conftest.b 2>&5 || hard_links=no
6573   ln conftest.a conftest.b 2>/dev/null && hard_links=no
6574   echo "$as_me:$LINENO: result: $hard_links" >&5
6575 echo "${ECHO_T}$hard_links" >&6
6576   if test "$hard_links" = no; then
6577     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
6578 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
6579     need_locks=warn
6580   fi
6581 else
6582   need_locks=no
6583 fi
6584
6585 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
6586 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
6587
6588   runpath_var=
6589   allow_undefined_flag=
6590   enable_shared_with_static_runtimes=no
6591   archive_cmds=
6592   archive_expsym_cmds=
6593   old_archive_From_new_cmds=
6594   old_archive_from_expsyms_cmds=
6595   export_dynamic_flag_spec=
6596   whole_archive_flag_spec=
6597   thread_safe_flag_spec=
6598   hardcode_libdir_flag_spec=
6599   hardcode_libdir_flag_spec_ld=
6600   hardcode_libdir_separator=
6601   hardcode_direct=no
6602   hardcode_minus_L=no
6603   hardcode_shlibpath_var=unsupported
6604   link_all_deplibs=unknown
6605   hardcode_automatic=no
6606   module_cmds=
6607   module_expsym_cmds=
6608   always_export_symbols=no
6609   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
6610   # include_expsyms should be a list of space-separated symbols to be *always*
6611   # included in the symbol list
6612   include_expsyms=
6613   # exclude_expsyms can be an extended regexp of symbols to exclude
6614   # it will be wrapped by ` (' and `)$', so one must not match beginning or
6615   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
6616   # as well as any symbol that contains `d'.
6617   exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
6618   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
6619   # platforms (ab)use it in PIC code, but their linkers get confused if
6620   # the symbol is explicitly referenced.  Since portable code cannot
6621   # rely on this symbol name, it's probably fine to never include it in
6622   # preloaded symbol tables.
6623   extract_expsyms_cmds=
6624
6625   case $host_os in
6626   cygwin* | mingw* | pw32*)
6627     # FIXME: the MSVC++ port hasn't been tested in a loooong time
6628     # When not using gcc, we currently assume that we are using
6629     # Microsoft Visual C++.
6630     if test "$GCC" != yes; then
6631       with_gnu_ld=no
6632     fi
6633     ;;
6634   openbsd*)
6635     with_gnu_ld=no
6636     ;;
6637   esac
6638
6639   ld_shlibs=yes
6640   if test "$with_gnu_ld" = yes; then
6641     # If archive_cmds runs LD, not CC, wlarc should be empty
6642     wlarc='${wl}'
6643
6644     # See if GNU ld supports shared libraries.
6645     case $host_os in
6646     aix3* | aix4* | aix5*)
6647       # On AIX/PPC, the GNU linker is very broken
6648       if test "$host_cpu" != ia64; then
6649         ld_shlibs=no
6650         cat <<EOF 1>&2
6651
6652 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
6653 *** to be unable to reliably create shared libraries on AIX.
6654 *** Therefore, libtool is disabling shared libraries support.  If you
6655 *** really care for shared libraries, you may want to modify your PATH
6656 *** so that a non-GNU linker is found, and then restart.
6657
6658 EOF
6659       fi
6660       ;;
6661
6662     amigaos*)
6663       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)'
6664       hardcode_libdir_flag_spec='-L$libdir'
6665       hardcode_minus_L=yes
6666
6667       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
6668       # that the semantics of dynamic libraries on AmigaOS, at least up
6669       # to version 4, is to share data among multiple programs linked
6670       # with the same dynamic library.  Since this doesn't match the
6671       # behavior of shared libraries on other platforms, we can't use
6672       # them.
6673       ld_shlibs=no
6674       ;;
6675
6676     beos*)
6677       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6678         allow_undefined_flag=unsupported
6679         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
6680         # support --undefined.  This deserves some investigation.  FIXME
6681         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6682       else
6683         ld_shlibs=no
6684       fi
6685       ;;
6686
6687     cygwin* | mingw* | pw32*)
6688       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
6689       # as there is no search path for DLLs.
6690       hardcode_libdir_flag_spec='-L$libdir'
6691       allow_undefined_flag=unsupported
6692       always_export_symbols=no
6693       enable_shared_with_static_runtimes=yes
6694       export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
6695
6696       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
6697         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
6698         # If the export-symbols file already is a .def file (1st line
6699         # is EXPORTS), use it as is; otherwise, prepend...
6700         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
6701           cp $export_symbols $output_objdir/$soname.def;
6702         else
6703           echo EXPORTS > $output_objdir/$soname.def;
6704           cat $export_symbols >> $output_objdir/$soname.def;
6705         fi~
6706         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
6707       else
6708         ld_shlibs=no
6709       fi
6710       ;;
6711
6712     netbsd*)
6713       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6714         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
6715         wlarc=
6716       else
6717         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6718         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6719       fi
6720       ;;
6721
6722     solaris* | sysv5*)
6723       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
6724         ld_shlibs=no
6725         cat <<EOF 1>&2
6726
6727 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
6728 *** create shared libraries on Solaris systems.  Therefore, libtool
6729 *** is disabling shared libraries support.  We urge you to upgrade GNU
6730 *** binutils to release 2.9.1 or newer.  Another option is to modify
6731 *** your PATH or compiler configuration so that the native linker is
6732 *** used, and then restart.
6733
6734 EOF
6735       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6736         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6737         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6738       else
6739         ld_shlibs=no
6740       fi
6741       ;;
6742
6743     sunos4*)
6744       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6745       wlarc=
6746       hardcode_direct=yes
6747       hardcode_shlibpath_var=no
6748       ;;
6749
6750     *)
6751       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6752         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6753         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6754       else
6755         ld_shlibs=no
6756       fi
6757       ;;
6758     esac
6759
6760     if test "$ld_shlibs" = yes; then
6761       runpath_var=LD_RUN_PATH
6762       hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
6763       export_dynamic_flag_spec='${wl}--export-dynamic'
6764       # ancient GNU ld didn't support --whole-archive et. al.
6765       if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
6766         whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
6767       else
6768         whole_archive_flag_spec=
6769       fi
6770     fi
6771   else
6772     # PORTME fill in a description of your system's linker (not GNU ld)
6773     case $host_os in
6774     aix3*)
6775       allow_undefined_flag=unsupported
6776       always_export_symbols=yes
6777       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'
6778       # Note: this linker hardcodes the directories in LIBPATH if there
6779       # are no directories specified by -L.
6780       hardcode_minus_L=yes
6781       if test "$GCC" = yes && test -z "$link_static_flag"; then
6782         # Neither direct hardcoding nor static linking is supported with a
6783         # broken collect2.
6784         hardcode_direct=unsupported
6785       fi
6786       ;;
6787
6788     aix4* | aix5*)
6789       if test "$host_cpu" = ia64; then
6790         # On IA64, the linker does run time linking by default, so we don't
6791         # have to do anything special.
6792         aix_use_runtimelinking=no
6793         exp_sym_flag='-Bexport'
6794         no_entry_flag=""
6795       else
6796         # If we're using GNU nm, then we don't want the "-C" option.
6797         # -C means demangle to AIX nm, but means don't demangle with GNU nm
6798         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
6799           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'
6800         else
6801           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'
6802         fi
6803         aix_use_runtimelinking=no
6804
6805         # Test if we are trying to use run time linking or normal
6806         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
6807         # need to do runtime linking.
6808         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
6809           for ld_flag in $LDFLAGS; do
6810           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
6811             aix_use_runtimelinking=yes
6812             break
6813           fi
6814           done
6815         esac
6816
6817         exp_sym_flag='-bexport'
6818         no_entry_flag='-bnoentry'
6819       fi
6820
6821       # When large executables or shared objects are built, AIX ld can
6822       # have problems creating the table of contents.  If linking a library
6823       # or program results in "error TOC overflow" add -mminimal-toc to
6824       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
6825       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
6826
6827       archive_cmds=''
6828       hardcode_direct=yes
6829       hardcode_libdir_separator=':'
6830       link_all_deplibs=yes
6831
6832       if test "$GCC" = yes; then
6833         case $host_os in aix4.012|aix4.012.*)
6834         # We only want to do this on AIX 4.2 and lower, the check
6835         # below for broken collect2 doesn't work under 4.3+
6836           collect2name=`${CC} -print-prog-name=collect2`
6837           if test -f "$collect2name" && \
6838            strings "$collect2name" | grep resolve_lib_name >/dev/null
6839           then
6840           # We have reworked collect2
6841           hardcode_direct=yes
6842           else
6843           # We have old collect2
6844           hardcode_direct=unsupported
6845           # It fails to find uninstalled libraries when the uninstalled
6846           # path is not listed in the libpath.  Setting hardcode_minus_L
6847           # to unsupported forces relinking
6848           hardcode_minus_L=yes
6849           hardcode_libdir_flag_spec='-L$libdir'
6850           hardcode_libdir_separator=
6851           fi
6852         esac
6853         shared_flag='-shared'
6854       else
6855         # not using gcc
6856         if test "$host_cpu" = ia64; then
6857         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
6858         # chokes on -Wl,-G. The following line is correct:
6859           shared_flag='-G'
6860         else
6861         if test "$aix_use_runtimelinking" = yes; then
6862             shared_flag='${wl}-G'
6863           else
6864             shared_flag='${wl}-bM:SRE'
6865         fi
6866         fi
6867       fi
6868
6869       # It seems that -bexpall does not export symbols beginning with
6870       # underscore (_), so it is better to generate a list of symbols to export.
6871       always_export_symbols=yes
6872       if test "$aix_use_runtimelinking" = yes; then
6873         # Warning - without using the other runtime loading flags (-brtl),
6874         # -berok will link without error, but may produce a broken library.
6875         allow_undefined_flag='-berok'
6876        # Determine the default libpath from the value encoded in an empty executable.
6877        cat >conftest.$ac_ext <<_ACEOF
6878 #line $LINENO "configure"
6879 /* confdefs.h.  */
6880 _ACEOF
6881 cat confdefs.h >>conftest.$ac_ext
6882 cat >>conftest.$ac_ext <<_ACEOF
6883 /* end confdefs.h.  */
6884
6885 int
6886 main ()
6887 {
6888
6889   ;
6890   return 0;
6891 }
6892 _ACEOF
6893 rm -f conftest.$ac_objext conftest$ac_exeext
6894 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6895   (eval $ac_link) 2>&5
6896   ac_status=$?
6897   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6898   (exit $ac_status); } &&
6899          { ac_try='test -s conftest$ac_exeext'
6900   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6901   (eval $ac_try) 2>&5
6902   ac_status=$?
6903   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6904   (exit $ac_status); }; }; then
6905
6906 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
6907 }'`
6908 # Check for a 64-bit object if we didn't find anything.
6909 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; }
6910 }'`; fi
6911 else
6912   echo "$as_me: failed program was:" >&5
6913 sed 's/^/| /' conftest.$ac_ext >&5
6914
6915 fi
6916 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6917 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
6918
6919        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
6920         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"
6921        else
6922         if test "$host_cpu" = ia64; then
6923           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
6924           allow_undefined_flag="-z nodefs"
6925           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"
6926         else
6927          # Determine the default libpath from the value encoded in an empty executable.
6928          cat >conftest.$ac_ext <<_ACEOF
6929 #line $LINENO "configure"
6930 /* confdefs.h.  */
6931 _ACEOF
6932 cat confdefs.h >>conftest.$ac_ext
6933 cat >>conftest.$ac_ext <<_ACEOF
6934 /* end confdefs.h.  */
6935
6936 int
6937 main ()
6938 {
6939
6940   ;
6941   return 0;
6942 }
6943 _ACEOF
6944 rm -f conftest.$ac_objext conftest$ac_exeext
6945 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6946   (eval $ac_link) 2>&5
6947   ac_status=$?
6948   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6949   (exit $ac_status); } &&
6950          { ac_try='test -s conftest$ac_exeext'
6951   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6952   (eval $ac_try) 2>&5
6953   ac_status=$?
6954   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6955   (exit $ac_status); }; }; then
6956
6957 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
6958 }'`
6959 # Check for a 64-bit object if we didn't find anything.
6960 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; }
6961 }'`; fi
6962 else
6963   echo "$as_me: failed program was:" >&5
6964 sed 's/^/| /' conftest.$ac_ext >&5
6965
6966 fi
6967 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6968 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
6969
6970          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
6971           # Warning - without using the other run time loading flags,
6972           # -berok will link without error, but may produce a broken library.
6973           no_undefined_flag=' ${wl}-bernotok'
6974           allow_undefined_flag=' ${wl}-berok'
6975           # -bexpall does not export symbols beginning with underscore (_)
6976           always_export_symbols=yes
6977           # Exported symbols can be pulled into shared objects from archives
6978           whole_archive_flag_spec=' '
6979           archive_cmds_need_lc=yes
6980           # This is similar to how AIX traditionally builds it's shared libraries.
6981           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'
6982         fi
6983       fi
6984       ;;
6985
6986     amigaos*)
6987       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)'
6988       hardcode_libdir_flag_spec='-L$libdir'
6989       hardcode_minus_L=yes
6990       # see comment about different semantics on the GNU ld section
6991       ld_shlibs=no
6992       ;;
6993
6994     bsdi4*)
6995       export_dynamic_flag_spec=-rdynamic
6996       ;;
6997
6998     cygwin* | mingw* | pw32*)
6999       # When not using gcc, we currently assume that we are using
7000       # Microsoft Visual C++.
7001       # hardcode_libdir_flag_spec is actually meaningless, as there is
7002       # no search path for DLLs.
7003       hardcode_libdir_flag_spec=' '
7004       allow_undefined_flag=unsupported
7005       # Tell ltmain to make .lib files, not .a files.
7006       libext=lib
7007       # Tell ltmain to make .dll files, not .so files.
7008       shrext=".dll"
7009       # FIXME: Setting linknames here is a bad hack.
7010       archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
7011       # The linker will automatically build a .lib file if we build a DLL.
7012       old_archive_From_new_cmds='true'
7013       # FIXME: Should let the user specify the lib program.
7014       old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
7015       fix_srcfile_path='`cygpath -w "$srcfile"`'
7016       enable_shared_with_static_runtimes=yes
7017       ;;
7018
7019     darwin* | rhapsody*)
7020     if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
7021       archive_cmds_need_lc=no
7022       case "$host_os" in
7023       rhapsody* | darwin1.[012])
7024         allow_undefined_flag='-undefined suppress'
7025         ;;
7026       *) # Darwin 1.3 on
7027         test -z ${LD_TWOLEVEL_NAMESPACE} && allow_undefined_flag='-flat_namespace -undefined suppress'
7028         ;;
7029       esac
7030       # FIXME: Relying on posixy $() will cause problems for
7031       #        cross-compilation, but unfortunately the echo tests do not
7032       #        yet detect zsh echo's removal of \ escapes.  Also zsh mangles
7033       #        `"' quotes if we put them in here... so don't!
7034         lt_int_apple_cc_single_mod=no
7035         output_verbose_link_cmd='echo'
7036         if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
7037           lt_int_apple_cc_single_mod=yes
7038         fi
7039         if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
7040           archive_cmds='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
7041         else
7042         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'
7043       fi
7044       module_cmds='$CC -bundle ${wl}-bind_at_load $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags'
7045       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
7046         if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
7047           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}'
7048         else
7049           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}'
7050         fi
7051           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}'
7052       hardcode_direct=no
7053       hardcode_automatic=yes
7054       hardcode_shlibpath_var=unsupported
7055       whole_archive_flag_spec='-all_load $convenience'
7056       link_all_deplibs=yes
7057     fi
7058       ;;
7059
7060     dgux*)
7061       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7062       hardcode_libdir_flag_spec='-L$libdir'
7063       hardcode_shlibpath_var=no
7064       ;;
7065
7066     freebsd1*)
7067       ld_shlibs=no
7068       ;;
7069
7070     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
7071     # support.  Future versions do this automatically, but an explicit c++rt0.o
7072     # does not break anything, and helps significantly (at the cost of a little
7073     # extra space).
7074     freebsd2.2*)
7075       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
7076       hardcode_libdir_flag_spec='-R$libdir'
7077       hardcode_direct=yes
7078       hardcode_shlibpath_var=no
7079       ;;
7080
7081     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
7082     freebsd2*)
7083       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7084       hardcode_direct=yes
7085       hardcode_minus_L=yes
7086       hardcode_shlibpath_var=no
7087       ;;
7088
7089     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
7090     freebsd*)
7091       archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
7092       hardcode_libdir_flag_spec='-R$libdir'
7093       hardcode_direct=yes
7094       hardcode_shlibpath_var=no
7095       ;;
7096
7097     hpux9*)
7098       if test "$GCC" = yes; then
7099         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'
7100       else
7101         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'
7102       fi
7103       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7104       hardcode_libdir_separator=:
7105       hardcode_direct=yes
7106
7107       # hardcode_minus_L: Not really in the search PATH,
7108       # but as the default location of the library.
7109       hardcode_minus_L=yes
7110       export_dynamic_flag_spec='${wl}-E'
7111       ;;
7112
7113     hpux10* | hpux11*)
7114       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
7115         case "$host_cpu" in
7116         hppa*64*|ia64*)
7117           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7118           ;;
7119         *)
7120           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7121           ;;
7122         esac
7123       else
7124         case "$host_cpu" in
7125         hppa*64*|ia64*)
7126           archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
7127           ;;
7128         *)
7129           archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
7130           ;;
7131         esac
7132       fi
7133       if test "$with_gnu_ld" = no; then
7134         case "$host_cpu" in
7135         hppa*64*)
7136           hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7137           hardcode_libdir_flag_spec_ld='+b $libdir'
7138           hardcode_libdir_separator=:
7139           hardcode_direct=no
7140           hardcode_shlibpath_var=no
7141           ;;
7142         ia64*)
7143           hardcode_libdir_flag_spec='-L$libdir'
7144           hardcode_direct=no
7145           hardcode_shlibpath_var=no
7146
7147           # hardcode_minus_L: Not really in the search PATH,
7148           # but as the default location of the library.
7149           hardcode_minus_L=yes
7150           ;;
7151         *)
7152           hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7153           hardcode_libdir_separator=:
7154           hardcode_direct=yes
7155           export_dynamic_flag_spec='${wl}-E'
7156
7157           # hardcode_minus_L: Not really in the search PATH,
7158           # but as the default location of the library.
7159           hardcode_minus_L=yes
7160           ;;
7161         esac
7162       fi
7163       ;;
7164
7165     irix5* | irix6* | nonstopux*)
7166       if test "$GCC" = yes; then
7167         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'
7168       else
7169         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'
7170         hardcode_libdir_flag_spec_ld='-rpath $libdir'
7171       fi
7172       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7173       hardcode_libdir_separator=:
7174       link_all_deplibs=yes
7175       ;;
7176
7177     netbsd*)
7178       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7179         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
7180       else
7181         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
7182       fi
7183       hardcode_libdir_flag_spec='-R$libdir'
7184       hardcode_direct=yes
7185       hardcode_shlibpath_var=no
7186       ;;
7187
7188     newsos6)
7189       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7190       hardcode_direct=yes
7191       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7192       hardcode_libdir_separator=:
7193       hardcode_shlibpath_var=no
7194       ;;
7195
7196     openbsd*)
7197       hardcode_direct=yes
7198       hardcode_shlibpath_var=no
7199       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7200         archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7201         hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7202         export_dynamic_flag_spec='${wl}-E'
7203       else
7204        case $host_os in
7205          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
7206            archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7207            hardcode_libdir_flag_spec='-R$libdir'
7208            ;;
7209          *)
7210            archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7211            hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7212            ;;
7213        esac
7214       fi
7215       ;;
7216
7217     os2*)
7218       hardcode_libdir_flag_spec='-L$libdir'
7219       hardcode_minus_L=yes
7220       allow_undefined_flag=unsupported
7221       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'
7222       old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
7223       ;;
7224
7225     osf3*)
7226       if test "$GCC" = yes; then
7227         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7228         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'
7229       else
7230         allow_undefined_flag=' -expect_unresolved \*'
7231         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'
7232       fi
7233       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7234       hardcode_libdir_separator=:
7235       ;;
7236
7237     osf4* | osf5*)      # as osf3* with the addition of -msym flag
7238       if test "$GCC" = yes; then
7239         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7240         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'
7241         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7242       else
7243         allow_undefined_flag=' -expect_unresolved \*'
7244         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'
7245         archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
7246         $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'
7247
7248         # Both c and cxx compiler support -rpath directly
7249         hardcode_libdir_flag_spec='-rpath $libdir'
7250       fi
7251       hardcode_libdir_separator=:
7252       ;;
7253
7254     sco3.2v5*)
7255       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7256       hardcode_shlibpath_var=no
7257       export_dynamic_flag_spec='${wl}-Bexport'
7258       runpath_var=LD_RUN_PATH
7259       hardcode_runpath_var=yes
7260       ;;
7261
7262     solaris*)
7263       no_undefined_flag=' -z text'
7264       if test "$GCC" = yes; then
7265         archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7266         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7267           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
7268       else
7269         archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
7270         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7271         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
7272       fi
7273       hardcode_libdir_flag_spec='-R$libdir'
7274       hardcode_shlibpath_var=no
7275       case $host_os in
7276       solaris2.[0-5] | solaris2.[0-5].*) ;;
7277       *) # Supported since Solaris 2.6 (maybe 2.5.1?)
7278         whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
7279       esac
7280       link_all_deplibs=yes
7281       ;;
7282
7283     sunos4*)
7284       if test "x$host_vendor" = xsequent; then
7285         # Use $CC to link under sequent, because it throws in some extra .o
7286         # files that make .init and .fini sections work.
7287         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
7288       else
7289         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
7290       fi
7291       hardcode_libdir_flag_spec='-L$libdir'
7292       hardcode_direct=yes
7293       hardcode_minus_L=yes
7294       hardcode_shlibpath_var=no
7295       ;;
7296
7297     sysv4)
7298       case $host_vendor in
7299         sni)
7300           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7301           hardcode_direct=yes # is this really true???
7302         ;;
7303         siemens)
7304           ## LD is ld it makes a PLAMLIB
7305           ## CC just makes a GrossModule.
7306           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
7307           reload_cmds='$CC -r -o $output$reload_objs'
7308           hardcode_direct=no
7309         ;;
7310         motorola)
7311           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7312           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
7313         ;;
7314       esac
7315       runpath_var='LD_RUN_PATH'
7316       hardcode_shlibpath_var=no
7317       ;;
7318
7319     sysv4.3*)
7320       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7321       hardcode_shlibpath_var=no
7322       export_dynamic_flag_spec='-Bexport'
7323       ;;
7324
7325     sysv4*MP*)
7326       if test -d /usr/nec; then
7327         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7328         hardcode_shlibpath_var=no
7329         runpath_var=LD_RUN_PATH
7330         hardcode_runpath_var=yes
7331         ld_shlibs=yes
7332       fi
7333       ;;
7334
7335     sysv4.2uw2*)
7336       archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
7337       hardcode_direct=yes
7338       hardcode_minus_L=no
7339       hardcode_shlibpath_var=no
7340       hardcode_runpath_var=yes
7341       runpath_var=LD_RUN_PATH
7342       ;;
7343
7344    sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
7345       no_undefined_flag='${wl}-z ${wl}text'
7346       if test "$GCC" = yes; then
7347         archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7348       else
7349         archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7350       fi
7351       runpath_var='LD_RUN_PATH'
7352       hardcode_shlibpath_var=no
7353       ;;
7354
7355     sysv5*)
7356       no_undefined_flag=' -z text'
7357       # $CC -shared without GNU ld will not create a library from C++
7358       # object files and a static libstdc++, better avoid it by now
7359       archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
7360       archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7361                 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
7362       hardcode_libdir_flag_spec=
7363       hardcode_shlibpath_var=no
7364       runpath_var='LD_RUN_PATH'
7365       ;;
7366
7367     uts4*)
7368       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7369       hardcode_libdir_flag_spec='-L$libdir'
7370       hardcode_shlibpath_var=no
7371       ;;
7372
7373     *)
7374       ld_shlibs=no
7375       ;;
7376     esac
7377   fi
7378
7379 echo "$as_me:$LINENO: result: $ld_shlibs" >&5
7380 echo "${ECHO_T}$ld_shlibs" >&6
7381 test "$ld_shlibs" = no && can_build_shared=no
7382
7383 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
7384 if test "$GCC" = yes; then
7385   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
7386 fi
7387
7388 #
7389 # Do we need to explicitly link libc?
7390 #
7391 case "x$archive_cmds_need_lc" in
7392 x|xyes)
7393   # Assume -lc should be added
7394   archive_cmds_need_lc=yes
7395
7396   if test "$enable_shared" = yes && test "$GCC" = yes; then
7397     case $archive_cmds in
7398     *'~'*)
7399       # FIXME: we may have to deal with multi-command sequences.
7400       ;;
7401     '$CC '*)
7402       # Test whether the compiler implicitly links with -lc since on some
7403       # systems, -lgcc has to come before -lc. If gcc already passes -lc
7404       # to ld, don't add -lc before -lgcc.
7405       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
7406 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
7407       $rm conftest*
7408       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7409
7410       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7411   (eval $ac_compile) 2>&5
7412   ac_status=$?
7413   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7414   (exit $ac_status); } 2>conftest.err; then
7415         soname=conftest
7416         lib=conftest
7417         libobjs=conftest.$ac_objext
7418         deplibs=
7419         wl=$lt_prog_compiler_wl
7420         compiler_flags=-v
7421         linker_flags=-v
7422         verstring=
7423         output_objdir=.
7424         libname=conftest
7425         lt_save_allow_undefined_flag=$allow_undefined_flag
7426         allow_undefined_flag=
7427         if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
7428   (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
7429   ac_status=$?
7430   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7431   (exit $ac_status); }
7432         then
7433           archive_cmds_need_lc=no
7434         else
7435           archive_cmds_need_lc=yes
7436         fi
7437         allow_undefined_flag=$lt_save_allow_undefined_flag
7438       else
7439         cat conftest.err 1>&5
7440       fi
7441       $rm conftest*
7442       echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
7443 echo "${ECHO_T}$archive_cmds_need_lc" >&6
7444       ;;
7445     esac
7446   fi
7447   ;;
7448 esac
7449
7450 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
7451 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
7452 hardcode_action=
7453 if test -n "$hardcode_libdir_flag_spec" || \
7454    test -n "$runpath_var " || \
7455    test "X$hardcode_automatic"="Xyes" ; then
7456
7457   # We can hardcode non-existant directories.
7458   if test "$hardcode_direct" != no &&
7459      # If the only mechanism to avoid hardcoding is shlibpath_var, we
7460      # have to relink, otherwise we might link with an installed library
7461      # when we should be linking with a yet-to-be-installed one
7462      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
7463      test "$hardcode_minus_L" != no; then
7464     # Linking always hardcodes the temporary library directory.
7465     hardcode_action=relink
7466   else
7467     # We can link without hardcoding, and we can hardcode nonexisting dirs.
7468     hardcode_action=immediate
7469   fi
7470 else
7471   # We cannot hardcode anything, or else we can only hardcode existing
7472   # directories.
7473   hardcode_action=unsupported
7474 fi
7475 echo "$as_me:$LINENO: result: $hardcode_action" >&5
7476 echo "${ECHO_T}$hardcode_action" >&6
7477
7478 if test "$hardcode_action" = relink; then
7479   # Fast installation is not supported
7480   enable_fast_install=no
7481 elif test "$shlibpath_overrides_runpath" = yes ||
7482      test "$enable_shared" = no; then
7483   # Fast installation is not necessary
7484   enable_fast_install=needless
7485 fi
7486
7487 striplib=
7488 old_striplib=
7489 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
7490 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
7491 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
7492   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
7493   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
7494   echo "$as_me:$LINENO: result: yes" >&5
7495 echo "${ECHO_T}yes" >&6
7496 else
7497 # FIXME - insert some real tests, host_os isn't really good enough
7498   case $host_os in
7499    darwin*)
7500        if test -n "$STRIP" ; then
7501          striplib="$STRIP -x"
7502          echo "$as_me:$LINENO: result: yes" >&5
7503 echo "${ECHO_T}yes" >&6
7504        else
7505   echo "$as_me:$LINENO: result: no" >&5
7506 echo "${ECHO_T}no" >&6
7507 fi
7508        ;;
7509    *)
7510   echo "$as_me:$LINENO: result: no" >&5
7511 echo "${ECHO_T}no" >&6
7512     ;;
7513   esac
7514 fi
7515
7516 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
7517 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
7518 library_names_spec=
7519 libname_spec='lib$name'
7520 soname_spec=
7521 shrext=".so"
7522 postinstall_cmds=
7523 postuninstall_cmds=
7524 finish_cmds=
7525 finish_eval=
7526 shlibpath_var=
7527 shlibpath_overrides_runpath=unknown
7528 version_type=none
7529 dynamic_linker="$host_os ld.so"
7530 sys_lib_dlsearch_path_spec="/lib /usr/lib"
7531 if test "$GCC" = yes; then
7532   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
7533   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
7534     # if the path contains ";" then we assume it to be the separator
7535     # otherwise default to the standard path separator (i.e. ":") - it is
7536     # assumed that no part of a normal pathname contains ";" but that should
7537     # okay in the real world where ";" in dirpaths is itself problematic.
7538     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
7539   else
7540     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
7541   fi
7542 else
7543   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
7544 fi
7545 need_lib_prefix=unknown
7546 hardcode_into_libs=no
7547
7548 # when you set need_version to no, make sure it does not cause -set_version
7549 # flags to be left without arguments
7550 need_version=unknown
7551
7552 case $host_os in
7553 aix3*)
7554   version_type=linux
7555   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
7556   shlibpath_var=LIBPATH
7557
7558   # AIX 3 has no versioning support, so we append a major version to the name.
7559   soname_spec='${libname}${release}${shared_ext}$major'
7560   ;;
7561
7562 aix4* | aix5*)
7563   version_type=linux
7564   need_lib_prefix=no
7565   need_version=no
7566   hardcode_into_libs=yes
7567   if test "$host_cpu" = ia64; then
7568     # AIX 5 supports IA64
7569     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
7570     shlibpath_var=LD_LIBRARY_PATH
7571   else
7572     # With GCC up to 2.95.x, collect2 would create an import file
7573     # for dependence libraries.  The import file would start with
7574     # the line `#! .'.  This would cause the generated library to
7575     # depend on `.', always an invalid library.  This was fixed in
7576     # development snapshots of GCC prior to 3.0.
7577     case $host_os in
7578       aix4 | aix4.[01] | aix4.[01].*)
7579       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
7580            echo ' yes '
7581            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
7582         :
7583       else
7584         can_build_shared=no
7585       fi
7586       ;;
7587     esac
7588     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
7589     # soname into executable. Probably we can add versioning support to
7590     # collect2, so additional links can be useful in future.
7591     if test "$aix_use_runtimelinking" = yes; then
7592       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
7593       # instead of lib<name>.a to let people know that these are not
7594       # typical AIX shared libraries.
7595       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7596     else
7597       # We preserve .a as extension for shared libraries through AIX4.2
7598       # and later when we are not doing run time linking.
7599       library_names_spec='${libname}${release}.a $libname.a'
7600       soname_spec='${libname}${release}${shared_ext}$major'
7601     fi
7602     shlibpath_var=LIBPATH
7603   fi
7604   ;;
7605
7606 amigaos*)
7607   library_names_spec='$libname.ixlibrary $libname.a'
7608   # Create ${libname}_ixlibrary.a entries in /sys/libs.
7609   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'
7610   ;;
7611
7612 beos*)
7613   library_names_spec='${libname}${shared_ext}'
7614   dynamic_linker="$host_os ld.so"
7615   shlibpath_var=LIBRARY_PATH
7616   ;;
7617
7618 bsdi4*)
7619   version_type=linux
7620   need_version=no
7621   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7622   soname_spec='${libname}${release}${shared_ext}$major'
7623   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
7624   shlibpath_var=LD_LIBRARY_PATH
7625   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
7626   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
7627   # the default ld.so.conf also contains /usr/contrib/lib and
7628   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
7629   # libtool to hard-code these into programs
7630   ;;
7631
7632 cygwin* | mingw* | pw32*)
7633   version_type=windows
7634   shrext=".dll"
7635   need_version=no
7636   need_lib_prefix=no
7637
7638   case $GCC,$host_os in
7639   yes,cygwin* | yes,mingw* | yes,pw32*)
7640     library_names_spec='$libname.dll.a'
7641     # DLL is installed to $(libdir)/../bin by postinstall_cmds
7642     postinstall_cmds='base_file=`basename \${file}`~
7643       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
7644       dldir=$destdir/`dirname \$dlpath`~
7645       test -d \$dldir || mkdir -p \$dldir~
7646       $install_prog $dir/$dlname \$dldir/$dlname'
7647     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
7648       dlpath=$dir/\$dldll~
7649        $rm \$dlpath'
7650     shlibpath_overrides_runpath=yes
7651
7652     case $host_os in
7653     cygwin*)
7654       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
7655       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7656       sys_lib_search_path_spec="/lib /lib/w32api /usr/lib /usr/local/lib"
7657       ;;
7658     mingw*)
7659       # MinGW DLLs use traditional 'lib' prefix
7660       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7661       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
7662       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
7663         # It is most probably a Windows format PATH printed by
7664         # mingw gcc, but we are running on Cygwin. Gcc prints its search
7665         # path with ; separators, and with drive letters. We can handle the
7666         # drive letters (cygwin fileutils understands them), so leave them,
7667         # especially as we might pass files found there to a mingw objdump,
7668         # which wouldn't understand a cygwinified path. Ahh.
7669         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
7670       else
7671         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
7672       fi
7673       ;;
7674     pw32*)
7675       # pw32 DLLs use 'pw' prefix rather than 'lib'
7676       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
7677       ;;
7678     esac
7679     ;;
7680
7681   *)
7682     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
7683     ;;
7684   esac
7685   dynamic_linker='Win32 ld.exe'
7686   # FIXME: first we should search . and the directory the executable is in
7687   shlibpath_var=PATH
7688   ;;
7689
7690 darwin* | rhapsody*)
7691   dynamic_linker="$host_os dyld"
7692   version_type=darwin
7693   need_lib_prefix=no
7694   need_version=no
7695   # FIXME: Relying on posixy $() will cause problems for
7696   #        cross-compilation, but unfortunately the echo tests do not
7697   #        yet detect zsh echo's removal of \ escapes.
7698   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
7699   soname_spec='${libname}${release}${major}$shared_ext'
7700   shlibpath_overrides_runpath=yes
7701   shlibpath_var=DYLD_LIBRARY_PATH
7702   shrext='$(test .$module = .yes && echo .so || echo .dylib)'
7703   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
7704   if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
7705   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"`
7706   fi
7707   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
7708   ;;
7709
7710 dgux*)
7711   version_type=linux
7712   need_lib_prefix=no
7713   need_version=no
7714   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
7715   soname_spec='${libname}${release}${shared_ext}$major'
7716   shlibpath_var=LD_LIBRARY_PATH
7717   ;;
7718
7719 freebsd1*)
7720   dynamic_linker=no
7721   ;;
7722
7723 freebsd*)
7724   objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
7725   version_type=freebsd-$objformat
7726   case $version_type in
7727     freebsd-elf*)
7728       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
7729       need_version=no
7730       need_lib_prefix=no
7731       ;;
7732     freebsd-*)
7733       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
7734       need_version=yes
7735       ;;
7736   esac
7737   shlibpath_var=LD_LIBRARY_PATH
7738   case $host_os in
7739   freebsd2*)
7740     shlibpath_overrides_runpath=yes
7741     ;;
7742   freebsd3.01* | freebsdelf3.01*)
7743     shlibpath_overrides_runpath=yes
7744     hardcode_into_libs=yes
7745     ;;
7746   *) # from 3.2 on
7747     shlibpath_overrides_runpath=no
7748     hardcode_into_libs=yes
7749     ;;
7750   esac
7751   ;;
7752
7753 gnu*)
7754   version_type=linux
7755   need_lib_prefix=no
7756   need_version=no
7757   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
7758   soname_spec='${libname}${release}${shared_ext}$major'
7759   shlibpath_var=LD_LIBRARY_PATH
7760   hardcode_into_libs=yes
7761   ;;
7762
7763 hpux9* | hpux10* | hpux11*)
7764   # Give a soname corresponding to the major version so that dld.sl refuses to
7765   # link against other versions.
7766   version_type=sunos
7767   need_lib_prefix=no
7768   need_version=no
7769   case "$host_cpu" in
7770   ia64*)
7771     shrext='.so'
7772     hardcode_into_libs=yes
7773     dynamic_linker="$host_os dld.so"
7774     shlibpath_var=LD_LIBRARY_PATH
7775     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
7776     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7777     soname_spec='${libname}${release}${shared_ext}$major'
7778     if test "X$HPUX_IA64_MODE" = X32; then
7779       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
7780     else
7781       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
7782     fi
7783     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
7784     ;;
7785    hppa*64*)
7786      shrext='.sl'
7787      hardcode_into_libs=yes
7788      dynamic_linker="$host_os dld.sl"
7789      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
7790      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
7791      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7792      soname_spec='${libname}${release}${shared_ext}$major'
7793      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
7794      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
7795      ;;
7796    *)
7797     shrext='.sl'
7798     dynamic_linker="$host_os dld.sl"
7799     shlibpath_var=SHLIB_PATH
7800     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
7801     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7802     soname_spec='${libname}${release}${shared_ext}$major'
7803     ;;
7804   esac
7805   # HP-UX runs *really* slowly unless shared libraries are mode 555.
7806   postinstall_cmds='chmod 555 $lib'
7807   ;;
7808
7809 irix5* | irix6* | nonstopux*)
7810   case $host_os in
7811     nonstopux*) version_type=nonstopux ;;
7812     *)
7813         if test "$lt_cv_prog_gnu_ld" = yes; then
7814                 version_type=linux
7815         else
7816                 version_type=irix
7817         fi ;;
7818   esac
7819   need_lib_prefix=no
7820   need_version=no
7821   soname_spec='${libname}${release}${shared_ext}$major'
7822   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
7823   case $host_os in
7824   irix5* | nonstopux*)
7825     libsuff= shlibsuff=
7826     ;;
7827   *)
7828     case $LD in # libtool.m4 will add one of these switches to LD
7829     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
7830       libsuff= shlibsuff= libmagic=32-bit;;
7831     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
7832       libsuff=32 shlibsuff=N32 libmagic=N32;;
7833     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
7834       libsuff=64 shlibsuff=64 libmagic=64-bit;;
7835     *) libsuff= shlibsuff= libmagic=never-match;;
7836     esac
7837     ;;
7838   esac
7839   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
7840   shlibpath_overrides_runpath=no
7841   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
7842   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
7843   hardcode_into_libs=yes
7844   ;;
7845
7846 # No shared lib support for Linux oldld, aout, or coff.
7847 linux*oldld* | linux*aout* | linux*coff*)
7848   dynamic_linker=no
7849   ;;
7850
7851 # This must be Linux ELF.
7852 linux*)
7853   version_type=linux
7854   need_lib_prefix=no
7855   need_version=no
7856   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7857   soname_spec='${libname}${release}${shared_ext}$major'
7858   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
7859   shlibpath_var=LD_LIBRARY_PATH
7860   shlibpath_overrides_runpath=no
7861   # This implies no fast_install, which is unacceptable.
7862   # Some rework will be needed to allow for fast_install
7863   # before this can be enabled.
7864   hardcode_into_libs=yes
7865
7866   # We used to test for /lib/ld.so.1 and disable shared libraries on
7867   # powerpc, because MkLinux only supported shared libraries with the
7868   # GNU dynamic linker.  Since this was broken with cross compilers,
7869   # most powerpc-linux boxes support dynamic linking these days and
7870   # people can always --disable-shared, the test was removed, and we
7871   # assume the GNU/Linux dynamic linker is in use.
7872   dynamic_linker='GNU/Linux ld.so'
7873   ;;
7874
7875 netbsd*)
7876   version_type=sunos
7877   need_lib_prefix=no
7878   need_version=no
7879   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7880     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
7881     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
7882     dynamic_linker='NetBSD (a.out) ld.so'
7883   else
7884     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
7885     soname_spec='${libname}${release}${shared_ext}$major'
7886     dynamic_linker='NetBSD ld.elf_so'
7887   fi
7888   shlibpath_var=LD_LIBRARY_PATH
7889   shlibpath_overrides_runpath=yes
7890   hardcode_into_libs=yes
7891   ;;
7892
7893 newsos6)
7894   version_type=linux
7895   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7896   shlibpath_var=LD_LIBRARY_PATH
7897   shlibpath_overrides_runpath=yes
7898   ;;
7899
7900 nto-qnx)
7901   version_type=linux
7902   need_lib_prefix=no
7903   need_version=no
7904   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7905   soname_spec='${libname}${release}${shared_ext}$major'
7906   shlibpath_var=LD_LIBRARY_PATH
7907   shlibpath_overrides_runpath=yes
7908   ;;
7909
7910 openbsd*)
7911   version_type=sunos
7912   need_lib_prefix=no
7913   need_version=no
7914   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
7915   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
7916   shlibpath_var=LD_LIBRARY_PATH
7917   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7918     case $host_os in
7919       openbsd2.[89] | openbsd2.[89].*)
7920         shlibpath_overrides_runpath=no
7921         ;;
7922       *)
7923         shlibpath_overrides_runpath=yes
7924         ;;
7925       esac
7926   else
7927     shlibpath_overrides_runpath=yes
7928   fi
7929   ;;
7930
7931 os2*)
7932   libname_spec='$name'
7933   shrext=".dll"
7934   need_lib_prefix=no
7935   library_names_spec='$libname${shared_ext} $libname.a'
7936   dynamic_linker='OS/2 ld.exe'
7937   shlibpath_var=LIBPATH
7938   ;;
7939
7940 osf3* | osf4* | osf5*)
7941   version_type=osf
7942   need_lib_prefix=no
7943   need_version=no
7944   soname_spec='${libname}${release}${shared_ext}$major'
7945   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7946   shlibpath_var=LD_LIBRARY_PATH
7947   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
7948   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
7949   ;;
7950
7951 sco3.2v5*)
7952   version_type=osf
7953   soname_spec='${libname}${release}${shared_ext}$major'
7954   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7955   shlibpath_var=LD_LIBRARY_PATH
7956   ;;
7957
7958 solaris*)
7959   version_type=linux
7960   need_lib_prefix=no
7961   need_version=no
7962   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7963   soname_spec='${libname}${release}${shared_ext}$major'
7964   shlibpath_var=LD_LIBRARY_PATH
7965   shlibpath_overrides_runpath=yes
7966   hardcode_into_libs=yes
7967   # ldd complains unless libraries are executable
7968   postinstall_cmds='chmod +x $lib'
7969   ;;
7970
7971 sunos4*)
7972   version_type=sunos
7973   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
7974   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
7975   shlibpath_var=LD_LIBRARY_PATH
7976   shlibpath_overrides_runpath=yes
7977   if test "$with_gnu_ld" = yes; then
7978     need_lib_prefix=no
7979   fi
7980   need_version=yes
7981   ;;
7982
7983 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
7984   version_type=linux
7985   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7986   soname_spec='${libname}${release}${shared_ext}$major'
7987   shlibpath_var=LD_LIBRARY_PATH
7988   case $host_vendor in
7989     sni)
7990       shlibpath_overrides_runpath=no
7991       need_lib_prefix=no
7992       export_dynamic_flag_spec='${wl}-Blargedynsym'
7993       runpath_var=LD_RUN_PATH
7994       ;;
7995     siemens)
7996       need_lib_prefix=no
7997       ;;
7998     motorola)
7999       need_lib_prefix=no
8000       need_version=no
8001       shlibpath_overrides_runpath=no
8002       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
8003       ;;
8004   esac
8005   ;;
8006
8007 sysv4*MP*)
8008   if test -d /usr/nec ;then
8009     version_type=linux
8010     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
8011     soname_spec='$libname${shared_ext}.$major'
8012     shlibpath_var=LD_LIBRARY_PATH
8013   fi
8014   ;;
8015
8016 uts4*)
8017   version_type=linux
8018   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8019   soname_spec='${libname}${release}${shared_ext}$major'
8020   shlibpath_var=LD_LIBRARY_PATH
8021   ;;
8022
8023 *)
8024   dynamic_linker=no
8025   ;;
8026 esac
8027 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
8028 echo "${ECHO_T}$dynamic_linker" >&6
8029 test "$dynamic_linker" = no && can_build_shared=no
8030
8031 if test "x$enable_dlopen" != xyes; then
8032   enable_dlopen=unknown
8033   enable_dlopen_self=unknown
8034   enable_dlopen_self_static=unknown
8035 else
8036   lt_cv_dlopen=no
8037   lt_cv_dlopen_libs=
8038
8039   case $host_os in
8040   beos*)
8041     lt_cv_dlopen="load_add_on"
8042     lt_cv_dlopen_libs=
8043     lt_cv_dlopen_self=yes
8044     ;;
8045
8046   mingw* | pw32*)
8047     lt_cv_dlopen="LoadLibrary"
8048     lt_cv_dlopen_libs=
8049    ;;
8050
8051   cygwin*)
8052     lt_cv_dlopen="dlopen"
8053     lt_cv_dlopen_libs=
8054    ;;
8055
8056   darwin*)
8057   # if libdl is installed we need to link against it
8058     echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
8059 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
8060 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
8061   echo $ECHO_N "(cached) $ECHO_C" >&6
8062 else
8063   ac_check_lib_save_LIBS=$LIBS
8064 LIBS="-ldl  $LIBS"
8065 cat >conftest.$ac_ext <<_ACEOF
8066 #line $LINENO "configure"
8067 /* confdefs.h.  */
8068 _ACEOF
8069 cat confdefs.h >>conftest.$ac_ext
8070 cat >>conftest.$ac_ext <<_ACEOF
8071 /* end confdefs.h.  */
8072
8073 /* Override any gcc2 internal prototype to avoid an error.  */
8074 #ifdef __cplusplus
8075 extern "C"
8076 #endif
8077 /* We use char because int might match the return type of a gcc2
8078    builtin and then its argument prototype would still apply.  */
8079 char dlopen ();
8080 int
8081 main ()
8082 {
8083 dlopen ();
8084   ;
8085   return 0;
8086 }
8087 _ACEOF
8088 rm -f conftest.$ac_objext conftest$ac_exeext
8089 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8090   (eval $ac_link) 2>&5
8091   ac_status=$?
8092   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8093   (exit $ac_status); } &&
8094          { ac_try='test -s conftest$ac_exeext'
8095   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8096   (eval $ac_try) 2>&5
8097   ac_status=$?
8098   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8099   (exit $ac_status); }; }; then
8100   ac_cv_lib_dl_dlopen=yes
8101 else
8102   echo "$as_me: failed program was:" >&5
8103 sed 's/^/| /' conftest.$ac_ext >&5
8104
8105 ac_cv_lib_dl_dlopen=no
8106 fi
8107 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8108 LIBS=$ac_check_lib_save_LIBS
8109 fi
8110 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
8111 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
8112 if test $ac_cv_lib_dl_dlopen = yes; then
8113   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
8114 else
8115
8116     lt_cv_dlopen="dyld"
8117     lt_cv_dlopen_libs=
8118     lt_cv_dlopen_self=yes
8119
8120 fi
8121
8122    ;;
8123
8124   *)
8125     echo "$as_me:$LINENO: checking for shl_load" >&5
8126 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
8127 if test "${ac_cv_func_shl_load+set}" = set; then
8128   echo $ECHO_N "(cached) $ECHO_C" >&6
8129 else
8130   cat >conftest.$ac_ext <<_ACEOF
8131 #line $LINENO "configure"
8132 /* confdefs.h.  */
8133 _ACEOF
8134 cat confdefs.h >>conftest.$ac_ext
8135 cat >>conftest.$ac_ext <<_ACEOF
8136 /* end confdefs.h.  */
8137 /* System header to define __stub macros and hopefully few prototypes,
8138     which can conflict with char shl_load (); below.
8139     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8140     <limits.h> exists even on freestanding compilers.  */
8141 #ifdef __STDC__
8142 # include <limits.h>
8143 #else
8144 # include <assert.h>
8145 #endif
8146 /* Override any gcc2 internal prototype to avoid an error.  */
8147 #ifdef __cplusplus
8148 extern "C"
8149 {
8150 #endif
8151 /* We use char because int might match the return type of a gcc2
8152    builtin and then its argument prototype would still apply.  */
8153 char shl_load ();
8154 /* The GNU C library defines this for functions which it implements
8155     to always fail with ENOSYS.  Some functions are actually named
8156     something starting with __ and the normal name is an alias.  */
8157 #if defined (__stub_shl_load) || defined (__stub___shl_load)
8158 choke me
8159 #else
8160 char (*f) () = shl_load;
8161 #endif
8162 #ifdef __cplusplus
8163 }
8164 #endif
8165
8166 int
8167 main ()
8168 {
8169 return f != shl_load;
8170   ;
8171   return 0;
8172 }
8173 _ACEOF
8174 rm -f conftest.$ac_objext conftest$ac_exeext
8175 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8176   (eval $ac_link) 2>&5
8177   ac_status=$?
8178   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8179   (exit $ac_status); } &&
8180          { ac_try='test -s conftest$ac_exeext'
8181   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8182   (eval $ac_try) 2>&5
8183   ac_status=$?
8184   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8185   (exit $ac_status); }; }; then
8186   ac_cv_func_shl_load=yes
8187 else
8188   echo "$as_me: failed program was:" >&5
8189 sed 's/^/| /' conftest.$ac_ext >&5
8190
8191 ac_cv_func_shl_load=no
8192 fi
8193 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8194 fi
8195 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
8196 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
8197 if test $ac_cv_func_shl_load = yes; then
8198   lt_cv_dlopen="shl_load"
8199 else
8200   echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
8201 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
8202 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
8203   echo $ECHO_N "(cached) $ECHO_C" >&6
8204 else
8205   ac_check_lib_save_LIBS=$LIBS
8206 LIBS="-ldld  $LIBS"
8207 cat >conftest.$ac_ext <<_ACEOF
8208 #line $LINENO "configure"
8209 /* confdefs.h.  */
8210 _ACEOF
8211 cat confdefs.h >>conftest.$ac_ext
8212 cat >>conftest.$ac_ext <<_ACEOF
8213 /* end confdefs.h.  */
8214
8215 /* Override any gcc2 internal prototype to avoid an error.  */
8216 #ifdef __cplusplus
8217 extern "C"
8218 #endif
8219 /* We use char because int might match the return type of a gcc2
8220    builtin and then its argument prototype would still apply.  */
8221 char shl_load ();
8222 int
8223 main ()
8224 {
8225 shl_load ();
8226   ;
8227   return 0;
8228 }
8229 _ACEOF
8230 rm -f conftest.$ac_objext conftest$ac_exeext
8231 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8232   (eval $ac_link) 2>&5
8233   ac_status=$?
8234   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8235   (exit $ac_status); } &&
8236          { ac_try='test -s conftest$ac_exeext'
8237   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8238   (eval $ac_try) 2>&5
8239   ac_status=$?
8240   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8241   (exit $ac_status); }; }; then
8242   ac_cv_lib_dld_shl_load=yes
8243 else
8244   echo "$as_me: failed program was:" >&5
8245 sed 's/^/| /' conftest.$ac_ext >&5
8246
8247 ac_cv_lib_dld_shl_load=no
8248 fi
8249 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8250 LIBS=$ac_check_lib_save_LIBS
8251 fi
8252 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
8253 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
8254 if test $ac_cv_lib_dld_shl_load = yes; then
8255   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
8256 else
8257   echo "$as_me:$LINENO: checking for dlopen" >&5
8258 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
8259 if test "${ac_cv_func_dlopen+set}" = set; then
8260   echo $ECHO_N "(cached) $ECHO_C" >&6
8261 else
8262   cat >conftest.$ac_ext <<_ACEOF
8263 #line $LINENO "configure"
8264 /* confdefs.h.  */
8265 _ACEOF
8266 cat confdefs.h >>conftest.$ac_ext
8267 cat >>conftest.$ac_ext <<_ACEOF
8268 /* end confdefs.h.  */
8269 /* System header to define __stub macros and hopefully few prototypes,
8270     which can conflict with char dlopen (); below.
8271     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8272     <limits.h> exists even on freestanding compilers.  */
8273 #ifdef __STDC__
8274 # include <limits.h>
8275 #else
8276 # include <assert.h>
8277 #endif
8278 /* Override any gcc2 internal prototype to avoid an error.  */
8279 #ifdef __cplusplus
8280 extern "C"
8281 {
8282 #endif
8283 /* We use char because int might match the return type of a gcc2
8284    builtin and then its argument prototype would still apply.  */
8285 char dlopen ();
8286 /* The GNU C library defines this for functions which it implements
8287     to always fail with ENOSYS.  Some functions are actually named
8288     something starting with __ and the normal name is an alias.  */
8289 #if defined (__stub_dlopen) || defined (__stub___dlopen)
8290 choke me
8291 #else
8292 char (*f) () = dlopen;
8293 #endif
8294 #ifdef __cplusplus
8295 }
8296 #endif
8297
8298 int
8299 main ()
8300 {
8301 return f != dlopen;
8302   ;
8303   return 0;
8304 }
8305 _ACEOF
8306 rm -f conftest.$ac_objext conftest$ac_exeext
8307 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8308   (eval $ac_link) 2>&5
8309   ac_status=$?
8310   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8311   (exit $ac_status); } &&
8312          { ac_try='test -s conftest$ac_exeext'
8313   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8314   (eval $ac_try) 2>&5
8315   ac_status=$?
8316   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8317   (exit $ac_status); }; }; then
8318   ac_cv_func_dlopen=yes
8319 else
8320   echo "$as_me: failed program was:" >&5
8321 sed 's/^/| /' conftest.$ac_ext >&5
8322
8323 ac_cv_func_dlopen=no
8324 fi
8325 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8326 fi
8327 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
8328 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
8329 if test $ac_cv_func_dlopen = yes; then
8330   lt_cv_dlopen="dlopen"
8331 else
8332   echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
8333 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
8334 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
8335   echo $ECHO_N "(cached) $ECHO_C" >&6
8336 else
8337   ac_check_lib_save_LIBS=$LIBS
8338 LIBS="-ldl  $LIBS"
8339 cat >conftest.$ac_ext <<_ACEOF
8340 #line $LINENO "configure"
8341 /* confdefs.h.  */
8342 _ACEOF
8343 cat confdefs.h >>conftest.$ac_ext
8344 cat >>conftest.$ac_ext <<_ACEOF
8345 /* end confdefs.h.  */
8346
8347 /* Override any gcc2 internal prototype to avoid an error.  */
8348 #ifdef __cplusplus
8349 extern "C"
8350 #endif
8351 /* We use char because int might match the return type of a gcc2
8352    builtin and then its argument prototype would still apply.  */
8353 char dlopen ();
8354 int
8355 main ()
8356 {
8357 dlopen ();
8358   ;
8359   return 0;
8360 }
8361 _ACEOF
8362 rm -f conftest.$ac_objext conftest$ac_exeext
8363 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8364   (eval $ac_link) 2>&5
8365   ac_status=$?
8366   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8367   (exit $ac_status); } &&
8368          { ac_try='test -s conftest$ac_exeext'
8369   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8370   (eval $ac_try) 2>&5
8371   ac_status=$?
8372   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8373   (exit $ac_status); }; }; then
8374   ac_cv_lib_dl_dlopen=yes
8375 else
8376   echo "$as_me: failed program was:" >&5
8377 sed 's/^/| /' conftest.$ac_ext >&5
8378
8379 ac_cv_lib_dl_dlopen=no
8380 fi
8381 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8382 LIBS=$ac_check_lib_save_LIBS
8383 fi
8384 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
8385 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
8386 if test $ac_cv_lib_dl_dlopen = yes; then
8387   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
8388 else
8389   echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
8390 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
8391 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
8392   echo $ECHO_N "(cached) $ECHO_C" >&6
8393 else
8394   ac_check_lib_save_LIBS=$LIBS
8395 LIBS="-lsvld  $LIBS"
8396 cat >conftest.$ac_ext <<_ACEOF
8397 #line $LINENO "configure"
8398 /* confdefs.h.  */
8399 _ACEOF
8400 cat confdefs.h >>conftest.$ac_ext
8401 cat >>conftest.$ac_ext <<_ACEOF
8402 /* end confdefs.h.  */
8403
8404 /* Override any gcc2 internal prototype to avoid an error.  */
8405 #ifdef __cplusplus
8406 extern "C"
8407 #endif
8408 /* We use char because int might match the return type of a gcc2
8409    builtin and then its argument prototype would still apply.  */
8410 char dlopen ();
8411 int
8412 main ()
8413 {
8414 dlopen ();
8415   ;
8416   return 0;
8417 }
8418 _ACEOF
8419 rm -f conftest.$ac_objext conftest$ac_exeext
8420 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8421   (eval $ac_link) 2>&5
8422   ac_status=$?
8423   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8424   (exit $ac_status); } &&
8425          { ac_try='test -s conftest$ac_exeext'
8426   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8427   (eval $ac_try) 2>&5
8428   ac_status=$?
8429   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8430   (exit $ac_status); }; }; then
8431   ac_cv_lib_svld_dlopen=yes
8432 else
8433   echo "$as_me: failed program was:" >&5
8434 sed 's/^/| /' conftest.$ac_ext >&5
8435
8436 ac_cv_lib_svld_dlopen=no
8437 fi
8438 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8439 LIBS=$ac_check_lib_save_LIBS
8440 fi
8441 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
8442 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
8443 if test $ac_cv_lib_svld_dlopen = yes; then
8444   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
8445 else
8446   echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
8447 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
8448 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
8449   echo $ECHO_N "(cached) $ECHO_C" >&6
8450 else
8451   ac_check_lib_save_LIBS=$LIBS
8452 LIBS="-ldld  $LIBS"
8453 cat >conftest.$ac_ext <<_ACEOF
8454 #line $LINENO "configure"
8455 /* confdefs.h.  */
8456 _ACEOF
8457 cat confdefs.h >>conftest.$ac_ext
8458 cat >>conftest.$ac_ext <<_ACEOF
8459 /* end confdefs.h.  */
8460
8461 /* Override any gcc2 internal prototype to avoid an error.  */
8462 #ifdef __cplusplus
8463 extern "C"
8464 #endif
8465 /* We use char because int might match the return type of a gcc2
8466    builtin and then its argument prototype would still apply.  */
8467 char dld_link ();
8468 int
8469 main ()
8470 {
8471 dld_link ();
8472   ;
8473   return 0;
8474 }
8475 _ACEOF
8476 rm -f conftest.$ac_objext conftest$ac_exeext
8477 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8478   (eval $ac_link) 2>&5
8479   ac_status=$?
8480   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8481   (exit $ac_status); } &&
8482          { ac_try='test -s conftest$ac_exeext'
8483   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8484   (eval $ac_try) 2>&5
8485   ac_status=$?
8486   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8487   (exit $ac_status); }; }; then
8488   ac_cv_lib_dld_dld_link=yes
8489 else
8490   echo "$as_me: failed program was:" >&5
8491 sed 's/^/| /' conftest.$ac_ext >&5
8492
8493 ac_cv_lib_dld_dld_link=no
8494 fi
8495 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8496 LIBS=$ac_check_lib_save_LIBS
8497 fi
8498 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
8499 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
8500 if test $ac_cv_lib_dld_dld_link = yes; then
8501   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
8502 fi
8503
8504
8505 fi
8506
8507
8508 fi
8509
8510
8511 fi
8512
8513
8514 fi
8515
8516
8517 fi
8518
8519     ;;
8520   esac
8521
8522   if test "x$lt_cv_dlopen" != xno; then
8523     enable_dlopen=yes
8524   else
8525     enable_dlopen=no
8526   fi
8527
8528   case $lt_cv_dlopen in
8529   dlopen)
8530     save_CPPFLAGS="$CPPFLAGS"
8531     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
8532
8533     save_LDFLAGS="$LDFLAGS"
8534     eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
8535
8536     save_LIBS="$LIBS"
8537     LIBS="$lt_cv_dlopen_libs $LIBS"
8538
8539     echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
8540 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
8541 if test "${lt_cv_dlopen_self+set}" = set; then
8542   echo $ECHO_N "(cached) $ECHO_C" >&6
8543 else
8544           if test "$cross_compiling" = yes; then :
8545   lt_cv_dlopen_self=cross
8546 else
8547   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
8548   lt_status=$lt_dlunknown
8549   cat > conftest.$ac_ext <<EOF
8550 #line 8547 "configure"
8551 #include "confdefs.h"
8552
8553 #if HAVE_DLFCN_H
8554 #include <dlfcn.h>
8555 #endif
8556
8557 #include <stdio.h>
8558
8559 #ifdef RTLD_GLOBAL
8560 #  define LT_DLGLOBAL           RTLD_GLOBAL
8561 #else
8562 #  ifdef DL_GLOBAL
8563 #    define LT_DLGLOBAL         DL_GLOBAL
8564 #  else
8565 #    define LT_DLGLOBAL         0
8566 #  endif
8567 #endif
8568
8569 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
8570    find out it does not work in some platform. */
8571 #ifndef LT_DLLAZY_OR_NOW
8572 #  ifdef RTLD_LAZY
8573 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
8574 #  else
8575 #    ifdef DL_LAZY
8576 #      define LT_DLLAZY_OR_NOW          DL_LAZY
8577 #    else
8578 #      ifdef RTLD_NOW
8579 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
8580 #      else
8581 #        ifdef DL_NOW
8582 #          define LT_DLLAZY_OR_NOW      DL_NOW
8583 #        else
8584 #          define LT_DLLAZY_OR_NOW      0
8585 #        endif
8586 #      endif
8587 #    endif
8588 #  endif
8589 #endif
8590
8591 #ifdef __cplusplus
8592 extern "C" void exit (int);
8593 #endif
8594
8595 void fnord() { int i=42;}
8596 int main ()
8597 {
8598   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
8599   int status = $lt_dlunknown;
8600
8601   if (self)
8602     {
8603       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
8604       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
8605       /* dlclose (self); */
8606     }
8607
8608     exit (status);
8609 }
8610 EOF
8611   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8612   (eval $ac_link) 2>&5
8613   ac_status=$?
8614   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8615   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
8616     (./conftest; exit; ) 2>/dev/null
8617     lt_status=$?
8618     case x$lt_status in
8619       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
8620       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
8621       x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
8622     esac
8623   else :
8624     # compilation failed
8625     lt_cv_dlopen_self=no
8626   fi
8627 fi
8628 rm -fr conftest*
8629
8630
8631 fi
8632 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
8633 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
8634
8635     if test "x$lt_cv_dlopen_self" = xyes; then
8636       LDFLAGS="$LDFLAGS $link_static_flag"
8637       echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
8638 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
8639 if test "${lt_cv_dlopen_self_static+set}" = set; then
8640   echo $ECHO_N "(cached) $ECHO_C" >&6
8641 else
8642           if test "$cross_compiling" = yes; then :
8643   lt_cv_dlopen_self_static=cross
8644 else
8645   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
8646   lt_status=$lt_dlunknown
8647   cat > conftest.$ac_ext <<EOF
8648 #line 8645 "configure"
8649 #include "confdefs.h"
8650
8651 #if HAVE_DLFCN_H
8652 #include <dlfcn.h>
8653 #endif
8654
8655 #include <stdio.h>
8656
8657 #ifdef RTLD_GLOBAL
8658 #  define LT_DLGLOBAL           RTLD_GLOBAL
8659 #else
8660 #  ifdef DL_GLOBAL
8661 #    define LT_DLGLOBAL         DL_GLOBAL
8662 #  else
8663 #    define LT_DLGLOBAL         0
8664 #  endif
8665 #endif
8666
8667 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
8668    find out it does not work in some platform. */
8669 #ifndef LT_DLLAZY_OR_NOW
8670 #  ifdef RTLD_LAZY
8671 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
8672 #  else
8673 #    ifdef DL_LAZY
8674 #      define LT_DLLAZY_OR_NOW          DL_LAZY
8675 #    else
8676 #      ifdef RTLD_NOW
8677 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
8678 #      else
8679 #        ifdef DL_NOW
8680 #          define LT_DLLAZY_OR_NOW      DL_NOW
8681 #        else
8682 #          define LT_DLLAZY_OR_NOW      0
8683 #        endif
8684 #      endif
8685 #    endif
8686 #  endif
8687 #endif
8688
8689 #ifdef __cplusplus
8690 extern "C" void exit (int);
8691 #endif
8692
8693 void fnord() { int i=42;}
8694 int main ()
8695 {
8696   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
8697   int status = $lt_dlunknown;
8698
8699   if (self)
8700     {
8701       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
8702       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
8703       /* dlclose (self); */
8704     }
8705
8706     exit (status);
8707 }
8708 EOF
8709   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8710   (eval $ac_link) 2>&5
8711   ac_status=$?
8712   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8713   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
8714     (./conftest; exit; ) 2>/dev/null
8715     lt_status=$?
8716     case x$lt_status in
8717       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
8718       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
8719       x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
8720     esac
8721   else :
8722     # compilation failed
8723     lt_cv_dlopen_self_static=no
8724   fi
8725 fi
8726 rm -fr conftest*
8727
8728
8729 fi
8730 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
8731 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
8732     fi
8733
8734     CPPFLAGS="$save_CPPFLAGS"
8735     LDFLAGS="$save_LDFLAGS"
8736     LIBS="$save_LIBS"
8737     ;;
8738   esac
8739
8740   case $lt_cv_dlopen_self in
8741   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
8742   *) enable_dlopen_self=unknown ;;
8743   esac
8744
8745   case $lt_cv_dlopen_self_static in
8746   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
8747   *) enable_dlopen_self_static=unknown ;;
8748   esac
8749 fi
8750
8751
8752 # Report which librarie types wil actually be built
8753 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
8754 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
8755 echo "$as_me:$LINENO: result: $can_build_shared" >&5
8756 echo "${ECHO_T}$can_build_shared" >&6
8757
8758 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
8759 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
8760 test "$can_build_shared" = "no" && enable_shared=no
8761
8762 # On AIX, shared libraries and static libraries use the same namespace, and
8763 # are all built from PIC.
8764 case "$host_os" in
8765 aix3*)
8766   test "$enable_shared" = yes && enable_static=no
8767   if test -n "$RANLIB"; then
8768     archive_cmds="$archive_cmds~\$RANLIB \$lib"
8769     postinstall_cmds='$RANLIB $lib'
8770   fi
8771   ;;
8772
8773 aix4*)
8774   if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
8775     test "$enable_shared" = yes && enable_static=no
8776   fi
8777   ;;
8778   darwin* | rhapsody*)
8779   if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
8780     archive_cmds_need_lc=no
8781     case "$host_os" in
8782     rhapsody* | darwin1.[012])
8783       allow_undefined_flag='-undefined suppress'
8784       ;;
8785     *) # Darwin 1.3 on
8786       test -z ${LD_TWOLEVEL_NAMESPACE} && allow_undefined_flag='-flat_namespace -undefined suppress'
8787       ;;
8788     esac
8789     # FIXME: Relying on posixy $() will cause problems for
8790     #        cross-compilation, but unfortunately the echo tests do not
8791     #        yet detect zsh echo's removal of \ escapes.  Also zsh mangles
8792     #          `"' quotes if we put them in here... so don't!
8793                 output_verbose_link_cmd='echo'
8794     archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags -install_name $rpath/$soname $verstring'
8795     module_cmds='$CC -bundle $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags'
8796     # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
8797                   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}'
8798                   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}'
8799     hardcode_direct=no
8800     hardcode_automatic=yes
8801     hardcode_shlibpath_var=unsupported
8802     whole_archive_flag_spec='-all_load $convenience'
8803     link_all_deplibs=yes
8804     fi
8805     ;;
8806 esac
8807 echo "$as_me:$LINENO: result: $enable_shared" >&5
8808 echo "${ECHO_T}$enable_shared" >&6
8809
8810 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
8811 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
8812 # Make sure either enable_shared or enable_static is yes.
8813 test "$enable_shared" = yes || enable_static=yes
8814 echo "$as_me:$LINENO: result: $enable_static" >&5
8815 echo "${ECHO_T}$enable_static" >&6
8816
8817 # The else clause should only fire when bootstrapping the
8818 # libtool distribution, otherwise you forgot to ship ltmain.sh
8819 # with your package, and you will get complaints that there are
8820 # no rules to generate ltmain.sh.
8821 if test -f "$ltmain"; then
8822   # See if we are running on zsh, and set the options which allow our commands through
8823   # without removal of \ escapes.
8824   if test -n "${ZSH_VERSION+set}" ; then
8825     setopt NO_GLOB_SUBST
8826   fi
8827   # Now quote all the things that may contain metacharacters while being
8828   # careful not to overquote the AC_SUBSTed values.  We take copies of the
8829   # variables and quote the copies for generation of the libtool script.
8830   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \
8831     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
8832     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
8833     deplibs_check_method reload_flag reload_cmds need_locks \
8834     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
8835     lt_cv_sys_global_symbol_to_c_name_address \
8836     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
8837     old_postinstall_cmds old_postuninstall_cmds \
8838     compiler \
8839     CC \
8840     LD \
8841     lt_prog_compiler_wl \
8842     lt_prog_compiler_pic \
8843     lt_prog_compiler_static \
8844     lt_prog_compiler_no_builtin_flag \
8845     export_dynamic_flag_spec \
8846     thread_safe_flag_spec \
8847     whole_archive_flag_spec \
8848     enable_shared_with_static_runtimes \
8849     old_archive_cmds \
8850     old_archive_from_new_cmds \
8851     predep_objects \
8852     postdep_objects \
8853     predeps \
8854     postdeps \
8855     compiler_lib_search_path \
8856     archive_cmds \
8857     archive_expsym_cmds \
8858     postinstall_cmds \
8859     postuninstall_cmds \
8860     old_archive_from_expsyms_cmds \
8861     allow_undefined_flag \
8862     no_undefined_flag \
8863     export_symbols_cmds \
8864     hardcode_libdir_flag_spec \
8865     hardcode_libdir_flag_spec_ld \
8866     hardcode_libdir_separator \
8867     hardcode_automatic \
8868     module_cmds \
8869     module_expsym_cmds \
8870     lt_cv_prog_compiler_c_o \
8871     exclude_expsyms \
8872     include_expsyms; do
8873
8874     case $var in
8875     old_archive_cmds | \
8876     old_archive_from_new_cmds | \
8877     archive_cmds | \
8878     archive_expsym_cmds | \
8879     module_cmds | \
8880     module_expsym_cmds | \
8881     old_archive_from_expsyms_cmds | \
8882     export_symbols_cmds | \
8883     extract_expsyms_cmds | reload_cmds | finish_cmds | \
8884     postinstall_cmds | postuninstall_cmds | \
8885     old_postinstall_cmds | old_postuninstall_cmds | \
8886     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
8887       # Double-quote double-evaled strings.
8888       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
8889       ;;
8890     *)
8891       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
8892       ;;
8893     esac
8894   done
8895
8896   case $lt_echo in
8897   *'\$0 --fallback-echo"')
8898     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
8899     ;;
8900   esac
8901
8902 cfgfile="${ofile}T"
8903   trap "$rm \"$cfgfile\"; exit 1" 1 2 15
8904   $rm -f "$cfgfile"
8905   { echo "$as_me:$LINENO: creating $ofile" >&5
8906 echo "$as_me: creating $ofile" >&6;}
8907
8908   cat <<__EOF__ >> "$cfgfile"
8909 #! $SHELL
8910
8911 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
8912 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
8913 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
8914 #
8915 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
8916 # Free Software Foundation, Inc.
8917 #
8918 # This file is part of GNU Libtool:
8919 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
8920 #
8921 # This program is free software; you can redistribute it and/or modify
8922 # it under the terms of the GNU General Public License as published by
8923 # the Free Software Foundation; either version 2 of the License, or
8924 # (at your option) any later version.
8925 #
8926 # This program is distributed in the hope that it will be useful, but
8927 # WITHOUT ANY WARRANTY; without even the implied warranty of
8928 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
8929 # General Public License for more details.
8930 #
8931 # You should have received a copy of the GNU General Public License
8932 # along with this program; if not, write to the Free Software
8933 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
8934 #
8935 # As a special exception to the GNU General Public License, if you
8936 # distribute this file as part of a program that contains a
8937 # configuration script generated by Autoconf, you may include it under
8938 # the same distribution terms that you use for the rest of that program.
8939
8940 # A sed program that does not truncate output.
8941 SED=$lt_SED
8942
8943 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
8944 Xsed="$SED -e s/^X//"
8945
8946 # The HP-UX ksh and POSIX shell print the target directory to stdout
8947 # if CDPATH is set.
8948 if test "X\${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
8949
8950 # The names of the tagged configurations supported by this script.
8951 available_tags=
8952
8953 # ### BEGIN LIBTOOL CONFIG
8954
8955 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
8956
8957 # Shell to use when invoking shell scripts.
8958 SHELL=$lt_SHELL
8959
8960 # Whether or not to build shared libraries.
8961 build_libtool_libs=$enable_shared
8962
8963 # Whether or not to build static libraries.
8964 build_old_libs=$enable_static
8965
8966 # Whether or not to add -lc for building shared libraries.
8967 build_libtool_need_lc=$archive_cmds_need_lc
8968
8969 # Whether or not to disallow shared libs when runtime libs are static
8970 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
8971
8972 # Whether or not to optimize for fast installation.
8973 fast_install=$enable_fast_install
8974
8975 # The host system.
8976 host_alias=$host_alias
8977 host=$host
8978
8979 # An echo program that does not interpret backslashes.
8980 echo=$lt_echo
8981
8982 # The archiver.
8983 AR=$lt_AR
8984 AR_FLAGS=$lt_AR_FLAGS
8985
8986 # A C compiler.
8987 LTCC=$lt_LTCC
8988
8989 # A language-specific compiler.
8990 CC=$lt_compiler
8991
8992 # Is the compiler the GNU C compiler?
8993 with_gcc=$GCC
8994
8995 # An ERE matcher.
8996 EGREP=$lt_EGREP
8997
8998 # The linker used to build libraries.
8999 LD=$lt_LD
9000
9001 # Whether we need hard or soft links.
9002 LN_S=$lt_LN_S
9003
9004 # A BSD-compatible nm program.
9005 NM=$lt_NM
9006
9007 # A symbol stripping program
9008 STRIP=$STRIP
9009
9010 # Used to examine libraries when file_magic_cmd begins "file"
9011 MAGIC_CMD=$MAGIC_CMD
9012
9013 # Used on cygwin: DLL creation program.
9014 DLLTOOL="$DLLTOOL"
9015
9016 # Used on cygwin: object dumper.
9017 OBJDUMP="$OBJDUMP"
9018
9019 # Used on cygwin: assembler.
9020 AS="$AS"
9021
9022 # The name of the directory that contains temporary libtool files.
9023 objdir=$objdir
9024
9025 # How to create reloadable object files.
9026 reload_flag=$lt_reload_flag
9027 reload_cmds=$lt_reload_cmds
9028
9029 # How to pass a linker flag through the compiler.
9030 wl=$lt_lt_prog_compiler_wl
9031
9032 # Object file suffix (normally "o").
9033 objext="$ac_objext"
9034
9035 # Old archive suffix (normally "a").
9036 libext="$libext"
9037
9038 # Shared library suffix (normally ".so").
9039 shrext='$shrext'
9040
9041 # Executable file suffix (normally "").
9042 exeext="$exeext"
9043
9044 # Additional compiler flags for building library objects.
9045 pic_flag=$lt_lt_prog_compiler_pic
9046 pic_mode=$pic_mode
9047
9048 # What is the maximum length of a command?
9049 max_cmd_len=$lt_cv_sys_max_cmd_len
9050
9051 # Does compiler simultaneously support -c and -o options?
9052 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
9053
9054 # Must we lock files when doing compilation ?
9055 need_locks=$lt_need_locks
9056
9057 # Do we need the lib prefix for modules?
9058 need_lib_prefix=$need_lib_prefix
9059
9060 # Do we need a version for libraries?
9061 need_version=$need_version
9062
9063 # Whether dlopen is supported.
9064 dlopen_support=$enable_dlopen
9065
9066 # Whether dlopen of programs is supported.
9067 dlopen_self=$enable_dlopen_self
9068
9069 # Whether dlopen of statically linked programs is supported.
9070 dlopen_self_static=$enable_dlopen_self_static
9071
9072 # Compiler flag to prevent dynamic linking.
9073 link_static_flag=$lt_lt_prog_compiler_static
9074
9075 # Compiler flag to turn off builtin functions.
9076 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
9077
9078 # Compiler flag to allow reflexive dlopens.
9079 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
9080
9081 # Compiler flag to generate shared objects directly from archives.
9082 whole_archive_flag_spec=$lt_whole_archive_flag_spec
9083
9084 # Compiler flag to generate thread-safe objects.
9085 thread_safe_flag_spec=$lt_thread_safe_flag_spec
9086
9087 # Library versioning type.
9088 version_type=$version_type
9089
9090 # Format of library name prefix.
9091 libname_spec=$lt_libname_spec
9092
9093 # List of archive names.  First name is the real one, the rest are links.
9094 # The last name is the one that the linker finds with -lNAME.
9095 library_names_spec=$lt_library_names_spec
9096
9097 # The coded name of the library, if different from the real name.
9098 soname_spec=$lt_soname_spec
9099
9100 # Commands used to build and install an old-style archive.
9101 RANLIB=$lt_RANLIB
9102 old_archive_cmds=$lt_old_archive_cmds
9103 old_postinstall_cmds=$lt_old_postinstall_cmds
9104 old_postuninstall_cmds=$lt_old_postuninstall_cmds
9105
9106 # Create an old-style archive from a shared archive.
9107 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
9108
9109 # Create a temporary old-style archive to link instead of a shared archive.
9110 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
9111
9112 # Commands used to build and install a shared archive.
9113 archive_cmds=$lt_archive_cmds
9114 archive_expsym_cmds=$lt_archive_expsym_cmds
9115 postinstall_cmds=$lt_postinstall_cmds
9116 postuninstall_cmds=$lt_postuninstall_cmds
9117
9118 # Commands used to build a loadable module (assumed same as above if empty)
9119 module_cmds=$lt_module_cmds
9120 module_expsym_cmds=$lt_module_expsym_cmds
9121
9122 # Commands to strip libraries.
9123 old_striplib=$lt_old_striplib
9124 striplib=$lt_striplib
9125
9126 # Dependencies to place before the objects being linked to create a
9127 # shared library.
9128 predep_objects=$lt_predep_objects
9129
9130 # Dependencies to place after the objects being linked to create a
9131 # shared library.
9132 postdep_objects=$lt_postdep_objects
9133
9134 # Dependencies to place before the objects being linked to create a
9135 # shared library.
9136 predeps=$lt_predeps
9137
9138 # Dependencies to place after the objects being linked to create a
9139 # shared library.
9140 postdeps=$lt_postdeps
9141
9142 # The library search path used internally by the compiler when linking
9143 # a shared library.
9144 compiler_lib_search_path=$lt_compiler_lib_search_path
9145
9146 # Method to check whether dependent libraries are shared objects.
9147 deplibs_check_method=$lt_deplibs_check_method
9148
9149 # Command to use when deplibs_check_method == file_magic.
9150 file_magic_cmd=$lt_file_magic_cmd
9151
9152 # Flag that allows shared libraries with undefined symbols to be built.
9153 allow_undefined_flag=$lt_allow_undefined_flag
9154
9155 # Flag that forces no undefined symbols.
9156 no_undefined_flag=$lt_no_undefined_flag
9157
9158 # Commands used to finish a libtool library installation in a directory.
9159 finish_cmds=$lt_finish_cmds
9160
9161 # Same as above, but a single script fragment to be evaled but not shown.
9162 finish_eval=$lt_finish_eval
9163
9164 # Take the output of nm and produce a listing of raw symbols and C names.
9165 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
9166
9167 # Transform the output of nm in a proper C declaration
9168 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
9169
9170 # Transform the output of nm in a C name address pair
9171 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
9172
9173 # This is the shared library runtime path variable.
9174 runpath_var=$runpath_var
9175
9176 # This is the shared library path variable.
9177 shlibpath_var=$shlibpath_var
9178
9179 # Is shlibpath searched before the hard-coded library search path?
9180 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
9181
9182 # How to hardcode a shared library path into an executable.
9183 hardcode_action=$hardcode_action
9184
9185 # Whether we should hardcode library paths into libraries.
9186 hardcode_into_libs=$hardcode_into_libs
9187
9188 # Flag to hardcode \$libdir into a binary during linking.
9189 # This must work even if \$libdir does not exist.
9190 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
9191
9192 # If ld is used when linking, flag to hardcode \$libdir into
9193 # a binary during linking. This must work even if \$libdir does
9194 # not exist.
9195 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
9196
9197 # Whether we need a single -rpath flag with a separated argument.
9198 hardcode_libdir_separator=$lt_hardcode_libdir_separator
9199
9200 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
9201 # resulting binary.
9202 hardcode_direct=$hardcode_direct
9203
9204 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
9205 # resulting binary.
9206 hardcode_minus_L=$hardcode_minus_L
9207
9208 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
9209 # the resulting binary.
9210 hardcode_shlibpath_var=$hardcode_shlibpath_var
9211
9212 # Set to yes if building a shared library automatically hardcodes DIR into the library
9213 # and all subsequent libraries and executables linked against it.
9214 hardcode_automatic=$hardcode_automatic
9215
9216 # Variables whose values should be saved in libtool wrapper scripts and
9217 # restored at relink time.
9218 variables_saved_for_relink="$variables_saved_for_relink"
9219
9220 # Whether libtool must link a program against all its dependency libraries.
9221 link_all_deplibs=$link_all_deplibs
9222
9223 # Compile-time system search path for libraries
9224 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
9225
9226 # Run-time system search path for libraries
9227 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
9228
9229 # Fix the shell variable \$srcfile for the compiler.
9230 fix_srcfile_path="$fix_srcfile_path"
9231
9232 # Set to yes if exported symbols are required.
9233 always_export_symbols=$always_export_symbols
9234
9235 # The commands to list exported symbols.
9236 export_symbols_cmds=$lt_export_symbols_cmds
9237
9238 # The commands to extract the exported symbol list from a shared archive.
9239 extract_expsyms_cmds=$lt_extract_expsyms_cmds
9240
9241 # Symbols that should not be listed in the preloaded symbols.
9242 exclude_expsyms=$lt_exclude_expsyms
9243
9244 # Symbols that must always be exported.
9245 include_expsyms=$lt_include_expsyms
9246
9247 # ### END LIBTOOL CONFIG
9248
9249 __EOF__
9250
9251
9252   case $host_os in
9253   aix3*)
9254     cat <<\EOF >> "$cfgfile"
9255
9256 # AIX sometimes has problems with the GCC collect2 program.  For some
9257 # reason, if we set the COLLECT_NAMES environment variable, the problems
9258 # vanish in a puff of smoke.
9259 if test "X${COLLECT_NAMES+set}" != Xset; then
9260   COLLECT_NAMES=
9261   export COLLECT_NAMES
9262 fi
9263 EOF
9264     ;;
9265   esac
9266
9267   # We use sed instead of cat because bash on DJGPP gets confused if
9268   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
9269   # text mode, it properly converts lines to CR/LF.  This bash problem
9270   # is reportedly fixed, but why not run on old versions too?
9271   sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
9272
9273   mv -f "$cfgfile" "$ofile" || \
9274     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
9275   chmod +x "$ofile"
9276
9277 else
9278   # If there is no Makefile yet, we rely on a make rule to execute
9279   # `config.status --recheck' to rerun these tests and create the
9280   # libtool script then.
9281   test -f Makefile && make "$ltmain"
9282 fi
9283
9284
9285 ac_ext=c
9286 ac_cpp='$CPP $CPPFLAGS'
9287 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9288 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9289 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9290
9291 CC="$lt_save_CC"
9292
9293
9294 # Check whether --with-tags or --without-tags was given.
9295 if test "${with_tags+set}" = set; then
9296   withval="$with_tags"
9297   tagnames="$withval"
9298 fi;
9299
9300 if test -f "$ltmain" && test -n "$tagnames"; then
9301   if test ! -f "${ofile}"; then
9302     { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
9303 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
9304   fi
9305
9306   if test -z "$LTCC"; then
9307     eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
9308     if test -z "$LTCC"; then
9309       { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
9310 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
9311     else
9312       { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
9313 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
9314     fi
9315   fi
9316
9317   # Extract list of available tagged configurations in $ofile.
9318   # Note that this assumes the entire list is on one line.
9319   available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
9320
9321   lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9322   for tagname in $tagnames; do
9323     IFS="$lt_save_ifs"
9324     # Check whether tagname contains only valid characters
9325     case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
9326     "") ;;
9327     *)  { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
9328 echo "$as_me: error: invalid tag name: $tagname" >&2;}
9329    { (exit 1); exit 1; }; }
9330         ;;
9331     esac
9332
9333     if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
9334     then
9335       { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
9336 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
9337    { (exit 1); exit 1; }; }
9338     fi
9339
9340     # Update the list of available tags.
9341     if test -n "$tagname"; then
9342       echo appending configuration tag \"$tagname\" to $ofile
9343
9344       case $tagname in
9345       CXX)
9346         if test -n "$CXX" && test "X$CXX" != "Xno"; then
9347           ac_ext=cc
9348 ac_cpp='$CXXCPP $CPPFLAGS'
9349 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9350 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9351 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9352
9353
9354
9355
9356 archive_cmds_need_lc_CXX=no
9357 allow_undefined_flag_CXX=
9358 always_export_symbols_CXX=no
9359 archive_expsym_cmds_CXX=
9360 export_dynamic_flag_spec_CXX=
9361 hardcode_direct_CXX=no
9362 hardcode_libdir_flag_spec_CXX=
9363 hardcode_libdir_flag_spec_ld_CXX=
9364 hardcode_libdir_separator_CXX=
9365 hardcode_minus_L_CXX=no
9366 hardcode_automatic_CXX=no
9367 module_cmds_CXX=
9368 module_expsym_cmds_CXX=
9369 link_all_deplibs_CXX=unknown
9370 old_archive_cmds_CXX=$old_archive_cmds
9371 no_undefined_flag_CXX=
9372 whole_archive_flag_spec_CXX=
9373 enable_shared_with_static_runtimes_CXX=no
9374
9375 # Dependencies to place before and after the object being linked:
9376 predep_objects_CXX=
9377 postdep_objects_CXX=
9378 predeps_CXX=
9379 postdeps_CXX=
9380 compiler_lib_search_path_CXX=
9381
9382 # Source file extension for C++ test sources.
9383 ac_ext=cc
9384
9385 # Object file extension for compiled C++ test sources.
9386 objext=o
9387 objext_CXX=$objext
9388
9389 # Code to be used in simple compile tests
9390 lt_simple_compile_test_code="int some_variable = 0;\n"
9391
9392 # Code to be used in simple link tests
9393 lt_simple_link_test_code='int main(int, char *) { return(0); }\n'
9394
9395 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
9396
9397 # If no C compiler was specified, use CC.
9398 LTCC=${LTCC-"$CC"}
9399
9400 # Allow CC to be a program name with arguments.
9401 compiler=$CC
9402
9403
9404 # Allow CC to be a program name with arguments.
9405 lt_save_CC=$CC
9406 lt_save_LD=$LD
9407 lt_save_GCC=$GCC
9408 GCC=$GXX
9409 lt_save_with_gnu_ld=$with_gnu_ld
9410 lt_save_path_LD=$lt_cv_path_LD
9411 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
9412   lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
9413 else
9414   unset lt_cv_prog_gnu_ld
9415 fi
9416 if test -n "${lt_cv_path_LDCXX+set}"; then
9417   lt_cv_path_LD=$lt_cv_path_LDCXX
9418 else
9419   unset lt_cv_path_LD
9420 fi
9421 test -z "${LDCXX+set}" || LD=$LDCXX
9422 CC=${CXX-"c++"}
9423 compiler=$CC
9424 compiler_CXX=$CC
9425 cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
9426
9427 # We don't want -fno-exception wen compiling C++ code, so set the
9428 # no_builtin_flag separately
9429 if test "$GXX" = yes; then
9430   lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
9431 else
9432   lt_prog_compiler_no_builtin_flag_CXX=
9433 fi
9434
9435 if test "$GXX" = yes; then
9436   # Set up default GNU C++ configuration
9437
9438
9439 # Check whether --with-gnu-ld or --without-gnu-ld was given.
9440 if test "${with_gnu_ld+set}" = set; then
9441   withval="$with_gnu_ld"
9442   test "$withval" = no || with_gnu_ld=yes
9443 else
9444   with_gnu_ld=no
9445 fi;
9446 ac_prog=ld
9447 if test "$GCC" = yes; then
9448   # Check if gcc -print-prog-name=ld gives a path.
9449   echo "$as_me:$LINENO: checking for ld used by $CC" >&5
9450 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
9451   case $host in
9452   *-*-mingw*)
9453     # gcc leaves a trailing carriage return which upsets mingw
9454     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
9455   *)
9456     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
9457   esac
9458   case $ac_prog in
9459     # Accept absolute paths.
9460     [\\/]* | ?:[\\/]*)
9461       re_direlt='/[^/][^/]*/\.\./'
9462       # Canonicalize the path of ld
9463       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
9464       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
9465         ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
9466       done
9467       test -z "$LD" && LD="$ac_prog"
9468       ;;
9469   "")
9470     # If it fails, then pretend we aren't using GCC.
9471     ac_prog=ld
9472     ;;
9473   *)
9474     # If it is relative, then search for the first ld in PATH.
9475     with_gnu_ld=unknown
9476     ;;
9477   esac
9478 elif test "$with_gnu_ld" = yes; then
9479   echo "$as_me:$LINENO: checking for GNU ld" >&5
9480 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
9481 else
9482   echo "$as_me:$LINENO: checking for non-GNU ld" >&5
9483 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
9484 fi
9485 if test "${lt_cv_path_LD+set}" = set; then
9486   echo $ECHO_N "(cached) $ECHO_C" >&6
9487 else
9488   if test -z "$LD"; then
9489   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9490   for ac_dir in $PATH; do
9491     IFS="$lt_save_ifs"
9492     test -z "$ac_dir" && ac_dir=.
9493     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
9494       lt_cv_path_LD="$ac_dir/$ac_prog"
9495       # Check to see if the program is GNU ld.  I'd rather use --version,
9496       # but apparently some GNU ld's only accept -v.
9497       # Break only if it was the GNU/non-GNU ld that we prefer.
9498       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
9499       *GNU* | *'with BFD'*)
9500         test "$with_gnu_ld" != no && break
9501         ;;
9502       *)
9503         test "$with_gnu_ld" != yes && break
9504         ;;
9505       esac
9506     fi
9507   done
9508   IFS="$lt_save_ifs"
9509 else
9510   lt_cv_path_LD="$LD" # Let the user override the test with a path.
9511 fi
9512 fi
9513
9514 LD="$lt_cv_path_LD"
9515 if test -n "$LD"; then
9516   echo "$as_me:$LINENO: result: $LD" >&5
9517 echo "${ECHO_T}$LD" >&6
9518 else
9519   echo "$as_me:$LINENO: result: no" >&5
9520 echo "${ECHO_T}no" >&6
9521 fi
9522 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
9523 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
9524    { (exit 1); exit 1; }; }
9525 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
9526 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
9527 if test "${lt_cv_prog_gnu_ld+set}" = set; then
9528   echo $ECHO_N "(cached) $ECHO_C" >&6
9529 else
9530   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
9531 case `"$LD" -v 2>&1 </dev/null` in
9532 *GNU* | *'with BFD'*)
9533   lt_cv_prog_gnu_ld=yes
9534   ;;
9535 *)
9536   lt_cv_prog_gnu_ld=no
9537   ;;
9538 esac
9539 fi
9540 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
9541 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
9542 with_gnu_ld=$lt_cv_prog_gnu_ld
9543
9544
9545
9546   # Check if GNU C++ uses GNU ld as the underlying linker, since the
9547   # archiving commands below assume that GNU ld is being used.
9548   if test "$with_gnu_ld" = yes; then
9549     archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
9550     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'
9551
9552     hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
9553     export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
9554
9555     # If archive_cmds runs LD, not CC, wlarc should be empty
9556     # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
9557     #     investigate it a little bit more. (MM)
9558     wlarc='${wl}'
9559
9560     # ancient GNU ld didn't support --whole-archive et. al.
9561     if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
9562         grep 'no-whole-archive' > /dev/null; then
9563       whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9564     else
9565       whole_archive_flag_spec_CXX=
9566     fi
9567   else
9568     with_gnu_ld=no
9569     wlarc=
9570
9571     # A generic and very simple default shared library creation
9572     # command for GNU C++ for the case where it uses the native
9573     # linker, instead of GNU ld.  If possible, this setting should
9574     # overridden to take advantage of the native linker features on
9575     # the platform it is being used on.
9576     archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
9577   fi
9578
9579   # Commands to make compiler produce verbose output that lists
9580   # what "hidden" libraries, object files and flags are used when
9581   # linking a shared library.
9582   output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
9583
9584 else
9585   GXX=no
9586   with_gnu_ld=no
9587   wlarc=
9588 fi
9589
9590 # PORTME: fill in a description of your system's C++ link characteristics
9591 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9592 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
9593 ld_shlibs_CXX=yes
9594 case $host_os in
9595   aix3*)
9596     # FIXME: insert proper C++ library support
9597     ld_shlibs_CXX=no
9598     ;;
9599   aix4* | aix5*)
9600     if test "$host_cpu" = ia64; then
9601       # On IA64, the linker does run time linking by default, so we don't
9602       # have to do anything special.
9603       aix_use_runtimelinking=no
9604       exp_sym_flag='-Bexport'
9605       no_entry_flag=""
9606     else
9607       aix_use_runtimelinking=no
9608
9609       # Test if we are trying to use run time linking or normal
9610       # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9611       # need to do runtime linking.
9612       case $host_os in aix4.[23]|aix4.[23].*|aix5*)
9613         for ld_flag in $LDFLAGS; do
9614           case $ld_flag in
9615           *-brtl*)
9616             aix_use_runtimelinking=yes
9617             break
9618             ;;
9619           esac
9620         done
9621       esac
9622
9623       exp_sym_flag='-bexport'
9624       no_entry_flag='-bnoentry'
9625     fi
9626
9627     # When large executables or shared objects are built, AIX ld can
9628     # have problems creating the table of contents.  If linking a library
9629     # or program results in "error TOC overflow" add -mminimal-toc to
9630     # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
9631     # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9632
9633     archive_cmds_CXX=''
9634     hardcode_direct_CXX=yes
9635     hardcode_libdir_separator_CXX=':'
9636     link_all_deplibs_CXX=yes
9637
9638     if test "$GXX" = yes; then
9639       case $host_os in aix4.012|aix4.012.*)
9640       # We only want to do this on AIX 4.2 and lower, the check
9641       # below for broken collect2 doesn't work under 4.3+
9642         collect2name=`${CC} -print-prog-name=collect2`
9643         if test -f "$collect2name" && \
9644            strings "$collect2name" | grep resolve_lib_name >/dev/null
9645         then
9646           # We have reworked collect2
9647           hardcode_direct_CXX=yes
9648         else
9649           # We have old collect2
9650           hardcode_direct_CXX=unsupported
9651           # It fails to find uninstalled libraries when the uninstalled
9652           # path is not listed in the libpath.  Setting hardcode_minus_L
9653           # to unsupported forces relinking
9654           hardcode_minus_L_CXX=yes
9655           hardcode_libdir_flag_spec_CXX='-L$libdir'
9656           hardcode_libdir_separator_CXX=
9657         fi
9658       esac
9659       shared_flag='-shared'
9660     else
9661       # not using gcc
9662       if test "$host_cpu" = ia64; then
9663         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9664         # chokes on -Wl,-G. The following line is correct:
9665         shared_flag='-G'
9666       else
9667         if test "$aix_use_runtimelinking" = yes; then
9668           shared_flag='${wl}-G'
9669         else
9670           shared_flag='${wl}-bM:SRE'
9671         fi
9672       fi
9673     fi
9674
9675     # It seems that -bexpall does not export symbols beginning with
9676     # underscore (_), so it is better to generate a list of symbols to export.
9677     always_export_symbols_CXX=yes
9678     if test "$aix_use_runtimelinking" = yes; then
9679       # Warning - without using the other runtime loading flags (-brtl),
9680       # -berok will link without error, but may produce a broken library.
9681       allow_undefined_flag_CXX='-berok'
9682       # Determine the default libpath from the value encoded in an empty executable.
9683       cat >conftest.$ac_ext <<_ACEOF
9684 #line $LINENO "configure"
9685 /* confdefs.h.  */
9686 _ACEOF
9687 cat confdefs.h >>conftest.$ac_ext
9688 cat >>conftest.$ac_ext <<_ACEOF
9689 /* end confdefs.h.  */
9690
9691 int
9692 main ()
9693 {
9694
9695   ;
9696   return 0;
9697 }
9698 _ACEOF
9699 rm -f conftest.$ac_objext conftest$ac_exeext
9700 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9701   (eval $ac_link) 2>&5
9702   ac_status=$?
9703   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9704   (exit $ac_status); } &&
9705          { ac_try='test -s conftest$ac_exeext'
9706   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9707   (eval $ac_try) 2>&5
9708   ac_status=$?
9709   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9710   (exit $ac_status); }; }; then
9711
9712 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
9713 }'`
9714 # Check for a 64-bit object if we didn't find anything.
9715 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; }
9716 }'`; fi
9717 else
9718   echo "$as_me: failed program was:" >&5
9719 sed 's/^/| /' conftest.$ac_ext >&5
9720
9721 fi
9722 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9723 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9724
9725       hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
9726
9727       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"
9728      else
9729       if test "$host_cpu" = ia64; then
9730         hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
9731         allow_undefined_flag_CXX="-z nodefs"
9732         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"
9733       else
9734         # Determine the default libpath from the value encoded in an empty executable.
9735         cat >conftest.$ac_ext <<_ACEOF
9736 #line $LINENO "configure"
9737 /* confdefs.h.  */
9738 _ACEOF
9739 cat confdefs.h >>conftest.$ac_ext
9740 cat >>conftest.$ac_ext <<_ACEOF
9741 /* end confdefs.h.  */
9742
9743 int
9744 main ()
9745 {
9746
9747   ;
9748   return 0;
9749 }
9750 _ACEOF
9751 rm -f conftest.$ac_objext conftest$ac_exeext
9752 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9753   (eval $ac_link) 2>&5
9754   ac_status=$?
9755   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9756   (exit $ac_status); } &&
9757          { ac_try='test -s conftest$ac_exeext'
9758   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9759   (eval $ac_try) 2>&5
9760   ac_status=$?
9761   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9762   (exit $ac_status); }; }; then
9763
9764 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
9765 }'`
9766 # Check for a 64-bit object if we didn't find anything.
9767 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; }
9768 }'`; fi
9769 else
9770   echo "$as_me: failed program was:" >&5
9771 sed 's/^/| /' conftest.$ac_ext >&5
9772
9773 fi
9774 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9775 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9776
9777         hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
9778         # Warning - without using the other run time loading flags,
9779         # -berok will link without error, but may produce a broken library.
9780         no_undefined_flag_CXX=' ${wl}-bernotok'
9781         allow_undefined_flag_CXX=' ${wl}-berok'
9782         # -bexpall does not export symbols beginning with underscore (_)
9783         always_export_symbols_CXX=yes
9784         # Exported symbols can be pulled into shared objects from archives
9785         whole_archive_flag_spec_CXX=' '
9786         archive_cmds_need_lc_CXX=yes
9787         # This is similar to how AIX traditionally builds it's shared libraries.
9788         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'
9789       fi
9790     fi
9791     ;;
9792   chorus*)
9793     case $cc_basename in
9794       *)
9795         # FIXME: insert proper C++ library support
9796         ld_shlibs_CXX=no
9797         ;;
9798     esac
9799     ;;
9800
9801   cygwin* | mingw* | pw32*)
9802     # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
9803     # as there is no search path for DLLs.
9804     hardcode_libdir_flag_spec_CXX='-L$libdir'
9805     allow_undefined_flag_CXX=unsupported
9806     always_export_symbols_CXX=no
9807     enable_shared_with_static_runtimes_CXX=yes
9808
9809     if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
9810       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'
9811       # If the export-symbols file already is a .def file (1st line
9812       # is EXPORTS), use it as is; otherwise, prepend...
9813       archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9814         cp $export_symbols $output_objdir/$soname.def;
9815       else
9816         echo EXPORTS > $output_objdir/$soname.def;
9817         cat $export_symbols >> $output_objdir/$soname.def;
9818       fi~
9819       $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'
9820     else
9821       ld_shlibs_CXX=no
9822     fi
9823   ;;
9824
9825   darwin* | rhapsody*)
9826    if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
9827     archive_cmds_need_lc_CXX=no
9828     case "$host_os" in
9829     rhapsody* | darwin1.[012])
9830       allow_undefined_flag_CXX='-undefined suppress'
9831       ;;
9832     *) # Darwin 1.3 on
9833       test -z ${LD_TWOLEVEL_NAMESPACE} && allow_undefined_flag_CXX='-flat_namespace -undefined suppress'
9834       ;;
9835     esac
9836         lt_int_apple_cc_single_mod=no
9837         output_verbose_link_cmd='echo'
9838         if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
9839           lt_int_apple_cc_single_mod=yes
9840         fi
9841         if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
9842           archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
9843         else
9844         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'
9845       fi
9846       module_cmds_CXX='$CC -bundle ${wl}-bind_at_load $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags'
9847
9848     # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
9849       if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
9850         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}'
9851       else
9852         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}'
9853       fi
9854         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}'
9855     hardcode_direct_CXX=no
9856     hardcode_automatic_CXX=yes
9857     hardcode_shlibpath_var_CXX=unsupported
9858     whole_archive_flag_spec_CXX='-all_load $convenience'
9859     link_all_deplibs_CXX=yes
9860    fi
9861     ;;
9862
9863   dgux*)
9864     case $cc_basename in
9865       ec++)
9866         # FIXME: insert proper C++ library support
9867         ld_shlibs_CXX=no
9868         ;;
9869       ghcx)
9870         # Green Hills C++ Compiler
9871         # FIXME: insert proper C++ library support
9872         ld_shlibs_CXX=no
9873         ;;
9874       *)
9875         # FIXME: insert proper C++ library support
9876         ld_shlibs_CXX=no
9877         ;;
9878     esac
9879     ;;
9880   freebsd12*)
9881     # C++ shared libraries reported to be fairly broken before switch to ELF
9882     ld_shlibs_CXX=no
9883     ;;
9884   freebsd-elf*)
9885     archive_cmds_need_lc_CXX=no
9886     ;;
9887   freebsd*)
9888     # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
9889     # conventions
9890     ld_shlibs_CXX=yes
9891     ;;
9892   gnu*)
9893     ;;
9894   hpux9*)
9895     hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
9896     hardcode_libdir_separator_CXX=:
9897     export_dynamic_flag_spec_CXX='${wl}-E'
9898     hardcode_direct_CXX=yes
9899     hardcode_minus_L_CXX=yes # Not in the search PATH,
9900                                 # but as the default
9901                                 # location of the library.
9902
9903     case $cc_basename in
9904     CC)
9905       # FIXME: insert proper C++ library support
9906       ld_shlibs_CXX=no
9907       ;;
9908     aCC)
9909       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'
9910       # Commands to make compiler produce verbose output that lists
9911       # what "hidden" libraries, object files and flags are used when
9912       # linking a shared library.
9913       #
9914       # There doesn't appear to be a way to prevent this compiler from
9915       # explicitly linking system object files so we need to strip them
9916       # from the output so that they don't get included in the library
9917       # dependencies.
9918       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'
9919       ;;
9920     *)
9921       if test "$GXX" = yes; then
9922         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'
9923       else
9924         # FIXME: insert proper C++ library support
9925         ld_shlibs_CXX=no
9926       fi
9927       ;;
9928     esac
9929     ;;
9930   hpux10*|hpux11*)
9931     if test $with_gnu_ld = no; then
9932       case "$host_cpu" in
9933       hppa*64*)
9934         hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
9935         hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
9936         hardcode_libdir_separator_CXX=:
9937         ;;
9938       ia64*)
9939         hardcode_libdir_flag_spec_CXX='-L$libdir'
9940         ;;
9941       *)
9942         hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
9943         hardcode_libdir_separator_CXX=:
9944         export_dynamic_flag_spec_CXX='${wl}-E'
9945         ;;
9946       esac
9947     fi
9948     case "$host_cpu" in
9949     hppa*64*)
9950       hardcode_direct_CXX=no
9951       hardcode_shlibpath_var_CXX=no
9952       ;;
9953     ia64*)
9954       hardcode_direct_CXX=no
9955       hardcode_shlibpath_var_CXX=no
9956       hardcode_minus_L_CXX=yes # Not in the search PATH,
9957                                               # but as the default
9958                                               # location of the library.
9959       ;;
9960     *)
9961       hardcode_direct_CXX=yes
9962       hardcode_minus_L_CXX=yes # Not in the search PATH,
9963                                               # but as the default
9964                                               # location of the library.
9965       ;;
9966     esac
9967
9968     case $cc_basename in
9969       CC)
9970         # FIXME: insert proper C++ library support
9971         ld_shlibs_CXX=no
9972         ;;
9973       aCC)
9974         case "$host_cpu" in
9975         hppa*64*|ia64*)
9976           archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
9977           ;;
9978         *)
9979           archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
9980           ;;
9981         esac
9982         # Commands to make compiler produce verbose output that lists
9983         # what "hidden" libraries, object files and flags are used when
9984         # linking a shared library.
9985         #
9986         # There doesn't appear to be a way to prevent this compiler from
9987         # explicitly linking system object files so we need to strip them
9988         # from the output so that they don't get included in the library
9989         # dependencies.
9990         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'
9991         ;;
9992       *)
9993         if test "$GXX" = yes; then
9994           if test $with_gnu_ld = no; then
9995             case "$host_cpu" in
9996             ia64*|hppa*64*)
9997               archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
9998               ;;
9999             *)
10000               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'
10001               ;;
10002             esac
10003           fi
10004         else
10005           # FIXME: insert proper C++ library support
10006           ld_shlibs_CXX=no
10007         fi
10008         ;;
10009     esac
10010     ;;
10011   irix5* | irix6*)
10012     case $cc_basename in
10013       CC)
10014         # SGI C++
10015         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'
10016
10017         # Archives containing C++ object files must be created using
10018         # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
10019         # necessary to make sure instantiated templates are included
10020         # in the archive.
10021         old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
10022         ;;
10023       *)
10024         if test "$GXX" = yes; then
10025           if test "$with_gnu_ld" = no; then
10026             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'
10027           else
10028             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'
10029           fi
10030         fi
10031         link_all_deplibs_CXX=yes
10032         ;;
10033     esac
10034     hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10035     hardcode_libdir_separator_CXX=:
10036     ;;
10037   linux*)
10038     case $cc_basename in
10039       KCC)
10040         # Kuck and Associates, Inc. (KAI) C++ Compiler
10041
10042         # KCC will only create a shared library if the output file
10043         # ends with ".so" (or ".sl" for HP-UX), so rename the library
10044         # to its proper name (with version) after linking.
10045         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'
10046         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'
10047         # Commands to make compiler produce verbose output that lists
10048         # what "hidden" libraries, object files and flags are used when
10049         # linking a shared library.
10050         #
10051         # There doesn't appear to be a way to prevent this compiler from
10052         # explicitly linking system object files so we need to strip them
10053         # from the output so that they don't get included in the library
10054         # dependencies.
10055         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'
10056
10057         hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
10058         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10059
10060         # Archives containing C++ object files must be created using
10061         # "CC -Bstatic", where "CC" is the KAI C++ compiler.
10062         old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
10063         ;;
10064       icpc)
10065         # Intel C++
10066         with_gnu_ld=yes
10067         archive_cmds_need_lc_CXX=no
10068         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10069         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'
10070         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10071         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10072         whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
10073         ;;
10074       cxx)
10075         # Compaq C++
10076         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10077         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'
10078
10079         runpath_var=LD_RUN_PATH
10080         hardcode_libdir_flag_spec_CXX='-rpath $libdir'
10081         hardcode_libdir_separator_CXX=:
10082
10083         # Commands to make compiler produce verbose output that lists
10084         # what "hidden" libraries, object files and flags are used when
10085         # linking a shared library.
10086         #
10087         # There doesn't appear to be a way to prevent this compiler from
10088         # explicitly linking system object files so we need to strip them
10089         # from the output so that they don't get included in the library
10090         # dependencies.
10091         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'
10092         ;;
10093     esac
10094     ;;
10095   lynxos*)
10096     # FIXME: insert proper C++ library support
10097     ld_shlibs_CXX=no
10098     ;;
10099   m88k*)
10100     # FIXME: insert proper C++ library support
10101     ld_shlibs_CXX=no
10102     ;;
10103   mvs*)
10104     case $cc_basename in
10105       cxx)
10106         # FIXME: insert proper C++ library support
10107         ld_shlibs_CXX=no
10108         ;;
10109       *)
10110         # FIXME: insert proper C++ library support
10111         ld_shlibs_CXX=no
10112         ;;
10113     esac
10114     ;;
10115   netbsd*)
10116     if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
10117       archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
10118       wlarc=
10119       hardcode_libdir_flag_spec_CXX='-R$libdir'
10120       hardcode_direct_CXX=yes
10121       hardcode_shlibpath_var_CXX=no
10122     fi
10123     # Workaround some broken pre-1.5 toolchains
10124     output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
10125     ;;
10126   osf3*)
10127     case $cc_basename in
10128       KCC)
10129         # Kuck and Associates, Inc. (KAI) C++ Compiler
10130
10131         # KCC will only create a shared library if the output file
10132         # ends with ".so" (or ".sl" for HP-UX), so rename the library
10133         # to its proper name (with version) after linking.
10134         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'
10135
10136         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10137         hardcode_libdir_separator_CXX=:
10138
10139         # Archives containing C++ object files must be created using
10140         # "CC -Bstatic", where "CC" is the KAI C++ compiler.
10141         old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
10142
10143         ;;
10144       RCC)
10145         # Rational C++ 2.4.1
10146         # FIXME: insert proper C++ library support
10147         ld_shlibs_CXX=no
10148         ;;
10149       cxx)
10150         allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10151         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'
10152
10153         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10154         hardcode_libdir_separator_CXX=:
10155
10156         # Commands to make compiler produce verbose output that lists
10157         # what "hidden" libraries, object files and flags are used when
10158         # linking a shared library.
10159         #
10160         # There doesn't appear to be a way to prevent this compiler from
10161         # explicitly linking system object files so we need to strip them
10162         # from the output so that they don't get included in the library
10163         # dependencies.
10164         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'
10165         ;;
10166       *)
10167         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10168           allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10169           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'
10170
10171           hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10172           hardcode_libdir_separator_CXX=:
10173
10174           # Commands to make compiler produce verbose output that lists
10175           # what "hidden" libraries, object files and flags are used when
10176           # linking a shared library.
10177           output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10178
10179         else
10180           # FIXME: insert proper C++ library support
10181           ld_shlibs_CXX=no
10182         fi
10183         ;;
10184     esac
10185     ;;
10186   osf4* | osf5*)
10187     case $cc_basename in
10188       KCC)
10189         # Kuck and Associates, Inc. (KAI) C++ Compiler
10190
10191         # KCC will only create a shared library if the output file
10192         # ends with ".so" (or ".sl" for HP-UX), so rename the library
10193         # to its proper name (with version) after linking.
10194         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'
10195
10196         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10197         hardcode_libdir_separator_CXX=:
10198
10199         # Archives containing C++ object files must be created using
10200         # the KAI C++ compiler.
10201         old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
10202         ;;
10203       RCC)
10204         # Rational C++ 2.4.1
10205         # FIXME: insert proper C++ library support
10206         ld_shlibs_CXX=no
10207         ;;
10208       cxx)
10209         allow_undefined_flag_CXX=' -expect_unresolved \*'
10210         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'
10211         archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
10212           echo "-hidden">> $lib.exp~
10213           $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~
10214           $rm $lib.exp'
10215
10216         hardcode_libdir_flag_spec_CXX='-rpath $libdir'
10217         hardcode_libdir_separator_CXX=:
10218
10219         # Commands to make compiler produce verbose output that lists
10220         # what "hidden" libraries, object files and flags are used when
10221         # linking a shared library.
10222         #
10223         # There doesn't appear to be a way to prevent this compiler from
10224         # explicitly linking system object files so we need to strip them
10225         # from the output so that they don't get included in the library
10226         # dependencies.
10227         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'
10228         ;;
10229       *)
10230         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10231           allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10232          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'
10233
10234           hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10235           hardcode_libdir_separator_CXX=:
10236
10237           # Commands to make compiler produce verbose output that lists
10238           # what "hidden" libraries, object files and flags are used when
10239           # linking a shared library.
10240           output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10241
10242         else
10243           # FIXME: insert proper C++ library support
10244           ld_shlibs_CXX=no
10245         fi
10246         ;;
10247     esac
10248     ;;
10249   psos*)
10250     # FIXME: insert proper C++ library support
10251     ld_shlibs_CXX=no
10252     ;;
10253   sco*)
10254     archive_cmds_need_lc_CXX=no
10255     case $cc_basename in
10256       CC)
10257         # FIXME: insert proper C++ library support
10258         ld_shlibs_CXX=no
10259         ;;
10260       *)
10261         # FIXME: insert proper C++ library support
10262         ld_shlibs_CXX=no
10263         ;;
10264     esac
10265     ;;
10266   sunos4*)
10267     case $cc_basename in
10268       CC)
10269         # Sun C++ 4.x
10270         # FIXME: insert proper C++ library support
10271         ld_shlibs_CXX=no
10272         ;;
10273       lcc)
10274         # Lucid
10275         # FIXME: insert proper C++ library support
10276         ld_shlibs_CXX=no
10277         ;;
10278       *)
10279         # FIXME: insert proper C++ library support
10280         ld_shlibs_CXX=no
10281         ;;
10282     esac
10283     ;;
10284   solaris*)
10285     case $cc_basename in
10286       CC)
10287         # Sun C++ 4.2, 5.x and Centerline C++
10288         no_undefined_flag_CXX=' -zdefs'
10289         archive_cmds_CXX='$CC -G${allow_undefined_flag} -nolib -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10290         archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10291         $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'
10292
10293         hardcode_libdir_flag_spec_CXX='-R$libdir'
10294         hardcode_shlibpath_var_CXX=no
10295         case $host_os in
10296           solaris2.0-5 | solaris2.0-5.*) ;;
10297           *)
10298             # The C++ compiler is used as linker so we must use $wl
10299             # flag to pass the commands to the underlying system
10300             # linker.
10301             # Supported since Solaris 2.6 (maybe 2.5.1?)
10302             whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10303             ;;
10304         esac
10305         link_all_deplibs_CXX=yes
10306
10307         # Commands to make compiler produce verbose output that lists
10308         # what "hidden" libraries, object files and flags are used when
10309         # linking a shared library.
10310         #
10311         # There doesn't appear to be a way to prevent this compiler from
10312         # explicitly linking system object files so we need to strip them
10313         # from the output so that they don't get included in the library
10314         # dependencies.
10315         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'
10316
10317         # Archives containing C++ object files must be created using
10318         # "CC -xar", where "CC" is the Sun C++ compiler.  This is
10319         # necessary to make sure instantiated templates are included
10320         # in the archive.
10321         old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
10322         ;;
10323       gcx)
10324         # Green Hills C++ Compiler
10325         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10326
10327         # The C++ compiler must be used to create the archive.
10328         old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
10329         ;;
10330       *)
10331         # GNU C++ compiler with Solaris linker
10332         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10333           no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
10334           if $CC --version | grep -v '^2\.7' > /dev/null; then
10335             archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10336             archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10337                 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
10338
10339             # Commands to make compiler produce verbose output that lists
10340             # what "hidden" libraries, object files and flags are used when
10341             # linking a shared library.
10342             output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
10343           else
10344             # g++ 2.7 appears to require `-G' NOT `-shared' on this
10345             # platform.
10346             archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10347             archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10348                 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
10349
10350             # Commands to make compiler produce verbose output that lists
10351             # what "hidden" libraries, object files and flags are used when
10352             # linking a shared library.
10353             output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
10354           fi
10355
10356           hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
10357         fi
10358         ;;
10359     esac
10360     ;;
10361   sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
10362     archive_cmds_need_lc_CXX=no
10363     ;;
10364   tandem*)
10365     case $cc_basename in
10366       NCC)
10367         # NonStop-UX NCC 3.20
10368         # FIXME: insert proper C++ library support
10369         ld_shlibs_CXX=no
10370         ;;
10371       *)
10372         # FIXME: insert proper C++ library support
10373         ld_shlibs_CXX=no
10374         ;;
10375     esac
10376     ;;
10377   vxworks*)
10378     # FIXME: insert proper C++ library support
10379     ld_shlibs_CXX=no
10380     ;;
10381   *)
10382     # FIXME: insert proper C++ library support
10383     ld_shlibs_CXX=no
10384     ;;
10385 esac
10386 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
10387 echo "${ECHO_T}$ld_shlibs_CXX" >&6
10388 test "$ld_shlibs_CXX" = no && can_build_shared=no
10389
10390 GCC_CXX="$GXX"
10391 LD_CXX="$LD"
10392
10393 ## CAVEAT EMPTOR:
10394 ## There is no encapsulation within the following macros, do not change
10395 ## the running order or otherwise move them around unless you know exactly
10396 ## what you are doing...
10397
10398 cat > conftest.$ac_ext <<EOF
10399 class Foo
10400 {
10401 public:
10402   Foo (void) { a = 0; }
10403 private:
10404   int a;
10405 };
10406 EOF
10407
10408 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10409   (eval $ac_compile) 2>&5
10410   ac_status=$?
10411   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10412   (exit $ac_status); }; then
10413   # Parse the compiler output and extract the necessary
10414   # objects, libraries and library flags.
10415
10416   # Sentinel used to keep track of whether or not we are before
10417   # the conftest object file.
10418   pre_test_object_deps_done=no
10419
10420   # The `*' in the case matches for architectures that use `case' in
10421   # $output_verbose_cmd can trigger glob expansion during the loop
10422   # eval without this substitution.
10423   output_verbose_link_cmd="`$echo \"X$output_verbose_link_cmd\" | $Xsed -e \"$no_glob_subst\"`"
10424
10425   for p in `eval $output_verbose_link_cmd`; do
10426     case $p in
10427
10428     -L* | -R* | -l*)
10429        # Some compilers place space between "-{L,R}" and the path.
10430        # Remove the space.
10431        if test $p = "-L" \
10432           || test $p = "-R"; then
10433          prev=$p
10434          continue
10435        else
10436          prev=
10437        fi
10438
10439        if test "$pre_test_object_deps_done" = no; then
10440          case $p in
10441          -L* | -R*)
10442            # Internal compiler library paths should come after those
10443            # provided the user.  The postdeps already come after the
10444            # user supplied libs so there is no need to process them.
10445            if test -z "$compiler_lib_search_path_CXX"; then
10446              compiler_lib_search_path_CXX="${prev}${p}"
10447            else
10448              compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
10449            fi
10450            ;;
10451          # The "-l" case would never come before the object being
10452          # linked, so don't bother handling this case.
10453          esac
10454        else
10455          if test -z "$postdeps_CXX"; then
10456            postdeps_CXX="${prev}${p}"
10457          else
10458            postdeps_CXX="${postdeps_CXX} ${prev}${p}"
10459          fi
10460        fi
10461        ;;
10462
10463     *.$objext)
10464        # This assumes that the test object file only shows up
10465        # once in the compiler output.
10466        if test "$p" = "conftest.$objext"; then
10467          pre_test_object_deps_done=yes
10468          continue
10469        fi
10470
10471        if test "$pre_test_object_deps_done" = no; then
10472          if test -z "$predep_objects_CXX"; then
10473            predep_objects_CXX="$p"
10474          else
10475            predep_objects_CXX="$predep_objects_CXX $p"
10476          fi
10477        else
10478          if test -z "$postdep_objects_CXX"; then
10479            postdep_objects_CXX="$p"
10480          else
10481            postdep_objects_CXX="$postdep_objects_CXX $p"
10482          fi
10483        fi
10484        ;;
10485
10486     *) ;; # Ignore the rest.
10487
10488     esac
10489   done
10490
10491   # Clean up.
10492   rm -f a.out a.exe
10493 else
10494   echo "libtool.m4: error: problem compiling CXX test program"
10495 fi
10496
10497 $rm -f confest.$objext
10498
10499 case " $postdeps_CXX " in
10500 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
10501 esac
10502
10503 lt_prog_compiler_wl_CXX=
10504 lt_prog_compiler_pic_CXX=
10505 lt_prog_compiler_static_CXX=
10506
10507 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
10508 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
10509
10510   # C++ specific cases for pic, static, wl, etc.
10511   if test "$GXX" = yes; then
10512     lt_prog_compiler_wl_CXX='-Wl,'
10513     lt_prog_compiler_static_CXX='-static'
10514
10515     case $host_os in
10516     aix*)
10517       # All AIX code is PIC.
10518       if test "$host_cpu" = ia64; then
10519         # AIX 5 now supports IA64 processor
10520         lt_prog_compiler_static_CXX='-Bstatic'
10521       fi
10522       ;;
10523     amigaos*)
10524       # FIXME: we need at least 68020 code to build shared libraries, but
10525       # adding the `-m68020' flag to GCC prevents building anything better,
10526       # like `-m68040'.
10527       lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
10528       ;;
10529     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
10530       # PIC is the default for these OSes.
10531       ;;
10532     mingw* | os2* | pw32*)
10533       # This hack is so that the source file can tell whether it is being
10534       # built for inclusion in a dll (and should export symbols for example).
10535       lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
10536       ;;
10537     darwin* | rhapsody*)
10538       # PIC is the default on this platform
10539       # Common symbols not allowed in MH_DYLIB files
10540       lt_prog_compiler_pic_CXX='-fno-common'
10541       ;;
10542     *djgpp*)
10543       # DJGPP does not support shared libraries at all
10544       lt_prog_compiler_pic_CXX=
10545       ;;
10546     sysv4*MP*)
10547       if test -d /usr/nec; then
10548         lt_prog_compiler_pic_CXX=-Kconform_pic
10549       fi
10550       ;;
10551     hpux*)
10552       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
10553       # not for PA HP-UX.
10554       case "$host_cpu" in
10555       hppa*64*|ia64*)
10556         ;;
10557       *)
10558         lt_prog_compiler_pic_CXX='-fPIC'
10559         ;;
10560       esac
10561       ;;
10562     *)
10563       lt_prog_compiler_pic_CXX='-fPIC'
10564       ;;
10565     esac
10566   else
10567     case $host_os in
10568       aix4* | aix5*)
10569         # All AIX code is PIC.
10570         if test "$host_cpu" = ia64; then
10571           # AIX 5 now supports IA64 processor
10572           lt_prog_compiler_static_CXX='-Bstatic'
10573         else
10574           lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
10575         fi
10576         ;;
10577       chorus*)
10578         case $cc_basename in
10579         cxch68)
10580           # Green Hills C++ Compiler
10581           # _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"
10582           ;;
10583         esac
10584         ;;
10585       dgux*)
10586         case $cc_basename in
10587           ec++)
10588             lt_prog_compiler_pic_CXX='-KPIC'
10589             ;;
10590           ghcx)
10591             # Green Hills C++ Compiler
10592             lt_prog_compiler_pic_CXX='-pic'
10593             ;;
10594           *)
10595             ;;
10596         esac
10597         ;;
10598       freebsd*)
10599         # FreeBSD uses GNU C++
10600         ;;
10601       hpux9* | hpux10* | hpux11*)
10602         case $cc_basename in
10603           CC)
10604             lt_prog_compiler_wl_CXX='-Wl,'
10605             lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
10606             if test "$host_cpu" != ia64; then
10607               lt_prog_compiler_pic_CXX='+Z'
10608             fi
10609             ;;
10610           aCC)
10611             lt_prog_compiler_wl_CXX='-Wl,'
10612             lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
10613             case "$host_cpu" in
10614             hppa*64*|ia64*)
10615               # +Z the default
10616               ;;
10617             *)
10618               lt_prog_compiler_pic_CXX='+Z'
10619               ;;
10620             esac
10621             ;;
10622           *)
10623             ;;
10624         esac
10625         ;;
10626       irix5* | irix6* | nonstopux*)
10627         case $cc_basename in
10628           CC)
10629             lt_prog_compiler_wl_CXX='-Wl,'
10630             lt_prog_compiler_static_CXX='-non_shared'
10631             # CC pic flag -KPIC is the default.
10632             ;;
10633           *)
10634             ;;
10635         esac
10636         ;;
10637       linux*)
10638         case $cc_basename in
10639           KCC)
10640             # KAI C++ Compiler
10641             lt_prog_compiler_wl_CXX='--backend -Wl,'
10642             lt_prog_compiler_pic_CXX='-fPIC'
10643             ;;
10644           icpc)
10645             # Intel C++
10646             lt_prog_compiler_wl_CXX='-Wl,'
10647             lt_prog_compiler_pic_CXX='-KPIC'
10648             lt_prog_compiler_static_CXX='-static'
10649             ;;
10650           cxx)
10651             # Compaq C++
10652             # Make sure the PIC flag is empty.  It appears that all Alpha
10653             # Linux and Compaq Tru64 Unix objects are PIC.
10654             lt_prog_compiler_pic_CXX=
10655             lt_prog_compiler_static_CXX='-non_shared'
10656             ;;
10657           *)
10658             ;;
10659         esac
10660         ;;
10661       lynxos*)
10662         ;;
10663       m88k*)
10664         ;;
10665       mvs*)
10666         case $cc_basename in
10667           cxx)
10668             lt_prog_compiler_pic_CXX='-W c,exportall'
10669             ;;
10670           *)
10671             ;;
10672         esac
10673         ;;
10674       netbsd*)
10675         ;;
10676       osf3* | osf4* | osf5*)
10677         case $cc_basename in
10678           KCC)
10679             lt_prog_compiler_wl_CXX='--backend -Wl,'
10680             ;;
10681           RCC)
10682             # Rational C++ 2.4.1
10683             lt_prog_compiler_pic_CXX='-pic'
10684             ;;
10685           cxx)
10686             # Digital/Compaq C++
10687             lt_prog_compiler_wl_CXX='-Wl,'
10688             # Make sure the PIC flag is empty.  It appears that all Alpha
10689             # Linux and Compaq Tru64 Unix objects are PIC.
10690             lt_prog_compiler_pic_CXX=
10691             lt_prog_compiler_static_CXX='-non_shared'
10692             ;;
10693           *)
10694             ;;
10695         esac
10696         ;;
10697       psos*)
10698         ;;
10699       sco*)
10700         case $cc_basename in
10701           CC)
10702             lt_prog_compiler_pic_CXX='-fPIC'
10703             ;;
10704           *)
10705             ;;
10706         esac
10707         ;;
10708       solaris*)
10709         case $cc_basename in
10710           CC)
10711             # Sun C++ 4.2, 5.x and Centerline C++
10712             lt_prog_compiler_pic_CXX='-KPIC'
10713             lt_prog_compiler_static_CXX='-Bstatic'
10714             lt_prog_compiler_wl_CXX='-Qoption ld '
10715             ;;
10716           gcx)
10717             # Green Hills C++ Compiler
10718             lt_prog_compiler_pic_CXX='-PIC'
10719             ;;
10720           *)
10721             ;;
10722         esac
10723         ;;
10724       sunos4*)
10725         case $cc_basename in
10726           CC)
10727             # Sun C++ 4.x
10728             lt_prog_compiler_pic_CXX='-pic'
10729             lt_prog_compiler_static_CXX='-Bstatic'
10730             ;;
10731           lcc)
10732             # Lucid
10733             lt_prog_compiler_pic_CXX='-pic'
10734             ;;
10735           *)
10736             ;;
10737         esac
10738         ;;
10739       tandem*)
10740         case $cc_basename in
10741           NCC)
10742             # NonStop-UX NCC 3.20
10743             lt_prog_compiler_pic_CXX='-KPIC'
10744             ;;
10745           *)
10746             ;;
10747         esac
10748         ;;
10749       unixware*)
10750         ;;
10751       vxworks*)
10752         ;;
10753       *)
10754         lt_prog_compiler_can_build_shared_CXX=no
10755         ;;
10756     esac
10757   fi
10758
10759 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
10760 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6
10761
10762 #
10763 # Check to make sure the PIC flag actually works.
10764 #
10765 if test -n "$lt_prog_compiler_pic_CXX"; then
10766   echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
10767 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6
10768 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
10769   echo $ECHO_N "(cached) $ECHO_C" >&6
10770 else
10771   lt_prog_compiler_pic_works_CXX=no
10772   ac_outfile=conftest.$ac_objext
10773    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
10774    lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
10775    # Insert the option either (1) after the last *FLAGS variable, or
10776    # (2) before a word containing "conftest.", or (3) at the end.
10777    # Note that $ac_compile itself does not contain backslashes and begins
10778    # with a dollar sign (not a hyphen), so the echo should work correctly.
10779    # The option is referenced via a variable to avoid confusing sed.
10780    lt_compile=`echo "$ac_compile" | $SED \
10781    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
10782    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10783    -e 's:$: $lt_compiler_flag:'`
10784    (eval echo "\"\$as_me:10781: $lt_compile\"" >&5)
10785    (eval "$lt_compile" 2>conftest.err)
10786    ac_status=$?
10787    cat conftest.err >&5
10788    echo "$as_me:10785: \$? = $ac_status" >&5
10789    if (exit $ac_status) && test -s "$ac_outfile"; then
10790      # The compiler can only warn and ignore the option if not recognized
10791      # So say no if there are warnings
10792      if test ! -s conftest.err; then
10793        lt_prog_compiler_pic_works_CXX=yes
10794      fi
10795    fi
10796    $rm conftest*
10797
10798 fi
10799 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
10800 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6
10801
10802 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
10803     case $lt_prog_compiler_pic_CXX in
10804      "" | " "*) ;;
10805      *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
10806      esac
10807 else
10808     lt_prog_compiler_pic_CXX=
10809      lt_prog_compiler_can_build_shared_CXX=no
10810 fi
10811
10812 fi
10813 case "$host_os" in
10814   # For platforms which do not support PIC, -DPIC is meaningless:
10815   *djgpp*)
10816     lt_prog_compiler_pic_CXX=
10817     ;;
10818   *)
10819     lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
10820     ;;
10821 esac
10822
10823 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
10824 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
10825 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
10826   echo $ECHO_N "(cached) $ECHO_C" >&6
10827 else
10828   lt_cv_prog_compiler_c_o_CXX=no
10829    $rm -r conftest 2>/dev/null
10830    mkdir conftest
10831    cd conftest
10832    mkdir out
10833    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
10834
10835    # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
10836    # that will create temporary files in the current directory regardless of
10837    # the output directory.  Thus, making CWD read-only will cause this test
10838    # to fail, enabling locking or at least warning the user not to do parallel
10839    # builds.
10840    chmod -w .
10841
10842    lt_compiler_flag="-o out/conftest2.$ac_objext"
10843    # Insert the option either (1) after the last *FLAGS variable, or
10844    # (2) before a word containing "conftest.", or (3) at the end.
10845    # Note that $ac_compile itself does not contain backslashes and begins
10846    # with a dollar sign (not a hyphen), so the echo should work correctly.
10847    lt_compile=`echo "$ac_compile" | $SED \
10848    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
10849    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10850    -e 's:$: $lt_compiler_flag:'`
10851    (eval echo "\"\$as_me:10848: $lt_compile\"" >&5)
10852    (eval "$lt_compile" 2>out/conftest.err)
10853    ac_status=$?
10854    cat out/conftest.err >&5
10855    echo "$as_me:10852: \$? = $ac_status" >&5
10856    if (exit $ac_status) && test -s out/conftest2.$ac_objext
10857    then
10858      # The compiler can only warn and ignore the option if not recognized
10859      # So say no if there are warnings
10860      if test ! -s out/conftest.err; then
10861        lt_cv_prog_compiler_c_o_CXX=yes
10862      fi
10863    fi
10864    chmod u+w .
10865    $rm conftest* out/*
10866    rmdir out
10867    cd ..
10868    rmdir conftest
10869    $rm conftest*
10870
10871 fi
10872 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
10873 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
10874
10875
10876 hard_links="nottested"
10877 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
10878   # do not overwrite the value of need_locks provided by the user
10879   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
10880 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
10881   hard_links=yes
10882   $rm conftest*
10883   ln conftest.a conftest.b 2>/dev/null && hard_links=no
10884   touch conftest.a
10885   ln conftest.a conftest.b 2>&5 || hard_links=no
10886   ln conftest.a conftest.b 2>/dev/null && hard_links=no
10887   echo "$as_me:$LINENO: result: $hard_links" >&5
10888 echo "${ECHO_T}$hard_links" >&6
10889   if test "$hard_links" = no; then
10890     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
10891 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
10892     need_locks=warn
10893   fi
10894 else
10895   need_locks=no
10896 fi
10897
10898 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10899 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
10900
10901   export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
10902   case $host_os in
10903   aix4* | aix5*)
10904     # If we're using GNU nm, then we don't want the "-C" option.
10905     # -C means demangle to AIX nm, but means don't demangle with GNU nm
10906     if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
10907       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'
10908     else
10909       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'
10910     fi
10911     ;;
10912   pw32*)
10913     export_symbols_cmds_CXX="$ltdll_cmds"
10914   ;;
10915   cygwin* | mingw*)
10916     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
10917   ;;
10918   *)
10919     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
10920   ;;
10921   esac
10922
10923 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
10924 echo "${ECHO_T}$ld_shlibs_CXX" >&6
10925 test "$ld_shlibs_CXX" = no && can_build_shared=no
10926
10927 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10928 if test "$GCC" = yes; then
10929   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10930 fi
10931
10932 #
10933 # Do we need to explicitly link libc?
10934 #
10935 case "x$archive_cmds_need_lc_CXX" in
10936 x|xyes)
10937   # Assume -lc should be added
10938   archive_cmds_need_lc_CXX=yes
10939
10940   if test "$enable_shared" = yes && test "$GCC" = yes; then
10941     case $archive_cmds_CXX in
10942     *'~'*)
10943       # FIXME: we may have to deal with multi-command sequences.
10944       ;;
10945     '$CC '*)
10946       # Test whether the compiler implicitly links with -lc since on some
10947       # systems, -lgcc has to come before -lc. If gcc already passes -lc
10948       # to ld, don't add -lc before -lgcc.
10949       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
10950 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
10951       $rm conftest*
10952       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
10953
10954       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10955   (eval $ac_compile) 2>&5
10956   ac_status=$?
10957   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10958   (exit $ac_status); } 2>conftest.err; then
10959         soname=conftest
10960         lib=conftest
10961         libobjs=conftest.$ac_objext
10962         deplibs=
10963         wl=$lt_prog_compiler_wl_CXX
10964         compiler_flags=-v
10965         linker_flags=-v
10966         verstring=
10967         output_objdir=.
10968         libname=conftest
10969         lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
10970         allow_undefined_flag_CXX=
10971         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
10972   (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
10973   ac_status=$?
10974   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10975   (exit $ac_status); }
10976         then
10977           archive_cmds_need_lc_CXX=no
10978         else
10979           archive_cmds_need_lc_CXX=yes
10980         fi
10981         allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
10982       else
10983         cat conftest.err 1>&5
10984       fi
10985       $rm conftest*
10986       echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
10987 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6
10988       ;;
10989     esac
10990   fi
10991   ;;
10992 esac
10993
10994 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
10995 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
10996 hardcode_action_CXX=
10997 if test -n "$hardcode_libdir_flag_spec_CXX" || \
10998    test -n "$runpath_var CXX" || \
10999    test "X$hardcode_automatic_CXX"="Xyes" ; then
11000
11001   # We can hardcode non-existant directories.
11002   if test "$hardcode_direct_CXX" != no &&
11003      # If the only mechanism to avoid hardcoding is shlibpath_var, we
11004      # have to relink, otherwise we might link with an installed library
11005      # when we should be linking with a yet-to-be-installed one
11006      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
11007      test "$hardcode_minus_L_CXX" != no; then
11008     # Linking always hardcodes the temporary library directory.
11009     hardcode_action_CXX=relink
11010   else
11011     # We can link without hardcoding, and we can hardcode nonexisting dirs.
11012     hardcode_action_CXX=immediate
11013   fi
11014 else
11015   # We cannot hardcode anything, or else we can only hardcode existing
11016   # directories.
11017   hardcode_action_CXX=unsupported
11018 fi
11019 echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
11020 echo "${ECHO_T}$hardcode_action_CXX" >&6
11021
11022 if test "$hardcode_action_CXX" = relink; then
11023   # Fast installation is not supported
11024   enable_fast_install=no
11025 elif test "$shlibpath_overrides_runpath" = yes ||
11026      test "$enable_shared" = no; then
11027   # Fast installation is not necessary
11028   enable_fast_install=needless
11029 fi
11030
11031 striplib=
11032 old_striplib=
11033 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
11034 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
11035 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
11036   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11037   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11038   echo "$as_me:$LINENO: result: yes" >&5
11039 echo "${ECHO_T}yes" >&6
11040 else
11041 # FIXME - insert some real tests, host_os isn't really good enough
11042   case $host_os in
11043    darwin*)
11044        if test -n "$STRIP" ; then
11045          striplib="$STRIP -x"
11046          echo "$as_me:$LINENO: result: yes" >&5
11047 echo "${ECHO_T}yes" >&6
11048        else
11049   echo "$as_me:$LINENO: result: no" >&5
11050 echo "${ECHO_T}no" >&6
11051 fi
11052        ;;
11053    *)
11054   echo "$as_me:$LINENO: result: no" >&5
11055 echo "${ECHO_T}no" >&6
11056     ;;
11057   esac
11058 fi
11059
11060 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
11061 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
11062 library_names_spec=
11063 libname_spec='lib$name'
11064 soname_spec=
11065 shrext=".so"
11066 postinstall_cmds=
11067 postuninstall_cmds=
11068 finish_cmds=
11069 finish_eval=
11070 shlibpath_var=
11071 shlibpath_overrides_runpath=unknown
11072 version_type=none
11073 dynamic_linker="$host_os ld.so"
11074 sys_lib_dlsearch_path_spec="/lib /usr/lib"
11075 if test "$GCC" = yes; then
11076   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11077   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
11078     # if the path contains ";" then we assume it to be the separator
11079     # otherwise default to the standard path separator (i.e. ":") - it is
11080     # assumed that no part of a normal pathname contains ";" but that should
11081     # okay in the real world where ";" in dirpaths is itself problematic.
11082     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11083   else
11084     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
11085   fi
11086 else
11087   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11088 fi
11089 need_lib_prefix=unknown
11090 hardcode_into_libs=no
11091
11092 # when you set need_version to no, make sure it does not cause -set_version
11093 # flags to be left without arguments
11094 need_version=unknown
11095
11096 case $host_os in
11097 aix3*)
11098   version_type=linux
11099   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
11100   shlibpath_var=LIBPATH
11101
11102   # AIX 3 has no versioning support, so we append a major version to the name.
11103   soname_spec='${libname}${release}${shared_ext}$major'
11104   ;;
11105
11106 aix4* | aix5*)
11107   version_type=linux
11108   need_lib_prefix=no
11109   need_version=no
11110   hardcode_into_libs=yes
11111   if test "$host_cpu" = ia64; then
11112     # AIX 5 supports IA64
11113     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
11114     shlibpath_var=LD_LIBRARY_PATH
11115   else
11116     # With GCC up to 2.95.x, collect2 would create an import file
11117     # for dependence libraries.  The import file would start with
11118     # the line `#! .'.  This would cause the generated library to
11119     # depend on `.', always an invalid library.  This was fixed in
11120     # development snapshots of GCC prior to 3.0.
11121     case $host_os in
11122       aix4 | aix4.[01] | aix4.[01].*)
11123       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11124            echo ' yes '
11125            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
11126         :
11127       else
11128         can_build_shared=no
11129       fi
11130       ;;
11131     esac
11132     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
11133     # soname into executable. Probably we can add versioning support to
11134     # collect2, so additional links can be useful in future.
11135     if test "$aix_use_runtimelinking" = yes; then
11136       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11137       # instead of lib<name>.a to let people know that these are not
11138       # typical AIX shared libraries.
11139       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11140     else
11141       # We preserve .a as extension for shared libraries through AIX4.2
11142       # and later when we are not doing run time linking.
11143       library_names_spec='${libname}${release}.a $libname.a'
11144       soname_spec='${libname}${release}${shared_ext}$major'
11145     fi
11146     shlibpath_var=LIBPATH
11147   fi
11148   ;;
11149
11150 amigaos*)
11151   library_names_spec='$libname.ixlibrary $libname.a'
11152   # Create ${libname}_ixlibrary.a entries in /sys/libs.
11153   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'
11154   ;;
11155
11156 beos*)
11157   library_names_spec='${libname}${shared_ext}'
11158   dynamic_linker="$host_os ld.so"
11159   shlibpath_var=LIBRARY_PATH
11160   ;;
11161
11162 bsdi4*)
11163   version_type=linux
11164   need_version=no
11165   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11166   soname_spec='${libname}${release}${shared_ext}$major'
11167   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11168   shlibpath_var=LD_LIBRARY_PATH
11169   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11170   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11171   # the default ld.so.conf also contains /usr/contrib/lib and
11172   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11173   # libtool to hard-code these into programs
11174   ;;
11175
11176 cygwin* | mingw* | pw32*)
11177   version_type=windows
11178   shrext=".dll"
11179   need_version=no
11180   need_lib_prefix=no
11181
11182   case $GCC,$host_os in
11183   yes,cygwin* | yes,mingw* | yes,pw32*)
11184     library_names_spec='$libname.dll.a'
11185     # DLL is installed to $(libdir)/../bin by postinstall_cmds
11186     postinstall_cmds='base_file=`basename \${file}`~
11187       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
11188       dldir=$destdir/`dirname \$dlpath`~
11189       test -d \$dldir || mkdir -p \$dldir~
11190       $install_prog $dir/$dlname \$dldir/$dlname'
11191     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11192       dlpath=$dir/\$dldll~
11193        $rm \$dlpath'
11194     shlibpath_overrides_runpath=yes
11195
11196     case $host_os in
11197     cygwin*)
11198       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11199       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11200       sys_lib_search_path_spec="/lib /lib/w32api /usr/lib /usr/local/lib"
11201       ;;
11202     mingw*)
11203       # MinGW DLLs use traditional 'lib' prefix
11204       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11205       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11206       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
11207         # It is most probably a Windows format PATH printed by
11208         # mingw gcc, but we are running on Cygwin. Gcc prints its search
11209         # path with ; separators, and with drive letters. We can handle the
11210         # drive letters (cygwin fileutils understands them), so leave them,
11211         # especially as we might pass files found there to a mingw objdump,
11212         # which wouldn't understand a cygwinified path. Ahh.
11213         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11214       else
11215         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
11216       fi
11217       ;;
11218     pw32*)
11219       # pw32 DLLs use 'pw' prefix rather than 'lib'
11220       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
11221       ;;
11222     esac
11223     ;;
11224
11225   *)
11226     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11227     ;;
11228   esac
11229   dynamic_linker='Win32 ld.exe'
11230   # FIXME: first we should search . and the directory the executable is in
11231   shlibpath_var=PATH
11232   ;;
11233
11234 darwin* | rhapsody*)
11235   dynamic_linker="$host_os dyld"
11236   version_type=darwin
11237   need_lib_prefix=no
11238   need_version=no
11239   # FIXME: Relying on posixy $() will cause problems for
11240   #        cross-compilation, but unfortunately the echo tests do not
11241   #        yet detect zsh echo's removal of \ escapes.
11242   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11243   soname_spec='${libname}${release}${major}$shared_ext'
11244   shlibpath_overrides_runpath=yes
11245   shlibpath_var=DYLD_LIBRARY_PATH
11246   shrext='$(test .$module = .yes && echo .so || echo .dylib)'
11247   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
11248   if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
11249   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"`
11250   fi
11251   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11252   ;;
11253
11254 dgux*)
11255   version_type=linux
11256   need_lib_prefix=no
11257   need_version=no
11258   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11259   soname_spec='${libname}${release}${shared_ext}$major'
11260   shlibpath_var=LD_LIBRARY_PATH
11261   ;;
11262
11263 freebsd1*)
11264   dynamic_linker=no
11265   ;;
11266
11267 freebsd*)
11268   objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
11269   version_type=freebsd-$objformat
11270   case $version_type in
11271     freebsd-elf*)
11272       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11273       need_version=no
11274       need_lib_prefix=no
11275       ;;
11276     freebsd-*)
11277       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11278       need_version=yes
11279       ;;
11280   esac
11281   shlibpath_var=LD_LIBRARY_PATH
11282   case $host_os in
11283   freebsd2*)
11284     shlibpath_overrides_runpath=yes
11285     ;;
11286   freebsd3.01* | freebsdelf3.01*)
11287     shlibpath_overrides_runpath=yes
11288     hardcode_into_libs=yes
11289     ;;
11290   *) # from 3.2 on
11291     shlibpath_overrides_runpath=no
11292     hardcode_into_libs=yes
11293     ;;
11294   esac
11295   ;;
11296
11297 gnu*)
11298   version_type=linux
11299   need_lib_prefix=no
11300   need_version=no
11301   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11302   soname_spec='${libname}${release}${shared_ext}$major'
11303   shlibpath_var=LD_LIBRARY_PATH
11304   hardcode_into_libs=yes
11305   ;;
11306
11307 hpux9* | hpux10* | hpux11*)
11308   # Give a soname corresponding to the major version so that dld.sl refuses to
11309   # link against other versions.
11310   version_type=sunos
11311   need_lib_prefix=no
11312   need_version=no
11313   case "$host_cpu" in
11314   ia64*)
11315     shrext='.so'
11316     hardcode_into_libs=yes
11317     dynamic_linker="$host_os dld.so"
11318     shlibpath_var=LD_LIBRARY_PATH
11319     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11320     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11321     soname_spec='${libname}${release}${shared_ext}$major'
11322     if test "X$HPUX_IA64_MODE" = X32; then
11323       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11324     else
11325       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11326     fi
11327     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11328     ;;
11329    hppa*64*)
11330      shrext='.sl'
11331      hardcode_into_libs=yes
11332      dynamic_linker="$host_os dld.sl"
11333      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11334      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11335      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11336      soname_spec='${libname}${release}${shared_ext}$major'
11337      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11338      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11339      ;;
11340    *)
11341     shrext='.sl'
11342     dynamic_linker="$host_os dld.sl"
11343     shlibpath_var=SHLIB_PATH
11344     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11345     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11346     soname_spec='${libname}${release}${shared_ext}$major'
11347     ;;
11348   esac
11349   # HP-UX runs *really* slowly unless shared libraries are mode 555.
11350   postinstall_cmds='chmod 555 $lib'
11351   ;;
11352
11353 irix5* | irix6* | nonstopux*)
11354   case $host_os in
11355     nonstopux*) version_type=nonstopux ;;
11356     *)
11357         if test "$lt_cv_prog_gnu_ld" = yes; then
11358                 version_type=linux
11359         else
11360                 version_type=irix
11361         fi ;;
11362   esac
11363   need_lib_prefix=no
11364   need_version=no
11365   soname_spec='${libname}${release}${shared_ext}$major'
11366   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11367   case $host_os in
11368   irix5* | nonstopux*)
11369     libsuff= shlibsuff=
11370     ;;
11371   *)
11372     case $LD in # libtool.m4 will add one of these switches to LD
11373     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11374       libsuff= shlibsuff= libmagic=32-bit;;
11375     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11376       libsuff=32 shlibsuff=N32 libmagic=N32;;
11377     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11378       libsuff=64 shlibsuff=64 libmagic=64-bit;;
11379     *) libsuff= shlibsuff= libmagic=never-match;;
11380     esac
11381     ;;
11382   esac
11383   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11384   shlibpath_overrides_runpath=no
11385   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11386   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11387   hardcode_into_libs=yes
11388   ;;
11389
11390 # No shared lib support for Linux oldld, aout, or coff.
11391 linux*oldld* | linux*aout* | linux*coff*)
11392   dynamic_linker=no
11393   ;;
11394
11395 # This must be Linux ELF.
11396 linux*)
11397   version_type=linux
11398   need_lib_prefix=no
11399   need_version=no
11400   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11401   soname_spec='${libname}${release}${shared_ext}$major'
11402   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11403   shlibpath_var=LD_LIBRARY_PATH
11404   shlibpath_overrides_runpath=no
11405   # This implies no fast_install, which is unacceptable.
11406   # Some rework will be needed to allow for fast_install
11407   # before this can be enabled.
11408   hardcode_into_libs=yes
11409
11410   # We used to test for /lib/ld.so.1 and disable shared libraries on
11411   # powerpc, because MkLinux only supported shared libraries with the
11412   # GNU dynamic linker.  Since this was broken with cross compilers,
11413   # most powerpc-linux boxes support dynamic linking these days and
11414   # people can always --disable-shared, the test was removed, and we
11415   # assume the GNU/Linux dynamic linker is in use.
11416   dynamic_linker='GNU/Linux ld.so'
11417   ;;
11418
11419 netbsd*)
11420   version_type=sunos
11421   need_lib_prefix=no
11422   need_version=no
11423   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
11424     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11425     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11426     dynamic_linker='NetBSD (a.out) ld.so'
11427   else
11428     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
11429     soname_spec='${libname}${release}${shared_ext}$major'
11430     dynamic_linker='NetBSD ld.elf_so'
11431   fi
11432   shlibpath_var=LD_LIBRARY_PATH
11433   shlibpath_overrides_runpath=yes
11434   hardcode_into_libs=yes
11435   ;;
11436
11437 newsos6)
11438   version_type=linux
11439   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11440   shlibpath_var=LD_LIBRARY_PATH
11441   shlibpath_overrides_runpath=yes
11442   ;;
11443
11444 nto-qnx)
11445   version_type=linux
11446   need_lib_prefix=no
11447   need_version=no
11448   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11449   soname_spec='${libname}${release}${shared_ext}$major'
11450   shlibpath_var=LD_LIBRARY_PATH
11451   shlibpath_overrides_runpath=yes
11452   ;;
11453
11454 openbsd*)
11455   version_type=sunos
11456   need_lib_prefix=no
11457   need_version=no
11458   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11459   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11460   shlibpath_var=LD_LIBRARY_PATH
11461   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11462     case $host_os in
11463       openbsd2.[89] | openbsd2.[89].*)
11464         shlibpath_overrides_runpath=no
11465         ;;
11466       *)
11467         shlibpath_overrides_runpath=yes
11468         ;;
11469       esac
11470   else
11471     shlibpath_overrides_runpath=yes
11472   fi
11473   ;;
11474
11475 os2*)
11476   libname_spec='$name'
11477   shrext=".dll"
11478   need_lib_prefix=no
11479   library_names_spec='$libname${shared_ext} $libname.a'
11480   dynamic_linker='OS/2 ld.exe'
11481   shlibpath_var=LIBPATH
11482   ;;
11483
11484 osf3* | osf4* | osf5*)
11485   version_type=osf
11486   need_lib_prefix=no
11487   need_version=no
11488   soname_spec='${libname}${release}${shared_ext}$major'
11489   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11490   shlibpath_var=LD_LIBRARY_PATH
11491   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11492   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11493   ;;
11494
11495 sco3.2v5*)
11496   version_type=osf
11497   soname_spec='${libname}${release}${shared_ext}$major'
11498   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11499   shlibpath_var=LD_LIBRARY_PATH
11500   ;;
11501
11502 solaris*)
11503   version_type=linux
11504   need_lib_prefix=no
11505   need_version=no
11506   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11507   soname_spec='${libname}${release}${shared_ext}$major'
11508   shlibpath_var=LD_LIBRARY_PATH
11509   shlibpath_overrides_runpath=yes
11510   hardcode_into_libs=yes
11511   # ldd complains unless libraries are executable
11512   postinstall_cmds='chmod +x $lib'
11513   ;;
11514
11515 sunos4*)
11516   version_type=sunos
11517   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11518   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11519   shlibpath_var=LD_LIBRARY_PATH
11520   shlibpath_overrides_runpath=yes
11521   if test "$with_gnu_ld" = yes; then
11522     need_lib_prefix=no
11523   fi
11524   need_version=yes
11525   ;;
11526
11527 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
11528   version_type=linux
11529   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11530   soname_spec='${libname}${release}${shared_ext}$major'
11531   shlibpath_var=LD_LIBRARY_PATH
11532   case $host_vendor in
11533     sni)
11534       shlibpath_overrides_runpath=no
11535       need_lib_prefix=no
11536       export_dynamic_flag_spec='${wl}-Blargedynsym'
11537       runpath_var=LD_RUN_PATH
11538       ;;
11539     siemens)
11540       need_lib_prefix=no
11541       ;;
11542     motorola)
11543       need_lib_prefix=no
11544       need_version=no
11545       shlibpath_overrides_runpath=no
11546       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11547       ;;
11548   esac
11549   ;;
11550
11551 sysv4*MP*)
11552   if test -d /usr/nec ;then
11553     version_type=linux
11554     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11555     soname_spec='$libname${shared_ext}.$major'
11556     shlibpath_var=LD_LIBRARY_PATH
11557   fi
11558   ;;
11559
11560 uts4*)
11561   version_type=linux
11562   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11563   soname_spec='${libname}${release}${shared_ext}$major'
11564   shlibpath_var=LD_LIBRARY_PATH
11565   ;;
11566
11567 *)
11568   dynamic_linker=no
11569   ;;
11570 esac
11571 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
11572 echo "${ECHO_T}$dynamic_linker" >&6
11573 test "$dynamic_linker" = no && can_build_shared=no
11574
11575 if test "x$enable_dlopen" != xyes; then
11576   enable_dlopen=unknown
11577   enable_dlopen_self=unknown
11578   enable_dlopen_self_static=unknown
11579 else
11580   lt_cv_dlopen=no
11581   lt_cv_dlopen_libs=
11582
11583   case $host_os in
11584   beos*)
11585     lt_cv_dlopen="load_add_on"
11586     lt_cv_dlopen_libs=
11587     lt_cv_dlopen_self=yes
11588     ;;
11589
11590   mingw* | pw32*)
11591     lt_cv_dlopen="LoadLibrary"
11592     lt_cv_dlopen_libs=
11593    ;;
11594
11595   cygwin*)
11596     lt_cv_dlopen="dlopen"
11597     lt_cv_dlopen_libs=
11598    ;;
11599
11600   darwin*)
11601   # if libdl is installed we need to link against it
11602     echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
11603 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
11604 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
11605   echo $ECHO_N "(cached) $ECHO_C" >&6
11606 else
11607   ac_check_lib_save_LIBS=$LIBS
11608 LIBS="-ldl  $LIBS"
11609 cat >conftest.$ac_ext <<_ACEOF
11610 #line $LINENO "configure"
11611 /* confdefs.h.  */
11612 _ACEOF
11613 cat confdefs.h >>conftest.$ac_ext
11614 cat >>conftest.$ac_ext <<_ACEOF
11615 /* end confdefs.h.  */
11616
11617 /* Override any gcc2 internal prototype to avoid an error.  */
11618 #ifdef __cplusplus
11619 extern "C"
11620 #endif
11621 /* We use char because int might match the return type of a gcc2
11622    builtin and then its argument prototype would still apply.  */
11623 char dlopen ();
11624 int
11625 main ()
11626 {
11627 dlopen ();
11628   ;
11629   return 0;
11630 }
11631 _ACEOF
11632 rm -f conftest.$ac_objext conftest$ac_exeext
11633 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11634   (eval $ac_link) 2>&5
11635   ac_status=$?
11636   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11637   (exit $ac_status); } &&
11638          { ac_try='test -s conftest$ac_exeext'
11639   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11640   (eval $ac_try) 2>&5
11641   ac_status=$?
11642   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11643   (exit $ac_status); }; }; then
11644   ac_cv_lib_dl_dlopen=yes
11645 else
11646   echo "$as_me: failed program was:" >&5
11647 sed 's/^/| /' conftest.$ac_ext >&5
11648
11649 ac_cv_lib_dl_dlopen=no
11650 fi
11651 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11652 LIBS=$ac_check_lib_save_LIBS
11653 fi
11654 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
11655 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
11656 if test $ac_cv_lib_dl_dlopen = yes; then
11657   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11658 else
11659
11660     lt_cv_dlopen="dyld"
11661     lt_cv_dlopen_libs=
11662     lt_cv_dlopen_self=yes
11663
11664 fi
11665
11666    ;;
11667
11668   *)
11669     echo "$as_me:$LINENO: checking for shl_load" >&5
11670 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
11671 if test "${ac_cv_func_shl_load+set}" = set; then
11672   echo $ECHO_N "(cached) $ECHO_C" >&6
11673 else
11674   cat >conftest.$ac_ext <<_ACEOF
11675 #line $LINENO "configure"
11676 /* confdefs.h.  */
11677 _ACEOF
11678 cat confdefs.h >>conftest.$ac_ext
11679 cat >>conftest.$ac_ext <<_ACEOF
11680 /* end confdefs.h.  */
11681 /* System header to define __stub macros and hopefully few prototypes,
11682     which can conflict with char shl_load (); below.
11683     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11684     <limits.h> exists even on freestanding compilers.  */
11685 #ifdef __STDC__
11686 # include <limits.h>
11687 #else
11688 # include <assert.h>
11689 #endif
11690 /* Override any gcc2 internal prototype to avoid an error.  */
11691 #ifdef __cplusplus
11692 extern "C"
11693 {
11694 #endif
11695 /* We use char because int might match the return type of a gcc2
11696    builtin and then its argument prototype would still apply.  */
11697 char shl_load ();
11698 /* The GNU C library defines this for functions which it implements
11699     to always fail with ENOSYS.  Some functions are actually named
11700     something starting with __ and the normal name is an alias.  */
11701 #if defined (__stub_shl_load) || defined (__stub___shl_load)
11702 choke me
11703 #else
11704 char (*f) () = shl_load;
11705 #endif
11706 #ifdef __cplusplus
11707 }
11708 #endif
11709
11710 int
11711 main ()
11712 {
11713 return f != shl_load;
11714   ;
11715   return 0;
11716 }
11717 _ACEOF
11718 rm -f conftest.$ac_objext conftest$ac_exeext
11719 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11720   (eval $ac_link) 2>&5
11721   ac_status=$?
11722   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11723   (exit $ac_status); } &&
11724          { ac_try='test -s conftest$ac_exeext'
11725   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11726   (eval $ac_try) 2>&5
11727   ac_status=$?
11728   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11729   (exit $ac_status); }; }; then
11730   ac_cv_func_shl_load=yes
11731 else
11732   echo "$as_me: failed program was:" >&5
11733 sed 's/^/| /' conftest.$ac_ext >&5
11734
11735 ac_cv_func_shl_load=no
11736 fi
11737 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11738 fi
11739 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
11740 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
11741 if test $ac_cv_func_shl_load = yes; then
11742   lt_cv_dlopen="shl_load"
11743 else
11744   echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
11745 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
11746 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
11747   echo $ECHO_N "(cached) $ECHO_C" >&6
11748 else
11749   ac_check_lib_save_LIBS=$LIBS
11750 LIBS="-ldld  $LIBS"
11751 cat >conftest.$ac_ext <<_ACEOF
11752 #line $LINENO "configure"
11753 /* confdefs.h.  */
11754 _ACEOF
11755 cat confdefs.h >>conftest.$ac_ext
11756 cat >>conftest.$ac_ext <<_ACEOF
11757 /* end confdefs.h.  */
11758
11759 /* Override any gcc2 internal prototype to avoid an error.  */
11760 #ifdef __cplusplus
11761 extern "C"
11762 #endif
11763 /* We use char because int might match the return type of a gcc2
11764    builtin and then its argument prototype would still apply.  */
11765 char shl_load ();
11766 int
11767 main ()
11768 {
11769 shl_load ();
11770   ;
11771   return 0;
11772 }
11773 _ACEOF
11774 rm -f conftest.$ac_objext conftest$ac_exeext
11775 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11776   (eval $ac_link) 2>&5
11777   ac_status=$?
11778   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11779   (exit $ac_status); } &&
11780          { ac_try='test -s conftest$ac_exeext'
11781   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11782   (eval $ac_try) 2>&5
11783   ac_status=$?
11784   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11785   (exit $ac_status); }; }; then
11786   ac_cv_lib_dld_shl_load=yes
11787 else
11788   echo "$as_me: failed program was:" >&5
11789 sed 's/^/| /' conftest.$ac_ext >&5
11790
11791 ac_cv_lib_dld_shl_load=no
11792 fi
11793 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11794 LIBS=$ac_check_lib_save_LIBS
11795 fi
11796 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
11797 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
11798 if test $ac_cv_lib_dld_shl_load = yes; then
11799   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
11800 else
11801   echo "$as_me:$LINENO: checking for dlopen" >&5
11802 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
11803 if test "${ac_cv_func_dlopen+set}" = set; then
11804   echo $ECHO_N "(cached) $ECHO_C" >&6
11805 else
11806   cat >conftest.$ac_ext <<_ACEOF
11807 #line $LINENO "configure"
11808 /* confdefs.h.  */
11809 _ACEOF
11810 cat confdefs.h >>conftest.$ac_ext
11811 cat >>conftest.$ac_ext <<_ACEOF
11812 /* end confdefs.h.  */
11813 /* System header to define __stub macros and hopefully few prototypes,
11814     which can conflict with char dlopen (); below.
11815     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11816     <limits.h> exists even on freestanding compilers.  */
11817 #ifdef __STDC__
11818 # include <limits.h>
11819 #else
11820 # include <assert.h>
11821 #endif
11822 /* Override any gcc2 internal prototype to avoid an error.  */
11823 #ifdef __cplusplus
11824 extern "C"
11825 {
11826 #endif
11827 /* We use char because int might match the return type of a gcc2
11828    builtin and then its argument prototype would still apply.  */
11829 char dlopen ();
11830 /* The GNU C library defines this for functions which it implements
11831     to always fail with ENOSYS.  Some functions are actually named
11832     something starting with __ and the normal name is an alias.  */
11833 #if defined (__stub_dlopen) || defined (__stub___dlopen)
11834 choke me
11835 #else
11836 char (*f) () = dlopen;
11837 #endif
11838 #ifdef __cplusplus
11839 }
11840 #endif
11841
11842 int
11843 main ()
11844 {
11845 return f != dlopen;
11846   ;
11847   return 0;
11848 }
11849 _ACEOF
11850 rm -f conftest.$ac_objext conftest$ac_exeext
11851 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11852   (eval $ac_link) 2>&5
11853   ac_status=$?
11854   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11855   (exit $ac_status); } &&
11856          { ac_try='test -s conftest$ac_exeext'
11857   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11858   (eval $ac_try) 2>&5
11859   ac_status=$?
11860   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11861   (exit $ac_status); }; }; then
11862   ac_cv_func_dlopen=yes
11863 else
11864   echo "$as_me: failed program was:" >&5
11865 sed 's/^/| /' conftest.$ac_ext >&5
11866
11867 ac_cv_func_dlopen=no
11868 fi
11869 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11870 fi
11871 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
11872 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
11873 if test $ac_cv_func_dlopen = yes; then
11874   lt_cv_dlopen="dlopen"
11875 else
11876   echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
11877 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
11878 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
11879   echo $ECHO_N "(cached) $ECHO_C" >&6
11880 else
11881   ac_check_lib_save_LIBS=$LIBS
11882 LIBS="-ldl  $LIBS"
11883 cat >conftest.$ac_ext <<_ACEOF
11884 #line $LINENO "configure"
11885 /* confdefs.h.  */
11886 _ACEOF
11887 cat confdefs.h >>conftest.$ac_ext
11888 cat >>conftest.$ac_ext <<_ACEOF
11889 /* end confdefs.h.  */
11890
11891 /* Override any gcc2 internal prototype to avoid an error.  */
11892 #ifdef __cplusplus
11893 extern "C"
11894 #endif
11895 /* We use char because int might match the return type of a gcc2
11896    builtin and then its argument prototype would still apply.  */
11897 char dlopen ();
11898 int
11899 main ()
11900 {
11901 dlopen ();
11902   ;
11903   return 0;
11904 }
11905 _ACEOF
11906 rm -f conftest.$ac_objext conftest$ac_exeext
11907 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11908   (eval $ac_link) 2>&5
11909   ac_status=$?
11910   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11911   (exit $ac_status); } &&
11912          { ac_try='test -s conftest$ac_exeext'
11913   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11914   (eval $ac_try) 2>&5
11915   ac_status=$?
11916   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11917   (exit $ac_status); }; }; then
11918   ac_cv_lib_dl_dlopen=yes
11919 else
11920   echo "$as_me: failed program was:" >&5
11921 sed 's/^/| /' conftest.$ac_ext >&5
11922
11923 ac_cv_lib_dl_dlopen=no
11924 fi
11925 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11926 LIBS=$ac_check_lib_save_LIBS
11927 fi
11928 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
11929 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
11930 if test $ac_cv_lib_dl_dlopen = yes; then
11931   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11932 else
11933   echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
11934 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
11935 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
11936   echo $ECHO_N "(cached) $ECHO_C" >&6
11937 else
11938   ac_check_lib_save_LIBS=$LIBS
11939 LIBS="-lsvld  $LIBS"
11940 cat >conftest.$ac_ext <<_ACEOF
11941 #line $LINENO "configure"
11942 /* confdefs.h.  */
11943 _ACEOF
11944 cat confdefs.h >>conftest.$ac_ext
11945 cat >>conftest.$ac_ext <<_ACEOF
11946 /* end confdefs.h.  */
11947
11948 /* Override any gcc2 internal prototype to avoid an error.  */
11949 #ifdef __cplusplus
11950 extern "C"
11951 #endif
11952 /* We use char because int might match the return type of a gcc2
11953    builtin and then its argument prototype would still apply.  */
11954 char dlopen ();
11955 int
11956 main ()
11957 {
11958 dlopen ();
11959   ;
11960   return 0;
11961 }
11962 _ACEOF
11963 rm -f conftest.$ac_objext conftest$ac_exeext
11964 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11965   (eval $ac_link) 2>&5
11966   ac_status=$?
11967   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11968   (exit $ac_status); } &&
11969          { ac_try='test -s conftest$ac_exeext'
11970   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11971   (eval $ac_try) 2>&5
11972   ac_status=$?
11973   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11974   (exit $ac_status); }; }; then
11975   ac_cv_lib_svld_dlopen=yes
11976 else
11977   echo "$as_me: failed program was:" >&5
11978 sed 's/^/| /' conftest.$ac_ext >&5
11979
11980 ac_cv_lib_svld_dlopen=no
11981 fi
11982 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11983 LIBS=$ac_check_lib_save_LIBS
11984 fi
11985 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
11986 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
11987 if test $ac_cv_lib_svld_dlopen = yes; then
11988   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11989 else
11990   echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
11991 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
11992 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
11993   echo $ECHO_N "(cached) $ECHO_C" >&6
11994 else
11995   ac_check_lib_save_LIBS=$LIBS
11996 LIBS="-ldld  $LIBS"
11997 cat >conftest.$ac_ext <<_ACEOF
11998 #line $LINENO "configure"
11999 /* confdefs.h.  */
12000 _ACEOF
12001 cat confdefs.h >>conftest.$ac_ext
12002 cat >>conftest.$ac_ext <<_ACEOF
12003 /* end confdefs.h.  */
12004
12005 /* Override any gcc2 internal prototype to avoid an error.  */
12006 #ifdef __cplusplus
12007 extern "C"
12008 #endif
12009 /* We use char because int might match the return type of a gcc2
12010    builtin and then its argument prototype would still apply.  */
12011 char dld_link ();
12012 int
12013 main ()
12014 {
12015 dld_link ();
12016   ;
12017   return 0;
12018 }
12019 _ACEOF
12020 rm -f conftest.$ac_objext conftest$ac_exeext
12021 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12022   (eval $ac_link) 2>&5
12023   ac_status=$?
12024   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12025   (exit $ac_status); } &&
12026          { ac_try='test -s conftest$ac_exeext'
12027   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12028   (eval $ac_try) 2>&5
12029   ac_status=$?
12030   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12031   (exit $ac_status); }; }; then
12032   ac_cv_lib_dld_dld_link=yes
12033 else
12034   echo "$as_me: failed program was:" >&5
12035 sed 's/^/| /' conftest.$ac_ext >&5
12036
12037 ac_cv_lib_dld_dld_link=no
12038 fi
12039 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12040 LIBS=$ac_check_lib_save_LIBS
12041 fi
12042 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
12043 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
12044 if test $ac_cv_lib_dld_dld_link = yes; then
12045   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
12046 fi
12047
12048
12049 fi
12050
12051
12052 fi
12053
12054
12055 fi
12056
12057
12058 fi
12059
12060
12061 fi
12062
12063     ;;
12064   esac
12065
12066   if test "x$lt_cv_dlopen" != xno; then
12067     enable_dlopen=yes
12068   else
12069     enable_dlopen=no
12070   fi
12071
12072   case $lt_cv_dlopen in
12073   dlopen)
12074     save_CPPFLAGS="$CPPFLAGS"
12075     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12076
12077     save_LDFLAGS="$LDFLAGS"
12078     eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12079
12080     save_LIBS="$LIBS"
12081     LIBS="$lt_cv_dlopen_libs $LIBS"
12082
12083     echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
12084 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
12085 if test "${lt_cv_dlopen_self+set}" = set; then
12086   echo $ECHO_N "(cached) $ECHO_C" >&6
12087 else
12088           if test "$cross_compiling" = yes; then :
12089   lt_cv_dlopen_self=cross
12090 else
12091   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12092   lt_status=$lt_dlunknown
12093   cat > conftest.$ac_ext <<EOF
12094 #line 12091 "configure"
12095 #include "confdefs.h"
12096
12097 #if HAVE_DLFCN_H
12098 #include <dlfcn.h>
12099 #endif
12100
12101 #include <stdio.h>
12102
12103 #ifdef RTLD_GLOBAL
12104 #  define LT_DLGLOBAL           RTLD_GLOBAL
12105 #else
12106 #  ifdef DL_GLOBAL
12107 #    define LT_DLGLOBAL         DL_GLOBAL
12108 #  else
12109 #    define LT_DLGLOBAL         0
12110 #  endif
12111 #endif
12112
12113 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12114    find out it does not work in some platform. */
12115 #ifndef LT_DLLAZY_OR_NOW
12116 #  ifdef RTLD_LAZY
12117 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
12118 #  else
12119 #    ifdef DL_LAZY
12120 #      define LT_DLLAZY_OR_NOW          DL_LAZY
12121 #    else
12122 #      ifdef RTLD_NOW
12123 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
12124 #      else
12125 #        ifdef DL_NOW
12126 #          define LT_DLLAZY_OR_NOW      DL_NOW
12127 #        else
12128 #          define LT_DLLAZY_OR_NOW      0
12129 #        endif
12130 #      endif
12131 #    endif
12132 #  endif
12133 #endif
12134
12135 #ifdef __cplusplus
12136 extern "C" void exit (int);
12137 #endif
12138
12139 void fnord() { int i=42;}
12140 int main ()
12141 {
12142   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12143   int status = $lt_dlunknown;
12144
12145   if (self)
12146     {
12147       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
12148       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12149       /* dlclose (self); */
12150     }
12151
12152     exit (status);
12153 }
12154 EOF
12155   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12156   (eval $ac_link) 2>&5
12157   ac_status=$?
12158   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12159   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
12160     (./conftest; exit; ) 2>/dev/null
12161     lt_status=$?
12162     case x$lt_status in
12163       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12164       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12165       x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
12166     esac
12167   else :
12168     # compilation failed
12169     lt_cv_dlopen_self=no
12170   fi
12171 fi
12172 rm -fr conftest*
12173
12174
12175 fi
12176 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
12177 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
12178
12179     if test "x$lt_cv_dlopen_self" = xyes; then
12180       LDFLAGS="$LDFLAGS $link_static_flag"
12181       echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
12182 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
12183 if test "${lt_cv_dlopen_self_static+set}" = set; then
12184   echo $ECHO_N "(cached) $ECHO_C" >&6
12185 else
12186           if test "$cross_compiling" = yes; then :
12187   lt_cv_dlopen_self_static=cross
12188 else
12189   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12190   lt_status=$lt_dlunknown
12191   cat > conftest.$ac_ext <<EOF
12192 #line 12189 "configure"
12193 #include "confdefs.h"
12194
12195 #if HAVE_DLFCN_H
12196 #include <dlfcn.h>
12197 #endif
12198
12199 #include <stdio.h>
12200
12201 #ifdef RTLD_GLOBAL
12202 #  define LT_DLGLOBAL           RTLD_GLOBAL
12203 #else
12204 #  ifdef DL_GLOBAL
12205 #    define LT_DLGLOBAL         DL_GLOBAL
12206 #  else
12207 #    define LT_DLGLOBAL         0
12208 #  endif
12209 #endif
12210
12211 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12212    find out it does not work in some platform. */
12213 #ifndef LT_DLLAZY_OR_NOW
12214 #  ifdef RTLD_LAZY
12215 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
12216 #  else
12217 #    ifdef DL_LAZY
12218 #      define LT_DLLAZY_OR_NOW          DL_LAZY
12219 #    else
12220 #      ifdef RTLD_NOW
12221 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
12222 #      else
12223 #        ifdef DL_NOW
12224 #          define LT_DLLAZY_OR_NOW      DL_NOW
12225 #        else
12226 #          define LT_DLLAZY_OR_NOW      0
12227 #        endif
12228 #      endif
12229 #    endif
12230 #  endif
12231 #endif
12232
12233 #ifdef __cplusplus
12234 extern "C" void exit (int);
12235 #endif
12236
12237 void fnord() { int i=42;}
12238 int main ()
12239 {
12240   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12241   int status = $lt_dlunknown;
12242
12243   if (self)
12244     {
12245       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
12246       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12247       /* dlclose (self); */
12248     }
12249
12250     exit (status);
12251 }
12252 EOF
12253   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12254   (eval $ac_link) 2>&5
12255   ac_status=$?
12256   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12257   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
12258     (./conftest; exit; ) 2>/dev/null
12259     lt_status=$?
12260     case x$lt_status in
12261       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12262       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12263       x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
12264     esac
12265   else :
12266     # compilation failed
12267     lt_cv_dlopen_self_static=no
12268   fi
12269 fi
12270 rm -fr conftest*
12271
12272
12273 fi
12274 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
12275 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
12276     fi
12277
12278     CPPFLAGS="$save_CPPFLAGS"
12279     LDFLAGS="$save_LDFLAGS"
12280     LIBS="$save_LIBS"
12281     ;;
12282   esac
12283
12284   case $lt_cv_dlopen_self in
12285   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12286   *) enable_dlopen_self=unknown ;;
12287   esac
12288
12289   case $lt_cv_dlopen_self_static in
12290   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12291   *) enable_dlopen_self_static=unknown ;;
12292   esac
12293 fi
12294
12295
12296 # The else clause should only fire when bootstrapping the
12297 # libtool distribution, otherwise you forgot to ship ltmain.sh
12298 # with your package, and you will get complaints that there are
12299 # no rules to generate ltmain.sh.
12300 if test -f "$ltmain"; then
12301   # See if we are running on zsh, and set the options which allow our commands through
12302   # without removal of \ escapes.
12303   if test -n "${ZSH_VERSION+set}" ; then
12304     setopt NO_GLOB_SUBST
12305   fi
12306   # Now quote all the things that may contain metacharacters while being
12307   # careful not to overquote the AC_SUBSTed values.  We take copies of the
12308   # variables and quote the copies for generation of the libtool script.
12309   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \
12310     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
12311     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
12312     deplibs_check_method reload_flag reload_cmds need_locks \
12313     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
12314     lt_cv_sys_global_symbol_to_c_name_address \
12315     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
12316     old_postinstall_cmds old_postuninstall_cmds \
12317     compiler_CXX \
12318     CC_CXX \
12319     LD_CXX \
12320     lt_prog_compiler_wl_CXX \
12321     lt_prog_compiler_pic_CXX \
12322     lt_prog_compiler_static_CXX \
12323     lt_prog_compiler_no_builtin_flag_CXX \
12324     export_dynamic_flag_spec_CXX \
12325     thread_safe_flag_spec_CXX \
12326     whole_archive_flag_spec_CXX \
12327     enable_shared_with_static_runtimes_CXX \
12328     old_archive_cmds_CXX \
12329     old_archive_from_new_cmds_CXX \
12330     predep_objects_CXX \
12331     postdep_objects_CXX \
12332     predeps_CXX \
12333     postdeps_CXX \
12334     compiler_lib_search_path_CXX \
12335     archive_cmds_CXX \
12336     archive_expsym_cmds_CXX \
12337     postinstall_cmds_CXX \
12338     postuninstall_cmds_CXX \
12339     old_archive_from_expsyms_cmds_CXX \
12340     allow_undefined_flag_CXX \
12341     no_undefined_flag_CXX \
12342     export_symbols_cmds_CXX \
12343     hardcode_libdir_flag_spec_CXX \
12344     hardcode_libdir_flag_spec_ld_CXX \
12345     hardcode_libdir_separator_CXX \
12346     hardcode_automatic_CXX \
12347     module_cmds_CXX \
12348     module_expsym_cmds_CXX \
12349     lt_cv_prog_compiler_c_o_CXX \
12350     exclude_expsyms_CXX \
12351     include_expsyms_CXX; do
12352
12353     case $var in
12354     old_archive_cmds_CXX | \
12355     old_archive_from_new_cmds_CXX | \
12356     archive_cmds_CXX | \
12357     archive_expsym_cmds_CXX | \
12358     module_cmds_CXX | \
12359     module_expsym_cmds_CXX | \
12360     old_archive_from_expsyms_cmds_CXX | \
12361     export_symbols_cmds_CXX | \
12362     extract_expsyms_cmds | reload_cmds | finish_cmds | \
12363     postinstall_cmds | postuninstall_cmds | \
12364     old_postinstall_cmds | old_postuninstall_cmds | \
12365     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
12366       # Double-quote double-evaled strings.
12367       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
12368       ;;
12369     *)
12370       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
12371       ;;
12372     esac
12373   done
12374
12375   case $lt_echo in
12376   *'\$0 --fallback-echo"')
12377     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
12378     ;;
12379   esac
12380
12381 cfgfile="$ofile"
12382
12383   cat <<__EOF__ >> "$cfgfile"
12384 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
12385
12386 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
12387
12388 # Shell to use when invoking shell scripts.
12389 SHELL=$lt_SHELL
12390
12391 # Whether or not to build shared libraries.
12392 build_libtool_libs=$enable_shared
12393
12394 # Whether or not to build static libraries.
12395 build_old_libs=$enable_static
12396
12397 # Whether or not to add -lc for building shared libraries.
12398 build_libtool_need_lc=$archive_cmds_need_lc_CXX
12399
12400 # Whether or not to disallow shared libs when runtime libs are static
12401 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
12402
12403 # Whether or not to optimize for fast installation.
12404 fast_install=$enable_fast_install
12405
12406 # The host system.
12407 host_alias=$host_alias
12408 host=$host
12409
12410 # An echo program that does not interpret backslashes.
12411 echo=$lt_echo
12412
12413 # The archiver.
12414 AR=$lt_AR
12415 AR_FLAGS=$lt_AR_FLAGS
12416
12417 # A C compiler.
12418 LTCC=$lt_LTCC
12419
12420 # A language-specific compiler.
12421 CC=$lt_compiler_CXX
12422
12423 # Is the compiler the GNU C compiler?
12424 with_gcc=$GCC_CXX
12425
12426 # An ERE matcher.
12427 EGREP=$lt_EGREP
12428
12429 # The linker used to build libraries.
12430 LD=$lt_LD_CXX
12431
12432 # Whether we need hard or soft links.
12433 LN_S=$lt_LN_S
12434
12435 # A BSD-compatible nm program.
12436 NM=$lt_NM
12437
12438 # A symbol stripping program
12439 STRIP=$STRIP
12440
12441 # Used to examine libraries when file_magic_cmd begins "file"
12442 MAGIC_CMD=$MAGIC_CMD
12443
12444 # Used on cygwin: DLL creation program.
12445 DLLTOOL="$DLLTOOL"
12446
12447 # Used on cygwin: object dumper.
12448 OBJDUMP="$OBJDUMP"
12449
12450 # Used on cygwin: assembler.
12451 AS="$AS"
12452
12453 # The name of the directory that contains temporary libtool files.
12454 objdir=$objdir
12455
12456 # How to create reloadable object files.
12457 reload_flag=$lt_reload_flag
12458 reload_cmds=$lt_reload_cmds
12459
12460 # How to pass a linker flag through the compiler.
12461 wl=$lt_lt_prog_compiler_wl_CXX
12462
12463 # Object file suffix (normally "o").
12464 objext="$ac_objext"
12465
12466 # Old archive suffix (normally "a").
12467 libext="$libext"
12468
12469 # Shared library suffix (normally ".so").
12470 shrext='$shrext'
12471
12472 # Executable file suffix (normally "").
12473 exeext="$exeext"
12474
12475 # Additional compiler flags for building library objects.
12476 pic_flag=$lt_lt_prog_compiler_pic_CXX
12477 pic_mode=$pic_mode
12478
12479 # What is the maximum length of a command?
12480 max_cmd_len=$lt_cv_sys_max_cmd_len
12481
12482 # Does compiler simultaneously support -c and -o options?
12483 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
12484
12485 # Must we lock files when doing compilation ?
12486 need_locks=$lt_need_locks
12487
12488 # Do we need the lib prefix for modules?
12489 need_lib_prefix=$need_lib_prefix
12490
12491 # Do we need a version for libraries?
12492 need_version=$need_version
12493
12494 # Whether dlopen is supported.
12495 dlopen_support=$enable_dlopen
12496
12497 # Whether dlopen of programs is supported.
12498 dlopen_self=$enable_dlopen_self
12499
12500 # Whether dlopen of statically linked programs is supported.
12501 dlopen_self_static=$enable_dlopen_self_static
12502
12503 # Compiler flag to prevent dynamic linking.
12504 link_static_flag=$lt_lt_prog_compiler_static_CXX
12505
12506 # Compiler flag to turn off builtin functions.
12507 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
12508
12509 # Compiler flag to allow reflexive dlopens.
12510 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
12511
12512 # Compiler flag to generate shared objects directly from archives.
12513 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
12514
12515 # Compiler flag to generate thread-safe objects.
12516 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
12517
12518 # Library versioning type.
12519 version_type=$version_type
12520
12521 # Format of library name prefix.
12522 libname_spec=$lt_libname_spec
12523
12524 # List of archive names.  First name is the real one, the rest are links.
12525 # The last name is the one that the linker finds with -lNAME.
12526 library_names_spec=$lt_library_names_spec
12527
12528 # The coded name of the library, if different from the real name.
12529 soname_spec=$lt_soname_spec
12530
12531 # Commands used to build and install an old-style archive.
12532 RANLIB=$lt_RANLIB
12533 old_archive_cmds=$lt_old_archive_cmds_CXX
12534 old_postinstall_cmds=$lt_old_postinstall_cmds
12535 old_postuninstall_cmds=$lt_old_postuninstall_cmds
12536
12537 # Create an old-style archive from a shared archive.
12538 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
12539
12540 # Create a temporary old-style archive to link instead of a shared archive.
12541 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
12542
12543 # Commands used to build and install a shared archive.
12544 archive_cmds=$lt_archive_cmds_CXX
12545 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
12546 postinstall_cmds=$lt_postinstall_cmds
12547 postuninstall_cmds=$lt_postuninstall_cmds
12548
12549 # Commands used to build a loadable module (assumed same as above if empty)
12550 module_cmds=$lt_module_cmds_CXX
12551 module_expsym_cmds=$lt_module_expsym_cmds_CXX
12552
12553 # Commands to strip libraries.
12554 old_striplib=$lt_old_striplib
12555 striplib=$lt_striplib
12556
12557 # Dependencies to place before the objects being linked to create a
12558 # shared library.
12559 predep_objects=$lt_predep_objects_CXX
12560
12561 # Dependencies to place after the objects being linked to create a
12562 # shared library.
12563 postdep_objects=$lt_postdep_objects_CXX
12564
12565 # Dependencies to place before the objects being linked to create a
12566 # shared library.
12567 predeps=$lt_predeps_CXX
12568
12569 # Dependencies to place after the objects being linked to create a
12570 # shared library.
12571 postdeps=$lt_postdeps_CXX
12572
12573 # The library search path used internally by the compiler when linking
12574 # a shared library.
12575 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
12576
12577 # Method to check whether dependent libraries are shared objects.
12578 deplibs_check_method=$lt_deplibs_check_method
12579
12580 # Command to use when deplibs_check_method == file_magic.
12581 file_magic_cmd=$lt_file_magic_cmd
12582
12583 # Flag that allows shared libraries with undefined symbols to be built.
12584 allow_undefined_flag=$lt_allow_undefined_flag_CXX
12585
12586 # Flag that forces no undefined symbols.
12587 no_undefined_flag=$lt_no_undefined_flag_CXX
12588
12589 # Commands used to finish a libtool library installation in a directory.
12590 finish_cmds=$lt_finish_cmds
12591
12592 # Same as above, but a single script fragment to be evaled but not shown.
12593 finish_eval=$lt_finish_eval
12594
12595 # Take the output of nm and produce a listing of raw symbols and C names.
12596 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
12597
12598 # Transform the output of nm in a proper C declaration
12599 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
12600
12601 # Transform the output of nm in a C name address pair
12602 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
12603
12604 # This is the shared library runtime path variable.
12605 runpath_var=$runpath_var
12606
12607 # This is the shared library path variable.
12608 shlibpath_var=$shlibpath_var
12609
12610 # Is shlibpath searched before the hard-coded library search path?
12611 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
12612
12613 # How to hardcode a shared library path into an executable.
12614 hardcode_action=$hardcode_action_CXX
12615
12616 # Whether we should hardcode library paths into libraries.
12617 hardcode_into_libs=$hardcode_into_libs
12618
12619 # Flag to hardcode \$libdir into a binary during linking.
12620 # This must work even if \$libdir does not exist.
12621 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
12622
12623 # If ld is used when linking, flag to hardcode \$libdir into
12624 # a binary during linking. This must work even if \$libdir does
12625 # not exist.
12626 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
12627
12628 # Whether we need a single -rpath flag with a separated argument.
12629 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
12630
12631 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
12632 # resulting binary.
12633 hardcode_direct=$hardcode_direct_CXX
12634
12635 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
12636 # resulting binary.
12637 hardcode_minus_L=$hardcode_minus_L_CXX
12638
12639 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
12640 # the resulting binary.
12641 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
12642
12643 # Set to yes if building a shared library automatically hardcodes DIR into the library
12644 # and all subsequent libraries and executables linked against it.
12645 hardcode_automatic=$hardcode_automatic_CXX
12646
12647 # Variables whose values should be saved in libtool wrapper scripts and
12648 # restored at relink time.
12649 variables_saved_for_relink="$variables_saved_for_relink"
12650
12651 # Whether libtool must link a program against all its dependency libraries.
12652 link_all_deplibs=$link_all_deplibs_CXX
12653
12654 # Compile-time system search path for libraries
12655 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
12656
12657 # Run-time system search path for libraries
12658 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
12659
12660 # Fix the shell variable \$srcfile for the compiler.
12661 fix_srcfile_path="$fix_srcfile_path_CXX"
12662
12663 # Set to yes if exported symbols are required.
12664 always_export_symbols=$always_export_symbols_CXX
12665
12666 # The commands to list exported symbols.
12667 export_symbols_cmds=$lt_export_symbols_cmds_CXX
12668
12669 # The commands to extract the exported symbol list from a shared archive.
12670 extract_expsyms_cmds=$lt_extract_expsyms_cmds
12671
12672 # Symbols that should not be listed in the preloaded symbols.
12673 exclude_expsyms=$lt_exclude_expsyms_CXX
12674
12675 # Symbols that must always be exported.
12676 include_expsyms=$lt_include_expsyms_CXX
12677
12678 # ### END LIBTOOL TAG CONFIG: $tagname
12679
12680 __EOF__
12681
12682
12683 else
12684   # If there is no Makefile yet, we rely on a make rule to execute
12685   # `config.status --recheck' to rerun these tests and create the
12686   # libtool script then.
12687   test -f Makefile && make "$ltmain"
12688 fi
12689
12690
12691 ac_ext=c
12692 ac_cpp='$CPP $CPPFLAGS'
12693 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12694 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12695 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12696
12697 CC=$lt_save_CC
12698 LDCXX=$LD
12699 LD=$lt_save_LD
12700 GCC=$lt_save_GCC
12701 with_gnu_ldcxx=$with_gnu_ld
12702 with_gnu_ld=$lt_save_with_gnu_ld
12703 lt_cv_path_LDCXX=$lt_cv_path_LD
12704 lt_cv_path_LD=$lt_save_path_LD
12705 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
12706 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
12707
12708         else
12709           tagname=""
12710         fi
12711         ;;
12712
12713       F77)
12714         if test -n "$F77" && test "X$F77" != "Xno"; then
12715
12716 ac_ext=f
12717 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
12718 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12719 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
12720
12721
12722 archive_cmds_need_lc_F77=no
12723 allow_undefined_flag_F77=
12724 always_export_symbols_F77=no
12725 archive_expsym_cmds_F77=
12726 export_dynamic_flag_spec_F77=
12727 hardcode_direct_F77=no
12728 hardcode_libdir_flag_spec_F77=
12729 hardcode_libdir_flag_spec_ld_F77=
12730 hardcode_libdir_separator_F77=
12731 hardcode_minus_L_F77=no
12732 hardcode_automatic_F77=no
12733 module_cmds_F77=
12734 module_expsym_cmds_F77=
12735 link_all_deplibs_F77=unknown
12736 old_archive_cmds_F77=$old_archive_cmds
12737 no_undefined_flag_F77=
12738 whole_archive_flag_spec_F77=
12739 enable_shared_with_static_runtimes_F77=no
12740
12741 # Source file extension for f77 test sources.
12742 ac_ext=f
12743
12744 # Object file extension for compiled f77 test sources.
12745 objext=o
12746 objext_F77=$objext
12747
12748 # Code to be used in simple compile tests
12749 lt_simple_compile_test_code="      subroutine t\n      return\n      end\n"
12750
12751 # Code to be used in simple link tests
12752 lt_simple_link_test_code="      program t\n      end\n"
12753
12754 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
12755
12756 # If no C compiler was specified, use CC.
12757 LTCC=${LTCC-"$CC"}
12758
12759 # Allow CC to be a program name with arguments.
12760 compiler=$CC
12761
12762
12763 # Allow CC to be a program name with arguments.
12764 lt_save_CC="$CC"
12765 CC=${F77-"f77"}
12766 compiler=$CC
12767 compiler_F77=$CC
12768 cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
12769
12770 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
12771 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
12772 echo "$as_me:$LINENO: result: $can_build_shared" >&5
12773 echo "${ECHO_T}$can_build_shared" >&6
12774
12775 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
12776 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
12777 test "$can_build_shared" = "no" && enable_shared=no
12778
12779 # On AIX, shared libraries and static libraries use the same namespace, and
12780 # are all built from PIC.
12781 case "$host_os" in
12782 aix3*)
12783   test "$enable_shared" = yes && enable_static=no
12784   if test -n "$RANLIB"; then
12785     archive_cmds="$archive_cmds~\$RANLIB \$lib"
12786     postinstall_cmds='$RANLIB $lib'
12787   fi
12788   ;;
12789 aix4*)
12790   test "$enable_shared" = yes && enable_static=no
12791   ;;
12792 esac
12793 echo "$as_me:$LINENO: result: $enable_shared" >&5
12794 echo "${ECHO_T}$enable_shared" >&6
12795
12796 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
12797 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
12798 # Make sure either enable_shared or enable_static is yes.
12799 test "$enable_shared" = yes || enable_static=yes
12800 echo "$as_me:$LINENO: result: $enable_static" >&5
12801 echo "${ECHO_T}$enable_static" >&6
12802
12803 test "$ld_shlibs_F77" = no && can_build_shared=no
12804
12805 GCC_F77="$G77"
12806 LD_F77="$LD"
12807
12808 lt_prog_compiler_wl_F77=
12809 lt_prog_compiler_pic_F77=
12810 lt_prog_compiler_static_F77=
12811
12812 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
12813 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
12814
12815   if test "$GCC" = yes; then
12816     lt_prog_compiler_wl_F77='-Wl,'
12817     lt_prog_compiler_static_F77='-static'
12818
12819     case $host_os in
12820       aix*)
12821       # All AIX code is PIC.
12822       if test "$host_cpu" = ia64; then
12823         # AIX 5 now supports IA64 processor
12824         lt_prog_compiler_static_F77='-Bstatic'
12825       fi
12826       ;;
12827
12828     amigaos*)
12829       # FIXME: we need at least 68020 code to build shared libraries, but
12830       # adding the `-m68020' flag to GCC prevents building anything better,
12831       # like `-m68040'.
12832       lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
12833       ;;
12834
12835     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12836       # PIC is the default for these OSes.
12837       ;;
12838
12839     mingw* | pw32* | os2*)
12840       # This hack is so that the source file can tell whether it is being
12841       # built for inclusion in a dll (and should export symbols for example).
12842       lt_prog_compiler_pic_F77='-DDLL_EXPORT'
12843       ;;
12844
12845     darwin* | rhapsody*)
12846       # PIC is the default on this platform
12847       # Common symbols not allowed in MH_DYLIB files
12848       lt_prog_compiler_pic_F77='-fno-common'
12849       ;;
12850
12851     msdosdjgpp*)
12852       # Just because we use GCC doesn't mean we suddenly get shared libraries
12853       # on systems that don't support them.
12854       lt_prog_compiler_can_build_shared_F77=no
12855       enable_shared=no
12856       ;;
12857
12858     sysv4*MP*)
12859       if test -d /usr/nec; then
12860         lt_prog_compiler_pic_F77=-Kconform_pic
12861       fi
12862       ;;
12863
12864     hpux*)
12865       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12866       # not for PA HP-UX.
12867       case "$host_cpu" in
12868       hppa*64*|ia64*)
12869         # +Z the default
12870         ;;
12871       *)
12872         lt_prog_compiler_pic_F77='-fPIC'
12873         ;;
12874       esac
12875       ;;
12876
12877     *)
12878       lt_prog_compiler_pic_F77='-fPIC'
12879       ;;
12880     esac
12881   else
12882     # PORTME Check for flag to pass linker flags through the system compiler.
12883     case $host_os in
12884     aix*)
12885       lt_prog_compiler_wl_F77='-Wl,'
12886       if test "$host_cpu" = ia64; then
12887         # AIX 5 now supports IA64 processor
12888         lt_prog_compiler_static_F77='-Bstatic'
12889       else
12890         lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
12891       fi
12892       ;;
12893
12894     mingw* | pw32* | os2*)
12895       # This hack is so that the source file can tell whether it is being
12896       # built for inclusion in a dll (and should export symbols for example).
12897       lt_prog_compiler_pic_F77='-DDLL_EXPORT'
12898       ;;
12899
12900     hpux9* | hpux10* | hpux11*)
12901       lt_prog_compiler_wl_F77='-Wl,'
12902       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12903       # not for PA HP-UX.
12904       case "$host_cpu" in
12905       hppa*64*|ia64*)
12906         # +Z the default
12907         ;;
12908       *)
12909         lt_prog_compiler_pic_F77='+Z'
12910         ;;
12911       esac
12912       # Is there a better lt_prog_compiler_static that works with the bundled CC?
12913       lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
12914       ;;
12915
12916     irix5* | irix6* | nonstopux*)
12917       lt_prog_compiler_wl_F77='-Wl,'
12918       # PIC (with -KPIC) is the default.
12919       lt_prog_compiler_static_F77='-non_shared'
12920       ;;
12921
12922     newsos6)
12923       lt_prog_compiler_pic_F77='-KPIC'
12924       lt_prog_compiler_static_F77='-Bstatic'
12925       ;;
12926
12927     linux*)
12928       case $CC in
12929       icc|ecc)
12930         lt_prog_compiler_wl_F77='-Wl,'
12931         lt_prog_compiler_pic_F77='-KPIC'
12932         lt_prog_compiler_static_F77='-static'
12933         ;;
12934       ccc)
12935         lt_prog_compiler_wl_F77='-Wl,'
12936         # All Alpha code is PIC.
12937         lt_prog_compiler_static_F77='-non_shared'
12938         ;;
12939       esac
12940       ;;
12941
12942     osf3* | osf4* | osf5*)
12943       lt_prog_compiler_wl_F77='-Wl,'
12944       # All OSF/1 code is PIC.
12945       lt_prog_compiler_static_F77='-non_shared'
12946       ;;
12947
12948     sco3.2v5*)
12949       lt_prog_compiler_pic_F77='-Kpic'
12950       lt_prog_compiler_static_F77='-dn'
12951       ;;
12952
12953     solaris*)
12954       lt_prog_compiler_wl_F77='-Wl,'
12955       lt_prog_compiler_pic_F77='-KPIC'
12956       lt_prog_compiler_static_F77='-Bstatic'
12957       ;;
12958
12959     sunos4*)
12960       lt_prog_compiler_wl_F77='-Qoption ld '
12961       lt_prog_compiler_pic_F77='-PIC'
12962       lt_prog_compiler_static_F77='-Bstatic'
12963       ;;
12964
12965     sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
12966       lt_prog_compiler_wl_F77='-Wl,'
12967       lt_prog_compiler_pic_F77='-KPIC'
12968       lt_prog_compiler_static_F77='-Bstatic'
12969       ;;
12970
12971     sysv4*MP*)
12972       if test -d /usr/nec ;then
12973         lt_prog_compiler_pic_F77='-Kconform_pic'
12974         lt_prog_compiler_static_F77='-Bstatic'
12975       fi
12976       ;;
12977
12978     uts4*)
12979       lt_prog_compiler_pic_F77='-pic'
12980       lt_prog_compiler_static_F77='-Bstatic'
12981       ;;
12982
12983     *)
12984       lt_prog_compiler_can_build_shared_F77=no
12985       ;;
12986     esac
12987   fi
12988
12989 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
12990 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6
12991
12992 #
12993 # Check to make sure the PIC flag actually works.
12994 #
12995 if test -n "$lt_prog_compiler_pic_F77"; then
12996   echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
12997 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6
12998 if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
12999   echo $ECHO_N "(cached) $ECHO_C" >&6
13000 else
13001   lt_prog_compiler_pic_works_F77=no
13002   ac_outfile=conftest.$ac_objext
13003    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13004    lt_compiler_flag="$lt_prog_compiler_pic_F77"
13005    # Insert the option either (1) after the last *FLAGS variable, or
13006    # (2) before a word containing "conftest.", or (3) at the end.
13007    # Note that $ac_compile itself does not contain backslashes and begins
13008    # with a dollar sign (not a hyphen), so the echo should work correctly.
13009    # The option is referenced via a variable to avoid confusing sed.
13010    lt_compile=`echo "$ac_compile" | $SED \
13011    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
13012    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13013    -e 's:$: $lt_compiler_flag:'`
13014    (eval echo "\"\$as_me:13011: $lt_compile\"" >&5)
13015    (eval "$lt_compile" 2>conftest.err)
13016    ac_status=$?
13017    cat conftest.err >&5
13018    echo "$as_me:13015: \$? = $ac_status" >&5
13019    if (exit $ac_status) && test -s "$ac_outfile"; then
13020      # The compiler can only warn and ignore the option if not recognized
13021      # So say no if there are warnings
13022      if test ! -s conftest.err; then
13023        lt_prog_compiler_pic_works_F77=yes
13024      fi
13025    fi
13026    $rm conftest*
13027
13028 fi
13029 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
13030 echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6
13031
13032 if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
13033     case $lt_prog_compiler_pic_F77 in
13034      "" | " "*) ;;
13035      *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
13036      esac
13037 else
13038     lt_prog_compiler_pic_F77=
13039      lt_prog_compiler_can_build_shared_F77=no
13040 fi
13041
13042 fi
13043 case "$host_os" in
13044   # For platforms which do not support PIC, -DPIC is meaningless:
13045   *djgpp*)
13046     lt_prog_compiler_pic_F77=
13047     ;;
13048   *)
13049     lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
13050     ;;
13051 esac
13052
13053 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
13054 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
13055 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
13056   echo $ECHO_N "(cached) $ECHO_C" >&6
13057 else
13058   lt_cv_prog_compiler_c_o_F77=no
13059    $rm -r conftest 2>/dev/null
13060    mkdir conftest
13061    cd conftest
13062    mkdir out
13063    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13064
13065    # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
13066    # that will create temporary files in the current directory regardless of
13067    # the output directory.  Thus, making CWD read-only will cause this test
13068    # to fail, enabling locking or at least warning the user not to do parallel
13069    # builds.
13070    chmod -w .
13071
13072    lt_compiler_flag="-o out/conftest2.$ac_objext"
13073    # Insert the option either (1) after the last *FLAGS variable, or
13074    # (2) before a word containing "conftest.", or (3) at the end.
13075    # Note that $ac_compile itself does not contain backslashes and begins
13076    # with a dollar sign (not a hyphen), so the echo should work correctly.
13077    lt_compile=`echo "$ac_compile" | $SED \
13078    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
13079    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13080    -e 's:$: $lt_compiler_flag:'`
13081    (eval echo "\"\$as_me:13078: $lt_compile\"" >&5)
13082    (eval "$lt_compile" 2>out/conftest.err)
13083    ac_status=$?
13084    cat out/conftest.err >&5
13085    echo "$as_me:13082: \$? = $ac_status" >&5
13086    if (exit $ac_status) && test -s out/conftest2.$ac_objext
13087    then
13088      # The compiler can only warn and ignore the option if not recognized
13089      # So say no if there are warnings
13090      if test ! -s out/conftest.err; then
13091        lt_cv_prog_compiler_c_o_F77=yes
13092      fi
13093    fi
13094    chmod u+w .
13095    $rm conftest* out/*
13096    rmdir out
13097    cd ..
13098    rmdir conftest
13099    $rm conftest*
13100
13101 fi
13102 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
13103 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6
13104
13105
13106 hard_links="nottested"
13107 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
13108   # do not overwrite the value of need_locks provided by the user
13109   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
13110 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
13111   hard_links=yes
13112   $rm conftest*
13113   ln conftest.a conftest.b 2>/dev/null && hard_links=no
13114   touch conftest.a
13115   ln conftest.a conftest.b 2>&5 || hard_links=no
13116   ln conftest.a conftest.b 2>/dev/null && hard_links=no
13117   echo "$as_me:$LINENO: result: $hard_links" >&5
13118 echo "${ECHO_T}$hard_links" >&6
13119   if test "$hard_links" = no; then
13120     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13121 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13122     need_locks=warn
13123   fi
13124 else
13125   need_locks=no
13126 fi
13127
13128 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13129 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
13130
13131   runpath_var=
13132   allow_undefined_flag_F77=
13133   enable_shared_with_static_runtimes_F77=no
13134   archive_cmds_F77=
13135   archive_expsym_cmds_F77=
13136   old_archive_From_new_cmds_F77=
13137   old_archive_from_expsyms_cmds_F77=
13138   export_dynamic_flag_spec_F77=
13139   whole_archive_flag_spec_F77=
13140   thread_safe_flag_spec_F77=
13141   hardcode_libdir_flag_spec_F77=
13142   hardcode_libdir_flag_spec_ld_F77=
13143   hardcode_libdir_separator_F77=
13144   hardcode_direct_F77=no
13145   hardcode_minus_L_F77=no
13146   hardcode_shlibpath_var_F77=unsupported
13147   link_all_deplibs_F77=unknown
13148   hardcode_automatic_F77=no
13149   module_cmds_F77=
13150   module_expsym_cmds_F77=
13151   always_export_symbols_F77=no
13152   export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13153   # include_expsyms should be a list of space-separated symbols to be *always*
13154   # included in the symbol list
13155   include_expsyms_F77=
13156   # exclude_expsyms can be an extended regexp of symbols to exclude
13157   # it will be wrapped by ` (' and `)$', so one must not match beginning or
13158   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
13159   # as well as any symbol that contains `d'.
13160   exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
13161   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
13162   # platforms (ab)use it in PIC code, but their linkers get confused if
13163   # the symbol is explicitly referenced.  Since portable code cannot
13164   # rely on this symbol name, it's probably fine to never include it in
13165   # preloaded symbol tables.
13166   extract_expsyms_cmds=
13167
13168   case $host_os in
13169   cygwin* | mingw* | pw32*)
13170     # FIXME: the MSVC++ port hasn't been tested in a loooong time
13171     # When not using gcc, we currently assume that we are using
13172     # Microsoft Visual C++.
13173     if test "$GCC" != yes; then
13174       with_gnu_ld=no
13175     fi
13176     ;;
13177   openbsd*)
13178     with_gnu_ld=no
13179     ;;
13180   esac
13181
13182   ld_shlibs_F77=yes
13183   if test "$with_gnu_ld" = yes; then
13184     # If archive_cmds runs LD, not CC, wlarc should be empty
13185     wlarc='${wl}'
13186
13187     # See if GNU ld supports shared libraries.
13188     case $host_os in
13189     aix3* | aix4* | aix5*)
13190       # On AIX/PPC, the GNU linker is very broken
13191       if test "$host_cpu" != ia64; then
13192         ld_shlibs_F77=no
13193         cat <<EOF 1>&2
13194
13195 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
13196 *** to be unable to reliably create shared libraries on AIX.
13197 *** Therefore, libtool is disabling shared libraries support.  If you
13198 *** really care for shared libraries, you may want to modify your PATH
13199 *** so that a non-GNU linker is found, and then restart.
13200
13201 EOF
13202       fi
13203       ;;
13204
13205     amigaos*)
13206       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)'
13207       hardcode_libdir_flag_spec_F77='-L$libdir'
13208       hardcode_minus_L_F77=yes
13209
13210       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
13211       # that the semantics of dynamic libraries on AmigaOS, at least up
13212       # to version 4, is to share data among multiple programs linked
13213       # with the same dynamic library.  Since this doesn't match the
13214       # behavior of shared libraries on other platforms, we can't use
13215       # them.
13216       ld_shlibs_F77=no
13217       ;;
13218
13219     beos*)
13220       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13221         allow_undefined_flag_F77=unsupported
13222         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13223         # support --undefined.  This deserves some investigation.  FIXME
13224         archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13225       else
13226         ld_shlibs_F77=no
13227       fi
13228       ;;
13229
13230     cygwin* | mingw* | pw32*)
13231       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
13232       # as there is no search path for DLLs.
13233       hardcode_libdir_flag_spec_F77='-L$libdir'
13234       allow_undefined_flag_F77=unsupported
13235       always_export_symbols_F77=no
13236       enable_shared_with_static_runtimes_F77=yes
13237       export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
13238
13239       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
13240         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
13241         # If the export-symbols file already is a .def file (1st line
13242         # is EXPORTS), use it as is; otherwise, prepend...
13243         archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13244           cp $export_symbols $output_objdir/$soname.def;
13245         else
13246           echo EXPORTS > $output_objdir/$soname.def;
13247           cat $export_symbols >> $output_objdir/$soname.def;
13248         fi~
13249         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
13250       else
13251         ld_shlibs=no
13252       fi
13253       ;;
13254
13255     netbsd*)
13256       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13257         archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
13258         wlarc=
13259       else
13260         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13261         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13262       fi
13263       ;;
13264
13265     solaris* | sysv5*)
13266       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
13267         ld_shlibs_F77=no
13268         cat <<EOF 1>&2
13269
13270 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
13271 *** create shared libraries on Solaris systems.  Therefore, libtool
13272 *** is disabling shared libraries support.  We urge you to upgrade GNU
13273 *** binutils to release 2.9.1 or newer.  Another option is to modify
13274 *** your PATH or compiler configuration so that the native linker is
13275 *** used, and then restart.
13276
13277 EOF
13278       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13279         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13280         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13281       else
13282         ld_shlibs_F77=no
13283       fi
13284       ;;
13285
13286     sunos4*)
13287       archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13288       wlarc=
13289       hardcode_direct_F77=yes
13290       hardcode_shlibpath_var_F77=no
13291       ;;
13292
13293     *)
13294       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13295         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13296         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13297       else
13298         ld_shlibs_F77=no
13299       fi
13300       ;;
13301     esac
13302
13303     if test "$ld_shlibs_F77" = yes; then
13304       runpath_var=LD_RUN_PATH
13305       hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
13306       export_dynamic_flag_spec_F77='${wl}--export-dynamic'
13307       # ancient GNU ld didn't support --whole-archive et. al.
13308       if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
13309         whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13310       else
13311         whole_archive_flag_spec_F77=
13312       fi
13313     fi
13314   else
13315     # PORTME fill in a description of your system's linker (not GNU ld)
13316     case $host_os in
13317     aix3*)
13318       allow_undefined_flag_F77=unsupported
13319       always_export_symbols_F77=yes
13320       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'
13321       # Note: this linker hardcodes the directories in LIBPATH if there
13322       # are no directories specified by -L.
13323       hardcode_minus_L_F77=yes
13324       if test "$GCC" = yes && test -z "$link_static_flag"; then
13325         # Neither direct hardcoding nor static linking is supported with a
13326         # broken collect2.
13327         hardcode_direct_F77=unsupported
13328       fi
13329       ;;
13330
13331     aix4* | aix5*)
13332       if test "$host_cpu" = ia64; then
13333         # On IA64, the linker does run time linking by default, so we don't
13334         # have to do anything special.
13335         aix_use_runtimelinking=no
13336         exp_sym_flag='-Bexport'
13337         no_entry_flag=""
13338       else
13339         # If we're using GNU nm, then we don't want the "-C" option.
13340         # -C means demangle to AIX nm, but means don't demangle with GNU nm
13341         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
13342           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'
13343         else
13344           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'
13345         fi
13346         aix_use_runtimelinking=no
13347
13348         # Test if we are trying to use run time linking or normal
13349         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
13350         # need to do runtime linking.
13351         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
13352           for ld_flag in $LDFLAGS; do
13353           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
13354             aix_use_runtimelinking=yes
13355             break
13356           fi
13357           done
13358         esac
13359
13360         exp_sym_flag='-bexport'
13361         no_entry_flag='-bnoentry'
13362       fi
13363
13364       # When large executables or shared objects are built, AIX ld can
13365       # have problems creating the table of contents.  If linking a library
13366       # or program results in "error TOC overflow" add -mminimal-toc to
13367       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
13368       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13369
13370       archive_cmds_F77=''
13371       hardcode_direct_F77=yes
13372       hardcode_libdir_separator_F77=':'
13373       link_all_deplibs_F77=yes
13374
13375       if test "$GCC" = yes; then
13376         case $host_os in aix4.012|aix4.012.*)
13377         # We only want to do this on AIX 4.2 and lower, the check
13378         # below for broken collect2 doesn't work under 4.3+
13379           collect2name=`${CC} -print-prog-name=collect2`
13380           if test -f "$collect2name" && \
13381            strings "$collect2name" | grep resolve_lib_name >/dev/null
13382           then
13383           # We have reworked collect2
13384           hardcode_direct_F77=yes
13385           else
13386           # We have old collect2
13387           hardcode_direct_F77=unsupported
13388           # It fails to find uninstalled libraries when the uninstalled
13389           # path is not listed in the libpath.  Setting hardcode_minus_L
13390           # to unsupported forces relinking
13391           hardcode_minus_L_F77=yes
13392           hardcode_libdir_flag_spec_F77='-L$libdir'
13393           hardcode_libdir_separator_F77=
13394           fi
13395         esac
13396         shared_flag='-shared'
13397       else
13398         # not using gcc
13399         if test "$host_cpu" = ia64; then
13400         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13401         # chokes on -Wl,-G. The following line is correct:
13402           shared_flag='-G'
13403         else
13404         if test "$aix_use_runtimelinking" = yes; then
13405             shared_flag='${wl}-G'
13406           else
13407             shared_flag='${wl}-bM:SRE'
13408         fi
13409         fi
13410       fi
13411
13412       # It seems that -bexpall does not export symbols beginning with
13413       # underscore (_), so it is better to generate a list of symbols to export.
13414       always_export_symbols_F77=yes
13415       if test "$aix_use_runtimelinking" = yes; then
13416         # Warning - without using the other runtime loading flags (-brtl),
13417         # -berok will link without error, but may produce a broken library.
13418         allow_undefined_flag_F77='-berok'
13419        # Determine the default libpath from the value encoded in an empty executable.
13420        cat >conftest.$ac_ext <<_ACEOF
13421       program main
13422
13423       end
13424 _ACEOF
13425 rm -f conftest.$ac_objext conftest$ac_exeext
13426 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13427   (eval $ac_link) 2>&5
13428   ac_status=$?
13429   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13430   (exit $ac_status); } &&
13431          { ac_try='test -s conftest$ac_exeext'
13432   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13433   (eval $ac_try) 2>&5
13434   ac_status=$?
13435   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13436   (exit $ac_status); }; }; then
13437
13438 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
13439 }'`
13440 # Check for a 64-bit object if we didn't find anything.
13441 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; }
13442 }'`; fi
13443 else
13444   echo "$as_me: failed program was:" >&5
13445 sed 's/^/| /' conftest.$ac_ext >&5
13446
13447 fi
13448 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13449 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13450
13451        hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
13452         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"
13453        else
13454         if test "$host_cpu" = ia64; then
13455           hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
13456           allow_undefined_flag_F77="-z nodefs"
13457           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"
13458         else
13459          # Determine the default libpath from the value encoded in an empty executable.
13460          cat >conftest.$ac_ext <<_ACEOF
13461       program main
13462
13463       end
13464 _ACEOF
13465 rm -f conftest.$ac_objext conftest$ac_exeext
13466 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13467   (eval $ac_link) 2>&5
13468   ac_status=$?
13469   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13470   (exit $ac_status); } &&
13471          { ac_try='test -s conftest$ac_exeext'
13472   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13473   (eval $ac_try) 2>&5
13474   ac_status=$?
13475   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13476   (exit $ac_status); }; }; then
13477
13478 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
13479 }'`
13480 # Check for a 64-bit object if we didn't find anything.
13481 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; }
13482 }'`; fi
13483 else
13484   echo "$as_me: failed program was:" >&5
13485 sed 's/^/| /' conftest.$ac_ext >&5
13486
13487 fi
13488 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13489 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13490
13491          hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
13492           # Warning - without using the other run time loading flags,
13493           # -berok will link without error, but may produce a broken library.
13494           no_undefined_flag_F77=' ${wl}-bernotok'
13495           allow_undefined_flag_F77=' ${wl}-berok'
13496           # -bexpall does not export symbols beginning with underscore (_)
13497           always_export_symbols_F77=yes
13498           # Exported symbols can be pulled into shared objects from archives
13499           whole_archive_flag_spec_F77=' '
13500           archive_cmds_need_lc_F77=yes
13501           # This is similar to how AIX traditionally builds it's shared libraries.
13502           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'
13503         fi
13504       fi
13505       ;;
13506
13507     amigaos*)
13508       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)'
13509       hardcode_libdir_flag_spec_F77='-L$libdir'
13510       hardcode_minus_L_F77=yes
13511       # see comment about different semantics on the GNU ld section
13512       ld_shlibs_F77=no
13513       ;;
13514
13515     bsdi4*)
13516       export_dynamic_flag_spec_F77=-rdynamic
13517       ;;
13518
13519     cygwin* | mingw* | pw32*)
13520       # When not using gcc, we currently assume that we are using
13521       # Microsoft Visual C++.
13522       # hardcode_libdir_flag_spec is actually meaningless, as there is
13523       # no search path for DLLs.
13524       hardcode_libdir_flag_spec_F77=' '
13525       allow_undefined_flag_F77=unsupported
13526       # Tell ltmain to make .lib files, not .a files.
13527       libext=lib
13528       # Tell ltmain to make .dll files, not .so files.
13529       shrext=".dll"
13530       # FIXME: Setting linknames here is a bad hack.
13531       archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
13532       # The linker will automatically build a .lib file if we build a DLL.
13533       old_archive_From_new_cmds_F77='true'
13534       # FIXME: Should let the user specify the lib program.
13535       old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
13536       fix_srcfile_path='`cygpath -w "$srcfile"`'
13537       enable_shared_with_static_runtimes_F77=yes
13538       ;;
13539
13540     darwin* | rhapsody*)
13541     if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
13542       archive_cmds_need_lc_F77=no
13543       case "$host_os" in
13544       rhapsody* | darwin1.[012])
13545         allow_undefined_flag_F77='-undefined suppress'
13546         ;;
13547       *) # Darwin 1.3 on
13548         test -z ${LD_TWOLEVEL_NAMESPACE} && allow_undefined_flag_F77='-flat_namespace -undefined suppress'
13549         ;;
13550       esac
13551       # FIXME: Relying on posixy $() will cause problems for
13552       #        cross-compilation, but unfortunately the echo tests do not
13553       #        yet detect zsh echo's removal of \ escapes.  Also zsh mangles
13554       #        `"' quotes if we put them in here... so don't!
13555         lt_int_apple_cc_single_mod=no
13556         output_verbose_link_cmd='echo'
13557         if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
13558           lt_int_apple_cc_single_mod=yes
13559         fi
13560         if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
13561           archive_cmds_F77='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
13562         else
13563         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'
13564       fi
13565       module_cmds_F77='$CC -bundle ${wl}-bind_at_load $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags'
13566       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
13567         if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
13568           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}'
13569         else
13570           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}'
13571         fi
13572           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}'
13573       hardcode_direct_F77=no
13574       hardcode_automatic_F77=yes
13575       hardcode_shlibpath_var_F77=unsupported
13576       whole_archive_flag_spec_F77='-all_load $convenience'
13577       link_all_deplibs_F77=yes
13578     fi
13579       ;;
13580
13581     dgux*)
13582       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13583       hardcode_libdir_flag_spec_F77='-L$libdir'
13584       hardcode_shlibpath_var_F77=no
13585       ;;
13586
13587     freebsd1*)
13588       ld_shlibs_F77=no
13589       ;;
13590
13591     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
13592     # support.  Future versions do this automatically, but an explicit c++rt0.o
13593     # does not break anything, and helps significantly (at the cost of a little
13594     # extra space).
13595     freebsd2.2*)
13596       archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
13597       hardcode_libdir_flag_spec_F77='-R$libdir'
13598       hardcode_direct_F77=yes
13599       hardcode_shlibpath_var_F77=no
13600       ;;
13601
13602     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
13603     freebsd2*)
13604       archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13605       hardcode_direct_F77=yes
13606       hardcode_minus_L_F77=yes
13607       hardcode_shlibpath_var_F77=no
13608       ;;
13609
13610     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
13611     freebsd*)
13612       archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
13613       hardcode_libdir_flag_spec_F77='-R$libdir'
13614       hardcode_direct_F77=yes
13615       hardcode_shlibpath_var_F77=no
13616       ;;
13617
13618     hpux9*)
13619       if test "$GCC" = yes; then
13620         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'
13621       else
13622         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'
13623       fi
13624       hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
13625       hardcode_libdir_separator_F77=:
13626       hardcode_direct_F77=yes
13627
13628       # hardcode_minus_L: Not really in the search PATH,
13629       # but as the default location of the library.
13630       hardcode_minus_L_F77=yes
13631       export_dynamic_flag_spec_F77='${wl}-E'
13632       ;;
13633
13634     hpux10* | hpux11*)
13635       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
13636         case "$host_cpu" in
13637         hppa*64*|ia64*)
13638           archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13639           ;;
13640         *)
13641           archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13642           ;;
13643         esac
13644       else
13645         case "$host_cpu" in
13646         hppa*64*|ia64*)
13647           archive_cmds_F77='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
13648           ;;
13649         *)
13650           archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
13651           ;;
13652         esac
13653       fi
13654       if test "$with_gnu_ld" = no; then
13655         case "$host_cpu" in
13656         hppa*64*)
13657           hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
13658           hardcode_libdir_flag_spec_ld_F77='+b $libdir'
13659           hardcode_libdir_separator_F77=:
13660           hardcode_direct_F77=no
13661           hardcode_shlibpath_var_F77=no
13662           ;;
13663         ia64*)
13664           hardcode_libdir_flag_spec_F77='-L$libdir'
13665           hardcode_direct_F77=no
13666           hardcode_shlibpath_var_F77=no
13667
13668           # hardcode_minus_L: Not really in the search PATH,
13669           # but as the default location of the library.
13670           hardcode_minus_L_F77=yes
13671           ;;
13672         *)
13673           hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
13674           hardcode_libdir_separator_F77=:
13675           hardcode_direct_F77=yes
13676           export_dynamic_flag_spec_F77='${wl}-E'
13677
13678           # hardcode_minus_L: Not really in the search PATH,
13679           # but as the default location of the library.
13680           hardcode_minus_L_F77=yes
13681           ;;
13682         esac
13683       fi
13684       ;;
13685
13686     irix5* | irix6* | nonstopux*)
13687       if test "$GCC" = yes; then
13688         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'
13689       else
13690         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'
13691         hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
13692       fi
13693       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
13694       hardcode_libdir_separator_F77=:
13695       link_all_deplibs_F77=yes
13696       ;;
13697
13698     netbsd*)
13699       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13700         archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
13701       else
13702         archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
13703       fi
13704       hardcode_libdir_flag_spec_F77='-R$libdir'
13705       hardcode_direct_F77=yes
13706       hardcode_shlibpath_var_F77=no
13707       ;;
13708
13709     newsos6)
13710       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13711       hardcode_direct_F77=yes
13712       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
13713       hardcode_libdir_separator_F77=:
13714       hardcode_shlibpath_var_F77=no
13715       ;;
13716
13717     openbsd*)
13718       hardcode_direct_F77=yes
13719       hardcode_shlibpath_var_F77=no
13720       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13721         archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13722         hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
13723         export_dynamic_flag_spec_F77='${wl}-E'
13724       else
13725        case $host_os in
13726          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
13727            archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13728            hardcode_libdir_flag_spec_F77='-R$libdir'
13729            ;;
13730          *)
13731            archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13732            hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
13733            ;;
13734        esac
13735       fi
13736       ;;
13737
13738     os2*)
13739       hardcode_libdir_flag_spec_F77='-L$libdir'
13740       hardcode_minus_L_F77=yes
13741       allow_undefined_flag_F77=unsupported
13742       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'
13743       old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
13744       ;;
13745
13746     osf3*)
13747       if test "$GCC" = yes; then
13748         allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
13749         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'
13750       else
13751         allow_undefined_flag_F77=' -expect_unresolved \*'
13752         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'
13753       fi
13754       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
13755       hardcode_libdir_separator_F77=:
13756       ;;
13757
13758     osf4* | osf5*)      # as osf3* with the addition of -msym flag
13759       if test "$GCC" = yes; then
13760         allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
13761         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'
13762         hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
13763       else
13764         allow_undefined_flag_F77=' -expect_unresolved \*'
13765         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'
13766         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~
13767         $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'
13768
13769         # Both c and cxx compiler support -rpath directly
13770         hardcode_libdir_flag_spec_F77='-rpath $libdir'
13771       fi
13772       hardcode_libdir_separator_F77=:
13773       ;;
13774
13775     sco3.2v5*)
13776       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13777       hardcode_shlibpath_var_F77=no
13778       export_dynamic_flag_spec_F77='${wl}-Bexport'
13779       runpath_var=LD_RUN_PATH
13780       hardcode_runpath_var=yes
13781       ;;
13782
13783     solaris*)
13784       no_undefined_flag_F77=' -z text'
13785       if test "$GCC" = yes; then
13786         archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13787         archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13788           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
13789       else
13790         archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
13791         archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13792         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
13793       fi
13794       hardcode_libdir_flag_spec_F77='-R$libdir'
13795       hardcode_shlibpath_var_F77=no
13796       case $host_os in
13797       solaris2.[0-5] | solaris2.[0-5].*) ;;
13798       *) # Supported since Solaris 2.6 (maybe 2.5.1?)
13799         whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
13800       esac
13801       link_all_deplibs_F77=yes
13802       ;;
13803
13804     sunos4*)
13805       if test "x$host_vendor" = xsequent; then
13806         # Use $CC to link under sequent, because it throws in some extra .o
13807         # files that make .init and .fini sections work.
13808         archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
13809       else
13810         archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
13811       fi
13812       hardcode_libdir_flag_spec_F77='-L$libdir'
13813       hardcode_direct_F77=yes
13814       hardcode_minus_L_F77=yes
13815       hardcode_shlibpath_var_F77=no
13816       ;;
13817
13818     sysv4)
13819       case $host_vendor in
13820         sni)
13821           archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13822           hardcode_direct_F77=yes # is this really true???
13823         ;;
13824         siemens)
13825           ## LD is ld it makes a PLAMLIB
13826           ## CC just makes a GrossModule.
13827           archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
13828           reload_cmds_F77='$CC -r -o $output$reload_objs'
13829           hardcode_direct_F77=no
13830         ;;
13831         motorola)
13832           archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13833           hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
13834         ;;
13835       esac
13836       runpath_var='LD_RUN_PATH'
13837       hardcode_shlibpath_var_F77=no
13838       ;;
13839
13840     sysv4.3*)
13841       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13842       hardcode_shlibpath_var_F77=no
13843       export_dynamic_flag_spec_F77='-Bexport'
13844       ;;
13845
13846     sysv4*MP*)
13847       if test -d /usr/nec; then
13848         archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13849         hardcode_shlibpath_var_F77=no
13850         runpath_var=LD_RUN_PATH
13851         hardcode_runpath_var=yes
13852         ld_shlibs_F77=yes
13853       fi
13854       ;;
13855
13856     sysv4.2uw2*)
13857       archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
13858       hardcode_direct_F77=yes
13859       hardcode_minus_L_F77=no
13860       hardcode_shlibpath_var_F77=no
13861       hardcode_runpath_var=yes
13862       runpath_var=LD_RUN_PATH
13863       ;;
13864
13865    sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
13866       no_undefined_flag_F77='${wl}-z ${wl}text'
13867       if test "$GCC" = yes; then
13868         archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13869       else
13870         archive_cmds_F77='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13871       fi
13872       runpath_var='LD_RUN_PATH'
13873       hardcode_shlibpath_var_F77=no
13874       ;;
13875
13876     sysv5*)
13877       no_undefined_flag_F77=' -z text'
13878       # $CC -shared without GNU ld will not create a library from C++
13879       # object files and a static libstdc++, better avoid it by now
13880       archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
13881       archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13882                 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
13883       hardcode_libdir_flag_spec_F77=
13884       hardcode_shlibpath_var_F77=no
13885       runpath_var='LD_RUN_PATH'
13886       ;;
13887
13888     uts4*)
13889       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13890       hardcode_libdir_flag_spec_F77='-L$libdir'
13891       hardcode_shlibpath_var_F77=no
13892       ;;
13893
13894     *)
13895       ld_shlibs_F77=no
13896       ;;
13897     esac
13898   fi
13899
13900 echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
13901 echo "${ECHO_T}$ld_shlibs_F77" >&6
13902 test "$ld_shlibs_F77" = no && can_build_shared=no
13903
13904 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
13905 if test "$GCC" = yes; then
13906   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
13907 fi
13908
13909 #
13910 # Do we need to explicitly link libc?
13911 #
13912 case "x$archive_cmds_need_lc_F77" in
13913 x|xyes)
13914   # Assume -lc should be added
13915   archive_cmds_need_lc_F77=yes
13916
13917   if test "$enable_shared" = yes && test "$GCC" = yes; then
13918     case $archive_cmds_F77 in
13919     *'~'*)
13920       # FIXME: we may have to deal with multi-command sequences.
13921       ;;
13922     '$CC '*)
13923       # Test whether the compiler implicitly links with -lc since on some
13924       # systems, -lgcc has to come before -lc. If gcc already passes -lc
13925       # to ld, don't add -lc before -lgcc.
13926       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
13927 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
13928       $rm conftest*
13929       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13930
13931       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13932   (eval $ac_compile) 2>&5
13933   ac_status=$?
13934   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13935   (exit $ac_status); } 2>conftest.err; then
13936         soname=conftest
13937         lib=conftest
13938         libobjs=conftest.$ac_objext
13939         deplibs=
13940         wl=$lt_prog_compiler_wl_F77
13941         compiler_flags=-v
13942         linker_flags=-v
13943         verstring=
13944         output_objdir=.
13945         libname=conftest
13946         lt_save_allow_undefined_flag=$allow_undefined_flag_F77
13947         allow_undefined_flag_F77=
13948         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
13949   (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
13950   ac_status=$?
13951   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13952   (exit $ac_status); }
13953         then
13954           archive_cmds_need_lc_F77=no
13955         else
13956           archive_cmds_need_lc_F77=yes
13957         fi
13958         allow_undefined_flag_F77=$lt_save_allow_undefined_flag
13959       else
13960         cat conftest.err 1>&5
13961       fi
13962       $rm conftest*
13963       echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
13964 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6
13965       ;;
13966     esac
13967   fi
13968   ;;
13969 esac
13970
13971 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
13972 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
13973 hardcode_action_F77=
13974 if test -n "$hardcode_libdir_flag_spec_F77" || \
13975    test -n "$runpath_var F77" || \
13976    test "X$hardcode_automatic_F77"="Xyes" ; then
13977
13978   # We can hardcode non-existant directories.
13979   if test "$hardcode_direct_F77" != no &&
13980      # If the only mechanism to avoid hardcoding is shlibpath_var, we
13981      # have to relink, otherwise we might link with an installed library
13982      # when we should be linking with a yet-to-be-installed one
13983      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
13984      test "$hardcode_minus_L_F77" != no; then
13985     # Linking always hardcodes the temporary library directory.
13986     hardcode_action_F77=relink
13987   else
13988     # We can link without hardcoding, and we can hardcode nonexisting dirs.
13989     hardcode_action_F77=immediate
13990   fi
13991 else
13992   # We cannot hardcode anything, or else we can only hardcode existing
13993   # directories.
13994   hardcode_action_F77=unsupported
13995 fi
13996 echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
13997 echo "${ECHO_T}$hardcode_action_F77" >&6
13998
13999 if test "$hardcode_action_F77" = relink; then
14000   # Fast installation is not supported
14001   enable_fast_install=no
14002 elif test "$shlibpath_overrides_runpath" = yes ||
14003      test "$enable_shared" = no; then
14004   # Fast installation is not necessary
14005   enable_fast_install=needless
14006 fi
14007
14008 striplib=
14009 old_striplib=
14010 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
14011 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
14012 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
14013   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
14014   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
14015   echo "$as_me:$LINENO: result: yes" >&5
14016 echo "${ECHO_T}yes" >&6
14017 else
14018 # FIXME - insert some real tests, host_os isn't really good enough
14019   case $host_os in
14020    darwin*)
14021        if test -n "$STRIP" ; then
14022          striplib="$STRIP -x"
14023          echo "$as_me:$LINENO: result: yes" >&5
14024 echo "${ECHO_T}yes" >&6
14025        else
14026   echo "$as_me:$LINENO: result: no" >&5
14027 echo "${ECHO_T}no" >&6
14028 fi
14029        ;;
14030    *)
14031   echo "$as_me:$LINENO: result: no" >&5
14032 echo "${ECHO_T}no" >&6
14033     ;;
14034   esac
14035 fi
14036
14037 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
14038 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
14039 library_names_spec=
14040 libname_spec='lib$name'
14041 soname_spec=
14042 shrext=".so"
14043 postinstall_cmds=
14044 postuninstall_cmds=
14045 finish_cmds=
14046 finish_eval=
14047 shlibpath_var=
14048 shlibpath_overrides_runpath=unknown
14049 version_type=none
14050 dynamic_linker="$host_os ld.so"
14051 sys_lib_dlsearch_path_spec="/lib /usr/lib"
14052 if test "$GCC" = yes; then
14053   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14054   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
14055     # if the path contains ";" then we assume it to be the separator
14056     # otherwise default to the standard path separator (i.e. ":") - it is
14057     # assumed that no part of a normal pathname contains ";" but that should
14058     # okay in the real world where ";" in dirpaths is itself problematic.
14059     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14060   else
14061     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
14062   fi
14063 else
14064   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
14065 fi
14066 need_lib_prefix=unknown
14067 hardcode_into_libs=no
14068
14069 # when you set need_version to no, make sure it does not cause -set_version
14070 # flags to be left without arguments
14071 need_version=unknown
14072
14073 case $host_os in
14074 aix3*)
14075   version_type=linux
14076   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14077   shlibpath_var=LIBPATH
14078
14079   # AIX 3 has no versioning support, so we append a major version to the name.
14080   soname_spec='${libname}${release}${shared_ext}$major'
14081   ;;
14082
14083 aix4* | aix5*)
14084   version_type=linux
14085   need_lib_prefix=no
14086   need_version=no
14087   hardcode_into_libs=yes
14088   if test "$host_cpu" = ia64; then
14089     # AIX 5 supports IA64
14090     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14091     shlibpath_var=LD_LIBRARY_PATH
14092   else
14093     # With GCC up to 2.95.x, collect2 would create an import file
14094     # for dependence libraries.  The import file would start with
14095     # the line `#! .'.  This would cause the generated library to
14096     # depend on `.', always an invalid library.  This was fixed in
14097     # development snapshots of GCC prior to 3.0.
14098     case $host_os in
14099       aix4 | aix4.[01] | aix4.[01].*)
14100       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14101            echo ' yes '
14102            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
14103         :
14104       else
14105         can_build_shared=no
14106       fi
14107       ;;
14108     esac
14109     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14110     # soname into executable. Probably we can add versioning support to
14111     # collect2, so additional links can be useful in future.
14112     if test "$aix_use_runtimelinking" = yes; then
14113       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14114       # instead of lib<name>.a to let people know that these are not
14115       # typical AIX shared libraries.
14116       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14117     else
14118       # We preserve .a as extension for shared libraries through AIX4.2
14119       # and later when we are not doing run time linking.
14120       library_names_spec='${libname}${release}.a $libname.a'
14121       soname_spec='${libname}${release}${shared_ext}$major'
14122     fi
14123     shlibpath_var=LIBPATH
14124   fi
14125   ;;
14126
14127 amigaos*)
14128   library_names_spec='$libname.ixlibrary $libname.a'
14129   # Create ${libname}_ixlibrary.a entries in /sys/libs.
14130   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'
14131   ;;
14132
14133 beos*)
14134   library_names_spec='${libname}${shared_ext}'
14135   dynamic_linker="$host_os ld.so"
14136   shlibpath_var=LIBRARY_PATH
14137   ;;
14138
14139 bsdi4*)
14140   version_type=linux
14141   need_version=no
14142   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14143   soname_spec='${libname}${release}${shared_ext}$major'
14144   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14145   shlibpath_var=LD_LIBRARY_PATH
14146   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14147   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14148   # the default ld.so.conf also contains /usr/contrib/lib and
14149   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14150   # libtool to hard-code these into programs
14151   ;;
14152
14153 cygwin* | mingw* | pw32*)
14154   version_type=windows
14155   shrext=".dll"
14156   need_version=no
14157   need_lib_prefix=no
14158
14159   case $GCC,$host_os in
14160   yes,cygwin* | yes,mingw* | yes,pw32*)
14161     library_names_spec='$libname.dll.a'
14162     # DLL is installed to $(libdir)/../bin by postinstall_cmds
14163     postinstall_cmds='base_file=`basename \${file}`~
14164       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
14165       dldir=$destdir/`dirname \$dlpath`~
14166       test -d \$dldir || mkdir -p \$dldir~
14167       $install_prog $dir/$dlname \$dldir/$dlname'
14168     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14169       dlpath=$dir/\$dldll~
14170        $rm \$dlpath'
14171     shlibpath_overrides_runpath=yes
14172
14173     case $host_os in
14174     cygwin*)
14175       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14176       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14177       sys_lib_search_path_spec="/lib /lib/w32api /usr/lib /usr/local/lib"
14178       ;;
14179     mingw*)
14180       # MinGW DLLs use traditional 'lib' prefix
14181       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14182       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14183       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
14184         # It is most probably a Windows format PATH printed by
14185         # mingw gcc, but we are running on Cygwin. Gcc prints its search
14186         # path with ; separators, and with drive letters. We can handle the
14187         # drive letters (cygwin fileutils understands them), so leave them,
14188         # especially as we might pass files found there to a mingw objdump,
14189         # which wouldn't understand a cygwinified path. Ahh.
14190         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14191       else
14192         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
14193       fi
14194       ;;
14195     pw32*)
14196       # pw32 DLLs use 'pw' prefix rather than 'lib'
14197       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
14198       ;;
14199     esac
14200     ;;
14201
14202   *)
14203     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14204     ;;
14205   esac
14206   dynamic_linker='Win32 ld.exe'
14207   # FIXME: first we should search . and the directory the executable is in
14208   shlibpath_var=PATH
14209   ;;
14210
14211 darwin* | rhapsody*)
14212   dynamic_linker="$host_os dyld"
14213   version_type=darwin
14214   need_lib_prefix=no
14215   need_version=no
14216   # FIXME: Relying on posixy $() will cause problems for
14217   #        cross-compilation, but unfortunately the echo tests do not
14218   #        yet detect zsh echo's removal of \ escapes.
14219   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14220   soname_spec='${libname}${release}${major}$shared_ext'
14221   shlibpath_overrides_runpath=yes
14222   shlibpath_var=DYLD_LIBRARY_PATH
14223   shrext='$(test .$module = .yes && echo .so || echo .dylib)'
14224   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
14225   if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
14226   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"`
14227   fi
14228   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14229   ;;
14230
14231 dgux*)
14232   version_type=linux
14233   need_lib_prefix=no
14234   need_version=no
14235   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14236   soname_spec='${libname}${release}${shared_ext}$major'
14237   shlibpath_var=LD_LIBRARY_PATH
14238   ;;
14239
14240 freebsd1*)
14241   dynamic_linker=no
14242   ;;
14243
14244 freebsd*)
14245   objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
14246   version_type=freebsd-$objformat
14247   case $version_type in
14248     freebsd-elf*)
14249       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14250       need_version=no
14251       need_lib_prefix=no
14252       ;;
14253     freebsd-*)
14254       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
14255       need_version=yes
14256       ;;
14257   esac
14258   shlibpath_var=LD_LIBRARY_PATH
14259   case $host_os in
14260   freebsd2*)
14261     shlibpath_overrides_runpath=yes
14262     ;;
14263   freebsd3.01* | freebsdelf3.01*)
14264     shlibpath_overrides_runpath=yes
14265     hardcode_into_libs=yes
14266     ;;
14267   *) # from 3.2 on
14268     shlibpath_overrides_runpath=no
14269     hardcode_into_libs=yes
14270     ;;
14271   esac
14272   ;;
14273
14274 gnu*)
14275   version_type=linux
14276   need_lib_prefix=no
14277   need_version=no
14278   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14279   soname_spec='${libname}${release}${shared_ext}$major'
14280   shlibpath_var=LD_LIBRARY_PATH
14281   hardcode_into_libs=yes
14282   ;;
14283
14284 hpux9* | hpux10* | hpux11*)
14285   # Give a soname corresponding to the major version so that dld.sl refuses to
14286   # link against other versions.
14287   version_type=sunos
14288   need_lib_prefix=no
14289   need_version=no
14290   case "$host_cpu" in
14291   ia64*)
14292     shrext='.so'
14293     hardcode_into_libs=yes
14294     dynamic_linker="$host_os dld.so"
14295     shlibpath_var=LD_LIBRARY_PATH
14296     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14297     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14298     soname_spec='${libname}${release}${shared_ext}$major'
14299     if test "X$HPUX_IA64_MODE" = X32; then
14300       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14301     else
14302       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14303     fi
14304     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14305     ;;
14306    hppa*64*)
14307      shrext='.sl'
14308      hardcode_into_libs=yes
14309      dynamic_linker="$host_os dld.sl"
14310      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14311      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14312      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14313      soname_spec='${libname}${release}${shared_ext}$major'
14314      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14315      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14316      ;;
14317    *)
14318     shrext='.sl'
14319     dynamic_linker="$host_os dld.sl"
14320     shlibpath_var=SHLIB_PATH
14321     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14322     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14323     soname_spec='${libname}${release}${shared_ext}$major'
14324     ;;
14325   esac
14326   # HP-UX runs *really* slowly unless shared libraries are mode 555.
14327   postinstall_cmds='chmod 555 $lib'
14328   ;;
14329
14330 irix5* | irix6* | nonstopux*)
14331   case $host_os in
14332     nonstopux*) version_type=nonstopux ;;
14333     *)
14334         if test "$lt_cv_prog_gnu_ld" = yes; then
14335                 version_type=linux
14336         else
14337                 version_type=irix
14338         fi ;;
14339   esac
14340   need_lib_prefix=no
14341   need_version=no
14342   soname_spec='${libname}${release}${shared_ext}$major'
14343   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
14344   case $host_os in
14345   irix5* | nonstopux*)
14346     libsuff= shlibsuff=
14347     ;;
14348   *)
14349     case $LD in # libtool.m4 will add one of these switches to LD
14350     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14351       libsuff= shlibsuff= libmagic=32-bit;;
14352     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14353       libsuff=32 shlibsuff=N32 libmagic=N32;;
14354     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14355       libsuff=64 shlibsuff=64 libmagic=64-bit;;
14356     *) libsuff= shlibsuff= libmagic=never-match;;
14357     esac
14358     ;;
14359   esac
14360   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14361   shlibpath_overrides_runpath=no
14362   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14363   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
14364   hardcode_into_libs=yes
14365   ;;
14366
14367 # No shared lib support for Linux oldld, aout, or coff.
14368 linux*oldld* | linux*aout* | linux*coff*)
14369   dynamic_linker=no
14370   ;;
14371
14372 # This must be Linux ELF.
14373 linux*)
14374   version_type=linux
14375   need_lib_prefix=no
14376   need_version=no
14377   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14378   soname_spec='${libname}${release}${shared_ext}$major'
14379   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14380   shlibpath_var=LD_LIBRARY_PATH
14381   shlibpath_overrides_runpath=no
14382   # This implies no fast_install, which is unacceptable.
14383   # Some rework will be needed to allow for fast_install
14384   # before this can be enabled.
14385   hardcode_into_libs=yes
14386
14387   # We used to test for /lib/ld.so.1 and disable shared libraries on
14388   # powerpc, because MkLinux only supported shared libraries with the
14389   # GNU dynamic linker.  Since this was broken with cross compilers,
14390   # most powerpc-linux boxes support dynamic linking these days and
14391   # people can always --disable-shared, the test was removed, and we
14392   # assume the GNU/Linux dynamic linker is in use.
14393   dynamic_linker='GNU/Linux ld.so'
14394   ;;
14395
14396 netbsd*)
14397   version_type=sunos
14398   need_lib_prefix=no
14399   need_version=no
14400   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14401     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14402     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14403     dynamic_linker='NetBSD (a.out) ld.so'
14404   else
14405     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
14406     soname_spec='${libname}${release}${shared_ext}$major'
14407     dynamic_linker='NetBSD ld.elf_so'
14408   fi
14409   shlibpath_var=LD_LIBRARY_PATH
14410   shlibpath_overrides_runpath=yes
14411   hardcode_into_libs=yes
14412   ;;
14413
14414 newsos6)
14415   version_type=linux
14416   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14417   shlibpath_var=LD_LIBRARY_PATH
14418   shlibpath_overrides_runpath=yes
14419   ;;
14420
14421 nto-qnx)
14422   version_type=linux
14423   need_lib_prefix=no
14424   need_version=no
14425   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14426   soname_spec='${libname}${release}${shared_ext}$major'
14427   shlibpath_var=LD_LIBRARY_PATH
14428   shlibpath_overrides_runpath=yes
14429   ;;
14430
14431 openbsd*)
14432   version_type=sunos
14433   need_lib_prefix=no
14434   need_version=no
14435   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14436   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14437   shlibpath_var=LD_LIBRARY_PATH
14438   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14439     case $host_os in
14440       openbsd2.[89] | openbsd2.[89].*)
14441         shlibpath_overrides_runpath=no
14442         ;;
14443       *)
14444         shlibpath_overrides_runpath=yes
14445         ;;
14446       esac
14447   else
14448     shlibpath_overrides_runpath=yes
14449   fi
14450   ;;
14451
14452 os2*)
14453   libname_spec='$name'
14454   shrext=".dll"
14455   need_lib_prefix=no
14456   library_names_spec='$libname${shared_ext} $libname.a'
14457   dynamic_linker='OS/2 ld.exe'
14458   shlibpath_var=LIBPATH
14459   ;;
14460
14461 osf3* | osf4* | osf5*)
14462   version_type=osf
14463   need_lib_prefix=no
14464   need_version=no
14465   soname_spec='${libname}${release}${shared_ext}$major'
14466   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14467   shlibpath_var=LD_LIBRARY_PATH
14468   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14469   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
14470   ;;
14471
14472 sco3.2v5*)
14473   version_type=osf
14474   soname_spec='${libname}${release}${shared_ext}$major'
14475   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14476   shlibpath_var=LD_LIBRARY_PATH
14477   ;;
14478
14479 solaris*)
14480   version_type=linux
14481   need_lib_prefix=no
14482   need_version=no
14483   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14484   soname_spec='${libname}${release}${shared_ext}$major'
14485   shlibpath_var=LD_LIBRARY_PATH
14486   shlibpath_overrides_runpath=yes
14487   hardcode_into_libs=yes
14488   # ldd complains unless libraries are executable
14489   postinstall_cmds='chmod +x $lib'
14490   ;;
14491
14492 sunos4*)
14493   version_type=sunos
14494   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14495   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14496   shlibpath_var=LD_LIBRARY_PATH
14497   shlibpath_overrides_runpath=yes
14498   if test "$with_gnu_ld" = yes; then
14499     need_lib_prefix=no
14500   fi
14501   need_version=yes
14502   ;;
14503
14504 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
14505   version_type=linux
14506   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14507   soname_spec='${libname}${release}${shared_ext}$major'
14508   shlibpath_var=LD_LIBRARY_PATH
14509   case $host_vendor in
14510     sni)
14511       shlibpath_overrides_runpath=no
14512       need_lib_prefix=no
14513       export_dynamic_flag_spec='${wl}-Blargedynsym'
14514       runpath_var=LD_RUN_PATH
14515       ;;
14516     siemens)
14517       need_lib_prefix=no
14518       ;;
14519     motorola)
14520       need_lib_prefix=no
14521       need_version=no
14522       shlibpath_overrides_runpath=no
14523       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14524       ;;
14525   esac
14526   ;;
14527
14528 sysv4*MP*)
14529   if test -d /usr/nec ;then
14530     version_type=linux
14531     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
14532     soname_spec='$libname${shared_ext}.$major'
14533     shlibpath_var=LD_LIBRARY_PATH
14534   fi
14535   ;;
14536
14537 uts4*)
14538   version_type=linux
14539   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14540   soname_spec='${libname}${release}${shared_ext}$major'
14541   shlibpath_var=LD_LIBRARY_PATH
14542   ;;
14543
14544 *)
14545   dynamic_linker=no
14546   ;;
14547 esac
14548 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
14549 echo "${ECHO_T}$dynamic_linker" >&6
14550 test "$dynamic_linker" = no && can_build_shared=no
14551
14552
14553 # The else clause should only fire when bootstrapping the
14554 # libtool distribution, otherwise you forgot to ship ltmain.sh
14555 # with your package, and you will get complaints that there are
14556 # no rules to generate ltmain.sh.
14557 if test -f "$ltmain"; then
14558   # See if we are running on zsh, and set the options which allow our commands through
14559   # without removal of \ escapes.
14560   if test -n "${ZSH_VERSION+set}" ; then
14561     setopt NO_GLOB_SUBST
14562   fi
14563   # Now quote all the things that may contain metacharacters while being
14564   # careful not to overquote the AC_SUBSTed values.  We take copies of the
14565   # variables and quote the copies for generation of the libtool script.
14566   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \
14567     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
14568     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
14569     deplibs_check_method reload_flag reload_cmds need_locks \
14570     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
14571     lt_cv_sys_global_symbol_to_c_name_address \
14572     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
14573     old_postinstall_cmds old_postuninstall_cmds \
14574     compiler_F77 \
14575     CC_F77 \
14576     LD_F77 \
14577     lt_prog_compiler_wl_F77 \
14578     lt_prog_compiler_pic_F77 \
14579     lt_prog_compiler_static_F77 \
14580     lt_prog_compiler_no_builtin_flag_F77 \
14581     export_dynamic_flag_spec_F77 \
14582     thread_safe_flag_spec_F77 \
14583     whole_archive_flag_spec_F77 \
14584     enable_shared_with_static_runtimes_F77 \
14585     old_archive_cmds_F77 \
14586     old_archive_from_new_cmds_F77 \
14587     predep_objects_F77 \
14588     postdep_objects_F77 \
14589     predeps_F77 \
14590     postdeps_F77 \
14591     compiler_lib_search_path_F77 \
14592     archive_cmds_F77 \
14593     archive_expsym_cmds_F77 \
14594     postinstall_cmds_F77 \
14595     postuninstall_cmds_F77 \
14596     old_archive_from_expsyms_cmds_F77 \
14597     allow_undefined_flag_F77 \
14598     no_undefined_flag_F77 \
14599     export_symbols_cmds_F77 \
14600     hardcode_libdir_flag_spec_F77 \
14601     hardcode_libdir_flag_spec_ld_F77 \
14602     hardcode_libdir_separator_F77 \
14603     hardcode_automatic_F77 \
14604     module_cmds_F77 \
14605     module_expsym_cmds_F77 \
14606     lt_cv_prog_compiler_c_o_F77 \
14607     exclude_expsyms_F77 \
14608     include_expsyms_F77; do
14609
14610     case $var in
14611     old_archive_cmds_F77 | \
14612     old_archive_from_new_cmds_F77 | \
14613     archive_cmds_F77 | \
14614     archive_expsym_cmds_F77 | \
14615     module_cmds_F77 | \
14616     module_expsym_cmds_F77 | \
14617     old_archive_from_expsyms_cmds_F77 | \
14618     export_symbols_cmds_F77 | \
14619     extract_expsyms_cmds | reload_cmds | finish_cmds | \
14620     postinstall_cmds | postuninstall_cmds | \
14621     old_postinstall_cmds | old_postuninstall_cmds | \
14622     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
14623       # Double-quote double-evaled strings.
14624       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
14625       ;;
14626     *)
14627       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
14628       ;;
14629     esac
14630   done
14631
14632   case $lt_echo in
14633   *'\$0 --fallback-echo"')
14634     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
14635     ;;
14636   esac
14637
14638 cfgfile="$ofile"
14639
14640   cat <<__EOF__ >> "$cfgfile"
14641 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
14642
14643 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
14644
14645 # Shell to use when invoking shell scripts.
14646 SHELL=$lt_SHELL
14647
14648 # Whether or not to build shared libraries.
14649 build_libtool_libs=$enable_shared
14650
14651 # Whether or not to build static libraries.
14652 build_old_libs=$enable_static
14653
14654 # Whether or not to add -lc for building shared libraries.
14655 build_libtool_need_lc=$archive_cmds_need_lc_F77
14656
14657 # Whether or not to disallow shared libs when runtime libs are static
14658 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
14659
14660 # Whether or not to optimize for fast installation.
14661 fast_install=$enable_fast_install
14662
14663 # The host system.
14664 host_alias=$host_alias
14665 host=$host
14666
14667 # An echo program that does not interpret backslashes.
14668 echo=$lt_echo
14669
14670 # The archiver.
14671 AR=$lt_AR
14672 AR_FLAGS=$lt_AR_FLAGS
14673
14674 # A C compiler.
14675 LTCC=$lt_LTCC
14676
14677 # A language-specific compiler.
14678 CC=$lt_compiler_F77
14679
14680 # Is the compiler the GNU C compiler?
14681 with_gcc=$GCC_F77
14682
14683 # An ERE matcher.
14684 EGREP=$lt_EGREP
14685
14686 # The linker used to build libraries.
14687 LD=$lt_LD_F77
14688
14689 # Whether we need hard or soft links.
14690 LN_S=$lt_LN_S
14691
14692 # A BSD-compatible nm program.
14693 NM=$lt_NM
14694
14695 # A symbol stripping program
14696 STRIP=$STRIP
14697
14698 # Used to examine libraries when file_magic_cmd begins "file"
14699 MAGIC_CMD=$MAGIC_CMD
14700
14701 # Used on cygwin: DLL creation program.
14702 DLLTOOL="$DLLTOOL"
14703
14704 # Used on cygwin: object dumper.
14705 OBJDUMP="$OBJDUMP"
14706
14707 # Used on cygwin: assembler.
14708 AS="$AS"
14709
14710 # The name of the directory that contains temporary libtool files.
14711 objdir=$objdir
14712
14713 # How to create reloadable object files.
14714 reload_flag=$lt_reload_flag
14715 reload_cmds=$lt_reload_cmds
14716
14717 # How to pass a linker flag through the compiler.
14718 wl=$lt_lt_prog_compiler_wl_F77
14719
14720 # Object file suffix (normally "o").
14721 objext="$ac_objext"
14722
14723 # Old archive suffix (normally "a").
14724 libext="$libext"
14725
14726 # Shared library suffix (normally ".so").
14727 shrext='$shrext'
14728
14729 # Executable file suffix (normally "").
14730 exeext="$exeext"
14731
14732 # Additional compiler flags for building library objects.
14733 pic_flag=$lt_lt_prog_compiler_pic_F77
14734 pic_mode=$pic_mode
14735
14736 # What is the maximum length of a command?
14737 max_cmd_len=$lt_cv_sys_max_cmd_len
14738
14739 # Does compiler simultaneously support -c and -o options?
14740 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
14741
14742 # Must we lock files when doing compilation ?
14743 need_locks=$lt_need_locks
14744
14745 # Do we need the lib prefix for modules?
14746 need_lib_prefix=$need_lib_prefix
14747
14748 # Do we need a version for libraries?
14749 need_version=$need_version
14750
14751 # Whether dlopen is supported.
14752 dlopen_support=$enable_dlopen
14753
14754 # Whether dlopen of programs is supported.
14755 dlopen_self=$enable_dlopen_self
14756
14757 # Whether dlopen of statically linked programs is supported.
14758 dlopen_self_static=$enable_dlopen_self_static
14759
14760 # Compiler flag to prevent dynamic linking.
14761 link_static_flag=$lt_lt_prog_compiler_static_F77
14762
14763 # Compiler flag to turn off builtin functions.
14764 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
14765
14766 # Compiler flag to allow reflexive dlopens.
14767 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
14768
14769 # Compiler flag to generate shared objects directly from archives.
14770 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
14771
14772 # Compiler flag to generate thread-safe objects.
14773 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
14774
14775 # Library versioning type.
14776 version_type=$version_type
14777
14778 # Format of library name prefix.
14779 libname_spec=$lt_libname_spec
14780
14781 # List of archive names.  First name is the real one, the rest are links.
14782 # The last name is the one that the linker finds with -lNAME.
14783 library_names_spec=$lt_library_names_spec
14784
14785 # The coded name of the library, if different from the real name.
14786 soname_spec=$lt_soname_spec
14787
14788 # Commands used to build and install an old-style archive.
14789 RANLIB=$lt_RANLIB
14790 old_archive_cmds=$lt_old_archive_cmds_F77
14791 old_postinstall_cmds=$lt_old_postinstall_cmds
14792 old_postuninstall_cmds=$lt_old_postuninstall_cmds
14793
14794 # Create an old-style archive from a shared archive.
14795 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
14796
14797 # Create a temporary old-style archive to link instead of a shared archive.
14798 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
14799
14800 # Commands used to build and install a shared archive.
14801 archive_cmds=$lt_archive_cmds_F77
14802 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
14803 postinstall_cmds=$lt_postinstall_cmds
14804 postuninstall_cmds=$lt_postuninstall_cmds
14805
14806 # Commands used to build a loadable module (assumed same as above if empty)
14807 module_cmds=$lt_module_cmds_F77
14808 module_expsym_cmds=$lt_module_expsym_cmds_F77
14809
14810 # Commands to strip libraries.
14811 old_striplib=$lt_old_striplib
14812 striplib=$lt_striplib
14813
14814 # Dependencies to place before the objects being linked to create a
14815 # shared library.
14816 predep_objects=$lt_predep_objects_F77
14817
14818 # Dependencies to place after the objects being linked to create a
14819 # shared library.
14820 postdep_objects=$lt_postdep_objects_F77
14821
14822 # Dependencies to place before the objects being linked to create a
14823 # shared library.
14824 predeps=$lt_predeps_F77
14825
14826 # Dependencies to place after the objects being linked to create a
14827 # shared library.
14828 postdeps=$lt_postdeps_F77
14829
14830 # The library search path used internally by the compiler when linking
14831 # a shared library.
14832 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
14833
14834 # Method to check whether dependent libraries are shared objects.
14835 deplibs_check_method=$lt_deplibs_check_method
14836
14837 # Command to use when deplibs_check_method == file_magic.
14838 file_magic_cmd=$lt_file_magic_cmd
14839
14840 # Flag that allows shared libraries with undefined symbols to be built.
14841 allow_undefined_flag=$lt_allow_undefined_flag_F77
14842
14843 # Flag that forces no undefined symbols.
14844 no_undefined_flag=$lt_no_undefined_flag_F77
14845
14846 # Commands used to finish a libtool library installation in a directory.
14847 finish_cmds=$lt_finish_cmds
14848
14849 # Same as above, but a single script fragment to be evaled but not shown.
14850 finish_eval=$lt_finish_eval
14851
14852 # Take the output of nm and produce a listing of raw symbols and C names.
14853 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
14854
14855 # Transform the output of nm in a proper C declaration
14856 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
14857
14858 # Transform the output of nm in a C name address pair
14859 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
14860
14861 # This is the shared library runtime path variable.
14862 runpath_var=$runpath_var
14863
14864 # This is the shared library path variable.
14865 shlibpath_var=$shlibpath_var
14866
14867 # Is shlibpath searched before the hard-coded library search path?
14868 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
14869
14870 # How to hardcode a shared library path into an executable.
14871 hardcode_action=$hardcode_action_F77
14872
14873 # Whether we should hardcode library paths into libraries.
14874 hardcode_into_libs=$hardcode_into_libs
14875
14876 # Flag to hardcode \$libdir into a binary during linking.
14877 # This must work even if \$libdir does not exist.
14878 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
14879
14880 # If ld is used when linking, flag to hardcode \$libdir into
14881 # a binary during linking. This must work even if \$libdir does
14882 # not exist.
14883 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
14884
14885 # Whether we need a single -rpath flag with a separated argument.
14886 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
14887
14888 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
14889 # resulting binary.
14890 hardcode_direct=$hardcode_direct_F77
14891
14892 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
14893 # resulting binary.
14894 hardcode_minus_L=$hardcode_minus_L_F77
14895
14896 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
14897 # the resulting binary.
14898 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
14899
14900 # Set to yes if building a shared library automatically hardcodes DIR into the library
14901 # and all subsequent libraries and executables linked against it.
14902 hardcode_automatic=$hardcode_automatic_F77
14903
14904 # Variables whose values should be saved in libtool wrapper scripts and
14905 # restored at relink time.
14906 variables_saved_for_relink="$variables_saved_for_relink"
14907
14908 # Whether libtool must link a program against all its dependency libraries.
14909 link_all_deplibs=$link_all_deplibs_F77
14910
14911 # Compile-time system search path for libraries
14912 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
14913
14914 # Run-time system search path for libraries
14915 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
14916
14917 # Fix the shell variable \$srcfile for the compiler.
14918 fix_srcfile_path="$fix_srcfile_path_F77"
14919
14920 # Set to yes if exported symbols are required.
14921 always_export_symbols=$always_export_symbols_F77
14922
14923 # The commands to list exported symbols.
14924 export_symbols_cmds=$lt_export_symbols_cmds_F77
14925
14926 # The commands to extract the exported symbol list from a shared archive.
14927 extract_expsyms_cmds=$lt_extract_expsyms_cmds
14928
14929 # Symbols that should not be listed in the preloaded symbols.
14930 exclude_expsyms=$lt_exclude_expsyms_F77
14931
14932 # Symbols that must always be exported.
14933 include_expsyms=$lt_include_expsyms_F77
14934
14935 # ### END LIBTOOL TAG CONFIG: $tagname
14936
14937 __EOF__
14938
14939
14940 else
14941   # If there is no Makefile yet, we rely on a make rule to execute
14942   # `config.status --recheck' to rerun these tests and create the
14943   # libtool script then.
14944   test -f Makefile && make "$ltmain"
14945 fi
14946
14947
14948 ac_ext=c
14949 ac_cpp='$CPP $CPPFLAGS'
14950 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14951 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14952 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14953
14954 CC="$lt_save_CC"
14955
14956         else
14957           tagname=""
14958         fi
14959         ;;
14960
14961       GCJ)
14962         if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
14963
14964
14965
14966 # Source file extension for Java test sources.
14967 ac_ext=java
14968
14969 # Object file extension for compiled Java test sources.
14970 objext=o
14971 objext_GCJ=$objext
14972
14973 # Code to be used in simple compile tests
14974 lt_simple_compile_test_code="class foo {}\n"
14975
14976 # Code to be used in simple link tests
14977 lt_simple_link_test_code='public class conftest { public static void main(String argv) {}; }\n'
14978
14979 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
14980
14981 # If no C compiler was specified, use CC.
14982 LTCC=${LTCC-"$CC"}
14983
14984 # Allow CC to be a program name with arguments.
14985 compiler=$CC
14986
14987
14988 # Allow CC to be a program name with arguments.
14989 lt_save_CC="$CC"
14990 CC=${GCJ-"gcj"}
14991 compiler=$CC
14992 compiler_GCJ=$CC
14993
14994 # GCJ did not exist at the time GCC didn't implicitly link libc in.
14995 archive_cmds_need_lc_GCJ=no
14996
14997 ## CAVEAT EMPTOR:
14998 ## There is no encapsulation within the following macros, do not change
14999 ## the running order or otherwise move them around unless you know exactly
15000 ## what you are doing...
15001
15002 lt_prog_compiler_no_builtin_flag_GCJ=
15003
15004 if test "$GCC" = yes; then
15005   lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
15006
15007   echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
15008 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
15009 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
15010   echo $ECHO_N "(cached) $ECHO_C" >&6
15011 else
15012   lt_cv_prog_compiler_rtti_exceptions=no
15013   ac_outfile=conftest.$ac_objext
15014    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15015    lt_compiler_flag="-fno-rtti -fno-exceptions"
15016    # Insert the option either (1) after the last *FLAGS variable, or
15017    # (2) before a word containing "conftest.", or (3) at the end.
15018    # Note that $ac_compile itself does not contain backslashes and begins
15019    # with a dollar sign (not a hyphen), so the echo should work correctly.
15020    # The option is referenced via a variable to avoid confusing sed.
15021    lt_compile=`echo "$ac_compile" | $SED \
15022    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
15023    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15024    -e 's:$: $lt_compiler_flag:'`
15025    (eval echo "\"\$as_me:15022: $lt_compile\"" >&5)
15026    (eval "$lt_compile" 2>conftest.err)
15027    ac_status=$?
15028    cat conftest.err >&5
15029    echo "$as_me:15026: \$? = $ac_status" >&5
15030    if (exit $ac_status) && test -s "$ac_outfile"; then
15031      # The compiler can only warn and ignore the option if not recognized
15032      # So say no if there are warnings
15033      if test ! -s conftest.err; then
15034        lt_cv_prog_compiler_rtti_exceptions=yes
15035      fi
15036    fi
15037    $rm conftest*
15038
15039 fi
15040 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
15041 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
15042
15043 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
15044     lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
15045 else
15046     :
15047 fi
15048
15049 fi
15050
15051 lt_prog_compiler_wl_GCJ=
15052 lt_prog_compiler_pic_GCJ=
15053 lt_prog_compiler_static_GCJ=
15054
15055 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
15056 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
15057
15058   if test "$GCC" = yes; then
15059     lt_prog_compiler_wl_GCJ='-Wl,'
15060     lt_prog_compiler_static_GCJ='-static'
15061
15062     case $host_os in
15063       aix*)
15064       # All AIX code is PIC.
15065       if test "$host_cpu" = ia64; then
15066         # AIX 5 now supports IA64 processor
15067         lt_prog_compiler_static_GCJ='-Bstatic'
15068       fi
15069       ;;
15070
15071     amigaos*)
15072       # FIXME: we need at least 68020 code to build shared libraries, but
15073       # adding the `-m68020' flag to GCC prevents building anything better,
15074       # like `-m68040'.
15075       lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
15076       ;;
15077
15078     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
15079       # PIC is the default for these OSes.
15080       ;;
15081
15082     mingw* | pw32* | os2*)
15083       # This hack is so that the source file can tell whether it is being
15084       # built for inclusion in a dll (and should export symbols for example).
15085       lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
15086       ;;
15087
15088     darwin* | rhapsody*)
15089       # PIC is the default on this platform
15090       # Common symbols not allowed in MH_DYLIB files
15091       lt_prog_compiler_pic_GCJ='-fno-common'
15092       ;;
15093
15094     msdosdjgpp*)
15095       # Just because we use GCC doesn't mean we suddenly get shared libraries
15096       # on systems that don't support them.
15097       lt_prog_compiler_can_build_shared_GCJ=no
15098       enable_shared=no
15099       ;;
15100
15101     sysv4*MP*)
15102       if test -d /usr/nec; then
15103         lt_prog_compiler_pic_GCJ=-Kconform_pic
15104       fi
15105       ;;
15106
15107     hpux*)
15108       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15109       # not for PA HP-UX.
15110       case "$host_cpu" in
15111       hppa*64*|ia64*)
15112         # +Z the default
15113         ;;
15114       *)
15115         lt_prog_compiler_pic_GCJ='-fPIC'
15116         ;;
15117       esac
15118       ;;
15119
15120     *)
15121       lt_prog_compiler_pic_GCJ='-fPIC'
15122       ;;
15123     esac
15124   else
15125     # PORTME Check for flag to pass linker flags through the system compiler.
15126     case $host_os in
15127     aix*)
15128       lt_prog_compiler_wl_GCJ='-Wl,'
15129       if test "$host_cpu" = ia64; then
15130         # AIX 5 now supports IA64 processor
15131         lt_prog_compiler_static_GCJ='-Bstatic'
15132       else
15133         lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
15134       fi
15135       ;;
15136
15137     mingw* | pw32* | os2*)
15138       # This hack is so that the source file can tell whether it is being
15139       # built for inclusion in a dll (and should export symbols for example).
15140       lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
15141       ;;
15142
15143     hpux9* | hpux10* | hpux11*)
15144       lt_prog_compiler_wl_GCJ='-Wl,'
15145       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15146       # not for PA HP-UX.
15147       case "$host_cpu" in
15148       hppa*64*|ia64*)
15149         # +Z the default
15150         ;;
15151       *)
15152         lt_prog_compiler_pic_GCJ='+Z'
15153         ;;
15154       esac
15155       # Is there a better lt_prog_compiler_static that works with the bundled CC?
15156       lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
15157       ;;
15158
15159     irix5* | irix6* | nonstopux*)
15160       lt_prog_compiler_wl_GCJ='-Wl,'
15161       # PIC (with -KPIC) is the default.
15162       lt_prog_compiler_static_GCJ='-non_shared'
15163       ;;
15164
15165     newsos6)
15166       lt_prog_compiler_pic_GCJ='-KPIC'
15167       lt_prog_compiler_static_GCJ='-Bstatic'
15168       ;;
15169
15170     linux*)
15171       case $CC in
15172       icc|ecc)
15173         lt_prog_compiler_wl_GCJ='-Wl,'
15174         lt_prog_compiler_pic_GCJ='-KPIC'
15175         lt_prog_compiler_static_GCJ='-static'
15176         ;;
15177       ccc)
15178         lt_prog_compiler_wl_GCJ='-Wl,'
15179         # All Alpha code is PIC.
15180         lt_prog_compiler_static_GCJ='-non_shared'
15181         ;;
15182       esac
15183       ;;
15184
15185     osf3* | osf4* | osf5*)
15186       lt_prog_compiler_wl_GCJ='-Wl,'
15187       # All OSF/1 code is PIC.
15188       lt_prog_compiler_static_GCJ='-non_shared'
15189       ;;
15190
15191     sco3.2v5*)
15192       lt_prog_compiler_pic_GCJ='-Kpic'
15193       lt_prog_compiler_static_GCJ='-dn'
15194       ;;
15195
15196     solaris*)
15197       lt_prog_compiler_wl_GCJ='-Wl,'
15198       lt_prog_compiler_pic_GCJ='-KPIC'
15199       lt_prog_compiler_static_GCJ='-Bstatic'
15200       ;;
15201
15202     sunos4*)
15203       lt_prog_compiler_wl_GCJ='-Qoption ld '
15204       lt_prog_compiler_pic_GCJ='-PIC'
15205       lt_prog_compiler_static_GCJ='-Bstatic'
15206       ;;
15207
15208     sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
15209       lt_prog_compiler_wl_GCJ='-Wl,'
15210       lt_prog_compiler_pic_GCJ='-KPIC'
15211       lt_prog_compiler_static_GCJ='-Bstatic'
15212       ;;
15213
15214     sysv4*MP*)
15215       if test -d /usr/nec ;then
15216         lt_prog_compiler_pic_GCJ='-Kconform_pic'
15217         lt_prog_compiler_static_GCJ='-Bstatic'
15218       fi
15219       ;;
15220
15221     uts4*)
15222       lt_prog_compiler_pic_GCJ='-pic'
15223       lt_prog_compiler_static_GCJ='-Bstatic'
15224       ;;
15225
15226     *)
15227       lt_prog_compiler_can_build_shared_GCJ=no
15228       ;;
15229     esac
15230   fi
15231
15232 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
15233 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6
15234
15235 #
15236 # Check to make sure the PIC flag actually works.
15237 #
15238 if test -n "$lt_prog_compiler_pic_GCJ"; then
15239   echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
15240 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6
15241 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
15242   echo $ECHO_N "(cached) $ECHO_C" >&6
15243 else
15244   lt_prog_compiler_pic_works_GCJ=no
15245   ac_outfile=conftest.$ac_objext
15246    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15247    lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
15248    # Insert the option either (1) after the last *FLAGS variable, or
15249    # (2) before a word containing "conftest.", or (3) at the end.
15250    # Note that $ac_compile itself does not contain backslashes and begins
15251    # with a dollar sign (not a hyphen), so the echo should work correctly.
15252    # The option is referenced via a variable to avoid confusing sed.
15253    lt_compile=`echo "$ac_compile" | $SED \
15254    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
15255    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15256    -e 's:$: $lt_compiler_flag:'`
15257    (eval echo "\"\$as_me:15254: $lt_compile\"" >&5)
15258    (eval "$lt_compile" 2>conftest.err)
15259    ac_status=$?
15260    cat conftest.err >&5
15261    echo "$as_me:15258: \$? = $ac_status" >&5
15262    if (exit $ac_status) && test -s "$ac_outfile"; then
15263      # The compiler can only warn and ignore the option if not recognized
15264      # So say no if there are warnings
15265      if test ! -s conftest.err; then
15266        lt_prog_compiler_pic_works_GCJ=yes
15267      fi
15268    fi
15269    $rm conftest*
15270
15271 fi
15272 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
15273 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6
15274
15275 if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
15276     case $lt_prog_compiler_pic_GCJ in
15277      "" | " "*) ;;
15278      *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
15279      esac
15280 else
15281     lt_prog_compiler_pic_GCJ=
15282      lt_prog_compiler_can_build_shared_GCJ=no
15283 fi
15284
15285 fi
15286 case "$host_os" in
15287   # For platforms which do not support PIC, -DPIC is meaningless:
15288   *djgpp*)
15289     lt_prog_compiler_pic_GCJ=
15290     ;;
15291   *)
15292     lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
15293     ;;
15294 esac
15295
15296 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
15297 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
15298 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
15299   echo $ECHO_N "(cached) $ECHO_C" >&6
15300 else
15301   lt_cv_prog_compiler_c_o_GCJ=no
15302    $rm -r conftest 2>/dev/null
15303    mkdir conftest
15304    cd conftest
15305    mkdir out
15306    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15307
15308    # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
15309    # that will create temporary files in the current directory regardless of
15310    # the output directory.  Thus, making CWD read-only will cause this test
15311    # to fail, enabling locking or at least warning the user not to do parallel
15312    # builds.
15313    chmod -w .
15314
15315    lt_compiler_flag="-o out/conftest2.$ac_objext"
15316    # Insert the option either (1) after the last *FLAGS variable, or
15317    # (2) before a word containing "conftest.", or (3) at the end.
15318    # Note that $ac_compile itself does not contain backslashes and begins
15319    # with a dollar sign (not a hyphen), so the echo should work correctly.
15320    lt_compile=`echo "$ac_compile" | $SED \
15321    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
15322    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15323    -e 's:$: $lt_compiler_flag:'`
15324    (eval echo "\"\$as_me:15321: $lt_compile\"" >&5)
15325    (eval "$lt_compile" 2>out/conftest.err)
15326    ac_status=$?
15327    cat out/conftest.err >&5
15328    echo "$as_me:15325: \$? = $ac_status" >&5
15329    if (exit $ac_status) && test -s out/conftest2.$ac_objext
15330    then
15331      # The compiler can only warn and ignore the option if not recognized
15332      # So say no if there are warnings
15333      if test ! -s out/conftest.err; then
15334        lt_cv_prog_compiler_c_o_GCJ=yes
15335      fi
15336    fi
15337    chmod u+w .
15338    $rm conftest* out/*
15339    rmdir out
15340    cd ..
15341    rmdir conftest
15342    $rm conftest*
15343
15344 fi
15345 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
15346 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6
15347
15348
15349 hard_links="nottested"
15350 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
15351   # do not overwrite the value of need_locks provided by the user
15352   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
15353 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
15354   hard_links=yes
15355   $rm conftest*
15356   ln conftest.a conftest.b 2>/dev/null && hard_links=no
15357   touch conftest.a
15358   ln conftest.a conftest.b 2>&5 || hard_links=no
15359   ln conftest.a conftest.b 2>/dev/null && hard_links=no
15360   echo "$as_me:$LINENO: result: $hard_links" >&5
15361 echo "${ECHO_T}$hard_links" >&6
15362   if test "$hard_links" = no; then
15363     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15364 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15365     need_locks=warn
15366   fi
15367 else
15368   need_locks=no
15369 fi
15370
15371 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15372 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
15373
15374   runpath_var=
15375   allow_undefined_flag_GCJ=
15376   enable_shared_with_static_runtimes_GCJ=no
15377   archive_cmds_GCJ=
15378   archive_expsym_cmds_GCJ=
15379   old_archive_From_new_cmds_GCJ=
15380   old_archive_from_expsyms_cmds_GCJ=
15381   export_dynamic_flag_spec_GCJ=
15382   whole_archive_flag_spec_GCJ=
15383   thread_safe_flag_spec_GCJ=
15384   hardcode_libdir_flag_spec_GCJ=
15385   hardcode_libdir_flag_spec_ld_GCJ=
15386   hardcode_libdir_separator_GCJ=
15387   hardcode_direct_GCJ=no
15388   hardcode_minus_L_GCJ=no
15389   hardcode_shlibpath_var_GCJ=unsupported
15390   link_all_deplibs_GCJ=unknown
15391   hardcode_automatic_GCJ=no
15392   module_cmds_GCJ=
15393   module_expsym_cmds_GCJ=
15394   always_export_symbols_GCJ=no
15395   export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15396   # include_expsyms should be a list of space-separated symbols to be *always*
15397   # included in the symbol list
15398   include_expsyms_GCJ=
15399   # exclude_expsyms can be an extended regexp of symbols to exclude
15400   # it will be wrapped by ` (' and `)$', so one must not match beginning or
15401   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
15402   # as well as any symbol that contains `d'.
15403   exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
15404   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
15405   # platforms (ab)use it in PIC code, but their linkers get confused if
15406   # the symbol is explicitly referenced.  Since portable code cannot
15407   # rely on this symbol name, it's probably fine to never include it in
15408   # preloaded symbol tables.
15409   extract_expsyms_cmds=
15410
15411   case $host_os in
15412   cygwin* | mingw* | pw32*)
15413     # FIXME: the MSVC++ port hasn't been tested in a loooong time
15414     # When not using gcc, we currently assume that we are using
15415     # Microsoft Visual C++.
15416     if test "$GCC" != yes; then
15417       with_gnu_ld=no
15418     fi
15419     ;;
15420   openbsd*)
15421     with_gnu_ld=no
15422     ;;
15423   esac
15424
15425   ld_shlibs_GCJ=yes
15426   if test "$with_gnu_ld" = yes; then
15427     # If archive_cmds runs LD, not CC, wlarc should be empty
15428     wlarc='${wl}'
15429
15430     # See if GNU ld supports shared libraries.
15431     case $host_os in
15432     aix3* | aix4* | aix5*)
15433       # On AIX/PPC, the GNU linker is very broken
15434       if test "$host_cpu" != ia64; then
15435         ld_shlibs_GCJ=no
15436         cat <<EOF 1>&2
15437
15438 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
15439 *** to be unable to reliably create shared libraries on AIX.
15440 *** Therefore, libtool is disabling shared libraries support.  If you
15441 *** really care for shared libraries, you may want to modify your PATH
15442 *** so that a non-GNU linker is found, and then restart.
15443
15444 EOF
15445       fi
15446       ;;
15447
15448     amigaos*)
15449       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)'
15450       hardcode_libdir_flag_spec_GCJ='-L$libdir'
15451       hardcode_minus_L_GCJ=yes
15452
15453       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
15454       # that the semantics of dynamic libraries on AmigaOS, at least up
15455       # to version 4, is to share data among multiple programs linked
15456       # with the same dynamic library.  Since this doesn't match the
15457       # behavior of shared libraries on other platforms, we can't use
15458       # them.
15459       ld_shlibs_GCJ=no
15460       ;;
15461
15462     beos*)
15463       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15464         allow_undefined_flag_GCJ=unsupported
15465         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
15466         # support --undefined.  This deserves some investigation.  FIXME
15467         archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15468       else
15469         ld_shlibs_GCJ=no
15470       fi
15471       ;;
15472
15473     cygwin* | mingw* | pw32*)
15474       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
15475       # as there is no search path for DLLs.
15476       hardcode_libdir_flag_spec_GCJ='-L$libdir'
15477       allow_undefined_flag_GCJ=unsupported
15478       always_export_symbols_GCJ=no
15479       enable_shared_with_static_runtimes_GCJ=yes
15480       export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
15481
15482       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
15483         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
15484         # If the export-symbols file already is a .def file (1st line
15485         # is EXPORTS), use it as is; otherwise, prepend...
15486         archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15487           cp $export_symbols $output_objdir/$soname.def;
15488         else
15489           echo EXPORTS > $output_objdir/$soname.def;
15490           cat $export_symbols >> $output_objdir/$soname.def;
15491         fi~
15492         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
15493       else
15494         ld_shlibs=no
15495       fi
15496       ;;
15497
15498     netbsd*)
15499       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15500         archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
15501         wlarc=
15502       else
15503         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15504         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15505       fi
15506       ;;
15507
15508     solaris* | sysv5*)
15509       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
15510         ld_shlibs_GCJ=no
15511         cat <<EOF 1>&2
15512
15513 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
15514 *** create shared libraries on Solaris systems.  Therefore, libtool
15515 *** is disabling shared libraries support.  We urge you to upgrade GNU
15516 *** binutils to release 2.9.1 or newer.  Another option is to modify
15517 *** your PATH or compiler configuration so that the native linker is
15518 *** used, and then restart.
15519
15520 EOF
15521       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15522         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15523         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15524       else
15525         ld_shlibs_GCJ=no
15526       fi
15527       ;;
15528
15529     sunos4*)
15530       archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15531       wlarc=
15532       hardcode_direct_GCJ=yes
15533       hardcode_shlibpath_var_GCJ=no
15534       ;;
15535
15536     *)
15537       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15538         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15539         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15540       else
15541         ld_shlibs_GCJ=no
15542       fi
15543       ;;
15544     esac
15545
15546     if test "$ld_shlibs_GCJ" = yes; then
15547       runpath_var=LD_RUN_PATH
15548       hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
15549       export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
15550       # ancient GNU ld didn't support --whole-archive et. al.
15551       if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
15552         whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15553       else
15554         whole_archive_flag_spec_GCJ=
15555       fi
15556     fi
15557   else
15558     # PORTME fill in a description of your system's linker (not GNU ld)
15559     case $host_os in
15560     aix3*)
15561       allow_undefined_flag_GCJ=unsupported
15562       always_export_symbols_GCJ=yes
15563       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'
15564       # Note: this linker hardcodes the directories in LIBPATH if there
15565       # are no directories specified by -L.
15566       hardcode_minus_L_GCJ=yes
15567       if test "$GCC" = yes && test -z "$link_static_flag"; then
15568         # Neither direct hardcoding nor static linking is supported with a
15569         # broken collect2.
15570         hardcode_direct_GCJ=unsupported
15571       fi
15572       ;;
15573
15574     aix4* | aix5*)
15575       if test "$host_cpu" = ia64; then
15576         # On IA64, the linker does run time linking by default, so we don't
15577         # have to do anything special.
15578         aix_use_runtimelinking=no
15579         exp_sym_flag='-Bexport'
15580         no_entry_flag=""
15581       else
15582         # If we're using GNU nm, then we don't want the "-C" option.
15583         # -C means demangle to AIX nm, but means don't demangle with GNU nm
15584         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
15585           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'
15586         else
15587           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'
15588         fi
15589         aix_use_runtimelinking=no
15590
15591         # Test if we are trying to use run time linking or normal
15592         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
15593         # need to do runtime linking.
15594         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
15595           for ld_flag in $LDFLAGS; do
15596           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
15597             aix_use_runtimelinking=yes
15598             break
15599           fi
15600           done
15601         esac
15602
15603         exp_sym_flag='-bexport'
15604         no_entry_flag='-bnoentry'
15605       fi
15606
15607       # When large executables or shared objects are built, AIX ld can
15608       # have problems creating the table of contents.  If linking a library
15609       # or program results in "error TOC overflow" add -mminimal-toc to
15610       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
15611       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15612
15613       archive_cmds_GCJ=''
15614       hardcode_direct_GCJ=yes
15615       hardcode_libdir_separator_GCJ=':'
15616       link_all_deplibs_GCJ=yes
15617
15618       if test "$GCC" = yes; then
15619         case $host_os in aix4.012|aix4.012.*)
15620         # We only want to do this on AIX 4.2 and lower, the check
15621         # below for broken collect2 doesn't work under 4.3+
15622           collect2name=`${CC} -print-prog-name=collect2`
15623           if test -f "$collect2name" && \
15624            strings "$collect2name" | grep resolve_lib_name >/dev/null
15625           then
15626           # We have reworked collect2
15627           hardcode_direct_GCJ=yes
15628           else
15629           # We have old collect2
15630           hardcode_direct_GCJ=unsupported
15631           # It fails to find uninstalled libraries when the uninstalled
15632           # path is not listed in the libpath.  Setting hardcode_minus_L
15633           # to unsupported forces relinking
15634           hardcode_minus_L_GCJ=yes
15635           hardcode_libdir_flag_spec_GCJ='-L$libdir'
15636           hardcode_libdir_separator_GCJ=
15637           fi
15638         esac
15639         shared_flag='-shared'
15640       else
15641         # not using gcc
15642         if test "$host_cpu" = ia64; then
15643         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15644         # chokes on -Wl,-G. The following line is correct:
15645           shared_flag='-G'
15646         else
15647         if test "$aix_use_runtimelinking" = yes; then
15648             shared_flag='${wl}-G'
15649           else
15650             shared_flag='${wl}-bM:SRE'
15651         fi
15652         fi
15653       fi
15654
15655       # It seems that -bexpall does not export symbols beginning with
15656       # underscore (_), so it is better to generate a list of symbols to export.
15657       always_export_symbols_GCJ=yes
15658       if test "$aix_use_runtimelinking" = yes; then
15659         # Warning - without using the other runtime loading flags (-brtl),
15660         # -berok will link without error, but may produce a broken library.
15661         allow_undefined_flag_GCJ='-berok'
15662        # Determine the default libpath from the value encoded in an empty executable.
15663        cat >conftest.$ac_ext <<_ACEOF
15664 #line $LINENO "configure"
15665 /* confdefs.h.  */
15666 _ACEOF
15667 cat confdefs.h >>conftest.$ac_ext
15668 cat >>conftest.$ac_ext <<_ACEOF
15669 /* end confdefs.h.  */
15670
15671 int
15672 main ()
15673 {
15674
15675   ;
15676   return 0;
15677 }
15678 _ACEOF
15679 rm -f conftest.$ac_objext conftest$ac_exeext
15680 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15681   (eval $ac_link) 2>&5
15682   ac_status=$?
15683   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15684   (exit $ac_status); } &&
15685          { ac_try='test -s conftest$ac_exeext'
15686   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15687   (eval $ac_try) 2>&5
15688   ac_status=$?
15689   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15690   (exit $ac_status); }; }; then
15691
15692 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
15693 }'`
15694 # Check for a 64-bit object if we didn't find anything.
15695 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; }
15696 }'`; fi
15697 else
15698   echo "$as_me: failed program was:" >&5
15699 sed 's/^/| /' conftest.$ac_ext >&5
15700
15701 fi
15702 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15703 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15704
15705        hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
15706         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"
15707        else
15708         if test "$host_cpu" = ia64; then
15709           hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
15710           allow_undefined_flag_GCJ="-z nodefs"
15711           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"
15712         else
15713          # Determine the default libpath from the value encoded in an empty executable.
15714          cat >conftest.$ac_ext <<_ACEOF
15715 #line $LINENO "configure"
15716 /* confdefs.h.  */
15717 _ACEOF
15718 cat confdefs.h >>conftest.$ac_ext
15719 cat >>conftest.$ac_ext <<_ACEOF
15720 /* end confdefs.h.  */
15721
15722 int
15723 main ()
15724 {
15725
15726   ;
15727   return 0;
15728 }
15729 _ACEOF
15730 rm -f conftest.$ac_objext conftest$ac_exeext
15731 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15732   (eval $ac_link) 2>&5
15733   ac_status=$?
15734   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15735   (exit $ac_status); } &&
15736          { ac_try='test -s conftest$ac_exeext'
15737   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15738   (eval $ac_try) 2>&5
15739   ac_status=$?
15740   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15741   (exit $ac_status); }; }; then
15742
15743 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
15744 }'`
15745 # Check for a 64-bit object if we didn't find anything.
15746 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; }
15747 }'`; fi
15748 else
15749   echo "$as_me: failed program was:" >&5
15750 sed 's/^/| /' conftest.$ac_ext >&5
15751
15752 fi
15753 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15754 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15755
15756          hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
15757           # Warning - without using the other run time loading flags,
15758           # -berok will link without error, but may produce a broken library.
15759           no_undefined_flag_GCJ=' ${wl}-bernotok'
15760           allow_undefined_flag_GCJ=' ${wl}-berok'
15761           # -bexpall does not export symbols beginning with underscore (_)
15762           always_export_symbols_GCJ=yes
15763           # Exported symbols can be pulled into shared objects from archives
15764           whole_archive_flag_spec_GCJ=' '
15765           archive_cmds_need_lc_GCJ=yes
15766           # This is similar to how AIX traditionally builds it's shared libraries.
15767           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'
15768         fi
15769       fi
15770       ;;
15771
15772     amigaos*)
15773       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)'
15774       hardcode_libdir_flag_spec_GCJ='-L$libdir'
15775       hardcode_minus_L_GCJ=yes
15776       # see comment about different semantics on the GNU ld section
15777       ld_shlibs_GCJ=no
15778       ;;
15779
15780     bsdi4*)
15781       export_dynamic_flag_spec_GCJ=-rdynamic
15782       ;;
15783
15784     cygwin* | mingw* | pw32*)
15785       # When not using gcc, we currently assume that we are using
15786       # Microsoft Visual C++.
15787       # hardcode_libdir_flag_spec is actually meaningless, as there is
15788       # no search path for DLLs.
15789       hardcode_libdir_flag_spec_GCJ=' '
15790       allow_undefined_flag_GCJ=unsupported
15791       # Tell ltmain to make .lib files, not .a files.
15792       libext=lib
15793       # Tell ltmain to make .dll files, not .so files.
15794       shrext=".dll"
15795       # FIXME: Setting linknames here is a bad hack.
15796       archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
15797       # The linker will automatically build a .lib file if we build a DLL.
15798       old_archive_From_new_cmds_GCJ='true'
15799       # FIXME: Should let the user specify the lib program.
15800       old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
15801       fix_srcfile_path='`cygpath -w "$srcfile"`'
15802       enable_shared_with_static_runtimes_GCJ=yes
15803       ;;
15804
15805     darwin* | rhapsody*)
15806     if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
15807       archive_cmds_need_lc_GCJ=no
15808       case "$host_os" in
15809       rhapsody* | darwin1.[012])
15810         allow_undefined_flag_GCJ='-undefined suppress'
15811         ;;
15812       *) # Darwin 1.3 on
15813         test -z ${LD_TWOLEVEL_NAMESPACE} && allow_undefined_flag_GCJ='-flat_namespace -undefined suppress'
15814         ;;
15815       esac
15816       # FIXME: Relying on posixy $() will cause problems for
15817       #        cross-compilation, but unfortunately the echo tests do not
15818       #        yet detect zsh echo's removal of \ escapes.  Also zsh mangles
15819       #        `"' quotes if we put them in here... so don't!
15820         lt_int_apple_cc_single_mod=no
15821         output_verbose_link_cmd='echo'
15822         if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
15823           lt_int_apple_cc_single_mod=yes
15824         fi
15825         if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
15826           archive_cmds_GCJ='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
15827         else
15828         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'
15829       fi
15830       module_cmds_GCJ='$CC -bundle ${wl}-bind_at_load $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags'
15831       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
15832         if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
15833           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}'
15834         else
15835           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}'
15836         fi
15837           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}'
15838       hardcode_direct_GCJ=no
15839       hardcode_automatic_GCJ=yes
15840       hardcode_shlibpath_var_GCJ=unsupported
15841       whole_archive_flag_spec_GCJ='-all_load $convenience'
15842       link_all_deplibs_GCJ=yes
15843     fi
15844       ;;
15845
15846     dgux*)
15847       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15848       hardcode_libdir_flag_spec_GCJ='-L$libdir'
15849       hardcode_shlibpath_var_GCJ=no
15850       ;;
15851
15852     freebsd1*)
15853       ld_shlibs_GCJ=no
15854       ;;
15855
15856     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
15857     # support.  Future versions do this automatically, but an explicit c++rt0.o
15858     # does not break anything, and helps significantly (at the cost of a little
15859     # extra space).
15860     freebsd2.2*)
15861       archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
15862       hardcode_libdir_flag_spec_GCJ='-R$libdir'
15863       hardcode_direct_GCJ=yes
15864       hardcode_shlibpath_var_GCJ=no
15865       ;;
15866
15867     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
15868     freebsd2*)
15869       archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15870       hardcode_direct_GCJ=yes
15871       hardcode_minus_L_GCJ=yes
15872       hardcode_shlibpath_var_GCJ=no
15873       ;;
15874
15875     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
15876     freebsd*)
15877       archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
15878       hardcode_libdir_flag_spec_GCJ='-R$libdir'
15879       hardcode_direct_GCJ=yes
15880       hardcode_shlibpath_var_GCJ=no
15881       ;;
15882
15883     hpux9*)
15884       if test "$GCC" = yes; then
15885         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'
15886       else
15887         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'
15888       fi
15889       hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
15890       hardcode_libdir_separator_GCJ=:
15891       hardcode_direct_GCJ=yes
15892
15893       # hardcode_minus_L: Not really in the search PATH,
15894       # but as the default location of the library.
15895       hardcode_minus_L_GCJ=yes
15896       export_dynamic_flag_spec_GCJ='${wl}-E'
15897       ;;
15898
15899     hpux10* | hpux11*)
15900       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15901         case "$host_cpu" in
15902         hppa*64*|ia64*)
15903           archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15904           ;;
15905         *)
15906           archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15907           ;;
15908         esac
15909       else
15910         case "$host_cpu" in
15911         hppa*64*|ia64*)
15912           archive_cmds_GCJ='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
15913           ;;
15914         *)
15915           archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15916           ;;
15917         esac
15918       fi
15919       if test "$with_gnu_ld" = no; then
15920         case "$host_cpu" in
15921         hppa*64*)
15922           hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
15923           hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
15924           hardcode_libdir_separator_GCJ=:
15925           hardcode_direct_GCJ=no
15926           hardcode_shlibpath_var_GCJ=no
15927           ;;
15928         ia64*)
15929           hardcode_libdir_flag_spec_GCJ='-L$libdir'
15930           hardcode_direct_GCJ=no
15931           hardcode_shlibpath_var_GCJ=no
15932
15933           # hardcode_minus_L: Not really in the search PATH,
15934           # but as the default location of the library.
15935           hardcode_minus_L_GCJ=yes
15936           ;;
15937         *)
15938           hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
15939           hardcode_libdir_separator_GCJ=:
15940           hardcode_direct_GCJ=yes
15941           export_dynamic_flag_spec_GCJ='${wl}-E'
15942
15943           # hardcode_minus_L: Not really in the search PATH,
15944           # but as the default location of the library.
15945           hardcode_minus_L_GCJ=yes
15946           ;;
15947         esac
15948       fi
15949       ;;
15950
15951     irix5* | irix6* | nonstopux*)
15952       if test "$GCC" = yes; then
15953         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'
15954       else
15955         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'
15956         hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
15957       fi
15958       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
15959       hardcode_libdir_separator_GCJ=:
15960       link_all_deplibs_GCJ=yes
15961       ;;
15962
15963     netbsd*)
15964       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15965         archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
15966       else
15967         archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
15968       fi
15969       hardcode_libdir_flag_spec_GCJ='-R$libdir'
15970       hardcode_direct_GCJ=yes
15971       hardcode_shlibpath_var_GCJ=no
15972       ;;
15973
15974     newsos6)
15975       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15976       hardcode_direct_GCJ=yes
15977       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
15978       hardcode_libdir_separator_GCJ=:
15979       hardcode_shlibpath_var_GCJ=no
15980       ;;
15981
15982     openbsd*)
15983       hardcode_direct_GCJ=yes
15984       hardcode_shlibpath_var_GCJ=no
15985       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15986         archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15987         hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
15988         export_dynamic_flag_spec_GCJ='${wl}-E'
15989       else
15990        case $host_os in
15991          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
15992            archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15993            hardcode_libdir_flag_spec_GCJ='-R$libdir'
15994            ;;
15995          *)
15996            archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15997            hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
15998            ;;
15999        esac
16000       fi
16001       ;;
16002
16003     os2*)
16004       hardcode_libdir_flag_spec_GCJ='-L$libdir'
16005       hardcode_minus_L_GCJ=yes
16006       allow_undefined_flag_GCJ=unsupported
16007       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'
16008       old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
16009       ;;
16010
16011     osf3*)
16012       if test "$GCC" = yes; then
16013         allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
16014         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'
16015       else
16016         allow_undefined_flag_GCJ=' -expect_unresolved \*'
16017         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'
16018       fi
16019       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16020       hardcode_libdir_separator_GCJ=:
16021       ;;
16022
16023     osf4* | osf5*)      # as osf3* with the addition of -msym flag
16024       if test "$GCC" = yes; then
16025         allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
16026         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'
16027         hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16028       else
16029         allow_undefined_flag_GCJ=' -expect_unresolved \*'
16030         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'
16031         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~
16032         $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'
16033
16034         # Both c and cxx compiler support -rpath directly
16035         hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
16036       fi
16037       hardcode_libdir_separator_GCJ=:
16038       ;;
16039
16040     sco3.2v5*)
16041       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16042       hardcode_shlibpath_var_GCJ=no
16043       export_dynamic_flag_spec_GCJ='${wl}-Bexport'
16044       runpath_var=LD_RUN_PATH
16045       hardcode_runpath_var=yes
16046       ;;
16047
16048     solaris*)
16049       no_undefined_flag_GCJ=' -z text'
16050       if test "$GCC" = yes; then
16051         archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16052         archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16053           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
16054       else
16055         archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16056         archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16057         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
16058       fi
16059       hardcode_libdir_flag_spec_GCJ='-R$libdir'
16060       hardcode_shlibpath_var_GCJ=no
16061       case $host_os in
16062       solaris2.[0-5] | solaris2.[0-5].*) ;;
16063       *) # Supported since Solaris 2.6 (maybe 2.5.1?)
16064         whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
16065       esac
16066       link_all_deplibs_GCJ=yes
16067       ;;
16068
16069     sunos4*)
16070       if test "x$host_vendor" = xsequent; then
16071         # Use $CC to link under sequent, because it throws in some extra .o
16072         # files that make .init and .fini sections work.
16073         archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
16074       else
16075         archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
16076       fi
16077       hardcode_libdir_flag_spec_GCJ='-L$libdir'
16078       hardcode_direct_GCJ=yes
16079       hardcode_minus_L_GCJ=yes
16080       hardcode_shlibpath_var_GCJ=no
16081       ;;
16082
16083     sysv4)
16084       case $host_vendor in
16085         sni)
16086           archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16087           hardcode_direct_GCJ=yes # is this really true???
16088         ;;
16089         siemens)
16090           ## LD is ld it makes a PLAMLIB
16091           ## CC just makes a GrossModule.
16092           archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16093           reload_cmds_GCJ='$CC -r -o $output$reload_objs'
16094           hardcode_direct_GCJ=no
16095         ;;
16096         motorola)
16097           archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16098           hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
16099         ;;
16100       esac
16101       runpath_var='LD_RUN_PATH'
16102       hardcode_shlibpath_var_GCJ=no
16103       ;;
16104
16105     sysv4.3*)
16106       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16107       hardcode_shlibpath_var_GCJ=no
16108       export_dynamic_flag_spec_GCJ='-Bexport'
16109       ;;
16110
16111     sysv4*MP*)
16112       if test -d /usr/nec; then
16113         archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16114         hardcode_shlibpath_var_GCJ=no
16115         runpath_var=LD_RUN_PATH
16116         hardcode_runpath_var=yes
16117         ld_shlibs_GCJ=yes
16118       fi
16119       ;;
16120
16121     sysv4.2uw2*)
16122       archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16123       hardcode_direct_GCJ=yes
16124       hardcode_minus_L_GCJ=no
16125       hardcode_shlibpath_var_GCJ=no
16126       hardcode_runpath_var=yes
16127       runpath_var=LD_RUN_PATH
16128       ;;
16129
16130    sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
16131       no_undefined_flag_GCJ='${wl}-z ${wl}text'
16132       if test "$GCC" = yes; then
16133         archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16134       else
16135         archive_cmds_GCJ='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16136       fi
16137       runpath_var='LD_RUN_PATH'
16138       hardcode_shlibpath_var_GCJ=no
16139       ;;
16140
16141     sysv5*)
16142       no_undefined_flag_GCJ=' -z text'
16143       # $CC -shared without GNU ld will not create a library from C++
16144       # object files and a static libstdc++, better avoid it by now
16145       archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16146       archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16147                 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
16148       hardcode_libdir_flag_spec_GCJ=
16149       hardcode_shlibpath_var_GCJ=no
16150       runpath_var='LD_RUN_PATH'
16151       ;;
16152
16153     uts4*)
16154       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16155       hardcode_libdir_flag_spec_GCJ='-L$libdir'
16156       hardcode_shlibpath_var_GCJ=no
16157       ;;
16158
16159     *)
16160       ld_shlibs_GCJ=no
16161       ;;
16162     esac
16163   fi
16164
16165 echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
16166 echo "${ECHO_T}$ld_shlibs_GCJ" >&6
16167 test "$ld_shlibs_GCJ" = no && can_build_shared=no
16168
16169 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16170 if test "$GCC" = yes; then
16171   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16172 fi
16173
16174 #
16175 # Do we need to explicitly link libc?
16176 #
16177 case "x$archive_cmds_need_lc_GCJ" in
16178 x|xyes)
16179   # Assume -lc should be added
16180   archive_cmds_need_lc_GCJ=yes
16181
16182   if test "$enable_shared" = yes && test "$GCC" = yes; then
16183     case $archive_cmds_GCJ in
16184     *'~'*)
16185       # FIXME: we may have to deal with multi-command sequences.
16186       ;;
16187     '$CC '*)
16188       # Test whether the compiler implicitly links with -lc since on some
16189       # systems, -lgcc has to come before -lc. If gcc already passes -lc
16190       # to ld, don't add -lc before -lgcc.
16191       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
16192 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
16193       $rm conftest*
16194       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16195
16196       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16197   (eval $ac_compile) 2>&5
16198   ac_status=$?
16199   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16200   (exit $ac_status); } 2>conftest.err; then
16201         soname=conftest
16202         lib=conftest
16203         libobjs=conftest.$ac_objext
16204         deplibs=
16205         wl=$lt_prog_compiler_wl_GCJ
16206         compiler_flags=-v
16207         linker_flags=-v
16208         verstring=
16209         output_objdir=.
16210         libname=conftest
16211         lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
16212         allow_undefined_flag_GCJ=
16213         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
16214   (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
16215   ac_status=$?
16216   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16217   (exit $ac_status); }
16218         then
16219           archive_cmds_need_lc_GCJ=no
16220         else
16221           archive_cmds_need_lc_GCJ=yes
16222         fi
16223         allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
16224       else
16225         cat conftest.err 1>&5
16226       fi
16227       $rm conftest*
16228       echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
16229 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6
16230       ;;
16231     esac
16232   fi
16233   ;;
16234 esac
16235
16236 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
16237 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
16238 hardcode_action_GCJ=
16239 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
16240    test -n "$runpath_var GCJ" || \
16241    test "X$hardcode_automatic_GCJ"="Xyes" ; then
16242
16243   # We can hardcode non-existant directories.
16244   if test "$hardcode_direct_GCJ" != no &&
16245      # If the only mechanism to avoid hardcoding is shlibpath_var, we
16246      # have to relink, otherwise we might link with an installed library
16247      # when we should be linking with a yet-to-be-installed one
16248      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
16249      test "$hardcode_minus_L_GCJ" != no; then
16250     # Linking always hardcodes the temporary library directory.
16251     hardcode_action_GCJ=relink
16252   else
16253     # We can link without hardcoding, and we can hardcode nonexisting dirs.
16254     hardcode_action_GCJ=immediate
16255   fi
16256 else
16257   # We cannot hardcode anything, or else we can only hardcode existing
16258   # directories.
16259   hardcode_action_GCJ=unsupported
16260 fi
16261 echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
16262 echo "${ECHO_T}$hardcode_action_GCJ" >&6
16263
16264 if test "$hardcode_action_GCJ" = relink; then
16265   # Fast installation is not supported
16266   enable_fast_install=no
16267 elif test "$shlibpath_overrides_runpath" = yes ||
16268      test "$enable_shared" = no; then
16269   # Fast installation is not necessary
16270   enable_fast_install=needless
16271 fi
16272
16273 striplib=
16274 old_striplib=
16275 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
16276 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
16277 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
16278   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
16279   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
16280   echo "$as_me:$LINENO: result: yes" >&5
16281 echo "${ECHO_T}yes" >&6
16282 else
16283 # FIXME - insert some real tests, host_os isn't really good enough
16284   case $host_os in
16285    darwin*)
16286        if test -n "$STRIP" ; then
16287          striplib="$STRIP -x"
16288          echo "$as_me:$LINENO: result: yes" >&5
16289 echo "${ECHO_T}yes" >&6
16290        else
16291   echo "$as_me:$LINENO: result: no" >&5
16292 echo "${ECHO_T}no" >&6
16293 fi
16294        ;;
16295    *)
16296   echo "$as_me:$LINENO: result: no" >&5
16297 echo "${ECHO_T}no" >&6
16298     ;;
16299   esac
16300 fi
16301
16302 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
16303 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
16304 library_names_spec=
16305 libname_spec='lib$name'
16306 soname_spec=
16307 shrext=".so"
16308 postinstall_cmds=
16309 postuninstall_cmds=
16310 finish_cmds=
16311 finish_eval=
16312 shlibpath_var=
16313 shlibpath_overrides_runpath=unknown
16314 version_type=none
16315 dynamic_linker="$host_os ld.so"
16316 sys_lib_dlsearch_path_spec="/lib /usr/lib"
16317 if test "$GCC" = yes; then
16318   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16319   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
16320     # if the path contains ";" then we assume it to be the separator
16321     # otherwise default to the standard path separator (i.e. ":") - it is
16322     # assumed that no part of a normal pathname contains ";" but that should
16323     # okay in the real world where ";" in dirpaths is itself problematic.
16324     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16325   else
16326     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
16327   fi
16328 else
16329   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
16330 fi
16331 need_lib_prefix=unknown
16332 hardcode_into_libs=no
16333
16334 # when you set need_version to no, make sure it does not cause -set_version
16335 # flags to be left without arguments
16336 need_version=unknown
16337
16338 case $host_os in
16339 aix3*)
16340   version_type=linux
16341   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
16342   shlibpath_var=LIBPATH
16343
16344   # AIX 3 has no versioning support, so we append a major version to the name.
16345   soname_spec='${libname}${release}${shared_ext}$major'
16346   ;;
16347
16348 aix4* | aix5*)
16349   version_type=linux
16350   need_lib_prefix=no
16351   need_version=no
16352   hardcode_into_libs=yes
16353   if test "$host_cpu" = ia64; then
16354     # AIX 5 supports IA64
16355     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16356     shlibpath_var=LD_LIBRARY_PATH
16357   else
16358     # With GCC up to 2.95.x, collect2 would create an import file
16359     # for dependence libraries.  The import file would start with
16360     # the line `#! .'.  This would cause the generated library to
16361     # depend on `.', always an invalid library.  This was fixed in
16362     # development snapshots of GCC prior to 3.0.
16363     case $host_os in
16364       aix4 | aix4.[01] | aix4.[01].*)
16365       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16366            echo ' yes '
16367            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
16368         :
16369       else
16370         can_build_shared=no
16371       fi
16372       ;;
16373     esac
16374     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16375     # soname into executable. Probably we can add versioning support to
16376     # collect2, so additional links can be useful in future.
16377     if test "$aix_use_runtimelinking" = yes; then
16378       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16379       # instead of lib<name>.a to let people know that these are not
16380       # typical AIX shared libraries.
16381       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16382     else
16383       # We preserve .a as extension for shared libraries through AIX4.2
16384       # and later when we are not doing run time linking.
16385       library_names_spec='${libname}${release}.a $libname.a'
16386       soname_spec='${libname}${release}${shared_ext}$major'
16387     fi
16388     shlibpath_var=LIBPATH
16389   fi
16390   ;;
16391
16392 amigaos*)
16393   library_names_spec='$libname.ixlibrary $libname.a'
16394   # Create ${libname}_ixlibrary.a entries in /sys/libs.
16395   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'
16396   ;;
16397
16398 beos*)
16399   library_names_spec='${libname}${shared_ext}'
16400   dynamic_linker="$host_os ld.so"
16401   shlibpath_var=LIBRARY_PATH
16402   ;;
16403
16404 bsdi4*)
16405   version_type=linux
16406   need_version=no
16407   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16408   soname_spec='${libname}${release}${shared_ext}$major'
16409   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16410   shlibpath_var=LD_LIBRARY_PATH
16411   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16412   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16413   # the default ld.so.conf also contains /usr/contrib/lib and
16414   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16415   # libtool to hard-code these into programs
16416   ;;
16417
16418 cygwin* | mingw* | pw32*)
16419   version_type=windows
16420   shrext=".dll"
16421   need_version=no
16422   need_lib_prefix=no
16423
16424   case $GCC,$host_os in
16425   yes,cygwin* | yes,mingw* | yes,pw32*)
16426     library_names_spec='$libname.dll.a'
16427     # DLL is installed to $(libdir)/../bin by postinstall_cmds
16428     postinstall_cmds='base_file=`basename \${file}`~
16429       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
16430       dldir=$destdir/`dirname \$dlpath`~
16431       test -d \$dldir || mkdir -p \$dldir~
16432       $install_prog $dir/$dlname \$dldir/$dlname'
16433     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16434       dlpath=$dir/\$dldll~
16435        $rm \$dlpath'
16436     shlibpath_overrides_runpath=yes
16437
16438     case $host_os in
16439     cygwin*)
16440       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16441       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16442       sys_lib_search_path_spec="/lib /lib/w32api /usr/lib /usr/local/lib"
16443       ;;
16444     mingw*)
16445       # MinGW DLLs use traditional 'lib' prefix
16446       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16447       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16448       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
16449         # It is most probably a Windows format PATH printed by
16450         # mingw gcc, but we are running on Cygwin. Gcc prints its search
16451         # path with ; separators, and with drive letters. We can handle the
16452         # drive letters (cygwin fileutils understands them), so leave them,
16453         # especially as we might pass files found there to a mingw objdump,
16454         # which wouldn't understand a cygwinified path. Ahh.
16455         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16456       else
16457         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
16458       fi
16459       ;;
16460     pw32*)
16461       # pw32 DLLs use 'pw' prefix rather than 'lib'
16462       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
16463       ;;
16464     esac
16465     ;;
16466
16467   *)
16468     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
16469     ;;
16470   esac
16471   dynamic_linker='Win32 ld.exe'
16472   # FIXME: first we should search . and the directory the executable is in
16473   shlibpath_var=PATH
16474   ;;
16475
16476 darwin* | rhapsody*)
16477   dynamic_linker="$host_os dyld"
16478   version_type=darwin
16479   need_lib_prefix=no
16480   need_version=no
16481   # FIXME: Relying on posixy $() will cause problems for
16482   #        cross-compilation, but unfortunately the echo tests do not
16483   #        yet detect zsh echo's removal of \ escapes.
16484   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
16485   soname_spec='${libname}${release}${major}$shared_ext'
16486   shlibpath_overrides_runpath=yes
16487   shlibpath_var=DYLD_LIBRARY_PATH
16488   shrext='$(test .$module = .yes && echo .so || echo .dylib)'
16489   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
16490   if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
16491   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"`
16492   fi
16493   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16494   ;;
16495
16496 dgux*)
16497   version_type=linux
16498   need_lib_prefix=no
16499   need_version=no
16500   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16501   soname_spec='${libname}${release}${shared_ext}$major'
16502   shlibpath_var=LD_LIBRARY_PATH
16503   ;;
16504
16505 freebsd1*)
16506   dynamic_linker=no
16507   ;;
16508
16509 freebsd*)
16510   objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
16511   version_type=freebsd-$objformat
16512   case $version_type in
16513     freebsd-elf*)
16514       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16515       need_version=no
16516       need_lib_prefix=no
16517       ;;
16518     freebsd-*)
16519       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
16520       need_version=yes
16521       ;;
16522   esac
16523   shlibpath_var=LD_LIBRARY_PATH
16524   case $host_os in
16525   freebsd2*)
16526     shlibpath_overrides_runpath=yes
16527     ;;
16528   freebsd3.01* | freebsdelf3.01*)
16529     shlibpath_overrides_runpath=yes
16530     hardcode_into_libs=yes
16531     ;;
16532   *) # from 3.2 on
16533     shlibpath_overrides_runpath=no
16534     hardcode_into_libs=yes
16535     ;;
16536   esac
16537   ;;
16538
16539 gnu*)
16540   version_type=linux
16541   need_lib_prefix=no
16542   need_version=no
16543   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16544   soname_spec='${libname}${release}${shared_ext}$major'
16545   shlibpath_var=LD_LIBRARY_PATH
16546   hardcode_into_libs=yes
16547   ;;
16548
16549 hpux9* | hpux10* | hpux11*)
16550   # Give a soname corresponding to the major version so that dld.sl refuses to
16551   # link against other versions.
16552   version_type=sunos
16553   need_lib_prefix=no
16554   need_version=no
16555   case "$host_cpu" in
16556   ia64*)
16557     shrext='.so'
16558     hardcode_into_libs=yes
16559     dynamic_linker="$host_os dld.so"
16560     shlibpath_var=LD_LIBRARY_PATH
16561     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16562     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16563     soname_spec='${libname}${release}${shared_ext}$major'
16564     if test "X$HPUX_IA64_MODE" = X32; then
16565       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16566     else
16567       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16568     fi
16569     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16570     ;;
16571    hppa*64*)
16572      shrext='.sl'
16573      hardcode_into_libs=yes
16574      dynamic_linker="$host_os dld.sl"
16575      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16576      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16577      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16578      soname_spec='${libname}${release}${shared_ext}$major'
16579      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16580      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16581      ;;
16582    *)
16583     shrext='.sl'
16584     dynamic_linker="$host_os dld.sl"
16585     shlibpath_var=SHLIB_PATH
16586     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16587     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16588     soname_spec='${libname}${release}${shared_ext}$major'
16589     ;;
16590   esac
16591   # HP-UX runs *really* slowly unless shared libraries are mode 555.
16592   postinstall_cmds='chmod 555 $lib'
16593   ;;
16594
16595 irix5* | irix6* | nonstopux*)
16596   case $host_os in
16597     nonstopux*) version_type=nonstopux ;;
16598     *)
16599         if test "$lt_cv_prog_gnu_ld" = yes; then
16600                 version_type=linux
16601         else
16602                 version_type=irix
16603         fi ;;
16604   esac
16605   need_lib_prefix=no
16606   need_version=no
16607   soname_spec='${libname}${release}${shared_ext}$major'
16608   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
16609   case $host_os in
16610   irix5* | nonstopux*)
16611     libsuff= shlibsuff=
16612     ;;
16613   *)
16614     case $LD in # libtool.m4 will add one of these switches to LD
16615     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16616       libsuff= shlibsuff= libmagic=32-bit;;
16617     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16618       libsuff=32 shlibsuff=N32 libmagic=N32;;
16619     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16620       libsuff=64 shlibsuff=64 libmagic=64-bit;;
16621     *) libsuff= shlibsuff= libmagic=never-match;;
16622     esac
16623     ;;
16624   esac
16625   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16626   shlibpath_overrides_runpath=no
16627   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16628   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
16629   hardcode_into_libs=yes
16630   ;;
16631
16632 # No shared lib support for Linux oldld, aout, or coff.
16633 linux*oldld* | linux*aout* | linux*coff*)
16634   dynamic_linker=no
16635   ;;
16636
16637 # This must be Linux ELF.
16638 linux*)
16639   version_type=linux
16640   need_lib_prefix=no
16641   need_version=no
16642   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16643   soname_spec='${libname}${release}${shared_ext}$major'
16644   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16645   shlibpath_var=LD_LIBRARY_PATH
16646   shlibpath_overrides_runpath=no
16647   # This implies no fast_install, which is unacceptable.
16648   # Some rework will be needed to allow for fast_install
16649   # before this can be enabled.
16650   hardcode_into_libs=yes
16651
16652   # We used to test for /lib/ld.so.1 and disable shared libraries on
16653   # powerpc, because MkLinux only supported shared libraries with the
16654   # GNU dynamic linker.  Since this was broken with cross compilers,
16655   # most powerpc-linux boxes support dynamic linking these days and
16656   # people can always --disable-shared, the test was removed, and we
16657   # assume the GNU/Linux dynamic linker is in use.
16658   dynamic_linker='GNU/Linux ld.so'
16659   ;;
16660
16661 netbsd*)
16662   version_type=sunos
16663   need_lib_prefix=no
16664   need_version=no
16665   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16666     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16667     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16668     dynamic_linker='NetBSD (a.out) ld.so'
16669   else
16670     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
16671     soname_spec='${libname}${release}${shared_ext}$major'
16672     dynamic_linker='NetBSD ld.elf_so'
16673   fi
16674   shlibpath_var=LD_LIBRARY_PATH
16675   shlibpath_overrides_runpath=yes
16676   hardcode_into_libs=yes
16677   ;;
16678
16679 newsos6)
16680   version_type=linux
16681   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16682   shlibpath_var=LD_LIBRARY_PATH
16683   shlibpath_overrides_runpath=yes
16684   ;;
16685
16686 nto-qnx)
16687   version_type=linux
16688   need_lib_prefix=no
16689   need_version=no
16690   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16691   soname_spec='${libname}${release}${shared_ext}$major'
16692   shlibpath_var=LD_LIBRARY_PATH
16693   shlibpath_overrides_runpath=yes
16694   ;;
16695
16696 openbsd*)
16697   version_type=sunos
16698   need_lib_prefix=no
16699   need_version=no
16700   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16701   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16702   shlibpath_var=LD_LIBRARY_PATH
16703   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16704     case $host_os in
16705       openbsd2.[89] | openbsd2.[89].*)
16706         shlibpath_overrides_runpath=no
16707         ;;
16708       *)
16709         shlibpath_overrides_runpath=yes
16710         ;;
16711       esac
16712   else
16713     shlibpath_overrides_runpath=yes
16714   fi
16715   ;;
16716
16717 os2*)
16718   libname_spec='$name'
16719   shrext=".dll"
16720   need_lib_prefix=no
16721   library_names_spec='$libname${shared_ext} $libname.a'
16722   dynamic_linker='OS/2 ld.exe'
16723   shlibpath_var=LIBPATH
16724   ;;
16725
16726 osf3* | osf4* | osf5*)
16727   version_type=osf
16728   need_lib_prefix=no
16729   need_version=no
16730   soname_spec='${libname}${release}${shared_ext}$major'
16731   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16732   shlibpath_var=LD_LIBRARY_PATH
16733   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16734   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16735   ;;
16736
16737 sco3.2v5*)
16738   version_type=osf
16739   soname_spec='${libname}${release}${shared_ext}$major'
16740   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16741   shlibpath_var=LD_LIBRARY_PATH
16742   ;;
16743
16744 solaris*)
16745   version_type=linux
16746   need_lib_prefix=no
16747   need_version=no
16748   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16749   soname_spec='${libname}${release}${shared_ext}$major'
16750   shlibpath_var=LD_LIBRARY_PATH
16751   shlibpath_overrides_runpath=yes
16752   hardcode_into_libs=yes
16753   # ldd complains unless libraries are executable
16754   postinstall_cmds='chmod +x $lib'
16755   ;;
16756
16757 sunos4*)
16758   version_type=sunos
16759   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16760   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16761   shlibpath_var=LD_LIBRARY_PATH
16762   shlibpath_overrides_runpath=yes
16763   if test "$with_gnu_ld" = yes; then
16764     need_lib_prefix=no
16765   fi
16766   need_version=yes
16767   ;;
16768
16769 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
16770   version_type=linux
16771   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16772   soname_spec='${libname}${release}${shared_ext}$major'
16773   shlibpath_var=LD_LIBRARY_PATH
16774   case $host_vendor in
16775     sni)
16776       shlibpath_overrides_runpath=no
16777       need_lib_prefix=no
16778       export_dynamic_flag_spec='${wl}-Blargedynsym'
16779       runpath_var=LD_RUN_PATH
16780       ;;
16781     siemens)
16782       need_lib_prefix=no
16783       ;;
16784     motorola)
16785       need_lib_prefix=no
16786       need_version=no
16787       shlibpath_overrides_runpath=no
16788       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16789       ;;
16790   esac
16791   ;;
16792
16793 sysv4*MP*)
16794   if test -d /usr/nec ;then
16795     version_type=linux
16796     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16797     soname_spec='$libname${shared_ext}.$major'
16798     shlibpath_var=LD_LIBRARY_PATH
16799   fi
16800   ;;
16801
16802 uts4*)
16803   version_type=linux
16804   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16805   soname_spec='${libname}${release}${shared_ext}$major'
16806   shlibpath_var=LD_LIBRARY_PATH
16807   ;;
16808
16809 *)
16810   dynamic_linker=no
16811   ;;
16812 esac
16813 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
16814 echo "${ECHO_T}$dynamic_linker" >&6
16815 test "$dynamic_linker" = no && can_build_shared=no
16816
16817 if test "x$enable_dlopen" != xyes; then
16818   enable_dlopen=unknown
16819   enable_dlopen_self=unknown
16820   enable_dlopen_self_static=unknown
16821 else
16822   lt_cv_dlopen=no
16823   lt_cv_dlopen_libs=
16824
16825   case $host_os in
16826   beos*)
16827     lt_cv_dlopen="load_add_on"
16828     lt_cv_dlopen_libs=
16829     lt_cv_dlopen_self=yes
16830     ;;
16831
16832   mingw* | pw32*)
16833     lt_cv_dlopen="LoadLibrary"
16834     lt_cv_dlopen_libs=
16835    ;;
16836
16837   cygwin*)
16838     lt_cv_dlopen="dlopen"
16839     lt_cv_dlopen_libs=
16840    ;;
16841
16842   darwin*)
16843   # if libdl is installed we need to link against it
16844     echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
16845 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
16846 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
16847   echo $ECHO_N "(cached) $ECHO_C" >&6
16848 else
16849   ac_check_lib_save_LIBS=$LIBS
16850 LIBS="-ldl  $LIBS"
16851 cat >conftest.$ac_ext <<_ACEOF
16852 #line $LINENO "configure"
16853 /* confdefs.h.  */
16854 _ACEOF
16855 cat confdefs.h >>conftest.$ac_ext
16856 cat >>conftest.$ac_ext <<_ACEOF
16857 /* end confdefs.h.  */
16858
16859 /* Override any gcc2 internal prototype to avoid an error.  */
16860 #ifdef __cplusplus
16861 extern "C"
16862 #endif
16863 /* We use char because int might match the return type of a gcc2
16864    builtin and then its argument prototype would still apply.  */
16865 char dlopen ();
16866 int
16867 main ()
16868 {
16869 dlopen ();
16870   ;
16871   return 0;
16872 }
16873 _ACEOF
16874 rm -f conftest.$ac_objext conftest$ac_exeext
16875 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16876   (eval $ac_link) 2>&5
16877   ac_status=$?
16878   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16879   (exit $ac_status); } &&
16880          { ac_try='test -s conftest$ac_exeext'
16881   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16882   (eval $ac_try) 2>&5
16883   ac_status=$?
16884   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16885   (exit $ac_status); }; }; then
16886   ac_cv_lib_dl_dlopen=yes
16887 else
16888   echo "$as_me: failed program was:" >&5
16889 sed 's/^/| /' conftest.$ac_ext >&5
16890
16891 ac_cv_lib_dl_dlopen=no
16892 fi
16893 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16894 LIBS=$ac_check_lib_save_LIBS
16895 fi
16896 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
16897 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
16898 if test $ac_cv_lib_dl_dlopen = yes; then
16899   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
16900 else
16901
16902     lt_cv_dlopen="dyld"
16903     lt_cv_dlopen_libs=
16904     lt_cv_dlopen_self=yes
16905
16906 fi
16907
16908    ;;
16909
16910   *)
16911     echo "$as_me:$LINENO: checking for shl_load" >&5
16912 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
16913 if test "${ac_cv_func_shl_load+set}" = set; then
16914   echo $ECHO_N "(cached) $ECHO_C" >&6
16915 else
16916   cat >conftest.$ac_ext <<_ACEOF
16917 #line $LINENO "configure"
16918 /* confdefs.h.  */
16919 _ACEOF
16920 cat confdefs.h >>conftest.$ac_ext
16921 cat >>conftest.$ac_ext <<_ACEOF
16922 /* end confdefs.h.  */
16923 /* System header to define __stub macros and hopefully few prototypes,
16924     which can conflict with char shl_load (); below.
16925     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16926     <limits.h> exists even on freestanding compilers.  */
16927 #ifdef __STDC__
16928 # include <limits.h>
16929 #else
16930 # include <assert.h>
16931 #endif
16932 /* Override any gcc2 internal prototype to avoid an error.  */
16933 #ifdef __cplusplus
16934 extern "C"
16935 {
16936 #endif
16937 /* We use char because int might match the return type of a gcc2
16938    builtin and then its argument prototype would still apply.  */
16939 char shl_load ();
16940 /* The GNU C library defines this for functions which it implements
16941     to always fail with ENOSYS.  Some functions are actually named
16942     something starting with __ and the normal name is an alias.  */
16943 #if defined (__stub_shl_load) || defined (__stub___shl_load)
16944 choke me
16945 #else
16946 char (*f) () = shl_load;
16947 #endif
16948 #ifdef __cplusplus
16949 }
16950 #endif
16951
16952 int
16953 main ()
16954 {
16955 return f != shl_load;
16956   ;
16957   return 0;
16958 }
16959 _ACEOF
16960 rm -f conftest.$ac_objext conftest$ac_exeext
16961 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16962   (eval $ac_link) 2>&5
16963   ac_status=$?
16964   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16965   (exit $ac_status); } &&
16966          { ac_try='test -s conftest$ac_exeext'
16967   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16968   (eval $ac_try) 2>&5
16969   ac_status=$?
16970   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16971   (exit $ac_status); }; }; then
16972   ac_cv_func_shl_load=yes
16973 else
16974   echo "$as_me: failed program was:" >&5
16975 sed 's/^/| /' conftest.$ac_ext >&5
16976
16977 ac_cv_func_shl_load=no
16978 fi
16979 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16980 fi
16981 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
16982 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
16983 if test $ac_cv_func_shl_load = yes; then
16984   lt_cv_dlopen="shl_load"
16985 else
16986   echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
16987 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
16988 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
16989   echo $ECHO_N "(cached) $ECHO_C" >&6
16990 else
16991   ac_check_lib_save_LIBS=$LIBS
16992 LIBS="-ldld  $LIBS"
16993 cat >conftest.$ac_ext <<_ACEOF
16994 #line $LINENO "configure"
16995 /* confdefs.h.  */
16996 _ACEOF
16997 cat confdefs.h >>conftest.$ac_ext
16998 cat >>conftest.$ac_ext <<_ACEOF
16999 /* end confdefs.h.  */
17000
17001 /* Override any gcc2 internal prototype to avoid an error.  */
17002 #ifdef __cplusplus
17003 extern "C"
17004 #endif
17005 /* We use char because int might match the return type of a gcc2
17006    builtin and then its argument prototype would still apply.  */
17007 char shl_load ();
17008 int
17009 main ()
17010 {
17011 shl_load ();
17012   ;
17013   return 0;
17014 }
17015 _ACEOF
17016 rm -f conftest.$ac_objext conftest$ac_exeext
17017 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17018   (eval $ac_link) 2>&5
17019   ac_status=$?
17020   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17021   (exit $ac_status); } &&
17022          { ac_try='test -s conftest$ac_exeext'
17023   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17024   (eval $ac_try) 2>&5
17025   ac_status=$?
17026   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17027   (exit $ac_status); }; }; then
17028   ac_cv_lib_dld_shl_load=yes
17029 else
17030   echo "$as_me: failed program was:" >&5
17031 sed 's/^/| /' conftest.$ac_ext >&5
17032
17033 ac_cv_lib_dld_shl_load=no
17034 fi
17035 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17036 LIBS=$ac_check_lib_save_LIBS
17037 fi
17038 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
17039 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
17040 if test $ac_cv_lib_dld_shl_load = yes; then
17041   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
17042 else
17043   echo "$as_me:$LINENO: checking for dlopen" >&5
17044 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
17045 if test "${ac_cv_func_dlopen+set}" = set; then
17046   echo $ECHO_N "(cached) $ECHO_C" >&6
17047 else
17048   cat >conftest.$ac_ext <<_ACEOF
17049 #line $LINENO "configure"
17050 /* confdefs.h.  */
17051 _ACEOF
17052 cat confdefs.h >>conftest.$ac_ext
17053 cat >>conftest.$ac_ext <<_ACEOF
17054 /* end confdefs.h.  */
17055 /* System header to define __stub macros and hopefully few prototypes,
17056     which can conflict with char dlopen (); below.
17057     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17058     <limits.h> exists even on freestanding compilers.  */
17059 #ifdef __STDC__
17060 # include <limits.h>
17061 #else
17062 # include <assert.h>
17063 #endif
17064 /* Override any gcc2 internal prototype to avoid an error.  */
17065 #ifdef __cplusplus
17066 extern "C"
17067 {
17068 #endif
17069 /* We use char because int might match the return type of a gcc2
17070    builtin and then its argument prototype would still apply.  */
17071 char dlopen ();
17072 /* The GNU C library defines this for functions which it implements
17073     to always fail with ENOSYS.  Some functions are actually named
17074     something starting with __ and the normal name is an alias.  */
17075 #if defined (__stub_dlopen) || defined (__stub___dlopen)
17076 choke me
17077 #else
17078 char (*f) () = dlopen;
17079 #endif
17080 #ifdef __cplusplus
17081 }
17082 #endif
17083
17084 int
17085 main ()
17086 {
17087 return f != dlopen;
17088   ;
17089   return 0;
17090 }
17091 _ACEOF
17092 rm -f conftest.$ac_objext conftest$ac_exeext
17093 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17094   (eval $ac_link) 2>&5
17095   ac_status=$?
17096   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17097   (exit $ac_status); } &&
17098          { ac_try='test -s conftest$ac_exeext'
17099   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17100   (eval $ac_try) 2>&5
17101   ac_status=$?
17102   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17103   (exit $ac_status); }; }; then
17104   ac_cv_func_dlopen=yes
17105 else
17106   echo "$as_me: failed program was:" >&5
17107 sed 's/^/| /' conftest.$ac_ext >&5
17108
17109 ac_cv_func_dlopen=no
17110 fi
17111 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17112 fi
17113 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
17114 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
17115 if test $ac_cv_func_dlopen = yes; then
17116   lt_cv_dlopen="dlopen"
17117 else
17118   echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
17119 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
17120 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
17121   echo $ECHO_N "(cached) $ECHO_C" >&6
17122 else
17123   ac_check_lib_save_LIBS=$LIBS
17124 LIBS="-ldl  $LIBS"
17125 cat >conftest.$ac_ext <<_ACEOF
17126 #line $LINENO "configure"
17127 /* confdefs.h.  */
17128 _ACEOF
17129 cat confdefs.h >>conftest.$ac_ext
17130 cat >>conftest.$ac_ext <<_ACEOF
17131 /* end confdefs.h.  */
17132
17133 /* Override any gcc2 internal prototype to avoid an error.  */
17134 #ifdef __cplusplus
17135 extern "C"
17136 #endif
17137 /* We use char because int might match the return type of a gcc2
17138    builtin and then its argument prototype would still apply.  */
17139 char dlopen ();
17140 int
17141 main ()
17142 {
17143 dlopen ();
17144   ;
17145   return 0;
17146 }
17147 _ACEOF
17148 rm -f conftest.$ac_objext conftest$ac_exeext
17149 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17150   (eval $ac_link) 2>&5
17151   ac_status=$?
17152   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17153   (exit $ac_status); } &&
17154          { ac_try='test -s conftest$ac_exeext'
17155   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17156   (eval $ac_try) 2>&5
17157   ac_status=$?
17158   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17159   (exit $ac_status); }; }; then
17160   ac_cv_lib_dl_dlopen=yes
17161 else
17162   echo "$as_me: failed program was:" >&5
17163 sed 's/^/| /' conftest.$ac_ext >&5
17164
17165 ac_cv_lib_dl_dlopen=no
17166 fi
17167 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17168 LIBS=$ac_check_lib_save_LIBS
17169 fi
17170 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
17171 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
17172 if test $ac_cv_lib_dl_dlopen = yes; then
17173   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17174 else
17175   echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
17176 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
17177 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
17178   echo $ECHO_N "(cached) $ECHO_C" >&6
17179 else
17180   ac_check_lib_save_LIBS=$LIBS
17181 LIBS="-lsvld  $LIBS"
17182 cat >conftest.$ac_ext <<_ACEOF
17183 #line $LINENO "configure"
17184 /* confdefs.h.  */
17185 _ACEOF
17186 cat confdefs.h >>conftest.$ac_ext
17187 cat >>conftest.$ac_ext <<_ACEOF
17188 /* end confdefs.h.  */
17189
17190 /* Override any gcc2 internal prototype to avoid an error.  */
17191 #ifdef __cplusplus
17192 extern "C"
17193 #endif
17194 /* We use char because int might match the return type of a gcc2
17195    builtin and then its argument prototype would still apply.  */
17196 char dlopen ();
17197 int
17198 main ()
17199 {
17200 dlopen ();
17201   ;
17202   return 0;
17203 }
17204 _ACEOF
17205 rm -f conftest.$ac_objext conftest$ac_exeext
17206 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17207   (eval $ac_link) 2>&5
17208   ac_status=$?
17209   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17210   (exit $ac_status); } &&
17211          { ac_try='test -s conftest$ac_exeext'
17212   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17213   (eval $ac_try) 2>&5
17214   ac_status=$?
17215   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17216   (exit $ac_status); }; }; then
17217   ac_cv_lib_svld_dlopen=yes
17218 else
17219   echo "$as_me: failed program was:" >&5
17220 sed 's/^/| /' conftest.$ac_ext >&5
17221
17222 ac_cv_lib_svld_dlopen=no
17223 fi
17224 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17225 LIBS=$ac_check_lib_save_LIBS
17226 fi
17227 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
17228 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
17229 if test $ac_cv_lib_svld_dlopen = yes; then
17230   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
17231 else
17232   echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
17233 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
17234 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
17235   echo $ECHO_N "(cached) $ECHO_C" >&6
17236 else
17237   ac_check_lib_save_LIBS=$LIBS
17238 LIBS="-ldld  $LIBS"
17239 cat >conftest.$ac_ext <<_ACEOF
17240 #line $LINENO "configure"
17241 /* confdefs.h.  */
17242 _ACEOF
17243 cat confdefs.h >>conftest.$ac_ext
17244 cat >>conftest.$ac_ext <<_ACEOF
17245 /* end confdefs.h.  */
17246
17247 /* Override any gcc2 internal prototype to avoid an error.  */
17248 #ifdef __cplusplus
17249 extern "C"
17250 #endif
17251 /* We use char because int might match the return type of a gcc2
17252    builtin and then its argument prototype would still apply.  */
17253 char dld_link ();
17254 int
17255 main ()
17256 {
17257 dld_link ();
17258   ;
17259   return 0;
17260 }
17261 _ACEOF
17262 rm -f conftest.$ac_objext conftest$ac_exeext
17263 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17264   (eval $ac_link) 2>&5
17265   ac_status=$?
17266   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17267   (exit $ac_status); } &&
17268          { ac_try='test -s conftest$ac_exeext'
17269   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17270   (eval $ac_try) 2>&5
17271   ac_status=$?
17272   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17273   (exit $ac_status); }; }; then
17274   ac_cv_lib_dld_dld_link=yes
17275 else
17276   echo "$as_me: failed program was:" >&5
17277 sed 's/^/| /' conftest.$ac_ext >&5
17278
17279 ac_cv_lib_dld_dld_link=no
17280 fi
17281 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17282 LIBS=$ac_check_lib_save_LIBS
17283 fi
17284 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
17285 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
17286 if test $ac_cv_lib_dld_dld_link = yes; then
17287   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
17288 fi
17289
17290
17291 fi
17292
17293
17294 fi
17295
17296
17297 fi
17298
17299
17300 fi
17301
17302
17303 fi
17304
17305     ;;
17306   esac
17307
17308   if test "x$lt_cv_dlopen" != xno; then
17309     enable_dlopen=yes
17310   else
17311     enable_dlopen=no
17312   fi
17313
17314   case $lt_cv_dlopen in
17315   dlopen)
17316     save_CPPFLAGS="$CPPFLAGS"
17317     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
17318
17319     save_LDFLAGS="$LDFLAGS"
17320     eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
17321
17322     save_LIBS="$LIBS"
17323     LIBS="$lt_cv_dlopen_libs $LIBS"
17324
17325     echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
17326 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
17327 if test "${lt_cv_dlopen_self+set}" = set; then
17328   echo $ECHO_N "(cached) $ECHO_C" >&6
17329 else
17330           if test "$cross_compiling" = yes; then :
17331   lt_cv_dlopen_self=cross
17332 else
17333   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17334   lt_status=$lt_dlunknown
17335   cat > conftest.$ac_ext <<EOF
17336 #line 17333 "configure"
17337 #include "confdefs.h"
17338
17339 #if HAVE_DLFCN_H
17340 #include <dlfcn.h>
17341 #endif
17342
17343 #include <stdio.h>
17344
17345 #ifdef RTLD_GLOBAL
17346 #  define LT_DLGLOBAL           RTLD_GLOBAL
17347 #else
17348 #  ifdef DL_GLOBAL
17349 #    define LT_DLGLOBAL         DL_GLOBAL
17350 #  else
17351 #    define LT_DLGLOBAL         0
17352 #  endif
17353 #endif
17354
17355 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17356    find out it does not work in some platform. */
17357 #ifndef LT_DLLAZY_OR_NOW
17358 #  ifdef RTLD_LAZY
17359 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
17360 #  else
17361 #    ifdef DL_LAZY
17362 #      define LT_DLLAZY_OR_NOW          DL_LAZY
17363 #    else
17364 #      ifdef RTLD_NOW
17365 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
17366 #      else
17367 #        ifdef DL_NOW
17368 #          define LT_DLLAZY_OR_NOW      DL_NOW
17369 #        else
17370 #          define LT_DLLAZY_OR_NOW      0
17371 #        endif
17372 #      endif
17373 #    endif
17374 #  endif
17375 #endif
17376
17377 #ifdef __cplusplus
17378 extern "C" void exit (int);
17379 #endif
17380
17381 void fnord() { int i=42;}
17382 int main ()
17383 {
17384   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17385   int status = $lt_dlunknown;
17386
17387   if (self)
17388     {
17389       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
17390       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17391       /* dlclose (self); */
17392     }
17393
17394     exit (status);
17395 }
17396 EOF
17397   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17398   (eval $ac_link) 2>&5
17399   ac_status=$?
17400   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17401   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
17402     (./conftest; exit; ) 2>/dev/null
17403     lt_status=$?
17404     case x$lt_status in
17405       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
17406       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
17407       x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
17408     esac
17409   else :
17410     # compilation failed
17411     lt_cv_dlopen_self=no
17412   fi
17413 fi
17414 rm -fr conftest*
17415
17416
17417 fi
17418 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
17419 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
17420
17421     if test "x$lt_cv_dlopen_self" = xyes; then
17422       LDFLAGS="$LDFLAGS $link_static_flag"
17423       echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
17424 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
17425 if test "${lt_cv_dlopen_self_static+set}" = set; then
17426   echo $ECHO_N "(cached) $ECHO_C" >&6
17427 else
17428           if test "$cross_compiling" = yes; then :
17429   lt_cv_dlopen_self_static=cross
17430 else
17431   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17432   lt_status=$lt_dlunknown
17433   cat > conftest.$ac_ext <<EOF
17434 #line 17431 "configure"
17435 #include "confdefs.h"
17436
17437 #if HAVE_DLFCN_H
17438 #include <dlfcn.h>
17439 #endif
17440
17441 #include <stdio.h>
17442
17443 #ifdef RTLD_GLOBAL
17444 #  define LT_DLGLOBAL           RTLD_GLOBAL
17445 #else
17446 #  ifdef DL_GLOBAL
17447 #    define LT_DLGLOBAL         DL_GLOBAL
17448 #  else
17449 #    define LT_DLGLOBAL         0
17450 #  endif
17451 #endif
17452
17453 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17454    find out it does not work in some platform. */
17455 #ifndef LT_DLLAZY_OR_NOW
17456 #  ifdef RTLD_LAZY
17457 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
17458 #  else
17459 #    ifdef DL_LAZY
17460 #      define LT_DLLAZY_OR_NOW          DL_LAZY
17461 #    else
17462 #      ifdef RTLD_NOW
17463 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
17464 #      else
17465 #        ifdef DL_NOW
17466 #          define LT_DLLAZY_OR_NOW      DL_NOW
17467 #        else
17468 #          define LT_DLLAZY_OR_NOW      0
17469 #        endif
17470 #      endif
17471 #    endif
17472 #  endif
17473 #endif
17474
17475 #ifdef __cplusplus
17476 extern "C" void exit (int);
17477 #endif
17478
17479 void fnord() { int i=42;}
17480 int main ()
17481 {
17482   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17483   int status = $lt_dlunknown;
17484
17485   if (self)
17486     {
17487       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
17488       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17489       /* dlclose (self); */
17490     }
17491
17492     exit (status);
17493 }
17494 EOF
17495   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17496   (eval $ac_link) 2>&5
17497   ac_status=$?
17498   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17499   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
17500     (./conftest; exit; ) 2>/dev/null
17501     lt_status=$?
17502     case x$lt_status in
17503       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
17504       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
17505       x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
17506     esac
17507   else :
17508     # compilation failed
17509     lt_cv_dlopen_self_static=no
17510   fi
17511 fi
17512 rm -fr conftest*
17513
17514
17515 fi
17516 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
17517 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
17518     fi
17519
17520     CPPFLAGS="$save_CPPFLAGS"
17521     LDFLAGS="$save_LDFLAGS"
17522     LIBS="$save_LIBS"
17523     ;;
17524   esac
17525
17526   case $lt_cv_dlopen_self in
17527   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
17528   *) enable_dlopen_self=unknown ;;
17529   esac
17530
17531   case $lt_cv_dlopen_self_static in
17532   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
17533   *) enable_dlopen_self_static=unknown ;;
17534   esac
17535 fi
17536
17537
17538 # The else clause should only fire when bootstrapping the
17539 # libtool distribution, otherwise you forgot to ship ltmain.sh
17540 # with your package, and you will get complaints that there are
17541 # no rules to generate ltmain.sh.
17542 if test -f "$ltmain"; then
17543   # See if we are running on zsh, and set the options which allow our commands through
17544   # without removal of \ escapes.
17545   if test -n "${ZSH_VERSION+set}" ; then
17546     setopt NO_GLOB_SUBST
17547   fi
17548   # Now quote all the things that may contain metacharacters while being
17549   # careful not to overquote the AC_SUBSTed values.  We take copies of the
17550   # variables and quote the copies for generation of the libtool script.
17551   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \
17552     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
17553     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
17554     deplibs_check_method reload_flag reload_cmds need_locks \
17555     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
17556     lt_cv_sys_global_symbol_to_c_name_address \
17557     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
17558     old_postinstall_cmds old_postuninstall_cmds \
17559     compiler_GCJ \
17560     CC_GCJ \
17561     LD_GCJ \
17562     lt_prog_compiler_wl_GCJ \
17563     lt_prog_compiler_pic_GCJ \
17564     lt_prog_compiler_static_GCJ \
17565     lt_prog_compiler_no_builtin_flag_GCJ \
17566     export_dynamic_flag_spec_GCJ \
17567     thread_safe_flag_spec_GCJ \
17568     whole_archive_flag_spec_GCJ \
17569     enable_shared_with_static_runtimes_GCJ \
17570     old_archive_cmds_GCJ \
17571     old_archive_from_new_cmds_GCJ \
17572     predep_objects_GCJ \
17573     postdep_objects_GCJ \
17574     predeps_GCJ \
17575     postdeps_GCJ \
17576     compiler_lib_search_path_GCJ \
17577     archive_cmds_GCJ \
17578     archive_expsym_cmds_GCJ \
17579     postinstall_cmds_GCJ \
17580     postuninstall_cmds_GCJ \
17581     old_archive_from_expsyms_cmds_GCJ \
17582     allow_undefined_flag_GCJ \
17583     no_undefined_flag_GCJ \
17584     export_symbols_cmds_GCJ \
17585     hardcode_libdir_flag_spec_GCJ \
17586     hardcode_libdir_flag_spec_ld_GCJ \
17587     hardcode_libdir_separator_GCJ \
17588     hardcode_automatic_GCJ \
17589     module_cmds_GCJ \
17590     module_expsym_cmds_GCJ \
17591     lt_cv_prog_compiler_c_o_GCJ \
17592     exclude_expsyms_GCJ \
17593     include_expsyms_GCJ; do
17594
17595     case $var in
17596     old_archive_cmds_GCJ | \
17597     old_archive_from_new_cmds_GCJ | \
17598     archive_cmds_GCJ | \
17599     archive_expsym_cmds_GCJ | \
17600     module_cmds_GCJ | \
17601     module_expsym_cmds_GCJ | \
17602     old_archive_from_expsyms_cmds_GCJ | \
17603     export_symbols_cmds_GCJ | \
17604     extract_expsyms_cmds | reload_cmds | finish_cmds | \
17605     postinstall_cmds | postuninstall_cmds | \
17606     old_postinstall_cmds | old_postuninstall_cmds | \
17607     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
17608       # Double-quote double-evaled strings.
17609       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
17610       ;;
17611     *)
17612       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
17613       ;;
17614     esac
17615   done
17616
17617   case $lt_echo in
17618   *'\$0 --fallback-echo"')
17619     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
17620     ;;
17621   esac
17622
17623 cfgfile="$ofile"
17624
17625   cat <<__EOF__ >> "$cfgfile"
17626 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
17627
17628 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17629
17630 # Shell to use when invoking shell scripts.
17631 SHELL=$lt_SHELL
17632
17633 # Whether or not to build shared libraries.
17634 build_libtool_libs=$enable_shared
17635
17636 # Whether or not to build static libraries.
17637 build_old_libs=$enable_static
17638
17639 # Whether or not to add -lc for building shared libraries.
17640 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
17641
17642 # Whether or not to disallow shared libs when runtime libs are static
17643 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
17644
17645 # Whether or not to optimize for fast installation.
17646 fast_install=$enable_fast_install
17647
17648 # The host system.
17649 host_alias=$host_alias
17650 host=$host
17651
17652 # An echo program that does not interpret backslashes.
17653 echo=$lt_echo
17654
17655 # The archiver.
17656 AR=$lt_AR
17657 AR_FLAGS=$lt_AR_FLAGS
17658
17659 # A C compiler.
17660 LTCC=$lt_LTCC
17661
17662 # A language-specific compiler.
17663 CC=$lt_compiler_GCJ
17664
17665 # Is the compiler the GNU C compiler?
17666 with_gcc=$GCC_GCJ
17667
17668 # An ERE matcher.
17669 EGREP=$lt_EGREP
17670
17671 # The linker used to build libraries.
17672 LD=$lt_LD_GCJ
17673
17674 # Whether we need hard or soft links.
17675 LN_S=$lt_LN_S
17676
17677 # A BSD-compatible nm program.
17678 NM=$lt_NM
17679
17680 # A symbol stripping program
17681 STRIP=$STRIP
17682
17683 # Used to examine libraries when file_magic_cmd begins "file"
17684 MAGIC_CMD=$MAGIC_CMD
17685
17686 # Used on cygwin: DLL creation program.
17687 DLLTOOL="$DLLTOOL"
17688
17689 # Used on cygwin: object dumper.
17690 OBJDUMP="$OBJDUMP"
17691
17692 # Used on cygwin: assembler.
17693 AS="$AS"
17694
17695 # The name of the directory that contains temporary libtool files.
17696 objdir=$objdir
17697
17698 # How to create reloadable object files.
17699 reload_flag=$lt_reload_flag
17700 reload_cmds=$lt_reload_cmds
17701
17702 # How to pass a linker flag through the compiler.
17703 wl=$lt_lt_prog_compiler_wl_GCJ
17704
17705 # Object file suffix (normally "o").
17706 objext="$ac_objext"
17707
17708 # Old archive suffix (normally "a").
17709 libext="$libext"
17710
17711 # Shared library suffix (normally ".so").
17712 shrext='$shrext'
17713
17714 # Executable file suffix (normally "").
17715 exeext="$exeext"
17716
17717 # Additional compiler flags for building library objects.
17718 pic_flag=$lt_lt_prog_compiler_pic_GCJ
17719 pic_mode=$pic_mode
17720
17721 # What is the maximum length of a command?
17722 max_cmd_len=$lt_cv_sys_max_cmd_len
17723
17724 # Does compiler simultaneously support -c and -o options?
17725 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
17726
17727 # Must we lock files when doing compilation ?
17728 need_locks=$lt_need_locks
17729
17730 # Do we need the lib prefix for modules?
17731 need_lib_prefix=$need_lib_prefix
17732
17733 # Do we need a version for libraries?
17734 need_version=$need_version
17735
17736 # Whether dlopen is supported.
17737 dlopen_support=$enable_dlopen
17738
17739 # Whether dlopen of programs is supported.
17740 dlopen_self=$enable_dlopen_self
17741
17742 # Whether dlopen of statically linked programs is supported.
17743 dlopen_self_static=$enable_dlopen_self_static
17744
17745 # Compiler flag to prevent dynamic linking.
17746 link_static_flag=$lt_lt_prog_compiler_static_GCJ
17747
17748 # Compiler flag to turn off builtin functions.
17749 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
17750
17751 # Compiler flag to allow reflexive dlopens.
17752 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
17753
17754 # Compiler flag to generate shared objects directly from archives.
17755 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
17756
17757 # Compiler flag to generate thread-safe objects.
17758 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
17759
17760 # Library versioning type.
17761 version_type=$version_type
17762
17763 # Format of library name prefix.
17764 libname_spec=$lt_libname_spec
17765
17766 # List of archive names.  First name is the real one, the rest are links.
17767 # The last name is the one that the linker finds with -lNAME.
17768 library_names_spec=$lt_library_names_spec
17769
17770 # The coded name of the library, if different from the real name.
17771 soname_spec=$lt_soname_spec
17772
17773 # Commands used to build and install an old-style archive.
17774 RANLIB=$lt_RANLIB
17775 old_archive_cmds=$lt_old_archive_cmds_GCJ
17776 old_postinstall_cmds=$lt_old_postinstall_cmds
17777 old_postuninstall_cmds=$lt_old_postuninstall_cmds
17778
17779 # Create an old-style archive from a shared archive.
17780 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
17781
17782 # Create a temporary old-style archive to link instead of a shared archive.
17783 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
17784
17785 # Commands used to build and install a shared archive.
17786 archive_cmds=$lt_archive_cmds_GCJ
17787 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
17788 postinstall_cmds=$lt_postinstall_cmds
17789 postuninstall_cmds=$lt_postuninstall_cmds
17790
17791 # Commands used to build a loadable module (assumed same as above if empty)
17792 module_cmds=$lt_module_cmds_GCJ
17793 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
17794
17795 # Commands to strip libraries.
17796 old_striplib=$lt_old_striplib
17797 striplib=$lt_striplib
17798
17799 # Dependencies to place before the objects being linked to create a
17800 # shared library.
17801 predep_objects=$lt_predep_objects_GCJ
17802
17803 # Dependencies to place after the objects being linked to create a
17804 # shared library.
17805 postdep_objects=$lt_postdep_objects_GCJ
17806
17807 # Dependencies to place before the objects being linked to create a
17808 # shared library.
17809 predeps=$lt_predeps_GCJ
17810
17811 # Dependencies to place after the objects being linked to create a
17812 # shared library.
17813 postdeps=$lt_postdeps_GCJ
17814
17815 # The library search path used internally by the compiler when linking
17816 # a shared library.
17817 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
17818
17819 # Method to check whether dependent libraries are shared objects.
17820 deplibs_check_method=$lt_deplibs_check_method
17821
17822 # Command to use when deplibs_check_method == file_magic.
17823 file_magic_cmd=$lt_file_magic_cmd
17824
17825 # Flag that allows shared libraries with undefined symbols to be built.
17826 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
17827
17828 # Flag that forces no undefined symbols.
17829 no_undefined_flag=$lt_no_undefined_flag_GCJ
17830
17831 # Commands used to finish a libtool library installation in a directory.
17832 finish_cmds=$lt_finish_cmds
17833
17834 # Same as above, but a single script fragment to be evaled but not shown.
17835 finish_eval=$lt_finish_eval
17836
17837 # Take the output of nm and produce a listing of raw symbols and C names.
17838 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
17839
17840 # Transform the output of nm in a proper C declaration
17841 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
17842
17843 # Transform the output of nm in a C name address pair
17844 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
17845
17846 # This is the shared library runtime path variable.
17847 runpath_var=$runpath_var
17848
17849 # This is the shared library path variable.
17850 shlibpath_var=$shlibpath_var
17851
17852 # Is shlibpath searched before the hard-coded library search path?
17853 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
17854
17855 # How to hardcode a shared library path into an executable.
17856 hardcode_action=$hardcode_action_GCJ
17857
17858 # Whether we should hardcode library paths into libraries.
17859 hardcode_into_libs=$hardcode_into_libs
17860
17861 # Flag to hardcode \$libdir into a binary during linking.
17862 # This must work even if \$libdir does not exist.
17863 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
17864
17865 # If ld is used when linking, flag to hardcode \$libdir into
17866 # a binary during linking. This must work even if \$libdir does
17867 # not exist.
17868 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
17869
17870 # Whether we need a single -rpath flag with a separated argument.
17871 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
17872
17873 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
17874 # resulting binary.
17875 hardcode_direct=$hardcode_direct_GCJ
17876
17877 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
17878 # resulting binary.
17879 hardcode_minus_L=$hardcode_minus_L_GCJ
17880
17881 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
17882 # the resulting binary.
17883 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
17884
17885 # Set to yes if building a shared library automatically hardcodes DIR into the library
17886 # and all subsequent libraries and executables linked against it.
17887 hardcode_automatic=$hardcode_automatic_GCJ
17888
17889 # Variables whose values should be saved in libtool wrapper scripts and
17890 # restored at relink time.
17891 variables_saved_for_relink="$variables_saved_for_relink"
17892
17893 # Whether libtool must link a program against all its dependency libraries.
17894 link_all_deplibs=$link_all_deplibs_GCJ
17895
17896 # Compile-time system search path for libraries
17897 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
17898
17899 # Run-time system search path for libraries
17900 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
17901
17902 # Fix the shell variable \$srcfile for the compiler.
17903 fix_srcfile_path="$fix_srcfile_path_GCJ"
17904
17905 # Set to yes if exported symbols are required.
17906 always_export_symbols=$always_export_symbols_GCJ
17907
17908 # The commands to list exported symbols.
17909 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
17910
17911 # The commands to extract the exported symbol list from a shared archive.
17912 extract_expsyms_cmds=$lt_extract_expsyms_cmds
17913
17914 # Symbols that should not be listed in the preloaded symbols.
17915 exclude_expsyms=$lt_exclude_expsyms_GCJ
17916
17917 # Symbols that must always be exported.
17918 include_expsyms=$lt_include_expsyms_GCJ
17919
17920 # ### END LIBTOOL TAG CONFIG: $tagname
17921
17922 __EOF__
17923
17924
17925 else
17926   # If there is no Makefile yet, we rely on a make rule to execute
17927   # `config.status --recheck' to rerun these tests and create the
17928   # libtool script then.
17929   test -f Makefile && make "$ltmain"
17930 fi
17931
17932
17933 ac_ext=c
17934 ac_cpp='$CPP $CPPFLAGS'
17935 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17936 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17937 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17938
17939 CC="$lt_save_CC"
17940
17941         else
17942           tagname=""
17943         fi
17944         ;;
17945
17946       RC)
17947
17948
17949
17950 # Source file extension for RC test sources.
17951 ac_ext=rc
17952
17953 # Object file extension for compiled RC test sources.
17954 objext=o
17955 objext_RC=$objext
17956
17957 # Code to be used in simple compile tests
17958 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
17959
17960 # Code to be used in simple link tests
17961 lt_simple_link_test_code="$lt_simple_compile_test_code"
17962
17963 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
17964
17965 # If no C compiler was specified, use CC.
17966 LTCC=${LTCC-"$CC"}
17967
17968 # Allow CC to be a program name with arguments.
17969 compiler=$CC
17970
17971
17972 # Allow CC to be a program name with arguments.
17973 lt_save_CC="$CC"
17974 CC=${RC-"windres"}
17975 compiler=$CC
17976 compiler_RC=$CC
17977 lt_cv_prog_compiler_c_o_RC=yes
17978
17979 # The else clause should only fire when bootstrapping the
17980 # libtool distribution, otherwise you forgot to ship ltmain.sh
17981 # with your package, and you will get complaints that there are
17982 # no rules to generate ltmain.sh.
17983 if test -f "$ltmain"; then
17984   # See if we are running on zsh, and set the options which allow our commands through
17985   # without removal of \ escapes.
17986   if test -n "${ZSH_VERSION+set}" ; then
17987     setopt NO_GLOB_SUBST
17988   fi
17989   # Now quote all the things that may contain metacharacters while being
17990   # careful not to overquote the AC_SUBSTed values.  We take copies of the
17991   # variables and quote the copies for generation of the libtool script.
17992   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \
17993     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
17994     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
17995     deplibs_check_method reload_flag reload_cmds need_locks \
17996     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
17997     lt_cv_sys_global_symbol_to_c_name_address \
17998     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
17999     old_postinstall_cmds old_postuninstall_cmds \
18000     compiler_RC \
18001     CC_RC \
18002     LD_RC \
18003     lt_prog_compiler_wl_RC \
18004     lt_prog_compiler_pic_RC \
18005     lt_prog_compiler_static_RC \
18006     lt_prog_compiler_no_builtin_flag_RC \
18007     export_dynamic_flag_spec_RC \
18008     thread_safe_flag_spec_RC \
18009     whole_archive_flag_spec_RC \
18010     enable_shared_with_static_runtimes_RC \
18011     old_archive_cmds_RC \
18012     old_archive_from_new_cmds_RC \
18013     predep_objects_RC \
18014     postdep_objects_RC \
18015     predeps_RC \
18016     postdeps_RC \
18017     compiler_lib_search_path_RC \
18018     archive_cmds_RC \
18019     archive_expsym_cmds_RC \
18020     postinstall_cmds_RC \
18021     postuninstall_cmds_RC \
18022     old_archive_from_expsyms_cmds_RC \
18023     allow_undefined_flag_RC \
18024     no_undefined_flag_RC \
18025     export_symbols_cmds_RC \
18026     hardcode_libdir_flag_spec_RC \
18027     hardcode_libdir_flag_spec_ld_RC \
18028     hardcode_libdir_separator_RC \
18029     hardcode_automatic_RC \
18030     module_cmds_RC \
18031     module_expsym_cmds_RC \
18032     lt_cv_prog_compiler_c_o_RC \
18033     exclude_expsyms_RC \
18034     include_expsyms_RC; do
18035
18036     case $var in
18037     old_archive_cmds_RC | \
18038     old_archive_from_new_cmds_RC | \
18039     archive_cmds_RC | \
18040     archive_expsym_cmds_RC | \
18041     module_cmds_RC | \
18042     module_expsym_cmds_RC | \
18043     old_archive_from_expsyms_cmds_RC | \
18044     export_symbols_cmds_RC | \
18045     extract_expsyms_cmds | reload_cmds | finish_cmds | \
18046     postinstall_cmds | postuninstall_cmds | \
18047     old_postinstall_cmds | old_postuninstall_cmds | \
18048     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18049       # Double-quote double-evaled strings.
18050       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18051       ;;
18052     *)
18053       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18054       ;;
18055     esac
18056   done
18057
18058   case $lt_echo in
18059   *'\$0 --fallback-echo"')
18060     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18061     ;;
18062   esac
18063
18064 cfgfile="$ofile"
18065
18066   cat <<__EOF__ >> "$cfgfile"
18067 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
18068
18069 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18070
18071 # Shell to use when invoking shell scripts.
18072 SHELL=$lt_SHELL
18073
18074 # Whether or not to build shared libraries.
18075 build_libtool_libs=$enable_shared
18076
18077 # Whether or not to build static libraries.
18078 build_old_libs=$enable_static
18079
18080 # Whether or not to add -lc for building shared libraries.
18081 build_libtool_need_lc=$archive_cmds_need_lc_RC
18082
18083 # Whether or not to disallow shared libs when runtime libs are static
18084 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
18085
18086 # Whether or not to optimize for fast installation.
18087 fast_install=$enable_fast_install
18088
18089 # The host system.
18090 host_alias=$host_alias
18091 host=$host
18092
18093 # An echo program that does not interpret backslashes.
18094 echo=$lt_echo
18095
18096 # The archiver.
18097 AR=$lt_AR
18098 AR_FLAGS=$lt_AR_FLAGS
18099
18100 # A C compiler.
18101 LTCC=$lt_LTCC
18102
18103 # A language-specific compiler.
18104 CC=$lt_compiler_RC
18105
18106 # Is the compiler the GNU C compiler?
18107 with_gcc=$GCC_RC
18108
18109 # An ERE matcher.
18110 EGREP=$lt_EGREP
18111
18112 # The linker used to build libraries.
18113 LD=$lt_LD_RC
18114
18115 # Whether we need hard or soft links.
18116 LN_S=$lt_LN_S
18117
18118 # A BSD-compatible nm program.
18119 NM=$lt_NM
18120
18121 # A symbol stripping program
18122 STRIP=$STRIP
18123
18124 # Used to examine libraries when file_magic_cmd begins "file"
18125 MAGIC_CMD=$MAGIC_CMD
18126
18127 # Used on cygwin: DLL creation program.
18128 DLLTOOL="$DLLTOOL"
18129
18130 # Used on cygwin: object dumper.
18131 OBJDUMP="$OBJDUMP"
18132
18133 # Used on cygwin: assembler.
18134 AS="$AS"
18135
18136 # The name of the directory that contains temporary libtool files.
18137 objdir=$objdir
18138
18139 # How to create reloadable object files.
18140 reload_flag=$lt_reload_flag
18141 reload_cmds=$lt_reload_cmds
18142
18143 # How to pass a linker flag through the compiler.
18144 wl=$lt_lt_prog_compiler_wl_RC
18145
18146 # Object file suffix (normally "o").
18147 objext="$ac_objext"
18148
18149 # Old archive suffix (normally "a").
18150 libext="$libext"
18151
18152 # Shared library suffix (normally ".so").
18153 shrext='$shrext'
18154
18155 # Executable file suffix (normally "").
18156 exeext="$exeext"
18157
18158 # Additional compiler flags for building library objects.
18159 pic_flag=$lt_lt_prog_compiler_pic_RC
18160 pic_mode=$pic_mode
18161
18162 # What is the maximum length of a command?
18163 max_cmd_len=$lt_cv_sys_max_cmd_len
18164
18165 # Does compiler simultaneously support -c and -o options?
18166 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
18167
18168 # Must we lock files when doing compilation ?
18169 need_locks=$lt_need_locks
18170
18171 # Do we need the lib prefix for modules?
18172 need_lib_prefix=$need_lib_prefix
18173
18174 # Do we need a version for libraries?
18175 need_version=$need_version
18176
18177 # Whether dlopen is supported.
18178 dlopen_support=$enable_dlopen
18179
18180 # Whether dlopen of programs is supported.
18181 dlopen_self=$enable_dlopen_self
18182
18183 # Whether dlopen of statically linked programs is supported.
18184 dlopen_self_static=$enable_dlopen_self_static
18185
18186 # Compiler flag to prevent dynamic linking.
18187 link_static_flag=$lt_lt_prog_compiler_static_RC
18188
18189 # Compiler flag to turn off builtin functions.
18190 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
18191
18192 # Compiler flag to allow reflexive dlopens.
18193 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
18194
18195 # Compiler flag to generate shared objects directly from archives.
18196 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
18197
18198 # Compiler flag to generate thread-safe objects.
18199 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
18200
18201 # Library versioning type.
18202 version_type=$version_type
18203
18204 # Format of library name prefix.
18205 libname_spec=$lt_libname_spec
18206
18207 # List of archive names.  First name is the real one, the rest are links.
18208 # The last name is the one that the linker finds with -lNAME.
18209 library_names_spec=$lt_library_names_spec
18210
18211 # The coded name of the library, if different from the real name.
18212 soname_spec=$lt_soname_spec
18213
18214 # Commands used to build and install an old-style archive.
18215 RANLIB=$lt_RANLIB
18216 old_archive_cmds=$lt_old_archive_cmds_RC
18217 old_postinstall_cmds=$lt_old_postinstall_cmds
18218 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18219
18220 # Create an old-style archive from a shared archive.
18221 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
18222
18223 # Create a temporary old-style archive to link instead of a shared archive.
18224 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
18225
18226 # Commands used to build and install a shared archive.
18227 archive_cmds=$lt_archive_cmds_RC
18228 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
18229 postinstall_cmds=$lt_postinstall_cmds
18230 postuninstall_cmds=$lt_postuninstall_cmds
18231
18232 # Commands used to build a loadable module (assumed same as above if empty)
18233 module_cmds=$lt_module_cmds_RC
18234 module_expsym_cmds=$lt_module_expsym_cmds_RC
18235
18236 # Commands to strip libraries.
18237 old_striplib=$lt_old_striplib
18238 striplib=$lt_striplib
18239
18240 # Dependencies to place before the objects being linked to create a
18241 # shared library.
18242 predep_objects=$lt_predep_objects_RC
18243
18244 # Dependencies to place after the objects being linked to create a
18245 # shared library.
18246 postdep_objects=$lt_postdep_objects_RC
18247
18248 # Dependencies to place before the objects being linked to create a
18249 # shared library.
18250 predeps=$lt_predeps_RC
18251
18252 # Dependencies to place after the objects being linked to create a
18253 # shared library.
18254 postdeps=$lt_postdeps_RC
18255
18256 # The library search path used internally by the compiler when linking
18257 # a shared library.
18258 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
18259
18260 # Method to check whether dependent libraries are shared objects.
18261 deplibs_check_method=$lt_deplibs_check_method
18262
18263 # Command to use when deplibs_check_method == file_magic.
18264 file_magic_cmd=$lt_file_magic_cmd
18265
18266 # Flag that allows shared libraries with undefined symbols to be built.
18267 allow_undefined_flag=$lt_allow_undefined_flag_RC
18268
18269 # Flag that forces no undefined symbols.
18270 no_undefined_flag=$lt_no_undefined_flag_RC
18271
18272 # Commands used to finish a libtool library installation in a directory.
18273 finish_cmds=$lt_finish_cmds
18274
18275 # Same as above, but a single script fragment to be evaled but not shown.
18276 finish_eval=$lt_finish_eval
18277
18278 # Take the output of nm and produce a listing of raw symbols and C names.
18279 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18280
18281 # Transform the output of nm in a proper C declaration
18282 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18283
18284 # Transform the output of nm in a C name address pair
18285 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18286
18287 # This is the shared library runtime path variable.
18288 runpath_var=$runpath_var
18289
18290 # This is the shared library path variable.
18291 shlibpath_var=$shlibpath_var
18292
18293 # Is shlibpath searched before the hard-coded library search path?
18294 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18295
18296 # How to hardcode a shared library path into an executable.
18297 hardcode_action=$hardcode_action_RC
18298
18299 # Whether we should hardcode library paths into libraries.
18300 hardcode_into_libs=$hardcode_into_libs
18301
18302 # Flag to hardcode \$libdir into a binary during linking.
18303 # This must work even if \$libdir does not exist.
18304 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
18305
18306 # If ld is used when linking, flag to hardcode \$libdir into
18307 # a binary during linking. This must work even if \$libdir does
18308 # not exist.
18309 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
18310
18311 # Whether we need a single -rpath flag with a separated argument.
18312 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
18313
18314 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18315 # resulting binary.
18316 hardcode_direct=$hardcode_direct_RC
18317
18318 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18319 # resulting binary.
18320 hardcode_minus_L=$hardcode_minus_L_RC
18321
18322 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18323 # the resulting binary.
18324 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
18325
18326 # Set to yes if building a shared library automatically hardcodes DIR into the library
18327 # and all subsequent libraries and executables linked against it.
18328 hardcode_automatic=$hardcode_automatic_RC
18329
18330 # Variables whose values should be saved in libtool wrapper scripts and
18331 # restored at relink time.
18332 variables_saved_for_relink="$variables_saved_for_relink"
18333
18334 # Whether libtool must link a program against all its dependency libraries.
18335 link_all_deplibs=$link_all_deplibs_RC
18336
18337 # Compile-time system search path for libraries
18338 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18339
18340 # Run-time system search path for libraries
18341 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18342
18343 # Fix the shell variable \$srcfile for the compiler.
18344 fix_srcfile_path="$fix_srcfile_path_RC"
18345
18346 # Set to yes if exported symbols are required.
18347 always_export_symbols=$always_export_symbols_RC
18348
18349 # The commands to list exported symbols.
18350 export_symbols_cmds=$lt_export_symbols_cmds_RC
18351
18352 # The commands to extract the exported symbol list from a shared archive.
18353 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18354
18355 # Symbols that should not be listed in the preloaded symbols.
18356 exclude_expsyms=$lt_exclude_expsyms_RC
18357
18358 # Symbols that must always be exported.
18359 include_expsyms=$lt_include_expsyms_RC
18360
18361 # ### END LIBTOOL TAG CONFIG: $tagname
18362
18363 __EOF__
18364
18365
18366 else
18367   # If there is no Makefile yet, we rely on a make rule to execute
18368   # `config.status --recheck' to rerun these tests and create the
18369   # libtool script then.
18370   test -f Makefile && make "$ltmain"
18371 fi
18372
18373
18374 ac_ext=c
18375 ac_cpp='$CPP $CPPFLAGS'
18376 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18377 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18378 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18379
18380 CC="$lt_save_CC"
18381
18382         ;;
18383
18384       *)
18385         { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
18386 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
18387    { (exit 1); exit 1; }; }
18388         ;;
18389       esac
18390
18391       # Append the new tag name to the list of available tags.
18392       if test -n "$tagname" ; then
18393       available_tags="$available_tags $tagname"
18394     fi
18395     fi
18396   done
18397   IFS="$lt_save_ifs"
18398
18399   # Now substitute the updated list of available tags.
18400   if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
18401     mv "${ofile}T" "$ofile"
18402     chmod +x "$ofile"
18403   else
18404     rm -f "${ofile}T"
18405     { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
18406 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
18407    { (exit 1); exit 1; }; }
18408   fi
18409 fi
18410
18411
18412
18413 # This can be used to rebuild libtool when needed
18414 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
18415
18416 # Always use our own libtool.
18417 LIBTOOL='$(SHELL) $(top_builddir)/mklib'
18418
18419 # Prevent multiple expansion
18420
18421
18422
18423
18424
18425
18426
18427
18428
18429
18430
18431
18432
18433
18434
18435
18436
18437
18438
18439
18440
18441 # Extract the first word of "pwd", so it can be a program name with args.
18442 set dummy pwd; ac_word=$2
18443 echo "$as_me:$LINENO: checking for $ac_word" >&5
18444 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18445 if test "${ac_cv_path_RPWD+set}" = set; then
18446   echo $ECHO_N "(cached) $ECHO_C" >&6
18447 else
18448   case $RPWD in
18449   [\\/]* | ?:[\\/]*)
18450   ac_cv_path_RPWD="$RPWD" # Let the user override the test with a path.
18451   ;;
18452   *)
18453   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18454 for as_dir in $PATH
18455 do
18456   IFS=$as_save_IFS
18457   test -z "$as_dir" && as_dir=.
18458   for ac_exec_ext in '' $ac_executable_extensions; do
18459   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18460     ac_cv_path_RPWD="$as_dir/$ac_word$ac_exec_ext"
18461     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18462     break 2
18463   fi
18464 done
18465 done
18466
18467   ;;
18468 esac
18469 fi
18470 RPWD=$ac_cv_path_RPWD
18471
18472 if test -n "$RPWD"; then
18473   echo "$as_me:$LINENO: result: $RPWD" >&5
18474 echo "${ECHO_T}$RPWD" >&6
18475 else
18476   echo "$as_me:$LINENO: result: no" >&5
18477 echo "${ECHO_T}no" >&6
18478 fi
18479
18480 # Extract the first word of "ar", so it can be a program name with args.
18481 set dummy ar; ac_word=$2
18482 echo "$as_me:$LINENO: checking for $ac_word" >&5
18483 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18484 if test "${ac_cv_path_AR+set}" = set; then
18485   echo $ECHO_N "(cached) $ECHO_C" >&6
18486 else
18487   case $AR in
18488   [\\/]* | ?:[\\/]*)
18489   ac_cv_path_AR="$AR" # Let the user override the test with a path.
18490   ;;
18491   *)
18492   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18493 for as_dir in $PATH
18494 do
18495   IFS=$as_save_IFS
18496   test -z "$as_dir" && as_dir=.
18497   for ac_exec_ext in '' $ac_executable_extensions; do
18498   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18499     ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext"
18500     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18501     break 2
18502   fi
18503 done
18504 done
18505
18506   ;;
18507 esac
18508 fi
18509 AR=$ac_cv_path_AR
18510
18511 if test -n "$AR"; then
18512   echo "$as_me:$LINENO: result: $AR" >&5
18513 echo "${ECHO_T}$AR" >&6
18514 else
18515   echo "$as_me:$LINENO: result: no" >&5
18516 echo "${ECHO_T}no" >&6
18517 fi
18518
18519 # Extract the first word of "sed", so it can be a program name with args.
18520 set dummy sed; ac_word=$2
18521 echo "$as_me:$LINENO: checking for $ac_word" >&5
18522 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18523 if test "${ac_cv_path_SED+set}" = set; then
18524   echo $ECHO_N "(cached) $ECHO_C" >&6
18525 else
18526   case $SED in
18527   [\\/]* | ?:[\\/]*)
18528   ac_cv_path_SED="$SED" # Let the user override the test with a path.
18529   ;;
18530   *)
18531   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18532 for as_dir in $PATH
18533 do
18534   IFS=$as_save_IFS
18535   test -z "$as_dir" && as_dir=.
18536   for ac_exec_ext in '' $ac_executable_extensions; do
18537   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18538     ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
18539     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18540     break 2
18541   fi
18542 done
18543 done
18544
18545   ;;
18546 esac
18547 fi
18548 SED=$ac_cv_path_SED
18549
18550 if test -n "$SED"; then
18551   echo "$as_me:$LINENO: result: $SED" >&5
18552 echo "${ECHO_T}$SED" >&6
18553 else
18554   echo "$as_me:$LINENO: result: no" >&5
18555 echo "${ECHO_T}no" >&6
18556 fi
18557
18558 # Extract the first word of "rm", so it can be a program name with args.
18559 set dummy rm; ac_word=$2
18560 echo "$as_me:$LINENO: checking for $ac_word" >&5
18561 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18562 if test "${ac_cv_path_RM+set}" = set; then
18563   echo $ECHO_N "(cached) $ECHO_C" >&6
18564 else
18565   case $RM in
18566   [\\/]* | ?:[\\/]*)
18567   ac_cv_path_RM="$RM" # Let the user override the test with a path.
18568   ;;
18569   *)
18570   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18571 for as_dir in $PATH
18572 do
18573   IFS=$as_save_IFS
18574   test -z "$as_dir" && as_dir=.
18575   for ac_exec_ext in '' $ac_executable_extensions; do
18576   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18577     ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
18578     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18579     break 2
18580   fi
18581 done
18582 done
18583
18584   ;;
18585 esac
18586 fi
18587 RM=$ac_cv_path_RM
18588
18589 if test -n "$RM"; then
18590   echo "$as_me:$LINENO: result: $RM" >&5
18591 echo "${ECHO_T}$RM" >&6
18592 else
18593   echo "$as_me:$LINENO: result: no" >&5
18594 echo "${ECHO_T}no" >&6
18595 fi
18596
18597 # Extract the first word of "echo", so it can be a program name with args.
18598 set dummy echo; ac_word=$2
18599 echo "$as_me:$LINENO: checking for $ac_word" >&5
18600 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18601 if test "${ac_cv_path_ECHO+set}" = set; then
18602   echo $ECHO_N "(cached) $ECHO_C" >&6
18603 else
18604   case $ECHO in
18605   [\\/]* | ?:[\\/]*)
18606   ac_cv_path_ECHO="$ECHO" # Let the user override the test with a path.
18607   ;;
18608   *)
18609   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18610 for as_dir in $PATH
18611 do
18612   IFS=$as_save_IFS
18613   test -z "$as_dir" && as_dir=.
18614   for ac_exec_ext in '' $ac_executable_extensions; do
18615   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18616     ac_cv_path_ECHO="$as_dir/$ac_word$ac_exec_ext"
18617     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18618     break 2
18619   fi
18620 done
18621 done
18622
18623   ;;
18624 esac
18625 fi
18626 ECHO=$ac_cv_path_ECHO
18627
18628 if test -n "$ECHO"; then
18629   echo "$as_me:$LINENO: result: $ECHO" >&5
18630 echo "${ECHO_T}$ECHO" >&6
18631 else
18632   echo "$as_me:$LINENO: result: no" >&5
18633 echo "${ECHO_T}no" >&6
18634 fi
18635
18636 # Extract the first word of "mkdir", so it can be a program name with args.
18637 set dummy mkdir; ac_word=$2
18638 echo "$as_me:$LINENO: checking for $ac_word" >&5
18639 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18640 if test "${ac_cv_path_MKDIR+set}" = set; then
18641   echo $ECHO_N "(cached) $ECHO_C" >&6
18642 else
18643   case $MKDIR in
18644   [\\/]* | ?:[\\/]*)
18645   ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
18646   ;;
18647   *)
18648   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18649 for as_dir in $PATH
18650 do
18651   IFS=$as_save_IFS
18652   test -z "$as_dir" && as_dir=.
18653   for ac_exec_ext in '' $ac_executable_extensions; do
18654   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18655     ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
18656     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18657     break 2
18658   fi
18659 done
18660 done
18661
18662   ;;
18663 esac
18664 fi
18665 MKDIR=$ac_cv_path_MKDIR
18666
18667 if test -n "$MKDIR"; then
18668   echo "$as_me:$LINENO: result: $MKDIR" >&5
18669 echo "${ECHO_T}$MKDIR" >&6
18670 else
18671   echo "$as_me:$LINENO: result: no" >&5
18672 echo "${ECHO_T}no" >&6
18673 fi
18674
18675 # Extract the first word of "date", so it can be a program name with args.
18676 set dummy date; ac_word=$2
18677 echo "$as_me:$LINENO: checking for $ac_word" >&5
18678 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18679 if test "${ac_cv_path_DATE+set}" = set; then
18680   echo $ECHO_N "(cached) $ECHO_C" >&6
18681 else
18682   case $DATE in
18683   [\\/]* | ?:[\\/]*)
18684   ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
18685   ;;
18686   *)
18687   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18688 for as_dir in $PATH
18689 do
18690   IFS=$as_save_IFS
18691   test -z "$as_dir" && as_dir=.
18692   for ac_exec_ext in '' $ac_executable_extensions; do
18693   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18694     ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
18695     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18696     break 2
18697   fi
18698 done
18699 done
18700
18701   ;;
18702 esac
18703 fi
18704 DATE=$ac_cv_path_DATE
18705
18706 if test -n "$DATE"; then
18707   echo "$as_me:$LINENO: result: $DATE" >&5
18708 echo "${ECHO_T}$DATE" >&6
18709 else
18710   echo "$as_me:$LINENO: result: no" >&5
18711 echo "${ECHO_T}no" >&6
18712 fi
18713
18714 # Extract the first word of "mv", so it can be a program name with args.
18715 set dummy mv; ac_word=$2
18716 echo "$as_me:$LINENO: checking for $ac_word" >&5
18717 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18718 if test "${ac_cv_path_MV+set}" = set; then
18719   echo $ECHO_N "(cached) $ECHO_C" >&6
18720 else
18721   case $MV in
18722   [\\/]* | ?:[\\/]*)
18723   ac_cv_path_MV="$MV" # Let the user override the test with a path.
18724   ;;
18725   *)
18726   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18727 for as_dir in $PATH
18728 do
18729   IFS=$as_save_IFS
18730   test -z "$as_dir" && as_dir=.
18731   for ac_exec_ext in '' $ac_executable_extensions; do
18732   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18733     ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
18734     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18735     break 2
18736   fi
18737 done
18738 done
18739
18740   ;;
18741 esac
18742 fi
18743 MV=$ac_cv_path_MV
18744
18745 if test -n "$MV"; then
18746   echo "$as_me:$LINENO: result: $MV" >&5
18747 echo "${ECHO_T}$MV" >&6
18748 else
18749   echo "$as_me:$LINENO: result: no" >&5
18750 echo "${ECHO_T}no" >&6
18751 fi
18752
18753 # Extract the first word of "dot", so it can be a program name with args.
18754 set dummy dot; ac_word=$2
18755 echo "$as_me:$LINENO: checking for $ac_word" >&5
18756 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18757 if test "${ac_cv_path_DOT+set}" = set; then
18758   echo $ECHO_N "(cached) $ECHO_C" >&6
18759 else
18760   case $DOT in
18761   [\\/]* | ?:[\\/]*)
18762   ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
18763   ;;
18764   *)
18765   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18766 for as_dir in $PATH
18767 do
18768   IFS=$as_save_IFS
18769   test -z "$as_dir" && as_dir=.
18770   for ac_exec_ext in '' $ac_executable_extensions; do
18771   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18772     ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
18773     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18774     break 2
18775   fi
18776 done
18777 done
18778
18779   ;;
18780 esac
18781 fi
18782 DOT=$ac_cv_path_DOT
18783
18784 if test -n "$DOT"; then
18785   echo "$as_me:$LINENO: result: $DOT" >&5
18786 echo "${ECHO_T}$DOT" >&6
18787 else
18788   echo "$as_me:$LINENO: result: no" >&5
18789 echo "${ECHO_T}no" >&6
18790 fi
18791
18792 # Extract the first word of "etags", so it can be a program name with args.
18793 set dummy etags; 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_ETAGS+set}" = set; then
18797   echo $ECHO_N "(cached) $ECHO_C" >&6
18798 else
18799   case $ETAGS in
18800   [\\/]* | ?:[\\/]*)
18801   ac_cv_path_ETAGS="$ETAGS" # 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_ETAGS="$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   ;;
18819 esac
18820 fi
18821 ETAGS=$ac_cv_path_ETAGS
18822
18823 if test -n "$ETAGS"; then
18824   echo "$as_me:$LINENO: result: $ETAGS" >&5
18825 echo "${ECHO_T}$ETAGS" >&6
18826 else
18827   echo "$as_me:$LINENO: result: no" >&5
18828 echo "${ECHO_T}no" >&6
18829 fi
18830
18831 # Extract the first word of "purify", so it can be a program name with args.
18832 set dummy purify; ac_word=$2
18833 echo "$as_me:$LINENO: checking for $ac_word" >&5
18834 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18835 if test "${ac_cv_path_PURIFY+set}" = set; then
18836   echo $ECHO_N "(cached) $ECHO_C" >&6
18837 else
18838   case $PURIFY in
18839   [\\/]* | ?:[\\/]*)
18840   ac_cv_path_PURIFY="$PURIFY" # Let the user override the test with a path.
18841   ;;
18842   *)
18843   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18844 for as_dir in $PATH
18845 do
18846   IFS=$as_save_IFS
18847   test -z "$as_dir" && as_dir=.
18848   for ac_exec_ext in '' $ac_executable_extensions; do
18849   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18850     ac_cv_path_PURIFY="$as_dir/$ac_word$ac_exec_ext"
18851     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18852     break 2
18853   fi
18854 done
18855 done
18856
18857   ;;
18858 esac
18859 fi
18860 PURIFY=$ac_cv_path_PURIFY
18861
18862 if test -n "$PURIFY"; then
18863   echo "$as_me:$LINENO: result: $PURIFY" >&5
18864 echo "${ECHO_T}$PURIFY" >&6
18865 else
18866   echo "$as_me:$LINENO: result: no" >&5
18867 echo "${ECHO_T}no" >&6
18868 fi
18869
18870 # Extract the first word of "python", so it can be a program name with args.
18871 set dummy python; ac_word=$2
18872 echo "$as_me:$LINENO: checking for $ac_word" >&5
18873 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18874 if test "${ac_cv_path_PYTHON+set}" = set; then
18875   echo $ECHO_N "(cached) $ECHO_C" >&6
18876 else
18877   case $PYTHON in
18878   [\\/]* | ?:[\\/]*)
18879   ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
18880   ;;
18881   *)
18882   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18883 for as_dir in $PATH
18884 do
18885   IFS=$as_save_IFS
18886   test -z "$as_dir" && as_dir=.
18887   for ac_exec_ext in '' $ac_executable_extensions; do
18888   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18889     ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
18890     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18891     break 2
18892   fi
18893 done
18894 done
18895
18896   ;;
18897 esac
18898 fi
18899 PYTHON=$ac_cv_path_PYTHON
18900
18901 if test -n "$PYTHON"; then
18902   echo "$as_me:$LINENO: result: $PYTHON" >&5
18903 echo "${ECHO_T}$PYTHON" >&6
18904 else
18905   echo "$as_me:$LINENO: result: no" >&5
18906 echo "${ECHO_T}no" >&6
18907 fi
18908
18909 # Extract the first word of "qmtest", so it can be a program name with args.
18910 set dummy qmtest; ac_word=$2
18911 echo "$as_me:$LINENO: checking for $ac_word" >&5
18912 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18913 if test "${ac_cv_path_QMTEST+set}" = set; then
18914   echo $ECHO_N "(cached) $ECHO_C" >&6
18915 else
18916   case $QMTEST in
18917   [\\/]* | ?:[\\/]*)
18918   ac_cv_path_QMTEST="$QMTEST" # Let the user override the test with a path.
18919   ;;
18920   *)
18921   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18922 for as_dir in $PATH
18923 do
18924   IFS=$as_save_IFS
18925   test -z "$as_dir" && as_dir=.
18926   for ac_exec_ext in '' $ac_executable_extensions; do
18927   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18928     ac_cv_path_QMTEST="$as_dir/$ac_word$ac_exec_ext"
18929     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18930     break 2
18931   fi
18932 done
18933 done
18934
18935   ;;
18936 esac
18937 fi
18938 QMTEST=$ac_cv_path_QMTEST
18939
18940 if test -n "$QMTEST"; then
18941   echo "$as_me:$LINENO: result: $QMTEST" >&5
18942 echo "${ECHO_T}$QMTEST" >&6
18943 else
18944   echo "$as_me:$LINENO: result: no" >&5
18945 echo "${ECHO_T}no" >&6
18946 fi
18947
18948
18949 pyversion=`$PYTHON -V 2>&1 | cut -d\  -f2`
18950 pymajor=`echo $pyversion | cut -d. -f1`
18951 pyminor=`echo $pyversion | cut -d. -f2`
18952
18953 if test "$pymajor" -ge "2"
18954 then
18955         if test "$pymajor" -eq "2"
18956         then
18957                 if test "$pyminor" -lt "2"
18958                 then
18959                         { { echo "$as_me:$LINENO: error: Python 2.2 or greater required" >&5
18960 echo "$as_me: error: Python 2.2 or greater required" >&2;}
18961    { (exit 1); exit 1; }; }
18962                 fi
18963         fi
18964 else
18965         { { echo "$as_me:$LINENO: error: Python 2.2 or greater required" >&5
18966 echo "$as_me: error: Python 2.2 or greater required" >&2;}
18967    { (exit 1); exit 1; }; }
18968 fi
18969
18970
18971
18972
18973
18974 echo "$as_me:$LINENO: checking for elf_begin in -lelf" >&5
18975 echo $ECHO_N "checking for elf_begin in -lelf... $ECHO_C" >&6
18976 if test "${ac_cv_lib_elf_elf_begin+set}" = set; then
18977   echo $ECHO_N "(cached) $ECHO_C" >&6
18978 else
18979   ac_check_lib_save_LIBS=$LIBS
18980 LIBS="-lelf  $LIBS"
18981 cat >conftest.$ac_ext <<_ACEOF
18982 #line $LINENO "configure"
18983 /* confdefs.h.  */
18984 _ACEOF
18985 cat confdefs.h >>conftest.$ac_ext
18986 cat >>conftest.$ac_ext <<_ACEOF
18987 /* end confdefs.h.  */
18988
18989 /* Override any gcc2 internal prototype to avoid an error.  */
18990 #ifdef __cplusplus
18991 extern "C"
18992 #endif
18993 /* We use char because int might match the return type of a gcc2
18994    builtin and then its argument prototype would still apply.  */
18995 char elf_begin ();
18996 int
18997 main ()
18998 {
18999 elf_begin ();
19000   ;
19001   return 0;
19002 }
19003 _ACEOF
19004 rm -f conftest.$ac_objext conftest$ac_exeext
19005 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19006   (eval $ac_link) 2>&5
19007   ac_status=$?
19008   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19009   (exit $ac_status); } &&
19010          { ac_try='test -s conftest$ac_exeext'
19011   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19012   (eval $ac_try) 2>&5
19013   ac_status=$?
19014   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19015   (exit $ac_status); }; }; then
19016   ac_cv_lib_elf_elf_begin=yes
19017 else
19018   echo "$as_me: failed program was:" >&5
19019 sed 's/^/| /' conftest.$ac_ext >&5
19020
19021 ac_cv_lib_elf_elf_begin=no
19022 fi
19023 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
19024 LIBS=$ac_check_lib_save_LIBS
19025 fi
19026 echo "$as_me:$LINENO: result: $ac_cv_lib_elf_elf_begin" >&5
19027 echo "${ECHO_T}$ac_cv_lib_elf_elf_begin" >&6
19028 if test $ac_cv_lib_elf_elf_begin = yes; then
19029   cat >>confdefs.h <<_ACEOF
19030 #define HAVE_LIBELF 1
19031 _ACEOF
19032
19033   LIBS="-lelf $LIBS"
19034
19035 fi
19036
19037
19038 echo "$as_me:$LINENO: checking for library containing dlopen" >&5
19039 echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6
19040 if test "${ac_cv_search_dlopen+set}" = set; then
19041   echo $ECHO_N "(cached) $ECHO_C" >&6
19042 else
19043   ac_func_search_save_LIBS=$LIBS
19044 ac_cv_search_dlopen=no
19045 cat >conftest.$ac_ext <<_ACEOF
19046 #line $LINENO "configure"
19047 /* confdefs.h.  */
19048 _ACEOF
19049 cat confdefs.h >>conftest.$ac_ext
19050 cat >>conftest.$ac_ext <<_ACEOF
19051 /* end confdefs.h.  */
19052
19053 /* Override any gcc2 internal prototype to avoid an error.  */
19054 #ifdef __cplusplus
19055 extern "C"
19056 #endif
19057 /* We use char because int might match the return type of a gcc2
19058    builtin and then its argument prototype would still apply.  */
19059 char dlopen ();
19060 int
19061 main ()
19062 {
19063 dlopen ();
19064   ;
19065   return 0;
19066 }
19067 _ACEOF
19068 rm -f conftest.$ac_objext conftest$ac_exeext
19069 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19070   (eval $ac_link) 2>&5
19071   ac_status=$?
19072   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19073   (exit $ac_status); } &&
19074          { ac_try='test -s conftest$ac_exeext'
19075   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19076   (eval $ac_try) 2>&5
19077   ac_status=$?
19078   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19079   (exit $ac_status); }; }; then
19080   ac_cv_search_dlopen="none required"
19081 else
19082   echo "$as_me: failed program was:" >&5
19083 sed 's/^/| /' conftest.$ac_ext >&5
19084
19085 fi
19086 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
19087 if test "$ac_cv_search_dlopen" = no; then
19088   for ac_lib in dl; do
19089     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
19090     cat >conftest.$ac_ext <<_ACEOF
19091 #line $LINENO "configure"
19092 /* confdefs.h.  */
19093 _ACEOF
19094 cat confdefs.h >>conftest.$ac_ext
19095 cat >>conftest.$ac_ext <<_ACEOF
19096 /* end confdefs.h.  */
19097
19098 /* Override any gcc2 internal prototype to avoid an error.  */
19099 #ifdef __cplusplus
19100 extern "C"
19101 #endif
19102 /* We use char because int might match the return type of a gcc2
19103    builtin and then its argument prototype would still apply.  */
19104 char dlopen ();
19105 int
19106 main ()
19107 {
19108 dlopen ();
19109   ;
19110   return 0;
19111 }
19112 _ACEOF
19113 rm -f conftest.$ac_objext conftest$ac_exeext
19114 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19115   (eval $ac_link) 2>&5
19116   ac_status=$?
19117   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19118   (exit $ac_status); } &&
19119          { ac_try='test -s conftest$ac_exeext'
19120   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19121   (eval $ac_try) 2>&5
19122   ac_status=$?
19123   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19124   (exit $ac_status); }; }; then
19125   ac_cv_search_dlopen="-l$ac_lib"
19126 break
19127 else
19128   echo "$as_me: failed program was:" >&5
19129 sed 's/^/| /' conftest.$ac_ext >&5
19130
19131 fi
19132 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
19133   done
19134 fi
19135 LIBS=$ac_func_search_save_LIBS
19136 fi
19137 echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
19138 echo "${ECHO_T}$ac_cv_search_dlopen" >&6
19139 if test "$ac_cv_search_dlopen" != no; then
19140   test "$ac_cv_search_dlopen" = "none required" || LIBS="$ac_cv_search_dlopen $LIBS"
19141
19142 else
19143   { { echo "$as_me:$LINENO: error: dlopen() required but not found" >&5
19144 echo "$as_me: error: dlopen() required but not found" >&2;}
19145    { (exit 1); exit 1; }; }
19146 fi
19147
19148
19149 echo "$as_me:$LINENO: checking for library containing mallinfo" >&5
19150 echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6
19151 if test "${ac_cv_search_mallinfo+set}" = set; then
19152   echo $ECHO_N "(cached) $ECHO_C" >&6
19153 else
19154   ac_func_search_save_LIBS=$LIBS
19155 ac_cv_search_mallinfo=no
19156 cat >conftest.$ac_ext <<_ACEOF
19157 #line $LINENO "configure"
19158 /* confdefs.h.  */
19159 _ACEOF
19160 cat confdefs.h >>conftest.$ac_ext
19161 cat >>conftest.$ac_ext <<_ACEOF
19162 /* end confdefs.h.  */
19163
19164 /* Override any gcc2 internal prototype to avoid an error.  */
19165 #ifdef __cplusplus
19166 extern "C"
19167 #endif
19168 /* We use char because int might match the return type of a gcc2
19169    builtin and then its argument prototype would still apply.  */
19170 char mallinfo ();
19171 int
19172 main ()
19173 {
19174 mallinfo ();
19175   ;
19176   return 0;
19177 }
19178 _ACEOF
19179 rm -f conftest.$ac_objext conftest$ac_exeext
19180 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19181   (eval $ac_link) 2>&5
19182   ac_status=$?
19183   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19184   (exit $ac_status); } &&
19185          { ac_try='test -s conftest$ac_exeext'
19186   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19187   (eval $ac_try) 2>&5
19188   ac_status=$?
19189   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19190   (exit $ac_status); }; }; then
19191   ac_cv_search_mallinfo="none required"
19192 else
19193   echo "$as_me: failed program was:" >&5
19194 sed 's/^/| /' conftest.$ac_ext >&5
19195
19196 fi
19197 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
19198 if test "$ac_cv_search_mallinfo" = no; then
19199   for ac_lib in malloc; do
19200     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
19201     cat >conftest.$ac_ext <<_ACEOF
19202 #line $LINENO "configure"
19203 /* confdefs.h.  */
19204 _ACEOF
19205 cat confdefs.h >>conftest.$ac_ext
19206 cat >>conftest.$ac_ext <<_ACEOF
19207 /* end confdefs.h.  */
19208
19209 /* Override any gcc2 internal prototype to avoid an error.  */
19210 #ifdef __cplusplus
19211 extern "C"
19212 #endif
19213 /* We use char because int might match the return type of a gcc2
19214    builtin and then its argument prototype would still apply.  */
19215 char mallinfo ();
19216 int
19217 main ()
19218 {
19219 mallinfo ();
19220   ;
19221   return 0;
19222 }
19223 _ACEOF
19224 rm -f conftest.$ac_objext conftest$ac_exeext
19225 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19226   (eval $ac_link) 2>&5
19227   ac_status=$?
19228   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19229   (exit $ac_status); } &&
19230          { ac_try='test -s conftest$ac_exeext'
19231   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19232   (eval $ac_try) 2>&5
19233   ac_status=$?
19234   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19235   (exit $ac_status); }; }; then
19236   ac_cv_search_mallinfo="-l$ac_lib"
19237 break
19238 else
19239   echo "$as_me: failed program was:" >&5
19240 sed 's/^/| /' conftest.$ac_ext >&5
19241
19242 fi
19243 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
19244   done
19245 fi
19246 LIBS=$ac_func_search_save_LIBS
19247 fi
19248 echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5
19249 echo "${ECHO_T}$ac_cv_search_mallinfo" >&6
19250 if test "$ac_cv_search_mallinfo" != no; then
19251   test "$ac_cv_search_mallinfo" = "none required" || LIBS="$ac_cv_search_mallinfo $LIBS"
19252   cat >>confdefs.h <<\_ACEOF
19253 #define HAVE_MALLINFO 1
19254 _ACEOF
19255
19256 fi
19257
19258
19259
19260 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
19261 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
19262 if test "${ac_cv_header_stdc+set}" = set; then
19263   echo $ECHO_N "(cached) $ECHO_C" >&6
19264 else
19265   cat >conftest.$ac_ext <<_ACEOF
19266 #line $LINENO "configure"
19267 /* confdefs.h.  */
19268 _ACEOF
19269 cat confdefs.h >>conftest.$ac_ext
19270 cat >>conftest.$ac_ext <<_ACEOF
19271 /* end confdefs.h.  */
19272 #include <stdlib.h>
19273 #include <stdarg.h>
19274 #include <string.h>
19275 #include <float.h>
19276
19277 int
19278 main ()
19279 {
19280
19281   ;
19282   return 0;
19283 }
19284 _ACEOF
19285 rm -f conftest.$ac_objext
19286 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19287   (eval $ac_compile) 2>&5
19288   ac_status=$?
19289   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19290   (exit $ac_status); } &&
19291          { ac_try='test -s conftest.$ac_objext'
19292   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19293   (eval $ac_try) 2>&5
19294   ac_status=$?
19295   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19296   (exit $ac_status); }; }; then
19297   ac_cv_header_stdc=yes
19298 else
19299   echo "$as_me: failed program was:" >&5
19300 sed 's/^/| /' conftest.$ac_ext >&5
19301
19302 ac_cv_header_stdc=no
19303 fi
19304 rm -f conftest.$ac_objext conftest.$ac_ext
19305
19306 if test $ac_cv_header_stdc = yes; then
19307   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
19308   cat >conftest.$ac_ext <<_ACEOF
19309 #line $LINENO "configure"
19310 /* confdefs.h.  */
19311 _ACEOF
19312 cat confdefs.h >>conftest.$ac_ext
19313 cat >>conftest.$ac_ext <<_ACEOF
19314 /* end confdefs.h.  */
19315 #include <string.h>
19316
19317 _ACEOF
19318 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19319   $EGREP "memchr" >/dev/null 2>&1; then
19320   :
19321 else
19322   ac_cv_header_stdc=no
19323 fi
19324 rm -f conftest*
19325
19326 fi
19327
19328 if test $ac_cv_header_stdc = yes; then
19329   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
19330   cat >conftest.$ac_ext <<_ACEOF
19331 #line $LINENO "configure"
19332 /* confdefs.h.  */
19333 _ACEOF
19334 cat confdefs.h >>conftest.$ac_ext
19335 cat >>conftest.$ac_ext <<_ACEOF
19336 /* end confdefs.h.  */
19337 #include <stdlib.h>
19338
19339 _ACEOF
19340 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19341   $EGREP "free" >/dev/null 2>&1; then
19342   :
19343 else
19344   ac_cv_header_stdc=no
19345 fi
19346 rm -f conftest*
19347
19348 fi
19349
19350 if test $ac_cv_header_stdc = yes; then
19351   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
19352   if test "$cross_compiling" = yes; then
19353   :
19354 else
19355   cat >conftest.$ac_ext <<_ACEOF
19356 #line $LINENO "configure"
19357 /* confdefs.h.  */
19358 _ACEOF
19359 cat confdefs.h >>conftest.$ac_ext
19360 cat >>conftest.$ac_ext <<_ACEOF
19361 /* end confdefs.h.  */
19362 #include <ctype.h>
19363 #if ((' ' & 0x0FF) == 0x020)
19364 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
19365 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
19366 #else
19367 # define ISLOWER(c) \
19368                    (('a' <= (c) && (c) <= 'i') \
19369                      || ('j' <= (c) && (c) <= 'r') \
19370                      || ('s' <= (c) && (c) <= 'z'))
19371 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
19372 #endif
19373
19374 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
19375 int
19376 main ()
19377 {
19378   int i;
19379   for (i = 0; i < 256; i++)
19380     if (XOR (islower (i), ISLOWER (i))
19381         || toupper (i) != TOUPPER (i))
19382       exit(2);
19383   exit (0);
19384 }
19385 _ACEOF
19386 rm -f conftest$ac_exeext
19387 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19388   (eval $ac_link) 2>&5
19389   ac_status=$?
19390   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19391   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19392   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19393   (eval $ac_try) 2>&5
19394   ac_status=$?
19395   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19396   (exit $ac_status); }; }; then
19397   :
19398 else
19399   echo "$as_me: program exited with status $ac_status" >&5
19400 echo "$as_me: failed program was:" >&5
19401 sed 's/^/| /' conftest.$ac_ext >&5
19402
19403 ( exit $ac_status )
19404 ac_cv_header_stdc=no
19405 fi
19406 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19407 fi
19408 fi
19409 fi
19410 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
19411 echo "${ECHO_T}$ac_cv_header_stdc" >&6
19412 if test $ac_cv_header_stdc = yes; then
19413
19414 cat >>confdefs.h <<\_ACEOF
19415 #define STDC_HEADERS 1
19416 _ACEOF
19417
19418 fi
19419
19420 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
19421 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
19422 if test "${ac_cv_header_sys_wait_h+set}" = set; then
19423   echo $ECHO_N "(cached) $ECHO_C" >&6
19424 else
19425   cat >conftest.$ac_ext <<_ACEOF
19426 #line $LINENO "configure"
19427 /* confdefs.h.  */
19428 _ACEOF
19429 cat confdefs.h >>conftest.$ac_ext
19430 cat >>conftest.$ac_ext <<_ACEOF
19431 /* end confdefs.h.  */
19432 #include <sys/types.h>
19433 #include <sys/wait.h>
19434 #ifndef WEXITSTATUS
19435 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
19436 #endif
19437 #ifndef WIFEXITED
19438 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
19439 #endif
19440
19441 int
19442 main ()
19443 {
19444   int s;
19445   wait (&s);
19446   s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
19447   ;
19448   return 0;
19449 }
19450 _ACEOF
19451 rm -f conftest.$ac_objext
19452 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19453   (eval $ac_compile) 2>&5
19454   ac_status=$?
19455   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19456   (exit $ac_status); } &&
19457          { ac_try='test -s conftest.$ac_objext'
19458   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19459   (eval $ac_try) 2>&5
19460   ac_status=$?
19461   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19462   (exit $ac_status); }; }; then
19463   ac_cv_header_sys_wait_h=yes
19464 else
19465   echo "$as_me: failed program was:" >&5
19466 sed 's/^/| /' conftest.$ac_ext >&5
19467
19468 ac_cv_header_sys_wait_h=no
19469 fi
19470 rm -f conftest.$ac_objext conftest.$ac_ext
19471 fi
19472 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
19473 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
19474 if test $ac_cv_header_sys_wait_h = yes; then
19475
19476 cat >>confdefs.h <<\_ACEOF
19477 #define HAVE_SYS_WAIT_H 1
19478 _ACEOF
19479
19480 fi
19481
19482
19483
19484
19485
19486
19487
19488
19489
19490
19491 for ac_header in assert.h fcntl.h limits.h sys/time.h unistd.h errno.h signal.h math.h
19492 do
19493 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19494 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19495   echo "$as_me:$LINENO: checking for $ac_header" >&5
19496 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19497 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19498   echo $ECHO_N "(cached) $ECHO_C" >&6
19499 fi
19500 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19501 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19502 else
19503   # Is the header compilable?
19504 echo "$as_me:$LINENO: checking $ac_header usability" >&5
19505 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19506 cat >conftest.$ac_ext <<_ACEOF
19507 #line $LINENO "configure"
19508 /* confdefs.h.  */
19509 _ACEOF
19510 cat confdefs.h >>conftest.$ac_ext
19511 cat >>conftest.$ac_ext <<_ACEOF
19512 /* end confdefs.h.  */
19513 $ac_includes_default
19514 #include <$ac_header>
19515 _ACEOF
19516 rm -f conftest.$ac_objext
19517 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19518   (eval $ac_compile) 2>&5
19519   ac_status=$?
19520   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19521   (exit $ac_status); } &&
19522          { ac_try='test -s conftest.$ac_objext'
19523   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19524   (eval $ac_try) 2>&5
19525   ac_status=$?
19526   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19527   (exit $ac_status); }; }; then
19528   ac_header_compiler=yes
19529 else
19530   echo "$as_me: failed program was:" >&5
19531 sed 's/^/| /' conftest.$ac_ext >&5
19532
19533 ac_header_compiler=no
19534 fi
19535 rm -f conftest.$ac_objext conftest.$ac_ext
19536 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19537 echo "${ECHO_T}$ac_header_compiler" >&6
19538
19539 # Is the header present?
19540 echo "$as_me:$LINENO: checking $ac_header presence" >&5
19541 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19542 cat >conftest.$ac_ext <<_ACEOF
19543 #line $LINENO "configure"
19544 /* confdefs.h.  */
19545 _ACEOF
19546 cat confdefs.h >>conftest.$ac_ext
19547 cat >>conftest.$ac_ext <<_ACEOF
19548 /* end confdefs.h.  */
19549 #include <$ac_header>
19550 _ACEOF
19551 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19552   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19553   ac_status=$?
19554   grep -v '^ *+' conftest.er1 >conftest.err
19555   rm -f conftest.er1
19556   cat conftest.err >&5
19557   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19558   (exit $ac_status); } >/dev/null; then
19559   if test -s conftest.err; then
19560     ac_cpp_err=$ac_c_preproc_warn_flag
19561   else
19562     ac_cpp_err=
19563   fi
19564 else
19565   ac_cpp_err=yes
19566 fi
19567 if test -z "$ac_cpp_err"; then
19568   ac_header_preproc=yes
19569 else
19570   echo "$as_me: failed program was:" >&5
19571 sed 's/^/| /' conftest.$ac_ext >&5
19572
19573   ac_header_preproc=no
19574 fi
19575 rm -f conftest.err conftest.$ac_ext
19576 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19577 echo "${ECHO_T}$ac_header_preproc" >&6
19578
19579 # So?  What about this header?
19580 case $ac_header_compiler:$ac_header_preproc in
19581   yes:no )
19582     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19583 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19584     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19585 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19586     (
19587       cat <<\_ASBOX
19588 ## ------------------------------------ ##
19589 ## Report this to bug-autoconf@gnu.org. ##
19590 ## ------------------------------------ ##
19591 _ASBOX
19592     ) |
19593       sed "s/^/$as_me: WARNING:     /" >&2
19594     ;;
19595   no:yes )
19596     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19597 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19598     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19599 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19600     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19601 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19602     (
19603       cat <<\_ASBOX
19604 ## ------------------------------------ ##
19605 ## Report this to bug-autoconf@gnu.org. ##
19606 ## ------------------------------------ ##
19607 _ASBOX
19608     ) |
19609       sed "s/^/$as_me: WARNING:     /" >&2
19610     ;;
19611 esac
19612 echo "$as_me:$LINENO: checking for $ac_header" >&5
19613 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19614 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19615   echo $ECHO_N "(cached) $ECHO_C" >&6
19616 else
19617   eval "$as_ac_Header=$ac_header_preproc"
19618 fi
19619 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19620 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19621
19622 fi
19623 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19624   cat >>confdefs.h <<_ACEOF
19625 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19626 _ACEOF
19627
19628 fi
19629
19630 done
19631
19632
19633
19634
19635
19636
19637 for ac_header in malloc.h strings.h sys/mman.h sys/resource.h
19638 do
19639 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19640 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19641   echo "$as_me:$LINENO: checking for $ac_header" >&5
19642 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19643 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19644   echo $ECHO_N "(cached) $ECHO_C" >&6
19645 fi
19646 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19647 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19648 else
19649   # Is the header compilable?
19650 echo "$as_me:$LINENO: checking $ac_header usability" >&5
19651 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19652 cat >conftest.$ac_ext <<_ACEOF
19653 #line $LINENO "configure"
19654 /* confdefs.h.  */
19655 _ACEOF
19656 cat confdefs.h >>conftest.$ac_ext
19657 cat >>conftest.$ac_ext <<_ACEOF
19658 /* end confdefs.h.  */
19659 $ac_includes_default
19660 #include <$ac_header>
19661 _ACEOF
19662 rm -f conftest.$ac_objext
19663 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19664   (eval $ac_compile) 2>&5
19665   ac_status=$?
19666   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19667   (exit $ac_status); } &&
19668          { ac_try='test -s conftest.$ac_objext'
19669   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19670   (eval $ac_try) 2>&5
19671   ac_status=$?
19672   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19673   (exit $ac_status); }; }; then
19674   ac_header_compiler=yes
19675 else
19676   echo "$as_me: failed program was:" >&5
19677 sed 's/^/| /' conftest.$ac_ext >&5
19678
19679 ac_header_compiler=no
19680 fi
19681 rm -f conftest.$ac_objext conftest.$ac_ext
19682 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19683 echo "${ECHO_T}$ac_header_compiler" >&6
19684
19685 # Is the header present?
19686 echo "$as_me:$LINENO: checking $ac_header presence" >&5
19687 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19688 cat >conftest.$ac_ext <<_ACEOF
19689 #line $LINENO "configure"
19690 /* confdefs.h.  */
19691 _ACEOF
19692 cat confdefs.h >>conftest.$ac_ext
19693 cat >>conftest.$ac_ext <<_ACEOF
19694 /* end confdefs.h.  */
19695 #include <$ac_header>
19696 _ACEOF
19697 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19698   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19699   ac_status=$?
19700   grep -v '^ *+' conftest.er1 >conftest.err
19701   rm -f conftest.er1
19702   cat conftest.err >&5
19703   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19704   (exit $ac_status); } >/dev/null; then
19705   if test -s conftest.err; then
19706     ac_cpp_err=$ac_c_preproc_warn_flag
19707   else
19708     ac_cpp_err=
19709   fi
19710 else
19711   ac_cpp_err=yes
19712 fi
19713 if test -z "$ac_cpp_err"; then
19714   ac_header_preproc=yes
19715 else
19716   echo "$as_me: failed program was:" >&5
19717 sed 's/^/| /' conftest.$ac_ext >&5
19718
19719   ac_header_preproc=no
19720 fi
19721 rm -f conftest.err conftest.$ac_ext
19722 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19723 echo "${ECHO_T}$ac_header_preproc" >&6
19724
19725 # So?  What about this header?
19726 case $ac_header_compiler:$ac_header_preproc in
19727   yes:no )
19728     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19729 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19730     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19731 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19732     (
19733       cat <<\_ASBOX
19734 ## ------------------------------------ ##
19735 ## Report this to bug-autoconf@gnu.org. ##
19736 ## ------------------------------------ ##
19737 _ASBOX
19738     ) |
19739       sed "s/^/$as_me: WARNING:     /" >&2
19740     ;;
19741   no:yes )
19742     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19743 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19744     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19745 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19746     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19747 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19748     (
19749       cat <<\_ASBOX
19750 ## ------------------------------------ ##
19751 ## Report this to bug-autoconf@gnu.org. ##
19752 ## ------------------------------------ ##
19753 _ASBOX
19754     ) |
19755       sed "s/^/$as_me: WARNING:     /" >&2
19756     ;;
19757 esac
19758 echo "$as_me:$LINENO: checking for $ac_header" >&5
19759 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19760 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19761   echo $ECHO_N "(cached) $ECHO_C" >&6
19762 else
19763   eval "$as_ac_Header=$ac_header_preproc"
19764 fi
19765 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19766 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19767
19768 fi
19769 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19770   cat >>confdefs.h <<_ACEOF
19771 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19772 _ACEOF
19773
19774 fi
19775
19776 done
19777
19778
19779
19780
19781 for ac_header in dlfcn.h link.h
19782 do
19783 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19784 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19785   echo "$as_me:$LINENO: checking for $ac_header" >&5
19786 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19787 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19788   echo $ECHO_N "(cached) $ECHO_C" >&6
19789 fi
19790 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19791 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19792 else
19793   # Is the header compilable?
19794 echo "$as_me:$LINENO: checking $ac_header usability" >&5
19795 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19796 cat >conftest.$ac_ext <<_ACEOF
19797 #line $LINENO "configure"
19798 /* confdefs.h.  */
19799 _ACEOF
19800 cat confdefs.h >>conftest.$ac_ext
19801 cat >>conftest.$ac_ext <<_ACEOF
19802 /* end confdefs.h.  */
19803 $ac_includes_default
19804 #include <$ac_header>
19805 _ACEOF
19806 rm -f conftest.$ac_objext
19807 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19808   (eval $ac_compile) 2>&5
19809   ac_status=$?
19810   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19811   (exit $ac_status); } &&
19812          { ac_try='test -s conftest.$ac_objext'
19813   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19814   (eval $ac_try) 2>&5
19815   ac_status=$?
19816   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19817   (exit $ac_status); }; }; then
19818   ac_header_compiler=yes
19819 else
19820   echo "$as_me: failed program was:" >&5
19821 sed 's/^/| /' conftest.$ac_ext >&5
19822
19823 ac_header_compiler=no
19824 fi
19825 rm -f conftest.$ac_objext conftest.$ac_ext
19826 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19827 echo "${ECHO_T}$ac_header_compiler" >&6
19828
19829 # Is the header present?
19830 echo "$as_me:$LINENO: checking $ac_header presence" >&5
19831 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19832 cat >conftest.$ac_ext <<_ACEOF
19833 #line $LINENO "configure"
19834 /* confdefs.h.  */
19835 _ACEOF
19836 cat confdefs.h >>conftest.$ac_ext
19837 cat >>conftest.$ac_ext <<_ACEOF
19838 /* end confdefs.h.  */
19839 #include <$ac_header>
19840 _ACEOF
19841 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19842   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19843   ac_status=$?
19844   grep -v '^ *+' conftest.er1 >conftest.err
19845   rm -f conftest.er1
19846   cat conftest.err >&5
19847   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19848   (exit $ac_status); } >/dev/null; then
19849   if test -s conftest.err; then
19850     ac_cpp_err=$ac_c_preproc_warn_flag
19851   else
19852     ac_cpp_err=
19853   fi
19854 else
19855   ac_cpp_err=yes
19856 fi
19857 if test -z "$ac_cpp_err"; then
19858   ac_header_preproc=yes
19859 else
19860   echo "$as_me: failed program was:" >&5
19861 sed 's/^/| /' conftest.$ac_ext >&5
19862
19863   ac_header_preproc=no
19864 fi
19865 rm -f conftest.err conftest.$ac_ext
19866 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19867 echo "${ECHO_T}$ac_header_preproc" >&6
19868
19869 # So?  What about this header?
19870 case $ac_header_compiler:$ac_header_preproc in
19871   yes:no )
19872     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19873 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19874     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19875 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19876     (
19877       cat <<\_ASBOX
19878 ## ------------------------------------ ##
19879 ## Report this to bug-autoconf@gnu.org. ##
19880 ## ------------------------------------ ##
19881 _ASBOX
19882     ) |
19883       sed "s/^/$as_me: WARNING:     /" >&2
19884     ;;
19885   no:yes )
19886     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19887 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19888     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19889 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19890     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19891 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19892     (
19893       cat <<\_ASBOX
19894 ## ------------------------------------ ##
19895 ## Report this to bug-autoconf@gnu.org. ##
19896 ## ------------------------------------ ##
19897 _ASBOX
19898     ) |
19899       sed "s/^/$as_me: WARNING:     /" >&2
19900     ;;
19901 esac
19902 echo "$as_me:$LINENO: checking for $ac_header" >&5
19903 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19904 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19905   echo $ECHO_N "(cached) $ECHO_C" >&6
19906 else
19907   eval "$as_ac_Header=$ac_header_preproc"
19908 fi
19909 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19910 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19911
19912 fi
19913 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19914   cat >>confdefs.h <<_ACEOF
19915 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19916 _ACEOF
19917
19918 fi
19919
19920 done
19921
19922
19923
19924 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
19925 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
19926 if test "${ac_cv_c_const+set}" = set; then
19927   echo $ECHO_N "(cached) $ECHO_C" >&6
19928 else
19929   cat >conftest.$ac_ext <<_ACEOF
19930 #line $LINENO "configure"
19931 /* confdefs.h.  */
19932 _ACEOF
19933 cat confdefs.h >>conftest.$ac_ext
19934 cat >>conftest.$ac_ext <<_ACEOF
19935 /* end confdefs.h.  */
19936
19937 int
19938 main ()
19939 {
19940 /* FIXME: Include the comments suggested by Paul. */
19941 #ifndef __cplusplus
19942   /* Ultrix mips cc rejects this.  */
19943   typedef int charset[2];
19944   const charset x;
19945   /* SunOS 4.1.1 cc rejects this.  */
19946   char const *const *ccp;
19947   char **p;
19948   /* NEC SVR4.0.2 mips cc rejects this.  */
19949   struct point {int x, y;};
19950   static struct point const zero = {0,0};
19951   /* AIX XL C 1.02.0.0 rejects this.
19952      It does not let you subtract one const X* pointer from another in
19953      an arm of an if-expression whose if-part is not a constant
19954      expression */
19955   const char *g = "string";
19956   ccp = &g + (g ? g-g : 0);
19957   /* HPUX 7.0 cc rejects these. */
19958   ++ccp;
19959   p = (char**) ccp;
19960   ccp = (char const *const *) p;
19961   { /* SCO 3.2v4 cc rejects this.  */
19962     char *t;
19963     char const *s = 0 ? (char *) 0 : (char const *) 0;
19964
19965     *t++ = 0;
19966   }
19967   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
19968     int x[] = {25, 17};
19969     const int *foo = &x[0];
19970     ++foo;
19971   }
19972   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
19973     typedef const int *iptr;
19974     iptr p = 0;
19975     ++p;
19976   }
19977   { /* AIX XL C 1.02.0.0 rejects this saying
19978        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
19979     struct s { int j; const int *ap[3]; };
19980     struct s *b; b->j = 5;
19981   }
19982   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
19983     const int foo = 10;
19984   }
19985 #endif
19986
19987   ;
19988   return 0;
19989 }
19990 _ACEOF
19991 rm -f conftest.$ac_objext
19992 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19993   (eval $ac_compile) 2>&5
19994   ac_status=$?
19995   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19996   (exit $ac_status); } &&
19997          { ac_try='test -s conftest.$ac_objext'
19998   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19999   (eval $ac_try) 2>&5
20000   ac_status=$?
20001   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20002   (exit $ac_status); }; }; then
20003   ac_cv_c_const=yes
20004 else
20005   echo "$as_me: failed program was:" >&5
20006 sed 's/^/| /' conftest.$ac_ext >&5
20007
20008 ac_cv_c_const=no
20009 fi
20010 rm -f conftest.$ac_objext conftest.$ac_ext
20011 fi
20012 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
20013 echo "${ECHO_T}$ac_cv_c_const" >&6
20014 if test $ac_cv_c_const = no; then
20015
20016 cat >>confdefs.h <<\_ACEOF
20017 #define const
20018 _ACEOF
20019
20020 fi
20021
20022 echo "$as_me:$LINENO: checking for inline" >&5
20023 echo $ECHO_N "checking for inline... $ECHO_C" >&6
20024 if test "${ac_cv_c_inline+set}" = set; then
20025   echo $ECHO_N "(cached) $ECHO_C" >&6
20026 else
20027   ac_cv_c_inline=no
20028 for ac_kw in inline __inline__ __inline; do
20029   cat >conftest.$ac_ext <<_ACEOF
20030 #line $LINENO "configure"
20031 /* confdefs.h.  */
20032 _ACEOF
20033 cat confdefs.h >>conftest.$ac_ext
20034 cat >>conftest.$ac_ext <<_ACEOF
20035 /* end confdefs.h.  */
20036 #ifndef __cplusplus
20037 typedef int foo_t;
20038 static $ac_kw foo_t static_foo () {return 0; }
20039 $ac_kw foo_t foo () {return 0; }
20040 #endif
20041
20042 _ACEOF
20043 rm -f conftest.$ac_objext
20044 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20045   (eval $ac_compile) 2>&5
20046   ac_status=$?
20047   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20048   (exit $ac_status); } &&
20049          { ac_try='test -s conftest.$ac_objext'
20050   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20051   (eval $ac_try) 2>&5
20052   ac_status=$?
20053   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20054   (exit $ac_status); }; }; then
20055   ac_cv_c_inline=$ac_kw; break
20056 else
20057   echo "$as_me: failed program was:" >&5
20058 sed 's/^/| /' conftest.$ac_ext >&5
20059
20060 fi
20061 rm -f conftest.$ac_objext conftest.$ac_ext
20062 done
20063
20064 fi
20065 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
20066 echo "${ECHO_T}$ac_cv_c_inline" >&6
20067 case $ac_cv_c_inline in
20068   inline | yes) ;;
20069   no)
20070 cat >>confdefs.h <<\_ACEOF
20071 #define inline
20072 _ACEOF
20073  ;;
20074   *)  cat >>confdefs.h <<_ACEOF
20075 #define inline $ac_cv_c_inline
20076 _ACEOF
20077  ;;
20078 esac
20079
20080
20081 echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
20082 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
20083 if test "${ac_cv_c_bigendian+set}" = set; then
20084   echo $ECHO_N "(cached) $ECHO_C" >&6
20085 else
20086   # See if sys/param.h defines the BYTE_ORDER macro.
20087 cat >conftest.$ac_ext <<_ACEOF
20088 #line $LINENO "configure"
20089 /* confdefs.h.  */
20090 _ACEOF
20091 cat confdefs.h >>conftest.$ac_ext
20092 cat >>conftest.$ac_ext <<_ACEOF
20093 /* end confdefs.h.  */
20094 #include <sys/types.h>
20095 #include <sys/param.h>
20096
20097 int
20098 main ()
20099 {
20100 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
20101  bogus endian macros
20102 #endif
20103
20104   ;
20105   return 0;
20106 }
20107 _ACEOF
20108 rm -f conftest.$ac_objext
20109 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20110   (eval $ac_compile) 2>&5
20111   ac_status=$?
20112   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20113   (exit $ac_status); } &&
20114          { ac_try='test -s conftest.$ac_objext'
20115   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20116   (eval $ac_try) 2>&5
20117   ac_status=$?
20118   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20119   (exit $ac_status); }; }; then
20120   # It does; now see whether it defined to BIG_ENDIAN or not.
20121 cat >conftest.$ac_ext <<_ACEOF
20122 #line $LINENO "configure"
20123 /* confdefs.h.  */
20124 _ACEOF
20125 cat confdefs.h >>conftest.$ac_ext
20126 cat >>conftest.$ac_ext <<_ACEOF
20127 /* end confdefs.h.  */
20128 #include <sys/types.h>
20129 #include <sys/param.h>
20130
20131 int
20132 main ()
20133 {
20134 #if BYTE_ORDER != BIG_ENDIAN
20135  not big endian
20136 #endif
20137
20138   ;
20139   return 0;
20140 }
20141 _ACEOF
20142 rm -f conftest.$ac_objext
20143 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20144   (eval $ac_compile) 2>&5
20145   ac_status=$?
20146   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20147   (exit $ac_status); } &&
20148          { ac_try='test -s conftest.$ac_objext'
20149   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20150   (eval $ac_try) 2>&5
20151   ac_status=$?
20152   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20153   (exit $ac_status); }; }; then
20154   ac_cv_c_bigendian=yes
20155 else
20156   echo "$as_me: failed program was:" >&5
20157 sed 's/^/| /' conftest.$ac_ext >&5
20158
20159 ac_cv_c_bigendian=no
20160 fi
20161 rm -f conftest.$ac_objext conftest.$ac_ext
20162 else
20163   echo "$as_me: failed program was:" >&5
20164 sed 's/^/| /' conftest.$ac_ext >&5
20165
20166 # It does not; compile a test program.
20167 if test "$cross_compiling" = yes; then
20168   # try to guess the endianness by grepping values into an object file
20169   ac_cv_c_bigendian=unknown
20170   cat >conftest.$ac_ext <<_ACEOF
20171 #line $LINENO "configure"
20172 /* confdefs.h.  */
20173 _ACEOF
20174 cat confdefs.h >>conftest.$ac_ext
20175 cat >>conftest.$ac_ext <<_ACEOF
20176 /* end confdefs.h.  */
20177 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
20178 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
20179 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
20180 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
20181 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
20182 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
20183 int
20184 main ()
20185 {
20186  _ascii (); _ebcdic ();
20187   ;
20188   return 0;
20189 }
20190 _ACEOF
20191 rm -f conftest.$ac_objext
20192 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20193   (eval $ac_compile) 2>&5
20194   ac_status=$?
20195   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20196   (exit $ac_status); } &&
20197          { ac_try='test -s conftest.$ac_objext'
20198   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20199   (eval $ac_try) 2>&5
20200   ac_status=$?
20201   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20202   (exit $ac_status); }; }; then
20203   if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
20204   ac_cv_c_bigendian=yes
20205 fi
20206 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
20207   if test "$ac_cv_c_bigendian" = unknown; then
20208     ac_cv_c_bigendian=no
20209   else
20210     # finding both strings is unlikely to happen, but who knows?
20211     ac_cv_c_bigendian=unknown
20212   fi
20213 fi
20214 else
20215   echo "$as_me: failed program was:" >&5
20216 sed 's/^/| /' conftest.$ac_ext >&5
20217
20218 fi
20219 rm -f conftest.$ac_objext conftest.$ac_ext
20220 else
20221   cat >conftest.$ac_ext <<_ACEOF
20222 #line $LINENO "configure"
20223 /* confdefs.h.  */
20224 _ACEOF
20225 cat confdefs.h >>conftest.$ac_ext
20226 cat >>conftest.$ac_ext <<_ACEOF
20227 /* end confdefs.h.  */
20228 int
20229 main ()
20230 {
20231   /* Are we little or big endian?  From Harbison&Steele.  */
20232   union
20233   {
20234     long l;
20235     char c[sizeof (long)];
20236   } u;
20237   u.l = 1;
20238   exit (u.c[sizeof (long) - 1] == 1);
20239 }
20240 _ACEOF
20241 rm -f conftest$ac_exeext
20242 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20243   (eval $ac_link) 2>&5
20244   ac_status=$?
20245   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20246   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20247   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20248   (eval $ac_try) 2>&5
20249   ac_status=$?
20250   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20251   (exit $ac_status); }; }; then
20252   ac_cv_c_bigendian=no
20253 else
20254   echo "$as_me: program exited with status $ac_status" >&5
20255 echo "$as_me: failed program was:" >&5
20256 sed 's/^/| /' conftest.$ac_ext >&5
20257
20258 ( exit $ac_status )
20259 ac_cv_c_bigendian=yes
20260 fi
20261 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20262 fi
20263 fi
20264 rm -f conftest.$ac_objext conftest.$ac_ext
20265 fi
20266 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
20267 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
20268 case $ac_cv_c_bigendian in
20269   yes)
20270     cat >>confdefs.h <<\_ACEOF
20271 #define ENDIAN_BIG 1
20272 _ACEOF
20273  ;;
20274   no)
20275     cat >>confdefs.h <<\_ACEOF
20276 #define ENDIAN_LITTLE 1
20277 _ACEOF
20278  ;;
20279   *)
20280     { { echo "$as_me:$LINENO: error: unknown endianness
20281 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
20282 echo "$as_me: error: unknown endianness
20283 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
20284    { (exit 1); exit 1; }; } ;;
20285 esac
20286
20287
20288 echo "$as_me:$LINENO: checking for pid_t" >&5
20289 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
20290 if test "${ac_cv_type_pid_t+set}" = set; then
20291   echo $ECHO_N "(cached) $ECHO_C" >&6
20292 else
20293   cat >conftest.$ac_ext <<_ACEOF
20294 #line $LINENO "configure"
20295 /* confdefs.h.  */
20296 _ACEOF
20297 cat confdefs.h >>conftest.$ac_ext
20298 cat >>conftest.$ac_ext <<_ACEOF
20299 /* end confdefs.h.  */
20300 $ac_includes_default
20301 int
20302 main ()
20303 {
20304 if ((pid_t *) 0)
20305   return 0;
20306 if (sizeof (pid_t))
20307   return 0;
20308   ;
20309   return 0;
20310 }
20311 _ACEOF
20312 rm -f conftest.$ac_objext
20313 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20314   (eval $ac_compile) 2>&5
20315   ac_status=$?
20316   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20317   (exit $ac_status); } &&
20318          { ac_try='test -s conftest.$ac_objext'
20319   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20320   (eval $ac_try) 2>&5
20321   ac_status=$?
20322   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20323   (exit $ac_status); }; }; then
20324   ac_cv_type_pid_t=yes
20325 else
20326   echo "$as_me: failed program was:" >&5
20327 sed 's/^/| /' conftest.$ac_ext >&5
20328
20329 ac_cv_type_pid_t=no
20330 fi
20331 rm -f conftest.$ac_objext conftest.$ac_ext
20332 fi
20333 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
20334 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
20335 if test $ac_cv_type_pid_t = yes; then
20336   :
20337 else
20338
20339 cat >>confdefs.h <<_ACEOF
20340 #define pid_t int
20341 _ACEOF
20342
20343 fi
20344
20345 echo "$as_me:$LINENO: checking for size_t" >&5
20346 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
20347 if test "${ac_cv_type_size_t+set}" = set; then
20348   echo $ECHO_N "(cached) $ECHO_C" >&6
20349 else
20350   cat >conftest.$ac_ext <<_ACEOF
20351 #line $LINENO "configure"
20352 /* confdefs.h.  */
20353 _ACEOF
20354 cat confdefs.h >>conftest.$ac_ext
20355 cat >>conftest.$ac_ext <<_ACEOF
20356 /* end confdefs.h.  */
20357 $ac_includes_default
20358 int
20359 main ()
20360 {
20361 if ((size_t *) 0)
20362   return 0;
20363 if (sizeof (size_t))
20364   return 0;
20365   ;
20366   return 0;
20367 }
20368 _ACEOF
20369 rm -f conftest.$ac_objext
20370 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20371   (eval $ac_compile) 2>&5
20372   ac_status=$?
20373   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20374   (exit $ac_status); } &&
20375          { ac_try='test -s conftest.$ac_objext'
20376   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20377   (eval $ac_try) 2>&5
20378   ac_status=$?
20379   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20380   (exit $ac_status); }; }; then
20381   ac_cv_type_size_t=yes
20382 else
20383   echo "$as_me: failed program was:" >&5
20384 sed 's/^/| /' conftest.$ac_ext >&5
20385
20386 ac_cv_type_size_t=no
20387 fi
20388 rm -f conftest.$ac_objext conftest.$ac_ext
20389 fi
20390 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
20391 echo "${ECHO_T}$ac_cv_type_size_t" >&6
20392 if test $ac_cv_type_size_t = yes; then
20393   :
20394 else
20395
20396 cat >>confdefs.h <<_ACEOF
20397 #define size_t unsigned
20398 _ACEOF
20399
20400 fi
20401
20402 echo "$as_me:$LINENO: checking for int64_t" >&5
20403 echo $ECHO_N "checking for int64_t... $ECHO_C" >&6
20404 if test "${ac_cv_type_int64_t+set}" = set; then
20405   echo $ECHO_N "(cached) $ECHO_C" >&6
20406 else
20407   cat >conftest.$ac_ext <<_ACEOF
20408 #line $LINENO "configure"
20409 /* confdefs.h.  */
20410 _ACEOF
20411 cat confdefs.h >>conftest.$ac_ext
20412 cat >>conftest.$ac_ext <<_ACEOF
20413 /* end confdefs.h.  */
20414 $ac_includes_default
20415 int
20416 main ()
20417 {
20418 if ((int64_t *) 0)
20419   return 0;
20420 if (sizeof (int64_t))
20421   return 0;
20422   ;
20423   return 0;
20424 }
20425 _ACEOF
20426 rm -f conftest.$ac_objext
20427 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20428   (eval $ac_compile) 2>&5
20429   ac_status=$?
20430   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20431   (exit $ac_status); } &&
20432          { ac_try='test -s conftest.$ac_objext'
20433   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20434   (eval $ac_try) 2>&5
20435   ac_status=$?
20436   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20437   (exit $ac_status); }; }; then
20438   ac_cv_type_int64_t=yes
20439 else
20440   echo "$as_me: failed program was:" >&5
20441 sed 's/^/| /' conftest.$ac_ext >&5
20442
20443 ac_cv_type_int64_t=no
20444 fi
20445 rm -f conftest.$ac_objext conftest.$ac_ext
20446 fi
20447 echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
20448 echo "${ECHO_T}$ac_cv_type_int64_t" >&6
20449 if test $ac_cv_type_int64_t = yes; then
20450
20451 cat >>confdefs.h <<_ACEOF
20452 #define HAVE_INT64_T 1
20453 _ACEOF
20454
20455
20456 else
20457   { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5
20458 echo "$as_me: error: Type int64_t required but not found" >&2;}
20459    { (exit 1); exit 1; }; }
20460 fi
20461
20462 echo "$as_me:$LINENO: checking for uint64_t" >&5
20463 echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6
20464 if test "${ac_cv_type_uint64_t+set}" = set; then
20465   echo $ECHO_N "(cached) $ECHO_C" >&6
20466 else
20467   cat >conftest.$ac_ext <<_ACEOF
20468 #line $LINENO "configure"
20469 /* confdefs.h.  */
20470 _ACEOF
20471 cat confdefs.h >>conftest.$ac_ext
20472 cat >>conftest.$ac_ext <<_ACEOF
20473 /* end confdefs.h.  */
20474 $ac_includes_default
20475 int
20476 main ()
20477 {
20478 if ((uint64_t *) 0)
20479   return 0;
20480 if (sizeof (uint64_t))
20481   return 0;
20482   ;
20483   return 0;
20484 }
20485 _ACEOF
20486 rm -f conftest.$ac_objext
20487 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20488   (eval $ac_compile) 2>&5
20489   ac_status=$?
20490   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20491   (exit $ac_status); } &&
20492          { ac_try='test -s conftest.$ac_objext'
20493   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20494   (eval $ac_try) 2>&5
20495   ac_status=$?
20496   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20497   (exit $ac_status); }; }; then
20498   ac_cv_type_uint64_t=yes
20499 else
20500   echo "$as_me: failed program was:" >&5
20501 sed 's/^/| /' conftest.$ac_ext >&5
20502
20503 ac_cv_type_uint64_t=no
20504 fi
20505 rm -f conftest.$ac_objext conftest.$ac_ext
20506 fi
20507 echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
20508 echo "${ECHO_T}$ac_cv_type_uint64_t" >&6
20509 if test $ac_cv_type_uint64_t = yes; then
20510
20511 cat >>confdefs.h <<_ACEOF
20512 #define HAVE_UINT64_T 1
20513 _ACEOF
20514
20515
20516 else
20517   { { echo "$as_me:$LINENO: error: Type uint64_t required but not found" >&5
20518 echo "$as_me: error: Type uint64_t required but not found" >&2;}
20519    { (exit 1); exit 1; }; }
20520 fi
20521
20522 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
20523 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
20524 if test "${ac_cv_header_time+set}" = set; then
20525   echo $ECHO_N "(cached) $ECHO_C" >&6
20526 else
20527   cat >conftest.$ac_ext <<_ACEOF
20528 #line $LINENO "configure"
20529 /* confdefs.h.  */
20530 _ACEOF
20531 cat confdefs.h >>conftest.$ac_ext
20532 cat >>conftest.$ac_ext <<_ACEOF
20533 /* end confdefs.h.  */
20534 #include <sys/types.h>
20535 #include <sys/time.h>
20536 #include <time.h>
20537
20538 int
20539 main ()
20540 {
20541 if ((struct tm *) 0)
20542 return 0;
20543   ;
20544   return 0;
20545 }
20546 _ACEOF
20547 rm -f conftest.$ac_objext
20548 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20549   (eval $ac_compile) 2>&5
20550   ac_status=$?
20551   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20552   (exit $ac_status); } &&
20553          { ac_try='test -s conftest.$ac_objext'
20554   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20555   (eval $ac_try) 2>&5
20556   ac_status=$?
20557   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20558   (exit $ac_status); }; }; then
20559   ac_cv_header_time=yes
20560 else
20561   echo "$as_me: failed program was:" >&5
20562 sed 's/^/| /' conftest.$ac_ext >&5
20563
20564 ac_cv_header_time=no
20565 fi
20566 rm -f conftest.$ac_objext conftest.$ac_ext
20567 fi
20568 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
20569 echo "${ECHO_T}$ac_cv_header_time" >&6
20570 if test $ac_cv_header_time = yes; then
20571
20572 cat >>confdefs.h <<\_ACEOF
20573 #define TIME_WITH_SYS_TIME 1
20574 _ACEOF
20575
20576 fi
20577
20578 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
20579 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
20580 if test "${ac_cv_struct_tm+set}" = set; then
20581   echo $ECHO_N "(cached) $ECHO_C" >&6
20582 else
20583   cat >conftest.$ac_ext <<_ACEOF
20584 #line $LINENO "configure"
20585 /* confdefs.h.  */
20586 _ACEOF
20587 cat confdefs.h >>conftest.$ac_ext
20588 cat >>conftest.$ac_ext <<_ACEOF
20589 /* end confdefs.h.  */
20590 #include <sys/types.h>
20591 #include <time.h>
20592
20593 int
20594 main ()
20595 {
20596 struct tm *tp; tp->tm_sec;
20597   ;
20598   return 0;
20599 }
20600 _ACEOF
20601 rm -f conftest.$ac_objext
20602 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20603   (eval $ac_compile) 2>&5
20604   ac_status=$?
20605   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20606   (exit $ac_status); } &&
20607          { ac_try='test -s conftest.$ac_objext'
20608   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20609   (eval $ac_try) 2>&5
20610   ac_status=$?
20611   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20612   (exit $ac_status); }; }; then
20613   ac_cv_struct_tm=time.h
20614 else
20615   echo "$as_me: failed program was:" >&5
20616 sed 's/^/| /' conftest.$ac_ext >&5
20617
20618 ac_cv_struct_tm=sys/time.h
20619 fi
20620 rm -f conftest.$ac_objext conftest.$ac_ext
20621 fi
20622 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
20623 echo "${ECHO_T}$ac_cv_struct_tm" >&6
20624 if test $ac_cv_struct_tm = sys/time.h; then
20625
20626 cat >>confdefs.h <<\_ACEOF
20627 #define TM_IN_SYS_TIME 1
20628 _ACEOF
20629
20630 fi
20631
20632
20633 echo "$as_me:$LINENO: checking whether the compiler implements namespaces" >&5
20634 echo $ECHO_N "checking whether the compiler implements namespaces... $ECHO_C" >&6
20635 if test "${ac_cv_cxx_namespaces+set}" = set; then
20636   echo $ECHO_N "(cached) $ECHO_C" >&6
20637 else
20638
20639
20640  ac_ext=cc
20641 ac_cpp='$CXXCPP $CPPFLAGS'
20642 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20643 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20644 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20645
20646  cat >conftest.$ac_ext <<_ACEOF
20647 #line $LINENO "configure"
20648 /* confdefs.h.  */
20649 _ACEOF
20650 cat confdefs.h >>conftest.$ac_ext
20651 cat >>conftest.$ac_ext <<_ACEOF
20652 /* end confdefs.h.  */
20653 namespace Outer { namespace Inner { int i = 0; }}
20654 int
20655 main ()
20656 {
20657 using namespace Outer::Inner; return i;
20658   ;
20659   return 0;
20660 }
20661 _ACEOF
20662 rm -f conftest.$ac_objext
20663 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20664   (eval $ac_compile) 2>&5
20665   ac_status=$?
20666   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20667   (exit $ac_status); } &&
20668          { ac_try='test -s conftest.$ac_objext'
20669   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20670   (eval $ac_try) 2>&5
20671   ac_status=$?
20672   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20673   (exit $ac_status); }; }; then
20674   ac_cv_cxx_namespaces=yes
20675 else
20676   echo "$as_me: failed program was:" >&5
20677 sed 's/^/| /' conftest.$ac_ext >&5
20678
20679 ac_cv_cxx_namespaces=no
20680 fi
20681 rm -f conftest.$ac_objext conftest.$ac_ext
20682  ac_ext=c
20683 ac_cpp='$CPP $CPPFLAGS'
20684 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20685 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20686 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20687
20688
20689 fi
20690 echo "$as_me:$LINENO: result: $ac_cv_cxx_namespaces" >&5
20691 echo "${ECHO_T}$ac_cv_cxx_namespaces" >&6
20692 if test "$ac_cv_cxx_namespaces" = yes; then
20693
20694 cat >>confdefs.h <<\_ACEOF
20695 #define HAVE_NAMESPACES
20696 _ACEOF
20697
20698 fi
20699
20700 echo "$as_me:$LINENO: checking whether the compiler has ext/hash_map" >&5
20701 echo $ECHO_N "checking whether the compiler has ext/hash_map... $ECHO_C" >&6
20702 if test "${ac_cv_cxx_have_ext_hash_map+set}" = set; then
20703   echo $ECHO_N "(cached) $ECHO_C" >&6
20704 else
20705
20706
20707
20708   ac_ext=cc
20709 ac_cpp='$CXXCPP $CPPFLAGS'
20710 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20711 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20712 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20713
20714   cat >conftest.$ac_ext <<_ACEOF
20715 #line $LINENO "configure"
20716 /* confdefs.h.  */
20717 _ACEOF
20718 cat confdefs.h >>conftest.$ac_ext
20719 cat >>conftest.$ac_ext <<_ACEOF
20720 /* end confdefs.h.  */
20721 #include <ext/hash_map>
20722 #ifdef HAVE_NAMESPACES
20723 using namespace std;
20724 #endif
20725 int
20726 main ()
20727 {
20728 hash_map<int, int> t; return 0;
20729   ;
20730   return 0;
20731 }
20732 _ACEOF
20733 rm -f conftest.$ac_objext
20734 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20735   (eval $ac_compile) 2>&5
20736   ac_status=$?
20737   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20738   (exit $ac_status); } &&
20739          { ac_try='test -s conftest.$ac_objext'
20740   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20741   (eval $ac_try) 2>&5
20742   ac_status=$?
20743   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20744   (exit $ac_status); }; }; then
20745   ac_cv_cxx_have_ext_hash_map=std
20746 else
20747   echo "$as_me: failed program was:" >&5
20748 sed 's/^/| /' conftest.$ac_ext >&5
20749
20750 ac_cv_cxx_have_ext_hash_map=no
20751 fi
20752 rm -f conftest.$ac_objext conftest.$ac_ext
20753   cat >conftest.$ac_ext <<_ACEOF
20754 #line $LINENO "configure"
20755 /* confdefs.h.  */
20756 _ACEOF
20757 cat confdefs.h >>conftest.$ac_ext
20758 cat >>conftest.$ac_ext <<_ACEOF
20759 /* end confdefs.h.  */
20760 #include <ext/hash_map>
20761 #ifdef HAVE_NAMESPACES
20762 using namespace __gnu_cxx;
20763 #endif
20764 int
20765 main ()
20766 {
20767 hash_map<int, int> t; return 0;
20768   ;
20769   return 0;
20770 }
20771 _ACEOF
20772 rm -f conftest.$ac_objext
20773 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20774   (eval $ac_compile) 2>&5
20775   ac_status=$?
20776   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20777   (exit $ac_status); } &&
20778          { ac_try='test -s conftest.$ac_objext'
20779   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20780   (eval $ac_try) 2>&5
20781   ac_status=$?
20782   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20783   (exit $ac_status); }; }; then
20784   ac_cv_cxx_have_ext_hash_map=gnu
20785 else
20786   echo "$as_me: failed program was:" >&5
20787 sed 's/^/| /' conftest.$ac_ext >&5
20788
20789 ac_cv_cxx_have_ext_hash_map=no
20790 fi
20791 rm -f conftest.$ac_objext conftest.$ac_ext
20792   ac_ext=c
20793 ac_cpp='$CPP $CPPFLAGS'
20794 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20795 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20796 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20797
20798
20799 fi
20800 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_ext_hash_map" >&5
20801 echo "${ECHO_T}$ac_cv_cxx_have_ext_hash_map" >&6
20802 if test "$ac_cv_cxx_have_ext_hash_map" = std; then
20803
20804 cat >>confdefs.h <<\_ACEOF
20805 #define HAVE_STD_EXT_HASH_MAP
20806 _ACEOF
20807
20808 fi
20809 if test "$ac_cv_cxx_have_ext_hash_map" = gnu; then
20810
20811 cat >>confdefs.h <<\_ACEOF
20812 #define HAVE_GNU_EXT_HASH_MAP
20813 _ACEOF
20814
20815 fi
20816
20817 echo "$as_me:$LINENO: checking whether the compiler has ext/hash_set" >&5
20818 echo $ECHO_N "checking whether the compiler has ext/hash_set... $ECHO_C" >&6
20819 if test "${ac_cv_cxx_have_ext_hash_set+set}" = set; then
20820   echo $ECHO_N "(cached) $ECHO_C" >&6
20821 else
20822
20823
20824
20825   ac_ext=cc
20826 ac_cpp='$CXXCPP $CPPFLAGS'
20827 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20828 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20829 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20830
20831   cat >conftest.$ac_ext <<_ACEOF
20832 #line $LINENO "configure"
20833 /* confdefs.h.  */
20834 _ACEOF
20835 cat confdefs.h >>conftest.$ac_ext
20836 cat >>conftest.$ac_ext <<_ACEOF
20837 /* end confdefs.h.  */
20838 #include <ext/hash_set>
20839 #ifdef HAVE_NAMESPACES
20840 using namespace std;
20841 #endif
20842 int
20843 main ()
20844 {
20845 hash_set<int> t; return 0;
20846   ;
20847   return 0;
20848 }
20849 _ACEOF
20850 rm -f conftest.$ac_objext
20851 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20852   (eval $ac_compile) 2>&5
20853   ac_status=$?
20854   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20855   (exit $ac_status); } &&
20856          { ac_try='test -s conftest.$ac_objext'
20857   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20858   (eval $ac_try) 2>&5
20859   ac_status=$?
20860   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20861   (exit $ac_status); }; }; then
20862   ac_cv_cxx_have_ext_hash_set=std
20863 else
20864   echo "$as_me: failed program was:" >&5
20865 sed 's/^/| /' conftest.$ac_ext >&5
20866
20867 ac_cv_cxx_have_ext_hash_set=no
20868 fi
20869 rm -f conftest.$ac_objext conftest.$ac_ext
20870   cat >conftest.$ac_ext <<_ACEOF
20871 #line $LINENO "configure"
20872 /* confdefs.h.  */
20873 _ACEOF
20874 cat confdefs.h >>conftest.$ac_ext
20875 cat >>conftest.$ac_ext <<_ACEOF
20876 /* end confdefs.h.  */
20877 #include <ext/hash_set>
20878 #ifdef HAVE_NAMESPACES
20879 using namespace __gnu_cxx;
20880 #endif
20881 int
20882 main ()
20883 {
20884 hash_set<int> t; return 0;
20885   ;
20886   return 0;
20887 }
20888 _ACEOF
20889 rm -f conftest.$ac_objext
20890 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20891   (eval $ac_compile) 2>&5
20892   ac_status=$?
20893   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20894   (exit $ac_status); } &&
20895          { ac_try='test -s conftest.$ac_objext'
20896   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20897   (eval $ac_try) 2>&5
20898   ac_status=$?
20899   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20900   (exit $ac_status); }; }; then
20901   ac_cv_cxx_have_ext_hash_set=gnu
20902 else
20903   echo "$as_me: failed program was:" >&5
20904 sed 's/^/| /' conftest.$ac_ext >&5
20905
20906 ac_cv_cxx_have_ext_hash_set=no
20907 fi
20908 rm -f conftest.$ac_objext conftest.$ac_ext
20909   ac_ext=c
20910 ac_cpp='$CPP $CPPFLAGS'
20911 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20912 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20913 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20914
20915
20916 fi
20917 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_ext_hash_set" >&5
20918 echo "${ECHO_T}$ac_cv_cxx_have_ext_hash_set" >&6
20919 if test "$ac_cv_cxx_have_ext_hash_set" = std; then
20920
20921 cat >>confdefs.h <<\_ACEOF
20922 #define HAVE_STD_EXT_HASH_SET
20923 _ACEOF
20924
20925 fi
20926 if test "$ac_cv_cxx_have_ext_hash_set" = gnu; then
20927
20928 cat >>confdefs.h <<\_ACEOF
20929 #define HAVE_GNU_EXT_HASH_SET
20930 _ACEOF
20931
20932 fi
20933
20934 echo "$as_me:$LINENO: checking whether the compiler has ext/slist" >&5
20935 echo $ECHO_N "checking whether the compiler has ext/slist... $ECHO_C" >&6
20936 if test "${ac_cv_cxx_have_ext_slist+set}" = set; then
20937   echo $ECHO_N "(cached) $ECHO_C" >&6
20938 else
20939
20940
20941
20942   ac_ext=cc
20943 ac_cpp='$CXXCPP $CPPFLAGS'
20944 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20945 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20946 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20947
20948   cat >conftest.$ac_ext <<_ACEOF
20949 #line $LINENO "configure"
20950 /* confdefs.h.  */
20951 _ACEOF
20952 cat confdefs.h >>conftest.$ac_ext
20953 cat >>conftest.$ac_ext <<_ACEOF
20954 /* end confdefs.h.  */
20955 #include <ext/slist>
20956 #ifdef HAVE_NAMESPACES
20957 using namespace std;
20958 #endif
20959 int
20960 main ()
20961 {
20962 slist<int> s; return 0;
20963   ;
20964   return 0;
20965 }
20966 _ACEOF
20967 rm -f conftest.$ac_objext
20968 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20969   (eval $ac_compile) 2>&5
20970   ac_status=$?
20971   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20972   (exit $ac_status); } &&
20973          { ac_try='test -s conftest.$ac_objext'
20974   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20975   (eval $ac_try) 2>&5
20976   ac_status=$?
20977   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20978   (exit $ac_status); }; }; then
20979   ac_cv_cxx_have_ext_slist=std
20980 else
20981   echo "$as_me: failed program was:" >&5
20982 sed 's/^/| /' conftest.$ac_ext >&5
20983
20984 ac_cv_cxx_have_ext_slist=no
20985 fi
20986 rm -f conftest.$ac_objext conftest.$ac_ext
20987   cat >conftest.$ac_ext <<_ACEOF
20988 #line $LINENO "configure"
20989 /* confdefs.h.  */
20990 _ACEOF
20991 cat confdefs.h >>conftest.$ac_ext
20992 cat >>conftest.$ac_ext <<_ACEOF
20993 /* end confdefs.h.  */
20994 #include <ext/slist>
20995 #ifdef HAVE_NAMESPACES
20996 using namespace __gnu_cxx;
20997 #endif
20998 int
20999 main ()
21000 {
21001 slist<int> s; return 0;
21002   ;
21003   return 0;
21004 }
21005 _ACEOF
21006 rm -f conftest.$ac_objext
21007 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21008   (eval $ac_compile) 2>&5
21009   ac_status=$?
21010   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21011   (exit $ac_status); } &&
21012          { ac_try='test -s conftest.$ac_objext'
21013   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21014   (eval $ac_try) 2>&5
21015   ac_status=$?
21016   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21017   (exit $ac_status); }; }; then
21018   ac_cv_cxx_have_ext_slist=gnu
21019 else
21020   echo "$as_me: failed program was:" >&5
21021 sed 's/^/| /' conftest.$ac_ext >&5
21022
21023 ac_cv_cxx_have_ext_slist=no
21024 fi
21025 rm -f conftest.$ac_objext conftest.$ac_ext
21026
21027   ac_ext=c
21028 ac_cpp='$CPP $CPPFLAGS'
21029 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21030 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21031 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21032
21033
21034 fi
21035 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_ext_slist" >&5
21036 echo "${ECHO_T}$ac_cv_cxx_have_ext_slist" >&6
21037 if test "$ac_cv_cxx_have_ext_slist" = std; then
21038
21039 cat >>confdefs.h <<\_ACEOF
21040 #define HAVE_EXT_SLIST std
21041 _ACEOF
21042
21043 fi
21044 if test "$ac_cv_cxx_have_ext_slist" = gnu; then
21045
21046 cat >>confdefs.h <<\_ACEOF
21047 #define HAVE_EXT_SLIST gnu
21048 _ACEOF
21049
21050 fi
21051
21052 echo "$as_me:$LINENO: checking whether the compiler has the standard iterator" >&5
21053 echo $ECHO_N "checking whether the compiler has the standard iterator... $ECHO_C" >&6
21054 if test "${ac_cv_cxx_have_std_iterator+set}" = set; then
21055   echo $ECHO_N "(cached) $ECHO_C" >&6
21056 else
21057
21058
21059
21060   ac_ext=cc
21061 ac_cpp='$CXXCPP $CPPFLAGS'
21062 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21063 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21064 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21065
21066   cat >conftest.$ac_ext <<_ACEOF
21067 #line $LINENO "configure"
21068 /* confdefs.h.  */
21069 _ACEOF
21070 cat confdefs.h >>conftest.$ac_ext
21071 cat >>conftest.$ac_ext <<_ACEOF
21072 /* end confdefs.h.  */
21073 #include <iterator>
21074 #ifdef HAVE_NAMESPACES
21075 using namespace std;
21076 #endif
21077 int
21078 main ()
21079 {
21080 iterator<int,int,int> t; return 0;
21081   ;
21082   return 0;
21083 }
21084 _ACEOF
21085 rm -f conftest.$ac_objext
21086 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21087   (eval $ac_compile) 2>&5
21088   ac_status=$?
21089   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21090   (exit $ac_status); } &&
21091          { ac_try='test -s conftest.$ac_objext'
21092   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21093   (eval $ac_try) 2>&5
21094   ac_status=$?
21095   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21096   (exit $ac_status); }; }; then
21097   ac_cv_cxx_have_std_iterator=yes
21098 else
21099   echo "$as_me: failed program was:" >&5
21100 sed 's/^/| /' conftest.$ac_ext >&5
21101
21102 ac_cv_cxx_have_std_iterator=no
21103 fi
21104 rm -f conftest.$ac_objext conftest.$ac_ext
21105   ac_ext=c
21106 ac_cpp='$CPP $CPPFLAGS'
21107 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21108 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21109 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21110
21111
21112 fi
21113 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_iterator" >&5
21114 echo "${ECHO_T}$ac_cv_cxx_have_std_iterator" >&6
21115 if test "$ac_cv_cxx_have_std_iterator" = yes; then
21116
21117 cat >>confdefs.h <<\_ACEOF
21118 #define HAVE_STD_ITERATOR
21119 _ACEOF
21120
21121 fi
21122
21123 echo "$as_me:$LINENO: checking whether the compiler has the bidirectional iterator" >&5
21124 echo $ECHO_N "checking whether the compiler has the bidirectional iterator... $ECHO_C" >&6
21125 if test "${ac_cv_cxx_have_bi_iterator+set}" = set; then
21126   echo $ECHO_N "(cached) $ECHO_C" >&6
21127 else
21128
21129
21130
21131   ac_ext=cc
21132 ac_cpp='$CXXCPP $CPPFLAGS'
21133 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21134 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21135 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21136
21137   cat >conftest.$ac_ext <<_ACEOF
21138 #line $LINENO "configure"
21139 /* confdefs.h.  */
21140 _ACEOF
21141 cat confdefs.h >>conftest.$ac_ext
21142 cat >>conftest.$ac_ext <<_ACEOF
21143 /* end confdefs.h.  */
21144 #include <iterator>
21145 #ifdef HAVE_NAMESPACES
21146 using namespace std;
21147 #endif
21148 int
21149 main ()
21150 {
21151 bidirectional_iterator<int,int> t; return 0;
21152   ;
21153   return 0;
21154 }
21155 _ACEOF
21156 rm -f conftest.$ac_objext
21157 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21158   (eval $ac_compile) 2>&5
21159   ac_status=$?
21160   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21161   (exit $ac_status); } &&
21162          { ac_try='test -s conftest.$ac_objext'
21163   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21164   (eval $ac_try) 2>&5
21165   ac_status=$?
21166   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21167   (exit $ac_status); }; }; then
21168   ac_cv_cxx_have_bi_iterator=yes
21169 else
21170   echo "$as_me: failed program was:" >&5
21171 sed 's/^/| /' conftest.$ac_ext >&5
21172
21173 ac_cv_cxx_have_bi_iterator=no
21174 fi
21175 rm -f conftest.$ac_objext conftest.$ac_ext
21176   ac_ext=c
21177 ac_cpp='$CPP $CPPFLAGS'
21178 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21179 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21180 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21181
21182
21183 fi
21184 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_bi_iterator" >&5
21185 echo "${ECHO_T}$ac_cv_cxx_have_bi_iterator" >&6
21186 if test "$ac_cv_cxx_have_bi_iterator" = yes; then
21187
21188 cat >>confdefs.h <<\_ACEOF
21189 #define HAVE_BI_ITERATOR
21190 _ACEOF
21191
21192 fi
21193
21194 echo "$as_me:$LINENO: checking whether the compiler has forward iterators" >&5
21195 echo $ECHO_N "checking whether the compiler has forward iterators... $ECHO_C" >&6
21196 if test "${ac_cv_cxx_have_fwd_iterator+set}" = set; then
21197   echo $ECHO_N "(cached) $ECHO_C" >&6
21198 else
21199
21200
21201
21202   ac_ext=cc
21203 ac_cpp='$CXXCPP $CPPFLAGS'
21204 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21205 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21206 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21207
21208   cat >conftest.$ac_ext <<_ACEOF
21209 #line $LINENO "configure"
21210 /* confdefs.h.  */
21211 _ACEOF
21212 cat confdefs.h >>conftest.$ac_ext
21213 cat >>conftest.$ac_ext <<_ACEOF
21214 /* end confdefs.h.  */
21215 #include <iterator>
21216 #ifdef HAVE_NAMESPACES
21217 using namespace std;
21218 #endif
21219 int
21220 main ()
21221 {
21222 forward_iterator<int,int> t; return 0;
21223   ;
21224   return 0;
21225 }
21226 _ACEOF
21227 rm -f conftest.$ac_objext
21228 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21229   (eval $ac_compile) 2>&5
21230   ac_status=$?
21231   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21232   (exit $ac_status); } &&
21233          { ac_try='test -s conftest.$ac_objext'
21234   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21235   (eval $ac_try) 2>&5
21236   ac_status=$?
21237   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21238   (exit $ac_status); }; }; then
21239   ac_cv_cxx_have_fwd_iterator=yes
21240 else
21241   echo "$as_me: failed program was:" >&5
21242 sed 's/^/| /' conftest.$ac_ext >&5
21243
21244 ac_cv_cxx_have_fwd_iterator=no
21245 fi
21246 rm -f conftest.$ac_objext conftest.$ac_ext
21247   ac_ext=c
21248 ac_cpp='$CPP $CPPFLAGS'
21249 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21250 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21251 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21252
21253
21254 fi
21255 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_fwd_iterator" >&5
21256 echo "${ECHO_T}$ac_cv_cxx_have_fwd_iterator" >&6
21257 if test "$ac_cv_cxx_have_fwd_iterator" = yes; then
21258
21259 cat >>confdefs.h <<\_ACEOF
21260 #define HAVE_FWD_ITERATOR
21261 _ACEOF
21262
21263 fi
21264
21265
21266 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
21267 # for constant arguments.  Useless!
21268 echo "$as_me:$LINENO: checking for working alloca.h" >&5
21269 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
21270 if test "${ac_cv_working_alloca_h+set}" = set; then
21271   echo $ECHO_N "(cached) $ECHO_C" >&6
21272 else
21273   cat >conftest.$ac_ext <<_ACEOF
21274 #line $LINENO "configure"
21275 /* confdefs.h.  */
21276 _ACEOF
21277 cat confdefs.h >>conftest.$ac_ext
21278 cat >>conftest.$ac_ext <<_ACEOF
21279 /* end confdefs.h.  */
21280 #include <alloca.h>
21281 int
21282 main ()
21283 {
21284 char *p = (char *) alloca (2 * sizeof (int));
21285   ;
21286   return 0;
21287 }
21288 _ACEOF
21289 rm -f conftest.$ac_objext conftest$ac_exeext
21290 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21291   (eval $ac_link) 2>&5
21292   ac_status=$?
21293   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21294   (exit $ac_status); } &&
21295          { ac_try='test -s conftest$ac_exeext'
21296   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21297   (eval $ac_try) 2>&5
21298   ac_status=$?
21299   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21300   (exit $ac_status); }; }; then
21301   ac_cv_working_alloca_h=yes
21302 else
21303   echo "$as_me: failed program was:" >&5
21304 sed 's/^/| /' conftest.$ac_ext >&5
21305
21306 ac_cv_working_alloca_h=no
21307 fi
21308 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21309 fi
21310 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
21311 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
21312 if test $ac_cv_working_alloca_h = yes; then
21313
21314 cat >>confdefs.h <<\_ACEOF
21315 #define HAVE_ALLOCA_H 1
21316 _ACEOF
21317
21318 fi
21319
21320 echo "$as_me:$LINENO: checking for alloca" >&5
21321 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
21322 if test "${ac_cv_func_alloca_works+set}" = set; then
21323   echo $ECHO_N "(cached) $ECHO_C" >&6
21324 else
21325   cat >conftest.$ac_ext <<_ACEOF
21326 #line $LINENO "configure"
21327 /* confdefs.h.  */
21328 _ACEOF
21329 cat confdefs.h >>conftest.$ac_ext
21330 cat >>conftest.$ac_ext <<_ACEOF
21331 /* end confdefs.h.  */
21332 #ifdef __GNUC__
21333 # define alloca __builtin_alloca
21334 #else
21335 # ifdef _MSC_VER
21336 #  include <malloc.h>
21337 #  define alloca _alloca
21338 # else
21339 #  if HAVE_ALLOCA_H
21340 #   include <alloca.h>
21341 #  else
21342 #   ifdef _AIX
21343  #pragma alloca
21344 #   else
21345 #    ifndef alloca /* predefined by HP cc +Olibcalls */
21346 char *alloca ();
21347 #    endif
21348 #   endif
21349 #  endif
21350 # endif
21351 #endif
21352
21353 int
21354 main ()
21355 {
21356 char *p = (char *) alloca (1);
21357   ;
21358   return 0;
21359 }
21360 _ACEOF
21361 rm -f conftest.$ac_objext conftest$ac_exeext
21362 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21363   (eval $ac_link) 2>&5
21364   ac_status=$?
21365   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21366   (exit $ac_status); } &&
21367          { ac_try='test -s conftest$ac_exeext'
21368   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21369   (eval $ac_try) 2>&5
21370   ac_status=$?
21371   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21372   (exit $ac_status); }; }; then
21373   ac_cv_func_alloca_works=yes
21374 else
21375   echo "$as_me: failed program was:" >&5
21376 sed 's/^/| /' conftest.$ac_ext >&5
21377
21378 ac_cv_func_alloca_works=no
21379 fi
21380 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21381 fi
21382 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
21383 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
21384
21385 if test $ac_cv_func_alloca_works = yes; then
21386
21387 cat >>confdefs.h <<\_ACEOF
21388 #define HAVE_ALLOCA 1
21389 _ACEOF
21390
21391 else
21392   # The SVR3 libPW and SVR4 libucb both contain incompatible functions
21393 # that cause trouble.  Some versions do not even contain alloca or
21394 # contain a buggy version.  If you still want to use their alloca,
21395 # use ar to extract alloca.o from them instead of compiling alloca.c.
21396
21397 ALLOCA=alloca.$ac_objext
21398
21399 cat >>confdefs.h <<\_ACEOF
21400 #define C_ALLOCA 1
21401 _ACEOF
21402
21403
21404 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
21405 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
21406 if test "${ac_cv_os_cray+set}" = set; then
21407   echo $ECHO_N "(cached) $ECHO_C" >&6
21408 else
21409   cat >conftest.$ac_ext <<_ACEOF
21410 #line $LINENO "configure"
21411 /* confdefs.h.  */
21412 _ACEOF
21413 cat confdefs.h >>conftest.$ac_ext
21414 cat >>conftest.$ac_ext <<_ACEOF
21415 /* end confdefs.h.  */
21416 #if defined(CRAY) && ! defined(CRAY2)
21417 webecray
21418 #else
21419 wenotbecray
21420 #endif
21421
21422 _ACEOF
21423 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21424   $EGREP "webecray" >/dev/null 2>&1; then
21425   ac_cv_os_cray=yes
21426 else
21427   ac_cv_os_cray=no
21428 fi
21429 rm -f conftest*
21430
21431 fi
21432 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
21433 echo "${ECHO_T}$ac_cv_os_cray" >&6
21434 if test $ac_cv_os_cray = yes; then
21435   for ac_func in _getb67 GETB67 getb67; do
21436     as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21437 echo "$as_me:$LINENO: checking for $ac_func" >&5
21438 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
21439 if eval "test \"\${$as_ac_var+set}\" = set"; then
21440   echo $ECHO_N "(cached) $ECHO_C" >&6
21441 else
21442   cat >conftest.$ac_ext <<_ACEOF
21443 #line $LINENO "configure"
21444 /* confdefs.h.  */
21445 _ACEOF
21446 cat confdefs.h >>conftest.$ac_ext
21447 cat >>conftest.$ac_ext <<_ACEOF
21448 /* end confdefs.h.  */
21449 /* System header to define __stub macros and hopefully few prototypes,
21450     which can conflict with char $ac_func (); below.
21451     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21452     <limits.h> exists even on freestanding compilers.  */
21453 #ifdef __STDC__
21454 # include <limits.h>
21455 #else
21456 # include <assert.h>
21457 #endif
21458 /* Override any gcc2 internal prototype to avoid an error.  */
21459 #ifdef __cplusplus
21460 extern "C"
21461 {
21462 #endif
21463 /* We use char because int might match the return type of a gcc2
21464    builtin and then its argument prototype would still apply.  */
21465 char $ac_func ();
21466 /* The GNU C library defines this for functions which it implements
21467     to always fail with ENOSYS.  Some functions are actually named
21468     something starting with __ and the normal name is an alias.  */
21469 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21470 choke me
21471 #else
21472 char (*f) () = $ac_func;
21473 #endif
21474 #ifdef __cplusplus
21475 }
21476 #endif
21477
21478 int
21479 main ()
21480 {
21481 return f != $ac_func;
21482   ;
21483   return 0;
21484 }
21485 _ACEOF
21486 rm -f conftest.$ac_objext conftest$ac_exeext
21487 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21488   (eval $ac_link) 2>&5
21489   ac_status=$?
21490   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21491   (exit $ac_status); } &&
21492          { ac_try='test -s conftest$ac_exeext'
21493   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21494   (eval $ac_try) 2>&5
21495   ac_status=$?
21496   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21497   (exit $ac_status); }; }; then
21498   eval "$as_ac_var=yes"
21499 else
21500   echo "$as_me: failed program was:" >&5
21501 sed 's/^/| /' conftest.$ac_ext >&5
21502
21503 eval "$as_ac_var=no"
21504 fi
21505 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21506 fi
21507 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
21508 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
21509 if test `eval echo '${'$as_ac_var'}'` = yes; then
21510
21511 cat >>confdefs.h <<_ACEOF
21512 #define CRAY_STACKSEG_END $ac_func
21513 _ACEOF
21514
21515     break
21516 fi
21517
21518   done
21519 fi
21520
21521 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
21522 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
21523 if test "${ac_cv_c_stack_direction+set}" = set; then
21524   echo $ECHO_N "(cached) $ECHO_C" >&6
21525 else
21526   if test "$cross_compiling" = yes; then
21527   ac_cv_c_stack_direction=0
21528 else
21529   cat >conftest.$ac_ext <<_ACEOF
21530 #line $LINENO "configure"
21531 /* confdefs.h.  */
21532 _ACEOF
21533 cat confdefs.h >>conftest.$ac_ext
21534 cat >>conftest.$ac_ext <<_ACEOF
21535 /* end confdefs.h.  */
21536 int
21537 find_stack_direction ()
21538 {
21539   static char *addr = 0;
21540   auto char dummy;
21541   if (addr == 0)
21542     {
21543       addr = &dummy;
21544       return find_stack_direction ();
21545     }
21546   else
21547     return (&dummy > addr) ? 1 : -1;
21548 }
21549
21550 int
21551 main ()
21552 {
21553   exit (find_stack_direction () < 0);
21554 }
21555 _ACEOF
21556 rm -f conftest$ac_exeext
21557 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21558   (eval $ac_link) 2>&5
21559   ac_status=$?
21560   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21561   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21562   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21563   (eval $ac_try) 2>&5
21564   ac_status=$?
21565   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21566   (exit $ac_status); }; }; then
21567   ac_cv_c_stack_direction=1
21568 else
21569   echo "$as_me: program exited with status $ac_status" >&5
21570 echo "$as_me: failed program was:" >&5
21571 sed 's/^/| /' conftest.$ac_ext >&5
21572
21573 ( exit $ac_status )
21574 ac_cv_c_stack_direction=-1
21575 fi
21576 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21577 fi
21578 fi
21579 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
21580 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
21581
21582 cat >>confdefs.h <<_ACEOF
21583 #define STACK_DIRECTION $ac_cv_c_stack_direction
21584 _ACEOF
21585
21586
21587 fi
21588
21589 if test $ac_cv_c_compiler_gnu = yes; then
21590     echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
21591 echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6
21592 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
21593   echo $ECHO_N "(cached) $ECHO_C" >&6
21594 else
21595     ac_pattern="Autoconf.*'x'"
21596   cat >conftest.$ac_ext <<_ACEOF
21597 #line $LINENO "configure"
21598 /* confdefs.h.  */
21599 _ACEOF
21600 cat confdefs.h >>conftest.$ac_ext
21601 cat >>conftest.$ac_ext <<_ACEOF
21602 /* end confdefs.h.  */
21603 #include <sgtty.h>
21604 Autoconf TIOCGETP
21605 _ACEOF
21606 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21607   $EGREP "$ac_pattern" >/dev/null 2>&1; then
21608   ac_cv_prog_gcc_traditional=yes
21609 else
21610   ac_cv_prog_gcc_traditional=no
21611 fi
21612 rm -f conftest*
21613
21614
21615   if test $ac_cv_prog_gcc_traditional = no; then
21616     cat >conftest.$ac_ext <<_ACEOF
21617 #line $LINENO "configure"
21618 /* confdefs.h.  */
21619 _ACEOF
21620 cat confdefs.h >>conftest.$ac_ext
21621 cat >>conftest.$ac_ext <<_ACEOF
21622 /* end confdefs.h.  */
21623 #include <termio.h>
21624 Autoconf TCGETA
21625 _ACEOF
21626 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21627   $EGREP "$ac_pattern" >/dev/null 2>&1; then
21628   ac_cv_prog_gcc_traditional=yes
21629 fi
21630 rm -f conftest*
21631
21632   fi
21633 fi
21634 echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
21635 echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6
21636   if test $ac_cv_prog_gcc_traditional = yes; then
21637     CC="$CC -traditional"
21638   fi
21639 fi
21640
21641 echo "$as_me:$LINENO: checking for working memcmp" >&5
21642 echo $ECHO_N "checking for working memcmp... $ECHO_C" >&6
21643 if test "${ac_cv_func_memcmp_working+set}" = set; then
21644   echo $ECHO_N "(cached) $ECHO_C" >&6
21645 else
21646   if test "$cross_compiling" = yes; then
21647   ac_cv_func_memcmp_working=no
21648 else
21649   cat >conftest.$ac_ext <<_ACEOF
21650 #line $LINENO "configure"
21651 /* confdefs.h.  */
21652 _ACEOF
21653 cat confdefs.h >>conftest.$ac_ext
21654 cat >>conftest.$ac_ext <<_ACEOF
21655 /* end confdefs.h.  */
21656
21657 int
21658 main ()
21659 {
21660
21661   /* Some versions of memcmp are not 8-bit clean.  */
21662   char c0 = 0x40, c1 = 0x80, c2 = 0x81;
21663   if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
21664     exit (1);
21665
21666   /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
21667      or more and with at least one buffer not starting on a 4-byte boundary.
21668      William Lewis provided this test program.   */
21669   {
21670     char foo[21];
21671     char bar[21];
21672     int i;
21673     for (i = 0; i < 4; i++)
21674       {
21675         char *a = foo + i;
21676         char *b = bar + i;
21677         strcpy (a, "--------01111111");
21678         strcpy (b, "--------10000000");
21679         if (memcmp (a, b, 16) >= 0)
21680           exit (1);
21681       }
21682     exit (0);
21683   }
21684
21685   ;
21686   return 0;
21687 }
21688 _ACEOF
21689 rm -f conftest$ac_exeext
21690 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21691   (eval $ac_link) 2>&5
21692   ac_status=$?
21693   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21694   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21695   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21696   (eval $ac_try) 2>&5
21697   ac_status=$?
21698   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21699   (exit $ac_status); }; }; then
21700   ac_cv_func_memcmp_working=yes
21701 else
21702   echo "$as_me: program exited with status $ac_status" >&5
21703 echo "$as_me: failed program was:" >&5
21704 sed 's/^/| /' conftest.$ac_ext >&5
21705
21706 ( exit $ac_status )
21707 ac_cv_func_memcmp_working=no
21708 fi
21709 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21710 fi
21711 fi
21712 echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
21713 echo "${ECHO_T}$ac_cv_func_memcmp_working" >&6
21714 test $ac_cv_func_memcmp_working = no && LIBOBJS="$LIBOBJS memcmp.$ac_objext"
21715
21716
21717
21718 for ac_header in stdlib.h unistd.h
21719 do
21720 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21721 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21722   echo "$as_me:$LINENO: checking for $ac_header" >&5
21723 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21724 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21725   echo $ECHO_N "(cached) $ECHO_C" >&6
21726 fi
21727 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21728 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21729 else
21730   # Is the header compilable?
21731 echo "$as_me:$LINENO: checking $ac_header usability" >&5
21732 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
21733 cat >conftest.$ac_ext <<_ACEOF
21734 #line $LINENO "configure"
21735 /* confdefs.h.  */
21736 _ACEOF
21737 cat confdefs.h >>conftest.$ac_ext
21738 cat >>conftest.$ac_ext <<_ACEOF
21739 /* end confdefs.h.  */
21740 $ac_includes_default
21741 #include <$ac_header>
21742 _ACEOF
21743 rm -f conftest.$ac_objext
21744 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21745   (eval $ac_compile) 2>&5
21746   ac_status=$?
21747   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21748   (exit $ac_status); } &&
21749          { ac_try='test -s conftest.$ac_objext'
21750   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21751   (eval $ac_try) 2>&5
21752   ac_status=$?
21753   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21754   (exit $ac_status); }; }; then
21755   ac_header_compiler=yes
21756 else
21757   echo "$as_me: failed program was:" >&5
21758 sed 's/^/| /' conftest.$ac_ext >&5
21759
21760 ac_header_compiler=no
21761 fi
21762 rm -f conftest.$ac_objext conftest.$ac_ext
21763 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21764 echo "${ECHO_T}$ac_header_compiler" >&6
21765
21766 # Is the header present?
21767 echo "$as_me:$LINENO: checking $ac_header presence" >&5
21768 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
21769 cat >conftest.$ac_ext <<_ACEOF
21770 #line $LINENO "configure"
21771 /* confdefs.h.  */
21772 _ACEOF
21773 cat confdefs.h >>conftest.$ac_ext
21774 cat >>conftest.$ac_ext <<_ACEOF
21775 /* end confdefs.h.  */
21776 #include <$ac_header>
21777 _ACEOF
21778 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21779   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21780   ac_status=$?
21781   grep -v '^ *+' conftest.er1 >conftest.err
21782   rm -f conftest.er1
21783   cat conftest.err >&5
21784   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21785   (exit $ac_status); } >/dev/null; then
21786   if test -s conftest.err; then
21787     ac_cpp_err=$ac_c_preproc_warn_flag
21788   else
21789     ac_cpp_err=
21790   fi
21791 else
21792   ac_cpp_err=yes
21793 fi
21794 if test -z "$ac_cpp_err"; then
21795   ac_header_preproc=yes
21796 else
21797   echo "$as_me: failed program was:" >&5
21798 sed 's/^/| /' conftest.$ac_ext >&5
21799
21800   ac_header_preproc=no
21801 fi
21802 rm -f conftest.err conftest.$ac_ext
21803 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21804 echo "${ECHO_T}$ac_header_preproc" >&6
21805
21806 # So?  What about this header?
21807 case $ac_header_compiler:$ac_header_preproc in
21808   yes:no )
21809     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21810 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21811     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21812 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21813     (
21814       cat <<\_ASBOX
21815 ## ------------------------------------ ##
21816 ## Report this to bug-autoconf@gnu.org. ##
21817 ## ------------------------------------ ##
21818 _ASBOX
21819     ) |
21820       sed "s/^/$as_me: WARNING:     /" >&2
21821     ;;
21822   no:yes )
21823     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21824 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21825     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21826 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21827     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21828 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21829     (
21830       cat <<\_ASBOX
21831 ## ------------------------------------ ##
21832 ## Report this to bug-autoconf@gnu.org. ##
21833 ## ------------------------------------ ##
21834 _ASBOX
21835     ) |
21836       sed "s/^/$as_me: WARNING:     /" >&2
21837     ;;
21838 esac
21839 echo "$as_me:$LINENO: checking for $ac_header" >&5
21840 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21841 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21842   echo $ECHO_N "(cached) $ECHO_C" >&6
21843 else
21844   eval "$as_ac_Header=$ac_header_preproc"
21845 fi
21846 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21847 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21848
21849 fi
21850 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21851   cat >>confdefs.h <<_ACEOF
21852 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21853 _ACEOF
21854
21855 fi
21856
21857 done
21858
21859
21860 for ac_func in getpagesize
21861 do
21862 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21863 echo "$as_me:$LINENO: checking for $ac_func" >&5
21864 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
21865 if eval "test \"\${$as_ac_var+set}\" = set"; then
21866   echo $ECHO_N "(cached) $ECHO_C" >&6
21867 else
21868   cat >conftest.$ac_ext <<_ACEOF
21869 #line $LINENO "configure"
21870 /* confdefs.h.  */
21871 _ACEOF
21872 cat confdefs.h >>conftest.$ac_ext
21873 cat >>conftest.$ac_ext <<_ACEOF
21874 /* end confdefs.h.  */
21875 /* System header to define __stub macros and hopefully few prototypes,
21876     which can conflict with char $ac_func (); below.
21877     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21878     <limits.h> exists even on freestanding compilers.  */
21879 #ifdef __STDC__
21880 # include <limits.h>
21881 #else
21882 # include <assert.h>
21883 #endif
21884 /* Override any gcc2 internal prototype to avoid an error.  */
21885 #ifdef __cplusplus
21886 extern "C"
21887 {
21888 #endif
21889 /* We use char because int might match the return type of a gcc2
21890    builtin and then its argument prototype would still apply.  */
21891 char $ac_func ();
21892 /* The GNU C library defines this for functions which it implements
21893     to always fail with ENOSYS.  Some functions are actually named
21894     something starting with __ and the normal name is an alias.  */
21895 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21896 choke me
21897 #else
21898 char (*f) () = $ac_func;
21899 #endif
21900 #ifdef __cplusplus
21901 }
21902 #endif
21903
21904 int
21905 main ()
21906 {
21907 return f != $ac_func;
21908   ;
21909   return 0;
21910 }
21911 _ACEOF
21912 rm -f conftest.$ac_objext conftest$ac_exeext
21913 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21914   (eval $ac_link) 2>&5
21915   ac_status=$?
21916   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21917   (exit $ac_status); } &&
21918          { ac_try='test -s conftest$ac_exeext'
21919   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21920   (eval $ac_try) 2>&5
21921   ac_status=$?
21922   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21923   (exit $ac_status); }; }; then
21924   eval "$as_ac_var=yes"
21925 else
21926   echo "$as_me: failed program was:" >&5
21927 sed 's/^/| /' conftest.$ac_ext >&5
21928
21929 eval "$as_ac_var=no"
21930 fi
21931 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21932 fi
21933 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
21934 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
21935 if test `eval echo '${'$as_ac_var'}'` = yes; then
21936   cat >>confdefs.h <<_ACEOF
21937 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21938 _ACEOF
21939
21940 fi
21941 done
21942
21943 echo "$as_me:$LINENO: checking for working mmap" >&5
21944 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
21945 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
21946   echo $ECHO_N "(cached) $ECHO_C" >&6
21947 else
21948   if test "$cross_compiling" = yes; then
21949   ac_cv_func_mmap_fixed_mapped=no
21950 else
21951   cat >conftest.$ac_ext <<_ACEOF
21952 #line $LINENO "configure"
21953 /* confdefs.h.  */
21954 _ACEOF
21955 cat confdefs.h >>conftest.$ac_ext
21956 cat >>conftest.$ac_ext <<_ACEOF
21957 /* end confdefs.h.  */
21958 $ac_includes_default
21959 /* malloc might have been renamed as rpl_malloc. */
21960 #undef malloc
21961
21962 /* Thanks to Mike Haertel and Jim Avera for this test.
21963    Here is a matrix of mmap possibilities:
21964         mmap private not fixed
21965         mmap private fixed at somewhere currently unmapped
21966         mmap private fixed at somewhere already mapped
21967         mmap shared not fixed
21968         mmap shared fixed at somewhere currently unmapped
21969         mmap shared fixed at somewhere already mapped
21970    For private mappings, we should verify that changes cannot be read()
21971    back from the file, nor mmap's back from the file at a different
21972    address.  (There have been systems where private was not correctly
21973    implemented like the infamous i386 svr4.0, and systems where the
21974    VM page cache was not coherent with the file system buffer cache
21975    like early versions of FreeBSD and possibly contemporary NetBSD.)
21976    For shared mappings, we should conversely verify that changes get
21977    propagated back to all the places they're supposed to be.
21978
21979    Grep wants private fixed already mapped.
21980    The main things grep needs to know about mmap are:
21981    * does it exist and is it safe to write into the mmap'd area
21982    * how to use it (BSD variants)  */
21983
21984 #include <fcntl.h>
21985 #include <sys/mman.h>
21986
21987 #if !STDC_HEADERS && !HAVE_STDLIB_H
21988 char *malloc ();
21989 #endif
21990
21991 /* This mess was copied from the GNU getpagesize.h.  */
21992 #if !HAVE_GETPAGESIZE
21993 /* Assume that all systems that can run configure have sys/param.h.  */
21994 # if !HAVE_SYS_PARAM_H
21995 #  define HAVE_SYS_PARAM_H 1
21996 # endif
21997
21998 # ifdef _SC_PAGESIZE
21999 #  define getpagesize() sysconf(_SC_PAGESIZE)
22000 # else /* no _SC_PAGESIZE */
22001 #  if HAVE_SYS_PARAM_H
22002 #   include <sys/param.h>
22003 #   ifdef EXEC_PAGESIZE
22004 #    define getpagesize() EXEC_PAGESIZE
22005 #   else /* no EXEC_PAGESIZE */
22006 #    ifdef NBPG
22007 #     define getpagesize() NBPG * CLSIZE
22008 #     ifndef CLSIZE
22009 #      define CLSIZE 1
22010 #     endif /* no CLSIZE */
22011 #    else /* no NBPG */
22012 #     ifdef NBPC
22013 #      define getpagesize() NBPC
22014 #     else /* no NBPC */
22015 #      ifdef PAGESIZE
22016 #       define getpagesize() PAGESIZE
22017 #      endif /* PAGESIZE */
22018 #     endif /* no NBPC */
22019 #    endif /* no NBPG */
22020 #   endif /* no EXEC_PAGESIZE */
22021 #  else /* no HAVE_SYS_PARAM_H */
22022 #   define getpagesize() 8192   /* punt totally */
22023 #  endif /* no HAVE_SYS_PARAM_H */
22024 # endif /* no _SC_PAGESIZE */
22025
22026 #endif /* no HAVE_GETPAGESIZE */
22027
22028 int
22029 main ()
22030 {
22031   char *data, *data2, *data3;
22032   int i, pagesize;
22033   int fd;
22034
22035   pagesize = getpagesize ();
22036
22037   /* First, make a file with some known garbage in it. */
22038   data = (char *) malloc (pagesize);
22039   if (!data)
22040     exit (1);
22041   for (i = 0; i < pagesize; ++i)
22042     *(data + i) = rand ();
22043   umask (0);
22044   fd = creat ("conftest.mmap", 0600);
22045   if (fd < 0)
22046     exit (1);
22047   if (write (fd, data, pagesize) != pagesize)
22048     exit (1);
22049   close (fd);
22050
22051   /* Next, try to mmap the file at a fixed address which already has
22052      something else allocated at it.  If we can, also make sure that
22053      we see the same garbage.  */
22054   fd = open ("conftest.mmap", O_RDWR);
22055   if (fd < 0)
22056     exit (1);
22057   data2 = (char *) malloc (2 * pagesize);
22058   if (!data2)
22059     exit (1);
22060   data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
22061   if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
22062                      MAP_PRIVATE | MAP_FIXED, fd, 0L))
22063     exit (1);
22064   for (i = 0; i < pagesize; ++i)
22065     if (*(data + i) != *(data2 + i))
22066       exit (1);
22067
22068   /* Finally, make sure that changes to the mapped area do not
22069      percolate back to the file as seen by read().  (This is a bug on
22070      some variants of i386 svr4.0.)  */
22071   for (i = 0; i < pagesize; ++i)
22072     *(data2 + i) = *(data2 + i) + 1;
22073   data3 = (char *) malloc (pagesize);
22074   if (!data3)
22075     exit (1);
22076   if (read (fd, data3, pagesize) != pagesize)
22077     exit (1);
22078   for (i = 0; i < pagesize; ++i)
22079     if (*(data + i) != *(data3 + i))
22080       exit (1);
22081   close (fd);
22082   exit (0);
22083 }
22084 _ACEOF
22085 rm -f conftest$ac_exeext
22086 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22087   (eval $ac_link) 2>&5
22088   ac_status=$?
22089   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22090   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22091   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22092   (eval $ac_try) 2>&5
22093   ac_status=$?
22094   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22095   (exit $ac_status); }; }; then
22096   ac_cv_func_mmap_fixed_mapped=yes
22097 else
22098   echo "$as_me: program exited with status $ac_status" >&5
22099 echo "$as_me: failed program was:" >&5
22100 sed 's/^/| /' conftest.$ac_ext >&5
22101
22102 ( exit $ac_status )
22103 ac_cv_func_mmap_fixed_mapped=no
22104 fi
22105 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22106 fi
22107 fi
22108 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
22109 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
22110 if test $ac_cv_func_mmap_fixed_mapped = yes; then
22111
22112 cat >>confdefs.h <<\_ACEOF
22113 #define HAVE_MMAP 1
22114 _ACEOF
22115
22116 fi
22117 rm -f conftest.mmap
22118
22119 echo "$as_me:$LINENO: checking for mmap of files" >&5
22120 echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6
22121 if test "${ac_cv_func_mmap_file+set}" = set; then
22122   echo $ECHO_N "(cached) $ECHO_C" >&6
22123 else
22124
22125
22126   ac_ext=c
22127 ac_cpp='$CPP $CPPFLAGS'
22128 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22129 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22130 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22131
22132   if test "$cross_compiling" = yes; then
22133   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
22134 See \`config.log' for more details." >&5
22135 echo "$as_me: error: cannot run test program while cross compiling
22136 See \`config.log' for more details." >&2;}
22137    { (exit 1); exit 1; }; }
22138 else
22139   cat >conftest.$ac_ext <<_ACEOF
22140 #line $LINENO "configure"
22141 /* confdefs.h.  */
22142 _ACEOF
22143 cat confdefs.h >>conftest.$ac_ext
22144 cat >>conftest.$ac_ext <<_ACEOF
22145 /* end confdefs.h.  */
22146
22147 #ifdef HAVE_SYS_MMAN_H
22148 #include <sys/mman.h>
22149 #endif
22150
22151 #ifdef HAVE_SYS_TYPES_H
22152 #include <sys/types.h>
22153 #endif
22154
22155 #ifdef HAVE_FCNTL_H
22156 #include <fcntl.h>
22157 #endif
22158
22159   int fd;
22160   int main () {
22161   fd = creat ("foo",0777); fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0); unlink ("foo"); return (fd != MAP_FAILED);}
22162 _ACEOF
22163 rm -f conftest$ac_exeext
22164 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22165   (eval $ac_link) 2>&5
22166   ac_status=$?
22167   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22168   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22169   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22170   (eval $ac_try) 2>&5
22171   ac_status=$?
22172   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22173   (exit $ac_status); }; }; then
22174   ac_cv_func_mmap_file=yes
22175 else
22176   echo "$as_me: program exited with status $ac_status" >&5
22177 echo "$as_me: failed program was:" >&5
22178 sed 's/^/| /' conftest.$ac_ext >&5
22179
22180 ( exit $ac_status )
22181 ac_cv_func_mmap_file=no
22182 fi
22183 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22184 fi
22185   ac_ext=c
22186 ac_cpp='$CPP $CPPFLAGS'
22187 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22188 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22189 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22190
22191
22192 fi
22193 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
22194 echo "${ECHO_T}$ac_cv_func_mmap_file" >&6
22195 if test "$ac_cv_func_mmap_file" = yes; then
22196    cat >>confdefs.h <<\_ACEOF
22197 #define HAVE_MMAP_FILE 1
22198 _ACEOF
22199
22200    MMAP_FILE=yes
22201
22202 fi
22203
22204 if test ${ac_cv_func_mmap_file} = "no"
22205 then
22206         { { echo "$as_me:$LINENO: error: mmap() of files required but not found" >&5
22207 echo "$as_me: error: mmap() of files required but not found" >&2;}
22208    { (exit 1); exit 1; }; }
22209 fi
22210 echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5
22211 echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6
22212 if test "${ac_cv_header_mmap_anon+set}" = set; then
22213   echo $ECHO_N "(cached) $ECHO_C" >&6
22214 else
22215
22216
22217   ac_ext=c
22218 ac_cpp='$CPP $CPPFLAGS'
22219 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22220 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22221 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22222
22223   cat >conftest.$ac_ext <<_ACEOF
22224 #line $LINENO "configure"
22225 /* confdefs.h.  */
22226 _ACEOF
22227 cat confdefs.h >>conftest.$ac_ext
22228 cat >>conftest.$ac_ext <<_ACEOF
22229 /* end confdefs.h.  */
22230 #include <sys/mman.h>
22231   #include <unistd.h>
22232   #include <fcntl.h>
22233 int
22234 main ()
22235 {
22236 mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0);
22237   ;
22238   return 0;
22239 }
22240 _ACEOF
22241 rm -f conftest.$ac_objext
22242 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22243   (eval $ac_compile) 2>&5
22244   ac_status=$?
22245   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22246   (exit $ac_status); } &&
22247          { ac_try='test -s conftest.$ac_objext'
22248   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22249   (eval $ac_try) 2>&5
22250   ac_status=$?
22251   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22252   (exit $ac_status); }; }; then
22253   ac_cv_header_mmap_anon=yes
22254 else
22255   echo "$as_me: failed program was:" >&5
22256 sed 's/^/| /' conftest.$ac_ext >&5
22257
22258 ac_cv_header_mmap_anon=no
22259 fi
22260 rm -f conftest.$ac_objext conftest.$ac_ext
22261   ac_ext=c
22262 ac_cpp='$CPP $CPPFLAGS'
22263 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22264 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22265 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22266
22267
22268 fi
22269 echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5
22270 echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6
22271 if test "$ac_cv_header_mmap_anon" = yes; then
22272    cat >>confdefs.h <<\_ACEOF
22273 #define HAVE_MMAP_ANONYMOUS 1
22274 _ACEOF
22275
22276 fi
22277
22278 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
22279 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
22280 if test "${ac_cv_type_signal+set}" = set; then
22281   echo $ECHO_N "(cached) $ECHO_C" >&6
22282 else
22283   cat >conftest.$ac_ext <<_ACEOF
22284 #line $LINENO "configure"
22285 /* confdefs.h.  */
22286 _ACEOF
22287 cat confdefs.h >>conftest.$ac_ext
22288 cat >>conftest.$ac_ext <<_ACEOF
22289 /* end confdefs.h.  */
22290 #include <sys/types.h>
22291 #include <signal.h>
22292 #ifdef signal
22293 # undef signal
22294 #endif
22295 #ifdef __cplusplus
22296 extern "C" void (*signal (int, void (*)(int)))(int);
22297 #else
22298 void (*signal ()) ();
22299 #endif
22300
22301 int
22302 main ()
22303 {
22304 int i;
22305   ;
22306   return 0;
22307 }
22308 _ACEOF
22309 rm -f conftest.$ac_objext
22310 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22311   (eval $ac_compile) 2>&5
22312   ac_status=$?
22313   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22314   (exit $ac_status); } &&
22315          { ac_try='test -s conftest.$ac_objext'
22316   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22317   (eval $ac_try) 2>&5
22318   ac_status=$?
22319   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22320   (exit $ac_status); }; }; then
22321   ac_cv_type_signal=void
22322 else
22323   echo "$as_me: failed program was:" >&5
22324 sed 's/^/| /' conftest.$ac_ext >&5
22325
22326 ac_cv_type_signal=int
22327 fi
22328 rm -f conftest.$ac_objext conftest.$ac_ext
22329 fi
22330 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
22331 echo "${ECHO_T}$ac_cv_type_signal" >&6
22332
22333 cat >>confdefs.h <<_ACEOF
22334 #define RETSIGTYPE $ac_cv_type_signal
22335 _ACEOF
22336
22337
22338
22339
22340
22341
22342
22343
22344
22345
22346
22347 for ac_func in getcwd gettimeofday strcspn strdup strerror strspn strstr strtod strtol
22348 do
22349 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22350 echo "$as_me:$LINENO: checking for $ac_func" >&5
22351 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
22352 if eval "test \"\${$as_ac_var+set}\" = set"; then
22353   echo $ECHO_N "(cached) $ECHO_C" >&6
22354 else
22355   cat >conftest.$ac_ext <<_ACEOF
22356 #line $LINENO "configure"
22357 /* confdefs.h.  */
22358 _ACEOF
22359 cat confdefs.h >>conftest.$ac_ext
22360 cat >>conftest.$ac_ext <<_ACEOF
22361 /* end confdefs.h.  */
22362 /* System header to define __stub macros and hopefully few prototypes,
22363     which can conflict with char $ac_func (); below.
22364     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22365     <limits.h> exists even on freestanding compilers.  */
22366 #ifdef __STDC__
22367 # include <limits.h>
22368 #else
22369 # include <assert.h>
22370 #endif
22371 /* Override any gcc2 internal prototype to avoid an error.  */
22372 #ifdef __cplusplus
22373 extern "C"
22374 {
22375 #endif
22376 /* We use char because int might match the return type of a gcc2
22377    builtin and then its argument prototype would still apply.  */
22378 char $ac_func ();
22379 /* The GNU C library defines this for functions which it implements
22380     to always fail with ENOSYS.  Some functions are actually named
22381     something starting with __ and the normal name is an alias.  */
22382 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22383 choke me
22384 #else
22385 char (*f) () = $ac_func;
22386 #endif
22387 #ifdef __cplusplus
22388 }
22389 #endif
22390
22391 int
22392 main ()
22393 {
22394 return f != $ac_func;
22395   ;
22396   return 0;
22397 }
22398 _ACEOF
22399 rm -f conftest.$ac_objext conftest$ac_exeext
22400 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22401   (eval $ac_link) 2>&5
22402   ac_status=$?
22403   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22404   (exit $ac_status); } &&
22405          { ac_try='test -s conftest$ac_exeext'
22406   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22407   (eval $ac_try) 2>&5
22408   ac_status=$?
22409   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22410   (exit $ac_status); }; }; then
22411   eval "$as_ac_var=yes"
22412 else
22413   echo "$as_me: failed program was:" >&5
22414 sed 's/^/| /' conftest.$ac_ext >&5
22415
22416 eval "$as_ac_var=no"
22417 fi
22418 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
22419 fi
22420 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
22421 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
22422 if test `eval echo '${'$as_ac_var'}'` = yes; then
22423   cat >>confdefs.h <<_ACEOF
22424 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22425 _ACEOF
22426
22427 fi
22428 done
22429
22430
22431
22432 echo "$as_me:$LINENO: checking for mmap" >&5
22433 echo $ECHO_N "checking for mmap... $ECHO_C" >&6
22434 if test "${ac_cv_func_mmap+set}" = set; then
22435   echo $ECHO_N "(cached) $ECHO_C" >&6
22436 else
22437   cat >conftest.$ac_ext <<_ACEOF
22438 #line $LINENO "configure"
22439 /* confdefs.h.  */
22440 _ACEOF
22441 cat confdefs.h >>conftest.$ac_ext
22442 cat >>conftest.$ac_ext <<_ACEOF
22443 /* end confdefs.h.  */
22444 /* System header to define __stub macros and hopefully few prototypes,
22445     which can conflict with char mmap (); below.
22446     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22447     <limits.h> exists even on freestanding compilers.  */
22448 #ifdef __STDC__
22449 # include <limits.h>
22450 #else
22451 # include <assert.h>
22452 #endif
22453 /* Override any gcc2 internal prototype to avoid an error.  */
22454 #ifdef __cplusplus
22455 extern "C"
22456 {
22457 #endif
22458 /* We use char because int might match the return type of a gcc2
22459    builtin and then its argument prototype would still apply.  */
22460 char mmap ();
22461 /* The GNU C library defines this for functions which it implements
22462     to always fail with ENOSYS.  Some functions are actually named
22463     something starting with __ and the normal name is an alias.  */
22464 #if defined (__stub_mmap) || defined (__stub___mmap)
22465 choke me
22466 #else
22467 char (*f) () = mmap;
22468 #endif
22469 #ifdef __cplusplus
22470 }
22471 #endif
22472
22473 int
22474 main ()
22475 {
22476 return f != mmap;
22477   ;
22478   return 0;
22479 }
22480 _ACEOF
22481 rm -f conftest.$ac_objext conftest$ac_exeext
22482 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22483   (eval $ac_link) 2>&5
22484   ac_status=$?
22485   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22486   (exit $ac_status); } &&
22487          { ac_try='test -s conftest$ac_exeext'
22488   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22489   (eval $ac_try) 2>&5
22490   ac_status=$?
22491   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22492   (exit $ac_status); }; }; then
22493   ac_cv_func_mmap=yes
22494 else
22495   echo "$as_me: failed program was:" >&5
22496 sed 's/^/| /' conftest.$ac_ext >&5
22497
22498 ac_cv_func_mmap=no
22499 fi
22500 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
22501 fi
22502 echo "$as_me:$LINENO: result: $ac_cv_func_mmap" >&5
22503 echo "${ECHO_T}$ac_cv_func_mmap" >&6
22504 if test $ac_cv_func_mmap = yes; then
22505   :
22506 else
22507   { { echo "$as_me:$LINENO: error: Function mmap() required but not found" >&5
22508 echo "$as_me: error: Function mmap() required but not found" >&2;}
22509    { (exit 1); exit 1; }; }
22510 fi
22511
22512 echo "$as_me:$LINENO: checking for mprotect" >&5
22513 echo $ECHO_N "checking for mprotect... $ECHO_C" >&6
22514 if test "${ac_cv_func_mprotect+set}" = set; then
22515   echo $ECHO_N "(cached) $ECHO_C" >&6
22516 else
22517   cat >conftest.$ac_ext <<_ACEOF
22518 #line $LINENO "configure"
22519 /* confdefs.h.  */
22520 _ACEOF
22521 cat confdefs.h >>conftest.$ac_ext
22522 cat >>conftest.$ac_ext <<_ACEOF
22523 /* end confdefs.h.  */
22524 /* System header to define __stub macros and hopefully few prototypes,
22525     which can conflict with char mprotect (); below.
22526     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22527     <limits.h> exists even on freestanding compilers.  */
22528 #ifdef __STDC__
22529 # include <limits.h>
22530 #else
22531 # include <assert.h>
22532 #endif
22533 /* Override any gcc2 internal prototype to avoid an error.  */
22534 #ifdef __cplusplus
22535 extern "C"
22536 {
22537 #endif
22538 /* We use char because int might match the return type of a gcc2
22539    builtin and then its argument prototype would still apply.  */
22540 char mprotect ();
22541 /* The GNU C library defines this for functions which it implements
22542     to always fail with ENOSYS.  Some functions are actually named
22543     something starting with __ and the normal name is an alias.  */
22544 #if defined (__stub_mprotect) || defined (__stub___mprotect)
22545 choke me
22546 #else
22547 char (*f) () = mprotect;
22548 #endif
22549 #ifdef __cplusplus
22550 }
22551 #endif
22552
22553 int
22554 main ()
22555 {
22556 return f != mprotect;
22557   ;
22558   return 0;
22559 }
22560 _ACEOF
22561 rm -f conftest.$ac_objext conftest$ac_exeext
22562 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22563   (eval $ac_link) 2>&5
22564   ac_status=$?
22565   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22566   (exit $ac_status); } &&
22567          { ac_try='test -s conftest$ac_exeext'
22568   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22569   (eval $ac_try) 2>&5
22570   ac_status=$?
22571   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22572   (exit $ac_status); }; }; then
22573   ac_cv_func_mprotect=yes
22574 else
22575   echo "$as_me: failed program was:" >&5
22576 sed 's/^/| /' conftest.$ac_ext >&5
22577
22578 ac_cv_func_mprotect=no
22579 fi
22580 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
22581 fi
22582 echo "$as_me:$LINENO: result: $ac_cv_func_mprotect" >&5
22583 echo "${ECHO_T}$ac_cv_func_mprotect" >&6
22584 if test $ac_cv_func_mprotect = yes; then
22585   :
22586 else
22587   { { echo "$as_me:$LINENO: error: Function mprotect() required but not found" >&5
22588 echo "$as_me: error: Function mprotect() required but not found" >&2;}
22589    { (exit 1); exit 1; }; }
22590 fi
22591
22592
22593
22594 # Check whether --enable-purify or --disable-purify was given.
22595 if test "${enable_purify+set}" = set; then
22596   enableval="$enable_purify"
22597
22598 else
22599   enableval="no"
22600 fi;
22601 if test ${enableval} = "no"
22602 then
22603         ENABLE_PURIFY=
22604
22605 else
22606         ENABLE_PURIFY=ENABLE_PURIFY=1
22607
22608 fi
22609
22610 # Check whether --enable-optimized or --disable-optimized was given.
22611 if test "${enable_optimized+set}" = set; then
22612   enableval="$enable_optimized"
22613
22614 else
22615   enableval=no
22616 fi;
22617 if test ${enableval} = "no"
22618 then
22619         ENABLE_OPTIMIZED=
22620
22621 else
22622         ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1
22623
22624 fi
22625
22626 # Check whether --enable-spec or --disable-spec was given.
22627 if test "${enable_spec+set}" = set; then
22628   enableval="$enable_spec"
22629
22630 else
22631   enableval=no
22632 fi;
22633 if test ${enableval} = "no"
22634 then
22635         USE_SPEC=
22636
22637 else
22638         USE_SPEC=USE_SPEC=1
22639
22640 fi
22641
22642 # Check whether --enable-precompiled_bytecode or --disable-precompiled_bytecode was given.
22643 if test "${enable_precompiled_bytecode+set}" = set; then
22644   enableval="$enable_precompiled_bytecode"
22645
22646 else
22647   enableval=no
22648 fi;
22649 if test ${enableval} = "no"
22650 then
22651         UPB=
22652
22653 else
22654         UPB=USE_PRECOMPILED_BYTECODE=1
22655
22656 fi
22657
22658
22659 # Check whether --enable-llc_diffs or --disable-llc_diffs was given.
22660 if test "${enable_llc_diffs+set}" = set; then
22661   enableval="$enable_llc_diffs"
22662
22663 else
22664   enableval=yes
22665 fi;
22666 if test ${enableval} = "no"
22667 then
22668         DISABLE_LLC_DIFFS=DISABLE_LLC_DIFFS:=1
22669
22670 else
22671         DISABLE_LLC_DIFFS=
22672
22673 fi
22674
22675 # Check whether --enable-jit or --disable-jit was given.
22676 if test "${enable_jit+set}" = set; then
22677   enableval="$enable_jit"
22678
22679 else
22680   enableval=default
22681 fi;
22682
22683 if test ${enableval} = "no"
22684 then
22685         JIT=
22686
22687 else
22688         case $target in
22689                 *i*86*)
22690                         JIT=TARGET_HAS_JIT=1
22691
22692                         ;;
22693                 *sparc*)
22694                         JIT=TARGET_HAS_JIT=1
22695
22696                         ;;
22697                 *)
22698                         JIT=
22699
22700                         ;;
22701         esac
22702 fi
22703
22704
22705
22706 # Check whether --with-spec or --without-spec was given.
22707 if test "${with_spec+set}" = set; then
22708   withval="$with_spec"
22709   SPEC_ROOT=$withval
22710
22711 else
22712   SPEC_ROOT=/home/vadve/shared/benchmarks/speccpu2000/benchspec
22713
22714 fi;
22715
22716
22717 # Check whether --with-llvmgccdir or --without-llvmgccdir was given.
22718 if test "${with_llvmgccdir+set}" = set; then
22719   withval="$with_llvmgccdir"
22720   LLVMGCCDIR=$withval
22721
22722 fi;
22723
22724
22725 # Check whether --with-bcrepos or --without-bcrepos was given.
22726 if test "${with_bcrepos+set}" = set; then
22727   withval="$with_bcrepos"
22728   BCR=$withval
22729
22730 else
22731   BCR=/home/vadve/lattner/LLVMPrograms
22732
22733 fi;
22734
22735
22736 # Check whether --with-papi or --without-papi was given.
22737 if test "${with_papi+set}" = set; then
22738   withval="$with_papi"
22739   PAPIDIR=$withval
22740
22741 else
22742   PAPIDIR=/home/vadve/shared/Sparc/papi-2.3.4.1
22743
22744 fi;
22745
22746
22747 # Check whether --with-purify or --without-purify was given.
22748 if test "${with_purify+set}" = set; then
22749   withval="$with_purify"
22750   PURIFY=$withval
22751
22752 fi;
22753
22754
22755           ac_config_files="$ac_config_files Makefile.config"
22756 cat >confcache <<\_ACEOF
22757 # This file is a shell script that caches the results of configure
22758 # tests run on this system so they can be shared between configure
22759 # scripts and configure runs, see configure's option --config-cache.
22760 # It is not useful on other systems.  If it contains results you don't
22761 # want to keep, you may remove or edit it.
22762 #
22763 # config.status only pays attention to the cache file if you give it
22764 # the --recheck option to rerun configure.
22765 #
22766 # `ac_cv_env_foo' variables (set or unset) will be overridden when
22767 # loading this file, other *unset* `ac_cv_foo' will be assigned the
22768 # following values.
22769
22770 _ACEOF
22771
22772 # The following way of writing the cache mishandles newlines in values,
22773 # but we know of no workaround that is simple, portable, and efficient.
22774 # So, don't put newlines in cache variables' values.
22775 # Ultrix sh set writes to stderr and can't be redirected directly,
22776 # and sets the high bit in the cache file unless we assign to the vars.
22777 {
22778   (set) 2>&1 |
22779     case `(ac_space=' '; set | grep ac_space) 2>&1` in
22780     *ac_space=\ *)
22781       # `set' does not quote correctly, so add quotes (double-quote
22782       # substitution turns \\\\ into \\, and sed turns \\ into \).
22783       sed -n \
22784         "s/'/'\\\\''/g;
22785           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
22786       ;;
22787     *)
22788       # `set' quotes correctly as required by POSIX, so do not add quotes.
22789       sed -n \
22790         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
22791       ;;
22792     esac;
22793 } |
22794   sed '
22795      t clear
22796      : clear
22797      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
22798      t end
22799      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
22800      : end' >>confcache
22801 if diff $cache_file confcache >/dev/null 2>&1; then :; else
22802   if test -w $cache_file; then
22803     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
22804     cat confcache >$cache_file
22805   else
22806     echo "not updating unwritable cache $cache_file"
22807   fi
22808 fi
22809 rm -f confcache
22810
22811 test "x$prefix" = xNONE && prefix=$ac_default_prefix
22812 # Let make expand exec_prefix.
22813 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
22814
22815 # VPATH may cause trouble with some makes, so we remove $(srcdir),
22816 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
22817 # trailing colons and then remove the whole line if VPATH becomes empty
22818 # (actually we leave an empty line to preserve line numbers).
22819 if test "x$srcdir" = x.; then
22820   ac_vpsub='/^[         ]*VPATH[        ]*=/{
22821 s/:*\$(srcdir):*/:/;
22822 s/:*\${srcdir}:*/:/;
22823 s/:*@srcdir@:*/:/;
22824 s/^\([^=]*=[    ]*\):*/\1/;
22825 s/:*$//;
22826 s/^[^=]*=[      ]*$//;
22827 }'
22828 fi
22829
22830 DEFS=-DHAVE_CONFIG_H
22831
22832 ac_libobjs=
22833 ac_ltlibobjs=
22834 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
22835   # 1. Remove the extension, and $U if already installed.
22836   ac_i=`echo "$ac_i" |
22837          sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
22838   # 2. Add them.
22839   ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
22840   ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
22841 done
22842 LIBOBJS=$ac_libobjs
22843
22844 LTLIBOBJS=$ac_ltlibobjs
22845
22846
22847
22848 : ${CONFIG_STATUS=./config.status}
22849 ac_clean_files_save=$ac_clean_files
22850 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
22851 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
22852 echo "$as_me: creating $CONFIG_STATUS" >&6;}
22853 cat >$CONFIG_STATUS <<_ACEOF
22854 #! $SHELL
22855 # Generated by $as_me.
22856 # Run this file to recreate the current configuration.
22857 # Compiler output produced by configure, useful for debugging
22858 # configure, is in config.log if it exists.
22859
22860 debug=false
22861 ac_cs_recheck=false
22862 ac_cs_silent=false
22863 SHELL=\${CONFIG_SHELL-$SHELL}
22864 _ACEOF
22865
22866 cat >>$CONFIG_STATUS <<\_ACEOF
22867 ## --------------------- ##
22868 ## M4sh Initialization.  ##
22869 ## --------------------- ##
22870
22871 # Be Bourne compatible
22872 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
22873   emulate sh
22874   NULLCMD=:
22875   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
22876   # is contrary to our usage.  Disable this feature.
22877   alias -g '${1+"$@"}'='"$@"'
22878 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
22879   set -o posix
22880 fi
22881
22882 # Support unset when possible.
22883 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
22884   as_unset=unset
22885 else
22886   as_unset=false
22887 fi
22888
22889
22890 # Work around bugs in pre-3.0 UWIN ksh.
22891 $as_unset ENV MAIL MAILPATH
22892 PS1='$ '
22893 PS2='> '
22894 PS4='+ '
22895
22896 # NLS nuisances.
22897 for as_var in \
22898   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
22899   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
22900   LC_TELEPHONE LC_TIME
22901 do
22902   if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
22903     eval $as_var=C; export $as_var
22904   else
22905     $as_unset $as_var
22906   fi
22907 done
22908
22909 # Required to use basename.
22910 if expr a : '\(a\)' >/dev/null 2>&1; then
22911   as_expr=expr
22912 else
22913   as_expr=false
22914 fi
22915
22916 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
22917   as_basename=basename
22918 else
22919   as_basename=false
22920 fi
22921
22922
22923 # Name of the executable.
22924 as_me=`$as_basename "$0" ||
22925 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
22926          X"$0" : 'X\(//\)$' \| \
22927          X"$0" : 'X\(/\)$' \| \
22928          .     : '\(.\)' 2>/dev/null ||
22929 echo X/"$0" |
22930     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
22931           /^X\/\(\/\/\)$/{ s//\1/; q; }
22932           /^X\/\(\/\).*/{ s//\1/; q; }
22933           s/.*/./; q'`
22934
22935
22936 # PATH needs CR, and LINENO needs CR and PATH.
22937 # Avoid depending upon Character Ranges.
22938 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
22939 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
22940 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
22941 as_cr_digits='0123456789'
22942 as_cr_alnum=$as_cr_Letters$as_cr_digits
22943
22944 # The user is always right.
22945 if test "${PATH_SEPARATOR+set}" != set; then
22946   echo "#! /bin/sh" >conf$$.sh
22947   echo  "exit 0"   >>conf$$.sh
22948   chmod +x conf$$.sh
22949   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
22950     PATH_SEPARATOR=';'
22951   else
22952     PATH_SEPARATOR=:
22953   fi
22954   rm -f conf$$.sh
22955 fi
22956
22957
22958   as_lineno_1=$LINENO
22959   as_lineno_2=$LINENO
22960   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
22961   test "x$as_lineno_1" != "x$as_lineno_2" &&
22962   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
22963   # Find who we are.  Look in the path if we contain no path at all
22964   # relative or not.
22965   case $0 in
22966     *[\\/]* ) as_myself=$0 ;;
22967     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22968 for as_dir in $PATH
22969 do
22970   IFS=$as_save_IFS
22971   test -z "$as_dir" && as_dir=.
22972   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
22973 done
22974
22975        ;;
22976   esac
22977   # We did not find ourselves, most probably we were run as `sh COMMAND'
22978   # in which case we are not to be found in the path.
22979   if test "x$as_myself" = x; then
22980     as_myself=$0
22981   fi
22982   if test ! -f "$as_myself"; then
22983     { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
22984 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
22985    { (exit 1); exit 1; }; }
22986   fi
22987   case $CONFIG_SHELL in
22988   '')
22989     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22990 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
22991 do
22992   IFS=$as_save_IFS
22993   test -z "$as_dir" && as_dir=.
22994   for as_base in sh bash ksh sh5; do
22995          case $as_dir in
22996          /*)
22997            if ("$as_dir/$as_base" -c '
22998   as_lineno_1=$LINENO
22999   as_lineno_2=$LINENO
23000   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
23001   test "x$as_lineno_1" != "x$as_lineno_2" &&
23002   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
23003              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
23004              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
23005              CONFIG_SHELL=$as_dir/$as_base
23006              export CONFIG_SHELL
23007              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
23008            fi;;
23009          esac
23010        done
23011 done
23012 ;;
23013   esac
23014
23015   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
23016   # uniformly replaced by the line number.  The first 'sed' inserts a
23017   # line-number line before each line; the second 'sed' does the real
23018   # work.  The second script uses 'N' to pair each line-number line
23019   # with the numbered line, and appends trailing '-' during
23020   # substitution so that $LINENO is not a special case at line end.
23021   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
23022   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
23023   sed '=' <$as_myself |
23024     sed '
23025       N
23026       s,$,-,
23027       : loop
23028       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
23029       t loop
23030       s,-$,,
23031       s,^['$as_cr_digits']*\n,,
23032     ' >$as_me.lineno &&
23033   chmod +x $as_me.lineno ||
23034     { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
23035 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
23036    { (exit 1); exit 1; }; }
23037
23038   # Don't try to exec as it changes $[0], causing all sort of problems
23039   # (the dirname of $[0] is not the place where we might find the
23040   # original and so on.  Autoconf is especially sensible to this).
23041   . ./$as_me.lineno
23042   # Exit status is that of the last command.
23043   exit
23044 }
23045
23046
23047 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
23048   *c*,-n*) ECHO_N= ECHO_C='
23049 ' ECHO_T='      ' ;;
23050   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
23051   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
23052 esac
23053
23054 if expr a : '\(a\)' >/dev/null 2>&1; then
23055   as_expr=expr
23056 else
23057   as_expr=false
23058 fi
23059
23060 rm -f conf$$ conf$$.exe conf$$.file
23061 echo >conf$$.file
23062 if ln -s conf$$.file conf$$ 2>/dev/null; then
23063   # We could just check for DJGPP; but this test a) works b) is more generic
23064   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
23065   if test -f conf$$.exe; then
23066     # Don't use ln at all; we don't have any links
23067     as_ln_s='cp -p'
23068   else
23069     as_ln_s='ln -s'
23070   fi
23071 elif ln conf$$.file conf$$ 2>/dev/null; then
23072   as_ln_s=ln
23073 else
23074   as_ln_s='cp -p'
23075 fi
23076 rm -f conf$$ conf$$.exe conf$$.file
23077
23078 if mkdir -p . 2>/dev/null; then
23079   as_mkdir_p=:
23080 else
23081   as_mkdir_p=false
23082 fi
23083
23084 as_executable_p="test -f"
23085
23086 # Sed expression to map a string onto a valid CPP name.
23087 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
23088
23089 # Sed expression to map a string onto a valid variable name.
23090 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
23091
23092
23093 # IFS
23094 # We need space, tab and new line, in precisely that order.
23095 as_nl='
23096 '
23097 IFS="   $as_nl"
23098
23099 # CDPATH.
23100 $as_unset CDPATH
23101
23102 exec 6>&1
23103
23104 # Open the log real soon, to keep \$[0] and so on meaningful, and to
23105 # report actual input values of CONFIG_FILES etc. instead of their
23106 # values after options handling.  Logging --version etc. is OK.
23107 exec 5>>config.log
23108 {
23109   echo
23110   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
23111 ## Running $as_me. ##
23112 _ASBOX
23113 } >&5
23114 cat >&5 <<_CSEOF
23115
23116 This file was extended by [LLVM] $as_me [1.0], which was
23117 generated by GNU Autoconf 2.57.  Invocation command line was
23118
23119   CONFIG_FILES    = $CONFIG_FILES
23120   CONFIG_HEADERS  = $CONFIG_HEADERS
23121   CONFIG_LINKS    = $CONFIG_LINKS
23122   CONFIG_COMMANDS = $CONFIG_COMMANDS
23123   $ $0 $@
23124
23125 _CSEOF
23126 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
23127 echo >&5
23128 _ACEOF
23129
23130 # Files that config.status was made for.
23131 if test -n "$ac_config_files"; then
23132   echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
23133 fi
23134
23135 if test -n "$ac_config_headers"; then
23136   echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
23137 fi
23138
23139 if test -n "$ac_config_links"; then
23140   echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
23141 fi
23142
23143 if test -n "$ac_config_commands"; then
23144   echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
23145 fi
23146
23147 cat >>$CONFIG_STATUS <<\_ACEOF
23148
23149 ac_cs_usage="\
23150 \`$as_me' instantiates files from templates according to the
23151 current configuration.
23152
23153 Usage: $0 [OPTIONS] [FILE]...
23154
23155   -h, --help       print this help, then exit
23156   -V, --version    print version number, then exit
23157   -q, --quiet      do not print progress messages
23158   -d, --debug      don't remove temporary files
23159       --recheck    update $as_me by reconfiguring in the same conditions
23160   --file=FILE[:TEMPLATE]
23161                    instantiate the configuration file FILE
23162   --header=FILE[:TEMPLATE]
23163                    instantiate the configuration header FILE
23164
23165 Configuration files:
23166 $config_files
23167
23168 Configuration headers:
23169 $config_headers
23170
23171 Configuration commands:
23172 $config_commands
23173
23174 Report bugs to <bug-autoconf@gnu.org>."
23175 _ACEOF
23176
23177 cat >>$CONFIG_STATUS <<_ACEOF
23178 ac_cs_version="\\
23179 [LLVM] config.status [1.0]
23180 configured by $0, generated by GNU Autoconf 2.57,
23181   with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
23182
23183 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
23184 Free Software Foundation, Inc.
23185 This config.status script is free software; the Free Software Foundation
23186 gives unlimited permission to copy, distribute and modify it."
23187 srcdir=$srcdir
23188 INSTALL="$INSTALL"
23189 _ACEOF
23190
23191 cat >>$CONFIG_STATUS <<\_ACEOF
23192 # If no file are specified by the user, then we need to provide default
23193 # value.  By we need to know if files were specified by the user.
23194 ac_need_defaults=:
23195 while test $# != 0
23196 do
23197   case $1 in
23198   --*=*)
23199     ac_option=`expr "x$1" : 'x\([^=]*\)='`
23200     ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
23201     ac_shift=:
23202     ;;
23203   -*)
23204     ac_option=$1
23205     ac_optarg=$2
23206     ac_shift=shift
23207     ;;
23208   *) # This is not an option, so the user has probably given explicit
23209      # arguments.
23210      ac_option=$1
23211      ac_need_defaults=false;;
23212   esac
23213
23214   case $ac_option in
23215   # Handling of the options.
23216 _ACEOF
23217 cat >>$CONFIG_STATUS <<\_ACEOF
23218   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
23219     ac_cs_recheck=: ;;
23220   --version | --vers* | -V )
23221     echo "$ac_cs_version"; exit 0 ;;
23222   --he | --h)
23223     # Conflict between --help and --header
23224     { { echo "$as_me:$LINENO: error: ambiguous option: $1
23225 Try \`$0 --help' for more information." >&5
23226 echo "$as_me: error: ambiguous option: $1
23227 Try \`$0 --help' for more information." >&2;}
23228    { (exit 1); exit 1; }; };;
23229   --help | --hel | -h )
23230     echo "$ac_cs_usage"; exit 0 ;;
23231   --debug | --d* | -d )
23232     debug=: ;;
23233   --file | --fil | --fi | --f )
23234     $ac_shift
23235     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
23236     ac_need_defaults=false;;
23237   --header | --heade | --head | --hea )
23238     $ac_shift
23239     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
23240     ac_need_defaults=false;;
23241   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
23242   | -silent | --silent | --silen | --sile | --sil | --si | --s)
23243     ac_cs_silent=: ;;
23244
23245   # This is an error.
23246   -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
23247 Try \`$0 --help' for more information." >&5
23248 echo "$as_me: error: unrecognized option: $1
23249 Try \`$0 --help' for more information." >&2;}
23250    { (exit 1); exit 1; }; } ;;
23251
23252   *) ac_config_targets="$ac_config_targets $1" ;;
23253
23254   esac
23255   shift
23256 done
23257
23258 ac_configure_extra_args=
23259
23260 if $ac_cs_silent; then
23261   exec 6>/dev/null
23262   ac_configure_extra_args="$ac_configure_extra_args --silent"
23263 fi
23264
23265 _ACEOF
23266 cat >>$CONFIG_STATUS <<_ACEOF
23267 if \$ac_cs_recheck; then
23268   echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
23269   exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
23270 fi
23271
23272 _ACEOF
23273
23274 cat >>$CONFIG_STATUS <<_ACEOF
23275 #
23276 # INIT-COMMANDS section.
23277 #
23278
23279 ${srcdir}/autoconf/mkinstalldirs `dirname Makefile`
23280 ${srcdir}/autoconf/mkinstalldirs `dirname Makefile.common`
23281 ${srcdir}/autoconf/mkinstalldirs `dirname Makefile.rules`
23282 ${srcdir}/autoconf/mkinstalldirs `dirname lib/Makefile`
23283 ${srcdir}/autoconf/mkinstalldirs `dirname lib/Analysis/Makefile`
23284 ${srcdir}/autoconf/mkinstalldirs `dirname lib/Analysis/DataStructure/Makefile`
23285 ${srcdir}/autoconf/mkinstalldirs `dirname lib/Analysis/IPA/Makefile`
23286 ${srcdir}/autoconf/mkinstalldirs `dirname lib/Analysis/LiveVar/Makefile`
23287 ${srcdir}/autoconf/mkinstalldirs `dirname lib/AsmParser/Makefile`
23288 ${srcdir}/autoconf/mkinstalldirs `dirname lib/Bytecode/Makefile`
23289 ${srcdir}/autoconf/mkinstalldirs `dirname lib/Bytecode/Reader/Makefile`
23290 ${srcdir}/autoconf/mkinstalldirs `dirname lib/Bytecode/Writer/Makefile`
23291 ${srcdir}/autoconf/mkinstalldirs `dirname lib/CWriter/Makefile`
23292 ${srcdir}/autoconf/mkinstalldirs `dirname lib/CodeGen/Makefile`
23293 ${srcdir}/autoconf/mkinstalldirs `dirname lib/CodeGen/InstrSched/Makefile`
23294 ${srcdir}/autoconf/mkinstalldirs `dirname lib/CodeGen/InstrSelection/Makefile`
23295 ${srcdir}/autoconf/mkinstalldirs `dirname lib/CodeGen/ModuloScheduling/Makefile`
23296 ${srcdir}/autoconf/mkinstalldirs `dirname lib/CodeGen/RegAlloc/Makefile`
23297 ${srcdir}/autoconf/mkinstalldirs `dirname lib/CodeGen/SelectionDAG/Makefile`
23298 ${srcdir}/autoconf/mkinstalldirs `dirname lib/ExecutionEngine/Makefile`
23299 ${srcdir}/autoconf/mkinstalldirs `dirname lib/ExecutionEngine/Interpreter/Makefile`
23300 ${srcdir}/autoconf/mkinstalldirs `dirname lib/ExecutionEngine/JIT/Makefile`
23301 ${srcdir}/autoconf/mkinstalldirs `dirname lib/Support/Makefile`
23302 ${srcdir}/autoconf/mkinstalldirs `dirname lib/Target/Makefile`
23303 ${srcdir}/autoconf/mkinstalldirs `dirname lib/Target/Sparc/Makefile`
23304 ${srcdir}/autoconf/mkinstalldirs `dirname lib/Target/X86/Makefile`
23305 ${srcdir}/autoconf/mkinstalldirs `dirname lib/Transforms/Makefile`
23306 ${srcdir}/autoconf/mkinstalldirs `dirname lib/Transforms/Hello/Makefile`
23307 ${srcdir}/autoconf/mkinstalldirs `dirname lib/Transforms/IPO/Makefile`
23308 ${srcdir}/autoconf/mkinstalldirs `dirname lib/Transforms/Instrumentation/Makefile`
23309 ${srcdir}/autoconf/mkinstalldirs `dirname lib/Transforms/Instrumentation/ProfilePaths/Makefile`
23310 ${srcdir}/autoconf/mkinstalldirs `dirname lib/Transforms/Scalar/Makefile`
23311 ${srcdir}/autoconf/mkinstalldirs `dirname lib/Transforms/Utils/Makefile`
23312 ${srcdir}/autoconf/mkinstalldirs `dirname lib/VMCore/Makefile`
23313 ${srcdir}/autoconf/mkinstalldirs `dirname runtime/Makefile`
23314 ${srcdir}/autoconf/mkinstalldirs `dirname runtime/GCCLibraries/Makefile`
23315 ${srcdir}/autoconf/mkinstalldirs `dirname runtime/GCCLibraries/crtend/Makefile`
23316 ${srcdir}/autoconf/mkinstalldirs `dirname runtime/GCCLibraries/libc/Makefile`
23317 ${srcdir}/autoconf/mkinstalldirs `dirname runtime/GCCLibraries/libcurses/Makefile`
23318 ${srcdir}/autoconf/mkinstalldirs `dirname runtime/GCCLibraries/libexception/Makefile`
23319 ${srcdir}/autoconf/mkinstalldirs `dirname runtime/GCCLibraries/libg/Makefile`
23320 ${srcdir}/autoconf/mkinstalldirs `dirname runtime/GCCLibraries/libgcc/Makefile`
23321 ${srcdir}/autoconf/mkinstalldirs `dirname runtime/GCCLibraries/libm/Makefile`
23322 ${srcdir}/autoconf/mkinstalldirs `dirname runtime/GCCLibraries/libmalloc/Makefile`
23323 ${srcdir}/autoconf/mkinstalldirs `dirname runtime/GCCLibraries/libtermcap/Makefile`
23324 ${srcdir}/autoconf/mkinstalldirs `dirname runtime/GCCLibraries/libucb/Makefile`
23325 ${srcdir}/autoconf/mkinstalldirs `dirname runtime/GCCLibraries/libutempter/Makefile`
23326 ${srcdir}/autoconf/mkinstalldirs `dirname runtime/GCCLibraries/libutil/Makefile`
23327 ${srcdir}/autoconf/mkinstalldirs `dirname runtime/libdummy/Makefile`
23328 ${srcdir}/autoconf/mkinstalldirs `dirname runtime/libtrace/Makefile`
23329 ${srcdir}/autoconf/mkinstalldirs `dirname test/Makefile`
23330 ${srcdir}/autoconf/mkinstalldirs `dirname test/Makefile.tests`
23331 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/Makefile`
23332 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/Makefile.programs`
23333 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.aa.Makefile`
23334 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.dsgraph.report`
23335 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.micro.report`
23336 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.aa.report`
23337 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.example.Makefile`
23338 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.nightly.Makefile`
23339 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.buildrepo.Makefile`
23340 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.jit.Makefile`
23341 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.nightly.report`
23342 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.dsgraph.Makefile`
23343 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.jit.report`
23344 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.typesafe.Makefile`
23345 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.dsgraph.gnuplot`
23346 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.micro.Makefile`
23347 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/Makefile`
23348 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/Makefile`
23349 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/Makefile.spec`
23350 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/CFP2000/Makefile`
23351 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/CFP2000/179.art/Makefile`
23352 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/CFP2000/183.equake/Makefile`
23353 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/CFP2000/188.ammp/Makefile`
23354 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/CINT2000/Makefile`
23355 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/CINT2000/164.gzip/Makefile`
23356 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/CINT2000/175.vpr/Makefile`
23357 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/CINT2000/176.gcc/Makefile`
23358 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/CINT2000/181.mcf/Makefile`
23359 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/CINT2000/186.crafty/Makefile`
23360 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/CINT2000/197.parser/Makefile`
23361 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/CINT2000/254.gap/Makefile`
23362 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/CINT2000/255.vortex/Makefile`
23363 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/CINT2000/256.bzip2/Makefile`
23364 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/CINT2000/300.twolf/Makefile`
23365 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/LLVMSource/Makefile`
23366 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Makefile`
23367 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Makefile.multisrc`
23368 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Applications/Makefile`
23369 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Applications/Burg/Makefile`
23370 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Applications/aha/Makefile`
23371 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Applications/sgefa/Makefile`
23372 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/Makefile`
23373 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/Fhourstones/Makefile`
23374 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/McCat/Makefile`
23375 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/McCat/01-qbsort/Makefile`
23376 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/McCat/03-testtrie/Makefile`
23377 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/McCat/04-bisect/Makefile`
23378 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/McCat/05-eks/Makefile`
23379 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/McCat/08-main/Makefile`
23380 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/McCat/09-vor/Makefile`
23381 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/McCat/12-IOtest/Makefile`
23382 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/McCat/15-trie/Makefile`
23383 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/McCat/17-bintr/Makefile`
23384 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/McCat/18-imp/Makefile`
23385 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/Olden/Makefile`
23386 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/Olden/bh/Makefile`
23387 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/Olden/bisort/Makefile`
23388 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/Olden/em3d/Makefile`
23389 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/Olden/health/Makefile`
23390 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/Olden/mst/Makefile`
23391 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/Olden/perimeter/Makefile`
23392 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/Olden/power/Makefile`
23393 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/Olden/treeadd/Makefile`
23394 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/Olden/tsp/Makefile`
23395 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/Olden/voronoi/Makefile`
23396 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/OptimizerEval/Makefile`
23397 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/Ptrdist/Makefile`
23398 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/Ptrdist/anagram/Makefile`
23399 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/Ptrdist/bc/Makefile`
23400 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/Ptrdist/ft/Makefile`
23401 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/Ptrdist/ks/Makefile`
23402 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/Ptrdist/yacr2/Makefile`
23403 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/llubenchmark/Makefile`
23404 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/sim/Makefile`
23405 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/NoSource/Makefile`
23406 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/NoSource/Flex/Makefile`
23407 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/NoSource/Larn/Makefile`
23408 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/NoSource/Moria-5.5.2/Makefile`
23409 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/NoSource/Povray31/Makefile`
23410 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/NoSource/m4/Makefile`
23411 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/SingleSource/Makefile`
23412 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/SingleSource/Makefile.singlesrc`
23413 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/SingleSource/Gizmos/Makefile`
23414 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/SingleSource/Benchmarks/Makefile`
23415 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/SingleSource/Benchmarks/Dhrystone/Makefile`
23416 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/SingleSource/Benchmarks/Shootout/Makefile`
23417 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/SingleSource/Benchmarks/Stanford/Makefile`
23418 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/SingleSource/Benchmarks/Misc/Makefile`
23419 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/SingleSource/CustomChecked/Makefile`
23420 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/SingleSource/UnitTests/Makefile`
23421 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/SingleSource/UnitTests/SetjmpLongjmp/Makefile`
23422 ${srcdir}/autoconf/mkinstalldirs `dirname tools/Makefile`
23423 ${srcdir}/autoconf/mkinstalldirs `dirname tools/analyze/Makefile`
23424 ${srcdir}/autoconf/mkinstalldirs `dirname tools/as/Makefile`
23425 ${srcdir}/autoconf/mkinstalldirs `dirname tools/bugpoint/Makefile`
23426 ${srcdir}/autoconf/mkinstalldirs `dirname tools/dis/Makefile`
23427 ${srcdir}/autoconf/mkinstalldirs `dirname tools/extract/Makefile`
23428 ${srcdir}/autoconf/mkinstalldirs `dirname tools/gccas/Makefile`
23429 ${srcdir}/autoconf/mkinstalldirs `dirname tools/gccld/Makefile`
23430 ${srcdir}/autoconf/mkinstalldirs `dirname tools/link/Makefile`
23431 ${srcdir}/autoconf/mkinstalldirs `dirname tools/llc/Makefile`
23432 ${srcdir}/autoconf/mkinstalldirs `dirname tools/lli/Makefile`
23433 ${srcdir}/autoconf/mkinstalldirs `dirname tools/opt/Makefile`
23434 ${srcdir}/autoconf/mkinstalldirs `dirname tools/llee/Makefile`
23435 ${srcdir}/autoconf/mkinstalldirs `dirname tools/llvm-as/Makefile`
23436 ${srcdir}/autoconf/mkinstalldirs `dirname tools/llvm-ar/Makefile`
23437 ${srcdir}/autoconf/mkinstalldirs `dirname tools/llvm-dis/Makefile`
23438 ${srcdir}/autoconf/mkinstalldirs `dirname utils/Makefile`
23439 ${srcdir}/autoconf/mkinstalldirs `dirname utils/Burg/Makefile`
23440 ${srcdir}/autoconf/mkinstalldirs `dirname utils/Burg/Doc/Makefile`
23441 ${srcdir}/autoconf/mkinstalldirs `dirname utils/TableGen/Makefile`
23442 ${srcdir}/autoconf/mkinstalldirs `dirname www/docs/Makefile`
23443 ${srcdir}/autoconf/mkinstalldirs `dirname projects/Makefile`
23444 ${srcdir}/autoconf/mkinstalldirs `dirname projects/sample/Makefile`
23445 ${srcdir}/autoconf/mkinstalldirs `dirname projects/sample/Makefile.common`
23446 ${srcdir}/autoconf/mkinstalldirs `dirname projects/sample/Makefile.config`
23447 ${srcdir}/autoconf/mkinstalldirs `dirname projects/sample/lib/Makefile`
23448 ${srcdir}/autoconf/mkinstalldirs `dirname projects/sample/lib/sample/Makefile`
23449 ${srcdir}/autoconf/mkinstalldirs `dirname projects/sample/tools/Makefile`
23450 ${srcdir}/autoconf/mkinstalldirs `dirname projects/sample/tools/sample/Makefile`
23451 ${srcdir}/autoconf/mkinstalldirs `dirname projects/ModuleMaker/Makefile`
23452 ${srcdir}/autoconf/mkinstalldirs `dirname projects/ModuleMaker/Makefile.common`
23453 ${srcdir}/autoconf/mkinstalldirs `dirname projects/ModuleMaker/tools/Makefile`
23454 ${srcdir}/autoconf/mkinstalldirs `dirname projects/ModuleMaker/tools/ModuleMaker/Makefile`
23455
23456 _ACEOF
23457
23458
23459
23460 cat >>$CONFIG_STATUS <<\_ACEOF
23461 for ac_config_target in $ac_config_targets
23462 do
23463   case "$ac_config_target" in
23464   # Handling of arguments.
23465   "Makefile.config" ) CONFIG_FILES="$CONFIG_FILES Makefile.config" ;;
23466   "Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
23467   "Makefile.common" ) CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.common" ;;
23468   "Makefile.rules" ) CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.rules" ;;
23469   "lib/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;;
23470   "lib/Analysis/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Analysis/Makefile" ;;
23471   "lib/Analysis/DataStructure/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Analysis/DataStructure/Makefile" ;;
23472   "lib/Analysis/IPA/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Analysis/IPA/Makefile" ;;
23473   "lib/Analysis/LiveVar/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Analysis/LiveVar/Makefile" ;;
23474   "lib/AsmParser/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/AsmParser/Makefile" ;;
23475   "lib/Bytecode/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Bytecode/Makefile" ;;
23476   "lib/Bytecode/Reader/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Bytecode/Reader/Makefile" ;;
23477   "lib/Bytecode/Writer/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Bytecode/Writer/Makefile" ;;
23478   "lib/CWriter/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/CWriter/Makefile" ;;
23479   "lib/CodeGen/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/CodeGen/Makefile" ;;
23480   "lib/CodeGen/InstrSched/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/CodeGen/InstrSched/Makefile" ;;
23481   "lib/CodeGen/InstrSelection/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/CodeGen/InstrSelection/Makefile" ;;
23482   "lib/CodeGen/ModuloScheduling/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/CodeGen/ModuloScheduling/Makefile" ;;
23483   "lib/CodeGen/RegAlloc/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/CodeGen/RegAlloc/Makefile" ;;
23484   "lib/CodeGen/SelectionDAG/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/CodeGen/SelectionDAG/Makefile" ;;
23485   "lib/ExecutionEngine/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/ExecutionEngine/Makefile" ;;
23486   "lib/ExecutionEngine/Interpreter/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/ExecutionEngine/Interpreter/Makefile" ;;
23487   "lib/ExecutionEngine/JIT/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/ExecutionEngine/JIT/Makefile" ;;
23488   "lib/Support/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Support/Makefile" ;;
23489   "lib/Target/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Target/Makefile" ;;
23490   "lib/Target/Sparc/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Target/Sparc/Makefile" ;;
23491   "lib/Target/X86/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Target/X86/Makefile" ;;
23492   "lib/Transforms/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Transforms/Makefile" ;;
23493   "lib/Transforms/Hello/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Transforms/Hello/Makefile" ;;
23494   "lib/Transforms/IPO/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Transforms/IPO/Makefile" ;;
23495   "lib/Transforms/Instrumentation/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Transforms/Instrumentation/Makefile" ;;
23496   "lib/Transforms/Instrumentation/ProfilePaths/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Transforms/Instrumentation/ProfilePaths/Makefile" ;;
23497   "lib/Transforms/Scalar/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Transforms/Scalar/Makefile" ;;
23498   "lib/Transforms/Utils/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Transforms/Utils/Makefile" ;;
23499   "lib/VMCore/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/VMCore/Makefile" ;;
23500   "runtime/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/Makefile" ;;
23501   "runtime/GCCLibraries/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/GCCLibraries/Makefile" ;;
23502   "runtime/GCCLibraries/crtend/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/GCCLibraries/crtend/Makefile" ;;
23503   "runtime/GCCLibraries/libc/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/GCCLibraries/libc/Makefile" ;;
23504   "runtime/GCCLibraries/libcurses/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/GCCLibraries/libcurses/Makefile" ;;
23505   "runtime/GCCLibraries/libexception/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/GCCLibraries/libexception/Makefile" ;;
23506   "runtime/GCCLibraries/libg/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/GCCLibraries/libg/Makefile" ;;
23507   "runtime/GCCLibraries/libgcc/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/GCCLibraries/libgcc/Makefile" ;;
23508   "runtime/GCCLibraries/libm/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/GCCLibraries/libm/Makefile" ;;
23509   "runtime/GCCLibraries/libmalloc/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/GCCLibraries/libmalloc/Makefile" ;;
23510   "runtime/GCCLibraries/libtermcap/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/GCCLibraries/libtermcap/Makefile" ;;
23511   "runtime/GCCLibraries/libucb/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/GCCLibraries/libucb/Makefile" ;;
23512   "runtime/GCCLibraries/libutempter/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/GCCLibraries/libutempter/Makefile" ;;
23513   "runtime/GCCLibraries/libutil/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/GCCLibraries/libutil/Makefile" ;;
23514   "runtime/libdummy/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/libdummy/Makefile" ;;
23515   "runtime/libtrace/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/libtrace/Makefile" ;;
23516   "test/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile" ;;
23517   "test/Makefile.tests" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile.tests" ;;
23518   "test/Programs/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/Makefile" ;;
23519   "test/Programs/Makefile.programs" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/Makefile.programs" ;;
23520   "test/Programs/TEST.aa.Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.aa.Makefile" ;;
23521   "test/Programs/TEST.dsgraph.report" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.dsgraph.report" ;;
23522   "test/Programs/TEST.micro.report" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.micro.report" ;;
23523   "test/Programs/TEST.aa.report" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.aa.report" ;;
23524   "test/Programs/TEST.example.Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.example.Makefile" ;;
23525   "test/Programs/TEST.nightly.Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.nightly.Makefile" ;;
23526   "test/Programs/TEST.buildrepo.Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.buildrepo.Makefile" ;;
23527   "test/Programs/TEST.jit.Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.jit.Makefile" ;;
23528   "test/Programs/TEST.nightly.report" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.nightly.report" ;;
23529   "test/Programs/TEST.dsgraph.Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.dsgraph.Makefile" ;;
23530   "test/Programs/TEST.jit.report" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.jit.report" ;;
23531   "test/Programs/TEST.typesafe.Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.typesafe.Makefile" ;;
23532   "test/Programs/TEST.dsgraph.gnuplot" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.dsgraph.gnuplot" ;;
23533   "test/Programs/TEST.micro.Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.micro.Makefile" ;;
23534   "test/Programs/External/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/Makefile" ;;
23535   "test/Programs/External/SPEC/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/Makefile" ;;
23536   "test/Programs/External/SPEC/Makefile.spec" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/Makefile.spec" ;;
23537   "test/Programs/External/SPEC/CFP2000/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/CFP2000/Makefile" ;;
23538   "test/Programs/External/SPEC/CFP2000/179.art/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/CFP2000/179.art/Makefile" ;;
23539   "test/Programs/External/SPEC/CFP2000/183.equake/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/CFP2000/183.equake/Makefile" ;;
23540   "test/Programs/External/SPEC/CFP2000/188.ammp/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/CFP2000/188.ammp/Makefile" ;;
23541   "test/Programs/External/SPEC/CINT2000/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/CINT2000/Makefile" ;;
23542   "test/Programs/External/SPEC/CINT2000/164.gzip/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/CINT2000/164.gzip/Makefile" ;;
23543   "test/Programs/External/SPEC/CINT2000/175.vpr/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/CINT2000/175.vpr/Makefile" ;;
23544   "test/Programs/External/SPEC/CINT2000/176.gcc/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/CINT2000/176.gcc/Makefile" ;;
23545   "test/Programs/External/SPEC/CINT2000/181.mcf/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/CINT2000/181.mcf/Makefile" ;;
23546   "test/Programs/External/SPEC/CINT2000/186.crafty/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/CINT2000/186.crafty/Makefile" ;;
23547   "test/Programs/External/SPEC/CINT2000/197.parser/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/CINT2000/197.parser/Makefile" ;;
23548   "test/Programs/External/SPEC/CINT2000/254.gap/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/CINT2000/254.gap/Makefile" ;;
23549   "test/Programs/External/SPEC/CINT2000/255.vortex/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/CINT2000/255.vortex/Makefile" ;;
23550   "test/Programs/External/SPEC/CINT2000/256.bzip2/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/CINT2000/256.bzip2/Makefile" ;;
23551   "test/Programs/External/SPEC/CINT2000/300.twolf/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/CINT2000/300.twolf/Makefile" ;;
23552   "test/Programs/LLVMSource/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/LLVMSource/Makefile" ;;
23553   "test/Programs/MultiSource/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Makefile" ;;
23554   "test/Programs/MultiSource/Makefile.multisrc" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Makefile.multisrc" ;;
23555   "test/Programs/MultiSource/Applications/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Applications/Makefile" ;;
23556   "test/Programs/MultiSource/Applications/Burg/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Applications/Burg/Makefile" ;;
23557   "test/Programs/MultiSource/Applications/aha/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Applications/aha/Makefile" ;;
23558   "test/Programs/MultiSource/Applications/sgefa/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Applications/sgefa/Makefile" ;;
23559   "test/Programs/MultiSource/Benchmarks/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/Makefile" ;;
23560   "test/Programs/MultiSource/Benchmarks/Fhourstones/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/Fhourstones/Makefile" ;;
23561   "test/Programs/MultiSource/Benchmarks/McCat/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/McCat/Makefile" ;;
23562   "test/Programs/MultiSource/Benchmarks/McCat/01-qbsort/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/McCat/01-qbsort/Makefile" ;;
23563   "test/Programs/MultiSource/Benchmarks/McCat/03-testtrie/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/McCat/03-testtrie/Makefile" ;;
23564   "test/Programs/MultiSource/Benchmarks/McCat/04-bisect/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/McCat/04-bisect/Makefile" ;;
23565   "test/Programs/MultiSource/Benchmarks/McCat/05-eks/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/McCat/05-eks/Makefile" ;;
23566   "test/Programs/MultiSource/Benchmarks/McCat/08-main/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/McCat/08-main/Makefile" ;;
23567   "test/Programs/MultiSource/Benchmarks/McCat/09-vor/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/McCat/09-vor/Makefile" ;;
23568   "test/Programs/MultiSource/Benchmarks/McCat/12-IOtest/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/McCat/12-IOtest/Makefile" ;;
23569   "test/Programs/MultiSource/Benchmarks/McCat/15-trie/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/McCat/15-trie/Makefile" ;;
23570   "test/Programs/MultiSource/Benchmarks/McCat/17-bintr/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/McCat/17-bintr/Makefile" ;;
23571   "test/Programs/MultiSource/Benchmarks/McCat/18-imp/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/McCat/18-imp/Makefile" ;;
23572   "test/Programs/MultiSource/Benchmarks/Olden/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/Olden/Makefile" ;;
23573   "test/Programs/MultiSource/Benchmarks/Olden/bh/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/Olden/bh/Makefile" ;;
23574   "test/Programs/MultiSource/Benchmarks/Olden/bisort/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/Olden/bisort/Makefile" ;;
23575   "test/Programs/MultiSource/Benchmarks/Olden/em3d/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/Olden/em3d/Makefile" ;;
23576   "test/Programs/MultiSource/Benchmarks/Olden/health/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/Olden/health/Makefile" ;;
23577   "test/Programs/MultiSource/Benchmarks/Olden/mst/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/Olden/mst/Makefile" ;;
23578   "test/Programs/MultiSource/Benchmarks/Olden/perimeter/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/Olden/perimeter/Makefile" ;;
23579   "test/Programs/MultiSource/Benchmarks/Olden/power/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/Olden/power/Makefile" ;;
23580   "test/Programs/MultiSource/Benchmarks/Olden/treeadd/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/Olden/treeadd/Makefile" ;;
23581   "test/Programs/MultiSource/Benchmarks/Olden/tsp/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/Olden/tsp/Makefile" ;;
23582   "test/Programs/MultiSource/Benchmarks/Olden/voronoi/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/Olden/voronoi/Makefile" ;;
23583   "test/Programs/MultiSource/Benchmarks/OptimizerEval/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/OptimizerEval/Makefile" ;;
23584   "test/Programs/MultiSource/Benchmarks/Ptrdist/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/Ptrdist/Makefile" ;;
23585   "test/Programs/MultiSource/Benchmarks/Ptrdist/anagram/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/Ptrdist/anagram/Makefile" ;;
23586   "test/Programs/MultiSource/Benchmarks/Ptrdist/bc/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/Ptrdist/bc/Makefile" ;;
23587   "test/Programs/MultiSource/Benchmarks/Ptrdist/ft/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/Ptrdist/ft/Makefile" ;;
23588   "test/Programs/MultiSource/Benchmarks/Ptrdist/ks/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/Ptrdist/ks/Makefile" ;;
23589   "test/Programs/MultiSource/Benchmarks/Ptrdist/yacr2/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/Ptrdist/yacr2/Makefile" ;;
23590   "test/Programs/MultiSource/Benchmarks/llubenchmark/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/llubenchmark/Makefile" ;;
23591   "test/Programs/MultiSource/Benchmarks/sim/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/sim/Makefile" ;;
23592   "test/Programs/NoSource/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/NoSource/Makefile" ;;
23593   "test/Programs/NoSource/Flex/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/NoSource/Flex/Makefile" ;;
23594   "test/Programs/NoSource/Larn/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/NoSource/Larn/Makefile" ;;
23595   "test/Programs/NoSource/Moria-5.5.2/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/NoSource/Moria-5.5.2/Makefile" ;;
23596   "test/Programs/NoSource/Povray31/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/NoSource/Povray31/Makefile" ;;
23597   "test/Programs/NoSource/m4/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/NoSource/m4/Makefile" ;;
23598   "test/Programs/SingleSource/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/SingleSource/Makefile" ;;
23599   "test/Programs/SingleSource/Makefile.singlesrc" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/SingleSource/Makefile.singlesrc" ;;
23600   "test/Programs/SingleSource/Gizmos/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/SingleSource/Gizmos/Makefile" ;;
23601   "test/Programs/SingleSource/Benchmarks/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/SingleSource/Benchmarks/Makefile" ;;
23602   "test/Programs/SingleSource/Benchmarks/Dhrystone/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/SingleSource/Benchmarks/Dhrystone/Makefile" ;;
23603   "test/Programs/SingleSource/Benchmarks/Shootout/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/SingleSource/Benchmarks/Shootout/Makefile" ;;
23604   "test/Programs/SingleSource/Benchmarks/Stanford/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/SingleSource/Benchmarks/Stanford/Makefile" ;;
23605   "test/Programs/SingleSource/Benchmarks/Misc/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/SingleSource/Benchmarks/Misc/Makefile" ;;
23606   "test/Programs/SingleSource/CustomChecked/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/SingleSource/CustomChecked/Makefile" ;;
23607   "test/Programs/SingleSource/UnitTests/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/SingleSource/UnitTests/Makefile" ;;
23608   "test/Programs/SingleSource/UnitTests/SetjmpLongjmp/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/SingleSource/UnitTests/SetjmpLongjmp/Makefile" ;;
23609   "tools/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;;
23610   "tools/analyze/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/analyze/Makefile" ;;
23611   "tools/as/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/as/Makefile" ;;
23612   "tools/bugpoint/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/bugpoint/Makefile" ;;
23613   "tools/dis/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/dis/Makefile" ;;
23614   "tools/extract/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/extract/Makefile" ;;
23615   "tools/gccas/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/gccas/Makefile" ;;
23616   "tools/gccld/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/gccld/Makefile" ;;
23617   "tools/link/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/link/Makefile" ;;
23618   "tools/llc/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/llc/Makefile" ;;
23619   "tools/lli/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/lli/Makefile" ;;
23620   "tools/opt/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/opt/Makefile" ;;
23621   "tools/llee/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/llee/Makefile" ;;
23622   "tools/llvm-ar/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/llvm-ar/Makefile" ;;
23623   "tools/llvm-dis/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/llvm-dis/Makefile" ;;
23624   "utils/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Makefile" ;;
23625   "utils/Burg/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Burg/Makefile" ;;
23626   "utils/Burg/Doc/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Burg/Doc/Makefile" ;;
23627   "utils/TableGen/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS utils/TableGen/Makefile" ;;
23628   "www/docs/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS www/docs/Makefile" ;;
23629   "projects/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Makefile" ;;
23630   "projects/sample/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS projects/sample/Makefile" ;;
23631   "projects/sample/Makefile.common" ) CONFIG_COMMANDS="$CONFIG_COMMANDS projects/sample/Makefile.common" ;;
23632   "projects/sample/Makefile.config" ) CONFIG_COMMANDS="$CONFIG_COMMANDS projects/sample/Makefile.config" ;;
23633   "projects/sample/lib/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS projects/sample/lib/Makefile" ;;
23634   "projects/sample/lib/sample/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS projects/sample/lib/sample/Makefile" ;;
23635   "projects/sample/tools/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS projects/sample/tools/Makefile" ;;
23636   "projects/sample/tools/sample/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS projects/sample/tools/sample/Makefile" ;;
23637   "projects/ModuleMaker/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS projects/ModuleMaker/Makefile" ;;
23638   "projects/ModuleMaker/Makefile.common" ) CONFIG_COMMANDS="$CONFIG_COMMANDS projects/ModuleMaker/Makefile.common" ;;
23639   "projects/ModuleMaker/tools/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS projects/ModuleMaker/tools/Makefile" ;;
23640   "projects/ModuleMaker/tools/ModuleMaker/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS projects/ModuleMaker/tools/ModuleMaker/Makefile" ;;
23641   "include/Config/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/Config/config.h" ;;
23642   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
23643 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
23644    { (exit 1); exit 1; }; };;
23645   esac
23646 done
23647
23648 # If the user did not use the arguments to specify the items to instantiate,
23649 # then the envvar interface is used.  Set only those that are not.
23650 # We use the long form for the default assignment because of an extremely
23651 # bizarre bug on SunOS 4.1.3.
23652 if $ac_need_defaults; then
23653   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
23654   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
23655   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
23656 fi
23657
23658 # Have a temporary directory for convenience.  Make it in the build tree
23659 # simply because there is no reason to put it here, and in addition,
23660 # creating and moving files from /tmp can sometimes cause problems.
23661 # Create a temporary directory, and hook for its removal unless debugging.
23662 $debug ||
23663 {
23664   trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
23665   trap '{ (exit 1); exit 1; }' 1 2 13 15
23666 }
23667
23668 # Create a (secure) tmp directory for tmp files.
23669
23670 {
23671   tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
23672   test -n "$tmp" && test -d "$tmp"
23673 }  ||
23674 {
23675   tmp=./confstat$$-$RANDOM
23676   (umask 077 && mkdir $tmp)
23677 } ||
23678 {
23679    echo "$me: cannot create a temporary directory in ." >&2
23680    { (exit 1); exit 1; }
23681 }
23682
23683 _ACEOF
23684
23685 cat >>$CONFIG_STATUS <<_ACEOF
23686
23687 #
23688 # CONFIG_FILES section.
23689 #
23690
23691 # No need to generate the scripts if there are no CONFIG_FILES.
23692 # This happens for instance when ./config.status config.h
23693 if test -n "\$CONFIG_FILES"; then
23694   # Protect against being on the right side of a sed subst in config.status.
23695   sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
23696    s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
23697 s,@SHELL@,$SHELL,;t t
23698 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
23699 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
23700 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
23701 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
23702 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
23703 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
23704 s,@exec_prefix@,$exec_prefix,;t t
23705 s,@prefix@,$prefix,;t t
23706 s,@program_transform_name@,$program_transform_name,;t t
23707 s,@bindir@,$bindir,;t t
23708 s,@sbindir@,$sbindir,;t t
23709 s,@libexecdir@,$libexecdir,;t t
23710 s,@datadir@,$datadir,;t t
23711 s,@sysconfdir@,$sysconfdir,;t t
23712 s,@sharedstatedir@,$sharedstatedir,;t t
23713 s,@localstatedir@,$localstatedir,;t t
23714 s,@libdir@,$libdir,;t t
23715 s,@includedir@,$includedir,;t t
23716 s,@oldincludedir@,$oldincludedir,;t t
23717 s,@infodir@,$infodir,;t t
23718 s,@mandir@,$mandir,;t t
23719 s,@build_alias@,$build_alias,;t t
23720 s,@host_alias@,$host_alias,;t t
23721 s,@target_alias@,$target_alias,;t t
23722 s,@DEFS@,$DEFS,;t t
23723 s,@ECHO_C@,$ECHO_C,;t t
23724 s,@ECHO_N@,$ECHO_N,;t t
23725 s,@ECHO_T@,$ECHO_T,;t t
23726 s,@LIBS@,$LIBS,;t t
23727 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
23728 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
23729 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
23730 s,@build@,$build,;t t
23731 s,@build_cpu@,$build_cpu,;t t
23732 s,@build_vendor@,$build_vendor,;t t
23733 s,@build_os@,$build_os,;t t
23734 s,@host@,$host,;t t
23735 s,@host_cpu@,$host_cpu,;t t
23736 s,@host_vendor@,$host_vendor,;t t
23737 s,@host_os@,$host_os,;t t
23738 s,@target@,$target,;t t
23739 s,@target_cpu@,$target_cpu,;t t
23740 s,@target_vendor@,$target_vendor,;t t
23741 s,@target_os@,$target_os,;t t
23742 s,@OS@,$OS,;t t
23743 s,@LLVMGCCDIR@,$LLVMGCCDIR,;t t
23744 s,@ARCH@,$ARCH,;t t
23745 s,@CXX@,$CXX,;t t
23746 s,@CXXFLAGS@,$CXXFLAGS,;t t
23747 s,@LDFLAGS@,$LDFLAGS,;t t
23748 s,@CPPFLAGS@,$CPPFLAGS,;t t
23749 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
23750 s,@EXEEXT@,$EXEEXT,;t t
23751 s,@OBJEXT@,$OBJEXT,;t t
23752 s,@CC@,$CC,;t t
23753 s,@CFLAGS@,$CFLAGS,;t t
23754 s,@ac_ct_CC@,$ac_ct_CC,;t t
23755 s,@CPP@,$CPP,;t t
23756 s,@ifGNUmake@,$ifGNUmake,;t t
23757 s,@LEX@,$LEX,;t t
23758 s,@LEXLIB@,$LEXLIB,;t t
23759 s,@LEX_OUTPUT_ROOT@,$LEX_OUTPUT_ROOT,;t t
23760 s,@YACC@,$YACC,;t t
23761 s,@EGREP@,$EGREP,;t t
23762 s,@LN_S@,$LN_S,;t t
23763 s,@ECHO@,$ECHO,;t t
23764 s,@AR@,$AR,;t t
23765 s,@ac_ct_AR@,$ac_ct_AR,;t t
23766 s,@RANLIB@,$RANLIB,;t t
23767 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
23768 s,@STRIP@,$STRIP,;t t
23769 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
23770 s,@CXXCPP@,$CXXCPP,;t t
23771 s,@F77@,$F77,;t t
23772 s,@FFLAGS@,$FFLAGS,;t t
23773 s,@ac_ct_F77@,$ac_ct_F77,;t t
23774 s,@LIBTOOL@,$LIBTOOL,;t t
23775 s,@RPWD@,$RPWD,;t t
23776 s,@SED@,$SED,;t t
23777 s,@RM@,$RM,;t t
23778 s,@MKDIR@,$MKDIR,;t t
23779 s,@DATE@,$DATE,;t t
23780 s,@MV@,$MV,;t t
23781 s,@DOT@,$DOT,;t t
23782 s,@ETAGS@,$ETAGS,;t t
23783 s,@PURIFY@,$PURIFY,;t t
23784 s,@PYTHON@,$PYTHON,;t t
23785 s,@QMTEST@,$QMTEST,;t t
23786 s,@ALLOCA@,$ALLOCA,;t t
23787 s,@LIBOBJS@,$LIBOBJS,;t t
23788 s,@MMAP_FILE@,$MMAP_FILE,;t t
23789 s,@ENABLE_PURIFY@,$ENABLE_PURIFY,;t t
23790 s,@ENABLE_OPTIMIZED@,$ENABLE_OPTIMIZED,;t t
23791 s,@USE_SPEC@,$USE_SPEC,;t t
23792 s,@UPB@,$UPB,;t t
23793 s,@DISABLE_LLC_DIFFS@,$DISABLE_LLC_DIFFS,;t t
23794 s,@JIT@,$JIT,;t t
23795 s,@SPEC_ROOT@,$SPEC_ROOT,;t t
23796 s,@BCR@,$BCR,;t t
23797 s,@PAPIDIR@,$PAPIDIR,;t t
23798 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
23799 CEOF
23800
23801 _ACEOF
23802
23803   cat >>$CONFIG_STATUS <<\_ACEOF
23804   # Split the substitutions into bite-sized pieces for seds with
23805   # small command number limits, like on Digital OSF/1 and HP-UX.
23806   ac_max_sed_lines=48
23807   ac_sed_frag=1 # Number of current file.
23808   ac_beg=1 # First line for current file.
23809   ac_end=$ac_max_sed_lines # Line after last line for current file.
23810   ac_more_lines=:
23811   ac_sed_cmds=
23812   while $ac_more_lines; do
23813     if test $ac_beg -gt 1; then
23814       sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
23815     else
23816       sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
23817     fi
23818     if test ! -s $tmp/subs.frag; then
23819       ac_more_lines=false
23820     else
23821       # The purpose of the label and of the branching condition is to
23822       # speed up the sed processing (if there are no `@' at all, there
23823       # is no need to browse any of the substitutions).
23824       # These are the two extra sed commands mentioned above.
23825       (echo ':t
23826   /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
23827       if test -z "$ac_sed_cmds"; then
23828         ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
23829       else
23830         ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
23831       fi
23832       ac_sed_frag=`expr $ac_sed_frag + 1`
23833       ac_beg=$ac_end
23834       ac_end=`expr $ac_end + $ac_max_sed_lines`
23835     fi
23836   done
23837   if test -z "$ac_sed_cmds"; then
23838     ac_sed_cmds=cat
23839   fi
23840 fi # test -n "$CONFIG_FILES"
23841
23842 _ACEOF
23843 cat >>$CONFIG_STATUS <<\_ACEOF
23844 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
23845   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
23846   case $ac_file in
23847   - | *:- | *:-:* ) # input from stdin
23848         cat >$tmp/stdin
23849         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
23850         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
23851   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
23852         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
23853   * )   ac_file_in=$ac_file.in ;;
23854   esac
23855
23856   # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
23857   ac_dir=`(dirname "$ac_file") 2>/dev/null ||
23858 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23859          X"$ac_file" : 'X\(//\)[^/]' \| \
23860          X"$ac_file" : 'X\(//\)$' \| \
23861          X"$ac_file" : 'X\(/\)' \| \
23862          .     : '\(.\)' 2>/dev/null ||
23863 echo X"$ac_file" |
23864     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23865           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23866           /^X\(\/\/\)$/{ s//\1/; q; }
23867           /^X\(\/\).*/{ s//\1/; q; }
23868           s/.*/./; q'`
23869   { if $as_mkdir_p; then
23870     mkdir -p "$ac_dir"
23871   else
23872     as_dir="$ac_dir"
23873     as_dirs=
23874     while test ! -d "$as_dir"; do
23875       as_dirs="$as_dir $as_dirs"
23876       as_dir=`(dirname "$as_dir") 2>/dev/null ||
23877 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23878          X"$as_dir" : 'X\(//\)[^/]' \| \
23879          X"$as_dir" : 'X\(//\)$' \| \
23880          X"$as_dir" : 'X\(/\)' \| \
23881          .     : '\(.\)' 2>/dev/null ||
23882 echo X"$as_dir" |
23883     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23884           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23885           /^X\(\/\/\)$/{ s//\1/; q; }
23886           /^X\(\/\).*/{ s//\1/; q; }
23887           s/.*/./; q'`
23888     done
23889     test ! -n "$as_dirs" || mkdir $as_dirs
23890   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
23891 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
23892    { (exit 1); exit 1; }; }; }
23893
23894   ac_builddir=.
23895
23896 if test "$ac_dir" != .; then
23897   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
23898   # A "../" for each directory in $ac_dir_suffix.
23899   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
23900 else
23901   ac_dir_suffix= ac_top_builddir=
23902 fi
23903
23904 case $srcdir in
23905   .)  # No --srcdir option.  We are building in place.
23906     ac_srcdir=.
23907     if test -z "$ac_top_builddir"; then
23908        ac_top_srcdir=.
23909     else
23910        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
23911     fi ;;
23912   [\\/]* | ?:[\\/]* )  # Absolute path.
23913     ac_srcdir=$srcdir$ac_dir_suffix;
23914     ac_top_srcdir=$srcdir ;;
23915   *) # Relative path.
23916     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
23917     ac_top_srcdir=$ac_top_builddir$srcdir ;;
23918 esac
23919 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
23920 # absolute.
23921 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
23922 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
23923 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
23924 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
23925
23926
23927   case $INSTALL in
23928   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
23929   *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
23930   esac
23931
23932   if test x"$ac_file" != x-; then
23933     { echo "$as_me:$LINENO: creating $ac_file" >&5
23934 echo "$as_me: creating $ac_file" >&6;}
23935     rm -f "$ac_file"
23936   fi
23937   # Let's still pretend it is `configure' which instantiates (i.e., don't
23938   # use $as_me), people would be surprised to read:
23939   #    /* config.h.  Generated by config.status.  */
23940   if test x"$ac_file" = x-; then
23941     configure_input=
23942   else
23943     configure_input="$ac_file.  "
23944   fi
23945   configure_input=$configure_input"Generated from `echo $ac_file_in |
23946                                      sed 's,.*/,,'` by configure."
23947
23948   # First look for the input files in the build tree, otherwise in the
23949   # src tree.
23950   ac_file_inputs=`IFS=:
23951     for f in $ac_file_in; do
23952       case $f in
23953       -) echo $tmp/stdin ;;
23954       [\\/$]*)
23955          # Absolute (can't be DOS-style, as IFS=:)
23956          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
23957 echo "$as_me: error: cannot find input file: $f" >&2;}
23958    { (exit 1); exit 1; }; }
23959          echo $f;;
23960       *) # Relative
23961          if test -f "$f"; then
23962            # Build tree
23963            echo $f
23964          elif test -f "$srcdir/$f"; then
23965            # Source tree
23966            echo $srcdir/$f
23967          else
23968            # /dev/null tree
23969            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
23970 echo "$as_me: error: cannot find input file: $f" >&2;}
23971    { (exit 1); exit 1; }; }
23972          fi;;
23973       esac
23974     done` || { (exit 1); exit 1; }
23975 _ACEOF
23976 cat >>$CONFIG_STATUS <<_ACEOF
23977   sed "$ac_vpsub
23978 $extrasub
23979 _ACEOF
23980 cat >>$CONFIG_STATUS <<\_ACEOF
23981 :t
23982 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
23983 s,@configure_input@,$configure_input,;t t
23984 s,@srcdir@,$ac_srcdir,;t t
23985 s,@abs_srcdir@,$ac_abs_srcdir,;t t
23986 s,@top_srcdir@,$ac_top_srcdir,;t t
23987 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
23988 s,@builddir@,$ac_builddir,;t t
23989 s,@abs_builddir@,$ac_abs_builddir,;t t
23990 s,@top_builddir@,$ac_top_builddir,;t t
23991 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
23992 s,@INSTALL@,$ac_INSTALL,;t t
23993 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
23994   rm -f $tmp/stdin
23995   if test x"$ac_file" != x-; then
23996     mv $tmp/out $ac_file
23997   else
23998     cat $tmp/out
23999     rm -f $tmp/out
24000   fi
24001
24002 done
24003 _ACEOF
24004 cat >>$CONFIG_STATUS <<\_ACEOF
24005
24006 #
24007 # CONFIG_HEADER section.
24008 #
24009
24010 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
24011 # NAME is the cpp macro being defined and VALUE is the value it is being given.
24012 #
24013 # ac_d sets the value in "#define NAME VALUE" lines.
24014 ac_dA='s,^\([   ]*\)#\([        ]*define[       ][      ]*\)'
24015 ac_dB='[        ].*$,\1#\2'
24016 ac_dC=' '
24017 ac_dD=',;t'
24018 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
24019 ac_uA='s,^\([   ]*\)#\([        ]*\)undef\([    ][      ]*\)'
24020 ac_uB='$,\1#\2define\3'
24021 ac_uC=' '
24022 ac_uD=',;t'
24023
24024 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
24025   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
24026   case $ac_file in
24027   - | *:- | *:-:* ) # input from stdin
24028         cat >$tmp/stdin
24029         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
24030         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
24031   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
24032         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
24033   * )   ac_file_in=$ac_file.in ;;
24034   esac
24035
24036   test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
24037 echo "$as_me: creating $ac_file" >&6;}
24038
24039   # First look for the input files in the build tree, otherwise in the
24040   # src tree.
24041   ac_file_inputs=`IFS=:
24042     for f in $ac_file_in; do
24043       case $f in
24044       -) echo $tmp/stdin ;;
24045       [\\/$]*)
24046          # Absolute (can't be DOS-style, as IFS=:)
24047          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
24048 echo "$as_me: error: cannot find input file: $f" >&2;}
24049    { (exit 1); exit 1; }; }
24050          echo $f;;
24051       *) # Relative
24052          if test -f "$f"; then
24053            # Build tree
24054            echo $f
24055          elif test -f "$srcdir/$f"; then
24056            # Source tree
24057            echo $srcdir/$f
24058          else
24059            # /dev/null tree
24060            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
24061 echo "$as_me: error: cannot find input file: $f" >&2;}
24062    { (exit 1); exit 1; }; }
24063          fi;;
24064       esac
24065     done` || { (exit 1); exit 1; }
24066   # Remove the trailing spaces.
24067   sed 's/[      ]*$//' $ac_file_inputs >$tmp/in
24068
24069 _ACEOF
24070
24071 # Transform confdefs.h into two sed scripts, `conftest.defines' and
24072 # `conftest.undefs', that substitutes the proper values into
24073 # config.h.in to produce config.h.  The first handles `#define'
24074 # templates, and the second `#undef' templates.
24075 # And first: Protect against being on the right side of a sed subst in
24076 # config.status.  Protect against being in an unquoted here document
24077 # in config.status.
24078 rm -f conftest.defines conftest.undefs
24079 # Using a here document instead of a string reduces the quoting nightmare.
24080 # Putting comments in sed scripts is not portable.
24081 #
24082 # `end' is used to avoid that the second main sed command (meant for
24083 # 0-ary CPP macros) applies to n-ary macro definitions.
24084 # See the Autoconf documentation for `clear'.
24085 cat >confdef2sed.sed <<\_ACEOF
24086 s/[\\&,]/\\&/g
24087 s,[\\$`],\\&,g
24088 t clear
24089 : clear
24090 s,^[    ]*#[    ]*define[       ][      ]*\([^  (][^    (]*\)\(([^)]*)\)[       ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
24091 t end
24092 s,^[    ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
24093 : end
24094 _ACEOF
24095 # If some macros were called several times there might be several times
24096 # the same #defines, which is useless.  Nevertheless, we may not want to
24097 # sort them, since we want the *last* AC-DEFINE to be honored.
24098 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
24099 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
24100 rm -f confdef2sed.sed
24101
24102 # This sed command replaces #undef with comments.  This is necessary, for
24103 # example, in the case of _POSIX_SOURCE, which is predefined and required
24104 # on some systems where configure will not decide to define it.
24105 cat >>conftest.undefs <<\_ACEOF
24106 s,^[    ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
24107 _ACEOF
24108
24109 # Break up conftest.defines because some shells have a limit on the size
24110 # of here documents, and old seds have small limits too (100 cmds).
24111 echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
24112 echo '  if grep "^[     ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
24113 echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
24114 echo '  :' >>$CONFIG_STATUS
24115 rm -f conftest.tail
24116 while grep . conftest.defines >/dev/null
24117 do
24118   # Write a limited-size here document to $tmp/defines.sed.
24119   echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
24120   # Speed up: don't consider the non `#define' lines.
24121   echo '/^[     ]*#[    ]*define/!b' >>$CONFIG_STATUS
24122   # Work around the forget-to-reset-the-flag bug.
24123   echo 't clr' >>$CONFIG_STATUS
24124   echo ': clr' >>$CONFIG_STATUS
24125   sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
24126   echo 'CEOF
24127   sed -f $tmp/defines.sed $tmp/in >$tmp/out
24128   rm -f $tmp/in
24129   mv $tmp/out $tmp/in
24130 ' >>$CONFIG_STATUS
24131   sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
24132   rm -f conftest.defines
24133   mv conftest.tail conftest.defines
24134 done
24135 rm -f conftest.defines
24136 echo '  fi # grep' >>$CONFIG_STATUS
24137 echo >>$CONFIG_STATUS
24138
24139 # Break up conftest.undefs because some shells have a limit on the size
24140 # of here documents, and old seds have small limits too (100 cmds).
24141 echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
24142 rm -f conftest.tail
24143 while grep . conftest.undefs >/dev/null
24144 do
24145   # Write a limited-size here document to $tmp/undefs.sed.
24146   echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
24147   # Speed up: don't consider the non `#undef'
24148   echo '/^[     ]*#[    ]*undef/!b' >>$CONFIG_STATUS
24149   # Work around the forget-to-reset-the-flag bug.
24150   echo 't clr' >>$CONFIG_STATUS
24151   echo ': clr' >>$CONFIG_STATUS
24152   sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
24153   echo 'CEOF
24154   sed -f $tmp/undefs.sed $tmp/in >$tmp/out
24155   rm -f $tmp/in
24156   mv $tmp/out $tmp/in
24157 ' >>$CONFIG_STATUS
24158   sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
24159   rm -f conftest.undefs
24160   mv conftest.tail conftest.undefs
24161 done
24162 rm -f conftest.undefs
24163
24164 cat >>$CONFIG_STATUS <<\_ACEOF
24165   # Let's still pretend it is `configure' which instantiates (i.e., don't
24166   # use $as_me), people would be surprised to read:
24167   #    /* config.h.  Generated by config.status.  */
24168   if test x"$ac_file" = x-; then
24169     echo "/* Generated by configure.  */" >$tmp/config.h
24170   else
24171     echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
24172   fi
24173   cat $tmp/in >>$tmp/config.h
24174   rm -f $tmp/in
24175   if test x"$ac_file" != x-; then
24176     if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
24177       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
24178 echo "$as_me: $ac_file is unchanged" >&6;}
24179     else
24180       ac_dir=`(dirname "$ac_file") 2>/dev/null ||
24181 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24182          X"$ac_file" : 'X\(//\)[^/]' \| \
24183          X"$ac_file" : 'X\(//\)$' \| \
24184          X"$ac_file" : 'X\(/\)' \| \
24185          .     : '\(.\)' 2>/dev/null ||
24186 echo X"$ac_file" |
24187     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24188           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24189           /^X\(\/\/\)$/{ s//\1/; q; }
24190           /^X\(\/\).*/{ s//\1/; q; }
24191           s/.*/./; q'`
24192       { if $as_mkdir_p; then
24193     mkdir -p "$ac_dir"
24194   else
24195     as_dir="$ac_dir"
24196     as_dirs=
24197     while test ! -d "$as_dir"; do
24198       as_dirs="$as_dir $as_dirs"
24199       as_dir=`(dirname "$as_dir") 2>/dev/null ||
24200 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24201          X"$as_dir" : 'X\(//\)[^/]' \| \
24202          X"$as_dir" : 'X\(//\)$' \| \
24203          X"$as_dir" : 'X\(/\)' \| \
24204          .     : '\(.\)' 2>/dev/null ||
24205 echo X"$as_dir" |
24206     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24207           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24208           /^X\(\/\/\)$/{ s//\1/; q; }
24209           /^X\(\/\).*/{ s//\1/; q; }
24210           s/.*/./; q'`
24211     done
24212     test ! -n "$as_dirs" || mkdir $as_dirs
24213   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
24214 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
24215    { (exit 1); exit 1; }; }; }
24216
24217       rm -f $ac_file
24218       mv $tmp/config.h $ac_file
24219     fi
24220   else
24221     cat $tmp/config.h
24222     rm -f $tmp/config.h
24223   fi
24224 done
24225 _ACEOF
24226 cat >>$CONFIG_STATUS <<\_ACEOF
24227
24228 #
24229 # CONFIG_COMMANDS section.
24230 #
24231 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
24232   ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
24233   ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
24234   ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
24235 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24236          X"$ac_dest" : 'X\(//\)[^/]' \| \
24237          X"$ac_dest" : 'X\(//\)$' \| \
24238          X"$ac_dest" : 'X\(/\)' \| \
24239          .     : '\(.\)' 2>/dev/null ||
24240 echo X"$ac_dest" |
24241     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24242           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24243           /^X\(\/\/\)$/{ s//\1/; q; }
24244           /^X\(\/\).*/{ s//\1/; q; }
24245           s/.*/./; q'`
24246   ac_builddir=.
24247
24248 if test "$ac_dir" != .; then
24249   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
24250   # A "../" for each directory in $ac_dir_suffix.
24251   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
24252 else
24253   ac_dir_suffix= ac_top_builddir=
24254 fi
24255
24256 case $srcdir in
24257   .)  # No --srcdir option.  We are building in place.
24258     ac_srcdir=.
24259     if test -z "$ac_top_builddir"; then
24260        ac_top_srcdir=.
24261     else
24262        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
24263     fi ;;
24264   [\\/]* | ?:[\\/]* )  # Absolute path.
24265     ac_srcdir=$srcdir$ac_dir_suffix;
24266     ac_top_srcdir=$srcdir ;;
24267   *) # Relative path.
24268     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
24269     ac_top_srcdir=$ac_top_builddir$srcdir ;;
24270 esac
24271 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
24272 # absolute.
24273 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
24274 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
24275 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
24276 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
24277
24278
24279   { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
24280 echo "$as_me: executing $ac_dest commands" >&6;}
24281   case $ac_dest in
24282     Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/Makefile Makefile ;;
24283     Makefile.common ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/Makefile.common Makefile.common ;;
24284     Makefile.rules ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/Makefile.rules Makefile.rules ;;
24285     lib/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Makefile lib/Makefile ;;
24286     lib/Analysis/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Analysis/Makefile lib/Analysis/Makefile ;;
24287     lib/Analysis/DataStructure/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Analysis/DataStructure/Makefile lib/Analysis/DataStructure/Makefile ;;
24288     lib/Analysis/IPA/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Analysis/IPA/Makefile lib/Analysis/IPA/Makefile ;;
24289     lib/Analysis/LiveVar/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Analysis/LiveVar/Makefile lib/Analysis/LiveVar/Makefile ;;
24290     lib/AsmParser/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/AsmParser/Makefile lib/AsmParser/Makefile ;;
24291     lib/Bytecode/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Bytecode/Makefile lib/Bytecode/Makefile ;;
24292     lib/Bytecode/Reader/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Bytecode/Reader/Makefile lib/Bytecode/Reader/Makefile ;;
24293     lib/Bytecode/Writer/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Bytecode/Writer/Makefile lib/Bytecode/Writer/Makefile ;;
24294     lib/CWriter/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/CWriter/Makefile lib/CWriter/Makefile ;;
24295     lib/CodeGen/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/CodeGen/Makefile lib/CodeGen/Makefile ;;
24296     lib/CodeGen/InstrSched/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/CodeGen/InstrSched/Makefile lib/CodeGen/InstrSched/Makefile ;;
24297     lib/CodeGen/InstrSelection/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/CodeGen/InstrSelection/Makefile lib/CodeGen/InstrSelection/Makefile ;;
24298     lib/CodeGen/ModuloScheduling/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/CodeGen/ModuloScheduling/Makefile lib/CodeGen/ModuloScheduling/Makefile ;;
24299     lib/CodeGen/RegAlloc/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/CodeGen/RegAlloc/Makefile lib/CodeGen/RegAlloc/Makefile ;;
24300     lib/CodeGen/SelectionDAG/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/CodeGen/SelectionDAG/Makefile lib/CodeGen/SelectionDAG/Makefile ;;
24301     lib/ExecutionEngine/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/ExecutionEngine/Makefile lib/ExecutionEngine/Makefile ;;
24302     lib/ExecutionEngine/Interpreter/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/ExecutionEngine/Interpreter/Makefile lib/ExecutionEngine/Interpreter/Makefile ;;
24303     lib/ExecutionEngine/JIT/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/ExecutionEngine/JIT/Makefile lib/ExecutionEngine/JIT/Makefile ;;
24304     lib/Support/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Support/Makefile lib/Support/Makefile ;;
24305     lib/Target/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Target/Makefile lib/Target/Makefile ;;
24306     lib/Target/Sparc/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Target/Sparc/Makefile lib/Target/Sparc/Makefile ;;
24307     lib/Target/X86/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Target/X86/Makefile lib/Target/X86/Makefile ;;
24308     lib/Transforms/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Transforms/Makefile lib/Transforms/Makefile ;;
24309     lib/Transforms/Hello/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Transforms/Hello/Makefile lib/Transforms/Hello/Makefile ;;
24310     lib/Transforms/IPO/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Transforms/IPO/Makefile lib/Transforms/IPO/Makefile ;;
24311     lib/Transforms/Instrumentation/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Transforms/Instrumentation/Makefile lib/Transforms/Instrumentation/Makefile ;;
24312     lib/Transforms/Instrumentation/ProfilePaths/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Transforms/Instrumentation/ProfilePaths/Makefile lib/Transforms/Instrumentation/ProfilePaths/Makefile ;;
24313     lib/Transforms/Scalar/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Transforms/Scalar/Makefile lib/Transforms/Scalar/Makefile ;;
24314     lib/Transforms/Utils/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Transforms/Utils/Makefile lib/Transforms/Utils/Makefile ;;
24315     lib/VMCore/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/VMCore/Makefile lib/VMCore/Makefile ;;
24316     runtime/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/runtime/Makefile runtime/Makefile ;;
24317     runtime/GCCLibraries/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/runtime/GCCLibraries/Makefile runtime/GCCLibraries/Makefile ;;
24318     runtime/GCCLibraries/crtend/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/runtime/GCCLibraries/crtend/Makefile runtime/GCCLibraries/crtend/Makefile ;;
24319     runtime/GCCLibraries/libc/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/runtime/GCCLibraries/libc/Makefile runtime/GCCLibraries/libc/Makefile ;;
24320     runtime/GCCLibraries/libcurses/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/runtime/GCCLibraries/libcurses/Makefile runtime/GCCLibraries/libcurses/Makefile ;;
24321     runtime/GCCLibraries/libexception/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/runtime/GCCLibraries/libexception/Makefile runtime/GCCLibraries/libexception/Makefile ;;
24322     runtime/GCCLibraries/libg/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/runtime/GCCLibraries/libg/Makefile runtime/GCCLibraries/libg/Makefile ;;
24323     runtime/GCCLibraries/libgcc/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/runtime/GCCLibraries/libgcc/Makefile runtime/GCCLibraries/libgcc/Makefile ;;
24324     runtime/GCCLibraries/libm/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/runtime/GCCLibraries/libm/Makefile runtime/GCCLibraries/libm/Makefile ;;
24325     runtime/GCCLibraries/libmalloc/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/runtime/GCCLibraries/libmalloc/Makefile runtime/GCCLibraries/libmalloc/Makefile ;;
24326     runtime/GCCLibraries/libtermcap/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/runtime/GCCLibraries/libtermcap/Makefile runtime/GCCLibraries/libtermcap/Makefile ;;
24327     runtime/GCCLibraries/libucb/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/runtime/GCCLibraries/libucb/Makefile runtime/GCCLibraries/libucb/Makefile ;;
24328     runtime/GCCLibraries/libutempter/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/runtime/GCCLibraries/libutempter/Makefile runtime/GCCLibraries/libutempter/Makefile ;;
24329     runtime/GCCLibraries/libutil/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/runtime/GCCLibraries/libutil/Makefile runtime/GCCLibraries/libutil/Makefile ;;
24330     runtime/libdummy/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/runtime/libdummy/Makefile runtime/libdummy/Makefile ;;
24331     runtime/libtrace/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/runtime/libtrace/Makefile runtime/libtrace/Makefile ;;
24332     test/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Makefile test/Makefile ;;
24333     test/Makefile.tests ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Makefile.tests test/Makefile.tests ;;
24334     test/Programs/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/Makefile test/Programs/Makefile ;;
24335     test/Programs/Makefile.programs ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/Makefile.programs test/Programs/Makefile.programs ;;
24336     test/Programs/TEST.aa.Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.aa.Makefile test/Programs/TEST.aa.Makefile ;;
24337     test/Programs/TEST.dsgraph.report ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.dsgraph.report test/Programs/TEST.dsgraph.report ;;
24338     test/Programs/TEST.micro.report ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.micro.report test/Programs/TEST.micro.report ;;
24339     test/Programs/TEST.aa.report ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.aa.report test/Programs/TEST.aa.report ;;
24340     test/Programs/TEST.example.Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.example.Makefile test/Programs/TEST.example.Makefile ;;
24341     test/Programs/TEST.nightly.Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.nightly.Makefile test/Programs/TEST.nightly.Makefile ;;
24342     test/Programs/TEST.buildrepo.Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.buildrepo.Makefile test/Programs/TEST.buildrepo.Makefile ;;
24343     test/Programs/TEST.jit.Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.jit.Makefile test/Programs/TEST.jit.Makefile ;;
24344     test/Programs/TEST.nightly.report ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.nightly.report test/Programs/TEST.nightly.report ;;
24345     test/Programs/TEST.dsgraph.Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.dsgraph.Makefile test/Programs/TEST.dsgraph.Makefile ;;
24346     test/Programs/TEST.jit.report ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.jit.report test/Programs/TEST.jit.report ;;
24347     test/Programs/TEST.typesafe.Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.typesafe.Makefile test/Programs/TEST.typesafe.Makefile ;;
24348     test/Programs/TEST.dsgraph.gnuplot ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.dsgraph.gnuplot test/Programs/TEST.dsgraph.gnuplot ;;
24349     test/Programs/TEST.micro.Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.micro.Makefile test/Programs/TEST.micro.Makefile ;;
24350     test/Programs/External/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/External/Makefile test/Programs/External/Makefile ;;
24351     test/Programs/External/SPEC/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/External/SPEC/Makefile test/Programs/External/SPEC/Makefile ;;
24352     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 ;;
24353     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 ;;
24354     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 ;;
24355     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 ;;
24356     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 ;;
24357     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 ;;
24358     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 ;;
24359     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 ;;
24360     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 ;;
24361     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 ;;
24362     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 ;;
24363     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 ;;
24364     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 ;;
24365     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 ;;
24366     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 ;;
24367     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 ;;
24368     test/Programs/LLVMSource/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/LLVMSource/Makefile test/Programs/LLVMSource/Makefile ;;
24369     test/Programs/MultiSource/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Makefile test/Programs/MultiSource/Makefile ;;
24370     test/Programs/MultiSource/Makefile.multisrc ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Makefile.multisrc test/Programs/MultiSource/Makefile.multisrc ;;
24371     test/Programs/MultiSource/Applications/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Applications/Makefile test/Programs/MultiSource/Applications/Makefile ;;
24372     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 ;;
24373     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 ;;
24374     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 ;;
24375     test/Programs/MultiSource/Benchmarks/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Benchmarks/Makefile test/Programs/MultiSource/Benchmarks/Makefile ;;
24376     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 ;;
24377     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 ;;
24378     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 ;;
24379     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 ;;
24380     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 ;;
24381     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 ;;
24382     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 ;;
24383     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 ;;
24384     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 ;;
24385     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 ;;
24386     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 ;;
24387     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 ;;
24388     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 ;;
24389     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 ;;
24390     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 ;;
24391     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 ;;
24392     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 ;;
24393     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 ;;
24394     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 ;;
24395     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 ;;
24396     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 ;;
24397     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 ;;
24398     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 ;;
24399     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 ;;
24400     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 ;;
24401     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 ;;
24402     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 ;;
24403     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 ;;
24404     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 ;;
24405     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 ;;
24406     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 ;;
24407     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 ;;
24408     test/Programs/NoSource/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/NoSource/Makefile test/Programs/NoSource/Makefile ;;
24409     test/Programs/NoSource/Flex/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/NoSource/Flex/Makefile test/Programs/NoSource/Flex/Makefile ;;
24410     test/Programs/NoSource/Larn/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/NoSource/Larn/Makefile test/Programs/NoSource/Larn/Makefile ;;
24411     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 ;;
24412     test/Programs/NoSource/Povray31/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/NoSource/Povray31/Makefile test/Programs/NoSource/Povray31/Makefile ;;
24413     test/Programs/NoSource/m4/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/NoSource/m4/Makefile test/Programs/NoSource/m4/Makefile ;;
24414     test/Programs/SingleSource/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/SingleSource/Makefile test/Programs/SingleSource/Makefile ;;
24415     test/Programs/SingleSource/Makefile.singlesrc ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/SingleSource/Makefile.singlesrc test/Programs/SingleSource/Makefile.singlesrc ;;
24416     test/Programs/SingleSource/Gizmos/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/SingleSource/Gizmos/Makefile test/Programs/SingleSource/Gizmos/Makefile ;;
24417     test/Programs/SingleSource/Benchmarks/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/SingleSource/Benchmarks/Makefile test/Programs/SingleSource/Benchmarks/Makefile ;;
24418     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 ;;
24419     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 ;;
24420     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 ;;
24421     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 ;;
24422     test/Programs/SingleSource/CustomChecked/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/SingleSource/CustomChecked/Makefile test/Programs/SingleSource/CustomChecked/Makefile ;;
24423     test/Programs/SingleSource/UnitTests/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/SingleSource/UnitTests/Makefile test/Programs/SingleSource/UnitTests/Makefile ;;
24424     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 ;;
24425     tools/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/Makefile tools/Makefile ;;
24426     tools/analyze/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/analyze/Makefile tools/analyze/Makefile ;;
24427     tools/as/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/as/Makefile tools/as/Makefile ;;
24428     tools/bugpoint/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/bugpoint/Makefile tools/bugpoint/Makefile ;;
24429     tools/dis/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/dis/Makefile tools/dis/Makefile ;;
24430     tools/extract/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/extract/Makefile tools/extract/Makefile ;;
24431     tools/gccas/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/gccas/Makefile tools/gccas/Makefile ;;
24432     tools/gccld/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/gccld/Makefile tools/gccld/Makefile ;;
24433     tools/link/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/link/Makefile tools/link/Makefile ;;
24434     tools/llc/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/llc/Makefile tools/llc/Makefile ;;
24435     tools/lli/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/lli/Makefile tools/lli/Makefile ;;
24436     tools/opt/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/opt/Makefile tools/opt/Makefile ;;
24437     tools/llee/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/llee/Makefile tools/llee/Makefile ;;
24438     tools/llvm-as/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/llvm-as/Makefile tools/llvm-as/Makefile ;;
24439     tools/llvm-ar/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/llvm-ar/Makefile tools/llvm-ar/Makefile ;;
24440     tools/llvm-dis/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/llvm-dis/Makefile tools/llvm-dis/Makefile ;;
24441     utils/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/utils/Makefile utils/Makefile ;;
24442     utils/Burg/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/utils/Burg/Makefile utils/Burg/Makefile ;;
24443     utils/Burg/Doc/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/utils/Burg/Doc/Makefile utils/Burg/Doc/Makefile ;;
24444     utils/TableGen/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/utils/TableGen/Makefile utils/TableGen/Makefile ;;
24445     www/docs/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/www/docs/Makefile www/docs/Makefile ;;
24446     projects/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/projects/Makefile projects/Makefile ;;
24447     projects/sample/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/projects/sample/Makefile projects/sample/Makefile ;;
24448     projects/sample/Makefile.common ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/projects/sample/Makefile.common projects/sample/Makefile.common ;;
24449     projects/sample/Makefile.config ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/projects/sample/Makefile.config projects/sample/Makefile.config ;;
24450     projects/sample/lib/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/projects/sample/lib/Makefile projects/sample/lib/Makefile ;;
24451     projects/sample/lib/sample/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/projects/sample/lib/sample/Makefile projects/sample/lib/sample/Makefile ;;
24452     projects/sample/tools/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/projects/sample/tools/Makefile projects/sample/tools/Makefile ;;
24453     projects/sample/tools/sample/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/projects/sample/tools/sample/Makefile projects/sample/tools/sample/Makefile ;;
24454     projects/ModuleMaker/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/projects/ModuleMaker/Makefile projects/ModuleMaker/Makefile ;;
24455     projects/ModuleMaker/Makefile.common ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/projects/ModuleMaker/Makefile.common projects/ModuleMaker/Makefile.common ;;
24456     projects/ModuleMaker/tools/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/projects/ModuleMaker/tools/Makefile projects/ModuleMaker/tools/Makefile ;;
24457     projects/ModuleMaker/tools/ModuleMaker/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/projects/ModuleMaker/tools/ModuleMaker/Makefile projects/ModuleMaker/tools/ModuleMaker/Makefile ;;
24458   esac
24459 done
24460 _ACEOF
24461
24462 cat >>$CONFIG_STATUS <<\_ACEOF
24463
24464 { (exit 0); exit 0; }
24465 _ACEOF
24466 chmod +x $CONFIG_STATUS
24467 ac_clean_files=$ac_clean_files_save
24468
24469
24470 # configure is writing to config.log, and then calls config.status.
24471 # config.status does its own redirection, appending to config.log.
24472 # Unfortunately, on DOS this fails, as config.log is still kept open
24473 # by configure, so config.status won't be able to write to it; its
24474 # output is simply discarded.  So we exec the FD to /dev/null,
24475 # effectively closing config.log, so it can be properly (re)opened and
24476 # appended to by config.status.  When coming back to configure, we
24477 # need to make the FD available again.
24478 if test "$no_create" != yes; then
24479   ac_cs_success=:
24480   ac_config_status_args=
24481   test "$silent" = yes &&
24482     ac_config_status_args="$ac_config_status_args --quiet"
24483   exec 5>/dev/null
24484   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
24485   exec 5>>config.log
24486   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
24487   # would make configure fail if this is the last instruction.
24488   $ac_cs_success || { (exit 1); exit 1; }
24489 fi
24490