Removed llvm/tools/as, llvm/tools/dis, and runtime/GCCLibraries/libexception.
[oota-llvm.git] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.57 for [LLVM] [1.0].
4 #
5 # Report bugs to <llvmbugs@cs.uiuc.edu>.
6 #
7 # Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
8 # Free Software Foundation, Inc.
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 ## --------------------- ##
12 ## M4sh Initialization.  ##
13 ## --------------------- ##
14
15 # Be Bourne compatible
16 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
17   emulate sh
18   NULLCMD=:
19   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
20   # is contrary to our usage.  Disable this feature.
21   alias -g '${1+"$@"}'='"$@"'
22 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
23   set -o posix
24 fi
25
26 # Support unset when possible.
27 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
28   as_unset=unset
29 else
30   as_unset=false
31 fi
32
33
34 # Work around bugs in pre-3.0 UWIN ksh.
35 $as_unset ENV MAIL MAILPATH
36 PS1='$ '
37 PS2='> '
38 PS4='+ '
39
40 # NLS nuisances.
41 for as_var in \
42   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
43   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
44   LC_TELEPHONE LC_TIME
45 do
46   if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
47     eval $as_var=C; export $as_var
48   else
49     $as_unset $as_var
50   fi
51 done
52
53 # Required to use basename.
54 if expr a : '\(a\)' >/dev/null 2>&1; then
55   as_expr=expr
56 else
57   as_expr=false
58 fi
59
60 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
61   as_basename=basename
62 else
63   as_basename=false
64 fi
65
66
67 # Name of the executable.
68 as_me=`$as_basename "$0" ||
69 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
70          X"$0" : 'X\(//\)$' \| \
71          X"$0" : 'X\(/\)$' \| \
72          .     : '\(.\)' 2>/dev/null ||
73 echo X/"$0" |
74     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
75           /^X\/\(\/\/\)$/{ s//\1/; q; }
76           /^X\/\(\/\).*/{ s//\1/; q; }
77           s/.*/./; q'`
78
79
80 # PATH needs CR, and LINENO needs CR and PATH.
81 # Avoid depending upon Character Ranges.
82 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
83 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
84 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
85 as_cr_digits='0123456789'
86 as_cr_alnum=$as_cr_Letters$as_cr_digits
87
88 # The user is always right.
89 if test "${PATH_SEPARATOR+set}" != set; then
90   echo "#! /bin/sh" >conf$$.sh
91   echo  "exit 0"   >>conf$$.sh
92   chmod +x conf$$.sh
93   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
94     PATH_SEPARATOR=';'
95   else
96     PATH_SEPARATOR=:
97   fi
98   rm -f conf$$.sh
99 fi
100
101
102   as_lineno_1=$LINENO
103   as_lineno_2=$LINENO
104   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
105   test "x$as_lineno_1" != "x$as_lineno_2" &&
106   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
107   # Find who we are.  Look in the path if we contain no path at all
108   # relative or not.
109   case $0 in
110     *[\\/]* ) as_myself=$0 ;;
111     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
112 for as_dir in $PATH
113 do
114   IFS=$as_save_IFS
115   test -z "$as_dir" && as_dir=.
116   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
117 done
118
119        ;;
120   esac
121   # We did not find ourselves, most probably we were run as `sh COMMAND'
122   # in which case we are not to be found in the path.
123   if test "x$as_myself" = x; then
124     as_myself=$0
125   fi
126   if test ! -f "$as_myself"; then
127     { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
128    { (exit 1); exit 1; }; }
129   fi
130   case $CONFIG_SHELL in
131   '')
132     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
133 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
134 do
135   IFS=$as_save_IFS
136   test -z "$as_dir" && as_dir=.
137   for as_base in sh bash ksh sh5; do
138          case $as_dir in
139          /*)
140            if ("$as_dir/$as_base" -c '
141   as_lineno_1=$LINENO
142   as_lineno_2=$LINENO
143   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
144   test "x$as_lineno_1" != "x$as_lineno_2" &&
145   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
146              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
147              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
148              CONFIG_SHELL=$as_dir/$as_base
149              export CONFIG_SHELL
150              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
151            fi;;
152          esac
153        done
154 done
155 ;;
156   esac
157
158   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
159   # uniformly replaced by the line number.  The first 'sed' inserts a
160   # line-number line before each line; the second 'sed' does the real
161   # work.  The second script uses 'N' to pair each line-number line
162   # with the numbered line, and appends trailing '-' during
163   # substitution so that $LINENO is not a special case at line end.
164   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
165   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
166   sed '=' <$as_myself |
167     sed '
168       N
169       s,$,-,
170       : loop
171       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
172       t loop
173       s,-$,,
174       s,^['$as_cr_digits']*\n,,
175     ' >$as_me.lineno &&
176   chmod +x $as_me.lineno ||
177     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
178    { (exit 1); exit 1; }; }
179
180   # Don't try to exec as it changes $[0], causing all sort of problems
181   # (the dirname of $[0] is not the place where we might find the
182   # original and so on.  Autoconf is especially sensible to this).
183   . ./$as_me.lineno
184   # Exit status is that of the last command.
185   exit
186 }
187
188
189 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
190   *c*,-n*) ECHO_N= ECHO_C='
191 ' ECHO_T='      ' ;;
192   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
193   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
194 esac
195
196 if expr a : '\(a\)' >/dev/null 2>&1; then
197   as_expr=expr
198 else
199   as_expr=false
200 fi
201
202 rm -f conf$$ conf$$.exe conf$$.file
203 echo >conf$$.file
204 if ln -s conf$$.file conf$$ 2>/dev/null; then
205   # We could just check for DJGPP; but this test a) works b) is more generic
206   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
207   if test -f conf$$.exe; then
208     # Don't use ln at all; we don't have any links
209     as_ln_s='cp -p'
210   else
211     as_ln_s='ln -s'
212   fi
213 elif ln conf$$.file conf$$ 2>/dev/null; then
214   as_ln_s=ln
215 else
216   as_ln_s='cp -p'
217 fi
218 rm -f conf$$ conf$$.exe conf$$.file
219
220 if mkdir -p . 2>/dev/null; then
221   as_mkdir_p=:
222 else
223   as_mkdir_p=false
224 fi
225
226 as_executable_p="test -f"
227
228 # Sed expression to map a string onto a valid CPP name.
229 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
230
231 # Sed expression to map a string onto a valid variable name.
232 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
233
234
235 # IFS
236 # We need space, tab and new line, in precisely that order.
237 as_nl='
238 '
239 IFS="   $as_nl"
240
241 # CDPATH.
242 $as_unset CDPATH
243
244
245
246 # Check that we are running under the correct shell.
247 SHELL=${CONFIG_SHELL-/bin/sh}
248
249 case X$ECHO in
250 X*--fallback-echo)
251   # Remove one level of quotation (which was required for Make).
252   ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
253   ;;
254 esac
255
256 echo=${ECHO-echo}
257 if test "X$1" = X--no-reexec; then
258   # Discard the --no-reexec flag, and continue.
259   shift
260 elif test "X$1" = X--fallback-echo; then
261   # Avoid inline document here, it may be left over
262   :
263 elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
264   # Yippee, $echo works!
265   :
266 else
267   # Restart under the correct shell.
268   exec $SHELL "$0" --no-reexec ${1+"$@"}
269 fi
270
271 if test "X$1" = X--fallback-echo; then
272   # used as fallback echo
273   shift
274   cat <<EOF
275 $*
276 EOF
277   exit 0
278 fi
279
280 # The HP-UX ksh and POSIX shell print the target directory to stdout
281 # if CDPATH is set.
282 if test "X${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
283
284 if test -z "$ECHO"; then
285 if test "X${echo_test_string+set}" != Xset; then
286 # find a string as large as possible, as long as the shell can cope with it
287   for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
288     # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
289     if (echo_test_string="`eval $cmd`") 2>/dev/null &&
290        echo_test_string="`eval $cmd`" &&
291        (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
292     then
293       break
294     fi
295   done
296 fi
297
298 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
299    echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
300    test "X$echo_testing_string" = "X$echo_test_string"; then
301   :
302 else
303   # The Solaris, AIX, and Digital Unix default echo programs unquote
304   # backslashes.  This makes it impossible to quote backslashes using
305   #   echo "$something" | sed 's/\\/\\\\/g'
306   #
307   # So, first we look for a working echo in the user's PATH.
308
309   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
310   for dir in $PATH /usr/ucb; do
311     IFS="$lt_save_ifs"
312     if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
313        test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
314        echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
315        test "X$echo_testing_string" = "X$echo_test_string"; then
316       echo="$dir/echo"
317       break
318     fi
319   done
320   IFS="$lt_save_ifs"
321
322   if test "X$echo" = Xecho; then
323     # We didn't find a better echo, so look for alternatives.
324     if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
325        echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
326        test "X$echo_testing_string" = "X$echo_test_string"; then
327       # This shell has a builtin print -r that does the trick.
328       echo='print -r'
329     elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
330          test "X$CONFIG_SHELL" != X/bin/ksh; then
331       # If we have ksh, try running configure again with it.
332       ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
333       export ORIGINAL_CONFIG_SHELL
334       CONFIG_SHELL=/bin/ksh
335       export CONFIG_SHELL
336       exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
337     else
338       # Try using printf.
339       echo='printf %s\n'
340       if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
341          echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
342          test "X$echo_testing_string" = "X$echo_test_string"; then
343         # Cool, printf works
344         :
345       elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
346            test "X$echo_testing_string" = 'X\t' &&
347            echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
348            test "X$echo_testing_string" = "X$echo_test_string"; then
349         CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
350         export CONFIG_SHELL
351         SHELL="$CONFIG_SHELL"
352         export SHELL
353         echo="$CONFIG_SHELL $0 --fallback-echo"
354       elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
355            test "X$echo_testing_string" = 'X\t' &&
356            echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
357            test "X$echo_testing_string" = "X$echo_test_string"; then
358         echo="$CONFIG_SHELL $0 --fallback-echo"
359       else
360         # maybe with a smaller string...
361         prev=:
362
363         for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
364           if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
365           then
366             break
367           fi
368           prev="$cmd"
369         done
370
371         if test "$prev" != 'sed 50q "$0"'; then
372           echo_test_string=`eval $prev`
373           export echo_test_string
374           exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
375         else
376           # Oops.  We lost completely, so just stick with echo.
377           echo=echo
378         fi
379       fi
380     fi
381   fi
382 fi
383 fi
384
385 # Copy echo and quote the copy suitably for passing to libtool from
386 # the Makefile, instead of quoting the original, which is used later.
387 ECHO=$echo
388 if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
389    ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
390 fi
391
392
393
394
395 tagnames=`echo "$tagnames,CXX" | sed 's/^,//'`
396
397 tagnames=`echo "$tagnames,F77" | sed 's/^,//'`
398
399 # Name of the host.
400 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
401 # so uname gets run too.
402 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
403
404 exec 6>&1
405
406 #
407 # Initializations.
408 #
409 ac_default_prefix=/usr/local
410 ac_config_libobj_dir=.
411 cross_compiling=no
412 subdirs=
413 MFLAGS=
414 MAKEFLAGS=
415 SHELL=${CONFIG_SHELL-/bin/sh}
416
417 # Maximum number of lines to put in a shell here document.
418 # This variable seems obsolete.  It should probably be removed, and
419 # only ac_max_sed_lines should be used.
420 : ${ac_max_here_lines=38}
421
422 # Identity of this package.
423 PACKAGE_NAME='[LLVM]'
424 PACKAGE_TARNAME='--llvm--'
425 PACKAGE_VERSION='[1.0]'
426 PACKAGE_STRING='[LLVM] [1.0]'
427 PACKAGE_BUGREPORT='llvmbugs@cs.uiuc.edu'
428
429 # Factoring default headers for most tests.
430 ac_includes_default="\
431 #include <stdio.h>
432 #if HAVE_SYS_TYPES_H
433 # include <sys/types.h>
434 #endif
435 #if HAVE_SYS_STAT_H
436 # include <sys/stat.h>
437 #endif
438 #if STDC_HEADERS
439 # include <stdlib.h>
440 # include <stddef.h>
441 #else
442 # if HAVE_STDLIB_H
443 #  include <stdlib.h>
444 # endif
445 #endif
446 #if HAVE_STRING_H
447 # if !STDC_HEADERS && HAVE_MEMORY_H
448 #  include <memory.h>
449 # endif
450 # include <string.h>
451 #endif
452 #if HAVE_STRINGS_H
453 # include <strings.h>
454 #endif
455 #if HAVE_INTTYPES_H
456 # include <inttypes.h>
457 #else
458 # if HAVE_STDINT_H
459 #  include <stdint.h>
460 # endif
461 #endif
462 #if HAVE_UNISTD_H
463 # include <unistd.h>
464 #endif"
465
466 ac_unique_file=""Makefile.config.in""
467 ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os OS LLVMGCCDIR ARCH CXX CXXFLAGS LDFLAGS CPPFLAGS ac_ct_CXX EXEEXT OBJEXT CC CFLAGS ac_ct_CC CPP ifGNUmake LEX LEXLIB LEX_OUTPUT_ROOT YACC EGREP LN_S ECHO AR ac_ct_AR RANLIB ac_ct_RANLIB STRIP ac_ct_STRIP CXXCPP F77 FFLAGS ac_ct_F77 LIBTOOL RPWD SED RM MKDIR DATE MV DOT ETAGS PURIFY PYTHON QMTEST ALLOCA LIBOBJS MMAP_FILE ENABLE_PURIFY ENABLE_OPTIMIZED USE_SPEC UPB DISABLE_LLC_DIFFS JIT SPEC_ROOT BCR PAPIDIR LTLIBOBJS'
468 ac_subst_files=''
469
470 # Initialize some variables set by options.
471 ac_init_help=
472 ac_init_version=false
473 # The variables have the same names as the options, with
474 # dashes changed to underlines.
475 cache_file=/dev/null
476 exec_prefix=NONE
477 no_create=
478 no_recursion=
479 prefix=NONE
480 program_prefix=NONE
481 program_suffix=NONE
482 program_transform_name=s,x,x,
483 silent=
484 site=
485 srcdir=
486 verbose=
487 x_includes=NONE
488 x_libraries=NONE
489
490 # Installation directory options.
491 # These are left unexpanded so users can "make install exec_prefix=/foo"
492 # and all the variables that are supposed to be based on exec_prefix
493 # by default will actually change.
494 # Use braces instead of parens because sh, perl, etc. also accept them.
495 bindir='${exec_prefix}/bin'
496 sbindir='${exec_prefix}/sbin'
497 libexecdir='${exec_prefix}/libexec'
498 datadir='${prefix}/share'
499 sysconfdir='${prefix}/etc'
500 sharedstatedir='${prefix}/com'
501 localstatedir='${prefix}/var'
502 libdir='${exec_prefix}/lib'
503 includedir='${prefix}/include'
504 oldincludedir='/usr/include'
505 infodir='${prefix}/info'
506 mandir='${prefix}/man'
507
508 ac_prev=
509 for ac_option
510 do
511   # If the previous option needs an argument, assign it.
512   if test -n "$ac_prev"; then
513     eval "$ac_prev=\$ac_option"
514     ac_prev=
515     continue
516   fi
517
518   ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
519
520   # Accept the important Cygnus configure options, so we can diagnose typos.
521
522   case $ac_option in
523
524   -bindir | --bindir | --bindi | --bind | --bin | --bi)
525     ac_prev=bindir ;;
526   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
527     bindir=$ac_optarg ;;
528
529   -build | --build | --buil | --bui | --bu)
530     ac_prev=build_alias ;;
531   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
532     build_alias=$ac_optarg ;;
533
534   -cache-file | --cache-file | --cache-fil | --cache-fi \
535   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
536     ac_prev=cache_file ;;
537   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
538   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
539     cache_file=$ac_optarg ;;
540
541   --config-cache | -C)
542     cache_file=config.cache ;;
543
544   -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
545     ac_prev=datadir ;;
546   -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
547   | --da=*)
548     datadir=$ac_optarg ;;
549
550   -disable-* | --disable-*)
551     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
552     # Reject names that are not valid shell variable names.
553     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
554       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
555    { (exit 1); exit 1; }; }
556     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
557     eval "enable_$ac_feature=no" ;;
558
559   -enable-* | --enable-*)
560     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
561     # Reject names that are not valid shell variable names.
562     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
563       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
564    { (exit 1); exit 1; }; }
565     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
566     case $ac_option in
567       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
568       *) ac_optarg=yes ;;
569     esac
570     eval "enable_$ac_feature='$ac_optarg'" ;;
571
572   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
573   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
574   | --exec | --exe | --ex)
575     ac_prev=exec_prefix ;;
576   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
577   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
578   | --exec=* | --exe=* | --ex=*)
579     exec_prefix=$ac_optarg ;;
580
581   -gas | --gas | --ga | --g)
582     # Obsolete; use --with-gas.
583     with_gas=yes ;;
584
585   -help | --help | --hel | --he | -h)
586     ac_init_help=long ;;
587   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
588     ac_init_help=recursive ;;
589   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
590     ac_init_help=short ;;
591
592   -host | --host | --hos | --ho)
593     ac_prev=host_alias ;;
594   -host=* | --host=* | --hos=* | --ho=*)
595     host_alias=$ac_optarg ;;
596
597   -includedir | --includedir | --includedi | --included | --include \
598   | --includ | --inclu | --incl | --inc)
599     ac_prev=includedir ;;
600   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
601   | --includ=* | --inclu=* | --incl=* | --inc=*)
602     includedir=$ac_optarg ;;
603
604   -infodir | --infodir | --infodi | --infod | --info | --inf)
605     ac_prev=infodir ;;
606   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
607     infodir=$ac_optarg ;;
608
609   -libdir | --libdir | --libdi | --libd)
610     ac_prev=libdir ;;
611   -libdir=* | --libdir=* | --libdi=* | --libd=*)
612     libdir=$ac_optarg ;;
613
614   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
615   | --libexe | --libex | --libe)
616     ac_prev=libexecdir ;;
617   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
618   | --libexe=* | --libex=* | --libe=*)
619     libexecdir=$ac_optarg ;;
620
621   -localstatedir | --localstatedir | --localstatedi | --localstated \
622   | --localstate | --localstat | --localsta | --localst \
623   | --locals | --local | --loca | --loc | --lo)
624     ac_prev=localstatedir ;;
625   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
626   | --localstate=* | --localstat=* | --localsta=* | --localst=* \
627   | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
628     localstatedir=$ac_optarg ;;
629
630   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
631     ac_prev=mandir ;;
632   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
633     mandir=$ac_optarg ;;
634
635   -nfp | --nfp | --nf)
636     # Obsolete; use --without-fp.
637     with_fp=no ;;
638
639   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
640   | --no-cr | --no-c | -n)
641     no_create=yes ;;
642
643   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
644   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
645     no_recursion=yes ;;
646
647   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
648   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
649   | --oldin | --oldi | --old | --ol | --o)
650     ac_prev=oldincludedir ;;
651   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
652   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
653   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
654     oldincludedir=$ac_optarg ;;
655
656   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
657     ac_prev=prefix ;;
658   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
659     prefix=$ac_optarg ;;
660
661   -program-prefix | --program-prefix | --program-prefi | --program-pref \
662   | --program-pre | --program-pr | --program-p)
663     ac_prev=program_prefix ;;
664   -program-prefix=* | --program-prefix=* | --program-prefi=* \
665   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
666     program_prefix=$ac_optarg ;;
667
668   -program-suffix | --program-suffix | --program-suffi | --program-suff \
669   | --program-suf | --program-su | --program-s)
670     ac_prev=program_suffix ;;
671   -program-suffix=* | --program-suffix=* | --program-suffi=* \
672   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
673     program_suffix=$ac_optarg ;;
674
675   -program-transform-name | --program-transform-name \
676   | --program-transform-nam | --program-transform-na \
677   | --program-transform-n | --program-transform- \
678   | --program-transform | --program-transfor \
679   | --program-transfo | --program-transf \
680   | --program-trans | --program-tran \
681   | --progr-tra | --program-tr | --program-t)
682     ac_prev=program_transform_name ;;
683   -program-transform-name=* | --program-transform-name=* \
684   | --program-transform-nam=* | --program-transform-na=* \
685   | --program-transform-n=* | --program-transform-=* \
686   | --program-transform=* | --program-transfor=* \
687   | --program-transfo=* | --program-transf=* \
688   | --program-trans=* | --program-tran=* \
689   | --progr-tra=* | --program-tr=* | --program-t=*)
690     program_transform_name=$ac_optarg ;;
691
692   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
693   | -silent | --silent | --silen | --sile | --sil)
694     silent=yes ;;
695
696   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
697     ac_prev=sbindir ;;
698   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
699   | --sbi=* | --sb=*)
700     sbindir=$ac_optarg ;;
701
702   -sharedstatedir | --sharedstatedir | --sharedstatedi \
703   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
704   | --sharedst | --shareds | --shared | --share | --shar \
705   | --sha | --sh)
706     ac_prev=sharedstatedir ;;
707   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
708   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
709   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
710   | --sha=* | --sh=*)
711     sharedstatedir=$ac_optarg ;;
712
713   -site | --site | --sit)
714     ac_prev=site ;;
715   -site=* | --site=* | --sit=*)
716     site=$ac_optarg ;;
717
718   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
719     ac_prev=srcdir ;;
720   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
721     srcdir=$ac_optarg ;;
722
723   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
724   | --syscon | --sysco | --sysc | --sys | --sy)
725     ac_prev=sysconfdir ;;
726   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
727   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
728     sysconfdir=$ac_optarg ;;
729
730   -target | --target | --targe | --targ | --tar | --ta | --t)
731     ac_prev=target_alias ;;
732   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
733     target_alias=$ac_optarg ;;
734
735   -v | -verbose | --verbose | --verbos | --verbo | --verb)
736     verbose=yes ;;
737
738   -version | --version | --versio | --versi | --vers | -V)
739     ac_init_version=: ;;
740
741   -with-* | --with-*)
742     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
743     # Reject names that are not valid shell variable names.
744     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
745       { echo "$as_me: error: invalid package name: $ac_package" >&2
746    { (exit 1); exit 1; }; }
747     ac_package=`echo $ac_package| sed 's/-/_/g'`
748     case $ac_option in
749       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
750       *) ac_optarg=yes ;;
751     esac
752     eval "with_$ac_package='$ac_optarg'" ;;
753
754   -without-* | --without-*)
755     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
756     # Reject names that are not valid shell variable names.
757     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
758       { echo "$as_me: error: invalid package name: $ac_package" >&2
759    { (exit 1); exit 1; }; }
760     ac_package=`echo $ac_package | sed 's/-/_/g'`
761     eval "with_$ac_package=no" ;;
762
763   --x)
764     # Obsolete; use --with-x.
765     with_x=yes ;;
766
767   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
768   | --x-incl | --x-inc | --x-in | --x-i)
769     ac_prev=x_includes ;;
770   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
771   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
772     x_includes=$ac_optarg ;;
773
774   -x-libraries | --x-libraries | --x-librarie | --x-librari \
775   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
776     ac_prev=x_libraries ;;
777   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
778   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
779     x_libraries=$ac_optarg ;;
780
781   -*) { echo "$as_me: error: unrecognized option: $ac_option
782 Try \`$0 --help' for more information." >&2
783    { (exit 1); exit 1; }; }
784     ;;
785
786   *=*)
787     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
788     # Reject names that are not valid shell variable names.
789     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
790       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
791    { (exit 1); exit 1; }; }
792     ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
793     eval "$ac_envvar='$ac_optarg'"
794     export $ac_envvar ;;
795
796   *)
797     # FIXME: should be removed in autoconf 3.0.
798     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
799     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
800       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
801     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
802     ;;
803
804   esac
805 done
806
807 if test -n "$ac_prev"; then
808   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
809   { echo "$as_me: error: missing argument to $ac_option" >&2
810    { (exit 1); exit 1; }; }
811 fi
812
813 # Be sure to have absolute paths.
814 for ac_var in exec_prefix prefix
815 do
816   eval ac_val=$`echo $ac_var`
817   case $ac_val in
818     [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
819     *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
820    { (exit 1); exit 1; }; };;
821   esac
822 done
823
824 # Be sure to have absolute paths.
825 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
826               localstatedir libdir includedir oldincludedir infodir mandir
827 do
828   eval ac_val=$`echo $ac_var`
829   case $ac_val in
830     [\\/$]* | ?:[\\/]* ) ;;
831     *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
832    { (exit 1); exit 1; }; };;
833   esac
834 done
835
836 # There might be people who depend on the old broken behavior: `$host'
837 # used to hold the argument of --host etc.
838 # FIXME: To remove some day.
839 build=$build_alias
840 host=$host_alias
841 target=$target_alias
842
843 # FIXME: To remove some day.
844 if test "x$host_alias" != x; then
845   if test "x$build_alias" = x; then
846     cross_compiling=maybe
847     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
848     If a cross compiler is detected then cross compile mode will be used." >&2
849   elif test "x$build_alias" != "x$host_alias"; then
850     cross_compiling=yes
851   fi
852 fi
853
854 ac_tool_prefix=
855 test -n "$host_alias" && ac_tool_prefix=$host_alias-
856
857 test "$silent" = yes && exec 6>/dev/null
858
859
860 # Find the source files, if location was not specified.
861 if test -z "$srcdir"; then
862   ac_srcdir_defaulted=yes
863   # Try the directory containing this script, then its parent.
864   ac_confdir=`(dirname "$0") 2>/dev/null ||
865 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
866          X"$0" : 'X\(//\)[^/]' \| \
867          X"$0" : 'X\(//\)$' \| \
868          X"$0" : 'X\(/\)' \| \
869          .     : '\(.\)' 2>/dev/null ||
870 echo X"$0" |
871     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
872           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
873           /^X\(\/\/\)$/{ s//\1/; q; }
874           /^X\(\/\).*/{ s//\1/; q; }
875           s/.*/./; q'`
876   srcdir=$ac_confdir
877   if test ! -r $srcdir/$ac_unique_file; then
878     srcdir=..
879   fi
880 else
881   ac_srcdir_defaulted=no
882 fi
883 if test ! -r $srcdir/$ac_unique_file; then
884   if test "$ac_srcdir_defaulted" = yes; then
885     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
886    { (exit 1); exit 1; }; }
887   else
888     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
889    { (exit 1); exit 1; }; }
890   fi
891 fi
892 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
893   { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
894    { (exit 1); exit 1; }; }
895 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
896 ac_env_build_alias_set=${build_alias+set}
897 ac_env_build_alias_value=$build_alias
898 ac_cv_env_build_alias_set=${build_alias+set}
899 ac_cv_env_build_alias_value=$build_alias
900 ac_env_host_alias_set=${host_alias+set}
901 ac_env_host_alias_value=$host_alias
902 ac_cv_env_host_alias_set=${host_alias+set}
903 ac_cv_env_host_alias_value=$host_alias
904 ac_env_target_alias_set=${target_alias+set}
905 ac_env_target_alias_value=$target_alias
906 ac_cv_env_target_alias_set=${target_alias+set}
907 ac_cv_env_target_alias_value=$target_alias
908 ac_env_CXX_set=${CXX+set}
909 ac_env_CXX_value=$CXX
910 ac_cv_env_CXX_set=${CXX+set}
911 ac_cv_env_CXX_value=$CXX
912 ac_env_CXXFLAGS_set=${CXXFLAGS+set}
913 ac_env_CXXFLAGS_value=$CXXFLAGS
914 ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
915 ac_cv_env_CXXFLAGS_value=$CXXFLAGS
916 ac_env_LDFLAGS_set=${LDFLAGS+set}
917 ac_env_LDFLAGS_value=$LDFLAGS
918 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
919 ac_cv_env_LDFLAGS_value=$LDFLAGS
920 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
921 ac_env_CPPFLAGS_value=$CPPFLAGS
922 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
923 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
924 ac_env_CC_set=${CC+set}
925 ac_env_CC_value=$CC
926 ac_cv_env_CC_set=${CC+set}
927 ac_cv_env_CC_value=$CC
928 ac_env_CFLAGS_set=${CFLAGS+set}
929 ac_env_CFLAGS_value=$CFLAGS
930 ac_cv_env_CFLAGS_set=${CFLAGS+set}
931 ac_cv_env_CFLAGS_value=$CFLAGS
932 ac_env_CPP_set=${CPP+set}
933 ac_env_CPP_value=$CPP
934 ac_cv_env_CPP_set=${CPP+set}
935 ac_cv_env_CPP_value=$CPP
936 ac_env_CXXCPP_set=${CXXCPP+set}
937 ac_env_CXXCPP_value=$CXXCPP
938 ac_cv_env_CXXCPP_set=${CXXCPP+set}
939 ac_cv_env_CXXCPP_value=$CXXCPP
940 ac_env_F77_set=${F77+set}
941 ac_env_F77_value=$F77
942 ac_cv_env_F77_set=${F77+set}
943 ac_cv_env_F77_value=$F77
944 ac_env_FFLAGS_set=${FFLAGS+set}
945 ac_env_FFLAGS_value=$FFLAGS
946 ac_cv_env_FFLAGS_set=${FFLAGS+set}
947 ac_cv_env_FFLAGS_value=$FFLAGS
948
949 #
950 # Report the --help message.
951 #
952 if test "$ac_init_help" = "long"; then
953   # Omit some internal or obsolete options to make the list less imposing.
954   # This message is too long to be a string in the A/UX 3.1 sh.
955   cat <<_ACEOF
956 \`configure' configures [LLVM] [1.0] to adapt to many kinds of systems.
957
958 Usage: $0 [OPTION]... [VAR=VALUE]...
959
960 To assign environment variables (e.g., CC, CFLAGS...), specify them as
961 VAR=VALUE.  See below for descriptions of some of the useful variables.
962
963 Defaults for the options are specified in brackets.
964
965 Configuration:
966   -h, --help              display this help and exit
967       --help=short        display options specific to this package
968       --help=recursive    display the short help of all the included packages
969   -V, --version           display version information and exit
970   -q, --quiet, --silent   do not print \`checking...' messages
971       --cache-file=FILE   cache test results in FILE [disabled]
972   -C, --config-cache      alias for \`--cache-file=config.cache'
973   -n, --no-create         do not create output files
974       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
975
976 _ACEOF
977
978   cat <<_ACEOF
979 Installation directories:
980   --prefix=PREFIX         install architecture-independent files in PREFIX
981                           [$ac_default_prefix]
982   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
983                           [PREFIX]
984
985 By default, \`make install' will install all the files in
986 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
987 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
988 for instance \`--prefix=\$HOME'.
989
990 For better control, use the options below.
991
992 Fine tuning of the installation directories:
993   --bindir=DIR           user executables [EPREFIX/bin]
994   --sbindir=DIR          system admin executables [EPREFIX/sbin]
995   --libexecdir=DIR       program executables [EPREFIX/libexec]
996   --datadir=DIR          read-only architecture-independent data [PREFIX/share]
997   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
998   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
999   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1000   --libdir=DIR           object code libraries [EPREFIX/lib]
1001   --includedir=DIR       C header files [PREFIX/include]
1002   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1003   --infodir=DIR          info documentation [PREFIX/info]
1004   --mandir=DIR           man documentation [PREFIX/man]
1005 _ACEOF
1006
1007   cat <<\_ACEOF
1008
1009 System types:
1010   --build=BUILD     configure for building on BUILD [guessed]
1011   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1012   --target=TARGET   configure for building compilers for TARGET [HOST]
1013 _ACEOF
1014 fi
1015
1016 if test -n "$ac_init_help"; then
1017   case $ac_init_help in
1018      short | recursive ) echo "Configuration of [LLVM] [1.0]:";;
1019    esac
1020   cat <<\_ACEOF
1021
1022 Optional Features:
1023   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1024   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1025   --enable-shared[=PKGS]
1026                           build shared libraries [default=yes]
1027   --enable-static[=PKGS]
1028                           build static libraries [default=yes]
1029   --enable-fast-install[=PKGS]
1030                           optimize for fast installation [default=yes]
1031   --disable-libtool-lock  avoid locking (might break parallel builds)
1032   --enable-purify         Compile with purify (default is NO)
1033   --enable-optimized      Compile with optimizations enabled (default is NO)
1034   --enable-spec           Compile SPEC benchmarks (default is NO)
1035   --enable-precompiled_bytecode
1036                           Use pre-compiled bytecode (default is NO)
1037   --enable-llc_diffs      Enable LLC Diffs when testing (default is YES)
1038   --enable-jit            Enable Just In Time Compiling (default is YES)
1039
1040 Optional Packages:
1041   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1042   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1043   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1044   --with-pic              try to use only PIC/non-PIC objects [default=use
1045                           both]
1046   --with-tags[=TAGS]
1047                           include additional configurations [automatic]
1048   --with-spec             Location of SPEC benchmarks
1049   --with-llvmgccdir       Location of LLVM GCC front-end
1050   --with-bcrepos          Location of Bytecode Repository
1051   --with-papi             Location of PAPI
1052   --with-purify           Location of purify program
1053
1054 Some influential environment variables:
1055   CXX         C++ compiler command
1056   CXXFLAGS    C++ compiler flags
1057   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1058               nonstandard directory <lib dir>
1059   CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
1060               headers in a nonstandard directory <include dir>
1061   CC          C compiler command
1062   CFLAGS      C compiler flags
1063   CPP         C preprocessor
1064   CXXCPP      C++ preprocessor
1065   F77         Fortran 77 compiler command
1066   FFLAGS      Fortran 77 compiler flags
1067
1068 Use these variables to override the choices made by `configure' or to help
1069 it to find libraries and programs with nonstandard names/locations.
1070
1071 Report bugs to <llvmbugs@cs.uiuc.edu>.
1072 _ACEOF
1073 fi
1074
1075 if test "$ac_init_help" = "recursive"; then
1076   # If there are subdirs, report their specific --help.
1077   ac_popdir=`pwd`
1078   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1079     test -d $ac_dir || continue
1080     ac_builddir=.
1081
1082 if test "$ac_dir" != .; then
1083   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1084   # A "../" for each directory in $ac_dir_suffix.
1085   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1086 else
1087   ac_dir_suffix= ac_top_builddir=
1088 fi
1089
1090 case $srcdir in
1091   .)  # No --srcdir option.  We are building in place.
1092     ac_srcdir=.
1093     if test -z "$ac_top_builddir"; then
1094        ac_top_srcdir=.
1095     else
1096        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1097     fi ;;
1098   [\\/]* | ?:[\\/]* )  # Absolute path.
1099     ac_srcdir=$srcdir$ac_dir_suffix;
1100     ac_top_srcdir=$srcdir ;;
1101   *) # Relative path.
1102     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1103     ac_top_srcdir=$ac_top_builddir$srcdir ;;
1104 esac
1105 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
1106 # absolute.
1107 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
1108 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
1109 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
1110 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
1111
1112     cd $ac_dir
1113     # Check for guested configure; otherwise get Cygnus style configure.
1114     if test -f $ac_srcdir/configure.gnu; then
1115       echo
1116       $SHELL $ac_srcdir/configure.gnu  --help=recursive
1117     elif test -f $ac_srcdir/configure; then
1118       echo
1119       $SHELL $ac_srcdir/configure  --help=recursive
1120     elif test -f $ac_srcdir/configure.ac ||
1121            test -f $ac_srcdir/configure.in; then
1122       echo
1123       $ac_configure --help
1124     else
1125       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1126     fi
1127     cd $ac_popdir
1128   done
1129 fi
1130
1131 test -n "$ac_init_help" && exit 0
1132 if $ac_init_version; then
1133   cat <<\_ACEOF
1134 [LLVM] configure [1.0]
1135 generated by GNU Autoconf 2.57
1136
1137 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
1138 Free Software Foundation, Inc.
1139 This configure script is free software; the Free Software Foundation
1140 gives unlimited permission to copy, distribute and modify it.
1141 _ACEOF
1142   exit 0
1143 fi
1144 exec 5>config.log
1145 cat >&5 <<_ACEOF
1146 This file contains any messages produced by compilers while
1147 running configure, to aid debugging if configure makes a mistake.
1148
1149 It was created by [LLVM] $as_me [1.0], which was
1150 generated by GNU Autoconf 2.57.  Invocation command line was
1151
1152   $ $0 $@
1153
1154 _ACEOF
1155 {
1156 cat <<_ASUNAME
1157 ## --------- ##
1158 ## Platform. ##
1159 ## --------- ##
1160
1161 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1162 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1163 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1164 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1165 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1166
1167 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1168 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1169
1170 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1171 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1172 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1173 hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
1174 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1175 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1176 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1177
1178 _ASUNAME
1179
1180 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1181 for as_dir in $PATH
1182 do
1183   IFS=$as_save_IFS
1184   test -z "$as_dir" && as_dir=.
1185   echo "PATH: $as_dir"
1186 done
1187
1188 } >&5
1189
1190 cat >&5 <<_ACEOF
1191
1192
1193 ## ----------- ##
1194 ## Core tests. ##
1195 ## ----------- ##
1196
1197 _ACEOF
1198
1199
1200 # Keep a trace of the command line.
1201 # Strip out --no-create and --no-recursion so they do not pile up.
1202 # Strip out --silent because we don't want to record it for future runs.
1203 # Also quote any args containing shell meta-characters.
1204 # Make two passes to allow for proper duplicate-argument suppression.
1205 ac_configure_args=
1206 ac_configure_args0=
1207 ac_configure_args1=
1208 ac_sep=
1209 ac_must_keep_next=false
1210 for ac_pass in 1 2
1211 do
1212   for ac_arg
1213   do
1214     case $ac_arg in
1215     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1216     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1217     | -silent | --silent | --silen | --sile | --sil)
1218       continue ;;
1219     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1220       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1221     esac
1222     case $ac_pass in
1223     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1224     2)
1225       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1226       if test $ac_must_keep_next = true; then
1227         ac_must_keep_next=false # Got value, back to normal.
1228       else
1229         case $ac_arg in
1230           *=* | --config-cache | -C | -disable-* | --disable-* \
1231           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1232           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1233           | -with-* | --with-* | -without-* | --without-* | --x)
1234             case "$ac_configure_args0 " in
1235               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1236             esac
1237             ;;
1238           -* ) ac_must_keep_next=true ;;
1239         esac
1240       fi
1241       ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1242       # Get rid of the leading space.
1243       ac_sep=" "
1244       ;;
1245     esac
1246   done
1247 done
1248 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1249 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1250
1251 # When interrupted or exit'd, cleanup temporary files, and complete
1252 # config.log.  We remove comments because anyway the quotes in there
1253 # would cause problems or look ugly.
1254 # WARNING: Be sure not to use single quotes in there, as some shells,
1255 # such as our DU 5.0 friend, will then `close' the trap.
1256 trap 'exit_status=$?
1257   # Save into config.log some information that might help in debugging.
1258   {
1259     echo
1260
1261     cat <<\_ASBOX
1262 ## ---------------- ##
1263 ## Cache variables. ##
1264 ## ---------------- ##
1265 _ASBOX
1266     echo
1267     # The following way of writing the cache mishandles newlines in values,
1268 {
1269   (set) 2>&1 |
1270     case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1271     *ac_space=\ *)
1272       sed -n \
1273         "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1274           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1275       ;;
1276     *)
1277       sed -n \
1278         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1279       ;;
1280     esac;
1281 }
1282     echo
1283
1284     cat <<\_ASBOX
1285 ## ----------------- ##
1286 ## Output variables. ##
1287 ## ----------------- ##
1288 _ASBOX
1289     echo
1290     for ac_var in $ac_subst_vars
1291     do
1292       eval ac_val=$`echo $ac_var`
1293       echo "$ac_var='"'"'$ac_val'"'"'"
1294     done | sort
1295     echo
1296
1297     if test -n "$ac_subst_files"; then
1298       cat <<\_ASBOX
1299 ## ------------- ##
1300 ## Output files. ##
1301 ## ------------- ##
1302 _ASBOX
1303       echo
1304       for ac_var in $ac_subst_files
1305       do
1306         eval ac_val=$`echo $ac_var`
1307         echo "$ac_var='"'"'$ac_val'"'"'"
1308       done | sort
1309       echo
1310     fi
1311
1312     if test -s confdefs.h; then
1313       cat <<\_ASBOX
1314 ## ----------- ##
1315 ## confdefs.h. ##
1316 ## ----------- ##
1317 _ASBOX
1318       echo
1319       sed "/^$/d" confdefs.h | sort
1320       echo
1321     fi
1322     test "$ac_signal" != 0 &&
1323       echo "$as_me: caught signal $ac_signal"
1324     echo "$as_me: exit $exit_status"
1325   } >&5
1326   rm -f core core.* *.core &&
1327   rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1328     exit $exit_status
1329      ' 0
1330 for ac_signal in 1 2 13 15; do
1331   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1332 done
1333 ac_signal=0
1334
1335 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1336 rm -rf conftest* confdefs.h
1337 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1338 echo >confdefs.h
1339
1340 # Predefined preprocessor variables.
1341
1342 cat >>confdefs.h <<_ACEOF
1343 #define PACKAGE_NAME "$PACKAGE_NAME"
1344 _ACEOF
1345
1346
1347 cat >>confdefs.h <<_ACEOF
1348 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1349 _ACEOF
1350
1351
1352 cat >>confdefs.h <<_ACEOF
1353 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1354 _ACEOF
1355
1356
1357 cat >>confdefs.h <<_ACEOF
1358 #define PACKAGE_STRING "$PACKAGE_STRING"
1359 _ACEOF
1360
1361
1362 cat >>confdefs.h <<_ACEOF
1363 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1364 _ACEOF
1365
1366
1367 # Let the site file select an alternate cache file if it wants to.
1368 # Prefer explicitly selected file to automatically selected ones.
1369 if test -z "$CONFIG_SITE"; then
1370   if test "x$prefix" != xNONE; then
1371     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1372   else
1373     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1374   fi
1375 fi
1376 for ac_site_file in $CONFIG_SITE; do
1377   if test -r "$ac_site_file"; then
1378     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1379 echo "$as_me: loading site script $ac_site_file" >&6;}
1380     sed 's/^/| /' "$ac_site_file" >&5
1381     . "$ac_site_file"
1382   fi
1383 done
1384
1385 if test -r "$cache_file"; then
1386   # Some versions of bash will fail to source /dev/null (special
1387   # files actually), so we avoid doing that.
1388   if test -f "$cache_file"; then
1389     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1390 echo "$as_me: loading cache $cache_file" >&6;}
1391     case $cache_file in
1392       [\\/]* | ?:[\\/]* ) . $cache_file;;
1393       *)                      . ./$cache_file;;
1394     esac
1395   fi
1396 else
1397   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1398 echo "$as_me: creating cache $cache_file" >&6;}
1399   >$cache_file
1400 fi
1401
1402 # Check that the precious variables saved in the cache have kept the same
1403 # value.
1404 ac_cache_corrupted=false
1405 for ac_var in `(set) 2>&1 |
1406                sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1407   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1408   eval ac_new_set=\$ac_env_${ac_var}_set
1409   eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1410   eval ac_new_val="\$ac_env_${ac_var}_value"
1411   case $ac_old_set,$ac_new_set in
1412     set,)
1413       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1414 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1415       ac_cache_corrupted=: ;;
1416     ,set)
1417       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1418 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1419       ac_cache_corrupted=: ;;
1420     ,);;
1421     *)
1422       if test "x$ac_old_val" != "x$ac_new_val"; then
1423         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1424 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1425         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1426 echo "$as_me:   former value:  $ac_old_val" >&2;}
1427         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1428 echo "$as_me:   current value: $ac_new_val" >&2;}
1429         ac_cache_corrupted=:
1430       fi;;
1431   esac
1432   # Pass precious variables to config.status.
1433   if test "$ac_new_set" = set; then
1434     case $ac_new_val in
1435     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1436       ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1437     *) ac_arg=$ac_var=$ac_new_val ;;
1438     esac
1439     case " $ac_configure_args " in
1440       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1441       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1442     esac
1443   fi
1444 done
1445 if $ac_cache_corrupted; then
1446   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1447 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1448   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1449 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1450    { (exit 1); exit 1; }; }
1451 fi
1452
1453 ac_ext=c
1454 ac_cpp='$CPP $CPPFLAGS'
1455 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1456 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1457 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1458
1459
1460
1461
1462
1463
1464
1465
1466
1467
1468
1469
1470
1471
1472
1473
1474
1475
1476
1477
1478
1479
1480
1481
1482
1483
1484
1485
1486 ac_aux_dir=
1487 for ac_dir in autoconf $srcdir/autoconf; do
1488   if test -f $ac_dir/install-sh; then
1489     ac_aux_dir=$ac_dir
1490     ac_install_sh="$ac_aux_dir/install-sh -c"
1491     break
1492   elif test -f $ac_dir/install.sh; then
1493     ac_aux_dir=$ac_dir
1494     ac_install_sh="$ac_aux_dir/install.sh -c"
1495     break
1496   elif test -f $ac_dir/shtool; then
1497     ac_aux_dir=$ac_dir
1498     ac_install_sh="$ac_aux_dir/shtool install -c"
1499     break
1500   fi
1501 done
1502 if test -z "$ac_aux_dir"; then
1503   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf $srcdir/autoconf" >&5
1504 echo "$as_me: error: cannot find install-sh or install.sh in autoconf $srcdir/autoconf" >&2;}
1505    { (exit 1); exit 1; }; }
1506 fi
1507 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1508 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1509 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1510
1511
1512 if test ${srcdir} != "."
1513 then
1514         if test -f ${srcdir}/include/Config/config.h
1515         then
1516                 { { echo "$as_me:$LINENO: error: Already configured in ${srcdir}" >&5
1517 echo "$as_me: error: Already configured in ${srcdir}" >&2;}
1518    { (exit 1); exit 1; }; }
1519         fi
1520 fi
1521
1522           ac_config_headers="$ac_config_headers include/Config/config.h"
1523
1524           ac_config_commands="$ac_config_commands Makefile"
1525
1526
1527           ac_config_commands="$ac_config_commands Makefile.common"
1528
1529
1530           ac_config_commands="$ac_config_commands Makefile.rules"
1531
1532
1533           ac_config_commands="$ac_config_commands lib/Makefile"
1534
1535
1536           ac_config_commands="$ac_config_commands lib/Analysis/Makefile"
1537
1538
1539           ac_config_commands="$ac_config_commands lib/Analysis/DataStructure/Makefile"
1540
1541
1542           ac_config_commands="$ac_config_commands lib/Analysis/IPA/Makefile"
1543
1544
1545           ac_config_commands="$ac_config_commands lib/Analysis/LiveVar/Makefile"
1546
1547
1548           ac_config_commands="$ac_config_commands lib/AsmParser/Makefile"
1549
1550
1551           ac_config_commands="$ac_config_commands lib/Bytecode/Makefile"
1552
1553
1554           ac_config_commands="$ac_config_commands lib/Bytecode/Reader/Makefile"
1555
1556
1557           ac_config_commands="$ac_config_commands lib/Bytecode/Writer/Makefile"
1558
1559
1560           ac_config_commands="$ac_config_commands lib/CWriter/Makefile"
1561
1562
1563           ac_config_commands="$ac_config_commands lib/CodeGen/Makefile"
1564
1565
1566           ac_config_commands="$ac_config_commands lib/CodeGen/InstrSched/Makefile"
1567
1568
1569           ac_config_commands="$ac_config_commands lib/CodeGen/InstrSelection/Makefile"
1570
1571
1572           ac_config_commands="$ac_config_commands lib/CodeGen/ModuloScheduling/Makefile"
1573
1574
1575           ac_config_commands="$ac_config_commands lib/CodeGen/RegAlloc/Makefile"
1576
1577
1578           ac_config_commands="$ac_config_commands lib/CodeGen/SelectionDAG/Makefile"
1579
1580
1581           ac_config_commands="$ac_config_commands lib/ExecutionEngine/Makefile"
1582
1583
1584           ac_config_commands="$ac_config_commands lib/ExecutionEngine/Interpreter/Makefile"
1585
1586
1587           ac_config_commands="$ac_config_commands lib/ExecutionEngine/JIT/Makefile"
1588
1589
1590           ac_config_commands="$ac_config_commands lib/Support/Makefile"
1591
1592
1593           ac_config_commands="$ac_config_commands lib/Target/Makefile"
1594
1595
1596           ac_config_commands="$ac_config_commands lib/Target/Sparc/Makefile"
1597
1598
1599           ac_config_commands="$ac_config_commands lib/Target/X86/Makefile"
1600
1601
1602           ac_config_commands="$ac_config_commands lib/Transforms/Makefile"
1603
1604
1605           ac_config_commands="$ac_config_commands lib/Transforms/Hello/Makefile"
1606
1607
1608           ac_config_commands="$ac_config_commands lib/Transforms/IPO/Makefile"
1609
1610
1611           ac_config_commands="$ac_config_commands lib/Transforms/Instrumentation/Makefile"
1612
1613
1614           ac_config_commands="$ac_config_commands lib/Transforms/Instrumentation/ProfilePaths/Makefile"
1615
1616
1617           ac_config_commands="$ac_config_commands lib/Transforms/Scalar/Makefile"
1618
1619
1620           ac_config_commands="$ac_config_commands lib/Transforms/Utils/Makefile"
1621
1622
1623           ac_config_commands="$ac_config_commands lib/VMCore/Makefile"
1624
1625
1626           ac_config_commands="$ac_config_commands runtime/Makefile"
1627
1628
1629           ac_config_commands="$ac_config_commands runtime/GCCLibraries/Makefile"
1630
1631
1632           ac_config_commands="$ac_config_commands runtime/GCCLibraries/crtend/Makefile"
1633
1634
1635           ac_config_commands="$ac_config_commands runtime/GCCLibraries/libc/Makefile"
1636
1637
1638           ac_config_commands="$ac_config_commands runtime/GCCLibraries/libcurses/Makefile"
1639
1640
1641           ac_config_commands="$ac_config_commands runtime/GCCLibraries/libg/Makefile"
1642
1643
1644           ac_config_commands="$ac_config_commands runtime/GCCLibraries/libgcc/Makefile"
1645
1646
1647           ac_config_commands="$ac_config_commands runtime/GCCLibraries/libm/Makefile"
1648
1649
1650           ac_config_commands="$ac_config_commands runtime/GCCLibraries/libmalloc/Makefile"
1651
1652
1653           ac_config_commands="$ac_config_commands runtime/GCCLibraries/libtermcap/Makefile"
1654
1655
1656           ac_config_commands="$ac_config_commands runtime/GCCLibraries/libucb/Makefile"
1657
1658
1659           ac_config_commands="$ac_config_commands runtime/GCCLibraries/libutempter/Makefile"
1660
1661
1662           ac_config_commands="$ac_config_commands runtime/GCCLibraries/libutil/Makefile"
1663
1664
1665           ac_config_commands="$ac_config_commands runtime/libdummy/Makefile"
1666
1667
1668           ac_config_commands="$ac_config_commands runtime/libtrace/Makefile"
1669
1670
1671           ac_config_commands="$ac_config_commands test/Makefile"
1672
1673
1674           ac_config_commands="$ac_config_commands test/Makefile.tests"
1675
1676
1677           ac_config_commands="$ac_config_commands test/Programs/Makefile"
1678
1679
1680           ac_config_commands="$ac_config_commands test/Programs/Makefile.programs"
1681
1682
1683           ac_config_commands="$ac_config_commands test/Programs/TEST.aa.Makefile"
1684
1685
1686           ac_config_commands="$ac_config_commands test/Programs/TEST.dsgraph.report"
1687
1688
1689           ac_config_commands="$ac_config_commands test/Programs/TEST.micro.report"
1690
1691
1692           ac_config_commands="$ac_config_commands test/Programs/TEST.aa.report"
1693
1694
1695           ac_config_commands="$ac_config_commands test/Programs/TEST.example.Makefile"
1696
1697
1698           ac_config_commands="$ac_config_commands test/Programs/TEST.nightly.Makefile"
1699
1700
1701           ac_config_commands="$ac_config_commands test/Programs/TEST.buildrepo.Makefile"
1702
1703
1704           ac_config_commands="$ac_config_commands test/Programs/TEST.jit.Makefile"
1705
1706
1707           ac_config_commands="$ac_config_commands test/Programs/TEST.nightly.report"
1708
1709
1710           ac_config_commands="$ac_config_commands test/Programs/TEST.dsgraph.Makefile"
1711
1712
1713           ac_config_commands="$ac_config_commands test/Programs/TEST.jit.report"
1714
1715
1716           ac_config_commands="$ac_config_commands test/Programs/TEST.typesafe.Makefile"
1717
1718
1719           ac_config_commands="$ac_config_commands test/Programs/TEST.dsgraph.gnuplot"
1720
1721
1722           ac_config_commands="$ac_config_commands test/Programs/TEST.micro.Makefile"
1723
1724
1725           ac_config_commands="$ac_config_commands test/Programs/External/Makefile"
1726
1727
1728           ac_config_commands="$ac_config_commands test/Programs/External/SPEC/Makefile"
1729
1730
1731           ac_config_commands="$ac_config_commands test/Programs/External/SPEC/Makefile.spec"
1732
1733
1734           ac_config_commands="$ac_config_commands test/Programs/External/SPEC/CFP2000/Makefile"
1735
1736
1737           ac_config_commands="$ac_config_commands test/Programs/External/SPEC/CFP2000/179.art/Makefile"
1738
1739
1740           ac_config_commands="$ac_config_commands test/Programs/External/SPEC/CFP2000/183.equake/Makefile"
1741
1742
1743           ac_config_commands="$ac_config_commands test/Programs/External/SPEC/CFP2000/188.ammp/Makefile"
1744
1745
1746           ac_config_commands="$ac_config_commands test/Programs/External/SPEC/CINT2000/Makefile"
1747
1748
1749           ac_config_commands="$ac_config_commands test/Programs/External/SPEC/CINT2000/164.gzip/Makefile"
1750
1751
1752           ac_config_commands="$ac_config_commands test/Programs/External/SPEC/CINT2000/175.vpr/Makefile"
1753
1754
1755           ac_config_commands="$ac_config_commands test/Programs/External/SPEC/CINT2000/176.gcc/Makefile"
1756
1757
1758           ac_config_commands="$ac_config_commands test/Programs/External/SPEC/CINT2000/181.mcf/Makefile"
1759
1760
1761           ac_config_commands="$ac_config_commands test/Programs/External/SPEC/CINT2000/186.crafty/Makefile"
1762
1763
1764           ac_config_commands="$ac_config_commands test/Programs/External/SPEC/CINT2000/197.parser/Makefile"
1765
1766
1767           ac_config_commands="$ac_config_commands test/Programs/External/SPEC/CINT2000/254.gap/Makefile"
1768
1769
1770           ac_config_commands="$ac_config_commands test/Programs/External/SPEC/CINT2000/255.vortex/Makefile"
1771
1772
1773           ac_config_commands="$ac_config_commands test/Programs/External/SPEC/CINT2000/256.bzip2/Makefile"
1774
1775
1776           ac_config_commands="$ac_config_commands test/Programs/External/SPEC/CINT2000/300.twolf/Makefile"
1777
1778
1779           ac_config_commands="$ac_config_commands test/Programs/LLVMSource/Makefile"
1780
1781
1782           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Makefile"
1783
1784
1785           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Makefile.multisrc"
1786
1787
1788           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Applications/Makefile"
1789
1790
1791           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Applications/Burg/Makefile"
1792
1793
1794           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Applications/aha/Makefile"
1795
1796
1797           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Applications/sgefa/Makefile"
1798
1799
1800           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/Makefile"
1801
1802
1803           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/Fhourstones/Makefile"
1804
1805
1806           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/McCat/Makefile"
1807
1808
1809           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/McCat/01-qbsort/Makefile"
1810
1811
1812           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/McCat/03-testtrie/Makefile"
1813
1814
1815           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/McCat/04-bisect/Makefile"
1816
1817
1818           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/McCat/05-eks/Makefile"
1819
1820
1821           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/McCat/08-main/Makefile"
1822
1823
1824           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/McCat/09-vor/Makefile"
1825
1826
1827           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/McCat/12-IOtest/Makefile"
1828
1829
1830           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/McCat/15-trie/Makefile"
1831
1832
1833           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/McCat/17-bintr/Makefile"
1834
1835
1836           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/McCat/18-imp/Makefile"
1837
1838
1839           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/Olden/Makefile"
1840
1841
1842           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/Olden/bh/Makefile"
1843
1844
1845           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/Olden/bisort/Makefile"
1846
1847
1848           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/Olden/em3d/Makefile"
1849
1850
1851           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/Olden/health/Makefile"
1852
1853
1854           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/Olden/mst/Makefile"
1855
1856
1857           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/Olden/perimeter/Makefile"
1858
1859
1860           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/Olden/power/Makefile"
1861
1862
1863           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/Olden/treeadd/Makefile"
1864
1865
1866           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/Olden/tsp/Makefile"
1867
1868
1869           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/Olden/voronoi/Makefile"
1870
1871
1872           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/OptimizerEval/Makefile"
1873
1874
1875           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/Ptrdist/Makefile"
1876
1877
1878           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/Ptrdist/anagram/Makefile"
1879
1880
1881           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/Ptrdist/bc/Makefile"
1882
1883
1884           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/Ptrdist/ft/Makefile"
1885
1886
1887           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/Ptrdist/ks/Makefile"
1888
1889
1890           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/Ptrdist/yacr2/Makefile"
1891
1892
1893           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/llubenchmark/Makefile"
1894
1895
1896           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/sim/Makefile"
1897
1898
1899           ac_config_commands="$ac_config_commands test/Programs/NoSource/Makefile"
1900
1901
1902           ac_config_commands="$ac_config_commands test/Programs/NoSource/Flex/Makefile"
1903
1904
1905           ac_config_commands="$ac_config_commands test/Programs/NoSource/Larn/Makefile"
1906
1907
1908           ac_config_commands="$ac_config_commands test/Programs/NoSource/Moria-5.5.2/Makefile"
1909
1910
1911           ac_config_commands="$ac_config_commands test/Programs/NoSource/Povray31/Makefile"
1912
1913
1914           ac_config_commands="$ac_config_commands test/Programs/NoSource/m4/Makefile"
1915
1916
1917           ac_config_commands="$ac_config_commands test/Programs/SingleSource/Makefile"
1918
1919
1920           ac_config_commands="$ac_config_commands test/Programs/SingleSource/Makefile.singlesrc"
1921
1922
1923           ac_config_commands="$ac_config_commands test/Programs/SingleSource/Gizmos/Makefile"
1924
1925
1926           ac_config_commands="$ac_config_commands test/Programs/SingleSource/Benchmarks/Makefile"
1927
1928
1929           ac_config_commands="$ac_config_commands test/Programs/SingleSource/Benchmarks/Dhrystone/Makefile"
1930
1931
1932           ac_config_commands="$ac_config_commands test/Programs/SingleSource/Benchmarks/Shootout/Makefile"
1933
1934
1935           ac_config_commands="$ac_config_commands test/Programs/SingleSource/Benchmarks/Stanford/Makefile"
1936
1937
1938           ac_config_commands="$ac_config_commands test/Programs/SingleSource/Benchmarks/Misc/Makefile"
1939
1940
1941           ac_config_commands="$ac_config_commands test/Programs/SingleSource/CustomChecked/Makefile"
1942
1943
1944           ac_config_commands="$ac_config_commands test/Programs/SingleSource/UnitTests/Makefile"
1945
1946
1947           ac_config_commands="$ac_config_commands test/Programs/SingleSource/UnitTests/SetjmpLongjmp/Makefile"
1948
1949
1950           ac_config_commands="$ac_config_commands tools/Makefile"
1951
1952
1953           ac_config_commands="$ac_config_commands tools/analyze/Makefile"
1954
1955
1956           ac_config_commands="$ac_config_commands tools/bugpoint/Makefile"
1957
1958
1959           ac_config_commands="$ac_config_commands tools/extract/Makefile"
1960
1961
1962           ac_config_commands="$ac_config_commands tools/gccas/Makefile"
1963
1964
1965           ac_config_commands="$ac_config_commands tools/gccld/Makefile"
1966
1967
1968           ac_config_commands="$ac_config_commands tools/link/Makefile"
1969
1970
1971           ac_config_commands="$ac_config_commands tools/llc/Makefile"
1972
1973
1974           ac_config_commands="$ac_config_commands tools/lli/Makefile"
1975
1976
1977           ac_config_commands="$ac_config_commands tools/opt/Makefile"
1978
1979
1980           ac_config_commands="$ac_config_commands tools/llee/Makefile"
1981
1982
1983           ac_config_commands="$ac_config_commands tools/llvm-as/Makefile"
1984
1985
1986           ac_config_commands="$ac_config_commands tools/llvm-ar/Makefile"
1987
1988
1989           ac_config_commands="$ac_config_commands tools/llvm-dis/Makefile"
1990
1991
1992           ac_config_commands="$ac_config_commands utils/Makefile"
1993
1994
1995           ac_config_commands="$ac_config_commands utils/Burg/Makefile"
1996
1997
1998           ac_config_commands="$ac_config_commands utils/Burg/Doc/Makefile"
1999
2000
2001           ac_config_commands="$ac_config_commands utils/TableGen/Makefile"
2002
2003
2004           ac_config_commands="$ac_config_commands www/docs/Makefile"
2005
2006
2007           ac_config_commands="$ac_config_commands projects/Makefile"
2008
2009
2010           ac_config_commands="$ac_config_commands projects/sample/Makefile"
2011
2012
2013           ac_config_commands="$ac_config_commands projects/sample/Makefile.common"
2014
2015
2016           ac_config_commands="$ac_config_commands projects/sample/Makefile.config"
2017
2018
2019           ac_config_commands="$ac_config_commands projects/sample/lib/Makefile"
2020
2021
2022           ac_config_commands="$ac_config_commands projects/sample/lib/sample/Makefile"
2023
2024
2025           ac_config_commands="$ac_config_commands projects/sample/tools/Makefile"
2026
2027
2028           ac_config_commands="$ac_config_commands projects/sample/tools/sample/Makefile"
2029
2030
2031           ac_config_commands="$ac_config_commands projects/ModuleMaker/Makefile"
2032
2033
2034           ac_config_commands="$ac_config_commands projects/ModuleMaker/Makefile.common"
2035
2036
2037           ac_config_commands="$ac_config_commands projects/ModuleMaker/tools/Makefile"
2038
2039
2040           ac_config_commands="$ac_config_commands projects/ModuleMaker/tools/ModuleMaker/Makefile"
2041
2042
2043
2044
2045 # Find a good install program.  We prefer a C program (faster),
2046 # so one script is as good as another.  But avoid the broken or
2047 # incompatible versions:
2048 # SysV /etc/install, /usr/sbin/install
2049 # SunOS /usr/etc/install
2050 # IRIX /sbin/install
2051 # AIX /bin/install
2052 # AmigaOS /C/install, which installs bootblocks on floppy discs
2053 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2054 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2055 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2056 # ./install, which can be erroneously created by make from ./install.sh.
2057 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2058 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
2059 if test -z "$INSTALL"; then
2060 if test "${ac_cv_path_install+set}" = set; then
2061   echo $ECHO_N "(cached) $ECHO_C" >&6
2062 else
2063   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2064 for as_dir in $PATH
2065 do
2066   IFS=$as_save_IFS
2067   test -z "$as_dir" && as_dir=.
2068   # Account for people who put trailing slashes in PATH elements.
2069 case $as_dir/ in
2070   ./ | .// | /cC/* | \
2071   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2072   /usr/ucb/* ) ;;
2073   *)
2074     # OSF1 and SCO ODT 3.0 have their own names for install.
2075     # Don't use installbsd from OSF since it installs stuff as root
2076     # by default.
2077     for ac_prog in ginstall scoinst install; do
2078       for ac_exec_ext in '' $ac_executable_extensions; do
2079         if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2080           if test $ac_prog = install &&
2081             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2082             # AIX install.  It has an incompatible calling convention.
2083             :
2084           elif test $ac_prog = install &&
2085             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2086             # program-specific install script used by HP pwplus--don't use.
2087             :
2088           else
2089             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2090             break 3
2091           fi
2092         fi
2093       done
2094     done
2095     ;;
2096 esac
2097 done
2098
2099
2100 fi
2101   if test "${ac_cv_path_install+set}" = set; then
2102     INSTALL=$ac_cv_path_install
2103   else
2104     # As a last resort, use the slow shell script.  We don't cache a
2105     # path for INSTALL within a source directory, because that will
2106     # break other packages using the cache if that directory is
2107     # removed, or if the path is relative.
2108     INSTALL=$ac_install_sh
2109   fi
2110 fi
2111 echo "$as_me:$LINENO: result: $INSTALL" >&5
2112 echo "${ECHO_T}$INSTALL" >&6
2113
2114 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2115 # It thinks the first close brace ends the variable substitution.
2116 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2117
2118 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2119
2120 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2121
2122
2123 # Make sure we can run config.sub.
2124 $ac_config_sub sun4 >/dev/null 2>&1 ||
2125   { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
2126 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
2127    { (exit 1); exit 1; }; }
2128
2129 echo "$as_me:$LINENO: checking build system type" >&5
2130 echo $ECHO_N "checking build system type... $ECHO_C" >&6
2131 if test "${ac_cv_build+set}" = set; then
2132   echo $ECHO_N "(cached) $ECHO_C" >&6
2133 else
2134   ac_cv_build_alias=$build_alias
2135 test -z "$ac_cv_build_alias" &&
2136   ac_cv_build_alias=`$ac_config_guess`
2137 test -z "$ac_cv_build_alias" &&
2138   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2139 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2140    { (exit 1); exit 1; }; }
2141 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
2142   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
2143 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
2144    { (exit 1); exit 1; }; }
2145
2146 fi
2147 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2148 echo "${ECHO_T}$ac_cv_build" >&6
2149 build=$ac_cv_build
2150 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
2151 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
2152 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
2153
2154
2155 echo "$as_me:$LINENO: checking host system type" >&5
2156 echo $ECHO_N "checking host system type... $ECHO_C" >&6
2157 if test "${ac_cv_host+set}" = set; then
2158   echo $ECHO_N "(cached) $ECHO_C" >&6
2159 else
2160   ac_cv_host_alias=$host_alias
2161 test -z "$ac_cv_host_alias" &&
2162   ac_cv_host_alias=$ac_cv_build_alias
2163 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
2164   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
2165 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
2166    { (exit 1); exit 1; }; }
2167
2168 fi
2169 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2170 echo "${ECHO_T}$ac_cv_host" >&6
2171 host=$ac_cv_host
2172 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
2173 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
2174 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
2175
2176
2177 echo "$as_me:$LINENO: checking target system type" >&5
2178 echo $ECHO_N "checking target system type... $ECHO_C" >&6
2179 if test "${ac_cv_target+set}" = set; then
2180   echo $ECHO_N "(cached) $ECHO_C" >&6
2181 else
2182   ac_cv_target_alias=$target_alias
2183 test "x$ac_cv_target_alias" = "x" &&
2184   ac_cv_target_alias=$ac_cv_host_alias
2185 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
2186   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
2187 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
2188    { (exit 1); exit 1; }; }
2189
2190 fi
2191 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
2192 echo "${ECHO_T}$ac_cv_target" >&6
2193 target=$ac_cv_target
2194 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
2195 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
2196 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
2197
2198
2199 # The aliases save the names the user supplied, while $host etc.
2200 # will get canonicalized.
2201 test -n "$target_alias" &&
2202   test "$program_prefix$program_suffix$program_transform_name" = \
2203     NONENONEs,x,x, &&
2204   program_prefix=${target_alias}-
2205
2206 case $build in
2207         *i*86*)  OS=Linux
2208
2209                  LLVMGCCDIR=/home/vadve/lattner/local/x86/llvm-gcc/
2210
2211                  ;;
2212
2213         *sparc*) OS=SunOS
2214
2215                  LLVMGCCDIR=/home/vadve/lattner/local/sparc/llvm-gcc/
2216
2217                  ;;
2218
2219         *)       OS=Unknown
2220
2221                  ;;
2222 esac
2223
2224 case $target in
2225         *sparc*solaris*)  target=sparcv9-sun-solaris2.8
2226
2227                           ;;
2228 esac
2229
2230 case $target in
2231         *i*86*)           ARCH=x86
2232
2233                           ;;
2234         *sparc*solaris*)  ARCH=Sparc
2235
2236                           ;;
2237 esac
2238
2239
2240 ac_ext=cc
2241 ac_cpp='$CXXCPP $CPPFLAGS'
2242 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2243 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2244 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2245 if test -n "$ac_tool_prefix"; then
2246   for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2247   do
2248     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2249 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2250 echo "$as_me:$LINENO: checking for $ac_word" >&5
2251 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2252 if test "${ac_cv_prog_CXX+set}" = set; then
2253   echo $ECHO_N "(cached) $ECHO_C" >&6
2254 else
2255   if test -n "$CXX"; then
2256   ac_cv_prog_CXX="$CXX" # Let the user override the test.
2257 else
2258 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2259 for as_dir in $PATH
2260 do
2261   IFS=$as_save_IFS
2262   test -z "$as_dir" && as_dir=.
2263   for ac_exec_ext in '' $ac_executable_extensions; do
2264   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2265     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2266     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2267     break 2
2268   fi
2269 done
2270 done
2271
2272 fi
2273 fi
2274 CXX=$ac_cv_prog_CXX
2275 if test -n "$CXX"; then
2276   echo "$as_me:$LINENO: result: $CXX" >&5
2277 echo "${ECHO_T}$CXX" >&6
2278 else
2279   echo "$as_me:$LINENO: result: no" >&5
2280 echo "${ECHO_T}no" >&6
2281 fi
2282
2283     test -n "$CXX" && break
2284   done
2285 fi
2286 if test -z "$CXX"; then
2287   ac_ct_CXX=$CXX
2288   for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2289 do
2290   # Extract the first word of "$ac_prog", so it can be a program name with args.
2291 set dummy $ac_prog; ac_word=$2
2292 echo "$as_me:$LINENO: checking for $ac_word" >&5
2293 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2294 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2295   echo $ECHO_N "(cached) $ECHO_C" >&6
2296 else
2297   if test -n "$ac_ct_CXX"; then
2298   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2299 else
2300 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2301 for as_dir in $PATH
2302 do
2303   IFS=$as_save_IFS
2304   test -z "$as_dir" && as_dir=.
2305   for ac_exec_ext in '' $ac_executable_extensions; do
2306   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2307     ac_cv_prog_ac_ct_CXX="$ac_prog"
2308     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2309     break 2
2310   fi
2311 done
2312 done
2313
2314 fi
2315 fi
2316 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2317 if test -n "$ac_ct_CXX"; then
2318   echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2319 echo "${ECHO_T}$ac_ct_CXX" >&6
2320 else
2321   echo "$as_me:$LINENO: result: no" >&5
2322 echo "${ECHO_T}no" >&6
2323 fi
2324
2325   test -n "$ac_ct_CXX" && break
2326 done
2327 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
2328
2329   CXX=$ac_ct_CXX
2330 fi
2331
2332
2333 # Provide some information about the compiler.
2334 echo "$as_me:$LINENO:" \
2335      "checking for C++ compiler version" >&5
2336 ac_compiler=`set X $ac_compile; echo $2`
2337 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2338   (eval $ac_compiler --version </dev/null >&5) 2>&5
2339   ac_status=$?
2340   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2341   (exit $ac_status); }
2342 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2343   (eval $ac_compiler -v </dev/null >&5) 2>&5
2344   ac_status=$?
2345   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2346   (exit $ac_status); }
2347 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2348   (eval $ac_compiler -V </dev/null >&5) 2>&5
2349   ac_status=$?
2350   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2351   (exit $ac_status); }
2352
2353 cat >conftest.$ac_ext <<_ACEOF
2354 #line $LINENO "configure"
2355 /* confdefs.h.  */
2356 _ACEOF
2357 cat confdefs.h >>conftest.$ac_ext
2358 cat >>conftest.$ac_ext <<_ACEOF
2359 /* end confdefs.h.  */
2360
2361 int
2362 main ()
2363 {
2364
2365   ;
2366   return 0;
2367 }
2368 _ACEOF
2369 ac_clean_files_save=$ac_clean_files
2370 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2371 # Try to create an executable without -o first, disregard a.out.
2372 # It will help us diagnose broken compilers, and finding out an intuition
2373 # of exeext.
2374 echo "$as_me:$LINENO: checking for C++ compiler default output" >&5
2375 echo $ECHO_N "checking for C++ compiler default output... $ECHO_C" >&6
2376 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2377 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2378   (eval $ac_link_default) 2>&5
2379   ac_status=$?
2380   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2381   (exit $ac_status); }; then
2382   # Find the output, starting from the most likely.  This scheme is
2383 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2384 # resort.
2385
2386 # Be careful to initialize this variable, since it used to be cached.
2387 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2388 ac_cv_exeext=
2389 # b.out is created by i960 compilers.
2390 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2391 do
2392   test -f "$ac_file" || continue
2393   case $ac_file in
2394     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2395         ;;
2396     conftest.$ac_ext )
2397         # This is the source file.
2398         ;;
2399     [ab].out )
2400         # We found the default executable, but exeext='' is most
2401         # certainly right.
2402         break;;
2403     *.* )
2404         ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2405         # FIXME: I believe we export ac_cv_exeext for Libtool,
2406         # but it would be cool to find out if it's true.  Does anybody
2407         # maintain Libtool? --akim.
2408         export ac_cv_exeext
2409         break;;
2410     * )
2411         break;;
2412   esac
2413 done
2414 else
2415   echo "$as_me: failed program was:" >&5
2416 sed 's/^/| /' conftest.$ac_ext >&5
2417
2418 { { echo "$as_me:$LINENO: error: C++ compiler cannot create executables
2419 See \`config.log' for more details." >&5
2420 echo "$as_me: error: C++ compiler cannot create executables
2421 See \`config.log' for more details." >&2;}
2422    { (exit 77); exit 77; }; }
2423 fi
2424
2425 ac_exeext=$ac_cv_exeext
2426 echo "$as_me:$LINENO: result: $ac_file" >&5
2427 echo "${ECHO_T}$ac_file" >&6
2428
2429 # Check the compiler produces executables we can run.  If not, either
2430 # the compiler is broken, or we cross compile.
2431 echo "$as_me:$LINENO: checking whether the C++ compiler works" >&5
2432 echo $ECHO_N "checking whether the C++ compiler works... $ECHO_C" >&6
2433 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2434 # If not cross compiling, check that we can run a simple program.
2435 if test "$cross_compiling" != yes; then
2436   if { ac_try='./$ac_file'
2437   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2438   (eval $ac_try) 2>&5
2439   ac_status=$?
2440   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2441   (exit $ac_status); }; }; then
2442     cross_compiling=no
2443   else
2444     if test "$cross_compiling" = maybe; then
2445         cross_compiling=yes
2446     else
2447         { { echo "$as_me:$LINENO: error: cannot run C++ compiled programs.
2448 If you meant to cross compile, use \`--host'.
2449 See \`config.log' for more details." >&5
2450 echo "$as_me: error: cannot run C++ compiled programs.
2451 If you meant to cross compile, use \`--host'.
2452 See \`config.log' for more details." >&2;}
2453    { (exit 1); exit 1; }; }
2454     fi
2455   fi
2456 fi
2457 echo "$as_me:$LINENO: result: yes" >&5
2458 echo "${ECHO_T}yes" >&6
2459
2460 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2461 ac_clean_files=$ac_clean_files_save
2462 # Check the compiler produces executables we can run.  If not, either
2463 # the compiler is broken, or we cross compile.
2464 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2465 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2466 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2467 echo "${ECHO_T}$cross_compiling" >&6
2468
2469 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2470 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2471 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2472   (eval $ac_link) 2>&5
2473   ac_status=$?
2474   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2475   (exit $ac_status); }; then
2476   # If both `conftest.exe' and `conftest' are `present' (well, observable)
2477 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2478 # work properly (i.e., refer to `conftest.exe'), while it won't with
2479 # `rm'.
2480 for ac_file in conftest.exe conftest conftest.*; do
2481   test -f "$ac_file" || continue
2482   case $ac_file in
2483     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2484     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2485           export ac_cv_exeext
2486           break;;
2487     * ) break;;
2488   esac
2489 done
2490 else
2491   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2492 See \`config.log' for more details." >&5
2493 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2494 See \`config.log' for more details." >&2;}
2495    { (exit 1); exit 1; }; }
2496 fi
2497
2498 rm -f conftest$ac_cv_exeext
2499 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2500 echo "${ECHO_T}$ac_cv_exeext" >&6
2501
2502 rm -f conftest.$ac_ext
2503 EXEEXT=$ac_cv_exeext
2504 ac_exeext=$EXEEXT
2505 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2506 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2507 if test "${ac_cv_objext+set}" = set; then
2508   echo $ECHO_N "(cached) $ECHO_C" >&6
2509 else
2510   cat >conftest.$ac_ext <<_ACEOF
2511 #line $LINENO "configure"
2512 /* confdefs.h.  */
2513 _ACEOF
2514 cat confdefs.h >>conftest.$ac_ext
2515 cat >>conftest.$ac_ext <<_ACEOF
2516 /* end confdefs.h.  */
2517
2518 int
2519 main ()
2520 {
2521
2522   ;
2523   return 0;
2524 }
2525 _ACEOF
2526 rm -f conftest.o conftest.obj
2527 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2528   (eval $ac_compile) 2>&5
2529   ac_status=$?
2530   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2531   (exit $ac_status); }; then
2532   for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2533   case $ac_file in
2534     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2535     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2536        break;;
2537   esac
2538 done
2539 else
2540   echo "$as_me: failed program was:" >&5
2541 sed 's/^/| /' conftest.$ac_ext >&5
2542
2543 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2544 See \`config.log' for more details." >&5
2545 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2546 See \`config.log' for more details." >&2;}
2547    { (exit 1); exit 1; }; }
2548 fi
2549
2550 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2551 fi
2552 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2553 echo "${ECHO_T}$ac_cv_objext" >&6
2554 OBJEXT=$ac_cv_objext
2555 ac_objext=$OBJEXT
2556 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2557 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
2558 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2559   echo $ECHO_N "(cached) $ECHO_C" >&6
2560 else
2561   cat >conftest.$ac_ext <<_ACEOF
2562 #line $LINENO "configure"
2563 /* confdefs.h.  */
2564 _ACEOF
2565 cat confdefs.h >>conftest.$ac_ext
2566 cat >>conftest.$ac_ext <<_ACEOF
2567 /* end confdefs.h.  */
2568
2569 int
2570 main ()
2571 {
2572 #ifndef __GNUC__
2573        choke me
2574 #endif
2575
2576   ;
2577   return 0;
2578 }
2579 _ACEOF
2580 rm -f conftest.$ac_objext
2581 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2582   (eval $ac_compile) 2>&5
2583   ac_status=$?
2584   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2585   (exit $ac_status); } &&
2586          { ac_try='test -s conftest.$ac_objext'
2587   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2588   (eval $ac_try) 2>&5
2589   ac_status=$?
2590   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2591   (exit $ac_status); }; }; then
2592   ac_compiler_gnu=yes
2593 else
2594   echo "$as_me: failed program was:" >&5
2595 sed 's/^/| /' conftest.$ac_ext >&5
2596
2597 ac_compiler_gnu=no
2598 fi
2599 rm -f conftest.$ac_objext conftest.$ac_ext
2600 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2601
2602 fi
2603 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
2604 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
2605 GXX=`test $ac_compiler_gnu = yes && echo yes`
2606 ac_test_CXXFLAGS=${CXXFLAGS+set}
2607 ac_save_CXXFLAGS=$CXXFLAGS
2608 CXXFLAGS="-g"
2609 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
2610 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
2611 if test "${ac_cv_prog_cxx_g+set}" = set; then
2612   echo $ECHO_N "(cached) $ECHO_C" >&6
2613 else
2614   cat >conftest.$ac_ext <<_ACEOF
2615 #line $LINENO "configure"
2616 /* confdefs.h.  */
2617 _ACEOF
2618 cat confdefs.h >>conftest.$ac_ext
2619 cat >>conftest.$ac_ext <<_ACEOF
2620 /* end confdefs.h.  */
2621
2622 int
2623 main ()
2624 {
2625
2626   ;
2627   return 0;
2628 }
2629 _ACEOF
2630 rm -f conftest.$ac_objext
2631 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2632   (eval $ac_compile) 2>&5
2633   ac_status=$?
2634   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2635   (exit $ac_status); } &&
2636          { ac_try='test -s conftest.$ac_objext'
2637   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2638   (eval $ac_try) 2>&5
2639   ac_status=$?
2640   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2641   (exit $ac_status); }; }; then
2642   ac_cv_prog_cxx_g=yes
2643 else
2644   echo "$as_me: failed program was:" >&5
2645 sed 's/^/| /' conftest.$ac_ext >&5
2646
2647 ac_cv_prog_cxx_g=no
2648 fi
2649 rm -f conftest.$ac_objext conftest.$ac_ext
2650 fi
2651 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
2652 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
2653 if test "$ac_test_CXXFLAGS" = set; then
2654   CXXFLAGS=$ac_save_CXXFLAGS
2655 elif test $ac_cv_prog_cxx_g = yes; then
2656   if test "$GXX" = yes; then
2657     CXXFLAGS="-g -O2"
2658   else
2659     CXXFLAGS="-g"
2660   fi
2661 else
2662   if test "$GXX" = yes; then
2663     CXXFLAGS="-O2"
2664   else
2665     CXXFLAGS=
2666   fi
2667 fi
2668 for ac_declaration in \
2669    ''\
2670    '#include <stdlib.h>' \
2671    'extern "C" void std::exit (int) throw (); using std::exit;' \
2672    'extern "C" void std::exit (int); using std::exit;' \
2673    'extern "C" void exit (int) throw ();' \
2674    'extern "C" void exit (int);' \
2675    'void exit (int);'
2676 do
2677   cat >conftest.$ac_ext <<_ACEOF
2678 #line $LINENO "configure"
2679 /* confdefs.h.  */
2680 _ACEOF
2681 cat confdefs.h >>conftest.$ac_ext
2682 cat >>conftest.$ac_ext <<_ACEOF
2683 /* end confdefs.h.  */
2684 #include <stdlib.h>
2685 $ac_declaration
2686 int
2687 main ()
2688 {
2689 exit (42);
2690   ;
2691   return 0;
2692 }
2693 _ACEOF
2694 rm -f conftest.$ac_objext
2695 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2696   (eval $ac_compile) 2>&5
2697   ac_status=$?
2698   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2699   (exit $ac_status); } &&
2700          { ac_try='test -s conftest.$ac_objext'
2701   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2702   (eval $ac_try) 2>&5
2703   ac_status=$?
2704   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2705   (exit $ac_status); }; }; then
2706   :
2707 else
2708   echo "$as_me: failed program was:" >&5
2709 sed 's/^/| /' conftest.$ac_ext >&5
2710
2711 continue
2712 fi
2713 rm -f conftest.$ac_objext conftest.$ac_ext
2714   cat >conftest.$ac_ext <<_ACEOF
2715 #line $LINENO "configure"
2716 /* confdefs.h.  */
2717 _ACEOF
2718 cat confdefs.h >>conftest.$ac_ext
2719 cat >>conftest.$ac_ext <<_ACEOF
2720 /* end confdefs.h.  */
2721 $ac_declaration
2722 int
2723 main ()
2724 {
2725 exit (42);
2726   ;
2727   return 0;
2728 }
2729 _ACEOF
2730 rm -f conftest.$ac_objext
2731 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2732   (eval $ac_compile) 2>&5
2733   ac_status=$?
2734   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2735   (exit $ac_status); } &&
2736          { ac_try='test -s conftest.$ac_objext'
2737   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2738   (eval $ac_try) 2>&5
2739   ac_status=$?
2740   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2741   (exit $ac_status); }; }; then
2742   break
2743 else
2744   echo "$as_me: failed program was:" >&5
2745 sed 's/^/| /' conftest.$ac_ext >&5
2746
2747 fi
2748 rm -f conftest.$ac_objext conftest.$ac_ext
2749 done
2750 rm -f conftest*
2751 if test -n "$ac_declaration"; then
2752   echo '#ifdef __cplusplus' >>confdefs.h
2753   echo $ac_declaration      >>confdefs.h
2754   echo '#endif'             >>confdefs.h
2755 fi
2756
2757 ac_ext=c
2758 ac_cpp='$CPP $CPPFLAGS'
2759 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2760 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2761 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2762
2763 ac_ext=c
2764 ac_cpp='$CPP $CPPFLAGS'
2765 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2766 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2767 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2768 if test -n "$ac_tool_prefix"; then
2769   for ac_prog in gcc
2770   do
2771     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2772 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2773 echo "$as_me:$LINENO: checking for $ac_word" >&5
2774 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2775 if test "${ac_cv_prog_CC+set}" = set; then
2776   echo $ECHO_N "(cached) $ECHO_C" >&6
2777 else
2778   if test -n "$CC"; then
2779   ac_cv_prog_CC="$CC" # Let the user override the test.
2780 else
2781 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2782 for as_dir in $PATH
2783 do
2784   IFS=$as_save_IFS
2785   test -z "$as_dir" && as_dir=.
2786   for ac_exec_ext in '' $ac_executable_extensions; do
2787   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2788     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2789     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2790     break 2
2791   fi
2792 done
2793 done
2794
2795 fi
2796 fi
2797 CC=$ac_cv_prog_CC
2798 if test -n "$CC"; then
2799   echo "$as_me:$LINENO: result: $CC" >&5
2800 echo "${ECHO_T}$CC" >&6
2801 else
2802   echo "$as_me:$LINENO: result: no" >&5
2803 echo "${ECHO_T}no" >&6
2804 fi
2805
2806     test -n "$CC" && break
2807   done
2808 fi
2809 if test -z "$CC"; then
2810   ac_ct_CC=$CC
2811   for ac_prog in gcc
2812 do
2813   # Extract the first word of "$ac_prog", so it can be a program name with args.
2814 set dummy $ac_prog; ac_word=$2
2815 echo "$as_me:$LINENO: checking for $ac_word" >&5
2816 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2817 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2818   echo $ECHO_N "(cached) $ECHO_C" >&6
2819 else
2820   if test -n "$ac_ct_CC"; then
2821   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2822 else
2823 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2824 for as_dir in $PATH
2825 do
2826   IFS=$as_save_IFS
2827   test -z "$as_dir" && as_dir=.
2828   for ac_exec_ext in '' $ac_executable_extensions; do
2829   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2830     ac_cv_prog_ac_ct_CC="$ac_prog"
2831     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2832     break 2
2833   fi
2834 done
2835 done
2836
2837 fi
2838 fi
2839 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2840 if test -n "$ac_ct_CC"; then
2841   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2842 echo "${ECHO_T}$ac_ct_CC" >&6
2843 else
2844   echo "$as_me:$LINENO: result: no" >&5
2845 echo "${ECHO_T}no" >&6
2846 fi
2847
2848   test -n "$ac_ct_CC" && break
2849 done
2850
2851   CC=$ac_ct_CC
2852 fi
2853
2854
2855 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2856 See \`config.log' for more details." >&5
2857 echo "$as_me: error: no acceptable C compiler found in \$PATH
2858 See \`config.log' for more details." >&2;}
2859    { (exit 1); exit 1; }; }
2860
2861 # Provide some information about the compiler.
2862 echo "$as_me:$LINENO:" \
2863      "checking for C compiler version" >&5
2864 ac_compiler=`set X $ac_compile; echo $2`
2865 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2866   (eval $ac_compiler --version </dev/null >&5) 2>&5
2867   ac_status=$?
2868   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2869   (exit $ac_status); }
2870 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2871   (eval $ac_compiler -v </dev/null >&5) 2>&5
2872   ac_status=$?
2873   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2874   (exit $ac_status); }
2875 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2876   (eval $ac_compiler -V </dev/null >&5) 2>&5
2877   ac_status=$?
2878   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2879   (exit $ac_status); }
2880
2881 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2882 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2883 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2884   echo $ECHO_N "(cached) $ECHO_C" >&6
2885 else
2886   cat >conftest.$ac_ext <<_ACEOF
2887 #line $LINENO "configure"
2888 /* confdefs.h.  */
2889 _ACEOF
2890 cat confdefs.h >>conftest.$ac_ext
2891 cat >>conftest.$ac_ext <<_ACEOF
2892 /* end confdefs.h.  */
2893
2894 int
2895 main ()
2896 {
2897 #ifndef __GNUC__
2898        choke me
2899 #endif
2900
2901   ;
2902   return 0;
2903 }
2904 _ACEOF
2905 rm -f conftest.$ac_objext
2906 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2907   (eval $ac_compile) 2>&5
2908   ac_status=$?
2909   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2910   (exit $ac_status); } &&
2911          { ac_try='test -s conftest.$ac_objext'
2912   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2913   (eval $ac_try) 2>&5
2914   ac_status=$?
2915   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2916   (exit $ac_status); }; }; then
2917   ac_compiler_gnu=yes
2918 else
2919   echo "$as_me: failed program was:" >&5
2920 sed 's/^/| /' conftest.$ac_ext >&5
2921
2922 ac_compiler_gnu=no
2923 fi
2924 rm -f conftest.$ac_objext conftest.$ac_ext
2925 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2926
2927 fi
2928 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2929 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2930 GCC=`test $ac_compiler_gnu = yes && echo yes`
2931 ac_test_CFLAGS=${CFLAGS+set}
2932 ac_save_CFLAGS=$CFLAGS
2933 CFLAGS="-g"
2934 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2935 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2936 if test "${ac_cv_prog_cc_g+set}" = set; then
2937   echo $ECHO_N "(cached) $ECHO_C" >&6
2938 else
2939   cat >conftest.$ac_ext <<_ACEOF
2940 #line $LINENO "configure"
2941 /* confdefs.h.  */
2942 _ACEOF
2943 cat confdefs.h >>conftest.$ac_ext
2944 cat >>conftest.$ac_ext <<_ACEOF
2945 /* end confdefs.h.  */
2946
2947 int
2948 main ()
2949 {
2950
2951   ;
2952   return 0;
2953 }
2954 _ACEOF
2955 rm -f conftest.$ac_objext
2956 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2957   (eval $ac_compile) 2>&5
2958   ac_status=$?
2959   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2960   (exit $ac_status); } &&
2961          { ac_try='test -s conftest.$ac_objext'
2962   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2963   (eval $ac_try) 2>&5
2964   ac_status=$?
2965   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2966   (exit $ac_status); }; }; then
2967   ac_cv_prog_cc_g=yes
2968 else
2969   echo "$as_me: failed program was:" >&5
2970 sed 's/^/| /' conftest.$ac_ext >&5
2971
2972 ac_cv_prog_cc_g=no
2973 fi
2974 rm -f conftest.$ac_objext conftest.$ac_ext
2975 fi
2976 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2977 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2978 if test "$ac_test_CFLAGS" = set; then
2979   CFLAGS=$ac_save_CFLAGS
2980 elif test $ac_cv_prog_cc_g = yes; then
2981   if test "$GCC" = yes; then
2982     CFLAGS="-g -O2"
2983   else
2984     CFLAGS="-g"
2985   fi
2986 else
2987   if test "$GCC" = yes; then
2988     CFLAGS="-O2"
2989   else
2990     CFLAGS=
2991   fi
2992 fi
2993 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2994 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2995 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2996   echo $ECHO_N "(cached) $ECHO_C" >&6
2997 else
2998   ac_cv_prog_cc_stdc=no
2999 ac_save_CC=$CC
3000 cat >conftest.$ac_ext <<_ACEOF
3001 #line $LINENO "configure"
3002 /* confdefs.h.  */
3003 _ACEOF
3004 cat confdefs.h >>conftest.$ac_ext
3005 cat >>conftest.$ac_ext <<_ACEOF
3006 /* end confdefs.h.  */
3007 #include <stdarg.h>
3008 #include <stdio.h>
3009 #include <sys/types.h>
3010 #include <sys/stat.h>
3011 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3012 struct buf { int x; };
3013 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3014 static char *e (p, i)
3015      char **p;
3016      int i;
3017 {
3018   return p[i];
3019 }
3020 static char *f (char * (*g) (char **, int), char **p, ...)
3021 {
3022   char *s;
3023   va_list v;
3024   va_start (v,p);
3025   s = g (p, va_arg (v,int));
3026   va_end (v);
3027   return s;
3028 }
3029 int test (int i, double x);
3030 struct s1 {int (*f) (int a);};
3031 struct s2 {int (*f) (double a);};
3032 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3033 int argc;
3034 char **argv;
3035 int
3036 main ()
3037 {
3038 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3039   ;
3040   return 0;
3041 }
3042 _ACEOF
3043 # Don't try gcc -ansi; that turns off useful extensions and
3044 # breaks some systems' header files.
3045 # AIX                   -qlanglvl=ansi
3046 # Ultrix and OSF/1      -std1
3047 # HP-UX 10.20 and later -Ae
3048 # HP-UX older versions  -Aa -D_HPUX_SOURCE
3049 # SVR4                  -Xc -D__EXTENSIONS__
3050 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3051 do
3052   CC="$ac_save_CC $ac_arg"
3053   rm -f conftest.$ac_objext
3054 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3055   (eval $ac_compile) 2>&5
3056   ac_status=$?
3057   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3058   (exit $ac_status); } &&
3059          { ac_try='test -s conftest.$ac_objext'
3060   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3061   (eval $ac_try) 2>&5
3062   ac_status=$?
3063   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3064   (exit $ac_status); }; }; then
3065   ac_cv_prog_cc_stdc=$ac_arg
3066 break
3067 else
3068   echo "$as_me: failed program was:" >&5
3069 sed 's/^/| /' conftest.$ac_ext >&5
3070
3071 fi
3072 rm -f conftest.$ac_objext
3073 done
3074 rm -f conftest.$ac_ext conftest.$ac_objext
3075 CC=$ac_save_CC
3076
3077 fi
3078
3079 case "x$ac_cv_prog_cc_stdc" in
3080   x|xno)
3081     echo "$as_me:$LINENO: result: none needed" >&5
3082 echo "${ECHO_T}none needed" >&6 ;;
3083   *)
3084     echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
3085 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
3086     CC="$CC $ac_cv_prog_cc_stdc" ;;
3087 esac
3088
3089 # Some people use a C++ compiler to compile C.  Since we use `exit',
3090 # in C++ we need to declare it.  In case someone uses the same compiler
3091 # for both compiling C and C++ we need to have the C++ compiler decide
3092 # the declaration of exit, since it's the most demanding environment.
3093 cat >conftest.$ac_ext <<_ACEOF
3094 #ifndef __cplusplus
3095   choke me
3096 #endif
3097 _ACEOF
3098 rm -f conftest.$ac_objext
3099 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3100   (eval $ac_compile) 2>&5
3101   ac_status=$?
3102   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3103   (exit $ac_status); } &&
3104          { ac_try='test -s conftest.$ac_objext'
3105   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3106   (eval $ac_try) 2>&5
3107   ac_status=$?
3108   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3109   (exit $ac_status); }; }; then
3110   for ac_declaration in \
3111    ''\
3112    '#include <stdlib.h>' \
3113    'extern "C" void std::exit (int) throw (); using std::exit;' \
3114    'extern "C" void std::exit (int); using std::exit;' \
3115    'extern "C" void exit (int) throw ();' \
3116    'extern "C" void exit (int);' \
3117    'void exit (int);'
3118 do
3119   cat >conftest.$ac_ext <<_ACEOF
3120 #line $LINENO "configure"
3121 /* confdefs.h.  */
3122 _ACEOF
3123 cat confdefs.h >>conftest.$ac_ext
3124 cat >>conftest.$ac_ext <<_ACEOF
3125 /* end confdefs.h.  */
3126 #include <stdlib.h>
3127 $ac_declaration
3128 int
3129 main ()
3130 {
3131 exit (42);
3132   ;
3133   return 0;
3134 }
3135 _ACEOF
3136 rm -f conftest.$ac_objext
3137 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3138   (eval $ac_compile) 2>&5
3139   ac_status=$?
3140   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3141   (exit $ac_status); } &&
3142          { ac_try='test -s conftest.$ac_objext'
3143   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3144   (eval $ac_try) 2>&5
3145   ac_status=$?
3146   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3147   (exit $ac_status); }; }; then
3148   :
3149 else
3150   echo "$as_me: failed program was:" >&5
3151 sed 's/^/| /' conftest.$ac_ext >&5
3152
3153 continue
3154 fi
3155 rm -f conftest.$ac_objext conftest.$ac_ext
3156   cat >conftest.$ac_ext <<_ACEOF
3157 #line $LINENO "configure"
3158 /* confdefs.h.  */
3159 _ACEOF
3160 cat confdefs.h >>conftest.$ac_ext
3161 cat >>conftest.$ac_ext <<_ACEOF
3162 /* end confdefs.h.  */
3163 $ac_declaration
3164 int
3165 main ()
3166 {
3167 exit (42);
3168   ;
3169   return 0;
3170 }
3171 _ACEOF
3172 rm -f conftest.$ac_objext
3173 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3174   (eval $ac_compile) 2>&5
3175   ac_status=$?
3176   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3177   (exit $ac_status); } &&
3178          { ac_try='test -s conftest.$ac_objext'
3179   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3180   (eval $ac_try) 2>&5
3181   ac_status=$?
3182   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3183   (exit $ac_status); }; }; then
3184   break
3185 else
3186   echo "$as_me: failed program was:" >&5
3187 sed 's/^/| /' conftest.$ac_ext >&5
3188
3189 fi
3190 rm -f conftest.$ac_objext conftest.$ac_ext
3191 done
3192 rm -f conftest*
3193 if test -n "$ac_declaration"; then
3194   echo '#ifdef __cplusplus' >>confdefs.h
3195   echo $ac_declaration      >>confdefs.h
3196   echo '#endif'             >>confdefs.h
3197 fi
3198
3199 else
3200   echo "$as_me: failed program was:" >&5
3201 sed 's/^/| /' conftest.$ac_ext >&5
3202
3203 fi
3204 rm -f conftest.$ac_objext conftest.$ac_ext
3205 ac_ext=c
3206 ac_cpp='$CPP $CPPFLAGS'
3207 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3208 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3209 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3210
3211 ac_ext=c
3212 ac_cpp='$CPP $CPPFLAGS'
3213 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3214 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3215 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3216 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3217 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3218 # On Suns, sometimes $CPP names a directory.
3219 if test -n "$CPP" && test -d "$CPP"; then
3220   CPP=
3221 fi
3222 if test -z "$CPP"; then
3223   if test "${ac_cv_prog_CPP+set}" = set; then
3224   echo $ECHO_N "(cached) $ECHO_C" >&6
3225 else
3226       # Double quotes because CPP needs to be expanded
3227     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3228     do
3229       ac_preproc_ok=false
3230 for ac_c_preproc_warn_flag in '' yes
3231 do
3232   # Use a header file that comes with gcc, so configuring glibc
3233   # with a fresh cross-compiler works.
3234   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3235   # <limits.h> exists even on freestanding compilers.
3236   # On the NeXT, cc -E runs the code through the compiler's parser,
3237   # not just through cpp. "Syntax error" is here to catch this case.
3238   cat >conftest.$ac_ext <<_ACEOF
3239 #line $LINENO "configure"
3240 /* confdefs.h.  */
3241 _ACEOF
3242 cat confdefs.h >>conftest.$ac_ext
3243 cat >>conftest.$ac_ext <<_ACEOF
3244 /* end confdefs.h.  */
3245 #ifdef __STDC__
3246 # include <limits.h>
3247 #else
3248 # include <assert.h>
3249 #endif
3250                      Syntax error
3251 _ACEOF
3252 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3253   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3254   ac_status=$?
3255   grep -v '^ *+' conftest.er1 >conftest.err
3256   rm -f conftest.er1
3257   cat conftest.err >&5
3258   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3259   (exit $ac_status); } >/dev/null; then
3260   if test -s conftest.err; then
3261     ac_cpp_err=$ac_c_preproc_warn_flag
3262   else
3263     ac_cpp_err=
3264   fi
3265 else
3266   ac_cpp_err=yes
3267 fi
3268 if test -z "$ac_cpp_err"; then
3269   :
3270 else
3271   echo "$as_me: failed program was:" >&5
3272 sed 's/^/| /' conftest.$ac_ext >&5
3273
3274   # Broken: fails on valid input.
3275 continue
3276 fi
3277 rm -f conftest.err conftest.$ac_ext
3278
3279   # OK, works on sane cases.  Now check whether non-existent headers
3280   # can be detected and how.
3281   cat >conftest.$ac_ext <<_ACEOF
3282 #line $LINENO "configure"
3283 /* confdefs.h.  */
3284 _ACEOF
3285 cat confdefs.h >>conftest.$ac_ext
3286 cat >>conftest.$ac_ext <<_ACEOF
3287 /* end confdefs.h.  */
3288 #include <ac_nonexistent.h>
3289 _ACEOF
3290 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3291   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3292   ac_status=$?
3293   grep -v '^ *+' conftest.er1 >conftest.err
3294   rm -f conftest.er1
3295   cat conftest.err >&5
3296   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3297   (exit $ac_status); } >/dev/null; then
3298   if test -s conftest.err; then
3299     ac_cpp_err=$ac_c_preproc_warn_flag
3300   else
3301     ac_cpp_err=
3302   fi
3303 else
3304   ac_cpp_err=yes
3305 fi
3306 if test -z "$ac_cpp_err"; then
3307   # Broken: success on invalid input.
3308 continue
3309 else
3310   echo "$as_me: failed program was:" >&5
3311 sed 's/^/| /' conftest.$ac_ext >&5
3312
3313   # Passes both tests.
3314 ac_preproc_ok=:
3315 break
3316 fi
3317 rm -f conftest.err conftest.$ac_ext
3318
3319 done
3320 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3321 rm -f conftest.err conftest.$ac_ext
3322 if $ac_preproc_ok; then
3323   break
3324 fi
3325
3326     done
3327     ac_cv_prog_CPP=$CPP
3328
3329 fi
3330   CPP=$ac_cv_prog_CPP
3331 else
3332   ac_cv_prog_CPP=$CPP
3333 fi
3334 echo "$as_me:$LINENO: result: $CPP" >&5
3335 echo "${ECHO_T}$CPP" >&6
3336 ac_preproc_ok=false
3337 for ac_c_preproc_warn_flag in '' yes
3338 do
3339   # Use a header file that comes with gcc, so configuring glibc
3340   # with a fresh cross-compiler works.
3341   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3342   # <limits.h> exists even on freestanding compilers.
3343   # On the NeXT, cc -E runs the code through the compiler's parser,
3344   # not just through cpp. "Syntax error" is here to catch this case.
3345   cat >conftest.$ac_ext <<_ACEOF
3346 #line $LINENO "configure"
3347 /* confdefs.h.  */
3348 _ACEOF
3349 cat confdefs.h >>conftest.$ac_ext
3350 cat >>conftest.$ac_ext <<_ACEOF
3351 /* end confdefs.h.  */
3352 #ifdef __STDC__
3353 # include <limits.h>
3354 #else
3355 # include <assert.h>
3356 #endif
3357                      Syntax error
3358 _ACEOF
3359 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3360   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3361   ac_status=$?
3362   grep -v '^ *+' conftest.er1 >conftest.err
3363   rm -f conftest.er1
3364   cat conftest.err >&5
3365   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3366   (exit $ac_status); } >/dev/null; then
3367   if test -s conftest.err; then
3368     ac_cpp_err=$ac_c_preproc_warn_flag
3369   else
3370     ac_cpp_err=
3371   fi
3372 else
3373   ac_cpp_err=yes
3374 fi
3375 if test -z "$ac_cpp_err"; then
3376   :
3377 else
3378   echo "$as_me: failed program was:" >&5
3379 sed 's/^/| /' conftest.$ac_ext >&5
3380
3381   # Broken: fails on valid input.
3382 continue
3383 fi
3384 rm -f conftest.err conftest.$ac_ext
3385
3386   # OK, works on sane cases.  Now check whether non-existent headers
3387   # can be detected and how.
3388   cat >conftest.$ac_ext <<_ACEOF
3389 #line $LINENO "configure"
3390 /* confdefs.h.  */
3391 _ACEOF
3392 cat confdefs.h >>conftest.$ac_ext
3393 cat >>conftest.$ac_ext <<_ACEOF
3394 /* end confdefs.h.  */
3395 #include <ac_nonexistent.h>
3396 _ACEOF
3397 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3398   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3399   ac_status=$?
3400   grep -v '^ *+' conftest.er1 >conftest.err
3401   rm -f conftest.er1
3402   cat conftest.err >&5
3403   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3404   (exit $ac_status); } >/dev/null; then
3405   if test -s conftest.err; then
3406     ac_cpp_err=$ac_c_preproc_warn_flag
3407   else
3408     ac_cpp_err=
3409   fi
3410 else
3411   ac_cpp_err=yes
3412 fi
3413 if test -z "$ac_cpp_err"; then
3414   # Broken: success on invalid input.
3415 continue
3416 else
3417   echo "$as_me: failed program was:" >&5
3418 sed 's/^/| /' conftest.$ac_ext >&5
3419
3420   # Passes both tests.
3421 ac_preproc_ok=:
3422 break
3423 fi
3424 rm -f conftest.err conftest.$ac_ext
3425
3426 done
3427 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3428 rm -f conftest.err conftest.$ac_ext
3429 if $ac_preproc_ok; then
3430   :
3431 else
3432   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3433 See \`config.log' for more details." >&5
3434 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3435 See \`config.log' for more details." >&2;}
3436    { (exit 1); exit 1; }; }
3437 fi
3438
3439 ac_ext=c
3440 ac_cpp='$CPP $CPPFLAGS'
3441 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3442 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3443 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3444
3445
3446 if test "$GCC" != "yes"
3447 then
3448         { { echo "$as_me:$LINENO: error: gcc required but not found" >&5
3449 echo "$as_me: error: gcc required but not found" >&2;}
3450    { (exit 1); exit 1; }; }
3451 fi
3452
3453 if test "$GXX" != "yes"
3454 then
3455         { { echo "$as_me:$LINENO: error: g++ required but not found" >&5
3456 echo "$as_me: error: g++ required but not found" >&2;}
3457    { (exit 1); exit 1; }; }
3458 fi
3459
3460 gccmajor=`$CC --version | head -n 1 | awk '{print $NF;}' | cut -d. -f1`
3461 if test "$gccmajor" -lt "3"
3462 then
3463         { { echo "$as_me:$LINENO: error: gcc 3.x required" >&5
3464 echo "$as_me: error: gcc 3.x required" >&2;}
3465    { (exit 1); exit 1; }; }
3466 fi
3467
3468  echo "$as_me:$LINENO: checking for GNU make" >&5
3469 echo $ECHO_N "checking for GNU make... $ECHO_C" >&6
3470 if test "${_cv_gnu_make_command+set}" = set; then
3471   echo $ECHO_N "(cached) $ECHO_C" >&6
3472 else
3473   _cv_gnu_make_command='' ;
3474                 for a in "$MAKE" make gmake gnumake ; do
3475                         if test -z "$a" ; then continue ; fi ;
3476                         if  ( sh -c "$a --version" 2> /dev/null | grep GNU  2>&1 > /dev/null ) ;  then
3477                                 _cv_gnu_make_command=$a ;
3478                                 break;
3479                         fi
3480                 done ;
3481
3482 fi
3483 echo "$as_me:$LINENO: result: $_cv_gnu_make_command" >&5
3484 echo "${ECHO_T}$_cv_gnu_make_command" >&6 ;
3485         if test  "x$_cv_gnu_make_command" != "x"  ; then
3486                 ifGNUmake='' ;
3487         else
3488                 ifGNUmake='#' ;
3489                 echo "$as_me:$LINENO: result: \"Not found\"" >&5
3490 echo "${ECHO_T}\"Not found\"" >&6;
3491         fi
3492
3493
3494 if test -z "$_cv_gnu_make_command"
3495 then
3496         { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5
3497 echo "$as_me: error: GNU Make required but not found" >&2;}
3498    { (exit 1); exit 1; }; }
3499 fi
3500
3501
3502 echo "$as_me:$LINENO: checking " >&5
3503 echo $ECHO_N "checking ... $ECHO_C" >&6
3504 if test "${ac_cv_has_flex+set}" = set; then
3505   echo $ECHO_N "(cached) $ECHO_C" >&6
3506 else
3507   for ac_prog in flex lex
3508 do
3509   # Extract the first word of "$ac_prog", so it can be a program name with args.
3510 set dummy $ac_prog; ac_word=$2
3511 echo "$as_me:$LINENO: checking for $ac_word" >&5
3512 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3513 if test "${ac_cv_prog_LEX+set}" = set; then
3514   echo $ECHO_N "(cached) $ECHO_C" >&6
3515 else
3516   if test -n "$LEX"; then
3517   ac_cv_prog_LEX="$LEX" # Let the user override the test.
3518 else
3519 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3520 for as_dir in $PATH
3521 do
3522   IFS=$as_save_IFS
3523   test -z "$as_dir" && as_dir=.
3524   for ac_exec_ext in '' $ac_executable_extensions; do
3525   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3526     ac_cv_prog_LEX="$ac_prog"
3527     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3528     break 2
3529   fi
3530 done
3531 done
3532
3533 fi
3534 fi
3535 LEX=$ac_cv_prog_LEX
3536 if test -n "$LEX"; then
3537   echo "$as_me:$LINENO: result: $LEX" >&5
3538 echo "${ECHO_T}$LEX" >&6
3539 else
3540   echo "$as_me:$LINENO: result: no" >&5
3541 echo "${ECHO_T}no" >&6
3542 fi
3543
3544   test -n "$LEX" && break
3545 done
3546 test -n "$LEX" || LEX=":"
3547
3548 if test -z "$LEXLIB"
3549 then
3550   echo "$as_me:$LINENO: checking for yywrap in -lfl" >&5
3551 echo $ECHO_N "checking for yywrap in -lfl... $ECHO_C" >&6
3552 if test "${ac_cv_lib_fl_yywrap+set}" = set; then
3553   echo $ECHO_N "(cached) $ECHO_C" >&6
3554 else
3555   ac_check_lib_save_LIBS=$LIBS
3556 LIBS="-lfl  $LIBS"
3557 cat >conftest.$ac_ext <<_ACEOF
3558 #line $LINENO "configure"
3559 /* confdefs.h.  */
3560 _ACEOF
3561 cat confdefs.h >>conftest.$ac_ext
3562 cat >>conftest.$ac_ext <<_ACEOF
3563 /* end confdefs.h.  */
3564
3565 /* Override any gcc2 internal prototype to avoid an error.  */
3566 #ifdef __cplusplus
3567 extern "C"
3568 #endif
3569 /* We use char because int might match the return type of a gcc2
3570    builtin and then its argument prototype would still apply.  */
3571 char yywrap ();
3572 int
3573 main ()
3574 {
3575 yywrap ();
3576   ;
3577   return 0;
3578 }
3579 _ACEOF
3580 rm -f conftest.$ac_objext conftest$ac_exeext
3581 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3582   (eval $ac_link) 2>&5
3583   ac_status=$?
3584   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3585   (exit $ac_status); } &&
3586          { ac_try='test -s conftest$ac_exeext'
3587   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3588   (eval $ac_try) 2>&5
3589   ac_status=$?
3590   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3591   (exit $ac_status); }; }; then
3592   ac_cv_lib_fl_yywrap=yes
3593 else
3594   echo "$as_me: failed program was:" >&5
3595 sed 's/^/| /' conftest.$ac_ext >&5
3596
3597 ac_cv_lib_fl_yywrap=no
3598 fi
3599 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3600 LIBS=$ac_check_lib_save_LIBS
3601 fi
3602 echo "$as_me:$LINENO: result: $ac_cv_lib_fl_yywrap" >&5
3603 echo "${ECHO_T}$ac_cv_lib_fl_yywrap" >&6
3604 if test $ac_cv_lib_fl_yywrap = yes; then
3605   LEXLIB="-lfl"
3606 else
3607   echo "$as_me:$LINENO: checking for yywrap in -ll" >&5
3608 echo $ECHO_N "checking for yywrap in -ll... $ECHO_C" >&6
3609 if test "${ac_cv_lib_l_yywrap+set}" = set; then
3610   echo $ECHO_N "(cached) $ECHO_C" >&6
3611 else
3612   ac_check_lib_save_LIBS=$LIBS
3613 LIBS="-ll  $LIBS"
3614 cat >conftest.$ac_ext <<_ACEOF
3615 #line $LINENO "configure"
3616 /* confdefs.h.  */
3617 _ACEOF
3618 cat confdefs.h >>conftest.$ac_ext
3619 cat >>conftest.$ac_ext <<_ACEOF
3620 /* end confdefs.h.  */
3621
3622 /* Override any gcc2 internal prototype to avoid an error.  */
3623 #ifdef __cplusplus
3624 extern "C"
3625 #endif
3626 /* We use char because int might match the return type of a gcc2
3627    builtin and then its argument prototype would still apply.  */
3628 char yywrap ();
3629 int
3630 main ()
3631 {
3632 yywrap ();
3633   ;
3634   return 0;
3635 }
3636 _ACEOF
3637 rm -f conftest.$ac_objext conftest$ac_exeext
3638 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3639   (eval $ac_link) 2>&5
3640   ac_status=$?
3641   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3642   (exit $ac_status); } &&
3643          { ac_try='test -s conftest$ac_exeext'
3644   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3645   (eval $ac_try) 2>&5
3646   ac_status=$?
3647   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3648   (exit $ac_status); }; }; then
3649   ac_cv_lib_l_yywrap=yes
3650 else
3651   echo "$as_me: failed program was:" >&5
3652 sed 's/^/| /' conftest.$ac_ext >&5
3653
3654 ac_cv_lib_l_yywrap=no
3655 fi
3656 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3657 LIBS=$ac_check_lib_save_LIBS
3658 fi
3659 echo "$as_me:$LINENO: result: $ac_cv_lib_l_yywrap" >&5
3660 echo "${ECHO_T}$ac_cv_lib_l_yywrap" >&6
3661 if test $ac_cv_lib_l_yywrap = yes; then
3662   LEXLIB="-ll"
3663 fi
3664
3665 fi
3666
3667 fi
3668
3669 if test "x$LEX" != "x:"; then
3670   echo "$as_me:$LINENO: checking lex output file root" >&5
3671 echo $ECHO_N "checking lex output file root... $ECHO_C" >&6
3672 if test "${ac_cv_prog_lex_root+set}" = set; then
3673   echo $ECHO_N "(cached) $ECHO_C" >&6
3674 else
3675   # The minimal lex program is just a single line: %%.  But some broken lexes
3676 # (Solaris, I think it was) want two %% lines, so accommodate them.
3677 cat >conftest.l <<_ACEOF
3678 %%
3679 %%
3680 _ACEOF
3681 { (eval echo "$as_me:$LINENO: \"$LEX conftest.l\"") >&5
3682   (eval $LEX conftest.l) 2>&5
3683   ac_status=$?
3684   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3685   (exit $ac_status); }
3686 if test -f lex.yy.c; then
3687   ac_cv_prog_lex_root=lex.yy
3688 elif test -f lexyy.c; then
3689   ac_cv_prog_lex_root=lexyy
3690 else
3691   { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5
3692 echo "$as_me: error: cannot find output from $LEX; giving up" >&2;}
3693    { (exit 1); exit 1; }; }
3694 fi
3695 fi
3696 echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5
3697 echo "${ECHO_T}$ac_cv_prog_lex_root" >&6
3698 rm -f conftest.l
3699 LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
3700
3701 echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5
3702 echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6
3703 if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then
3704   echo $ECHO_N "(cached) $ECHO_C" >&6
3705 else
3706   # POSIX says lex can declare yytext either as a pointer or an array; the
3707 # default is implementation-dependent. Figure out which it is, since
3708 # not all implementations provide the %pointer and %array declarations.
3709 ac_cv_prog_lex_yytext_pointer=no
3710 echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c
3711 ac_save_LIBS=$LIBS
3712 LIBS="$LIBS $LEXLIB"
3713 cat >conftest.$ac_ext <<_ACEOF
3714 `cat $LEX_OUTPUT_ROOT.c`
3715 _ACEOF
3716 rm -f conftest.$ac_objext conftest$ac_exeext
3717 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3718   (eval $ac_link) 2>&5
3719   ac_status=$?
3720   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3721   (exit $ac_status); } &&
3722          { ac_try='test -s conftest$ac_exeext'
3723   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3724   (eval $ac_try) 2>&5
3725   ac_status=$?
3726   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3727   (exit $ac_status); }; }; then
3728   ac_cv_prog_lex_yytext_pointer=yes
3729 else
3730   echo "$as_me: failed program was:" >&5
3731 sed 's/^/| /' conftest.$ac_ext >&5
3732
3733 fi
3734 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3735 LIBS=$ac_save_LIBS
3736 rm -f "${LEX_OUTPUT_ROOT}.c"
3737
3738 fi
3739 echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5
3740 echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6
3741 if test $ac_cv_prog_lex_yytext_pointer = yes; then
3742
3743 cat >>confdefs.h <<\_ACEOF
3744 #define YYTEXT_POINTER 1
3745 _ACEOF
3746
3747 fi
3748
3749 fi
3750
3751 fi
3752 echo "$as_me:$LINENO: result: $ac_cv_has_flex" >&5
3753 echo "${ECHO_T}$ac_cv_has_flex" >&6
3754 if test "$LEX" != "flex"; then
3755   { { echo "$as_me:$LINENO: error: flex not found but required" >&5
3756 echo "$as_me: error: flex not found but required" >&2;}
3757    { (exit 1); exit 1; }; }
3758 fi
3759
3760 echo "$as_me:$LINENO: checking " >&5
3761 echo $ECHO_N "checking ... $ECHO_C" >&6
3762 if test "${ac_cv_has_bison+set}" = set; then
3763   echo $ECHO_N "(cached) $ECHO_C" >&6
3764 else
3765   for ac_prog in 'bison -y' byacc
3766 do
3767   # Extract the first word of "$ac_prog", so it can be a program name with args.
3768 set dummy $ac_prog; ac_word=$2
3769 echo "$as_me:$LINENO: checking for $ac_word" >&5
3770 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3771 if test "${ac_cv_prog_YACC+set}" = set; then
3772   echo $ECHO_N "(cached) $ECHO_C" >&6
3773 else
3774   if test -n "$YACC"; then
3775   ac_cv_prog_YACC="$YACC" # Let the user override the test.
3776 else
3777 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3778 for as_dir in $PATH
3779 do
3780   IFS=$as_save_IFS
3781   test -z "$as_dir" && as_dir=.
3782   for ac_exec_ext in '' $ac_executable_extensions; do
3783   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3784     ac_cv_prog_YACC="$ac_prog"
3785     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3786     break 2
3787   fi
3788 done
3789 done
3790
3791 fi
3792 fi
3793 YACC=$ac_cv_prog_YACC
3794 if test -n "$YACC"; then
3795   echo "$as_me:$LINENO: result: $YACC" >&5
3796 echo "${ECHO_T}$YACC" >&6
3797 else
3798   echo "$as_me:$LINENO: result: no" >&5
3799 echo "${ECHO_T}no" >&6
3800 fi
3801
3802   test -n "$YACC" && break
3803 done
3804 test -n "$YACC" || YACC="yacc"
3805
3806
3807 fi
3808 echo "$as_me:$LINENO: result: $ac_cv_has_bison" >&5
3809 echo "${ECHO_T}$ac_cv_has_bison" >&6
3810 if test "$YACC" != "bison -y"; then
3811   { { echo "$as_me:$LINENO: error: bison not found but required" >&5
3812 echo "$as_me: error: bison not found but required" >&2;}
3813    { (exit 1); exit 1; }; }
3814 else
3815   YACC=bison
3816
3817 fi
3818
3819
3820 # Check whether --enable-shared or --disable-shared was given.
3821 if test "${enable_shared+set}" = set; then
3822   enableval="$enable_shared"
3823   p=${PACKAGE-default}
3824     case $enableval in
3825     yes) enable_shared=yes ;;
3826     no) enable_shared=no ;;
3827     *)
3828       enable_shared=no
3829       # Look at the argument we got.  We use all the common list separators.
3830       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3831       for pkg in $enableval; do
3832         IFS="$lt_save_ifs"
3833         if test "X$pkg" = "X$p"; then
3834           enable_shared=yes
3835         fi
3836       done
3837       IFS="$lt_save_ifs"
3838       ;;
3839     esac
3840 else
3841   enable_shared=yes
3842 fi;
3843
3844 # Check whether --enable-static or --disable-static was given.
3845 if test "${enable_static+set}" = set; then
3846   enableval="$enable_static"
3847   p=${PACKAGE-default}
3848     case $enableval in
3849     yes) enable_static=yes ;;
3850     no) enable_static=no ;;
3851     *)
3852      enable_static=no
3853       # Look at the argument we got.  We use all the common list separators.
3854       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3855       for pkg in $enableval; do
3856         IFS="$lt_save_ifs"
3857         if test "X$pkg" = "X$p"; then
3858           enable_static=yes
3859         fi
3860       done
3861       IFS="$lt_save_ifs"
3862       ;;
3863     esac
3864 else
3865   enable_static=yes
3866 fi;
3867
3868 # Check whether --enable-fast-install or --disable-fast-install was given.
3869 if test "${enable_fast_install+set}" = set; then
3870   enableval="$enable_fast_install"
3871   p=${PACKAGE-default}
3872     case $enableval in
3873     yes) enable_fast_install=yes ;;
3874     no) enable_fast_install=no ;;
3875     *)
3876       enable_fast_install=no
3877       # Look at the argument we got.  We use all the common list separators.
3878       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3879       for pkg in $enableval; do
3880         IFS="$lt_save_ifs"
3881         if test "X$pkg" = "X$p"; then
3882           enable_fast_install=yes
3883         fi
3884       done
3885       IFS="$lt_save_ifs"
3886       ;;
3887     esac
3888 else
3889   enable_fast_install=yes
3890 fi;
3891
3892 echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3893 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
3894 if test "${lt_cv_path_SED+set}" = set; then
3895   echo $ECHO_N "(cached) $ECHO_C" >&6
3896 else
3897   # Loop through the user's path and test for sed and gsed.
3898 # Then use that list of sed's as ones to test for truncation.
3899 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3900 for as_dir in $PATH
3901 do
3902   IFS=$as_save_IFS
3903   test -z "$as_dir" && as_dir=.
3904   for lt_ac_prog in sed gsed; do
3905     for ac_exec_ext in '' $ac_executable_extensions; do
3906       if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
3907         lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
3908       fi
3909     done
3910   done
3911 done
3912 lt_ac_max=0
3913 lt_ac_count=0
3914 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
3915 # along with /bin/sed that truncates output.
3916 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
3917   test ! -f $lt_ac_sed && break
3918   cat /dev/null > conftest.in
3919   lt_ac_count=0
3920   echo $ECHO_N "0123456789$ECHO_C" >conftest.in
3921   # Check for GNU sed and select it if it is found.
3922   if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
3923     lt_cv_path_SED=$lt_ac_sed
3924     break
3925   fi
3926   while true; do
3927     cat conftest.in conftest.in >conftest.tmp
3928     mv conftest.tmp conftest.in
3929     cp conftest.in conftest.nl
3930     echo >>conftest.nl
3931     $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
3932     cmp -s conftest.out conftest.nl || break
3933     # 10000 chars as input seems more than enough
3934     test $lt_ac_count -gt 10 && break
3935     lt_ac_count=`expr $lt_ac_count + 1`
3936     if test $lt_ac_count -gt $lt_ac_max; then
3937       lt_ac_max=$lt_ac_count
3938       lt_cv_path_SED=$lt_ac_sed
3939     fi
3940   done
3941 done
3942 SED=$lt_cv_path_SED
3943
3944 fi
3945
3946 echo "$as_me:$LINENO: result: $SED" >&5
3947 echo "${ECHO_T}$SED" >&6
3948
3949 echo "$as_me:$LINENO: checking for egrep" >&5
3950 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3951 if test "${ac_cv_prog_egrep+set}" = set; then
3952   echo $ECHO_N "(cached) $ECHO_C" >&6
3953 else
3954   if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3955     then ac_cv_prog_egrep='grep -E'
3956     else ac_cv_prog_egrep='egrep'
3957     fi
3958 fi
3959 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3960 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3961  EGREP=$ac_cv_prog_egrep
3962
3963
3964
3965 # Check whether --with-gnu-ld or --without-gnu-ld was given.
3966 if test "${with_gnu_ld+set}" = set; then
3967   withval="$with_gnu_ld"
3968   test "$withval" = no || with_gnu_ld=yes
3969 else
3970   with_gnu_ld=no
3971 fi;
3972 ac_prog=ld
3973 if test "$GCC" = yes; then
3974   # Check if gcc -print-prog-name=ld gives a path.
3975   echo "$as_me:$LINENO: checking for ld used by $CC" >&5
3976 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
3977   case $host in
3978   *-*-mingw*)
3979     # gcc leaves a trailing carriage return which upsets mingw
3980     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3981   *)
3982     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3983   esac
3984   case $ac_prog in
3985     # Accept absolute paths.
3986     [\\/]* | ?:[\\/]*)
3987       re_direlt='/[^/][^/]*/\.\./'
3988       # Canonicalize the path of ld
3989       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
3990       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
3991         ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
3992       done
3993       test -z "$LD" && LD="$ac_prog"
3994       ;;
3995   "")
3996     # If it fails, then pretend we aren't using GCC.
3997     ac_prog=ld
3998     ;;
3999   *)
4000     # If it is relative, then search for the first ld in PATH.
4001     with_gnu_ld=unknown
4002     ;;
4003   esac
4004 elif test "$with_gnu_ld" = yes; then
4005   echo "$as_me:$LINENO: checking for GNU ld" >&5
4006 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
4007 else
4008   echo "$as_me:$LINENO: checking for non-GNU ld" >&5
4009 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
4010 fi
4011 if test "${lt_cv_path_LD+set}" = set; then
4012   echo $ECHO_N "(cached) $ECHO_C" >&6
4013 else
4014   if test -z "$LD"; then
4015   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4016   for ac_dir in $PATH; do
4017     IFS="$lt_save_ifs"
4018     test -z "$ac_dir" && ac_dir=.
4019     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4020       lt_cv_path_LD="$ac_dir/$ac_prog"
4021       # Check to see if the program is GNU ld.  I'd rather use --version,
4022       # but apparently some GNU ld's only accept -v.
4023       # Break only if it was the GNU/non-GNU ld that we prefer.
4024       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4025       *GNU* | *'with BFD'*)
4026         test "$with_gnu_ld" != no && break
4027         ;;
4028       *)
4029         test "$with_gnu_ld" != yes && break
4030         ;;
4031       esac
4032     fi
4033   done
4034   IFS="$lt_save_ifs"
4035 else
4036   lt_cv_path_LD="$LD" # Let the user override the test with a path.
4037 fi
4038 fi
4039
4040 LD="$lt_cv_path_LD"
4041 if test -n "$LD"; then
4042   echo "$as_me:$LINENO: result: $LD" >&5
4043 echo "${ECHO_T}$LD" >&6
4044 else
4045   echo "$as_me:$LINENO: result: no" >&5
4046 echo "${ECHO_T}no" >&6
4047 fi
4048 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
4049 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
4050    { (exit 1); exit 1; }; }
4051 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4052 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
4053 if test "${lt_cv_prog_gnu_ld+set}" = set; then
4054   echo $ECHO_N "(cached) $ECHO_C" >&6
4055 else
4056   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
4057 case `"$LD" -v 2>&1 </dev/null` in
4058 *GNU* | *'with BFD'*)
4059   lt_cv_prog_gnu_ld=yes
4060   ;;
4061 *)
4062   lt_cv_prog_gnu_ld=no
4063   ;;
4064 esac
4065 fi
4066 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
4067 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
4068 with_gnu_ld=$lt_cv_prog_gnu_ld
4069
4070
4071 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
4072 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
4073 if test "${lt_cv_ld_reload_flag+set}" = set; then
4074   echo $ECHO_N "(cached) $ECHO_C" >&6
4075 else
4076   lt_cv_ld_reload_flag='-r'
4077 fi
4078 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
4079 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
4080 reload_flag=$lt_cv_ld_reload_flag
4081 case $reload_flag in
4082 "" | " "*) ;;
4083 *) reload_flag=" $reload_flag" ;;
4084 esac
4085 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4086
4087 echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
4088 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
4089 if test "${lt_cv_path_NM+set}" = set; then
4090   echo $ECHO_N "(cached) $ECHO_C" >&6
4091 else
4092   if test -n "$NM"; then
4093   # Let the user override the test.
4094   lt_cv_path_NM="$NM"
4095 else
4096   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4097   for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
4098     IFS="$lt_save_ifs"
4099     test -z "$ac_dir" && ac_dir=.
4100     tmp_nm="$ac_dir/${ac_tool_prefix}nm"
4101     if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4102       # Check to see if the nm accepts a BSD-compat flag.
4103       # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4104       #   nm: unknown option "B" ignored
4105       # Tru64's nm complains that /dev/null is an invalid object file
4106       case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4107       */dev/null* | *'Invalid file or object type'*)
4108         lt_cv_path_NM="$tmp_nm -B"
4109         break
4110         ;;
4111       *)
4112         case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4113         */dev/null*)
4114           lt_cv_path_NM="$tmp_nm -p"
4115           break
4116           ;;
4117         *)
4118           lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4119           continue # so that we can try to find one that supports BSD flags
4120           ;;
4121         esac
4122       esac
4123     fi
4124   done
4125   IFS="$lt_save_ifs"
4126   test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
4127 fi
4128 fi
4129 echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
4130 echo "${ECHO_T}$lt_cv_path_NM" >&6
4131 NM="$lt_cv_path_NM"
4132
4133 echo "$as_me:$LINENO: checking whether ln -s works" >&5
4134 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
4135 LN_S=$as_ln_s
4136 if test "$LN_S" = "ln -s"; then
4137   echo "$as_me:$LINENO: result: yes" >&5
4138 echo "${ECHO_T}yes" >&6
4139 else
4140   echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4141 echo "${ECHO_T}no, using $LN_S" >&6
4142 fi
4143
4144 echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
4145 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
4146 if test "${lt_cv_deplibs_check_method+set}" = set; then
4147   echo $ECHO_N "(cached) $ECHO_C" >&6
4148 else
4149   lt_cv_file_magic_cmd='$MAGIC_CMD'
4150 lt_cv_file_magic_test_file=
4151 lt_cv_deplibs_check_method='unknown'
4152 # Need to set the preceding variable on all platforms that support
4153 # interlibrary dependencies.
4154 # 'none' -- dependencies not supported.
4155 # `unknown' -- same as none, but documents that we really don't know.
4156 # 'pass_all' -- all dependencies passed with no checks.
4157 # 'test_compile' -- check by making test program.
4158 # 'file_magic [[regex]]' -- check by looking for files in library path
4159 # which responds to the $file_magic_cmd with a given extended regex.
4160 # If you have `file' or equivalent on your system and you're not sure
4161 # whether `pass_all' will *always* work, you probably want this one.
4162
4163 case $host_os in
4164 aix4* | aix5*)
4165   lt_cv_deplibs_check_method=pass_all
4166   ;;
4167
4168 beos*)
4169   lt_cv_deplibs_check_method=pass_all
4170   ;;
4171
4172 bsdi4*)
4173   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4174   lt_cv_file_magic_cmd='/usr/bin/file -L'
4175   lt_cv_file_magic_test_file=/shlib/libc.so
4176   ;;
4177
4178 cygwin* | mingw* | pw32*)
4179   # win32_libid is a shell function defined in ltmain.sh
4180   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4181   lt_cv_file_magic_cmd='win32_libid'
4182   ;;
4183
4184 darwin* | rhapsody*)
4185   # this will be overwritten by pass_all, but leave it in just in case
4186   lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
4187   lt_cv_file_magic_cmd='/usr/bin/file -L'
4188   case "$host_os" in
4189   rhapsody* | darwin1.[012])
4190     lt_cv_file_magic_test_file=`/System/Library/Frameworks/System.framework/System`
4191     ;;
4192   *) # Darwin 1.3 on
4193     lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
4194     ;;
4195   esac
4196   lt_cv_deplibs_check_method=pass_all
4197   ;;
4198
4199 freebsd*)
4200   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4201     case $host_cpu in
4202     i*86 )
4203       # Not sure whether the presence of OpenBSD here was a mistake.
4204       # Let's accept both of them until this is cleared up.
4205       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
4206       lt_cv_file_magic_cmd=/usr/bin/file
4207       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4208       ;;
4209     esac
4210   else
4211     lt_cv_deplibs_check_method=pass_all
4212   fi
4213   ;;
4214
4215 gnu*)
4216   lt_cv_deplibs_check_method=pass_all
4217   ;;
4218
4219 hpux10.20* | hpux11*)
4220   lt_cv_file_magic_cmd=/usr/bin/file
4221   case "$host_cpu" in
4222   ia64*)
4223     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4224     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4225     ;;
4226   hppa*64*)
4227     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]'
4228     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4229     ;;
4230   *)
4231     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4232     lt_cv_file_magic_test_file=/usr/lib/libc.sl
4233     ;;
4234   esac
4235   ;;
4236
4237 irix5* | irix6* | nonstopux*)
4238   case $host_os in
4239   irix5* | nonstopux*)
4240     # this will be overridden with pass_all, but let us keep it just in case
4241     lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
4242     ;;
4243   *)
4244     case $LD in
4245     *-32|*"-32 ") libmagic=32-bit;;
4246     *-n32|*"-n32 ") libmagic=N32;;
4247     *-64|*"-64 ") libmagic=64-bit;;
4248     *) libmagic=never-match;;
4249     esac
4250     # this will be overridden with pass_all, but let us keep it just in case
4251     lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
4252     ;;
4253   esac
4254   lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
4255   lt_cv_deplibs_check_method=pass_all
4256   ;;
4257
4258 # This must be Linux ELF.
4259 linux*)
4260   case $host_cpu in
4261   alpha* | hppa* | i*86 | ia64* | m68* | mips | mipsel | powerpc* | sparc* | s390* | sh*)
4262     lt_cv_deplibs_check_method=pass_all ;;
4263   *)
4264     # glibc up to 2.1.1 does not perform some relocations on ARM
4265     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
4266   esac
4267   lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
4268   ;;
4269
4270 netbsd*)
4271   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4272     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4273   else
4274     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
4275   fi
4276   ;;
4277
4278 newos6*)
4279   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4280   lt_cv_file_magic_cmd=/usr/bin/file
4281   lt_cv_file_magic_test_file=/usr/lib/libnls.so
4282   ;;
4283
4284 nto-qnx)
4285   lt_cv_deplibs_check_method=unknown
4286   ;;
4287
4288 openbsd*)
4289   lt_cv_file_magic_cmd=/usr/bin/file
4290   lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4291   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4292     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB shared object'
4293   else
4294     lt_cv_deplibs_check_method='file_magic OpenBSD.* shared library'
4295   fi
4296   ;;
4297
4298 osf3* | osf4* | osf5*)
4299   # this will be overridden with pass_all, but let us keep it just in case
4300   lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
4301   lt_cv_file_magic_test_file=/shlib/libc.so
4302   lt_cv_deplibs_check_method=pass_all
4303   ;;
4304
4305 sco3.2v5*)
4306   lt_cv_deplibs_check_method=pass_all
4307   ;;
4308
4309 solaris*)
4310   lt_cv_deplibs_check_method=pass_all
4311   lt_cv_file_magic_test_file=/lib/libc.so
4312   ;;
4313
4314 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
4315   case $host_vendor in
4316   motorola)
4317     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]'
4318     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4319     ;;
4320   ncr)
4321     lt_cv_deplibs_check_method=pass_all
4322     ;;
4323   sequent)
4324     lt_cv_file_magic_cmd='/bin/file'
4325     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4326     ;;
4327   sni)
4328     lt_cv_file_magic_cmd='/bin/file'
4329     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4330     lt_cv_file_magic_test_file=/lib/libc.so
4331     ;;
4332   siemens)
4333     lt_cv_deplibs_check_method=pass_all
4334     ;;
4335   esac
4336   ;;
4337
4338 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*)
4339   lt_cv_deplibs_check_method=pass_all
4340   ;;
4341 esac
4342
4343 fi
4344 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
4345 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
4346 file_magic_cmd=$lt_cv_file_magic_cmd
4347 deplibs_check_method=$lt_cv_deplibs_check_method
4348 test -z "$deplibs_check_method" && deplibs_check_method=unknown
4349
4350
4351
4352
4353 # If no C compiler was specified, use CC.
4354 LTCC=${LTCC-"$CC"}
4355
4356 # Allow CC to be a program name with arguments.
4357 compiler=$CC
4358
4359 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
4360 if test "${enable_libtool_lock+set}" = set; then
4361   enableval="$enable_libtool_lock"
4362
4363 fi;
4364 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
4365
4366 # Some flags need to be propagated to the compiler or linker for good
4367 # libtool support.
4368 case $host in
4369 ia64-*-hpux*)
4370   # Find out which ABI we are using.
4371   echo 'int i;' > conftest.$ac_ext
4372   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4373   (eval $ac_compile) 2>&5
4374   ac_status=$?
4375   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4376   (exit $ac_status); }; then
4377     case `/usr/bin/file conftest.$ac_objext` in
4378     *ELF-32*)
4379       HPUX_IA64_MODE="32"
4380       ;;
4381     *ELF-64*)
4382       HPUX_IA64_MODE="64"
4383       ;;
4384     esac
4385   fi
4386   rm -rf conftest*
4387   ;;
4388 *-*-irix6*)
4389   # Find out which ABI we are using.
4390   echo '#line 4390 "configure"' > conftest.$ac_ext
4391   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4392   (eval $ac_compile) 2>&5
4393   ac_status=$?
4394   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4395   (exit $ac_status); }; then
4396    if test "$lt_cv_prog_gnu_ld" = yes; then
4397     case `/usr/bin/file conftest.$ac_objext` in
4398     *32-bit*)
4399       LD="${LD-ld} -melf32bsmip"
4400       ;;
4401     *N32*)
4402       LD="${LD-ld} -melf32bmipn32"
4403       ;;
4404     *64-bit*)
4405       LD="${LD-ld} -melf64bmip"
4406       ;;
4407     esac
4408    else
4409     case `/usr/bin/file conftest.$ac_objext` in
4410     *32-bit*)
4411       LD="${LD-ld} -32"
4412       ;;
4413     *N32*)
4414       LD="${LD-ld} -n32"
4415       ;;
4416     *64-bit*)
4417       LD="${LD-ld} -64"
4418       ;;
4419     esac
4420    fi
4421   fi
4422   rm -rf conftest*
4423   ;;
4424
4425 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
4426   # Find out which ABI we are using.
4427   echo 'int i;' > conftest.$ac_ext
4428   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4429   (eval $ac_compile) 2>&5
4430   ac_status=$?
4431   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4432   (exit $ac_status); }; then
4433     case "`/usr/bin/file conftest.o`" in
4434     *32-bit*)
4435       case $host in
4436         x86_64-*linux*)
4437           LD="${LD-ld} -m elf_i386"
4438           ;;
4439         ppc64-*linux*)
4440           LD="${LD-ld} -m elf32ppclinux"
4441           ;;
4442         s390x-*linux*)
4443           LD="${LD-ld} -m elf_s390"
4444           ;;
4445         sparc64-*linux*)
4446           LD="${LD-ld} -m elf32_sparc"
4447           ;;
4448       esac
4449       ;;
4450     *64-bit*)
4451       case $host in
4452         x86_64-*linux*)
4453           LD="${LD-ld} -m elf_x86_64"
4454           ;;
4455         ppc*-*linux*|powerpc*-*linux*)
4456           LD="${LD-ld} -m elf64ppc"
4457           ;;
4458         s390*-*linux*)
4459           LD="${LD-ld} -m elf64_s390"
4460           ;;
4461         sparc*-*linux*)
4462           LD="${LD-ld} -m elf64_sparc"
4463           ;;
4464       esac
4465       ;;
4466     esac
4467   fi
4468   rm -rf conftest*
4469   ;;
4470
4471 *-*-sco3.2v5*)
4472   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4473   SAVE_CFLAGS="$CFLAGS"
4474   CFLAGS="$CFLAGS -belf"
4475   echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
4476 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
4477 if test "${lt_cv_cc_needs_belf+set}" = set; then
4478   echo $ECHO_N "(cached) $ECHO_C" >&6
4479 else
4480   ac_ext=c
4481 ac_cpp='$CPP $CPPFLAGS'
4482 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4483 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4484 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4485
4486      cat >conftest.$ac_ext <<_ACEOF
4487 #line $LINENO "configure"
4488 /* confdefs.h.  */
4489 _ACEOF
4490 cat confdefs.h >>conftest.$ac_ext
4491 cat >>conftest.$ac_ext <<_ACEOF
4492 /* end confdefs.h.  */
4493
4494 int
4495 main ()
4496 {
4497
4498   ;
4499   return 0;
4500 }
4501 _ACEOF
4502 rm -f conftest.$ac_objext conftest$ac_exeext
4503 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4504   (eval $ac_link) 2>&5
4505   ac_status=$?
4506   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4507   (exit $ac_status); } &&
4508          { ac_try='test -s conftest$ac_exeext'
4509   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4510   (eval $ac_try) 2>&5
4511   ac_status=$?
4512   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4513   (exit $ac_status); }; }; then
4514   lt_cv_cc_needs_belf=yes
4515 else
4516   echo "$as_me: failed program was:" >&5
4517 sed 's/^/| /' conftest.$ac_ext >&5
4518
4519 lt_cv_cc_needs_belf=no
4520 fi
4521 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4522      ac_ext=c
4523 ac_cpp='$CPP $CPPFLAGS'
4524 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4525 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4526 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4527
4528 fi
4529 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
4530 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
4531   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4532     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4533     CFLAGS="$SAVE_CFLAGS"
4534   fi
4535   ;;
4536
4537 esac
4538
4539 need_locks="$enable_libtool_lock"
4540
4541
4542
4543 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4544 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4545 if test "${ac_cv_header_stdc+set}" = set; then
4546   echo $ECHO_N "(cached) $ECHO_C" >&6
4547 else
4548   cat >conftest.$ac_ext <<_ACEOF
4549 #line $LINENO "configure"
4550 /* confdefs.h.  */
4551 _ACEOF
4552 cat confdefs.h >>conftest.$ac_ext
4553 cat >>conftest.$ac_ext <<_ACEOF
4554 /* end confdefs.h.  */
4555 #include <stdlib.h>
4556 #include <stdarg.h>
4557 #include <string.h>
4558 #include <float.h>
4559
4560 int
4561 main ()
4562 {
4563
4564   ;
4565   return 0;
4566 }
4567 _ACEOF
4568 rm -f conftest.$ac_objext
4569 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4570   (eval $ac_compile) 2>&5
4571   ac_status=$?
4572   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4573   (exit $ac_status); } &&
4574          { ac_try='test -s conftest.$ac_objext'
4575   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4576   (eval $ac_try) 2>&5
4577   ac_status=$?
4578   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4579   (exit $ac_status); }; }; then
4580   ac_cv_header_stdc=yes
4581 else
4582   echo "$as_me: failed program was:" >&5
4583 sed 's/^/| /' conftest.$ac_ext >&5
4584
4585 ac_cv_header_stdc=no
4586 fi
4587 rm -f conftest.$ac_objext conftest.$ac_ext
4588
4589 if test $ac_cv_header_stdc = yes; then
4590   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4591   cat >conftest.$ac_ext <<_ACEOF
4592 #line $LINENO "configure"
4593 /* confdefs.h.  */
4594 _ACEOF
4595 cat confdefs.h >>conftest.$ac_ext
4596 cat >>conftest.$ac_ext <<_ACEOF
4597 /* end confdefs.h.  */
4598 #include <string.h>
4599
4600 _ACEOF
4601 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4602   $EGREP "memchr" >/dev/null 2>&1; then
4603   :
4604 else
4605   ac_cv_header_stdc=no
4606 fi
4607 rm -f conftest*
4608
4609 fi
4610
4611 if test $ac_cv_header_stdc = yes; then
4612   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4613   cat >conftest.$ac_ext <<_ACEOF
4614 #line $LINENO "configure"
4615 /* confdefs.h.  */
4616 _ACEOF
4617 cat confdefs.h >>conftest.$ac_ext
4618 cat >>conftest.$ac_ext <<_ACEOF
4619 /* end confdefs.h.  */
4620 #include <stdlib.h>
4621
4622 _ACEOF
4623 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4624   $EGREP "free" >/dev/null 2>&1; then
4625   :
4626 else
4627   ac_cv_header_stdc=no
4628 fi
4629 rm -f conftest*
4630
4631 fi
4632
4633 if test $ac_cv_header_stdc = yes; then
4634   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4635   if test "$cross_compiling" = yes; then
4636   :
4637 else
4638   cat >conftest.$ac_ext <<_ACEOF
4639 #line $LINENO "configure"
4640 /* confdefs.h.  */
4641 _ACEOF
4642 cat confdefs.h >>conftest.$ac_ext
4643 cat >>conftest.$ac_ext <<_ACEOF
4644 /* end confdefs.h.  */
4645 #include <ctype.h>
4646 #if ((' ' & 0x0FF) == 0x020)
4647 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4648 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4649 #else
4650 # define ISLOWER(c) \
4651                    (('a' <= (c) && (c) <= 'i') \
4652                      || ('j' <= (c) && (c) <= 'r') \
4653                      || ('s' <= (c) && (c) <= 'z'))
4654 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4655 #endif
4656
4657 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4658 int
4659 main ()
4660 {
4661   int i;
4662   for (i = 0; i < 256; i++)
4663     if (XOR (islower (i), ISLOWER (i))
4664         || toupper (i) != TOUPPER (i))
4665       exit(2);
4666   exit (0);
4667 }
4668 _ACEOF
4669 rm -f conftest$ac_exeext
4670 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4671   (eval $ac_link) 2>&5
4672   ac_status=$?
4673   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4674   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4675   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4676   (eval $ac_try) 2>&5
4677   ac_status=$?
4678   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4679   (exit $ac_status); }; }; then
4680   :
4681 else
4682   echo "$as_me: program exited with status $ac_status" >&5
4683 echo "$as_me: failed program was:" >&5
4684 sed 's/^/| /' conftest.$ac_ext >&5
4685
4686 ( exit $ac_status )
4687 ac_cv_header_stdc=no
4688 fi
4689 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4690 fi
4691 fi
4692 fi
4693 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4694 echo "${ECHO_T}$ac_cv_header_stdc" >&6
4695 if test $ac_cv_header_stdc = yes; then
4696
4697 cat >>confdefs.h <<\_ACEOF
4698 #define STDC_HEADERS 1
4699 _ACEOF
4700
4701 fi
4702
4703 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4704
4705
4706
4707
4708
4709
4710
4711
4712
4713 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4714                   inttypes.h stdint.h unistd.h
4715 do
4716 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4717 echo "$as_me:$LINENO: checking for $ac_header" >&5
4718 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4719 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4720   echo $ECHO_N "(cached) $ECHO_C" >&6
4721 else
4722   cat >conftest.$ac_ext <<_ACEOF
4723 #line $LINENO "configure"
4724 /* confdefs.h.  */
4725 _ACEOF
4726 cat confdefs.h >>conftest.$ac_ext
4727 cat >>conftest.$ac_ext <<_ACEOF
4728 /* end confdefs.h.  */
4729 $ac_includes_default
4730
4731 #include <$ac_header>
4732 _ACEOF
4733 rm -f conftest.$ac_objext
4734 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4735   (eval $ac_compile) 2>&5
4736   ac_status=$?
4737   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4738   (exit $ac_status); } &&
4739          { ac_try='test -s conftest.$ac_objext'
4740   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4741   (eval $ac_try) 2>&5
4742   ac_status=$?
4743   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4744   (exit $ac_status); }; }; then
4745   eval "$as_ac_Header=yes"
4746 else
4747   echo "$as_me: failed program was:" >&5
4748 sed 's/^/| /' conftest.$ac_ext >&5
4749
4750 eval "$as_ac_Header=no"
4751 fi
4752 rm -f conftest.$ac_objext conftest.$ac_ext
4753 fi
4754 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4755 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4756 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4757   cat >>confdefs.h <<_ACEOF
4758 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4759 _ACEOF
4760
4761 fi
4762
4763 done
4764
4765
4766
4767 for ac_header in dlfcn.h
4768 do
4769 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4770 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4771   echo "$as_me:$LINENO: checking for $ac_header" >&5
4772 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4773 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4774   echo $ECHO_N "(cached) $ECHO_C" >&6
4775 fi
4776 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4777 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4778 else
4779   # Is the header compilable?
4780 echo "$as_me:$LINENO: checking $ac_header usability" >&5
4781 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4782 cat >conftest.$ac_ext <<_ACEOF
4783 #line $LINENO "configure"
4784 /* confdefs.h.  */
4785 _ACEOF
4786 cat confdefs.h >>conftest.$ac_ext
4787 cat >>conftest.$ac_ext <<_ACEOF
4788 /* end confdefs.h.  */
4789 $ac_includes_default
4790 #include <$ac_header>
4791 _ACEOF
4792 rm -f conftest.$ac_objext
4793 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4794   (eval $ac_compile) 2>&5
4795   ac_status=$?
4796   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4797   (exit $ac_status); } &&
4798          { ac_try='test -s conftest.$ac_objext'
4799   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4800   (eval $ac_try) 2>&5
4801   ac_status=$?
4802   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4803   (exit $ac_status); }; }; then
4804   ac_header_compiler=yes
4805 else
4806   echo "$as_me: failed program was:" >&5
4807 sed 's/^/| /' conftest.$ac_ext >&5
4808
4809 ac_header_compiler=no
4810 fi
4811 rm -f conftest.$ac_objext conftest.$ac_ext
4812 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4813 echo "${ECHO_T}$ac_header_compiler" >&6
4814
4815 # Is the header present?
4816 echo "$as_me:$LINENO: checking $ac_header presence" >&5
4817 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4818 cat >conftest.$ac_ext <<_ACEOF
4819 #line $LINENO "configure"
4820 /* confdefs.h.  */
4821 _ACEOF
4822 cat confdefs.h >>conftest.$ac_ext
4823 cat >>conftest.$ac_ext <<_ACEOF
4824 /* end confdefs.h.  */
4825 #include <$ac_header>
4826 _ACEOF
4827 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4828   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4829   ac_status=$?
4830   grep -v '^ *+' conftest.er1 >conftest.err
4831   rm -f conftest.er1
4832   cat conftest.err >&5
4833   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4834   (exit $ac_status); } >/dev/null; then
4835   if test -s conftest.err; then
4836     ac_cpp_err=$ac_c_preproc_warn_flag
4837   else
4838     ac_cpp_err=
4839   fi
4840 else
4841   ac_cpp_err=yes
4842 fi
4843 if test -z "$ac_cpp_err"; then
4844   ac_header_preproc=yes
4845 else
4846   echo "$as_me: failed program was:" >&5
4847 sed 's/^/| /' conftest.$ac_ext >&5
4848
4849   ac_header_preproc=no
4850 fi
4851 rm -f conftest.err conftest.$ac_ext
4852 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4853 echo "${ECHO_T}$ac_header_preproc" >&6
4854
4855 # So?  What about this header?
4856 case $ac_header_compiler:$ac_header_preproc in
4857   yes:no )
4858     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4859 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4860     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4861 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4862     (
4863       cat <<\_ASBOX
4864 ## ------------------------------------ ##
4865 ## Report this to bug-autoconf@gnu.org. ##
4866 ## ------------------------------------ ##
4867 _ASBOX
4868     ) |
4869       sed "s/^/$as_me: WARNING:     /" >&2
4870     ;;
4871   no:yes )
4872     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4873 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4874     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4875 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4876     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4877 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4878     (
4879       cat <<\_ASBOX
4880 ## ------------------------------------ ##
4881 ## Report this to bug-autoconf@gnu.org. ##
4882 ## ------------------------------------ ##
4883 _ASBOX
4884     ) |
4885       sed "s/^/$as_me: WARNING:     /" >&2
4886     ;;
4887 esac
4888 echo "$as_me:$LINENO: checking for $ac_header" >&5
4889 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4890 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4891   echo $ECHO_N "(cached) $ECHO_C" >&6
4892 else
4893   eval "$as_ac_Header=$ac_header_preproc"
4894 fi
4895 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4896 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4897
4898 fi
4899 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4900   cat >>confdefs.h <<_ACEOF
4901 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4902 _ACEOF
4903
4904 fi
4905
4906 done
4907
4908 ac_ext=cc
4909 ac_cpp='$CXXCPP $CPPFLAGS'
4910 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4911 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4912 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4913 echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
4914 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
4915 if test -z "$CXXCPP"; then
4916   if test "${ac_cv_prog_CXXCPP+set}" = set; then
4917   echo $ECHO_N "(cached) $ECHO_C" >&6
4918 else
4919       # Double quotes because CXXCPP needs to be expanded
4920     for CXXCPP in "$CXX -E" "/lib/cpp"
4921     do
4922       ac_preproc_ok=false
4923 for ac_cxx_preproc_warn_flag in '' yes
4924 do
4925   # Use a header file that comes with gcc, so configuring glibc
4926   # with a fresh cross-compiler works.
4927   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4928   # <limits.h> exists even on freestanding compilers.
4929   # On the NeXT, cc -E runs the code through the compiler's parser,
4930   # not just through cpp. "Syntax error" is here to catch this case.
4931   cat >conftest.$ac_ext <<_ACEOF
4932 #line $LINENO "configure"
4933 /* confdefs.h.  */
4934 _ACEOF
4935 cat confdefs.h >>conftest.$ac_ext
4936 cat >>conftest.$ac_ext <<_ACEOF
4937 /* end confdefs.h.  */
4938 #ifdef __STDC__
4939 # include <limits.h>
4940 #else
4941 # include <assert.h>
4942 #endif
4943                      Syntax error
4944 _ACEOF
4945 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4946   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4947   ac_status=$?
4948   grep -v '^ *+' conftest.er1 >conftest.err
4949   rm -f conftest.er1
4950   cat conftest.err >&5
4951   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4952   (exit $ac_status); } >/dev/null; then
4953   if test -s conftest.err; then
4954     ac_cpp_err=$ac_cxx_preproc_warn_flag
4955   else
4956     ac_cpp_err=
4957   fi
4958 else
4959   ac_cpp_err=yes
4960 fi
4961 if test -z "$ac_cpp_err"; then
4962   :
4963 else
4964   echo "$as_me: failed program was:" >&5
4965 sed 's/^/| /' conftest.$ac_ext >&5
4966
4967   # Broken: fails on valid input.
4968 continue
4969 fi
4970 rm -f conftest.err conftest.$ac_ext
4971
4972   # OK, works on sane cases.  Now check whether non-existent headers
4973   # can be detected and how.
4974   cat >conftest.$ac_ext <<_ACEOF
4975 #line $LINENO "configure"
4976 /* confdefs.h.  */
4977 _ACEOF
4978 cat confdefs.h >>conftest.$ac_ext
4979 cat >>conftest.$ac_ext <<_ACEOF
4980 /* end confdefs.h.  */
4981 #include <ac_nonexistent.h>
4982 _ACEOF
4983 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4984   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4985   ac_status=$?
4986   grep -v '^ *+' conftest.er1 >conftest.err
4987   rm -f conftest.er1
4988   cat conftest.err >&5
4989   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4990   (exit $ac_status); } >/dev/null; then
4991   if test -s conftest.err; then
4992     ac_cpp_err=$ac_cxx_preproc_warn_flag
4993   else
4994     ac_cpp_err=
4995   fi
4996 else
4997   ac_cpp_err=yes
4998 fi
4999 if test -z "$ac_cpp_err"; then
5000   # Broken: success on invalid input.
5001 continue
5002 else
5003   echo "$as_me: failed program was:" >&5
5004 sed 's/^/| /' conftest.$ac_ext >&5
5005
5006   # Passes both tests.
5007 ac_preproc_ok=:
5008 break
5009 fi
5010 rm -f conftest.err conftest.$ac_ext
5011
5012 done
5013 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5014 rm -f conftest.err conftest.$ac_ext
5015 if $ac_preproc_ok; then
5016   break
5017 fi
5018
5019     done
5020     ac_cv_prog_CXXCPP=$CXXCPP
5021
5022 fi
5023   CXXCPP=$ac_cv_prog_CXXCPP
5024 else
5025   ac_cv_prog_CXXCPP=$CXXCPP
5026 fi
5027 echo "$as_me:$LINENO: result: $CXXCPP" >&5
5028 echo "${ECHO_T}$CXXCPP" >&6
5029 ac_preproc_ok=false
5030 for ac_cxx_preproc_warn_flag in '' yes
5031 do
5032   # Use a header file that comes with gcc, so configuring glibc
5033   # with a fresh cross-compiler works.
5034   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5035   # <limits.h> exists even on freestanding compilers.
5036   # On the NeXT, cc -E runs the code through the compiler's parser,
5037   # not just through cpp. "Syntax error" is here to catch this case.
5038   cat >conftest.$ac_ext <<_ACEOF
5039 #line $LINENO "configure"
5040 /* confdefs.h.  */
5041 _ACEOF
5042 cat confdefs.h >>conftest.$ac_ext
5043 cat >>conftest.$ac_ext <<_ACEOF
5044 /* end confdefs.h.  */
5045 #ifdef __STDC__
5046 # include <limits.h>
5047 #else
5048 # include <assert.h>
5049 #endif
5050                      Syntax error
5051 _ACEOF
5052 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5053   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5054   ac_status=$?
5055   grep -v '^ *+' conftest.er1 >conftest.err
5056   rm -f conftest.er1
5057   cat conftest.err >&5
5058   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5059   (exit $ac_status); } >/dev/null; then
5060   if test -s conftest.err; then
5061     ac_cpp_err=$ac_cxx_preproc_warn_flag
5062   else
5063     ac_cpp_err=
5064   fi
5065 else
5066   ac_cpp_err=yes
5067 fi
5068 if test -z "$ac_cpp_err"; then
5069   :
5070 else
5071   echo "$as_me: failed program was:" >&5
5072 sed 's/^/| /' conftest.$ac_ext >&5
5073
5074   # Broken: fails on valid input.
5075 continue
5076 fi
5077 rm -f conftest.err conftest.$ac_ext
5078
5079   # OK, works on sane cases.  Now check whether non-existent headers
5080   # can be detected and how.
5081   cat >conftest.$ac_ext <<_ACEOF
5082 #line $LINENO "configure"
5083 /* confdefs.h.  */
5084 _ACEOF
5085 cat confdefs.h >>conftest.$ac_ext
5086 cat >>conftest.$ac_ext <<_ACEOF
5087 /* end confdefs.h.  */
5088 #include <ac_nonexistent.h>
5089 _ACEOF
5090 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5091   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5092   ac_status=$?
5093   grep -v '^ *+' conftest.er1 >conftest.err
5094   rm -f conftest.er1
5095   cat conftest.err >&5
5096   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5097   (exit $ac_status); } >/dev/null; then
5098   if test -s conftest.err; then
5099     ac_cpp_err=$ac_cxx_preproc_warn_flag
5100   else
5101     ac_cpp_err=
5102   fi
5103 else
5104   ac_cpp_err=yes
5105 fi
5106 if test -z "$ac_cpp_err"; then
5107   # Broken: success on invalid input.
5108 continue
5109 else
5110   echo "$as_me: failed program was:" >&5
5111 sed 's/^/| /' conftest.$ac_ext >&5
5112
5113   # Passes both tests.
5114 ac_preproc_ok=:
5115 break
5116 fi
5117 rm -f conftest.err conftest.$ac_ext
5118
5119 done
5120 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5121 rm -f conftest.err conftest.$ac_ext
5122 if $ac_preproc_ok; then
5123   :
5124 else
5125   { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5126 See \`config.log' for more details." >&5
5127 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5128 See \`config.log' for more details." >&2;}
5129    { (exit 1); exit 1; }; }
5130 fi
5131
5132 ac_ext=cc
5133 ac_cpp='$CXXCPP $CPPFLAGS'
5134 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5135 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5136 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5137
5138
5139 ac_ext=f
5140 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
5141 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5142 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
5143 if test -n "$ac_tool_prefix"; then
5144   for ac_prog in g77 f77 xlf frt pgf77 fl32 af77 fort77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 lf95 g95
5145   do
5146     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5147 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5148 echo "$as_me:$LINENO: checking for $ac_word" >&5
5149 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5150 if test "${ac_cv_prog_F77+set}" = set; then
5151   echo $ECHO_N "(cached) $ECHO_C" >&6
5152 else
5153   if test -n "$F77"; then
5154   ac_cv_prog_F77="$F77" # Let the user override the test.
5155 else
5156 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5157 for as_dir in $PATH
5158 do
5159   IFS=$as_save_IFS
5160   test -z "$as_dir" && as_dir=.
5161   for ac_exec_ext in '' $ac_executable_extensions; do
5162   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5163     ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
5164     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5165     break 2
5166   fi
5167 done
5168 done
5169
5170 fi
5171 fi
5172 F77=$ac_cv_prog_F77
5173 if test -n "$F77"; then
5174   echo "$as_me:$LINENO: result: $F77" >&5
5175 echo "${ECHO_T}$F77" >&6
5176 else
5177   echo "$as_me:$LINENO: result: no" >&5
5178 echo "${ECHO_T}no" >&6
5179 fi
5180
5181     test -n "$F77" && break
5182   done
5183 fi
5184 if test -z "$F77"; then
5185   ac_ct_F77=$F77
5186   for ac_prog in g77 f77 xlf frt pgf77 fl32 af77 fort77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 lf95 g95
5187 do
5188   # Extract the first word of "$ac_prog", so it can be a program name with args.
5189 set dummy $ac_prog; ac_word=$2
5190 echo "$as_me:$LINENO: checking for $ac_word" >&5
5191 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5192 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
5193   echo $ECHO_N "(cached) $ECHO_C" >&6
5194 else
5195   if test -n "$ac_ct_F77"; then
5196   ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
5197 else
5198 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5199 for as_dir in $PATH
5200 do
5201   IFS=$as_save_IFS
5202   test -z "$as_dir" && as_dir=.
5203   for ac_exec_ext in '' $ac_executable_extensions; do
5204   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5205     ac_cv_prog_ac_ct_F77="$ac_prog"
5206     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5207     break 2
5208   fi
5209 done
5210 done
5211
5212 fi
5213 fi
5214 ac_ct_F77=$ac_cv_prog_ac_ct_F77
5215 if test -n "$ac_ct_F77"; then
5216   echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
5217 echo "${ECHO_T}$ac_ct_F77" >&6
5218 else
5219   echo "$as_me:$LINENO: result: no" >&5
5220 echo "${ECHO_T}no" >&6
5221 fi
5222
5223   test -n "$ac_ct_F77" && break
5224 done
5225
5226   F77=$ac_ct_F77
5227 fi
5228
5229
5230 # Provide some information about the compiler.
5231 echo "$as_me:5231:" \
5232      "checking for Fortran 77 compiler version" >&5
5233 ac_compiler=`set X $ac_compile; echo $2`
5234 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
5235   (eval $ac_compiler --version </dev/null >&5) 2>&5
5236   ac_status=$?
5237   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5238   (exit $ac_status); }
5239 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
5240   (eval $ac_compiler -v </dev/null >&5) 2>&5
5241   ac_status=$?
5242   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5243   (exit $ac_status); }
5244 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
5245   (eval $ac_compiler -V </dev/null >&5) 2>&5
5246   ac_status=$?
5247   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5248   (exit $ac_status); }
5249
5250 # If we don't use `.F' as extension, the preprocessor is not run on the
5251 # input file.
5252 ac_save_ext=$ac_ext
5253 ac_ext=F
5254 echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
5255 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
5256 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
5257   echo $ECHO_N "(cached) $ECHO_C" >&6
5258 else
5259   cat >conftest.$ac_ext <<_ACEOF
5260       program main
5261 #ifndef __GNUC__
5262        choke me
5263 #endif
5264
5265       end
5266 _ACEOF
5267 rm -f conftest.$ac_objext
5268 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5269   (eval $ac_compile) 2>&5
5270   ac_status=$?
5271   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5272   (exit $ac_status); } &&
5273          { ac_try='test -s conftest.$ac_objext'
5274   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5275   (eval $ac_try) 2>&5
5276   ac_status=$?
5277   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5278   (exit $ac_status); }; }; then
5279   ac_compiler_gnu=yes
5280 else
5281   echo "$as_me: failed program was:" >&5
5282 sed 's/^/| /' conftest.$ac_ext >&5
5283
5284 ac_compiler_gnu=no
5285 fi
5286 rm -f conftest.$ac_objext conftest.$ac_ext
5287 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
5288
5289 fi
5290 echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
5291 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
5292 ac_ext=$ac_save_ext
5293 G77=`test $ac_compiler_gnu = yes && echo yes`
5294 ac_test_FFLAGS=${FFLAGS+set}
5295 ac_save_FFLAGS=$FFLAGS
5296 FFLAGS=
5297 echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
5298 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
5299 if test "${ac_cv_prog_f77_g+set}" = set; then
5300   echo $ECHO_N "(cached) $ECHO_C" >&6
5301 else
5302   FFLAGS=-g
5303 cat >conftest.$ac_ext <<_ACEOF
5304       program main
5305
5306       end
5307 _ACEOF
5308 rm -f conftest.$ac_objext
5309 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5310   (eval $ac_compile) 2>&5
5311   ac_status=$?
5312   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5313   (exit $ac_status); } &&
5314          { ac_try='test -s conftest.$ac_objext'
5315   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5316   (eval $ac_try) 2>&5
5317   ac_status=$?
5318   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5319   (exit $ac_status); }; }; then
5320   ac_cv_prog_f77_g=yes
5321 else
5322   echo "$as_me: failed program was:" >&5
5323 sed 's/^/| /' conftest.$ac_ext >&5
5324
5325 ac_cv_prog_f77_g=no
5326 fi
5327 rm -f conftest.$ac_objext conftest.$ac_ext
5328
5329 fi
5330 echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
5331 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
5332 if test "$ac_test_FFLAGS" = set; then
5333   FFLAGS=$ac_save_FFLAGS
5334 elif test $ac_cv_prog_f77_g = yes; then
5335   if test "$G77" = yes; then
5336     FFLAGS="-g -O2"
5337   else
5338     FFLAGS="-g"
5339   fi
5340 else
5341   if test "$G77" = yes; then
5342     FFLAGS="-O2"
5343   else
5344     FFLAGS=
5345   fi
5346 fi
5347 ac_ext=c
5348 ac_cpp='$CPP $CPPFLAGS'
5349 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5350 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5351 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5352
5353
5354
5355 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
5356
5357 # find the maximum length of command line arguments
5358 echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
5359 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
5360 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
5361   echo $ECHO_N "(cached) $ECHO_C" >&6
5362 else
5363     i=0
5364   testring="ABCD"
5365
5366   case $build_os in
5367   msdosdjgpp*)
5368     # On DJGPP, this test can blow up pretty badly due to problems in libc
5369     # (any single argument exceeding 2000 bytes causes a buffer overrun
5370     # during glob expansion).  Even if it were fixed, the result of this
5371     # check would be larger than it should be.
5372     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
5373     ;;
5374
5375   gnu*)
5376     # Under GNU Hurd, this test is not required because there is
5377     # no limit to the length of command line arguments.
5378     # Libtool will interpret -1 as no limit whatsoever
5379     lt_cv_sys_max_cmd_len=-1;
5380     ;;
5381
5382   cygwin* | mingw*)
5383     # On Win9x/ME, this test blows up -- it succeeds, but takes
5384     # about 5 minutes as the teststring grows exponentially.
5385     # Worse, since 9x/ME are not pre-emptively multitasking,
5386     # you end up with a "frozen" computer, even though with patience
5387     # the test eventually succeeds (with a max line length of 256k).
5388     # Instead, let's just punt: use the minimum linelength reported by
5389     # all of the supported platforms: 8192 (on NT/2K/XP).
5390     lt_cv_sys_max_cmd_len=8192;
5391     ;;
5392
5393  *)
5394     # If test is not a shell built-in, we'll probably end up computing a
5395     # maximum length that is only half of the actual maximum length, but
5396     # we can't tell.
5397     while (test "X"`$CONFIG_SHELL $0 --fallback-echo "X$testring" 2>/dev/null` \
5398                = "XX$testring") >/dev/null 2>&1 &&
5399             new_result=`expr "X$testring" : ".*" 2>&1` &&
5400             lt_cv_sys_max_cmd_len=$new_result &&
5401             test $i != 17 # 1/2 MB should be enough
5402     do
5403       i=`expr $i + 1`
5404       testring=$testring$testring
5405     done
5406     testring=
5407     # Add a significant safety factor because C++ compilers can tack on massive
5408     # amounts of additional arguments before passing them to the linker.
5409     # It appears as though 1/2 is a usable value.
5410     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5411     ;;
5412   esac
5413
5414 fi
5415
5416 if test -n $lt_cv_sys_max_cmd_len ; then
5417   echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
5418 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
5419 else
5420   echo "$as_me:$LINENO: result: none" >&5
5421 echo "${ECHO_T}none" >&6
5422 fi
5423
5424
5425
5426
5427 # Check for command to grab the raw symbol name followed by C symbol from nm.
5428 echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
5429 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
5430 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
5431   echo $ECHO_N "(cached) $ECHO_C" >&6
5432 else
5433
5434 # These are sane defaults that work on at least a few old systems.
5435 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
5436
5437 # Character class describing NM global symbol codes.
5438 symcode='[BCDEGRST]'
5439
5440 # Regexp to match symbols that can be accessed directly from C.
5441 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5442
5443 # Transform the above into a raw symbol and a C symbol.
5444 symxfrm='\1 \2\3 \3'
5445
5446 # Transform an extracted symbol line into a proper C declaration
5447 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
5448
5449 # Transform an extracted symbol line into symbol name and symbol address
5450 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'"
5451
5452 # Define system-specific variables.
5453 case $host_os in
5454 aix*)
5455   symcode='[BCDT]'
5456   ;;
5457 cygwin* | mingw* | pw32*)
5458   symcode='[ABCDGISTW]'
5459   ;;
5460 hpux*) # Its linker distinguishes data from code symbols
5461   if test "$host_cpu" = ia64; then
5462     symcode='[ABCDEGRST]'
5463   fi
5464   lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5465   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'"
5466   ;;
5467 irix* | nonstopux*)
5468   symcode='[BCDEGRST]'
5469   ;;
5470 osf*)
5471   symcode='[BCDEGQRST]'
5472   ;;
5473 solaris* | sysv5*)
5474   symcode='[BDT]'
5475   ;;
5476 sysv4)
5477   symcode='[DFNSTU]'
5478   ;;
5479 esac
5480
5481 # Handle CRLF in mingw tool chain
5482 opt_cr=
5483 case $build_os in
5484 mingw*)
5485   opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5486   ;;
5487 esac
5488
5489 # If we're using GNU nm, then use its standard symbol codes.
5490 case `$NM -V 2>&1` in
5491 *GNU* | *'with BFD'*)
5492   symcode='[ABCDGISTW]' ;;
5493 esac
5494
5495 # Try without a prefix undercore, then with it.
5496 for ac_symprfx in "" "_"; do
5497
5498   # Write the raw and C identifiers.
5499   lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
5500
5501   # Check to see that the pipe works correctly.
5502   pipe_works=no
5503
5504   rm -f conftest*
5505   cat > conftest.$ac_ext <<EOF
5506 #ifdef __cplusplus
5507 extern "C" {
5508 #endif
5509 char nm_test_var;
5510 void nm_test_func(){}
5511 #ifdef __cplusplus
5512 }
5513 #endif
5514 int main(){nm_test_var='a';nm_test_func();return(0);}
5515 EOF
5516
5517   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5518   (eval $ac_compile) 2>&5
5519   ac_status=$?
5520   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5521   (exit $ac_status); }; then
5522     # Now try to grab the symbols.
5523     nlist=conftest.nm
5524     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
5525   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
5526   ac_status=$?
5527   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5528   (exit $ac_status); } && test -s "$nlist"; then
5529       # Try sorting and uniquifying the output.
5530       if sort "$nlist" | uniq > "$nlist"T; then
5531         mv -f "$nlist"T "$nlist"
5532       else
5533         rm -f "$nlist"T
5534       fi
5535
5536       # Make sure that we snagged all the symbols we need.
5537       if grep ' nm_test_var$' "$nlist" >/dev/null; then
5538         if grep ' nm_test_func$' "$nlist" >/dev/null; then
5539           cat <<EOF > conftest.$ac_ext
5540 #ifdef __cplusplus
5541 extern "C" {
5542 #endif
5543
5544 EOF
5545           # Now generate the symbol file.
5546           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
5547
5548           cat <<EOF >> conftest.$ac_ext
5549 #if defined (__STDC__) && __STDC__
5550 # define lt_ptr_t void *
5551 #else
5552 # define lt_ptr_t char *
5553 # define const
5554 #endif
5555
5556 /* The mapping between symbol names and symbols. */
5557 const struct {
5558   const char *name;
5559   lt_ptr_t address;
5560 }
5561 lt_preloaded_symbols[] =
5562 {
5563 EOF
5564           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
5565           cat <<\EOF >> conftest.$ac_ext
5566   {0, (lt_ptr_t) 0}
5567 };
5568
5569 #ifdef __cplusplus
5570 }
5571 #endif
5572 EOF
5573           # Now try linking the two files.
5574           mv conftest.$ac_objext conftstm.$ac_objext
5575           lt_save_LIBS="$LIBS"
5576           lt_save_CFLAGS="$CFLAGS"
5577           LIBS="conftstm.$ac_objext"
5578           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5579           if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5580   (eval $ac_link) 2>&5
5581   ac_status=$?
5582   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5583   (exit $ac_status); } && test -s conftest${ac_exeext}; then
5584             pipe_works=yes
5585           fi
5586           LIBS="$lt_save_LIBS"
5587           CFLAGS="$lt_save_CFLAGS"
5588         else
5589           echo "cannot find nm_test_func in $nlist" >&5
5590         fi
5591       else
5592         echo "cannot find nm_test_var in $nlist" >&5
5593       fi
5594     else
5595       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5596     fi
5597   else
5598     echo "$progname: failed program was:" >&5
5599     cat conftest.$ac_ext >&5
5600   fi
5601   rm -f conftest* conftst*
5602
5603   # Do not use the global_symbol_pipe unless it works.
5604   if test "$pipe_works" = yes; then
5605     break
5606   else
5607     lt_cv_sys_global_symbol_pipe=
5608   fi
5609 done
5610
5611 fi
5612
5613 if test -z "$lt_cv_sys_global_symbol_pipe"; then
5614   lt_cv_sys_global_symbol_to_cdecl=
5615 fi
5616 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5617   echo "$as_me:$LINENO: result: failed" >&5
5618 echo "${ECHO_T}failed" >&6
5619 else
5620   echo "$as_me:$LINENO: result: ok" >&5
5621 echo "${ECHO_T}ok" >&6
5622 fi
5623
5624 echo "$as_me:$LINENO: checking for objdir" >&5
5625 echo $ECHO_N "checking for objdir... $ECHO_C" >&6
5626 if test "${lt_cv_objdir+set}" = set; then
5627   echo $ECHO_N "(cached) $ECHO_C" >&6
5628 else
5629   rm -f .libs 2>/dev/null
5630 mkdir .libs 2>/dev/null
5631 if test -d .libs; then
5632   lt_cv_objdir=.libs
5633 else
5634   # MS-DOS does not allow filenames that begin with a dot.
5635   lt_cv_objdir=_libs
5636 fi
5637 rmdir .libs 2>/dev/null
5638 fi
5639 echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
5640 echo "${ECHO_T}$lt_cv_objdir" >&6
5641 objdir=$lt_cv_objdir
5642
5643
5644
5645
5646
5647 case $host_os in
5648 aix3*)
5649   # AIX sometimes has problems with the GCC collect2 program.  For some
5650   # reason, if we set the COLLECT_NAMES environment variable, the problems
5651   # vanish in a puff of smoke.
5652   if test "X${COLLECT_NAMES+set}" != Xset; then
5653     COLLECT_NAMES=
5654     export COLLECT_NAMES
5655   fi
5656   ;;
5657 esac
5658
5659 # Sed substitution that helps us do robust quoting.  It backslashifies
5660 # metacharacters that are still active within double-quoted strings.
5661 Xsed='sed -e s/^X//'
5662 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
5663
5664 # Same as above, but do not quote variable references.
5665 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
5666
5667 # Sed substitution to delay expansion of an escaped shell variable in a
5668 # double_quote_subst'ed string.
5669 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5670
5671 # Sed substitution to avoid accidental globbing in evaled expressions
5672 no_glob_subst='s/\*/\\\*/g'
5673
5674 # Constants:
5675 rm="rm -f"
5676
5677 # Global variables:
5678 default_ofile=mklib
5679 can_build_shared=yes
5680
5681 # All known linkers require a `.a' archive for static linking (except M$VC,
5682 # which needs '.lib').
5683 libext=a
5684 ltmain="$ac_aux_dir/ltmain.sh"
5685 ofile="$default_ofile"
5686 with_gnu_ld="$lt_cv_prog_gnu_ld"
5687
5688 if test -n "$ac_tool_prefix"; then
5689   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5690 set dummy ${ac_tool_prefix}ar; ac_word=$2
5691 echo "$as_me:$LINENO: checking for $ac_word" >&5
5692 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5693 if test "${ac_cv_prog_AR+set}" = set; then
5694   echo $ECHO_N "(cached) $ECHO_C" >&6
5695 else
5696   if test -n "$AR"; then
5697   ac_cv_prog_AR="$AR" # Let the user override the test.
5698 else
5699 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5700 for as_dir in $PATH
5701 do
5702   IFS=$as_save_IFS
5703   test -z "$as_dir" && as_dir=.
5704   for ac_exec_ext in '' $ac_executable_extensions; do
5705   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5706     ac_cv_prog_AR="${ac_tool_prefix}ar"
5707     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5708     break 2
5709   fi
5710 done
5711 done
5712
5713 fi
5714 fi
5715 AR=$ac_cv_prog_AR
5716 if test -n "$AR"; then
5717   echo "$as_me:$LINENO: result: $AR" >&5
5718 echo "${ECHO_T}$AR" >&6
5719 else
5720   echo "$as_me:$LINENO: result: no" >&5
5721 echo "${ECHO_T}no" >&6
5722 fi
5723
5724 fi
5725 if test -z "$ac_cv_prog_AR"; then
5726   ac_ct_AR=$AR
5727   # Extract the first word of "ar", so it can be a program name with args.
5728 set dummy ar; ac_word=$2
5729 echo "$as_me:$LINENO: checking for $ac_word" >&5
5730 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5731 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
5732   echo $ECHO_N "(cached) $ECHO_C" >&6
5733 else
5734   if test -n "$ac_ct_AR"; then
5735   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5736 else
5737 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5738 for as_dir in $PATH
5739 do
5740   IFS=$as_save_IFS
5741   test -z "$as_dir" && as_dir=.
5742   for ac_exec_ext in '' $ac_executable_extensions; do
5743   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5744     ac_cv_prog_ac_ct_AR="ar"
5745     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5746     break 2
5747   fi
5748 done
5749 done
5750
5751   test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
5752 fi
5753 fi
5754 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5755 if test -n "$ac_ct_AR"; then
5756   echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
5757 echo "${ECHO_T}$ac_ct_AR" >&6
5758 else
5759   echo "$as_me:$LINENO: result: no" >&5
5760 echo "${ECHO_T}no" >&6
5761 fi
5762
5763   AR=$ac_ct_AR
5764 else
5765   AR="$ac_cv_prog_AR"
5766 fi
5767
5768 if test -n "$ac_tool_prefix"; then
5769   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5770 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5771 echo "$as_me:$LINENO: checking for $ac_word" >&5
5772 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5773 if test "${ac_cv_prog_RANLIB+set}" = set; then
5774   echo $ECHO_N "(cached) $ECHO_C" >&6
5775 else
5776   if test -n "$RANLIB"; then
5777   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5778 else
5779 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5780 for as_dir in $PATH
5781 do
5782   IFS=$as_save_IFS
5783   test -z "$as_dir" && as_dir=.
5784   for ac_exec_ext in '' $ac_executable_extensions; do
5785   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5786     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5787     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5788     break 2
5789   fi
5790 done
5791 done
5792
5793 fi
5794 fi
5795 RANLIB=$ac_cv_prog_RANLIB
5796 if test -n "$RANLIB"; then
5797   echo "$as_me:$LINENO: result: $RANLIB" >&5
5798 echo "${ECHO_T}$RANLIB" >&6
5799 else
5800   echo "$as_me:$LINENO: result: no" >&5
5801 echo "${ECHO_T}no" >&6
5802 fi
5803
5804 fi
5805 if test -z "$ac_cv_prog_RANLIB"; then
5806   ac_ct_RANLIB=$RANLIB
5807   # Extract the first word of "ranlib", so it can be a program name with args.
5808 set dummy ranlib; ac_word=$2
5809 echo "$as_me:$LINENO: checking for $ac_word" >&5
5810 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5811 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5812   echo $ECHO_N "(cached) $ECHO_C" >&6
5813 else
5814   if test -n "$ac_ct_RANLIB"; then
5815   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5816 else
5817 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5818 for as_dir in $PATH
5819 do
5820   IFS=$as_save_IFS
5821   test -z "$as_dir" && as_dir=.
5822   for ac_exec_ext in '' $ac_executable_extensions; do
5823   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5824     ac_cv_prog_ac_ct_RANLIB="ranlib"
5825     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5826     break 2
5827   fi
5828 done
5829 done
5830
5831   test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
5832 fi
5833 fi
5834 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5835 if test -n "$ac_ct_RANLIB"; then
5836   echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5837 echo "${ECHO_T}$ac_ct_RANLIB" >&6
5838 else
5839   echo "$as_me:$LINENO: result: no" >&5
5840 echo "${ECHO_T}no" >&6
5841 fi
5842
5843   RANLIB=$ac_ct_RANLIB
5844 else
5845   RANLIB="$ac_cv_prog_RANLIB"
5846 fi
5847
5848 if test -n "$ac_tool_prefix"; then
5849   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5850 set dummy ${ac_tool_prefix}strip; ac_word=$2
5851 echo "$as_me:$LINENO: checking for $ac_word" >&5
5852 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5853 if test "${ac_cv_prog_STRIP+set}" = set; then
5854   echo $ECHO_N "(cached) $ECHO_C" >&6
5855 else
5856   if test -n "$STRIP"; then
5857   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5858 else
5859 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5860 for as_dir in $PATH
5861 do
5862   IFS=$as_save_IFS
5863   test -z "$as_dir" && as_dir=.
5864   for ac_exec_ext in '' $ac_executable_extensions; do
5865   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5866     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5867     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5868     break 2
5869   fi
5870 done
5871 done
5872
5873 fi
5874 fi
5875 STRIP=$ac_cv_prog_STRIP
5876 if test -n "$STRIP"; then
5877   echo "$as_me:$LINENO: result: $STRIP" >&5
5878 echo "${ECHO_T}$STRIP" >&6
5879 else
5880   echo "$as_me:$LINENO: result: no" >&5
5881 echo "${ECHO_T}no" >&6
5882 fi
5883
5884 fi
5885 if test -z "$ac_cv_prog_STRIP"; then
5886   ac_ct_STRIP=$STRIP
5887   # Extract the first word of "strip", so it can be a program name with args.
5888 set dummy strip; ac_word=$2
5889 echo "$as_me:$LINENO: checking for $ac_word" >&5
5890 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5891 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
5892   echo $ECHO_N "(cached) $ECHO_C" >&6
5893 else
5894   if test -n "$ac_ct_STRIP"; then
5895   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5896 else
5897 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5898 for as_dir in $PATH
5899 do
5900   IFS=$as_save_IFS
5901   test -z "$as_dir" && as_dir=.
5902   for ac_exec_ext in '' $ac_executable_extensions; do
5903   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5904     ac_cv_prog_ac_ct_STRIP="strip"
5905     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5906     break 2
5907   fi
5908 done
5909 done
5910
5911   test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
5912 fi
5913 fi
5914 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5915 if test -n "$ac_ct_STRIP"; then
5916   echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
5917 echo "${ECHO_T}$ac_ct_STRIP" >&6
5918 else
5919   echo "$as_me:$LINENO: result: no" >&5
5920 echo "${ECHO_T}no" >&6
5921 fi
5922
5923   STRIP=$ac_ct_STRIP
5924 else
5925   STRIP="$ac_cv_prog_STRIP"
5926 fi
5927
5928
5929 old_CC="$CC"
5930 old_CFLAGS="$CFLAGS"
5931
5932 # Set sane defaults for various variables
5933 test -z "$AR" && AR=ar
5934 test -z "$AR_FLAGS" && AR_FLAGS=cru
5935 test -z "$AS" && AS=as
5936 test -z "$CC" && CC=cc
5937 test -z "$LTCC" && LTCC=$CC
5938 test -z "$DLLTOOL" && DLLTOOL=dlltool
5939 test -z "$LD" && LD=ld
5940 test -z "$LN_S" && LN_S="ln -s"
5941 test -z "$MAGIC_CMD" && MAGIC_CMD=file
5942 test -z "$NM" && NM=nm
5943 test -z "$SED" && SED=sed
5944 test -z "$OBJDUMP" && OBJDUMP=objdump
5945 test -z "$RANLIB" && RANLIB=:
5946 test -z "$STRIP" && STRIP=:
5947 test -z "$ac_objext" && ac_objext=o
5948
5949 # Determine commands to create old-style static archives.
5950 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
5951 old_postinstall_cmds='chmod 644 $oldlib'
5952 old_postuninstall_cmds=
5953
5954 if test -n "$RANLIB"; then
5955   case $host_os in
5956   openbsd*)
5957     old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
5958     ;;
5959   *)
5960     old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
5961     ;;
5962   esac
5963   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
5964 fi
5965
5966 # Only perform the check for file, if the check method requires it
5967 case $deplibs_check_method in
5968 file_magic*)
5969   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
5970     echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
5971 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
5972 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
5973   echo $ECHO_N "(cached) $ECHO_C" >&6
5974 else
5975   case $MAGIC_CMD in
5976 [\\/*] |  ?:[\\/]*)
5977   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
5978   ;;
5979 *)
5980   lt_save_MAGIC_CMD="$MAGIC_CMD"
5981   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5982   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
5983   for ac_dir in $ac_dummy; do
5984     IFS="$lt_save_ifs"
5985     test -z "$ac_dir" && ac_dir=.
5986     if test -f $ac_dir/${ac_tool_prefix}file; then
5987       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
5988       if test -n "$file_magic_test_file"; then
5989         case $deplibs_check_method in
5990         "file_magic "*)
5991           file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
5992           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5993           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
5994             $EGREP "$file_magic_regex" > /dev/null; then
5995             :
5996           else
5997             cat <<EOF 1>&2
5998
5999 *** Warning: the command libtool uses to detect shared libraries,
6000 *** $file_magic_cmd, produces output that libtool cannot recognize.
6001 *** The result is that libtool may fail to recognize shared libraries
6002 *** as such.  This will affect the creation of libtool libraries that
6003 *** depend on shared libraries, but programs linked with such libtool
6004 *** libraries will work regardless of this problem.  Nevertheless, you
6005 *** may want to report the problem to your system manager and/or to
6006 *** bug-libtool@gnu.org
6007
6008 EOF
6009           fi ;;
6010         esac
6011       fi
6012       break
6013     fi
6014   done
6015   IFS="$lt_save_ifs"
6016   MAGIC_CMD="$lt_save_MAGIC_CMD"
6017   ;;
6018 esac
6019 fi
6020
6021 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6022 if test -n "$MAGIC_CMD"; then
6023   echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6024 echo "${ECHO_T}$MAGIC_CMD" >&6
6025 else
6026   echo "$as_me:$LINENO: result: no" >&5
6027 echo "${ECHO_T}no" >&6
6028 fi
6029
6030 if test -z "$lt_cv_path_MAGIC_CMD"; then
6031   if test -n "$ac_tool_prefix"; then
6032     echo "$as_me:$LINENO: checking for file" >&5
6033 echo $ECHO_N "checking for file... $ECHO_C" >&6
6034 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6035   echo $ECHO_N "(cached) $ECHO_C" >&6
6036 else
6037   case $MAGIC_CMD in
6038 [\\/*] |  ?:[\\/]*)
6039   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6040   ;;
6041 *)
6042   lt_save_MAGIC_CMD="$MAGIC_CMD"
6043   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6044   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6045   for ac_dir in $ac_dummy; do
6046     IFS="$lt_save_ifs"
6047     test -z "$ac_dir" && ac_dir=.
6048     if test -f $ac_dir/file; then
6049       lt_cv_path_MAGIC_CMD="$ac_dir/file"
6050       if test -n "$file_magic_test_file"; then
6051         case $deplibs_check_method in
6052         "file_magic "*)
6053           file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
6054           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6055           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6056             $EGREP "$file_magic_regex" > /dev/null; then
6057             :
6058           else
6059             cat <<EOF 1>&2
6060
6061 *** Warning: the command libtool uses to detect shared libraries,
6062 *** $file_magic_cmd, produces output that libtool cannot recognize.
6063 *** The result is that libtool may fail to recognize shared libraries
6064 *** as such.  This will affect the creation of libtool libraries that
6065 *** depend on shared libraries, but programs linked with such libtool
6066 *** libraries will work regardless of this problem.  Nevertheless, you
6067 *** may want to report the problem to your system manager and/or to
6068 *** bug-libtool@gnu.org
6069
6070 EOF
6071           fi ;;
6072         esac
6073       fi
6074       break
6075     fi
6076   done
6077   IFS="$lt_save_ifs"
6078   MAGIC_CMD="$lt_save_MAGIC_CMD"
6079   ;;
6080 esac
6081 fi
6082
6083 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6084 if test -n "$MAGIC_CMD"; then
6085   echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6086 echo "${ECHO_T}$MAGIC_CMD" >&6
6087 else
6088   echo "$as_me:$LINENO: result: no" >&5
6089 echo "${ECHO_T}no" >&6
6090 fi
6091
6092   else
6093     MAGIC_CMD=:
6094   fi
6095 fi
6096
6097   fi
6098   ;;
6099 esac
6100
6101 enable_dlopen=no
6102 enable_win32_dll=no
6103
6104 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
6105 if test "${enable_libtool_lock+set}" = set; then
6106   enableval="$enable_libtool_lock"
6107
6108 fi;
6109 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6110
6111
6112 # Check whether --with-pic or --without-pic was given.
6113 if test "${with_pic+set}" = set; then
6114   withval="$with_pic"
6115   pic_mode="$withval"
6116 else
6117   pic_mode=default
6118 fi;
6119 test -z "$pic_mode" && pic_mode=default
6120
6121 # Use C for the default configuration in the libtool script
6122 tagname=
6123 lt_save_CC="$CC"
6124 ac_ext=c
6125 ac_cpp='$CPP $CPPFLAGS'
6126 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6127 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6128 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6129
6130
6131 # Source file extension for C test sources.
6132 ac_ext=c
6133
6134 # Object file extension for compiled C test sources.
6135 objext=o
6136 objext=$objext
6137
6138 # Code to be used in simple compile tests
6139 lt_simple_compile_test_code="int some_variable = 0;\n"
6140
6141 # Code to be used in simple link tests
6142 lt_simple_link_test_code='int main(){return(0);}\n'
6143
6144
6145 # If no C compiler was specified, use CC.
6146 LTCC=${LTCC-"$CC"}
6147
6148 # Allow CC to be a program name with arguments.
6149 compiler=$CC
6150
6151
6152 #
6153 # Check for any special shared library compilation flags.
6154 #
6155 lt_prog_cc_shlib=
6156 if test "$GCC" = no; then
6157   case $host_os in
6158   sco3.2v5*)
6159     lt_prog_cc_shlib='-belf'
6160     ;;
6161   esac
6162 fi
6163 if test -n "$lt_prog_cc_shlib"; then
6164   { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5
6165 echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;}
6166   if echo "$old_CC $old_CFLAGS " | grep "[      ]$lt_prog_cc_shlib[     ]" >/dev/null; then :
6167   else
6168     { echo "$as_me:$LINENO: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
6169 echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
6170     lt_cv_prog_cc_can_build_shared=no
6171   fi
6172 fi
6173
6174
6175 #
6176 # Check to make sure the static flag actually works.
6177 #
6178 echo "$as_me:$LINENO: checking if $compiler static flag $lt_prog_compiler_static works" >&5
6179 echo $ECHO_N "checking if $compiler static flag $lt_prog_compiler_static works... $ECHO_C" >&6
6180 if test "${lt_prog_compiler_static_works+set}" = set; then
6181   echo $ECHO_N "(cached) $ECHO_C" >&6
6182 else
6183   lt_prog_compiler_static_works=no
6184    save_LDFLAGS="$LDFLAGS"
6185    LDFLAGS="$LDFLAGS $lt_prog_compiler_static"
6186    printf "$lt_simple_link_test_code" > conftest.$ac_ext
6187    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
6188      # The compiler can only warn and ignore the option if not recognized
6189      # So say no if there are warnings
6190      if test -s conftest.err; then
6191        # Append any errors to the config.log.
6192        cat conftest.err 1>&5
6193      else
6194        lt_prog_compiler_static_works=yes
6195      fi
6196    fi
6197    $rm conftest*
6198    LDFLAGS="$save_LDFLAGS"
6199
6200 fi
6201 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
6202 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
6203
6204 if test x"$lt_prog_compiler_static_works" = xyes; then
6205     :
6206 else
6207     lt_prog_compiler_static=
6208 fi
6209
6210
6211
6212 ## CAVEAT EMPTOR:
6213 ## There is no encapsulation within the following macros, do not change
6214 ## the running order or otherwise move them around unless you know exactly
6215 ## what you are doing...
6216
6217 lt_prog_compiler_no_builtin_flag=
6218
6219 if test "$GCC" = yes; then
6220   lt_prog_compiler_no_builtin_flag=' -fno-builtin'
6221
6222   echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
6223 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
6224 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
6225   echo $ECHO_N "(cached) $ECHO_C" >&6
6226 else
6227   lt_cv_prog_compiler_rtti_exceptions=no
6228   ac_outfile=conftest.$ac_objext
6229    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6230    lt_compiler_flag="-fno-rtti -fno-exceptions"
6231    # Insert the option either (1) after the last *FLAGS variable, or
6232    # (2) before a word containing "conftest.", or (3) at the end.
6233    # Note that $ac_compile itself does not contain backslashes and begins
6234    # with a dollar sign (not a hyphen), so the echo should work correctly.
6235    # The option is referenced via a variable to avoid confusing sed.
6236    lt_compile=`echo "$ac_compile" | $SED \
6237    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
6238    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6239    -e 's:$: $lt_compiler_flag:'`
6240    (eval echo "\"\$as_me:6240: $lt_compile\"" >&5)
6241    (eval "$lt_compile" 2>conftest.err)
6242    ac_status=$?
6243    cat conftest.err >&5
6244    echo "$as_me:6244: \$? = $ac_status" >&5
6245    if (exit $ac_status) && test -s "$ac_outfile"; then
6246      # The compiler can only warn and ignore the option if not recognized
6247      # So say no if there are warnings
6248      if test ! -s conftest.err; then
6249        lt_cv_prog_compiler_rtti_exceptions=yes
6250      fi
6251    fi
6252    $rm conftest*
6253
6254 fi
6255 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
6256 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
6257
6258 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
6259     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
6260 else
6261     :
6262 fi
6263
6264 fi
6265
6266 lt_prog_compiler_wl=
6267 lt_prog_compiler_pic=
6268 lt_prog_compiler_static=
6269
6270 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
6271 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
6272
6273   if test "$GCC" = yes; then
6274     lt_prog_compiler_wl='-Wl,'
6275     lt_prog_compiler_static='-static'
6276
6277     case $host_os in
6278       aix*)
6279       # All AIX code is PIC.
6280       if test "$host_cpu" = ia64; then
6281         # AIX 5 now supports IA64 processor
6282         lt_prog_compiler_static='-Bstatic'
6283       fi
6284       ;;
6285
6286     amigaos*)
6287       # FIXME: we need at least 68020 code to build shared libraries, but
6288       # adding the `-m68020' flag to GCC prevents building anything better,
6289       # like `-m68040'.
6290       lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
6291       ;;
6292
6293     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
6294       # PIC is the default for these OSes.
6295       ;;
6296
6297     mingw* | pw32* | os2*)
6298       # This hack is so that the source file can tell whether it is being
6299       # built for inclusion in a dll (and should export symbols for example).
6300       lt_prog_compiler_pic='-DDLL_EXPORT'
6301       ;;
6302
6303     darwin* | rhapsody*)
6304       # PIC is the default on this platform
6305       # Common symbols not allowed in MH_DYLIB files
6306       lt_prog_compiler_pic='-fno-common'
6307       ;;
6308
6309     msdosdjgpp*)
6310       # Just because we use GCC doesn't mean we suddenly get shared libraries
6311       # on systems that don't support them.
6312       lt_prog_compiler_can_build_shared=no
6313       enable_shared=no
6314       ;;
6315
6316     sysv4*MP*)
6317       if test -d /usr/nec; then
6318         lt_prog_compiler_pic=-Kconform_pic
6319       fi
6320       ;;
6321
6322     hpux*)
6323       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6324       # not for PA HP-UX.
6325       case "$host_cpu" in
6326       hppa*64*|ia64*)
6327         # +Z the default
6328         ;;
6329       *)
6330         lt_prog_compiler_pic='-fPIC'
6331         ;;
6332       esac
6333       ;;
6334
6335     *)
6336       lt_prog_compiler_pic='-fPIC'
6337       ;;
6338     esac
6339   else
6340     # PORTME Check for flag to pass linker flags through the system compiler.
6341     case $host_os in
6342     aix*)
6343       lt_prog_compiler_wl='-Wl,'
6344       if test "$host_cpu" = ia64; then
6345         # AIX 5 now supports IA64 processor
6346         lt_prog_compiler_static='-Bstatic'
6347       else
6348         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
6349       fi
6350       ;;
6351
6352     mingw* | pw32* | os2*)
6353       # This hack is so that the source file can tell whether it is being
6354       # built for inclusion in a dll (and should export symbols for example).
6355       lt_prog_compiler_pic='-DDLL_EXPORT'
6356       ;;
6357
6358     hpux9* | hpux10* | hpux11*)
6359       lt_prog_compiler_wl='-Wl,'
6360       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6361       # not for PA HP-UX.
6362       case "$host_cpu" in
6363       hppa*64*|ia64*)
6364         # +Z the default
6365         ;;
6366       *)
6367         lt_prog_compiler_pic='+Z'
6368         ;;
6369       esac
6370       # Is there a better lt_prog_compiler_static that works with the bundled CC?
6371       lt_prog_compiler_static='${wl}-a ${wl}archive'
6372       ;;
6373
6374     irix5* | irix6* | nonstopux*)
6375       lt_prog_compiler_wl='-Wl,'
6376       # PIC (with -KPIC) is the default.
6377       lt_prog_compiler_static='-non_shared'
6378       ;;
6379
6380     newsos6)
6381       lt_prog_compiler_pic='-KPIC'
6382       lt_prog_compiler_static='-Bstatic'
6383       ;;
6384
6385     linux*)
6386       case $CC in
6387       icc|ecc)
6388         lt_prog_compiler_wl='-Wl,'
6389         lt_prog_compiler_pic='-KPIC'
6390         lt_prog_compiler_static='-static'
6391         ;;
6392       ccc)
6393         lt_prog_compiler_wl='-Wl,'
6394         # All Alpha code is PIC.
6395         lt_prog_compiler_static='-non_shared'
6396         ;;
6397       esac
6398       ;;
6399
6400     osf3* | osf4* | osf5*)
6401       lt_prog_compiler_wl='-Wl,'
6402       # All OSF/1 code is PIC.
6403       lt_prog_compiler_static='-non_shared'
6404       ;;
6405
6406     sco3.2v5*)
6407       lt_prog_compiler_pic='-Kpic'
6408       lt_prog_compiler_static='-dn'
6409       ;;
6410
6411     solaris*)
6412       lt_prog_compiler_wl='-Wl,'
6413       lt_prog_compiler_pic='-KPIC'
6414       lt_prog_compiler_static='-Bstatic'
6415       ;;
6416
6417     sunos4*)
6418       lt_prog_compiler_wl='-Qoption ld '
6419       lt_prog_compiler_pic='-PIC'
6420       lt_prog_compiler_static='-Bstatic'
6421       ;;
6422
6423     sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
6424       lt_prog_compiler_wl='-Wl,'
6425       lt_prog_compiler_pic='-KPIC'
6426       lt_prog_compiler_static='-Bstatic'
6427       ;;
6428
6429     sysv4*MP*)
6430       if test -d /usr/nec ;then
6431         lt_prog_compiler_pic='-Kconform_pic'
6432         lt_prog_compiler_static='-Bstatic'
6433       fi
6434       ;;
6435
6436     uts4*)
6437       lt_prog_compiler_pic='-pic'
6438       lt_prog_compiler_static='-Bstatic'
6439       ;;
6440
6441     *)
6442       lt_prog_compiler_can_build_shared=no
6443       ;;
6444     esac
6445   fi
6446
6447 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
6448 echo "${ECHO_T}$lt_prog_compiler_pic" >&6
6449
6450 #
6451 # Check to make sure the PIC flag actually works.
6452 #
6453 if test -n "$lt_prog_compiler_pic"; then
6454   echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
6455 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
6456 if test "${lt_prog_compiler_pic_works+set}" = set; then
6457   echo $ECHO_N "(cached) $ECHO_C" >&6
6458 else
6459   lt_prog_compiler_pic_works=no
6460   ac_outfile=conftest.$ac_objext
6461    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6462    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
6463    # Insert the option either (1) after the last *FLAGS variable, or
6464    # (2) before a word containing "conftest.", or (3) at the end.
6465    # Note that $ac_compile itself does not contain backslashes and begins
6466    # with a dollar sign (not a hyphen), so the echo should work correctly.
6467    # The option is referenced via a variable to avoid confusing sed.
6468    lt_compile=`echo "$ac_compile" | $SED \
6469    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
6470    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6471    -e 's:$: $lt_compiler_flag:'`
6472    (eval echo "\"\$as_me:6472: $lt_compile\"" >&5)
6473    (eval "$lt_compile" 2>conftest.err)
6474    ac_status=$?
6475    cat conftest.err >&5
6476    echo "$as_me:6476: \$? = $ac_status" >&5
6477    if (exit $ac_status) && test -s "$ac_outfile"; then
6478      # The compiler can only warn and ignore the option if not recognized
6479      # So say no if there are warnings
6480      if test ! -s conftest.err; then
6481        lt_prog_compiler_pic_works=yes
6482      fi
6483    fi
6484    $rm conftest*
6485
6486 fi
6487 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
6488 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
6489
6490 if test x"$lt_prog_compiler_pic_works" = xyes; then
6491     case $lt_prog_compiler_pic in
6492      "" | " "*) ;;
6493      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
6494      esac
6495 else
6496     lt_prog_compiler_pic=
6497      lt_prog_compiler_can_build_shared=no
6498 fi
6499
6500 fi
6501 case "$host_os" in
6502   # For platforms which do not support PIC, -DPIC is meaningless:
6503   *djgpp*)
6504     lt_prog_compiler_pic=
6505     ;;
6506   *)
6507     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
6508     ;;
6509 esac
6510
6511 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
6512 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
6513 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
6514   echo $ECHO_N "(cached) $ECHO_C" >&6
6515 else
6516   lt_cv_prog_compiler_c_o=no
6517    $rm -r conftest 2>/dev/null
6518    mkdir conftest
6519    cd conftest
6520    mkdir out
6521    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6522
6523    # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
6524    # that will create temporary files in the current directory regardless of
6525    # the output directory.  Thus, making CWD read-only will cause this test
6526    # to fail, enabling locking or at least warning the user not to do parallel
6527    # builds.
6528    chmod -w .
6529
6530    lt_compiler_flag="-o out/conftest2.$ac_objext"
6531    # Insert the option either (1) after the last *FLAGS variable, or
6532    # (2) before a word containing "conftest.", or (3) at the end.
6533    # Note that $ac_compile itself does not contain backslashes and begins
6534    # with a dollar sign (not a hyphen), so the echo should work correctly.
6535    lt_compile=`echo "$ac_compile" | $SED \
6536    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
6537    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6538    -e 's:$: $lt_compiler_flag:'`
6539    (eval echo "\"\$as_me:6539: $lt_compile\"" >&5)
6540    (eval "$lt_compile" 2>out/conftest.err)
6541    ac_status=$?
6542    cat out/conftest.err >&5
6543    echo "$as_me:6543: \$? = $ac_status" >&5
6544    if (exit $ac_status) && test -s out/conftest2.$ac_objext
6545    then
6546      # The compiler can only warn and ignore the option if not recognized
6547      # So say no if there are warnings
6548      if test ! -s out/conftest.err; then
6549        lt_cv_prog_compiler_c_o=yes
6550      fi
6551    fi
6552    chmod u+w .
6553    $rm conftest* out/*
6554    rmdir out
6555    cd ..
6556    rmdir conftest
6557    $rm conftest*
6558
6559 fi
6560 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
6561 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
6562
6563
6564 hard_links="nottested"
6565 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
6566   # do not overwrite the value of need_locks provided by the user
6567   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
6568 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
6569   hard_links=yes
6570   $rm conftest*
6571   ln conftest.a conftest.b 2>/dev/null && hard_links=no
6572   touch conftest.a
6573   ln conftest.a conftest.b 2>&5 || hard_links=no
6574   ln conftest.a conftest.b 2>/dev/null && hard_links=no
6575   echo "$as_me:$LINENO: result: $hard_links" >&5
6576 echo "${ECHO_T}$hard_links" >&6
6577   if test "$hard_links" = no; then
6578     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
6579 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
6580     need_locks=warn
6581   fi
6582 else
6583   need_locks=no
6584 fi
6585
6586 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
6587 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
6588
6589   runpath_var=
6590   allow_undefined_flag=
6591   enable_shared_with_static_runtimes=no
6592   archive_cmds=
6593   archive_expsym_cmds=
6594   old_archive_From_new_cmds=
6595   old_archive_from_expsyms_cmds=
6596   export_dynamic_flag_spec=
6597   whole_archive_flag_spec=
6598   thread_safe_flag_spec=
6599   hardcode_libdir_flag_spec=
6600   hardcode_libdir_flag_spec_ld=
6601   hardcode_libdir_separator=
6602   hardcode_direct=no
6603   hardcode_minus_L=no
6604   hardcode_shlibpath_var=unsupported
6605   link_all_deplibs=unknown
6606   hardcode_automatic=no
6607   module_cmds=
6608   module_expsym_cmds=
6609   always_export_symbols=no
6610   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
6611   # include_expsyms should be a list of space-separated symbols to be *always*
6612   # included in the symbol list
6613   include_expsyms=
6614   # exclude_expsyms can be an extended regexp of symbols to exclude
6615   # it will be wrapped by ` (' and `)$', so one must not match beginning or
6616   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
6617   # as well as any symbol that contains `d'.
6618   exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
6619   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
6620   # platforms (ab)use it in PIC code, but their linkers get confused if
6621   # the symbol is explicitly referenced.  Since portable code cannot
6622   # rely on this symbol name, it's probably fine to never include it in
6623   # preloaded symbol tables.
6624   extract_expsyms_cmds=
6625
6626   case $host_os in
6627   cygwin* | mingw* | pw32*)
6628     # FIXME: the MSVC++ port hasn't been tested in a loooong time
6629     # When not using gcc, we currently assume that we are using
6630     # Microsoft Visual C++.
6631     if test "$GCC" != yes; then
6632       with_gnu_ld=no
6633     fi
6634     ;;
6635   openbsd*)
6636     with_gnu_ld=no
6637     ;;
6638   esac
6639
6640   ld_shlibs=yes
6641   if test "$with_gnu_ld" = yes; then
6642     # If archive_cmds runs LD, not CC, wlarc should be empty
6643     wlarc='${wl}'
6644
6645     # See if GNU ld supports shared libraries.
6646     case $host_os in
6647     aix3* | aix4* | aix5*)
6648       # On AIX/PPC, the GNU linker is very broken
6649       if test "$host_cpu" != ia64; then
6650         ld_shlibs=no
6651         cat <<EOF 1>&2
6652
6653 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
6654 *** to be unable to reliably create shared libraries on AIX.
6655 *** Therefore, libtool is disabling shared libraries support.  If you
6656 *** really care for shared libraries, you may want to modify your PATH
6657 *** so that a non-GNU linker is found, and then restart.
6658
6659 EOF
6660       fi
6661       ;;
6662
6663     amigaos*)
6664       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)'
6665       hardcode_libdir_flag_spec='-L$libdir'
6666       hardcode_minus_L=yes
6667
6668       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
6669       # that the semantics of dynamic libraries on AmigaOS, at least up
6670       # to version 4, is to share data among multiple programs linked
6671       # with the same dynamic library.  Since this doesn't match the
6672       # behavior of shared libraries on other platforms, we can't use
6673       # them.
6674       ld_shlibs=no
6675       ;;
6676
6677     beos*)
6678       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6679         allow_undefined_flag=unsupported
6680         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
6681         # support --undefined.  This deserves some investigation.  FIXME
6682         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6683       else
6684         ld_shlibs=no
6685       fi
6686       ;;
6687
6688     cygwin* | mingw* | pw32*)
6689       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
6690       # as there is no search path for DLLs.
6691       hardcode_libdir_flag_spec='-L$libdir'
6692       allow_undefined_flag=unsupported
6693       always_export_symbols=no
6694       enable_shared_with_static_runtimes=yes
6695       export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
6696
6697       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
6698         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
6699         # If the export-symbols file already is a .def file (1st line
6700         # is EXPORTS), use it as is; otherwise, prepend...
6701         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
6702           cp $export_symbols $output_objdir/$soname.def;
6703         else
6704           echo EXPORTS > $output_objdir/$soname.def;
6705           cat $export_symbols >> $output_objdir/$soname.def;
6706         fi~
6707         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
6708       else
6709         ld_shlibs=no
6710       fi
6711       ;;
6712
6713     netbsd*)
6714       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6715         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
6716         wlarc=
6717       else
6718         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6719         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6720       fi
6721       ;;
6722
6723     solaris* | sysv5*)
6724       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
6725         ld_shlibs=no
6726         cat <<EOF 1>&2
6727
6728 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
6729 *** create shared libraries on Solaris systems.  Therefore, libtool
6730 *** is disabling shared libraries support.  We urge you to upgrade GNU
6731 *** binutils to release 2.9.1 or newer.  Another option is to modify
6732 *** your PATH or compiler configuration so that the native linker is
6733 *** used, and then restart.
6734
6735 EOF
6736       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6737         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6738         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6739       else
6740         ld_shlibs=no
6741       fi
6742       ;;
6743
6744     sunos4*)
6745       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6746       wlarc=
6747       hardcode_direct=yes
6748       hardcode_shlibpath_var=no
6749       ;;
6750
6751     *)
6752       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6753         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6754         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6755       else
6756         ld_shlibs=no
6757       fi
6758       ;;
6759     esac
6760
6761     if test "$ld_shlibs" = yes; then
6762       runpath_var=LD_RUN_PATH
6763       hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
6764       export_dynamic_flag_spec='${wl}--export-dynamic'
6765       # ancient GNU ld didn't support --whole-archive et. al.
6766       if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
6767         whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
6768       else
6769         whole_archive_flag_spec=
6770       fi
6771     fi
6772   else
6773     # PORTME fill in a description of your system's linker (not GNU ld)
6774     case $host_os in
6775     aix3*)
6776       allow_undefined_flag=unsupported
6777       always_export_symbols=yes
6778       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'
6779       # Note: this linker hardcodes the directories in LIBPATH if there
6780       # are no directories specified by -L.
6781       hardcode_minus_L=yes
6782       if test "$GCC" = yes && test -z "$link_static_flag"; then
6783         # Neither direct hardcoding nor static linking is supported with a
6784         # broken collect2.
6785         hardcode_direct=unsupported
6786       fi
6787       ;;
6788
6789     aix4* | aix5*)
6790       if test "$host_cpu" = ia64; then
6791         # On IA64, the linker does run time linking by default, so we don't
6792         # have to do anything special.
6793         aix_use_runtimelinking=no
6794         exp_sym_flag='-Bexport'
6795         no_entry_flag=""
6796       else
6797         # If we're using GNU nm, then we don't want the "-C" option.
6798         # -C means demangle to AIX nm, but means don't demangle with GNU nm
6799         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
6800           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'
6801         else
6802           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'
6803         fi
6804         aix_use_runtimelinking=no
6805
6806         # Test if we are trying to use run time linking or normal
6807         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
6808         # need to do runtime linking.
6809         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
6810           for ld_flag in $LDFLAGS; do
6811           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
6812             aix_use_runtimelinking=yes
6813             break
6814           fi
6815           done
6816         esac
6817
6818         exp_sym_flag='-bexport'
6819         no_entry_flag='-bnoentry'
6820       fi
6821
6822       # When large executables or shared objects are built, AIX ld can
6823       # have problems creating the table of contents.  If linking a library
6824       # or program results in "error TOC overflow" add -mminimal-toc to
6825       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
6826       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
6827
6828       archive_cmds=''
6829       hardcode_direct=yes
6830       hardcode_libdir_separator=':'
6831       link_all_deplibs=yes
6832
6833       if test "$GCC" = yes; then
6834         case $host_os in aix4.012|aix4.012.*)
6835         # We only want to do this on AIX 4.2 and lower, the check
6836         # below for broken collect2 doesn't work under 4.3+
6837           collect2name=`${CC} -print-prog-name=collect2`
6838           if test -f "$collect2name" && \
6839            strings "$collect2name" | grep resolve_lib_name >/dev/null
6840           then
6841           # We have reworked collect2
6842           hardcode_direct=yes
6843           else
6844           # We have old collect2
6845           hardcode_direct=unsupported
6846           # It fails to find uninstalled libraries when the uninstalled
6847           # path is not listed in the libpath.  Setting hardcode_minus_L
6848           # to unsupported forces relinking
6849           hardcode_minus_L=yes
6850           hardcode_libdir_flag_spec='-L$libdir'
6851           hardcode_libdir_separator=
6852           fi
6853         esac
6854         shared_flag='-shared'
6855       else
6856         # not using gcc
6857         if test "$host_cpu" = ia64; then
6858         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
6859         # chokes on -Wl,-G. The following line is correct:
6860           shared_flag='-G'
6861         else
6862         if test "$aix_use_runtimelinking" = yes; then
6863             shared_flag='${wl}-G'
6864           else
6865             shared_flag='${wl}-bM:SRE'
6866         fi
6867         fi
6868       fi
6869
6870       # It seems that -bexpall does not export symbols beginning with
6871       # underscore (_), so it is better to generate a list of symbols to export.
6872       always_export_symbols=yes
6873       if test "$aix_use_runtimelinking" = yes; then
6874         # Warning - without using the other runtime loading flags (-brtl),
6875         # -berok will link without error, but may produce a broken library.
6876         allow_undefined_flag='-berok'
6877        # Determine the default libpath from the value encoded in an empty executable.
6878        cat >conftest.$ac_ext <<_ACEOF
6879 #line $LINENO "configure"
6880 /* confdefs.h.  */
6881 _ACEOF
6882 cat confdefs.h >>conftest.$ac_ext
6883 cat >>conftest.$ac_ext <<_ACEOF
6884 /* end confdefs.h.  */
6885
6886 int
6887 main ()
6888 {
6889
6890   ;
6891   return 0;
6892 }
6893 _ACEOF
6894 rm -f conftest.$ac_objext conftest$ac_exeext
6895 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6896   (eval $ac_link) 2>&5
6897   ac_status=$?
6898   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6899   (exit $ac_status); } &&
6900          { ac_try='test -s conftest$ac_exeext'
6901   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6902   (eval $ac_try) 2>&5
6903   ac_status=$?
6904   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6905   (exit $ac_status); }; }; then
6906
6907 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
6908 }'`
6909 # Check for a 64-bit object if we didn't find anything.
6910 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; }
6911 }'`; fi
6912 else
6913   echo "$as_me: failed program was:" >&5
6914 sed 's/^/| /' conftest.$ac_ext >&5
6915
6916 fi
6917 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6918 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
6919
6920        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
6921         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"
6922        else
6923         if test "$host_cpu" = ia64; then
6924           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
6925           allow_undefined_flag="-z nodefs"
6926           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"
6927         else
6928          # Determine the default libpath from the value encoded in an empty executable.
6929          cat >conftest.$ac_ext <<_ACEOF
6930 #line $LINENO "configure"
6931 /* confdefs.h.  */
6932 _ACEOF
6933 cat confdefs.h >>conftest.$ac_ext
6934 cat >>conftest.$ac_ext <<_ACEOF
6935 /* end confdefs.h.  */
6936
6937 int
6938 main ()
6939 {
6940
6941   ;
6942   return 0;
6943 }
6944 _ACEOF
6945 rm -f conftest.$ac_objext conftest$ac_exeext
6946 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6947   (eval $ac_link) 2>&5
6948   ac_status=$?
6949   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6950   (exit $ac_status); } &&
6951          { ac_try='test -s conftest$ac_exeext'
6952   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6953   (eval $ac_try) 2>&5
6954   ac_status=$?
6955   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6956   (exit $ac_status); }; }; then
6957
6958 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
6959 }'`
6960 # Check for a 64-bit object if we didn't find anything.
6961 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; }
6962 }'`; fi
6963 else
6964   echo "$as_me: failed program was:" >&5
6965 sed 's/^/| /' conftest.$ac_ext >&5
6966
6967 fi
6968 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6969 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
6970
6971          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
6972           # Warning - without using the other run time loading flags,
6973           # -berok will link without error, but may produce a broken library.
6974           no_undefined_flag=' ${wl}-bernotok'
6975           allow_undefined_flag=' ${wl}-berok'
6976           # -bexpall does not export symbols beginning with underscore (_)
6977           always_export_symbols=yes
6978           # Exported symbols can be pulled into shared objects from archives
6979           whole_archive_flag_spec=' '
6980           archive_cmds_need_lc=yes
6981           # This is similar to how AIX traditionally builds it's shared libraries.
6982           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'
6983         fi
6984       fi
6985       ;;
6986
6987     amigaos*)
6988       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)'
6989       hardcode_libdir_flag_spec='-L$libdir'
6990       hardcode_minus_L=yes
6991       # see comment about different semantics on the GNU ld section
6992       ld_shlibs=no
6993       ;;
6994
6995     bsdi4*)
6996       export_dynamic_flag_spec=-rdynamic
6997       ;;
6998
6999     cygwin* | mingw* | pw32*)
7000       # When not using gcc, we currently assume that we are using
7001       # Microsoft Visual C++.
7002       # hardcode_libdir_flag_spec is actually meaningless, as there is
7003       # no search path for DLLs.
7004       hardcode_libdir_flag_spec=' '
7005       allow_undefined_flag=unsupported
7006       # Tell ltmain to make .lib files, not .a files.
7007       libext=lib
7008       # Tell ltmain to make .dll files, not .so files.
7009       shrext=".dll"
7010       # FIXME: Setting linknames here is a bad hack.
7011       archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
7012       # The linker will automatically build a .lib file if we build a DLL.
7013       old_archive_From_new_cmds='true'
7014       # FIXME: Should let the user specify the lib program.
7015       old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
7016       fix_srcfile_path='`cygpath -w "$srcfile"`'
7017       enable_shared_with_static_runtimes=yes
7018       ;;
7019
7020     darwin* | rhapsody*)
7021     if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
7022       archive_cmds_need_lc=no
7023       case "$host_os" in
7024       rhapsody* | darwin1.[012])
7025         allow_undefined_flag='-undefined suppress'
7026         ;;
7027       *) # Darwin 1.3 on
7028         test -z ${LD_TWOLEVEL_NAMESPACE} && allow_undefined_flag='-flat_namespace -undefined suppress'
7029         ;;
7030       esac
7031       # FIXME: Relying on posixy $() will cause problems for
7032       #        cross-compilation, but unfortunately the echo tests do not
7033       #        yet detect zsh echo's removal of \ escapes.  Also zsh mangles
7034       #        `"' quotes if we put them in here... so don't!
7035         lt_int_apple_cc_single_mod=no
7036         output_verbose_link_cmd='echo'
7037         if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
7038           lt_int_apple_cc_single_mod=yes
7039         fi
7040         if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
7041           archive_cmds='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
7042         else
7043         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'
7044       fi
7045       module_cmds='$CC -bundle ${wl}-bind_at_load $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags'
7046       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
7047         if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
7048           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}'
7049         else
7050           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}'
7051         fi
7052           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}'
7053       hardcode_direct=no
7054       hardcode_automatic=yes
7055       hardcode_shlibpath_var=unsupported
7056       whole_archive_flag_spec='-all_load $convenience'
7057       link_all_deplibs=yes
7058     fi
7059       ;;
7060
7061     dgux*)
7062       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7063       hardcode_libdir_flag_spec='-L$libdir'
7064       hardcode_shlibpath_var=no
7065       ;;
7066
7067     freebsd1*)
7068       ld_shlibs=no
7069       ;;
7070
7071     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
7072     # support.  Future versions do this automatically, but an explicit c++rt0.o
7073     # does not break anything, and helps significantly (at the cost of a little
7074     # extra space).
7075     freebsd2.2*)
7076       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
7077       hardcode_libdir_flag_spec='-R$libdir'
7078       hardcode_direct=yes
7079       hardcode_shlibpath_var=no
7080       ;;
7081
7082     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
7083     freebsd2*)
7084       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7085       hardcode_direct=yes
7086       hardcode_minus_L=yes
7087       hardcode_shlibpath_var=no
7088       ;;
7089
7090     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
7091     freebsd*)
7092       archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
7093       hardcode_libdir_flag_spec='-R$libdir'
7094       hardcode_direct=yes
7095       hardcode_shlibpath_var=no
7096       ;;
7097
7098     hpux9*)
7099       if test "$GCC" = yes; then
7100         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'
7101       else
7102         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'
7103       fi
7104       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7105       hardcode_libdir_separator=:
7106       hardcode_direct=yes
7107
7108       # hardcode_minus_L: Not really in the search PATH,
7109       # but as the default location of the library.
7110       hardcode_minus_L=yes
7111       export_dynamic_flag_spec='${wl}-E'
7112       ;;
7113
7114     hpux10* | hpux11*)
7115       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
7116         case "$host_cpu" in
7117         hppa*64*|ia64*)
7118           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7119           ;;
7120         *)
7121           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7122           ;;
7123         esac
7124       else
7125         case "$host_cpu" in
7126         hppa*64*|ia64*)
7127           archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
7128           ;;
7129         *)
7130           archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
7131           ;;
7132         esac
7133       fi
7134       if test "$with_gnu_ld" = no; then
7135         case "$host_cpu" in
7136         hppa*64*)
7137           hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7138           hardcode_libdir_flag_spec_ld='+b $libdir'
7139           hardcode_libdir_separator=:
7140           hardcode_direct=no
7141           hardcode_shlibpath_var=no
7142           ;;
7143         ia64*)
7144           hardcode_libdir_flag_spec='-L$libdir'
7145           hardcode_direct=no
7146           hardcode_shlibpath_var=no
7147
7148           # hardcode_minus_L: Not really in the search PATH,
7149           # but as the default location of the library.
7150           hardcode_minus_L=yes
7151           ;;
7152         *)
7153           hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7154           hardcode_libdir_separator=:
7155           hardcode_direct=yes
7156           export_dynamic_flag_spec='${wl}-E'
7157
7158           # hardcode_minus_L: Not really in the search PATH,
7159           # but as the default location of the library.
7160           hardcode_minus_L=yes
7161           ;;
7162         esac
7163       fi
7164       ;;
7165
7166     irix5* | irix6* | nonstopux*)
7167       if test "$GCC" = yes; then
7168         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'
7169       else
7170         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'
7171         hardcode_libdir_flag_spec_ld='-rpath $libdir'
7172       fi
7173       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7174       hardcode_libdir_separator=:
7175       link_all_deplibs=yes
7176       ;;
7177
7178     netbsd*)
7179       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7180         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
7181       else
7182         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
7183       fi
7184       hardcode_libdir_flag_spec='-R$libdir'
7185       hardcode_direct=yes
7186       hardcode_shlibpath_var=no
7187       ;;
7188
7189     newsos6)
7190       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7191       hardcode_direct=yes
7192       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7193       hardcode_libdir_separator=:
7194       hardcode_shlibpath_var=no
7195       ;;
7196
7197     openbsd*)
7198       hardcode_direct=yes
7199       hardcode_shlibpath_var=no
7200       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7201         archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7202         hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7203         export_dynamic_flag_spec='${wl}-E'
7204       else
7205        case $host_os in
7206          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
7207            archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7208            hardcode_libdir_flag_spec='-R$libdir'
7209            ;;
7210          *)
7211            archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7212            hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7213            ;;
7214        esac
7215       fi
7216       ;;
7217
7218     os2*)
7219       hardcode_libdir_flag_spec='-L$libdir'
7220       hardcode_minus_L=yes
7221       allow_undefined_flag=unsupported
7222       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'
7223       old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
7224       ;;
7225
7226     osf3*)
7227       if test "$GCC" = yes; then
7228         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7229         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'
7230       else
7231         allow_undefined_flag=' -expect_unresolved \*'
7232         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'
7233       fi
7234       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7235       hardcode_libdir_separator=:
7236       ;;
7237
7238     osf4* | osf5*)      # as osf3* with the addition of -msym flag
7239       if test "$GCC" = yes; then
7240         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7241         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'
7242         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7243       else
7244         allow_undefined_flag=' -expect_unresolved \*'
7245         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'
7246         archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
7247         $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'
7248
7249         # Both c and cxx compiler support -rpath directly
7250         hardcode_libdir_flag_spec='-rpath $libdir'
7251       fi
7252       hardcode_libdir_separator=:
7253       ;;
7254
7255     sco3.2v5*)
7256       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7257       hardcode_shlibpath_var=no
7258       export_dynamic_flag_spec='${wl}-Bexport'
7259       runpath_var=LD_RUN_PATH
7260       hardcode_runpath_var=yes
7261       ;;
7262
7263     solaris*)
7264       no_undefined_flag=' -z text'
7265       if test "$GCC" = yes; then
7266         archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7267         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7268           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
7269       else
7270         archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
7271         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7272         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
7273       fi
7274       hardcode_libdir_flag_spec='-R$libdir'
7275       hardcode_shlibpath_var=no
7276       case $host_os in
7277       solaris2.[0-5] | solaris2.[0-5].*) ;;
7278       *) # Supported since Solaris 2.6 (maybe 2.5.1?)
7279         whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
7280       esac
7281       link_all_deplibs=yes
7282       ;;
7283
7284     sunos4*)
7285       if test "x$host_vendor" = xsequent; then
7286         # Use $CC to link under sequent, because it throws in some extra .o
7287         # files that make .init and .fini sections work.
7288         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
7289       else
7290         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
7291       fi
7292       hardcode_libdir_flag_spec='-L$libdir'
7293       hardcode_direct=yes
7294       hardcode_minus_L=yes
7295       hardcode_shlibpath_var=no
7296       ;;
7297
7298     sysv4)
7299       case $host_vendor in
7300         sni)
7301           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7302           hardcode_direct=yes # is this really true???
7303         ;;
7304         siemens)
7305           ## LD is ld it makes a PLAMLIB
7306           ## CC just makes a GrossModule.
7307           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
7308           reload_cmds='$CC -r -o $output$reload_objs'
7309           hardcode_direct=no
7310         ;;
7311         motorola)
7312           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7313           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
7314         ;;
7315       esac
7316       runpath_var='LD_RUN_PATH'
7317       hardcode_shlibpath_var=no
7318       ;;
7319
7320     sysv4.3*)
7321       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7322       hardcode_shlibpath_var=no
7323       export_dynamic_flag_spec='-Bexport'
7324       ;;
7325
7326     sysv4*MP*)
7327       if test -d /usr/nec; then
7328         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7329         hardcode_shlibpath_var=no
7330         runpath_var=LD_RUN_PATH
7331         hardcode_runpath_var=yes
7332         ld_shlibs=yes
7333       fi
7334       ;;
7335
7336     sysv4.2uw2*)
7337       archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
7338       hardcode_direct=yes
7339       hardcode_minus_L=no
7340       hardcode_shlibpath_var=no
7341       hardcode_runpath_var=yes
7342       runpath_var=LD_RUN_PATH
7343       ;;
7344
7345    sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
7346       no_undefined_flag='${wl}-z ${wl}text'
7347       if test "$GCC" = yes; then
7348         archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7349       else
7350         archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7351       fi
7352       runpath_var='LD_RUN_PATH'
7353       hardcode_shlibpath_var=no
7354       ;;
7355
7356     sysv5*)
7357       no_undefined_flag=' -z text'
7358       # $CC -shared without GNU ld will not create a library from C++
7359       # object files and a static libstdc++, better avoid it by now
7360       archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
7361       archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7362                 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
7363       hardcode_libdir_flag_spec=
7364       hardcode_shlibpath_var=no
7365       runpath_var='LD_RUN_PATH'
7366       ;;
7367
7368     uts4*)
7369       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7370       hardcode_libdir_flag_spec='-L$libdir'
7371       hardcode_shlibpath_var=no
7372       ;;
7373
7374     *)
7375       ld_shlibs=no
7376       ;;
7377     esac
7378   fi
7379
7380 echo "$as_me:$LINENO: result: $ld_shlibs" >&5
7381 echo "${ECHO_T}$ld_shlibs" >&6
7382 test "$ld_shlibs" = no && can_build_shared=no
7383
7384 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
7385 if test "$GCC" = yes; then
7386   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
7387 fi
7388
7389 #
7390 # Do we need to explicitly link libc?
7391 #
7392 case "x$archive_cmds_need_lc" in
7393 x|xyes)
7394   # Assume -lc should be added
7395   archive_cmds_need_lc=yes
7396
7397   if test "$enable_shared" = yes && test "$GCC" = yes; then
7398     case $archive_cmds in
7399     *'~'*)
7400       # FIXME: we may have to deal with multi-command sequences.
7401       ;;
7402     '$CC '*)
7403       # Test whether the compiler implicitly links with -lc since on some
7404       # systems, -lgcc has to come before -lc. If gcc already passes -lc
7405       # to ld, don't add -lc before -lgcc.
7406       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
7407 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
7408       $rm conftest*
7409       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7410
7411       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7412   (eval $ac_compile) 2>&5
7413   ac_status=$?
7414   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7415   (exit $ac_status); } 2>conftest.err; then
7416         soname=conftest
7417         lib=conftest
7418         libobjs=conftest.$ac_objext
7419         deplibs=
7420         wl=$lt_prog_compiler_wl
7421         compiler_flags=-v
7422         linker_flags=-v
7423         verstring=
7424         output_objdir=.
7425         libname=conftest
7426         lt_save_allow_undefined_flag=$allow_undefined_flag
7427         allow_undefined_flag=
7428         if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
7429   (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
7430   ac_status=$?
7431   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7432   (exit $ac_status); }
7433         then
7434           archive_cmds_need_lc=no
7435         else
7436           archive_cmds_need_lc=yes
7437         fi
7438         allow_undefined_flag=$lt_save_allow_undefined_flag
7439       else
7440         cat conftest.err 1>&5
7441       fi
7442       $rm conftest*
7443       echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
7444 echo "${ECHO_T}$archive_cmds_need_lc" >&6
7445       ;;
7446     esac
7447   fi
7448   ;;
7449 esac
7450
7451 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
7452 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
7453 hardcode_action=
7454 if test -n "$hardcode_libdir_flag_spec" || \
7455    test -n "$runpath_var " || \
7456    test "X$hardcode_automatic"="Xyes" ; then
7457
7458   # We can hardcode non-existant directories.
7459   if test "$hardcode_direct" != no &&
7460      # If the only mechanism to avoid hardcoding is shlibpath_var, we
7461      # have to relink, otherwise we might link with an installed library
7462      # when we should be linking with a yet-to-be-installed one
7463      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
7464      test "$hardcode_minus_L" != no; then
7465     # Linking always hardcodes the temporary library directory.
7466     hardcode_action=relink
7467   else
7468     # We can link without hardcoding, and we can hardcode nonexisting dirs.
7469     hardcode_action=immediate
7470   fi
7471 else
7472   # We cannot hardcode anything, or else we can only hardcode existing
7473   # directories.
7474   hardcode_action=unsupported
7475 fi
7476 echo "$as_me:$LINENO: result: $hardcode_action" >&5
7477 echo "${ECHO_T}$hardcode_action" >&6
7478
7479 if test "$hardcode_action" = relink; then
7480   # Fast installation is not supported
7481   enable_fast_install=no
7482 elif test "$shlibpath_overrides_runpath" = yes ||
7483      test "$enable_shared" = no; then
7484   # Fast installation is not necessary
7485   enable_fast_install=needless
7486 fi
7487
7488 striplib=
7489 old_striplib=
7490 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
7491 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
7492 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
7493   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
7494   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
7495   echo "$as_me:$LINENO: result: yes" >&5
7496 echo "${ECHO_T}yes" >&6
7497 else
7498 # FIXME - insert some real tests, host_os isn't really good enough
7499   case $host_os in
7500    darwin*)
7501        if test -n "$STRIP" ; then
7502          striplib="$STRIP -x"
7503          echo "$as_me:$LINENO: result: yes" >&5
7504 echo "${ECHO_T}yes" >&6
7505        else
7506   echo "$as_me:$LINENO: result: no" >&5
7507 echo "${ECHO_T}no" >&6
7508 fi
7509        ;;
7510    *)
7511   echo "$as_me:$LINENO: result: no" >&5
7512 echo "${ECHO_T}no" >&6
7513     ;;
7514   esac
7515 fi
7516
7517 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
7518 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
7519 library_names_spec=
7520 libname_spec='lib$name'
7521 soname_spec=
7522 shrext=".so"
7523 postinstall_cmds=
7524 postuninstall_cmds=
7525 finish_cmds=
7526 finish_eval=
7527 shlibpath_var=
7528 shlibpath_overrides_runpath=unknown
7529 version_type=none
7530 dynamic_linker="$host_os ld.so"
7531 sys_lib_dlsearch_path_spec="/lib /usr/lib"
7532 if test "$GCC" = yes; then
7533   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
7534   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
7535     # if the path contains ";" then we assume it to be the separator
7536     # otherwise default to the standard path separator (i.e. ":") - it is
7537     # assumed that no part of a normal pathname contains ";" but that should
7538     # okay in the real world where ";" in dirpaths is itself problematic.
7539     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
7540   else
7541     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
7542   fi
7543 else
7544   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
7545 fi
7546 need_lib_prefix=unknown
7547 hardcode_into_libs=no
7548
7549 # when you set need_version to no, make sure it does not cause -set_version
7550 # flags to be left without arguments
7551 need_version=unknown
7552
7553 case $host_os in
7554 aix3*)
7555   version_type=linux
7556   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
7557   shlibpath_var=LIBPATH
7558
7559   # AIX 3 has no versioning support, so we append a major version to the name.
7560   soname_spec='${libname}${release}${shared_ext}$major'
7561   ;;
7562
7563 aix4* | aix5*)
7564   version_type=linux
7565   need_lib_prefix=no
7566   need_version=no
7567   hardcode_into_libs=yes
7568   if test "$host_cpu" = ia64; then
7569     # AIX 5 supports IA64
7570     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
7571     shlibpath_var=LD_LIBRARY_PATH
7572   else
7573     # With GCC up to 2.95.x, collect2 would create an import file
7574     # for dependence libraries.  The import file would start with
7575     # the line `#! .'.  This would cause the generated library to
7576     # depend on `.', always an invalid library.  This was fixed in
7577     # development snapshots of GCC prior to 3.0.
7578     case $host_os in
7579       aix4 | aix4.[01] | aix4.[01].*)
7580       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
7581            echo ' yes '
7582            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
7583         :
7584       else
7585         can_build_shared=no
7586       fi
7587       ;;
7588     esac
7589     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
7590     # soname into executable. Probably we can add versioning support to
7591     # collect2, so additional links can be useful in future.
7592     if test "$aix_use_runtimelinking" = yes; then
7593       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
7594       # instead of lib<name>.a to let people know that these are not
7595       # typical AIX shared libraries.
7596       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7597     else
7598       # We preserve .a as extension for shared libraries through AIX4.2
7599       # and later when we are not doing run time linking.
7600       library_names_spec='${libname}${release}.a $libname.a'
7601       soname_spec='${libname}${release}${shared_ext}$major'
7602     fi
7603     shlibpath_var=LIBPATH
7604   fi
7605   ;;
7606
7607 amigaos*)
7608   library_names_spec='$libname.ixlibrary $libname.a'
7609   # Create ${libname}_ixlibrary.a entries in /sys/libs.
7610   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'
7611   ;;
7612
7613 beos*)
7614   library_names_spec='${libname}${shared_ext}'
7615   dynamic_linker="$host_os ld.so"
7616   shlibpath_var=LIBRARY_PATH
7617   ;;
7618
7619 bsdi4*)
7620   version_type=linux
7621   need_version=no
7622   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7623   soname_spec='${libname}${release}${shared_ext}$major'
7624   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
7625   shlibpath_var=LD_LIBRARY_PATH
7626   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
7627   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
7628   # the default ld.so.conf also contains /usr/contrib/lib and
7629   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
7630   # libtool to hard-code these into programs
7631   ;;
7632
7633 cygwin* | mingw* | pw32*)
7634   version_type=windows
7635   shrext=".dll"
7636   need_version=no
7637   need_lib_prefix=no
7638
7639   case $GCC,$host_os in
7640   yes,cygwin* | yes,mingw* | yes,pw32*)
7641     library_names_spec='$libname.dll.a'
7642     # DLL is installed to $(libdir)/../bin by postinstall_cmds
7643     postinstall_cmds='base_file=`basename \${file}`~
7644       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
7645       dldir=$destdir/`dirname \$dlpath`~
7646       test -d \$dldir || mkdir -p \$dldir~
7647       $install_prog $dir/$dlname \$dldir/$dlname'
7648     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
7649       dlpath=$dir/\$dldll~
7650        $rm \$dlpath'
7651     shlibpath_overrides_runpath=yes
7652
7653     case $host_os in
7654     cygwin*)
7655       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
7656       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7657       sys_lib_search_path_spec="/lib /lib/w32api /usr/lib /usr/local/lib"
7658       ;;
7659     mingw*)
7660       # MinGW DLLs use traditional 'lib' prefix
7661       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7662       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
7663       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
7664         # It is most probably a Windows format PATH printed by
7665         # mingw gcc, but we are running on Cygwin. Gcc prints its search
7666         # path with ; separators, and with drive letters. We can handle the
7667         # drive letters (cygwin fileutils understands them), so leave them,
7668         # especially as we might pass files found there to a mingw objdump,
7669         # which wouldn't understand a cygwinified path. Ahh.
7670         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
7671       else
7672         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
7673       fi
7674       ;;
7675     pw32*)
7676       # pw32 DLLs use 'pw' prefix rather than 'lib'
7677       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
7678       ;;
7679     esac
7680     ;;
7681
7682   *)
7683     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
7684     ;;
7685   esac
7686   dynamic_linker='Win32 ld.exe'
7687   # FIXME: first we should search . and the directory the executable is in
7688   shlibpath_var=PATH
7689   ;;
7690
7691 darwin* | rhapsody*)
7692   dynamic_linker="$host_os dyld"
7693   version_type=darwin
7694   need_lib_prefix=no
7695   need_version=no
7696   # FIXME: Relying on posixy $() will cause problems for
7697   #        cross-compilation, but unfortunately the echo tests do not
7698   #        yet detect zsh echo's removal of \ escapes.
7699   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
7700   soname_spec='${libname}${release}${major}$shared_ext'
7701   shlibpath_overrides_runpath=yes
7702   shlibpath_var=DYLD_LIBRARY_PATH
7703   shrext='$(test .$module = .yes && echo .so || echo .dylib)'
7704   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
7705   if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
7706   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"`
7707   fi
7708   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
7709   ;;
7710
7711 dgux*)
7712   version_type=linux
7713   need_lib_prefix=no
7714   need_version=no
7715   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
7716   soname_spec='${libname}${release}${shared_ext}$major'
7717   shlibpath_var=LD_LIBRARY_PATH
7718   ;;
7719
7720 freebsd1*)
7721   dynamic_linker=no
7722   ;;
7723
7724 freebsd*)
7725   objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
7726   version_type=freebsd-$objformat
7727   case $version_type in
7728     freebsd-elf*)
7729       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
7730       need_version=no
7731       need_lib_prefix=no
7732       ;;
7733     freebsd-*)
7734       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
7735       need_version=yes
7736       ;;
7737   esac
7738   shlibpath_var=LD_LIBRARY_PATH
7739   case $host_os in
7740   freebsd2*)
7741     shlibpath_overrides_runpath=yes
7742     ;;
7743   freebsd3.01* | freebsdelf3.01*)
7744     shlibpath_overrides_runpath=yes
7745     hardcode_into_libs=yes
7746     ;;
7747   *) # from 3.2 on
7748     shlibpath_overrides_runpath=no
7749     hardcode_into_libs=yes
7750     ;;
7751   esac
7752   ;;
7753
7754 gnu*)
7755   version_type=linux
7756   need_lib_prefix=no
7757   need_version=no
7758   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
7759   soname_spec='${libname}${release}${shared_ext}$major'
7760   shlibpath_var=LD_LIBRARY_PATH
7761   hardcode_into_libs=yes
7762   ;;
7763
7764 hpux9* | hpux10* | hpux11*)
7765   # Give a soname corresponding to the major version so that dld.sl refuses to
7766   # link against other versions.
7767   version_type=sunos
7768   need_lib_prefix=no
7769   need_version=no
7770   case "$host_cpu" in
7771   ia64*)
7772     shrext='.so'
7773     hardcode_into_libs=yes
7774     dynamic_linker="$host_os dld.so"
7775     shlibpath_var=LD_LIBRARY_PATH
7776     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
7777     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7778     soname_spec='${libname}${release}${shared_ext}$major'
7779     if test "X$HPUX_IA64_MODE" = X32; then
7780       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
7781     else
7782       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
7783     fi
7784     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
7785     ;;
7786    hppa*64*)
7787      shrext='.sl'
7788      hardcode_into_libs=yes
7789      dynamic_linker="$host_os dld.sl"
7790      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
7791      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
7792      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7793      soname_spec='${libname}${release}${shared_ext}$major'
7794      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
7795      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
7796      ;;
7797    *)
7798     shrext='.sl'
7799     dynamic_linker="$host_os dld.sl"
7800     shlibpath_var=SHLIB_PATH
7801     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
7802     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7803     soname_spec='${libname}${release}${shared_ext}$major'
7804     ;;
7805   esac
7806   # HP-UX runs *really* slowly unless shared libraries are mode 555.
7807   postinstall_cmds='chmod 555 $lib'
7808   ;;
7809
7810 irix5* | irix6* | nonstopux*)
7811   case $host_os in
7812     nonstopux*) version_type=nonstopux ;;
7813     *)
7814         if test "$lt_cv_prog_gnu_ld" = yes; then
7815                 version_type=linux
7816         else
7817                 version_type=irix
7818         fi ;;
7819   esac
7820   need_lib_prefix=no
7821   need_version=no
7822   soname_spec='${libname}${release}${shared_ext}$major'
7823   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
7824   case $host_os in
7825   irix5* | nonstopux*)
7826     libsuff= shlibsuff=
7827     ;;
7828   *)
7829     case $LD in # libtool.m4 will add one of these switches to LD
7830     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
7831       libsuff= shlibsuff= libmagic=32-bit;;
7832     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
7833       libsuff=32 shlibsuff=N32 libmagic=N32;;
7834     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
7835       libsuff=64 shlibsuff=64 libmagic=64-bit;;
7836     *) libsuff= shlibsuff= libmagic=never-match;;
7837     esac
7838     ;;
7839   esac
7840   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
7841   shlibpath_overrides_runpath=no
7842   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
7843   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
7844   hardcode_into_libs=yes
7845   ;;
7846
7847 # No shared lib support for Linux oldld, aout, or coff.
7848 linux*oldld* | linux*aout* | linux*coff*)
7849   dynamic_linker=no
7850   ;;
7851
7852 # This must be Linux ELF.
7853 linux*)
7854   version_type=linux
7855   need_lib_prefix=no
7856   need_version=no
7857   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7858   soname_spec='${libname}${release}${shared_ext}$major'
7859   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
7860   shlibpath_var=LD_LIBRARY_PATH
7861   shlibpath_overrides_runpath=no
7862   # This implies no fast_install, which is unacceptable.
7863   # Some rework will be needed to allow for fast_install
7864   # before this can be enabled.
7865   hardcode_into_libs=yes
7866
7867   # We used to test for /lib/ld.so.1 and disable shared libraries on
7868   # powerpc, because MkLinux only supported shared libraries with the
7869   # GNU dynamic linker.  Since this was broken with cross compilers,
7870   # most powerpc-linux boxes support dynamic linking these days and
7871   # people can always --disable-shared, the test was removed, and we
7872   # assume the GNU/Linux dynamic linker is in use.
7873   dynamic_linker='GNU/Linux ld.so'
7874   ;;
7875
7876 netbsd*)
7877   version_type=sunos
7878   need_lib_prefix=no
7879   need_version=no
7880   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7881     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
7882     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
7883     dynamic_linker='NetBSD (a.out) ld.so'
7884   else
7885     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
7886     soname_spec='${libname}${release}${shared_ext}$major'
7887     dynamic_linker='NetBSD ld.elf_so'
7888   fi
7889   shlibpath_var=LD_LIBRARY_PATH
7890   shlibpath_overrides_runpath=yes
7891   hardcode_into_libs=yes
7892   ;;
7893
7894 newsos6)
7895   version_type=linux
7896   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7897   shlibpath_var=LD_LIBRARY_PATH
7898   shlibpath_overrides_runpath=yes
7899   ;;
7900
7901 nto-qnx)
7902   version_type=linux
7903   need_lib_prefix=no
7904   need_version=no
7905   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7906   soname_spec='${libname}${release}${shared_ext}$major'
7907   shlibpath_var=LD_LIBRARY_PATH
7908   shlibpath_overrides_runpath=yes
7909   ;;
7910
7911 openbsd*)
7912   version_type=sunos
7913   need_lib_prefix=no
7914   need_version=no
7915   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
7916   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
7917   shlibpath_var=LD_LIBRARY_PATH
7918   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7919     case $host_os in
7920       openbsd2.[89] | openbsd2.[89].*)
7921         shlibpath_overrides_runpath=no
7922         ;;
7923       *)
7924         shlibpath_overrides_runpath=yes
7925         ;;
7926       esac
7927   else
7928     shlibpath_overrides_runpath=yes
7929   fi
7930   ;;
7931
7932 os2*)
7933   libname_spec='$name'
7934   shrext=".dll"
7935   need_lib_prefix=no
7936   library_names_spec='$libname${shared_ext} $libname.a'
7937   dynamic_linker='OS/2 ld.exe'
7938   shlibpath_var=LIBPATH
7939   ;;
7940
7941 osf3* | osf4* | osf5*)
7942   version_type=osf
7943   need_lib_prefix=no
7944   need_version=no
7945   soname_spec='${libname}${release}${shared_ext}$major'
7946   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7947   shlibpath_var=LD_LIBRARY_PATH
7948   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
7949   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
7950   ;;
7951
7952 sco3.2v5*)
7953   version_type=osf
7954   soname_spec='${libname}${release}${shared_ext}$major'
7955   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7956   shlibpath_var=LD_LIBRARY_PATH
7957   ;;
7958
7959 solaris*)
7960   version_type=linux
7961   need_lib_prefix=no
7962   need_version=no
7963   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7964   soname_spec='${libname}${release}${shared_ext}$major'
7965   shlibpath_var=LD_LIBRARY_PATH
7966   shlibpath_overrides_runpath=yes
7967   hardcode_into_libs=yes
7968   # ldd complains unless libraries are executable
7969   postinstall_cmds='chmod +x $lib'
7970   ;;
7971
7972 sunos4*)
7973   version_type=sunos
7974   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
7975   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
7976   shlibpath_var=LD_LIBRARY_PATH
7977   shlibpath_overrides_runpath=yes
7978   if test "$with_gnu_ld" = yes; then
7979     need_lib_prefix=no
7980   fi
7981   need_version=yes
7982   ;;
7983
7984 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
7985   version_type=linux
7986   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7987   soname_spec='${libname}${release}${shared_ext}$major'
7988   shlibpath_var=LD_LIBRARY_PATH
7989   case $host_vendor in
7990     sni)
7991       shlibpath_overrides_runpath=no
7992       need_lib_prefix=no
7993       export_dynamic_flag_spec='${wl}-Blargedynsym'
7994       runpath_var=LD_RUN_PATH
7995       ;;
7996     siemens)
7997       need_lib_prefix=no
7998       ;;
7999     motorola)
8000       need_lib_prefix=no
8001       need_version=no
8002       shlibpath_overrides_runpath=no
8003       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
8004       ;;
8005   esac
8006   ;;
8007
8008 sysv4*MP*)
8009   if test -d /usr/nec ;then
8010     version_type=linux
8011     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
8012     soname_spec='$libname${shared_ext}.$major'
8013     shlibpath_var=LD_LIBRARY_PATH
8014   fi
8015   ;;
8016
8017 uts4*)
8018   version_type=linux
8019   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8020   soname_spec='${libname}${release}${shared_ext}$major'
8021   shlibpath_var=LD_LIBRARY_PATH
8022   ;;
8023
8024 *)
8025   dynamic_linker=no
8026   ;;
8027 esac
8028 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
8029 echo "${ECHO_T}$dynamic_linker" >&6
8030 test "$dynamic_linker" = no && can_build_shared=no
8031
8032 if test "x$enable_dlopen" != xyes; then
8033   enable_dlopen=unknown
8034   enable_dlopen_self=unknown
8035   enable_dlopen_self_static=unknown
8036 else
8037   lt_cv_dlopen=no
8038   lt_cv_dlopen_libs=
8039
8040   case $host_os in
8041   beos*)
8042     lt_cv_dlopen="load_add_on"
8043     lt_cv_dlopen_libs=
8044     lt_cv_dlopen_self=yes
8045     ;;
8046
8047   mingw* | pw32*)
8048     lt_cv_dlopen="LoadLibrary"
8049     lt_cv_dlopen_libs=
8050    ;;
8051
8052   cygwin*)
8053     lt_cv_dlopen="dlopen"
8054     lt_cv_dlopen_libs=
8055    ;;
8056
8057   darwin*)
8058   # if libdl is installed we need to link against it
8059     echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
8060 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
8061 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
8062   echo $ECHO_N "(cached) $ECHO_C" >&6
8063 else
8064   ac_check_lib_save_LIBS=$LIBS
8065 LIBS="-ldl  $LIBS"
8066 cat >conftest.$ac_ext <<_ACEOF
8067 #line $LINENO "configure"
8068 /* confdefs.h.  */
8069 _ACEOF
8070 cat confdefs.h >>conftest.$ac_ext
8071 cat >>conftest.$ac_ext <<_ACEOF
8072 /* end confdefs.h.  */
8073
8074 /* Override any gcc2 internal prototype to avoid an error.  */
8075 #ifdef __cplusplus
8076 extern "C"
8077 #endif
8078 /* We use char because int might match the return type of a gcc2
8079    builtin and then its argument prototype would still apply.  */
8080 char dlopen ();
8081 int
8082 main ()
8083 {
8084 dlopen ();
8085   ;
8086   return 0;
8087 }
8088 _ACEOF
8089 rm -f conftest.$ac_objext conftest$ac_exeext
8090 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8091   (eval $ac_link) 2>&5
8092   ac_status=$?
8093   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8094   (exit $ac_status); } &&
8095          { ac_try='test -s conftest$ac_exeext'
8096   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8097   (eval $ac_try) 2>&5
8098   ac_status=$?
8099   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8100   (exit $ac_status); }; }; then
8101   ac_cv_lib_dl_dlopen=yes
8102 else
8103   echo "$as_me: failed program was:" >&5
8104 sed 's/^/| /' conftest.$ac_ext >&5
8105
8106 ac_cv_lib_dl_dlopen=no
8107 fi
8108 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8109 LIBS=$ac_check_lib_save_LIBS
8110 fi
8111 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
8112 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
8113 if test $ac_cv_lib_dl_dlopen = yes; then
8114   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
8115 else
8116
8117     lt_cv_dlopen="dyld"
8118     lt_cv_dlopen_libs=
8119     lt_cv_dlopen_self=yes
8120
8121 fi
8122
8123    ;;
8124
8125   *)
8126     echo "$as_me:$LINENO: checking for shl_load" >&5
8127 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
8128 if test "${ac_cv_func_shl_load+set}" = set; then
8129   echo $ECHO_N "(cached) $ECHO_C" >&6
8130 else
8131   cat >conftest.$ac_ext <<_ACEOF
8132 #line $LINENO "configure"
8133 /* confdefs.h.  */
8134 _ACEOF
8135 cat confdefs.h >>conftest.$ac_ext
8136 cat >>conftest.$ac_ext <<_ACEOF
8137 /* end confdefs.h.  */
8138 /* System header to define __stub macros and hopefully few prototypes,
8139     which can conflict with char shl_load (); below.
8140     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8141     <limits.h> exists even on freestanding compilers.  */
8142 #ifdef __STDC__
8143 # include <limits.h>
8144 #else
8145 # include <assert.h>
8146 #endif
8147 /* Override any gcc2 internal prototype to avoid an error.  */
8148 #ifdef __cplusplus
8149 extern "C"
8150 {
8151 #endif
8152 /* We use char because int might match the return type of a gcc2
8153    builtin and then its argument prototype would still apply.  */
8154 char shl_load ();
8155 /* The GNU C library defines this for functions which it implements
8156     to always fail with ENOSYS.  Some functions are actually named
8157     something starting with __ and the normal name is an alias.  */
8158 #if defined (__stub_shl_load) || defined (__stub___shl_load)
8159 choke me
8160 #else
8161 char (*f) () = shl_load;
8162 #endif
8163 #ifdef __cplusplus
8164 }
8165 #endif
8166
8167 int
8168 main ()
8169 {
8170 return f != shl_load;
8171   ;
8172   return 0;
8173 }
8174 _ACEOF
8175 rm -f conftest.$ac_objext conftest$ac_exeext
8176 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8177   (eval $ac_link) 2>&5
8178   ac_status=$?
8179   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8180   (exit $ac_status); } &&
8181          { ac_try='test -s conftest$ac_exeext'
8182   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8183   (eval $ac_try) 2>&5
8184   ac_status=$?
8185   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8186   (exit $ac_status); }; }; then
8187   ac_cv_func_shl_load=yes
8188 else
8189   echo "$as_me: failed program was:" >&5
8190 sed 's/^/| /' conftest.$ac_ext >&5
8191
8192 ac_cv_func_shl_load=no
8193 fi
8194 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8195 fi
8196 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
8197 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
8198 if test $ac_cv_func_shl_load = yes; then
8199   lt_cv_dlopen="shl_load"
8200 else
8201   echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
8202 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
8203 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
8204   echo $ECHO_N "(cached) $ECHO_C" >&6
8205 else
8206   ac_check_lib_save_LIBS=$LIBS
8207 LIBS="-ldld  $LIBS"
8208 cat >conftest.$ac_ext <<_ACEOF
8209 #line $LINENO "configure"
8210 /* confdefs.h.  */
8211 _ACEOF
8212 cat confdefs.h >>conftest.$ac_ext
8213 cat >>conftest.$ac_ext <<_ACEOF
8214 /* end confdefs.h.  */
8215
8216 /* Override any gcc2 internal prototype to avoid an error.  */
8217 #ifdef __cplusplus
8218 extern "C"
8219 #endif
8220 /* We use char because int might match the return type of a gcc2
8221    builtin and then its argument prototype would still apply.  */
8222 char shl_load ();
8223 int
8224 main ()
8225 {
8226 shl_load ();
8227   ;
8228   return 0;
8229 }
8230 _ACEOF
8231 rm -f conftest.$ac_objext conftest$ac_exeext
8232 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8233   (eval $ac_link) 2>&5
8234   ac_status=$?
8235   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8236   (exit $ac_status); } &&
8237          { ac_try='test -s conftest$ac_exeext'
8238   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8239   (eval $ac_try) 2>&5
8240   ac_status=$?
8241   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8242   (exit $ac_status); }; }; then
8243   ac_cv_lib_dld_shl_load=yes
8244 else
8245   echo "$as_me: failed program was:" >&5
8246 sed 's/^/| /' conftest.$ac_ext >&5
8247
8248 ac_cv_lib_dld_shl_load=no
8249 fi
8250 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8251 LIBS=$ac_check_lib_save_LIBS
8252 fi
8253 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
8254 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
8255 if test $ac_cv_lib_dld_shl_load = yes; then
8256   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
8257 else
8258   echo "$as_me:$LINENO: checking for dlopen" >&5
8259 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
8260 if test "${ac_cv_func_dlopen+set}" = set; then
8261   echo $ECHO_N "(cached) $ECHO_C" >&6
8262 else
8263   cat >conftest.$ac_ext <<_ACEOF
8264 #line $LINENO "configure"
8265 /* confdefs.h.  */
8266 _ACEOF
8267 cat confdefs.h >>conftest.$ac_ext
8268 cat >>conftest.$ac_ext <<_ACEOF
8269 /* end confdefs.h.  */
8270 /* System header to define __stub macros and hopefully few prototypes,
8271     which can conflict with char dlopen (); below.
8272     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8273     <limits.h> exists even on freestanding compilers.  */
8274 #ifdef __STDC__
8275 # include <limits.h>
8276 #else
8277 # include <assert.h>
8278 #endif
8279 /* Override any gcc2 internal prototype to avoid an error.  */
8280 #ifdef __cplusplus
8281 extern "C"
8282 {
8283 #endif
8284 /* We use char because int might match the return type of a gcc2
8285    builtin and then its argument prototype would still apply.  */
8286 char dlopen ();
8287 /* The GNU C library defines this for functions which it implements
8288     to always fail with ENOSYS.  Some functions are actually named
8289     something starting with __ and the normal name is an alias.  */
8290 #if defined (__stub_dlopen) || defined (__stub___dlopen)
8291 choke me
8292 #else
8293 char (*f) () = dlopen;
8294 #endif
8295 #ifdef __cplusplus
8296 }
8297 #endif
8298
8299 int
8300 main ()
8301 {
8302 return f != dlopen;
8303   ;
8304   return 0;
8305 }
8306 _ACEOF
8307 rm -f conftest.$ac_objext conftest$ac_exeext
8308 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8309   (eval $ac_link) 2>&5
8310   ac_status=$?
8311   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8312   (exit $ac_status); } &&
8313          { ac_try='test -s conftest$ac_exeext'
8314   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8315   (eval $ac_try) 2>&5
8316   ac_status=$?
8317   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8318   (exit $ac_status); }; }; then
8319   ac_cv_func_dlopen=yes
8320 else
8321   echo "$as_me: failed program was:" >&5
8322 sed 's/^/| /' conftest.$ac_ext >&5
8323
8324 ac_cv_func_dlopen=no
8325 fi
8326 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8327 fi
8328 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
8329 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
8330 if test $ac_cv_func_dlopen = yes; then
8331   lt_cv_dlopen="dlopen"
8332 else
8333   echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
8334 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
8335 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
8336   echo $ECHO_N "(cached) $ECHO_C" >&6
8337 else
8338   ac_check_lib_save_LIBS=$LIBS
8339 LIBS="-ldl  $LIBS"
8340 cat >conftest.$ac_ext <<_ACEOF
8341 #line $LINENO "configure"
8342 /* confdefs.h.  */
8343 _ACEOF
8344 cat confdefs.h >>conftest.$ac_ext
8345 cat >>conftest.$ac_ext <<_ACEOF
8346 /* end confdefs.h.  */
8347
8348 /* Override any gcc2 internal prototype to avoid an error.  */
8349 #ifdef __cplusplus
8350 extern "C"
8351 #endif
8352 /* We use char because int might match the return type of a gcc2
8353    builtin and then its argument prototype would still apply.  */
8354 char dlopen ();
8355 int
8356 main ()
8357 {
8358 dlopen ();
8359   ;
8360   return 0;
8361 }
8362 _ACEOF
8363 rm -f conftest.$ac_objext conftest$ac_exeext
8364 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8365   (eval $ac_link) 2>&5
8366   ac_status=$?
8367   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8368   (exit $ac_status); } &&
8369          { ac_try='test -s conftest$ac_exeext'
8370   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8371   (eval $ac_try) 2>&5
8372   ac_status=$?
8373   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8374   (exit $ac_status); }; }; then
8375   ac_cv_lib_dl_dlopen=yes
8376 else
8377   echo "$as_me: failed program was:" >&5
8378 sed 's/^/| /' conftest.$ac_ext >&5
8379
8380 ac_cv_lib_dl_dlopen=no
8381 fi
8382 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8383 LIBS=$ac_check_lib_save_LIBS
8384 fi
8385 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
8386 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
8387 if test $ac_cv_lib_dl_dlopen = yes; then
8388   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
8389 else
8390   echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
8391 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
8392 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
8393   echo $ECHO_N "(cached) $ECHO_C" >&6
8394 else
8395   ac_check_lib_save_LIBS=$LIBS
8396 LIBS="-lsvld  $LIBS"
8397 cat >conftest.$ac_ext <<_ACEOF
8398 #line $LINENO "configure"
8399 /* confdefs.h.  */
8400 _ACEOF
8401 cat confdefs.h >>conftest.$ac_ext
8402 cat >>conftest.$ac_ext <<_ACEOF
8403 /* end confdefs.h.  */
8404
8405 /* Override any gcc2 internal prototype to avoid an error.  */
8406 #ifdef __cplusplus
8407 extern "C"
8408 #endif
8409 /* We use char because int might match the return type of a gcc2
8410    builtin and then its argument prototype would still apply.  */
8411 char dlopen ();
8412 int
8413 main ()
8414 {
8415 dlopen ();
8416   ;
8417   return 0;
8418 }
8419 _ACEOF
8420 rm -f conftest.$ac_objext conftest$ac_exeext
8421 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8422   (eval $ac_link) 2>&5
8423   ac_status=$?
8424   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8425   (exit $ac_status); } &&
8426          { ac_try='test -s conftest$ac_exeext'
8427   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8428   (eval $ac_try) 2>&5
8429   ac_status=$?
8430   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8431   (exit $ac_status); }; }; then
8432   ac_cv_lib_svld_dlopen=yes
8433 else
8434   echo "$as_me: failed program was:" >&5
8435 sed 's/^/| /' conftest.$ac_ext >&5
8436
8437 ac_cv_lib_svld_dlopen=no
8438 fi
8439 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8440 LIBS=$ac_check_lib_save_LIBS
8441 fi
8442 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
8443 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
8444 if test $ac_cv_lib_svld_dlopen = yes; then
8445   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
8446 else
8447   echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
8448 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
8449 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
8450   echo $ECHO_N "(cached) $ECHO_C" >&6
8451 else
8452   ac_check_lib_save_LIBS=$LIBS
8453 LIBS="-ldld  $LIBS"
8454 cat >conftest.$ac_ext <<_ACEOF
8455 #line $LINENO "configure"
8456 /* confdefs.h.  */
8457 _ACEOF
8458 cat confdefs.h >>conftest.$ac_ext
8459 cat >>conftest.$ac_ext <<_ACEOF
8460 /* end confdefs.h.  */
8461
8462 /* Override any gcc2 internal prototype to avoid an error.  */
8463 #ifdef __cplusplus
8464 extern "C"
8465 #endif
8466 /* We use char because int might match the return type of a gcc2
8467    builtin and then its argument prototype would still apply.  */
8468 char dld_link ();
8469 int
8470 main ()
8471 {
8472 dld_link ();
8473   ;
8474   return 0;
8475 }
8476 _ACEOF
8477 rm -f conftest.$ac_objext conftest$ac_exeext
8478 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8479   (eval $ac_link) 2>&5
8480   ac_status=$?
8481   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8482   (exit $ac_status); } &&
8483          { ac_try='test -s conftest$ac_exeext'
8484   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8485   (eval $ac_try) 2>&5
8486   ac_status=$?
8487   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8488   (exit $ac_status); }; }; then
8489   ac_cv_lib_dld_dld_link=yes
8490 else
8491   echo "$as_me: failed program was:" >&5
8492 sed 's/^/| /' conftest.$ac_ext >&5
8493
8494 ac_cv_lib_dld_dld_link=no
8495 fi
8496 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8497 LIBS=$ac_check_lib_save_LIBS
8498 fi
8499 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
8500 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
8501 if test $ac_cv_lib_dld_dld_link = yes; then
8502   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
8503 fi
8504
8505
8506 fi
8507
8508
8509 fi
8510
8511
8512 fi
8513
8514
8515 fi
8516
8517
8518 fi
8519
8520     ;;
8521   esac
8522
8523   if test "x$lt_cv_dlopen" != xno; then
8524     enable_dlopen=yes
8525   else
8526     enable_dlopen=no
8527   fi
8528
8529   case $lt_cv_dlopen in
8530   dlopen)
8531     save_CPPFLAGS="$CPPFLAGS"
8532     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
8533
8534     save_LDFLAGS="$LDFLAGS"
8535     eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
8536
8537     save_LIBS="$LIBS"
8538     LIBS="$lt_cv_dlopen_libs $LIBS"
8539
8540     echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
8541 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
8542 if test "${lt_cv_dlopen_self+set}" = set; then
8543   echo $ECHO_N "(cached) $ECHO_C" >&6
8544 else
8545           if test "$cross_compiling" = yes; then :
8546   lt_cv_dlopen_self=cross
8547 else
8548   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
8549   lt_status=$lt_dlunknown
8550   cat > conftest.$ac_ext <<EOF
8551 #line 8551 "configure"
8552 #include "confdefs.h"
8553
8554 #if HAVE_DLFCN_H
8555 #include <dlfcn.h>
8556 #endif
8557
8558 #include <stdio.h>
8559
8560 #ifdef RTLD_GLOBAL
8561 #  define LT_DLGLOBAL           RTLD_GLOBAL
8562 #else
8563 #  ifdef DL_GLOBAL
8564 #    define LT_DLGLOBAL         DL_GLOBAL
8565 #  else
8566 #    define LT_DLGLOBAL         0
8567 #  endif
8568 #endif
8569
8570 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
8571    find out it does not work in some platform. */
8572 #ifndef LT_DLLAZY_OR_NOW
8573 #  ifdef RTLD_LAZY
8574 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
8575 #  else
8576 #    ifdef DL_LAZY
8577 #      define LT_DLLAZY_OR_NOW          DL_LAZY
8578 #    else
8579 #      ifdef RTLD_NOW
8580 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
8581 #      else
8582 #        ifdef DL_NOW
8583 #          define LT_DLLAZY_OR_NOW      DL_NOW
8584 #        else
8585 #          define LT_DLLAZY_OR_NOW      0
8586 #        endif
8587 #      endif
8588 #    endif
8589 #  endif
8590 #endif
8591
8592 #ifdef __cplusplus
8593 extern "C" void exit (int);
8594 #endif
8595
8596 void fnord() { int i=42;}
8597 int main ()
8598 {
8599   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
8600   int status = $lt_dlunknown;
8601
8602   if (self)
8603     {
8604       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
8605       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
8606       /* dlclose (self); */
8607     }
8608
8609     exit (status);
8610 }
8611 EOF
8612   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8613   (eval $ac_link) 2>&5
8614   ac_status=$?
8615   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8616   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
8617     (./conftest; exit; ) 2>/dev/null
8618     lt_status=$?
8619     case x$lt_status in
8620       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
8621       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
8622       x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
8623     esac
8624   else :
8625     # compilation failed
8626     lt_cv_dlopen_self=no
8627   fi
8628 fi
8629 rm -fr conftest*
8630
8631
8632 fi
8633 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
8634 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
8635
8636     if test "x$lt_cv_dlopen_self" = xyes; then
8637       LDFLAGS="$LDFLAGS $link_static_flag"
8638       echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
8639 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
8640 if test "${lt_cv_dlopen_self_static+set}" = set; then
8641   echo $ECHO_N "(cached) $ECHO_C" >&6
8642 else
8643           if test "$cross_compiling" = yes; then :
8644   lt_cv_dlopen_self_static=cross
8645 else
8646   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
8647   lt_status=$lt_dlunknown
8648   cat > conftest.$ac_ext <<EOF
8649 #line 8649 "configure"
8650 #include "confdefs.h"
8651
8652 #if HAVE_DLFCN_H
8653 #include <dlfcn.h>
8654 #endif
8655
8656 #include <stdio.h>
8657
8658 #ifdef RTLD_GLOBAL
8659 #  define LT_DLGLOBAL           RTLD_GLOBAL
8660 #else
8661 #  ifdef DL_GLOBAL
8662 #    define LT_DLGLOBAL         DL_GLOBAL
8663 #  else
8664 #    define LT_DLGLOBAL         0
8665 #  endif
8666 #endif
8667
8668 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
8669    find out it does not work in some platform. */
8670 #ifndef LT_DLLAZY_OR_NOW
8671 #  ifdef RTLD_LAZY
8672 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
8673 #  else
8674 #    ifdef DL_LAZY
8675 #      define LT_DLLAZY_OR_NOW          DL_LAZY
8676 #    else
8677 #      ifdef RTLD_NOW
8678 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
8679 #      else
8680 #        ifdef DL_NOW
8681 #          define LT_DLLAZY_OR_NOW      DL_NOW
8682 #        else
8683 #          define LT_DLLAZY_OR_NOW      0
8684 #        endif
8685 #      endif
8686 #    endif
8687 #  endif
8688 #endif
8689
8690 #ifdef __cplusplus
8691 extern "C" void exit (int);
8692 #endif
8693
8694 void fnord() { int i=42;}
8695 int main ()
8696 {
8697   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
8698   int status = $lt_dlunknown;
8699
8700   if (self)
8701     {
8702       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
8703       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
8704       /* dlclose (self); */
8705     }
8706
8707     exit (status);
8708 }
8709 EOF
8710   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8711   (eval $ac_link) 2>&5
8712   ac_status=$?
8713   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8714   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
8715     (./conftest; exit; ) 2>/dev/null
8716     lt_status=$?
8717     case x$lt_status in
8718       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
8719       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
8720       x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
8721     esac
8722   else :
8723     # compilation failed
8724     lt_cv_dlopen_self_static=no
8725   fi
8726 fi
8727 rm -fr conftest*
8728
8729
8730 fi
8731 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
8732 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
8733     fi
8734
8735     CPPFLAGS="$save_CPPFLAGS"
8736     LDFLAGS="$save_LDFLAGS"
8737     LIBS="$save_LIBS"
8738     ;;
8739   esac
8740
8741   case $lt_cv_dlopen_self in
8742   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
8743   *) enable_dlopen_self=unknown ;;
8744   esac
8745
8746   case $lt_cv_dlopen_self_static in
8747   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
8748   *) enable_dlopen_self_static=unknown ;;
8749   esac
8750 fi
8751
8752
8753 # Report which librarie types wil actually be built
8754 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
8755 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
8756 echo "$as_me:$LINENO: result: $can_build_shared" >&5
8757 echo "${ECHO_T}$can_build_shared" >&6
8758
8759 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
8760 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
8761 test "$can_build_shared" = "no" && enable_shared=no
8762
8763 # On AIX, shared libraries and static libraries use the same namespace, and
8764 # are all built from PIC.
8765 case "$host_os" in
8766 aix3*)
8767   test "$enable_shared" = yes && enable_static=no
8768   if test -n "$RANLIB"; then
8769     archive_cmds="$archive_cmds~\$RANLIB \$lib"
8770     postinstall_cmds='$RANLIB $lib'
8771   fi
8772   ;;
8773
8774 aix4*)
8775   if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
8776     test "$enable_shared" = yes && enable_static=no
8777   fi
8778   ;;
8779   darwin* | rhapsody*)
8780   if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
8781     archive_cmds_need_lc=no
8782     case "$host_os" in
8783     rhapsody* | darwin1.[012])
8784       allow_undefined_flag='-undefined suppress'
8785       ;;
8786     *) # Darwin 1.3 on
8787       test -z ${LD_TWOLEVEL_NAMESPACE} && allow_undefined_flag='-flat_namespace -undefined suppress'
8788       ;;
8789     esac
8790     # FIXME: Relying on posixy $() will cause problems for
8791     #        cross-compilation, but unfortunately the echo tests do not
8792     #        yet detect zsh echo's removal of \ escapes.  Also zsh mangles
8793     #          `"' quotes if we put them in here... so don't!
8794                 output_verbose_link_cmd='echo'
8795     archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags -install_name $rpath/$soname $verstring'
8796     module_cmds='$CC -bundle $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags'
8797     # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
8798                   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}'
8799                   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}'
8800     hardcode_direct=no
8801     hardcode_automatic=yes
8802     hardcode_shlibpath_var=unsupported
8803     whole_archive_flag_spec='-all_load $convenience'
8804     link_all_deplibs=yes
8805     fi
8806     ;;
8807 esac
8808 echo "$as_me:$LINENO: result: $enable_shared" >&5
8809 echo "${ECHO_T}$enable_shared" >&6
8810
8811 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
8812 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
8813 # Make sure either enable_shared or enable_static is yes.
8814 test "$enable_shared" = yes || enable_static=yes
8815 echo "$as_me:$LINENO: result: $enable_static" >&5
8816 echo "${ECHO_T}$enable_static" >&6
8817
8818 # The else clause should only fire when bootstrapping the
8819 # libtool distribution, otherwise you forgot to ship ltmain.sh
8820 # with your package, and you will get complaints that there are
8821 # no rules to generate ltmain.sh.
8822 if test -f "$ltmain"; then
8823   # See if we are running on zsh, and set the options which allow our commands through
8824   # without removal of \ escapes.
8825   if test -n "${ZSH_VERSION+set}" ; then
8826     setopt NO_GLOB_SUBST
8827   fi
8828   # Now quote all the things that may contain metacharacters while being
8829   # careful not to overquote the AC_SUBSTed values.  We take copies of the
8830   # variables and quote the copies for generation of the libtool script.
8831   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \
8832     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
8833     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
8834     deplibs_check_method reload_flag reload_cmds need_locks \
8835     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
8836     lt_cv_sys_global_symbol_to_c_name_address \
8837     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
8838     old_postinstall_cmds old_postuninstall_cmds \
8839     compiler \
8840     CC \
8841     LD \
8842     lt_prog_compiler_wl \
8843     lt_prog_compiler_pic \
8844     lt_prog_compiler_static \
8845     lt_prog_compiler_no_builtin_flag \
8846     export_dynamic_flag_spec \
8847     thread_safe_flag_spec \
8848     whole_archive_flag_spec \
8849     enable_shared_with_static_runtimes \
8850     old_archive_cmds \
8851     old_archive_from_new_cmds \
8852     predep_objects \
8853     postdep_objects \
8854     predeps \
8855     postdeps \
8856     compiler_lib_search_path \
8857     archive_cmds \
8858     archive_expsym_cmds \
8859     postinstall_cmds \
8860     postuninstall_cmds \
8861     old_archive_from_expsyms_cmds \
8862     allow_undefined_flag \
8863     no_undefined_flag \
8864     export_symbols_cmds \
8865     hardcode_libdir_flag_spec \
8866     hardcode_libdir_flag_spec_ld \
8867     hardcode_libdir_separator \
8868     hardcode_automatic \
8869     module_cmds \
8870     module_expsym_cmds \
8871     lt_cv_prog_compiler_c_o \
8872     exclude_expsyms \
8873     include_expsyms; do
8874
8875     case $var in
8876     old_archive_cmds | \
8877     old_archive_from_new_cmds | \
8878     archive_cmds | \
8879     archive_expsym_cmds | \
8880     module_cmds | \
8881     module_expsym_cmds | \
8882     old_archive_from_expsyms_cmds | \
8883     export_symbols_cmds | \
8884     extract_expsyms_cmds | reload_cmds | finish_cmds | \
8885     postinstall_cmds | postuninstall_cmds | \
8886     old_postinstall_cmds | old_postuninstall_cmds | \
8887     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
8888       # Double-quote double-evaled strings.
8889       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
8890       ;;
8891     *)
8892       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
8893       ;;
8894     esac
8895   done
8896
8897   case $lt_echo in
8898   *'\$0 --fallback-echo"')
8899     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
8900     ;;
8901   esac
8902
8903 cfgfile="${ofile}T"
8904   trap "$rm \"$cfgfile\"; exit 1" 1 2 15
8905   $rm -f "$cfgfile"
8906   { echo "$as_me:$LINENO: creating $ofile" >&5
8907 echo "$as_me: creating $ofile" >&6;}
8908
8909   cat <<__EOF__ >> "$cfgfile"
8910 #! $SHELL
8911
8912 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
8913 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
8914 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
8915 #
8916 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
8917 # Free Software Foundation, Inc.
8918 #
8919 # This file is part of GNU Libtool:
8920 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
8921 #
8922 # This program is free software; you can redistribute it and/or modify
8923 # it under the terms of the GNU General Public License as published by
8924 # the Free Software Foundation; either version 2 of the License, or
8925 # (at your option) any later version.
8926 #
8927 # This program is distributed in the hope that it will be useful, but
8928 # WITHOUT ANY WARRANTY; without even the implied warranty of
8929 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
8930 # General Public License for more details.
8931 #
8932 # You should have received a copy of the GNU General Public License
8933 # along with this program; if not, write to the Free Software
8934 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
8935 #
8936 # As a special exception to the GNU General Public License, if you
8937 # distribute this file as part of a program that contains a
8938 # configuration script generated by Autoconf, you may include it under
8939 # the same distribution terms that you use for the rest of that program.
8940
8941 # A sed program that does not truncate output.
8942 SED=$lt_SED
8943
8944 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
8945 Xsed="$SED -e s/^X//"
8946
8947 # The HP-UX ksh and POSIX shell print the target directory to stdout
8948 # if CDPATH is set.
8949 if test "X\${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
8950
8951 # The names of the tagged configurations supported by this script.
8952 available_tags=
8953
8954 # ### BEGIN LIBTOOL CONFIG
8955
8956 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
8957
8958 # Shell to use when invoking shell scripts.
8959 SHELL=$lt_SHELL
8960
8961 # Whether or not to build shared libraries.
8962 build_libtool_libs=$enable_shared
8963
8964 # Whether or not to build static libraries.
8965 build_old_libs=$enable_static
8966
8967 # Whether or not to add -lc for building shared libraries.
8968 build_libtool_need_lc=$archive_cmds_need_lc
8969
8970 # Whether or not to disallow shared libs when runtime libs are static
8971 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
8972
8973 # Whether or not to optimize for fast installation.
8974 fast_install=$enable_fast_install
8975
8976 # The host system.
8977 host_alias=$host_alias
8978 host=$host
8979
8980 # An echo program that does not interpret backslashes.
8981 echo=$lt_echo
8982
8983 # The archiver.
8984 AR=$lt_AR
8985 AR_FLAGS=$lt_AR_FLAGS
8986
8987 # A C compiler.
8988 LTCC=$lt_LTCC
8989
8990 # A language-specific compiler.
8991 CC=$lt_compiler
8992
8993 # Is the compiler the GNU C compiler?
8994 with_gcc=$GCC
8995
8996 # An ERE matcher.
8997 EGREP=$lt_EGREP
8998
8999 # The linker used to build libraries.
9000 LD=$lt_LD
9001
9002 # Whether we need hard or soft links.
9003 LN_S=$lt_LN_S
9004
9005 # A BSD-compatible nm program.
9006 NM=$lt_NM
9007
9008 # A symbol stripping program
9009 STRIP=$STRIP
9010
9011 # Used to examine libraries when file_magic_cmd begins "file"
9012 MAGIC_CMD=$MAGIC_CMD
9013
9014 # Used on cygwin: DLL creation program.
9015 DLLTOOL="$DLLTOOL"
9016
9017 # Used on cygwin: object dumper.
9018 OBJDUMP="$OBJDUMP"
9019
9020 # Used on cygwin: assembler.
9021 AS="$AS"
9022
9023 # The name of the directory that contains temporary libtool files.
9024 objdir=$objdir
9025
9026 # How to create reloadable object files.
9027 reload_flag=$lt_reload_flag
9028 reload_cmds=$lt_reload_cmds
9029
9030 # How to pass a linker flag through the compiler.
9031 wl=$lt_lt_prog_compiler_wl
9032
9033 # Object file suffix (normally "o").
9034 objext="$ac_objext"
9035
9036 # Old archive suffix (normally "a").
9037 libext="$libext"
9038
9039 # Shared library suffix (normally ".so").
9040 shrext='$shrext'
9041
9042 # Executable file suffix (normally "").
9043 exeext="$exeext"
9044
9045 # Additional compiler flags for building library objects.
9046 pic_flag=$lt_lt_prog_compiler_pic
9047 pic_mode=$pic_mode
9048
9049 # What is the maximum length of a command?
9050 max_cmd_len=$lt_cv_sys_max_cmd_len
9051
9052 # Does compiler simultaneously support -c and -o options?
9053 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
9054
9055 # Must we lock files when doing compilation ?
9056 need_locks=$lt_need_locks
9057
9058 # Do we need the lib prefix for modules?
9059 need_lib_prefix=$need_lib_prefix
9060
9061 # Do we need a version for libraries?
9062 need_version=$need_version
9063
9064 # Whether dlopen is supported.
9065 dlopen_support=$enable_dlopen
9066
9067 # Whether dlopen of programs is supported.
9068 dlopen_self=$enable_dlopen_self
9069
9070 # Whether dlopen of statically linked programs is supported.
9071 dlopen_self_static=$enable_dlopen_self_static
9072
9073 # Compiler flag to prevent dynamic linking.
9074 link_static_flag=$lt_lt_prog_compiler_static
9075
9076 # Compiler flag to turn off builtin functions.
9077 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
9078
9079 # Compiler flag to allow reflexive dlopens.
9080 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
9081
9082 # Compiler flag to generate shared objects directly from archives.
9083 whole_archive_flag_spec=$lt_whole_archive_flag_spec
9084
9085 # Compiler flag to generate thread-safe objects.
9086 thread_safe_flag_spec=$lt_thread_safe_flag_spec
9087
9088 # Library versioning type.
9089 version_type=$version_type
9090
9091 # Format of library name prefix.
9092 libname_spec=$lt_libname_spec
9093
9094 # List of archive names.  First name is the real one, the rest are links.
9095 # The last name is the one that the linker finds with -lNAME.
9096 library_names_spec=$lt_library_names_spec
9097
9098 # The coded name of the library, if different from the real name.
9099 soname_spec=$lt_soname_spec
9100
9101 # Commands used to build and install an old-style archive.
9102 RANLIB=$lt_RANLIB
9103 old_archive_cmds=$lt_old_archive_cmds
9104 old_postinstall_cmds=$lt_old_postinstall_cmds
9105 old_postuninstall_cmds=$lt_old_postuninstall_cmds
9106
9107 # Create an old-style archive from a shared archive.
9108 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
9109
9110 # Create a temporary old-style archive to link instead of a shared archive.
9111 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
9112
9113 # Commands used to build and install a shared archive.
9114 archive_cmds=$lt_archive_cmds
9115 archive_expsym_cmds=$lt_archive_expsym_cmds
9116 postinstall_cmds=$lt_postinstall_cmds
9117 postuninstall_cmds=$lt_postuninstall_cmds
9118
9119 # Commands used to build a loadable module (assumed same as above if empty)
9120 module_cmds=$lt_module_cmds
9121 module_expsym_cmds=$lt_module_expsym_cmds
9122
9123 # Commands to strip libraries.
9124 old_striplib=$lt_old_striplib
9125 striplib=$lt_striplib
9126
9127 # Dependencies to place before the objects being linked to create a
9128 # shared library.
9129 predep_objects=$lt_predep_objects
9130
9131 # Dependencies to place after the objects being linked to create a
9132 # shared library.
9133 postdep_objects=$lt_postdep_objects
9134
9135 # Dependencies to place before the objects being linked to create a
9136 # shared library.
9137 predeps=$lt_predeps
9138
9139 # Dependencies to place after the objects being linked to create a
9140 # shared library.
9141 postdeps=$lt_postdeps
9142
9143 # The library search path used internally by the compiler when linking
9144 # a shared library.
9145 compiler_lib_search_path=$lt_compiler_lib_search_path
9146
9147 # Method to check whether dependent libraries are shared objects.
9148 deplibs_check_method=$lt_deplibs_check_method
9149
9150 # Command to use when deplibs_check_method == file_magic.
9151 file_magic_cmd=$lt_file_magic_cmd
9152
9153 # Flag that allows shared libraries with undefined symbols to be built.
9154 allow_undefined_flag=$lt_allow_undefined_flag
9155
9156 # Flag that forces no undefined symbols.
9157 no_undefined_flag=$lt_no_undefined_flag
9158
9159 # Commands used to finish a libtool library installation in a directory.
9160 finish_cmds=$lt_finish_cmds
9161
9162 # Same as above, but a single script fragment to be evaled but not shown.
9163 finish_eval=$lt_finish_eval
9164
9165 # Take the output of nm and produce a listing of raw symbols and C names.
9166 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
9167
9168 # Transform the output of nm in a proper C declaration
9169 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
9170
9171 # Transform the output of nm in a C name address pair
9172 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
9173
9174 # This is the shared library runtime path variable.
9175 runpath_var=$runpath_var
9176
9177 # This is the shared library path variable.
9178 shlibpath_var=$shlibpath_var
9179
9180 # Is shlibpath searched before the hard-coded library search path?
9181 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
9182
9183 # How to hardcode a shared library path into an executable.
9184 hardcode_action=$hardcode_action
9185
9186 # Whether we should hardcode library paths into libraries.
9187 hardcode_into_libs=$hardcode_into_libs
9188
9189 # Flag to hardcode \$libdir into a binary during linking.
9190 # This must work even if \$libdir does not exist.
9191 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
9192
9193 # If ld is used when linking, flag to hardcode \$libdir into
9194 # a binary during linking. This must work even if \$libdir does
9195 # not exist.
9196 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
9197
9198 # Whether we need a single -rpath flag with a separated argument.
9199 hardcode_libdir_separator=$lt_hardcode_libdir_separator
9200
9201 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
9202 # resulting binary.
9203 hardcode_direct=$hardcode_direct
9204
9205 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
9206 # resulting binary.
9207 hardcode_minus_L=$hardcode_minus_L
9208
9209 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
9210 # the resulting binary.
9211 hardcode_shlibpath_var=$hardcode_shlibpath_var
9212
9213 # Set to yes if building a shared library automatically hardcodes DIR into the library
9214 # and all subsequent libraries and executables linked against it.
9215 hardcode_automatic=$hardcode_automatic
9216
9217 # Variables whose values should be saved in libtool wrapper scripts and
9218 # restored at relink time.
9219 variables_saved_for_relink="$variables_saved_for_relink"
9220
9221 # Whether libtool must link a program against all its dependency libraries.
9222 link_all_deplibs=$link_all_deplibs
9223
9224 # Compile-time system search path for libraries
9225 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
9226
9227 # Run-time system search path for libraries
9228 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
9229
9230 # Fix the shell variable \$srcfile for the compiler.
9231 fix_srcfile_path="$fix_srcfile_path"
9232
9233 # Set to yes if exported symbols are required.
9234 always_export_symbols=$always_export_symbols
9235
9236 # The commands to list exported symbols.
9237 export_symbols_cmds=$lt_export_symbols_cmds
9238
9239 # The commands to extract the exported symbol list from a shared archive.
9240 extract_expsyms_cmds=$lt_extract_expsyms_cmds
9241
9242 # Symbols that should not be listed in the preloaded symbols.
9243 exclude_expsyms=$lt_exclude_expsyms
9244
9245 # Symbols that must always be exported.
9246 include_expsyms=$lt_include_expsyms
9247
9248 # ### END LIBTOOL CONFIG
9249
9250 __EOF__
9251
9252
9253   case $host_os in
9254   aix3*)
9255     cat <<\EOF >> "$cfgfile"
9256
9257 # AIX sometimes has problems with the GCC collect2 program.  For some
9258 # reason, if we set the COLLECT_NAMES environment variable, the problems
9259 # vanish in a puff of smoke.
9260 if test "X${COLLECT_NAMES+set}" != Xset; then
9261   COLLECT_NAMES=
9262   export COLLECT_NAMES
9263 fi
9264 EOF
9265     ;;
9266   esac
9267
9268   # We use sed instead of cat because bash on DJGPP gets confused if
9269   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
9270   # text mode, it properly converts lines to CR/LF.  This bash problem
9271   # is reportedly fixed, but why not run on old versions too?
9272   sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
9273
9274   mv -f "$cfgfile" "$ofile" || \
9275     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
9276   chmod +x "$ofile"
9277
9278 else
9279   # If there is no Makefile yet, we rely on a make rule to execute
9280   # `config.status --recheck' to rerun these tests and create the
9281   # libtool script then.
9282   test -f Makefile && make "$ltmain"
9283 fi
9284
9285
9286 ac_ext=c
9287 ac_cpp='$CPP $CPPFLAGS'
9288 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9289 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9290 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9291
9292 CC="$lt_save_CC"
9293
9294
9295 # Check whether --with-tags or --without-tags was given.
9296 if test "${with_tags+set}" = set; then
9297   withval="$with_tags"
9298   tagnames="$withval"
9299 fi;
9300
9301 if test -f "$ltmain" && test -n "$tagnames"; then
9302   if test ! -f "${ofile}"; then
9303     { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
9304 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
9305   fi
9306
9307   if test -z "$LTCC"; then
9308     eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
9309     if test -z "$LTCC"; then
9310       { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
9311 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
9312     else
9313       { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
9314 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
9315     fi
9316   fi
9317
9318   # Extract list of available tagged configurations in $ofile.
9319   # Note that this assumes the entire list is on one line.
9320   available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
9321
9322   lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9323   for tagname in $tagnames; do
9324     IFS="$lt_save_ifs"
9325     # Check whether tagname contains only valid characters
9326     case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
9327     "") ;;
9328     *)  { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
9329 echo "$as_me: error: invalid tag name: $tagname" >&2;}
9330    { (exit 1); exit 1; }; }
9331         ;;
9332     esac
9333
9334     if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
9335     then
9336       { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
9337 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
9338    { (exit 1); exit 1; }; }
9339     fi
9340
9341     # Update the list of available tags.
9342     if test -n "$tagname"; then
9343       echo appending configuration tag \"$tagname\" to $ofile
9344
9345       case $tagname in
9346       CXX)
9347         if test -n "$CXX" && test "X$CXX" != "Xno"; then
9348           ac_ext=cc
9349 ac_cpp='$CXXCPP $CPPFLAGS'
9350 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9351 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9352 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9353
9354
9355
9356
9357 archive_cmds_need_lc_CXX=no
9358 allow_undefined_flag_CXX=
9359 always_export_symbols_CXX=no
9360 archive_expsym_cmds_CXX=
9361 export_dynamic_flag_spec_CXX=
9362 hardcode_direct_CXX=no
9363 hardcode_libdir_flag_spec_CXX=
9364 hardcode_libdir_flag_spec_ld_CXX=
9365 hardcode_libdir_separator_CXX=
9366 hardcode_minus_L_CXX=no
9367 hardcode_automatic_CXX=no
9368 module_cmds_CXX=
9369 module_expsym_cmds_CXX=
9370 link_all_deplibs_CXX=unknown
9371 old_archive_cmds_CXX=$old_archive_cmds
9372 no_undefined_flag_CXX=
9373 whole_archive_flag_spec_CXX=
9374 enable_shared_with_static_runtimes_CXX=no
9375
9376 # Dependencies to place before and after the object being linked:
9377 predep_objects_CXX=
9378 postdep_objects_CXX=
9379 predeps_CXX=
9380 postdeps_CXX=
9381 compiler_lib_search_path_CXX=
9382
9383 # Source file extension for C++ test sources.
9384 ac_ext=cc
9385
9386 # Object file extension for compiled C++ test sources.
9387 objext=o
9388 objext_CXX=$objext
9389
9390 # Code to be used in simple compile tests
9391 lt_simple_compile_test_code="int some_variable = 0;\n"
9392
9393 # Code to be used in simple link tests
9394 lt_simple_link_test_code='int main(int, char *) { return(0); }\n'
9395
9396 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
9397
9398 # If no C compiler was specified, use CC.
9399 LTCC=${LTCC-"$CC"}
9400
9401 # Allow CC to be a program name with arguments.
9402 compiler=$CC
9403
9404
9405 # Allow CC to be a program name with arguments.
9406 lt_save_CC=$CC
9407 lt_save_LD=$LD
9408 lt_save_GCC=$GCC
9409 GCC=$GXX
9410 lt_save_with_gnu_ld=$with_gnu_ld
9411 lt_save_path_LD=$lt_cv_path_LD
9412 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
9413   lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
9414 else
9415   unset lt_cv_prog_gnu_ld
9416 fi
9417 if test -n "${lt_cv_path_LDCXX+set}"; then
9418   lt_cv_path_LD=$lt_cv_path_LDCXX
9419 else
9420   unset lt_cv_path_LD
9421 fi
9422 test -z "${LDCXX+set}" || LD=$LDCXX
9423 CC=${CXX-"c++"}
9424 compiler=$CC
9425 compiler_CXX=$CC
9426 cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
9427
9428 # We don't want -fno-exception wen compiling C++ code, so set the
9429 # no_builtin_flag separately
9430 if test "$GXX" = yes; then
9431   lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
9432 else
9433   lt_prog_compiler_no_builtin_flag_CXX=
9434 fi
9435
9436 if test "$GXX" = yes; then
9437   # Set up default GNU C++ configuration
9438
9439
9440 # Check whether --with-gnu-ld or --without-gnu-ld was given.
9441 if test "${with_gnu_ld+set}" = set; then
9442   withval="$with_gnu_ld"
9443   test "$withval" = no || with_gnu_ld=yes
9444 else
9445   with_gnu_ld=no
9446 fi;
9447 ac_prog=ld
9448 if test "$GCC" = yes; then
9449   # Check if gcc -print-prog-name=ld gives a path.
9450   echo "$as_me:$LINENO: checking for ld used by $CC" >&5
9451 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
9452   case $host in
9453   *-*-mingw*)
9454     # gcc leaves a trailing carriage return which upsets mingw
9455     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
9456   *)
9457     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
9458   esac
9459   case $ac_prog in
9460     # Accept absolute paths.
9461     [\\/]* | ?:[\\/]*)
9462       re_direlt='/[^/][^/]*/\.\./'
9463       # Canonicalize the path of ld
9464       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
9465       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
9466         ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
9467       done
9468       test -z "$LD" && LD="$ac_prog"
9469       ;;
9470   "")
9471     # If it fails, then pretend we aren't using GCC.
9472     ac_prog=ld
9473     ;;
9474   *)
9475     # If it is relative, then search for the first ld in PATH.
9476     with_gnu_ld=unknown
9477     ;;
9478   esac
9479 elif test "$with_gnu_ld" = yes; then
9480   echo "$as_me:$LINENO: checking for GNU ld" >&5
9481 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
9482 else
9483   echo "$as_me:$LINENO: checking for non-GNU ld" >&5
9484 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
9485 fi
9486 if test "${lt_cv_path_LD+set}" = set; then
9487   echo $ECHO_N "(cached) $ECHO_C" >&6
9488 else
9489   if test -z "$LD"; then
9490   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9491   for ac_dir in $PATH; do
9492     IFS="$lt_save_ifs"
9493     test -z "$ac_dir" && ac_dir=.
9494     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
9495       lt_cv_path_LD="$ac_dir/$ac_prog"
9496       # Check to see if the program is GNU ld.  I'd rather use --version,
9497       # but apparently some GNU ld's only accept -v.
9498       # Break only if it was the GNU/non-GNU ld that we prefer.
9499       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
9500       *GNU* | *'with BFD'*)
9501         test "$with_gnu_ld" != no && break
9502         ;;
9503       *)
9504         test "$with_gnu_ld" != yes && break
9505         ;;
9506       esac
9507     fi
9508   done
9509   IFS="$lt_save_ifs"
9510 else
9511   lt_cv_path_LD="$LD" # Let the user override the test with a path.
9512 fi
9513 fi
9514
9515 LD="$lt_cv_path_LD"
9516 if test -n "$LD"; then
9517   echo "$as_me:$LINENO: result: $LD" >&5
9518 echo "${ECHO_T}$LD" >&6
9519 else
9520   echo "$as_me:$LINENO: result: no" >&5
9521 echo "${ECHO_T}no" >&6
9522 fi
9523 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
9524 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
9525    { (exit 1); exit 1; }; }
9526 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
9527 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
9528 if test "${lt_cv_prog_gnu_ld+set}" = set; then
9529   echo $ECHO_N "(cached) $ECHO_C" >&6
9530 else
9531   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
9532 case `"$LD" -v 2>&1 </dev/null` in
9533 *GNU* | *'with BFD'*)
9534   lt_cv_prog_gnu_ld=yes
9535   ;;
9536 *)
9537   lt_cv_prog_gnu_ld=no
9538   ;;
9539 esac
9540 fi
9541 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
9542 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
9543 with_gnu_ld=$lt_cv_prog_gnu_ld
9544
9545
9546
9547   # Check if GNU C++ uses GNU ld as the underlying linker, since the
9548   # archiving commands below assume that GNU ld is being used.
9549   if test "$with_gnu_ld" = yes; then
9550     archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
9551     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'
9552
9553     hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
9554     export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
9555
9556     # If archive_cmds runs LD, not CC, wlarc should be empty
9557     # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
9558     #     investigate it a little bit more. (MM)
9559     wlarc='${wl}'
9560
9561     # ancient GNU ld didn't support --whole-archive et. al.
9562     if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
9563         grep 'no-whole-archive' > /dev/null; then
9564       whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9565     else
9566       whole_archive_flag_spec_CXX=
9567     fi
9568   else
9569     with_gnu_ld=no
9570     wlarc=
9571
9572     # A generic and very simple default shared library creation
9573     # command for GNU C++ for the case where it uses the native
9574     # linker, instead of GNU ld.  If possible, this setting should
9575     # overridden to take advantage of the native linker features on
9576     # the platform it is being used on.
9577     archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
9578   fi
9579
9580   # Commands to make compiler produce verbose output that lists
9581   # what "hidden" libraries, object files and flags are used when
9582   # linking a shared library.
9583   output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
9584
9585 else
9586   GXX=no
9587   with_gnu_ld=no
9588   wlarc=
9589 fi
9590
9591 # PORTME: fill in a description of your system's C++ link characteristics
9592 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9593 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
9594 ld_shlibs_CXX=yes
9595 case $host_os in
9596   aix3*)
9597     # FIXME: insert proper C++ library support
9598     ld_shlibs_CXX=no
9599     ;;
9600   aix4* | aix5*)
9601     if test "$host_cpu" = ia64; then
9602       # On IA64, the linker does run time linking by default, so we don't
9603       # have to do anything special.
9604       aix_use_runtimelinking=no
9605       exp_sym_flag='-Bexport'
9606       no_entry_flag=""
9607     else
9608       aix_use_runtimelinking=no
9609
9610       # Test if we are trying to use run time linking or normal
9611       # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9612       # need to do runtime linking.
9613       case $host_os in aix4.[23]|aix4.[23].*|aix5*)
9614         for ld_flag in $LDFLAGS; do
9615           case $ld_flag in
9616           *-brtl*)
9617             aix_use_runtimelinking=yes
9618             break
9619             ;;
9620           esac
9621         done
9622       esac
9623
9624       exp_sym_flag='-bexport'
9625       no_entry_flag='-bnoentry'
9626     fi
9627
9628     # When large executables or shared objects are built, AIX ld can
9629     # have problems creating the table of contents.  If linking a library
9630     # or program results in "error TOC overflow" add -mminimal-toc to
9631     # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
9632     # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9633
9634     archive_cmds_CXX=''
9635     hardcode_direct_CXX=yes
9636     hardcode_libdir_separator_CXX=':'
9637     link_all_deplibs_CXX=yes
9638
9639     if test "$GXX" = yes; then
9640       case $host_os in aix4.012|aix4.012.*)
9641       # We only want to do this on AIX 4.2 and lower, the check
9642       # below for broken collect2 doesn't work under 4.3+
9643         collect2name=`${CC} -print-prog-name=collect2`
9644         if test -f "$collect2name" && \
9645            strings "$collect2name" | grep resolve_lib_name >/dev/null
9646         then
9647           # We have reworked collect2
9648           hardcode_direct_CXX=yes
9649         else
9650           # We have old collect2
9651           hardcode_direct_CXX=unsupported
9652           # It fails to find uninstalled libraries when the uninstalled
9653           # path is not listed in the libpath.  Setting hardcode_minus_L
9654           # to unsupported forces relinking
9655           hardcode_minus_L_CXX=yes
9656           hardcode_libdir_flag_spec_CXX='-L$libdir'
9657           hardcode_libdir_separator_CXX=
9658         fi
9659       esac
9660       shared_flag='-shared'
9661     else
9662       # not using gcc
9663       if test "$host_cpu" = ia64; then
9664         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9665         # chokes on -Wl,-G. The following line is correct:
9666         shared_flag='-G'
9667       else
9668         if test "$aix_use_runtimelinking" = yes; then
9669           shared_flag='${wl}-G'
9670         else
9671           shared_flag='${wl}-bM:SRE'
9672         fi
9673       fi
9674     fi
9675
9676     # It seems that -bexpall does not export symbols beginning with
9677     # underscore (_), so it is better to generate a list of symbols to export.
9678     always_export_symbols_CXX=yes
9679     if test "$aix_use_runtimelinking" = yes; then
9680       # Warning - without using the other runtime loading flags (-brtl),
9681       # -berok will link without error, but may produce a broken library.
9682       allow_undefined_flag_CXX='-berok'
9683       # Determine the default libpath from the value encoded in an empty executable.
9684       cat >conftest.$ac_ext <<_ACEOF
9685 #line $LINENO "configure"
9686 /* confdefs.h.  */
9687 _ACEOF
9688 cat confdefs.h >>conftest.$ac_ext
9689 cat >>conftest.$ac_ext <<_ACEOF
9690 /* end confdefs.h.  */
9691
9692 int
9693 main ()
9694 {
9695
9696   ;
9697   return 0;
9698 }
9699 _ACEOF
9700 rm -f conftest.$ac_objext conftest$ac_exeext
9701 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9702   (eval $ac_link) 2>&5
9703   ac_status=$?
9704   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9705   (exit $ac_status); } &&
9706          { ac_try='test -s conftest$ac_exeext'
9707   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9708   (eval $ac_try) 2>&5
9709   ac_status=$?
9710   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9711   (exit $ac_status); }; }; then
9712
9713 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
9714 }'`
9715 # Check for a 64-bit object if we didn't find anything.
9716 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; }
9717 }'`; fi
9718 else
9719   echo "$as_me: failed program was:" >&5
9720 sed 's/^/| /' conftest.$ac_ext >&5
9721
9722 fi
9723 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9724 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9725
9726       hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
9727
9728       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"
9729      else
9730       if test "$host_cpu" = ia64; then
9731         hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
9732         allow_undefined_flag_CXX="-z nodefs"
9733         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"
9734       else
9735         # Determine the default libpath from the value encoded in an empty executable.
9736         cat >conftest.$ac_ext <<_ACEOF
9737 #line $LINENO "configure"
9738 /* confdefs.h.  */
9739 _ACEOF
9740 cat confdefs.h >>conftest.$ac_ext
9741 cat >>conftest.$ac_ext <<_ACEOF
9742 /* end confdefs.h.  */
9743
9744 int
9745 main ()
9746 {
9747
9748   ;
9749   return 0;
9750 }
9751 _ACEOF
9752 rm -f conftest.$ac_objext conftest$ac_exeext
9753 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9754   (eval $ac_link) 2>&5
9755   ac_status=$?
9756   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9757   (exit $ac_status); } &&
9758          { ac_try='test -s conftest$ac_exeext'
9759   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9760   (eval $ac_try) 2>&5
9761   ac_status=$?
9762   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9763   (exit $ac_status); }; }; then
9764
9765 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
9766 }'`
9767 # Check for a 64-bit object if we didn't find anything.
9768 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; }
9769 }'`; fi
9770 else
9771   echo "$as_me: failed program was:" >&5
9772 sed 's/^/| /' conftest.$ac_ext >&5
9773
9774 fi
9775 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9776 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9777
9778         hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
9779         # Warning - without using the other run time loading flags,
9780         # -berok will link without error, but may produce a broken library.
9781         no_undefined_flag_CXX=' ${wl}-bernotok'
9782         allow_undefined_flag_CXX=' ${wl}-berok'
9783         # -bexpall does not export symbols beginning with underscore (_)
9784         always_export_symbols_CXX=yes
9785         # Exported symbols can be pulled into shared objects from archives
9786         whole_archive_flag_spec_CXX=' '
9787         archive_cmds_need_lc_CXX=yes
9788         # This is similar to how AIX traditionally builds it's shared libraries.
9789         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'
9790       fi
9791     fi
9792     ;;
9793   chorus*)
9794     case $cc_basename in
9795       *)
9796         # FIXME: insert proper C++ library support
9797         ld_shlibs_CXX=no
9798         ;;
9799     esac
9800     ;;
9801
9802   cygwin* | mingw* | pw32*)
9803     # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
9804     # as there is no search path for DLLs.
9805     hardcode_libdir_flag_spec_CXX='-L$libdir'
9806     allow_undefined_flag_CXX=unsupported
9807     always_export_symbols_CXX=no
9808     enable_shared_with_static_runtimes_CXX=yes
9809
9810     if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
9811       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'
9812       # If the export-symbols file already is a .def file (1st line
9813       # is EXPORTS), use it as is; otherwise, prepend...
9814       archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9815         cp $export_symbols $output_objdir/$soname.def;
9816       else
9817         echo EXPORTS > $output_objdir/$soname.def;
9818         cat $export_symbols >> $output_objdir/$soname.def;
9819       fi~
9820       $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'
9821     else
9822       ld_shlibs_CXX=no
9823     fi
9824   ;;
9825
9826   darwin* | rhapsody*)
9827    if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
9828     archive_cmds_need_lc_CXX=no
9829     case "$host_os" in
9830     rhapsody* | darwin1.[012])
9831       allow_undefined_flag_CXX='-undefined suppress'
9832       ;;
9833     *) # Darwin 1.3 on
9834       test -z ${LD_TWOLEVEL_NAMESPACE} && allow_undefined_flag_CXX='-flat_namespace -undefined suppress'
9835       ;;
9836     esac
9837         lt_int_apple_cc_single_mod=no
9838         output_verbose_link_cmd='echo'
9839         if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
9840           lt_int_apple_cc_single_mod=yes
9841         fi
9842         if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
9843           archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
9844         else
9845         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'
9846       fi
9847       module_cmds_CXX='$CC -bundle ${wl}-bind_at_load $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags'
9848
9849     # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
9850       if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
9851         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}'
9852       else
9853         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}'
9854       fi
9855         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}'
9856     hardcode_direct_CXX=no
9857     hardcode_automatic_CXX=yes
9858     hardcode_shlibpath_var_CXX=unsupported
9859     whole_archive_flag_spec_CXX='-all_load $convenience'
9860     link_all_deplibs_CXX=yes
9861    fi
9862     ;;
9863
9864   dgux*)
9865     case $cc_basename in
9866       ec++)
9867         # FIXME: insert proper C++ library support
9868         ld_shlibs_CXX=no
9869         ;;
9870       ghcx)
9871         # Green Hills C++ Compiler
9872         # FIXME: insert proper C++ library support
9873         ld_shlibs_CXX=no
9874         ;;
9875       *)
9876         # FIXME: insert proper C++ library support
9877         ld_shlibs_CXX=no
9878         ;;
9879     esac
9880     ;;
9881   freebsd12*)
9882     # C++ shared libraries reported to be fairly broken before switch to ELF
9883     ld_shlibs_CXX=no
9884     ;;
9885   freebsd-elf*)
9886     archive_cmds_need_lc_CXX=no
9887     ;;
9888   freebsd*)
9889     # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
9890     # conventions
9891     ld_shlibs_CXX=yes
9892     ;;
9893   gnu*)
9894     ;;
9895   hpux9*)
9896     hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
9897     hardcode_libdir_separator_CXX=:
9898     export_dynamic_flag_spec_CXX='${wl}-E'
9899     hardcode_direct_CXX=yes
9900     hardcode_minus_L_CXX=yes # Not in the search PATH,
9901                                 # but as the default
9902                                 # location of the library.
9903
9904     case $cc_basename in
9905     CC)
9906       # FIXME: insert proper C++ library support
9907       ld_shlibs_CXX=no
9908       ;;
9909     aCC)
9910       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'
9911       # Commands to make compiler produce verbose output that lists
9912       # what "hidden" libraries, object files and flags are used when
9913       # linking a shared library.
9914       #
9915       # There doesn't appear to be a way to prevent this compiler from
9916       # explicitly linking system object files so we need to strip them
9917       # from the output so that they don't get included in the library
9918       # dependencies.
9919       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'
9920       ;;
9921     *)
9922       if test "$GXX" = yes; then
9923         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'
9924       else
9925         # FIXME: insert proper C++ library support
9926         ld_shlibs_CXX=no
9927       fi
9928       ;;
9929     esac
9930     ;;
9931   hpux10*|hpux11*)
9932     if test $with_gnu_ld = no; then
9933       case "$host_cpu" in
9934       hppa*64*)
9935         hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
9936         hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
9937         hardcode_libdir_separator_CXX=:
9938         ;;
9939       ia64*)
9940         hardcode_libdir_flag_spec_CXX='-L$libdir'
9941         ;;
9942       *)
9943         hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
9944         hardcode_libdir_separator_CXX=:
9945         export_dynamic_flag_spec_CXX='${wl}-E'
9946         ;;
9947       esac
9948     fi
9949     case "$host_cpu" in
9950     hppa*64*)
9951       hardcode_direct_CXX=no
9952       hardcode_shlibpath_var_CXX=no
9953       ;;
9954     ia64*)
9955       hardcode_direct_CXX=no
9956       hardcode_shlibpath_var_CXX=no
9957       hardcode_minus_L_CXX=yes # Not in the search PATH,
9958                                               # but as the default
9959                                               # location of the library.
9960       ;;
9961     *)
9962       hardcode_direct_CXX=yes
9963       hardcode_minus_L_CXX=yes # Not in the search PATH,
9964                                               # but as the default
9965                                               # location of the library.
9966       ;;
9967     esac
9968
9969     case $cc_basename in
9970       CC)
9971         # FIXME: insert proper C++ library support
9972         ld_shlibs_CXX=no
9973         ;;
9974       aCC)
9975         case "$host_cpu" in
9976         hppa*64*|ia64*)
9977           archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
9978           ;;
9979         *)
9980           archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
9981           ;;
9982         esac
9983         # Commands to make compiler produce verbose output that lists
9984         # what "hidden" libraries, object files and flags are used when
9985         # linking a shared library.
9986         #
9987         # There doesn't appear to be a way to prevent this compiler from
9988         # explicitly linking system object files so we need to strip them
9989         # from the output so that they don't get included in the library
9990         # dependencies.
9991         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'
9992         ;;
9993       *)
9994         if test "$GXX" = yes; then
9995           if test $with_gnu_ld = no; then
9996             case "$host_cpu" in
9997             ia64*|hppa*64*)
9998               archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
9999               ;;
10000             *)
10001               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'
10002               ;;
10003             esac
10004           fi
10005         else
10006           # FIXME: insert proper C++ library support
10007           ld_shlibs_CXX=no
10008         fi
10009         ;;
10010     esac
10011     ;;
10012   irix5* | irix6*)
10013     case $cc_basename in
10014       CC)
10015         # SGI C++
10016         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'
10017
10018         # Archives containing C++ object files must be created using
10019         # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
10020         # necessary to make sure instantiated templates are included
10021         # in the archive.
10022         old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
10023         ;;
10024       *)
10025         if test "$GXX" = yes; then
10026           if test "$with_gnu_ld" = no; then
10027             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'
10028           else
10029             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'
10030           fi
10031         fi
10032         link_all_deplibs_CXX=yes
10033         ;;
10034     esac
10035     hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10036     hardcode_libdir_separator_CXX=:
10037     ;;
10038   linux*)
10039     case $cc_basename in
10040       KCC)
10041         # Kuck and Associates, Inc. (KAI) C++ Compiler
10042
10043         # KCC will only create a shared library if the output file
10044         # ends with ".so" (or ".sl" for HP-UX), so rename the library
10045         # to its proper name (with version) after linking.
10046         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'
10047         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'
10048         # Commands to make compiler produce verbose output that lists
10049         # what "hidden" libraries, object files and flags are used when
10050         # linking a shared library.
10051         #
10052         # There doesn't appear to be a way to prevent this compiler from
10053         # explicitly linking system object files so we need to strip them
10054         # from the output so that they don't get included in the library
10055         # dependencies.
10056         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'
10057
10058         hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
10059         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10060
10061         # Archives containing C++ object files must be created using
10062         # "CC -Bstatic", where "CC" is the KAI C++ compiler.
10063         old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
10064         ;;
10065       icpc)
10066         # Intel C++
10067         with_gnu_ld=yes
10068         archive_cmds_need_lc_CXX=no
10069         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10070         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'
10071         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10072         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10073         whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
10074         ;;
10075       cxx)
10076         # Compaq C++
10077         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10078         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'
10079
10080         runpath_var=LD_RUN_PATH
10081         hardcode_libdir_flag_spec_CXX='-rpath $libdir'
10082         hardcode_libdir_separator_CXX=:
10083
10084         # Commands to make compiler produce verbose output that lists
10085         # what "hidden" libraries, object files and flags are used when
10086         # linking a shared library.
10087         #
10088         # There doesn't appear to be a way to prevent this compiler from
10089         # explicitly linking system object files so we need to strip them
10090         # from the output so that they don't get included in the library
10091         # dependencies.
10092         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'
10093         ;;
10094     esac
10095     ;;
10096   lynxos*)
10097     # FIXME: insert proper C++ library support
10098     ld_shlibs_CXX=no
10099     ;;
10100   m88k*)
10101     # FIXME: insert proper C++ library support
10102     ld_shlibs_CXX=no
10103     ;;
10104   mvs*)
10105     case $cc_basename in
10106       cxx)
10107         # FIXME: insert proper C++ library support
10108         ld_shlibs_CXX=no
10109         ;;
10110       *)
10111         # FIXME: insert proper C++ library support
10112         ld_shlibs_CXX=no
10113         ;;
10114     esac
10115     ;;
10116   netbsd*)
10117     if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
10118       archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
10119       wlarc=
10120       hardcode_libdir_flag_spec_CXX='-R$libdir'
10121       hardcode_direct_CXX=yes
10122       hardcode_shlibpath_var_CXX=no
10123     fi
10124     # Workaround some broken pre-1.5 toolchains
10125     output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
10126     ;;
10127   osf3*)
10128     case $cc_basename in
10129       KCC)
10130         # Kuck and Associates, Inc. (KAI) C++ Compiler
10131
10132         # KCC will only create a shared library if the output file
10133         # ends with ".so" (or ".sl" for HP-UX), so rename the library
10134         # to its proper name (with version) after linking.
10135         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'
10136
10137         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10138         hardcode_libdir_separator_CXX=:
10139
10140         # Archives containing C++ object files must be created using
10141         # "CC -Bstatic", where "CC" is the KAI C++ compiler.
10142         old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
10143
10144         ;;
10145       RCC)
10146         # Rational C++ 2.4.1
10147         # FIXME: insert proper C++ library support
10148         ld_shlibs_CXX=no
10149         ;;
10150       cxx)
10151         allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10152         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'
10153
10154         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10155         hardcode_libdir_separator_CXX=:
10156
10157         # Commands to make compiler produce verbose output that lists
10158         # what "hidden" libraries, object files and flags are used when
10159         # linking a shared library.
10160         #
10161         # There doesn't appear to be a way to prevent this compiler from
10162         # explicitly linking system object files so we need to strip them
10163         # from the output so that they don't get included in the library
10164         # dependencies.
10165         output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | 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'
10166         ;;
10167       *)
10168         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10169           allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10170           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'
10171
10172           hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10173           hardcode_libdir_separator_CXX=:
10174
10175           # Commands to make compiler produce verbose output that lists
10176           # what "hidden" libraries, object files and flags are used when
10177           # linking a shared library.
10178           output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10179
10180         else
10181           # FIXME: insert proper C++ library support
10182           ld_shlibs_CXX=no
10183         fi
10184         ;;
10185     esac
10186     ;;
10187   osf4* | osf5*)
10188     case $cc_basename in
10189       KCC)
10190         # Kuck and Associates, Inc. (KAI) C++ Compiler
10191
10192         # KCC will only create a shared library if the output file
10193         # ends with ".so" (or ".sl" for HP-UX), so rename the library
10194         # to its proper name (with version) after linking.
10195         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'
10196
10197         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10198         hardcode_libdir_separator_CXX=:
10199
10200         # Archives containing C++ object files must be created using
10201         # the KAI C++ compiler.
10202         old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
10203         ;;
10204       RCC)
10205         # Rational C++ 2.4.1
10206         # FIXME: insert proper C++ library support
10207         ld_shlibs_CXX=no
10208         ;;
10209       cxx)
10210         allow_undefined_flag_CXX=' -expect_unresolved \*'
10211         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'
10212         archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
10213           echo "-hidden">> $lib.exp~
10214           $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~
10215           $rm $lib.exp'
10216
10217         hardcode_libdir_flag_spec_CXX='-rpath $libdir'
10218         hardcode_libdir_separator_CXX=:
10219
10220         # Commands to make compiler produce verbose output that lists
10221         # what "hidden" libraries, object files and flags are used when
10222         # linking a shared library.
10223         #
10224         # There doesn't appear to be a way to prevent this compiler from
10225         # explicitly linking system object files so we need to strip them
10226         # from the output so that they don't get included in the library
10227         # dependencies.
10228         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'
10229         ;;
10230       *)
10231         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10232           allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10233          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'
10234
10235           hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10236           hardcode_libdir_separator_CXX=:
10237
10238           # Commands to make compiler produce verbose output that lists
10239           # what "hidden" libraries, object files and flags are used when
10240           # linking a shared library.
10241           output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10242
10243         else
10244           # FIXME: insert proper C++ library support
10245           ld_shlibs_CXX=no
10246         fi
10247         ;;
10248     esac
10249     ;;
10250   psos*)
10251     # FIXME: insert proper C++ library support
10252     ld_shlibs_CXX=no
10253     ;;
10254   sco*)
10255     archive_cmds_need_lc_CXX=no
10256     case $cc_basename in
10257       CC)
10258         # FIXME: insert proper C++ library support
10259         ld_shlibs_CXX=no
10260         ;;
10261       *)
10262         # FIXME: insert proper C++ library support
10263         ld_shlibs_CXX=no
10264         ;;
10265     esac
10266     ;;
10267   sunos4*)
10268     case $cc_basename in
10269       CC)
10270         # Sun C++ 4.x
10271         # FIXME: insert proper C++ library support
10272         ld_shlibs_CXX=no
10273         ;;
10274       lcc)
10275         # Lucid
10276         # FIXME: insert proper C++ library support
10277         ld_shlibs_CXX=no
10278         ;;
10279       *)
10280         # FIXME: insert proper C++ library support
10281         ld_shlibs_CXX=no
10282         ;;
10283     esac
10284     ;;
10285   solaris*)
10286     case $cc_basename in
10287       CC)
10288         # Sun C++ 4.2, 5.x and Centerline C++
10289         no_undefined_flag_CXX=' -zdefs'
10290         archive_cmds_CXX='$CC -G${allow_undefined_flag} -nolib -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10291         archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10292         $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'
10293
10294         hardcode_libdir_flag_spec_CXX='-R$libdir'
10295         hardcode_shlibpath_var_CXX=no
10296         case $host_os in
10297           solaris2.0-5 | solaris2.0-5.*) ;;
10298           *)
10299             # The C++ compiler is used as linker so we must use $wl
10300             # flag to pass the commands to the underlying system
10301             # linker.
10302             # Supported since Solaris 2.6 (maybe 2.5.1?)
10303             whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10304             ;;
10305         esac
10306         link_all_deplibs_CXX=yes
10307
10308         # Commands to make compiler produce verbose output that lists
10309         # what "hidden" libraries, object files and flags are used when
10310         # linking a shared library.
10311         #
10312         # There doesn't appear to be a way to prevent this compiler from
10313         # explicitly linking system object files so we need to strip them
10314         # from the output so that they don't get included in the library
10315         # dependencies.
10316         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'
10317
10318         # Archives containing C++ object files must be created using
10319         # "CC -xar", where "CC" is the Sun C++ compiler.  This is
10320         # necessary to make sure instantiated templates are included
10321         # in the archive.
10322         old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
10323         ;;
10324       gcx)
10325         # Green Hills C++ Compiler
10326         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10327
10328         # The C++ compiler must be used to create the archive.
10329         old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
10330         ;;
10331       *)
10332         # GNU C++ compiler with Solaris linker
10333         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10334           no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
10335           if $CC --version | grep -v '^2\.7' > /dev/null; then
10336             archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10337             archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10338                 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
10339
10340             # Commands to make compiler produce verbose output that lists
10341             # what "hidden" libraries, object files and flags are used when
10342             # linking a shared library.
10343             output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
10344           else
10345             # g++ 2.7 appears to require `-G' NOT `-shared' on this
10346             # platform.
10347             archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10348             archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10349                 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
10350
10351             # Commands to make compiler produce verbose output that lists
10352             # what "hidden" libraries, object files and flags are used when
10353             # linking a shared library.
10354             output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
10355           fi
10356
10357           hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
10358         fi
10359         ;;
10360     esac
10361     ;;
10362   sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
10363     archive_cmds_need_lc_CXX=no
10364     ;;
10365   tandem*)
10366     case $cc_basename in
10367       NCC)
10368         # NonStop-UX NCC 3.20
10369         # FIXME: insert proper C++ library support
10370         ld_shlibs_CXX=no
10371         ;;
10372       *)
10373         # FIXME: insert proper C++ library support
10374         ld_shlibs_CXX=no
10375         ;;
10376     esac
10377     ;;
10378   vxworks*)
10379     # FIXME: insert proper C++ library support
10380     ld_shlibs_CXX=no
10381     ;;
10382   *)
10383     # FIXME: insert proper C++ library support
10384     ld_shlibs_CXX=no
10385     ;;
10386 esac
10387 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
10388 echo "${ECHO_T}$ld_shlibs_CXX" >&6
10389 test "$ld_shlibs_CXX" = no && can_build_shared=no
10390
10391 GCC_CXX="$GXX"
10392 LD_CXX="$LD"
10393
10394 ## CAVEAT EMPTOR:
10395 ## There is no encapsulation within the following macros, do not change
10396 ## the running order or otherwise move them around unless you know exactly
10397 ## what you are doing...
10398
10399 cat > conftest.$ac_ext <<EOF
10400 class Foo
10401 {
10402 public:
10403   Foo (void) { a = 0; }
10404 private:
10405   int a;
10406 };
10407 EOF
10408
10409 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10410   (eval $ac_compile) 2>&5
10411   ac_status=$?
10412   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10413   (exit $ac_status); }; then
10414   # Parse the compiler output and extract the necessary
10415   # objects, libraries and library flags.
10416
10417   # Sentinel used to keep track of whether or not we are before
10418   # the conftest object file.
10419   pre_test_object_deps_done=no
10420
10421   # The `*' in the case matches for architectures that use `case' in
10422   # $output_verbose_cmd can trigger glob expansion during the loop
10423   # eval without this substitution.
10424   output_verbose_link_cmd="`$echo \"X$output_verbose_link_cmd\" | $Xsed -e \"$no_glob_subst\"`"
10425
10426   for p in `eval $output_verbose_link_cmd`; do
10427     case $p in
10428
10429     -L* | -R* | -l*)
10430        # Some compilers place space between "-{L,R}" and the path.
10431        # Remove the space.
10432        if test $p = "-L" \
10433           || test $p = "-R"; then
10434          prev=$p
10435          continue
10436        else
10437          prev=
10438        fi
10439
10440        if test "$pre_test_object_deps_done" = no; then
10441          case $p in
10442          -L* | -R*)
10443            # Internal compiler library paths should come after those
10444            # provided the user.  The postdeps already come after the
10445            # user supplied libs so there is no need to process them.
10446            if test -z "$compiler_lib_search_path_CXX"; then
10447              compiler_lib_search_path_CXX="${prev}${p}"
10448            else
10449              compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
10450            fi
10451            ;;
10452          # The "-l" case would never come before the object being
10453          # linked, so don't bother handling this case.
10454          esac
10455        else
10456          if test -z "$postdeps_CXX"; then
10457            postdeps_CXX="${prev}${p}"
10458          else
10459            postdeps_CXX="${postdeps_CXX} ${prev}${p}"
10460          fi
10461        fi
10462        ;;
10463
10464     *.$objext)
10465        # This assumes that the test object file only shows up
10466        # once in the compiler output.
10467        if test "$p" = "conftest.$objext"; then
10468          pre_test_object_deps_done=yes
10469          continue
10470        fi
10471
10472        if test "$pre_test_object_deps_done" = no; then
10473          if test -z "$predep_objects_CXX"; then
10474            predep_objects_CXX="$p"
10475          else
10476            predep_objects_CXX="$predep_objects_CXX $p"
10477          fi
10478        else
10479          if test -z "$postdep_objects_CXX"; then
10480            postdep_objects_CXX="$p"
10481          else
10482            postdep_objects_CXX="$postdep_objects_CXX $p"
10483          fi
10484        fi
10485        ;;
10486
10487     *) ;; # Ignore the rest.
10488
10489     esac
10490   done
10491
10492   # Clean up.
10493   rm -f a.out a.exe
10494 else
10495   echo "libtool.m4: error: problem compiling CXX test program"
10496 fi
10497
10498 $rm -f confest.$objext
10499
10500 case " $postdeps_CXX " in
10501 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
10502 esac
10503
10504 lt_prog_compiler_wl_CXX=
10505 lt_prog_compiler_pic_CXX=
10506 lt_prog_compiler_static_CXX=
10507
10508 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
10509 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
10510
10511   # C++ specific cases for pic, static, wl, etc.
10512   if test "$GXX" = yes; then
10513     lt_prog_compiler_wl_CXX='-Wl,'
10514     lt_prog_compiler_static_CXX='-static'
10515
10516     case $host_os in
10517     aix*)
10518       # All AIX code is PIC.
10519       if test "$host_cpu" = ia64; then
10520         # AIX 5 now supports IA64 processor
10521         lt_prog_compiler_static_CXX='-Bstatic'
10522       fi
10523       ;;
10524     amigaos*)
10525       # FIXME: we need at least 68020 code to build shared libraries, but
10526       # adding the `-m68020' flag to GCC prevents building anything better,
10527       # like `-m68040'.
10528       lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
10529       ;;
10530     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
10531       # PIC is the default for these OSes.
10532       ;;
10533     mingw* | os2* | pw32*)
10534       # This hack is so that the source file can tell whether it is being
10535       # built for inclusion in a dll (and should export symbols for example).
10536       lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
10537       ;;
10538     darwin* | rhapsody*)
10539       # PIC is the default on this platform
10540       # Common symbols not allowed in MH_DYLIB files
10541       lt_prog_compiler_pic_CXX='-fno-common'
10542       ;;
10543     *djgpp*)
10544       # DJGPP does not support shared libraries at all
10545       lt_prog_compiler_pic_CXX=
10546       ;;
10547     sysv4*MP*)
10548       if test -d /usr/nec; then
10549         lt_prog_compiler_pic_CXX=-Kconform_pic
10550       fi
10551       ;;
10552     hpux*)
10553       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
10554       # not for PA HP-UX.
10555       case "$host_cpu" in
10556       hppa*64*|ia64*)
10557         ;;
10558       *)
10559         lt_prog_compiler_pic_CXX='-fPIC'
10560         ;;
10561       esac
10562       ;;
10563     *)
10564       lt_prog_compiler_pic_CXX='-fPIC'
10565       ;;
10566     esac
10567   else
10568     case $host_os in
10569       aix4* | aix5*)
10570         # All AIX code is PIC.
10571         if test "$host_cpu" = ia64; then
10572           # AIX 5 now supports IA64 processor
10573           lt_prog_compiler_static_CXX='-Bstatic'
10574         else
10575           lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
10576         fi
10577         ;;
10578       chorus*)
10579         case $cc_basename in
10580         cxch68)
10581           # Green Hills C++ Compiler
10582           # _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"
10583           ;;
10584         esac
10585         ;;
10586       dgux*)
10587         case $cc_basename in
10588           ec++)
10589             lt_prog_compiler_pic_CXX='-KPIC'
10590             ;;
10591           ghcx)
10592             # Green Hills C++ Compiler
10593             lt_prog_compiler_pic_CXX='-pic'
10594             ;;
10595           *)
10596             ;;
10597         esac
10598         ;;
10599       freebsd*)
10600         # FreeBSD uses GNU C++
10601         ;;
10602       hpux9* | hpux10* | hpux11*)
10603         case $cc_basename in
10604           CC)
10605             lt_prog_compiler_wl_CXX='-Wl,'
10606             lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
10607             if test "$host_cpu" != ia64; then
10608               lt_prog_compiler_pic_CXX='+Z'
10609             fi
10610             ;;
10611           aCC)
10612             lt_prog_compiler_wl_CXX='-Wl,'
10613             lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
10614             case "$host_cpu" in
10615             hppa*64*|ia64*)
10616               # +Z the default
10617               ;;
10618             *)
10619               lt_prog_compiler_pic_CXX='+Z'
10620               ;;
10621             esac
10622             ;;
10623           *)
10624             ;;
10625         esac
10626         ;;
10627       irix5* | irix6* | nonstopux*)
10628         case $cc_basename in
10629           CC)
10630             lt_prog_compiler_wl_CXX='-Wl,'
10631             lt_prog_compiler_static_CXX='-non_shared'
10632             # CC pic flag -KPIC is the default.
10633             ;;
10634           *)
10635             ;;
10636         esac
10637         ;;
10638       linux*)
10639         case $cc_basename in
10640           KCC)
10641             # KAI C++ Compiler
10642             lt_prog_compiler_wl_CXX='--backend -Wl,'
10643             lt_prog_compiler_pic_CXX='-fPIC'
10644             ;;
10645           icpc)
10646             # Intel C++
10647             lt_prog_compiler_wl_CXX='-Wl,'
10648             lt_prog_compiler_pic_CXX='-KPIC'
10649             lt_prog_compiler_static_CXX='-static'
10650             ;;
10651           cxx)
10652             # Compaq C++
10653             # Make sure the PIC flag is empty.  It appears that all Alpha
10654             # Linux and Compaq Tru64 Unix objects are PIC.
10655             lt_prog_compiler_pic_CXX=
10656             lt_prog_compiler_static_CXX='-non_shared'
10657             ;;
10658           *)
10659             ;;
10660         esac
10661         ;;
10662       lynxos*)
10663         ;;
10664       m88k*)
10665         ;;
10666       mvs*)
10667         case $cc_basename in
10668           cxx)
10669             lt_prog_compiler_pic_CXX='-W c,exportall'
10670             ;;
10671           *)
10672             ;;
10673         esac
10674         ;;
10675       netbsd*)
10676         ;;
10677       osf3* | osf4* | osf5*)
10678         case $cc_basename in
10679           KCC)
10680             lt_prog_compiler_wl_CXX='--backend -Wl,'
10681             ;;
10682           RCC)
10683             # Rational C++ 2.4.1
10684             lt_prog_compiler_pic_CXX='-pic'
10685             ;;
10686           cxx)
10687             # Digital/Compaq C++
10688             lt_prog_compiler_wl_CXX='-Wl,'
10689             # Make sure the PIC flag is empty.  It appears that all Alpha
10690             # Linux and Compaq Tru64 Unix objects are PIC.
10691             lt_prog_compiler_pic_CXX=
10692             lt_prog_compiler_static_CXX='-non_shared'
10693             ;;
10694           *)
10695             ;;
10696         esac
10697         ;;
10698       psos*)
10699         ;;
10700       sco*)
10701         case $cc_basename in
10702           CC)
10703             lt_prog_compiler_pic_CXX='-fPIC'
10704             ;;
10705           *)
10706             ;;
10707         esac
10708         ;;
10709       solaris*)
10710         case $cc_basename in
10711           CC)
10712             # Sun C++ 4.2, 5.x and Centerline C++
10713             lt_prog_compiler_pic_CXX='-KPIC'
10714             lt_prog_compiler_static_CXX='-Bstatic'
10715             lt_prog_compiler_wl_CXX='-Qoption ld '
10716             ;;
10717           gcx)
10718             # Green Hills C++ Compiler
10719             lt_prog_compiler_pic_CXX='-PIC'
10720             ;;
10721           *)
10722             ;;
10723         esac
10724         ;;
10725       sunos4*)
10726         case $cc_basename in
10727           CC)
10728             # Sun C++ 4.x
10729             lt_prog_compiler_pic_CXX='-pic'
10730             lt_prog_compiler_static_CXX='-Bstatic'
10731             ;;
10732           lcc)
10733             # Lucid
10734             lt_prog_compiler_pic_CXX='-pic'
10735             ;;
10736           *)
10737             ;;
10738         esac
10739         ;;
10740       tandem*)
10741         case $cc_basename in
10742           NCC)
10743             # NonStop-UX NCC 3.20
10744             lt_prog_compiler_pic_CXX='-KPIC'
10745             ;;
10746           *)
10747             ;;
10748         esac
10749         ;;
10750       unixware*)
10751         ;;
10752       vxworks*)
10753         ;;
10754       *)
10755         lt_prog_compiler_can_build_shared_CXX=no
10756         ;;
10757     esac
10758   fi
10759
10760 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
10761 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6
10762
10763 #
10764 # Check to make sure the PIC flag actually works.
10765 #
10766 if test -n "$lt_prog_compiler_pic_CXX"; then
10767   echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
10768 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6
10769 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
10770   echo $ECHO_N "(cached) $ECHO_C" >&6
10771 else
10772   lt_prog_compiler_pic_works_CXX=no
10773   ac_outfile=conftest.$ac_objext
10774    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
10775    lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
10776    # Insert the option either (1) after the last *FLAGS variable, or
10777    # (2) before a word containing "conftest.", or (3) at the end.
10778    # Note that $ac_compile itself does not contain backslashes and begins
10779    # with a dollar sign (not a hyphen), so the echo should work correctly.
10780    # The option is referenced via a variable to avoid confusing sed.
10781    lt_compile=`echo "$ac_compile" | $SED \
10782    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
10783    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10784    -e 's:$: $lt_compiler_flag:'`
10785    (eval echo "\"\$as_me:10785: $lt_compile\"" >&5)
10786    (eval "$lt_compile" 2>conftest.err)
10787    ac_status=$?
10788    cat conftest.err >&5
10789    echo "$as_me:10789: \$? = $ac_status" >&5
10790    if (exit $ac_status) && test -s "$ac_outfile"; then
10791      # The compiler can only warn and ignore the option if not recognized
10792      # So say no if there are warnings
10793      if test ! -s conftest.err; then
10794        lt_prog_compiler_pic_works_CXX=yes
10795      fi
10796    fi
10797    $rm conftest*
10798
10799 fi
10800 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
10801 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6
10802
10803 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
10804     case $lt_prog_compiler_pic_CXX in
10805      "" | " "*) ;;
10806      *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
10807      esac
10808 else
10809     lt_prog_compiler_pic_CXX=
10810      lt_prog_compiler_can_build_shared_CXX=no
10811 fi
10812
10813 fi
10814 case "$host_os" in
10815   # For platforms which do not support PIC, -DPIC is meaningless:
10816   *djgpp*)
10817     lt_prog_compiler_pic_CXX=
10818     ;;
10819   *)
10820     lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
10821     ;;
10822 esac
10823
10824 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
10825 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
10826 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
10827   echo $ECHO_N "(cached) $ECHO_C" >&6
10828 else
10829   lt_cv_prog_compiler_c_o_CXX=no
10830    $rm -r conftest 2>/dev/null
10831    mkdir conftest
10832    cd conftest
10833    mkdir out
10834    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
10835
10836    # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
10837    # that will create temporary files in the current directory regardless of
10838    # the output directory.  Thus, making CWD read-only will cause this test
10839    # to fail, enabling locking or at least warning the user not to do parallel
10840    # builds.
10841    chmod -w .
10842
10843    lt_compiler_flag="-o out/conftest2.$ac_objext"
10844    # Insert the option either (1) after the last *FLAGS variable, or
10845    # (2) before a word containing "conftest.", or (3) at the end.
10846    # Note that $ac_compile itself does not contain backslashes and begins
10847    # with a dollar sign (not a hyphen), so the echo should work correctly.
10848    lt_compile=`echo "$ac_compile" | $SED \
10849    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
10850    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10851    -e 's:$: $lt_compiler_flag:'`
10852    (eval echo "\"\$as_me:10852: $lt_compile\"" >&5)
10853    (eval "$lt_compile" 2>out/conftest.err)
10854    ac_status=$?
10855    cat out/conftest.err >&5
10856    echo "$as_me:10856: \$? = $ac_status" >&5
10857    if (exit $ac_status) && test -s out/conftest2.$ac_objext
10858    then
10859      # The compiler can only warn and ignore the option if not recognized
10860      # So say no if there are warnings
10861      if test ! -s out/conftest.err; then
10862        lt_cv_prog_compiler_c_o_CXX=yes
10863      fi
10864    fi
10865    chmod u+w .
10866    $rm conftest* out/*
10867    rmdir out
10868    cd ..
10869    rmdir conftest
10870    $rm conftest*
10871
10872 fi
10873 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
10874 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
10875
10876
10877 hard_links="nottested"
10878 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
10879   # do not overwrite the value of need_locks provided by the user
10880   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
10881 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
10882   hard_links=yes
10883   $rm conftest*
10884   ln conftest.a conftest.b 2>/dev/null && hard_links=no
10885   touch conftest.a
10886   ln conftest.a conftest.b 2>&5 || hard_links=no
10887   ln conftest.a conftest.b 2>/dev/null && hard_links=no
10888   echo "$as_me:$LINENO: result: $hard_links" >&5
10889 echo "${ECHO_T}$hard_links" >&6
10890   if test "$hard_links" = no; then
10891     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
10892 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
10893     need_locks=warn
10894   fi
10895 else
10896   need_locks=no
10897 fi
10898
10899 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10900 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
10901
10902   export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
10903   case $host_os in
10904   aix4* | aix5*)
10905     # If we're using GNU nm, then we don't want the "-C" option.
10906     # -C means demangle to AIX nm, but means don't demangle with GNU nm
10907     if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
10908       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'
10909     else
10910       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'
10911     fi
10912     ;;
10913   pw32*)
10914     export_symbols_cmds_CXX="$ltdll_cmds"
10915   ;;
10916   cygwin* | mingw*)
10917     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
10918   ;;
10919   *)
10920     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
10921   ;;
10922   esac
10923
10924 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
10925 echo "${ECHO_T}$ld_shlibs_CXX" >&6
10926 test "$ld_shlibs_CXX" = no && can_build_shared=no
10927
10928 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10929 if test "$GCC" = yes; then
10930   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10931 fi
10932
10933 #
10934 # Do we need to explicitly link libc?
10935 #
10936 case "x$archive_cmds_need_lc_CXX" in
10937 x|xyes)
10938   # Assume -lc should be added
10939   archive_cmds_need_lc_CXX=yes
10940
10941   if test "$enable_shared" = yes && test "$GCC" = yes; then
10942     case $archive_cmds_CXX in
10943     *'~'*)
10944       # FIXME: we may have to deal with multi-command sequences.
10945       ;;
10946     '$CC '*)
10947       # Test whether the compiler implicitly links with -lc since on some
10948       # systems, -lgcc has to come before -lc. If gcc already passes -lc
10949       # to ld, don't add -lc before -lgcc.
10950       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
10951 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
10952       $rm conftest*
10953       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
10954
10955       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10956   (eval $ac_compile) 2>&5
10957   ac_status=$?
10958   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10959   (exit $ac_status); } 2>conftest.err; then
10960         soname=conftest
10961         lib=conftest
10962         libobjs=conftest.$ac_objext
10963         deplibs=
10964         wl=$lt_prog_compiler_wl_CXX
10965         compiler_flags=-v
10966         linker_flags=-v
10967         verstring=
10968         output_objdir=.
10969         libname=conftest
10970         lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
10971         allow_undefined_flag_CXX=
10972         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
10973   (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
10974   ac_status=$?
10975   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10976   (exit $ac_status); }
10977         then
10978           archive_cmds_need_lc_CXX=no
10979         else
10980           archive_cmds_need_lc_CXX=yes
10981         fi
10982         allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
10983       else
10984         cat conftest.err 1>&5
10985       fi
10986       $rm conftest*
10987       echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
10988 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6
10989       ;;
10990     esac
10991   fi
10992   ;;
10993 esac
10994
10995 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
10996 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
10997 hardcode_action_CXX=
10998 if test -n "$hardcode_libdir_flag_spec_CXX" || \
10999    test -n "$runpath_var CXX" || \
11000    test "X$hardcode_automatic_CXX"="Xyes" ; then
11001
11002   # We can hardcode non-existant directories.
11003   if test "$hardcode_direct_CXX" != no &&
11004      # If the only mechanism to avoid hardcoding is shlibpath_var, we
11005      # have to relink, otherwise we might link with an installed library
11006      # when we should be linking with a yet-to-be-installed one
11007      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
11008      test "$hardcode_minus_L_CXX" != no; then
11009     # Linking always hardcodes the temporary library directory.
11010     hardcode_action_CXX=relink
11011   else
11012     # We can link without hardcoding, and we can hardcode nonexisting dirs.
11013     hardcode_action_CXX=immediate
11014   fi
11015 else
11016   # We cannot hardcode anything, or else we can only hardcode existing
11017   # directories.
11018   hardcode_action_CXX=unsupported
11019 fi
11020 echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
11021 echo "${ECHO_T}$hardcode_action_CXX" >&6
11022
11023 if test "$hardcode_action_CXX" = relink; then
11024   # Fast installation is not supported
11025   enable_fast_install=no
11026 elif test "$shlibpath_overrides_runpath" = yes ||
11027      test "$enable_shared" = no; then
11028   # Fast installation is not necessary
11029   enable_fast_install=needless
11030 fi
11031
11032 striplib=
11033 old_striplib=
11034 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
11035 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
11036 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
11037   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11038   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11039   echo "$as_me:$LINENO: result: yes" >&5
11040 echo "${ECHO_T}yes" >&6
11041 else
11042 # FIXME - insert some real tests, host_os isn't really good enough
11043   case $host_os in
11044    darwin*)
11045        if test -n "$STRIP" ; then
11046          striplib="$STRIP -x"
11047          echo "$as_me:$LINENO: result: yes" >&5
11048 echo "${ECHO_T}yes" >&6
11049        else
11050   echo "$as_me:$LINENO: result: no" >&5
11051 echo "${ECHO_T}no" >&6
11052 fi
11053        ;;
11054    *)
11055   echo "$as_me:$LINENO: result: no" >&5
11056 echo "${ECHO_T}no" >&6
11057     ;;
11058   esac
11059 fi
11060
11061 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
11062 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
11063 library_names_spec=
11064 libname_spec='lib$name'
11065 soname_spec=
11066 shrext=".so"
11067 postinstall_cmds=
11068 postuninstall_cmds=
11069 finish_cmds=
11070 finish_eval=
11071 shlibpath_var=
11072 shlibpath_overrides_runpath=unknown
11073 version_type=none
11074 dynamic_linker="$host_os ld.so"
11075 sys_lib_dlsearch_path_spec="/lib /usr/lib"
11076 if test "$GCC" = yes; then
11077   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11078   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
11079     # if the path contains ";" then we assume it to be the separator
11080     # otherwise default to the standard path separator (i.e. ":") - it is
11081     # assumed that no part of a normal pathname contains ";" but that should
11082     # okay in the real world where ";" in dirpaths is itself problematic.
11083     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11084   else
11085     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
11086   fi
11087 else
11088   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11089 fi
11090 need_lib_prefix=unknown
11091 hardcode_into_libs=no
11092
11093 # when you set need_version to no, make sure it does not cause -set_version
11094 # flags to be left without arguments
11095 need_version=unknown
11096
11097 case $host_os in
11098 aix3*)
11099   version_type=linux
11100   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
11101   shlibpath_var=LIBPATH
11102
11103   # AIX 3 has no versioning support, so we append a major version to the name.
11104   soname_spec='${libname}${release}${shared_ext}$major'
11105   ;;
11106
11107 aix4* | aix5*)
11108   version_type=linux
11109   need_lib_prefix=no
11110   need_version=no
11111   hardcode_into_libs=yes
11112   if test "$host_cpu" = ia64; then
11113     # AIX 5 supports IA64
11114     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
11115     shlibpath_var=LD_LIBRARY_PATH
11116   else
11117     # With GCC up to 2.95.x, collect2 would create an import file
11118     # for dependence libraries.  The import file would start with
11119     # the line `#! .'.  This would cause the generated library to
11120     # depend on `.', always an invalid library.  This was fixed in
11121     # development snapshots of GCC prior to 3.0.
11122     case $host_os in
11123       aix4 | aix4.[01] | aix4.[01].*)
11124       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11125            echo ' yes '
11126            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
11127         :
11128       else
11129         can_build_shared=no
11130       fi
11131       ;;
11132     esac
11133     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
11134     # soname into executable. Probably we can add versioning support to
11135     # collect2, so additional links can be useful in future.
11136     if test "$aix_use_runtimelinking" = yes; then
11137       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11138       # instead of lib<name>.a to let people know that these are not
11139       # typical AIX shared libraries.
11140       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11141     else
11142       # We preserve .a as extension for shared libraries through AIX4.2
11143       # and later when we are not doing run time linking.
11144       library_names_spec='${libname}${release}.a $libname.a'
11145       soname_spec='${libname}${release}${shared_ext}$major'
11146     fi
11147     shlibpath_var=LIBPATH
11148   fi
11149   ;;
11150
11151 amigaos*)
11152   library_names_spec='$libname.ixlibrary $libname.a'
11153   # Create ${libname}_ixlibrary.a entries in /sys/libs.
11154   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'
11155   ;;
11156
11157 beos*)
11158   library_names_spec='${libname}${shared_ext}'
11159   dynamic_linker="$host_os ld.so"
11160   shlibpath_var=LIBRARY_PATH
11161   ;;
11162
11163 bsdi4*)
11164   version_type=linux
11165   need_version=no
11166   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11167   soname_spec='${libname}${release}${shared_ext}$major'
11168   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11169   shlibpath_var=LD_LIBRARY_PATH
11170   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11171   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11172   # the default ld.so.conf also contains /usr/contrib/lib and
11173   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11174   # libtool to hard-code these into programs
11175   ;;
11176
11177 cygwin* | mingw* | pw32*)
11178   version_type=windows
11179   shrext=".dll"
11180   need_version=no
11181   need_lib_prefix=no
11182
11183   case $GCC,$host_os in
11184   yes,cygwin* | yes,mingw* | yes,pw32*)
11185     library_names_spec='$libname.dll.a'
11186     # DLL is installed to $(libdir)/../bin by postinstall_cmds
11187     postinstall_cmds='base_file=`basename \${file}`~
11188       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
11189       dldir=$destdir/`dirname \$dlpath`~
11190       test -d \$dldir || mkdir -p \$dldir~
11191       $install_prog $dir/$dlname \$dldir/$dlname'
11192     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11193       dlpath=$dir/\$dldll~
11194        $rm \$dlpath'
11195     shlibpath_overrides_runpath=yes
11196
11197     case $host_os in
11198     cygwin*)
11199       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11200       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11201       sys_lib_search_path_spec="/lib /lib/w32api /usr/lib /usr/local/lib"
11202       ;;
11203     mingw*)
11204       # MinGW DLLs use traditional 'lib' prefix
11205       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11206       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11207       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
11208         # It is most probably a Windows format PATH printed by
11209         # mingw gcc, but we are running on Cygwin. Gcc prints its search
11210         # path with ; separators, and with drive letters. We can handle the
11211         # drive letters (cygwin fileutils understands them), so leave them,
11212         # especially as we might pass files found there to a mingw objdump,
11213         # which wouldn't understand a cygwinified path. Ahh.
11214         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11215       else
11216         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
11217       fi
11218       ;;
11219     pw32*)
11220       # pw32 DLLs use 'pw' prefix rather than 'lib'
11221       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
11222       ;;
11223     esac
11224     ;;
11225
11226   *)
11227     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11228     ;;
11229   esac
11230   dynamic_linker='Win32 ld.exe'
11231   # FIXME: first we should search . and the directory the executable is in
11232   shlibpath_var=PATH
11233   ;;
11234
11235 darwin* | rhapsody*)
11236   dynamic_linker="$host_os dyld"
11237   version_type=darwin
11238   need_lib_prefix=no
11239   need_version=no
11240   # FIXME: Relying on posixy $() will cause problems for
11241   #        cross-compilation, but unfortunately the echo tests do not
11242   #        yet detect zsh echo's removal of \ escapes.
11243   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11244   soname_spec='${libname}${release}${major}$shared_ext'
11245   shlibpath_overrides_runpath=yes
11246   shlibpath_var=DYLD_LIBRARY_PATH
11247   shrext='$(test .$module = .yes && echo .so || echo .dylib)'
11248   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
11249   if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
11250   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"`
11251   fi
11252   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11253   ;;
11254
11255 dgux*)
11256   version_type=linux
11257   need_lib_prefix=no
11258   need_version=no
11259   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11260   soname_spec='${libname}${release}${shared_ext}$major'
11261   shlibpath_var=LD_LIBRARY_PATH
11262   ;;
11263
11264 freebsd1*)
11265   dynamic_linker=no
11266   ;;
11267
11268 freebsd*)
11269   objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
11270   version_type=freebsd-$objformat
11271   case $version_type in
11272     freebsd-elf*)
11273       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11274       need_version=no
11275       need_lib_prefix=no
11276       ;;
11277     freebsd-*)
11278       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11279       need_version=yes
11280       ;;
11281   esac
11282   shlibpath_var=LD_LIBRARY_PATH
11283   case $host_os in
11284   freebsd2*)
11285     shlibpath_overrides_runpath=yes
11286     ;;
11287   freebsd3.01* | freebsdelf3.01*)
11288     shlibpath_overrides_runpath=yes
11289     hardcode_into_libs=yes
11290     ;;
11291   *) # from 3.2 on
11292     shlibpath_overrides_runpath=no
11293     hardcode_into_libs=yes
11294     ;;
11295   esac
11296   ;;
11297
11298 gnu*)
11299   version_type=linux
11300   need_lib_prefix=no
11301   need_version=no
11302   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11303   soname_spec='${libname}${release}${shared_ext}$major'
11304   shlibpath_var=LD_LIBRARY_PATH
11305   hardcode_into_libs=yes
11306   ;;
11307
11308 hpux9* | hpux10* | hpux11*)
11309   # Give a soname corresponding to the major version so that dld.sl refuses to
11310   # link against other versions.
11311   version_type=sunos
11312   need_lib_prefix=no
11313   need_version=no
11314   case "$host_cpu" in
11315   ia64*)
11316     shrext='.so'
11317     hardcode_into_libs=yes
11318     dynamic_linker="$host_os dld.so"
11319     shlibpath_var=LD_LIBRARY_PATH
11320     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11321     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11322     soname_spec='${libname}${release}${shared_ext}$major'
11323     if test "X$HPUX_IA64_MODE" = X32; then
11324       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11325     else
11326       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11327     fi
11328     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11329     ;;
11330    hppa*64*)
11331      shrext='.sl'
11332      hardcode_into_libs=yes
11333      dynamic_linker="$host_os dld.sl"
11334      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11335      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11336      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11337      soname_spec='${libname}${release}${shared_ext}$major'
11338      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11339      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11340      ;;
11341    *)
11342     shrext='.sl'
11343     dynamic_linker="$host_os dld.sl"
11344     shlibpath_var=SHLIB_PATH
11345     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11346     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11347     soname_spec='${libname}${release}${shared_ext}$major'
11348     ;;
11349   esac
11350   # HP-UX runs *really* slowly unless shared libraries are mode 555.
11351   postinstall_cmds='chmod 555 $lib'
11352   ;;
11353
11354 irix5* | irix6* | nonstopux*)
11355   case $host_os in
11356     nonstopux*) version_type=nonstopux ;;
11357     *)
11358         if test "$lt_cv_prog_gnu_ld" = yes; then
11359                 version_type=linux
11360         else
11361                 version_type=irix
11362         fi ;;
11363   esac
11364   need_lib_prefix=no
11365   need_version=no
11366   soname_spec='${libname}${release}${shared_ext}$major'
11367   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11368   case $host_os in
11369   irix5* | nonstopux*)
11370     libsuff= shlibsuff=
11371     ;;
11372   *)
11373     case $LD in # libtool.m4 will add one of these switches to LD
11374     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11375       libsuff= shlibsuff= libmagic=32-bit;;
11376     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11377       libsuff=32 shlibsuff=N32 libmagic=N32;;
11378     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11379       libsuff=64 shlibsuff=64 libmagic=64-bit;;
11380     *) libsuff= shlibsuff= libmagic=never-match;;
11381     esac
11382     ;;
11383   esac
11384   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11385   shlibpath_overrides_runpath=no
11386   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11387   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11388   hardcode_into_libs=yes
11389   ;;
11390
11391 # No shared lib support for Linux oldld, aout, or coff.
11392 linux*oldld* | linux*aout* | linux*coff*)
11393   dynamic_linker=no
11394   ;;
11395
11396 # This must be Linux ELF.
11397 linux*)
11398   version_type=linux
11399   need_lib_prefix=no
11400   need_version=no
11401   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11402   soname_spec='${libname}${release}${shared_ext}$major'
11403   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11404   shlibpath_var=LD_LIBRARY_PATH
11405   shlibpath_overrides_runpath=no
11406   # This implies no fast_install, which is unacceptable.
11407   # Some rework will be needed to allow for fast_install
11408   # before this can be enabled.
11409   hardcode_into_libs=yes
11410
11411   # We used to test for /lib/ld.so.1 and disable shared libraries on
11412   # powerpc, because MkLinux only supported shared libraries with the
11413   # GNU dynamic linker.  Since this was broken with cross compilers,
11414   # most powerpc-linux boxes support dynamic linking these days and
11415   # people can always --disable-shared, the test was removed, and we
11416   # assume the GNU/Linux dynamic linker is in use.
11417   dynamic_linker='GNU/Linux ld.so'
11418   ;;
11419
11420 netbsd*)
11421   version_type=sunos
11422   need_lib_prefix=no
11423   need_version=no
11424   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
11425     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11426     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11427     dynamic_linker='NetBSD (a.out) ld.so'
11428   else
11429     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
11430     soname_spec='${libname}${release}${shared_ext}$major'
11431     dynamic_linker='NetBSD ld.elf_so'
11432   fi
11433   shlibpath_var=LD_LIBRARY_PATH
11434   shlibpath_overrides_runpath=yes
11435   hardcode_into_libs=yes
11436   ;;
11437
11438 newsos6)
11439   version_type=linux
11440   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11441   shlibpath_var=LD_LIBRARY_PATH
11442   shlibpath_overrides_runpath=yes
11443   ;;
11444
11445 nto-qnx)
11446   version_type=linux
11447   need_lib_prefix=no
11448   need_version=no
11449   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11450   soname_spec='${libname}${release}${shared_ext}$major'
11451   shlibpath_var=LD_LIBRARY_PATH
11452   shlibpath_overrides_runpath=yes
11453   ;;
11454
11455 openbsd*)
11456   version_type=sunos
11457   need_lib_prefix=no
11458   need_version=no
11459   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11460   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11461   shlibpath_var=LD_LIBRARY_PATH
11462   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11463     case $host_os in
11464       openbsd2.[89] | openbsd2.[89].*)
11465         shlibpath_overrides_runpath=no
11466         ;;
11467       *)
11468         shlibpath_overrides_runpath=yes
11469         ;;
11470       esac
11471   else
11472     shlibpath_overrides_runpath=yes
11473   fi
11474   ;;
11475
11476 os2*)
11477   libname_spec='$name'
11478   shrext=".dll"
11479   need_lib_prefix=no
11480   library_names_spec='$libname${shared_ext} $libname.a'
11481   dynamic_linker='OS/2 ld.exe'
11482   shlibpath_var=LIBPATH
11483   ;;
11484
11485 osf3* | osf4* | osf5*)
11486   version_type=osf
11487   need_lib_prefix=no
11488   need_version=no
11489   soname_spec='${libname}${release}${shared_ext}$major'
11490   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11491   shlibpath_var=LD_LIBRARY_PATH
11492   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11493   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11494   ;;
11495
11496 sco3.2v5*)
11497   version_type=osf
11498   soname_spec='${libname}${release}${shared_ext}$major'
11499   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11500   shlibpath_var=LD_LIBRARY_PATH
11501   ;;
11502
11503 solaris*)
11504   version_type=linux
11505   need_lib_prefix=no
11506   need_version=no
11507   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11508   soname_spec='${libname}${release}${shared_ext}$major'
11509   shlibpath_var=LD_LIBRARY_PATH
11510   shlibpath_overrides_runpath=yes
11511   hardcode_into_libs=yes
11512   # ldd complains unless libraries are executable
11513   postinstall_cmds='chmod +x $lib'
11514   ;;
11515
11516 sunos4*)
11517   version_type=sunos
11518   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11519   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11520   shlibpath_var=LD_LIBRARY_PATH
11521   shlibpath_overrides_runpath=yes
11522   if test "$with_gnu_ld" = yes; then
11523     need_lib_prefix=no
11524   fi
11525   need_version=yes
11526   ;;
11527
11528 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
11529   version_type=linux
11530   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11531   soname_spec='${libname}${release}${shared_ext}$major'
11532   shlibpath_var=LD_LIBRARY_PATH
11533   case $host_vendor in
11534     sni)
11535       shlibpath_overrides_runpath=no
11536       need_lib_prefix=no
11537       export_dynamic_flag_spec='${wl}-Blargedynsym'
11538       runpath_var=LD_RUN_PATH
11539       ;;
11540     siemens)
11541       need_lib_prefix=no
11542       ;;
11543     motorola)
11544       need_lib_prefix=no
11545       need_version=no
11546       shlibpath_overrides_runpath=no
11547       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11548       ;;
11549   esac
11550   ;;
11551
11552 sysv4*MP*)
11553   if test -d /usr/nec ;then
11554     version_type=linux
11555     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11556     soname_spec='$libname${shared_ext}.$major'
11557     shlibpath_var=LD_LIBRARY_PATH
11558   fi
11559   ;;
11560
11561 uts4*)
11562   version_type=linux
11563   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11564   soname_spec='${libname}${release}${shared_ext}$major'
11565   shlibpath_var=LD_LIBRARY_PATH
11566   ;;
11567
11568 *)
11569   dynamic_linker=no
11570   ;;
11571 esac
11572 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
11573 echo "${ECHO_T}$dynamic_linker" >&6
11574 test "$dynamic_linker" = no && can_build_shared=no
11575
11576 if test "x$enable_dlopen" != xyes; then
11577   enable_dlopen=unknown
11578   enable_dlopen_self=unknown
11579   enable_dlopen_self_static=unknown
11580 else
11581   lt_cv_dlopen=no
11582   lt_cv_dlopen_libs=
11583
11584   case $host_os in
11585   beos*)
11586     lt_cv_dlopen="load_add_on"
11587     lt_cv_dlopen_libs=
11588     lt_cv_dlopen_self=yes
11589     ;;
11590
11591   mingw* | pw32*)
11592     lt_cv_dlopen="LoadLibrary"
11593     lt_cv_dlopen_libs=
11594    ;;
11595
11596   cygwin*)
11597     lt_cv_dlopen="dlopen"
11598     lt_cv_dlopen_libs=
11599    ;;
11600
11601   darwin*)
11602   # if libdl is installed we need to link against it
11603     echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
11604 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
11605 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
11606   echo $ECHO_N "(cached) $ECHO_C" >&6
11607 else
11608   ac_check_lib_save_LIBS=$LIBS
11609 LIBS="-ldl  $LIBS"
11610 cat >conftest.$ac_ext <<_ACEOF
11611 #line $LINENO "configure"
11612 /* confdefs.h.  */
11613 _ACEOF
11614 cat confdefs.h >>conftest.$ac_ext
11615 cat >>conftest.$ac_ext <<_ACEOF
11616 /* end confdefs.h.  */
11617
11618 /* Override any gcc2 internal prototype to avoid an error.  */
11619 #ifdef __cplusplus
11620 extern "C"
11621 #endif
11622 /* We use char because int might match the return type of a gcc2
11623    builtin and then its argument prototype would still apply.  */
11624 char dlopen ();
11625 int
11626 main ()
11627 {
11628 dlopen ();
11629   ;
11630   return 0;
11631 }
11632 _ACEOF
11633 rm -f conftest.$ac_objext conftest$ac_exeext
11634 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11635   (eval $ac_link) 2>&5
11636   ac_status=$?
11637   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11638   (exit $ac_status); } &&
11639          { ac_try='test -s conftest$ac_exeext'
11640   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11641   (eval $ac_try) 2>&5
11642   ac_status=$?
11643   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11644   (exit $ac_status); }; }; then
11645   ac_cv_lib_dl_dlopen=yes
11646 else
11647   echo "$as_me: failed program was:" >&5
11648 sed 's/^/| /' conftest.$ac_ext >&5
11649
11650 ac_cv_lib_dl_dlopen=no
11651 fi
11652 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11653 LIBS=$ac_check_lib_save_LIBS
11654 fi
11655 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
11656 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
11657 if test $ac_cv_lib_dl_dlopen = yes; then
11658   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11659 else
11660
11661     lt_cv_dlopen="dyld"
11662     lt_cv_dlopen_libs=
11663     lt_cv_dlopen_self=yes
11664
11665 fi
11666
11667    ;;
11668
11669   *)
11670     echo "$as_me:$LINENO: checking for shl_load" >&5
11671 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
11672 if test "${ac_cv_func_shl_load+set}" = set; then
11673   echo $ECHO_N "(cached) $ECHO_C" >&6
11674 else
11675   cat >conftest.$ac_ext <<_ACEOF
11676 #line $LINENO "configure"
11677 /* confdefs.h.  */
11678 _ACEOF
11679 cat confdefs.h >>conftest.$ac_ext
11680 cat >>conftest.$ac_ext <<_ACEOF
11681 /* end confdefs.h.  */
11682 /* System header to define __stub macros and hopefully few prototypes,
11683     which can conflict with char shl_load (); below.
11684     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11685     <limits.h> exists even on freestanding compilers.  */
11686 #ifdef __STDC__
11687 # include <limits.h>
11688 #else
11689 # include <assert.h>
11690 #endif
11691 /* Override any gcc2 internal prototype to avoid an error.  */
11692 #ifdef __cplusplus
11693 extern "C"
11694 {
11695 #endif
11696 /* We use char because int might match the return type of a gcc2
11697    builtin and then its argument prototype would still apply.  */
11698 char shl_load ();
11699 /* The GNU C library defines this for functions which it implements
11700     to always fail with ENOSYS.  Some functions are actually named
11701     something starting with __ and the normal name is an alias.  */
11702 #if defined (__stub_shl_load) || defined (__stub___shl_load)
11703 choke me
11704 #else
11705 char (*f) () = shl_load;
11706 #endif
11707 #ifdef __cplusplus
11708 }
11709 #endif
11710
11711 int
11712 main ()
11713 {
11714 return f != shl_load;
11715   ;
11716   return 0;
11717 }
11718 _ACEOF
11719 rm -f conftest.$ac_objext conftest$ac_exeext
11720 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11721   (eval $ac_link) 2>&5
11722   ac_status=$?
11723   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11724   (exit $ac_status); } &&
11725          { ac_try='test -s conftest$ac_exeext'
11726   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11727   (eval $ac_try) 2>&5
11728   ac_status=$?
11729   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11730   (exit $ac_status); }; }; then
11731   ac_cv_func_shl_load=yes
11732 else
11733   echo "$as_me: failed program was:" >&5
11734 sed 's/^/| /' conftest.$ac_ext >&5
11735
11736 ac_cv_func_shl_load=no
11737 fi
11738 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11739 fi
11740 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
11741 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
11742 if test $ac_cv_func_shl_load = yes; then
11743   lt_cv_dlopen="shl_load"
11744 else
11745   echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
11746 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
11747 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
11748   echo $ECHO_N "(cached) $ECHO_C" >&6
11749 else
11750   ac_check_lib_save_LIBS=$LIBS
11751 LIBS="-ldld  $LIBS"
11752 cat >conftest.$ac_ext <<_ACEOF
11753 #line $LINENO "configure"
11754 /* confdefs.h.  */
11755 _ACEOF
11756 cat confdefs.h >>conftest.$ac_ext
11757 cat >>conftest.$ac_ext <<_ACEOF
11758 /* end confdefs.h.  */
11759
11760 /* Override any gcc2 internal prototype to avoid an error.  */
11761 #ifdef __cplusplus
11762 extern "C"
11763 #endif
11764 /* We use char because int might match the return type of a gcc2
11765    builtin and then its argument prototype would still apply.  */
11766 char shl_load ();
11767 int
11768 main ()
11769 {
11770 shl_load ();
11771   ;
11772   return 0;
11773 }
11774 _ACEOF
11775 rm -f conftest.$ac_objext conftest$ac_exeext
11776 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11777   (eval $ac_link) 2>&5
11778   ac_status=$?
11779   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11780   (exit $ac_status); } &&
11781          { ac_try='test -s conftest$ac_exeext'
11782   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11783   (eval $ac_try) 2>&5
11784   ac_status=$?
11785   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11786   (exit $ac_status); }; }; then
11787   ac_cv_lib_dld_shl_load=yes
11788 else
11789   echo "$as_me: failed program was:" >&5
11790 sed 's/^/| /' conftest.$ac_ext >&5
11791
11792 ac_cv_lib_dld_shl_load=no
11793 fi
11794 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11795 LIBS=$ac_check_lib_save_LIBS
11796 fi
11797 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
11798 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
11799 if test $ac_cv_lib_dld_shl_load = yes; then
11800   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
11801 else
11802   echo "$as_me:$LINENO: checking for dlopen" >&5
11803 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
11804 if test "${ac_cv_func_dlopen+set}" = set; then
11805   echo $ECHO_N "(cached) $ECHO_C" >&6
11806 else
11807   cat >conftest.$ac_ext <<_ACEOF
11808 #line $LINENO "configure"
11809 /* confdefs.h.  */
11810 _ACEOF
11811 cat confdefs.h >>conftest.$ac_ext
11812 cat >>conftest.$ac_ext <<_ACEOF
11813 /* end confdefs.h.  */
11814 /* System header to define __stub macros and hopefully few prototypes,
11815     which can conflict with char dlopen (); below.
11816     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11817     <limits.h> exists even on freestanding compilers.  */
11818 #ifdef __STDC__
11819 # include <limits.h>
11820 #else
11821 # include <assert.h>
11822 #endif
11823 /* Override any gcc2 internal prototype to avoid an error.  */
11824 #ifdef __cplusplus
11825 extern "C"
11826 {
11827 #endif
11828 /* We use char because int might match the return type of a gcc2
11829    builtin and then its argument prototype would still apply.  */
11830 char dlopen ();
11831 /* The GNU C library defines this for functions which it implements
11832     to always fail with ENOSYS.  Some functions are actually named
11833     something starting with __ and the normal name is an alias.  */
11834 #if defined (__stub_dlopen) || defined (__stub___dlopen)
11835 choke me
11836 #else
11837 char (*f) () = dlopen;
11838 #endif
11839 #ifdef __cplusplus
11840 }
11841 #endif
11842
11843 int
11844 main ()
11845 {
11846 return f != dlopen;
11847   ;
11848   return 0;
11849 }
11850 _ACEOF
11851 rm -f conftest.$ac_objext conftest$ac_exeext
11852 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11853   (eval $ac_link) 2>&5
11854   ac_status=$?
11855   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11856   (exit $ac_status); } &&
11857          { ac_try='test -s conftest$ac_exeext'
11858   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11859   (eval $ac_try) 2>&5
11860   ac_status=$?
11861   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11862   (exit $ac_status); }; }; then
11863   ac_cv_func_dlopen=yes
11864 else
11865   echo "$as_me: failed program was:" >&5
11866 sed 's/^/| /' conftest.$ac_ext >&5
11867
11868 ac_cv_func_dlopen=no
11869 fi
11870 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11871 fi
11872 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
11873 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
11874 if test $ac_cv_func_dlopen = yes; then
11875   lt_cv_dlopen="dlopen"
11876 else
11877   echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
11878 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
11879 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
11880   echo $ECHO_N "(cached) $ECHO_C" >&6
11881 else
11882   ac_check_lib_save_LIBS=$LIBS
11883 LIBS="-ldl  $LIBS"
11884 cat >conftest.$ac_ext <<_ACEOF
11885 #line $LINENO "configure"
11886 /* confdefs.h.  */
11887 _ACEOF
11888 cat confdefs.h >>conftest.$ac_ext
11889 cat >>conftest.$ac_ext <<_ACEOF
11890 /* end confdefs.h.  */
11891
11892 /* Override any gcc2 internal prototype to avoid an error.  */
11893 #ifdef __cplusplus
11894 extern "C"
11895 #endif
11896 /* We use char because int might match the return type of a gcc2
11897    builtin and then its argument prototype would still apply.  */
11898 char dlopen ();
11899 int
11900 main ()
11901 {
11902 dlopen ();
11903   ;
11904   return 0;
11905 }
11906 _ACEOF
11907 rm -f conftest.$ac_objext conftest$ac_exeext
11908 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11909   (eval $ac_link) 2>&5
11910   ac_status=$?
11911   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11912   (exit $ac_status); } &&
11913          { ac_try='test -s conftest$ac_exeext'
11914   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11915   (eval $ac_try) 2>&5
11916   ac_status=$?
11917   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11918   (exit $ac_status); }; }; then
11919   ac_cv_lib_dl_dlopen=yes
11920 else
11921   echo "$as_me: failed program was:" >&5
11922 sed 's/^/| /' conftest.$ac_ext >&5
11923
11924 ac_cv_lib_dl_dlopen=no
11925 fi
11926 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11927 LIBS=$ac_check_lib_save_LIBS
11928 fi
11929 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
11930 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
11931 if test $ac_cv_lib_dl_dlopen = yes; then
11932   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11933 else
11934   echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
11935 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
11936 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
11937   echo $ECHO_N "(cached) $ECHO_C" >&6
11938 else
11939   ac_check_lib_save_LIBS=$LIBS
11940 LIBS="-lsvld  $LIBS"
11941 cat >conftest.$ac_ext <<_ACEOF
11942 #line $LINENO "configure"
11943 /* confdefs.h.  */
11944 _ACEOF
11945 cat confdefs.h >>conftest.$ac_ext
11946 cat >>conftest.$ac_ext <<_ACEOF
11947 /* end confdefs.h.  */
11948
11949 /* Override any gcc2 internal prototype to avoid an error.  */
11950 #ifdef __cplusplus
11951 extern "C"
11952 #endif
11953 /* We use char because int might match the return type of a gcc2
11954    builtin and then its argument prototype would still apply.  */
11955 char dlopen ();
11956 int
11957 main ()
11958 {
11959 dlopen ();
11960   ;
11961   return 0;
11962 }
11963 _ACEOF
11964 rm -f conftest.$ac_objext conftest$ac_exeext
11965 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11966   (eval $ac_link) 2>&5
11967   ac_status=$?
11968   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11969   (exit $ac_status); } &&
11970          { ac_try='test -s conftest$ac_exeext'
11971   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11972   (eval $ac_try) 2>&5
11973   ac_status=$?
11974   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11975   (exit $ac_status); }; }; then
11976   ac_cv_lib_svld_dlopen=yes
11977 else
11978   echo "$as_me: failed program was:" >&5
11979 sed 's/^/| /' conftest.$ac_ext >&5
11980
11981 ac_cv_lib_svld_dlopen=no
11982 fi
11983 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11984 LIBS=$ac_check_lib_save_LIBS
11985 fi
11986 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
11987 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
11988 if test $ac_cv_lib_svld_dlopen = yes; then
11989   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11990 else
11991   echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
11992 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
11993 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
11994   echo $ECHO_N "(cached) $ECHO_C" >&6
11995 else
11996   ac_check_lib_save_LIBS=$LIBS
11997 LIBS="-ldld  $LIBS"
11998 cat >conftest.$ac_ext <<_ACEOF
11999 #line $LINENO "configure"
12000 /* confdefs.h.  */
12001 _ACEOF
12002 cat confdefs.h >>conftest.$ac_ext
12003 cat >>conftest.$ac_ext <<_ACEOF
12004 /* end confdefs.h.  */
12005
12006 /* Override any gcc2 internal prototype to avoid an error.  */
12007 #ifdef __cplusplus
12008 extern "C"
12009 #endif
12010 /* We use char because int might match the return type of a gcc2
12011    builtin and then its argument prototype would still apply.  */
12012 char dld_link ();
12013 int
12014 main ()
12015 {
12016 dld_link ();
12017   ;
12018   return 0;
12019 }
12020 _ACEOF
12021 rm -f conftest.$ac_objext conftest$ac_exeext
12022 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12023   (eval $ac_link) 2>&5
12024   ac_status=$?
12025   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12026   (exit $ac_status); } &&
12027          { ac_try='test -s conftest$ac_exeext'
12028   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12029   (eval $ac_try) 2>&5
12030   ac_status=$?
12031   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12032   (exit $ac_status); }; }; then
12033   ac_cv_lib_dld_dld_link=yes
12034 else
12035   echo "$as_me: failed program was:" >&5
12036 sed 's/^/| /' conftest.$ac_ext >&5
12037
12038 ac_cv_lib_dld_dld_link=no
12039 fi
12040 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12041 LIBS=$ac_check_lib_save_LIBS
12042 fi
12043 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
12044 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
12045 if test $ac_cv_lib_dld_dld_link = yes; then
12046   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
12047 fi
12048
12049
12050 fi
12051
12052
12053 fi
12054
12055
12056 fi
12057
12058
12059 fi
12060
12061
12062 fi
12063
12064     ;;
12065   esac
12066
12067   if test "x$lt_cv_dlopen" != xno; then
12068     enable_dlopen=yes
12069   else
12070     enable_dlopen=no
12071   fi
12072
12073   case $lt_cv_dlopen in
12074   dlopen)
12075     save_CPPFLAGS="$CPPFLAGS"
12076     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12077
12078     save_LDFLAGS="$LDFLAGS"
12079     eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12080
12081     save_LIBS="$LIBS"
12082     LIBS="$lt_cv_dlopen_libs $LIBS"
12083
12084     echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
12085 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
12086 if test "${lt_cv_dlopen_self+set}" = set; then
12087   echo $ECHO_N "(cached) $ECHO_C" >&6
12088 else
12089           if test "$cross_compiling" = yes; then :
12090   lt_cv_dlopen_self=cross
12091 else
12092   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12093   lt_status=$lt_dlunknown
12094   cat > conftest.$ac_ext <<EOF
12095 #line 12095 "configure"
12096 #include "confdefs.h"
12097
12098 #if HAVE_DLFCN_H
12099 #include <dlfcn.h>
12100 #endif
12101
12102 #include <stdio.h>
12103
12104 #ifdef RTLD_GLOBAL
12105 #  define LT_DLGLOBAL           RTLD_GLOBAL
12106 #else
12107 #  ifdef DL_GLOBAL
12108 #    define LT_DLGLOBAL         DL_GLOBAL
12109 #  else
12110 #    define LT_DLGLOBAL         0
12111 #  endif
12112 #endif
12113
12114 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12115    find out it does not work in some platform. */
12116 #ifndef LT_DLLAZY_OR_NOW
12117 #  ifdef RTLD_LAZY
12118 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
12119 #  else
12120 #    ifdef DL_LAZY
12121 #      define LT_DLLAZY_OR_NOW          DL_LAZY
12122 #    else
12123 #      ifdef RTLD_NOW
12124 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
12125 #      else
12126 #        ifdef DL_NOW
12127 #          define LT_DLLAZY_OR_NOW      DL_NOW
12128 #        else
12129 #          define LT_DLLAZY_OR_NOW      0
12130 #        endif
12131 #      endif
12132 #    endif
12133 #  endif
12134 #endif
12135
12136 #ifdef __cplusplus
12137 extern "C" void exit (int);
12138 #endif
12139
12140 void fnord() { int i=42;}
12141 int main ()
12142 {
12143   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12144   int status = $lt_dlunknown;
12145
12146   if (self)
12147     {
12148       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
12149       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12150       /* dlclose (self); */
12151     }
12152
12153     exit (status);
12154 }
12155 EOF
12156   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12157   (eval $ac_link) 2>&5
12158   ac_status=$?
12159   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12160   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
12161     (./conftest; exit; ) 2>/dev/null
12162     lt_status=$?
12163     case x$lt_status in
12164       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12165       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12166       x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
12167     esac
12168   else :
12169     # compilation failed
12170     lt_cv_dlopen_self=no
12171   fi
12172 fi
12173 rm -fr conftest*
12174
12175
12176 fi
12177 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
12178 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
12179
12180     if test "x$lt_cv_dlopen_self" = xyes; then
12181       LDFLAGS="$LDFLAGS $link_static_flag"
12182       echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
12183 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
12184 if test "${lt_cv_dlopen_self_static+set}" = set; then
12185   echo $ECHO_N "(cached) $ECHO_C" >&6
12186 else
12187           if test "$cross_compiling" = yes; then :
12188   lt_cv_dlopen_self_static=cross
12189 else
12190   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12191   lt_status=$lt_dlunknown
12192   cat > conftest.$ac_ext <<EOF
12193 #line 12193 "configure"
12194 #include "confdefs.h"
12195
12196 #if HAVE_DLFCN_H
12197 #include <dlfcn.h>
12198 #endif
12199
12200 #include <stdio.h>
12201
12202 #ifdef RTLD_GLOBAL
12203 #  define LT_DLGLOBAL           RTLD_GLOBAL
12204 #else
12205 #  ifdef DL_GLOBAL
12206 #    define LT_DLGLOBAL         DL_GLOBAL
12207 #  else
12208 #    define LT_DLGLOBAL         0
12209 #  endif
12210 #endif
12211
12212 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12213    find out it does not work in some platform. */
12214 #ifndef LT_DLLAZY_OR_NOW
12215 #  ifdef RTLD_LAZY
12216 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
12217 #  else
12218 #    ifdef DL_LAZY
12219 #      define LT_DLLAZY_OR_NOW          DL_LAZY
12220 #    else
12221 #      ifdef RTLD_NOW
12222 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
12223 #      else
12224 #        ifdef DL_NOW
12225 #          define LT_DLLAZY_OR_NOW      DL_NOW
12226 #        else
12227 #          define LT_DLLAZY_OR_NOW      0
12228 #        endif
12229 #      endif
12230 #    endif
12231 #  endif
12232 #endif
12233
12234 #ifdef __cplusplus
12235 extern "C" void exit (int);
12236 #endif
12237
12238 void fnord() { int i=42;}
12239 int main ()
12240 {
12241   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12242   int status = $lt_dlunknown;
12243
12244   if (self)
12245     {
12246       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
12247       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12248       /* dlclose (self); */
12249     }
12250
12251     exit (status);
12252 }
12253 EOF
12254   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12255   (eval $ac_link) 2>&5
12256   ac_status=$?
12257   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12258   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
12259     (./conftest; exit; ) 2>/dev/null
12260     lt_status=$?
12261     case x$lt_status in
12262       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12263       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12264       x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
12265     esac
12266   else :
12267     # compilation failed
12268     lt_cv_dlopen_self_static=no
12269   fi
12270 fi
12271 rm -fr conftest*
12272
12273
12274 fi
12275 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
12276 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
12277     fi
12278
12279     CPPFLAGS="$save_CPPFLAGS"
12280     LDFLAGS="$save_LDFLAGS"
12281     LIBS="$save_LIBS"
12282     ;;
12283   esac
12284
12285   case $lt_cv_dlopen_self in
12286   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12287   *) enable_dlopen_self=unknown ;;
12288   esac
12289
12290   case $lt_cv_dlopen_self_static in
12291   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12292   *) enable_dlopen_self_static=unknown ;;
12293   esac
12294 fi
12295
12296
12297 # The else clause should only fire when bootstrapping the
12298 # libtool distribution, otherwise you forgot to ship ltmain.sh
12299 # with your package, and you will get complaints that there are
12300 # no rules to generate ltmain.sh.
12301 if test -f "$ltmain"; then
12302   # See if we are running on zsh, and set the options which allow our commands through
12303   # without removal of \ escapes.
12304   if test -n "${ZSH_VERSION+set}" ; then
12305     setopt NO_GLOB_SUBST
12306   fi
12307   # Now quote all the things that may contain metacharacters while being
12308   # careful not to overquote the AC_SUBSTed values.  We take copies of the
12309   # variables and quote the copies for generation of the libtool script.
12310   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \
12311     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
12312     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
12313     deplibs_check_method reload_flag reload_cmds need_locks \
12314     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
12315     lt_cv_sys_global_symbol_to_c_name_address \
12316     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
12317     old_postinstall_cmds old_postuninstall_cmds \
12318     compiler_CXX \
12319     CC_CXX \
12320     LD_CXX \
12321     lt_prog_compiler_wl_CXX \
12322     lt_prog_compiler_pic_CXX \
12323     lt_prog_compiler_static_CXX \
12324     lt_prog_compiler_no_builtin_flag_CXX \
12325     export_dynamic_flag_spec_CXX \
12326     thread_safe_flag_spec_CXX \
12327     whole_archive_flag_spec_CXX \
12328     enable_shared_with_static_runtimes_CXX \
12329     old_archive_cmds_CXX \
12330     old_archive_from_new_cmds_CXX \
12331     predep_objects_CXX \
12332     postdep_objects_CXX \
12333     predeps_CXX \
12334     postdeps_CXX \
12335     compiler_lib_search_path_CXX \
12336     archive_cmds_CXX \
12337     archive_expsym_cmds_CXX \
12338     postinstall_cmds_CXX \
12339     postuninstall_cmds_CXX \
12340     old_archive_from_expsyms_cmds_CXX \
12341     allow_undefined_flag_CXX \
12342     no_undefined_flag_CXX \
12343     export_symbols_cmds_CXX \
12344     hardcode_libdir_flag_spec_CXX \
12345     hardcode_libdir_flag_spec_ld_CXX \
12346     hardcode_libdir_separator_CXX \
12347     hardcode_automatic_CXX \
12348     module_cmds_CXX \
12349     module_expsym_cmds_CXX \
12350     lt_cv_prog_compiler_c_o_CXX \
12351     exclude_expsyms_CXX \
12352     include_expsyms_CXX; do
12353
12354     case $var in
12355     old_archive_cmds_CXX | \
12356     old_archive_from_new_cmds_CXX | \
12357     archive_cmds_CXX | \
12358     archive_expsym_cmds_CXX | \
12359     module_cmds_CXX | \
12360     module_expsym_cmds_CXX | \
12361     old_archive_from_expsyms_cmds_CXX | \
12362     export_symbols_cmds_CXX | \
12363     extract_expsyms_cmds | reload_cmds | finish_cmds | \
12364     postinstall_cmds | postuninstall_cmds | \
12365     old_postinstall_cmds | old_postuninstall_cmds | \
12366     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
12367       # Double-quote double-evaled strings.
12368       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
12369       ;;
12370     *)
12371       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
12372       ;;
12373     esac
12374   done
12375
12376   case $lt_echo in
12377   *'\$0 --fallback-echo"')
12378     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
12379     ;;
12380   esac
12381
12382 cfgfile="$ofile"
12383
12384   cat <<__EOF__ >> "$cfgfile"
12385 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
12386
12387 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
12388
12389 # Shell to use when invoking shell scripts.
12390 SHELL=$lt_SHELL
12391
12392 # Whether or not to build shared libraries.
12393 build_libtool_libs=$enable_shared
12394
12395 # Whether or not to build static libraries.
12396 build_old_libs=$enable_static
12397
12398 # Whether or not to add -lc for building shared libraries.
12399 build_libtool_need_lc=$archive_cmds_need_lc_CXX
12400
12401 # Whether or not to disallow shared libs when runtime libs are static
12402 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
12403
12404 # Whether or not to optimize for fast installation.
12405 fast_install=$enable_fast_install
12406
12407 # The host system.
12408 host_alias=$host_alias
12409 host=$host
12410
12411 # An echo program that does not interpret backslashes.
12412 echo=$lt_echo
12413
12414 # The archiver.
12415 AR=$lt_AR
12416 AR_FLAGS=$lt_AR_FLAGS
12417
12418 # A C compiler.
12419 LTCC=$lt_LTCC
12420
12421 # A language-specific compiler.
12422 CC=$lt_compiler_CXX
12423
12424 # Is the compiler the GNU C compiler?
12425 with_gcc=$GCC_CXX
12426
12427 # An ERE matcher.
12428 EGREP=$lt_EGREP
12429
12430 # The linker used to build libraries.
12431 LD=$lt_LD_CXX
12432
12433 # Whether we need hard or soft links.
12434 LN_S=$lt_LN_S
12435
12436 # A BSD-compatible nm program.
12437 NM=$lt_NM
12438
12439 # A symbol stripping program
12440 STRIP=$STRIP
12441
12442 # Used to examine libraries when file_magic_cmd begins "file"
12443 MAGIC_CMD=$MAGIC_CMD
12444
12445 # Used on cygwin: DLL creation program.
12446 DLLTOOL="$DLLTOOL"
12447
12448 # Used on cygwin: object dumper.
12449 OBJDUMP="$OBJDUMP"
12450
12451 # Used on cygwin: assembler.
12452 AS="$AS"
12453
12454 # The name of the directory that contains temporary libtool files.
12455 objdir=$objdir
12456
12457 # How to create reloadable object files.
12458 reload_flag=$lt_reload_flag
12459 reload_cmds=$lt_reload_cmds
12460
12461 # How to pass a linker flag through the compiler.
12462 wl=$lt_lt_prog_compiler_wl_CXX
12463
12464 # Object file suffix (normally "o").
12465 objext="$ac_objext"
12466
12467 # Old archive suffix (normally "a").
12468 libext="$libext"
12469
12470 # Shared library suffix (normally ".so").
12471 shrext='$shrext'
12472
12473 # Executable file suffix (normally "").
12474 exeext="$exeext"
12475
12476 # Additional compiler flags for building library objects.
12477 pic_flag=$lt_lt_prog_compiler_pic_CXX
12478 pic_mode=$pic_mode
12479
12480 # What is the maximum length of a command?
12481 max_cmd_len=$lt_cv_sys_max_cmd_len
12482
12483 # Does compiler simultaneously support -c and -o options?
12484 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
12485
12486 # Must we lock files when doing compilation ?
12487 need_locks=$lt_need_locks
12488
12489 # Do we need the lib prefix for modules?
12490 need_lib_prefix=$need_lib_prefix
12491
12492 # Do we need a version for libraries?
12493 need_version=$need_version
12494
12495 # Whether dlopen is supported.
12496 dlopen_support=$enable_dlopen
12497
12498 # Whether dlopen of programs is supported.
12499 dlopen_self=$enable_dlopen_self
12500
12501 # Whether dlopen of statically linked programs is supported.
12502 dlopen_self_static=$enable_dlopen_self_static
12503
12504 # Compiler flag to prevent dynamic linking.
12505 link_static_flag=$lt_lt_prog_compiler_static_CXX
12506
12507 # Compiler flag to turn off builtin functions.
12508 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
12509
12510 # Compiler flag to allow reflexive dlopens.
12511 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
12512
12513 # Compiler flag to generate shared objects directly from archives.
12514 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
12515
12516 # Compiler flag to generate thread-safe objects.
12517 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
12518
12519 # Library versioning type.
12520 version_type=$version_type
12521
12522 # Format of library name prefix.
12523 libname_spec=$lt_libname_spec
12524
12525 # List of archive names.  First name is the real one, the rest are links.
12526 # The last name is the one that the linker finds with -lNAME.
12527 library_names_spec=$lt_library_names_spec
12528
12529 # The coded name of the library, if different from the real name.
12530 soname_spec=$lt_soname_spec
12531
12532 # Commands used to build and install an old-style archive.
12533 RANLIB=$lt_RANLIB
12534 old_archive_cmds=$lt_old_archive_cmds_CXX
12535 old_postinstall_cmds=$lt_old_postinstall_cmds
12536 old_postuninstall_cmds=$lt_old_postuninstall_cmds
12537
12538 # Create an old-style archive from a shared archive.
12539 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
12540
12541 # Create a temporary old-style archive to link instead of a shared archive.
12542 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
12543
12544 # Commands used to build and install a shared archive.
12545 archive_cmds=$lt_archive_cmds_CXX
12546 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
12547 postinstall_cmds=$lt_postinstall_cmds
12548 postuninstall_cmds=$lt_postuninstall_cmds
12549
12550 # Commands used to build a loadable module (assumed same as above if empty)
12551 module_cmds=$lt_module_cmds_CXX
12552 module_expsym_cmds=$lt_module_expsym_cmds_CXX
12553
12554 # Commands to strip libraries.
12555 old_striplib=$lt_old_striplib
12556 striplib=$lt_striplib
12557
12558 # Dependencies to place before the objects being linked to create a
12559 # shared library.
12560 predep_objects=$lt_predep_objects_CXX
12561
12562 # Dependencies to place after the objects being linked to create a
12563 # shared library.
12564 postdep_objects=$lt_postdep_objects_CXX
12565
12566 # Dependencies to place before the objects being linked to create a
12567 # shared library.
12568 predeps=$lt_predeps_CXX
12569
12570 # Dependencies to place after the objects being linked to create a
12571 # shared library.
12572 postdeps=$lt_postdeps_CXX
12573
12574 # The library search path used internally by the compiler when linking
12575 # a shared library.
12576 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
12577
12578 # Method to check whether dependent libraries are shared objects.
12579 deplibs_check_method=$lt_deplibs_check_method
12580
12581 # Command to use when deplibs_check_method == file_magic.
12582 file_magic_cmd=$lt_file_magic_cmd
12583
12584 # Flag that allows shared libraries with undefined symbols to be built.
12585 allow_undefined_flag=$lt_allow_undefined_flag_CXX
12586
12587 # Flag that forces no undefined symbols.
12588 no_undefined_flag=$lt_no_undefined_flag_CXX
12589
12590 # Commands used to finish a libtool library installation in a directory.
12591 finish_cmds=$lt_finish_cmds
12592
12593 # Same as above, but a single script fragment to be evaled but not shown.
12594 finish_eval=$lt_finish_eval
12595
12596 # Take the output of nm and produce a listing of raw symbols and C names.
12597 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
12598
12599 # Transform the output of nm in a proper C declaration
12600 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
12601
12602 # Transform the output of nm in a C name address pair
12603 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
12604
12605 # This is the shared library runtime path variable.
12606 runpath_var=$runpath_var
12607
12608 # This is the shared library path variable.
12609 shlibpath_var=$shlibpath_var
12610
12611 # Is shlibpath searched before the hard-coded library search path?
12612 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
12613
12614 # How to hardcode a shared library path into an executable.
12615 hardcode_action=$hardcode_action_CXX
12616
12617 # Whether we should hardcode library paths into libraries.
12618 hardcode_into_libs=$hardcode_into_libs
12619
12620 # Flag to hardcode \$libdir into a binary during linking.
12621 # This must work even if \$libdir does not exist.
12622 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
12623
12624 # If ld is used when linking, flag to hardcode \$libdir into
12625 # a binary during linking. This must work even if \$libdir does
12626 # not exist.
12627 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
12628
12629 # Whether we need a single -rpath flag with a separated argument.
12630 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
12631
12632 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
12633 # resulting binary.
12634 hardcode_direct=$hardcode_direct_CXX
12635
12636 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
12637 # resulting binary.
12638 hardcode_minus_L=$hardcode_minus_L_CXX
12639
12640 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
12641 # the resulting binary.
12642 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
12643
12644 # Set to yes if building a shared library automatically hardcodes DIR into the library
12645 # and all subsequent libraries and executables linked against it.
12646 hardcode_automatic=$hardcode_automatic_CXX
12647
12648 # Variables whose values should be saved in libtool wrapper scripts and
12649 # restored at relink time.
12650 variables_saved_for_relink="$variables_saved_for_relink"
12651
12652 # Whether libtool must link a program against all its dependency libraries.
12653 link_all_deplibs=$link_all_deplibs_CXX
12654
12655 # Compile-time system search path for libraries
12656 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
12657
12658 # Run-time system search path for libraries
12659 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
12660
12661 # Fix the shell variable \$srcfile for the compiler.
12662 fix_srcfile_path="$fix_srcfile_path_CXX"
12663
12664 # Set to yes if exported symbols are required.
12665 always_export_symbols=$always_export_symbols_CXX
12666
12667 # The commands to list exported symbols.
12668 export_symbols_cmds=$lt_export_symbols_cmds_CXX
12669
12670 # The commands to extract the exported symbol list from a shared archive.
12671 extract_expsyms_cmds=$lt_extract_expsyms_cmds
12672
12673 # Symbols that should not be listed in the preloaded symbols.
12674 exclude_expsyms=$lt_exclude_expsyms_CXX
12675
12676 # Symbols that must always be exported.
12677 include_expsyms=$lt_include_expsyms_CXX
12678
12679 # ### END LIBTOOL TAG CONFIG: $tagname
12680
12681 __EOF__
12682
12683
12684 else
12685   # If there is no Makefile yet, we rely on a make rule to execute
12686   # `config.status --recheck' to rerun these tests and create the
12687   # libtool script then.
12688   test -f Makefile && make "$ltmain"
12689 fi
12690
12691
12692 ac_ext=c
12693 ac_cpp='$CPP $CPPFLAGS'
12694 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12695 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12696 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12697
12698 CC=$lt_save_CC
12699 LDCXX=$LD
12700 LD=$lt_save_LD
12701 GCC=$lt_save_GCC
12702 with_gnu_ldcxx=$with_gnu_ld
12703 with_gnu_ld=$lt_save_with_gnu_ld
12704 lt_cv_path_LDCXX=$lt_cv_path_LD
12705 lt_cv_path_LD=$lt_save_path_LD
12706 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
12707 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
12708
12709         else
12710           tagname=""
12711         fi
12712         ;;
12713
12714       F77)
12715         if test -n "$F77" && test "X$F77" != "Xno"; then
12716
12717 ac_ext=f
12718 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
12719 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12720 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
12721
12722
12723 archive_cmds_need_lc_F77=no
12724 allow_undefined_flag_F77=
12725 always_export_symbols_F77=no
12726 archive_expsym_cmds_F77=
12727 export_dynamic_flag_spec_F77=
12728 hardcode_direct_F77=no
12729 hardcode_libdir_flag_spec_F77=
12730 hardcode_libdir_flag_spec_ld_F77=
12731 hardcode_libdir_separator_F77=
12732 hardcode_minus_L_F77=no
12733 hardcode_automatic_F77=no
12734 module_cmds_F77=
12735 module_expsym_cmds_F77=
12736 link_all_deplibs_F77=unknown
12737 old_archive_cmds_F77=$old_archive_cmds
12738 no_undefined_flag_F77=
12739 whole_archive_flag_spec_F77=
12740 enable_shared_with_static_runtimes_F77=no
12741
12742 # Source file extension for f77 test sources.
12743 ac_ext=f
12744
12745 # Object file extension for compiled f77 test sources.
12746 objext=o
12747 objext_F77=$objext
12748
12749 # Code to be used in simple compile tests
12750 lt_simple_compile_test_code="      subroutine t\n      return\n      end\n"
12751
12752 # Code to be used in simple link tests
12753 lt_simple_link_test_code="      program t\n      end\n"
12754
12755 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
12756
12757 # If no C compiler was specified, use CC.
12758 LTCC=${LTCC-"$CC"}
12759
12760 # Allow CC to be a program name with arguments.
12761 compiler=$CC
12762
12763
12764 # Allow CC to be a program name with arguments.
12765 lt_save_CC="$CC"
12766 CC=${F77-"f77"}
12767 compiler=$CC
12768 compiler_F77=$CC
12769 cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
12770
12771 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
12772 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
12773 echo "$as_me:$LINENO: result: $can_build_shared" >&5
12774 echo "${ECHO_T}$can_build_shared" >&6
12775
12776 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
12777 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
12778 test "$can_build_shared" = "no" && enable_shared=no
12779
12780 # On AIX, shared libraries and static libraries use the same namespace, and
12781 # are all built from PIC.
12782 case "$host_os" in
12783 aix3*)
12784   test "$enable_shared" = yes && enable_static=no
12785   if test -n "$RANLIB"; then
12786     archive_cmds="$archive_cmds~\$RANLIB \$lib"
12787     postinstall_cmds='$RANLIB $lib'
12788   fi
12789   ;;
12790 aix4*)
12791   test "$enable_shared" = yes && enable_static=no
12792   ;;
12793 esac
12794 echo "$as_me:$LINENO: result: $enable_shared" >&5
12795 echo "${ECHO_T}$enable_shared" >&6
12796
12797 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
12798 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
12799 # Make sure either enable_shared or enable_static is yes.
12800 test "$enable_shared" = yes || enable_static=yes
12801 echo "$as_me:$LINENO: result: $enable_static" >&5
12802 echo "${ECHO_T}$enable_static" >&6
12803
12804 test "$ld_shlibs_F77" = no && can_build_shared=no
12805
12806 GCC_F77="$G77"
12807 LD_F77="$LD"
12808
12809 lt_prog_compiler_wl_F77=
12810 lt_prog_compiler_pic_F77=
12811 lt_prog_compiler_static_F77=
12812
12813 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
12814 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
12815
12816   if test "$GCC" = yes; then
12817     lt_prog_compiler_wl_F77='-Wl,'
12818     lt_prog_compiler_static_F77='-static'
12819
12820     case $host_os in
12821       aix*)
12822       # All AIX code is PIC.
12823       if test "$host_cpu" = ia64; then
12824         # AIX 5 now supports IA64 processor
12825         lt_prog_compiler_static_F77='-Bstatic'
12826       fi
12827       ;;
12828
12829     amigaos*)
12830       # FIXME: we need at least 68020 code to build shared libraries, but
12831       # adding the `-m68020' flag to GCC prevents building anything better,
12832       # like `-m68040'.
12833       lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
12834       ;;
12835
12836     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12837       # PIC is the default for these OSes.
12838       ;;
12839
12840     mingw* | pw32* | os2*)
12841       # This hack is so that the source file can tell whether it is being
12842       # built for inclusion in a dll (and should export symbols for example).
12843       lt_prog_compiler_pic_F77='-DDLL_EXPORT'
12844       ;;
12845
12846     darwin* | rhapsody*)
12847       # PIC is the default on this platform
12848       # Common symbols not allowed in MH_DYLIB files
12849       lt_prog_compiler_pic_F77='-fno-common'
12850       ;;
12851
12852     msdosdjgpp*)
12853       # Just because we use GCC doesn't mean we suddenly get shared libraries
12854       # on systems that don't support them.
12855       lt_prog_compiler_can_build_shared_F77=no
12856       enable_shared=no
12857       ;;
12858
12859     sysv4*MP*)
12860       if test -d /usr/nec; then
12861         lt_prog_compiler_pic_F77=-Kconform_pic
12862       fi
12863       ;;
12864
12865     hpux*)
12866       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12867       # not for PA HP-UX.
12868       case "$host_cpu" in
12869       hppa*64*|ia64*)
12870         # +Z the default
12871         ;;
12872       *)
12873         lt_prog_compiler_pic_F77='-fPIC'
12874         ;;
12875       esac
12876       ;;
12877
12878     *)
12879       lt_prog_compiler_pic_F77='-fPIC'
12880       ;;
12881     esac
12882   else
12883     # PORTME Check for flag to pass linker flags through the system compiler.
12884     case $host_os in
12885     aix*)
12886       lt_prog_compiler_wl_F77='-Wl,'
12887       if test "$host_cpu" = ia64; then
12888         # AIX 5 now supports IA64 processor
12889         lt_prog_compiler_static_F77='-Bstatic'
12890       else
12891         lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
12892       fi
12893       ;;
12894
12895     mingw* | pw32* | os2*)
12896       # This hack is so that the source file can tell whether it is being
12897       # built for inclusion in a dll (and should export symbols for example).
12898       lt_prog_compiler_pic_F77='-DDLL_EXPORT'
12899       ;;
12900
12901     hpux9* | hpux10* | hpux11*)
12902       lt_prog_compiler_wl_F77='-Wl,'
12903       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12904       # not for PA HP-UX.
12905       case "$host_cpu" in
12906       hppa*64*|ia64*)
12907         # +Z the default
12908         ;;
12909       *)
12910         lt_prog_compiler_pic_F77='+Z'
12911         ;;
12912       esac
12913       # Is there a better lt_prog_compiler_static that works with the bundled CC?
12914       lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
12915       ;;
12916
12917     irix5* | irix6* | nonstopux*)
12918       lt_prog_compiler_wl_F77='-Wl,'
12919       # PIC (with -KPIC) is the default.
12920       lt_prog_compiler_static_F77='-non_shared'
12921       ;;
12922
12923     newsos6)
12924       lt_prog_compiler_pic_F77='-KPIC'
12925       lt_prog_compiler_static_F77='-Bstatic'
12926       ;;
12927
12928     linux*)
12929       case $CC in
12930       icc|ecc)
12931         lt_prog_compiler_wl_F77='-Wl,'
12932         lt_prog_compiler_pic_F77='-KPIC'
12933         lt_prog_compiler_static_F77='-static'
12934         ;;
12935       ccc)
12936         lt_prog_compiler_wl_F77='-Wl,'
12937         # All Alpha code is PIC.
12938         lt_prog_compiler_static_F77='-non_shared'
12939         ;;
12940       esac
12941       ;;
12942
12943     osf3* | osf4* | osf5*)
12944       lt_prog_compiler_wl_F77='-Wl,'
12945       # All OSF/1 code is PIC.
12946       lt_prog_compiler_static_F77='-non_shared'
12947       ;;
12948
12949     sco3.2v5*)
12950       lt_prog_compiler_pic_F77='-Kpic'
12951       lt_prog_compiler_static_F77='-dn'
12952       ;;
12953
12954     solaris*)
12955       lt_prog_compiler_wl_F77='-Wl,'
12956       lt_prog_compiler_pic_F77='-KPIC'
12957       lt_prog_compiler_static_F77='-Bstatic'
12958       ;;
12959
12960     sunos4*)
12961       lt_prog_compiler_wl_F77='-Qoption ld '
12962       lt_prog_compiler_pic_F77='-PIC'
12963       lt_prog_compiler_static_F77='-Bstatic'
12964       ;;
12965
12966     sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
12967       lt_prog_compiler_wl_F77='-Wl,'
12968       lt_prog_compiler_pic_F77='-KPIC'
12969       lt_prog_compiler_static_F77='-Bstatic'
12970       ;;
12971
12972     sysv4*MP*)
12973       if test -d /usr/nec ;then
12974         lt_prog_compiler_pic_F77='-Kconform_pic'
12975         lt_prog_compiler_static_F77='-Bstatic'
12976       fi
12977       ;;
12978
12979     uts4*)
12980       lt_prog_compiler_pic_F77='-pic'
12981       lt_prog_compiler_static_F77='-Bstatic'
12982       ;;
12983
12984     *)
12985       lt_prog_compiler_can_build_shared_F77=no
12986       ;;
12987     esac
12988   fi
12989
12990 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
12991 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6
12992
12993 #
12994 # Check to make sure the PIC flag actually works.
12995 #
12996 if test -n "$lt_prog_compiler_pic_F77"; then
12997   echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
12998 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6
12999 if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
13000   echo $ECHO_N "(cached) $ECHO_C" >&6
13001 else
13002   lt_prog_compiler_pic_works_F77=no
13003   ac_outfile=conftest.$ac_objext
13004    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13005    lt_compiler_flag="$lt_prog_compiler_pic_F77"
13006    # Insert the option either (1) after the last *FLAGS variable, or
13007    # (2) before a word containing "conftest.", or (3) at the end.
13008    # Note that $ac_compile itself does not contain backslashes and begins
13009    # with a dollar sign (not a hyphen), so the echo should work correctly.
13010    # The option is referenced via a variable to avoid confusing sed.
13011    lt_compile=`echo "$ac_compile" | $SED \
13012    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
13013    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13014    -e 's:$: $lt_compiler_flag:'`
13015    (eval echo "\"\$as_me:13015: $lt_compile\"" >&5)
13016    (eval "$lt_compile" 2>conftest.err)
13017    ac_status=$?
13018    cat conftest.err >&5
13019    echo "$as_me:13019: \$? = $ac_status" >&5
13020    if (exit $ac_status) && test -s "$ac_outfile"; then
13021      # The compiler can only warn and ignore the option if not recognized
13022      # So say no if there are warnings
13023      if test ! -s conftest.err; then
13024        lt_prog_compiler_pic_works_F77=yes
13025      fi
13026    fi
13027    $rm conftest*
13028
13029 fi
13030 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
13031 echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6
13032
13033 if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
13034     case $lt_prog_compiler_pic_F77 in
13035      "" | " "*) ;;
13036      *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
13037      esac
13038 else
13039     lt_prog_compiler_pic_F77=
13040      lt_prog_compiler_can_build_shared_F77=no
13041 fi
13042
13043 fi
13044 case "$host_os" in
13045   # For platforms which do not support PIC, -DPIC is meaningless:
13046   *djgpp*)
13047     lt_prog_compiler_pic_F77=
13048     ;;
13049   *)
13050     lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
13051     ;;
13052 esac
13053
13054 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
13055 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
13056 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
13057   echo $ECHO_N "(cached) $ECHO_C" >&6
13058 else
13059   lt_cv_prog_compiler_c_o_F77=no
13060    $rm -r conftest 2>/dev/null
13061    mkdir conftest
13062    cd conftest
13063    mkdir out
13064    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13065
13066    # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
13067    # that will create temporary files in the current directory regardless of
13068    # the output directory.  Thus, making CWD read-only will cause this test
13069    # to fail, enabling locking or at least warning the user not to do parallel
13070    # builds.
13071    chmod -w .
13072
13073    lt_compiler_flag="-o out/conftest2.$ac_objext"
13074    # Insert the option either (1) after the last *FLAGS variable, or
13075    # (2) before a word containing "conftest.", or (3) at the end.
13076    # Note that $ac_compile itself does not contain backslashes and begins
13077    # with a dollar sign (not a hyphen), so the echo should work correctly.
13078    lt_compile=`echo "$ac_compile" | $SED \
13079    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
13080    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13081    -e 's:$: $lt_compiler_flag:'`
13082    (eval echo "\"\$as_me:13082: $lt_compile\"" >&5)
13083    (eval "$lt_compile" 2>out/conftest.err)
13084    ac_status=$?
13085    cat out/conftest.err >&5
13086    echo "$as_me:13086: \$? = $ac_status" >&5
13087    if (exit $ac_status) && test -s out/conftest2.$ac_objext
13088    then
13089      # The compiler can only warn and ignore the option if not recognized
13090      # So say no if there are warnings
13091      if test ! -s out/conftest.err; then
13092        lt_cv_prog_compiler_c_o_F77=yes
13093      fi
13094    fi
13095    chmod u+w .
13096    $rm conftest* out/*
13097    rmdir out
13098    cd ..
13099    rmdir conftest
13100    $rm conftest*
13101
13102 fi
13103 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
13104 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6
13105
13106
13107 hard_links="nottested"
13108 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
13109   # do not overwrite the value of need_locks provided by the user
13110   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
13111 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
13112   hard_links=yes
13113   $rm conftest*
13114   ln conftest.a conftest.b 2>/dev/null && hard_links=no
13115   touch conftest.a
13116   ln conftest.a conftest.b 2>&5 || hard_links=no
13117   ln conftest.a conftest.b 2>/dev/null && hard_links=no
13118   echo "$as_me:$LINENO: result: $hard_links" >&5
13119 echo "${ECHO_T}$hard_links" >&6
13120   if test "$hard_links" = no; then
13121     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13122 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13123     need_locks=warn
13124   fi
13125 else
13126   need_locks=no
13127 fi
13128
13129 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13130 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
13131
13132   runpath_var=
13133   allow_undefined_flag_F77=
13134   enable_shared_with_static_runtimes_F77=no
13135   archive_cmds_F77=
13136   archive_expsym_cmds_F77=
13137   old_archive_From_new_cmds_F77=
13138   old_archive_from_expsyms_cmds_F77=
13139   export_dynamic_flag_spec_F77=
13140   whole_archive_flag_spec_F77=
13141   thread_safe_flag_spec_F77=
13142   hardcode_libdir_flag_spec_F77=
13143   hardcode_libdir_flag_spec_ld_F77=
13144   hardcode_libdir_separator_F77=
13145   hardcode_direct_F77=no
13146   hardcode_minus_L_F77=no
13147   hardcode_shlibpath_var_F77=unsupported
13148   link_all_deplibs_F77=unknown
13149   hardcode_automatic_F77=no
13150   module_cmds_F77=
13151   module_expsym_cmds_F77=
13152   always_export_symbols_F77=no
13153   export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13154   # include_expsyms should be a list of space-separated symbols to be *always*
13155   # included in the symbol list
13156   include_expsyms_F77=
13157   # exclude_expsyms can be an extended regexp of symbols to exclude
13158   # it will be wrapped by ` (' and `)$', so one must not match beginning or
13159   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
13160   # as well as any symbol that contains `d'.
13161   exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
13162   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
13163   # platforms (ab)use it in PIC code, but their linkers get confused if
13164   # the symbol is explicitly referenced.  Since portable code cannot
13165   # rely on this symbol name, it's probably fine to never include it in
13166   # preloaded symbol tables.
13167   extract_expsyms_cmds=
13168
13169   case $host_os in
13170   cygwin* | mingw* | pw32*)
13171     # FIXME: the MSVC++ port hasn't been tested in a loooong time
13172     # When not using gcc, we currently assume that we are using
13173     # Microsoft Visual C++.
13174     if test "$GCC" != yes; then
13175       with_gnu_ld=no
13176     fi
13177     ;;
13178   openbsd*)
13179     with_gnu_ld=no
13180     ;;
13181   esac
13182
13183   ld_shlibs_F77=yes
13184   if test "$with_gnu_ld" = yes; then
13185     # If archive_cmds runs LD, not CC, wlarc should be empty
13186     wlarc='${wl}'
13187
13188     # See if GNU ld supports shared libraries.
13189     case $host_os in
13190     aix3* | aix4* | aix5*)
13191       # On AIX/PPC, the GNU linker is very broken
13192       if test "$host_cpu" != ia64; then
13193         ld_shlibs_F77=no
13194         cat <<EOF 1>&2
13195
13196 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
13197 *** to be unable to reliably create shared libraries on AIX.
13198 *** Therefore, libtool is disabling shared libraries support.  If you
13199 *** really care for shared libraries, you may want to modify your PATH
13200 *** so that a non-GNU linker is found, and then restart.
13201
13202 EOF
13203       fi
13204       ;;
13205
13206     amigaos*)
13207       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)'
13208       hardcode_libdir_flag_spec_F77='-L$libdir'
13209       hardcode_minus_L_F77=yes
13210
13211       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
13212       # that the semantics of dynamic libraries on AmigaOS, at least up
13213       # to version 4, is to share data among multiple programs linked
13214       # with the same dynamic library.  Since this doesn't match the
13215       # behavior of shared libraries on other platforms, we can't use
13216       # them.
13217       ld_shlibs_F77=no
13218       ;;
13219
13220     beos*)
13221       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13222         allow_undefined_flag_F77=unsupported
13223         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13224         # support --undefined.  This deserves some investigation.  FIXME
13225         archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13226       else
13227         ld_shlibs_F77=no
13228       fi
13229       ;;
13230
13231     cygwin* | mingw* | pw32*)
13232       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
13233       # as there is no search path for DLLs.
13234       hardcode_libdir_flag_spec_F77='-L$libdir'
13235       allow_undefined_flag_F77=unsupported
13236       always_export_symbols_F77=no
13237       enable_shared_with_static_runtimes_F77=yes
13238       export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
13239
13240       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
13241         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
13242         # If the export-symbols file already is a .def file (1st line
13243         # is EXPORTS), use it as is; otherwise, prepend...
13244         archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13245           cp $export_symbols $output_objdir/$soname.def;
13246         else
13247           echo EXPORTS > $output_objdir/$soname.def;
13248           cat $export_symbols >> $output_objdir/$soname.def;
13249         fi~
13250         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
13251       else
13252         ld_shlibs=no
13253       fi
13254       ;;
13255
13256     netbsd*)
13257       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13258         archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
13259         wlarc=
13260       else
13261         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13262         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13263       fi
13264       ;;
13265
13266     solaris* | sysv5*)
13267       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
13268         ld_shlibs_F77=no
13269         cat <<EOF 1>&2
13270
13271 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
13272 *** create shared libraries on Solaris systems.  Therefore, libtool
13273 *** is disabling shared libraries support.  We urge you to upgrade GNU
13274 *** binutils to release 2.9.1 or newer.  Another option is to modify
13275 *** your PATH or compiler configuration so that the native linker is
13276 *** used, and then restart.
13277
13278 EOF
13279       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13280         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13281         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13282       else
13283         ld_shlibs_F77=no
13284       fi
13285       ;;
13286
13287     sunos4*)
13288       archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13289       wlarc=
13290       hardcode_direct_F77=yes
13291       hardcode_shlibpath_var_F77=no
13292       ;;
13293
13294     *)
13295       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13296         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13297         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13298       else
13299         ld_shlibs_F77=no
13300       fi
13301       ;;
13302     esac
13303
13304     if test "$ld_shlibs_F77" = yes; then
13305       runpath_var=LD_RUN_PATH
13306       hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
13307       export_dynamic_flag_spec_F77='${wl}--export-dynamic'
13308       # ancient GNU ld didn't support --whole-archive et. al.
13309       if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
13310         whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13311       else
13312         whole_archive_flag_spec_F77=
13313       fi
13314     fi
13315   else
13316     # PORTME fill in a description of your system's linker (not GNU ld)
13317     case $host_os in
13318     aix3*)
13319       allow_undefined_flag_F77=unsupported
13320       always_export_symbols_F77=yes
13321       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'
13322       # Note: this linker hardcodes the directories in LIBPATH if there
13323       # are no directories specified by -L.
13324       hardcode_minus_L_F77=yes
13325       if test "$GCC" = yes && test -z "$link_static_flag"; then
13326         # Neither direct hardcoding nor static linking is supported with a
13327         # broken collect2.
13328         hardcode_direct_F77=unsupported
13329       fi
13330       ;;
13331
13332     aix4* | aix5*)
13333       if test "$host_cpu" = ia64; then
13334         # On IA64, the linker does run time linking by default, so we don't
13335         # have to do anything special.
13336         aix_use_runtimelinking=no
13337         exp_sym_flag='-Bexport'
13338         no_entry_flag=""
13339       else
13340         # If we're using GNU nm, then we don't want the "-C" option.
13341         # -C means demangle to AIX nm, but means don't demangle with GNU nm
13342         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
13343           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'
13344         else
13345           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'
13346         fi
13347         aix_use_runtimelinking=no
13348
13349         # Test if we are trying to use run time linking or normal
13350         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
13351         # need to do runtime linking.
13352         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
13353           for ld_flag in $LDFLAGS; do
13354           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
13355             aix_use_runtimelinking=yes
13356             break
13357           fi
13358           done
13359         esac
13360
13361         exp_sym_flag='-bexport'
13362         no_entry_flag='-bnoentry'
13363       fi
13364
13365       # When large executables or shared objects are built, AIX ld can
13366       # have problems creating the table of contents.  If linking a library
13367       # or program results in "error TOC overflow" add -mminimal-toc to
13368       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
13369       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13370
13371       archive_cmds_F77=''
13372       hardcode_direct_F77=yes
13373       hardcode_libdir_separator_F77=':'
13374       link_all_deplibs_F77=yes
13375
13376       if test "$GCC" = yes; then
13377         case $host_os in aix4.012|aix4.012.*)
13378         # We only want to do this on AIX 4.2 and lower, the check
13379         # below for broken collect2 doesn't work under 4.3+
13380           collect2name=`${CC} -print-prog-name=collect2`
13381           if test -f "$collect2name" && \
13382            strings "$collect2name" | grep resolve_lib_name >/dev/null
13383           then
13384           # We have reworked collect2
13385           hardcode_direct_F77=yes
13386           else
13387           # We have old collect2
13388           hardcode_direct_F77=unsupported
13389           # It fails to find uninstalled libraries when the uninstalled
13390           # path is not listed in the libpath.  Setting hardcode_minus_L
13391           # to unsupported forces relinking
13392           hardcode_minus_L_F77=yes
13393           hardcode_libdir_flag_spec_F77='-L$libdir'
13394           hardcode_libdir_separator_F77=
13395           fi
13396         esac
13397         shared_flag='-shared'
13398       else
13399         # not using gcc
13400         if test "$host_cpu" = ia64; then
13401         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13402         # chokes on -Wl,-G. The following line is correct:
13403           shared_flag='-G'
13404         else
13405         if test "$aix_use_runtimelinking" = yes; then
13406             shared_flag='${wl}-G'
13407           else
13408             shared_flag='${wl}-bM:SRE'
13409         fi
13410         fi
13411       fi
13412
13413       # It seems that -bexpall does not export symbols beginning with
13414       # underscore (_), so it is better to generate a list of symbols to export.
13415       always_export_symbols_F77=yes
13416       if test "$aix_use_runtimelinking" = yes; then
13417         # Warning - without using the other runtime loading flags (-brtl),
13418         # -berok will link without error, but may produce a broken library.
13419         allow_undefined_flag_F77='-berok'
13420        # Determine the default libpath from the value encoded in an empty executable.
13421        cat >conftest.$ac_ext <<_ACEOF
13422       program main
13423
13424       end
13425 _ACEOF
13426 rm -f conftest.$ac_objext conftest$ac_exeext
13427 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13428   (eval $ac_link) 2>&5
13429   ac_status=$?
13430   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13431   (exit $ac_status); } &&
13432          { ac_try='test -s conftest$ac_exeext'
13433   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13434   (eval $ac_try) 2>&5
13435   ac_status=$?
13436   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13437   (exit $ac_status); }; }; then
13438
13439 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
13440 }'`
13441 # Check for a 64-bit object if we didn't find anything.
13442 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; }
13443 }'`; fi
13444 else
13445   echo "$as_me: failed program was:" >&5
13446 sed 's/^/| /' conftest.$ac_ext >&5
13447
13448 fi
13449 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13450 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13451
13452        hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
13453         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"
13454        else
13455         if test "$host_cpu" = ia64; then
13456           hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
13457           allow_undefined_flag_F77="-z nodefs"
13458           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"
13459         else
13460          # Determine the default libpath from the value encoded in an empty executable.
13461          cat >conftest.$ac_ext <<_ACEOF
13462       program main
13463
13464       end
13465 _ACEOF
13466 rm -f conftest.$ac_objext conftest$ac_exeext
13467 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13468   (eval $ac_link) 2>&5
13469   ac_status=$?
13470   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13471   (exit $ac_status); } &&
13472          { ac_try='test -s conftest$ac_exeext'
13473   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13474   (eval $ac_try) 2>&5
13475   ac_status=$?
13476   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13477   (exit $ac_status); }; }; then
13478
13479 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
13480 }'`
13481 # Check for a 64-bit object if we didn't find anything.
13482 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; }
13483 }'`; fi
13484 else
13485   echo "$as_me: failed program was:" >&5
13486 sed 's/^/| /' conftest.$ac_ext >&5
13487
13488 fi
13489 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13490 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13491
13492          hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
13493           # Warning - without using the other run time loading flags,
13494           # -berok will link without error, but may produce a broken library.
13495           no_undefined_flag_F77=' ${wl}-bernotok'
13496           allow_undefined_flag_F77=' ${wl}-berok'
13497           # -bexpall does not export symbols beginning with underscore (_)
13498           always_export_symbols_F77=yes
13499           # Exported symbols can be pulled into shared objects from archives
13500           whole_archive_flag_spec_F77=' '
13501           archive_cmds_need_lc_F77=yes
13502           # This is similar to how AIX traditionally builds it's shared libraries.
13503           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'
13504         fi
13505       fi
13506       ;;
13507
13508     amigaos*)
13509       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)'
13510       hardcode_libdir_flag_spec_F77='-L$libdir'
13511       hardcode_minus_L_F77=yes
13512       # see comment about different semantics on the GNU ld section
13513       ld_shlibs_F77=no
13514       ;;
13515
13516     bsdi4*)
13517       export_dynamic_flag_spec_F77=-rdynamic
13518       ;;
13519
13520     cygwin* | mingw* | pw32*)
13521       # When not using gcc, we currently assume that we are using
13522       # Microsoft Visual C++.
13523       # hardcode_libdir_flag_spec is actually meaningless, as there is
13524       # no search path for DLLs.
13525       hardcode_libdir_flag_spec_F77=' '
13526       allow_undefined_flag_F77=unsupported
13527       # Tell ltmain to make .lib files, not .a files.
13528       libext=lib
13529       # Tell ltmain to make .dll files, not .so files.
13530       shrext=".dll"
13531       # FIXME: Setting linknames here is a bad hack.
13532       archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
13533       # The linker will automatically build a .lib file if we build a DLL.
13534       old_archive_From_new_cmds_F77='true'
13535       # FIXME: Should let the user specify the lib program.
13536       old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
13537       fix_srcfile_path='`cygpath -w "$srcfile"`'
13538       enable_shared_with_static_runtimes_F77=yes
13539       ;;
13540
13541     darwin* | rhapsody*)
13542     if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
13543       archive_cmds_need_lc_F77=no
13544       case "$host_os" in
13545       rhapsody* | darwin1.[012])
13546         allow_undefined_flag_F77='-undefined suppress'
13547         ;;
13548       *) # Darwin 1.3 on
13549         test -z ${LD_TWOLEVEL_NAMESPACE} && allow_undefined_flag_F77='-flat_namespace -undefined suppress'
13550         ;;
13551       esac
13552       # FIXME: Relying on posixy $() will cause problems for
13553       #        cross-compilation, but unfortunately the echo tests do not
13554       #        yet detect zsh echo's removal of \ escapes.  Also zsh mangles
13555       #        `"' quotes if we put them in here... so don't!
13556         lt_int_apple_cc_single_mod=no
13557         output_verbose_link_cmd='echo'
13558         if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
13559           lt_int_apple_cc_single_mod=yes
13560         fi
13561         if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
13562           archive_cmds_F77='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
13563         else
13564         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'
13565       fi
13566       module_cmds_F77='$CC -bundle ${wl}-bind_at_load $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags'
13567       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
13568         if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
13569           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}'
13570         else
13571           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}'
13572         fi
13573           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}'
13574       hardcode_direct_F77=no
13575       hardcode_automatic_F77=yes
13576       hardcode_shlibpath_var_F77=unsupported
13577       whole_archive_flag_spec_F77='-all_load $convenience'
13578       link_all_deplibs_F77=yes
13579     fi
13580       ;;
13581
13582     dgux*)
13583       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13584       hardcode_libdir_flag_spec_F77='-L$libdir'
13585       hardcode_shlibpath_var_F77=no
13586       ;;
13587
13588     freebsd1*)
13589       ld_shlibs_F77=no
13590       ;;
13591
13592     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
13593     # support.  Future versions do this automatically, but an explicit c++rt0.o
13594     # does not break anything, and helps significantly (at the cost of a little
13595     # extra space).
13596     freebsd2.2*)
13597       archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
13598       hardcode_libdir_flag_spec_F77='-R$libdir'
13599       hardcode_direct_F77=yes
13600       hardcode_shlibpath_var_F77=no
13601       ;;
13602
13603     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
13604     freebsd2*)
13605       archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13606       hardcode_direct_F77=yes
13607       hardcode_minus_L_F77=yes
13608       hardcode_shlibpath_var_F77=no
13609       ;;
13610
13611     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
13612     freebsd*)
13613       archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
13614       hardcode_libdir_flag_spec_F77='-R$libdir'
13615       hardcode_direct_F77=yes
13616       hardcode_shlibpath_var_F77=no
13617       ;;
13618
13619     hpux9*)
13620       if test "$GCC" = yes; then
13621         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'
13622       else
13623         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'
13624       fi
13625       hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
13626       hardcode_libdir_separator_F77=:
13627       hardcode_direct_F77=yes
13628
13629       # hardcode_minus_L: Not really in the search PATH,
13630       # but as the default location of the library.
13631       hardcode_minus_L_F77=yes
13632       export_dynamic_flag_spec_F77='${wl}-E'
13633       ;;
13634
13635     hpux10* | hpux11*)
13636       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
13637         case "$host_cpu" in
13638         hppa*64*|ia64*)
13639           archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13640           ;;
13641         *)
13642           archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13643           ;;
13644         esac
13645       else
13646         case "$host_cpu" in
13647         hppa*64*|ia64*)
13648           archive_cmds_F77='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
13649           ;;
13650         *)
13651           archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
13652           ;;
13653         esac
13654       fi
13655       if test "$with_gnu_ld" = no; then
13656         case "$host_cpu" in
13657         hppa*64*)
13658           hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
13659           hardcode_libdir_flag_spec_ld_F77='+b $libdir'
13660           hardcode_libdir_separator_F77=:
13661           hardcode_direct_F77=no
13662           hardcode_shlibpath_var_F77=no
13663           ;;
13664         ia64*)
13665           hardcode_libdir_flag_spec_F77='-L$libdir'
13666           hardcode_direct_F77=no
13667           hardcode_shlibpath_var_F77=no
13668
13669           # hardcode_minus_L: Not really in the search PATH,
13670           # but as the default location of the library.
13671           hardcode_minus_L_F77=yes
13672           ;;
13673         *)
13674           hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
13675           hardcode_libdir_separator_F77=:
13676           hardcode_direct_F77=yes
13677           export_dynamic_flag_spec_F77='${wl}-E'
13678
13679           # hardcode_minus_L: Not really in the search PATH,
13680           # but as the default location of the library.
13681           hardcode_minus_L_F77=yes
13682           ;;
13683         esac
13684       fi
13685       ;;
13686
13687     irix5* | irix6* | nonstopux*)
13688       if test "$GCC" = yes; then
13689         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'
13690       else
13691         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'
13692         hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
13693       fi
13694       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
13695       hardcode_libdir_separator_F77=:
13696       link_all_deplibs_F77=yes
13697       ;;
13698
13699     netbsd*)
13700       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13701         archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
13702       else
13703         archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
13704       fi
13705       hardcode_libdir_flag_spec_F77='-R$libdir'
13706       hardcode_direct_F77=yes
13707       hardcode_shlibpath_var_F77=no
13708       ;;
13709
13710     newsos6)
13711       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13712       hardcode_direct_F77=yes
13713       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
13714       hardcode_libdir_separator_F77=:
13715       hardcode_shlibpath_var_F77=no
13716       ;;
13717
13718     openbsd*)
13719       hardcode_direct_F77=yes
13720       hardcode_shlibpath_var_F77=no
13721       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13722         archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13723         hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
13724         export_dynamic_flag_spec_F77='${wl}-E'
13725       else
13726        case $host_os in
13727          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
13728            archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13729            hardcode_libdir_flag_spec_F77='-R$libdir'
13730            ;;
13731          *)
13732            archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13733            hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
13734            ;;
13735        esac
13736       fi
13737       ;;
13738
13739     os2*)
13740       hardcode_libdir_flag_spec_F77='-L$libdir'
13741       hardcode_minus_L_F77=yes
13742       allow_undefined_flag_F77=unsupported
13743       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'
13744       old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
13745       ;;
13746
13747     osf3*)
13748       if test "$GCC" = yes; then
13749         allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
13750         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'
13751       else
13752         allow_undefined_flag_F77=' -expect_unresolved \*'
13753         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'
13754       fi
13755       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
13756       hardcode_libdir_separator_F77=:
13757       ;;
13758
13759     osf4* | osf5*)      # as osf3* with the addition of -msym flag
13760       if test "$GCC" = yes; then
13761         allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
13762         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'
13763         hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
13764       else
13765         allow_undefined_flag_F77=' -expect_unresolved \*'
13766         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'
13767         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~
13768         $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'
13769
13770         # Both c and cxx compiler support -rpath directly
13771         hardcode_libdir_flag_spec_F77='-rpath $libdir'
13772       fi
13773       hardcode_libdir_separator_F77=:
13774       ;;
13775
13776     sco3.2v5*)
13777       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13778       hardcode_shlibpath_var_F77=no
13779       export_dynamic_flag_spec_F77='${wl}-Bexport'
13780       runpath_var=LD_RUN_PATH
13781       hardcode_runpath_var=yes
13782       ;;
13783
13784     solaris*)
13785       no_undefined_flag_F77=' -z text'
13786       if test "$GCC" = yes; then
13787         archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13788         archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13789           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
13790       else
13791         archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
13792         archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13793         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
13794       fi
13795       hardcode_libdir_flag_spec_F77='-R$libdir'
13796       hardcode_shlibpath_var_F77=no
13797       case $host_os in
13798       solaris2.[0-5] | solaris2.[0-5].*) ;;
13799       *) # Supported since Solaris 2.6 (maybe 2.5.1?)
13800         whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
13801       esac
13802       link_all_deplibs_F77=yes
13803       ;;
13804
13805     sunos4*)
13806       if test "x$host_vendor" = xsequent; then
13807         # Use $CC to link under sequent, because it throws in some extra .o
13808         # files that make .init and .fini sections work.
13809         archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
13810       else
13811         archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
13812       fi
13813       hardcode_libdir_flag_spec_F77='-L$libdir'
13814       hardcode_direct_F77=yes
13815       hardcode_minus_L_F77=yes
13816       hardcode_shlibpath_var_F77=no
13817       ;;
13818
13819     sysv4)
13820       case $host_vendor in
13821         sni)
13822           archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13823           hardcode_direct_F77=yes # is this really true???
13824         ;;
13825         siemens)
13826           ## LD is ld it makes a PLAMLIB
13827           ## CC just makes a GrossModule.
13828           archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
13829           reload_cmds_F77='$CC -r -o $output$reload_objs'
13830           hardcode_direct_F77=no
13831         ;;
13832         motorola)
13833           archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13834           hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
13835         ;;
13836       esac
13837       runpath_var='LD_RUN_PATH'
13838       hardcode_shlibpath_var_F77=no
13839       ;;
13840
13841     sysv4.3*)
13842       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13843       hardcode_shlibpath_var_F77=no
13844       export_dynamic_flag_spec_F77='-Bexport'
13845       ;;
13846
13847     sysv4*MP*)
13848       if test -d /usr/nec; then
13849         archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13850         hardcode_shlibpath_var_F77=no
13851         runpath_var=LD_RUN_PATH
13852         hardcode_runpath_var=yes
13853         ld_shlibs_F77=yes
13854       fi
13855       ;;
13856
13857     sysv4.2uw2*)
13858       archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
13859       hardcode_direct_F77=yes
13860       hardcode_minus_L_F77=no
13861       hardcode_shlibpath_var_F77=no
13862       hardcode_runpath_var=yes
13863       runpath_var=LD_RUN_PATH
13864       ;;
13865
13866    sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
13867       no_undefined_flag_F77='${wl}-z ${wl}text'
13868       if test "$GCC" = yes; then
13869         archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13870       else
13871         archive_cmds_F77='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13872       fi
13873       runpath_var='LD_RUN_PATH'
13874       hardcode_shlibpath_var_F77=no
13875       ;;
13876
13877     sysv5*)
13878       no_undefined_flag_F77=' -z text'
13879       # $CC -shared without GNU ld will not create a library from C++
13880       # object files and a static libstdc++, better avoid it by now
13881       archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
13882       archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13883                 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
13884       hardcode_libdir_flag_spec_F77=
13885       hardcode_shlibpath_var_F77=no
13886       runpath_var='LD_RUN_PATH'
13887       ;;
13888
13889     uts4*)
13890       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13891       hardcode_libdir_flag_spec_F77='-L$libdir'
13892       hardcode_shlibpath_var_F77=no
13893       ;;
13894
13895     *)
13896       ld_shlibs_F77=no
13897       ;;
13898     esac
13899   fi
13900
13901 echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
13902 echo "${ECHO_T}$ld_shlibs_F77" >&6
13903 test "$ld_shlibs_F77" = no && can_build_shared=no
13904
13905 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
13906 if test "$GCC" = yes; then
13907   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
13908 fi
13909
13910 #
13911 # Do we need to explicitly link libc?
13912 #
13913 case "x$archive_cmds_need_lc_F77" in
13914 x|xyes)
13915   # Assume -lc should be added
13916   archive_cmds_need_lc_F77=yes
13917
13918   if test "$enable_shared" = yes && test "$GCC" = yes; then
13919     case $archive_cmds_F77 in
13920     *'~'*)
13921       # FIXME: we may have to deal with multi-command sequences.
13922       ;;
13923     '$CC '*)
13924       # Test whether the compiler implicitly links with -lc since on some
13925       # systems, -lgcc has to come before -lc. If gcc already passes -lc
13926       # to ld, don't add -lc before -lgcc.
13927       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
13928 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
13929       $rm conftest*
13930       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13931
13932       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13933   (eval $ac_compile) 2>&5
13934   ac_status=$?
13935   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13936   (exit $ac_status); } 2>conftest.err; then
13937         soname=conftest
13938         lib=conftest
13939         libobjs=conftest.$ac_objext
13940         deplibs=
13941         wl=$lt_prog_compiler_wl_F77
13942         compiler_flags=-v
13943         linker_flags=-v
13944         verstring=
13945         output_objdir=.
13946         libname=conftest
13947         lt_save_allow_undefined_flag=$allow_undefined_flag_F77
13948         allow_undefined_flag_F77=
13949         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
13950   (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
13951   ac_status=$?
13952   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13953   (exit $ac_status); }
13954         then
13955           archive_cmds_need_lc_F77=no
13956         else
13957           archive_cmds_need_lc_F77=yes
13958         fi
13959         allow_undefined_flag_F77=$lt_save_allow_undefined_flag
13960       else
13961         cat conftest.err 1>&5
13962       fi
13963       $rm conftest*
13964       echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
13965 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6
13966       ;;
13967     esac
13968   fi
13969   ;;
13970 esac
13971
13972 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
13973 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
13974 hardcode_action_F77=
13975 if test -n "$hardcode_libdir_flag_spec_F77" || \
13976    test -n "$runpath_var F77" || \
13977    test "X$hardcode_automatic_F77"="Xyes" ; then
13978
13979   # We can hardcode non-existant directories.
13980   if test "$hardcode_direct_F77" != no &&
13981      # If the only mechanism to avoid hardcoding is shlibpath_var, we
13982      # have to relink, otherwise we might link with an installed library
13983      # when we should be linking with a yet-to-be-installed one
13984      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
13985      test "$hardcode_minus_L_F77" != no; then
13986     # Linking always hardcodes the temporary library directory.
13987     hardcode_action_F77=relink
13988   else
13989     # We can link without hardcoding, and we can hardcode nonexisting dirs.
13990     hardcode_action_F77=immediate
13991   fi
13992 else
13993   # We cannot hardcode anything, or else we can only hardcode existing
13994   # directories.
13995   hardcode_action_F77=unsupported
13996 fi
13997 echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
13998 echo "${ECHO_T}$hardcode_action_F77" >&6
13999
14000 if test "$hardcode_action_F77" = relink; then
14001   # Fast installation is not supported
14002   enable_fast_install=no
14003 elif test "$shlibpath_overrides_runpath" = yes ||
14004      test "$enable_shared" = no; then
14005   # Fast installation is not necessary
14006   enable_fast_install=needless
14007 fi
14008
14009 striplib=
14010 old_striplib=
14011 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
14012 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
14013 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
14014   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
14015   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
14016   echo "$as_me:$LINENO: result: yes" >&5
14017 echo "${ECHO_T}yes" >&6
14018 else
14019 # FIXME - insert some real tests, host_os isn't really good enough
14020   case $host_os in
14021    darwin*)
14022        if test -n "$STRIP" ; then
14023          striplib="$STRIP -x"
14024          echo "$as_me:$LINENO: result: yes" >&5
14025 echo "${ECHO_T}yes" >&6
14026        else
14027   echo "$as_me:$LINENO: result: no" >&5
14028 echo "${ECHO_T}no" >&6
14029 fi
14030        ;;
14031    *)
14032   echo "$as_me:$LINENO: result: no" >&5
14033 echo "${ECHO_T}no" >&6
14034     ;;
14035   esac
14036 fi
14037
14038 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
14039 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
14040 library_names_spec=
14041 libname_spec='lib$name'
14042 soname_spec=
14043 shrext=".so"
14044 postinstall_cmds=
14045 postuninstall_cmds=
14046 finish_cmds=
14047 finish_eval=
14048 shlibpath_var=
14049 shlibpath_overrides_runpath=unknown
14050 version_type=none
14051 dynamic_linker="$host_os ld.so"
14052 sys_lib_dlsearch_path_spec="/lib /usr/lib"
14053 if test "$GCC" = yes; then
14054   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14055   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
14056     # if the path contains ";" then we assume it to be the separator
14057     # otherwise default to the standard path separator (i.e. ":") - it is
14058     # assumed that no part of a normal pathname contains ";" but that should
14059     # okay in the real world where ";" in dirpaths is itself problematic.
14060     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14061   else
14062     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
14063   fi
14064 else
14065   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
14066 fi
14067 need_lib_prefix=unknown
14068 hardcode_into_libs=no
14069
14070 # when you set need_version to no, make sure it does not cause -set_version
14071 # flags to be left without arguments
14072 need_version=unknown
14073
14074 case $host_os in
14075 aix3*)
14076   version_type=linux
14077   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14078   shlibpath_var=LIBPATH
14079
14080   # AIX 3 has no versioning support, so we append a major version to the name.
14081   soname_spec='${libname}${release}${shared_ext}$major'
14082   ;;
14083
14084 aix4* | aix5*)
14085   version_type=linux
14086   need_lib_prefix=no
14087   need_version=no
14088   hardcode_into_libs=yes
14089   if test "$host_cpu" = ia64; then
14090     # AIX 5 supports IA64
14091     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14092     shlibpath_var=LD_LIBRARY_PATH
14093   else
14094     # With GCC up to 2.95.x, collect2 would create an import file
14095     # for dependence libraries.  The import file would start with
14096     # the line `#! .'.  This would cause the generated library to
14097     # depend on `.', always an invalid library.  This was fixed in
14098     # development snapshots of GCC prior to 3.0.
14099     case $host_os in
14100       aix4 | aix4.[01] | aix4.[01].*)
14101       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14102            echo ' yes '
14103            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
14104         :
14105       else
14106         can_build_shared=no
14107       fi
14108       ;;
14109     esac
14110     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14111     # soname into executable. Probably we can add versioning support to
14112     # collect2, so additional links can be useful in future.
14113     if test "$aix_use_runtimelinking" = yes; then
14114       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14115       # instead of lib<name>.a to let people know that these are not
14116       # typical AIX shared libraries.
14117       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14118     else
14119       # We preserve .a as extension for shared libraries through AIX4.2
14120       # and later when we are not doing run time linking.
14121       library_names_spec='${libname}${release}.a $libname.a'
14122       soname_spec='${libname}${release}${shared_ext}$major'
14123     fi
14124     shlibpath_var=LIBPATH
14125   fi
14126   ;;
14127
14128 amigaos*)
14129   library_names_spec='$libname.ixlibrary $libname.a'
14130   # Create ${libname}_ixlibrary.a entries in /sys/libs.
14131   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'
14132   ;;
14133
14134 beos*)
14135   library_names_spec='${libname}${shared_ext}'
14136   dynamic_linker="$host_os ld.so"
14137   shlibpath_var=LIBRARY_PATH
14138   ;;
14139
14140 bsdi4*)
14141   version_type=linux
14142   need_version=no
14143   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14144   soname_spec='${libname}${release}${shared_ext}$major'
14145   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14146   shlibpath_var=LD_LIBRARY_PATH
14147   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14148   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14149   # the default ld.so.conf also contains /usr/contrib/lib and
14150   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14151   # libtool to hard-code these into programs
14152   ;;
14153
14154 cygwin* | mingw* | pw32*)
14155   version_type=windows
14156   shrext=".dll"
14157   need_version=no
14158   need_lib_prefix=no
14159
14160   case $GCC,$host_os in
14161   yes,cygwin* | yes,mingw* | yes,pw32*)
14162     library_names_spec='$libname.dll.a'
14163     # DLL is installed to $(libdir)/../bin by postinstall_cmds
14164     postinstall_cmds='base_file=`basename \${file}`~
14165       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
14166       dldir=$destdir/`dirname \$dlpath`~
14167       test -d \$dldir || mkdir -p \$dldir~
14168       $install_prog $dir/$dlname \$dldir/$dlname'
14169     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14170       dlpath=$dir/\$dldll~
14171        $rm \$dlpath'
14172     shlibpath_overrides_runpath=yes
14173
14174     case $host_os in
14175     cygwin*)
14176       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14177       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14178       sys_lib_search_path_spec="/lib /lib/w32api /usr/lib /usr/local/lib"
14179       ;;
14180     mingw*)
14181       # MinGW DLLs use traditional 'lib' prefix
14182       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14183       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14184       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
14185         # It is most probably a Windows format PATH printed by
14186         # mingw gcc, but we are running on Cygwin. Gcc prints its search
14187         # path with ; separators, and with drive letters. We can handle the
14188         # drive letters (cygwin fileutils understands them), so leave them,
14189         # especially as we might pass files found there to a mingw objdump,
14190         # which wouldn't understand a cygwinified path. Ahh.
14191         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14192       else
14193         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
14194       fi
14195       ;;
14196     pw32*)
14197       # pw32 DLLs use 'pw' prefix rather than 'lib'
14198       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
14199       ;;
14200     esac
14201     ;;
14202
14203   *)
14204     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14205     ;;
14206   esac
14207   dynamic_linker='Win32 ld.exe'
14208   # FIXME: first we should search . and the directory the executable is in
14209   shlibpath_var=PATH
14210   ;;
14211
14212 darwin* | rhapsody*)
14213   dynamic_linker="$host_os dyld"
14214   version_type=darwin
14215   need_lib_prefix=no
14216   need_version=no
14217   # FIXME: Relying on posixy $() will cause problems for
14218   #        cross-compilation, but unfortunately the echo tests do not
14219   #        yet detect zsh echo's removal of \ escapes.
14220   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14221   soname_spec='${libname}${release}${major}$shared_ext'
14222   shlibpath_overrides_runpath=yes
14223   shlibpath_var=DYLD_LIBRARY_PATH
14224   shrext='$(test .$module = .yes && echo .so || echo .dylib)'
14225   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
14226   if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
14227   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"`
14228   fi
14229   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14230   ;;
14231
14232 dgux*)
14233   version_type=linux
14234   need_lib_prefix=no
14235   need_version=no
14236   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14237   soname_spec='${libname}${release}${shared_ext}$major'
14238   shlibpath_var=LD_LIBRARY_PATH
14239   ;;
14240
14241 freebsd1*)
14242   dynamic_linker=no
14243   ;;
14244
14245 freebsd*)
14246   objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
14247   version_type=freebsd-$objformat
14248   case $version_type in
14249     freebsd-elf*)
14250       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14251       need_version=no
14252       need_lib_prefix=no
14253       ;;
14254     freebsd-*)
14255       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
14256       need_version=yes
14257       ;;
14258   esac
14259   shlibpath_var=LD_LIBRARY_PATH
14260   case $host_os in
14261   freebsd2*)
14262     shlibpath_overrides_runpath=yes
14263     ;;
14264   freebsd3.01* | freebsdelf3.01*)
14265     shlibpath_overrides_runpath=yes
14266     hardcode_into_libs=yes
14267     ;;
14268   *) # from 3.2 on
14269     shlibpath_overrides_runpath=no
14270     hardcode_into_libs=yes
14271     ;;
14272   esac
14273   ;;
14274
14275 gnu*)
14276   version_type=linux
14277   need_lib_prefix=no
14278   need_version=no
14279   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14280   soname_spec='${libname}${release}${shared_ext}$major'
14281   shlibpath_var=LD_LIBRARY_PATH
14282   hardcode_into_libs=yes
14283   ;;
14284
14285 hpux9* | hpux10* | hpux11*)
14286   # Give a soname corresponding to the major version so that dld.sl refuses to
14287   # link against other versions.
14288   version_type=sunos
14289   need_lib_prefix=no
14290   need_version=no
14291   case "$host_cpu" in
14292   ia64*)
14293     shrext='.so'
14294     hardcode_into_libs=yes
14295     dynamic_linker="$host_os dld.so"
14296     shlibpath_var=LD_LIBRARY_PATH
14297     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14298     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14299     soname_spec='${libname}${release}${shared_ext}$major'
14300     if test "X$HPUX_IA64_MODE" = X32; then
14301       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14302     else
14303       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14304     fi
14305     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14306     ;;
14307    hppa*64*)
14308      shrext='.sl'
14309      hardcode_into_libs=yes
14310      dynamic_linker="$host_os dld.sl"
14311      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14312      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14313      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14314      soname_spec='${libname}${release}${shared_ext}$major'
14315      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14316      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14317      ;;
14318    *)
14319     shrext='.sl'
14320     dynamic_linker="$host_os dld.sl"
14321     shlibpath_var=SHLIB_PATH
14322     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14323     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14324     soname_spec='${libname}${release}${shared_ext}$major'
14325     ;;
14326   esac
14327   # HP-UX runs *really* slowly unless shared libraries are mode 555.
14328   postinstall_cmds='chmod 555 $lib'
14329   ;;
14330
14331 irix5* | irix6* | nonstopux*)
14332   case $host_os in
14333     nonstopux*) version_type=nonstopux ;;
14334     *)
14335         if test "$lt_cv_prog_gnu_ld" = yes; then
14336                 version_type=linux
14337         else
14338                 version_type=irix
14339         fi ;;
14340   esac
14341   need_lib_prefix=no
14342   need_version=no
14343   soname_spec='${libname}${release}${shared_ext}$major'
14344   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
14345   case $host_os in
14346   irix5* | nonstopux*)
14347     libsuff= shlibsuff=
14348     ;;
14349   *)
14350     case $LD in # libtool.m4 will add one of these switches to LD
14351     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14352       libsuff= shlibsuff= libmagic=32-bit;;
14353     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14354       libsuff=32 shlibsuff=N32 libmagic=N32;;
14355     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14356       libsuff=64 shlibsuff=64 libmagic=64-bit;;
14357     *) libsuff= shlibsuff= libmagic=never-match;;
14358     esac
14359     ;;
14360   esac
14361   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14362   shlibpath_overrides_runpath=no
14363   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14364   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
14365   hardcode_into_libs=yes
14366   ;;
14367
14368 # No shared lib support for Linux oldld, aout, or coff.
14369 linux*oldld* | linux*aout* | linux*coff*)
14370   dynamic_linker=no
14371   ;;
14372
14373 # This must be Linux ELF.
14374 linux*)
14375   version_type=linux
14376   need_lib_prefix=no
14377   need_version=no
14378   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14379   soname_spec='${libname}${release}${shared_ext}$major'
14380   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14381   shlibpath_var=LD_LIBRARY_PATH
14382   shlibpath_overrides_runpath=no
14383   # This implies no fast_install, which is unacceptable.
14384   # Some rework will be needed to allow for fast_install
14385   # before this can be enabled.
14386   hardcode_into_libs=yes
14387
14388   # We used to test for /lib/ld.so.1 and disable shared libraries on
14389   # powerpc, because MkLinux only supported shared libraries with the
14390   # GNU dynamic linker.  Since this was broken with cross compilers,
14391   # most powerpc-linux boxes support dynamic linking these days and
14392   # people can always --disable-shared, the test was removed, and we
14393   # assume the GNU/Linux dynamic linker is in use.
14394   dynamic_linker='GNU/Linux ld.so'
14395   ;;
14396
14397 netbsd*)
14398   version_type=sunos
14399   need_lib_prefix=no
14400   need_version=no
14401   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14402     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14403     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14404     dynamic_linker='NetBSD (a.out) ld.so'
14405   else
14406     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
14407     soname_spec='${libname}${release}${shared_ext}$major'
14408     dynamic_linker='NetBSD ld.elf_so'
14409   fi
14410   shlibpath_var=LD_LIBRARY_PATH
14411   shlibpath_overrides_runpath=yes
14412   hardcode_into_libs=yes
14413   ;;
14414
14415 newsos6)
14416   version_type=linux
14417   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14418   shlibpath_var=LD_LIBRARY_PATH
14419   shlibpath_overrides_runpath=yes
14420   ;;
14421
14422 nto-qnx)
14423   version_type=linux
14424   need_lib_prefix=no
14425   need_version=no
14426   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14427   soname_spec='${libname}${release}${shared_ext}$major'
14428   shlibpath_var=LD_LIBRARY_PATH
14429   shlibpath_overrides_runpath=yes
14430   ;;
14431
14432 openbsd*)
14433   version_type=sunos
14434   need_lib_prefix=no
14435   need_version=no
14436   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14437   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14438   shlibpath_var=LD_LIBRARY_PATH
14439   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14440     case $host_os in
14441       openbsd2.[89] | openbsd2.[89].*)
14442         shlibpath_overrides_runpath=no
14443         ;;
14444       *)
14445         shlibpath_overrides_runpath=yes
14446         ;;
14447       esac
14448   else
14449     shlibpath_overrides_runpath=yes
14450   fi
14451   ;;
14452
14453 os2*)
14454   libname_spec='$name'
14455   shrext=".dll"
14456   need_lib_prefix=no
14457   library_names_spec='$libname${shared_ext} $libname.a'
14458   dynamic_linker='OS/2 ld.exe'
14459   shlibpath_var=LIBPATH
14460   ;;
14461
14462 osf3* | osf4* | osf5*)
14463   version_type=osf
14464   need_lib_prefix=no
14465   need_version=no
14466   soname_spec='${libname}${release}${shared_ext}$major'
14467   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14468   shlibpath_var=LD_LIBRARY_PATH
14469   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14470   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
14471   ;;
14472
14473 sco3.2v5*)
14474   version_type=osf
14475   soname_spec='${libname}${release}${shared_ext}$major'
14476   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14477   shlibpath_var=LD_LIBRARY_PATH
14478   ;;
14479
14480 solaris*)
14481   version_type=linux
14482   need_lib_prefix=no
14483   need_version=no
14484   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14485   soname_spec='${libname}${release}${shared_ext}$major'
14486   shlibpath_var=LD_LIBRARY_PATH
14487   shlibpath_overrides_runpath=yes
14488   hardcode_into_libs=yes
14489   # ldd complains unless libraries are executable
14490   postinstall_cmds='chmod +x $lib'
14491   ;;
14492
14493 sunos4*)
14494   version_type=sunos
14495   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14496   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14497   shlibpath_var=LD_LIBRARY_PATH
14498   shlibpath_overrides_runpath=yes
14499   if test "$with_gnu_ld" = yes; then
14500     need_lib_prefix=no
14501   fi
14502   need_version=yes
14503   ;;
14504
14505 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
14506   version_type=linux
14507   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14508   soname_spec='${libname}${release}${shared_ext}$major'
14509   shlibpath_var=LD_LIBRARY_PATH
14510   case $host_vendor in
14511     sni)
14512       shlibpath_overrides_runpath=no
14513       need_lib_prefix=no
14514       export_dynamic_flag_spec='${wl}-Blargedynsym'
14515       runpath_var=LD_RUN_PATH
14516       ;;
14517     siemens)
14518       need_lib_prefix=no
14519       ;;
14520     motorola)
14521       need_lib_prefix=no
14522       need_version=no
14523       shlibpath_overrides_runpath=no
14524       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14525       ;;
14526   esac
14527   ;;
14528
14529 sysv4*MP*)
14530   if test -d /usr/nec ;then
14531     version_type=linux
14532     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
14533     soname_spec='$libname${shared_ext}.$major'
14534     shlibpath_var=LD_LIBRARY_PATH
14535   fi
14536   ;;
14537
14538 uts4*)
14539   version_type=linux
14540   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14541   soname_spec='${libname}${release}${shared_ext}$major'
14542   shlibpath_var=LD_LIBRARY_PATH
14543   ;;
14544
14545 *)
14546   dynamic_linker=no
14547   ;;
14548 esac
14549 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
14550 echo "${ECHO_T}$dynamic_linker" >&6
14551 test "$dynamic_linker" = no && can_build_shared=no
14552
14553
14554 # The else clause should only fire when bootstrapping the
14555 # libtool distribution, otherwise you forgot to ship ltmain.sh
14556 # with your package, and you will get complaints that there are
14557 # no rules to generate ltmain.sh.
14558 if test -f "$ltmain"; then
14559   # See if we are running on zsh, and set the options which allow our commands through
14560   # without removal of \ escapes.
14561   if test -n "${ZSH_VERSION+set}" ; then
14562     setopt NO_GLOB_SUBST
14563   fi
14564   # Now quote all the things that may contain metacharacters while being
14565   # careful not to overquote the AC_SUBSTed values.  We take copies of the
14566   # variables and quote the copies for generation of the libtool script.
14567   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \
14568     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
14569     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
14570     deplibs_check_method reload_flag reload_cmds need_locks \
14571     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
14572     lt_cv_sys_global_symbol_to_c_name_address \
14573     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
14574     old_postinstall_cmds old_postuninstall_cmds \
14575     compiler_F77 \
14576     CC_F77 \
14577     LD_F77 \
14578     lt_prog_compiler_wl_F77 \
14579     lt_prog_compiler_pic_F77 \
14580     lt_prog_compiler_static_F77 \
14581     lt_prog_compiler_no_builtin_flag_F77 \
14582     export_dynamic_flag_spec_F77 \
14583     thread_safe_flag_spec_F77 \
14584     whole_archive_flag_spec_F77 \
14585     enable_shared_with_static_runtimes_F77 \
14586     old_archive_cmds_F77 \
14587     old_archive_from_new_cmds_F77 \
14588     predep_objects_F77 \
14589     postdep_objects_F77 \
14590     predeps_F77 \
14591     postdeps_F77 \
14592     compiler_lib_search_path_F77 \
14593     archive_cmds_F77 \
14594     archive_expsym_cmds_F77 \
14595     postinstall_cmds_F77 \
14596     postuninstall_cmds_F77 \
14597     old_archive_from_expsyms_cmds_F77 \
14598     allow_undefined_flag_F77 \
14599     no_undefined_flag_F77 \
14600     export_symbols_cmds_F77 \
14601     hardcode_libdir_flag_spec_F77 \
14602     hardcode_libdir_flag_spec_ld_F77 \
14603     hardcode_libdir_separator_F77 \
14604     hardcode_automatic_F77 \
14605     module_cmds_F77 \
14606     module_expsym_cmds_F77 \
14607     lt_cv_prog_compiler_c_o_F77 \
14608     exclude_expsyms_F77 \
14609     include_expsyms_F77; do
14610
14611     case $var in
14612     old_archive_cmds_F77 | \
14613     old_archive_from_new_cmds_F77 | \
14614     archive_cmds_F77 | \
14615     archive_expsym_cmds_F77 | \
14616     module_cmds_F77 | \
14617     module_expsym_cmds_F77 | \
14618     old_archive_from_expsyms_cmds_F77 | \
14619     export_symbols_cmds_F77 | \
14620     extract_expsyms_cmds | reload_cmds | finish_cmds | \
14621     postinstall_cmds | postuninstall_cmds | \
14622     old_postinstall_cmds | old_postuninstall_cmds | \
14623     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
14624       # Double-quote double-evaled strings.
14625       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
14626       ;;
14627     *)
14628       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
14629       ;;
14630     esac
14631   done
14632
14633   case $lt_echo in
14634   *'\$0 --fallback-echo"')
14635     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
14636     ;;
14637   esac
14638
14639 cfgfile="$ofile"
14640
14641   cat <<__EOF__ >> "$cfgfile"
14642 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
14643
14644 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
14645
14646 # Shell to use when invoking shell scripts.
14647 SHELL=$lt_SHELL
14648
14649 # Whether or not to build shared libraries.
14650 build_libtool_libs=$enable_shared
14651
14652 # Whether or not to build static libraries.
14653 build_old_libs=$enable_static
14654
14655 # Whether or not to add -lc for building shared libraries.
14656 build_libtool_need_lc=$archive_cmds_need_lc_F77
14657
14658 # Whether or not to disallow shared libs when runtime libs are static
14659 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
14660
14661 # Whether or not to optimize for fast installation.
14662 fast_install=$enable_fast_install
14663
14664 # The host system.
14665 host_alias=$host_alias
14666 host=$host
14667
14668 # An echo program that does not interpret backslashes.
14669 echo=$lt_echo
14670
14671 # The archiver.
14672 AR=$lt_AR
14673 AR_FLAGS=$lt_AR_FLAGS
14674
14675 # A C compiler.
14676 LTCC=$lt_LTCC
14677
14678 # A language-specific compiler.
14679 CC=$lt_compiler_F77
14680
14681 # Is the compiler the GNU C compiler?
14682 with_gcc=$GCC_F77
14683
14684 # An ERE matcher.
14685 EGREP=$lt_EGREP
14686
14687 # The linker used to build libraries.
14688 LD=$lt_LD_F77
14689
14690 # Whether we need hard or soft links.
14691 LN_S=$lt_LN_S
14692
14693 # A BSD-compatible nm program.
14694 NM=$lt_NM
14695
14696 # A symbol stripping program
14697 STRIP=$STRIP
14698
14699 # Used to examine libraries when file_magic_cmd begins "file"
14700 MAGIC_CMD=$MAGIC_CMD
14701
14702 # Used on cygwin: DLL creation program.
14703 DLLTOOL="$DLLTOOL"
14704
14705 # Used on cygwin: object dumper.
14706 OBJDUMP="$OBJDUMP"
14707
14708 # Used on cygwin: assembler.
14709 AS="$AS"
14710
14711 # The name of the directory that contains temporary libtool files.
14712 objdir=$objdir
14713
14714 # How to create reloadable object files.
14715 reload_flag=$lt_reload_flag
14716 reload_cmds=$lt_reload_cmds
14717
14718 # How to pass a linker flag through the compiler.
14719 wl=$lt_lt_prog_compiler_wl_F77
14720
14721 # Object file suffix (normally "o").
14722 objext="$ac_objext"
14723
14724 # Old archive suffix (normally "a").
14725 libext="$libext"
14726
14727 # Shared library suffix (normally ".so").
14728 shrext='$shrext'
14729
14730 # Executable file suffix (normally "").
14731 exeext="$exeext"
14732
14733 # Additional compiler flags for building library objects.
14734 pic_flag=$lt_lt_prog_compiler_pic_F77
14735 pic_mode=$pic_mode
14736
14737 # What is the maximum length of a command?
14738 max_cmd_len=$lt_cv_sys_max_cmd_len
14739
14740 # Does compiler simultaneously support -c and -o options?
14741 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
14742
14743 # Must we lock files when doing compilation ?
14744 need_locks=$lt_need_locks
14745
14746 # Do we need the lib prefix for modules?
14747 need_lib_prefix=$need_lib_prefix
14748
14749 # Do we need a version for libraries?
14750 need_version=$need_version
14751
14752 # Whether dlopen is supported.
14753 dlopen_support=$enable_dlopen
14754
14755 # Whether dlopen of programs is supported.
14756 dlopen_self=$enable_dlopen_self
14757
14758 # Whether dlopen of statically linked programs is supported.
14759 dlopen_self_static=$enable_dlopen_self_static
14760
14761 # Compiler flag to prevent dynamic linking.
14762 link_static_flag=$lt_lt_prog_compiler_static_F77
14763
14764 # Compiler flag to turn off builtin functions.
14765 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
14766
14767 # Compiler flag to allow reflexive dlopens.
14768 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
14769
14770 # Compiler flag to generate shared objects directly from archives.
14771 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
14772
14773 # Compiler flag to generate thread-safe objects.
14774 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
14775
14776 # Library versioning type.
14777 version_type=$version_type
14778
14779 # Format of library name prefix.
14780 libname_spec=$lt_libname_spec
14781
14782 # List of archive names.  First name is the real one, the rest are links.
14783 # The last name is the one that the linker finds with -lNAME.
14784 library_names_spec=$lt_library_names_spec
14785
14786 # The coded name of the library, if different from the real name.
14787 soname_spec=$lt_soname_spec
14788
14789 # Commands used to build and install an old-style archive.
14790 RANLIB=$lt_RANLIB
14791 old_archive_cmds=$lt_old_archive_cmds_F77
14792 old_postinstall_cmds=$lt_old_postinstall_cmds
14793 old_postuninstall_cmds=$lt_old_postuninstall_cmds
14794
14795 # Create an old-style archive from a shared archive.
14796 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
14797
14798 # Create a temporary old-style archive to link instead of a shared archive.
14799 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
14800
14801 # Commands used to build and install a shared archive.
14802 archive_cmds=$lt_archive_cmds_F77
14803 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
14804 postinstall_cmds=$lt_postinstall_cmds
14805 postuninstall_cmds=$lt_postuninstall_cmds
14806
14807 # Commands used to build a loadable module (assumed same as above if empty)
14808 module_cmds=$lt_module_cmds_F77
14809 module_expsym_cmds=$lt_module_expsym_cmds_F77
14810
14811 # Commands to strip libraries.
14812 old_striplib=$lt_old_striplib
14813 striplib=$lt_striplib
14814
14815 # Dependencies to place before the objects being linked to create a
14816 # shared library.
14817 predep_objects=$lt_predep_objects_F77
14818
14819 # Dependencies to place after the objects being linked to create a
14820 # shared library.
14821 postdep_objects=$lt_postdep_objects_F77
14822
14823 # Dependencies to place before the objects being linked to create a
14824 # shared library.
14825 predeps=$lt_predeps_F77
14826
14827 # Dependencies to place after the objects being linked to create a
14828 # shared library.
14829 postdeps=$lt_postdeps_F77
14830
14831 # The library search path used internally by the compiler when linking
14832 # a shared library.
14833 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
14834
14835 # Method to check whether dependent libraries are shared objects.
14836 deplibs_check_method=$lt_deplibs_check_method
14837
14838 # Command to use when deplibs_check_method == file_magic.
14839 file_magic_cmd=$lt_file_magic_cmd
14840
14841 # Flag that allows shared libraries with undefined symbols to be built.
14842 allow_undefined_flag=$lt_allow_undefined_flag_F77
14843
14844 # Flag that forces no undefined symbols.
14845 no_undefined_flag=$lt_no_undefined_flag_F77
14846
14847 # Commands used to finish a libtool library installation in a directory.
14848 finish_cmds=$lt_finish_cmds
14849
14850 # Same as above, but a single script fragment to be evaled but not shown.
14851 finish_eval=$lt_finish_eval
14852
14853 # Take the output of nm and produce a listing of raw symbols and C names.
14854 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
14855
14856 # Transform the output of nm in a proper C declaration
14857 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
14858
14859 # Transform the output of nm in a C name address pair
14860 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
14861
14862 # This is the shared library runtime path variable.
14863 runpath_var=$runpath_var
14864
14865 # This is the shared library path variable.
14866 shlibpath_var=$shlibpath_var
14867
14868 # Is shlibpath searched before the hard-coded library search path?
14869 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
14870
14871 # How to hardcode a shared library path into an executable.
14872 hardcode_action=$hardcode_action_F77
14873
14874 # Whether we should hardcode library paths into libraries.
14875 hardcode_into_libs=$hardcode_into_libs
14876
14877 # Flag to hardcode \$libdir into a binary during linking.
14878 # This must work even if \$libdir does not exist.
14879 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
14880
14881 # If ld is used when linking, flag to hardcode \$libdir into
14882 # a binary during linking. This must work even if \$libdir does
14883 # not exist.
14884 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
14885
14886 # Whether we need a single -rpath flag with a separated argument.
14887 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
14888
14889 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
14890 # resulting binary.
14891 hardcode_direct=$hardcode_direct_F77
14892
14893 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
14894 # resulting binary.
14895 hardcode_minus_L=$hardcode_minus_L_F77
14896
14897 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
14898 # the resulting binary.
14899 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
14900
14901 # Set to yes if building a shared library automatically hardcodes DIR into the library
14902 # and all subsequent libraries and executables linked against it.
14903 hardcode_automatic=$hardcode_automatic_F77
14904
14905 # Variables whose values should be saved in libtool wrapper scripts and
14906 # restored at relink time.
14907 variables_saved_for_relink="$variables_saved_for_relink"
14908
14909 # Whether libtool must link a program against all its dependency libraries.
14910 link_all_deplibs=$link_all_deplibs_F77
14911
14912 # Compile-time system search path for libraries
14913 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
14914
14915 # Run-time system search path for libraries
14916 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
14917
14918 # Fix the shell variable \$srcfile for the compiler.
14919 fix_srcfile_path="$fix_srcfile_path_F77"
14920
14921 # Set to yes if exported symbols are required.
14922 always_export_symbols=$always_export_symbols_F77
14923
14924 # The commands to list exported symbols.
14925 export_symbols_cmds=$lt_export_symbols_cmds_F77
14926
14927 # The commands to extract the exported symbol list from a shared archive.
14928 extract_expsyms_cmds=$lt_extract_expsyms_cmds
14929
14930 # Symbols that should not be listed in the preloaded symbols.
14931 exclude_expsyms=$lt_exclude_expsyms_F77
14932
14933 # Symbols that must always be exported.
14934 include_expsyms=$lt_include_expsyms_F77
14935
14936 # ### END LIBTOOL TAG CONFIG: $tagname
14937
14938 __EOF__
14939
14940
14941 else
14942   # If there is no Makefile yet, we rely on a make rule to execute
14943   # `config.status --recheck' to rerun these tests and create the
14944   # libtool script then.
14945   test -f Makefile && make "$ltmain"
14946 fi
14947
14948
14949 ac_ext=c
14950 ac_cpp='$CPP $CPPFLAGS'
14951 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14952 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14953 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14954
14955 CC="$lt_save_CC"
14956
14957         else
14958           tagname=""
14959         fi
14960         ;;
14961
14962       GCJ)
14963         if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
14964
14965
14966
14967 # Source file extension for Java test sources.
14968 ac_ext=java
14969
14970 # Object file extension for compiled Java test sources.
14971 objext=o
14972 objext_GCJ=$objext
14973
14974 # Code to be used in simple compile tests
14975 lt_simple_compile_test_code="class foo {}\n"
14976
14977 # Code to be used in simple link tests
14978 lt_simple_link_test_code='public class conftest { public static void main(String argv) {}; }\n'
14979
14980 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
14981
14982 # If no C compiler was specified, use CC.
14983 LTCC=${LTCC-"$CC"}
14984
14985 # Allow CC to be a program name with arguments.
14986 compiler=$CC
14987
14988
14989 # Allow CC to be a program name with arguments.
14990 lt_save_CC="$CC"
14991 CC=${GCJ-"gcj"}
14992 compiler=$CC
14993 compiler_GCJ=$CC
14994
14995 # GCJ did not exist at the time GCC didn't implicitly link libc in.
14996 archive_cmds_need_lc_GCJ=no
14997
14998 ## CAVEAT EMPTOR:
14999 ## There is no encapsulation within the following macros, do not change
15000 ## the running order or otherwise move them around unless you know exactly
15001 ## what you are doing...
15002
15003 lt_prog_compiler_no_builtin_flag_GCJ=
15004
15005 if test "$GCC" = yes; then
15006   lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
15007
15008   echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
15009 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
15010 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
15011   echo $ECHO_N "(cached) $ECHO_C" >&6
15012 else
15013   lt_cv_prog_compiler_rtti_exceptions=no
15014   ac_outfile=conftest.$ac_objext
15015    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15016    lt_compiler_flag="-fno-rtti -fno-exceptions"
15017    # Insert the option either (1) after the last *FLAGS variable, or
15018    # (2) before a word containing "conftest.", or (3) at the end.
15019    # Note that $ac_compile itself does not contain backslashes and begins
15020    # with a dollar sign (not a hyphen), so the echo should work correctly.
15021    # The option is referenced via a variable to avoid confusing sed.
15022    lt_compile=`echo "$ac_compile" | $SED \
15023    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
15024    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15025    -e 's:$: $lt_compiler_flag:'`
15026    (eval echo "\"\$as_me:15026: $lt_compile\"" >&5)
15027    (eval "$lt_compile" 2>conftest.err)
15028    ac_status=$?
15029    cat conftest.err >&5
15030    echo "$as_me:15030: \$? = $ac_status" >&5
15031    if (exit $ac_status) && test -s "$ac_outfile"; then
15032      # The compiler can only warn and ignore the option if not recognized
15033      # So say no if there are warnings
15034      if test ! -s conftest.err; then
15035        lt_cv_prog_compiler_rtti_exceptions=yes
15036      fi
15037    fi
15038    $rm conftest*
15039
15040 fi
15041 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
15042 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
15043
15044 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
15045     lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
15046 else
15047     :
15048 fi
15049
15050 fi
15051
15052 lt_prog_compiler_wl_GCJ=
15053 lt_prog_compiler_pic_GCJ=
15054 lt_prog_compiler_static_GCJ=
15055
15056 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
15057 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
15058
15059   if test "$GCC" = yes; then
15060     lt_prog_compiler_wl_GCJ='-Wl,'
15061     lt_prog_compiler_static_GCJ='-static'
15062
15063     case $host_os in
15064       aix*)
15065       # All AIX code is PIC.
15066       if test "$host_cpu" = ia64; then
15067         # AIX 5 now supports IA64 processor
15068         lt_prog_compiler_static_GCJ='-Bstatic'
15069       fi
15070       ;;
15071
15072     amigaos*)
15073       # FIXME: we need at least 68020 code to build shared libraries, but
15074       # adding the `-m68020' flag to GCC prevents building anything better,
15075       # like `-m68040'.
15076       lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
15077       ;;
15078
15079     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
15080       # PIC is the default for these OSes.
15081       ;;
15082
15083     mingw* | pw32* | os2*)
15084       # This hack is so that the source file can tell whether it is being
15085       # built for inclusion in a dll (and should export symbols for example).
15086       lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
15087       ;;
15088
15089     darwin* | rhapsody*)
15090       # PIC is the default on this platform
15091       # Common symbols not allowed in MH_DYLIB files
15092       lt_prog_compiler_pic_GCJ='-fno-common'
15093       ;;
15094
15095     msdosdjgpp*)
15096       # Just because we use GCC doesn't mean we suddenly get shared libraries
15097       # on systems that don't support them.
15098       lt_prog_compiler_can_build_shared_GCJ=no
15099       enable_shared=no
15100       ;;
15101
15102     sysv4*MP*)
15103       if test -d /usr/nec; then
15104         lt_prog_compiler_pic_GCJ=-Kconform_pic
15105       fi
15106       ;;
15107
15108     hpux*)
15109       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15110       # not for PA HP-UX.
15111       case "$host_cpu" in
15112       hppa*64*|ia64*)
15113         # +Z the default
15114         ;;
15115       *)
15116         lt_prog_compiler_pic_GCJ='-fPIC'
15117         ;;
15118       esac
15119       ;;
15120
15121     *)
15122       lt_prog_compiler_pic_GCJ='-fPIC'
15123       ;;
15124     esac
15125   else
15126     # PORTME Check for flag to pass linker flags through the system compiler.
15127     case $host_os in
15128     aix*)
15129       lt_prog_compiler_wl_GCJ='-Wl,'
15130       if test "$host_cpu" = ia64; then
15131         # AIX 5 now supports IA64 processor
15132         lt_prog_compiler_static_GCJ='-Bstatic'
15133       else
15134         lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
15135       fi
15136       ;;
15137
15138     mingw* | pw32* | os2*)
15139       # This hack is so that the source file can tell whether it is being
15140       # built for inclusion in a dll (and should export symbols for example).
15141       lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
15142       ;;
15143
15144     hpux9* | hpux10* | hpux11*)
15145       lt_prog_compiler_wl_GCJ='-Wl,'
15146       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15147       # not for PA HP-UX.
15148       case "$host_cpu" in
15149       hppa*64*|ia64*)
15150         # +Z the default
15151         ;;
15152       *)
15153         lt_prog_compiler_pic_GCJ='+Z'
15154         ;;
15155       esac
15156       # Is there a better lt_prog_compiler_static that works with the bundled CC?
15157       lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
15158       ;;
15159
15160     irix5* | irix6* | nonstopux*)
15161       lt_prog_compiler_wl_GCJ='-Wl,'
15162       # PIC (with -KPIC) is the default.
15163       lt_prog_compiler_static_GCJ='-non_shared'
15164       ;;
15165
15166     newsos6)
15167       lt_prog_compiler_pic_GCJ='-KPIC'
15168       lt_prog_compiler_static_GCJ='-Bstatic'
15169       ;;
15170
15171     linux*)
15172       case $CC in
15173       icc|ecc)
15174         lt_prog_compiler_wl_GCJ='-Wl,'
15175         lt_prog_compiler_pic_GCJ='-KPIC'
15176         lt_prog_compiler_static_GCJ='-static'
15177         ;;
15178       ccc)
15179         lt_prog_compiler_wl_GCJ='-Wl,'
15180         # All Alpha code is PIC.
15181         lt_prog_compiler_static_GCJ='-non_shared'
15182         ;;
15183       esac
15184       ;;
15185
15186     osf3* | osf4* | osf5*)
15187       lt_prog_compiler_wl_GCJ='-Wl,'
15188       # All OSF/1 code is PIC.
15189       lt_prog_compiler_static_GCJ='-non_shared'
15190       ;;
15191
15192     sco3.2v5*)
15193       lt_prog_compiler_pic_GCJ='-Kpic'
15194       lt_prog_compiler_static_GCJ='-dn'
15195       ;;
15196
15197     solaris*)
15198       lt_prog_compiler_wl_GCJ='-Wl,'
15199       lt_prog_compiler_pic_GCJ='-KPIC'
15200       lt_prog_compiler_static_GCJ='-Bstatic'
15201       ;;
15202
15203     sunos4*)
15204       lt_prog_compiler_wl_GCJ='-Qoption ld '
15205       lt_prog_compiler_pic_GCJ='-PIC'
15206       lt_prog_compiler_static_GCJ='-Bstatic'
15207       ;;
15208
15209     sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
15210       lt_prog_compiler_wl_GCJ='-Wl,'
15211       lt_prog_compiler_pic_GCJ='-KPIC'
15212       lt_prog_compiler_static_GCJ='-Bstatic'
15213       ;;
15214
15215     sysv4*MP*)
15216       if test -d /usr/nec ;then
15217         lt_prog_compiler_pic_GCJ='-Kconform_pic'
15218         lt_prog_compiler_static_GCJ='-Bstatic'
15219       fi
15220       ;;
15221
15222     uts4*)
15223       lt_prog_compiler_pic_GCJ='-pic'
15224       lt_prog_compiler_static_GCJ='-Bstatic'
15225       ;;
15226
15227     *)
15228       lt_prog_compiler_can_build_shared_GCJ=no
15229       ;;
15230     esac
15231   fi
15232
15233 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
15234 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6
15235
15236 #
15237 # Check to make sure the PIC flag actually works.
15238 #
15239 if test -n "$lt_prog_compiler_pic_GCJ"; then
15240   echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
15241 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6
15242 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
15243   echo $ECHO_N "(cached) $ECHO_C" >&6
15244 else
15245   lt_prog_compiler_pic_works_GCJ=no
15246   ac_outfile=conftest.$ac_objext
15247    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15248    lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
15249    # Insert the option either (1) after the last *FLAGS variable, or
15250    # (2) before a word containing "conftest.", or (3) at the end.
15251    # Note that $ac_compile itself does not contain backslashes and begins
15252    # with a dollar sign (not a hyphen), so the echo should work correctly.
15253    # The option is referenced via a variable to avoid confusing sed.
15254    lt_compile=`echo "$ac_compile" | $SED \
15255    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
15256    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15257    -e 's:$: $lt_compiler_flag:'`
15258    (eval echo "\"\$as_me:15258: $lt_compile\"" >&5)
15259    (eval "$lt_compile" 2>conftest.err)
15260    ac_status=$?
15261    cat conftest.err >&5
15262    echo "$as_me:15262: \$? = $ac_status" >&5
15263    if (exit $ac_status) && test -s "$ac_outfile"; then
15264      # The compiler can only warn and ignore the option if not recognized
15265      # So say no if there are warnings
15266      if test ! -s conftest.err; then
15267        lt_prog_compiler_pic_works_GCJ=yes
15268      fi
15269    fi
15270    $rm conftest*
15271
15272 fi
15273 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
15274 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6
15275
15276 if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
15277     case $lt_prog_compiler_pic_GCJ in
15278      "" | " "*) ;;
15279      *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
15280      esac
15281 else
15282     lt_prog_compiler_pic_GCJ=
15283      lt_prog_compiler_can_build_shared_GCJ=no
15284 fi
15285
15286 fi
15287 case "$host_os" in
15288   # For platforms which do not support PIC, -DPIC is meaningless:
15289   *djgpp*)
15290     lt_prog_compiler_pic_GCJ=
15291     ;;
15292   *)
15293     lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
15294     ;;
15295 esac
15296
15297 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
15298 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
15299 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
15300   echo $ECHO_N "(cached) $ECHO_C" >&6
15301 else
15302   lt_cv_prog_compiler_c_o_GCJ=no
15303    $rm -r conftest 2>/dev/null
15304    mkdir conftest
15305    cd conftest
15306    mkdir out
15307    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15308
15309    # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
15310    # that will create temporary files in the current directory regardless of
15311    # the output directory.  Thus, making CWD read-only will cause this test
15312    # to fail, enabling locking or at least warning the user not to do parallel
15313    # builds.
15314    chmod -w .
15315
15316    lt_compiler_flag="-o out/conftest2.$ac_objext"
15317    # Insert the option either (1) after the last *FLAGS variable, or
15318    # (2) before a word containing "conftest.", or (3) at the end.
15319    # Note that $ac_compile itself does not contain backslashes and begins
15320    # with a dollar sign (not a hyphen), so the echo should work correctly.
15321    lt_compile=`echo "$ac_compile" | $SED \
15322    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
15323    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15324    -e 's:$: $lt_compiler_flag:'`
15325    (eval echo "\"\$as_me:15325: $lt_compile\"" >&5)
15326    (eval "$lt_compile" 2>out/conftest.err)
15327    ac_status=$?
15328    cat out/conftest.err >&5
15329    echo "$as_me:15329: \$? = $ac_status" >&5
15330    if (exit $ac_status) && test -s out/conftest2.$ac_objext
15331    then
15332      # The compiler can only warn and ignore the option if not recognized
15333      # So say no if there are warnings
15334      if test ! -s out/conftest.err; then
15335        lt_cv_prog_compiler_c_o_GCJ=yes
15336      fi
15337    fi
15338    chmod u+w .
15339    $rm conftest* out/*
15340    rmdir out
15341    cd ..
15342    rmdir conftest
15343    $rm conftest*
15344
15345 fi
15346 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
15347 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6
15348
15349
15350 hard_links="nottested"
15351 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
15352   # do not overwrite the value of need_locks provided by the user
15353   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
15354 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
15355   hard_links=yes
15356   $rm conftest*
15357   ln conftest.a conftest.b 2>/dev/null && hard_links=no
15358   touch conftest.a
15359   ln conftest.a conftest.b 2>&5 || hard_links=no
15360   ln conftest.a conftest.b 2>/dev/null && hard_links=no
15361   echo "$as_me:$LINENO: result: $hard_links" >&5
15362 echo "${ECHO_T}$hard_links" >&6
15363   if test "$hard_links" = no; then
15364     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15365 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15366     need_locks=warn
15367   fi
15368 else
15369   need_locks=no
15370 fi
15371
15372 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15373 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
15374
15375   runpath_var=
15376   allow_undefined_flag_GCJ=
15377   enable_shared_with_static_runtimes_GCJ=no
15378   archive_cmds_GCJ=
15379   archive_expsym_cmds_GCJ=
15380   old_archive_From_new_cmds_GCJ=
15381   old_archive_from_expsyms_cmds_GCJ=
15382   export_dynamic_flag_spec_GCJ=
15383   whole_archive_flag_spec_GCJ=
15384   thread_safe_flag_spec_GCJ=
15385   hardcode_libdir_flag_spec_GCJ=
15386   hardcode_libdir_flag_spec_ld_GCJ=
15387   hardcode_libdir_separator_GCJ=
15388   hardcode_direct_GCJ=no
15389   hardcode_minus_L_GCJ=no
15390   hardcode_shlibpath_var_GCJ=unsupported
15391   link_all_deplibs_GCJ=unknown
15392   hardcode_automatic_GCJ=no
15393   module_cmds_GCJ=
15394   module_expsym_cmds_GCJ=
15395   always_export_symbols_GCJ=no
15396   export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15397   # include_expsyms should be a list of space-separated symbols to be *always*
15398   # included in the symbol list
15399   include_expsyms_GCJ=
15400   # exclude_expsyms can be an extended regexp of symbols to exclude
15401   # it will be wrapped by ` (' and `)$', so one must not match beginning or
15402   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
15403   # as well as any symbol that contains `d'.
15404   exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
15405   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
15406   # platforms (ab)use it in PIC code, but their linkers get confused if
15407   # the symbol is explicitly referenced.  Since portable code cannot
15408   # rely on this symbol name, it's probably fine to never include it in
15409   # preloaded symbol tables.
15410   extract_expsyms_cmds=
15411
15412   case $host_os in
15413   cygwin* | mingw* | pw32*)
15414     # FIXME: the MSVC++ port hasn't been tested in a loooong time
15415     # When not using gcc, we currently assume that we are using
15416     # Microsoft Visual C++.
15417     if test "$GCC" != yes; then
15418       with_gnu_ld=no
15419     fi
15420     ;;
15421   openbsd*)
15422     with_gnu_ld=no
15423     ;;
15424   esac
15425
15426   ld_shlibs_GCJ=yes
15427   if test "$with_gnu_ld" = yes; then
15428     # If archive_cmds runs LD, not CC, wlarc should be empty
15429     wlarc='${wl}'
15430
15431     # See if GNU ld supports shared libraries.
15432     case $host_os in
15433     aix3* | aix4* | aix5*)
15434       # On AIX/PPC, the GNU linker is very broken
15435       if test "$host_cpu" != ia64; then
15436         ld_shlibs_GCJ=no
15437         cat <<EOF 1>&2
15438
15439 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
15440 *** to be unable to reliably create shared libraries on AIX.
15441 *** Therefore, libtool is disabling shared libraries support.  If you
15442 *** really care for shared libraries, you may want to modify your PATH
15443 *** so that a non-GNU linker is found, and then restart.
15444
15445 EOF
15446       fi
15447       ;;
15448
15449     amigaos*)
15450       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)'
15451       hardcode_libdir_flag_spec_GCJ='-L$libdir'
15452       hardcode_minus_L_GCJ=yes
15453
15454       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
15455       # that the semantics of dynamic libraries on AmigaOS, at least up
15456       # to version 4, is to share data among multiple programs linked
15457       # with the same dynamic library.  Since this doesn't match the
15458       # behavior of shared libraries on other platforms, we can't use
15459       # them.
15460       ld_shlibs_GCJ=no
15461       ;;
15462
15463     beos*)
15464       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15465         allow_undefined_flag_GCJ=unsupported
15466         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
15467         # support --undefined.  This deserves some investigation.  FIXME
15468         archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15469       else
15470         ld_shlibs_GCJ=no
15471       fi
15472       ;;
15473
15474     cygwin* | mingw* | pw32*)
15475       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
15476       # as there is no search path for DLLs.
15477       hardcode_libdir_flag_spec_GCJ='-L$libdir'
15478       allow_undefined_flag_GCJ=unsupported
15479       always_export_symbols_GCJ=no
15480       enable_shared_with_static_runtimes_GCJ=yes
15481       export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
15482
15483       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
15484         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
15485         # If the export-symbols file already is a .def file (1st line
15486         # is EXPORTS), use it as is; otherwise, prepend...
15487         archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15488           cp $export_symbols $output_objdir/$soname.def;
15489         else
15490           echo EXPORTS > $output_objdir/$soname.def;
15491           cat $export_symbols >> $output_objdir/$soname.def;
15492         fi~
15493         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
15494       else
15495         ld_shlibs=no
15496       fi
15497       ;;
15498
15499     netbsd*)
15500       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15501         archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
15502         wlarc=
15503       else
15504         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15505         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15506       fi
15507       ;;
15508
15509     solaris* | sysv5*)
15510       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
15511         ld_shlibs_GCJ=no
15512         cat <<EOF 1>&2
15513
15514 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
15515 *** create shared libraries on Solaris systems.  Therefore, libtool
15516 *** is disabling shared libraries support.  We urge you to upgrade GNU
15517 *** binutils to release 2.9.1 or newer.  Another option is to modify
15518 *** your PATH or compiler configuration so that the native linker is
15519 *** used, and then restart.
15520
15521 EOF
15522       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15523         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15524         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15525       else
15526         ld_shlibs_GCJ=no
15527       fi
15528       ;;
15529
15530     sunos4*)
15531       archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15532       wlarc=
15533       hardcode_direct_GCJ=yes
15534       hardcode_shlibpath_var_GCJ=no
15535       ;;
15536
15537     *)
15538       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15539         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15540         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15541       else
15542         ld_shlibs_GCJ=no
15543       fi
15544       ;;
15545     esac
15546
15547     if test "$ld_shlibs_GCJ" = yes; then
15548       runpath_var=LD_RUN_PATH
15549       hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
15550       export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
15551       # ancient GNU ld didn't support --whole-archive et. al.
15552       if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
15553         whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15554       else
15555         whole_archive_flag_spec_GCJ=
15556       fi
15557     fi
15558   else
15559     # PORTME fill in a description of your system's linker (not GNU ld)
15560     case $host_os in
15561     aix3*)
15562       allow_undefined_flag_GCJ=unsupported
15563       always_export_symbols_GCJ=yes
15564       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'
15565       # Note: this linker hardcodes the directories in LIBPATH if there
15566       # are no directories specified by -L.
15567       hardcode_minus_L_GCJ=yes
15568       if test "$GCC" = yes && test -z "$link_static_flag"; then
15569         # Neither direct hardcoding nor static linking is supported with a
15570         # broken collect2.
15571         hardcode_direct_GCJ=unsupported
15572       fi
15573       ;;
15574
15575     aix4* | aix5*)
15576       if test "$host_cpu" = ia64; then
15577         # On IA64, the linker does run time linking by default, so we don't
15578         # have to do anything special.
15579         aix_use_runtimelinking=no
15580         exp_sym_flag='-Bexport'
15581         no_entry_flag=""
15582       else
15583         # If we're using GNU nm, then we don't want the "-C" option.
15584         # -C means demangle to AIX nm, but means don't demangle with GNU nm
15585         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
15586           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'
15587         else
15588           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'
15589         fi
15590         aix_use_runtimelinking=no
15591
15592         # Test if we are trying to use run time linking or normal
15593         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
15594         # need to do runtime linking.
15595         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
15596           for ld_flag in $LDFLAGS; do
15597           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
15598             aix_use_runtimelinking=yes
15599             break
15600           fi
15601           done
15602         esac
15603
15604         exp_sym_flag='-bexport'
15605         no_entry_flag='-bnoentry'
15606       fi
15607
15608       # When large executables or shared objects are built, AIX ld can
15609       # have problems creating the table of contents.  If linking a library
15610       # or program results in "error TOC overflow" add -mminimal-toc to
15611       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
15612       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15613
15614       archive_cmds_GCJ=''
15615       hardcode_direct_GCJ=yes
15616       hardcode_libdir_separator_GCJ=':'
15617       link_all_deplibs_GCJ=yes
15618
15619       if test "$GCC" = yes; then
15620         case $host_os in aix4.012|aix4.012.*)
15621         # We only want to do this on AIX 4.2 and lower, the check
15622         # below for broken collect2 doesn't work under 4.3+
15623           collect2name=`${CC} -print-prog-name=collect2`
15624           if test -f "$collect2name" && \
15625            strings "$collect2name" | grep resolve_lib_name >/dev/null
15626           then
15627           # We have reworked collect2
15628           hardcode_direct_GCJ=yes
15629           else
15630           # We have old collect2
15631           hardcode_direct_GCJ=unsupported
15632           # It fails to find uninstalled libraries when the uninstalled
15633           # path is not listed in the libpath.  Setting hardcode_minus_L
15634           # to unsupported forces relinking
15635           hardcode_minus_L_GCJ=yes
15636           hardcode_libdir_flag_spec_GCJ='-L$libdir'
15637           hardcode_libdir_separator_GCJ=
15638           fi
15639         esac
15640         shared_flag='-shared'
15641       else
15642         # not using gcc
15643         if test "$host_cpu" = ia64; then
15644         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15645         # chokes on -Wl,-G. The following line is correct:
15646           shared_flag='-G'
15647         else
15648         if test "$aix_use_runtimelinking" = yes; then
15649             shared_flag='${wl}-G'
15650           else
15651             shared_flag='${wl}-bM:SRE'
15652         fi
15653         fi
15654       fi
15655
15656       # It seems that -bexpall does not export symbols beginning with
15657       # underscore (_), so it is better to generate a list of symbols to export.
15658       always_export_symbols_GCJ=yes
15659       if test "$aix_use_runtimelinking" = yes; then
15660         # Warning - without using the other runtime loading flags (-brtl),
15661         # -berok will link without error, but may produce a broken library.
15662         allow_undefined_flag_GCJ='-berok'
15663        # Determine the default libpath from the value encoded in an empty executable.
15664        cat >conftest.$ac_ext <<_ACEOF
15665 #line $LINENO "configure"
15666 /* confdefs.h.  */
15667 _ACEOF
15668 cat confdefs.h >>conftest.$ac_ext
15669 cat >>conftest.$ac_ext <<_ACEOF
15670 /* end confdefs.h.  */
15671
15672 int
15673 main ()
15674 {
15675
15676   ;
15677   return 0;
15678 }
15679 _ACEOF
15680 rm -f conftest.$ac_objext conftest$ac_exeext
15681 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15682   (eval $ac_link) 2>&5
15683   ac_status=$?
15684   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15685   (exit $ac_status); } &&
15686          { ac_try='test -s conftest$ac_exeext'
15687   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15688   (eval $ac_try) 2>&5
15689   ac_status=$?
15690   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15691   (exit $ac_status); }; }; then
15692
15693 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
15694 }'`
15695 # Check for a 64-bit object if we didn't find anything.
15696 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; }
15697 }'`; fi
15698 else
15699   echo "$as_me: failed program was:" >&5
15700 sed 's/^/| /' conftest.$ac_ext >&5
15701
15702 fi
15703 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15704 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15705
15706        hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
15707         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"
15708        else
15709         if test "$host_cpu" = ia64; then
15710           hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
15711           allow_undefined_flag_GCJ="-z nodefs"
15712           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"
15713         else
15714          # Determine the default libpath from the value encoded in an empty executable.
15715          cat >conftest.$ac_ext <<_ACEOF
15716 #line $LINENO "configure"
15717 /* confdefs.h.  */
15718 _ACEOF
15719 cat confdefs.h >>conftest.$ac_ext
15720 cat >>conftest.$ac_ext <<_ACEOF
15721 /* end confdefs.h.  */
15722
15723 int
15724 main ()
15725 {
15726
15727   ;
15728   return 0;
15729 }
15730 _ACEOF
15731 rm -f conftest.$ac_objext conftest$ac_exeext
15732 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15733   (eval $ac_link) 2>&5
15734   ac_status=$?
15735   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15736   (exit $ac_status); } &&
15737          { ac_try='test -s conftest$ac_exeext'
15738   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15739   (eval $ac_try) 2>&5
15740   ac_status=$?
15741   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15742   (exit $ac_status); }; }; then
15743
15744 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
15745 }'`
15746 # Check for a 64-bit object if we didn't find anything.
15747 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; }
15748 }'`; fi
15749 else
15750   echo "$as_me: failed program was:" >&5
15751 sed 's/^/| /' conftest.$ac_ext >&5
15752
15753 fi
15754 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15755 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15756
15757          hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
15758           # Warning - without using the other run time loading flags,
15759           # -berok will link without error, but may produce a broken library.
15760           no_undefined_flag_GCJ=' ${wl}-bernotok'
15761           allow_undefined_flag_GCJ=' ${wl}-berok'
15762           # -bexpall does not export symbols beginning with underscore (_)
15763           always_export_symbols_GCJ=yes
15764           # Exported symbols can be pulled into shared objects from archives
15765           whole_archive_flag_spec_GCJ=' '
15766           archive_cmds_need_lc_GCJ=yes
15767           # This is similar to how AIX traditionally builds it's shared libraries.
15768           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'
15769         fi
15770       fi
15771       ;;
15772
15773     amigaos*)
15774       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)'
15775       hardcode_libdir_flag_spec_GCJ='-L$libdir'
15776       hardcode_minus_L_GCJ=yes
15777       # see comment about different semantics on the GNU ld section
15778       ld_shlibs_GCJ=no
15779       ;;
15780
15781     bsdi4*)
15782       export_dynamic_flag_spec_GCJ=-rdynamic
15783       ;;
15784
15785     cygwin* | mingw* | pw32*)
15786       # When not using gcc, we currently assume that we are using
15787       # Microsoft Visual C++.
15788       # hardcode_libdir_flag_spec is actually meaningless, as there is
15789       # no search path for DLLs.
15790       hardcode_libdir_flag_spec_GCJ=' '
15791       allow_undefined_flag_GCJ=unsupported
15792       # Tell ltmain to make .lib files, not .a files.
15793       libext=lib
15794       # Tell ltmain to make .dll files, not .so files.
15795       shrext=".dll"
15796       # FIXME: Setting linknames here is a bad hack.
15797       archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
15798       # The linker will automatically build a .lib file if we build a DLL.
15799       old_archive_From_new_cmds_GCJ='true'
15800       # FIXME: Should let the user specify the lib program.
15801       old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
15802       fix_srcfile_path='`cygpath -w "$srcfile"`'
15803       enable_shared_with_static_runtimes_GCJ=yes
15804       ;;
15805
15806     darwin* | rhapsody*)
15807     if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
15808       archive_cmds_need_lc_GCJ=no
15809       case "$host_os" in
15810       rhapsody* | darwin1.[012])
15811         allow_undefined_flag_GCJ='-undefined suppress'
15812         ;;
15813       *) # Darwin 1.3 on
15814         test -z ${LD_TWOLEVEL_NAMESPACE} && allow_undefined_flag_GCJ='-flat_namespace -undefined suppress'
15815         ;;
15816       esac
15817       # FIXME: Relying on posixy $() will cause problems for
15818       #        cross-compilation, but unfortunately the echo tests do not
15819       #        yet detect zsh echo's removal of \ escapes.  Also zsh mangles
15820       #        `"' quotes if we put them in here... so don't!
15821         lt_int_apple_cc_single_mod=no
15822         output_verbose_link_cmd='echo'
15823         if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
15824           lt_int_apple_cc_single_mod=yes
15825         fi
15826         if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
15827           archive_cmds_GCJ='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
15828         else
15829         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'
15830       fi
15831       module_cmds_GCJ='$CC -bundle ${wl}-bind_at_load $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags'
15832       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
15833         if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
15834           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}'
15835         else
15836           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}'
15837         fi
15838           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}'
15839       hardcode_direct_GCJ=no
15840       hardcode_automatic_GCJ=yes
15841       hardcode_shlibpath_var_GCJ=unsupported
15842       whole_archive_flag_spec_GCJ='-all_load $convenience'
15843       link_all_deplibs_GCJ=yes
15844     fi
15845       ;;
15846
15847     dgux*)
15848       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15849       hardcode_libdir_flag_spec_GCJ='-L$libdir'
15850       hardcode_shlibpath_var_GCJ=no
15851       ;;
15852
15853     freebsd1*)
15854       ld_shlibs_GCJ=no
15855       ;;
15856
15857     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
15858     # support.  Future versions do this automatically, but an explicit c++rt0.o
15859     # does not break anything, and helps significantly (at the cost of a little
15860     # extra space).
15861     freebsd2.2*)
15862       archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
15863       hardcode_libdir_flag_spec_GCJ='-R$libdir'
15864       hardcode_direct_GCJ=yes
15865       hardcode_shlibpath_var_GCJ=no
15866       ;;
15867
15868     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
15869     freebsd2*)
15870       archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15871       hardcode_direct_GCJ=yes
15872       hardcode_minus_L_GCJ=yes
15873       hardcode_shlibpath_var_GCJ=no
15874       ;;
15875
15876     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
15877     freebsd*)
15878       archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
15879       hardcode_libdir_flag_spec_GCJ='-R$libdir'
15880       hardcode_direct_GCJ=yes
15881       hardcode_shlibpath_var_GCJ=no
15882       ;;
15883
15884     hpux9*)
15885       if test "$GCC" = yes; then
15886         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'
15887       else
15888         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'
15889       fi
15890       hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
15891       hardcode_libdir_separator_GCJ=:
15892       hardcode_direct_GCJ=yes
15893
15894       # hardcode_minus_L: Not really in the search PATH,
15895       # but as the default location of the library.
15896       hardcode_minus_L_GCJ=yes
15897       export_dynamic_flag_spec_GCJ='${wl}-E'
15898       ;;
15899
15900     hpux10* | hpux11*)
15901       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15902         case "$host_cpu" in
15903         hppa*64*|ia64*)
15904           archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15905           ;;
15906         *)
15907           archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15908           ;;
15909         esac
15910       else
15911         case "$host_cpu" in
15912         hppa*64*|ia64*)
15913           archive_cmds_GCJ='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
15914           ;;
15915         *)
15916           archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15917           ;;
15918         esac
15919       fi
15920       if test "$with_gnu_ld" = no; then
15921         case "$host_cpu" in
15922         hppa*64*)
15923           hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
15924           hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
15925           hardcode_libdir_separator_GCJ=:
15926           hardcode_direct_GCJ=no
15927           hardcode_shlibpath_var_GCJ=no
15928           ;;
15929         ia64*)
15930           hardcode_libdir_flag_spec_GCJ='-L$libdir'
15931           hardcode_direct_GCJ=no
15932           hardcode_shlibpath_var_GCJ=no
15933
15934           # hardcode_minus_L: Not really in the search PATH,
15935           # but as the default location of the library.
15936           hardcode_minus_L_GCJ=yes
15937           ;;
15938         *)
15939           hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
15940           hardcode_libdir_separator_GCJ=:
15941           hardcode_direct_GCJ=yes
15942           export_dynamic_flag_spec_GCJ='${wl}-E'
15943
15944           # hardcode_minus_L: Not really in the search PATH,
15945           # but as the default location of the library.
15946           hardcode_minus_L_GCJ=yes
15947           ;;
15948         esac
15949       fi
15950       ;;
15951
15952     irix5* | irix6* | nonstopux*)
15953       if test "$GCC" = yes; then
15954         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'
15955       else
15956         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'
15957         hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
15958       fi
15959       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
15960       hardcode_libdir_separator_GCJ=:
15961       link_all_deplibs_GCJ=yes
15962       ;;
15963
15964     netbsd*)
15965       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15966         archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
15967       else
15968         archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
15969       fi
15970       hardcode_libdir_flag_spec_GCJ='-R$libdir'
15971       hardcode_direct_GCJ=yes
15972       hardcode_shlibpath_var_GCJ=no
15973       ;;
15974
15975     newsos6)
15976       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15977       hardcode_direct_GCJ=yes
15978       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
15979       hardcode_libdir_separator_GCJ=:
15980       hardcode_shlibpath_var_GCJ=no
15981       ;;
15982
15983     openbsd*)
15984       hardcode_direct_GCJ=yes
15985       hardcode_shlibpath_var_GCJ=no
15986       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15987         archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15988         hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
15989         export_dynamic_flag_spec_GCJ='${wl}-E'
15990       else
15991        case $host_os in
15992          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
15993            archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15994            hardcode_libdir_flag_spec_GCJ='-R$libdir'
15995            ;;
15996          *)
15997            archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15998            hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
15999            ;;
16000        esac
16001       fi
16002       ;;
16003
16004     os2*)
16005       hardcode_libdir_flag_spec_GCJ='-L$libdir'
16006       hardcode_minus_L_GCJ=yes
16007       allow_undefined_flag_GCJ=unsupported
16008       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'
16009       old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
16010       ;;
16011
16012     osf3*)
16013       if test "$GCC" = yes; then
16014         allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
16015         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'
16016       else
16017         allow_undefined_flag_GCJ=' -expect_unresolved \*'
16018         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'
16019       fi
16020       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16021       hardcode_libdir_separator_GCJ=:
16022       ;;
16023
16024     osf4* | osf5*)      # as osf3* with the addition of -msym flag
16025       if test "$GCC" = yes; then
16026         allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
16027         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'
16028         hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16029       else
16030         allow_undefined_flag_GCJ=' -expect_unresolved \*'
16031         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'
16032         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~
16033         $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'
16034
16035         # Both c and cxx compiler support -rpath directly
16036         hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
16037       fi
16038       hardcode_libdir_separator_GCJ=:
16039       ;;
16040
16041     sco3.2v5*)
16042       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16043       hardcode_shlibpath_var_GCJ=no
16044       export_dynamic_flag_spec_GCJ='${wl}-Bexport'
16045       runpath_var=LD_RUN_PATH
16046       hardcode_runpath_var=yes
16047       ;;
16048
16049     solaris*)
16050       no_undefined_flag_GCJ=' -z text'
16051       if test "$GCC" = yes; then
16052         archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16053         archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16054           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
16055       else
16056         archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16057         archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16058         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
16059       fi
16060       hardcode_libdir_flag_spec_GCJ='-R$libdir'
16061       hardcode_shlibpath_var_GCJ=no
16062       case $host_os in
16063       solaris2.[0-5] | solaris2.[0-5].*) ;;
16064       *) # Supported since Solaris 2.6 (maybe 2.5.1?)
16065         whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
16066       esac
16067       link_all_deplibs_GCJ=yes
16068       ;;
16069
16070     sunos4*)
16071       if test "x$host_vendor" = xsequent; then
16072         # Use $CC to link under sequent, because it throws in some extra .o
16073         # files that make .init and .fini sections work.
16074         archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
16075       else
16076         archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
16077       fi
16078       hardcode_libdir_flag_spec_GCJ='-L$libdir'
16079       hardcode_direct_GCJ=yes
16080       hardcode_minus_L_GCJ=yes
16081       hardcode_shlibpath_var_GCJ=no
16082       ;;
16083
16084     sysv4)
16085       case $host_vendor in
16086         sni)
16087           archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16088           hardcode_direct_GCJ=yes # is this really true???
16089         ;;
16090         siemens)
16091           ## LD is ld it makes a PLAMLIB
16092           ## CC just makes a GrossModule.
16093           archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16094           reload_cmds_GCJ='$CC -r -o $output$reload_objs'
16095           hardcode_direct_GCJ=no
16096         ;;
16097         motorola)
16098           archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16099           hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
16100         ;;
16101       esac
16102       runpath_var='LD_RUN_PATH'
16103       hardcode_shlibpath_var_GCJ=no
16104       ;;
16105
16106     sysv4.3*)
16107       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16108       hardcode_shlibpath_var_GCJ=no
16109       export_dynamic_flag_spec_GCJ='-Bexport'
16110       ;;
16111
16112     sysv4*MP*)
16113       if test -d /usr/nec; then
16114         archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16115         hardcode_shlibpath_var_GCJ=no
16116         runpath_var=LD_RUN_PATH
16117         hardcode_runpath_var=yes
16118         ld_shlibs_GCJ=yes
16119       fi
16120       ;;
16121
16122     sysv4.2uw2*)
16123       archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16124       hardcode_direct_GCJ=yes
16125       hardcode_minus_L_GCJ=no
16126       hardcode_shlibpath_var_GCJ=no
16127       hardcode_runpath_var=yes
16128       runpath_var=LD_RUN_PATH
16129       ;;
16130
16131    sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
16132       no_undefined_flag_GCJ='${wl}-z ${wl}text'
16133       if test "$GCC" = yes; then
16134         archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16135       else
16136         archive_cmds_GCJ='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16137       fi
16138       runpath_var='LD_RUN_PATH'
16139       hardcode_shlibpath_var_GCJ=no
16140       ;;
16141
16142     sysv5*)
16143       no_undefined_flag_GCJ=' -z text'
16144       # $CC -shared without GNU ld will not create a library from C++
16145       # object files and a static libstdc++, better avoid it by now
16146       archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16147       archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16148                 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
16149       hardcode_libdir_flag_spec_GCJ=
16150       hardcode_shlibpath_var_GCJ=no
16151       runpath_var='LD_RUN_PATH'
16152       ;;
16153
16154     uts4*)
16155       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16156       hardcode_libdir_flag_spec_GCJ='-L$libdir'
16157       hardcode_shlibpath_var_GCJ=no
16158       ;;
16159
16160     *)
16161       ld_shlibs_GCJ=no
16162       ;;
16163     esac
16164   fi
16165
16166 echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
16167 echo "${ECHO_T}$ld_shlibs_GCJ" >&6
16168 test "$ld_shlibs_GCJ" = no && can_build_shared=no
16169
16170 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16171 if test "$GCC" = yes; then
16172   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16173 fi
16174
16175 #
16176 # Do we need to explicitly link libc?
16177 #
16178 case "x$archive_cmds_need_lc_GCJ" in
16179 x|xyes)
16180   # Assume -lc should be added
16181   archive_cmds_need_lc_GCJ=yes
16182
16183   if test "$enable_shared" = yes && test "$GCC" = yes; then
16184     case $archive_cmds_GCJ in
16185     *'~'*)
16186       # FIXME: we may have to deal with multi-command sequences.
16187       ;;
16188     '$CC '*)
16189       # Test whether the compiler implicitly links with -lc since on some
16190       # systems, -lgcc has to come before -lc. If gcc already passes -lc
16191       # to ld, don't add -lc before -lgcc.
16192       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
16193 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
16194       $rm conftest*
16195       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16196
16197       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16198   (eval $ac_compile) 2>&5
16199   ac_status=$?
16200   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16201   (exit $ac_status); } 2>conftest.err; then
16202         soname=conftest
16203         lib=conftest
16204         libobjs=conftest.$ac_objext
16205         deplibs=
16206         wl=$lt_prog_compiler_wl_GCJ
16207         compiler_flags=-v
16208         linker_flags=-v
16209         verstring=
16210         output_objdir=.
16211         libname=conftest
16212         lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
16213         allow_undefined_flag_GCJ=
16214         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
16215   (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
16216   ac_status=$?
16217   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16218   (exit $ac_status); }
16219         then
16220           archive_cmds_need_lc_GCJ=no
16221         else
16222           archive_cmds_need_lc_GCJ=yes
16223         fi
16224         allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
16225       else
16226         cat conftest.err 1>&5
16227       fi
16228       $rm conftest*
16229       echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
16230 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6
16231       ;;
16232     esac
16233   fi
16234   ;;
16235 esac
16236
16237 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
16238 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
16239 hardcode_action_GCJ=
16240 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
16241    test -n "$runpath_var GCJ" || \
16242    test "X$hardcode_automatic_GCJ"="Xyes" ; then
16243
16244   # We can hardcode non-existant directories.
16245   if test "$hardcode_direct_GCJ" != no &&
16246      # If the only mechanism to avoid hardcoding is shlibpath_var, we
16247      # have to relink, otherwise we might link with an installed library
16248      # when we should be linking with a yet-to-be-installed one
16249      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
16250      test "$hardcode_minus_L_GCJ" != no; then
16251     # Linking always hardcodes the temporary library directory.
16252     hardcode_action_GCJ=relink
16253   else
16254     # We can link without hardcoding, and we can hardcode nonexisting dirs.
16255     hardcode_action_GCJ=immediate
16256   fi
16257 else
16258   # We cannot hardcode anything, or else we can only hardcode existing
16259   # directories.
16260   hardcode_action_GCJ=unsupported
16261 fi
16262 echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
16263 echo "${ECHO_T}$hardcode_action_GCJ" >&6
16264
16265 if test "$hardcode_action_GCJ" = relink; then
16266   # Fast installation is not supported
16267   enable_fast_install=no
16268 elif test "$shlibpath_overrides_runpath" = yes ||
16269      test "$enable_shared" = no; then
16270   # Fast installation is not necessary
16271   enable_fast_install=needless
16272 fi
16273
16274 striplib=
16275 old_striplib=
16276 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
16277 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
16278 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
16279   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
16280   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
16281   echo "$as_me:$LINENO: result: yes" >&5
16282 echo "${ECHO_T}yes" >&6
16283 else
16284 # FIXME - insert some real tests, host_os isn't really good enough
16285   case $host_os in
16286    darwin*)
16287        if test -n "$STRIP" ; then
16288          striplib="$STRIP -x"
16289          echo "$as_me:$LINENO: result: yes" >&5
16290 echo "${ECHO_T}yes" >&6
16291        else
16292   echo "$as_me:$LINENO: result: no" >&5
16293 echo "${ECHO_T}no" >&6
16294 fi
16295        ;;
16296    *)
16297   echo "$as_me:$LINENO: result: no" >&5
16298 echo "${ECHO_T}no" >&6
16299     ;;
16300   esac
16301 fi
16302
16303 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
16304 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
16305 library_names_spec=
16306 libname_spec='lib$name'
16307 soname_spec=
16308 shrext=".so"
16309 postinstall_cmds=
16310 postuninstall_cmds=
16311 finish_cmds=
16312 finish_eval=
16313 shlibpath_var=
16314 shlibpath_overrides_runpath=unknown
16315 version_type=none
16316 dynamic_linker="$host_os ld.so"
16317 sys_lib_dlsearch_path_spec="/lib /usr/lib"
16318 if test "$GCC" = yes; then
16319   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16320   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
16321     # if the path contains ";" then we assume it to be the separator
16322     # otherwise default to the standard path separator (i.e. ":") - it is
16323     # assumed that no part of a normal pathname contains ";" but that should
16324     # okay in the real world where ";" in dirpaths is itself problematic.
16325     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16326   else
16327     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
16328   fi
16329 else
16330   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
16331 fi
16332 need_lib_prefix=unknown
16333 hardcode_into_libs=no
16334
16335 # when you set need_version to no, make sure it does not cause -set_version
16336 # flags to be left without arguments
16337 need_version=unknown
16338
16339 case $host_os in
16340 aix3*)
16341   version_type=linux
16342   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
16343   shlibpath_var=LIBPATH
16344
16345   # AIX 3 has no versioning support, so we append a major version to the name.
16346   soname_spec='${libname}${release}${shared_ext}$major'
16347   ;;
16348
16349 aix4* | aix5*)
16350   version_type=linux
16351   need_lib_prefix=no
16352   need_version=no
16353   hardcode_into_libs=yes
16354   if test "$host_cpu" = ia64; then
16355     # AIX 5 supports IA64
16356     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16357     shlibpath_var=LD_LIBRARY_PATH
16358   else
16359     # With GCC up to 2.95.x, collect2 would create an import file
16360     # for dependence libraries.  The import file would start with
16361     # the line `#! .'.  This would cause the generated library to
16362     # depend on `.', always an invalid library.  This was fixed in
16363     # development snapshots of GCC prior to 3.0.
16364     case $host_os in
16365       aix4 | aix4.[01] | aix4.[01].*)
16366       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16367            echo ' yes '
16368            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
16369         :
16370       else
16371         can_build_shared=no
16372       fi
16373       ;;
16374     esac
16375     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16376     # soname into executable. Probably we can add versioning support to
16377     # collect2, so additional links can be useful in future.
16378     if test "$aix_use_runtimelinking" = yes; then
16379       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16380       # instead of lib<name>.a to let people know that these are not
16381       # typical AIX shared libraries.
16382       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16383     else
16384       # We preserve .a as extension for shared libraries through AIX4.2
16385       # and later when we are not doing run time linking.
16386       library_names_spec='${libname}${release}.a $libname.a'
16387       soname_spec='${libname}${release}${shared_ext}$major'
16388     fi
16389     shlibpath_var=LIBPATH
16390   fi
16391   ;;
16392
16393 amigaos*)
16394   library_names_spec='$libname.ixlibrary $libname.a'
16395   # Create ${libname}_ixlibrary.a entries in /sys/libs.
16396   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'
16397   ;;
16398
16399 beos*)
16400   library_names_spec='${libname}${shared_ext}'
16401   dynamic_linker="$host_os ld.so"
16402   shlibpath_var=LIBRARY_PATH
16403   ;;
16404
16405 bsdi4*)
16406   version_type=linux
16407   need_version=no
16408   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16409   soname_spec='${libname}${release}${shared_ext}$major'
16410   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16411   shlibpath_var=LD_LIBRARY_PATH
16412   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16413   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16414   # the default ld.so.conf also contains /usr/contrib/lib and
16415   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16416   # libtool to hard-code these into programs
16417   ;;
16418
16419 cygwin* | mingw* | pw32*)
16420   version_type=windows
16421   shrext=".dll"
16422   need_version=no
16423   need_lib_prefix=no
16424
16425   case $GCC,$host_os in
16426   yes,cygwin* | yes,mingw* | yes,pw32*)
16427     library_names_spec='$libname.dll.a'
16428     # DLL is installed to $(libdir)/../bin by postinstall_cmds
16429     postinstall_cmds='base_file=`basename \${file}`~
16430       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
16431       dldir=$destdir/`dirname \$dlpath`~
16432       test -d \$dldir || mkdir -p \$dldir~
16433       $install_prog $dir/$dlname \$dldir/$dlname'
16434     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16435       dlpath=$dir/\$dldll~
16436        $rm \$dlpath'
16437     shlibpath_overrides_runpath=yes
16438
16439     case $host_os in
16440     cygwin*)
16441       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16442       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16443       sys_lib_search_path_spec="/lib /lib/w32api /usr/lib /usr/local/lib"
16444       ;;
16445     mingw*)
16446       # MinGW DLLs use traditional 'lib' prefix
16447       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16448       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16449       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
16450         # It is most probably a Windows format PATH printed by
16451         # mingw gcc, but we are running on Cygwin. Gcc prints its search
16452         # path with ; separators, and with drive letters. We can handle the
16453         # drive letters (cygwin fileutils understands them), so leave them,
16454         # especially as we might pass files found there to a mingw objdump,
16455         # which wouldn't understand a cygwinified path. Ahh.
16456         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16457       else
16458         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
16459       fi
16460       ;;
16461     pw32*)
16462       # pw32 DLLs use 'pw' prefix rather than 'lib'
16463       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
16464       ;;
16465     esac
16466     ;;
16467
16468   *)
16469     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
16470     ;;
16471   esac
16472   dynamic_linker='Win32 ld.exe'
16473   # FIXME: first we should search . and the directory the executable is in
16474   shlibpath_var=PATH
16475   ;;
16476
16477 darwin* | rhapsody*)
16478   dynamic_linker="$host_os dyld"
16479   version_type=darwin
16480   need_lib_prefix=no
16481   need_version=no
16482   # FIXME: Relying on posixy $() will cause problems for
16483   #        cross-compilation, but unfortunately the echo tests do not
16484   #        yet detect zsh echo's removal of \ escapes.
16485   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
16486   soname_spec='${libname}${release}${major}$shared_ext'
16487   shlibpath_overrides_runpath=yes
16488   shlibpath_var=DYLD_LIBRARY_PATH
16489   shrext='$(test .$module = .yes && echo .so || echo .dylib)'
16490   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
16491   if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
16492   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"`
16493   fi
16494   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16495   ;;
16496
16497 dgux*)
16498   version_type=linux
16499   need_lib_prefix=no
16500   need_version=no
16501   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16502   soname_spec='${libname}${release}${shared_ext}$major'
16503   shlibpath_var=LD_LIBRARY_PATH
16504   ;;
16505
16506 freebsd1*)
16507   dynamic_linker=no
16508   ;;
16509
16510 freebsd*)
16511   objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
16512   version_type=freebsd-$objformat
16513   case $version_type in
16514     freebsd-elf*)
16515       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16516       need_version=no
16517       need_lib_prefix=no
16518       ;;
16519     freebsd-*)
16520       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
16521       need_version=yes
16522       ;;
16523   esac
16524   shlibpath_var=LD_LIBRARY_PATH
16525   case $host_os in
16526   freebsd2*)
16527     shlibpath_overrides_runpath=yes
16528     ;;
16529   freebsd3.01* | freebsdelf3.01*)
16530     shlibpath_overrides_runpath=yes
16531     hardcode_into_libs=yes
16532     ;;
16533   *) # from 3.2 on
16534     shlibpath_overrides_runpath=no
16535     hardcode_into_libs=yes
16536     ;;
16537   esac
16538   ;;
16539
16540 gnu*)
16541   version_type=linux
16542   need_lib_prefix=no
16543   need_version=no
16544   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16545   soname_spec='${libname}${release}${shared_ext}$major'
16546   shlibpath_var=LD_LIBRARY_PATH
16547   hardcode_into_libs=yes
16548   ;;
16549
16550 hpux9* | hpux10* | hpux11*)
16551   # Give a soname corresponding to the major version so that dld.sl refuses to
16552   # link against other versions.
16553   version_type=sunos
16554   need_lib_prefix=no
16555   need_version=no
16556   case "$host_cpu" in
16557   ia64*)
16558     shrext='.so'
16559     hardcode_into_libs=yes
16560     dynamic_linker="$host_os dld.so"
16561     shlibpath_var=LD_LIBRARY_PATH
16562     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16563     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16564     soname_spec='${libname}${release}${shared_ext}$major'
16565     if test "X$HPUX_IA64_MODE" = X32; then
16566       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16567     else
16568       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16569     fi
16570     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16571     ;;
16572    hppa*64*)
16573      shrext='.sl'
16574      hardcode_into_libs=yes
16575      dynamic_linker="$host_os dld.sl"
16576      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16577      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16578      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16579      soname_spec='${libname}${release}${shared_ext}$major'
16580      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16581      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16582      ;;
16583    *)
16584     shrext='.sl'
16585     dynamic_linker="$host_os dld.sl"
16586     shlibpath_var=SHLIB_PATH
16587     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16588     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16589     soname_spec='${libname}${release}${shared_ext}$major'
16590     ;;
16591   esac
16592   # HP-UX runs *really* slowly unless shared libraries are mode 555.
16593   postinstall_cmds='chmod 555 $lib'
16594   ;;
16595
16596 irix5* | irix6* | nonstopux*)
16597   case $host_os in
16598     nonstopux*) version_type=nonstopux ;;
16599     *)
16600         if test "$lt_cv_prog_gnu_ld" = yes; then
16601                 version_type=linux
16602         else
16603                 version_type=irix
16604         fi ;;
16605   esac
16606   need_lib_prefix=no
16607   need_version=no
16608   soname_spec='${libname}${release}${shared_ext}$major'
16609   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
16610   case $host_os in
16611   irix5* | nonstopux*)
16612     libsuff= shlibsuff=
16613     ;;
16614   *)
16615     case $LD in # libtool.m4 will add one of these switches to LD
16616     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16617       libsuff= shlibsuff= libmagic=32-bit;;
16618     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16619       libsuff=32 shlibsuff=N32 libmagic=N32;;
16620     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16621       libsuff=64 shlibsuff=64 libmagic=64-bit;;
16622     *) libsuff= shlibsuff= libmagic=never-match;;
16623     esac
16624     ;;
16625   esac
16626   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16627   shlibpath_overrides_runpath=no
16628   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16629   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
16630   hardcode_into_libs=yes
16631   ;;
16632
16633 # No shared lib support for Linux oldld, aout, or coff.
16634 linux*oldld* | linux*aout* | linux*coff*)
16635   dynamic_linker=no
16636   ;;
16637
16638 # This must be Linux ELF.
16639 linux*)
16640   version_type=linux
16641   need_lib_prefix=no
16642   need_version=no
16643   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16644   soname_spec='${libname}${release}${shared_ext}$major'
16645   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16646   shlibpath_var=LD_LIBRARY_PATH
16647   shlibpath_overrides_runpath=no
16648   # This implies no fast_install, which is unacceptable.
16649   # Some rework will be needed to allow for fast_install
16650   # before this can be enabled.
16651   hardcode_into_libs=yes
16652
16653   # We used to test for /lib/ld.so.1 and disable shared libraries on
16654   # powerpc, because MkLinux only supported shared libraries with the
16655   # GNU dynamic linker.  Since this was broken with cross compilers,
16656   # most powerpc-linux boxes support dynamic linking these days and
16657   # people can always --disable-shared, the test was removed, and we
16658   # assume the GNU/Linux dynamic linker is in use.
16659   dynamic_linker='GNU/Linux ld.so'
16660   ;;
16661
16662 netbsd*)
16663   version_type=sunos
16664   need_lib_prefix=no
16665   need_version=no
16666   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16667     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16668     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16669     dynamic_linker='NetBSD (a.out) ld.so'
16670   else
16671     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
16672     soname_spec='${libname}${release}${shared_ext}$major'
16673     dynamic_linker='NetBSD ld.elf_so'
16674   fi
16675   shlibpath_var=LD_LIBRARY_PATH
16676   shlibpath_overrides_runpath=yes
16677   hardcode_into_libs=yes
16678   ;;
16679
16680 newsos6)
16681   version_type=linux
16682   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16683   shlibpath_var=LD_LIBRARY_PATH
16684   shlibpath_overrides_runpath=yes
16685   ;;
16686
16687 nto-qnx)
16688   version_type=linux
16689   need_lib_prefix=no
16690   need_version=no
16691   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16692   soname_spec='${libname}${release}${shared_ext}$major'
16693   shlibpath_var=LD_LIBRARY_PATH
16694   shlibpath_overrides_runpath=yes
16695   ;;
16696
16697 openbsd*)
16698   version_type=sunos
16699   need_lib_prefix=no
16700   need_version=no
16701   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16702   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16703   shlibpath_var=LD_LIBRARY_PATH
16704   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16705     case $host_os in
16706       openbsd2.[89] | openbsd2.[89].*)
16707         shlibpath_overrides_runpath=no
16708         ;;
16709       *)
16710         shlibpath_overrides_runpath=yes
16711         ;;
16712       esac
16713   else
16714     shlibpath_overrides_runpath=yes
16715   fi
16716   ;;
16717
16718 os2*)
16719   libname_spec='$name'
16720   shrext=".dll"
16721   need_lib_prefix=no
16722   library_names_spec='$libname${shared_ext} $libname.a'
16723   dynamic_linker='OS/2 ld.exe'
16724   shlibpath_var=LIBPATH
16725   ;;
16726
16727 osf3* | osf4* | osf5*)
16728   version_type=osf
16729   need_lib_prefix=no
16730   need_version=no
16731   soname_spec='${libname}${release}${shared_ext}$major'
16732   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16733   shlibpath_var=LD_LIBRARY_PATH
16734   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16735   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16736   ;;
16737
16738 sco3.2v5*)
16739   version_type=osf
16740   soname_spec='${libname}${release}${shared_ext}$major'
16741   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16742   shlibpath_var=LD_LIBRARY_PATH
16743   ;;
16744
16745 solaris*)
16746   version_type=linux
16747   need_lib_prefix=no
16748   need_version=no
16749   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16750   soname_spec='${libname}${release}${shared_ext}$major'
16751   shlibpath_var=LD_LIBRARY_PATH
16752   shlibpath_overrides_runpath=yes
16753   hardcode_into_libs=yes
16754   # ldd complains unless libraries are executable
16755   postinstall_cmds='chmod +x $lib'
16756   ;;
16757
16758 sunos4*)
16759   version_type=sunos
16760   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16761   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16762   shlibpath_var=LD_LIBRARY_PATH
16763   shlibpath_overrides_runpath=yes
16764   if test "$with_gnu_ld" = yes; then
16765     need_lib_prefix=no
16766   fi
16767   need_version=yes
16768   ;;
16769
16770 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
16771   version_type=linux
16772   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16773   soname_spec='${libname}${release}${shared_ext}$major'
16774   shlibpath_var=LD_LIBRARY_PATH
16775   case $host_vendor in
16776     sni)
16777       shlibpath_overrides_runpath=no
16778       need_lib_prefix=no
16779       export_dynamic_flag_spec='${wl}-Blargedynsym'
16780       runpath_var=LD_RUN_PATH
16781       ;;
16782     siemens)
16783       need_lib_prefix=no
16784       ;;
16785     motorola)
16786       need_lib_prefix=no
16787       need_version=no
16788       shlibpath_overrides_runpath=no
16789       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16790       ;;
16791   esac
16792   ;;
16793
16794 sysv4*MP*)
16795   if test -d /usr/nec ;then
16796     version_type=linux
16797     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16798     soname_spec='$libname${shared_ext}.$major'
16799     shlibpath_var=LD_LIBRARY_PATH
16800   fi
16801   ;;
16802
16803 uts4*)
16804   version_type=linux
16805   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16806   soname_spec='${libname}${release}${shared_ext}$major'
16807   shlibpath_var=LD_LIBRARY_PATH
16808   ;;
16809
16810 *)
16811   dynamic_linker=no
16812   ;;
16813 esac
16814 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
16815 echo "${ECHO_T}$dynamic_linker" >&6
16816 test "$dynamic_linker" = no && can_build_shared=no
16817
16818 if test "x$enable_dlopen" != xyes; then
16819   enable_dlopen=unknown
16820   enable_dlopen_self=unknown
16821   enable_dlopen_self_static=unknown
16822 else
16823   lt_cv_dlopen=no
16824   lt_cv_dlopen_libs=
16825
16826   case $host_os in
16827   beos*)
16828     lt_cv_dlopen="load_add_on"
16829     lt_cv_dlopen_libs=
16830     lt_cv_dlopen_self=yes
16831     ;;
16832
16833   mingw* | pw32*)
16834     lt_cv_dlopen="LoadLibrary"
16835     lt_cv_dlopen_libs=
16836    ;;
16837
16838   cygwin*)
16839     lt_cv_dlopen="dlopen"
16840     lt_cv_dlopen_libs=
16841    ;;
16842
16843   darwin*)
16844   # if libdl is installed we need to link against it
16845     echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
16846 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
16847 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
16848   echo $ECHO_N "(cached) $ECHO_C" >&6
16849 else
16850   ac_check_lib_save_LIBS=$LIBS
16851 LIBS="-ldl  $LIBS"
16852 cat >conftest.$ac_ext <<_ACEOF
16853 #line $LINENO "configure"
16854 /* confdefs.h.  */
16855 _ACEOF
16856 cat confdefs.h >>conftest.$ac_ext
16857 cat >>conftest.$ac_ext <<_ACEOF
16858 /* end confdefs.h.  */
16859
16860 /* Override any gcc2 internal prototype to avoid an error.  */
16861 #ifdef __cplusplus
16862 extern "C"
16863 #endif
16864 /* We use char because int might match the return type of a gcc2
16865    builtin and then its argument prototype would still apply.  */
16866 char dlopen ();
16867 int
16868 main ()
16869 {
16870 dlopen ();
16871   ;
16872   return 0;
16873 }
16874 _ACEOF
16875 rm -f conftest.$ac_objext conftest$ac_exeext
16876 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16877   (eval $ac_link) 2>&5
16878   ac_status=$?
16879   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16880   (exit $ac_status); } &&
16881          { ac_try='test -s conftest$ac_exeext'
16882   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16883   (eval $ac_try) 2>&5
16884   ac_status=$?
16885   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16886   (exit $ac_status); }; }; then
16887   ac_cv_lib_dl_dlopen=yes
16888 else
16889   echo "$as_me: failed program was:" >&5
16890 sed 's/^/| /' conftest.$ac_ext >&5
16891
16892 ac_cv_lib_dl_dlopen=no
16893 fi
16894 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16895 LIBS=$ac_check_lib_save_LIBS
16896 fi
16897 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
16898 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
16899 if test $ac_cv_lib_dl_dlopen = yes; then
16900   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
16901 else
16902
16903     lt_cv_dlopen="dyld"
16904     lt_cv_dlopen_libs=
16905     lt_cv_dlopen_self=yes
16906
16907 fi
16908
16909    ;;
16910
16911   *)
16912     echo "$as_me:$LINENO: checking for shl_load" >&5
16913 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
16914 if test "${ac_cv_func_shl_load+set}" = set; then
16915   echo $ECHO_N "(cached) $ECHO_C" >&6
16916 else
16917   cat >conftest.$ac_ext <<_ACEOF
16918 #line $LINENO "configure"
16919 /* confdefs.h.  */
16920 _ACEOF
16921 cat confdefs.h >>conftest.$ac_ext
16922 cat >>conftest.$ac_ext <<_ACEOF
16923 /* end confdefs.h.  */
16924 /* System header to define __stub macros and hopefully few prototypes,
16925     which can conflict with char shl_load (); below.
16926     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16927     <limits.h> exists even on freestanding compilers.  */
16928 #ifdef __STDC__
16929 # include <limits.h>
16930 #else
16931 # include <assert.h>
16932 #endif
16933 /* Override any gcc2 internal prototype to avoid an error.  */
16934 #ifdef __cplusplus
16935 extern "C"
16936 {
16937 #endif
16938 /* We use char because int might match the return type of a gcc2
16939    builtin and then its argument prototype would still apply.  */
16940 char shl_load ();
16941 /* The GNU C library defines this for functions which it implements
16942     to always fail with ENOSYS.  Some functions are actually named
16943     something starting with __ and the normal name is an alias.  */
16944 #if defined (__stub_shl_load) || defined (__stub___shl_load)
16945 choke me
16946 #else
16947 char (*f) () = shl_load;
16948 #endif
16949 #ifdef __cplusplus
16950 }
16951 #endif
16952
16953 int
16954 main ()
16955 {
16956 return f != shl_load;
16957   ;
16958   return 0;
16959 }
16960 _ACEOF
16961 rm -f conftest.$ac_objext conftest$ac_exeext
16962 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16963   (eval $ac_link) 2>&5
16964   ac_status=$?
16965   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16966   (exit $ac_status); } &&
16967          { ac_try='test -s conftest$ac_exeext'
16968   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16969   (eval $ac_try) 2>&5
16970   ac_status=$?
16971   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16972   (exit $ac_status); }; }; then
16973   ac_cv_func_shl_load=yes
16974 else
16975   echo "$as_me: failed program was:" >&5
16976 sed 's/^/| /' conftest.$ac_ext >&5
16977
16978 ac_cv_func_shl_load=no
16979 fi
16980 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16981 fi
16982 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
16983 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
16984 if test $ac_cv_func_shl_load = yes; then
16985   lt_cv_dlopen="shl_load"
16986 else
16987   echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
16988 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
16989 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
16990   echo $ECHO_N "(cached) $ECHO_C" >&6
16991 else
16992   ac_check_lib_save_LIBS=$LIBS
16993 LIBS="-ldld  $LIBS"
16994 cat >conftest.$ac_ext <<_ACEOF
16995 #line $LINENO "configure"
16996 /* confdefs.h.  */
16997 _ACEOF
16998 cat confdefs.h >>conftest.$ac_ext
16999 cat >>conftest.$ac_ext <<_ACEOF
17000 /* end confdefs.h.  */
17001
17002 /* Override any gcc2 internal prototype to avoid an error.  */
17003 #ifdef __cplusplus
17004 extern "C"
17005 #endif
17006 /* We use char because int might match the return type of a gcc2
17007    builtin and then its argument prototype would still apply.  */
17008 char shl_load ();
17009 int
17010 main ()
17011 {
17012 shl_load ();
17013   ;
17014   return 0;
17015 }
17016 _ACEOF
17017 rm -f conftest.$ac_objext conftest$ac_exeext
17018 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17019   (eval $ac_link) 2>&5
17020   ac_status=$?
17021   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17022   (exit $ac_status); } &&
17023          { ac_try='test -s conftest$ac_exeext'
17024   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17025   (eval $ac_try) 2>&5
17026   ac_status=$?
17027   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17028   (exit $ac_status); }; }; then
17029   ac_cv_lib_dld_shl_load=yes
17030 else
17031   echo "$as_me: failed program was:" >&5
17032 sed 's/^/| /' conftest.$ac_ext >&5
17033
17034 ac_cv_lib_dld_shl_load=no
17035 fi
17036 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17037 LIBS=$ac_check_lib_save_LIBS
17038 fi
17039 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
17040 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
17041 if test $ac_cv_lib_dld_shl_load = yes; then
17042   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
17043 else
17044   echo "$as_me:$LINENO: checking for dlopen" >&5
17045 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
17046 if test "${ac_cv_func_dlopen+set}" = set; then
17047   echo $ECHO_N "(cached) $ECHO_C" >&6
17048 else
17049   cat >conftest.$ac_ext <<_ACEOF
17050 #line $LINENO "configure"
17051 /* confdefs.h.  */
17052 _ACEOF
17053 cat confdefs.h >>conftest.$ac_ext
17054 cat >>conftest.$ac_ext <<_ACEOF
17055 /* end confdefs.h.  */
17056 /* System header to define __stub macros and hopefully few prototypes,
17057     which can conflict with char dlopen (); below.
17058     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17059     <limits.h> exists even on freestanding compilers.  */
17060 #ifdef __STDC__
17061 # include <limits.h>
17062 #else
17063 # include <assert.h>
17064 #endif
17065 /* Override any gcc2 internal prototype to avoid an error.  */
17066 #ifdef __cplusplus
17067 extern "C"
17068 {
17069 #endif
17070 /* We use char because int might match the return type of a gcc2
17071    builtin and then its argument prototype would still apply.  */
17072 char dlopen ();
17073 /* The GNU C library defines this for functions which it implements
17074     to always fail with ENOSYS.  Some functions are actually named
17075     something starting with __ and the normal name is an alias.  */
17076 #if defined (__stub_dlopen) || defined (__stub___dlopen)
17077 choke me
17078 #else
17079 char (*f) () = dlopen;
17080 #endif
17081 #ifdef __cplusplus
17082 }
17083 #endif
17084
17085 int
17086 main ()
17087 {
17088 return f != dlopen;
17089   ;
17090   return 0;
17091 }
17092 _ACEOF
17093 rm -f conftest.$ac_objext conftest$ac_exeext
17094 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17095   (eval $ac_link) 2>&5
17096   ac_status=$?
17097   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17098   (exit $ac_status); } &&
17099          { ac_try='test -s conftest$ac_exeext'
17100   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17101   (eval $ac_try) 2>&5
17102   ac_status=$?
17103   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17104   (exit $ac_status); }; }; then
17105   ac_cv_func_dlopen=yes
17106 else
17107   echo "$as_me: failed program was:" >&5
17108 sed 's/^/| /' conftest.$ac_ext >&5
17109
17110 ac_cv_func_dlopen=no
17111 fi
17112 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17113 fi
17114 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
17115 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
17116 if test $ac_cv_func_dlopen = yes; then
17117   lt_cv_dlopen="dlopen"
17118 else
17119   echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
17120 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
17121 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
17122   echo $ECHO_N "(cached) $ECHO_C" >&6
17123 else
17124   ac_check_lib_save_LIBS=$LIBS
17125 LIBS="-ldl  $LIBS"
17126 cat >conftest.$ac_ext <<_ACEOF
17127 #line $LINENO "configure"
17128 /* confdefs.h.  */
17129 _ACEOF
17130 cat confdefs.h >>conftest.$ac_ext
17131 cat >>conftest.$ac_ext <<_ACEOF
17132 /* end confdefs.h.  */
17133
17134 /* Override any gcc2 internal prototype to avoid an error.  */
17135 #ifdef __cplusplus
17136 extern "C"
17137 #endif
17138 /* We use char because int might match the return type of a gcc2
17139    builtin and then its argument prototype would still apply.  */
17140 char dlopen ();
17141 int
17142 main ()
17143 {
17144 dlopen ();
17145   ;
17146   return 0;
17147 }
17148 _ACEOF
17149 rm -f conftest.$ac_objext conftest$ac_exeext
17150 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17151   (eval $ac_link) 2>&5
17152   ac_status=$?
17153   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17154   (exit $ac_status); } &&
17155          { ac_try='test -s conftest$ac_exeext'
17156   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17157   (eval $ac_try) 2>&5
17158   ac_status=$?
17159   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17160   (exit $ac_status); }; }; then
17161   ac_cv_lib_dl_dlopen=yes
17162 else
17163   echo "$as_me: failed program was:" >&5
17164 sed 's/^/| /' conftest.$ac_ext >&5
17165
17166 ac_cv_lib_dl_dlopen=no
17167 fi
17168 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17169 LIBS=$ac_check_lib_save_LIBS
17170 fi
17171 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
17172 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
17173 if test $ac_cv_lib_dl_dlopen = yes; then
17174   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17175 else
17176   echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
17177 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
17178 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
17179   echo $ECHO_N "(cached) $ECHO_C" >&6
17180 else
17181   ac_check_lib_save_LIBS=$LIBS
17182 LIBS="-lsvld  $LIBS"
17183 cat >conftest.$ac_ext <<_ACEOF
17184 #line $LINENO "configure"
17185 /* confdefs.h.  */
17186 _ACEOF
17187 cat confdefs.h >>conftest.$ac_ext
17188 cat >>conftest.$ac_ext <<_ACEOF
17189 /* end confdefs.h.  */
17190
17191 /* Override any gcc2 internal prototype to avoid an error.  */
17192 #ifdef __cplusplus
17193 extern "C"
17194 #endif
17195 /* We use char because int might match the return type of a gcc2
17196    builtin and then its argument prototype would still apply.  */
17197 char dlopen ();
17198 int
17199 main ()
17200 {
17201 dlopen ();
17202   ;
17203   return 0;
17204 }
17205 _ACEOF
17206 rm -f conftest.$ac_objext conftest$ac_exeext
17207 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17208   (eval $ac_link) 2>&5
17209   ac_status=$?
17210   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17211   (exit $ac_status); } &&
17212          { ac_try='test -s conftest$ac_exeext'
17213   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17214   (eval $ac_try) 2>&5
17215   ac_status=$?
17216   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17217   (exit $ac_status); }; }; then
17218   ac_cv_lib_svld_dlopen=yes
17219 else
17220   echo "$as_me: failed program was:" >&5
17221 sed 's/^/| /' conftest.$ac_ext >&5
17222
17223 ac_cv_lib_svld_dlopen=no
17224 fi
17225 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17226 LIBS=$ac_check_lib_save_LIBS
17227 fi
17228 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
17229 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
17230 if test $ac_cv_lib_svld_dlopen = yes; then
17231   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
17232 else
17233   echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
17234 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
17235 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
17236   echo $ECHO_N "(cached) $ECHO_C" >&6
17237 else
17238   ac_check_lib_save_LIBS=$LIBS
17239 LIBS="-ldld  $LIBS"
17240 cat >conftest.$ac_ext <<_ACEOF
17241 #line $LINENO "configure"
17242 /* confdefs.h.  */
17243 _ACEOF
17244 cat confdefs.h >>conftest.$ac_ext
17245 cat >>conftest.$ac_ext <<_ACEOF
17246 /* end confdefs.h.  */
17247
17248 /* Override any gcc2 internal prototype to avoid an error.  */
17249 #ifdef __cplusplus
17250 extern "C"
17251 #endif
17252 /* We use char because int might match the return type of a gcc2
17253    builtin and then its argument prototype would still apply.  */
17254 char dld_link ();
17255 int
17256 main ()
17257 {
17258 dld_link ();
17259   ;
17260   return 0;
17261 }
17262 _ACEOF
17263 rm -f conftest.$ac_objext conftest$ac_exeext
17264 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17265   (eval $ac_link) 2>&5
17266   ac_status=$?
17267   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17268   (exit $ac_status); } &&
17269          { ac_try='test -s conftest$ac_exeext'
17270   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17271   (eval $ac_try) 2>&5
17272   ac_status=$?
17273   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17274   (exit $ac_status); }; }; then
17275   ac_cv_lib_dld_dld_link=yes
17276 else
17277   echo "$as_me: failed program was:" >&5
17278 sed 's/^/| /' conftest.$ac_ext >&5
17279
17280 ac_cv_lib_dld_dld_link=no
17281 fi
17282 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17283 LIBS=$ac_check_lib_save_LIBS
17284 fi
17285 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
17286 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
17287 if test $ac_cv_lib_dld_dld_link = yes; then
17288   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
17289 fi
17290
17291
17292 fi
17293
17294
17295 fi
17296
17297
17298 fi
17299
17300
17301 fi
17302
17303
17304 fi
17305
17306     ;;
17307   esac
17308
17309   if test "x$lt_cv_dlopen" != xno; then
17310     enable_dlopen=yes
17311   else
17312     enable_dlopen=no
17313   fi
17314
17315   case $lt_cv_dlopen in
17316   dlopen)
17317     save_CPPFLAGS="$CPPFLAGS"
17318     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
17319
17320     save_LDFLAGS="$LDFLAGS"
17321     eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
17322
17323     save_LIBS="$LIBS"
17324     LIBS="$lt_cv_dlopen_libs $LIBS"
17325
17326     echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
17327 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
17328 if test "${lt_cv_dlopen_self+set}" = set; then
17329   echo $ECHO_N "(cached) $ECHO_C" >&6
17330 else
17331           if test "$cross_compiling" = yes; then :
17332   lt_cv_dlopen_self=cross
17333 else
17334   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17335   lt_status=$lt_dlunknown
17336   cat > conftest.$ac_ext <<EOF
17337 #line 17337 "configure"
17338 #include "confdefs.h"
17339
17340 #if HAVE_DLFCN_H
17341 #include <dlfcn.h>
17342 #endif
17343
17344 #include <stdio.h>
17345
17346 #ifdef RTLD_GLOBAL
17347 #  define LT_DLGLOBAL           RTLD_GLOBAL
17348 #else
17349 #  ifdef DL_GLOBAL
17350 #    define LT_DLGLOBAL         DL_GLOBAL
17351 #  else
17352 #    define LT_DLGLOBAL         0
17353 #  endif
17354 #endif
17355
17356 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17357    find out it does not work in some platform. */
17358 #ifndef LT_DLLAZY_OR_NOW
17359 #  ifdef RTLD_LAZY
17360 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
17361 #  else
17362 #    ifdef DL_LAZY
17363 #      define LT_DLLAZY_OR_NOW          DL_LAZY
17364 #    else
17365 #      ifdef RTLD_NOW
17366 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
17367 #      else
17368 #        ifdef DL_NOW
17369 #          define LT_DLLAZY_OR_NOW      DL_NOW
17370 #        else
17371 #          define LT_DLLAZY_OR_NOW      0
17372 #        endif
17373 #      endif
17374 #    endif
17375 #  endif
17376 #endif
17377
17378 #ifdef __cplusplus
17379 extern "C" void exit (int);
17380 #endif
17381
17382 void fnord() { int i=42;}
17383 int main ()
17384 {
17385   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17386   int status = $lt_dlunknown;
17387
17388   if (self)
17389     {
17390       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
17391       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17392       /* dlclose (self); */
17393     }
17394
17395     exit (status);
17396 }
17397 EOF
17398   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17399   (eval $ac_link) 2>&5
17400   ac_status=$?
17401   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17402   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
17403     (./conftest; exit; ) 2>/dev/null
17404     lt_status=$?
17405     case x$lt_status in
17406       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
17407       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
17408       x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
17409     esac
17410   else :
17411     # compilation failed
17412     lt_cv_dlopen_self=no
17413   fi
17414 fi
17415 rm -fr conftest*
17416
17417
17418 fi
17419 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
17420 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
17421
17422     if test "x$lt_cv_dlopen_self" = xyes; then
17423       LDFLAGS="$LDFLAGS $link_static_flag"
17424       echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
17425 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
17426 if test "${lt_cv_dlopen_self_static+set}" = set; then
17427   echo $ECHO_N "(cached) $ECHO_C" >&6
17428 else
17429           if test "$cross_compiling" = yes; then :
17430   lt_cv_dlopen_self_static=cross
17431 else
17432   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17433   lt_status=$lt_dlunknown
17434   cat > conftest.$ac_ext <<EOF
17435 #line 17435 "configure"
17436 #include "confdefs.h"
17437
17438 #if HAVE_DLFCN_H
17439 #include <dlfcn.h>
17440 #endif
17441
17442 #include <stdio.h>
17443
17444 #ifdef RTLD_GLOBAL
17445 #  define LT_DLGLOBAL           RTLD_GLOBAL
17446 #else
17447 #  ifdef DL_GLOBAL
17448 #    define LT_DLGLOBAL         DL_GLOBAL
17449 #  else
17450 #    define LT_DLGLOBAL         0
17451 #  endif
17452 #endif
17453
17454 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17455    find out it does not work in some platform. */
17456 #ifndef LT_DLLAZY_OR_NOW
17457 #  ifdef RTLD_LAZY
17458 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
17459 #  else
17460 #    ifdef DL_LAZY
17461 #      define LT_DLLAZY_OR_NOW          DL_LAZY
17462 #    else
17463 #      ifdef RTLD_NOW
17464 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
17465 #      else
17466 #        ifdef DL_NOW
17467 #          define LT_DLLAZY_OR_NOW      DL_NOW
17468 #        else
17469 #          define LT_DLLAZY_OR_NOW      0
17470 #        endif
17471 #      endif
17472 #    endif
17473 #  endif
17474 #endif
17475
17476 #ifdef __cplusplus
17477 extern "C" void exit (int);
17478 #endif
17479
17480 void fnord() { int i=42;}
17481 int main ()
17482 {
17483   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17484   int status = $lt_dlunknown;
17485
17486   if (self)
17487     {
17488       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
17489       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17490       /* dlclose (self); */
17491     }
17492
17493     exit (status);
17494 }
17495 EOF
17496   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17497   (eval $ac_link) 2>&5
17498   ac_status=$?
17499   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17500   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
17501     (./conftest; exit; ) 2>/dev/null
17502     lt_status=$?
17503     case x$lt_status in
17504       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
17505       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
17506       x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
17507     esac
17508   else :
17509     # compilation failed
17510     lt_cv_dlopen_self_static=no
17511   fi
17512 fi
17513 rm -fr conftest*
17514
17515
17516 fi
17517 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
17518 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
17519     fi
17520
17521     CPPFLAGS="$save_CPPFLAGS"
17522     LDFLAGS="$save_LDFLAGS"
17523     LIBS="$save_LIBS"
17524     ;;
17525   esac
17526
17527   case $lt_cv_dlopen_self in
17528   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
17529   *) enable_dlopen_self=unknown ;;
17530   esac
17531
17532   case $lt_cv_dlopen_self_static in
17533   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
17534   *) enable_dlopen_self_static=unknown ;;
17535   esac
17536 fi
17537
17538
17539 # The else clause should only fire when bootstrapping the
17540 # libtool distribution, otherwise you forgot to ship ltmain.sh
17541 # with your package, and you will get complaints that there are
17542 # no rules to generate ltmain.sh.
17543 if test -f "$ltmain"; then
17544   # See if we are running on zsh, and set the options which allow our commands through
17545   # without removal of \ escapes.
17546   if test -n "${ZSH_VERSION+set}" ; then
17547     setopt NO_GLOB_SUBST
17548   fi
17549   # Now quote all the things that may contain metacharacters while being
17550   # careful not to overquote the AC_SUBSTed values.  We take copies of the
17551   # variables and quote the copies for generation of the libtool script.
17552   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \
17553     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
17554     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
17555     deplibs_check_method reload_flag reload_cmds need_locks \
17556     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
17557     lt_cv_sys_global_symbol_to_c_name_address \
17558     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
17559     old_postinstall_cmds old_postuninstall_cmds \
17560     compiler_GCJ \
17561     CC_GCJ \
17562     LD_GCJ \
17563     lt_prog_compiler_wl_GCJ \
17564     lt_prog_compiler_pic_GCJ \
17565     lt_prog_compiler_static_GCJ \
17566     lt_prog_compiler_no_builtin_flag_GCJ \
17567     export_dynamic_flag_spec_GCJ \
17568     thread_safe_flag_spec_GCJ \
17569     whole_archive_flag_spec_GCJ \
17570     enable_shared_with_static_runtimes_GCJ \
17571     old_archive_cmds_GCJ \
17572     old_archive_from_new_cmds_GCJ \
17573     predep_objects_GCJ \
17574     postdep_objects_GCJ \
17575     predeps_GCJ \
17576     postdeps_GCJ \
17577     compiler_lib_search_path_GCJ \
17578     archive_cmds_GCJ \
17579     archive_expsym_cmds_GCJ \
17580     postinstall_cmds_GCJ \
17581     postuninstall_cmds_GCJ \
17582     old_archive_from_expsyms_cmds_GCJ \
17583     allow_undefined_flag_GCJ \
17584     no_undefined_flag_GCJ \
17585     export_symbols_cmds_GCJ \
17586     hardcode_libdir_flag_spec_GCJ \
17587     hardcode_libdir_flag_spec_ld_GCJ \
17588     hardcode_libdir_separator_GCJ \
17589     hardcode_automatic_GCJ \
17590     module_cmds_GCJ \
17591     module_expsym_cmds_GCJ \
17592     lt_cv_prog_compiler_c_o_GCJ \
17593     exclude_expsyms_GCJ \
17594     include_expsyms_GCJ; do
17595
17596     case $var in
17597     old_archive_cmds_GCJ | \
17598     old_archive_from_new_cmds_GCJ | \
17599     archive_cmds_GCJ | \
17600     archive_expsym_cmds_GCJ | \
17601     module_cmds_GCJ | \
17602     module_expsym_cmds_GCJ | \
17603     old_archive_from_expsyms_cmds_GCJ | \
17604     export_symbols_cmds_GCJ | \
17605     extract_expsyms_cmds | reload_cmds | finish_cmds | \
17606     postinstall_cmds | postuninstall_cmds | \
17607     old_postinstall_cmds | old_postuninstall_cmds | \
17608     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
17609       # Double-quote double-evaled strings.
17610       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
17611       ;;
17612     *)
17613       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
17614       ;;
17615     esac
17616   done
17617
17618   case $lt_echo in
17619   *'\$0 --fallback-echo"')
17620     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
17621     ;;
17622   esac
17623
17624 cfgfile="$ofile"
17625
17626   cat <<__EOF__ >> "$cfgfile"
17627 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
17628
17629 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17630
17631 # Shell to use when invoking shell scripts.
17632 SHELL=$lt_SHELL
17633
17634 # Whether or not to build shared libraries.
17635 build_libtool_libs=$enable_shared
17636
17637 # Whether or not to build static libraries.
17638 build_old_libs=$enable_static
17639
17640 # Whether or not to add -lc for building shared libraries.
17641 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
17642
17643 # Whether or not to disallow shared libs when runtime libs are static
17644 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
17645
17646 # Whether or not to optimize for fast installation.
17647 fast_install=$enable_fast_install
17648
17649 # The host system.
17650 host_alias=$host_alias
17651 host=$host
17652
17653 # An echo program that does not interpret backslashes.
17654 echo=$lt_echo
17655
17656 # The archiver.
17657 AR=$lt_AR
17658 AR_FLAGS=$lt_AR_FLAGS
17659
17660 # A C compiler.
17661 LTCC=$lt_LTCC
17662
17663 # A language-specific compiler.
17664 CC=$lt_compiler_GCJ
17665
17666 # Is the compiler the GNU C compiler?
17667 with_gcc=$GCC_GCJ
17668
17669 # An ERE matcher.
17670 EGREP=$lt_EGREP
17671
17672 # The linker used to build libraries.
17673 LD=$lt_LD_GCJ
17674
17675 # Whether we need hard or soft links.
17676 LN_S=$lt_LN_S
17677
17678 # A BSD-compatible nm program.
17679 NM=$lt_NM
17680
17681 # A symbol stripping program
17682 STRIP=$STRIP
17683
17684 # Used to examine libraries when file_magic_cmd begins "file"
17685 MAGIC_CMD=$MAGIC_CMD
17686
17687 # Used on cygwin: DLL creation program.
17688 DLLTOOL="$DLLTOOL"
17689
17690 # Used on cygwin: object dumper.
17691 OBJDUMP="$OBJDUMP"
17692
17693 # Used on cygwin: assembler.
17694 AS="$AS"
17695
17696 # The name of the directory that contains temporary libtool files.
17697 objdir=$objdir
17698
17699 # How to create reloadable object files.
17700 reload_flag=$lt_reload_flag
17701 reload_cmds=$lt_reload_cmds
17702
17703 # How to pass a linker flag through the compiler.
17704 wl=$lt_lt_prog_compiler_wl_GCJ
17705
17706 # Object file suffix (normally "o").
17707 objext="$ac_objext"
17708
17709 # Old archive suffix (normally "a").
17710 libext="$libext"
17711
17712 # Shared library suffix (normally ".so").
17713 shrext='$shrext'
17714
17715 # Executable file suffix (normally "").
17716 exeext="$exeext"
17717
17718 # Additional compiler flags for building library objects.
17719 pic_flag=$lt_lt_prog_compiler_pic_GCJ
17720 pic_mode=$pic_mode
17721
17722 # What is the maximum length of a command?
17723 max_cmd_len=$lt_cv_sys_max_cmd_len
17724
17725 # Does compiler simultaneously support -c and -o options?
17726 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
17727
17728 # Must we lock files when doing compilation ?
17729 need_locks=$lt_need_locks
17730
17731 # Do we need the lib prefix for modules?
17732 need_lib_prefix=$need_lib_prefix
17733
17734 # Do we need a version for libraries?
17735 need_version=$need_version
17736
17737 # Whether dlopen is supported.
17738 dlopen_support=$enable_dlopen
17739
17740 # Whether dlopen of programs is supported.
17741 dlopen_self=$enable_dlopen_self
17742
17743 # Whether dlopen of statically linked programs is supported.
17744 dlopen_self_static=$enable_dlopen_self_static
17745
17746 # Compiler flag to prevent dynamic linking.
17747 link_static_flag=$lt_lt_prog_compiler_static_GCJ
17748
17749 # Compiler flag to turn off builtin functions.
17750 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
17751
17752 # Compiler flag to allow reflexive dlopens.
17753 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
17754
17755 # Compiler flag to generate shared objects directly from archives.
17756 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
17757
17758 # Compiler flag to generate thread-safe objects.
17759 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
17760
17761 # Library versioning type.
17762 version_type=$version_type
17763
17764 # Format of library name prefix.
17765 libname_spec=$lt_libname_spec
17766
17767 # List of archive names.  First name is the real one, the rest are links.
17768 # The last name is the one that the linker finds with -lNAME.
17769 library_names_spec=$lt_library_names_spec
17770
17771 # The coded name of the library, if different from the real name.
17772 soname_spec=$lt_soname_spec
17773
17774 # Commands used to build and install an old-style archive.
17775 RANLIB=$lt_RANLIB
17776 old_archive_cmds=$lt_old_archive_cmds_GCJ
17777 old_postinstall_cmds=$lt_old_postinstall_cmds
17778 old_postuninstall_cmds=$lt_old_postuninstall_cmds
17779
17780 # Create an old-style archive from a shared archive.
17781 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
17782
17783 # Create a temporary old-style archive to link instead of a shared archive.
17784 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
17785
17786 # Commands used to build and install a shared archive.
17787 archive_cmds=$lt_archive_cmds_GCJ
17788 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
17789 postinstall_cmds=$lt_postinstall_cmds
17790 postuninstall_cmds=$lt_postuninstall_cmds
17791
17792 # Commands used to build a loadable module (assumed same as above if empty)
17793 module_cmds=$lt_module_cmds_GCJ
17794 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
17795
17796 # Commands to strip libraries.
17797 old_striplib=$lt_old_striplib
17798 striplib=$lt_striplib
17799
17800 # Dependencies to place before the objects being linked to create a
17801 # shared library.
17802 predep_objects=$lt_predep_objects_GCJ
17803
17804 # Dependencies to place after the objects being linked to create a
17805 # shared library.
17806 postdep_objects=$lt_postdep_objects_GCJ
17807
17808 # Dependencies to place before the objects being linked to create a
17809 # shared library.
17810 predeps=$lt_predeps_GCJ
17811
17812 # Dependencies to place after the objects being linked to create a
17813 # shared library.
17814 postdeps=$lt_postdeps_GCJ
17815
17816 # The library search path used internally by the compiler when linking
17817 # a shared library.
17818 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
17819
17820 # Method to check whether dependent libraries are shared objects.
17821 deplibs_check_method=$lt_deplibs_check_method
17822
17823 # Command to use when deplibs_check_method == file_magic.
17824 file_magic_cmd=$lt_file_magic_cmd
17825
17826 # Flag that allows shared libraries with undefined symbols to be built.
17827 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
17828
17829 # Flag that forces no undefined symbols.
17830 no_undefined_flag=$lt_no_undefined_flag_GCJ
17831
17832 # Commands used to finish a libtool library installation in a directory.
17833 finish_cmds=$lt_finish_cmds
17834
17835 # Same as above, but a single script fragment to be evaled but not shown.
17836 finish_eval=$lt_finish_eval
17837
17838 # Take the output of nm and produce a listing of raw symbols and C names.
17839 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
17840
17841 # Transform the output of nm in a proper C declaration
17842 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
17843
17844 # Transform the output of nm in a C name address pair
17845 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
17846
17847 # This is the shared library runtime path variable.
17848 runpath_var=$runpath_var
17849
17850 # This is the shared library path variable.
17851 shlibpath_var=$shlibpath_var
17852
17853 # Is shlibpath searched before the hard-coded library search path?
17854 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
17855
17856 # How to hardcode a shared library path into an executable.
17857 hardcode_action=$hardcode_action_GCJ
17858
17859 # Whether we should hardcode library paths into libraries.
17860 hardcode_into_libs=$hardcode_into_libs
17861
17862 # Flag to hardcode \$libdir into a binary during linking.
17863 # This must work even if \$libdir does not exist.
17864 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
17865
17866 # If ld is used when linking, flag to hardcode \$libdir into
17867 # a binary during linking. This must work even if \$libdir does
17868 # not exist.
17869 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
17870
17871 # Whether we need a single -rpath flag with a separated argument.
17872 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
17873
17874 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
17875 # resulting binary.
17876 hardcode_direct=$hardcode_direct_GCJ
17877
17878 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
17879 # resulting binary.
17880 hardcode_minus_L=$hardcode_minus_L_GCJ
17881
17882 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
17883 # the resulting binary.
17884 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
17885
17886 # Set to yes if building a shared library automatically hardcodes DIR into the library
17887 # and all subsequent libraries and executables linked against it.
17888 hardcode_automatic=$hardcode_automatic_GCJ
17889
17890 # Variables whose values should be saved in libtool wrapper scripts and
17891 # restored at relink time.
17892 variables_saved_for_relink="$variables_saved_for_relink"
17893
17894 # Whether libtool must link a program against all its dependency libraries.
17895 link_all_deplibs=$link_all_deplibs_GCJ
17896
17897 # Compile-time system search path for libraries
17898 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
17899
17900 # Run-time system search path for libraries
17901 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
17902
17903 # Fix the shell variable \$srcfile for the compiler.
17904 fix_srcfile_path="$fix_srcfile_path_GCJ"
17905
17906 # Set to yes if exported symbols are required.
17907 always_export_symbols=$always_export_symbols_GCJ
17908
17909 # The commands to list exported symbols.
17910 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
17911
17912 # The commands to extract the exported symbol list from a shared archive.
17913 extract_expsyms_cmds=$lt_extract_expsyms_cmds
17914
17915 # Symbols that should not be listed in the preloaded symbols.
17916 exclude_expsyms=$lt_exclude_expsyms_GCJ
17917
17918 # Symbols that must always be exported.
17919 include_expsyms=$lt_include_expsyms_GCJ
17920
17921 # ### END LIBTOOL TAG CONFIG: $tagname
17922
17923 __EOF__
17924
17925
17926 else
17927   # If there is no Makefile yet, we rely on a make rule to execute
17928   # `config.status --recheck' to rerun these tests and create the
17929   # libtool script then.
17930   test -f Makefile && make "$ltmain"
17931 fi
17932
17933
17934 ac_ext=c
17935 ac_cpp='$CPP $CPPFLAGS'
17936 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17937 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17938 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17939
17940 CC="$lt_save_CC"
17941
17942         else
17943           tagname=""
17944         fi
17945         ;;
17946
17947       RC)
17948
17949
17950
17951 # Source file extension for RC test sources.
17952 ac_ext=rc
17953
17954 # Object file extension for compiled RC test sources.
17955 objext=o
17956 objext_RC=$objext
17957
17958 # Code to be used in simple compile tests
17959 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
17960
17961 # Code to be used in simple link tests
17962 lt_simple_link_test_code="$lt_simple_compile_test_code"
17963
17964 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
17965
17966 # If no C compiler was specified, use CC.
17967 LTCC=${LTCC-"$CC"}
17968
17969 # Allow CC to be a program name with arguments.
17970 compiler=$CC
17971
17972
17973 # Allow CC to be a program name with arguments.
17974 lt_save_CC="$CC"
17975 CC=${RC-"windres"}
17976 compiler=$CC
17977 compiler_RC=$CC
17978 lt_cv_prog_compiler_c_o_RC=yes
17979
17980 # The else clause should only fire when bootstrapping the
17981 # libtool distribution, otherwise you forgot to ship ltmain.sh
17982 # with your package, and you will get complaints that there are
17983 # no rules to generate ltmain.sh.
17984 if test -f "$ltmain"; then
17985   # See if we are running on zsh, and set the options which allow our commands through
17986   # without removal of \ escapes.
17987   if test -n "${ZSH_VERSION+set}" ; then
17988     setopt NO_GLOB_SUBST
17989   fi
17990   # Now quote all the things that may contain metacharacters while being
17991   # careful not to overquote the AC_SUBSTed values.  We take copies of the
17992   # variables and quote the copies for generation of the libtool script.
17993   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \
17994     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
17995     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
17996     deplibs_check_method reload_flag reload_cmds need_locks \
17997     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
17998     lt_cv_sys_global_symbol_to_c_name_address \
17999     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18000     old_postinstall_cmds old_postuninstall_cmds \
18001     compiler_RC \
18002     CC_RC \
18003     LD_RC \
18004     lt_prog_compiler_wl_RC \
18005     lt_prog_compiler_pic_RC \
18006     lt_prog_compiler_static_RC \
18007     lt_prog_compiler_no_builtin_flag_RC \
18008     export_dynamic_flag_spec_RC \
18009     thread_safe_flag_spec_RC \
18010     whole_archive_flag_spec_RC \
18011     enable_shared_with_static_runtimes_RC \
18012     old_archive_cmds_RC \
18013     old_archive_from_new_cmds_RC \
18014     predep_objects_RC \
18015     postdep_objects_RC \
18016     predeps_RC \
18017     postdeps_RC \
18018     compiler_lib_search_path_RC \
18019     archive_cmds_RC \
18020     archive_expsym_cmds_RC \
18021     postinstall_cmds_RC \
18022     postuninstall_cmds_RC \
18023     old_archive_from_expsyms_cmds_RC \
18024     allow_undefined_flag_RC \
18025     no_undefined_flag_RC \
18026     export_symbols_cmds_RC \
18027     hardcode_libdir_flag_spec_RC \
18028     hardcode_libdir_flag_spec_ld_RC \
18029     hardcode_libdir_separator_RC \
18030     hardcode_automatic_RC \
18031     module_cmds_RC \
18032     module_expsym_cmds_RC \
18033     lt_cv_prog_compiler_c_o_RC \
18034     exclude_expsyms_RC \
18035     include_expsyms_RC; do
18036
18037     case $var in
18038     old_archive_cmds_RC | \
18039     old_archive_from_new_cmds_RC | \
18040     archive_cmds_RC | \
18041     archive_expsym_cmds_RC | \
18042     module_cmds_RC | \
18043     module_expsym_cmds_RC | \
18044     old_archive_from_expsyms_cmds_RC | \
18045     export_symbols_cmds_RC | \
18046     extract_expsyms_cmds | reload_cmds | finish_cmds | \
18047     postinstall_cmds | postuninstall_cmds | \
18048     old_postinstall_cmds | old_postuninstall_cmds | \
18049     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18050       # Double-quote double-evaled strings.
18051       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18052       ;;
18053     *)
18054       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18055       ;;
18056     esac
18057   done
18058
18059   case $lt_echo in
18060   *'\$0 --fallback-echo"')
18061     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18062     ;;
18063   esac
18064
18065 cfgfile="$ofile"
18066
18067   cat <<__EOF__ >> "$cfgfile"
18068 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
18069
18070 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18071
18072 # Shell to use when invoking shell scripts.
18073 SHELL=$lt_SHELL
18074
18075 # Whether or not to build shared libraries.
18076 build_libtool_libs=$enable_shared
18077
18078 # Whether or not to build static libraries.
18079 build_old_libs=$enable_static
18080
18081 # Whether or not to add -lc for building shared libraries.
18082 build_libtool_need_lc=$archive_cmds_need_lc_RC
18083
18084 # Whether or not to disallow shared libs when runtime libs are static
18085 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
18086
18087 # Whether or not to optimize for fast installation.
18088 fast_install=$enable_fast_install
18089
18090 # The host system.
18091 host_alias=$host_alias
18092 host=$host
18093
18094 # An echo program that does not interpret backslashes.
18095 echo=$lt_echo
18096
18097 # The archiver.
18098 AR=$lt_AR
18099 AR_FLAGS=$lt_AR_FLAGS
18100
18101 # A C compiler.
18102 LTCC=$lt_LTCC
18103
18104 # A language-specific compiler.
18105 CC=$lt_compiler_RC
18106
18107 # Is the compiler the GNU C compiler?
18108 with_gcc=$GCC_RC
18109
18110 # An ERE matcher.
18111 EGREP=$lt_EGREP
18112
18113 # The linker used to build libraries.
18114 LD=$lt_LD_RC
18115
18116 # Whether we need hard or soft links.
18117 LN_S=$lt_LN_S
18118
18119 # A BSD-compatible nm program.
18120 NM=$lt_NM
18121
18122 # A symbol stripping program
18123 STRIP=$STRIP
18124
18125 # Used to examine libraries when file_magic_cmd begins "file"
18126 MAGIC_CMD=$MAGIC_CMD
18127
18128 # Used on cygwin: DLL creation program.
18129 DLLTOOL="$DLLTOOL"
18130
18131 # Used on cygwin: object dumper.
18132 OBJDUMP="$OBJDUMP"
18133
18134 # Used on cygwin: assembler.
18135 AS="$AS"
18136
18137 # The name of the directory that contains temporary libtool files.
18138 objdir=$objdir
18139
18140 # How to create reloadable object files.
18141 reload_flag=$lt_reload_flag
18142 reload_cmds=$lt_reload_cmds
18143
18144 # How to pass a linker flag through the compiler.
18145 wl=$lt_lt_prog_compiler_wl_RC
18146
18147 # Object file suffix (normally "o").
18148 objext="$ac_objext"
18149
18150 # Old archive suffix (normally "a").
18151 libext="$libext"
18152
18153 # Shared library suffix (normally ".so").
18154 shrext='$shrext'
18155
18156 # Executable file suffix (normally "").
18157 exeext="$exeext"
18158
18159 # Additional compiler flags for building library objects.
18160 pic_flag=$lt_lt_prog_compiler_pic_RC
18161 pic_mode=$pic_mode
18162
18163 # What is the maximum length of a command?
18164 max_cmd_len=$lt_cv_sys_max_cmd_len
18165
18166 # Does compiler simultaneously support -c and -o options?
18167 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
18168
18169 # Must we lock files when doing compilation ?
18170 need_locks=$lt_need_locks
18171
18172 # Do we need the lib prefix for modules?
18173 need_lib_prefix=$need_lib_prefix
18174
18175 # Do we need a version for libraries?
18176 need_version=$need_version
18177
18178 # Whether dlopen is supported.
18179 dlopen_support=$enable_dlopen
18180
18181 # Whether dlopen of programs is supported.
18182 dlopen_self=$enable_dlopen_self
18183
18184 # Whether dlopen of statically linked programs is supported.
18185 dlopen_self_static=$enable_dlopen_self_static
18186
18187 # Compiler flag to prevent dynamic linking.
18188 link_static_flag=$lt_lt_prog_compiler_static_RC
18189
18190 # Compiler flag to turn off builtin functions.
18191 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
18192
18193 # Compiler flag to allow reflexive dlopens.
18194 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
18195
18196 # Compiler flag to generate shared objects directly from archives.
18197 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
18198
18199 # Compiler flag to generate thread-safe objects.
18200 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
18201
18202 # Library versioning type.
18203 version_type=$version_type
18204
18205 # Format of library name prefix.
18206 libname_spec=$lt_libname_spec
18207
18208 # List of archive names.  First name is the real one, the rest are links.
18209 # The last name is the one that the linker finds with -lNAME.
18210 library_names_spec=$lt_library_names_spec
18211
18212 # The coded name of the library, if different from the real name.
18213 soname_spec=$lt_soname_spec
18214
18215 # Commands used to build and install an old-style archive.
18216 RANLIB=$lt_RANLIB
18217 old_archive_cmds=$lt_old_archive_cmds_RC
18218 old_postinstall_cmds=$lt_old_postinstall_cmds
18219 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18220
18221 # Create an old-style archive from a shared archive.
18222 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
18223
18224 # Create a temporary old-style archive to link instead of a shared archive.
18225 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
18226
18227 # Commands used to build and install a shared archive.
18228 archive_cmds=$lt_archive_cmds_RC
18229 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
18230 postinstall_cmds=$lt_postinstall_cmds
18231 postuninstall_cmds=$lt_postuninstall_cmds
18232
18233 # Commands used to build a loadable module (assumed same as above if empty)
18234 module_cmds=$lt_module_cmds_RC
18235 module_expsym_cmds=$lt_module_expsym_cmds_RC
18236
18237 # Commands to strip libraries.
18238 old_striplib=$lt_old_striplib
18239 striplib=$lt_striplib
18240
18241 # Dependencies to place before the objects being linked to create a
18242 # shared library.
18243 predep_objects=$lt_predep_objects_RC
18244
18245 # Dependencies to place after the objects being linked to create a
18246 # shared library.
18247 postdep_objects=$lt_postdep_objects_RC
18248
18249 # Dependencies to place before the objects being linked to create a
18250 # shared library.
18251 predeps=$lt_predeps_RC
18252
18253 # Dependencies to place after the objects being linked to create a
18254 # shared library.
18255 postdeps=$lt_postdeps_RC
18256
18257 # The library search path used internally by the compiler when linking
18258 # a shared library.
18259 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
18260
18261 # Method to check whether dependent libraries are shared objects.
18262 deplibs_check_method=$lt_deplibs_check_method
18263
18264 # Command to use when deplibs_check_method == file_magic.
18265 file_magic_cmd=$lt_file_magic_cmd
18266
18267 # Flag that allows shared libraries with undefined symbols to be built.
18268 allow_undefined_flag=$lt_allow_undefined_flag_RC
18269
18270 # Flag that forces no undefined symbols.
18271 no_undefined_flag=$lt_no_undefined_flag_RC
18272
18273 # Commands used to finish a libtool library installation in a directory.
18274 finish_cmds=$lt_finish_cmds
18275
18276 # Same as above, but a single script fragment to be evaled but not shown.
18277 finish_eval=$lt_finish_eval
18278
18279 # Take the output of nm and produce a listing of raw symbols and C names.
18280 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18281
18282 # Transform the output of nm in a proper C declaration
18283 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18284
18285 # Transform the output of nm in a C name address pair
18286 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18287
18288 # This is the shared library runtime path variable.
18289 runpath_var=$runpath_var
18290
18291 # This is the shared library path variable.
18292 shlibpath_var=$shlibpath_var
18293
18294 # Is shlibpath searched before the hard-coded library search path?
18295 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18296
18297 # How to hardcode a shared library path into an executable.
18298 hardcode_action=$hardcode_action_RC
18299
18300 # Whether we should hardcode library paths into libraries.
18301 hardcode_into_libs=$hardcode_into_libs
18302
18303 # Flag to hardcode \$libdir into a binary during linking.
18304 # This must work even if \$libdir does not exist.
18305 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
18306
18307 # If ld is used when linking, flag to hardcode \$libdir into
18308 # a binary during linking. This must work even if \$libdir does
18309 # not exist.
18310 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
18311
18312 # Whether we need a single -rpath flag with a separated argument.
18313 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
18314
18315 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18316 # resulting binary.
18317 hardcode_direct=$hardcode_direct_RC
18318
18319 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18320 # resulting binary.
18321 hardcode_minus_L=$hardcode_minus_L_RC
18322
18323 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18324 # the resulting binary.
18325 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
18326
18327 # Set to yes if building a shared library automatically hardcodes DIR into the library
18328 # and all subsequent libraries and executables linked against it.
18329 hardcode_automatic=$hardcode_automatic_RC
18330
18331 # Variables whose values should be saved in libtool wrapper scripts and
18332 # restored at relink time.
18333 variables_saved_for_relink="$variables_saved_for_relink"
18334
18335 # Whether libtool must link a program against all its dependency libraries.
18336 link_all_deplibs=$link_all_deplibs_RC
18337
18338 # Compile-time system search path for libraries
18339 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18340
18341 # Run-time system search path for libraries
18342 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18343
18344 # Fix the shell variable \$srcfile for the compiler.
18345 fix_srcfile_path="$fix_srcfile_path_RC"
18346
18347 # Set to yes if exported symbols are required.
18348 always_export_symbols=$always_export_symbols_RC
18349
18350 # The commands to list exported symbols.
18351 export_symbols_cmds=$lt_export_symbols_cmds_RC
18352
18353 # The commands to extract the exported symbol list from a shared archive.
18354 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18355
18356 # Symbols that should not be listed in the preloaded symbols.
18357 exclude_expsyms=$lt_exclude_expsyms_RC
18358
18359 # Symbols that must always be exported.
18360 include_expsyms=$lt_include_expsyms_RC
18361
18362 # ### END LIBTOOL TAG CONFIG: $tagname
18363
18364 __EOF__
18365
18366
18367 else
18368   # If there is no Makefile yet, we rely on a make rule to execute
18369   # `config.status --recheck' to rerun these tests and create the
18370   # libtool script then.
18371   test -f Makefile && make "$ltmain"
18372 fi
18373
18374
18375 ac_ext=c
18376 ac_cpp='$CPP $CPPFLAGS'
18377 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18378 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18379 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18380
18381 CC="$lt_save_CC"
18382
18383         ;;
18384
18385       *)
18386         { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
18387 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
18388    { (exit 1); exit 1; }; }
18389         ;;
18390       esac
18391
18392       # Append the new tag name to the list of available tags.
18393       if test -n "$tagname" ; then
18394       available_tags="$available_tags $tagname"
18395     fi
18396     fi
18397   done
18398   IFS="$lt_save_ifs"
18399
18400   # Now substitute the updated list of available tags.
18401   if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
18402     mv "${ofile}T" "$ofile"
18403     chmod +x "$ofile"
18404   else
18405     rm -f "${ofile}T"
18406     { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
18407 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
18408    { (exit 1); exit 1; }; }
18409   fi
18410 fi
18411
18412
18413
18414 # This can be used to rebuild libtool when needed
18415 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
18416
18417 # Always use our own libtool.
18418 LIBTOOL='$(SHELL) $(top_builddir)/mklib'
18419
18420 # Prevent multiple expansion
18421
18422
18423
18424
18425
18426
18427
18428
18429
18430
18431
18432
18433
18434
18435
18436
18437
18438
18439
18440
18441
18442 # Extract the first word of "pwd", so it can be a program name with args.
18443 set dummy pwd; ac_word=$2
18444 echo "$as_me:$LINENO: checking for $ac_word" >&5
18445 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18446 if test "${ac_cv_path_RPWD+set}" = set; then
18447   echo $ECHO_N "(cached) $ECHO_C" >&6
18448 else
18449   case $RPWD in
18450   [\\/]* | ?:[\\/]*)
18451   ac_cv_path_RPWD="$RPWD" # Let the user override the test with a path.
18452   ;;
18453   *)
18454   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18455 for as_dir in $PATH
18456 do
18457   IFS=$as_save_IFS
18458   test -z "$as_dir" && as_dir=.
18459   for ac_exec_ext in '' $ac_executable_extensions; do
18460   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18461     ac_cv_path_RPWD="$as_dir/$ac_word$ac_exec_ext"
18462     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18463     break 2
18464   fi
18465 done
18466 done
18467
18468   ;;
18469 esac
18470 fi
18471 RPWD=$ac_cv_path_RPWD
18472
18473 if test -n "$RPWD"; then
18474   echo "$as_me:$LINENO: result: $RPWD" >&5
18475 echo "${ECHO_T}$RPWD" >&6
18476 else
18477   echo "$as_me:$LINENO: result: no" >&5
18478 echo "${ECHO_T}no" >&6
18479 fi
18480
18481 # Extract the first word of "ar", so it can be a program name with args.
18482 set dummy ar; ac_word=$2
18483 echo "$as_me:$LINENO: checking for $ac_word" >&5
18484 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18485 if test "${ac_cv_path_AR+set}" = set; then
18486   echo $ECHO_N "(cached) $ECHO_C" >&6
18487 else
18488   case $AR in
18489   [\\/]* | ?:[\\/]*)
18490   ac_cv_path_AR="$AR" # Let the user override the test with a path.
18491   ;;
18492   *)
18493   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18494 for as_dir in $PATH
18495 do
18496   IFS=$as_save_IFS
18497   test -z "$as_dir" && as_dir=.
18498   for ac_exec_ext in '' $ac_executable_extensions; do
18499   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18500     ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext"
18501     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18502     break 2
18503   fi
18504 done
18505 done
18506
18507   ;;
18508 esac
18509 fi
18510 AR=$ac_cv_path_AR
18511
18512 if test -n "$AR"; then
18513   echo "$as_me:$LINENO: result: $AR" >&5
18514 echo "${ECHO_T}$AR" >&6
18515 else
18516   echo "$as_me:$LINENO: result: no" >&5
18517 echo "${ECHO_T}no" >&6
18518 fi
18519
18520 # Extract the first word of "sed", so it can be a program name with args.
18521 set dummy sed; ac_word=$2
18522 echo "$as_me:$LINENO: checking for $ac_word" >&5
18523 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18524 if test "${ac_cv_path_SED+set}" = set; then
18525   echo $ECHO_N "(cached) $ECHO_C" >&6
18526 else
18527   case $SED in
18528   [\\/]* | ?:[\\/]*)
18529   ac_cv_path_SED="$SED" # Let the user override the test with a path.
18530   ;;
18531   *)
18532   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18533 for as_dir in $PATH
18534 do
18535   IFS=$as_save_IFS
18536   test -z "$as_dir" && as_dir=.
18537   for ac_exec_ext in '' $ac_executable_extensions; do
18538   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18539     ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
18540     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18541     break 2
18542   fi
18543 done
18544 done
18545
18546   ;;
18547 esac
18548 fi
18549 SED=$ac_cv_path_SED
18550
18551 if test -n "$SED"; then
18552   echo "$as_me:$LINENO: result: $SED" >&5
18553 echo "${ECHO_T}$SED" >&6
18554 else
18555   echo "$as_me:$LINENO: result: no" >&5
18556 echo "${ECHO_T}no" >&6
18557 fi
18558
18559 # Extract the first word of "rm", so it can be a program name with args.
18560 set dummy rm; ac_word=$2
18561 echo "$as_me:$LINENO: checking for $ac_word" >&5
18562 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18563 if test "${ac_cv_path_RM+set}" = set; then
18564   echo $ECHO_N "(cached) $ECHO_C" >&6
18565 else
18566   case $RM in
18567   [\\/]* | ?:[\\/]*)
18568   ac_cv_path_RM="$RM" # Let the user override the test with a path.
18569   ;;
18570   *)
18571   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18572 for as_dir in $PATH
18573 do
18574   IFS=$as_save_IFS
18575   test -z "$as_dir" && as_dir=.
18576   for ac_exec_ext in '' $ac_executable_extensions; do
18577   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18578     ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
18579     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18580     break 2
18581   fi
18582 done
18583 done
18584
18585   ;;
18586 esac
18587 fi
18588 RM=$ac_cv_path_RM
18589
18590 if test -n "$RM"; then
18591   echo "$as_me:$LINENO: result: $RM" >&5
18592 echo "${ECHO_T}$RM" >&6
18593 else
18594   echo "$as_me:$LINENO: result: no" >&5
18595 echo "${ECHO_T}no" >&6
18596 fi
18597
18598 # Extract the first word of "echo", so it can be a program name with args.
18599 set dummy echo; ac_word=$2
18600 echo "$as_me:$LINENO: checking for $ac_word" >&5
18601 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18602 if test "${ac_cv_path_ECHO+set}" = set; then
18603   echo $ECHO_N "(cached) $ECHO_C" >&6
18604 else
18605   case $ECHO in
18606   [\\/]* | ?:[\\/]*)
18607   ac_cv_path_ECHO="$ECHO" # Let the user override the test with a path.
18608   ;;
18609   *)
18610   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18611 for as_dir in $PATH
18612 do
18613   IFS=$as_save_IFS
18614   test -z "$as_dir" && as_dir=.
18615   for ac_exec_ext in '' $ac_executable_extensions; do
18616   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18617     ac_cv_path_ECHO="$as_dir/$ac_word$ac_exec_ext"
18618     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18619     break 2
18620   fi
18621 done
18622 done
18623
18624   ;;
18625 esac
18626 fi
18627 ECHO=$ac_cv_path_ECHO
18628
18629 if test -n "$ECHO"; then
18630   echo "$as_me:$LINENO: result: $ECHO" >&5
18631 echo "${ECHO_T}$ECHO" >&6
18632 else
18633   echo "$as_me:$LINENO: result: no" >&5
18634 echo "${ECHO_T}no" >&6
18635 fi
18636
18637 # Extract the first word of "mkdir", so it can be a program name with args.
18638 set dummy mkdir; ac_word=$2
18639 echo "$as_me:$LINENO: checking for $ac_word" >&5
18640 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18641 if test "${ac_cv_path_MKDIR+set}" = set; then
18642   echo $ECHO_N "(cached) $ECHO_C" >&6
18643 else
18644   case $MKDIR in
18645   [\\/]* | ?:[\\/]*)
18646   ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
18647   ;;
18648   *)
18649   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18650 for as_dir in $PATH
18651 do
18652   IFS=$as_save_IFS
18653   test -z "$as_dir" && as_dir=.
18654   for ac_exec_ext in '' $ac_executable_extensions; do
18655   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18656     ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
18657     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18658     break 2
18659   fi
18660 done
18661 done
18662
18663   ;;
18664 esac
18665 fi
18666 MKDIR=$ac_cv_path_MKDIR
18667
18668 if test -n "$MKDIR"; then
18669   echo "$as_me:$LINENO: result: $MKDIR" >&5
18670 echo "${ECHO_T}$MKDIR" >&6
18671 else
18672   echo "$as_me:$LINENO: result: no" >&5
18673 echo "${ECHO_T}no" >&6
18674 fi
18675
18676 # Extract the first word of "date", so it can be a program name with args.
18677 set dummy date; ac_word=$2
18678 echo "$as_me:$LINENO: checking for $ac_word" >&5
18679 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18680 if test "${ac_cv_path_DATE+set}" = set; then
18681   echo $ECHO_N "(cached) $ECHO_C" >&6
18682 else
18683   case $DATE in
18684   [\\/]* | ?:[\\/]*)
18685   ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
18686   ;;
18687   *)
18688   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18689 for as_dir in $PATH
18690 do
18691   IFS=$as_save_IFS
18692   test -z "$as_dir" && as_dir=.
18693   for ac_exec_ext in '' $ac_executable_extensions; do
18694   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18695     ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
18696     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18697     break 2
18698   fi
18699 done
18700 done
18701
18702   ;;
18703 esac
18704 fi
18705 DATE=$ac_cv_path_DATE
18706
18707 if test -n "$DATE"; then
18708   echo "$as_me:$LINENO: result: $DATE" >&5
18709 echo "${ECHO_T}$DATE" >&6
18710 else
18711   echo "$as_me:$LINENO: result: no" >&5
18712 echo "${ECHO_T}no" >&6
18713 fi
18714
18715 # Extract the first word of "mv", so it can be a program name with args.
18716 set dummy mv; ac_word=$2
18717 echo "$as_me:$LINENO: checking for $ac_word" >&5
18718 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18719 if test "${ac_cv_path_MV+set}" = set; then
18720   echo $ECHO_N "(cached) $ECHO_C" >&6
18721 else
18722   case $MV in
18723   [\\/]* | ?:[\\/]*)
18724   ac_cv_path_MV="$MV" # Let the user override the test with a path.
18725   ;;
18726   *)
18727   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18728 for as_dir in $PATH
18729 do
18730   IFS=$as_save_IFS
18731   test -z "$as_dir" && as_dir=.
18732   for ac_exec_ext in '' $ac_executable_extensions; do
18733   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18734     ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
18735     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18736     break 2
18737   fi
18738 done
18739 done
18740
18741   ;;
18742 esac
18743 fi
18744 MV=$ac_cv_path_MV
18745
18746 if test -n "$MV"; then
18747   echo "$as_me:$LINENO: result: $MV" >&5
18748 echo "${ECHO_T}$MV" >&6
18749 else
18750   echo "$as_me:$LINENO: result: no" >&5
18751 echo "${ECHO_T}no" >&6
18752 fi
18753
18754 # Extract the first word of "dot", so it can be a program name with args.
18755 set dummy dot; ac_word=$2
18756 echo "$as_me:$LINENO: checking for $ac_word" >&5
18757 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18758 if test "${ac_cv_path_DOT+set}" = set; then
18759   echo $ECHO_N "(cached) $ECHO_C" >&6
18760 else
18761   case $DOT in
18762   [\\/]* | ?:[\\/]*)
18763   ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
18764   ;;
18765   *)
18766   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18767 for as_dir in $PATH
18768 do
18769   IFS=$as_save_IFS
18770   test -z "$as_dir" && as_dir=.
18771   for ac_exec_ext in '' $ac_executable_extensions; do
18772   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18773     ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
18774     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18775     break 2
18776   fi
18777 done
18778 done
18779
18780   ;;
18781 esac
18782 fi
18783 DOT=$ac_cv_path_DOT
18784
18785 if test -n "$DOT"; then
18786   echo "$as_me:$LINENO: result: $DOT" >&5
18787 echo "${ECHO_T}$DOT" >&6
18788 else
18789   echo "$as_me:$LINENO: result: no" >&5
18790 echo "${ECHO_T}no" >&6
18791 fi
18792
18793 # Extract the first word of "etags", so it can be a program name with args.
18794 set dummy etags; ac_word=$2
18795 echo "$as_me:$LINENO: checking for $ac_word" >&5
18796 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18797 if test "${ac_cv_path_ETAGS+set}" = set; then
18798   echo $ECHO_N "(cached) $ECHO_C" >&6
18799 else
18800   case $ETAGS in
18801   [\\/]* | ?:[\\/]*)
18802   ac_cv_path_ETAGS="$ETAGS" # Let the user override the test with a path.
18803   ;;
18804   *)
18805   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18806 for as_dir in $PATH
18807 do
18808   IFS=$as_save_IFS
18809   test -z "$as_dir" && as_dir=.
18810   for ac_exec_ext in '' $ac_executable_extensions; do
18811   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18812     ac_cv_path_ETAGS="$as_dir/$ac_word$ac_exec_ext"
18813     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18814     break 2
18815   fi
18816 done
18817 done
18818
18819   ;;
18820 esac
18821 fi
18822 ETAGS=$ac_cv_path_ETAGS
18823
18824 if test -n "$ETAGS"; then
18825   echo "$as_me:$LINENO: result: $ETAGS" >&5
18826 echo "${ECHO_T}$ETAGS" >&6
18827 else
18828   echo "$as_me:$LINENO: result: no" >&5
18829 echo "${ECHO_T}no" >&6
18830 fi
18831
18832 # Extract the first word of "purify", so it can be a program name with args.
18833 set dummy purify; ac_word=$2
18834 echo "$as_me:$LINENO: checking for $ac_word" >&5
18835 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18836 if test "${ac_cv_path_PURIFY+set}" = set; then
18837   echo $ECHO_N "(cached) $ECHO_C" >&6
18838 else
18839   case $PURIFY in
18840   [\\/]* | ?:[\\/]*)
18841   ac_cv_path_PURIFY="$PURIFY" # Let the user override the test with a path.
18842   ;;
18843   *)
18844   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18845 for as_dir in $PATH
18846 do
18847   IFS=$as_save_IFS
18848   test -z "$as_dir" && as_dir=.
18849   for ac_exec_ext in '' $ac_executable_extensions; do
18850   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18851     ac_cv_path_PURIFY="$as_dir/$ac_word$ac_exec_ext"
18852     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18853     break 2
18854   fi
18855 done
18856 done
18857
18858   ;;
18859 esac
18860 fi
18861 PURIFY=$ac_cv_path_PURIFY
18862
18863 if test -n "$PURIFY"; then
18864   echo "$as_me:$LINENO: result: $PURIFY" >&5
18865 echo "${ECHO_T}$PURIFY" >&6
18866 else
18867   echo "$as_me:$LINENO: result: no" >&5
18868 echo "${ECHO_T}no" >&6
18869 fi
18870
18871 # Extract the first word of "python", so it can be a program name with args.
18872 set dummy python; ac_word=$2
18873 echo "$as_me:$LINENO: checking for $ac_word" >&5
18874 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18875 if test "${ac_cv_path_PYTHON+set}" = set; then
18876   echo $ECHO_N "(cached) $ECHO_C" >&6
18877 else
18878   case $PYTHON in
18879   [\\/]* | ?:[\\/]*)
18880   ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
18881   ;;
18882   *)
18883   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18884 for as_dir in $PATH
18885 do
18886   IFS=$as_save_IFS
18887   test -z "$as_dir" && as_dir=.
18888   for ac_exec_ext in '' $ac_executable_extensions; do
18889   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18890     ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
18891     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18892     break 2
18893   fi
18894 done
18895 done
18896
18897   ;;
18898 esac
18899 fi
18900 PYTHON=$ac_cv_path_PYTHON
18901
18902 if test -n "$PYTHON"; then
18903   echo "$as_me:$LINENO: result: $PYTHON" >&5
18904 echo "${ECHO_T}$PYTHON" >&6
18905 else
18906   echo "$as_me:$LINENO: result: no" >&5
18907 echo "${ECHO_T}no" >&6
18908 fi
18909
18910 # Extract the first word of "qmtest", so it can be a program name with args.
18911 set dummy qmtest; ac_word=$2
18912 echo "$as_me:$LINENO: checking for $ac_word" >&5
18913 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18914 if test "${ac_cv_path_QMTEST+set}" = set; then
18915   echo $ECHO_N "(cached) $ECHO_C" >&6
18916 else
18917   case $QMTEST in
18918   [\\/]* | ?:[\\/]*)
18919   ac_cv_path_QMTEST="$QMTEST" # Let the user override the test with a path.
18920   ;;
18921   *)
18922   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18923 for as_dir in $PATH
18924 do
18925   IFS=$as_save_IFS
18926   test -z "$as_dir" && as_dir=.
18927   for ac_exec_ext in '' $ac_executable_extensions; do
18928   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18929     ac_cv_path_QMTEST="$as_dir/$ac_word$ac_exec_ext"
18930     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18931     break 2
18932   fi
18933 done
18934 done
18935
18936   ;;
18937 esac
18938 fi
18939 QMTEST=$ac_cv_path_QMTEST
18940
18941 if test -n "$QMTEST"; then
18942   echo "$as_me:$LINENO: result: $QMTEST" >&5
18943 echo "${ECHO_T}$QMTEST" >&6
18944 else
18945   echo "$as_me:$LINENO: result: no" >&5
18946 echo "${ECHO_T}no" >&6
18947 fi
18948
18949
18950 pyversion=`$PYTHON -V 2>&1 | cut -d\  -f2`
18951 pymajor=`echo $pyversion | cut -d. -f1`
18952 pyminor=`echo $pyversion | cut -d. -f2`
18953
18954 if test "$pymajor" -ge "2"
18955 then
18956         if test "$pymajor" -eq "2"
18957         then
18958                 if test "$pyminor" -lt "2"
18959                 then
18960                         { { echo "$as_me:$LINENO: error: Python 2.2 or greater required" >&5
18961 echo "$as_me: error: Python 2.2 or greater required" >&2;}
18962    { (exit 1); exit 1; }; }
18963                 fi
18964         fi
18965 else
18966         { { echo "$as_me:$LINENO: error: Python 2.2 or greater required" >&5
18967 echo "$as_me: error: Python 2.2 or greater required" >&2;}
18968    { (exit 1); exit 1; }; }
18969 fi
18970
18971
18972
18973
18974
18975 echo "$as_me:$LINENO: checking for elf_begin in -lelf" >&5
18976 echo $ECHO_N "checking for elf_begin in -lelf... $ECHO_C" >&6
18977 if test "${ac_cv_lib_elf_elf_begin+set}" = set; then
18978   echo $ECHO_N "(cached) $ECHO_C" >&6
18979 else
18980   ac_check_lib_save_LIBS=$LIBS
18981 LIBS="-lelf  $LIBS"
18982 cat >conftest.$ac_ext <<_ACEOF
18983 #line $LINENO "configure"
18984 /* confdefs.h.  */
18985 _ACEOF
18986 cat confdefs.h >>conftest.$ac_ext
18987 cat >>conftest.$ac_ext <<_ACEOF
18988 /* end confdefs.h.  */
18989
18990 /* Override any gcc2 internal prototype to avoid an error.  */
18991 #ifdef __cplusplus
18992 extern "C"
18993 #endif
18994 /* We use char because int might match the return type of a gcc2
18995    builtin and then its argument prototype would still apply.  */
18996 char elf_begin ();
18997 int
18998 main ()
18999 {
19000 elf_begin ();
19001   ;
19002   return 0;
19003 }
19004 _ACEOF
19005 rm -f conftest.$ac_objext conftest$ac_exeext
19006 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19007   (eval $ac_link) 2>&5
19008   ac_status=$?
19009   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19010   (exit $ac_status); } &&
19011          { ac_try='test -s conftest$ac_exeext'
19012   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19013   (eval $ac_try) 2>&5
19014   ac_status=$?
19015   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19016   (exit $ac_status); }; }; then
19017   ac_cv_lib_elf_elf_begin=yes
19018 else
19019   echo "$as_me: failed program was:" >&5
19020 sed 's/^/| /' conftest.$ac_ext >&5
19021
19022 ac_cv_lib_elf_elf_begin=no
19023 fi
19024 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
19025 LIBS=$ac_check_lib_save_LIBS
19026 fi
19027 echo "$as_me:$LINENO: result: $ac_cv_lib_elf_elf_begin" >&5
19028 echo "${ECHO_T}$ac_cv_lib_elf_elf_begin" >&6
19029 if test $ac_cv_lib_elf_elf_begin = yes; then
19030   cat >>confdefs.h <<_ACEOF
19031 #define HAVE_LIBELF 1
19032 _ACEOF
19033
19034   LIBS="-lelf $LIBS"
19035
19036 fi
19037
19038
19039 echo "$as_me:$LINENO: checking for library containing dlopen" >&5
19040 echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6
19041 if test "${ac_cv_search_dlopen+set}" = set; then
19042   echo $ECHO_N "(cached) $ECHO_C" >&6
19043 else
19044   ac_func_search_save_LIBS=$LIBS
19045 ac_cv_search_dlopen=no
19046 cat >conftest.$ac_ext <<_ACEOF
19047 #line $LINENO "configure"
19048 /* confdefs.h.  */
19049 _ACEOF
19050 cat confdefs.h >>conftest.$ac_ext
19051 cat >>conftest.$ac_ext <<_ACEOF
19052 /* end confdefs.h.  */
19053
19054 /* Override any gcc2 internal prototype to avoid an error.  */
19055 #ifdef __cplusplus
19056 extern "C"
19057 #endif
19058 /* We use char because int might match the return type of a gcc2
19059    builtin and then its argument prototype would still apply.  */
19060 char dlopen ();
19061 int
19062 main ()
19063 {
19064 dlopen ();
19065   ;
19066   return 0;
19067 }
19068 _ACEOF
19069 rm -f conftest.$ac_objext conftest$ac_exeext
19070 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19071   (eval $ac_link) 2>&5
19072   ac_status=$?
19073   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19074   (exit $ac_status); } &&
19075          { ac_try='test -s conftest$ac_exeext'
19076   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19077   (eval $ac_try) 2>&5
19078   ac_status=$?
19079   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19080   (exit $ac_status); }; }; then
19081   ac_cv_search_dlopen="none required"
19082 else
19083   echo "$as_me: failed program was:" >&5
19084 sed 's/^/| /' conftest.$ac_ext >&5
19085
19086 fi
19087 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
19088 if test "$ac_cv_search_dlopen" = no; then
19089   for ac_lib in dl; do
19090     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
19091     cat >conftest.$ac_ext <<_ACEOF
19092 #line $LINENO "configure"
19093 /* confdefs.h.  */
19094 _ACEOF
19095 cat confdefs.h >>conftest.$ac_ext
19096 cat >>conftest.$ac_ext <<_ACEOF
19097 /* end confdefs.h.  */
19098
19099 /* Override any gcc2 internal prototype to avoid an error.  */
19100 #ifdef __cplusplus
19101 extern "C"
19102 #endif
19103 /* We use char because int might match the return type of a gcc2
19104    builtin and then its argument prototype would still apply.  */
19105 char dlopen ();
19106 int
19107 main ()
19108 {
19109 dlopen ();
19110   ;
19111   return 0;
19112 }
19113 _ACEOF
19114 rm -f conftest.$ac_objext conftest$ac_exeext
19115 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19116   (eval $ac_link) 2>&5
19117   ac_status=$?
19118   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19119   (exit $ac_status); } &&
19120          { ac_try='test -s conftest$ac_exeext'
19121   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19122   (eval $ac_try) 2>&5
19123   ac_status=$?
19124   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19125   (exit $ac_status); }; }; then
19126   ac_cv_search_dlopen="-l$ac_lib"
19127 break
19128 else
19129   echo "$as_me: failed program was:" >&5
19130 sed 's/^/| /' conftest.$ac_ext >&5
19131
19132 fi
19133 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
19134   done
19135 fi
19136 LIBS=$ac_func_search_save_LIBS
19137 fi
19138 echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
19139 echo "${ECHO_T}$ac_cv_search_dlopen" >&6
19140 if test "$ac_cv_search_dlopen" != no; then
19141   test "$ac_cv_search_dlopen" = "none required" || LIBS="$ac_cv_search_dlopen $LIBS"
19142
19143 else
19144   { { echo "$as_me:$LINENO: error: dlopen() required but not found" >&5
19145 echo "$as_me: error: dlopen() required but not found" >&2;}
19146    { (exit 1); exit 1; }; }
19147 fi
19148
19149
19150 echo "$as_me:$LINENO: checking for library containing mallinfo" >&5
19151 echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6
19152 if test "${ac_cv_search_mallinfo+set}" = set; then
19153   echo $ECHO_N "(cached) $ECHO_C" >&6
19154 else
19155   ac_func_search_save_LIBS=$LIBS
19156 ac_cv_search_mallinfo=no
19157 cat >conftest.$ac_ext <<_ACEOF
19158 #line $LINENO "configure"
19159 /* confdefs.h.  */
19160 _ACEOF
19161 cat confdefs.h >>conftest.$ac_ext
19162 cat >>conftest.$ac_ext <<_ACEOF
19163 /* end confdefs.h.  */
19164
19165 /* Override any gcc2 internal prototype to avoid an error.  */
19166 #ifdef __cplusplus
19167 extern "C"
19168 #endif
19169 /* We use char because int might match the return type of a gcc2
19170    builtin and then its argument prototype would still apply.  */
19171 char mallinfo ();
19172 int
19173 main ()
19174 {
19175 mallinfo ();
19176   ;
19177   return 0;
19178 }
19179 _ACEOF
19180 rm -f conftest.$ac_objext conftest$ac_exeext
19181 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19182   (eval $ac_link) 2>&5
19183   ac_status=$?
19184   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19185   (exit $ac_status); } &&
19186          { ac_try='test -s conftest$ac_exeext'
19187   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19188   (eval $ac_try) 2>&5
19189   ac_status=$?
19190   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19191   (exit $ac_status); }; }; then
19192   ac_cv_search_mallinfo="none required"
19193 else
19194   echo "$as_me: failed program was:" >&5
19195 sed 's/^/| /' conftest.$ac_ext >&5
19196
19197 fi
19198 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
19199 if test "$ac_cv_search_mallinfo" = no; then
19200   for ac_lib in malloc; do
19201     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
19202     cat >conftest.$ac_ext <<_ACEOF
19203 #line $LINENO "configure"
19204 /* confdefs.h.  */
19205 _ACEOF
19206 cat confdefs.h >>conftest.$ac_ext
19207 cat >>conftest.$ac_ext <<_ACEOF
19208 /* end confdefs.h.  */
19209
19210 /* Override any gcc2 internal prototype to avoid an error.  */
19211 #ifdef __cplusplus
19212 extern "C"
19213 #endif
19214 /* We use char because int might match the return type of a gcc2
19215    builtin and then its argument prototype would still apply.  */
19216 char mallinfo ();
19217 int
19218 main ()
19219 {
19220 mallinfo ();
19221   ;
19222   return 0;
19223 }
19224 _ACEOF
19225 rm -f conftest.$ac_objext conftest$ac_exeext
19226 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19227   (eval $ac_link) 2>&5
19228   ac_status=$?
19229   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19230   (exit $ac_status); } &&
19231          { ac_try='test -s conftest$ac_exeext'
19232   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19233   (eval $ac_try) 2>&5
19234   ac_status=$?
19235   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19236   (exit $ac_status); }; }; then
19237   ac_cv_search_mallinfo="-l$ac_lib"
19238 break
19239 else
19240   echo "$as_me: failed program was:" >&5
19241 sed 's/^/| /' conftest.$ac_ext >&5
19242
19243 fi
19244 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
19245   done
19246 fi
19247 LIBS=$ac_func_search_save_LIBS
19248 fi
19249 echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5
19250 echo "${ECHO_T}$ac_cv_search_mallinfo" >&6
19251 if test "$ac_cv_search_mallinfo" != no; then
19252   test "$ac_cv_search_mallinfo" = "none required" || LIBS="$ac_cv_search_mallinfo $LIBS"
19253   cat >>confdefs.h <<\_ACEOF
19254 #define HAVE_MALLINFO 1
19255 _ACEOF
19256
19257 fi
19258
19259
19260
19261 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
19262 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
19263 if test "${ac_cv_header_stdc+set}" = set; then
19264   echo $ECHO_N "(cached) $ECHO_C" >&6
19265 else
19266   cat >conftest.$ac_ext <<_ACEOF
19267 #line $LINENO "configure"
19268 /* confdefs.h.  */
19269 _ACEOF
19270 cat confdefs.h >>conftest.$ac_ext
19271 cat >>conftest.$ac_ext <<_ACEOF
19272 /* end confdefs.h.  */
19273 #include <stdlib.h>
19274 #include <stdarg.h>
19275 #include <string.h>
19276 #include <float.h>
19277
19278 int
19279 main ()
19280 {
19281
19282   ;
19283   return 0;
19284 }
19285 _ACEOF
19286 rm -f conftest.$ac_objext
19287 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19288   (eval $ac_compile) 2>&5
19289   ac_status=$?
19290   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19291   (exit $ac_status); } &&
19292          { ac_try='test -s conftest.$ac_objext'
19293   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19294   (eval $ac_try) 2>&5
19295   ac_status=$?
19296   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19297   (exit $ac_status); }; }; then
19298   ac_cv_header_stdc=yes
19299 else
19300   echo "$as_me: failed program was:" >&5
19301 sed 's/^/| /' conftest.$ac_ext >&5
19302
19303 ac_cv_header_stdc=no
19304 fi
19305 rm -f conftest.$ac_objext conftest.$ac_ext
19306
19307 if test $ac_cv_header_stdc = yes; then
19308   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
19309   cat >conftest.$ac_ext <<_ACEOF
19310 #line $LINENO "configure"
19311 /* confdefs.h.  */
19312 _ACEOF
19313 cat confdefs.h >>conftest.$ac_ext
19314 cat >>conftest.$ac_ext <<_ACEOF
19315 /* end confdefs.h.  */
19316 #include <string.h>
19317
19318 _ACEOF
19319 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19320   $EGREP "memchr" >/dev/null 2>&1; then
19321   :
19322 else
19323   ac_cv_header_stdc=no
19324 fi
19325 rm -f conftest*
19326
19327 fi
19328
19329 if test $ac_cv_header_stdc = yes; then
19330   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
19331   cat >conftest.$ac_ext <<_ACEOF
19332 #line $LINENO "configure"
19333 /* confdefs.h.  */
19334 _ACEOF
19335 cat confdefs.h >>conftest.$ac_ext
19336 cat >>conftest.$ac_ext <<_ACEOF
19337 /* end confdefs.h.  */
19338 #include <stdlib.h>
19339
19340 _ACEOF
19341 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19342   $EGREP "free" >/dev/null 2>&1; then
19343   :
19344 else
19345   ac_cv_header_stdc=no
19346 fi
19347 rm -f conftest*
19348
19349 fi
19350
19351 if test $ac_cv_header_stdc = yes; then
19352   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
19353   if test "$cross_compiling" = yes; then
19354   :
19355 else
19356   cat >conftest.$ac_ext <<_ACEOF
19357 #line $LINENO "configure"
19358 /* confdefs.h.  */
19359 _ACEOF
19360 cat confdefs.h >>conftest.$ac_ext
19361 cat >>conftest.$ac_ext <<_ACEOF
19362 /* end confdefs.h.  */
19363 #include <ctype.h>
19364 #if ((' ' & 0x0FF) == 0x020)
19365 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
19366 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
19367 #else
19368 # define ISLOWER(c) \
19369                    (('a' <= (c) && (c) <= 'i') \
19370                      || ('j' <= (c) && (c) <= 'r') \
19371                      || ('s' <= (c) && (c) <= 'z'))
19372 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
19373 #endif
19374
19375 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
19376 int
19377 main ()
19378 {
19379   int i;
19380   for (i = 0; i < 256; i++)
19381     if (XOR (islower (i), ISLOWER (i))
19382         || toupper (i) != TOUPPER (i))
19383       exit(2);
19384   exit (0);
19385 }
19386 _ACEOF
19387 rm -f conftest$ac_exeext
19388 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19389   (eval $ac_link) 2>&5
19390   ac_status=$?
19391   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19392   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19393   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19394   (eval $ac_try) 2>&5
19395   ac_status=$?
19396   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19397   (exit $ac_status); }; }; then
19398   :
19399 else
19400   echo "$as_me: program exited with status $ac_status" >&5
19401 echo "$as_me: failed program was:" >&5
19402 sed 's/^/| /' conftest.$ac_ext >&5
19403
19404 ( exit $ac_status )
19405 ac_cv_header_stdc=no
19406 fi
19407 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19408 fi
19409 fi
19410 fi
19411 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
19412 echo "${ECHO_T}$ac_cv_header_stdc" >&6
19413 if test $ac_cv_header_stdc = yes; then
19414
19415 cat >>confdefs.h <<\_ACEOF
19416 #define STDC_HEADERS 1
19417 _ACEOF
19418
19419 fi
19420
19421 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
19422 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
19423 if test "${ac_cv_header_sys_wait_h+set}" = set; then
19424   echo $ECHO_N "(cached) $ECHO_C" >&6
19425 else
19426   cat >conftest.$ac_ext <<_ACEOF
19427 #line $LINENO "configure"
19428 /* confdefs.h.  */
19429 _ACEOF
19430 cat confdefs.h >>conftest.$ac_ext
19431 cat >>conftest.$ac_ext <<_ACEOF
19432 /* end confdefs.h.  */
19433 #include <sys/types.h>
19434 #include <sys/wait.h>
19435 #ifndef WEXITSTATUS
19436 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
19437 #endif
19438 #ifndef WIFEXITED
19439 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
19440 #endif
19441
19442 int
19443 main ()
19444 {
19445   int s;
19446   wait (&s);
19447   s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
19448   ;
19449   return 0;
19450 }
19451 _ACEOF
19452 rm -f conftest.$ac_objext
19453 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19454   (eval $ac_compile) 2>&5
19455   ac_status=$?
19456   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19457   (exit $ac_status); } &&
19458          { ac_try='test -s conftest.$ac_objext'
19459   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19460   (eval $ac_try) 2>&5
19461   ac_status=$?
19462   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19463   (exit $ac_status); }; }; then
19464   ac_cv_header_sys_wait_h=yes
19465 else
19466   echo "$as_me: failed program was:" >&5
19467 sed 's/^/| /' conftest.$ac_ext >&5
19468
19469 ac_cv_header_sys_wait_h=no
19470 fi
19471 rm -f conftest.$ac_objext conftest.$ac_ext
19472 fi
19473 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
19474 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
19475 if test $ac_cv_header_sys_wait_h = yes; then
19476
19477 cat >>confdefs.h <<\_ACEOF
19478 #define HAVE_SYS_WAIT_H 1
19479 _ACEOF
19480
19481 fi
19482
19483
19484
19485
19486
19487
19488
19489
19490
19491
19492 for ac_header in assert.h fcntl.h limits.h sys/time.h unistd.h errno.h signal.h math.h
19493 do
19494 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19495 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19496   echo "$as_me:$LINENO: checking for $ac_header" >&5
19497 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19498 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19499   echo $ECHO_N "(cached) $ECHO_C" >&6
19500 fi
19501 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19502 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19503 else
19504   # Is the header compilable?
19505 echo "$as_me:$LINENO: checking $ac_header usability" >&5
19506 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19507 cat >conftest.$ac_ext <<_ACEOF
19508 #line $LINENO "configure"
19509 /* confdefs.h.  */
19510 _ACEOF
19511 cat confdefs.h >>conftest.$ac_ext
19512 cat >>conftest.$ac_ext <<_ACEOF
19513 /* end confdefs.h.  */
19514 $ac_includes_default
19515 #include <$ac_header>
19516 _ACEOF
19517 rm -f conftest.$ac_objext
19518 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19519   (eval $ac_compile) 2>&5
19520   ac_status=$?
19521   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19522   (exit $ac_status); } &&
19523          { ac_try='test -s conftest.$ac_objext'
19524   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19525   (eval $ac_try) 2>&5
19526   ac_status=$?
19527   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19528   (exit $ac_status); }; }; then
19529   ac_header_compiler=yes
19530 else
19531   echo "$as_me: failed program was:" >&5
19532 sed 's/^/| /' conftest.$ac_ext >&5
19533
19534 ac_header_compiler=no
19535 fi
19536 rm -f conftest.$ac_objext conftest.$ac_ext
19537 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19538 echo "${ECHO_T}$ac_header_compiler" >&6
19539
19540 # Is the header present?
19541 echo "$as_me:$LINENO: checking $ac_header presence" >&5
19542 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19543 cat >conftest.$ac_ext <<_ACEOF
19544 #line $LINENO "configure"
19545 /* confdefs.h.  */
19546 _ACEOF
19547 cat confdefs.h >>conftest.$ac_ext
19548 cat >>conftest.$ac_ext <<_ACEOF
19549 /* end confdefs.h.  */
19550 #include <$ac_header>
19551 _ACEOF
19552 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19553   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19554   ac_status=$?
19555   grep -v '^ *+' conftest.er1 >conftest.err
19556   rm -f conftest.er1
19557   cat conftest.err >&5
19558   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19559   (exit $ac_status); } >/dev/null; then
19560   if test -s conftest.err; then
19561     ac_cpp_err=$ac_c_preproc_warn_flag
19562   else
19563     ac_cpp_err=
19564   fi
19565 else
19566   ac_cpp_err=yes
19567 fi
19568 if test -z "$ac_cpp_err"; then
19569   ac_header_preproc=yes
19570 else
19571   echo "$as_me: failed program was:" >&5
19572 sed 's/^/| /' conftest.$ac_ext >&5
19573
19574   ac_header_preproc=no
19575 fi
19576 rm -f conftest.err conftest.$ac_ext
19577 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19578 echo "${ECHO_T}$ac_header_preproc" >&6
19579
19580 # So?  What about this header?
19581 case $ac_header_compiler:$ac_header_preproc in
19582   yes:no )
19583     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19584 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19585     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19586 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19587     (
19588       cat <<\_ASBOX
19589 ## ------------------------------------ ##
19590 ## Report this to bug-autoconf@gnu.org. ##
19591 ## ------------------------------------ ##
19592 _ASBOX
19593     ) |
19594       sed "s/^/$as_me: WARNING:     /" >&2
19595     ;;
19596   no:yes )
19597     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19598 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19599     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19600 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19601     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19602 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19603     (
19604       cat <<\_ASBOX
19605 ## ------------------------------------ ##
19606 ## Report this to bug-autoconf@gnu.org. ##
19607 ## ------------------------------------ ##
19608 _ASBOX
19609     ) |
19610       sed "s/^/$as_me: WARNING:     /" >&2
19611     ;;
19612 esac
19613 echo "$as_me:$LINENO: checking for $ac_header" >&5
19614 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19615 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19616   echo $ECHO_N "(cached) $ECHO_C" >&6
19617 else
19618   eval "$as_ac_Header=$ac_header_preproc"
19619 fi
19620 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19621 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19622
19623 fi
19624 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19625   cat >>confdefs.h <<_ACEOF
19626 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19627 _ACEOF
19628
19629 fi
19630
19631 done
19632
19633
19634
19635
19636
19637
19638 for ac_header in malloc.h strings.h sys/mman.h sys/resource.h
19639 do
19640 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19641 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19642   echo "$as_me:$LINENO: checking for $ac_header" >&5
19643 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19644 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19645   echo $ECHO_N "(cached) $ECHO_C" >&6
19646 fi
19647 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19648 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19649 else
19650   # Is the header compilable?
19651 echo "$as_me:$LINENO: checking $ac_header usability" >&5
19652 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19653 cat >conftest.$ac_ext <<_ACEOF
19654 #line $LINENO "configure"
19655 /* confdefs.h.  */
19656 _ACEOF
19657 cat confdefs.h >>conftest.$ac_ext
19658 cat >>conftest.$ac_ext <<_ACEOF
19659 /* end confdefs.h.  */
19660 $ac_includes_default
19661 #include <$ac_header>
19662 _ACEOF
19663 rm -f conftest.$ac_objext
19664 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19665   (eval $ac_compile) 2>&5
19666   ac_status=$?
19667   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19668   (exit $ac_status); } &&
19669          { ac_try='test -s conftest.$ac_objext'
19670   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19671   (eval $ac_try) 2>&5
19672   ac_status=$?
19673   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19674   (exit $ac_status); }; }; then
19675   ac_header_compiler=yes
19676 else
19677   echo "$as_me: failed program was:" >&5
19678 sed 's/^/| /' conftest.$ac_ext >&5
19679
19680 ac_header_compiler=no
19681 fi
19682 rm -f conftest.$ac_objext conftest.$ac_ext
19683 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19684 echo "${ECHO_T}$ac_header_compiler" >&6
19685
19686 # Is the header present?
19687 echo "$as_me:$LINENO: checking $ac_header presence" >&5
19688 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19689 cat >conftest.$ac_ext <<_ACEOF
19690 #line $LINENO "configure"
19691 /* confdefs.h.  */
19692 _ACEOF
19693 cat confdefs.h >>conftest.$ac_ext
19694 cat >>conftest.$ac_ext <<_ACEOF
19695 /* end confdefs.h.  */
19696 #include <$ac_header>
19697 _ACEOF
19698 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19699   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19700   ac_status=$?
19701   grep -v '^ *+' conftest.er1 >conftest.err
19702   rm -f conftest.er1
19703   cat conftest.err >&5
19704   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19705   (exit $ac_status); } >/dev/null; then
19706   if test -s conftest.err; then
19707     ac_cpp_err=$ac_c_preproc_warn_flag
19708   else
19709     ac_cpp_err=
19710   fi
19711 else
19712   ac_cpp_err=yes
19713 fi
19714 if test -z "$ac_cpp_err"; then
19715   ac_header_preproc=yes
19716 else
19717   echo "$as_me: failed program was:" >&5
19718 sed 's/^/| /' conftest.$ac_ext >&5
19719
19720   ac_header_preproc=no
19721 fi
19722 rm -f conftest.err conftest.$ac_ext
19723 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19724 echo "${ECHO_T}$ac_header_preproc" >&6
19725
19726 # So?  What about this header?
19727 case $ac_header_compiler:$ac_header_preproc in
19728   yes:no )
19729     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19730 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19731     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19732 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19733     (
19734       cat <<\_ASBOX
19735 ## ------------------------------------ ##
19736 ## Report this to bug-autoconf@gnu.org. ##
19737 ## ------------------------------------ ##
19738 _ASBOX
19739     ) |
19740       sed "s/^/$as_me: WARNING:     /" >&2
19741     ;;
19742   no:yes )
19743     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19744 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19745     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19746 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19747     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19748 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19749     (
19750       cat <<\_ASBOX
19751 ## ------------------------------------ ##
19752 ## Report this to bug-autoconf@gnu.org. ##
19753 ## ------------------------------------ ##
19754 _ASBOX
19755     ) |
19756       sed "s/^/$as_me: WARNING:     /" >&2
19757     ;;
19758 esac
19759 echo "$as_me:$LINENO: checking for $ac_header" >&5
19760 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19761 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19762   echo $ECHO_N "(cached) $ECHO_C" >&6
19763 else
19764   eval "$as_ac_Header=$ac_header_preproc"
19765 fi
19766 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19767 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19768
19769 fi
19770 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19771   cat >>confdefs.h <<_ACEOF
19772 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19773 _ACEOF
19774
19775 fi
19776
19777 done
19778
19779
19780
19781
19782 for ac_header in dlfcn.h link.h
19783 do
19784 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19785 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19786   echo "$as_me:$LINENO: checking for $ac_header" >&5
19787 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19788 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19789   echo $ECHO_N "(cached) $ECHO_C" >&6
19790 fi
19791 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19792 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19793 else
19794   # Is the header compilable?
19795 echo "$as_me:$LINENO: checking $ac_header usability" >&5
19796 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19797 cat >conftest.$ac_ext <<_ACEOF
19798 #line $LINENO "configure"
19799 /* confdefs.h.  */
19800 _ACEOF
19801 cat confdefs.h >>conftest.$ac_ext
19802 cat >>conftest.$ac_ext <<_ACEOF
19803 /* end confdefs.h.  */
19804 $ac_includes_default
19805 #include <$ac_header>
19806 _ACEOF
19807 rm -f conftest.$ac_objext
19808 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19809   (eval $ac_compile) 2>&5
19810   ac_status=$?
19811   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19812   (exit $ac_status); } &&
19813          { ac_try='test -s conftest.$ac_objext'
19814   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19815   (eval $ac_try) 2>&5
19816   ac_status=$?
19817   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19818   (exit $ac_status); }; }; then
19819   ac_header_compiler=yes
19820 else
19821   echo "$as_me: failed program was:" >&5
19822 sed 's/^/| /' conftest.$ac_ext >&5
19823
19824 ac_header_compiler=no
19825 fi
19826 rm -f conftest.$ac_objext conftest.$ac_ext
19827 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19828 echo "${ECHO_T}$ac_header_compiler" >&6
19829
19830 # Is the header present?
19831 echo "$as_me:$LINENO: checking $ac_header presence" >&5
19832 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19833 cat >conftest.$ac_ext <<_ACEOF
19834 #line $LINENO "configure"
19835 /* confdefs.h.  */
19836 _ACEOF
19837 cat confdefs.h >>conftest.$ac_ext
19838 cat >>conftest.$ac_ext <<_ACEOF
19839 /* end confdefs.h.  */
19840 #include <$ac_header>
19841 _ACEOF
19842 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19843   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19844   ac_status=$?
19845   grep -v '^ *+' conftest.er1 >conftest.err
19846   rm -f conftest.er1
19847   cat conftest.err >&5
19848   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19849   (exit $ac_status); } >/dev/null; then
19850   if test -s conftest.err; then
19851     ac_cpp_err=$ac_c_preproc_warn_flag
19852   else
19853     ac_cpp_err=
19854   fi
19855 else
19856   ac_cpp_err=yes
19857 fi
19858 if test -z "$ac_cpp_err"; then
19859   ac_header_preproc=yes
19860 else
19861   echo "$as_me: failed program was:" >&5
19862 sed 's/^/| /' conftest.$ac_ext >&5
19863
19864   ac_header_preproc=no
19865 fi
19866 rm -f conftest.err conftest.$ac_ext
19867 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19868 echo "${ECHO_T}$ac_header_preproc" >&6
19869
19870 # So?  What about this header?
19871 case $ac_header_compiler:$ac_header_preproc in
19872   yes:no )
19873     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19874 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19875     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19876 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19877     (
19878       cat <<\_ASBOX
19879 ## ------------------------------------ ##
19880 ## Report this to bug-autoconf@gnu.org. ##
19881 ## ------------------------------------ ##
19882 _ASBOX
19883     ) |
19884       sed "s/^/$as_me: WARNING:     /" >&2
19885     ;;
19886   no:yes )
19887     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19888 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19889     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19890 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19891     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19892 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19893     (
19894       cat <<\_ASBOX
19895 ## ------------------------------------ ##
19896 ## Report this to bug-autoconf@gnu.org. ##
19897 ## ------------------------------------ ##
19898 _ASBOX
19899     ) |
19900       sed "s/^/$as_me: WARNING:     /" >&2
19901     ;;
19902 esac
19903 echo "$as_me:$LINENO: checking for $ac_header" >&5
19904 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19905 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19906   echo $ECHO_N "(cached) $ECHO_C" >&6
19907 else
19908   eval "$as_ac_Header=$ac_header_preproc"
19909 fi
19910 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19911 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19912
19913 fi
19914 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19915   cat >>confdefs.h <<_ACEOF
19916 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19917 _ACEOF
19918
19919 fi
19920
19921 done
19922
19923
19924
19925 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
19926 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
19927 if test "${ac_cv_c_const+set}" = set; then
19928   echo $ECHO_N "(cached) $ECHO_C" >&6
19929 else
19930   cat >conftest.$ac_ext <<_ACEOF
19931 #line $LINENO "configure"
19932 /* confdefs.h.  */
19933 _ACEOF
19934 cat confdefs.h >>conftest.$ac_ext
19935 cat >>conftest.$ac_ext <<_ACEOF
19936 /* end confdefs.h.  */
19937
19938 int
19939 main ()
19940 {
19941 /* FIXME: Include the comments suggested by Paul. */
19942 #ifndef __cplusplus
19943   /* Ultrix mips cc rejects this.  */
19944   typedef int charset[2];
19945   const charset x;
19946   /* SunOS 4.1.1 cc rejects this.  */
19947   char const *const *ccp;
19948   char **p;
19949   /* NEC SVR4.0.2 mips cc rejects this.  */
19950   struct point {int x, y;};
19951   static struct point const zero = {0,0};
19952   /* AIX XL C 1.02.0.0 rejects this.
19953      It does not let you subtract one const X* pointer from another in
19954      an arm of an if-expression whose if-part is not a constant
19955      expression */
19956   const char *g = "string";
19957   ccp = &g + (g ? g-g : 0);
19958   /* HPUX 7.0 cc rejects these. */
19959   ++ccp;
19960   p = (char**) ccp;
19961   ccp = (char const *const *) p;
19962   { /* SCO 3.2v4 cc rejects this.  */
19963     char *t;
19964     char const *s = 0 ? (char *) 0 : (char const *) 0;
19965
19966     *t++ = 0;
19967   }
19968   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
19969     int x[] = {25, 17};
19970     const int *foo = &x[0];
19971     ++foo;
19972   }
19973   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
19974     typedef const int *iptr;
19975     iptr p = 0;
19976     ++p;
19977   }
19978   { /* AIX XL C 1.02.0.0 rejects this saying
19979        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
19980     struct s { int j; const int *ap[3]; };
19981     struct s *b; b->j = 5;
19982   }
19983   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
19984     const int foo = 10;
19985   }
19986 #endif
19987
19988   ;
19989   return 0;
19990 }
19991 _ACEOF
19992 rm -f conftest.$ac_objext
19993 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19994   (eval $ac_compile) 2>&5
19995   ac_status=$?
19996   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19997   (exit $ac_status); } &&
19998          { ac_try='test -s conftest.$ac_objext'
19999   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20000   (eval $ac_try) 2>&5
20001   ac_status=$?
20002   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20003   (exit $ac_status); }; }; then
20004   ac_cv_c_const=yes
20005 else
20006   echo "$as_me: failed program was:" >&5
20007 sed 's/^/| /' conftest.$ac_ext >&5
20008
20009 ac_cv_c_const=no
20010 fi
20011 rm -f conftest.$ac_objext conftest.$ac_ext
20012 fi
20013 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
20014 echo "${ECHO_T}$ac_cv_c_const" >&6
20015 if test $ac_cv_c_const = no; then
20016
20017 cat >>confdefs.h <<\_ACEOF
20018 #define const
20019 _ACEOF
20020
20021 fi
20022
20023 echo "$as_me:$LINENO: checking for inline" >&5
20024 echo $ECHO_N "checking for inline... $ECHO_C" >&6
20025 if test "${ac_cv_c_inline+set}" = set; then
20026   echo $ECHO_N "(cached) $ECHO_C" >&6
20027 else
20028   ac_cv_c_inline=no
20029 for ac_kw in inline __inline__ __inline; do
20030   cat >conftest.$ac_ext <<_ACEOF
20031 #line $LINENO "configure"
20032 /* confdefs.h.  */
20033 _ACEOF
20034 cat confdefs.h >>conftest.$ac_ext
20035 cat >>conftest.$ac_ext <<_ACEOF
20036 /* end confdefs.h.  */
20037 #ifndef __cplusplus
20038 typedef int foo_t;
20039 static $ac_kw foo_t static_foo () {return 0; }
20040 $ac_kw foo_t foo () {return 0; }
20041 #endif
20042
20043 _ACEOF
20044 rm -f conftest.$ac_objext
20045 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20046   (eval $ac_compile) 2>&5
20047   ac_status=$?
20048   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20049   (exit $ac_status); } &&
20050          { ac_try='test -s conftest.$ac_objext'
20051   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20052   (eval $ac_try) 2>&5
20053   ac_status=$?
20054   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20055   (exit $ac_status); }; }; then
20056   ac_cv_c_inline=$ac_kw; break
20057 else
20058   echo "$as_me: failed program was:" >&5
20059 sed 's/^/| /' conftest.$ac_ext >&5
20060
20061 fi
20062 rm -f conftest.$ac_objext conftest.$ac_ext
20063 done
20064
20065 fi
20066 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
20067 echo "${ECHO_T}$ac_cv_c_inline" >&6
20068 case $ac_cv_c_inline in
20069   inline | yes) ;;
20070   no)
20071 cat >>confdefs.h <<\_ACEOF
20072 #define inline
20073 _ACEOF
20074  ;;
20075   *)  cat >>confdefs.h <<_ACEOF
20076 #define inline $ac_cv_c_inline
20077 _ACEOF
20078  ;;
20079 esac
20080
20081
20082 echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
20083 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
20084 if test "${ac_cv_c_bigendian+set}" = set; then
20085   echo $ECHO_N "(cached) $ECHO_C" >&6
20086 else
20087   # See if sys/param.h defines the BYTE_ORDER macro.
20088 cat >conftest.$ac_ext <<_ACEOF
20089 #line $LINENO "configure"
20090 /* confdefs.h.  */
20091 _ACEOF
20092 cat confdefs.h >>conftest.$ac_ext
20093 cat >>conftest.$ac_ext <<_ACEOF
20094 /* end confdefs.h.  */
20095 #include <sys/types.h>
20096 #include <sys/param.h>
20097
20098 int
20099 main ()
20100 {
20101 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
20102  bogus endian macros
20103 #endif
20104
20105   ;
20106   return 0;
20107 }
20108 _ACEOF
20109 rm -f conftest.$ac_objext
20110 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20111   (eval $ac_compile) 2>&5
20112   ac_status=$?
20113   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20114   (exit $ac_status); } &&
20115          { ac_try='test -s conftest.$ac_objext'
20116   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20117   (eval $ac_try) 2>&5
20118   ac_status=$?
20119   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20120   (exit $ac_status); }; }; then
20121   # It does; now see whether it defined to BIG_ENDIAN or not.
20122 cat >conftest.$ac_ext <<_ACEOF
20123 #line $LINENO "configure"
20124 /* confdefs.h.  */
20125 _ACEOF
20126 cat confdefs.h >>conftest.$ac_ext
20127 cat >>conftest.$ac_ext <<_ACEOF
20128 /* end confdefs.h.  */
20129 #include <sys/types.h>
20130 #include <sys/param.h>
20131
20132 int
20133 main ()
20134 {
20135 #if BYTE_ORDER != BIG_ENDIAN
20136  not big endian
20137 #endif
20138
20139   ;
20140   return 0;
20141 }
20142 _ACEOF
20143 rm -f conftest.$ac_objext
20144 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20145   (eval $ac_compile) 2>&5
20146   ac_status=$?
20147   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20148   (exit $ac_status); } &&
20149          { ac_try='test -s conftest.$ac_objext'
20150   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20151   (eval $ac_try) 2>&5
20152   ac_status=$?
20153   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20154   (exit $ac_status); }; }; then
20155   ac_cv_c_bigendian=yes
20156 else
20157   echo "$as_me: failed program was:" >&5
20158 sed 's/^/| /' conftest.$ac_ext >&5
20159
20160 ac_cv_c_bigendian=no
20161 fi
20162 rm -f conftest.$ac_objext conftest.$ac_ext
20163 else
20164   echo "$as_me: failed program was:" >&5
20165 sed 's/^/| /' conftest.$ac_ext >&5
20166
20167 # It does not; compile a test program.
20168 if test "$cross_compiling" = yes; then
20169   # try to guess the endianness by grepping values into an object file
20170   ac_cv_c_bigendian=unknown
20171   cat >conftest.$ac_ext <<_ACEOF
20172 #line $LINENO "configure"
20173 /* confdefs.h.  */
20174 _ACEOF
20175 cat confdefs.h >>conftest.$ac_ext
20176 cat >>conftest.$ac_ext <<_ACEOF
20177 /* end confdefs.h.  */
20178 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
20179 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
20180 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
20181 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
20182 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
20183 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
20184 int
20185 main ()
20186 {
20187  _ascii (); _ebcdic ();
20188   ;
20189   return 0;
20190 }
20191 _ACEOF
20192 rm -f conftest.$ac_objext
20193 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20194   (eval $ac_compile) 2>&5
20195   ac_status=$?
20196   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20197   (exit $ac_status); } &&
20198          { ac_try='test -s conftest.$ac_objext'
20199   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20200   (eval $ac_try) 2>&5
20201   ac_status=$?
20202   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20203   (exit $ac_status); }; }; then
20204   if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
20205   ac_cv_c_bigendian=yes
20206 fi
20207 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
20208   if test "$ac_cv_c_bigendian" = unknown; then
20209     ac_cv_c_bigendian=no
20210   else
20211     # finding both strings is unlikely to happen, but who knows?
20212     ac_cv_c_bigendian=unknown
20213   fi
20214 fi
20215 else
20216   echo "$as_me: failed program was:" >&5
20217 sed 's/^/| /' conftest.$ac_ext >&5
20218
20219 fi
20220 rm -f conftest.$ac_objext conftest.$ac_ext
20221 else
20222   cat >conftest.$ac_ext <<_ACEOF
20223 #line $LINENO "configure"
20224 /* confdefs.h.  */
20225 _ACEOF
20226 cat confdefs.h >>conftest.$ac_ext
20227 cat >>conftest.$ac_ext <<_ACEOF
20228 /* end confdefs.h.  */
20229 int
20230 main ()
20231 {
20232   /* Are we little or big endian?  From Harbison&Steele.  */
20233   union
20234   {
20235     long l;
20236     char c[sizeof (long)];
20237   } u;
20238   u.l = 1;
20239   exit (u.c[sizeof (long) - 1] == 1);
20240 }
20241 _ACEOF
20242 rm -f conftest$ac_exeext
20243 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20244   (eval $ac_link) 2>&5
20245   ac_status=$?
20246   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20247   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20248   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20249   (eval $ac_try) 2>&5
20250   ac_status=$?
20251   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20252   (exit $ac_status); }; }; then
20253   ac_cv_c_bigendian=no
20254 else
20255   echo "$as_me: program exited with status $ac_status" >&5
20256 echo "$as_me: failed program was:" >&5
20257 sed 's/^/| /' conftest.$ac_ext >&5
20258
20259 ( exit $ac_status )
20260 ac_cv_c_bigendian=yes
20261 fi
20262 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20263 fi
20264 fi
20265 rm -f conftest.$ac_objext conftest.$ac_ext
20266 fi
20267 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
20268 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
20269 case $ac_cv_c_bigendian in
20270   yes)
20271     cat >>confdefs.h <<\_ACEOF
20272 #define ENDIAN_BIG 1
20273 _ACEOF
20274  ;;
20275   no)
20276     cat >>confdefs.h <<\_ACEOF
20277 #define ENDIAN_LITTLE 1
20278 _ACEOF
20279  ;;
20280   *)
20281     { { echo "$as_me:$LINENO: error: unknown endianness
20282 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
20283 echo "$as_me: error: unknown endianness
20284 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
20285    { (exit 1); exit 1; }; } ;;
20286 esac
20287
20288
20289 echo "$as_me:$LINENO: checking for pid_t" >&5
20290 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
20291 if test "${ac_cv_type_pid_t+set}" = set; then
20292   echo $ECHO_N "(cached) $ECHO_C" >&6
20293 else
20294   cat >conftest.$ac_ext <<_ACEOF
20295 #line $LINENO "configure"
20296 /* confdefs.h.  */
20297 _ACEOF
20298 cat confdefs.h >>conftest.$ac_ext
20299 cat >>conftest.$ac_ext <<_ACEOF
20300 /* end confdefs.h.  */
20301 $ac_includes_default
20302 int
20303 main ()
20304 {
20305 if ((pid_t *) 0)
20306   return 0;
20307 if (sizeof (pid_t))
20308   return 0;
20309   ;
20310   return 0;
20311 }
20312 _ACEOF
20313 rm -f conftest.$ac_objext
20314 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20315   (eval $ac_compile) 2>&5
20316   ac_status=$?
20317   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20318   (exit $ac_status); } &&
20319          { ac_try='test -s conftest.$ac_objext'
20320   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20321   (eval $ac_try) 2>&5
20322   ac_status=$?
20323   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20324   (exit $ac_status); }; }; then
20325   ac_cv_type_pid_t=yes
20326 else
20327   echo "$as_me: failed program was:" >&5
20328 sed 's/^/| /' conftest.$ac_ext >&5
20329
20330 ac_cv_type_pid_t=no
20331 fi
20332 rm -f conftest.$ac_objext conftest.$ac_ext
20333 fi
20334 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
20335 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
20336 if test $ac_cv_type_pid_t = yes; then
20337   :
20338 else
20339
20340 cat >>confdefs.h <<_ACEOF
20341 #define pid_t int
20342 _ACEOF
20343
20344 fi
20345
20346 echo "$as_me:$LINENO: checking for size_t" >&5
20347 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
20348 if test "${ac_cv_type_size_t+set}" = set; then
20349   echo $ECHO_N "(cached) $ECHO_C" >&6
20350 else
20351   cat >conftest.$ac_ext <<_ACEOF
20352 #line $LINENO "configure"
20353 /* confdefs.h.  */
20354 _ACEOF
20355 cat confdefs.h >>conftest.$ac_ext
20356 cat >>conftest.$ac_ext <<_ACEOF
20357 /* end confdefs.h.  */
20358 $ac_includes_default
20359 int
20360 main ()
20361 {
20362 if ((size_t *) 0)
20363   return 0;
20364 if (sizeof (size_t))
20365   return 0;
20366   ;
20367   return 0;
20368 }
20369 _ACEOF
20370 rm -f conftest.$ac_objext
20371 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20372   (eval $ac_compile) 2>&5
20373   ac_status=$?
20374   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20375   (exit $ac_status); } &&
20376          { ac_try='test -s conftest.$ac_objext'
20377   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20378   (eval $ac_try) 2>&5
20379   ac_status=$?
20380   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20381   (exit $ac_status); }; }; then
20382   ac_cv_type_size_t=yes
20383 else
20384   echo "$as_me: failed program was:" >&5
20385 sed 's/^/| /' conftest.$ac_ext >&5
20386
20387 ac_cv_type_size_t=no
20388 fi
20389 rm -f conftest.$ac_objext conftest.$ac_ext
20390 fi
20391 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
20392 echo "${ECHO_T}$ac_cv_type_size_t" >&6
20393 if test $ac_cv_type_size_t = yes; then
20394   :
20395 else
20396
20397 cat >>confdefs.h <<_ACEOF
20398 #define size_t unsigned
20399 _ACEOF
20400
20401 fi
20402
20403 echo "$as_me:$LINENO: checking for int64_t" >&5
20404 echo $ECHO_N "checking for int64_t... $ECHO_C" >&6
20405 if test "${ac_cv_type_int64_t+set}" = set; then
20406   echo $ECHO_N "(cached) $ECHO_C" >&6
20407 else
20408   cat >conftest.$ac_ext <<_ACEOF
20409 #line $LINENO "configure"
20410 /* confdefs.h.  */
20411 _ACEOF
20412 cat confdefs.h >>conftest.$ac_ext
20413 cat >>conftest.$ac_ext <<_ACEOF
20414 /* end confdefs.h.  */
20415 $ac_includes_default
20416 int
20417 main ()
20418 {
20419 if ((int64_t *) 0)
20420   return 0;
20421 if (sizeof (int64_t))
20422   return 0;
20423   ;
20424   return 0;
20425 }
20426 _ACEOF
20427 rm -f conftest.$ac_objext
20428 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20429   (eval $ac_compile) 2>&5
20430   ac_status=$?
20431   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20432   (exit $ac_status); } &&
20433          { ac_try='test -s conftest.$ac_objext'
20434   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20435   (eval $ac_try) 2>&5
20436   ac_status=$?
20437   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20438   (exit $ac_status); }; }; then
20439   ac_cv_type_int64_t=yes
20440 else
20441   echo "$as_me: failed program was:" >&5
20442 sed 's/^/| /' conftest.$ac_ext >&5
20443
20444 ac_cv_type_int64_t=no
20445 fi
20446 rm -f conftest.$ac_objext conftest.$ac_ext
20447 fi
20448 echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
20449 echo "${ECHO_T}$ac_cv_type_int64_t" >&6
20450 if test $ac_cv_type_int64_t = yes; then
20451
20452 cat >>confdefs.h <<_ACEOF
20453 #define HAVE_INT64_T 1
20454 _ACEOF
20455
20456
20457 else
20458   { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5
20459 echo "$as_me: error: Type int64_t required but not found" >&2;}
20460    { (exit 1); exit 1; }; }
20461 fi
20462
20463 echo "$as_me:$LINENO: checking for uint64_t" >&5
20464 echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6
20465 if test "${ac_cv_type_uint64_t+set}" = set; then
20466   echo $ECHO_N "(cached) $ECHO_C" >&6
20467 else
20468   cat >conftest.$ac_ext <<_ACEOF
20469 #line $LINENO "configure"
20470 /* confdefs.h.  */
20471 _ACEOF
20472 cat confdefs.h >>conftest.$ac_ext
20473 cat >>conftest.$ac_ext <<_ACEOF
20474 /* end confdefs.h.  */
20475 $ac_includes_default
20476 int
20477 main ()
20478 {
20479 if ((uint64_t *) 0)
20480   return 0;
20481 if (sizeof (uint64_t))
20482   return 0;
20483   ;
20484   return 0;
20485 }
20486 _ACEOF
20487 rm -f conftest.$ac_objext
20488 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20489   (eval $ac_compile) 2>&5
20490   ac_status=$?
20491   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20492   (exit $ac_status); } &&
20493          { ac_try='test -s conftest.$ac_objext'
20494   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20495   (eval $ac_try) 2>&5
20496   ac_status=$?
20497   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20498   (exit $ac_status); }; }; then
20499   ac_cv_type_uint64_t=yes
20500 else
20501   echo "$as_me: failed program was:" >&5
20502 sed 's/^/| /' conftest.$ac_ext >&5
20503
20504 ac_cv_type_uint64_t=no
20505 fi
20506 rm -f conftest.$ac_objext conftest.$ac_ext
20507 fi
20508 echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
20509 echo "${ECHO_T}$ac_cv_type_uint64_t" >&6
20510 if test $ac_cv_type_uint64_t = yes; then
20511
20512 cat >>confdefs.h <<_ACEOF
20513 #define HAVE_UINT64_T 1
20514 _ACEOF
20515
20516
20517 else
20518   { { echo "$as_me:$LINENO: error: Type uint64_t required but not found" >&5
20519 echo "$as_me: error: Type uint64_t required but not found" >&2;}
20520    { (exit 1); exit 1; }; }
20521 fi
20522
20523 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
20524 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
20525 if test "${ac_cv_header_time+set}" = set; then
20526   echo $ECHO_N "(cached) $ECHO_C" >&6
20527 else
20528   cat >conftest.$ac_ext <<_ACEOF
20529 #line $LINENO "configure"
20530 /* confdefs.h.  */
20531 _ACEOF
20532 cat confdefs.h >>conftest.$ac_ext
20533 cat >>conftest.$ac_ext <<_ACEOF
20534 /* end confdefs.h.  */
20535 #include <sys/types.h>
20536 #include <sys/time.h>
20537 #include <time.h>
20538
20539 int
20540 main ()
20541 {
20542 if ((struct tm *) 0)
20543 return 0;
20544   ;
20545   return 0;
20546 }
20547 _ACEOF
20548 rm -f conftest.$ac_objext
20549 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20550   (eval $ac_compile) 2>&5
20551   ac_status=$?
20552   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20553   (exit $ac_status); } &&
20554          { ac_try='test -s conftest.$ac_objext'
20555   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20556   (eval $ac_try) 2>&5
20557   ac_status=$?
20558   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20559   (exit $ac_status); }; }; then
20560   ac_cv_header_time=yes
20561 else
20562   echo "$as_me: failed program was:" >&5
20563 sed 's/^/| /' conftest.$ac_ext >&5
20564
20565 ac_cv_header_time=no
20566 fi
20567 rm -f conftest.$ac_objext conftest.$ac_ext
20568 fi
20569 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
20570 echo "${ECHO_T}$ac_cv_header_time" >&6
20571 if test $ac_cv_header_time = yes; then
20572
20573 cat >>confdefs.h <<\_ACEOF
20574 #define TIME_WITH_SYS_TIME 1
20575 _ACEOF
20576
20577 fi
20578
20579 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
20580 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
20581 if test "${ac_cv_struct_tm+set}" = set; then
20582   echo $ECHO_N "(cached) $ECHO_C" >&6
20583 else
20584   cat >conftest.$ac_ext <<_ACEOF
20585 #line $LINENO "configure"
20586 /* confdefs.h.  */
20587 _ACEOF
20588 cat confdefs.h >>conftest.$ac_ext
20589 cat >>conftest.$ac_ext <<_ACEOF
20590 /* end confdefs.h.  */
20591 #include <sys/types.h>
20592 #include <time.h>
20593
20594 int
20595 main ()
20596 {
20597 struct tm *tp; tp->tm_sec;
20598   ;
20599   return 0;
20600 }
20601 _ACEOF
20602 rm -f conftest.$ac_objext
20603 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20604   (eval $ac_compile) 2>&5
20605   ac_status=$?
20606   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20607   (exit $ac_status); } &&
20608          { ac_try='test -s conftest.$ac_objext'
20609   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20610   (eval $ac_try) 2>&5
20611   ac_status=$?
20612   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20613   (exit $ac_status); }; }; then
20614   ac_cv_struct_tm=time.h
20615 else
20616   echo "$as_me: failed program was:" >&5
20617 sed 's/^/| /' conftest.$ac_ext >&5
20618
20619 ac_cv_struct_tm=sys/time.h
20620 fi
20621 rm -f conftest.$ac_objext conftest.$ac_ext
20622 fi
20623 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
20624 echo "${ECHO_T}$ac_cv_struct_tm" >&6
20625 if test $ac_cv_struct_tm = sys/time.h; then
20626
20627 cat >>confdefs.h <<\_ACEOF
20628 #define TM_IN_SYS_TIME 1
20629 _ACEOF
20630
20631 fi
20632
20633
20634 echo "$as_me:$LINENO: checking whether the compiler implements namespaces" >&5
20635 echo $ECHO_N "checking whether the compiler implements namespaces... $ECHO_C" >&6
20636 if test "${ac_cv_cxx_namespaces+set}" = set; then
20637   echo $ECHO_N "(cached) $ECHO_C" >&6
20638 else
20639
20640
20641  ac_ext=cc
20642 ac_cpp='$CXXCPP $CPPFLAGS'
20643 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20644 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20645 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20646
20647  cat >conftest.$ac_ext <<_ACEOF
20648 #line $LINENO "configure"
20649 /* confdefs.h.  */
20650 _ACEOF
20651 cat confdefs.h >>conftest.$ac_ext
20652 cat >>conftest.$ac_ext <<_ACEOF
20653 /* end confdefs.h.  */
20654 namespace Outer { namespace Inner { int i = 0; }}
20655 int
20656 main ()
20657 {
20658 using namespace Outer::Inner; return i;
20659   ;
20660   return 0;
20661 }
20662 _ACEOF
20663 rm -f conftest.$ac_objext
20664 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20665   (eval $ac_compile) 2>&5
20666   ac_status=$?
20667   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20668   (exit $ac_status); } &&
20669          { ac_try='test -s conftest.$ac_objext'
20670   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20671   (eval $ac_try) 2>&5
20672   ac_status=$?
20673   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20674   (exit $ac_status); }; }; then
20675   ac_cv_cxx_namespaces=yes
20676 else
20677   echo "$as_me: failed program was:" >&5
20678 sed 's/^/| /' conftest.$ac_ext >&5
20679
20680 ac_cv_cxx_namespaces=no
20681 fi
20682 rm -f conftest.$ac_objext conftest.$ac_ext
20683  ac_ext=c
20684 ac_cpp='$CPP $CPPFLAGS'
20685 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20686 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20687 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20688
20689
20690 fi
20691 echo "$as_me:$LINENO: result: $ac_cv_cxx_namespaces" >&5
20692 echo "${ECHO_T}$ac_cv_cxx_namespaces" >&6
20693 if test "$ac_cv_cxx_namespaces" = yes; then
20694
20695 cat >>confdefs.h <<\_ACEOF
20696 #define HAVE_NAMESPACES
20697 _ACEOF
20698
20699 fi
20700
20701 echo "$as_me:$LINENO: checking whether the compiler has ext/hash_map" >&5
20702 echo $ECHO_N "checking whether the compiler has ext/hash_map... $ECHO_C" >&6
20703 if test "${ac_cv_cxx_have_ext_hash_map+set}" = set; then
20704   echo $ECHO_N "(cached) $ECHO_C" >&6
20705 else
20706
20707
20708
20709   ac_ext=cc
20710 ac_cpp='$CXXCPP $CPPFLAGS'
20711 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20712 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20713 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20714
20715   cat >conftest.$ac_ext <<_ACEOF
20716 #line $LINENO "configure"
20717 /* confdefs.h.  */
20718 _ACEOF
20719 cat confdefs.h >>conftest.$ac_ext
20720 cat >>conftest.$ac_ext <<_ACEOF
20721 /* end confdefs.h.  */
20722 #include <ext/hash_map>
20723 #ifdef HAVE_NAMESPACES
20724 using namespace std;
20725 #endif
20726 int
20727 main ()
20728 {
20729 hash_map<int, int> t; return 0;
20730   ;
20731   return 0;
20732 }
20733 _ACEOF
20734 rm -f conftest.$ac_objext
20735 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20736   (eval $ac_compile) 2>&5
20737   ac_status=$?
20738   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20739   (exit $ac_status); } &&
20740          { ac_try='test -s conftest.$ac_objext'
20741   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20742   (eval $ac_try) 2>&5
20743   ac_status=$?
20744   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20745   (exit $ac_status); }; }; then
20746   ac_cv_cxx_have_ext_hash_map=std
20747 else
20748   echo "$as_me: failed program was:" >&5
20749 sed 's/^/| /' conftest.$ac_ext >&5
20750
20751 ac_cv_cxx_have_ext_hash_map=no
20752 fi
20753 rm -f conftest.$ac_objext conftest.$ac_ext
20754   cat >conftest.$ac_ext <<_ACEOF
20755 #line $LINENO "configure"
20756 /* confdefs.h.  */
20757 _ACEOF
20758 cat confdefs.h >>conftest.$ac_ext
20759 cat >>conftest.$ac_ext <<_ACEOF
20760 /* end confdefs.h.  */
20761 #include <ext/hash_map>
20762 #ifdef HAVE_NAMESPACES
20763 using namespace __gnu_cxx;
20764 #endif
20765 int
20766 main ()
20767 {
20768 hash_map<int, int> t; return 0;
20769   ;
20770   return 0;
20771 }
20772 _ACEOF
20773 rm -f conftest.$ac_objext
20774 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20775   (eval $ac_compile) 2>&5
20776   ac_status=$?
20777   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20778   (exit $ac_status); } &&
20779          { ac_try='test -s conftest.$ac_objext'
20780   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20781   (eval $ac_try) 2>&5
20782   ac_status=$?
20783   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20784   (exit $ac_status); }; }; then
20785   ac_cv_cxx_have_ext_hash_map=gnu
20786 else
20787   echo "$as_me: failed program was:" >&5
20788 sed 's/^/| /' conftest.$ac_ext >&5
20789
20790 ac_cv_cxx_have_ext_hash_map=no
20791 fi
20792 rm -f conftest.$ac_objext conftest.$ac_ext
20793   ac_ext=c
20794 ac_cpp='$CPP $CPPFLAGS'
20795 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20796 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20797 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20798
20799
20800 fi
20801 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_ext_hash_map" >&5
20802 echo "${ECHO_T}$ac_cv_cxx_have_ext_hash_map" >&6
20803 if test "$ac_cv_cxx_have_ext_hash_map" = std; then
20804
20805 cat >>confdefs.h <<\_ACEOF
20806 #define HAVE_STD_EXT_HASH_MAP
20807 _ACEOF
20808
20809 fi
20810 if test "$ac_cv_cxx_have_ext_hash_map" = gnu; then
20811
20812 cat >>confdefs.h <<\_ACEOF
20813 #define HAVE_GNU_EXT_HASH_MAP
20814 _ACEOF
20815
20816 fi
20817
20818 echo "$as_me:$LINENO: checking whether the compiler has ext/hash_set" >&5
20819 echo $ECHO_N "checking whether the compiler has ext/hash_set... $ECHO_C" >&6
20820 if test "${ac_cv_cxx_have_ext_hash_set+set}" = set; then
20821   echo $ECHO_N "(cached) $ECHO_C" >&6
20822 else
20823
20824
20825
20826   ac_ext=cc
20827 ac_cpp='$CXXCPP $CPPFLAGS'
20828 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20829 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20830 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20831
20832   cat >conftest.$ac_ext <<_ACEOF
20833 #line $LINENO "configure"
20834 /* confdefs.h.  */
20835 _ACEOF
20836 cat confdefs.h >>conftest.$ac_ext
20837 cat >>conftest.$ac_ext <<_ACEOF
20838 /* end confdefs.h.  */
20839 #include <ext/hash_set>
20840 #ifdef HAVE_NAMESPACES
20841 using namespace std;
20842 #endif
20843 int
20844 main ()
20845 {
20846 hash_set<int> t; return 0;
20847   ;
20848   return 0;
20849 }
20850 _ACEOF
20851 rm -f conftest.$ac_objext
20852 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20853   (eval $ac_compile) 2>&5
20854   ac_status=$?
20855   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20856   (exit $ac_status); } &&
20857          { ac_try='test -s conftest.$ac_objext'
20858   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20859   (eval $ac_try) 2>&5
20860   ac_status=$?
20861   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20862   (exit $ac_status); }; }; then
20863   ac_cv_cxx_have_ext_hash_set=std
20864 else
20865   echo "$as_me: failed program was:" >&5
20866 sed 's/^/| /' conftest.$ac_ext >&5
20867
20868 ac_cv_cxx_have_ext_hash_set=no
20869 fi
20870 rm -f conftest.$ac_objext conftest.$ac_ext
20871   cat >conftest.$ac_ext <<_ACEOF
20872 #line $LINENO "configure"
20873 /* confdefs.h.  */
20874 _ACEOF
20875 cat confdefs.h >>conftest.$ac_ext
20876 cat >>conftest.$ac_ext <<_ACEOF
20877 /* end confdefs.h.  */
20878 #include <ext/hash_set>
20879 #ifdef HAVE_NAMESPACES
20880 using namespace __gnu_cxx;
20881 #endif
20882 int
20883 main ()
20884 {
20885 hash_set<int> t; return 0;
20886   ;
20887   return 0;
20888 }
20889 _ACEOF
20890 rm -f conftest.$ac_objext
20891 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20892   (eval $ac_compile) 2>&5
20893   ac_status=$?
20894   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20895   (exit $ac_status); } &&
20896          { ac_try='test -s conftest.$ac_objext'
20897   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20898   (eval $ac_try) 2>&5
20899   ac_status=$?
20900   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20901   (exit $ac_status); }; }; then
20902   ac_cv_cxx_have_ext_hash_set=gnu
20903 else
20904   echo "$as_me: failed program was:" >&5
20905 sed 's/^/| /' conftest.$ac_ext >&5
20906
20907 ac_cv_cxx_have_ext_hash_set=no
20908 fi
20909 rm -f conftest.$ac_objext conftest.$ac_ext
20910   ac_ext=c
20911 ac_cpp='$CPP $CPPFLAGS'
20912 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20913 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20914 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20915
20916
20917 fi
20918 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_ext_hash_set" >&5
20919 echo "${ECHO_T}$ac_cv_cxx_have_ext_hash_set" >&6
20920 if test "$ac_cv_cxx_have_ext_hash_set" = std; then
20921
20922 cat >>confdefs.h <<\_ACEOF
20923 #define HAVE_STD_EXT_HASH_SET
20924 _ACEOF
20925
20926 fi
20927 if test "$ac_cv_cxx_have_ext_hash_set" = gnu; then
20928
20929 cat >>confdefs.h <<\_ACEOF
20930 #define HAVE_GNU_EXT_HASH_SET
20931 _ACEOF
20932
20933 fi
20934
20935 echo "$as_me:$LINENO: checking whether the compiler has ext/slist" >&5
20936 echo $ECHO_N "checking whether the compiler has ext/slist... $ECHO_C" >&6
20937 if test "${ac_cv_cxx_have_ext_slist+set}" = set; then
20938   echo $ECHO_N "(cached) $ECHO_C" >&6
20939 else
20940
20941
20942
20943   ac_ext=cc
20944 ac_cpp='$CXXCPP $CPPFLAGS'
20945 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20946 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20947 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20948
20949   cat >conftest.$ac_ext <<_ACEOF
20950 #line $LINENO "configure"
20951 /* confdefs.h.  */
20952 _ACEOF
20953 cat confdefs.h >>conftest.$ac_ext
20954 cat >>conftest.$ac_ext <<_ACEOF
20955 /* end confdefs.h.  */
20956 #include <ext/slist>
20957 #ifdef HAVE_NAMESPACES
20958 using namespace std;
20959 #endif
20960 int
20961 main ()
20962 {
20963 slist<int> s; return 0;
20964   ;
20965   return 0;
20966 }
20967 _ACEOF
20968 rm -f conftest.$ac_objext
20969 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20970   (eval $ac_compile) 2>&5
20971   ac_status=$?
20972   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20973   (exit $ac_status); } &&
20974          { ac_try='test -s conftest.$ac_objext'
20975   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20976   (eval $ac_try) 2>&5
20977   ac_status=$?
20978   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20979   (exit $ac_status); }; }; then
20980   ac_cv_cxx_have_ext_slist=std
20981 else
20982   echo "$as_me: failed program was:" >&5
20983 sed 's/^/| /' conftest.$ac_ext >&5
20984
20985 ac_cv_cxx_have_ext_slist=no
20986 fi
20987 rm -f conftest.$ac_objext conftest.$ac_ext
20988   cat >conftest.$ac_ext <<_ACEOF
20989 #line $LINENO "configure"
20990 /* confdefs.h.  */
20991 _ACEOF
20992 cat confdefs.h >>conftest.$ac_ext
20993 cat >>conftest.$ac_ext <<_ACEOF
20994 /* end confdefs.h.  */
20995 #include <ext/slist>
20996 #ifdef HAVE_NAMESPACES
20997 using namespace __gnu_cxx;
20998 #endif
20999 int
21000 main ()
21001 {
21002 slist<int> s; return 0;
21003   ;
21004   return 0;
21005 }
21006 _ACEOF
21007 rm -f conftest.$ac_objext
21008 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21009   (eval $ac_compile) 2>&5
21010   ac_status=$?
21011   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21012   (exit $ac_status); } &&
21013          { ac_try='test -s conftest.$ac_objext'
21014   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21015   (eval $ac_try) 2>&5
21016   ac_status=$?
21017   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21018   (exit $ac_status); }; }; then
21019   ac_cv_cxx_have_ext_slist=gnu
21020 else
21021   echo "$as_me: failed program was:" >&5
21022 sed 's/^/| /' conftest.$ac_ext >&5
21023
21024 ac_cv_cxx_have_ext_slist=no
21025 fi
21026 rm -f conftest.$ac_objext conftest.$ac_ext
21027
21028   ac_ext=c
21029 ac_cpp='$CPP $CPPFLAGS'
21030 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21031 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21032 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21033
21034
21035 fi
21036 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_ext_slist" >&5
21037 echo "${ECHO_T}$ac_cv_cxx_have_ext_slist" >&6
21038 if test "$ac_cv_cxx_have_ext_slist" = std; then
21039
21040 cat >>confdefs.h <<\_ACEOF
21041 #define HAVE_EXT_SLIST std
21042 _ACEOF
21043
21044 fi
21045 if test "$ac_cv_cxx_have_ext_slist" = gnu; then
21046
21047 cat >>confdefs.h <<\_ACEOF
21048 #define HAVE_EXT_SLIST gnu
21049 _ACEOF
21050
21051 fi
21052
21053 echo "$as_me:$LINENO: checking whether the compiler has the standard iterator" >&5
21054 echo $ECHO_N "checking whether the compiler has the standard iterator... $ECHO_C" >&6
21055 if test "${ac_cv_cxx_have_std_iterator+set}" = set; then
21056   echo $ECHO_N "(cached) $ECHO_C" >&6
21057 else
21058
21059
21060
21061   ac_ext=cc
21062 ac_cpp='$CXXCPP $CPPFLAGS'
21063 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21064 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21065 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21066
21067   cat >conftest.$ac_ext <<_ACEOF
21068 #line $LINENO "configure"
21069 /* confdefs.h.  */
21070 _ACEOF
21071 cat confdefs.h >>conftest.$ac_ext
21072 cat >>conftest.$ac_ext <<_ACEOF
21073 /* end confdefs.h.  */
21074 #include <iterator>
21075 #ifdef HAVE_NAMESPACES
21076 using namespace std;
21077 #endif
21078 int
21079 main ()
21080 {
21081 iterator<int,int,int> t; return 0;
21082   ;
21083   return 0;
21084 }
21085 _ACEOF
21086 rm -f conftest.$ac_objext
21087 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21088   (eval $ac_compile) 2>&5
21089   ac_status=$?
21090   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21091   (exit $ac_status); } &&
21092          { ac_try='test -s conftest.$ac_objext'
21093   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21094   (eval $ac_try) 2>&5
21095   ac_status=$?
21096   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21097   (exit $ac_status); }; }; then
21098   ac_cv_cxx_have_std_iterator=yes
21099 else
21100   echo "$as_me: failed program was:" >&5
21101 sed 's/^/| /' conftest.$ac_ext >&5
21102
21103 ac_cv_cxx_have_std_iterator=no
21104 fi
21105 rm -f conftest.$ac_objext conftest.$ac_ext
21106   ac_ext=c
21107 ac_cpp='$CPP $CPPFLAGS'
21108 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21109 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21110 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21111
21112
21113 fi
21114 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_iterator" >&5
21115 echo "${ECHO_T}$ac_cv_cxx_have_std_iterator" >&6
21116 if test "$ac_cv_cxx_have_std_iterator" = yes; then
21117
21118 cat >>confdefs.h <<\_ACEOF
21119 #define HAVE_STD_ITERATOR
21120 _ACEOF
21121
21122 fi
21123
21124 echo "$as_me:$LINENO: checking whether the compiler has the bidirectional iterator" >&5
21125 echo $ECHO_N "checking whether the compiler has the bidirectional iterator... $ECHO_C" >&6
21126 if test "${ac_cv_cxx_have_bi_iterator+set}" = set; then
21127   echo $ECHO_N "(cached) $ECHO_C" >&6
21128 else
21129
21130
21131
21132   ac_ext=cc
21133 ac_cpp='$CXXCPP $CPPFLAGS'
21134 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21135 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21136 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21137
21138   cat >conftest.$ac_ext <<_ACEOF
21139 #line $LINENO "configure"
21140 /* confdefs.h.  */
21141 _ACEOF
21142 cat confdefs.h >>conftest.$ac_ext
21143 cat >>conftest.$ac_ext <<_ACEOF
21144 /* end confdefs.h.  */
21145 #include <iterator>
21146 #ifdef HAVE_NAMESPACES
21147 using namespace std;
21148 #endif
21149 int
21150 main ()
21151 {
21152 bidirectional_iterator<int,int> t; return 0;
21153   ;
21154   return 0;
21155 }
21156 _ACEOF
21157 rm -f conftest.$ac_objext
21158 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21159   (eval $ac_compile) 2>&5
21160   ac_status=$?
21161   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21162   (exit $ac_status); } &&
21163          { ac_try='test -s conftest.$ac_objext'
21164   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21165   (eval $ac_try) 2>&5
21166   ac_status=$?
21167   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21168   (exit $ac_status); }; }; then
21169   ac_cv_cxx_have_bi_iterator=yes
21170 else
21171   echo "$as_me: failed program was:" >&5
21172 sed 's/^/| /' conftest.$ac_ext >&5
21173
21174 ac_cv_cxx_have_bi_iterator=no
21175 fi
21176 rm -f conftest.$ac_objext conftest.$ac_ext
21177   ac_ext=c
21178 ac_cpp='$CPP $CPPFLAGS'
21179 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21180 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21181 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21182
21183
21184 fi
21185 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_bi_iterator" >&5
21186 echo "${ECHO_T}$ac_cv_cxx_have_bi_iterator" >&6
21187 if test "$ac_cv_cxx_have_bi_iterator" = yes; then
21188
21189 cat >>confdefs.h <<\_ACEOF
21190 #define HAVE_BI_ITERATOR
21191 _ACEOF
21192
21193 fi
21194
21195 echo "$as_me:$LINENO: checking whether the compiler has forward iterators" >&5
21196 echo $ECHO_N "checking whether the compiler has forward iterators... $ECHO_C" >&6
21197 if test "${ac_cv_cxx_have_fwd_iterator+set}" = set; then
21198   echo $ECHO_N "(cached) $ECHO_C" >&6
21199 else
21200
21201
21202
21203   ac_ext=cc
21204 ac_cpp='$CXXCPP $CPPFLAGS'
21205 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21206 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21207 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21208
21209   cat >conftest.$ac_ext <<_ACEOF
21210 #line $LINENO "configure"
21211 /* confdefs.h.  */
21212 _ACEOF
21213 cat confdefs.h >>conftest.$ac_ext
21214 cat >>conftest.$ac_ext <<_ACEOF
21215 /* end confdefs.h.  */
21216 #include <iterator>
21217 #ifdef HAVE_NAMESPACES
21218 using namespace std;
21219 #endif
21220 int
21221 main ()
21222 {
21223 forward_iterator<int,int> t; return 0;
21224   ;
21225   return 0;
21226 }
21227 _ACEOF
21228 rm -f conftest.$ac_objext
21229 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21230   (eval $ac_compile) 2>&5
21231   ac_status=$?
21232   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21233   (exit $ac_status); } &&
21234          { ac_try='test -s conftest.$ac_objext'
21235   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21236   (eval $ac_try) 2>&5
21237   ac_status=$?
21238   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21239   (exit $ac_status); }; }; then
21240   ac_cv_cxx_have_fwd_iterator=yes
21241 else
21242   echo "$as_me: failed program was:" >&5
21243 sed 's/^/| /' conftest.$ac_ext >&5
21244
21245 ac_cv_cxx_have_fwd_iterator=no
21246 fi
21247 rm -f conftest.$ac_objext conftest.$ac_ext
21248   ac_ext=c
21249 ac_cpp='$CPP $CPPFLAGS'
21250 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21251 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21252 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21253
21254
21255 fi
21256 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_fwd_iterator" >&5
21257 echo "${ECHO_T}$ac_cv_cxx_have_fwd_iterator" >&6
21258 if test "$ac_cv_cxx_have_fwd_iterator" = yes; then
21259
21260 cat >>confdefs.h <<\_ACEOF
21261 #define HAVE_FWD_ITERATOR
21262 _ACEOF
21263
21264 fi
21265
21266
21267 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
21268 # for constant arguments.  Useless!
21269 echo "$as_me:$LINENO: checking for working alloca.h" >&5
21270 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
21271 if test "${ac_cv_working_alloca_h+set}" = set; then
21272   echo $ECHO_N "(cached) $ECHO_C" >&6
21273 else
21274   cat >conftest.$ac_ext <<_ACEOF
21275 #line $LINENO "configure"
21276 /* confdefs.h.  */
21277 _ACEOF
21278 cat confdefs.h >>conftest.$ac_ext
21279 cat >>conftest.$ac_ext <<_ACEOF
21280 /* end confdefs.h.  */
21281 #include <alloca.h>
21282 int
21283 main ()
21284 {
21285 char *p = (char *) alloca (2 * sizeof (int));
21286   ;
21287   return 0;
21288 }
21289 _ACEOF
21290 rm -f conftest.$ac_objext conftest$ac_exeext
21291 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21292   (eval $ac_link) 2>&5
21293   ac_status=$?
21294   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21295   (exit $ac_status); } &&
21296          { ac_try='test -s conftest$ac_exeext'
21297   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21298   (eval $ac_try) 2>&5
21299   ac_status=$?
21300   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21301   (exit $ac_status); }; }; then
21302   ac_cv_working_alloca_h=yes
21303 else
21304   echo "$as_me: failed program was:" >&5
21305 sed 's/^/| /' conftest.$ac_ext >&5
21306
21307 ac_cv_working_alloca_h=no
21308 fi
21309 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21310 fi
21311 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
21312 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
21313 if test $ac_cv_working_alloca_h = yes; then
21314
21315 cat >>confdefs.h <<\_ACEOF
21316 #define HAVE_ALLOCA_H 1
21317 _ACEOF
21318
21319 fi
21320
21321 echo "$as_me:$LINENO: checking for alloca" >&5
21322 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
21323 if test "${ac_cv_func_alloca_works+set}" = set; then
21324   echo $ECHO_N "(cached) $ECHO_C" >&6
21325 else
21326   cat >conftest.$ac_ext <<_ACEOF
21327 #line $LINENO "configure"
21328 /* confdefs.h.  */
21329 _ACEOF
21330 cat confdefs.h >>conftest.$ac_ext
21331 cat >>conftest.$ac_ext <<_ACEOF
21332 /* end confdefs.h.  */
21333 #ifdef __GNUC__
21334 # define alloca __builtin_alloca
21335 #else
21336 # ifdef _MSC_VER
21337 #  include <malloc.h>
21338 #  define alloca _alloca
21339 # else
21340 #  if HAVE_ALLOCA_H
21341 #   include <alloca.h>
21342 #  else
21343 #   ifdef _AIX
21344  #pragma alloca
21345 #   else
21346 #    ifndef alloca /* predefined by HP cc +Olibcalls */
21347 char *alloca ();
21348 #    endif
21349 #   endif
21350 #  endif
21351 # endif
21352 #endif
21353
21354 int
21355 main ()
21356 {
21357 char *p = (char *) alloca (1);
21358   ;
21359   return 0;
21360 }
21361 _ACEOF
21362 rm -f conftest.$ac_objext conftest$ac_exeext
21363 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21364   (eval $ac_link) 2>&5
21365   ac_status=$?
21366   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21367   (exit $ac_status); } &&
21368          { ac_try='test -s conftest$ac_exeext'
21369   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21370   (eval $ac_try) 2>&5
21371   ac_status=$?
21372   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21373   (exit $ac_status); }; }; then
21374   ac_cv_func_alloca_works=yes
21375 else
21376   echo "$as_me: failed program was:" >&5
21377 sed 's/^/| /' conftest.$ac_ext >&5
21378
21379 ac_cv_func_alloca_works=no
21380 fi
21381 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21382 fi
21383 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
21384 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
21385
21386 if test $ac_cv_func_alloca_works = yes; then
21387
21388 cat >>confdefs.h <<\_ACEOF
21389 #define HAVE_ALLOCA 1
21390 _ACEOF
21391
21392 else
21393   # The SVR3 libPW and SVR4 libucb both contain incompatible functions
21394 # that cause trouble.  Some versions do not even contain alloca or
21395 # contain a buggy version.  If you still want to use their alloca,
21396 # use ar to extract alloca.o from them instead of compiling alloca.c.
21397
21398 ALLOCA=alloca.$ac_objext
21399
21400 cat >>confdefs.h <<\_ACEOF
21401 #define C_ALLOCA 1
21402 _ACEOF
21403
21404
21405 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
21406 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
21407 if test "${ac_cv_os_cray+set}" = set; then
21408   echo $ECHO_N "(cached) $ECHO_C" >&6
21409 else
21410   cat >conftest.$ac_ext <<_ACEOF
21411 #line $LINENO "configure"
21412 /* confdefs.h.  */
21413 _ACEOF
21414 cat confdefs.h >>conftest.$ac_ext
21415 cat >>conftest.$ac_ext <<_ACEOF
21416 /* end confdefs.h.  */
21417 #if defined(CRAY) && ! defined(CRAY2)
21418 webecray
21419 #else
21420 wenotbecray
21421 #endif
21422
21423 _ACEOF
21424 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21425   $EGREP "webecray" >/dev/null 2>&1; then
21426   ac_cv_os_cray=yes
21427 else
21428   ac_cv_os_cray=no
21429 fi
21430 rm -f conftest*
21431
21432 fi
21433 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
21434 echo "${ECHO_T}$ac_cv_os_cray" >&6
21435 if test $ac_cv_os_cray = yes; then
21436   for ac_func in _getb67 GETB67 getb67; do
21437     as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21438 echo "$as_me:$LINENO: checking for $ac_func" >&5
21439 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
21440 if eval "test \"\${$as_ac_var+set}\" = set"; then
21441   echo $ECHO_N "(cached) $ECHO_C" >&6
21442 else
21443   cat >conftest.$ac_ext <<_ACEOF
21444 #line $LINENO "configure"
21445 /* confdefs.h.  */
21446 _ACEOF
21447 cat confdefs.h >>conftest.$ac_ext
21448 cat >>conftest.$ac_ext <<_ACEOF
21449 /* end confdefs.h.  */
21450 /* System header to define __stub macros and hopefully few prototypes,
21451     which can conflict with char $ac_func (); below.
21452     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21453     <limits.h> exists even on freestanding compilers.  */
21454 #ifdef __STDC__
21455 # include <limits.h>
21456 #else
21457 # include <assert.h>
21458 #endif
21459 /* Override any gcc2 internal prototype to avoid an error.  */
21460 #ifdef __cplusplus
21461 extern "C"
21462 {
21463 #endif
21464 /* We use char because int might match the return type of a gcc2
21465    builtin and then its argument prototype would still apply.  */
21466 char $ac_func ();
21467 /* The GNU C library defines this for functions which it implements
21468     to always fail with ENOSYS.  Some functions are actually named
21469     something starting with __ and the normal name is an alias.  */
21470 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21471 choke me
21472 #else
21473 char (*f) () = $ac_func;
21474 #endif
21475 #ifdef __cplusplus
21476 }
21477 #endif
21478
21479 int
21480 main ()
21481 {
21482 return f != $ac_func;
21483   ;
21484   return 0;
21485 }
21486 _ACEOF
21487 rm -f conftest.$ac_objext conftest$ac_exeext
21488 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21489   (eval $ac_link) 2>&5
21490   ac_status=$?
21491   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21492   (exit $ac_status); } &&
21493          { ac_try='test -s conftest$ac_exeext'
21494   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21495   (eval $ac_try) 2>&5
21496   ac_status=$?
21497   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21498   (exit $ac_status); }; }; then
21499   eval "$as_ac_var=yes"
21500 else
21501   echo "$as_me: failed program was:" >&5
21502 sed 's/^/| /' conftest.$ac_ext >&5
21503
21504 eval "$as_ac_var=no"
21505 fi
21506 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21507 fi
21508 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
21509 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
21510 if test `eval echo '${'$as_ac_var'}'` = yes; then
21511
21512 cat >>confdefs.h <<_ACEOF
21513 #define CRAY_STACKSEG_END $ac_func
21514 _ACEOF
21515
21516     break
21517 fi
21518
21519   done
21520 fi
21521
21522 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
21523 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
21524 if test "${ac_cv_c_stack_direction+set}" = set; then
21525   echo $ECHO_N "(cached) $ECHO_C" >&6
21526 else
21527   if test "$cross_compiling" = yes; then
21528   ac_cv_c_stack_direction=0
21529 else
21530   cat >conftest.$ac_ext <<_ACEOF
21531 #line $LINENO "configure"
21532 /* confdefs.h.  */
21533 _ACEOF
21534 cat confdefs.h >>conftest.$ac_ext
21535 cat >>conftest.$ac_ext <<_ACEOF
21536 /* end confdefs.h.  */
21537 int
21538 find_stack_direction ()
21539 {
21540   static char *addr = 0;
21541   auto char dummy;
21542   if (addr == 0)
21543     {
21544       addr = &dummy;
21545       return find_stack_direction ();
21546     }
21547   else
21548     return (&dummy > addr) ? 1 : -1;
21549 }
21550
21551 int
21552 main ()
21553 {
21554   exit (find_stack_direction () < 0);
21555 }
21556 _ACEOF
21557 rm -f conftest$ac_exeext
21558 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21559   (eval $ac_link) 2>&5
21560   ac_status=$?
21561   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21562   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21563   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21564   (eval $ac_try) 2>&5
21565   ac_status=$?
21566   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21567   (exit $ac_status); }; }; then
21568   ac_cv_c_stack_direction=1
21569 else
21570   echo "$as_me: program exited with status $ac_status" >&5
21571 echo "$as_me: failed program was:" >&5
21572 sed 's/^/| /' conftest.$ac_ext >&5
21573
21574 ( exit $ac_status )
21575 ac_cv_c_stack_direction=-1
21576 fi
21577 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21578 fi
21579 fi
21580 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
21581 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
21582
21583 cat >>confdefs.h <<_ACEOF
21584 #define STACK_DIRECTION $ac_cv_c_stack_direction
21585 _ACEOF
21586
21587
21588 fi
21589
21590 if test $ac_cv_c_compiler_gnu = yes; then
21591     echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
21592 echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6
21593 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
21594   echo $ECHO_N "(cached) $ECHO_C" >&6
21595 else
21596     ac_pattern="Autoconf.*'x'"
21597   cat >conftest.$ac_ext <<_ACEOF
21598 #line $LINENO "configure"
21599 /* confdefs.h.  */
21600 _ACEOF
21601 cat confdefs.h >>conftest.$ac_ext
21602 cat >>conftest.$ac_ext <<_ACEOF
21603 /* end confdefs.h.  */
21604 #include <sgtty.h>
21605 Autoconf TIOCGETP
21606 _ACEOF
21607 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21608   $EGREP "$ac_pattern" >/dev/null 2>&1; then
21609   ac_cv_prog_gcc_traditional=yes
21610 else
21611   ac_cv_prog_gcc_traditional=no
21612 fi
21613 rm -f conftest*
21614
21615
21616   if test $ac_cv_prog_gcc_traditional = no; then
21617     cat >conftest.$ac_ext <<_ACEOF
21618 #line $LINENO "configure"
21619 /* confdefs.h.  */
21620 _ACEOF
21621 cat confdefs.h >>conftest.$ac_ext
21622 cat >>conftest.$ac_ext <<_ACEOF
21623 /* end confdefs.h.  */
21624 #include <termio.h>
21625 Autoconf TCGETA
21626 _ACEOF
21627 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21628   $EGREP "$ac_pattern" >/dev/null 2>&1; then
21629   ac_cv_prog_gcc_traditional=yes
21630 fi
21631 rm -f conftest*
21632
21633   fi
21634 fi
21635 echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
21636 echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6
21637   if test $ac_cv_prog_gcc_traditional = yes; then
21638     CC="$CC -traditional"
21639   fi
21640 fi
21641
21642 echo "$as_me:$LINENO: checking for working memcmp" >&5
21643 echo $ECHO_N "checking for working memcmp... $ECHO_C" >&6
21644 if test "${ac_cv_func_memcmp_working+set}" = set; then
21645   echo $ECHO_N "(cached) $ECHO_C" >&6
21646 else
21647   if test "$cross_compiling" = yes; then
21648   ac_cv_func_memcmp_working=no
21649 else
21650   cat >conftest.$ac_ext <<_ACEOF
21651 #line $LINENO "configure"
21652 /* confdefs.h.  */
21653 _ACEOF
21654 cat confdefs.h >>conftest.$ac_ext
21655 cat >>conftest.$ac_ext <<_ACEOF
21656 /* end confdefs.h.  */
21657
21658 int
21659 main ()
21660 {
21661
21662   /* Some versions of memcmp are not 8-bit clean.  */
21663   char c0 = 0x40, c1 = 0x80, c2 = 0x81;
21664   if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
21665     exit (1);
21666
21667   /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
21668      or more and with at least one buffer not starting on a 4-byte boundary.
21669      William Lewis provided this test program.   */
21670   {
21671     char foo[21];
21672     char bar[21];
21673     int i;
21674     for (i = 0; i < 4; i++)
21675       {
21676         char *a = foo + i;
21677         char *b = bar + i;
21678         strcpy (a, "--------01111111");
21679         strcpy (b, "--------10000000");
21680         if (memcmp (a, b, 16) >= 0)
21681           exit (1);
21682       }
21683     exit (0);
21684   }
21685
21686   ;
21687   return 0;
21688 }
21689 _ACEOF
21690 rm -f conftest$ac_exeext
21691 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21692   (eval $ac_link) 2>&5
21693   ac_status=$?
21694   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21695   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21696   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21697   (eval $ac_try) 2>&5
21698   ac_status=$?
21699   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21700   (exit $ac_status); }; }; then
21701   ac_cv_func_memcmp_working=yes
21702 else
21703   echo "$as_me: program exited with status $ac_status" >&5
21704 echo "$as_me: failed program was:" >&5
21705 sed 's/^/| /' conftest.$ac_ext >&5
21706
21707 ( exit $ac_status )
21708 ac_cv_func_memcmp_working=no
21709 fi
21710 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21711 fi
21712 fi
21713 echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
21714 echo "${ECHO_T}$ac_cv_func_memcmp_working" >&6
21715 test $ac_cv_func_memcmp_working = no && LIBOBJS="$LIBOBJS memcmp.$ac_objext"
21716
21717
21718
21719 for ac_header in stdlib.h unistd.h
21720 do
21721 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21722 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21723   echo "$as_me:$LINENO: checking for $ac_header" >&5
21724 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21725 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21726   echo $ECHO_N "(cached) $ECHO_C" >&6
21727 fi
21728 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21729 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21730 else
21731   # Is the header compilable?
21732 echo "$as_me:$LINENO: checking $ac_header usability" >&5
21733 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
21734 cat >conftest.$ac_ext <<_ACEOF
21735 #line $LINENO "configure"
21736 /* confdefs.h.  */
21737 _ACEOF
21738 cat confdefs.h >>conftest.$ac_ext
21739 cat >>conftest.$ac_ext <<_ACEOF
21740 /* end confdefs.h.  */
21741 $ac_includes_default
21742 #include <$ac_header>
21743 _ACEOF
21744 rm -f conftest.$ac_objext
21745 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21746   (eval $ac_compile) 2>&5
21747   ac_status=$?
21748   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21749   (exit $ac_status); } &&
21750          { ac_try='test -s conftest.$ac_objext'
21751   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21752   (eval $ac_try) 2>&5
21753   ac_status=$?
21754   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21755   (exit $ac_status); }; }; then
21756   ac_header_compiler=yes
21757 else
21758   echo "$as_me: failed program was:" >&5
21759 sed 's/^/| /' conftest.$ac_ext >&5
21760
21761 ac_header_compiler=no
21762 fi
21763 rm -f conftest.$ac_objext conftest.$ac_ext
21764 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21765 echo "${ECHO_T}$ac_header_compiler" >&6
21766
21767 # Is the header present?
21768 echo "$as_me:$LINENO: checking $ac_header presence" >&5
21769 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
21770 cat >conftest.$ac_ext <<_ACEOF
21771 #line $LINENO "configure"
21772 /* confdefs.h.  */
21773 _ACEOF
21774 cat confdefs.h >>conftest.$ac_ext
21775 cat >>conftest.$ac_ext <<_ACEOF
21776 /* end confdefs.h.  */
21777 #include <$ac_header>
21778 _ACEOF
21779 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21780   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21781   ac_status=$?
21782   grep -v '^ *+' conftest.er1 >conftest.err
21783   rm -f conftest.er1
21784   cat conftest.err >&5
21785   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21786   (exit $ac_status); } >/dev/null; then
21787   if test -s conftest.err; then
21788     ac_cpp_err=$ac_c_preproc_warn_flag
21789   else
21790     ac_cpp_err=
21791   fi
21792 else
21793   ac_cpp_err=yes
21794 fi
21795 if test -z "$ac_cpp_err"; then
21796   ac_header_preproc=yes
21797 else
21798   echo "$as_me: failed program was:" >&5
21799 sed 's/^/| /' conftest.$ac_ext >&5
21800
21801   ac_header_preproc=no
21802 fi
21803 rm -f conftest.err conftest.$ac_ext
21804 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21805 echo "${ECHO_T}$ac_header_preproc" >&6
21806
21807 # So?  What about this header?
21808 case $ac_header_compiler:$ac_header_preproc in
21809   yes:no )
21810     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21811 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21812     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21813 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21814     (
21815       cat <<\_ASBOX
21816 ## ------------------------------------ ##
21817 ## Report this to bug-autoconf@gnu.org. ##
21818 ## ------------------------------------ ##
21819 _ASBOX
21820     ) |
21821       sed "s/^/$as_me: WARNING:     /" >&2
21822     ;;
21823   no:yes )
21824     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21825 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21826     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21827 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21828     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21829 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21830     (
21831       cat <<\_ASBOX
21832 ## ------------------------------------ ##
21833 ## Report this to bug-autoconf@gnu.org. ##
21834 ## ------------------------------------ ##
21835 _ASBOX
21836     ) |
21837       sed "s/^/$as_me: WARNING:     /" >&2
21838     ;;
21839 esac
21840 echo "$as_me:$LINENO: checking for $ac_header" >&5
21841 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21842 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21843   echo $ECHO_N "(cached) $ECHO_C" >&6
21844 else
21845   eval "$as_ac_Header=$ac_header_preproc"
21846 fi
21847 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21848 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21849
21850 fi
21851 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21852   cat >>confdefs.h <<_ACEOF
21853 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21854 _ACEOF
21855
21856 fi
21857
21858 done
21859
21860
21861 for ac_func in getpagesize
21862 do
21863 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21864 echo "$as_me:$LINENO: checking for $ac_func" >&5
21865 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
21866 if eval "test \"\${$as_ac_var+set}\" = set"; then
21867   echo $ECHO_N "(cached) $ECHO_C" >&6
21868 else
21869   cat >conftest.$ac_ext <<_ACEOF
21870 #line $LINENO "configure"
21871 /* confdefs.h.  */
21872 _ACEOF
21873 cat confdefs.h >>conftest.$ac_ext
21874 cat >>conftest.$ac_ext <<_ACEOF
21875 /* end confdefs.h.  */
21876 /* System header to define __stub macros and hopefully few prototypes,
21877     which can conflict with char $ac_func (); below.
21878     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21879     <limits.h> exists even on freestanding compilers.  */
21880 #ifdef __STDC__
21881 # include <limits.h>
21882 #else
21883 # include <assert.h>
21884 #endif
21885 /* Override any gcc2 internal prototype to avoid an error.  */
21886 #ifdef __cplusplus
21887 extern "C"
21888 {
21889 #endif
21890 /* We use char because int might match the return type of a gcc2
21891    builtin and then its argument prototype would still apply.  */
21892 char $ac_func ();
21893 /* The GNU C library defines this for functions which it implements
21894     to always fail with ENOSYS.  Some functions are actually named
21895     something starting with __ and the normal name is an alias.  */
21896 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21897 choke me
21898 #else
21899 char (*f) () = $ac_func;
21900 #endif
21901 #ifdef __cplusplus
21902 }
21903 #endif
21904
21905 int
21906 main ()
21907 {
21908 return f != $ac_func;
21909   ;
21910   return 0;
21911 }
21912 _ACEOF
21913 rm -f conftest.$ac_objext conftest$ac_exeext
21914 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21915   (eval $ac_link) 2>&5
21916   ac_status=$?
21917   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21918   (exit $ac_status); } &&
21919          { ac_try='test -s conftest$ac_exeext'
21920   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21921   (eval $ac_try) 2>&5
21922   ac_status=$?
21923   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21924   (exit $ac_status); }; }; then
21925   eval "$as_ac_var=yes"
21926 else
21927   echo "$as_me: failed program was:" >&5
21928 sed 's/^/| /' conftest.$ac_ext >&5
21929
21930 eval "$as_ac_var=no"
21931 fi
21932 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21933 fi
21934 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
21935 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
21936 if test `eval echo '${'$as_ac_var'}'` = yes; then
21937   cat >>confdefs.h <<_ACEOF
21938 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21939 _ACEOF
21940
21941 fi
21942 done
21943
21944 echo "$as_me:$LINENO: checking for working mmap" >&5
21945 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
21946 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
21947   echo $ECHO_N "(cached) $ECHO_C" >&6
21948 else
21949   if test "$cross_compiling" = yes; then
21950   ac_cv_func_mmap_fixed_mapped=no
21951 else
21952   cat >conftest.$ac_ext <<_ACEOF
21953 #line $LINENO "configure"
21954 /* confdefs.h.  */
21955 _ACEOF
21956 cat confdefs.h >>conftest.$ac_ext
21957 cat >>conftest.$ac_ext <<_ACEOF
21958 /* end confdefs.h.  */
21959 $ac_includes_default
21960 /* malloc might have been renamed as rpl_malloc. */
21961 #undef malloc
21962
21963 /* Thanks to Mike Haertel and Jim Avera for this test.
21964    Here is a matrix of mmap possibilities:
21965         mmap private not fixed
21966         mmap private fixed at somewhere currently unmapped
21967         mmap private fixed at somewhere already mapped
21968         mmap shared not fixed
21969         mmap shared fixed at somewhere currently unmapped
21970         mmap shared fixed at somewhere already mapped
21971    For private mappings, we should verify that changes cannot be read()
21972    back from the file, nor mmap's back from the file at a different
21973    address.  (There have been systems where private was not correctly
21974    implemented like the infamous i386 svr4.0, and systems where the
21975    VM page cache was not coherent with the file system buffer cache
21976    like early versions of FreeBSD and possibly contemporary NetBSD.)
21977    For shared mappings, we should conversely verify that changes get
21978    propagated back to all the places they're supposed to be.
21979
21980    Grep wants private fixed already mapped.
21981    The main things grep needs to know about mmap are:
21982    * does it exist and is it safe to write into the mmap'd area
21983    * how to use it (BSD variants)  */
21984
21985 #include <fcntl.h>
21986 #include <sys/mman.h>
21987
21988 #if !STDC_HEADERS && !HAVE_STDLIB_H
21989 char *malloc ();
21990 #endif
21991
21992 /* This mess was copied from the GNU getpagesize.h.  */
21993 #if !HAVE_GETPAGESIZE
21994 /* Assume that all systems that can run configure have sys/param.h.  */
21995 # if !HAVE_SYS_PARAM_H
21996 #  define HAVE_SYS_PARAM_H 1
21997 # endif
21998
21999 # ifdef _SC_PAGESIZE
22000 #  define getpagesize() sysconf(_SC_PAGESIZE)
22001 # else /* no _SC_PAGESIZE */
22002 #  if HAVE_SYS_PARAM_H
22003 #   include <sys/param.h>
22004 #   ifdef EXEC_PAGESIZE
22005 #    define getpagesize() EXEC_PAGESIZE
22006 #   else /* no EXEC_PAGESIZE */
22007 #    ifdef NBPG
22008 #     define getpagesize() NBPG * CLSIZE
22009 #     ifndef CLSIZE
22010 #      define CLSIZE 1
22011 #     endif /* no CLSIZE */
22012 #    else /* no NBPG */
22013 #     ifdef NBPC
22014 #      define getpagesize() NBPC
22015 #     else /* no NBPC */
22016 #      ifdef PAGESIZE
22017 #       define getpagesize() PAGESIZE
22018 #      endif /* PAGESIZE */
22019 #     endif /* no NBPC */
22020 #    endif /* no NBPG */
22021 #   endif /* no EXEC_PAGESIZE */
22022 #  else /* no HAVE_SYS_PARAM_H */
22023 #   define getpagesize() 8192   /* punt totally */
22024 #  endif /* no HAVE_SYS_PARAM_H */
22025 # endif /* no _SC_PAGESIZE */
22026
22027 #endif /* no HAVE_GETPAGESIZE */
22028
22029 int
22030 main ()
22031 {
22032   char *data, *data2, *data3;
22033   int i, pagesize;
22034   int fd;
22035
22036   pagesize = getpagesize ();
22037
22038   /* First, make a file with some known garbage in it. */
22039   data = (char *) malloc (pagesize);
22040   if (!data)
22041     exit (1);
22042   for (i = 0; i < pagesize; ++i)
22043     *(data + i) = rand ();
22044   umask (0);
22045   fd = creat ("conftest.mmap", 0600);
22046   if (fd < 0)
22047     exit (1);
22048   if (write (fd, data, pagesize) != pagesize)
22049     exit (1);
22050   close (fd);
22051
22052   /* Next, try to mmap the file at a fixed address which already has
22053      something else allocated at it.  If we can, also make sure that
22054      we see the same garbage.  */
22055   fd = open ("conftest.mmap", O_RDWR);
22056   if (fd < 0)
22057     exit (1);
22058   data2 = (char *) malloc (2 * pagesize);
22059   if (!data2)
22060     exit (1);
22061   data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
22062   if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
22063                      MAP_PRIVATE | MAP_FIXED, fd, 0L))
22064     exit (1);
22065   for (i = 0; i < pagesize; ++i)
22066     if (*(data + i) != *(data2 + i))
22067       exit (1);
22068
22069   /* Finally, make sure that changes to the mapped area do not
22070      percolate back to the file as seen by read().  (This is a bug on
22071      some variants of i386 svr4.0.)  */
22072   for (i = 0; i < pagesize; ++i)
22073     *(data2 + i) = *(data2 + i) + 1;
22074   data3 = (char *) malloc (pagesize);
22075   if (!data3)
22076     exit (1);
22077   if (read (fd, data3, pagesize) != pagesize)
22078     exit (1);
22079   for (i = 0; i < pagesize; ++i)
22080     if (*(data + i) != *(data3 + i))
22081       exit (1);
22082   close (fd);
22083   exit (0);
22084 }
22085 _ACEOF
22086 rm -f conftest$ac_exeext
22087 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22088   (eval $ac_link) 2>&5
22089   ac_status=$?
22090   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22091   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22092   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22093   (eval $ac_try) 2>&5
22094   ac_status=$?
22095   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22096   (exit $ac_status); }; }; then
22097   ac_cv_func_mmap_fixed_mapped=yes
22098 else
22099   echo "$as_me: program exited with status $ac_status" >&5
22100 echo "$as_me: failed program was:" >&5
22101 sed 's/^/| /' conftest.$ac_ext >&5
22102
22103 ( exit $ac_status )
22104 ac_cv_func_mmap_fixed_mapped=no
22105 fi
22106 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22107 fi
22108 fi
22109 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
22110 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
22111 if test $ac_cv_func_mmap_fixed_mapped = yes; then
22112
22113 cat >>confdefs.h <<\_ACEOF
22114 #define HAVE_MMAP 1
22115 _ACEOF
22116
22117 fi
22118 rm -f conftest.mmap
22119
22120 echo "$as_me:$LINENO: checking for mmap of files" >&5
22121 echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6
22122 if test "${ac_cv_func_mmap_file+set}" = set; then
22123   echo $ECHO_N "(cached) $ECHO_C" >&6
22124 else
22125
22126
22127   ac_ext=c
22128 ac_cpp='$CPP $CPPFLAGS'
22129 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22130 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22131 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22132
22133   if test "$cross_compiling" = yes; then
22134   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
22135 See \`config.log' for more details." >&5
22136 echo "$as_me: error: cannot run test program while cross compiling
22137 See \`config.log' for more details." >&2;}
22138    { (exit 1); exit 1; }; }
22139 else
22140   cat >conftest.$ac_ext <<_ACEOF
22141 #line $LINENO "configure"
22142 /* confdefs.h.  */
22143 _ACEOF
22144 cat confdefs.h >>conftest.$ac_ext
22145 cat >>conftest.$ac_ext <<_ACEOF
22146 /* end confdefs.h.  */
22147
22148 #ifdef HAVE_SYS_MMAN_H
22149 #include <sys/mman.h>
22150 #endif
22151
22152 #ifdef HAVE_SYS_TYPES_H
22153 #include <sys/types.h>
22154 #endif
22155
22156 #ifdef HAVE_FCNTL_H
22157 #include <fcntl.h>
22158 #endif
22159
22160   int fd;
22161   int main () {
22162   fd = creat ("foo",0777); fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0); unlink ("foo"); return (fd != MAP_FAILED);}
22163 _ACEOF
22164 rm -f conftest$ac_exeext
22165 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22166   (eval $ac_link) 2>&5
22167   ac_status=$?
22168   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22169   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22170   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22171   (eval $ac_try) 2>&5
22172   ac_status=$?
22173   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22174   (exit $ac_status); }; }; then
22175   ac_cv_func_mmap_file=yes
22176 else
22177   echo "$as_me: program exited with status $ac_status" >&5
22178 echo "$as_me: failed program was:" >&5
22179 sed 's/^/| /' conftest.$ac_ext >&5
22180
22181 ( exit $ac_status )
22182 ac_cv_func_mmap_file=no
22183 fi
22184 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22185 fi
22186   ac_ext=c
22187 ac_cpp='$CPP $CPPFLAGS'
22188 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22189 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22190 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22191
22192
22193 fi
22194 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
22195 echo "${ECHO_T}$ac_cv_func_mmap_file" >&6
22196 if test "$ac_cv_func_mmap_file" = yes; then
22197    cat >>confdefs.h <<\_ACEOF
22198 #define HAVE_MMAP_FILE 1
22199 _ACEOF
22200
22201    MMAP_FILE=yes
22202
22203 fi
22204
22205 if test ${ac_cv_func_mmap_file} = "no"
22206 then
22207         { { echo "$as_me:$LINENO: error: mmap() of files required but not found" >&5
22208 echo "$as_me: error: mmap() of files required but not found" >&2;}
22209    { (exit 1); exit 1; }; }
22210 fi
22211 echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5
22212 echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6
22213 if test "${ac_cv_header_mmap_anon+set}" = set; then
22214   echo $ECHO_N "(cached) $ECHO_C" >&6
22215 else
22216
22217
22218   ac_ext=c
22219 ac_cpp='$CPP $CPPFLAGS'
22220 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22221 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22222 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22223
22224   cat >conftest.$ac_ext <<_ACEOF
22225 #line $LINENO "configure"
22226 /* confdefs.h.  */
22227 _ACEOF
22228 cat confdefs.h >>conftest.$ac_ext
22229 cat >>conftest.$ac_ext <<_ACEOF
22230 /* end confdefs.h.  */
22231 #include <sys/mman.h>
22232   #include <unistd.h>
22233   #include <fcntl.h>
22234 int
22235 main ()
22236 {
22237 mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0);
22238   ;
22239   return 0;
22240 }
22241 _ACEOF
22242 rm -f conftest.$ac_objext
22243 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22244   (eval $ac_compile) 2>&5
22245   ac_status=$?
22246   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22247   (exit $ac_status); } &&
22248          { ac_try='test -s conftest.$ac_objext'
22249   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22250   (eval $ac_try) 2>&5
22251   ac_status=$?
22252   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22253   (exit $ac_status); }; }; then
22254   ac_cv_header_mmap_anon=yes
22255 else
22256   echo "$as_me: failed program was:" >&5
22257 sed 's/^/| /' conftest.$ac_ext >&5
22258
22259 ac_cv_header_mmap_anon=no
22260 fi
22261 rm -f conftest.$ac_objext conftest.$ac_ext
22262   ac_ext=c
22263 ac_cpp='$CPP $CPPFLAGS'
22264 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22265 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22266 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22267
22268
22269 fi
22270 echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5
22271 echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6
22272 if test "$ac_cv_header_mmap_anon" = yes; then
22273    cat >>confdefs.h <<\_ACEOF
22274 #define HAVE_MMAP_ANONYMOUS 1
22275 _ACEOF
22276
22277 fi
22278
22279 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
22280 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
22281 if test "${ac_cv_type_signal+set}" = set; then
22282   echo $ECHO_N "(cached) $ECHO_C" >&6
22283 else
22284   cat >conftest.$ac_ext <<_ACEOF
22285 #line $LINENO "configure"
22286 /* confdefs.h.  */
22287 _ACEOF
22288 cat confdefs.h >>conftest.$ac_ext
22289 cat >>conftest.$ac_ext <<_ACEOF
22290 /* end confdefs.h.  */
22291 #include <sys/types.h>
22292 #include <signal.h>
22293 #ifdef signal
22294 # undef signal
22295 #endif
22296 #ifdef __cplusplus
22297 extern "C" void (*signal (int, void (*)(int)))(int);
22298 #else
22299 void (*signal ()) ();
22300 #endif
22301
22302 int
22303 main ()
22304 {
22305 int i;
22306   ;
22307   return 0;
22308 }
22309 _ACEOF
22310 rm -f conftest.$ac_objext
22311 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22312   (eval $ac_compile) 2>&5
22313   ac_status=$?
22314   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22315   (exit $ac_status); } &&
22316          { ac_try='test -s conftest.$ac_objext'
22317   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22318   (eval $ac_try) 2>&5
22319   ac_status=$?
22320   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22321   (exit $ac_status); }; }; then
22322   ac_cv_type_signal=void
22323 else
22324   echo "$as_me: failed program was:" >&5
22325 sed 's/^/| /' conftest.$ac_ext >&5
22326
22327 ac_cv_type_signal=int
22328 fi
22329 rm -f conftest.$ac_objext conftest.$ac_ext
22330 fi
22331 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
22332 echo "${ECHO_T}$ac_cv_type_signal" >&6
22333
22334 cat >>confdefs.h <<_ACEOF
22335 #define RETSIGTYPE $ac_cv_type_signal
22336 _ACEOF
22337
22338
22339
22340
22341
22342
22343
22344
22345
22346
22347
22348 for ac_func in getcwd gettimeofday strcspn strdup strerror strspn strstr strtod strtol
22349 do
22350 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22351 echo "$as_me:$LINENO: checking for $ac_func" >&5
22352 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
22353 if eval "test \"\${$as_ac_var+set}\" = set"; then
22354   echo $ECHO_N "(cached) $ECHO_C" >&6
22355 else
22356   cat >conftest.$ac_ext <<_ACEOF
22357 #line $LINENO "configure"
22358 /* confdefs.h.  */
22359 _ACEOF
22360 cat confdefs.h >>conftest.$ac_ext
22361 cat >>conftest.$ac_ext <<_ACEOF
22362 /* end confdefs.h.  */
22363 /* System header to define __stub macros and hopefully few prototypes,
22364     which can conflict with char $ac_func (); below.
22365     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22366     <limits.h> exists even on freestanding compilers.  */
22367 #ifdef __STDC__
22368 # include <limits.h>
22369 #else
22370 # include <assert.h>
22371 #endif
22372 /* Override any gcc2 internal prototype to avoid an error.  */
22373 #ifdef __cplusplus
22374 extern "C"
22375 {
22376 #endif
22377 /* We use char because int might match the return type of a gcc2
22378    builtin and then its argument prototype would still apply.  */
22379 char $ac_func ();
22380 /* The GNU C library defines this for functions which it implements
22381     to always fail with ENOSYS.  Some functions are actually named
22382     something starting with __ and the normal name is an alias.  */
22383 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22384 choke me
22385 #else
22386 char (*f) () = $ac_func;
22387 #endif
22388 #ifdef __cplusplus
22389 }
22390 #endif
22391
22392 int
22393 main ()
22394 {
22395 return f != $ac_func;
22396   ;
22397   return 0;
22398 }
22399 _ACEOF
22400 rm -f conftest.$ac_objext conftest$ac_exeext
22401 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22402   (eval $ac_link) 2>&5
22403   ac_status=$?
22404   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22405   (exit $ac_status); } &&
22406          { ac_try='test -s conftest$ac_exeext'
22407   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22408   (eval $ac_try) 2>&5
22409   ac_status=$?
22410   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22411   (exit $ac_status); }; }; then
22412   eval "$as_ac_var=yes"
22413 else
22414   echo "$as_me: failed program was:" >&5
22415 sed 's/^/| /' conftest.$ac_ext >&5
22416
22417 eval "$as_ac_var=no"
22418 fi
22419 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
22420 fi
22421 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
22422 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
22423 if test `eval echo '${'$as_ac_var'}'` = yes; then
22424   cat >>confdefs.h <<_ACEOF
22425 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22426 _ACEOF
22427
22428 fi
22429 done
22430
22431
22432
22433 echo "$as_me:$LINENO: checking for mmap" >&5
22434 echo $ECHO_N "checking for mmap... $ECHO_C" >&6
22435 if test "${ac_cv_func_mmap+set}" = set; then
22436   echo $ECHO_N "(cached) $ECHO_C" >&6
22437 else
22438   cat >conftest.$ac_ext <<_ACEOF
22439 #line $LINENO "configure"
22440 /* confdefs.h.  */
22441 _ACEOF
22442 cat confdefs.h >>conftest.$ac_ext
22443 cat >>conftest.$ac_ext <<_ACEOF
22444 /* end confdefs.h.  */
22445 /* System header to define __stub macros and hopefully few prototypes,
22446     which can conflict with char mmap (); below.
22447     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22448     <limits.h> exists even on freestanding compilers.  */
22449 #ifdef __STDC__
22450 # include <limits.h>
22451 #else
22452 # include <assert.h>
22453 #endif
22454 /* Override any gcc2 internal prototype to avoid an error.  */
22455 #ifdef __cplusplus
22456 extern "C"
22457 {
22458 #endif
22459 /* We use char because int might match the return type of a gcc2
22460    builtin and then its argument prototype would still apply.  */
22461 char mmap ();
22462 /* The GNU C library defines this for functions which it implements
22463     to always fail with ENOSYS.  Some functions are actually named
22464     something starting with __ and the normal name is an alias.  */
22465 #if defined (__stub_mmap) || defined (__stub___mmap)
22466 choke me
22467 #else
22468 char (*f) () = mmap;
22469 #endif
22470 #ifdef __cplusplus
22471 }
22472 #endif
22473
22474 int
22475 main ()
22476 {
22477 return f != mmap;
22478   ;
22479   return 0;
22480 }
22481 _ACEOF
22482 rm -f conftest.$ac_objext conftest$ac_exeext
22483 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22484   (eval $ac_link) 2>&5
22485   ac_status=$?
22486   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22487   (exit $ac_status); } &&
22488          { ac_try='test -s conftest$ac_exeext'
22489   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22490   (eval $ac_try) 2>&5
22491   ac_status=$?
22492   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22493   (exit $ac_status); }; }; then
22494   ac_cv_func_mmap=yes
22495 else
22496   echo "$as_me: failed program was:" >&5
22497 sed 's/^/| /' conftest.$ac_ext >&5
22498
22499 ac_cv_func_mmap=no
22500 fi
22501 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
22502 fi
22503 echo "$as_me:$LINENO: result: $ac_cv_func_mmap" >&5
22504 echo "${ECHO_T}$ac_cv_func_mmap" >&6
22505 if test $ac_cv_func_mmap = yes; then
22506   :
22507 else
22508   { { echo "$as_me:$LINENO: error: Function mmap() required but not found" >&5
22509 echo "$as_me: error: Function mmap() required but not found" >&2;}
22510    { (exit 1); exit 1; }; }
22511 fi
22512
22513 echo "$as_me:$LINENO: checking for mprotect" >&5
22514 echo $ECHO_N "checking for mprotect... $ECHO_C" >&6
22515 if test "${ac_cv_func_mprotect+set}" = set; then
22516   echo $ECHO_N "(cached) $ECHO_C" >&6
22517 else
22518   cat >conftest.$ac_ext <<_ACEOF
22519 #line $LINENO "configure"
22520 /* confdefs.h.  */
22521 _ACEOF
22522 cat confdefs.h >>conftest.$ac_ext
22523 cat >>conftest.$ac_ext <<_ACEOF
22524 /* end confdefs.h.  */
22525 /* System header to define __stub macros and hopefully few prototypes,
22526     which can conflict with char mprotect (); below.
22527     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22528     <limits.h> exists even on freestanding compilers.  */
22529 #ifdef __STDC__
22530 # include <limits.h>
22531 #else
22532 # include <assert.h>
22533 #endif
22534 /* Override any gcc2 internal prototype to avoid an error.  */
22535 #ifdef __cplusplus
22536 extern "C"
22537 {
22538 #endif
22539 /* We use char because int might match the return type of a gcc2
22540    builtin and then its argument prototype would still apply.  */
22541 char mprotect ();
22542 /* The GNU C library defines this for functions which it implements
22543     to always fail with ENOSYS.  Some functions are actually named
22544     something starting with __ and the normal name is an alias.  */
22545 #if defined (__stub_mprotect) || defined (__stub___mprotect)
22546 choke me
22547 #else
22548 char (*f) () = mprotect;
22549 #endif
22550 #ifdef __cplusplus
22551 }
22552 #endif
22553
22554 int
22555 main ()
22556 {
22557 return f != mprotect;
22558   ;
22559   return 0;
22560 }
22561 _ACEOF
22562 rm -f conftest.$ac_objext conftest$ac_exeext
22563 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22564   (eval $ac_link) 2>&5
22565   ac_status=$?
22566   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22567   (exit $ac_status); } &&
22568          { ac_try='test -s conftest$ac_exeext'
22569   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22570   (eval $ac_try) 2>&5
22571   ac_status=$?
22572   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22573   (exit $ac_status); }; }; then
22574   ac_cv_func_mprotect=yes
22575 else
22576   echo "$as_me: failed program was:" >&5
22577 sed 's/^/| /' conftest.$ac_ext >&5
22578
22579 ac_cv_func_mprotect=no
22580 fi
22581 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
22582 fi
22583 echo "$as_me:$LINENO: result: $ac_cv_func_mprotect" >&5
22584 echo "${ECHO_T}$ac_cv_func_mprotect" >&6
22585 if test $ac_cv_func_mprotect = yes; then
22586   :
22587 else
22588   { { echo "$as_me:$LINENO: error: Function mprotect() required but not found" >&5
22589 echo "$as_me: error: Function mprotect() required but not found" >&2;}
22590    { (exit 1); exit 1; }; }
22591 fi
22592
22593
22594
22595 # Check whether --enable-purify or --disable-purify was given.
22596 if test "${enable_purify+set}" = set; then
22597   enableval="$enable_purify"
22598
22599 else
22600   enableval="no"
22601 fi;
22602 if test ${enableval} = "no"
22603 then
22604         ENABLE_PURIFY=
22605
22606 else
22607         ENABLE_PURIFY=ENABLE_PURIFY=1
22608
22609 fi
22610
22611 # Check whether --enable-optimized or --disable-optimized was given.
22612 if test "${enable_optimized+set}" = set; then
22613   enableval="$enable_optimized"
22614
22615 else
22616   enableval=no
22617 fi;
22618 if test ${enableval} = "no"
22619 then
22620         ENABLE_OPTIMIZED=
22621
22622 else
22623         ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1
22624
22625 fi
22626
22627 # Check whether --enable-spec or --disable-spec was given.
22628 if test "${enable_spec+set}" = set; then
22629   enableval="$enable_spec"
22630
22631 else
22632   enableval=no
22633 fi;
22634 if test ${enableval} = "no"
22635 then
22636         USE_SPEC=
22637
22638 else
22639         USE_SPEC=USE_SPEC=1
22640
22641 fi
22642
22643 # Check whether --enable-precompiled_bytecode or --disable-precompiled_bytecode was given.
22644 if test "${enable_precompiled_bytecode+set}" = set; then
22645   enableval="$enable_precompiled_bytecode"
22646
22647 else
22648   enableval=no
22649 fi;
22650 if test ${enableval} = "no"
22651 then
22652         UPB=
22653
22654 else
22655         UPB=USE_PRECOMPILED_BYTECODE=1
22656
22657 fi
22658
22659
22660 # Check whether --enable-llc_diffs or --disable-llc_diffs was given.
22661 if test "${enable_llc_diffs+set}" = set; then
22662   enableval="$enable_llc_diffs"
22663
22664 else
22665   enableval=yes
22666 fi;
22667 if test ${enableval} = "no"
22668 then
22669         DISABLE_LLC_DIFFS=DISABLE_LLC_DIFFS:=1
22670
22671 else
22672         DISABLE_LLC_DIFFS=
22673
22674 fi
22675
22676 # Check whether --enable-jit or --disable-jit was given.
22677 if test "${enable_jit+set}" = set; then
22678   enableval="$enable_jit"
22679
22680 else
22681   enableval=default
22682 fi;
22683
22684 if test ${enableval} = "no"
22685 then
22686         JIT=
22687
22688 else
22689         case $target in
22690                 *i*86*)
22691                         JIT=TARGET_HAS_JIT=1
22692
22693                         ;;
22694                 *sparc*)
22695                         JIT=TARGET_HAS_JIT=1
22696
22697                         ;;
22698                 *)
22699                         JIT=
22700
22701                         ;;
22702         esac
22703 fi
22704
22705
22706
22707 # Check whether --with-spec or --without-spec was given.
22708 if test "${with_spec+set}" = set; then
22709   withval="$with_spec"
22710   SPEC_ROOT=$withval
22711
22712 else
22713   SPEC_ROOT=/home/vadve/shared/benchmarks/speccpu2000/benchspec
22714
22715 fi;
22716
22717
22718 # Check whether --with-llvmgccdir or --without-llvmgccdir was given.
22719 if test "${with_llvmgccdir+set}" = set; then
22720   withval="$with_llvmgccdir"
22721   LLVMGCCDIR=$withval
22722
22723 fi;
22724
22725
22726 # Check whether --with-bcrepos or --without-bcrepos was given.
22727 if test "${with_bcrepos+set}" = set; then
22728   withval="$with_bcrepos"
22729   BCR=$withval
22730
22731 else
22732   BCR=/home/vadve/lattner/LLVMPrograms
22733
22734 fi;
22735
22736
22737 # Check whether --with-papi or --without-papi was given.
22738 if test "${with_papi+set}" = set; then
22739   withval="$with_papi"
22740   PAPIDIR=$withval
22741
22742 else
22743   PAPIDIR=/home/vadve/shared/Sparc/papi-2.3.4.1
22744
22745 fi;
22746
22747
22748 # Check whether --with-purify or --without-purify was given.
22749 if test "${with_purify+set}" = set; then
22750   withval="$with_purify"
22751   PURIFY=$withval
22752
22753 fi;
22754
22755
22756           ac_config_files="$ac_config_files Makefile.config"
22757 cat >confcache <<\_ACEOF
22758 # This file is a shell script that caches the results of configure
22759 # tests run on this system so they can be shared between configure
22760 # scripts and configure runs, see configure's option --config-cache.
22761 # It is not useful on other systems.  If it contains results you don't
22762 # want to keep, you may remove or edit it.
22763 #
22764 # config.status only pays attention to the cache file if you give it
22765 # the --recheck option to rerun configure.
22766 #
22767 # `ac_cv_env_foo' variables (set or unset) will be overridden when
22768 # loading this file, other *unset* `ac_cv_foo' will be assigned the
22769 # following values.
22770
22771 _ACEOF
22772
22773 # The following way of writing the cache mishandles newlines in values,
22774 # but we know of no workaround that is simple, portable, and efficient.
22775 # So, don't put newlines in cache variables' values.
22776 # Ultrix sh set writes to stderr and can't be redirected directly,
22777 # and sets the high bit in the cache file unless we assign to the vars.
22778 {
22779   (set) 2>&1 |
22780     case `(ac_space=' '; set | grep ac_space) 2>&1` in
22781     *ac_space=\ *)
22782       # `set' does not quote correctly, so add quotes (double-quote
22783       # substitution turns \\\\ into \\, and sed turns \\ into \).
22784       sed -n \
22785         "s/'/'\\\\''/g;
22786           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
22787       ;;
22788     *)
22789       # `set' quotes correctly as required by POSIX, so do not add quotes.
22790       sed -n \
22791         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
22792       ;;
22793     esac;
22794 } |
22795   sed '
22796      t clear
22797      : clear
22798      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
22799      t end
22800      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
22801      : end' >>confcache
22802 if diff $cache_file confcache >/dev/null 2>&1; then :; else
22803   if test -w $cache_file; then
22804     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
22805     cat confcache >$cache_file
22806   else
22807     echo "not updating unwritable cache $cache_file"
22808   fi
22809 fi
22810 rm -f confcache
22811
22812 test "x$prefix" = xNONE && prefix=$ac_default_prefix
22813 # Let make expand exec_prefix.
22814 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
22815
22816 # VPATH may cause trouble with some makes, so we remove $(srcdir),
22817 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
22818 # trailing colons and then remove the whole line if VPATH becomes empty
22819 # (actually we leave an empty line to preserve line numbers).
22820 if test "x$srcdir" = x.; then
22821   ac_vpsub='/^[         ]*VPATH[        ]*=/{
22822 s/:*\$(srcdir):*/:/;
22823 s/:*\${srcdir}:*/:/;
22824 s/:*@srcdir@:*/:/;
22825 s/^\([^=]*=[    ]*\):*/\1/;
22826 s/:*$//;
22827 s/^[^=]*=[      ]*$//;
22828 }'
22829 fi
22830
22831 DEFS=-DHAVE_CONFIG_H
22832
22833 ac_libobjs=
22834 ac_ltlibobjs=
22835 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
22836   # 1. Remove the extension, and $U if already installed.
22837   ac_i=`echo "$ac_i" |
22838          sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
22839   # 2. Add them.
22840   ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
22841   ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
22842 done
22843 LIBOBJS=$ac_libobjs
22844
22845 LTLIBOBJS=$ac_ltlibobjs
22846
22847
22848
22849 : ${CONFIG_STATUS=./config.status}
22850 ac_clean_files_save=$ac_clean_files
22851 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
22852 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
22853 echo "$as_me: creating $CONFIG_STATUS" >&6;}
22854 cat >$CONFIG_STATUS <<_ACEOF
22855 #! $SHELL
22856 # Generated by $as_me.
22857 # Run this file to recreate the current configuration.
22858 # Compiler output produced by configure, useful for debugging
22859 # configure, is in config.log if it exists.
22860
22861 debug=false
22862 ac_cs_recheck=false
22863 ac_cs_silent=false
22864 SHELL=\${CONFIG_SHELL-$SHELL}
22865 _ACEOF
22866
22867 cat >>$CONFIG_STATUS <<\_ACEOF
22868 ## --------------------- ##
22869 ## M4sh Initialization.  ##
22870 ## --------------------- ##
22871
22872 # Be Bourne compatible
22873 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
22874   emulate sh
22875   NULLCMD=:
22876   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
22877   # is contrary to our usage.  Disable this feature.
22878   alias -g '${1+"$@"}'='"$@"'
22879 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
22880   set -o posix
22881 fi
22882
22883 # Support unset when possible.
22884 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
22885   as_unset=unset
22886 else
22887   as_unset=false
22888 fi
22889
22890
22891 # Work around bugs in pre-3.0 UWIN ksh.
22892 $as_unset ENV MAIL MAILPATH
22893 PS1='$ '
22894 PS2='> '
22895 PS4='+ '
22896
22897 # NLS nuisances.
22898 for as_var in \
22899   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
22900   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
22901   LC_TELEPHONE LC_TIME
22902 do
22903   if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
22904     eval $as_var=C; export $as_var
22905   else
22906     $as_unset $as_var
22907   fi
22908 done
22909
22910 # Required to use basename.
22911 if expr a : '\(a\)' >/dev/null 2>&1; then
22912   as_expr=expr
22913 else
22914   as_expr=false
22915 fi
22916
22917 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
22918   as_basename=basename
22919 else
22920   as_basename=false
22921 fi
22922
22923
22924 # Name of the executable.
22925 as_me=`$as_basename "$0" ||
22926 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
22927          X"$0" : 'X\(//\)$' \| \
22928          X"$0" : 'X\(/\)$' \| \
22929          .     : '\(.\)' 2>/dev/null ||
22930 echo X/"$0" |
22931     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
22932           /^X\/\(\/\/\)$/{ s//\1/; q; }
22933           /^X\/\(\/\).*/{ s//\1/; q; }
22934           s/.*/./; q'`
22935
22936
22937 # PATH needs CR, and LINENO needs CR and PATH.
22938 # Avoid depending upon Character Ranges.
22939 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
22940 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
22941 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
22942 as_cr_digits='0123456789'
22943 as_cr_alnum=$as_cr_Letters$as_cr_digits
22944
22945 # The user is always right.
22946 if test "${PATH_SEPARATOR+set}" != set; then
22947   echo "#! /bin/sh" >conf$$.sh
22948   echo  "exit 0"   >>conf$$.sh
22949   chmod +x conf$$.sh
22950   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
22951     PATH_SEPARATOR=';'
22952   else
22953     PATH_SEPARATOR=:
22954   fi
22955   rm -f conf$$.sh
22956 fi
22957
22958
22959   as_lineno_1=$LINENO
22960   as_lineno_2=$LINENO
22961   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
22962   test "x$as_lineno_1" != "x$as_lineno_2" &&
22963   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
22964   # Find who we are.  Look in the path if we contain no path at all
22965   # relative or not.
22966   case $0 in
22967     *[\\/]* ) as_myself=$0 ;;
22968     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22969 for as_dir in $PATH
22970 do
22971   IFS=$as_save_IFS
22972   test -z "$as_dir" && as_dir=.
22973   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
22974 done
22975
22976        ;;
22977   esac
22978   # We did not find ourselves, most probably we were run as `sh COMMAND'
22979   # in which case we are not to be found in the path.
22980   if test "x$as_myself" = x; then
22981     as_myself=$0
22982   fi
22983   if test ! -f "$as_myself"; then
22984     { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
22985 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
22986    { (exit 1); exit 1; }; }
22987   fi
22988   case $CONFIG_SHELL in
22989   '')
22990     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22991 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
22992 do
22993   IFS=$as_save_IFS
22994   test -z "$as_dir" && as_dir=.
22995   for as_base in sh bash ksh sh5; do
22996          case $as_dir in
22997          /*)
22998            if ("$as_dir/$as_base" -c '
22999   as_lineno_1=$LINENO
23000   as_lineno_2=$LINENO
23001   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
23002   test "x$as_lineno_1" != "x$as_lineno_2" &&
23003   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
23004              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
23005              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
23006              CONFIG_SHELL=$as_dir/$as_base
23007              export CONFIG_SHELL
23008              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
23009            fi;;
23010          esac
23011        done
23012 done
23013 ;;
23014   esac
23015
23016   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
23017   # uniformly replaced by the line number.  The first 'sed' inserts a
23018   # line-number line before each line; the second 'sed' does the real
23019   # work.  The second script uses 'N' to pair each line-number line
23020   # with the numbered line, and appends trailing '-' during
23021   # substitution so that $LINENO is not a special case at line end.
23022   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
23023   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
23024   sed '=' <$as_myself |
23025     sed '
23026       N
23027       s,$,-,
23028       : loop
23029       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
23030       t loop
23031       s,-$,,
23032       s,^['$as_cr_digits']*\n,,
23033     ' >$as_me.lineno &&
23034   chmod +x $as_me.lineno ||
23035     { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
23036 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
23037    { (exit 1); exit 1; }; }
23038
23039   # Don't try to exec as it changes $[0], causing all sort of problems
23040   # (the dirname of $[0] is not the place where we might find the
23041   # original and so on.  Autoconf is especially sensible to this).
23042   . ./$as_me.lineno
23043   # Exit status is that of the last command.
23044   exit
23045 }
23046
23047
23048 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
23049   *c*,-n*) ECHO_N= ECHO_C='
23050 ' ECHO_T='      ' ;;
23051   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
23052   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
23053 esac
23054
23055 if expr a : '\(a\)' >/dev/null 2>&1; then
23056   as_expr=expr
23057 else
23058   as_expr=false
23059 fi
23060
23061 rm -f conf$$ conf$$.exe conf$$.file
23062 echo >conf$$.file
23063 if ln -s conf$$.file conf$$ 2>/dev/null; then
23064   # We could just check for DJGPP; but this test a) works b) is more generic
23065   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
23066   if test -f conf$$.exe; then
23067     # Don't use ln at all; we don't have any links
23068     as_ln_s='cp -p'
23069   else
23070     as_ln_s='ln -s'
23071   fi
23072 elif ln conf$$.file conf$$ 2>/dev/null; then
23073   as_ln_s=ln
23074 else
23075   as_ln_s='cp -p'
23076 fi
23077 rm -f conf$$ conf$$.exe conf$$.file
23078
23079 if mkdir -p . 2>/dev/null; then
23080   as_mkdir_p=:
23081 else
23082   as_mkdir_p=false
23083 fi
23084
23085 as_executable_p="test -f"
23086
23087 # Sed expression to map a string onto a valid CPP name.
23088 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
23089
23090 # Sed expression to map a string onto a valid variable name.
23091 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
23092
23093
23094 # IFS
23095 # We need space, tab and new line, in precisely that order.
23096 as_nl='
23097 '
23098 IFS="   $as_nl"
23099
23100 # CDPATH.
23101 $as_unset CDPATH
23102
23103 exec 6>&1
23104
23105 # Open the log real soon, to keep \$[0] and so on meaningful, and to
23106 # report actual input values of CONFIG_FILES etc. instead of their
23107 # values after options handling.  Logging --version etc. is OK.
23108 exec 5>>config.log
23109 {
23110   echo
23111   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
23112 ## Running $as_me. ##
23113 _ASBOX
23114 } >&5
23115 cat >&5 <<_CSEOF
23116
23117 This file was extended by [LLVM] $as_me [1.0], which was
23118 generated by GNU Autoconf 2.57.  Invocation command line was
23119
23120   CONFIG_FILES    = $CONFIG_FILES
23121   CONFIG_HEADERS  = $CONFIG_HEADERS
23122   CONFIG_LINKS    = $CONFIG_LINKS
23123   CONFIG_COMMANDS = $CONFIG_COMMANDS
23124   $ $0 $@
23125
23126 _CSEOF
23127 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
23128 echo >&5
23129 _ACEOF
23130
23131 # Files that config.status was made for.
23132 if test -n "$ac_config_files"; then
23133   echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
23134 fi
23135
23136 if test -n "$ac_config_headers"; then
23137   echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
23138 fi
23139
23140 if test -n "$ac_config_links"; then
23141   echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
23142 fi
23143
23144 if test -n "$ac_config_commands"; then
23145   echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
23146 fi
23147
23148 cat >>$CONFIG_STATUS <<\_ACEOF
23149
23150 ac_cs_usage="\
23151 \`$as_me' instantiates files from templates according to the
23152 current configuration.
23153
23154 Usage: $0 [OPTIONS] [FILE]...
23155
23156   -h, --help       print this help, then exit
23157   -V, --version    print version number, then exit
23158   -q, --quiet      do not print progress messages
23159   -d, --debug      don't remove temporary files
23160       --recheck    update $as_me by reconfiguring in the same conditions
23161   --file=FILE[:TEMPLATE]
23162                    instantiate the configuration file FILE
23163   --header=FILE[:TEMPLATE]
23164                    instantiate the configuration header FILE
23165
23166 Configuration files:
23167 $config_files
23168
23169 Configuration headers:
23170 $config_headers
23171
23172 Configuration commands:
23173 $config_commands
23174
23175 Report bugs to <bug-autoconf@gnu.org>."
23176 _ACEOF
23177
23178 cat >>$CONFIG_STATUS <<_ACEOF
23179 ac_cs_version="\\
23180 [LLVM] config.status [1.0]
23181 configured by $0, generated by GNU Autoconf 2.57,
23182   with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
23183
23184 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
23185 Free Software Foundation, Inc.
23186 This config.status script is free software; the Free Software Foundation
23187 gives unlimited permission to copy, distribute and modify it."
23188 srcdir=$srcdir
23189 INSTALL="$INSTALL"
23190 _ACEOF
23191
23192 cat >>$CONFIG_STATUS <<\_ACEOF
23193 # If no file are specified by the user, then we need to provide default
23194 # value.  By we need to know if files were specified by the user.
23195 ac_need_defaults=:
23196 while test $# != 0
23197 do
23198   case $1 in
23199   --*=*)
23200     ac_option=`expr "x$1" : 'x\([^=]*\)='`
23201     ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
23202     ac_shift=:
23203     ;;
23204   -*)
23205     ac_option=$1
23206     ac_optarg=$2
23207     ac_shift=shift
23208     ;;
23209   *) # This is not an option, so the user has probably given explicit
23210      # arguments.
23211      ac_option=$1
23212      ac_need_defaults=false;;
23213   esac
23214
23215   case $ac_option in
23216   # Handling of the options.
23217 _ACEOF
23218 cat >>$CONFIG_STATUS <<\_ACEOF
23219   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
23220     ac_cs_recheck=: ;;
23221   --version | --vers* | -V )
23222     echo "$ac_cs_version"; exit 0 ;;
23223   --he | --h)
23224     # Conflict between --help and --header
23225     { { echo "$as_me:$LINENO: error: ambiguous option: $1
23226 Try \`$0 --help' for more information." >&5
23227 echo "$as_me: error: ambiguous option: $1
23228 Try \`$0 --help' for more information." >&2;}
23229    { (exit 1); exit 1; }; };;
23230   --help | --hel | -h )
23231     echo "$ac_cs_usage"; exit 0 ;;
23232   --debug | --d* | -d )
23233     debug=: ;;
23234   --file | --fil | --fi | --f )
23235     $ac_shift
23236     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
23237     ac_need_defaults=false;;
23238   --header | --heade | --head | --hea )
23239     $ac_shift
23240     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
23241     ac_need_defaults=false;;
23242   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
23243   | -silent | --silent | --silen | --sile | --sil | --si | --s)
23244     ac_cs_silent=: ;;
23245
23246   # This is an error.
23247   -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
23248 Try \`$0 --help' for more information." >&5
23249 echo "$as_me: error: unrecognized option: $1
23250 Try \`$0 --help' for more information." >&2;}
23251    { (exit 1); exit 1; }; } ;;
23252
23253   *) ac_config_targets="$ac_config_targets $1" ;;
23254
23255   esac
23256   shift
23257 done
23258
23259 ac_configure_extra_args=
23260
23261 if $ac_cs_silent; then
23262   exec 6>/dev/null
23263   ac_configure_extra_args="$ac_configure_extra_args --silent"
23264 fi
23265
23266 _ACEOF
23267 cat >>$CONFIG_STATUS <<_ACEOF
23268 if \$ac_cs_recheck; then
23269   echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
23270   exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
23271 fi
23272
23273 _ACEOF
23274
23275 cat >>$CONFIG_STATUS <<_ACEOF
23276 #
23277 # INIT-COMMANDS section.
23278 #
23279
23280 ${srcdir}/autoconf/mkinstalldirs `dirname Makefile`
23281 ${srcdir}/autoconf/mkinstalldirs `dirname Makefile.common`
23282 ${srcdir}/autoconf/mkinstalldirs `dirname Makefile.rules`
23283 ${srcdir}/autoconf/mkinstalldirs `dirname lib/Makefile`
23284 ${srcdir}/autoconf/mkinstalldirs `dirname lib/Analysis/Makefile`
23285 ${srcdir}/autoconf/mkinstalldirs `dirname lib/Analysis/DataStructure/Makefile`
23286 ${srcdir}/autoconf/mkinstalldirs `dirname lib/Analysis/IPA/Makefile`
23287 ${srcdir}/autoconf/mkinstalldirs `dirname lib/Analysis/LiveVar/Makefile`
23288 ${srcdir}/autoconf/mkinstalldirs `dirname lib/AsmParser/Makefile`
23289 ${srcdir}/autoconf/mkinstalldirs `dirname lib/Bytecode/Makefile`
23290 ${srcdir}/autoconf/mkinstalldirs `dirname lib/Bytecode/Reader/Makefile`
23291 ${srcdir}/autoconf/mkinstalldirs `dirname lib/Bytecode/Writer/Makefile`
23292 ${srcdir}/autoconf/mkinstalldirs `dirname lib/CWriter/Makefile`
23293 ${srcdir}/autoconf/mkinstalldirs `dirname lib/CodeGen/Makefile`
23294 ${srcdir}/autoconf/mkinstalldirs `dirname lib/CodeGen/InstrSched/Makefile`
23295 ${srcdir}/autoconf/mkinstalldirs `dirname lib/CodeGen/InstrSelection/Makefile`
23296 ${srcdir}/autoconf/mkinstalldirs `dirname lib/CodeGen/ModuloScheduling/Makefile`
23297 ${srcdir}/autoconf/mkinstalldirs `dirname lib/CodeGen/RegAlloc/Makefile`
23298 ${srcdir}/autoconf/mkinstalldirs `dirname lib/CodeGen/SelectionDAG/Makefile`
23299 ${srcdir}/autoconf/mkinstalldirs `dirname lib/ExecutionEngine/Makefile`
23300 ${srcdir}/autoconf/mkinstalldirs `dirname lib/ExecutionEngine/Interpreter/Makefile`
23301 ${srcdir}/autoconf/mkinstalldirs `dirname lib/ExecutionEngine/JIT/Makefile`
23302 ${srcdir}/autoconf/mkinstalldirs `dirname lib/Support/Makefile`
23303 ${srcdir}/autoconf/mkinstalldirs `dirname lib/Target/Makefile`
23304 ${srcdir}/autoconf/mkinstalldirs `dirname lib/Target/Sparc/Makefile`
23305 ${srcdir}/autoconf/mkinstalldirs `dirname lib/Target/X86/Makefile`
23306 ${srcdir}/autoconf/mkinstalldirs `dirname lib/Transforms/Makefile`
23307 ${srcdir}/autoconf/mkinstalldirs `dirname lib/Transforms/Hello/Makefile`
23308 ${srcdir}/autoconf/mkinstalldirs `dirname lib/Transforms/IPO/Makefile`
23309 ${srcdir}/autoconf/mkinstalldirs `dirname lib/Transforms/Instrumentation/Makefile`
23310 ${srcdir}/autoconf/mkinstalldirs `dirname lib/Transforms/Instrumentation/ProfilePaths/Makefile`
23311 ${srcdir}/autoconf/mkinstalldirs `dirname lib/Transforms/Scalar/Makefile`
23312 ${srcdir}/autoconf/mkinstalldirs `dirname lib/Transforms/Utils/Makefile`
23313 ${srcdir}/autoconf/mkinstalldirs `dirname lib/VMCore/Makefile`
23314 ${srcdir}/autoconf/mkinstalldirs `dirname runtime/Makefile`
23315 ${srcdir}/autoconf/mkinstalldirs `dirname runtime/GCCLibraries/Makefile`
23316 ${srcdir}/autoconf/mkinstalldirs `dirname runtime/GCCLibraries/crtend/Makefile`
23317 ${srcdir}/autoconf/mkinstalldirs `dirname runtime/GCCLibraries/libc/Makefile`
23318 ${srcdir}/autoconf/mkinstalldirs `dirname runtime/GCCLibraries/libcurses/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/bugpoint/Makefile`
23425 ${srcdir}/autoconf/mkinstalldirs `dirname tools/extract/Makefile`
23426 ${srcdir}/autoconf/mkinstalldirs `dirname tools/gccas/Makefile`
23427 ${srcdir}/autoconf/mkinstalldirs `dirname tools/gccld/Makefile`
23428 ${srcdir}/autoconf/mkinstalldirs `dirname tools/link/Makefile`
23429 ${srcdir}/autoconf/mkinstalldirs `dirname tools/llc/Makefile`
23430 ${srcdir}/autoconf/mkinstalldirs `dirname tools/lli/Makefile`
23431 ${srcdir}/autoconf/mkinstalldirs `dirname tools/opt/Makefile`
23432 ${srcdir}/autoconf/mkinstalldirs `dirname tools/llee/Makefile`
23433 ${srcdir}/autoconf/mkinstalldirs `dirname tools/llvm-as/Makefile`
23434 ${srcdir}/autoconf/mkinstalldirs `dirname tools/llvm-ar/Makefile`
23435 ${srcdir}/autoconf/mkinstalldirs `dirname tools/llvm-dis/Makefile`
23436 ${srcdir}/autoconf/mkinstalldirs `dirname utils/Makefile`
23437 ${srcdir}/autoconf/mkinstalldirs `dirname utils/Burg/Makefile`
23438 ${srcdir}/autoconf/mkinstalldirs `dirname utils/Burg/Doc/Makefile`
23439 ${srcdir}/autoconf/mkinstalldirs `dirname utils/TableGen/Makefile`
23440 ${srcdir}/autoconf/mkinstalldirs `dirname www/docs/Makefile`
23441 ${srcdir}/autoconf/mkinstalldirs `dirname projects/Makefile`
23442 ${srcdir}/autoconf/mkinstalldirs `dirname projects/sample/Makefile`
23443 ${srcdir}/autoconf/mkinstalldirs `dirname projects/sample/Makefile.common`
23444 ${srcdir}/autoconf/mkinstalldirs `dirname projects/sample/Makefile.config`
23445 ${srcdir}/autoconf/mkinstalldirs `dirname projects/sample/lib/Makefile`
23446 ${srcdir}/autoconf/mkinstalldirs `dirname projects/sample/lib/sample/Makefile`
23447 ${srcdir}/autoconf/mkinstalldirs `dirname projects/sample/tools/Makefile`
23448 ${srcdir}/autoconf/mkinstalldirs `dirname projects/sample/tools/sample/Makefile`
23449 ${srcdir}/autoconf/mkinstalldirs `dirname projects/ModuleMaker/Makefile`
23450 ${srcdir}/autoconf/mkinstalldirs `dirname projects/ModuleMaker/Makefile.common`
23451 ${srcdir}/autoconf/mkinstalldirs `dirname projects/ModuleMaker/tools/Makefile`
23452 ${srcdir}/autoconf/mkinstalldirs `dirname projects/ModuleMaker/tools/ModuleMaker/Makefile`
23453
23454 _ACEOF
23455
23456
23457
23458 cat >>$CONFIG_STATUS <<\_ACEOF
23459 for ac_config_target in $ac_config_targets
23460 do
23461   case "$ac_config_target" in
23462   # Handling of arguments.
23463   "Makefile.config" ) CONFIG_FILES="$CONFIG_FILES Makefile.config" ;;
23464   "Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
23465   "Makefile.common" ) CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.common" ;;
23466   "Makefile.rules" ) CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.rules" ;;
23467   "lib/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;;
23468   "lib/Analysis/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Analysis/Makefile" ;;
23469   "lib/Analysis/DataStructure/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Analysis/DataStructure/Makefile" ;;
23470   "lib/Analysis/IPA/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Analysis/IPA/Makefile" ;;
23471   "lib/Analysis/LiveVar/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Analysis/LiveVar/Makefile" ;;
23472   "lib/AsmParser/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/AsmParser/Makefile" ;;
23473   "lib/Bytecode/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Bytecode/Makefile" ;;
23474   "lib/Bytecode/Reader/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Bytecode/Reader/Makefile" ;;
23475   "lib/Bytecode/Writer/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Bytecode/Writer/Makefile" ;;
23476   "lib/CWriter/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/CWriter/Makefile" ;;
23477   "lib/CodeGen/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/CodeGen/Makefile" ;;
23478   "lib/CodeGen/InstrSched/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/CodeGen/InstrSched/Makefile" ;;
23479   "lib/CodeGen/InstrSelection/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/CodeGen/InstrSelection/Makefile" ;;
23480   "lib/CodeGen/ModuloScheduling/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/CodeGen/ModuloScheduling/Makefile" ;;
23481   "lib/CodeGen/RegAlloc/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/CodeGen/RegAlloc/Makefile" ;;
23482   "lib/CodeGen/SelectionDAG/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/CodeGen/SelectionDAG/Makefile" ;;
23483   "lib/ExecutionEngine/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/ExecutionEngine/Makefile" ;;
23484   "lib/ExecutionEngine/Interpreter/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/ExecutionEngine/Interpreter/Makefile" ;;
23485   "lib/ExecutionEngine/JIT/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/ExecutionEngine/JIT/Makefile" ;;
23486   "lib/Support/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Support/Makefile" ;;
23487   "lib/Target/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Target/Makefile" ;;
23488   "lib/Target/Sparc/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Target/Sparc/Makefile" ;;
23489   "lib/Target/X86/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Target/X86/Makefile" ;;
23490   "lib/Transforms/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Transforms/Makefile" ;;
23491   "lib/Transforms/Hello/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Transforms/Hello/Makefile" ;;
23492   "lib/Transforms/IPO/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Transforms/IPO/Makefile" ;;
23493   "lib/Transforms/Instrumentation/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Transforms/Instrumentation/Makefile" ;;
23494   "lib/Transforms/Instrumentation/ProfilePaths/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Transforms/Instrumentation/ProfilePaths/Makefile" ;;
23495   "lib/Transforms/Scalar/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Transforms/Scalar/Makefile" ;;
23496   "lib/Transforms/Utils/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Transforms/Utils/Makefile" ;;
23497   "lib/VMCore/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/VMCore/Makefile" ;;
23498   "runtime/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/Makefile" ;;
23499   "runtime/GCCLibraries/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/GCCLibraries/Makefile" ;;
23500   "runtime/GCCLibraries/crtend/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/GCCLibraries/crtend/Makefile" ;;
23501   "runtime/GCCLibraries/libc/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/GCCLibraries/libc/Makefile" ;;
23502   "runtime/GCCLibraries/libcurses/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/GCCLibraries/libcurses/Makefile" ;;
23503   "runtime/GCCLibraries/libg/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/GCCLibraries/libg/Makefile" ;;
23504   "runtime/GCCLibraries/libgcc/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/GCCLibraries/libgcc/Makefile" ;;
23505   "runtime/GCCLibraries/libm/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/GCCLibraries/libm/Makefile" ;;
23506   "runtime/GCCLibraries/libmalloc/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/GCCLibraries/libmalloc/Makefile" ;;
23507   "runtime/GCCLibraries/libtermcap/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/GCCLibraries/libtermcap/Makefile" ;;
23508   "runtime/GCCLibraries/libucb/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/GCCLibraries/libucb/Makefile" ;;
23509   "runtime/GCCLibraries/libutempter/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/GCCLibraries/libutempter/Makefile" ;;
23510   "runtime/GCCLibraries/libutil/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/GCCLibraries/libutil/Makefile" ;;
23511   "runtime/libdummy/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/libdummy/Makefile" ;;
23512   "runtime/libtrace/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/libtrace/Makefile" ;;
23513   "test/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile" ;;
23514   "test/Makefile.tests" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile.tests" ;;
23515   "test/Programs/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/Makefile" ;;
23516   "test/Programs/Makefile.programs" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/Makefile.programs" ;;
23517   "test/Programs/TEST.aa.Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.aa.Makefile" ;;
23518   "test/Programs/TEST.dsgraph.report" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.dsgraph.report" ;;
23519   "test/Programs/TEST.micro.report" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.micro.report" ;;
23520   "test/Programs/TEST.aa.report" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.aa.report" ;;
23521   "test/Programs/TEST.example.Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.example.Makefile" ;;
23522   "test/Programs/TEST.nightly.Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.nightly.Makefile" ;;
23523   "test/Programs/TEST.buildrepo.Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.buildrepo.Makefile" ;;
23524   "test/Programs/TEST.jit.Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.jit.Makefile" ;;
23525   "test/Programs/TEST.nightly.report" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.nightly.report" ;;
23526   "test/Programs/TEST.dsgraph.Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.dsgraph.Makefile" ;;
23527   "test/Programs/TEST.jit.report" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.jit.report" ;;
23528   "test/Programs/TEST.typesafe.Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.typesafe.Makefile" ;;
23529   "test/Programs/TEST.dsgraph.gnuplot" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.dsgraph.gnuplot" ;;
23530   "test/Programs/TEST.micro.Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.micro.Makefile" ;;
23531   "test/Programs/External/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/Makefile" ;;
23532   "test/Programs/External/SPEC/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/Makefile" ;;
23533   "test/Programs/External/SPEC/Makefile.spec" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/Makefile.spec" ;;
23534   "test/Programs/External/SPEC/CFP2000/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/CFP2000/Makefile" ;;
23535   "test/Programs/External/SPEC/CFP2000/179.art/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/CFP2000/179.art/Makefile" ;;
23536   "test/Programs/External/SPEC/CFP2000/183.equake/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/CFP2000/183.equake/Makefile" ;;
23537   "test/Programs/External/SPEC/CFP2000/188.ammp/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/CFP2000/188.ammp/Makefile" ;;
23538   "test/Programs/External/SPEC/CINT2000/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/CINT2000/Makefile" ;;
23539   "test/Programs/External/SPEC/CINT2000/164.gzip/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/CINT2000/164.gzip/Makefile" ;;
23540   "test/Programs/External/SPEC/CINT2000/175.vpr/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/CINT2000/175.vpr/Makefile" ;;
23541   "test/Programs/External/SPEC/CINT2000/176.gcc/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/CINT2000/176.gcc/Makefile" ;;
23542   "test/Programs/External/SPEC/CINT2000/181.mcf/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/CINT2000/181.mcf/Makefile" ;;
23543   "test/Programs/External/SPEC/CINT2000/186.crafty/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/CINT2000/186.crafty/Makefile" ;;
23544   "test/Programs/External/SPEC/CINT2000/197.parser/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/CINT2000/197.parser/Makefile" ;;
23545   "test/Programs/External/SPEC/CINT2000/254.gap/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/CINT2000/254.gap/Makefile" ;;
23546   "test/Programs/External/SPEC/CINT2000/255.vortex/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/CINT2000/255.vortex/Makefile" ;;
23547   "test/Programs/External/SPEC/CINT2000/256.bzip2/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/CINT2000/256.bzip2/Makefile" ;;
23548   "test/Programs/External/SPEC/CINT2000/300.twolf/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/CINT2000/300.twolf/Makefile" ;;
23549   "test/Programs/LLVMSource/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/LLVMSource/Makefile" ;;
23550   "test/Programs/MultiSource/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Makefile" ;;
23551   "test/Programs/MultiSource/Makefile.multisrc" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Makefile.multisrc" ;;
23552   "test/Programs/MultiSource/Applications/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Applications/Makefile" ;;
23553   "test/Programs/MultiSource/Applications/Burg/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Applications/Burg/Makefile" ;;
23554   "test/Programs/MultiSource/Applications/aha/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Applications/aha/Makefile" ;;
23555   "test/Programs/MultiSource/Applications/sgefa/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Applications/sgefa/Makefile" ;;
23556   "test/Programs/MultiSource/Benchmarks/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/Makefile" ;;
23557   "test/Programs/MultiSource/Benchmarks/Fhourstones/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/Fhourstones/Makefile" ;;
23558   "test/Programs/MultiSource/Benchmarks/McCat/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/McCat/Makefile" ;;
23559   "test/Programs/MultiSource/Benchmarks/McCat/01-qbsort/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/McCat/01-qbsort/Makefile" ;;
23560   "test/Programs/MultiSource/Benchmarks/McCat/03-testtrie/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/McCat/03-testtrie/Makefile" ;;
23561   "test/Programs/MultiSource/Benchmarks/McCat/04-bisect/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/McCat/04-bisect/Makefile" ;;
23562   "test/Programs/MultiSource/Benchmarks/McCat/05-eks/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/McCat/05-eks/Makefile" ;;
23563   "test/Programs/MultiSource/Benchmarks/McCat/08-main/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/McCat/08-main/Makefile" ;;
23564   "test/Programs/MultiSource/Benchmarks/McCat/09-vor/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/McCat/09-vor/Makefile" ;;
23565   "test/Programs/MultiSource/Benchmarks/McCat/12-IOtest/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/McCat/12-IOtest/Makefile" ;;
23566   "test/Programs/MultiSource/Benchmarks/McCat/15-trie/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/McCat/15-trie/Makefile" ;;
23567   "test/Programs/MultiSource/Benchmarks/McCat/17-bintr/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/McCat/17-bintr/Makefile" ;;
23568   "test/Programs/MultiSource/Benchmarks/McCat/18-imp/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/McCat/18-imp/Makefile" ;;
23569   "test/Programs/MultiSource/Benchmarks/Olden/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/Olden/Makefile" ;;
23570   "test/Programs/MultiSource/Benchmarks/Olden/bh/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/Olden/bh/Makefile" ;;
23571   "test/Programs/MultiSource/Benchmarks/Olden/bisort/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/Olden/bisort/Makefile" ;;
23572   "test/Programs/MultiSource/Benchmarks/Olden/em3d/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/Olden/em3d/Makefile" ;;
23573   "test/Programs/MultiSource/Benchmarks/Olden/health/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/Olden/health/Makefile" ;;
23574   "test/Programs/MultiSource/Benchmarks/Olden/mst/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/Olden/mst/Makefile" ;;
23575   "test/Programs/MultiSource/Benchmarks/Olden/perimeter/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/Olden/perimeter/Makefile" ;;
23576   "test/Programs/MultiSource/Benchmarks/Olden/power/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/Olden/power/Makefile" ;;
23577   "test/Programs/MultiSource/Benchmarks/Olden/treeadd/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/Olden/treeadd/Makefile" ;;
23578   "test/Programs/MultiSource/Benchmarks/Olden/tsp/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/Olden/tsp/Makefile" ;;
23579   "test/Programs/MultiSource/Benchmarks/Olden/voronoi/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/Olden/voronoi/Makefile" ;;
23580   "test/Programs/MultiSource/Benchmarks/OptimizerEval/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/OptimizerEval/Makefile" ;;
23581   "test/Programs/MultiSource/Benchmarks/Ptrdist/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/Ptrdist/Makefile" ;;
23582   "test/Programs/MultiSource/Benchmarks/Ptrdist/anagram/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/Ptrdist/anagram/Makefile" ;;
23583   "test/Programs/MultiSource/Benchmarks/Ptrdist/bc/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/Ptrdist/bc/Makefile" ;;
23584   "test/Programs/MultiSource/Benchmarks/Ptrdist/ft/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/Ptrdist/ft/Makefile" ;;
23585   "test/Programs/MultiSource/Benchmarks/Ptrdist/ks/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/Ptrdist/ks/Makefile" ;;
23586   "test/Programs/MultiSource/Benchmarks/Ptrdist/yacr2/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/Ptrdist/yacr2/Makefile" ;;
23587   "test/Programs/MultiSource/Benchmarks/llubenchmark/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/llubenchmark/Makefile" ;;
23588   "test/Programs/MultiSource/Benchmarks/sim/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/sim/Makefile" ;;
23589   "test/Programs/NoSource/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/NoSource/Makefile" ;;
23590   "test/Programs/NoSource/Flex/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/NoSource/Flex/Makefile" ;;
23591   "test/Programs/NoSource/Larn/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/NoSource/Larn/Makefile" ;;
23592   "test/Programs/NoSource/Moria-5.5.2/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/NoSource/Moria-5.5.2/Makefile" ;;
23593   "test/Programs/NoSource/Povray31/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/NoSource/Povray31/Makefile" ;;
23594   "test/Programs/NoSource/m4/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/NoSource/m4/Makefile" ;;
23595   "test/Programs/SingleSource/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/SingleSource/Makefile" ;;
23596   "test/Programs/SingleSource/Makefile.singlesrc" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/SingleSource/Makefile.singlesrc" ;;
23597   "test/Programs/SingleSource/Gizmos/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/SingleSource/Gizmos/Makefile" ;;
23598   "test/Programs/SingleSource/Benchmarks/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/SingleSource/Benchmarks/Makefile" ;;
23599   "test/Programs/SingleSource/Benchmarks/Dhrystone/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/SingleSource/Benchmarks/Dhrystone/Makefile" ;;
23600   "test/Programs/SingleSource/Benchmarks/Shootout/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/SingleSource/Benchmarks/Shootout/Makefile" ;;
23601   "test/Programs/SingleSource/Benchmarks/Stanford/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/SingleSource/Benchmarks/Stanford/Makefile" ;;
23602   "test/Programs/SingleSource/Benchmarks/Misc/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/SingleSource/Benchmarks/Misc/Makefile" ;;
23603   "test/Programs/SingleSource/CustomChecked/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/SingleSource/CustomChecked/Makefile" ;;
23604   "test/Programs/SingleSource/UnitTests/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/SingleSource/UnitTests/Makefile" ;;
23605   "test/Programs/SingleSource/UnitTests/SetjmpLongjmp/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/SingleSource/UnitTests/SetjmpLongjmp/Makefile" ;;
23606   "tools/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;;
23607   "tools/analyze/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/analyze/Makefile" ;;
23608   "tools/bugpoint/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/bugpoint/Makefile" ;;
23609   "tools/extract/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/extract/Makefile" ;;
23610   "tools/gccas/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/gccas/Makefile" ;;
23611   "tools/gccld/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/gccld/Makefile" ;;
23612   "tools/link/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/link/Makefile" ;;
23613   "tools/llc/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/llc/Makefile" ;;
23614   "tools/lli/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/lli/Makefile" ;;
23615   "tools/opt/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/opt/Makefile" ;;
23616   "tools/llee/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/llee/Makefile" ;;
23617   "tools/llvm-as/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/llvm-as/Makefile" ;;
23618   "tools/llvm-ar/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/llvm-ar/Makefile" ;;
23619   "tools/llvm-dis/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/llvm-dis/Makefile" ;;
23620   "utils/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Makefile" ;;
23621   "utils/Burg/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Burg/Makefile" ;;
23622   "utils/Burg/Doc/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Burg/Doc/Makefile" ;;
23623   "utils/TableGen/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS utils/TableGen/Makefile" ;;
23624   "www/docs/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS www/docs/Makefile" ;;
23625   "projects/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Makefile" ;;
23626   "projects/sample/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS projects/sample/Makefile" ;;
23627   "projects/sample/Makefile.common" ) CONFIG_COMMANDS="$CONFIG_COMMANDS projects/sample/Makefile.common" ;;
23628   "projects/sample/Makefile.config" ) CONFIG_COMMANDS="$CONFIG_COMMANDS projects/sample/Makefile.config" ;;
23629   "projects/sample/lib/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS projects/sample/lib/Makefile" ;;
23630   "projects/sample/lib/sample/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS projects/sample/lib/sample/Makefile" ;;
23631   "projects/sample/tools/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS projects/sample/tools/Makefile" ;;
23632   "projects/sample/tools/sample/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS projects/sample/tools/sample/Makefile" ;;
23633   "projects/ModuleMaker/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS projects/ModuleMaker/Makefile" ;;
23634   "projects/ModuleMaker/Makefile.common" ) CONFIG_COMMANDS="$CONFIG_COMMANDS projects/ModuleMaker/Makefile.common" ;;
23635   "projects/ModuleMaker/tools/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS projects/ModuleMaker/tools/Makefile" ;;
23636   "projects/ModuleMaker/tools/ModuleMaker/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS projects/ModuleMaker/tools/ModuleMaker/Makefile" ;;
23637   "include/Config/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/Config/config.h" ;;
23638   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
23639 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
23640    { (exit 1); exit 1; }; };;
23641   esac
23642 done
23643
23644 # If the user did not use the arguments to specify the items to instantiate,
23645 # then the envvar interface is used.  Set only those that are not.
23646 # We use the long form for the default assignment because of an extremely
23647 # bizarre bug on SunOS 4.1.3.
23648 if $ac_need_defaults; then
23649   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
23650   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
23651   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
23652 fi
23653
23654 # Have a temporary directory for convenience.  Make it in the build tree
23655 # simply because there is no reason to put it here, and in addition,
23656 # creating and moving files from /tmp can sometimes cause problems.
23657 # Create a temporary directory, and hook for its removal unless debugging.
23658 $debug ||
23659 {
23660   trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
23661   trap '{ (exit 1); exit 1; }' 1 2 13 15
23662 }
23663
23664 # Create a (secure) tmp directory for tmp files.
23665
23666 {
23667   tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
23668   test -n "$tmp" && test -d "$tmp"
23669 }  ||
23670 {
23671   tmp=./confstat$$-$RANDOM
23672   (umask 077 && mkdir $tmp)
23673 } ||
23674 {
23675    echo "$me: cannot create a temporary directory in ." >&2
23676    { (exit 1); exit 1; }
23677 }
23678
23679 _ACEOF
23680
23681 cat >>$CONFIG_STATUS <<_ACEOF
23682
23683 #
23684 # CONFIG_FILES section.
23685 #
23686
23687 # No need to generate the scripts if there are no CONFIG_FILES.
23688 # This happens for instance when ./config.status config.h
23689 if test -n "\$CONFIG_FILES"; then
23690   # Protect against being on the right side of a sed subst in config.status.
23691   sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
23692    s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
23693 s,@SHELL@,$SHELL,;t t
23694 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
23695 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
23696 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
23697 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
23698 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
23699 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
23700 s,@exec_prefix@,$exec_prefix,;t t
23701 s,@prefix@,$prefix,;t t
23702 s,@program_transform_name@,$program_transform_name,;t t
23703 s,@bindir@,$bindir,;t t
23704 s,@sbindir@,$sbindir,;t t
23705 s,@libexecdir@,$libexecdir,;t t
23706 s,@datadir@,$datadir,;t t
23707 s,@sysconfdir@,$sysconfdir,;t t
23708 s,@sharedstatedir@,$sharedstatedir,;t t
23709 s,@localstatedir@,$localstatedir,;t t
23710 s,@libdir@,$libdir,;t t
23711 s,@includedir@,$includedir,;t t
23712 s,@oldincludedir@,$oldincludedir,;t t
23713 s,@infodir@,$infodir,;t t
23714 s,@mandir@,$mandir,;t t
23715 s,@build_alias@,$build_alias,;t t
23716 s,@host_alias@,$host_alias,;t t
23717 s,@target_alias@,$target_alias,;t t
23718 s,@DEFS@,$DEFS,;t t
23719 s,@ECHO_C@,$ECHO_C,;t t
23720 s,@ECHO_N@,$ECHO_N,;t t
23721 s,@ECHO_T@,$ECHO_T,;t t
23722 s,@LIBS@,$LIBS,;t t
23723 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
23724 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
23725 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
23726 s,@build@,$build,;t t
23727 s,@build_cpu@,$build_cpu,;t t
23728 s,@build_vendor@,$build_vendor,;t t
23729 s,@build_os@,$build_os,;t t
23730 s,@host@,$host,;t t
23731 s,@host_cpu@,$host_cpu,;t t
23732 s,@host_vendor@,$host_vendor,;t t
23733 s,@host_os@,$host_os,;t t
23734 s,@target@,$target,;t t
23735 s,@target_cpu@,$target_cpu,;t t
23736 s,@target_vendor@,$target_vendor,;t t
23737 s,@target_os@,$target_os,;t t
23738 s,@OS@,$OS,;t t
23739 s,@LLVMGCCDIR@,$LLVMGCCDIR,;t t
23740 s,@ARCH@,$ARCH,;t t
23741 s,@CXX@,$CXX,;t t
23742 s,@CXXFLAGS@,$CXXFLAGS,;t t
23743 s,@LDFLAGS@,$LDFLAGS,;t t
23744 s,@CPPFLAGS@,$CPPFLAGS,;t t
23745 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
23746 s,@EXEEXT@,$EXEEXT,;t t
23747 s,@OBJEXT@,$OBJEXT,;t t
23748 s,@CC@,$CC,;t t
23749 s,@CFLAGS@,$CFLAGS,;t t
23750 s,@ac_ct_CC@,$ac_ct_CC,;t t
23751 s,@CPP@,$CPP,;t t
23752 s,@ifGNUmake@,$ifGNUmake,;t t
23753 s,@LEX@,$LEX,;t t
23754 s,@LEXLIB@,$LEXLIB,;t t
23755 s,@LEX_OUTPUT_ROOT@,$LEX_OUTPUT_ROOT,;t t
23756 s,@YACC@,$YACC,;t t
23757 s,@EGREP@,$EGREP,;t t
23758 s,@LN_S@,$LN_S,;t t
23759 s,@ECHO@,$ECHO,;t t
23760 s,@AR@,$AR,;t t
23761 s,@ac_ct_AR@,$ac_ct_AR,;t t
23762 s,@RANLIB@,$RANLIB,;t t
23763 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
23764 s,@STRIP@,$STRIP,;t t
23765 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
23766 s,@CXXCPP@,$CXXCPP,;t t
23767 s,@F77@,$F77,;t t
23768 s,@FFLAGS@,$FFLAGS,;t t
23769 s,@ac_ct_F77@,$ac_ct_F77,;t t
23770 s,@LIBTOOL@,$LIBTOOL,;t t
23771 s,@RPWD@,$RPWD,;t t
23772 s,@SED@,$SED,;t t
23773 s,@RM@,$RM,;t t
23774 s,@MKDIR@,$MKDIR,;t t
23775 s,@DATE@,$DATE,;t t
23776 s,@MV@,$MV,;t t
23777 s,@DOT@,$DOT,;t t
23778 s,@ETAGS@,$ETAGS,;t t
23779 s,@PURIFY@,$PURIFY,;t t
23780 s,@PYTHON@,$PYTHON,;t t
23781 s,@QMTEST@,$QMTEST,;t t
23782 s,@ALLOCA@,$ALLOCA,;t t
23783 s,@LIBOBJS@,$LIBOBJS,;t t
23784 s,@MMAP_FILE@,$MMAP_FILE,;t t
23785 s,@ENABLE_PURIFY@,$ENABLE_PURIFY,;t t
23786 s,@ENABLE_OPTIMIZED@,$ENABLE_OPTIMIZED,;t t
23787 s,@USE_SPEC@,$USE_SPEC,;t t
23788 s,@UPB@,$UPB,;t t
23789 s,@DISABLE_LLC_DIFFS@,$DISABLE_LLC_DIFFS,;t t
23790 s,@JIT@,$JIT,;t t
23791 s,@SPEC_ROOT@,$SPEC_ROOT,;t t
23792 s,@BCR@,$BCR,;t t
23793 s,@PAPIDIR@,$PAPIDIR,;t t
23794 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
23795 CEOF
23796
23797 _ACEOF
23798
23799   cat >>$CONFIG_STATUS <<\_ACEOF
23800   # Split the substitutions into bite-sized pieces for seds with
23801   # small command number limits, like on Digital OSF/1 and HP-UX.
23802   ac_max_sed_lines=48
23803   ac_sed_frag=1 # Number of current file.
23804   ac_beg=1 # First line for current file.
23805   ac_end=$ac_max_sed_lines # Line after last line for current file.
23806   ac_more_lines=:
23807   ac_sed_cmds=
23808   while $ac_more_lines; do
23809     if test $ac_beg -gt 1; then
23810       sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
23811     else
23812       sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
23813     fi
23814     if test ! -s $tmp/subs.frag; then
23815       ac_more_lines=false
23816     else
23817       # The purpose of the label and of the branching condition is to
23818       # speed up the sed processing (if there are no `@' at all, there
23819       # is no need to browse any of the substitutions).
23820       # These are the two extra sed commands mentioned above.
23821       (echo ':t
23822   /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
23823       if test -z "$ac_sed_cmds"; then
23824         ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
23825       else
23826         ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
23827       fi
23828       ac_sed_frag=`expr $ac_sed_frag + 1`
23829       ac_beg=$ac_end
23830       ac_end=`expr $ac_end + $ac_max_sed_lines`
23831     fi
23832   done
23833   if test -z "$ac_sed_cmds"; then
23834     ac_sed_cmds=cat
23835   fi
23836 fi # test -n "$CONFIG_FILES"
23837
23838 _ACEOF
23839 cat >>$CONFIG_STATUS <<\_ACEOF
23840 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
23841   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
23842   case $ac_file in
23843   - | *:- | *:-:* ) # input from stdin
23844         cat >$tmp/stdin
23845         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
23846         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
23847   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
23848         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
23849   * )   ac_file_in=$ac_file.in ;;
23850   esac
23851
23852   # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
23853   ac_dir=`(dirname "$ac_file") 2>/dev/null ||
23854 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23855          X"$ac_file" : 'X\(//\)[^/]' \| \
23856          X"$ac_file" : 'X\(//\)$' \| \
23857          X"$ac_file" : 'X\(/\)' \| \
23858          .     : '\(.\)' 2>/dev/null ||
23859 echo X"$ac_file" |
23860     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23861           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23862           /^X\(\/\/\)$/{ s//\1/; q; }
23863           /^X\(\/\).*/{ s//\1/; q; }
23864           s/.*/./; q'`
23865   { if $as_mkdir_p; then
23866     mkdir -p "$ac_dir"
23867   else
23868     as_dir="$ac_dir"
23869     as_dirs=
23870     while test ! -d "$as_dir"; do
23871       as_dirs="$as_dir $as_dirs"
23872       as_dir=`(dirname "$as_dir") 2>/dev/null ||
23873 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23874          X"$as_dir" : 'X\(//\)[^/]' \| \
23875          X"$as_dir" : 'X\(//\)$' \| \
23876          X"$as_dir" : 'X\(/\)' \| \
23877          .     : '\(.\)' 2>/dev/null ||
23878 echo X"$as_dir" |
23879     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23880           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23881           /^X\(\/\/\)$/{ s//\1/; q; }
23882           /^X\(\/\).*/{ s//\1/; q; }
23883           s/.*/./; q'`
23884     done
23885     test ! -n "$as_dirs" || mkdir $as_dirs
23886   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
23887 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
23888    { (exit 1); exit 1; }; }; }
23889
23890   ac_builddir=.
23891
23892 if test "$ac_dir" != .; then
23893   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
23894   # A "../" for each directory in $ac_dir_suffix.
23895   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
23896 else
23897   ac_dir_suffix= ac_top_builddir=
23898 fi
23899
23900 case $srcdir in
23901   .)  # No --srcdir option.  We are building in place.
23902     ac_srcdir=.
23903     if test -z "$ac_top_builddir"; then
23904        ac_top_srcdir=.
23905     else
23906        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
23907     fi ;;
23908   [\\/]* | ?:[\\/]* )  # Absolute path.
23909     ac_srcdir=$srcdir$ac_dir_suffix;
23910     ac_top_srcdir=$srcdir ;;
23911   *) # Relative path.
23912     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
23913     ac_top_srcdir=$ac_top_builddir$srcdir ;;
23914 esac
23915 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
23916 # absolute.
23917 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
23918 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
23919 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
23920 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
23921
23922
23923   case $INSTALL in
23924   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
23925   *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
23926   esac
23927
23928   if test x"$ac_file" != x-; then
23929     { echo "$as_me:$LINENO: creating $ac_file" >&5
23930 echo "$as_me: creating $ac_file" >&6;}
23931     rm -f "$ac_file"
23932   fi
23933   # Let's still pretend it is `configure' which instantiates (i.e., don't
23934   # use $as_me), people would be surprised to read:
23935   #    /* config.h.  Generated by config.status.  */
23936   if test x"$ac_file" = x-; then
23937     configure_input=
23938   else
23939     configure_input="$ac_file.  "
23940   fi
23941   configure_input=$configure_input"Generated from `echo $ac_file_in |
23942                                      sed 's,.*/,,'` by configure."
23943
23944   # First look for the input files in the build tree, otherwise in the
23945   # src tree.
23946   ac_file_inputs=`IFS=:
23947     for f in $ac_file_in; do
23948       case $f in
23949       -) echo $tmp/stdin ;;
23950       [\\/$]*)
23951          # Absolute (can't be DOS-style, as IFS=:)
23952          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
23953 echo "$as_me: error: cannot find input file: $f" >&2;}
23954    { (exit 1); exit 1; }; }
23955          echo $f;;
23956       *) # Relative
23957          if test -f "$f"; then
23958            # Build tree
23959            echo $f
23960          elif test -f "$srcdir/$f"; then
23961            # Source tree
23962            echo $srcdir/$f
23963          else
23964            # /dev/null tree
23965            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
23966 echo "$as_me: error: cannot find input file: $f" >&2;}
23967    { (exit 1); exit 1; }; }
23968          fi;;
23969       esac
23970     done` || { (exit 1); exit 1; }
23971 _ACEOF
23972 cat >>$CONFIG_STATUS <<_ACEOF
23973   sed "$ac_vpsub
23974 $extrasub
23975 _ACEOF
23976 cat >>$CONFIG_STATUS <<\_ACEOF
23977 :t
23978 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
23979 s,@configure_input@,$configure_input,;t t
23980 s,@srcdir@,$ac_srcdir,;t t
23981 s,@abs_srcdir@,$ac_abs_srcdir,;t t
23982 s,@top_srcdir@,$ac_top_srcdir,;t t
23983 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
23984 s,@builddir@,$ac_builddir,;t t
23985 s,@abs_builddir@,$ac_abs_builddir,;t t
23986 s,@top_builddir@,$ac_top_builddir,;t t
23987 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
23988 s,@INSTALL@,$ac_INSTALL,;t t
23989 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
23990   rm -f $tmp/stdin
23991   if test x"$ac_file" != x-; then
23992     mv $tmp/out $ac_file
23993   else
23994     cat $tmp/out
23995     rm -f $tmp/out
23996   fi
23997
23998 done
23999 _ACEOF
24000 cat >>$CONFIG_STATUS <<\_ACEOF
24001
24002 #
24003 # CONFIG_HEADER section.
24004 #
24005
24006 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
24007 # NAME is the cpp macro being defined and VALUE is the value it is being given.
24008 #
24009 # ac_d sets the value in "#define NAME VALUE" lines.
24010 ac_dA='s,^\([   ]*\)#\([        ]*define[       ][      ]*\)'
24011 ac_dB='[        ].*$,\1#\2'
24012 ac_dC=' '
24013 ac_dD=',;t'
24014 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
24015 ac_uA='s,^\([   ]*\)#\([        ]*\)undef\([    ][      ]*\)'
24016 ac_uB='$,\1#\2define\3'
24017 ac_uC=' '
24018 ac_uD=',;t'
24019
24020 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
24021   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
24022   case $ac_file in
24023   - | *:- | *:-:* ) # input from stdin
24024         cat >$tmp/stdin
24025         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
24026         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
24027   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
24028         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
24029   * )   ac_file_in=$ac_file.in ;;
24030   esac
24031
24032   test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
24033 echo "$as_me: creating $ac_file" >&6;}
24034
24035   # First look for the input files in the build tree, otherwise in the
24036   # src tree.
24037   ac_file_inputs=`IFS=:
24038     for f in $ac_file_in; do
24039       case $f in
24040       -) echo $tmp/stdin ;;
24041       [\\/$]*)
24042          # Absolute (can't be DOS-style, as IFS=:)
24043          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
24044 echo "$as_me: error: cannot find input file: $f" >&2;}
24045    { (exit 1); exit 1; }; }
24046          echo $f;;
24047       *) # Relative
24048          if test -f "$f"; then
24049            # Build tree
24050            echo $f
24051          elif test -f "$srcdir/$f"; then
24052            # Source tree
24053            echo $srcdir/$f
24054          else
24055            # /dev/null tree
24056            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
24057 echo "$as_me: error: cannot find input file: $f" >&2;}
24058    { (exit 1); exit 1; }; }
24059          fi;;
24060       esac
24061     done` || { (exit 1); exit 1; }
24062   # Remove the trailing spaces.
24063   sed 's/[      ]*$//' $ac_file_inputs >$tmp/in
24064
24065 _ACEOF
24066
24067 # Transform confdefs.h into two sed scripts, `conftest.defines' and
24068 # `conftest.undefs', that substitutes the proper values into
24069 # config.h.in to produce config.h.  The first handles `#define'
24070 # templates, and the second `#undef' templates.
24071 # And first: Protect against being on the right side of a sed subst in
24072 # config.status.  Protect against being in an unquoted here document
24073 # in config.status.
24074 rm -f conftest.defines conftest.undefs
24075 # Using a here document instead of a string reduces the quoting nightmare.
24076 # Putting comments in sed scripts is not portable.
24077 #
24078 # `end' is used to avoid that the second main sed command (meant for
24079 # 0-ary CPP macros) applies to n-ary macro definitions.
24080 # See the Autoconf documentation for `clear'.
24081 cat >confdef2sed.sed <<\_ACEOF
24082 s/[\\&,]/\\&/g
24083 s,[\\$`],\\&,g
24084 t clear
24085 : clear
24086 s,^[    ]*#[    ]*define[       ][      ]*\([^  (][^    (]*\)\(([^)]*)\)[       ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
24087 t end
24088 s,^[    ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
24089 : end
24090 _ACEOF
24091 # If some macros were called several times there might be several times
24092 # the same #defines, which is useless.  Nevertheless, we may not want to
24093 # sort them, since we want the *last* AC-DEFINE to be honored.
24094 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
24095 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
24096 rm -f confdef2sed.sed
24097
24098 # This sed command replaces #undef with comments.  This is necessary, for
24099 # example, in the case of _POSIX_SOURCE, which is predefined and required
24100 # on some systems where configure will not decide to define it.
24101 cat >>conftest.undefs <<\_ACEOF
24102 s,^[    ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
24103 _ACEOF
24104
24105 # Break up conftest.defines because some shells have a limit on the size
24106 # of here documents, and old seds have small limits too (100 cmds).
24107 echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
24108 echo '  if grep "^[     ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
24109 echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
24110 echo '  :' >>$CONFIG_STATUS
24111 rm -f conftest.tail
24112 while grep . conftest.defines >/dev/null
24113 do
24114   # Write a limited-size here document to $tmp/defines.sed.
24115   echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
24116   # Speed up: don't consider the non `#define' lines.
24117   echo '/^[     ]*#[    ]*define/!b' >>$CONFIG_STATUS
24118   # Work around the forget-to-reset-the-flag bug.
24119   echo 't clr' >>$CONFIG_STATUS
24120   echo ': clr' >>$CONFIG_STATUS
24121   sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
24122   echo 'CEOF
24123   sed -f $tmp/defines.sed $tmp/in >$tmp/out
24124   rm -f $tmp/in
24125   mv $tmp/out $tmp/in
24126 ' >>$CONFIG_STATUS
24127   sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
24128   rm -f conftest.defines
24129   mv conftest.tail conftest.defines
24130 done
24131 rm -f conftest.defines
24132 echo '  fi # grep' >>$CONFIG_STATUS
24133 echo >>$CONFIG_STATUS
24134
24135 # Break up conftest.undefs because some shells have a limit on the size
24136 # of here documents, and old seds have small limits too (100 cmds).
24137 echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
24138 rm -f conftest.tail
24139 while grep . conftest.undefs >/dev/null
24140 do
24141   # Write a limited-size here document to $tmp/undefs.sed.
24142   echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
24143   # Speed up: don't consider the non `#undef'
24144   echo '/^[     ]*#[    ]*undef/!b' >>$CONFIG_STATUS
24145   # Work around the forget-to-reset-the-flag bug.
24146   echo 't clr' >>$CONFIG_STATUS
24147   echo ': clr' >>$CONFIG_STATUS
24148   sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
24149   echo 'CEOF
24150   sed -f $tmp/undefs.sed $tmp/in >$tmp/out
24151   rm -f $tmp/in
24152   mv $tmp/out $tmp/in
24153 ' >>$CONFIG_STATUS
24154   sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
24155   rm -f conftest.undefs
24156   mv conftest.tail conftest.undefs
24157 done
24158 rm -f conftest.undefs
24159
24160 cat >>$CONFIG_STATUS <<\_ACEOF
24161   # Let's still pretend it is `configure' which instantiates (i.e., don't
24162   # use $as_me), people would be surprised to read:
24163   #    /* config.h.  Generated by config.status.  */
24164   if test x"$ac_file" = x-; then
24165     echo "/* Generated by configure.  */" >$tmp/config.h
24166   else
24167     echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
24168   fi
24169   cat $tmp/in >>$tmp/config.h
24170   rm -f $tmp/in
24171   if test x"$ac_file" != x-; then
24172     if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
24173       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
24174 echo "$as_me: $ac_file is unchanged" >&6;}
24175     else
24176       ac_dir=`(dirname "$ac_file") 2>/dev/null ||
24177 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24178          X"$ac_file" : 'X\(//\)[^/]' \| \
24179          X"$ac_file" : 'X\(//\)$' \| \
24180          X"$ac_file" : 'X\(/\)' \| \
24181          .     : '\(.\)' 2>/dev/null ||
24182 echo X"$ac_file" |
24183     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24184           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24185           /^X\(\/\/\)$/{ s//\1/; q; }
24186           /^X\(\/\).*/{ s//\1/; q; }
24187           s/.*/./; q'`
24188       { if $as_mkdir_p; then
24189     mkdir -p "$ac_dir"
24190   else
24191     as_dir="$ac_dir"
24192     as_dirs=
24193     while test ! -d "$as_dir"; do
24194       as_dirs="$as_dir $as_dirs"
24195       as_dir=`(dirname "$as_dir") 2>/dev/null ||
24196 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24197          X"$as_dir" : 'X\(//\)[^/]' \| \
24198          X"$as_dir" : 'X\(//\)$' \| \
24199          X"$as_dir" : 'X\(/\)' \| \
24200          .     : '\(.\)' 2>/dev/null ||
24201 echo X"$as_dir" |
24202     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24203           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24204           /^X\(\/\/\)$/{ s//\1/; q; }
24205           /^X\(\/\).*/{ s//\1/; q; }
24206           s/.*/./; q'`
24207     done
24208     test ! -n "$as_dirs" || mkdir $as_dirs
24209   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
24210 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
24211    { (exit 1); exit 1; }; }; }
24212
24213       rm -f $ac_file
24214       mv $tmp/config.h $ac_file
24215     fi
24216   else
24217     cat $tmp/config.h
24218     rm -f $tmp/config.h
24219   fi
24220 done
24221 _ACEOF
24222 cat >>$CONFIG_STATUS <<\_ACEOF
24223
24224 #
24225 # CONFIG_COMMANDS section.
24226 #
24227 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
24228   ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
24229   ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
24230   ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
24231 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24232          X"$ac_dest" : 'X\(//\)[^/]' \| \
24233          X"$ac_dest" : 'X\(//\)$' \| \
24234          X"$ac_dest" : 'X\(/\)' \| \
24235          .     : '\(.\)' 2>/dev/null ||
24236 echo X"$ac_dest" |
24237     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24238           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24239           /^X\(\/\/\)$/{ s//\1/; q; }
24240           /^X\(\/\).*/{ s//\1/; q; }
24241           s/.*/./; q'`
24242   ac_builddir=.
24243
24244 if test "$ac_dir" != .; then
24245   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
24246   # A "../" for each directory in $ac_dir_suffix.
24247   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
24248 else
24249   ac_dir_suffix= ac_top_builddir=
24250 fi
24251
24252 case $srcdir in
24253   .)  # No --srcdir option.  We are building in place.
24254     ac_srcdir=.
24255     if test -z "$ac_top_builddir"; then
24256        ac_top_srcdir=.
24257     else
24258        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
24259     fi ;;
24260   [\\/]* | ?:[\\/]* )  # Absolute path.
24261     ac_srcdir=$srcdir$ac_dir_suffix;
24262     ac_top_srcdir=$srcdir ;;
24263   *) # Relative path.
24264     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
24265     ac_top_srcdir=$ac_top_builddir$srcdir ;;
24266 esac
24267 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
24268 # absolute.
24269 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
24270 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
24271 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
24272 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
24273
24274
24275   { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
24276 echo "$as_me: executing $ac_dest commands" >&6;}
24277   case $ac_dest in
24278     Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/Makefile Makefile ;;
24279     Makefile.common ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/Makefile.common Makefile.common ;;
24280     Makefile.rules ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/Makefile.rules Makefile.rules ;;
24281     lib/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Makefile lib/Makefile ;;
24282     lib/Analysis/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Analysis/Makefile lib/Analysis/Makefile ;;
24283     lib/Analysis/DataStructure/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Analysis/DataStructure/Makefile lib/Analysis/DataStructure/Makefile ;;
24284     lib/Analysis/IPA/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Analysis/IPA/Makefile lib/Analysis/IPA/Makefile ;;
24285     lib/Analysis/LiveVar/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Analysis/LiveVar/Makefile lib/Analysis/LiveVar/Makefile ;;
24286     lib/AsmParser/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/AsmParser/Makefile lib/AsmParser/Makefile ;;
24287     lib/Bytecode/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Bytecode/Makefile lib/Bytecode/Makefile ;;
24288     lib/Bytecode/Reader/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Bytecode/Reader/Makefile lib/Bytecode/Reader/Makefile ;;
24289     lib/Bytecode/Writer/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Bytecode/Writer/Makefile lib/Bytecode/Writer/Makefile ;;
24290     lib/CWriter/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/CWriter/Makefile lib/CWriter/Makefile ;;
24291     lib/CodeGen/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/CodeGen/Makefile lib/CodeGen/Makefile ;;
24292     lib/CodeGen/InstrSched/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/CodeGen/InstrSched/Makefile lib/CodeGen/InstrSched/Makefile ;;
24293     lib/CodeGen/InstrSelection/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/CodeGen/InstrSelection/Makefile lib/CodeGen/InstrSelection/Makefile ;;
24294     lib/CodeGen/ModuloScheduling/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/CodeGen/ModuloScheduling/Makefile lib/CodeGen/ModuloScheduling/Makefile ;;
24295     lib/CodeGen/RegAlloc/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/CodeGen/RegAlloc/Makefile lib/CodeGen/RegAlloc/Makefile ;;
24296     lib/CodeGen/SelectionDAG/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/CodeGen/SelectionDAG/Makefile lib/CodeGen/SelectionDAG/Makefile ;;
24297     lib/ExecutionEngine/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/ExecutionEngine/Makefile lib/ExecutionEngine/Makefile ;;
24298     lib/ExecutionEngine/Interpreter/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/ExecutionEngine/Interpreter/Makefile lib/ExecutionEngine/Interpreter/Makefile ;;
24299     lib/ExecutionEngine/JIT/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/ExecutionEngine/JIT/Makefile lib/ExecutionEngine/JIT/Makefile ;;
24300     lib/Support/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Support/Makefile lib/Support/Makefile ;;
24301     lib/Target/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Target/Makefile lib/Target/Makefile ;;
24302     lib/Target/Sparc/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Target/Sparc/Makefile lib/Target/Sparc/Makefile ;;
24303     lib/Target/X86/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Target/X86/Makefile lib/Target/X86/Makefile ;;
24304     lib/Transforms/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Transforms/Makefile lib/Transforms/Makefile ;;
24305     lib/Transforms/Hello/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Transforms/Hello/Makefile lib/Transforms/Hello/Makefile ;;
24306     lib/Transforms/IPO/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Transforms/IPO/Makefile lib/Transforms/IPO/Makefile ;;
24307     lib/Transforms/Instrumentation/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Transforms/Instrumentation/Makefile lib/Transforms/Instrumentation/Makefile ;;
24308     lib/Transforms/Instrumentation/ProfilePaths/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Transforms/Instrumentation/ProfilePaths/Makefile lib/Transforms/Instrumentation/ProfilePaths/Makefile ;;
24309     lib/Transforms/Scalar/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Transforms/Scalar/Makefile lib/Transforms/Scalar/Makefile ;;
24310     lib/Transforms/Utils/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Transforms/Utils/Makefile lib/Transforms/Utils/Makefile ;;
24311     lib/VMCore/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/VMCore/Makefile lib/VMCore/Makefile ;;
24312     runtime/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/runtime/Makefile runtime/Makefile ;;
24313     runtime/GCCLibraries/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/runtime/GCCLibraries/Makefile runtime/GCCLibraries/Makefile ;;
24314     runtime/GCCLibraries/crtend/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/runtime/GCCLibraries/crtend/Makefile runtime/GCCLibraries/crtend/Makefile ;;
24315     runtime/GCCLibraries/libc/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/runtime/GCCLibraries/libc/Makefile runtime/GCCLibraries/libc/Makefile ;;
24316     runtime/GCCLibraries/libcurses/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/runtime/GCCLibraries/libcurses/Makefile runtime/GCCLibraries/libcurses/Makefile ;;
24317     runtime/GCCLibraries/libg/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/runtime/GCCLibraries/libg/Makefile runtime/GCCLibraries/libg/Makefile ;;
24318     runtime/GCCLibraries/libgcc/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/runtime/GCCLibraries/libgcc/Makefile runtime/GCCLibraries/libgcc/Makefile ;;
24319     runtime/GCCLibraries/libm/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/runtime/GCCLibraries/libm/Makefile runtime/GCCLibraries/libm/Makefile ;;
24320     runtime/GCCLibraries/libmalloc/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/runtime/GCCLibraries/libmalloc/Makefile runtime/GCCLibraries/libmalloc/Makefile ;;
24321     runtime/GCCLibraries/libtermcap/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/runtime/GCCLibraries/libtermcap/Makefile runtime/GCCLibraries/libtermcap/Makefile ;;
24322     runtime/GCCLibraries/libucb/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/runtime/GCCLibraries/libucb/Makefile runtime/GCCLibraries/libucb/Makefile ;;
24323     runtime/GCCLibraries/libutempter/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/runtime/GCCLibraries/libutempter/Makefile runtime/GCCLibraries/libutempter/Makefile ;;
24324     runtime/GCCLibraries/libutil/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/runtime/GCCLibraries/libutil/Makefile runtime/GCCLibraries/libutil/Makefile ;;
24325     runtime/libdummy/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/runtime/libdummy/Makefile runtime/libdummy/Makefile ;;
24326     runtime/libtrace/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/runtime/libtrace/Makefile runtime/libtrace/Makefile ;;
24327     test/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Makefile test/Makefile ;;
24328     test/Makefile.tests ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Makefile.tests test/Makefile.tests ;;
24329     test/Programs/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/Makefile test/Programs/Makefile ;;
24330     test/Programs/Makefile.programs ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/Makefile.programs test/Programs/Makefile.programs ;;
24331     test/Programs/TEST.aa.Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.aa.Makefile test/Programs/TEST.aa.Makefile ;;
24332     test/Programs/TEST.dsgraph.report ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.dsgraph.report test/Programs/TEST.dsgraph.report ;;
24333     test/Programs/TEST.micro.report ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.micro.report test/Programs/TEST.micro.report ;;
24334     test/Programs/TEST.aa.report ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.aa.report test/Programs/TEST.aa.report ;;
24335     test/Programs/TEST.example.Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.example.Makefile test/Programs/TEST.example.Makefile ;;
24336     test/Programs/TEST.nightly.Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.nightly.Makefile test/Programs/TEST.nightly.Makefile ;;
24337     test/Programs/TEST.buildrepo.Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.buildrepo.Makefile test/Programs/TEST.buildrepo.Makefile ;;
24338     test/Programs/TEST.jit.Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.jit.Makefile test/Programs/TEST.jit.Makefile ;;
24339     test/Programs/TEST.nightly.report ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.nightly.report test/Programs/TEST.nightly.report ;;
24340     test/Programs/TEST.dsgraph.Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.dsgraph.Makefile test/Programs/TEST.dsgraph.Makefile ;;
24341     test/Programs/TEST.jit.report ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.jit.report test/Programs/TEST.jit.report ;;
24342     test/Programs/TEST.typesafe.Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.typesafe.Makefile test/Programs/TEST.typesafe.Makefile ;;
24343     test/Programs/TEST.dsgraph.gnuplot ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.dsgraph.gnuplot test/Programs/TEST.dsgraph.gnuplot ;;
24344     test/Programs/TEST.micro.Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.micro.Makefile test/Programs/TEST.micro.Makefile ;;
24345     test/Programs/External/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/External/Makefile test/Programs/External/Makefile ;;
24346     test/Programs/External/SPEC/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/External/SPEC/Makefile test/Programs/External/SPEC/Makefile ;;
24347     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 ;;
24348     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 ;;
24349     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 ;;
24350     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 ;;
24351     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 ;;
24352     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 ;;
24353     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 ;;
24354     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 ;;
24355     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 ;;
24356     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 ;;
24357     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 ;;
24358     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 ;;
24359     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 ;;
24360     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 ;;
24361     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 ;;
24362     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 ;;
24363     test/Programs/LLVMSource/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/LLVMSource/Makefile test/Programs/LLVMSource/Makefile ;;
24364     test/Programs/MultiSource/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Makefile test/Programs/MultiSource/Makefile ;;
24365     test/Programs/MultiSource/Makefile.multisrc ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Makefile.multisrc test/Programs/MultiSource/Makefile.multisrc ;;
24366     test/Programs/MultiSource/Applications/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Applications/Makefile test/Programs/MultiSource/Applications/Makefile ;;
24367     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 ;;
24368     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 ;;
24369     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 ;;
24370     test/Programs/MultiSource/Benchmarks/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Benchmarks/Makefile test/Programs/MultiSource/Benchmarks/Makefile ;;
24371     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 ;;
24372     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 ;;
24373     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 ;;
24374     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 ;;
24375     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 ;;
24376     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 ;;
24377     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 ;;
24378     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 ;;
24379     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 ;;
24380     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 ;;
24381     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 ;;
24382     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 ;;
24383     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 ;;
24384     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 ;;
24385     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 ;;
24386     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 ;;
24387     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 ;;
24388     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 ;;
24389     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 ;;
24390     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 ;;
24391     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 ;;
24392     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 ;;
24393     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 ;;
24394     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 ;;
24395     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 ;;
24396     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 ;;
24397     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 ;;
24398     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 ;;
24399     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 ;;
24400     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 ;;
24401     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 ;;
24402     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 ;;
24403     test/Programs/NoSource/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/NoSource/Makefile test/Programs/NoSource/Makefile ;;
24404     test/Programs/NoSource/Flex/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/NoSource/Flex/Makefile test/Programs/NoSource/Flex/Makefile ;;
24405     test/Programs/NoSource/Larn/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/NoSource/Larn/Makefile test/Programs/NoSource/Larn/Makefile ;;
24406     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 ;;
24407     test/Programs/NoSource/Povray31/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/NoSource/Povray31/Makefile test/Programs/NoSource/Povray31/Makefile ;;
24408     test/Programs/NoSource/m4/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/NoSource/m4/Makefile test/Programs/NoSource/m4/Makefile ;;
24409     test/Programs/SingleSource/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/SingleSource/Makefile test/Programs/SingleSource/Makefile ;;
24410     test/Programs/SingleSource/Makefile.singlesrc ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/SingleSource/Makefile.singlesrc test/Programs/SingleSource/Makefile.singlesrc ;;
24411     test/Programs/SingleSource/Gizmos/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/SingleSource/Gizmos/Makefile test/Programs/SingleSource/Gizmos/Makefile ;;
24412     test/Programs/SingleSource/Benchmarks/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/SingleSource/Benchmarks/Makefile test/Programs/SingleSource/Benchmarks/Makefile ;;
24413     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 ;;
24414     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 ;;
24415     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 ;;
24416     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 ;;
24417     test/Programs/SingleSource/CustomChecked/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/SingleSource/CustomChecked/Makefile test/Programs/SingleSource/CustomChecked/Makefile ;;
24418     test/Programs/SingleSource/UnitTests/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/SingleSource/UnitTests/Makefile test/Programs/SingleSource/UnitTests/Makefile ;;
24419     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 ;;
24420     tools/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/Makefile tools/Makefile ;;
24421     tools/analyze/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/analyze/Makefile tools/analyze/Makefile ;;
24422     tools/bugpoint/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/bugpoint/Makefile tools/bugpoint/Makefile ;;
24423     tools/extract/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/extract/Makefile tools/extract/Makefile ;;
24424     tools/gccas/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/gccas/Makefile tools/gccas/Makefile ;;
24425     tools/gccld/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/gccld/Makefile tools/gccld/Makefile ;;
24426     tools/link/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/link/Makefile tools/link/Makefile ;;
24427     tools/llc/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/llc/Makefile tools/llc/Makefile ;;
24428     tools/lli/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/lli/Makefile tools/lli/Makefile ;;
24429     tools/opt/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/opt/Makefile tools/opt/Makefile ;;
24430     tools/llee/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/llee/Makefile tools/llee/Makefile ;;
24431     tools/llvm-as/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/llvm-as/Makefile tools/llvm-as/Makefile ;;
24432     tools/llvm-ar/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/llvm-ar/Makefile tools/llvm-ar/Makefile ;;
24433     tools/llvm-dis/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/llvm-dis/Makefile tools/llvm-dis/Makefile ;;
24434     utils/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/utils/Makefile utils/Makefile ;;
24435     utils/Burg/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/utils/Burg/Makefile utils/Burg/Makefile ;;
24436     utils/Burg/Doc/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/utils/Burg/Doc/Makefile utils/Burg/Doc/Makefile ;;
24437     utils/TableGen/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/utils/TableGen/Makefile utils/TableGen/Makefile ;;
24438     www/docs/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/www/docs/Makefile www/docs/Makefile ;;
24439     projects/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/projects/Makefile projects/Makefile ;;
24440     projects/sample/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/projects/sample/Makefile projects/sample/Makefile ;;
24441     projects/sample/Makefile.common ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/projects/sample/Makefile.common projects/sample/Makefile.common ;;
24442     projects/sample/Makefile.config ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/projects/sample/Makefile.config projects/sample/Makefile.config ;;
24443     projects/sample/lib/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/projects/sample/lib/Makefile projects/sample/lib/Makefile ;;
24444     projects/sample/lib/sample/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/projects/sample/lib/sample/Makefile projects/sample/lib/sample/Makefile ;;
24445     projects/sample/tools/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/projects/sample/tools/Makefile projects/sample/tools/Makefile ;;
24446     projects/sample/tools/sample/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/projects/sample/tools/sample/Makefile projects/sample/tools/sample/Makefile ;;
24447     projects/ModuleMaker/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/projects/ModuleMaker/Makefile projects/ModuleMaker/Makefile ;;
24448     projects/ModuleMaker/Makefile.common ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/projects/ModuleMaker/Makefile.common projects/ModuleMaker/Makefile.common ;;
24449     projects/ModuleMaker/tools/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/projects/ModuleMaker/tools/Makefile projects/ModuleMaker/tools/Makefile ;;
24450     projects/ModuleMaker/tools/ModuleMaker/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/projects/ModuleMaker/tools/ModuleMaker/Makefile projects/ModuleMaker/tools/ModuleMaker/Makefile ;;
24451   esac
24452 done
24453 _ACEOF
24454
24455 cat >>$CONFIG_STATUS <<\_ACEOF
24456
24457 { (exit 0); exit 0; }
24458 _ACEOF
24459 chmod +x $CONFIG_STATUS
24460 ac_clean_files=$ac_clean_files_save
24461
24462
24463 # configure is writing to config.log, and then calls config.status.
24464 # config.status does its own redirection, appending to config.log.
24465 # Unfortunately, on DOS this fails, as config.log is still kept open
24466 # by configure, so config.status won't be able to write to it; its
24467 # output is simply discarded.  So we exec the FD to /dev/null,
24468 # effectively closing config.log, so it can be properly (re)opened and
24469 # appended to by config.status.  When coming back to configure, we
24470 # need to make the FD available again.
24471 if test "$no_create" != yes; then
24472   ac_cs_success=:
24473   ac_config_status_args=
24474   test "$silent" = yes &&
24475     ac_config_status_args="$ac_config_status_args --quiet"
24476   exec 5>/dev/null
24477   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
24478   exec 5>>config.log
24479   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
24480   # would make configure fail if this is the last instruction.
24481   $ac_cs_success || { (exit 1); exit 1; }
24482 fi
24483