Regenerated for Chris's updates, which adds several runtime library
[oota-llvm.git] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.57 for [LLVM] [1.0].
4 #
5 # Report bugs to <llvmbugs@cs.uiuc.edu>.
6 #
7 # Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
8 # Free Software Foundation, Inc.
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 ## --------------------- ##
12 ## M4sh Initialization.  ##
13 ## --------------------- ##
14
15 # Be Bourne compatible
16 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
17   emulate sh
18   NULLCMD=:
19   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
20   # is contrary to our usage.  Disable this feature.
21   alias -g '${1+"$@"}'='"$@"'
22 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
23   set -o posix
24 fi
25
26 # Support unset when possible.
27 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
28   as_unset=unset
29 else
30   as_unset=false
31 fi
32
33
34 # Work around bugs in pre-3.0 UWIN ksh.
35 $as_unset ENV MAIL MAILPATH
36 PS1='$ '
37 PS2='> '
38 PS4='+ '
39
40 # NLS nuisances.
41 for as_var in \
42   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
43   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
44   LC_TELEPHONE LC_TIME
45 do
46   if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
47     eval $as_var=C; export $as_var
48   else
49     $as_unset $as_var
50   fi
51 done
52
53 # Required to use basename.
54 if expr a : '\(a\)' >/dev/null 2>&1; then
55   as_expr=expr
56 else
57   as_expr=false
58 fi
59
60 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
61   as_basename=basename
62 else
63   as_basename=false
64 fi
65
66
67 # Name of the executable.
68 as_me=`$as_basename "$0" ||
69 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
70          X"$0" : 'X\(//\)$' \| \
71          X"$0" : 'X\(/\)$' \| \
72          .     : '\(.\)' 2>/dev/null ||
73 echo X/"$0" |
74     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
75           /^X\/\(\/\/\)$/{ s//\1/; q; }
76           /^X\/\(\/\).*/{ s//\1/; q; }
77           s/.*/./; q'`
78
79
80 # PATH needs CR, and LINENO needs CR and PATH.
81 # Avoid depending upon Character Ranges.
82 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
83 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
84 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
85 as_cr_digits='0123456789'
86 as_cr_alnum=$as_cr_Letters$as_cr_digits
87
88 # The user is always right.
89 if test "${PATH_SEPARATOR+set}" != set; then
90   echo "#! /bin/sh" >conf$$.sh
91   echo  "exit 0"   >>conf$$.sh
92   chmod +x conf$$.sh
93   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
94     PATH_SEPARATOR=';'
95   else
96     PATH_SEPARATOR=:
97   fi
98   rm -f conf$$.sh
99 fi
100
101
102   as_lineno_1=$LINENO
103   as_lineno_2=$LINENO
104   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
105   test "x$as_lineno_1" != "x$as_lineno_2" &&
106   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
107   # Find who we are.  Look in the path if we contain no path at all
108   # relative or not.
109   case $0 in
110     *[\\/]* ) as_myself=$0 ;;
111     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
112 for as_dir in $PATH
113 do
114   IFS=$as_save_IFS
115   test -z "$as_dir" && as_dir=.
116   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
117 done
118
119        ;;
120   esac
121   # We did not find ourselves, most probably we were run as `sh COMMAND'
122   # in which case we are not to be found in the path.
123   if test "x$as_myself" = x; then
124     as_myself=$0
125   fi
126   if test ! -f "$as_myself"; then
127     { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
128    { (exit 1); exit 1; }; }
129   fi
130   case $CONFIG_SHELL in
131   '')
132     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
133 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
134 do
135   IFS=$as_save_IFS
136   test -z "$as_dir" && as_dir=.
137   for as_base in sh bash ksh sh5; do
138          case $as_dir in
139          /*)
140            if ("$as_dir/$as_base" -c '
141   as_lineno_1=$LINENO
142   as_lineno_2=$LINENO
143   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
144   test "x$as_lineno_1" != "x$as_lineno_2" &&
145   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
146              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
147              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
148              CONFIG_SHELL=$as_dir/$as_base
149              export CONFIG_SHELL
150              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
151            fi;;
152          esac
153        done
154 done
155 ;;
156   esac
157
158   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
159   # uniformly replaced by the line number.  The first 'sed' inserts a
160   # line-number line before each line; the second 'sed' does the real
161   # work.  The second script uses 'N' to pair each line-number line
162   # with the numbered line, and appends trailing '-' during
163   # substitution so that $LINENO is not a special case at line end.
164   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
165   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
166   sed '=' <$as_myself |
167     sed '
168       N
169       s,$,-,
170       : loop
171       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
172       t loop
173       s,-$,,
174       s,^['$as_cr_digits']*\n,,
175     ' >$as_me.lineno &&
176   chmod +x $as_me.lineno ||
177     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
178    { (exit 1); exit 1; }; }
179
180   # Don't try to exec as it changes $[0], causing all sort of problems
181   # (the dirname of $[0] is not the place where we might find the
182   # original and so on.  Autoconf is especially sensible to this).
183   . ./$as_me.lineno
184   # Exit status is that of the last command.
185   exit
186 }
187
188
189 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
190   *c*,-n*) ECHO_N= ECHO_C='
191 ' ECHO_T='      ' ;;
192   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
193   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
194 esac
195
196 if expr a : '\(a\)' >/dev/null 2>&1; then
197   as_expr=expr
198 else
199   as_expr=false
200 fi
201
202 rm -f conf$$ conf$$.exe conf$$.file
203 echo >conf$$.file
204 if ln -s conf$$.file conf$$ 2>/dev/null; then
205   # We could just check for DJGPP; but this test a) works b) is more generic
206   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
207   if test -f conf$$.exe; then
208     # Don't use ln at all; we don't have any links
209     as_ln_s='cp -p'
210   else
211     as_ln_s='ln -s'
212   fi
213 elif ln conf$$.file conf$$ 2>/dev/null; then
214   as_ln_s=ln
215 else
216   as_ln_s='cp -p'
217 fi
218 rm -f conf$$ conf$$.exe conf$$.file
219
220 if mkdir -p . 2>/dev/null; then
221   as_mkdir_p=:
222 else
223   as_mkdir_p=false
224 fi
225
226 as_executable_p="test -f"
227
228 # Sed expression to map a string onto a valid CPP name.
229 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
230
231 # Sed expression to map a string onto a valid variable name.
232 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
233
234
235 # IFS
236 # We need space, tab and new line, in precisely that order.
237 as_nl='
238 '
239 IFS="   $as_nl"
240
241 # CDPATH.
242 $as_unset CDPATH
243
244
245
246 # Check that we are running under the correct shell.
247 SHELL=${CONFIG_SHELL-/bin/sh}
248
249 case X$ECHO in
250 X*--fallback-echo)
251   # Remove one level of quotation (which was required for Make).
252   ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
253   ;;
254 esac
255
256 echo=${ECHO-echo}
257 if test "X$1" = X--no-reexec; then
258   # Discard the --no-reexec flag, and continue.
259   shift
260 elif test "X$1" = X--fallback-echo; then
261   # Avoid inline document here, it may be left over
262   :
263 elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
264   # Yippee, $echo works!
265   :
266 else
267   # Restart under the correct shell.
268   exec $SHELL "$0" --no-reexec ${1+"$@"}
269 fi
270
271 if test "X$1" = X--fallback-echo; then
272   # used as fallback echo
273   shift
274   cat <<EOF
275 $*
276 EOF
277   exit 0
278 fi
279
280 # The HP-UX ksh and POSIX shell print the target directory to stdout
281 # if CDPATH is set.
282 if test "X${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
283
284 if test -z "$ECHO"; then
285 if test "X${echo_test_string+set}" != Xset; then
286 # find a string as large as possible, as long as the shell can cope with it
287   for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
288     # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
289     if (echo_test_string="`eval $cmd`") 2>/dev/null &&
290        echo_test_string="`eval $cmd`" &&
291        (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
292     then
293       break
294     fi
295   done
296 fi
297
298 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
299    echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
300    test "X$echo_testing_string" = "X$echo_test_string"; then
301   :
302 else
303   # The Solaris, AIX, and Digital Unix default echo programs unquote
304   # backslashes.  This makes it impossible to quote backslashes using
305   #   echo "$something" | sed 's/\\/\\\\/g'
306   #
307   # So, first we look for a working echo in the user's PATH.
308
309   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
310   for dir in $PATH /usr/ucb; do
311     IFS="$lt_save_ifs"
312     if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
313        test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
314        echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
315        test "X$echo_testing_string" = "X$echo_test_string"; then
316       echo="$dir/echo"
317       break
318     fi
319   done
320   IFS="$lt_save_ifs"
321
322   if test "X$echo" = Xecho; then
323     # We didn't find a better echo, so look for alternatives.
324     if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
325        echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
326        test "X$echo_testing_string" = "X$echo_test_string"; then
327       # This shell has a builtin print -r that does the trick.
328       echo='print -r'
329     elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
330          test "X$CONFIG_SHELL" != X/bin/ksh; then
331       # If we have ksh, try running configure again with it.
332       ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
333       export ORIGINAL_CONFIG_SHELL
334       CONFIG_SHELL=/bin/ksh
335       export CONFIG_SHELL
336       exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
337     else
338       # Try using printf.
339       echo='printf %s\n'
340       if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
341          echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
342          test "X$echo_testing_string" = "X$echo_test_string"; then
343         # Cool, printf works
344         :
345       elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
346            test "X$echo_testing_string" = 'X\t' &&
347            echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
348            test "X$echo_testing_string" = "X$echo_test_string"; then
349         CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
350         export CONFIG_SHELL
351         SHELL="$CONFIG_SHELL"
352         export SHELL
353         echo="$CONFIG_SHELL $0 --fallback-echo"
354       elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
355            test "X$echo_testing_string" = 'X\t' &&
356            echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
357            test "X$echo_testing_string" = "X$echo_test_string"; then
358         echo="$CONFIG_SHELL $0 --fallback-echo"
359       else
360         # maybe with a smaller string...
361         prev=:
362
363         for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
364           if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
365           then
366             break
367           fi
368           prev="$cmd"
369         done
370
371         if test "$prev" != 'sed 50q "$0"'; then
372           echo_test_string=`eval $prev`
373           export echo_test_string
374           exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
375         else
376           # Oops.  We lost completely, so just stick with echo.
377           echo=echo
378         fi
379       fi
380     fi
381   fi
382 fi
383 fi
384
385 # Copy echo and quote the copy suitably for passing to libtool from
386 # the Makefile, instead of quoting the original, which is used later.
387 ECHO=$echo
388 if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
389    ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
390 fi
391
392
393
394
395 tagnames=`echo "$tagnames,CXX" | sed 's/^,//'`
396
397 tagnames=`echo "$tagnames,F77" | sed 's/^,//'`
398
399 # Name of the host.
400 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
401 # so uname gets run too.
402 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
403
404 exec 6>&1
405
406 #
407 # Initializations.
408 #
409 ac_default_prefix=/usr/local
410 ac_config_libobj_dir=.
411 cross_compiling=no
412 subdirs=
413 MFLAGS=
414 MAKEFLAGS=
415 SHELL=${CONFIG_SHELL-/bin/sh}
416
417 # Maximum number of lines to put in a shell here document.
418 # This variable seems obsolete.  It should probably be removed, and
419 # only ac_max_sed_lines should be used.
420 : ${ac_max_here_lines=38}
421
422 # Identity of this package.
423 PACKAGE_NAME='[LLVM]'
424 PACKAGE_TARNAME='--llvm--'
425 PACKAGE_VERSION='[1.0]'
426 PACKAGE_STRING='[LLVM] [1.0]'
427 PACKAGE_BUGREPORT='llvmbugs@cs.uiuc.edu'
428
429 # Factoring default headers for most tests.
430 ac_includes_default="\
431 #include <stdio.h>
432 #if HAVE_SYS_TYPES_H
433 # include <sys/types.h>
434 #endif
435 #if HAVE_SYS_STAT_H
436 # include <sys/stat.h>
437 #endif
438 #if STDC_HEADERS
439 # include <stdlib.h>
440 # include <stddef.h>
441 #else
442 # if HAVE_STDLIB_H
443 #  include <stdlib.h>
444 # endif
445 #endif
446 #if HAVE_STRING_H
447 # if !STDC_HEADERS && HAVE_MEMORY_H
448 #  include <memory.h>
449 # endif
450 # include <string.h>
451 #endif
452 #if HAVE_STRINGS_H
453 # include <strings.h>
454 #endif
455 #if HAVE_INTTYPES_H
456 # include <inttypes.h>
457 #else
458 # if HAVE_STDINT_H
459 #  include <stdint.h>
460 # endif
461 #endif
462 #if HAVE_UNISTD_H
463 # include <unistd.h>
464 #endif"
465
466 ac_unique_file=""Makefile.config.in""
467 ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os OS LLVMGCCDIR ARCH CXX CXXFLAGS LDFLAGS CPPFLAGS ac_ct_CXX EXEEXT OBJEXT CC CFLAGS ac_ct_CC CPP ifGNUmake LEX LEXLIB LEX_OUTPUT_ROOT YACC EGREP LN_S ECHO AR ac_ct_AR RANLIB ac_ct_RANLIB STRIP ac_ct_STRIP CXXCPP F77 FFLAGS ac_ct_F77 LIBTOOL RPWD SED RM MKDIR DATE MV DOT ETAGS PURIFY PYTHON QMTEST ALLOCA LIBOBJS MMAP_FILE ENABLE_PURIFY ENABLE_OPTIMIZED USE_SPEC UPB DISABLE_LLC_DIFFS JIT SPEC_ROOT BCR PAPIDIR LTLIBOBJS'
468 ac_subst_files=''
469
470 # Initialize some variables set by options.
471 ac_init_help=
472 ac_init_version=false
473 # The variables have the same names as the options, with
474 # dashes changed to underlines.
475 cache_file=/dev/null
476 exec_prefix=NONE
477 no_create=
478 no_recursion=
479 prefix=NONE
480 program_prefix=NONE
481 program_suffix=NONE
482 program_transform_name=s,x,x,
483 silent=
484 site=
485 srcdir=
486 verbose=
487 x_includes=NONE
488 x_libraries=NONE
489
490 # Installation directory options.
491 # These are left unexpanded so users can "make install exec_prefix=/foo"
492 # and all the variables that are supposed to be based on exec_prefix
493 # by default will actually change.
494 # Use braces instead of parens because sh, perl, etc. also accept them.
495 bindir='${exec_prefix}/bin'
496 sbindir='${exec_prefix}/sbin'
497 libexecdir='${exec_prefix}/libexec'
498 datadir='${prefix}/share'
499 sysconfdir='${prefix}/etc'
500 sharedstatedir='${prefix}/com'
501 localstatedir='${prefix}/var'
502 libdir='${exec_prefix}/lib'
503 includedir='${prefix}/include'
504 oldincludedir='/usr/include'
505 infodir='${prefix}/info'
506 mandir='${prefix}/man'
507
508 ac_prev=
509 for ac_option
510 do
511   # If the previous option needs an argument, assign it.
512   if test -n "$ac_prev"; then
513     eval "$ac_prev=\$ac_option"
514     ac_prev=
515     continue
516   fi
517
518   ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
519
520   # Accept the important Cygnus configure options, so we can diagnose typos.
521
522   case $ac_option in
523
524   -bindir | --bindir | --bindi | --bind | --bin | --bi)
525     ac_prev=bindir ;;
526   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
527     bindir=$ac_optarg ;;
528
529   -build | --build | --buil | --bui | --bu)
530     ac_prev=build_alias ;;
531   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
532     build_alias=$ac_optarg ;;
533
534   -cache-file | --cache-file | --cache-fil | --cache-fi \
535   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
536     ac_prev=cache_file ;;
537   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
538   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
539     cache_file=$ac_optarg ;;
540
541   --config-cache | -C)
542     cache_file=config.cache ;;
543
544   -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
545     ac_prev=datadir ;;
546   -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
547   | --da=*)
548     datadir=$ac_optarg ;;
549
550   -disable-* | --disable-*)
551     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
552     # Reject names that are not valid shell variable names.
553     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
554       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
555    { (exit 1); exit 1; }; }
556     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
557     eval "enable_$ac_feature=no" ;;
558
559   -enable-* | --enable-*)
560     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
561     # Reject names that are not valid shell variable names.
562     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
563       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
564    { (exit 1); exit 1; }; }
565     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
566     case $ac_option in
567       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
568       *) ac_optarg=yes ;;
569     esac
570     eval "enable_$ac_feature='$ac_optarg'" ;;
571
572   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
573   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
574   | --exec | --exe | --ex)
575     ac_prev=exec_prefix ;;
576   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
577   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
578   | --exec=* | --exe=* | --ex=*)
579     exec_prefix=$ac_optarg ;;
580
581   -gas | --gas | --ga | --g)
582     # Obsolete; use --with-gas.
583     with_gas=yes ;;
584
585   -help | --help | --hel | --he | -h)
586     ac_init_help=long ;;
587   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
588     ac_init_help=recursive ;;
589   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
590     ac_init_help=short ;;
591
592   -host | --host | --hos | --ho)
593     ac_prev=host_alias ;;
594   -host=* | --host=* | --hos=* | --ho=*)
595     host_alias=$ac_optarg ;;
596
597   -includedir | --includedir | --includedi | --included | --include \
598   | --includ | --inclu | --incl | --inc)
599     ac_prev=includedir ;;
600   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
601   | --includ=* | --inclu=* | --incl=* | --inc=*)
602     includedir=$ac_optarg ;;
603
604   -infodir | --infodir | --infodi | --infod | --info | --inf)
605     ac_prev=infodir ;;
606   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
607     infodir=$ac_optarg ;;
608
609   -libdir | --libdir | --libdi | --libd)
610     ac_prev=libdir ;;
611   -libdir=* | --libdir=* | --libdi=* | --libd=*)
612     libdir=$ac_optarg ;;
613
614   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
615   | --libexe | --libex | --libe)
616     ac_prev=libexecdir ;;
617   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
618   | --libexe=* | --libex=* | --libe=*)
619     libexecdir=$ac_optarg ;;
620
621   -localstatedir | --localstatedir | --localstatedi | --localstated \
622   | --localstate | --localstat | --localsta | --localst \
623   | --locals | --local | --loca | --loc | --lo)
624     ac_prev=localstatedir ;;
625   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
626   | --localstate=* | --localstat=* | --localsta=* | --localst=* \
627   | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
628     localstatedir=$ac_optarg ;;
629
630   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
631     ac_prev=mandir ;;
632   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
633     mandir=$ac_optarg ;;
634
635   -nfp | --nfp | --nf)
636     # Obsolete; use --without-fp.
637     with_fp=no ;;
638
639   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
640   | --no-cr | --no-c | -n)
641     no_create=yes ;;
642
643   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
644   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
645     no_recursion=yes ;;
646
647   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
648   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
649   | --oldin | --oldi | --old | --ol | --o)
650     ac_prev=oldincludedir ;;
651   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
652   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
653   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
654     oldincludedir=$ac_optarg ;;
655
656   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
657     ac_prev=prefix ;;
658   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
659     prefix=$ac_optarg ;;
660
661   -program-prefix | --program-prefix | --program-prefi | --program-pref \
662   | --program-pre | --program-pr | --program-p)
663     ac_prev=program_prefix ;;
664   -program-prefix=* | --program-prefix=* | --program-prefi=* \
665   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
666     program_prefix=$ac_optarg ;;
667
668   -program-suffix | --program-suffix | --program-suffi | --program-suff \
669   | --program-suf | --program-su | --program-s)
670     ac_prev=program_suffix ;;
671   -program-suffix=* | --program-suffix=* | --program-suffi=* \
672   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
673     program_suffix=$ac_optarg ;;
674
675   -program-transform-name | --program-transform-name \
676   | --program-transform-nam | --program-transform-na \
677   | --program-transform-n | --program-transform- \
678   | --program-transform | --program-transfor \
679   | --program-transfo | --program-transf \
680   | --program-trans | --program-tran \
681   | --progr-tra | --program-tr | --program-t)
682     ac_prev=program_transform_name ;;
683   -program-transform-name=* | --program-transform-name=* \
684   | --program-transform-nam=* | --program-transform-na=* \
685   | --program-transform-n=* | --program-transform-=* \
686   | --program-transform=* | --program-transfor=* \
687   | --program-transfo=* | --program-transf=* \
688   | --program-trans=* | --program-tran=* \
689   | --progr-tra=* | --program-tr=* | --program-t=*)
690     program_transform_name=$ac_optarg ;;
691
692   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
693   | -silent | --silent | --silen | --sile | --sil)
694     silent=yes ;;
695
696   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
697     ac_prev=sbindir ;;
698   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
699   | --sbi=* | --sb=*)
700     sbindir=$ac_optarg ;;
701
702   -sharedstatedir | --sharedstatedir | --sharedstatedi \
703   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
704   | --sharedst | --shareds | --shared | --share | --shar \
705   | --sha | --sh)
706     ac_prev=sharedstatedir ;;
707   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
708   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
709   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
710   | --sha=* | --sh=*)
711     sharedstatedir=$ac_optarg ;;
712
713   -site | --site | --sit)
714     ac_prev=site ;;
715   -site=* | --site=* | --sit=*)
716     site=$ac_optarg ;;
717
718   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
719     ac_prev=srcdir ;;
720   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
721     srcdir=$ac_optarg ;;
722
723   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
724   | --syscon | --sysco | --sysc | --sys | --sy)
725     ac_prev=sysconfdir ;;
726   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
727   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
728     sysconfdir=$ac_optarg ;;
729
730   -target | --target | --targe | --targ | --tar | --ta | --t)
731     ac_prev=target_alias ;;
732   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
733     target_alias=$ac_optarg ;;
734
735   -v | -verbose | --verbose | --verbos | --verbo | --verb)
736     verbose=yes ;;
737
738   -version | --version | --versio | --versi | --vers | -V)
739     ac_init_version=: ;;
740
741   -with-* | --with-*)
742     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
743     # Reject names that are not valid shell variable names.
744     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
745       { echo "$as_me: error: invalid package name: $ac_package" >&2
746    { (exit 1); exit 1; }; }
747     ac_package=`echo $ac_package| sed 's/-/_/g'`
748     case $ac_option in
749       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
750       *) ac_optarg=yes ;;
751     esac
752     eval "with_$ac_package='$ac_optarg'" ;;
753
754   -without-* | --without-*)
755     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
756     # Reject names that are not valid shell variable names.
757     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
758       { echo "$as_me: error: invalid package name: $ac_package" >&2
759    { (exit 1); exit 1; }; }
760     ac_package=`echo $ac_package | sed 's/-/_/g'`
761     eval "with_$ac_package=no" ;;
762
763   --x)
764     # Obsolete; use --with-x.
765     with_x=yes ;;
766
767   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
768   | --x-incl | --x-inc | --x-in | --x-i)
769     ac_prev=x_includes ;;
770   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
771   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
772     x_includes=$ac_optarg ;;
773
774   -x-libraries | --x-libraries | --x-librarie | --x-librari \
775   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
776     ac_prev=x_libraries ;;
777   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
778   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
779     x_libraries=$ac_optarg ;;
780
781   -*) { echo "$as_me: error: unrecognized option: $ac_option
782 Try \`$0 --help' for more information." >&2
783    { (exit 1); exit 1; }; }
784     ;;
785
786   *=*)
787     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
788     # Reject names that are not valid shell variable names.
789     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
790       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
791    { (exit 1); exit 1; }; }
792     ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
793     eval "$ac_envvar='$ac_optarg'"
794     export $ac_envvar ;;
795
796   *)
797     # FIXME: should be removed in autoconf 3.0.
798     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
799     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
800       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
801     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
802     ;;
803
804   esac
805 done
806
807 if test -n "$ac_prev"; then
808   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
809   { echo "$as_me: error: missing argument to $ac_option" >&2
810    { (exit 1); exit 1; }; }
811 fi
812
813 # Be sure to have absolute paths.
814 for ac_var in exec_prefix prefix
815 do
816   eval ac_val=$`echo $ac_var`
817   case $ac_val in
818     [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
819     *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
820    { (exit 1); exit 1; }; };;
821   esac
822 done
823
824 # Be sure to have absolute paths.
825 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
826               localstatedir libdir includedir oldincludedir infodir mandir
827 do
828   eval ac_val=$`echo $ac_var`
829   case $ac_val in
830     [\\/$]* | ?:[\\/]* ) ;;
831     *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
832    { (exit 1); exit 1; }; };;
833   esac
834 done
835
836 # There might be people who depend on the old broken behavior: `$host'
837 # used to hold the argument of --host etc.
838 # FIXME: To remove some day.
839 build=$build_alias
840 host=$host_alias
841 target=$target_alias
842
843 # FIXME: To remove some day.
844 if test "x$host_alias" != x; then
845   if test "x$build_alias" = x; then
846     cross_compiling=maybe
847     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
848     If a cross compiler is detected then cross compile mode will be used." >&2
849   elif test "x$build_alias" != "x$host_alias"; then
850     cross_compiling=yes
851   fi
852 fi
853
854 ac_tool_prefix=
855 test -n "$host_alias" && ac_tool_prefix=$host_alias-
856
857 test "$silent" = yes && exec 6>/dev/null
858
859
860 # Find the source files, if location was not specified.
861 if test -z "$srcdir"; then
862   ac_srcdir_defaulted=yes
863   # Try the directory containing this script, then its parent.
864   ac_confdir=`(dirname "$0") 2>/dev/null ||
865 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
866          X"$0" : 'X\(//\)[^/]' \| \
867          X"$0" : 'X\(//\)$' \| \
868          X"$0" : 'X\(/\)' \| \
869          .     : '\(.\)' 2>/dev/null ||
870 echo X"$0" |
871     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
872           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
873           /^X\(\/\/\)$/{ s//\1/; q; }
874           /^X\(\/\).*/{ s//\1/; q; }
875           s/.*/./; q'`
876   srcdir=$ac_confdir
877   if test ! -r $srcdir/$ac_unique_file; then
878     srcdir=..
879   fi
880 else
881   ac_srcdir_defaulted=no
882 fi
883 if test ! -r $srcdir/$ac_unique_file; then
884   if test "$ac_srcdir_defaulted" = yes; then
885     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
886    { (exit 1); exit 1; }; }
887   else
888     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
889    { (exit 1); exit 1; }; }
890   fi
891 fi
892 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
893   { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
894    { (exit 1); exit 1; }; }
895 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
896 ac_env_build_alias_set=${build_alias+set}
897 ac_env_build_alias_value=$build_alias
898 ac_cv_env_build_alias_set=${build_alias+set}
899 ac_cv_env_build_alias_value=$build_alias
900 ac_env_host_alias_set=${host_alias+set}
901 ac_env_host_alias_value=$host_alias
902 ac_cv_env_host_alias_set=${host_alias+set}
903 ac_cv_env_host_alias_value=$host_alias
904 ac_env_target_alias_set=${target_alias+set}
905 ac_env_target_alias_value=$target_alias
906 ac_cv_env_target_alias_set=${target_alias+set}
907 ac_cv_env_target_alias_value=$target_alias
908 ac_env_CXX_set=${CXX+set}
909 ac_env_CXX_value=$CXX
910 ac_cv_env_CXX_set=${CXX+set}
911 ac_cv_env_CXX_value=$CXX
912 ac_env_CXXFLAGS_set=${CXXFLAGS+set}
913 ac_env_CXXFLAGS_value=$CXXFLAGS
914 ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
915 ac_cv_env_CXXFLAGS_value=$CXXFLAGS
916 ac_env_LDFLAGS_set=${LDFLAGS+set}
917 ac_env_LDFLAGS_value=$LDFLAGS
918 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
919 ac_cv_env_LDFLAGS_value=$LDFLAGS
920 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
921 ac_env_CPPFLAGS_value=$CPPFLAGS
922 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
923 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
924 ac_env_CC_set=${CC+set}
925 ac_env_CC_value=$CC
926 ac_cv_env_CC_set=${CC+set}
927 ac_cv_env_CC_value=$CC
928 ac_env_CFLAGS_set=${CFLAGS+set}
929 ac_env_CFLAGS_value=$CFLAGS
930 ac_cv_env_CFLAGS_set=${CFLAGS+set}
931 ac_cv_env_CFLAGS_value=$CFLAGS
932 ac_env_CPP_set=${CPP+set}
933 ac_env_CPP_value=$CPP
934 ac_cv_env_CPP_set=${CPP+set}
935 ac_cv_env_CPP_value=$CPP
936 ac_env_CXXCPP_set=${CXXCPP+set}
937 ac_env_CXXCPP_value=$CXXCPP
938 ac_cv_env_CXXCPP_set=${CXXCPP+set}
939 ac_cv_env_CXXCPP_value=$CXXCPP
940 ac_env_F77_set=${F77+set}
941 ac_env_F77_value=$F77
942 ac_cv_env_F77_set=${F77+set}
943 ac_cv_env_F77_value=$F77
944 ac_env_FFLAGS_set=${FFLAGS+set}
945 ac_env_FFLAGS_value=$FFLAGS
946 ac_cv_env_FFLAGS_set=${FFLAGS+set}
947 ac_cv_env_FFLAGS_value=$FFLAGS
948
949 #
950 # Report the --help message.
951 #
952 if test "$ac_init_help" = "long"; then
953   # Omit some internal or obsolete options to make the list less imposing.
954   # This message is too long to be a string in the A/UX 3.1 sh.
955   cat <<_ACEOF
956 \`configure' configures [LLVM] [1.0] to adapt to many kinds of systems.
957
958 Usage: $0 [OPTION]... [VAR=VALUE]...
959
960 To assign environment variables (e.g., CC, CFLAGS...), specify them as
961 VAR=VALUE.  See below for descriptions of some of the useful variables.
962
963 Defaults for the options are specified in brackets.
964
965 Configuration:
966   -h, --help              display this help and exit
967       --help=short        display options specific to this package
968       --help=recursive    display the short help of all the included packages
969   -V, --version           display version information and exit
970   -q, --quiet, --silent   do not print \`checking...' messages
971       --cache-file=FILE   cache test results in FILE [disabled]
972   -C, --config-cache      alias for \`--cache-file=config.cache'
973   -n, --no-create         do not create output files
974       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
975
976 _ACEOF
977
978   cat <<_ACEOF
979 Installation directories:
980   --prefix=PREFIX         install architecture-independent files in PREFIX
981                           [$ac_default_prefix]
982   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
983                           [PREFIX]
984
985 By default, \`make install' will install all the files in
986 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
987 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
988 for instance \`--prefix=\$HOME'.
989
990 For better control, use the options below.
991
992 Fine tuning of the installation directories:
993   --bindir=DIR           user executables [EPREFIX/bin]
994   --sbindir=DIR          system admin executables [EPREFIX/sbin]
995   --libexecdir=DIR       program executables [EPREFIX/libexec]
996   --datadir=DIR          read-only architecture-independent data [PREFIX/share]
997   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
998   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
999   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1000   --libdir=DIR           object code libraries [EPREFIX/lib]
1001   --includedir=DIR       C header files [PREFIX/include]
1002   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1003   --infodir=DIR          info documentation [PREFIX/info]
1004   --mandir=DIR           man documentation [PREFIX/man]
1005 _ACEOF
1006
1007   cat <<\_ACEOF
1008
1009 System types:
1010   --build=BUILD     configure for building on BUILD [guessed]
1011   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1012   --target=TARGET   configure for building compilers for TARGET [HOST]
1013 _ACEOF
1014 fi
1015
1016 if test -n "$ac_init_help"; then
1017   case $ac_init_help in
1018      short | recursive ) echo "Configuration of [LLVM] [1.0]:";;
1019    esac
1020   cat <<\_ACEOF
1021
1022 Optional Features:
1023   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1024   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1025   --enable-shared[=PKGS]
1026                           build shared libraries [default=yes]
1027   --enable-static[=PKGS]
1028                           build static libraries [default=yes]
1029   --enable-fast-install[=PKGS]
1030                           optimize for fast installation [default=yes]
1031   --disable-libtool-lock  avoid locking (might break parallel builds)
1032   --enable-purify         Compile with purify (default is NO)
1033   --enable-optimized      Compile with optimizations enabled (default is NO)
1034   --enable-spec           Compile SPEC benchmarks (default is NO)
1035   --enable-precompiled_bytecode
1036                           Use pre-compiled bytecode (default is NO)
1037   --enable-llc_diffs      Enable LLC Diffs when testing (default is YES)
1038   --enable-jit            Enable Just In Time Compiling (default is YES)
1039
1040 Optional Packages:
1041   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1042   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1043   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1044   --with-pic              try to use only PIC/non-PIC objects [default=use
1045                           both]
1046   --with-tags[=TAGS]
1047                           include additional configurations [automatic]
1048   --with-spec             Location of SPEC benchmarks
1049   --with-llvmgccdir       Location of LLVM GCC front-end
1050   --with-bcrepos          Location of Bytecode Repository
1051   --with-papi             Location of PAPI
1052   --with-purify           Location of purify program
1053
1054 Some influential environment variables:
1055   CXX         C++ compiler command
1056   CXXFLAGS    C++ compiler flags
1057   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1058               nonstandard directory <lib dir>
1059   CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
1060               headers in a nonstandard directory <include dir>
1061   CC          C compiler command
1062   CFLAGS      C compiler flags
1063   CPP         C preprocessor
1064   CXXCPP      C++ preprocessor
1065   F77         Fortran 77 compiler command
1066   FFLAGS      Fortran 77 compiler flags
1067
1068 Use these variables to override the choices made by `configure' or to help
1069 it to find libraries and programs with nonstandard names/locations.
1070
1071 Report bugs to <llvmbugs@cs.uiuc.edu>.
1072 _ACEOF
1073 fi
1074
1075 if test "$ac_init_help" = "recursive"; then
1076   # If there are subdirs, report their specific --help.
1077   ac_popdir=`pwd`
1078   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1079     test -d $ac_dir || continue
1080     ac_builddir=.
1081
1082 if test "$ac_dir" != .; then
1083   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1084   # A "../" for each directory in $ac_dir_suffix.
1085   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1086 else
1087   ac_dir_suffix= ac_top_builddir=
1088 fi
1089
1090 case $srcdir in
1091   .)  # No --srcdir option.  We are building in place.
1092     ac_srcdir=.
1093     if test -z "$ac_top_builddir"; then
1094        ac_top_srcdir=.
1095     else
1096        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1097     fi ;;
1098   [\\/]* | ?:[\\/]* )  # Absolute path.
1099     ac_srcdir=$srcdir$ac_dir_suffix;
1100     ac_top_srcdir=$srcdir ;;
1101   *) # Relative path.
1102     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1103     ac_top_srcdir=$ac_top_builddir$srcdir ;;
1104 esac
1105 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
1106 # absolute.
1107 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
1108 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
1109 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
1110 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
1111
1112     cd $ac_dir
1113     # Check for guested configure; otherwise get Cygnus style configure.
1114     if test -f $ac_srcdir/configure.gnu; then
1115       echo
1116       $SHELL $ac_srcdir/configure.gnu  --help=recursive
1117     elif test -f $ac_srcdir/configure; then
1118       echo
1119       $SHELL $ac_srcdir/configure  --help=recursive
1120     elif test -f $ac_srcdir/configure.ac ||
1121            test -f $ac_srcdir/configure.in; then
1122       echo
1123       $ac_configure --help
1124     else
1125       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1126     fi
1127     cd $ac_popdir
1128   done
1129 fi
1130
1131 test -n "$ac_init_help" && exit 0
1132 if $ac_init_version; then
1133   cat <<\_ACEOF
1134 [LLVM] configure [1.0]
1135 generated by GNU Autoconf 2.57
1136
1137 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
1138 Free Software Foundation, Inc.
1139 This configure script is free software; the Free Software Foundation
1140 gives unlimited permission to copy, distribute and modify it.
1141 _ACEOF
1142   exit 0
1143 fi
1144 exec 5>config.log
1145 cat >&5 <<_ACEOF
1146 This file contains any messages produced by compilers while
1147 running configure, to aid debugging if configure makes a mistake.
1148
1149 It was created by [LLVM] $as_me [1.0], which was
1150 generated by GNU Autoconf 2.57.  Invocation command line was
1151
1152   $ $0 $@
1153
1154 _ACEOF
1155 {
1156 cat <<_ASUNAME
1157 ## --------- ##
1158 ## Platform. ##
1159 ## --------- ##
1160
1161 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1162 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1163 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1164 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1165 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1166
1167 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1168 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1169
1170 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1171 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1172 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1173 hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
1174 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1175 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1176 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1177
1178 _ASUNAME
1179
1180 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1181 for as_dir in $PATH
1182 do
1183   IFS=$as_save_IFS
1184   test -z "$as_dir" && as_dir=.
1185   echo "PATH: $as_dir"
1186 done
1187
1188 } >&5
1189
1190 cat >&5 <<_ACEOF
1191
1192
1193 ## ----------- ##
1194 ## Core tests. ##
1195 ## ----------- ##
1196
1197 _ACEOF
1198
1199
1200 # Keep a trace of the command line.
1201 # Strip out --no-create and --no-recursion so they do not pile up.
1202 # Strip out --silent because we don't want to record it for future runs.
1203 # Also quote any args containing shell meta-characters.
1204 # Make two passes to allow for proper duplicate-argument suppression.
1205 ac_configure_args=
1206 ac_configure_args0=
1207 ac_configure_args1=
1208 ac_sep=
1209 ac_must_keep_next=false
1210 for ac_pass in 1 2
1211 do
1212   for ac_arg
1213   do
1214     case $ac_arg in
1215     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1216     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1217     | -silent | --silent | --silen | --sile | --sil)
1218       continue ;;
1219     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1220       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1221     esac
1222     case $ac_pass in
1223     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1224     2)
1225       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1226       if test $ac_must_keep_next = true; then
1227         ac_must_keep_next=false # Got value, back to normal.
1228       else
1229         case $ac_arg in
1230           *=* | --config-cache | -C | -disable-* | --disable-* \
1231           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1232           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1233           | -with-* | --with-* | -without-* | --without-* | --x)
1234             case "$ac_configure_args0 " in
1235               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1236             esac
1237             ;;
1238           -* ) ac_must_keep_next=true ;;
1239         esac
1240       fi
1241       ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1242       # Get rid of the leading space.
1243       ac_sep=" "
1244       ;;
1245     esac
1246   done
1247 done
1248 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1249 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1250
1251 # When interrupted or exit'd, cleanup temporary files, and complete
1252 # config.log.  We remove comments because anyway the quotes in there
1253 # would cause problems or look ugly.
1254 # WARNING: Be sure not to use single quotes in there, as some shells,
1255 # such as our DU 5.0 friend, will then `close' the trap.
1256 trap 'exit_status=$?
1257   # Save into config.log some information that might help in debugging.
1258   {
1259     echo
1260
1261     cat <<\_ASBOX
1262 ## ---------------- ##
1263 ## Cache variables. ##
1264 ## ---------------- ##
1265 _ASBOX
1266     echo
1267     # The following way of writing the cache mishandles newlines in values,
1268 {
1269   (set) 2>&1 |
1270     case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1271     *ac_space=\ *)
1272       sed -n \
1273         "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1274           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1275       ;;
1276     *)
1277       sed -n \
1278         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1279       ;;
1280     esac;
1281 }
1282     echo
1283
1284     cat <<\_ASBOX
1285 ## ----------------- ##
1286 ## Output variables. ##
1287 ## ----------------- ##
1288 _ASBOX
1289     echo
1290     for ac_var in $ac_subst_vars
1291     do
1292       eval ac_val=$`echo $ac_var`
1293       echo "$ac_var='"'"'$ac_val'"'"'"
1294     done | sort
1295     echo
1296
1297     if test -n "$ac_subst_files"; then
1298       cat <<\_ASBOX
1299 ## ------------- ##
1300 ## Output files. ##
1301 ## ------------- ##
1302 _ASBOX
1303       echo
1304       for ac_var in $ac_subst_files
1305       do
1306         eval ac_val=$`echo $ac_var`
1307         echo "$ac_var='"'"'$ac_val'"'"'"
1308       done | sort
1309       echo
1310     fi
1311
1312     if test -s confdefs.h; then
1313       cat <<\_ASBOX
1314 ## ----------- ##
1315 ## confdefs.h. ##
1316 ## ----------- ##
1317 _ASBOX
1318       echo
1319       sed "/^$/d" confdefs.h | sort
1320       echo
1321     fi
1322     test "$ac_signal" != 0 &&
1323       echo "$as_me: caught signal $ac_signal"
1324     echo "$as_me: exit $exit_status"
1325   } >&5
1326   rm -f core core.* *.core &&
1327   rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1328     exit $exit_status
1329      ' 0
1330 for ac_signal in 1 2 13 15; do
1331   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1332 done
1333 ac_signal=0
1334
1335 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1336 rm -rf conftest* confdefs.h
1337 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1338 echo >confdefs.h
1339
1340 # Predefined preprocessor variables.
1341
1342 cat >>confdefs.h <<_ACEOF
1343 #define PACKAGE_NAME "$PACKAGE_NAME"
1344 _ACEOF
1345
1346
1347 cat >>confdefs.h <<_ACEOF
1348 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1349 _ACEOF
1350
1351
1352 cat >>confdefs.h <<_ACEOF
1353 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1354 _ACEOF
1355
1356
1357 cat >>confdefs.h <<_ACEOF
1358 #define PACKAGE_STRING "$PACKAGE_STRING"
1359 _ACEOF
1360
1361
1362 cat >>confdefs.h <<_ACEOF
1363 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1364 _ACEOF
1365
1366
1367 # Let the site file select an alternate cache file if it wants to.
1368 # Prefer explicitly selected file to automatically selected ones.
1369 if test -z "$CONFIG_SITE"; then
1370   if test "x$prefix" != xNONE; then
1371     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1372   else
1373     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1374   fi
1375 fi
1376 for ac_site_file in $CONFIG_SITE; do
1377   if test -r "$ac_site_file"; then
1378     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1379 echo "$as_me: loading site script $ac_site_file" >&6;}
1380     sed 's/^/| /' "$ac_site_file" >&5
1381     . "$ac_site_file"
1382   fi
1383 done
1384
1385 if test -r "$cache_file"; then
1386   # Some versions of bash will fail to source /dev/null (special
1387   # files actually), so we avoid doing that.
1388   if test -f "$cache_file"; then
1389     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1390 echo "$as_me: loading cache $cache_file" >&6;}
1391     case $cache_file in
1392       [\\/]* | ?:[\\/]* ) . $cache_file;;
1393       *)                      . ./$cache_file;;
1394     esac
1395   fi
1396 else
1397   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1398 echo "$as_me: creating cache $cache_file" >&6;}
1399   >$cache_file
1400 fi
1401
1402 # Check that the precious variables saved in the cache have kept the same
1403 # value.
1404 ac_cache_corrupted=false
1405 for ac_var in `(set) 2>&1 |
1406                sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1407   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1408   eval ac_new_set=\$ac_env_${ac_var}_set
1409   eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1410   eval ac_new_val="\$ac_env_${ac_var}_value"
1411   case $ac_old_set,$ac_new_set in
1412     set,)
1413       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1414 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1415       ac_cache_corrupted=: ;;
1416     ,set)
1417       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1418 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1419       ac_cache_corrupted=: ;;
1420     ,);;
1421     *)
1422       if test "x$ac_old_val" != "x$ac_new_val"; then
1423         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1424 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1425         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1426 echo "$as_me:   former value:  $ac_old_val" >&2;}
1427         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1428 echo "$as_me:   current value: $ac_new_val" >&2;}
1429         ac_cache_corrupted=:
1430       fi;;
1431   esac
1432   # Pass precious variables to config.status.
1433   if test "$ac_new_set" = set; then
1434     case $ac_new_val in
1435     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1436       ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1437     *) ac_arg=$ac_var=$ac_new_val ;;
1438     esac
1439     case " $ac_configure_args " in
1440       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1441       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1442     esac
1443   fi
1444 done
1445 if $ac_cache_corrupted; then
1446   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1447 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1448   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1449 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1450    { (exit 1); exit 1; }; }
1451 fi
1452
1453 ac_ext=c
1454 ac_cpp='$CPP $CPPFLAGS'
1455 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1456 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1457 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1458
1459
1460
1461
1462
1463
1464
1465
1466
1467
1468
1469
1470
1471
1472
1473
1474
1475
1476
1477
1478
1479
1480
1481
1482
1483
1484
1485
1486 ac_aux_dir=
1487 for ac_dir in autoconf $srcdir/autoconf; do
1488   if test -f $ac_dir/install-sh; then
1489     ac_aux_dir=$ac_dir
1490     ac_install_sh="$ac_aux_dir/install-sh -c"
1491     break
1492   elif test -f $ac_dir/install.sh; then
1493     ac_aux_dir=$ac_dir
1494     ac_install_sh="$ac_aux_dir/install.sh -c"
1495     break
1496   elif test -f $ac_dir/shtool; then
1497     ac_aux_dir=$ac_dir
1498     ac_install_sh="$ac_aux_dir/shtool install -c"
1499     break
1500   fi
1501 done
1502 if test -z "$ac_aux_dir"; then
1503   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf $srcdir/autoconf" >&5
1504 echo "$as_me: error: cannot find install-sh or install.sh in autoconf $srcdir/autoconf" >&2;}
1505    { (exit 1); exit 1; }; }
1506 fi
1507 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1508 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1509 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1510
1511
1512           ac_config_headers="$ac_config_headers include/Config/config.h"
1513
1514           ac_config_commands="$ac_config_commands Makefile"
1515
1516
1517           ac_config_commands="$ac_config_commands Makefile.common"
1518
1519
1520           ac_config_commands="$ac_config_commands Makefile.rules"
1521
1522
1523           ac_config_commands="$ac_config_commands lib/Makefile"
1524
1525
1526           ac_config_commands="$ac_config_commands lib/Analysis/Makefile"
1527
1528
1529           ac_config_commands="$ac_config_commands lib/Analysis/DataStructure/Makefile"
1530
1531
1532           ac_config_commands="$ac_config_commands lib/Analysis/IPA/Makefile"
1533
1534
1535           ac_config_commands="$ac_config_commands lib/Analysis/LiveVar/Makefile"
1536
1537
1538           ac_config_commands="$ac_config_commands lib/AsmParser/Makefile"
1539
1540
1541           ac_config_commands="$ac_config_commands lib/Bytecode/Makefile"
1542
1543
1544           ac_config_commands="$ac_config_commands lib/Bytecode/Reader/Makefile"
1545
1546
1547           ac_config_commands="$ac_config_commands lib/Bytecode/Writer/Makefile"
1548
1549
1550           ac_config_commands="$ac_config_commands lib/CWriter/Makefile"
1551
1552
1553           ac_config_commands="$ac_config_commands lib/CodeGen/Makefile"
1554
1555
1556           ac_config_commands="$ac_config_commands lib/CodeGen/InstrSched/Makefile"
1557
1558
1559           ac_config_commands="$ac_config_commands lib/CodeGen/InstrSelection/Makefile"
1560
1561
1562           ac_config_commands="$ac_config_commands lib/CodeGen/ModuloScheduling/Makefile"
1563
1564
1565           ac_config_commands="$ac_config_commands lib/CodeGen/RegAlloc/Makefile"
1566
1567
1568           ac_config_commands="$ac_config_commands lib/CodeGen/SelectionDAG/Makefile"
1569
1570
1571           ac_config_commands="$ac_config_commands lib/ExecutionEngine/Makefile"
1572
1573
1574           ac_config_commands="$ac_config_commands lib/ExecutionEngine/Interpreter/Makefile"
1575
1576
1577           ac_config_commands="$ac_config_commands lib/ExecutionEngine/JIT/Makefile"
1578
1579
1580           ac_config_commands="$ac_config_commands lib/Support/Makefile"
1581
1582
1583           ac_config_commands="$ac_config_commands lib/Target/Makefile"
1584
1585
1586           ac_config_commands="$ac_config_commands lib/Target/Sparc/Makefile"
1587
1588
1589           ac_config_commands="$ac_config_commands lib/Target/X86/Makefile"
1590
1591
1592           ac_config_commands="$ac_config_commands lib/Transforms/Makefile"
1593
1594
1595           ac_config_commands="$ac_config_commands lib/Transforms/Hello/Makefile"
1596
1597
1598           ac_config_commands="$ac_config_commands lib/Transforms/IPO/Makefile"
1599
1600
1601           ac_config_commands="$ac_config_commands lib/Transforms/Instrumentation/Makefile"
1602
1603
1604           ac_config_commands="$ac_config_commands lib/Transforms/Instrumentation/ProfilePaths/Makefile"
1605
1606
1607           ac_config_commands="$ac_config_commands lib/Transforms/Scalar/Makefile"
1608
1609
1610           ac_config_commands="$ac_config_commands lib/Transforms/Utils/Makefile"
1611
1612
1613           ac_config_commands="$ac_config_commands lib/VMCore/Makefile"
1614
1615
1616           ac_config_commands="$ac_config_commands runtime/Makefile"
1617
1618
1619           ac_config_commands="$ac_config_commands runtime/GCCLibraries/Makefile"
1620
1621
1622           ac_config_commands="$ac_config_commands runtime/GCCLibraries/crtend/Makefile"
1623
1624
1625           ac_config_commands="$ac_config_commands runtime/GCCLibraries/libc/Makefile"
1626
1627
1628           ac_config_commands="$ac_config_commands runtime/GCCLibraries/libg/Makefile"
1629
1630
1631           ac_config_commands="$ac_config_commands runtime/GCCLibraries/libgcc/Makefile"
1632
1633
1634           ac_config_commands="$ac_config_commands runtime/GCCLibraries/libm/Makefile"
1635
1636
1637           ac_config_commands="$ac_config_commands runtime/GCCLibraries/libmalloc/Makefile"
1638
1639
1640           ac_config_commands="$ac_config_commands runtime/GCCLibraries/libucb/Makefile"
1641
1642
1643           ac_config_commands="$ac_config_commands runtime/libdummy/Makefile"
1644
1645
1646           ac_config_commands="$ac_config_commands runtime/libtrace/Makefile"
1647
1648
1649           ac_config_commands="$ac_config_commands test/Makefile"
1650
1651
1652           ac_config_commands="$ac_config_commands test/Makefile.tests"
1653
1654
1655           ac_config_commands="$ac_config_commands test/Programs/Makefile"
1656
1657
1658           ac_config_commands="$ac_config_commands test/Programs/Makefile.programs"
1659
1660
1661           ac_config_commands="$ac_config_commands test/Programs/TEST.aa.Makefile"
1662
1663
1664           ac_config_commands="$ac_config_commands test/Programs/TEST.dsgraph.report"
1665
1666
1667           ac_config_commands="$ac_config_commands test/Programs/TEST.micro.report"
1668
1669
1670           ac_config_commands="$ac_config_commands test/Programs/TEST.aa.report"
1671
1672
1673           ac_config_commands="$ac_config_commands test/Programs/TEST.example.Makefile"
1674
1675
1676           ac_config_commands="$ac_config_commands test/Programs/TEST.nightly.Makefile"
1677
1678
1679           ac_config_commands="$ac_config_commands test/Programs/TEST.buildrepo.Makefile"
1680
1681
1682           ac_config_commands="$ac_config_commands test/Programs/TEST.jit.Makefile"
1683
1684
1685           ac_config_commands="$ac_config_commands test/Programs/TEST.nightly.report"
1686
1687
1688           ac_config_commands="$ac_config_commands test/Programs/TEST.dsgraph.Makefile"
1689
1690
1691           ac_config_commands="$ac_config_commands test/Programs/TEST.jit.report"
1692
1693
1694           ac_config_commands="$ac_config_commands test/Programs/TEST.typesafe.Makefile"
1695
1696
1697           ac_config_commands="$ac_config_commands test/Programs/TEST.dsgraph.gnuplot"
1698
1699
1700           ac_config_commands="$ac_config_commands test/Programs/TEST.micro.Makefile"
1701
1702
1703           ac_config_commands="$ac_config_commands test/Programs/External/Makefile"
1704
1705
1706           ac_config_commands="$ac_config_commands test/Programs/External/SPEC/Makefile"
1707
1708
1709           ac_config_commands="$ac_config_commands test/Programs/External/SPEC/CFP2000/Makefile"
1710
1711
1712           ac_config_commands="$ac_config_commands test/Programs/External/SPEC/CFP2000/179.art/Makefile"
1713
1714
1715           ac_config_commands="$ac_config_commands test/Programs/External/SPEC/CFP2000/183.equake/Makefile"
1716
1717
1718           ac_config_commands="$ac_config_commands test/Programs/External/SPEC/CFP2000/188.ammp/Makefile"
1719
1720
1721           ac_config_commands="$ac_config_commands test/Programs/External/SPEC/CINT2000/Makefile"
1722
1723
1724           ac_config_commands="$ac_config_commands test/Programs/External/SPEC/CINT2000/164.gzip/Makefile"
1725
1726
1727           ac_config_commands="$ac_config_commands test/Programs/External/SPEC/CINT2000/175.vpr/Makefile"
1728
1729
1730           ac_config_commands="$ac_config_commands test/Programs/External/SPEC/CINT2000/176.gcc/Makefile"
1731
1732
1733           ac_config_commands="$ac_config_commands test/Programs/External/SPEC/CINT2000/181.mcf/Makefile"
1734
1735
1736           ac_config_commands="$ac_config_commands test/Programs/External/SPEC/CINT2000/186.crafty/Makefile"
1737
1738
1739           ac_config_commands="$ac_config_commands test/Programs/External/SPEC/CINT2000/197.parser/Makefile"
1740
1741
1742           ac_config_commands="$ac_config_commands test/Programs/External/SPEC/CINT2000/254.gap/Makefile"
1743
1744
1745           ac_config_commands="$ac_config_commands test/Programs/External/SPEC/CINT2000/255.vortex/Makefile"
1746
1747
1748           ac_config_commands="$ac_config_commands test/Programs/External/SPEC/CINT2000/256.bzip2/Makefile"
1749
1750
1751           ac_config_commands="$ac_config_commands test/Programs/External/SPEC/CINT2000/300.twolf/Makefile"
1752
1753
1754           ac_config_commands="$ac_config_commands test/Programs/LLVMSource/Makefile"
1755
1756
1757           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Makefile"
1758
1759
1760           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Makefile.multisrc"
1761
1762
1763           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Burg/Makefile"
1764
1765
1766           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Fhourstones/Makefile"
1767
1768
1769           ac_config_commands="$ac_config_commands test/Programs/MultiSource/McCat/Makefile"
1770
1771
1772           ac_config_commands="$ac_config_commands test/Programs/MultiSource/McCat/01-qbsort/Makefile"
1773
1774
1775           ac_config_commands="$ac_config_commands test/Programs/MultiSource/McCat/03-testtrie/Makefile"
1776
1777
1778           ac_config_commands="$ac_config_commands test/Programs/MultiSource/McCat/04-bisect/Makefile"
1779
1780
1781           ac_config_commands="$ac_config_commands test/Programs/MultiSource/McCat/05-eks/Makefile"
1782
1783
1784           ac_config_commands="$ac_config_commands test/Programs/MultiSource/McCat/08-main/Makefile"
1785
1786
1787           ac_config_commands="$ac_config_commands test/Programs/MultiSource/McCat/09-vor/Makefile"
1788
1789
1790           ac_config_commands="$ac_config_commands test/Programs/MultiSource/McCat/12-IOtest/Makefile"
1791
1792
1793           ac_config_commands="$ac_config_commands test/Programs/MultiSource/McCat/15-trie/Makefile"
1794
1795
1796           ac_config_commands="$ac_config_commands test/Programs/MultiSource/McCat/17-bintr/Makefile"
1797
1798
1799           ac_config_commands="$ac_config_commands test/Programs/MultiSource/McCat/18-imp/Makefile"
1800
1801
1802           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Olden/Makefile"
1803
1804
1805           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Olden/bh/Makefile"
1806
1807
1808           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Olden/bisort/Makefile"
1809
1810
1811           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Olden/em3d/Makefile"
1812
1813
1814           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Olden/health/Makefile"
1815
1816
1817           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Olden/mst/Makefile"
1818
1819
1820           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Olden/perimeter/Makefile"
1821
1822
1823           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Olden/power/Makefile"
1824
1825
1826           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Olden/treeadd/Makefile"
1827
1828
1829           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Olden/tsp/Makefile"
1830
1831
1832           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Olden/voronoi/Makefile"
1833
1834
1835           ac_config_commands="$ac_config_commands test/Programs/MultiSource/OptimizerEval/Makefile"
1836
1837
1838           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Ptrdist/Makefile"
1839
1840
1841           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Ptrdist/anagram/Makefile"
1842
1843
1844           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Ptrdist/bc/Makefile"
1845
1846
1847           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Ptrdist/ft/Makefile"
1848
1849
1850           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Ptrdist/ks/Makefile"
1851
1852
1853           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Ptrdist/yacr2/Makefile"
1854
1855
1856           ac_config_commands="$ac_config_commands test/Programs/MultiSource/aha/Makefile"
1857
1858
1859           ac_config_commands="$ac_config_commands test/Programs/MultiSource/llubenchmark/Makefile"
1860
1861
1862           ac_config_commands="$ac_config_commands test/Programs/MultiSource/sgefa/Makefile"
1863
1864
1865           ac_config_commands="$ac_config_commands test/Programs/MultiSource/sim/Makefile"
1866
1867
1868           ac_config_commands="$ac_config_commands test/Programs/NoSource/Makefile"
1869
1870
1871           ac_config_commands="$ac_config_commands test/Programs/NoSource/Flex/Makefile"
1872
1873
1874           ac_config_commands="$ac_config_commands test/Programs/NoSource/Larn/Makefile"
1875
1876
1877           ac_config_commands="$ac_config_commands test/Programs/NoSource/Moria-5.5.2/Makefile"
1878
1879
1880           ac_config_commands="$ac_config_commands test/Programs/NoSource/Povray31/Makefile"
1881
1882
1883           ac_config_commands="$ac_config_commands test/Programs/NoSource/m4/Makefile"
1884
1885
1886           ac_config_commands="$ac_config_commands test/Programs/SingleSource/Makefile"
1887
1888
1889           ac_config_commands="$ac_config_commands test/Programs/SingleSource/Makefile.singlesrc"
1890
1891
1892           ac_config_commands="$ac_config_commands test/Programs/SingleSource/CustomChecked/Makefile"
1893
1894
1895           ac_config_commands="$ac_config_commands test/Programs/SingleSource/Shootout/Makefile"
1896
1897
1898           ac_config_commands="$ac_config_commands test/Programs/SingleSource/Stanford/Makefile"
1899
1900
1901           ac_config_commands="$ac_config_commands test/Programs/SingleSource/UnitTests/Makefile"
1902
1903
1904           ac_config_commands="$ac_config_commands tools/Makefile"
1905
1906
1907           ac_config_commands="$ac_config_commands tools/analyze/Makefile"
1908
1909
1910           ac_config_commands="$ac_config_commands tools/as/Makefile"
1911
1912
1913           ac_config_commands="$ac_config_commands tools/bugpoint/Makefile"
1914
1915
1916           ac_config_commands="$ac_config_commands tools/dis/Makefile"
1917
1918
1919           ac_config_commands="$ac_config_commands tools/extract/Makefile"
1920
1921
1922           ac_config_commands="$ac_config_commands tools/gccas/Makefile"
1923
1924
1925           ac_config_commands="$ac_config_commands tools/gccld/Makefile"
1926
1927
1928           ac_config_commands="$ac_config_commands tools/link/Makefile"
1929
1930
1931           ac_config_commands="$ac_config_commands tools/llc/Makefile"
1932
1933
1934           ac_config_commands="$ac_config_commands tools/lli/Makefile"
1935
1936
1937           ac_config_commands="$ac_config_commands tools/opt/Makefile"
1938
1939
1940           ac_config_commands="$ac_config_commands tools/llee/Makefile"
1941
1942
1943           ac_config_commands="$ac_config_commands tools/llvm-as/Makefile"
1944
1945
1946           ac_config_commands="$ac_config_commands tools/llvm-dis/Makefile"
1947
1948
1949           ac_config_commands="$ac_config_commands utils/Makefile"
1950
1951
1952           ac_config_commands="$ac_config_commands utils/Burg/Makefile"
1953
1954
1955           ac_config_commands="$ac_config_commands utils/Burg/Doc/Makefile"
1956
1957
1958           ac_config_commands="$ac_config_commands utils/TableGen/Makefile"
1959
1960
1961           ac_config_commands="$ac_config_commands www/docs/Makefile"
1962
1963
1964           ac_config_commands="$ac_config_commands projects/Makefile"
1965
1966
1967           ac_config_commands="$ac_config_commands projects/sample/Makefile"
1968
1969
1970           ac_config_commands="$ac_config_commands projects/sample/Makefile.common"
1971
1972
1973           ac_config_commands="$ac_config_commands projects/sample/Makefile.config"
1974
1975
1976           ac_config_commands="$ac_config_commands projects/sample/lib/Makefile"
1977
1978
1979           ac_config_commands="$ac_config_commands projects/sample/lib/sample/Makefile"
1980
1981
1982           ac_config_commands="$ac_config_commands projects/sample/tools/Makefile"
1983
1984
1985           ac_config_commands="$ac_config_commands projects/sample/tools/sample/Makefile"
1986
1987
1988           ac_config_commands="$ac_config_commands projects/ModuleMaker/Makefile"
1989
1990
1991           ac_config_commands="$ac_config_commands projects/ModuleMaker/Makefile.common"
1992
1993
1994           ac_config_commands="$ac_config_commands projects/ModuleMaker/tools/Makefile"
1995
1996
1997           ac_config_commands="$ac_config_commands projects/ModuleMaker/tools/ModuleMaker/Makefile"
1998
1999
2000
2001
2002 # Find a good install program.  We prefer a C program (faster),
2003 # so one script is as good as another.  But avoid the broken or
2004 # incompatible versions:
2005 # SysV /etc/install, /usr/sbin/install
2006 # SunOS /usr/etc/install
2007 # IRIX /sbin/install
2008 # AIX /bin/install
2009 # AmigaOS /C/install, which installs bootblocks on floppy discs
2010 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2011 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2012 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2013 # ./install, which can be erroneously created by make from ./install.sh.
2014 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2015 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
2016 if test -z "$INSTALL"; then
2017 if test "${ac_cv_path_install+set}" = set; then
2018   echo $ECHO_N "(cached) $ECHO_C" >&6
2019 else
2020   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2021 for as_dir in $PATH
2022 do
2023   IFS=$as_save_IFS
2024   test -z "$as_dir" && as_dir=.
2025   # Account for people who put trailing slashes in PATH elements.
2026 case $as_dir/ in
2027   ./ | .// | /cC/* | \
2028   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2029   /usr/ucb/* ) ;;
2030   *)
2031     # OSF1 and SCO ODT 3.0 have their own names for install.
2032     # Don't use installbsd from OSF since it installs stuff as root
2033     # by default.
2034     for ac_prog in ginstall scoinst install; do
2035       for ac_exec_ext in '' $ac_executable_extensions; do
2036         if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2037           if test $ac_prog = install &&
2038             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2039             # AIX install.  It has an incompatible calling convention.
2040             :
2041           elif test $ac_prog = install &&
2042             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2043             # program-specific install script used by HP pwplus--don't use.
2044             :
2045           else
2046             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2047             break 3
2048           fi
2049         fi
2050       done
2051     done
2052     ;;
2053 esac
2054 done
2055
2056
2057 fi
2058   if test "${ac_cv_path_install+set}" = set; then
2059     INSTALL=$ac_cv_path_install
2060   else
2061     # As a last resort, use the slow shell script.  We don't cache a
2062     # path for INSTALL within a source directory, because that will
2063     # break other packages using the cache if that directory is
2064     # removed, or if the path is relative.
2065     INSTALL=$ac_install_sh
2066   fi
2067 fi
2068 echo "$as_me:$LINENO: result: $INSTALL" >&5
2069 echo "${ECHO_T}$INSTALL" >&6
2070
2071 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2072 # It thinks the first close brace ends the variable substitution.
2073 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2074
2075 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2076
2077 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2078
2079
2080 # Make sure we can run config.sub.
2081 $ac_config_sub sun4 >/dev/null 2>&1 ||
2082   { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
2083 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
2084    { (exit 1); exit 1; }; }
2085
2086 echo "$as_me:$LINENO: checking build system type" >&5
2087 echo $ECHO_N "checking build system type... $ECHO_C" >&6
2088 if test "${ac_cv_build+set}" = set; then
2089   echo $ECHO_N "(cached) $ECHO_C" >&6
2090 else
2091   ac_cv_build_alias=$build_alias
2092 test -z "$ac_cv_build_alias" &&
2093   ac_cv_build_alias=`$ac_config_guess`
2094 test -z "$ac_cv_build_alias" &&
2095   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2096 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2097    { (exit 1); exit 1; }; }
2098 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
2099   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
2100 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
2101    { (exit 1); exit 1; }; }
2102
2103 fi
2104 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2105 echo "${ECHO_T}$ac_cv_build" >&6
2106 build=$ac_cv_build
2107 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
2108 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
2109 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
2110
2111
2112 echo "$as_me:$LINENO: checking host system type" >&5
2113 echo $ECHO_N "checking host system type... $ECHO_C" >&6
2114 if test "${ac_cv_host+set}" = set; then
2115   echo $ECHO_N "(cached) $ECHO_C" >&6
2116 else
2117   ac_cv_host_alias=$host_alias
2118 test -z "$ac_cv_host_alias" &&
2119   ac_cv_host_alias=$ac_cv_build_alias
2120 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
2121   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
2122 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
2123    { (exit 1); exit 1; }; }
2124
2125 fi
2126 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2127 echo "${ECHO_T}$ac_cv_host" >&6
2128 host=$ac_cv_host
2129 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
2130 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
2131 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
2132
2133
2134 echo "$as_me:$LINENO: checking target system type" >&5
2135 echo $ECHO_N "checking target system type... $ECHO_C" >&6
2136 if test "${ac_cv_target+set}" = set; then
2137   echo $ECHO_N "(cached) $ECHO_C" >&6
2138 else
2139   ac_cv_target_alias=$target_alias
2140 test "x$ac_cv_target_alias" = "x" &&
2141   ac_cv_target_alias=$ac_cv_host_alias
2142 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
2143   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
2144 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
2145    { (exit 1); exit 1; }; }
2146
2147 fi
2148 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
2149 echo "${ECHO_T}$ac_cv_target" >&6
2150 target=$ac_cv_target
2151 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
2152 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
2153 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
2154
2155
2156 # The aliases save the names the user supplied, while $host etc.
2157 # will get canonicalized.
2158 test -n "$target_alias" &&
2159   test "$program_prefix$program_suffix$program_transform_name" = \
2160     NONENONEs,x,x, &&
2161   program_prefix=${target_alias}-
2162
2163 case $build in
2164         *i*86*)  OS=Linux
2165
2166                  LLVMGCCDIR=/home/vadve/lattner/local/x86/llvm-gcc/
2167
2168                  ;;
2169
2170         *sparc*) OS=SunOS
2171
2172                  LLVMGCCDIR=/home/vadve/lattner/local/sparc/llvm-gcc/
2173
2174                  ;;
2175
2176         *)       OS=Unknown
2177
2178                  ;;
2179 esac
2180
2181 case $target in
2182         *sparc*solaris*)  target=sparcv9-sun-solaris2.8
2183
2184                           ;;
2185 esac
2186
2187 case $target in
2188         *i*86*)           ARCH=x86
2189
2190                           ;;
2191         *sparc*solaris*)  ARCH=Sparc
2192
2193                           ;;
2194 esac
2195
2196
2197 ac_ext=cc
2198 ac_cpp='$CXXCPP $CPPFLAGS'
2199 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2200 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2201 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2202 if test -n "$ac_tool_prefix"; then
2203   for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2204   do
2205     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2206 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2207 echo "$as_me:$LINENO: checking for $ac_word" >&5
2208 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2209 if test "${ac_cv_prog_CXX+set}" = set; then
2210   echo $ECHO_N "(cached) $ECHO_C" >&6
2211 else
2212   if test -n "$CXX"; then
2213   ac_cv_prog_CXX="$CXX" # Let the user override the test.
2214 else
2215 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2216 for as_dir in $PATH
2217 do
2218   IFS=$as_save_IFS
2219   test -z "$as_dir" && as_dir=.
2220   for ac_exec_ext in '' $ac_executable_extensions; do
2221   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2222     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2223     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2224     break 2
2225   fi
2226 done
2227 done
2228
2229 fi
2230 fi
2231 CXX=$ac_cv_prog_CXX
2232 if test -n "$CXX"; then
2233   echo "$as_me:$LINENO: result: $CXX" >&5
2234 echo "${ECHO_T}$CXX" >&6
2235 else
2236   echo "$as_me:$LINENO: result: no" >&5
2237 echo "${ECHO_T}no" >&6
2238 fi
2239
2240     test -n "$CXX" && break
2241   done
2242 fi
2243 if test -z "$CXX"; then
2244   ac_ct_CXX=$CXX
2245   for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2246 do
2247   # Extract the first word of "$ac_prog", so it can be a program name with args.
2248 set dummy $ac_prog; ac_word=$2
2249 echo "$as_me:$LINENO: checking for $ac_word" >&5
2250 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2251 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2252   echo $ECHO_N "(cached) $ECHO_C" >&6
2253 else
2254   if test -n "$ac_ct_CXX"; then
2255   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2256 else
2257 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2258 for as_dir in $PATH
2259 do
2260   IFS=$as_save_IFS
2261   test -z "$as_dir" && as_dir=.
2262   for ac_exec_ext in '' $ac_executable_extensions; do
2263   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2264     ac_cv_prog_ac_ct_CXX="$ac_prog"
2265     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2266     break 2
2267   fi
2268 done
2269 done
2270
2271 fi
2272 fi
2273 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2274 if test -n "$ac_ct_CXX"; then
2275   echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2276 echo "${ECHO_T}$ac_ct_CXX" >&6
2277 else
2278   echo "$as_me:$LINENO: result: no" >&5
2279 echo "${ECHO_T}no" >&6
2280 fi
2281
2282   test -n "$ac_ct_CXX" && break
2283 done
2284 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
2285
2286   CXX=$ac_ct_CXX
2287 fi
2288
2289
2290 # Provide some information about the compiler.
2291 echo "$as_me:$LINENO:" \
2292      "checking for C++ compiler version" >&5
2293 ac_compiler=`set X $ac_compile; echo $2`
2294 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2295   (eval $ac_compiler --version </dev/null >&5) 2>&5
2296   ac_status=$?
2297   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2298   (exit $ac_status); }
2299 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2300   (eval $ac_compiler -v </dev/null >&5) 2>&5
2301   ac_status=$?
2302   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2303   (exit $ac_status); }
2304 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2305   (eval $ac_compiler -V </dev/null >&5) 2>&5
2306   ac_status=$?
2307   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2308   (exit $ac_status); }
2309
2310 cat >conftest.$ac_ext <<_ACEOF
2311 #line $LINENO "configure"
2312 /* confdefs.h.  */
2313 _ACEOF
2314 cat confdefs.h >>conftest.$ac_ext
2315 cat >>conftest.$ac_ext <<_ACEOF
2316 /* end confdefs.h.  */
2317
2318 int
2319 main ()
2320 {
2321
2322   ;
2323   return 0;
2324 }
2325 _ACEOF
2326 ac_clean_files_save=$ac_clean_files
2327 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2328 # Try to create an executable without -o first, disregard a.out.
2329 # It will help us diagnose broken compilers, and finding out an intuition
2330 # of exeext.
2331 echo "$as_me:$LINENO: checking for C++ compiler default output" >&5
2332 echo $ECHO_N "checking for C++ compiler default output... $ECHO_C" >&6
2333 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2334 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2335   (eval $ac_link_default) 2>&5
2336   ac_status=$?
2337   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2338   (exit $ac_status); }; then
2339   # Find the output, starting from the most likely.  This scheme is
2340 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2341 # resort.
2342
2343 # Be careful to initialize this variable, since it used to be cached.
2344 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2345 ac_cv_exeext=
2346 # b.out is created by i960 compilers.
2347 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2348 do
2349   test -f "$ac_file" || continue
2350   case $ac_file in
2351     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2352         ;;
2353     conftest.$ac_ext )
2354         # This is the source file.
2355         ;;
2356     [ab].out )
2357         # We found the default executable, but exeext='' is most
2358         # certainly right.
2359         break;;
2360     *.* )
2361         ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2362         # FIXME: I believe we export ac_cv_exeext for Libtool,
2363         # but it would be cool to find out if it's true.  Does anybody
2364         # maintain Libtool? --akim.
2365         export ac_cv_exeext
2366         break;;
2367     * )
2368         break;;
2369   esac
2370 done
2371 else
2372   echo "$as_me: failed program was:" >&5
2373 sed 's/^/| /' conftest.$ac_ext >&5
2374
2375 { { echo "$as_me:$LINENO: error: C++ compiler cannot create executables
2376 See \`config.log' for more details." >&5
2377 echo "$as_me: error: C++ compiler cannot create executables
2378 See \`config.log' for more details." >&2;}
2379    { (exit 77); exit 77; }; }
2380 fi
2381
2382 ac_exeext=$ac_cv_exeext
2383 echo "$as_me:$LINENO: result: $ac_file" >&5
2384 echo "${ECHO_T}$ac_file" >&6
2385
2386 # Check the compiler produces executables we can run.  If not, either
2387 # the compiler is broken, or we cross compile.
2388 echo "$as_me:$LINENO: checking whether the C++ compiler works" >&5
2389 echo $ECHO_N "checking whether the C++ compiler works... $ECHO_C" >&6
2390 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2391 # If not cross compiling, check that we can run a simple program.
2392 if test "$cross_compiling" != yes; then
2393   if { ac_try='./$ac_file'
2394   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2395   (eval $ac_try) 2>&5
2396   ac_status=$?
2397   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2398   (exit $ac_status); }; }; then
2399     cross_compiling=no
2400   else
2401     if test "$cross_compiling" = maybe; then
2402         cross_compiling=yes
2403     else
2404         { { echo "$as_me:$LINENO: error: cannot run C++ compiled programs.
2405 If you meant to cross compile, use \`--host'.
2406 See \`config.log' for more details." >&5
2407 echo "$as_me: error: cannot run C++ compiled programs.
2408 If you meant to cross compile, use \`--host'.
2409 See \`config.log' for more details." >&2;}
2410    { (exit 1); exit 1; }; }
2411     fi
2412   fi
2413 fi
2414 echo "$as_me:$LINENO: result: yes" >&5
2415 echo "${ECHO_T}yes" >&6
2416
2417 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2418 ac_clean_files=$ac_clean_files_save
2419 # Check the compiler produces executables we can run.  If not, either
2420 # the compiler is broken, or we cross compile.
2421 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2422 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2423 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2424 echo "${ECHO_T}$cross_compiling" >&6
2425
2426 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2427 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2428 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2429   (eval $ac_link) 2>&5
2430   ac_status=$?
2431   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2432   (exit $ac_status); }; then
2433   # If both `conftest.exe' and `conftest' are `present' (well, observable)
2434 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2435 # work properly (i.e., refer to `conftest.exe'), while it won't with
2436 # `rm'.
2437 for ac_file in conftest.exe conftest conftest.*; do
2438   test -f "$ac_file" || continue
2439   case $ac_file in
2440     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2441     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2442           export ac_cv_exeext
2443           break;;
2444     * ) break;;
2445   esac
2446 done
2447 else
2448   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2449 See \`config.log' for more details." >&5
2450 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2451 See \`config.log' for more details." >&2;}
2452    { (exit 1); exit 1; }; }
2453 fi
2454
2455 rm -f conftest$ac_cv_exeext
2456 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2457 echo "${ECHO_T}$ac_cv_exeext" >&6
2458
2459 rm -f conftest.$ac_ext
2460 EXEEXT=$ac_cv_exeext
2461 ac_exeext=$EXEEXT
2462 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2463 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2464 if test "${ac_cv_objext+set}" = set; then
2465   echo $ECHO_N "(cached) $ECHO_C" >&6
2466 else
2467   cat >conftest.$ac_ext <<_ACEOF
2468 #line $LINENO "configure"
2469 /* confdefs.h.  */
2470 _ACEOF
2471 cat confdefs.h >>conftest.$ac_ext
2472 cat >>conftest.$ac_ext <<_ACEOF
2473 /* end confdefs.h.  */
2474
2475 int
2476 main ()
2477 {
2478
2479   ;
2480   return 0;
2481 }
2482 _ACEOF
2483 rm -f conftest.o conftest.obj
2484 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2485   (eval $ac_compile) 2>&5
2486   ac_status=$?
2487   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2488   (exit $ac_status); }; then
2489   for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2490   case $ac_file in
2491     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2492     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2493        break;;
2494   esac
2495 done
2496 else
2497   echo "$as_me: failed program was:" >&5
2498 sed 's/^/| /' conftest.$ac_ext >&5
2499
2500 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2501 See \`config.log' for more details." >&5
2502 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2503 See \`config.log' for more details." >&2;}
2504    { (exit 1); exit 1; }; }
2505 fi
2506
2507 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2508 fi
2509 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2510 echo "${ECHO_T}$ac_cv_objext" >&6
2511 OBJEXT=$ac_cv_objext
2512 ac_objext=$OBJEXT
2513 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2514 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
2515 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2516   echo $ECHO_N "(cached) $ECHO_C" >&6
2517 else
2518   cat >conftest.$ac_ext <<_ACEOF
2519 #line $LINENO "configure"
2520 /* confdefs.h.  */
2521 _ACEOF
2522 cat confdefs.h >>conftest.$ac_ext
2523 cat >>conftest.$ac_ext <<_ACEOF
2524 /* end confdefs.h.  */
2525
2526 int
2527 main ()
2528 {
2529 #ifndef __GNUC__
2530        choke me
2531 #endif
2532
2533   ;
2534   return 0;
2535 }
2536 _ACEOF
2537 rm -f conftest.$ac_objext
2538 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2539   (eval $ac_compile) 2>&5
2540   ac_status=$?
2541   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2542   (exit $ac_status); } &&
2543          { ac_try='test -s conftest.$ac_objext'
2544   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2545   (eval $ac_try) 2>&5
2546   ac_status=$?
2547   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2548   (exit $ac_status); }; }; then
2549   ac_compiler_gnu=yes
2550 else
2551   echo "$as_me: failed program was:" >&5
2552 sed 's/^/| /' conftest.$ac_ext >&5
2553
2554 ac_compiler_gnu=no
2555 fi
2556 rm -f conftest.$ac_objext conftest.$ac_ext
2557 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2558
2559 fi
2560 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
2561 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
2562 GXX=`test $ac_compiler_gnu = yes && echo yes`
2563 ac_test_CXXFLAGS=${CXXFLAGS+set}
2564 ac_save_CXXFLAGS=$CXXFLAGS
2565 CXXFLAGS="-g"
2566 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
2567 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
2568 if test "${ac_cv_prog_cxx_g+set}" = set; then
2569   echo $ECHO_N "(cached) $ECHO_C" >&6
2570 else
2571   cat >conftest.$ac_ext <<_ACEOF
2572 #line $LINENO "configure"
2573 /* confdefs.h.  */
2574 _ACEOF
2575 cat confdefs.h >>conftest.$ac_ext
2576 cat >>conftest.$ac_ext <<_ACEOF
2577 /* end confdefs.h.  */
2578
2579 int
2580 main ()
2581 {
2582
2583   ;
2584   return 0;
2585 }
2586 _ACEOF
2587 rm -f conftest.$ac_objext
2588 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2589   (eval $ac_compile) 2>&5
2590   ac_status=$?
2591   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2592   (exit $ac_status); } &&
2593          { ac_try='test -s conftest.$ac_objext'
2594   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2595   (eval $ac_try) 2>&5
2596   ac_status=$?
2597   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2598   (exit $ac_status); }; }; then
2599   ac_cv_prog_cxx_g=yes
2600 else
2601   echo "$as_me: failed program was:" >&5
2602 sed 's/^/| /' conftest.$ac_ext >&5
2603
2604 ac_cv_prog_cxx_g=no
2605 fi
2606 rm -f conftest.$ac_objext conftest.$ac_ext
2607 fi
2608 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
2609 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
2610 if test "$ac_test_CXXFLAGS" = set; then
2611   CXXFLAGS=$ac_save_CXXFLAGS
2612 elif test $ac_cv_prog_cxx_g = yes; then
2613   if test "$GXX" = yes; then
2614     CXXFLAGS="-g -O2"
2615   else
2616     CXXFLAGS="-g"
2617   fi
2618 else
2619   if test "$GXX" = yes; then
2620     CXXFLAGS="-O2"
2621   else
2622     CXXFLAGS=
2623   fi
2624 fi
2625 for ac_declaration in \
2626    ''\
2627    '#include <stdlib.h>' \
2628    'extern "C" void std::exit (int) throw (); using std::exit;' \
2629    'extern "C" void std::exit (int); using std::exit;' \
2630    'extern "C" void exit (int) throw ();' \
2631    'extern "C" void exit (int);' \
2632    'void exit (int);'
2633 do
2634   cat >conftest.$ac_ext <<_ACEOF
2635 #line $LINENO "configure"
2636 /* confdefs.h.  */
2637 _ACEOF
2638 cat confdefs.h >>conftest.$ac_ext
2639 cat >>conftest.$ac_ext <<_ACEOF
2640 /* end confdefs.h.  */
2641 #include <stdlib.h>
2642 $ac_declaration
2643 int
2644 main ()
2645 {
2646 exit (42);
2647   ;
2648   return 0;
2649 }
2650 _ACEOF
2651 rm -f conftest.$ac_objext
2652 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2653   (eval $ac_compile) 2>&5
2654   ac_status=$?
2655   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2656   (exit $ac_status); } &&
2657          { ac_try='test -s conftest.$ac_objext'
2658   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2659   (eval $ac_try) 2>&5
2660   ac_status=$?
2661   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2662   (exit $ac_status); }; }; then
2663   :
2664 else
2665   echo "$as_me: failed program was:" >&5
2666 sed 's/^/| /' conftest.$ac_ext >&5
2667
2668 continue
2669 fi
2670 rm -f conftest.$ac_objext conftest.$ac_ext
2671   cat >conftest.$ac_ext <<_ACEOF
2672 #line $LINENO "configure"
2673 /* confdefs.h.  */
2674 _ACEOF
2675 cat confdefs.h >>conftest.$ac_ext
2676 cat >>conftest.$ac_ext <<_ACEOF
2677 /* end confdefs.h.  */
2678 $ac_declaration
2679 int
2680 main ()
2681 {
2682 exit (42);
2683   ;
2684   return 0;
2685 }
2686 _ACEOF
2687 rm -f conftest.$ac_objext
2688 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2689   (eval $ac_compile) 2>&5
2690   ac_status=$?
2691   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2692   (exit $ac_status); } &&
2693          { ac_try='test -s conftest.$ac_objext'
2694   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2695   (eval $ac_try) 2>&5
2696   ac_status=$?
2697   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2698   (exit $ac_status); }; }; then
2699   break
2700 else
2701   echo "$as_me: failed program was:" >&5
2702 sed 's/^/| /' conftest.$ac_ext >&5
2703
2704 fi
2705 rm -f conftest.$ac_objext conftest.$ac_ext
2706 done
2707 rm -f conftest*
2708 if test -n "$ac_declaration"; then
2709   echo '#ifdef __cplusplus' >>confdefs.h
2710   echo $ac_declaration      >>confdefs.h
2711   echo '#endif'             >>confdefs.h
2712 fi
2713
2714 ac_ext=c
2715 ac_cpp='$CPP $CPPFLAGS'
2716 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2717 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2718 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2719
2720 ac_ext=c
2721 ac_cpp='$CPP $CPPFLAGS'
2722 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2723 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2724 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2725 if test -n "$ac_tool_prefix"; then
2726   for ac_prog in gcc
2727   do
2728     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2729 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2730 echo "$as_me:$LINENO: checking for $ac_word" >&5
2731 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2732 if test "${ac_cv_prog_CC+set}" = set; then
2733   echo $ECHO_N "(cached) $ECHO_C" >&6
2734 else
2735   if test -n "$CC"; then
2736   ac_cv_prog_CC="$CC" # Let the user override the test.
2737 else
2738 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2739 for as_dir in $PATH
2740 do
2741   IFS=$as_save_IFS
2742   test -z "$as_dir" && as_dir=.
2743   for ac_exec_ext in '' $ac_executable_extensions; do
2744   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2745     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2746     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2747     break 2
2748   fi
2749 done
2750 done
2751
2752 fi
2753 fi
2754 CC=$ac_cv_prog_CC
2755 if test -n "$CC"; then
2756   echo "$as_me:$LINENO: result: $CC" >&5
2757 echo "${ECHO_T}$CC" >&6
2758 else
2759   echo "$as_me:$LINENO: result: no" >&5
2760 echo "${ECHO_T}no" >&6
2761 fi
2762
2763     test -n "$CC" && break
2764   done
2765 fi
2766 if test -z "$CC"; then
2767   ac_ct_CC=$CC
2768   for ac_prog in gcc
2769 do
2770   # Extract the first word of "$ac_prog", so it can be a program name with args.
2771 set dummy $ac_prog; ac_word=$2
2772 echo "$as_me:$LINENO: checking for $ac_word" >&5
2773 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2774 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2775   echo $ECHO_N "(cached) $ECHO_C" >&6
2776 else
2777   if test -n "$ac_ct_CC"; then
2778   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2779 else
2780 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2781 for as_dir in $PATH
2782 do
2783   IFS=$as_save_IFS
2784   test -z "$as_dir" && as_dir=.
2785   for ac_exec_ext in '' $ac_executable_extensions; do
2786   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2787     ac_cv_prog_ac_ct_CC="$ac_prog"
2788     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2789     break 2
2790   fi
2791 done
2792 done
2793
2794 fi
2795 fi
2796 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2797 if test -n "$ac_ct_CC"; then
2798   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2799 echo "${ECHO_T}$ac_ct_CC" >&6
2800 else
2801   echo "$as_me:$LINENO: result: no" >&5
2802 echo "${ECHO_T}no" >&6
2803 fi
2804
2805   test -n "$ac_ct_CC" && break
2806 done
2807
2808   CC=$ac_ct_CC
2809 fi
2810
2811
2812 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2813 See \`config.log' for more details." >&5
2814 echo "$as_me: error: no acceptable C compiler found in \$PATH
2815 See \`config.log' for more details." >&2;}
2816    { (exit 1); exit 1; }; }
2817
2818 # Provide some information about the compiler.
2819 echo "$as_me:$LINENO:" \
2820      "checking for C compiler version" >&5
2821 ac_compiler=`set X $ac_compile; echo $2`
2822 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2823   (eval $ac_compiler --version </dev/null >&5) 2>&5
2824   ac_status=$?
2825   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2826   (exit $ac_status); }
2827 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2828   (eval $ac_compiler -v </dev/null >&5) 2>&5
2829   ac_status=$?
2830   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2831   (exit $ac_status); }
2832 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2833   (eval $ac_compiler -V </dev/null >&5) 2>&5
2834   ac_status=$?
2835   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2836   (exit $ac_status); }
2837
2838 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2839 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2840 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2841   echo $ECHO_N "(cached) $ECHO_C" >&6
2842 else
2843   cat >conftest.$ac_ext <<_ACEOF
2844 #line $LINENO "configure"
2845 /* confdefs.h.  */
2846 _ACEOF
2847 cat confdefs.h >>conftest.$ac_ext
2848 cat >>conftest.$ac_ext <<_ACEOF
2849 /* end confdefs.h.  */
2850
2851 int
2852 main ()
2853 {
2854 #ifndef __GNUC__
2855        choke me
2856 #endif
2857
2858   ;
2859   return 0;
2860 }
2861 _ACEOF
2862 rm -f conftest.$ac_objext
2863 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2864   (eval $ac_compile) 2>&5
2865   ac_status=$?
2866   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2867   (exit $ac_status); } &&
2868          { ac_try='test -s conftest.$ac_objext'
2869   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2870   (eval $ac_try) 2>&5
2871   ac_status=$?
2872   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2873   (exit $ac_status); }; }; then
2874   ac_compiler_gnu=yes
2875 else
2876   echo "$as_me: failed program was:" >&5
2877 sed 's/^/| /' conftest.$ac_ext >&5
2878
2879 ac_compiler_gnu=no
2880 fi
2881 rm -f conftest.$ac_objext conftest.$ac_ext
2882 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2883
2884 fi
2885 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2886 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2887 GCC=`test $ac_compiler_gnu = yes && echo yes`
2888 ac_test_CFLAGS=${CFLAGS+set}
2889 ac_save_CFLAGS=$CFLAGS
2890 CFLAGS="-g"
2891 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2892 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2893 if test "${ac_cv_prog_cc_g+set}" = set; then
2894   echo $ECHO_N "(cached) $ECHO_C" >&6
2895 else
2896   cat >conftest.$ac_ext <<_ACEOF
2897 #line $LINENO "configure"
2898 /* confdefs.h.  */
2899 _ACEOF
2900 cat confdefs.h >>conftest.$ac_ext
2901 cat >>conftest.$ac_ext <<_ACEOF
2902 /* end confdefs.h.  */
2903
2904 int
2905 main ()
2906 {
2907
2908   ;
2909   return 0;
2910 }
2911 _ACEOF
2912 rm -f conftest.$ac_objext
2913 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2914   (eval $ac_compile) 2>&5
2915   ac_status=$?
2916   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2917   (exit $ac_status); } &&
2918          { ac_try='test -s conftest.$ac_objext'
2919   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2920   (eval $ac_try) 2>&5
2921   ac_status=$?
2922   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2923   (exit $ac_status); }; }; then
2924   ac_cv_prog_cc_g=yes
2925 else
2926   echo "$as_me: failed program was:" >&5
2927 sed 's/^/| /' conftest.$ac_ext >&5
2928
2929 ac_cv_prog_cc_g=no
2930 fi
2931 rm -f conftest.$ac_objext conftest.$ac_ext
2932 fi
2933 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2934 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2935 if test "$ac_test_CFLAGS" = set; then
2936   CFLAGS=$ac_save_CFLAGS
2937 elif test $ac_cv_prog_cc_g = yes; then
2938   if test "$GCC" = yes; then
2939     CFLAGS="-g -O2"
2940   else
2941     CFLAGS="-g"
2942   fi
2943 else
2944   if test "$GCC" = yes; then
2945     CFLAGS="-O2"
2946   else
2947     CFLAGS=
2948   fi
2949 fi
2950 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2951 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2952 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2953   echo $ECHO_N "(cached) $ECHO_C" >&6
2954 else
2955   ac_cv_prog_cc_stdc=no
2956 ac_save_CC=$CC
2957 cat >conftest.$ac_ext <<_ACEOF
2958 #line $LINENO "configure"
2959 /* confdefs.h.  */
2960 _ACEOF
2961 cat confdefs.h >>conftest.$ac_ext
2962 cat >>conftest.$ac_ext <<_ACEOF
2963 /* end confdefs.h.  */
2964 #include <stdarg.h>
2965 #include <stdio.h>
2966 #include <sys/types.h>
2967 #include <sys/stat.h>
2968 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2969 struct buf { int x; };
2970 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2971 static char *e (p, i)
2972      char **p;
2973      int i;
2974 {
2975   return p[i];
2976 }
2977 static char *f (char * (*g) (char **, int), char **p, ...)
2978 {
2979   char *s;
2980   va_list v;
2981   va_start (v,p);
2982   s = g (p, va_arg (v,int));
2983   va_end (v);
2984   return s;
2985 }
2986 int test (int i, double x);
2987 struct s1 {int (*f) (int a);};
2988 struct s2 {int (*f) (double a);};
2989 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2990 int argc;
2991 char **argv;
2992 int
2993 main ()
2994 {
2995 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2996   ;
2997   return 0;
2998 }
2999 _ACEOF
3000 # Don't try gcc -ansi; that turns off useful extensions and
3001 # breaks some systems' header files.
3002 # AIX                   -qlanglvl=ansi
3003 # Ultrix and OSF/1      -std1
3004 # HP-UX 10.20 and later -Ae
3005 # HP-UX older versions  -Aa -D_HPUX_SOURCE
3006 # SVR4                  -Xc -D__EXTENSIONS__
3007 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3008 do
3009   CC="$ac_save_CC $ac_arg"
3010   rm -f conftest.$ac_objext
3011 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3012   (eval $ac_compile) 2>&5
3013   ac_status=$?
3014   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3015   (exit $ac_status); } &&
3016          { ac_try='test -s conftest.$ac_objext'
3017   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3018   (eval $ac_try) 2>&5
3019   ac_status=$?
3020   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3021   (exit $ac_status); }; }; then
3022   ac_cv_prog_cc_stdc=$ac_arg
3023 break
3024 else
3025   echo "$as_me: failed program was:" >&5
3026 sed 's/^/| /' conftest.$ac_ext >&5
3027
3028 fi
3029 rm -f conftest.$ac_objext
3030 done
3031 rm -f conftest.$ac_ext conftest.$ac_objext
3032 CC=$ac_save_CC
3033
3034 fi
3035
3036 case "x$ac_cv_prog_cc_stdc" in
3037   x|xno)
3038     echo "$as_me:$LINENO: result: none needed" >&5
3039 echo "${ECHO_T}none needed" >&6 ;;
3040   *)
3041     echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
3042 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
3043     CC="$CC $ac_cv_prog_cc_stdc" ;;
3044 esac
3045
3046 # Some people use a C++ compiler to compile C.  Since we use `exit',
3047 # in C++ we need to declare it.  In case someone uses the same compiler
3048 # for both compiling C and C++ we need to have the C++ compiler decide
3049 # the declaration of exit, since it's the most demanding environment.
3050 cat >conftest.$ac_ext <<_ACEOF
3051 #ifndef __cplusplus
3052   choke me
3053 #endif
3054 _ACEOF
3055 rm -f conftest.$ac_objext
3056 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3057   (eval $ac_compile) 2>&5
3058   ac_status=$?
3059   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3060   (exit $ac_status); } &&
3061          { ac_try='test -s conftest.$ac_objext'
3062   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3063   (eval $ac_try) 2>&5
3064   ac_status=$?
3065   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3066   (exit $ac_status); }; }; then
3067   for ac_declaration in \
3068    ''\
3069    '#include <stdlib.h>' \
3070    'extern "C" void std::exit (int) throw (); using std::exit;' \
3071    'extern "C" void std::exit (int); using std::exit;' \
3072    'extern "C" void exit (int) throw ();' \
3073    'extern "C" void exit (int);' \
3074    'void exit (int);'
3075 do
3076   cat >conftest.$ac_ext <<_ACEOF
3077 #line $LINENO "configure"
3078 /* confdefs.h.  */
3079 _ACEOF
3080 cat confdefs.h >>conftest.$ac_ext
3081 cat >>conftest.$ac_ext <<_ACEOF
3082 /* end confdefs.h.  */
3083 #include <stdlib.h>
3084 $ac_declaration
3085 int
3086 main ()
3087 {
3088 exit (42);
3089   ;
3090   return 0;
3091 }
3092 _ACEOF
3093 rm -f conftest.$ac_objext
3094 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3095   (eval $ac_compile) 2>&5
3096   ac_status=$?
3097   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3098   (exit $ac_status); } &&
3099          { ac_try='test -s conftest.$ac_objext'
3100   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3101   (eval $ac_try) 2>&5
3102   ac_status=$?
3103   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3104   (exit $ac_status); }; }; then
3105   :
3106 else
3107   echo "$as_me: failed program was:" >&5
3108 sed 's/^/| /' conftest.$ac_ext >&5
3109
3110 continue
3111 fi
3112 rm -f conftest.$ac_objext conftest.$ac_ext
3113   cat >conftest.$ac_ext <<_ACEOF
3114 #line $LINENO "configure"
3115 /* confdefs.h.  */
3116 _ACEOF
3117 cat confdefs.h >>conftest.$ac_ext
3118 cat >>conftest.$ac_ext <<_ACEOF
3119 /* end confdefs.h.  */
3120 $ac_declaration
3121 int
3122 main ()
3123 {
3124 exit (42);
3125   ;
3126   return 0;
3127 }
3128 _ACEOF
3129 rm -f conftest.$ac_objext
3130 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3131   (eval $ac_compile) 2>&5
3132   ac_status=$?
3133   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3134   (exit $ac_status); } &&
3135          { ac_try='test -s conftest.$ac_objext'
3136   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3137   (eval $ac_try) 2>&5
3138   ac_status=$?
3139   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3140   (exit $ac_status); }; }; then
3141   break
3142 else
3143   echo "$as_me: failed program was:" >&5
3144 sed 's/^/| /' conftest.$ac_ext >&5
3145
3146 fi
3147 rm -f conftest.$ac_objext conftest.$ac_ext
3148 done
3149 rm -f conftest*
3150 if test -n "$ac_declaration"; then
3151   echo '#ifdef __cplusplus' >>confdefs.h
3152   echo $ac_declaration      >>confdefs.h
3153   echo '#endif'             >>confdefs.h
3154 fi
3155
3156 else
3157   echo "$as_me: failed program was:" >&5
3158 sed 's/^/| /' conftest.$ac_ext >&5
3159
3160 fi
3161 rm -f conftest.$ac_objext conftest.$ac_ext
3162 ac_ext=c
3163 ac_cpp='$CPP $CPPFLAGS'
3164 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3165 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3166 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3167
3168 ac_ext=c
3169 ac_cpp='$CPP $CPPFLAGS'
3170 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3171 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3172 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3173 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3174 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3175 # On Suns, sometimes $CPP names a directory.
3176 if test -n "$CPP" && test -d "$CPP"; then
3177   CPP=
3178 fi
3179 if test -z "$CPP"; then
3180   if test "${ac_cv_prog_CPP+set}" = set; then
3181   echo $ECHO_N "(cached) $ECHO_C" >&6
3182 else
3183       # Double quotes because CPP needs to be expanded
3184     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3185     do
3186       ac_preproc_ok=false
3187 for ac_c_preproc_warn_flag in '' yes
3188 do
3189   # Use a header file that comes with gcc, so configuring glibc
3190   # with a fresh cross-compiler works.
3191   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3192   # <limits.h> exists even on freestanding compilers.
3193   # On the NeXT, cc -E runs the code through the compiler's parser,
3194   # not just through cpp. "Syntax error" is here to catch this case.
3195   cat >conftest.$ac_ext <<_ACEOF
3196 #line $LINENO "configure"
3197 /* confdefs.h.  */
3198 _ACEOF
3199 cat confdefs.h >>conftest.$ac_ext
3200 cat >>conftest.$ac_ext <<_ACEOF
3201 /* end confdefs.h.  */
3202 #ifdef __STDC__
3203 # include <limits.h>
3204 #else
3205 # include <assert.h>
3206 #endif
3207                      Syntax error
3208 _ACEOF
3209 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3210   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3211   ac_status=$?
3212   grep -v '^ *+' conftest.er1 >conftest.err
3213   rm -f conftest.er1
3214   cat conftest.err >&5
3215   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3216   (exit $ac_status); } >/dev/null; then
3217   if test -s conftest.err; then
3218     ac_cpp_err=$ac_c_preproc_warn_flag
3219   else
3220     ac_cpp_err=
3221   fi
3222 else
3223   ac_cpp_err=yes
3224 fi
3225 if test -z "$ac_cpp_err"; then
3226   :
3227 else
3228   echo "$as_me: failed program was:" >&5
3229 sed 's/^/| /' conftest.$ac_ext >&5
3230
3231   # Broken: fails on valid input.
3232 continue
3233 fi
3234 rm -f conftest.err conftest.$ac_ext
3235
3236   # OK, works on sane cases.  Now check whether non-existent headers
3237   # can be detected and how.
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 #include <ac_nonexistent.h>
3246 _ACEOF
3247 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3248   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3249   ac_status=$?
3250   grep -v '^ *+' conftest.er1 >conftest.err
3251   rm -f conftest.er1
3252   cat conftest.err >&5
3253   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3254   (exit $ac_status); } >/dev/null; then
3255   if test -s conftest.err; then
3256     ac_cpp_err=$ac_c_preproc_warn_flag
3257   else
3258     ac_cpp_err=
3259   fi
3260 else
3261   ac_cpp_err=yes
3262 fi
3263 if test -z "$ac_cpp_err"; then
3264   # Broken: success on invalid input.
3265 continue
3266 else
3267   echo "$as_me: failed program was:" >&5
3268 sed 's/^/| /' conftest.$ac_ext >&5
3269
3270   # Passes both tests.
3271 ac_preproc_ok=:
3272 break
3273 fi
3274 rm -f conftest.err conftest.$ac_ext
3275
3276 done
3277 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3278 rm -f conftest.err conftest.$ac_ext
3279 if $ac_preproc_ok; then
3280   break
3281 fi
3282
3283     done
3284     ac_cv_prog_CPP=$CPP
3285
3286 fi
3287   CPP=$ac_cv_prog_CPP
3288 else
3289   ac_cv_prog_CPP=$CPP
3290 fi
3291 echo "$as_me:$LINENO: result: $CPP" >&5
3292 echo "${ECHO_T}$CPP" >&6
3293 ac_preproc_ok=false
3294 for ac_c_preproc_warn_flag in '' yes
3295 do
3296   # Use a header file that comes with gcc, so configuring glibc
3297   # with a fresh cross-compiler works.
3298   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3299   # <limits.h> exists even on freestanding compilers.
3300   # On the NeXT, cc -E runs the code through the compiler's parser,
3301   # not just through cpp. "Syntax error" is here to catch this case.
3302   cat >conftest.$ac_ext <<_ACEOF
3303 #line $LINENO "configure"
3304 /* confdefs.h.  */
3305 _ACEOF
3306 cat confdefs.h >>conftest.$ac_ext
3307 cat >>conftest.$ac_ext <<_ACEOF
3308 /* end confdefs.h.  */
3309 #ifdef __STDC__
3310 # include <limits.h>
3311 #else
3312 # include <assert.h>
3313 #endif
3314                      Syntax error
3315 _ACEOF
3316 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3317   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3318   ac_status=$?
3319   grep -v '^ *+' conftest.er1 >conftest.err
3320   rm -f conftest.er1
3321   cat conftest.err >&5
3322   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3323   (exit $ac_status); } >/dev/null; then
3324   if test -s conftest.err; then
3325     ac_cpp_err=$ac_c_preproc_warn_flag
3326   else
3327     ac_cpp_err=
3328   fi
3329 else
3330   ac_cpp_err=yes
3331 fi
3332 if test -z "$ac_cpp_err"; then
3333   :
3334 else
3335   echo "$as_me: failed program was:" >&5
3336 sed 's/^/| /' conftest.$ac_ext >&5
3337
3338   # Broken: fails on valid input.
3339 continue
3340 fi
3341 rm -f conftest.err conftest.$ac_ext
3342
3343   # OK, works on sane cases.  Now check whether non-existent headers
3344   # can be detected and how.
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 #include <ac_nonexistent.h>
3353 _ACEOF
3354 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3355   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3356   ac_status=$?
3357   grep -v '^ *+' conftest.er1 >conftest.err
3358   rm -f conftest.er1
3359   cat conftest.err >&5
3360   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3361   (exit $ac_status); } >/dev/null; then
3362   if test -s conftest.err; then
3363     ac_cpp_err=$ac_c_preproc_warn_flag
3364   else
3365     ac_cpp_err=
3366   fi
3367 else
3368   ac_cpp_err=yes
3369 fi
3370 if test -z "$ac_cpp_err"; then
3371   # Broken: success on invalid input.
3372 continue
3373 else
3374   echo "$as_me: failed program was:" >&5
3375 sed 's/^/| /' conftest.$ac_ext >&5
3376
3377   # Passes both tests.
3378 ac_preproc_ok=:
3379 break
3380 fi
3381 rm -f conftest.err conftest.$ac_ext
3382
3383 done
3384 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3385 rm -f conftest.err conftest.$ac_ext
3386 if $ac_preproc_ok; then
3387   :
3388 else
3389   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3390 See \`config.log' for more details." >&5
3391 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3392 See \`config.log' for more details." >&2;}
3393    { (exit 1); exit 1; }; }
3394 fi
3395
3396 ac_ext=c
3397 ac_cpp='$CPP $CPPFLAGS'
3398 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3399 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3400 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3401
3402
3403 if test "$GCC" != "yes"
3404 then
3405         { { echo "$as_me:$LINENO: error: gcc required but not found" >&5
3406 echo "$as_me: error: gcc required but not found" >&2;}
3407    { (exit 1); exit 1; }; }
3408 fi
3409
3410 if test "$GXX" != "yes"
3411 then
3412         { { echo "$as_me:$LINENO: error: g++ required but not found" >&5
3413 echo "$as_me: error: g++ required but not found" >&2;}
3414    { (exit 1); exit 1; }; }
3415 fi
3416
3417 gccmajor=`$CC --version | head -n 1 | awk '{print $NF;}' | cut -d. -f1`
3418 if test "$gccmajor" -lt "3"
3419 then
3420         { { echo "$as_me:$LINENO: error: gcc 3.x required" >&5
3421 echo "$as_me: error: gcc 3.x required" >&2;}
3422    { (exit 1); exit 1; }; }
3423 fi
3424
3425  echo "$as_me:$LINENO: checking for GNU make" >&5
3426 echo $ECHO_N "checking for GNU make... $ECHO_C" >&6
3427 if test "${_cv_gnu_make_command+set}" = set; then
3428   echo $ECHO_N "(cached) $ECHO_C" >&6
3429 else
3430   _cv_gnu_make_command='' ;
3431                 for a in "$MAKE" make gmake gnumake ; do
3432                         if test -z "$a" ; then continue ; fi ;
3433                         if  ( sh -c "$a --version" 2> /dev/null | grep GNU  2>&1 > /dev/null ) ;  then
3434                                 _cv_gnu_make_command=$a ;
3435                                 break;
3436                         fi
3437                 done ;
3438
3439 fi
3440 echo "$as_me:$LINENO: result: $_cv_gnu_make_command" >&5
3441 echo "${ECHO_T}$_cv_gnu_make_command" >&6 ;
3442         if test  "x$_cv_gnu_make_command" != "x"  ; then
3443                 ifGNUmake='' ;
3444         else
3445                 ifGNUmake='#' ;
3446                 echo "$as_me:$LINENO: result: \"Not found\"" >&5
3447 echo "${ECHO_T}\"Not found\"" >&6;
3448         fi
3449
3450
3451 if test -z "$_cv_gnu_make_command"
3452 then
3453         { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5
3454 echo "$as_me: error: GNU Make required but not found" >&2;}
3455    { (exit 1); exit 1; }; }
3456 fi
3457
3458
3459 echo "$as_me:$LINENO: checking " >&5
3460 echo $ECHO_N "checking ... $ECHO_C" >&6
3461 if test "${ac_cv_has_flex+set}" = set; then
3462   echo $ECHO_N "(cached) $ECHO_C" >&6
3463 else
3464   for ac_prog in flex lex
3465 do
3466   # Extract the first word of "$ac_prog", so it can be a program name with args.
3467 set dummy $ac_prog; ac_word=$2
3468 echo "$as_me:$LINENO: checking for $ac_word" >&5
3469 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3470 if test "${ac_cv_prog_LEX+set}" = set; then
3471   echo $ECHO_N "(cached) $ECHO_C" >&6
3472 else
3473   if test -n "$LEX"; then
3474   ac_cv_prog_LEX="$LEX" # Let the user override the test.
3475 else
3476 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3477 for as_dir in $PATH
3478 do
3479   IFS=$as_save_IFS
3480   test -z "$as_dir" && as_dir=.
3481   for ac_exec_ext in '' $ac_executable_extensions; do
3482   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3483     ac_cv_prog_LEX="$ac_prog"
3484     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3485     break 2
3486   fi
3487 done
3488 done
3489
3490 fi
3491 fi
3492 LEX=$ac_cv_prog_LEX
3493 if test -n "$LEX"; then
3494   echo "$as_me:$LINENO: result: $LEX" >&5
3495 echo "${ECHO_T}$LEX" >&6
3496 else
3497   echo "$as_me:$LINENO: result: no" >&5
3498 echo "${ECHO_T}no" >&6
3499 fi
3500
3501   test -n "$LEX" && break
3502 done
3503 test -n "$LEX" || LEX=":"
3504
3505 if test -z "$LEXLIB"
3506 then
3507   echo "$as_me:$LINENO: checking for yywrap in -lfl" >&5
3508 echo $ECHO_N "checking for yywrap in -lfl... $ECHO_C" >&6
3509 if test "${ac_cv_lib_fl_yywrap+set}" = set; then
3510   echo $ECHO_N "(cached) $ECHO_C" >&6
3511 else
3512   ac_check_lib_save_LIBS=$LIBS
3513 LIBS="-lfl  $LIBS"
3514 cat >conftest.$ac_ext <<_ACEOF
3515 #line $LINENO "configure"
3516 /* confdefs.h.  */
3517 _ACEOF
3518 cat confdefs.h >>conftest.$ac_ext
3519 cat >>conftest.$ac_ext <<_ACEOF
3520 /* end confdefs.h.  */
3521
3522 /* Override any gcc2 internal prototype to avoid an error.  */
3523 #ifdef __cplusplus
3524 extern "C"
3525 #endif
3526 /* We use char because int might match the return type of a gcc2
3527    builtin and then its argument prototype would still apply.  */
3528 char yywrap ();
3529 int
3530 main ()
3531 {
3532 yywrap ();
3533   ;
3534   return 0;
3535 }
3536 _ACEOF
3537 rm -f conftest.$ac_objext conftest$ac_exeext
3538 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3539   (eval $ac_link) 2>&5
3540   ac_status=$?
3541   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3542   (exit $ac_status); } &&
3543          { ac_try='test -s conftest$ac_exeext'
3544   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3545   (eval $ac_try) 2>&5
3546   ac_status=$?
3547   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3548   (exit $ac_status); }; }; then
3549   ac_cv_lib_fl_yywrap=yes
3550 else
3551   echo "$as_me: failed program was:" >&5
3552 sed 's/^/| /' conftest.$ac_ext >&5
3553
3554 ac_cv_lib_fl_yywrap=no
3555 fi
3556 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3557 LIBS=$ac_check_lib_save_LIBS
3558 fi
3559 echo "$as_me:$LINENO: result: $ac_cv_lib_fl_yywrap" >&5
3560 echo "${ECHO_T}$ac_cv_lib_fl_yywrap" >&6
3561 if test $ac_cv_lib_fl_yywrap = yes; then
3562   LEXLIB="-lfl"
3563 else
3564   echo "$as_me:$LINENO: checking for yywrap in -ll" >&5
3565 echo $ECHO_N "checking for yywrap in -ll... $ECHO_C" >&6
3566 if test "${ac_cv_lib_l_yywrap+set}" = set; then
3567   echo $ECHO_N "(cached) $ECHO_C" >&6
3568 else
3569   ac_check_lib_save_LIBS=$LIBS
3570 LIBS="-ll  $LIBS"
3571 cat >conftest.$ac_ext <<_ACEOF
3572 #line $LINENO "configure"
3573 /* confdefs.h.  */
3574 _ACEOF
3575 cat confdefs.h >>conftest.$ac_ext
3576 cat >>conftest.$ac_ext <<_ACEOF
3577 /* end confdefs.h.  */
3578
3579 /* Override any gcc2 internal prototype to avoid an error.  */
3580 #ifdef __cplusplus
3581 extern "C"
3582 #endif
3583 /* We use char because int might match the return type of a gcc2
3584    builtin and then its argument prototype would still apply.  */
3585 char yywrap ();
3586 int
3587 main ()
3588 {
3589 yywrap ();
3590   ;
3591   return 0;
3592 }
3593 _ACEOF
3594 rm -f conftest.$ac_objext conftest$ac_exeext
3595 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3596   (eval $ac_link) 2>&5
3597   ac_status=$?
3598   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3599   (exit $ac_status); } &&
3600          { ac_try='test -s conftest$ac_exeext'
3601   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3602   (eval $ac_try) 2>&5
3603   ac_status=$?
3604   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3605   (exit $ac_status); }; }; then
3606   ac_cv_lib_l_yywrap=yes
3607 else
3608   echo "$as_me: failed program was:" >&5
3609 sed 's/^/| /' conftest.$ac_ext >&5
3610
3611 ac_cv_lib_l_yywrap=no
3612 fi
3613 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3614 LIBS=$ac_check_lib_save_LIBS
3615 fi
3616 echo "$as_me:$LINENO: result: $ac_cv_lib_l_yywrap" >&5
3617 echo "${ECHO_T}$ac_cv_lib_l_yywrap" >&6
3618 if test $ac_cv_lib_l_yywrap = yes; then
3619   LEXLIB="-ll"
3620 fi
3621
3622 fi
3623
3624 fi
3625
3626 if test "x$LEX" != "x:"; then
3627   echo "$as_me:$LINENO: checking lex output file root" >&5
3628 echo $ECHO_N "checking lex output file root... $ECHO_C" >&6
3629 if test "${ac_cv_prog_lex_root+set}" = set; then
3630   echo $ECHO_N "(cached) $ECHO_C" >&6
3631 else
3632   # The minimal lex program is just a single line: %%.  But some broken lexes
3633 # (Solaris, I think it was) want two %% lines, so accommodate them.
3634 cat >conftest.l <<_ACEOF
3635 %%
3636 %%
3637 _ACEOF
3638 { (eval echo "$as_me:$LINENO: \"$LEX conftest.l\"") >&5
3639   (eval $LEX conftest.l) 2>&5
3640   ac_status=$?
3641   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3642   (exit $ac_status); }
3643 if test -f lex.yy.c; then
3644   ac_cv_prog_lex_root=lex.yy
3645 elif test -f lexyy.c; then
3646   ac_cv_prog_lex_root=lexyy
3647 else
3648   { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5
3649 echo "$as_me: error: cannot find output from $LEX; giving up" >&2;}
3650    { (exit 1); exit 1; }; }
3651 fi
3652 fi
3653 echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5
3654 echo "${ECHO_T}$ac_cv_prog_lex_root" >&6
3655 rm -f conftest.l
3656 LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
3657
3658 echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5
3659 echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6
3660 if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then
3661   echo $ECHO_N "(cached) $ECHO_C" >&6
3662 else
3663   # POSIX says lex can declare yytext either as a pointer or an array; the
3664 # default is implementation-dependent. Figure out which it is, since
3665 # not all implementations provide the %pointer and %array declarations.
3666 ac_cv_prog_lex_yytext_pointer=no
3667 echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c
3668 ac_save_LIBS=$LIBS
3669 LIBS="$LIBS $LEXLIB"
3670 cat >conftest.$ac_ext <<_ACEOF
3671 `cat $LEX_OUTPUT_ROOT.c`
3672 _ACEOF
3673 rm -f conftest.$ac_objext conftest$ac_exeext
3674 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3675   (eval $ac_link) 2>&5
3676   ac_status=$?
3677   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3678   (exit $ac_status); } &&
3679          { ac_try='test -s conftest$ac_exeext'
3680   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3681   (eval $ac_try) 2>&5
3682   ac_status=$?
3683   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3684   (exit $ac_status); }; }; then
3685   ac_cv_prog_lex_yytext_pointer=yes
3686 else
3687   echo "$as_me: failed program was:" >&5
3688 sed 's/^/| /' conftest.$ac_ext >&5
3689
3690 fi
3691 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3692 LIBS=$ac_save_LIBS
3693 rm -f "${LEX_OUTPUT_ROOT}.c"
3694
3695 fi
3696 echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5
3697 echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6
3698 if test $ac_cv_prog_lex_yytext_pointer = yes; then
3699
3700 cat >>confdefs.h <<\_ACEOF
3701 #define YYTEXT_POINTER 1
3702 _ACEOF
3703
3704 fi
3705
3706 fi
3707
3708 fi
3709 echo "$as_me:$LINENO: result: $ac_cv_has_flex" >&5
3710 echo "${ECHO_T}$ac_cv_has_flex" >&6
3711 if test "$LEX" != "flex"; then
3712   { { echo "$as_me:$LINENO: error: flex not found but required" >&5
3713 echo "$as_me: error: flex not found but required" >&2;}
3714    { (exit 1); exit 1; }; }
3715 fi
3716
3717 echo "$as_me:$LINENO: checking " >&5
3718 echo $ECHO_N "checking ... $ECHO_C" >&6
3719 if test "${ac_cv_has_bison+set}" = set; then
3720   echo $ECHO_N "(cached) $ECHO_C" >&6
3721 else
3722   for ac_prog in 'bison -y' byacc
3723 do
3724   # Extract the first word of "$ac_prog", so it can be a program name with args.
3725 set dummy $ac_prog; ac_word=$2
3726 echo "$as_me:$LINENO: checking for $ac_word" >&5
3727 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3728 if test "${ac_cv_prog_YACC+set}" = set; then
3729   echo $ECHO_N "(cached) $ECHO_C" >&6
3730 else
3731   if test -n "$YACC"; then
3732   ac_cv_prog_YACC="$YACC" # Let the user override the test.
3733 else
3734 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3735 for as_dir in $PATH
3736 do
3737   IFS=$as_save_IFS
3738   test -z "$as_dir" && as_dir=.
3739   for ac_exec_ext in '' $ac_executable_extensions; do
3740   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3741     ac_cv_prog_YACC="$ac_prog"
3742     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3743     break 2
3744   fi
3745 done
3746 done
3747
3748 fi
3749 fi
3750 YACC=$ac_cv_prog_YACC
3751 if test -n "$YACC"; then
3752   echo "$as_me:$LINENO: result: $YACC" >&5
3753 echo "${ECHO_T}$YACC" >&6
3754 else
3755   echo "$as_me:$LINENO: result: no" >&5
3756 echo "${ECHO_T}no" >&6
3757 fi
3758
3759   test -n "$YACC" && break
3760 done
3761 test -n "$YACC" || YACC="yacc"
3762
3763
3764 fi
3765 echo "$as_me:$LINENO: result: $ac_cv_has_bison" >&5
3766 echo "${ECHO_T}$ac_cv_has_bison" >&6
3767 if test "$YACC" != "bison -y"; then
3768   { { echo "$as_me:$LINENO: error: bison not found but required" >&5
3769 echo "$as_me: error: bison not found but required" >&2;}
3770    { (exit 1); exit 1; }; }
3771 else
3772   YACC=bison
3773
3774 fi
3775
3776
3777 # Check whether --enable-shared or --disable-shared was given.
3778 if test "${enable_shared+set}" = set; then
3779   enableval="$enable_shared"
3780   p=${PACKAGE-default}
3781     case $enableval in
3782     yes) enable_shared=yes ;;
3783     no) enable_shared=no ;;
3784     *)
3785       enable_shared=no
3786       # Look at the argument we got.  We use all the common list separators.
3787       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3788       for pkg in $enableval; do
3789         IFS="$lt_save_ifs"
3790         if test "X$pkg" = "X$p"; then
3791           enable_shared=yes
3792         fi
3793       done
3794       IFS="$lt_save_ifs"
3795       ;;
3796     esac
3797 else
3798   enable_shared=yes
3799 fi;
3800
3801 # Check whether --enable-static or --disable-static was given.
3802 if test "${enable_static+set}" = set; then
3803   enableval="$enable_static"
3804   p=${PACKAGE-default}
3805     case $enableval in
3806     yes) enable_static=yes ;;
3807     no) enable_static=no ;;
3808     *)
3809      enable_static=no
3810       # Look at the argument we got.  We use all the common list separators.
3811       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3812       for pkg in $enableval; do
3813         IFS="$lt_save_ifs"
3814         if test "X$pkg" = "X$p"; then
3815           enable_static=yes
3816         fi
3817       done
3818       IFS="$lt_save_ifs"
3819       ;;
3820     esac
3821 else
3822   enable_static=yes
3823 fi;
3824
3825 # Check whether --enable-fast-install or --disable-fast-install was given.
3826 if test "${enable_fast_install+set}" = set; then
3827   enableval="$enable_fast_install"
3828   p=${PACKAGE-default}
3829     case $enableval in
3830     yes) enable_fast_install=yes ;;
3831     no) enable_fast_install=no ;;
3832     *)
3833       enable_fast_install=no
3834       # Look at the argument we got.  We use all the common list separators.
3835       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3836       for pkg in $enableval; do
3837         IFS="$lt_save_ifs"
3838         if test "X$pkg" = "X$p"; then
3839           enable_fast_install=yes
3840         fi
3841       done
3842       IFS="$lt_save_ifs"
3843       ;;
3844     esac
3845 else
3846   enable_fast_install=yes
3847 fi;
3848
3849 echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3850 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
3851 if test "${lt_cv_path_SED+set}" = set; then
3852   echo $ECHO_N "(cached) $ECHO_C" >&6
3853 else
3854   # Loop through the user's path and test for sed and gsed.
3855 # Then use that list of sed's as ones to test for truncation.
3856 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3857 for as_dir in $PATH
3858 do
3859   IFS=$as_save_IFS
3860   test -z "$as_dir" && as_dir=.
3861   for lt_ac_prog in sed gsed; do
3862     for ac_exec_ext in '' $ac_executable_extensions; do
3863       if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
3864         lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
3865       fi
3866     done
3867   done
3868 done
3869 lt_ac_max=0
3870 lt_ac_count=0
3871 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
3872 # along with /bin/sed that truncates output.
3873 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
3874   test ! -f $lt_ac_sed && break
3875   cat /dev/null > conftest.in
3876   lt_ac_count=0
3877   echo $ECHO_N "0123456789$ECHO_C" >conftest.in
3878   # Check for GNU sed and select it if it is found.
3879   if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
3880     lt_cv_path_SED=$lt_ac_sed
3881     break
3882   fi
3883   while true; do
3884     cat conftest.in conftest.in >conftest.tmp
3885     mv conftest.tmp conftest.in
3886     cp conftest.in conftest.nl
3887     echo >>conftest.nl
3888     $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
3889     cmp -s conftest.out conftest.nl || break
3890     # 10000 chars as input seems more than enough
3891     test $lt_ac_count -gt 10 && break
3892     lt_ac_count=`expr $lt_ac_count + 1`
3893     if test $lt_ac_count -gt $lt_ac_max; then
3894       lt_ac_max=$lt_ac_count
3895       lt_cv_path_SED=$lt_ac_sed
3896     fi
3897   done
3898 done
3899 SED=$lt_cv_path_SED
3900
3901 fi
3902
3903 echo "$as_me:$LINENO: result: $SED" >&5
3904 echo "${ECHO_T}$SED" >&6
3905
3906 echo "$as_me:$LINENO: checking for egrep" >&5
3907 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3908 if test "${ac_cv_prog_egrep+set}" = set; then
3909   echo $ECHO_N "(cached) $ECHO_C" >&6
3910 else
3911   if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3912     then ac_cv_prog_egrep='grep -E'
3913     else ac_cv_prog_egrep='egrep'
3914     fi
3915 fi
3916 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3917 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3918  EGREP=$ac_cv_prog_egrep
3919
3920
3921
3922 # Check whether --with-gnu-ld or --without-gnu-ld was given.
3923 if test "${with_gnu_ld+set}" = set; then
3924   withval="$with_gnu_ld"
3925   test "$withval" = no || with_gnu_ld=yes
3926 else
3927   with_gnu_ld=no
3928 fi;
3929 ac_prog=ld
3930 if test "$GCC" = yes; then
3931   # Check if gcc -print-prog-name=ld gives a path.
3932   echo "$as_me:$LINENO: checking for ld used by $CC" >&5
3933 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
3934   case $host in
3935   *-*-mingw*)
3936     # gcc leaves a trailing carriage return which upsets mingw
3937     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3938   *)
3939     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3940   esac
3941   case $ac_prog in
3942     # Accept absolute paths.
3943     [\\/]* | ?:[\\/]*)
3944       re_direlt='/[^/][^/]*/\.\./'
3945       # Canonicalize the path of ld
3946       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
3947       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
3948         ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
3949       done
3950       test -z "$LD" && LD="$ac_prog"
3951       ;;
3952   "")
3953     # If it fails, then pretend we aren't using GCC.
3954     ac_prog=ld
3955     ;;
3956   *)
3957     # If it is relative, then search for the first ld in PATH.
3958     with_gnu_ld=unknown
3959     ;;
3960   esac
3961 elif test "$with_gnu_ld" = yes; then
3962   echo "$as_me:$LINENO: checking for GNU ld" >&5
3963 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
3964 else
3965   echo "$as_me:$LINENO: checking for non-GNU ld" >&5
3966 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
3967 fi
3968 if test "${lt_cv_path_LD+set}" = set; then
3969   echo $ECHO_N "(cached) $ECHO_C" >&6
3970 else
3971   if test -z "$LD"; then
3972   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3973   for ac_dir in $PATH; do
3974     IFS="$lt_save_ifs"
3975     test -z "$ac_dir" && ac_dir=.
3976     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3977       lt_cv_path_LD="$ac_dir/$ac_prog"
3978       # Check to see if the program is GNU ld.  I'd rather use --version,
3979       # but apparently some GNU ld's only accept -v.
3980       # Break only if it was the GNU/non-GNU ld that we prefer.
3981       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
3982       *GNU* | *'with BFD'*)
3983         test "$with_gnu_ld" != no && break
3984         ;;
3985       *)
3986         test "$with_gnu_ld" != yes && break
3987         ;;
3988       esac
3989     fi
3990   done
3991   IFS="$lt_save_ifs"
3992 else
3993   lt_cv_path_LD="$LD" # Let the user override the test with a path.
3994 fi
3995 fi
3996
3997 LD="$lt_cv_path_LD"
3998 if test -n "$LD"; then
3999   echo "$as_me:$LINENO: result: $LD" >&5
4000 echo "${ECHO_T}$LD" >&6
4001 else
4002   echo "$as_me:$LINENO: result: no" >&5
4003 echo "${ECHO_T}no" >&6
4004 fi
4005 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
4006 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
4007    { (exit 1); exit 1; }; }
4008 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4009 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
4010 if test "${lt_cv_prog_gnu_ld+set}" = set; then
4011   echo $ECHO_N "(cached) $ECHO_C" >&6
4012 else
4013   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
4014 case `"$LD" -v 2>&1 </dev/null` in
4015 *GNU* | *'with BFD'*)
4016   lt_cv_prog_gnu_ld=yes
4017   ;;
4018 *)
4019   lt_cv_prog_gnu_ld=no
4020   ;;
4021 esac
4022 fi
4023 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
4024 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
4025 with_gnu_ld=$lt_cv_prog_gnu_ld
4026
4027
4028 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
4029 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
4030 if test "${lt_cv_ld_reload_flag+set}" = set; then
4031   echo $ECHO_N "(cached) $ECHO_C" >&6
4032 else
4033   lt_cv_ld_reload_flag='-r'
4034 fi
4035 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
4036 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
4037 reload_flag=$lt_cv_ld_reload_flag
4038 case $reload_flag in
4039 "" | " "*) ;;
4040 *) reload_flag=" $reload_flag" ;;
4041 esac
4042 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4043
4044 echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
4045 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
4046 if test "${lt_cv_path_NM+set}" = set; then
4047   echo $ECHO_N "(cached) $ECHO_C" >&6
4048 else
4049   if test -n "$NM"; then
4050   # Let the user override the test.
4051   lt_cv_path_NM="$NM"
4052 else
4053   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4054   for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
4055     IFS="$lt_save_ifs"
4056     test -z "$ac_dir" && ac_dir=.
4057     tmp_nm="$ac_dir/${ac_tool_prefix}nm"
4058     if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4059       # Check to see if the nm accepts a BSD-compat flag.
4060       # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4061       #   nm: unknown option "B" ignored
4062       # Tru64's nm complains that /dev/null is an invalid object file
4063       case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4064       */dev/null* | *'Invalid file or object type'*)
4065         lt_cv_path_NM="$tmp_nm -B"
4066         break
4067         ;;
4068       *)
4069         case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4070         */dev/null*)
4071           lt_cv_path_NM="$tmp_nm -p"
4072           break
4073           ;;
4074         *)
4075           lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4076           continue # so that we can try to find one that supports BSD flags
4077           ;;
4078         esac
4079       esac
4080     fi
4081   done
4082   IFS="$lt_save_ifs"
4083   test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
4084 fi
4085 fi
4086 echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
4087 echo "${ECHO_T}$lt_cv_path_NM" >&6
4088 NM="$lt_cv_path_NM"
4089
4090 echo "$as_me:$LINENO: checking whether ln -s works" >&5
4091 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
4092 LN_S=$as_ln_s
4093 if test "$LN_S" = "ln -s"; then
4094   echo "$as_me:$LINENO: result: yes" >&5
4095 echo "${ECHO_T}yes" >&6
4096 else
4097   echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4098 echo "${ECHO_T}no, using $LN_S" >&6
4099 fi
4100
4101 echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
4102 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
4103 if test "${lt_cv_deplibs_check_method+set}" = set; then
4104   echo $ECHO_N "(cached) $ECHO_C" >&6
4105 else
4106   lt_cv_file_magic_cmd='$MAGIC_CMD'
4107 lt_cv_file_magic_test_file=
4108 lt_cv_deplibs_check_method='unknown'
4109 # Need to set the preceding variable on all platforms that support
4110 # interlibrary dependencies.
4111 # 'none' -- dependencies not supported.
4112 # `unknown' -- same as none, but documents that we really don't know.
4113 # 'pass_all' -- all dependencies passed with no checks.
4114 # 'test_compile' -- check by making test program.
4115 # 'file_magic [[regex]]' -- check by looking for files in library path
4116 # which responds to the $file_magic_cmd with a given extended regex.
4117 # If you have `file' or equivalent on your system and you're not sure
4118 # whether `pass_all' will *always* work, you probably want this one.
4119
4120 case $host_os in
4121 aix4* | aix5*)
4122   lt_cv_deplibs_check_method=pass_all
4123   ;;
4124
4125 beos*)
4126   lt_cv_deplibs_check_method=pass_all
4127   ;;
4128
4129 bsdi4*)
4130   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4131   lt_cv_file_magic_cmd='/usr/bin/file -L'
4132   lt_cv_file_magic_test_file=/shlib/libc.so
4133   ;;
4134
4135 cygwin* | mingw* | pw32*)
4136   # win32_libid is a shell function defined in ltmain.sh
4137   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4138   lt_cv_file_magic_cmd='win32_libid'
4139   ;;
4140
4141 darwin* | rhapsody*)
4142   # this will be overwritten by pass_all, but leave it in just in case
4143   lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
4144   lt_cv_file_magic_cmd='/usr/bin/file -L'
4145   case "$host_os" in
4146   rhapsody* | darwin1.[012])
4147     lt_cv_file_magic_test_file=`/System/Library/Frameworks/System.framework/System`
4148     ;;
4149   *) # Darwin 1.3 on
4150     lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
4151     ;;
4152   esac
4153   lt_cv_deplibs_check_method=pass_all
4154   ;;
4155
4156 freebsd*)
4157   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4158     case $host_cpu in
4159     i*86 )
4160       # Not sure whether the presence of OpenBSD here was a mistake.
4161       # Let's accept both of them until this is cleared up.
4162       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
4163       lt_cv_file_magic_cmd=/usr/bin/file
4164       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4165       ;;
4166     esac
4167   else
4168     lt_cv_deplibs_check_method=pass_all
4169   fi
4170   ;;
4171
4172 gnu*)
4173   lt_cv_deplibs_check_method=pass_all
4174   ;;
4175
4176 hpux10.20* | hpux11*)
4177   lt_cv_file_magic_cmd=/usr/bin/file
4178   case "$host_cpu" in
4179   ia64*)
4180     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4181     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4182     ;;
4183   hppa*64*)
4184     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]'
4185     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4186     ;;
4187   *)
4188     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4189     lt_cv_file_magic_test_file=/usr/lib/libc.sl
4190     ;;
4191   esac
4192   ;;
4193
4194 irix5* | irix6* | nonstopux*)
4195   case $host_os in
4196   irix5* | nonstopux*)
4197     # this will be overridden with pass_all, but let us keep it just in case
4198     lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
4199     ;;
4200   *)
4201     case $LD in
4202     *-32|*"-32 ") libmagic=32-bit;;
4203     *-n32|*"-n32 ") libmagic=N32;;
4204     *-64|*"-64 ") libmagic=64-bit;;
4205     *) libmagic=never-match;;
4206     esac
4207     # this will be overridden with pass_all, but let us keep it just in case
4208     lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
4209     ;;
4210   esac
4211   lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
4212   lt_cv_deplibs_check_method=pass_all
4213   ;;
4214
4215 # This must be Linux ELF.
4216 linux*)
4217   case $host_cpu in
4218   alpha* | hppa* | i*86 | ia64* | m68* | mips | mipsel | powerpc* | sparc* | s390* | sh*)
4219     lt_cv_deplibs_check_method=pass_all ;;
4220   *)
4221     # glibc up to 2.1.1 does not perform some relocations on ARM
4222     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
4223   esac
4224   lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
4225   ;;
4226
4227 netbsd*)
4228   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4229     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4230   else
4231     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
4232   fi
4233   ;;
4234
4235 newos6*)
4236   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4237   lt_cv_file_magic_cmd=/usr/bin/file
4238   lt_cv_file_magic_test_file=/usr/lib/libnls.so
4239   ;;
4240
4241 nto-qnx)
4242   lt_cv_deplibs_check_method=unknown
4243   ;;
4244
4245 openbsd*)
4246   lt_cv_file_magic_cmd=/usr/bin/file
4247   lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4248   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4249     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB shared object'
4250   else
4251     lt_cv_deplibs_check_method='file_magic OpenBSD.* shared library'
4252   fi
4253   ;;
4254
4255 osf3* | osf4* | osf5*)
4256   # this will be overridden with pass_all, but let us keep it just in case
4257   lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
4258   lt_cv_file_magic_test_file=/shlib/libc.so
4259   lt_cv_deplibs_check_method=pass_all
4260   ;;
4261
4262 sco3.2v5*)
4263   lt_cv_deplibs_check_method=pass_all
4264   ;;
4265
4266 solaris*)
4267   lt_cv_deplibs_check_method=pass_all
4268   lt_cv_file_magic_test_file=/lib/libc.so
4269   ;;
4270
4271 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
4272   case $host_vendor in
4273   motorola)
4274     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]'
4275     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4276     ;;
4277   ncr)
4278     lt_cv_deplibs_check_method=pass_all
4279     ;;
4280   sequent)
4281     lt_cv_file_magic_cmd='/bin/file'
4282     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4283     ;;
4284   sni)
4285     lt_cv_file_magic_cmd='/bin/file'
4286     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4287     lt_cv_file_magic_test_file=/lib/libc.so
4288     ;;
4289   siemens)
4290     lt_cv_deplibs_check_method=pass_all
4291     ;;
4292   esac
4293   ;;
4294
4295 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*)
4296   lt_cv_deplibs_check_method=pass_all
4297   ;;
4298 esac
4299
4300 fi
4301 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
4302 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
4303 file_magic_cmd=$lt_cv_file_magic_cmd
4304 deplibs_check_method=$lt_cv_deplibs_check_method
4305 test -z "$deplibs_check_method" && deplibs_check_method=unknown
4306
4307
4308
4309
4310 # If no C compiler was specified, use CC.
4311 LTCC=${LTCC-"$CC"}
4312
4313 # Allow CC to be a program name with arguments.
4314 compiler=$CC
4315
4316 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
4317 if test "${enable_libtool_lock+set}" = set; then
4318   enableval="$enable_libtool_lock"
4319
4320 fi;
4321 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
4322
4323 # Some flags need to be propagated to the compiler or linker for good
4324 # libtool support.
4325 case $host in
4326 ia64-*-hpux*)
4327   # Find out which ABI we are using.
4328   echo 'int i;' > conftest.$ac_ext
4329   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4330   (eval $ac_compile) 2>&5
4331   ac_status=$?
4332   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4333   (exit $ac_status); }; then
4334     case `/usr/bin/file conftest.$ac_objext` in
4335     *ELF-32*)
4336       HPUX_IA64_MODE="32"
4337       ;;
4338     *ELF-64*)
4339       HPUX_IA64_MODE="64"
4340       ;;
4341     esac
4342   fi
4343   rm -rf conftest*
4344   ;;
4345 *-*-irix6*)
4346   # Find out which ABI we are using.
4347   echo '#line 4347 "configure"' > conftest.$ac_ext
4348   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4349   (eval $ac_compile) 2>&5
4350   ac_status=$?
4351   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4352   (exit $ac_status); }; then
4353    if test "$lt_cv_prog_gnu_ld" = yes; then
4354     case `/usr/bin/file conftest.$ac_objext` in
4355     *32-bit*)
4356       LD="${LD-ld} -melf32bsmip"
4357       ;;
4358     *N32*)
4359       LD="${LD-ld} -melf32bmipn32"
4360       ;;
4361     *64-bit*)
4362       LD="${LD-ld} -melf64bmip"
4363       ;;
4364     esac
4365    else
4366     case `/usr/bin/file conftest.$ac_objext` in
4367     *32-bit*)
4368       LD="${LD-ld} -32"
4369       ;;
4370     *N32*)
4371       LD="${LD-ld} -n32"
4372       ;;
4373     *64-bit*)
4374       LD="${LD-ld} -64"
4375       ;;
4376     esac
4377    fi
4378   fi
4379   rm -rf conftest*
4380   ;;
4381
4382 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
4383   # Find out which ABI we are using.
4384   echo 'int i;' > conftest.$ac_ext
4385   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4386   (eval $ac_compile) 2>&5
4387   ac_status=$?
4388   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4389   (exit $ac_status); }; then
4390     case "`/usr/bin/file conftest.o`" in
4391     *32-bit*)
4392       case $host in
4393         x86_64-*linux*)
4394           LD="${LD-ld} -m elf_i386"
4395           ;;
4396         ppc64-*linux*)
4397           LD="${LD-ld} -m elf32ppclinux"
4398           ;;
4399         s390x-*linux*)
4400           LD="${LD-ld} -m elf_s390"
4401           ;;
4402         sparc64-*linux*)
4403           LD="${LD-ld} -m elf32_sparc"
4404           ;;
4405       esac
4406       ;;
4407     *64-bit*)
4408       case $host in
4409         x86_64-*linux*)
4410           LD="${LD-ld} -m elf_x86_64"
4411           ;;
4412         ppc*-*linux*|powerpc*-*linux*)
4413           LD="${LD-ld} -m elf64ppc"
4414           ;;
4415         s390*-*linux*)
4416           LD="${LD-ld} -m elf64_s390"
4417           ;;
4418         sparc*-*linux*)
4419           LD="${LD-ld} -m elf64_sparc"
4420           ;;
4421       esac
4422       ;;
4423     esac
4424   fi
4425   rm -rf conftest*
4426   ;;
4427
4428 *-*-sco3.2v5*)
4429   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4430   SAVE_CFLAGS="$CFLAGS"
4431   CFLAGS="$CFLAGS -belf"
4432   echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
4433 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
4434 if test "${lt_cv_cc_needs_belf+set}" = set; then
4435   echo $ECHO_N "(cached) $ECHO_C" >&6
4436 else
4437   ac_ext=c
4438 ac_cpp='$CPP $CPPFLAGS'
4439 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4440 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4441 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4442
4443      cat >conftest.$ac_ext <<_ACEOF
4444 #line $LINENO "configure"
4445 /* confdefs.h.  */
4446 _ACEOF
4447 cat confdefs.h >>conftest.$ac_ext
4448 cat >>conftest.$ac_ext <<_ACEOF
4449 /* end confdefs.h.  */
4450
4451 int
4452 main ()
4453 {
4454
4455   ;
4456   return 0;
4457 }
4458 _ACEOF
4459 rm -f conftest.$ac_objext conftest$ac_exeext
4460 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4461   (eval $ac_link) 2>&5
4462   ac_status=$?
4463   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4464   (exit $ac_status); } &&
4465          { ac_try='test -s conftest$ac_exeext'
4466   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4467   (eval $ac_try) 2>&5
4468   ac_status=$?
4469   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4470   (exit $ac_status); }; }; then
4471   lt_cv_cc_needs_belf=yes
4472 else
4473   echo "$as_me: failed program was:" >&5
4474 sed 's/^/| /' conftest.$ac_ext >&5
4475
4476 lt_cv_cc_needs_belf=no
4477 fi
4478 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4479      ac_ext=c
4480 ac_cpp='$CPP $CPPFLAGS'
4481 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4482 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4483 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4484
4485 fi
4486 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
4487 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
4488   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4489     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4490     CFLAGS="$SAVE_CFLAGS"
4491   fi
4492   ;;
4493
4494 esac
4495
4496 need_locks="$enable_libtool_lock"
4497
4498
4499
4500 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4501 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4502 if test "${ac_cv_header_stdc+set}" = set; then
4503   echo $ECHO_N "(cached) $ECHO_C" >&6
4504 else
4505   cat >conftest.$ac_ext <<_ACEOF
4506 #line $LINENO "configure"
4507 /* confdefs.h.  */
4508 _ACEOF
4509 cat confdefs.h >>conftest.$ac_ext
4510 cat >>conftest.$ac_ext <<_ACEOF
4511 /* end confdefs.h.  */
4512 #include <stdlib.h>
4513 #include <stdarg.h>
4514 #include <string.h>
4515 #include <float.h>
4516
4517 int
4518 main ()
4519 {
4520
4521   ;
4522   return 0;
4523 }
4524 _ACEOF
4525 rm -f conftest.$ac_objext
4526 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4527   (eval $ac_compile) 2>&5
4528   ac_status=$?
4529   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4530   (exit $ac_status); } &&
4531          { ac_try='test -s conftest.$ac_objext'
4532   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4533   (eval $ac_try) 2>&5
4534   ac_status=$?
4535   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4536   (exit $ac_status); }; }; then
4537   ac_cv_header_stdc=yes
4538 else
4539   echo "$as_me: failed program was:" >&5
4540 sed 's/^/| /' conftest.$ac_ext >&5
4541
4542 ac_cv_header_stdc=no
4543 fi
4544 rm -f conftest.$ac_objext conftest.$ac_ext
4545
4546 if test $ac_cv_header_stdc = yes; then
4547   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
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 <string.h>
4556
4557 _ACEOF
4558 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4559   $EGREP "memchr" >/dev/null 2>&1; then
4560   :
4561 else
4562   ac_cv_header_stdc=no
4563 fi
4564 rm -f conftest*
4565
4566 fi
4567
4568 if test $ac_cv_header_stdc = yes; then
4569   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4570   cat >conftest.$ac_ext <<_ACEOF
4571 #line $LINENO "configure"
4572 /* confdefs.h.  */
4573 _ACEOF
4574 cat confdefs.h >>conftest.$ac_ext
4575 cat >>conftest.$ac_ext <<_ACEOF
4576 /* end confdefs.h.  */
4577 #include <stdlib.h>
4578
4579 _ACEOF
4580 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4581   $EGREP "free" >/dev/null 2>&1; then
4582   :
4583 else
4584   ac_cv_header_stdc=no
4585 fi
4586 rm -f conftest*
4587
4588 fi
4589
4590 if test $ac_cv_header_stdc = yes; then
4591   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4592   if test "$cross_compiling" = yes; then
4593   :
4594 else
4595   cat >conftest.$ac_ext <<_ACEOF
4596 #line $LINENO "configure"
4597 /* confdefs.h.  */
4598 _ACEOF
4599 cat confdefs.h >>conftest.$ac_ext
4600 cat >>conftest.$ac_ext <<_ACEOF
4601 /* end confdefs.h.  */
4602 #include <ctype.h>
4603 #if ((' ' & 0x0FF) == 0x020)
4604 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4605 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4606 #else
4607 # define ISLOWER(c) \
4608                    (('a' <= (c) && (c) <= 'i') \
4609                      || ('j' <= (c) && (c) <= 'r') \
4610                      || ('s' <= (c) && (c) <= 'z'))
4611 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4612 #endif
4613
4614 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4615 int
4616 main ()
4617 {
4618   int i;
4619   for (i = 0; i < 256; i++)
4620     if (XOR (islower (i), ISLOWER (i))
4621         || toupper (i) != TOUPPER (i))
4622       exit(2);
4623   exit (0);
4624 }
4625 _ACEOF
4626 rm -f conftest$ac_exeext
4627 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4628   (eval $ac_link) 2>&5
4629   ac_status=$?
4630   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4631   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4632   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4633   (eval $ac_try) 2>&5
4634   ac_status=$?
4635   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4636   (exit $ac_status); }; }; then
4637   :
4638 else
4639   echo "$as_me: program exited with status $ac_status" >&5
4640 echo "$as_me: failed program was:" >&5
4641 sed 's/^/| /' conftest.$ac_ext >&5
4642
4643 ( exit $ac_status )
4644 ac_cv_header_stdc=no
4645 fi
4646 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4647 fi
4648 fi
4649 fi
4650 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4651 echo "${ECHO_T}$ac_cv_header_stdc" >&6
4652 if test $ac_cv_header_stdc = yes; then
4653
4654 cat >>confdefs.h <<\_ACEOF
4655 #define STDC_HEADERS 1
4656 _ACEOF
4657
4658 fi
4659
4660 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4661
4662
4663
4664
4665
4666
4667
4668
4669
4670 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4671                   inttypes.h stdint.h unistd.h
4672 do
4673 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4674 echo "$as_me:$LINENO: checking for $ac_header" >&5
4675 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4676 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4677   echo $ECHO_N "(cached) $ECHO_C" >&6
4678 else
4679   cat >conftest.$ac_ext <<_ACEOF
4680 #line $LINENO "configure"
4681 /* confdefs.h.  */
4682 _ACEOF
4683 cat confdefs.h >>conftest.$ac_ext
4684 cat >>conftest.$ac_ext <<_ACEOF
4685 /* end confdefs.h.  */
4686 $ac_includes_default
4687
4688 #include <$ac_header>
4689 _ACEOF
4690 rm -f conftest.$ac_objext
4691 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4692   (eval $ac_compile) 2>&5
4693   ac_status=$?
4694   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4695   (exit $ac_status); } &&
4696          { ac_try='test -s conftest.$ac_objext'
4697   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4698   (eval $ac_try) 2>&5
4699   ac_status=$?
4700   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4701   (exit $ac_status); }; }; then
4702   eval "$as_ac_Header=yes"
4703 else
4704   echo "$as_me: failed program was:" >&5
4705 sed 's/^/| /' conftest.$ac_ext >&5
4706
4707 eval "$as_ac_Header=no"
4708 fi
4709 rm -f conftest.$ac_objext conftest.$ac_ext
4710 fi
4711 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4712 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4713 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4714   cat >>confdefs.h <<_ACEOF
4715 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4716 _ACEOF
4717
4718 fi
4719
4720 done
4721
4722
4723
4724 for ac_header in dlfcn.h
4725 do
4726 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4727 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4728   echo "$as_me:$LINENO: checking for $ac_header" >&5
4729 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4730 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4731   echo $ECHO_N "(cached) $ECHO_C" >&6
4732 fi
4733 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4734 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4735 else
4736   # Is the header compilable?
4737 echo "$as_me:$LINENO: checking $ac_header usability" >&5
4738 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4739 cat >conftest.$ac_ext <<_ACEOF
4740 #line $LINENO "configure"
4741 /* confdefs.h.  */
4742 _ACEOF
4743 cat confdefs.h >>conftest.$ac_ext
4744 cat >>conftest.$ac_ext <<_ACEOF
4745 /* end confdefs.h.  */
4746 $ac_includes_default
4747 #include <$ac_header>
4748 _ACEOF
4749 rm -f conftest.$ac_objext
4750 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4751   (eval $ac_compile) 2>&5
4752   ac_status=$?
4753   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4754   (exit $ac_status); } &&
4755          { ac_try='test -s conftest.$ac_objext'
4756   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4757   (eval $ac_try) 2>&5
4758   ac_status=$?
4759   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4760   (exit $ac_status); }; }; then
4761   ac_header_compiler=yes
4762 else
4763   echo "$as_me: failed program was:" >&5
4764 sed 's/^/| /' conftest.$ac_ext >&5
4765
4766 ac_header_compiler=no
4767 fi
4768 rm -f conftest.$ac_objext conftest.$ac_ext
4769 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4770 echo "${ECHO_T}$ac_header_compiler" >&6
4771
4772 # Is the header present?
4773 echo "$as_me:$LINENO: checking $ac_header presence" >&5
4774 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4775 cat >conftest.$ac_ext <<_ACEOF
4776 #line $LINENO "configure"
4777 /* confdefs.h.  */
4778 _ACEOF
4779 cat confdefs.h >>conftest.$ac_ext
4780 cat >>conftest.$ac_ext <<_ACEOF
4781 /* end confdefs.h.  */
4782 #include <$ac_header>
4783 _ACEOF
4784 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4785   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4786   ac_status=$?
4787   grep -v '^ *+' conftest.er1 >conftest.err
4788   rm -f conftest.er1
4789   cat conftest.err >&5
4790   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4791   (exit $ac_status); } >/dev/null; then
4792   if test -s conftest.err; then
4793     ac_cpp_err=$ac_c_preproc_warn_flag
4794   else
4795     ac_cpp_err=
4796   fi
4797 else
4798   ac_cpp_err=yes
4799 fi
4800 if test -z "$ac_cpp_err"; then
4801   ac_header_preproc=yes
4802 else
4803   echo "$as_me: failed program was:" >&5
4804 sed 's/^/| /' conftest.$ac_ext >&5
4805
4806   ac_header_preproc=no
4807 fi
4808 rm -f conftest.err conftest.$ac_ext
4809 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4810 echo "${ECHO_T}$ac_header_preproc" >&6
4811
4812 # So?  What about this header?
4813 case $ac_header_compiler:$ac_header_preproc in
4814   yes:no )
4815     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4816 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4817     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4818 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4819     (
4820       cat <<\_ASBOX
4821 ## ------------------------------------ ##
4822 ## Report this to bug-autoconf@gnu.org. ##
4823 ## ------------------------------------ ##
4824 _ASBOX
4825     ) |
4826       sed "s/^/$as_me: WARNING:     /" >&2
4827     ;;
4828   no:yes )
4829     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4830 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4831     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4832 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4833     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4834 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4835     (
4836       cat <<\_ASBOX
4837 ## ------------------------------------ ##
4838 ## Report this to bug-autoconf@gnu.org. ##
4839 ## ------------------------------------ ##
4840 _ASBOX
4841     ) |
4842       sed "s/^/$as_me: WARNING:     /" >&2
4843     ;;
4844 esac
4845 echo "$as_me:$LINENO: checking for $ac_header" >&5
4846 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4847 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4848   echo $ECHO_N "(cached) $ECHO_C" >&6
4849 else
4850   eval "$as_ac_Header=$ac_header_preproc"
4851 fi
4852 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4853 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4854
4855 fi
4856 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4857   cat >>confdefs.h <<_ACEOF
4858 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4859 _ACEOF
4860
4861 fi
4862
4863 done
4864
4865 ac_ext=cc
4866 ac_cpp='$CXXCPP $CPPFLAGS'
4867 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4868 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4869 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4870 echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
4871 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
4872 if test -z "$CXXCPP"; then
4873   if test "${ac_cv_prog_CXXCPP+set}" = set; then
4874   echo $ECHO_N "(cached) $ECHO_C" >&6
4875 else
4876       # Double quotes because CXXCPP needs to be expanded
4877     for CXXCPP in "$CXX -E" "/lib/cpp"
4878     do
4879       ac_preproc_ok=false
4880 for ac_cxx_preproc_warn_flag in '' yes
4881 do
4882   # Use a header file that comes with gcc, so configuring glibc
4883   # with a fresh cross-compiler works.
4884   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4885   # <limits.h> exists even on freestanding compilers.
4886   # On the NeXT, cc -E runs the code through the compiler's parser,
4887   # not just through cpp. "Syntax error" is here to catch this case.
4888   cat >conftest.$ac_ext <<_ACEOF
4889 #line $LINENO "configure"
4890 /* confdefs.h.  */
4891 _ACEOF
4892 cat confdefs.h >>conftest.$ac_ext
4893 cat >>conftest.$ac_ext <<_ACEOF
4894 /* end confdefs.h.  */
4895 #ifdef __STDC__
4896 # include <limits.h>
4897 #else
4898 # include <assert.h>
4899 #endif
4900                      Syntax error
4901 _ACEOF
4902 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4903   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4904   ac_status=$?
4905   grep -v '^ *+' conftest.er1 >conftest.err
4906   rm -f conftest.er1
4907   cat conftest.err >&5
4908   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4909   (exit $ac_status); } >/dev/null; then
4910   if test -s conftest.err; then
4911     ac_cpp_err=$ac_cxx_preproc_warn_flag
4912   else
4913     ac_cpp_err=
4914   fi
4915 else
4916   ac_cpp_err=yes
4917 fi
4918 if test -z "$ac_cpp_err"; then
4919   :
4920 else
4921   echo "$as_me: failed program was:" >&5
4922 sed 's/^/| /' conftest.$ac_ext >&5
4923
4924   # Broken: fails on valid input.
4925 continue
4926 fi
4927 rm -f conftest.err conftest.$ac_ext
4928
4929   # OK, works on sane cases.  Now check whether non-existent headers
4930   # can be detected and how.
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 #include <ac_nonexistent.h>
4939 _ACEOF
4940 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4941   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4942   ac_status=$?
4943   grep -v '^ *+' conftest.er1 >conftest.err
4944   rm -f conftest.er1
4945   cat conftest.err >&5
4946   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4947   (exit $ac_status); } >/dev/null; then
4948   if test -s conftest.err; then
4949     ac_cpp_err=$ac_cxx_preproc_warn_flag
4950   else
4951     ac_cpp_err=
4952   fi
4953 else
4954   ac_cpp_err=yes
4955 fi
4956 if test -z "$ac_cpp_err"; then
4957   # Broken: success on invalid input.
4958 continue
4959 else
4960   echo "$as_me: failed program was:" >&5
4961 sed 's/^/| /' conftest.$ac_ext >&5
4962
4963   # Passes both tests.
4964 ac_preproc_ok=:
4965 break
4966 fi
4967 rm -f conftest.err conftest.$ac_ext
4968
4969 done
4970 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4971 rm -f conftest.err conftest.$ac_ext
4972 if $ac_preproc_ok; then
4973   break
4974 fi
4975
4976     done
4977     ac_cv_prog_CXXCPP=$CXXCPP
4978
4979 fi
4980   CXXCPP=$ac_cv_prog_CXXCPP
4981 else
4982   ac_cv_prog_CXXCPP=$CXXCPP
4983 fi
4984 echo "$as_me:$LINENO: result: $CXXCPP" >&5
4985 echo "${ECHO_T}$CXXCPP" >&6
4986 ac_preproc_ok=false
4987 for ac_cxx_preproc_warn_flag in '' yes
4988 do
4989   # Use a header file that comes with gcc, so configuring glibc
4990   # with a fresh cross-compiler works.
4991   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4992   # <limits.h> exists even on freestanding compilers.
4993   # On the NeXT, cc -E runs the code through the compiler's parser,
4994   # not just through cpp. "Syntax error" is here to catch this case.
4995   cat >conftest.$ac_ext <<_ACEOF
4996 #line $LINENO "configure"
4997 /* confdefs.h.  */
4998 _ACEOF
4999 cat confdefs.h >>conftest.$ac_ext
5000 cat >>conftest.$ac_ext <<_ACEOF
5001 /* end confdefs.h.  */
5002 #ifdef __STDC__
5003 # include <limits.h>
5004 #else
5005 # include <assert.h>
5006 #endif
5007                      Syntax error
5008 _ACEOF
5009 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5010   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5011   ac_status=$?
5012   grep -v '^ *+' conftest.er1 >conftest.err
5013   rm -f conftest.er1
5014   cat conftest.err >&5
5015   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5016   (exit $ac_status); } >/dev/null; then
5017   if test -s conftest.err; then
5018     ac_cpp_err=$ac_cxx_preproc_warn_flag
5019   else
5020     ac_cpp_err=
5021   fi
5022 else
5023   ac_cpp_err=yes
5024 fi
5025 if test -z "$ac_cpp_err"; then
5026   :
5027 else
5028   echo "$as_me: failed program was:" >&5
5029 sed 's/^/| /' conftest.$ac_ext >&5
5030
5031   # Broken: fails on valid input.
5032 continue
5033 fi
5034 rm -f conftest.err conftest.$ac_ext
5035
5036   # OK, works on sane cases.  Now check whether non-existent headers
5037   # can be detected and how.
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 #include <ac_nonexistent.h>
5046 _ACEOF
5047 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5048   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5049   ac_status=$?
5050   grep -v '^ *+' conftest.er1 >conftest.err
5051   rm -f conftest.er1
5052   cat conftest.err >&5
5053   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5054   (exit $ac_status); } >/dev/null; then
5055   if test -s conftest.err; then
5056     ac_cpp_err=$ac_cxx_preproc_warn_flag
5057   else
5058     ac_cpp_err=
5059   fi
5060 else
5061   ac_cpp_err=yes
5062 fi
5063 if test -z "$ac_cpp_err"; then
5064   # Broken: success on invalid input.
5065 continue
5066 else
5067   echo "$as_me: failed program was:" >&5
5068 sed 's/^/| /' conftest.$ac_ext >&5
5069
5070   # Passes both tests.
5071 ac_preproc_ok=:
5072 break
5073 fi
5074 rm -f conftest.err conftest.$ac_ext
5075
5076 done
5077 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5078 rm -f conftest.err conftest.$ac_ext
5079 if $ac_preproc_ok; then
5080   :
5081 else
5082   { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5083 See \`config.log' for more details." >&5
5084 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5085 See \`config.log' for more details." >&2;}
5086    { (exit 1); exit 1; }; }
5087 fi
5088
5089 ac_ext=cc
5090 ac_cpp='$CXXCPP $CPPFLAGS'
5091 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5092 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5093 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5094
5095
5096 ac_ext=f
5097 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
5098 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5099 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
5100 if test -n "$ac_tool_prefix"; then
5101   for ac_prog in g77 f77 xlf frt pgf77 fl32 af77 fort77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 lf95 g95
5102   do
5103     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5104 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5105 echo "$as_me:$LINENO: checking for $ac_word" >&5
5106 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5107 if test "${ac_cv_prog_F77+set}" = set; then
5108   echo $ECHO_N "(cached) $ECHO_C" >&6
5109 else
5110   if test -n "$F77"; then
5111   ac_cv_prog_F77="$F77" # Let the user override the test.
5112 else
5113 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5114 for as_dir in $PATH
5115 do
5116   IFS=$as_save_IFS
5117   test -z "$as_dir" && as_dir=.
5118   for ac_exec_ext in '' $ac_executable_extensions; do
5119   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5120     ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
5121     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5122     break 2
5123   fi
5124 done
5125 done
5126
5127 fi
5128 fi
5129 F77=$ac_cv_prog_F77
5130 if test -n "$F77"; then
5131   echo "$as_me:$LINENO: result: $F77" >&5
5132 echo "${ECHO_T}$F77" >&6
5133 else
5134   echo "$as_me:$LINENO: result: no" >&5
5135 echo "${ECHO_T}no" >&6
5136 fi
5137
5138     test -n "$F77" && break
5139   done
5140 fi
5141 if test -z "$F77"; then
5142   ac_ct_F77=$F77
5143   for ac_prog in g77 f77 xlf frt pgf77 fl32 af77 fort77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 lf95 g95
5144 do
5145   # Extract the first word of "$ac_prog", so it can be a program name with args.
5146 set dummy $ac_prog; ac_word=$2
5147 echo "$as_me:$LINENO: checking for $ac_word" >&5
5148 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5149 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
5150   echo $ECHO_N "(cached) $ECHO_C" >&6
5151 else
5152   if test -n "$ac_ct_F77"; then
5153   ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
5154 else
5155 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5156 for as_dir in $PATH
5157 do
5158   IFS=$as_save_IFS
5159   test -z "$as_dir" && as_dir=.
5160   for ac_exec_ext in '' $ac_executable_extensions; do
5161   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5162     ac_cv_prog_ac_ct_F77="$ac_prog"
5163     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5164     break 2
5165   fi
5166 done
5167 done
5168
5169 fi
5170 fi
5171 ac_ct_F77=$ac_cv_prog_ac_ct_F77
5172 if test -n "$ac_ct_F77"; then
5173   echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
5174 echo "${ECHO_T}$ac_ct_F77" >&6
5175 else
5176   echo "$as_me:$LINENO: result: no" >&5
5177 echo "${ECHO_T}no" >&6
5178 fi
5179
5180   test -n "$ac_ct_F77" && break
5181 done
5182
5183   F77=$ac_ct_F77
5184 fi
5185
5186
5187 # Provide some information about the compiler.
5188 echo "$as_me:5188:" \
5189      "checking for Fortran 77 compiler version" >&5
5190 ac_compiler=`set X $ac_compile; echo $2`
5191 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
5192   (eval $ac_compiler --version </dev/null >&5) 2>&5
5193   ac_status=$?
5194   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5195   (exit $ac_status); }
5196 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
5197   (eval $ac_compiler -v </dev/null >&5) 2>&5
5198   ac_status=$?
5199   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5200   (exit $ac_status); }
5201 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
5202   (eval $ac_compiler -V </dev/null >&5) 2>&5
5203   ac_status=$?
5204   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5205   (exit $ac_status); }
5206
5207 # If we don't use `.F' as extension, the preprocessor is not run on the
5208 # input file.
5209 ac_save_ext=$ac_ext
5210 ac_ext=F
5211 echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
5212 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
5213 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
5214   echo $ECHO_N "(cached) $ECHO_C" >&6
5215 else
5216   cat >conftest.$ac_ext <<_ACEOF
5217       program main
5218 #ifndef __GNUC__
5219        choke me
5220 #endif
5221
5222       end
5223 _ACEOF
5224 rm -f conftest.$ac_objext
5225 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5226   (eval $ac_compile) 2>&5
5227   ac_status=$?
5228   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5229   (exit $ac_status); } &&
5230          { ac_try='test -s conftest.$ac_objext'
5231   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5232   (eval $ac_try) 2>&5
5233   ac_status=$?
5234   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5235   (exit $ac_status); }; }; then
5236   ac_compiler_gnu=yes
5237 else
5238   echo "$as_me: failed program was:" >&5
5239 sed 's/^/| /' conftest.$ac_ext >&5
5240
5241 ac_compiler_gnu=no
5242 fi
5243 rm -f conftest.$ac_objext conftest.$ac_ext
5244 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
5245
5246 fi
5247 echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
5248 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
5249 ac_ext=$ac_save_ext
5250 G77=`test $ac_compiler_gnu = yes && echo yes`
5251 ac_test_FFLAGS=${FFLAGS+set}
5252 ac_save_FFLAGS=$FFLAGS
5253 FFLAGS=
5254 echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
5255 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
5256 if test "${ac_cv_prog_f77_g+set}" = set; then
5257   echo $ECHO_N "(cached) $ECHO_C" >&6
5258 else
5259   FFLAGS=-g
5260 cat >conftest.$ac_ext <<_ACEOF
5261       program main
5262
5263       end
5264 _ACEOF
5265 rm -f conftest.$ac_objext
5266 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5267   (eval $ac_compile) 2>&5
5268   ac_status=$?
5269   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5270   (exit $ac_status); } &&
5271          { ac_try='test -s conftest.$ac_objext'
5272   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5273   (eval $ac_try) 2>&5
5274   ac_status=$?
5275   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5276   (exit $ac_status); }; }; then
5277   ac_cv_prog_f77_g=yes
5278 else
5279   echo "$as_me: failed program was:" >&5
5280 sed 's/^/| /' conftest.$ac_ext >&5
5281
5282 ac_cv_prog_f77_g=no
5283 fi
5284 rm -f conftest.$ac_objext conftest.$ac_ext
5285
5286 fi
5287 echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
5288 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
5289 if test "$ac_test_FFLAGS" = set; then
5290   FFLAGS=$ac_save_FFLAGS
5291 elif test $ac_cv_prog_f77_g = yes; then
5292   if test "$G77" = yes; then
5293     FFLAGS="-g -O2"
5294   else
5295     FFLAGS="-g"
5296   fi
5297 else
5298   if test "$G77" = yes; then
5299     FFLAGS="-O2"
5300   else
5301     FFLAGS=
5302   fi
5303 fi
5304 ac_ext=c
5305 ac_cpp='$CPP $CPPFLAGS'
5306 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5307 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5308 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5309
5310
5311
5312 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
5313
5314 # find the maximum length of command line arguments
5315 echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
5316 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
5317 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
5318   echo $ECHO_N "(cached) $ECHO_C" >&6
5319 else
5320     i=0
5321   testring="ABCD"
5322
5323   case $build_os in
5324   msdosdjgpp*)
5325     # On DJGPP, this test can blow up pretty badly due to problems in libc
5326     # (any single argument exceeding 2000 bytes causes a buffer overrun
5327     # during glob expansion).  Even if it were fixed, the result of this
5328     # check would be larger than it should be.
5329     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
5330     ;;
5331
5332   gnu*)
5333     # Under GNU Hurd, this test is not required because there is
5334     # no limit to the length of command line arguments.
5335     # Libtool will interpret -1 as no limit whatsoever
5336     lt_cv_sys_max_cmd_len=-1;
5337     ;;
5338
5339   cygwin* | mingw*)
5340     # On Win9x/ME, this test blows up -- it succeeds, but takes
5341     # about 5 minutes as the teststring grows exponentially.
5342     # Worse, since 9x/ME are not pre-emptively multitasking,
5343     # you end up with a "frozen" computer, even though with patience
5344     # the test eventually succeeds (with a max line length of 256k).
5345     # Instead, let's just punt: use the minimum linelength reported by
5346     # all of the supported platforms: 8192 (on NT/2K/XP).
5347     lt_cv_sys_max_cmd_len=8192;
5348     ;;
5349
5350  *)
5351     # If test is not a shell built-in, we'll probably end up computing a
5352     # maximum length that is only half of the actual maximum length, but
5353     # we can't tell.
5354     while (test "X"`$CONFIG_SHELL $0 --fallback-echo "X$testring" 2>/dev/null` \
5355                = "XX$testring") >/dev/null 2>&1 &&
5356             new_result=`expr "X$testring" : ".*" 2>&1` &&
5357             lt_cv_sys_max_cmd_len=$new_result &&
5358             test $i != 17 # 1/2 MB should be enough
5359     do
5360       i=`expr $i + 1`
5361       testring=$testring$testring
5362     done
5363     testring=
5364     # Add a significant safety factor because C++ compilers can tack on massive
5365     # amounts of additional arguments before passing them to the linker.
5366     # It appears as though 1/2 is a usable value.
5367     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5368     ;;
5369   esac
5370
5371 fi
5372
5373 if test -n $lt_cv_sys_max_cmd_len ; then
5374   echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
5375 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
5376 else
5377   echo "$as_me:$LINENO: result: none" >&5
5378 echo "${ECHO_T}none" >&6
5379 fi
5380
5381
5382
5383
5384 # Check for command to grab the raw symbol name followed by C symbol from nm.
5385 echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
5386 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
5387 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
5388   echo $ECHO_N "(cached) $ECHO_C" >&6
5389 else
5390
5391 # These are sane defaults that work on at least a few old systems.
5392 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
5393
5394 # Character class describing NM global symbol codes.
5395 symcode='[BCDEGRST]'
5396
5397 # Regexp to match symbols that can be accessed directly from C.
5398 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5399
5400 # Transform the above into a raw symbol and a C symbol.
5401 symxfrm='\1 \2\3 \3'
5402
5403 # Transform an extracted symbol line into a proper C declaration
5404 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
5405
5406 # Transform an extracted symbol line into symbol name and symbol address
5407 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'"
5408
5409 # Define system-specific variables.
5410 case $host_os in
5411 aix*)
5412   symcode='[BCDT]'
5413   ;;
5414 cygwin* | mingw* | pw32*)
5415   symcode='[ABCDGISTW]'
5416   ;;
5417 hpux*) # Its linker distinguishes data from code symbols
5418   if test "$host_cpu" = ia64; then
5419     symcode='[ABCDEGRST]'
5420   fi
5421   lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5422   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'"
5423   ;;
5424 irix* | nonstopux*)
5425   symcode='[BCDEGRST]'
5426   ;;
5427 osf*)
5428   symcode='[BCDEGQRST]'
5429   ;;
5430 solaris* | sysv5*)
5431   symcode='[BDT]'
5432   ;;
5433 sysv4)
5434   symcode='[DFNSTU]'
5435   ;;
5436 esac
5437
5438 # Handle CRLF in mingw tool chain
5439 opt_cr=
5440 case $build_os in
5441 mingw*)
5442   opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5443   ;;
5444 esac
5445
5446 # If we're using GNU nm, then use its standard symbol codes.
5447 case `$NM -V 2>&1` in
5448 *GNU* | *'with BFD'*)
5449   symcode='[ABCDGISTW]' ;;
5450 esac
5451
5452 # Try without a prefix undercore, then with it.
5453 for ac_symprfx in "" "_"; do
5454
5455   # Write the raw and C identifiers.
5456   lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
5457
5458   # Check to see that the pipe works correctly.
5459   pipe_works=no
5460
5461   rm -f conftest*
5462   cat > conftest.$ac_ext <<EOF
5463 #ifdef __cplusplus
5464 extern "C" {
5465 #endif
5466 char nm_test_var;
5467 void nm_test_func(){}
5468 #ifdef __cplusplus
5469 }
5470 #endif
5471 int main(){nm_test_var='a';nm_test_func();return(0);}
5472 EOF
5473
5474   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5475   (eval $ac_compile) 2>&5
5476   ac_status=$?
5477   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5478   (exit $ac_status); }; then
5479     # Now try to grab the symbols.
5480     nlist=conftest.nm
5481     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
5482   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
5483   ac_status=$?
5484   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5485   (exit $ac_status); } && test -s "$nlist"; then
5486       # Try sorting and uniquifying the output.
5487       if sort "$nlist" | uniq > "$nlist"T; then
5488         mv -f "$nlist"T "$nlist"
5489       else
5490         rm -f "$nlist"T
5491       fi
5492
5493       # Make sure that we snagged all the symbols we need.
5494       if grep ' nm_test_var$' "$nlist" >/dev/null; then
5495         if grep ' nm_test_func$' "$nlist" >/dev/null; then
5496           cat <<EOF > conftest.$ac_ext
5497 #ifdef __cplusplus
5498 extern "C" {
5499 #endif
5500
5501 EOF
5502           # Now generate the symbol file.
5503           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
5504
5505           cat <<EOF >> conftest.$ac_ext
5506 #if defined (__STDC__) && __STDC__
5507 # define lt_ptr_t void *
5508 #else
5509 # define lt_ptr_t char *
5510 # define const
5511 #endif
5512
5513 /* The mapping between symbol names and symbols. */
5514 const struct {
5515   const char *name;
5516   lt_ptr_t address;
5517 }
5518 lt_preloaded_symbols[] =
5519 {
5520 EOF
5521           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
5522           cat <<\EOF >> conftest.$ac_ext
5523   {0, (lt_ptr_t) 0}
5524 };
5525
5526 #ifdef __cplusplus
5527 }
5528 #endif
5529 EOF
5530           # Now try linking the two files.
5531           mv conftest.$ac_objext conftstm.$ac_objext
5532           lt_save_LIBS="$LIBS"
5533           lt_save_CFLAGS="$CFLAGS"
5534           LIBS="conftstm.$ac_objext"
5535           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5536           if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5537   (eval $ac_link) 2>&5
5538   ac_status=$?
5539   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5540   (exit $ac_status); } && test -s conftest${ac_exeext}; then
5541             pipe_works=yes
5542           fi
5543           LIBS="$lt_save_LIBS"
5544           CFLAGS="$lt_save_CFLAGS"
5545         else
5546           echo "cannot find nm_test_func in $nlist" >&5
5547         fi
5548       else
5549         echo "cannot find nm_test_var in $nlist" >&5
5550       fi
5551     else
5552       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5553     fi
5554   else
5555     echo "$progname: failed program was:" >&5
5556     cat conftest.$ac_ext >&5
5557   fi
5558   rm -f conftest* conftst*
5559
5560   # Do not use the global_symbol_pipe unless it works.
5561   if test "$pipe_works" = yes; then
5562     break
5563   else
5564     lt_cv_sys_global_symbol_pipe=
5565   fi
5566 done
5567
5568 fi
5569
5570 if test -z "$lt_cv_sys_global_symbol_pipe"; then
5571   lt_cv_sys_global_symbol_to_cdecl=
5572 fi
5573 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5574   echo "$as_me:$LINENO: result: failed" >&5
5575 echo "${ECHO_T}failed" >&6
5576 else
5577   echo "$as_me:$LINENO: result: ok" >&5
5578 echo "${ECHO_T}ok" >&6
5579 fi
5580
5581 echo "$as_me:$LINENO: checking for objdir" >&5
5582 echo $ECHO_N "checking for objdir... $ECHO_C" >&6
5583 if test "${lt_cv_objdir+set}" = set; then
5584   echo $ECHO_N "(cached) $ECHO_C" >&6
5585 else
5586   rm -f .libs 2>/dev/null
5587 mkdir .libs 2>/dev/null
5588 if test -d .libs; then
5589   lt_cv_objdir=.libs
5590 else
5591   # MS-DOS does not allow filenames that begin with a dot.
5592   lt_cv_objdir=_libs
5593 fi
5594 rmdir .libs 2>/dev/null
5595 fi
5596 echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
5597 echo "${ECHO_T}$lt_cv_objdir" >&6
5598 objdir=$lt_cv_objdir
5599
5600
5601
5602
5603
5604 case $host_os in
5605 aix3*)
5606   # AIX sometimes has problems with the GCC collect2 program.  For some
5607   # reason, if we set the COLLECT_NAMES environment variable, the problems
5608   # vanish in a puff of smoke.
5609   if test "X${COLLECT_NAMES+set}" != Xset; then
5610     COLLECT_NAMES=
5611     export COLLECT_NAMES
5612   fi
5613   ;;
5614 esac
5615
5616 # Sed substitution that helps us do robust quoting.  It backslashifies
5617 # metacharacters that are still active within double-quoted strings.
5618 Xsed='sed -e s/^X//'
5619 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
5620
5621 # Same as above, but do not quote variable references.
5622 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
5623
5624 # Sed substitution to delay expansion of an escaped shell variable in a
5625 # double_quote_subst'ed string.
5626 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5627
5628 # Sed substitution to avoid accidental globbing in evaled expressions
5629 no_glob_subst='s/\*/\\\*/g'
5630
5631 # Constants:
5632 rm="rm -f"
5633
5634 # Global variables:
5635 default_ofile=mklib
5636 can_build_shared=yes
5637
5638 # All known linkers require a `.a' archive for static linking (except M$VC,
5639 # which needs '.lib').
5640 libext=a
5641 ltmain="$ac_aux_dir/ltmain.sh"
5642 ofile="$default_ofile"
5643 with_gnu_ld="$lt_cv_prog_gnu_ld"
5644
5645 if test -n "$ac_tool_prefix"; then
5646   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5647 set dummy ${ac_tool_prefix}ar; ac_word=$2
5648 echo "$as_me:$LINENO: checking for $ac_word" >&5
5649 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5650 if test "${ac_cv_prog_AR+set}" = set; then
5651   echo $ECHO_N "(cached) $ECHO_C" >&6
5652 else
5653   if test -n "$AR"; then
5654   ac_cv_prog_AR="$AR" # Let the user override the test.
5655 else
5656 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5657 for as_dir in $PATH
5658 do
5659   IFS=$as_save_IFS
5660   test -z "$as_dir" && as_dir=.
5661   for ac_exec_ext in '' $ac_executable_extensions; do
5662   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5663     ac_cv_prog_AR="${ac_tool_prefix}ar"
5664     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5665     break 2
5666   fi
5667 done
5668 done
5669
5670 fi
5671 fi
5672 AR=$ac_cv_prog_AR
5673 if test -n "$AR"; then
5674   echo "$as_me:$LINENO: result: $AR" >&5
5675 echo "${ECHO_T}$AR" >&6
5676 else
5677   echo "$as_me:$LINENO: result: no" >&5
5678 echo "${ECHO_T}no" >&6
5679 fi
5680
5681 fi
5682 if test -z "$ac_cv_prog_AR"; then
5683   ac_ct_AR=$AR
5684   # Extract the first word of "ar", so it can be a program name with args.
5685 set dummy ar; ac_word=$2
5686 echo "$as_me:$LINENO: checking for $ac_word" >&5
5687 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5688 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
5689   echo $ECHO_N "(cached) $ECHO_C" >&6
5690 else
5691   if test -n "$ac_ct_AR"; then
5692   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5693 else
5694 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5695 for as_dir in $PATH
5696 do
5697   IFS=$as_save_IFS
5698   test -z "$as_dir" && as_dir=.
5699   for ac_exec_ext in '' $ac_executable_extensions; do
5700   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5701     ac_cv_prog_ac_ct_AR="ar"
5702     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5703     break 2
5704   fi
5705 done
5706 done
5707
5708   test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
5709 fi
5710 fi
5711 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5712 if test -n "$ac_ct_AR"; then
5713   echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
5714 echo "${ECHO_T}$ac_ct_AR" >&6
5715 else
5716   echo "$as_me:$LINENO: result: no" >&5
5717 echo "${ECHO_T}no" >&6
5718 fi
5719
5720   AR=$ac_ct_AR
5721 else
5722   AR="$ac_cv_prog_AR"
5723 fi
5724
5725 if test -n "$ac_tool_prefix"; then
5726   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5727 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5728 echo "$as_me:$LINENO: checking for $ac_word" >&5
5729 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5730 if test "${ac_cv_prog_RANLIB+set}" = set; then
5731   echo $ECHO_N "(cached) $ECHO_C" >&6
5732 else
5733   if test -n "$RANLIB"; then
5734   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5735 else
5736 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5737 for as_dir in $PATH
5738 do
5739   IFS=$as_save_IFS
5740   test -z "$as_dir" && as_dir=.
5741   for ac_exec_ext in '' $ac_executable_extensions; do
5742   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5743     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5744     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5745     break 2
5746   fi
5747 done
5748 done
5749
5750 fi
5751 fi
5752 RANLIB=$ac_cv_prog_RANLIB
5753 if test -n "$RANLIB"; then
5754   echo "$as_me:$LINENO: result: $RANLIB" >&5
5755 echo "${ECHO_T}$RANLIB" >&6
5756 else
5757   echo "$as_me:$LINENO: result: no" >&5
5758 echo "${ECHO_T}no" >&6
5759 fi
5760
5761 fi
5762 if test -z "$ac_cv_prog_RANLIB"; then
5763   ac_ct_RANLIB=$RANLIB
5764   # Extract the first word of "ranlib", so it can be a program name with args.
5765 set dummy ranlib; ac_word=$2
5766 echo "$as_me:$LINENO: checking for $ac_word" >&5
5767 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5768 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5769   echo $ECHO_N "(cached) $ECHO_C" >&6
5770 else
5771   if test -n "$ac_ct_RANLIB"; then
5772   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5773 else
5774 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5775 for as_dir in $PATH
5776 do
5777   IFS=$as_save_IFS
5778   test -z "$as_dir" && as_dir=.
5779   for ac_exec_ext in '' $ac_executable_extensions; do
5780   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5781     ac_cv_prog_ac_ct_RANLIB="ranlib"
5782     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5783     break 2
5784   fi
5785 done
5786 done
5787
5788   test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
5789 fi
5790 fi
5791 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5792 if test -n "$ac_ct_RANLIB"; then
5793   echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5794 echo "${ECHO_T}$ac_ct_RANLIB" >&6
5795 else
5796   echo "$as_me:$LINENO: result: no" >&5
5797 echo "${ECHO_T}no" >&6
5798 fi
5799
5800   RANLIB=$ac_ct_RANLIB
5801 else
5802   RANLIB="$ac_cv_prog_RANLIB"
5803 fi
5804
5805 if test -n "$ac_tool_prefix"; then
5806   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5807 set dummy ${ac_tool_prefix}strip; ac_word=$2
5808 echo "$as_me:$LINENO: checking for $ac_word" >&5
5809 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5810 if test "${ac_cv_prog_STRIP+set}" = set; then
5811   echo $ECHO_N "(cached) $ECHO_C" >&6
5812 else
5813   if test -n "$STRIP"; then
5814   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5815 else
5816 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5817 for as_dir in $PATH
5818 do
5819   IFS=$as_save_IFS
5820   test -z "$as_dir" && as_dir=.
5821   for ac_exec_ext in '' $ac_executable_extensions; do
5822   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5823     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5824     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5825     break 2
5826   fi
5827 done
5828 done
5829
5830 fi
5831 fi
5832 STRIP=$ac_cv_prog_STRIP
5833 if test -n "$STRIP"; then
5834   echo "$as_me:$LINENO: result: $STRIP" >&5
5835 echo "${ECHO_T}$STRIP" >&6
5836 else
5837   echo "$as_me:$LINENO: result: no" >&5
5838 echo "${ECHO_T}no" >&6
5839 fi
5840
5841 fi
5842 if test -z "$ac_cv_prog_STRIP"; then
5843   ac_ct_STRIP=$STRIP
5844   # Extract the first word of "strip", so it can be a program name with args.
5845 set dummy strip; ac_word=$2
5846 echo "$as_me:$LINENO: checking for $ac_word" >&5
5847 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5848 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
5849   echo $ECHO_N "(cached) $ECHO_C" >&6
5850 else
5851   if test -n "$ac_ct_STRIP"; then
5852   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5853 else
5854 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5855 for as_dir in $PATH
5856 do
5857   IFS=$as_save_IFS
5858   test -z "$as_dir" && as_dir=.
5859   for ac_exec_ext in '' $ac_executable_extensions; do
5860   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5861     ac_cv_prog_ac_ct_STRIP="strip"
5862     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5863     break 2
5864   fi
5865 done
5866 done
5867
5868   test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
5869 fi
5870 fi
5871 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5872 if test -n "$ac_ct_STRIP"; then
5873   echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
5874 echo "${ECHO_T}$ac_ct_STRIP" >&6
5875 else
5876   echo "$as_me:$LINENO: result: no" >&5
5877 echo "${ECHO_T}no" >&6
5878 fi
5879
5880   STRIP=$ac_ct_STRIP
5881 else
5882   STRIP="$ac_cv_prog_STRIP"
5883 fi
5884
5885
5886 old_CC="$CC"
5887 old_CFLAGS="$CFLAGS"
5888
5889 # Set sane defaults for various variables
5890 test -z "$AR" && AR=ar
5891 test -z "$AR_FLAGS" && AR_FLAGS=cru
5892 test -z "$AS" && AS=as
5893 test -z "$CC" && CC=cc
5894 test -z "$LTCC" && LTCC=$CC
5895 test -z "$DLLTOOL" && DLLTOOL=dlltool
5896 test -z "$LD" && LD=ld
5897 test -z "$LN_S" && LN_S="ln -s"
5898 test -z "$MAGIC_CMD" && MAGIC_CMD=file
5899 test -z "$NM" && NM=nm
5900 test -z "$SED" && SED=sed
5901 test -z "$OBJDUMP" && OBJDUMP=objdump
5902 test -z "$RANLIB" && RANLIB=:
5903 test -z "$STRIP" && STRIP=:
5904 test -z "$ac_objext" && ac_objext=o
5905
5906 # Determine commands to create old-style static archives.
5907 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
5908 old_postinstall_cmds='chmod 644 $oldlib'
5909 old_postuninstall_cmds=
5910
5911 if test -n "$RANLIB"; then
5912   case $host_os in
5913   openbsd*)
5914     old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
5915     ;;
5916   *)
5917     old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
5918     ;;
5919   esac
5920   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
5921 fi
5922
5923 # Only perform the check for file, if the check method requires it
5924 case $deplibs_check_method in
5925 file_magic*)
5926   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
5927     echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
5928 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
5929 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
5930   echo $ECHO_N "(cached) $ECHO_C" >&6
5931 else
5932   case $MAGIC_CMD in
5933 [\\/*] |  ?:[\\/]*)
5934   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
5935   ;;
5936 *)
5937   lt_save_MAGIC_CMD="$MAGIC_CMD"
5938   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5939   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
5940   for ac_dir in $ac_dummy; do
5941     IFS="$lt_save_ifs"
5942     test -z "$ac_dir" && ac_dir=.
5943     if test -f $ac_dir/${ac_tool_prefix}file; then
5944       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
5945       if test -n "$file_magic_test_file"; then
5946         case $deplibs_check_method in
5947         "file_magic "*)
5948           file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
5949           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5950           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
5951             $EGREP "$file_magic_regex" > /dev/null; then
5952             :
5953           else
5954             cat <<EOF 1>&2
5955
5956 *** Warning: the command libtool uses to detect shared libraries,
5957 *** $file_magic_cmd, produces output that libtool cannot recognize.
5958 *** The result is that libtool may fail to recognize shared libraries
5959 *** as such.  This will affect the creation of libtool libraries that
5960 *** depend on shared libraries, but programs linked with such libtool
5961 *** libraries will work regardless of this problem.  Nevertheless, you
5962 *** may want to report the problem to your system manager and/or to
5963 *** bug-libtool@gnu.org
5964
5965 EOF
5966           fi ;;
5967         esac
5968       fi
5969       break
5970     fi
5971   done
5972   IFS="$lt_save_ifs"
5973   MAGIC_CMD="$lt_save_MAGIC_CMD"
5974   ;;
5975 esac
5976 fi
5977
5978 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5979 if test -n "$MAGIC_CMD"; then
5980   echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
5981 echo "${ECHO_T}$MAGIC_CMD" >&6
5982 else
5983   echo "$as_me:$LINENO: result: no" >&5
5984 echo "${ECHO_T}no" >&6
5985 fi
5986
5987 if test -z "$lt_cv_path_MAGIC_CMD"; then
5988   if test -n "$ac_tool_prefix"; then
5989     echo "$as_me:$LINENO: checking for file" >&5
5990 echo $ECHO_N "checking for file... $ECHO_C" >&6
5991 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
5992   echo $ECHO_N "(cached) $ECHO_C" >&6
5993 else
5994   case $MAGIC_CMD in
5995 [\\/*] |  ?:[\\/]*)
5996   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
5997   ;;
5998 *)
5999   lt_save_MAGIC_CMD="$MAGIC_CMD"
6000   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6001   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6002   for ac_dir in $ac_dummy; do
6003     IFS="$lt_save_ifs"
6004     test -z "$ac_dir" && ac_dir=.
6005     if test -f $ac_dir/file; then
6006       lt_cv_path_MAGIC_CMD="$ac_dir/file"
6007       if test -n "$file_magic_test_file"; then
6008         case $deplibs_check_method in
6009         "file_magic "*)
6010           file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
6011           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6012           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6013             $EGREP "$file_magic_regex" > /dev/null; then
6014             :
6015           else
6016             cat <<EOF 1>&2
6017
6018 *** Warning: the command libtool uses to detect shared libraries,
6019 *** $file_magic_cmd, produces output that libtool cannot recognize.
6020 *** The result is that libtool may fail to recognize shared libraries
6021 *** as such.  This will affect the creation of libtool libraries that
6022 *** depend on shared libraries, but programs linked with such libtool
6023 *** libraries will work regardless of this problem.  Nevertheless, you
6024 *** may want to report the problem to your system manager and/or to
6025 *** bug-libtool@gnu.org
6026
6027 EOF
6028           fi ;;
6029         esac
6030       fi
6031       break
6032     fi
6033   done
6034   IFS="$lt_save_ifs"
6035   MAGIC_CMD="$lt_save_MAGIC_CMD"
6036   ;;
6037 esac
6038 fi
6039
6040 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6041 if test -n "$MAGIC_CMD"; then
6042   echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6043 echo "${ECHO_T}$MAGIC_CMD" >&6
6044 else
6045   echo "$as_me:$LINENO: result: no" >&5
6046 echo "${ECHO_T}no" >&6
6047 fi
6048
6049   else
6050     MAGIC_CMD=:
6051   fi
6052 fi
6053
6054   fi
6055   ;;
6056 esac
6057
6058 enable_dlopen=no
6059 enable_win32_dll=no
6060
6061 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
6062 if test "${enable_libtool_lock+set}" = set; then
6063   enableval="$enable_libtool_lock"
6064
6065 fi;
6066 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6067
6068
6069 # Check whether --with-pic or --without-pic was given.
6070 if test "${with_pic+set}" = set; then
6071   withval="$with_pic"
6072   pic_mode="$withval"
6073 else
6074   pic_mode=default
6075 fi;
6076 test -z "$pic_mode" && pic_mode=default
6077
6078 # Use C for the default configuration in the libtool script
6079 tagname=
6080 lt_save_CC="$CC"
6081 ac_ext=c
6082 ac_cpp='$CPP $CPPFLAGS'
6083 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6084 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6085 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6086
6087
6088 # Source file extension for C test sources.
6089 ac_ext=c
6090
6091 # Object file extension for compiled C test sources.
6092 objext=o
6093 objext=$objext
6094
6095 # Code to be used in simple compile tests
6096 lt_simple_compile_test_code="int some_variable = 0;\n"
6097
6098 # Code to be used in simple link tests
6099 lt_simple_link_test_code='int main(){return(0);}\n'
6100
6101
6102 # If no C compiler was specified, use CC.
6103 LTCC=${LTCC-"$CC"}
6104
6105 # Allow CC to be a program name with arguments.
6106 compiler=$CC
6107
6108
6109 #
6110 # Check for any special shared library compilation flags.
6111 #
6112 lt_prog_cc_shlib=
6113 if test "$GCC" = no; then
6114   case $host_os in
6115   sco3.2v5*)
6116     lt_prog_cc_shlib='-belf'
6117     ;;
6118   esac
6119 fi
6120 if test -n "$lt_prog_cc_shlib"; then
6121   { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5
6122 echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;}
6123   if echo "$old_CC $old_CFLAGS " | grep "[      ]$lt_prog_cc_shlib[     ]" >/dev/null; then :
6124   else
6125     { echo "$as_me:$LINENO: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
6126 echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
6127     lt_cv_prog_cc_can_build_shared=no
6128   fi
6129 fi
6130
6131
6132 #
6133 # Check to make sure the static flag actually works.
6134 #
6135 echo "$as_me:$LINENO: checking if $compiler static flag $lt_prog_compiler_static works" >&5
6136 echo $ECHO_N "checking if $compiler static flag $lt_prog_compiler_static works... $ECHO_C" >&6
6137 if test "${lt_prog_compiler_static_works+set}" = set; then
6138   echo $ECHO_N "(cached) $ECHO_C" >&6
6139 else
6140   lt_prog_compiler_static_works=no
6141    save_LDFLAGS="$LDFLAGS"
6142    LDFLAGS="$LDFLAGS $lt_prog_compiler_static"
6143    printf "$lt_simple_link_test_code" > conftest.$ac_ext
6144    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
6145      # The compiler can only warn and ignore the option if not recognized
6146      # So say no if there are warnings
6147      if test -s conftest.err; then
6148        # Append any errors to the config.log.
6149        cat conftest.err 1>&5
6150      else
6151        lt_prog_compiler_static_works=yes
6152      fi
6153    fi
6154    $rm conftest*
6155    LDFLAGS="$save_LDFLAGS"
6156
6157 fi
6158 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
6159 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
6160
6161 if test x"$lt_prog_compiler_static_works" = xyes; then
6162     :
6163 else
6164     lt_prog_compiler_static=
6165 fi
6166
6167
6168
6169 ## CAVEAT EMPTOR:
6170 ## There is no encapsulation within the following macros, do not change
6171 ## the running order or otherwise move them around unless you know exactly
6172 ## what you are doing...
6173
6174 lt_prog_compiler_no_builtin_flag=
6175
6176 if test "$GCC" = yes; then
6177   lt_prog_compiler_no_builtin_flag=' -fno-builtin'
6178
6179   echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
6180 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
6181 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
6182   echo $ECHO_N "(cached) $ECHO_C" >&6
6183 else
6184   lt_cv_prog_compiler_rtti_exceptions=no
6185   ac_outfile=conftest.$ac_objext
6186    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6187    lt_compiler_flag="-fno-rtti -fno-exceptions"
6188    # Insert the option either (1) after the last *FLAGS variable, or
6189    # (2) before a word containing "conftest.", or (3) at the end.
6190    # Note that $ac_compile itself does not contain backslashes and begins
6191    # with a dollar sign (not a hyphen), so the echo should work correctly.
6192    # The option is referenced via a variable to avoid confusing sed.
6193    lt_compile=`echo "$ac_compile" | $SED \
6194    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
6195    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6196    -e 's:$: $lt_compiler_flag:'`
6197    (eval echo "\"\$as_me:6197: $lt_compile\"" >&5)
6198    (eval "$lt_compile" 2>conftest.err)
6199    ac_status=$?
6200    cat conftest.err >&5
6201    echo "$as_me:6201: \$? = $ac_status" >&5
6202    if (exit $ac_status) && test -s "$ac_outfile"; then
6203      # The compiler can only warn and ignore the option if not recognized
6204      # So say no if there are warnings
6205      if test ! -s conftest.err; then
6206        lt_cv_prog_compiler_rtti_exceptions=yes
6207      fi
6208    fi
6209    $rm conftest*
6210
6211 fi
6212 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
6213 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
6214
6215 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
6216     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
6217 else
6218     :
6219 fi
6220
6221 fi
6222
6223 lt_prog_compiler_wl=
6224 lt_prog_compiler_pic=
6225 lt_prog_compiler_static=
6226
6227 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
6228 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
6229
6230   if test "$GCC" = yes; then
6231     lt_prog_compiler_wl='-Wl,'
6232     lt_prog_compiler_static='-static'
6233
6234     case $host_os in
6235       aix*)
6236       # All AIX code is PIC.
6237       if test "$host_cpu" = ia64; then
6238         # AIX 5 now supports IA64 processor
6239         lt_prog_compiler_static='-Bstatic'
6240       fi
6241       ;;
6242
6243     amigaos*)
6244       # FIXME: we need at least 68020 code to build shared libraries, but
6245       # adding the `-m68020' flag to GCC prevents building anything better,
6246       # like `-m68040'.
6247       lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
6248       ;;
6249
6250     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
6251       # PIC is the default for these OSes.
6252       ;;
6253
6254     mingw* | pw32* | os2*)
6255       # This hack is so that the source file can tell whether it is being
6256       # built for inclusion in a dll (and should export symbols for example).
6257       lt_prog_compiler_pic='-DDLL_EXPORT'
6258       ;;
6259
6260     darwin* | rhapsody*)
6261       # PIC is the default on this platform
6262       # Common symbols not allowed in MH_DYLIB files
6263       lt_prog_compiler_pic='-fno-common'
6264       ;;
6265
6266     msdosdjgpp*)
6267       # Just because we use GCC doesn't mean we suddenly get shared libraries
6268       # on systems that don't support them.
6269       lt_prog_compiler_can_build_shared=no
6270       enable_shared=no
6271       ;;
6272
6273     sysv4*MP*)
6274       if test -d /usr/nec; then
6275         lt_prog_compiler_pic=-Kconform_pic
6276       fi
6277       ;;
6278
6279     hpux*)
6280       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6281       # not for PA HP-UX.
6282       case "$host_cpu" in
6283       hppa*64*|ia64*)
6284         # +Z the default
6285         ;;
6286       *)
6287         lt_prog_compiler_pic='-fPIC'
6288         ;;
6289       esac
6290       ;;
6291
6292     *)
6293       lt_prog_compiler_pic='-fPIC'
6294       ;;
6295     esac
6296   else
6297     # PORTME Check for flag to pass linker flags through the system compiler.
6298     case $host_os in
6299     aix*)
6300       lt_prog_compiler_wl='-Wl,'
6301       if test "$host_cpu" = ia64; then
6302         # AIX 5 now supports IA64 processor
6303         lt_prog_compiler_static='-Bstatic'
6304       else
6305         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
6306       fi
6307       ;;
6308
6309     mingw* | pw32* | os2*)
6310       # This hack is so that the source file can tell whether it is being
6311       # built for inclusion in a dll (and should export symbols for example).
6312       lt_prog_compiler_pic='-DDLL_EXPORT'
6313       ;;
6314
6315     hpux9* | hpux10* | hpux11*)
6316       lt_prog_compiler_wl='-Wl,'
6317       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6318       # not for PA HP-UX.
6319       case "$host_cpu" in
6320       hppa*64*|ia64*)
6321         # +Z the default
6322         ;;
6323       *)
6324         lt_prog_compiler_pic='+Z'
6325         ;;
6326       esac
6327       # Is there a better lt_prog_compiler_static that works with the bundled CC?
6328       lt_prog_compiler_static='${wl}-a ${wl}archive'
6329       ;;
6330
6331     irix5* | irix6* | nonstopux*)
6332       lt_prog_compiler_wl='-Wl,'
6333       # PIC (with -KPIC) is the default.
6334       lt_prog_compiler_static='-non_shared'
6335       ;;
6336
6337     newsos6)
6338       lt_prog_compiler_pic='-KPIC'
6339       lt_prog_compiler_static='-Bstatic'
6340       ;;
6341
6342     linux*)
6343       case $CC in
6344       icc|ecc)
6345         lt_prog_compiler_wl='-Wl,'
6346         lt_prog_compiler_pic='-KPIC'
6347         lt_prog_compiler_static='-static'
6348         ;;
6349       ccc)
6350         lt_prog_compiler_wl='-Wl,'
6351         # All Alpha code is PIC.
6352         lt_prog_compiler_static='-non_shared'
6353         ;;
6354       esac
6355       ;;
6356
6357     osf3* | osf4* | osf5*)
6358       lt_prog_compiler_wl='-Wl,'
6359       # All OSF/1 code is PIC.
6360       lt_prog_compiler_static='-non_shared'
6361       ;;
6362
6363     sco3.2v5*)
6364       lt_prog_compiler_pic='-Kpic'
6365       lt_prog_compiler_static='-dn'
6366       ;;
6367
6368     solaris*)
6369       lt_prog_compiler_wl='-Wl,'
6370       lt_prog_compiler_pic='-KPIC'
6371       lt_prog_compiler_static='-Bstatic'
6372       ;;
6373
6374     sunos4*)
6375       lt_prog_compiler_wl='-Qoption ld '
6376       lt_prog_compiler_pic='-PIC'
6377       lt_prog_compiler_static='-Bstatic'
6378       ;;
6379
6380     sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
6381       lt_prog_compiler_wl='-Wl,'
6382       lt_prog_compiler_pic='-KPIC'
6383       lt_prog_compiler_static='-Bstatic'
6384       ;;
6385
6386     sysv4*MP*)
6387       if test -d /usr/nec ;then
6388         lt_prog_compiler_pic='-Kconform_pic'
6389         lt_prog_compiler_static='-Bstatic'
6390       fi
6391       ;;
6392
6393     uts4*)
6394       lt_prog_compiler_pic='-pic'
6395       lt_prog_compiler_static='-Bstatic'
6396       ;;
6397
6398     *)
6399       lt_prog_compiler_can_build_shared=no
6400       ;;
6401     esac
6402   fi
6403
6404 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
6405 echo "${ECHO_T}$lt_prog_compiler_pic" >&6
6406
6407 #
6408 # Check to make sure the PIC flag actually works.
6409 #
6410 if test -n "$lt_prog_compiler_pic"; then
6411   echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
6412 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
6413 if test "${lt_prog_compiler_pic_works+set}" = set; then
6414   echo $ECHO_N "(cached) $ECHO_C" >&6
6415 else
6416   lt_prog_compiler_pic_works=no
6417   ac_outfile=conftest.$ac_objext
6418    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6419    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
6420    # Insert the option either (1) after the last *FLAGS variable, or
6421    # (2) before a word containing "conftest.", or (3) at the end.
6422    # Note that $ac_compile itself does not contain backslashes and begins
6423    # with a dollar sign (not a hyphen), so the echo should work correctly.
6424    # The option is referenced via a variable to avoid confusing sed.
6425    lt_compile=`echo "$ac_compile" | $SED \
6426    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
6427    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6428    -e 's:$: $lt_compiler_flag:'`
6429    (eval echo "\"\$as_me:6429: $lt_compile\"" >&5)
6430    (eval "$lt_compile" 2>conftest.err)
6431    ac_status=$?
6432    cat conftest.err >&5
6433    echo "$as_me:6433: \$? = $ac_status" >&5
6434    if (exit $ac_status) && test -s "$ac_outfile"; then
6435      # The compiler can only warn and ignore the option if not recognized
6436      # So say no if there are warnings
6437      if test ! -s conftest.err; then
6438        lt_prog_compiler_pic_works=yes
6439      fi
6440    fi
6441    $rm conftest*
6442
6443 fi
6444 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
6445 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
6446
6447 if test x"$lt_prog_compiler_pic_works" = xyes; then
6448     case $lt_prog_compiler_pic in
6449      "" | " "*) ;;
6450      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
6451      esac
6452 else
6453     lt_prog_compiler_pic=
6454      lt_prog_compiler_can_build_shared=no
6455 fi
6456
6457 fi
6458 case "$host_os" in
6459   # For platforms which do not support PIC, -DPIC is meaningless:
6460   *djgpp*)
6461     lt_prog_compiler_pic=
6462     ;;
6463   *)
6464     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
6465     ;;
6466 esac
6467
6468 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
6469 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
6470 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
6471   echo $ECHO_N "(cached) $ECHO_C" >&6
6472 else
6473   lt_cv_prog_compiler_c_o=no
6474    $rm -r conftest 2>/dev/null
6475    mkdir conftest
6476    cd conftest
6477    mkdir out
6478    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6479
6480    # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
6481    # that will create temporary files in the current directory regardless of
6482    # the output directory.  Thus, making CWD read-only will cause this test
6483    # to fail, enabling locking or at least warning the user not to do parallel
6484    # builds.
6485    chmod -w .
6486
6487    lt_compiler_flag="-o out/conftest2.$ac_objext"
6488    # Insert the option either (1) after the last *FLAGS variable, or
6489    # (2) before a word containing "conftest.", or (3) at the end.
6490    # Note that $ac_compile itself does not contain backslashes and begins
6491    # with a dollar sign (not a hyphen), so the echo should work correctly.
6492    lt_compile=`echo "$ac_compile" | $SED \
6493    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
6494    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6495    -e 's:$: $lt_compiler_flag:'`
6496    (eval echo "\"\$as_me:6496: $lt_compile\"" >&5)
6497    (eval "$lt_compile" 2>out/conftest.err)
6498    ac_status=$?
6499    cat out/conftest.err >&5
6500    echo "$as_me:6500: \$? = $ac_status" >&5
6501    if (exit $ac_status) && test -s out/conftest2.$ac_objext
6502    then
6503      # The compiler can only warn and ignore the option if not recognized
6504      # So say no if there are warnings
6505      if test ! -s out/conftest.err; then
6506        lt_cv_prog_compiler_c_o=yes
6507      fi
6508    fi
6509    chmod u+w .
6510    $rm conftest* out/*
6511    rmdir out
6512    cd ..
6513    rmdir conftest
6514    $rm conftest*
6515
6516 fi
6517 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
6518 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
6519
6520
6521 hard_links="nottested"
6522 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
6523   # do not overwrite the value of need_locks provided by the user
6524   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
6525 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
6526   hard_links=yes
6527   $rm conftest*
6528   ln conftest.a conftest.b 2>/dev/null && hard_links=no
6529   touch conftest.a
6530   ln conftest.a conftest.b 2>&5 || hard_links=no
6531   ln conftest.a conftest.b 2>/dev/null && hard_links=no
6532   echo "$as_me:$LINENO: result: $hard_links" >&5
6533 echo "${ECHO_T}$hard_links" >&6
6534   if test "$hard_links" = no; then
6535     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
6536 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
6537     need_locks=warn
6538   fi
6539 else
6540   need_locks=no
6541 fi
6542
6543 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
6544 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
6545
6546   runpath_var=
6547   allow_undefined_flag=
6548   enable_shared_with_static_runtimes=no
6549   archive_cmds=
6550   archive_expsym_cmds=
6551   old_archive_From_new_cmds=
6552   old_archive_from_expsyms_cmds=
6553   export_dynamic_flag_spec=
6554   whole_archive_flag_spec=
6555   thread_safe_flag_spec=
6556   hardcode_libdir_flag_spec=
6557   hardcode_libdir_flag_spec_ld=
6558   hardcode_libdir_separator=
6559   hardcode_direct=no
6560   hardcode_minus_L=no
6561   hardcode_shlibpath_var=unsupported
6562   link_all_deplibs=unknown
6563   hardcode_automatic=no
6564   module_cmds=
6565   module_expsym_cmds=
6566   always_export_symbols=no
6567   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
6568   # include_expsyms should be a list of space-separated symbols to be *always*
6569   # included in the symbol list
6570   include_expsyms=
6571   # exclude_expsyms can be an extended regexp of symbols to exclude
6572   # it will be wrapped by ` (' and `)$', so one must not match beginning or
6573   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
6574   # as well as any symbol that contains `d'.
6575   exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
6576   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
6577   # platforms (ab)use it in PIC code, but their linkers get confused if
6578   # the symbol is explicitly referenced.  Since portable code cannot
6579   # rely on this symbol name, it's probably fine to never include it in
6580   # preloaded symbol tables.
6581   extract_expsyms_cmds=
6582
6583   case $host_os in
6584   cygwin* | mingw* | pw32*)
6585     # FIXME: the MSVC++ port hasn't been tested in a loooong time
6586     # When not using gcc, we currently assume that we are using
6587     # Microsoft Visual C++.
6588     if test "$GCC" != yes; then
6589       with_gnu_ld=no
6590     fi
6591     ;;
6592   openbsd*)
6593     with_gnu_ld=no
6594     ;;
6595   esac
6596
6597   ld_shlibs=yes
6598   if test "$with_gnu_ld" = yes; then
6599     # If archive_cmds runs LD, not CC, wlarc should be empty
6600     wlarc='${wl}'
6601
6602     # See if GNU ld supports shared libraries.
6603     case $host_os in
6604     aix3* | aix4* | aix5*)
6605       # On AIX/PPC, the GNU linker is very broken
6606       if test "$host_cpu" != ia64; then
6607         ld_shlibs=no
6608         cat <<EOF 1>&2
6609
6610 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
6611 *** to be unable to reliably create shared libraries on AIX.
6612 *** Therefore, libtool is disabling shared libraries support.  If you
6613 *** really care for shared libraries, you may want to modify your PATH
6614 *** so that a non-GNU linker is found, and then restart.
6615
6616 EOF
6617       fi
6618       ;;
6619
6620     amigaos*)
6621       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)'
6622       hardcode_libdir_flag_spec='-L$libdir'
6623       hardcode_minus_L=yes
6624
6625       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
6626       # that the semantics of dynamic libraries on AmigaOS, at least up
6627       # to version 4, is to share data among multiple programs linked
6628       # with the same dynamic library.  Since this doesn't match the
6629       # behavior of shared libraries on other platforms, we can't use
6630       # them.
6631       ld_shlibs=no
6632       ;;
6633
6634     beos*)
6635       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6636         allow_undefined_flag=unsupported
6637         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
6638         # support --undefined.  This deserves some investigation.  FIXME
6639         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6640       else
6641         ld_shlibs=no
6642       fi
6643       ;;
6644
6645     cygwin* | mingw* | pw32*)
6646       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
6647       # as there is no search path for DLLs.
6648       hardcode_libdir_flag_spec='-L$libdir'
6649       allow_undefined_flag=unsupported
6650       always_export_symbols=no
6651       enable_shared_with_static_runtimes=yes
6652       export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
6653
6654       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
6655         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
6656         # If the export-symbols file already is a .def file (1st line
6657         # is EXPORTS), use it as is; otherwise, prepend...
6658         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
6659           cp $export_symbols $output_objdir/$soname.def;
6660         else
6661           echo EXPORTS > $output_objdir/$soname.def;
6662           cat $export_symbols >> $output_objdir/$soname.def;
6663         fi~
6664         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
6665       else
6666         ld_shlibs=no
6667       fi
6668       ;;
6669
6670     netbsd*)
6671       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6672         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
6673         wlarc=
6674       else
6675         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6676         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6677       fi
6678       ;;
6679
6680     solaris* | sysv5*)
6681       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
6682         ld_shlibs=no
6683         cat <<EOF 1>&2
6684
6685 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
6686 *** create shared libraries on Solaris systems.  Therefore, libtool
6687 *** is disabling shared libraries support.  We urge you to upgrade GNU
6688 *** binutils to release 2.9.1 or newer.  Another option is to modify
6689 *** your PATH or compiler configuration so that the native linker is
6690 *** used, and then restart.
6691
6692 EOF
6693       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6694         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6695         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6696       else
6697         ld_shlibs=no
6698       fi
6699       ;;
6700
6701     sunos4*)
6702       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6703       wlarc=
6704       hardcode_direct=yes
6705       hardcode_shlibpath_var=no
6706       ;;
6707
6708     *)
6709       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6710         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6711         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6712       else
6713         ld_shlibs=no
6714       fi
6715       ;;
6716     esac
6717
6718     if test "$ld_shlibs" = yes; then
6719       runpath_var=LD_RUN_PATH
6720       hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
6721       export_dynamic_flag_spec='${wl}--export-dynamic'
6722       # ancient GNU ld didn't support --whole-archive et. al.
6723       if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
6724         whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
6725       else
6726         whole_archive_flag_spec=
6727       fi
6728     fi
6729   else
6730     # PORTME fill in a description of your system's linker (not GNU ld)
6731     case $host_os in
6732     aix3*)
6733       allow_undefined_flag=unsupported
6734       always_export_symbols=yes
6735       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'
6736       # Note: this linker hardcodes the directories in LIBPATH if there
6737       # are no directories specified by -L.
6738       hardcode_minus_L=yes
6739       if test "$GCC" = yes && test -z "$link_static_flag"; then
6740         # Neither direct hardcoding nor static linking is supported with a
6741         # broken collect2.
6742         hardcode_direct=unsupported
6743       fi
6744       ;;
6745
6746     aix4* | aix5*)
6747       if test "$host_cpu" = ia64; then
6748         # On IA64, the linker does run time linking by default, so we don't
6749         # have to do anything special.
6750         aix_use_runtimelinking=no
6751         exp_sym_flag='-Bexport'
6752         no_entry_flag=""
6753       else
6754         # If we're using GNU nm, then we don't want the "-C" option.
6755         # -C means demangle to AIX nm, but means don't demangle with GNU nm
6756         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
6757           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'
6758         else
6759           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'
6760         fi
6761         aix_use_runtimelinking=no
6762
6763         # Test if we are trying to use run time linking or normal
6764         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
6765         # need to do runtime linking.
6766         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
6767           for ld_flag in $LDFLAGS; do
6768           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
6769             aix_use_runtimelinking=yes
6770             break
6771           fi
6772           done
6773         esac
6774
6775         exp_sym_flag='-bexport'
6776         no_entry_flag='-bnoentry'
6777       fi
6778
6779       # When large executables or shared objects are built, AIX ld can
6780       # have problems creating the table of contents.  If linking a library
6781       # or program results in "error TOC overflow" add -mminimal-toc to
6782       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
6783       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
6784
6785       archive_cmds=''
6786       hardcode_direct=yes
6787       hardcode_libdir_separator=':'
6788       link_all_deplibs=yes
6789
6790       if test "$GCC" = yes; then
6791         case $host_os in aix4.012|aix4.012.*)
6792         # We only want to do this on AIX 4.2 and lower, the check
6793         # below for broken collect2 doesn't work under 4.3+
6794           collect2name=`${CC} -print-prog-name=collect2`
6795           if test -f "$collect2name" && \
6796            strings "$collect2name" | grep resolve_lib_name >/dev/null
6797           then
6798           # We have reworked collect2
6799           hardcode_direct=yes
6800           else
6801           # We have old collect2
6802           hardcode_direct=unsupported
6803           # It fails to find uninstalled libraries when the uninstalled
6804           # path is not listed in the libpath.  Setting hardcode_minus_L
6805           # to unsupported forces relinking
6806           hardcode_minus_L=yes
6807           hardcode_libdir_flag_spec='-L$libdir'
6808           hardcode_libdir_separator=
6809           fi
6810         esac
6811         shared_flag='-shared'
6812       else
6813         # not using gcc
6814         if test "$host_cpu" = ia64; then
6815         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
6816         # chokes on -Wl,-G. The following line is correct:
6817           shared_flag='-G'
6818         else
6819         if test "$aix_use_runtimelinking" = yes; then
6820             shared_flag='${wl}-G'
6821           else
6822             shared_flag='${wl}-bM:SRE'
6823         fi
6824         fi
6825       fi
6826
6827       # It seems that -bexpall does not export symbols beginning with
6828       # underscore (_), so it is better to generate a list of symbols to export.
6829       always_export_symbols=yes
6830       if test "$aix_use_runtimelinking" = yes; then
6831         # Warning - without using the other runtime loading flags (-brtl),
6832         # -berok will link without error, but may produce a broken library.
6833         allow_undefined_flag='-berok'
6834        # Determine the default libpath from the value encoded in an empty executable.
6835        cat >conftest.$ac_ext <<_ACEOF
6836 #line $LINENO "configure"
6837 /* confdefs.h.  */
6838 _ACEOF
6839 cat confdefs.h >>conftest.$ac_ext
6840 cat >>conftest.$ac_ext <<_ACEOF
6841 /* end confdefs.h.  */
6842
6843 int
6844 main ()
6845 {
6846
6847   ;
6848   return 0;
6849 }
6850 _ACEOF
6851 rm -f conftest.$ac_objext conftest$ac_exeext
6852 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6853   (eval $ac_link) 2>&5
6854   ac_status=$?
6855   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6856   (exit $ac_status); } &&
6857          { ac_try='test -s conftest$ac_exeext'
6858   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6859   (eval $ac_try) 2>&5
6860   ac_status=$?
6861   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6862   (exit $ac_status); }; }; then
6863
6864 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
6865 }'`
6866 # Check for a 64-bit object if we didn't find anything.
6867 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; }
6868 }'`; fi
6869 else
6870   echo "$as_me: failed program was:" >&5
6871 sed 's/^/| /' conftest.$ac_ext >&5
6872
6873 fi
6874 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6875 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
6876
6877        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
6878         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"
6879        else
6880         if test "$host_cpu" = ia64; then
6881           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
6882           allow_undefined_flag="-z nodefs"
6883           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"
6884         else
6885          # Determine the default libpath from the value encoded in an empty executable.
6886          cat >conftest.$ac_ext <<_ACEOF
6887 #line $LINENO "configure"
6888 /* confdefs.h.  */
6889 _ACEOF
6890 cat confdefs.h >>conftest.$ac_ext
6891 cat >>conftest.$ac_ext <<_ACEOF
6892 /* end confdefs.h.  */
6893
6894 int
6895 main ()
6896 {
6897
6898   ;
6899   return 0;
6900 }
6901 _ACEOF
6902 rm -f conftest.$ac_objext conftest$ac_exeext
6903 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6904   (eval $ac_link) 2>&5
6905   ac_status=$?
6906   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6907   (exit $ac_status); } &&
6908          { ac_try='test -s conftest$ac_exeext'
6909   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6910   (eval $ac_try) 2>&5
6911   ac_status=$?
6912   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6913   (exit $ac_status); }; }; then
6914
6915 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
6916 }'`
6917 # Check for a 64-bit object if we didn't find anything.
6918 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; }
6919 }'`; fi
6920 else
6921   echo "$as_me: failed program was:" >&5
6922 sed 's/^/| /' conftest.$ac_ext >&5
6923
6924 fi
6925 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6926 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
6927
6928          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
6929           # Warning - without using the other run time loading flags,
6930           # -berok will link without error, but may produce a broken library.
6931           no_undefined_flag=' ${wl}-bernotok'
6932           allow_undefined_flag=' ${wl}-berok'
6933           # -bexpall does not export symbols beginning with underscore (_)
6934           always_export_symbols=yes
6935           # Exported symbols can be pulled into shared objects from archives
6936           whole_archive_flag_spec=' '
6937           archive_cmds_need_lc=yes
6938           # This is similar to how AIX traditionally builds it's shared libraries.
6939           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'
6940         fi
6941       fi
6942       ;;
6943
6944     amigaos*)
6945       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)'
6946       hardcode_libdir_flag_spec='-L$libdir'
6947       hardcode_minus_L=yes
6948       # see comment about different semantics on the GNU ld section
6949       ld_shlibs=no
6950       ;;
6951
6952     bsdi4*)
6953       export_dynamic_flag_spec=-rdynamic
6954       ;;
6955
6956     cygwin* | mingw* | pw32*)
6957       # When not using gcc, we currently assume that we are using
6958       # Microsoft Visual C++.
6959       # hardcode_libdir_flag_spec is actually meaningless, as there is
6960       # no search path for DLLs.
6961       hardcode_libdir_flag_spec=' '
6962       allow_undefined_flag=unsupported
6963       # Tell ltmain to make .lib files, not .a files.
6964       libext=lib
6965       # Tell ltmain to make .dll files, not .so files.
6966       shrext=".dll"
6967       # FIXME: Setting linknames here is a bad hack.
6968       archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
6969       # The linker will automatically build a .lib file if we build a DLL.
6970       old_archive_From_new_cmds='true'
6971       # FIXME: Should let the user specify the lib program.
6972       old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
6973       fix_srcfile_path='`cygpath -w "$srcfile"`'
6974       enable_shared_with_static_runtimes=yes
6975       ;;
6976
6977     darwin* | rhapsody*)
6978     if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
6979       archive_cmds_need_lc=no
6980       case "$host_os" in
6981       rhapsody* | darwin1.[012])
6982         allow_undefined_flag='-undefined suppress'
6983         ;;
6984       *) # Darwin 1.3 on
6985         test -z ${LD_TWOLEVEL_NAMESPACE} && allow_undefined_flag='-flat_namespace -undefined suppress'
6986         ;;
6987       esac
6988       # FIXME: Relying on posixy $() will cause problems for
6989       #        cross-compilation, but unfortunately the echo tests do not
6990       #        yet detect zsh echo's removal of \ escapes.  Also zsh mangles
6991       #        `"' quotes if we put them in here... so don't!
6992         lt_int_apple_cc_single_mod=no
6993         output_verbose_link_cmd='echo'
6994         if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
6995           lt_int_apple_cc_single_mod=yes
6996         fi
6997         if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
6998           archive_cmds='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
6999         else
7000         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'
7001       fi
7002       module_cmds='$CC -bundle ${wl}-bind_at_load $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags'
7003       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
7004         if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
7005           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}'
7006         else
7007           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}'
7008         fi
7009           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}'
7010       hardcode_direct=no
7011       hardcode_automatic=yes
7012       hardcode_shlibpath_var=unsupported
7013       whole_archive_flag_spec='-all_load $convenience'
7014       link_all_deplibs=yes
7015     fi
7016       ;;
7017
7018     dgux*)
7019       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7020       hardcode_libdir_flag_spec='-L$libdir'
7021       hardcode_shlibpath_var=no
7022       ;;
7023
7024     freebsd1*)
7025       ld_shlibs=no
7026       ;;
7027
7028     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
7029     # support.  Future versions do this automatically, but an explicit c++rt0.o
7030     # does not break anything, and helps significantly (at the cost of a little
7031     # extra space).
7032     freebsd2.2*)
7033       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
7034       hardcode_libdir_flag_spec='-R$libdir'
7035       hardcode_direct=yes
7036       hardcode_shlibpath_var=no
7037       ;;
7038
7039     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
7040     freebsd2*)
7041       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7042       hardcode_direct=yes
7043       hardcode_minus_L=yes
7044       hardcode_shlibpath_var=no
7045       ;;
7046
7047     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
7048     freebsd*)
7049       archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
7050       hardcode_libdir_flag_spec='-R$libdir'
7051       hardcode_direct=yes
7052       hardcode_shlibpath_var=no
7053       ;;
7054
7055     hpux9*)
7056       if test "$GCC" = yes; then
7057         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'
7058       else
7059         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'
7060       fi
7061       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7062       hardcode_libdir_separator=:
7063       hardcode_direct=yes
7064
7065       # hardcode_minus_L: Not really in the search PATH,
7066       # but as the default location of the library.
7067       hardcode_minus_L=yes
7068       export_dynamic_flag_spec='${wl}-E'
7069       ;;
7070
7071     hpux10* | hpux11*)
7072       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
7073         case "$host_cpu" in
7074         hppa*64*|ia64*)
7075           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7076           ;;
7077         *)
7078           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7079           ;;
7080         esac
7081       else
7082         case "$host_cpu" in
7083         hppa*64*|ia64*)
7084           archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
7085           ;;
7086         *)
7087           archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
7088           ;;
7089         esac
7090       fi
7091       if test "$with_gnu_ld" = no; then
7092         case "$host_cpu" in
7093         hppa*64*)
7094           hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7095           hardcode_libdir_flag_spec_ld='+b $libdir'
7096           hardcode_libdir_separator=:
7097           hardcode_direct=no
7098           hardcode_shlibpath_var=no
7099           ;;
7100         ia64*)
7101           hardcode_libdir_flag_spec='-L$libdir'
7102           hardcode_direct=no
7103           hardcode_shlibpath_var=no
7104
7105           # hardcode_minus_L: Not really in the search PATH,
7106           # but as the default location of the library.
7107           hardcode_minus_L=yes
7108           ;;
7109         *)
7110           hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7111           hardcode_libdir_separator=:
7112           hardcode_direct=yes
7113           export_dynamic_flag_spec='${wl}-E'
7114
7115           # hardcode_minus_L: Not really in the search PATH,
7116           # but as the default location of the library.
7117           hardcode_minus_L=yes
7118           ;;
7119         esac
7120       fi
7121       ;;
7122
7123     irix5* | irix6* | nonstopux*)
7124       if test "$GCC" = yes; then
7125         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'
7126       else
7127         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'
7128         hardcode_libdir_flag_spec_ld='-rpath $libdir'
7129       fi
7130       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7131       hardcode_libdir_separator=:
7132       link_all_deplibs=yes
7133       ;;
7134
7135     netbsd*)
7136       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7137         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
7138       else
7139         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
7140       fi
7141       hardcode_libdir_flag_spec='-R$libdir'
7142       hardcode_direct=yes
7143       hardcode_shlibpath_var=no
7144       ;;
7145
7146     newsos6)
7147       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7148       hardcode_direct=yes
7149       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7150       hardcode_libdir_separator=:
7151       hardcode_shlibpath_var=no
7152       ;;
7153
7154     openbsd*)
7155       hardcode_direct=yes
7156       hardcode_shlibpath_var=no
7157       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7158         archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7159         hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7160         export_dynamic_flag_spec='${wl}-E'
7161       else
7162        case $host_os in
7163          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
7164            archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7165            hardcode_libdir_flag_spec='-R$libdir'
7166            ;;
7167          *)
7168            archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7169            hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7170            ;;
7171        esac
7172       fi
7173       ;;
7174
7175     os2*)
7176       hardcode_libdir_flag_spec='-L$libdir'
7177       hardcode_minus_L=yes
7178       allow_undefined_flag=unsupported
7179       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'
7180       old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
7181       ;;
7182
7183     osf3*)
7184       if test "$GCC" = yes; then
7185         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7186         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'
7187       else
7188         allow_undefined_flag=' -expect_unresolved \*'
7189         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'
7190       fi
7191       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7192       hardcode_libdir_separator=:
7193       ;;
7194
7195     osf4* | osf5*)      # as osf3* with the addition of -msym flag
7196       if test "$GCC" = yes; then
7197         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7198         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'
7199         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7200       else
7201         allow_undefined_flag=' -expect_unresolved \*'
7202         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'
7203         archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
7204         $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'
7205
7206         # Both c and cxx compiler support -rpath directly
7207         hardcode_libdir_flag_spec='-rpath $libdir'
7208       fi
7209       hardcode_libdir_separator=:
7210       ;;
7211
7212     sco3.2v5*)
7213       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7214       hardcode_shlibpath_var=no
7215       export_dynamic_flag_spec='${wl}-Bexport'
7216       runpath_var=LD_RUN_PATH
7217       hardcode_runpath_var=yes
7218       ;;
7219
7220     solaris*)
7221       no_undefined_flag=' -z text'
7222       if test "$GCC" = yes; then
7223         archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7224         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7225           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
7226       else
7227         archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
7228         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7229         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
7230       fi
7231       hardcode_libdir_flag_spec='-R$libdir'
7232       hardcode_shlibpath_var=no
7233       case $host_os in
7234       solaris2.[0-5] | solaris2.[0-5].*) ;;
7235       *) # Supported since Solaris 2.6 (maybe 2.5.1?)
7236         whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
7237       esac
7238       link_all_deplibs=yes
7239       ;;
7240
7241     sunos4*)
7242       if test "x$host_vendor" = xsequent; then
7243         # Use $CC to link under sequent, because it throws in some extra .o
7244         # files that make .init and .fini sections work.
7245         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
7246       else
7247         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
7248       fi
7249       hardcode_libdir_flag_spec='-L$libdir'
7250       hardcode_direct=yes
7251       hardcode_minus_L=yes
7252       hardcode_shlibpath_var=no
7253       ;;
7254
7255     sysv4)
7256       case $host_vendor in
7257         sni)
7258           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7259           hardcode_direct=yes # is this really true???
7260         ;;
7261         siemens)
7262           ## LD is ld it makes a PLAMLIB
7263           ## CC just makes a GrossModule.
7264           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
7265           reload_cmds='$CC -r -o $output$reload_objs'
7266           hardcode_direct=no
7267         ;;
7268         motorola)
7269           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7270           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
7271         ;;
7272       esac
7273       runpath_var='LD_RUN_PATH'
7274       hardcode_shlibpath_var=no
7275       ;;
7276
7277     sysv4.3*)
7278       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7279       hardcode_shlibpath_var=no
7280       export_dynamic_flag_spec='-Bexport'
7281       ;;
7282
7283     sysv4*MP*)
7284       if test -d /usr/nec; then
7285         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7286         hardcode_shlibpath_var=no
7287         runpath_var=LD_RUN_PATH
7288         hardcode_runpath_var=yes
7289         ld_shlibs=yes
7290       fi
7291       ;;
7292
7293     sysv4.2uw2*)
7294       archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
7295       hardcode_direct=yes
7296       hardcode_minus_L=no
7297       hardcode_shlibpath_var=no
7298       hardcode_runpath_var=yes
7299       runpath_var=LD_RUN_PATH
7300       ;;
7301
7302    sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
7303       no_undefined_flag='${wl}-z ${wl}text'
7304       if test "$GCC" = yes; then
7305         archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7306       else
7307         archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7308       fi
7309       runpath_var='LD_RUN_PATH'
7310       hardcode_shlibpath_var=no
7311       ;;
7312
7313     sysv5*)
7314       no_undefined_flag=' -z text'
7315       # $CC -shared without GNU ld will not create a library from C++
7316       # object files and a static libstdc++, better avoid it by now
7317       archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
7318       archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7319                 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
7320       hardcode_libdir_flag_spec=
7321       hardcode_shlibpath_var=no
7322       runpath_var='LD_RUN_PATH'
7323       ;;
7324
7325     uts4*)
7326       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7327       hardcode_libdir_flag_spec='-L$libdir'
7328       hardcode_shlibpath_var=no
7329       ;;
7330
7331     *)
7332       ld_shlibs=no
7333       ;;
7334     esac
7335   fi
7336
7337 echo "$as_me:$LINENO: result: $ld_shlibs" >&5
7338 echo "${ECHO_T}$ld_shlibs" >&6
7339 test "$ld_shlibs" = no && can_build_shared=no
7340
7341 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
7342 if test "$GCC" = yes; then
7343   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
7344 fi
7345
7346 #
7347 # Do we need to explicitly link libc?
7348 #
7349 case "x$archive_cmds_need_lc" in
7350 x|xyes)
7351   # Assume -lc should be added
7352   archive_cmds_need_lc=yes
7353
7354   if test "$enable_shared" = yes && test "$GCC" = yes; then
7355     case $archive_cmds in
7356     *'~'*)
7357       # FIXME: we may have to deal with multi-command sequences.
7358       ;;
7359     '$CC '*)
7360       # Test whether the compiler implicitly links with -lc since on some
7361       # systems, -lgcc has to come before -lc. If gcc already passes -lc
7362       # to ld, don't add -lc before -lgcc.
7363       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
7364 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
7365       $rm conftest*
7366       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7367
7368       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7369   (eval $ac_compile) 2>&5
7370   ac_status=$?
7371   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7372   (exit $ac_status); } 2>conftest.err; then
7373         soname=conftest
7374         lib=conftest
7375         libobjs=conftest.$ac_objext
7376         deplibs=
7377         wl=$lt_prog_compiler_wl
7378         compiler_flags=-v
7379         linker_flags=-v
7380         verstring=
7381         output_objdir=.
7382         libname=conftest
7383         lt_save_allow_undefined_flag=$allow_undefined_flag
7384         allow_undefined_flag=
7385         if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
7386   (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
7387   ac_status=$?
7388   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7389   (exit $ac_status); }
7390         then
7391           archive_cmds_need_lc=no
7392         else
7393           archive_cmds_need_lc=yes
7394         fi
7395         allow_undefined_flag=$lt_save_allow_undefined_flag
7396       else
7397         cat conftest.err 1>&5
7398       fi
7399       $rm conftest*
7400       echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
7401 echo "${ECHO_T}$archive_cmds_need_lc" >&6
7402       ;;
7403     esac
7404   fi
7405   ;;
7406 esac
7407
7408 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
7409 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
7410 hardcode_action=
7411 if test -n "$hardcode_libdir_flag_spec" || \
7412    test -n "$runpath_var " || \
7413    test "X$hardcode_automatic"="Xyes" ; then
7414
7415   # We can hardcode non-existant directories.
7416   if test "$hardcode_direct" != no &&
7417      # If the only mechanism to avoid hardcoding is shlibpath_var, we
7418      # have to relink, otherwise we might link with an installed library
7419      # when we should be linking with a yet-to-be-installed one
7420      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
7421      test "$hardcode_minus_L" != no; then
7422     # Linking always hardcodes the temporary library directory.
7423     hardcode_action=relink
7424   else
7425     # We can link without hardcoding, and we can hardcode nonexisting dirs.
7426     hardcode_action=immediate
7427   fi
7428 else
7429   # We cannot hardcode anything, or else we can only hardcode existing
7430   # directories.
7431   hardcode_action=unsupported
7432 fi
7433 echo "$as_me:$LINENO: result: $hardcode_action" >&5
7434 echo "${ECHO_T}$hardcode_action" >&6
7435
7436 if test "$hardcode_action" = relink; then
7437   # Fast installation is not supported
7438   enable_fast_install=no
7439 elif test "$shlibpath_overrides_runpath" = yes ||
7440      test "$enable_shared" = no; then
7441   # Fast installation is not necessary
7442   enable_fast_install=needless
7443 fi
7444
7445 striplib=
7446 old_striplib=
7447 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
7448 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
7449 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
7450   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
7451   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
7452   echo "$as_me:$LINENO: result: yes" >&5
7453 echo "${ECHO_T}yes" >&6
7454 else
7455 # FIXME - insert some real tests, host_os isn't really good enough
7456   case $host_os in
7457    darwin*)
7458        if test -n "$STRIP" ; then
7459          striplib="$STRIP -x"
7460          echo "$as_me:$LINENO: result: yes" >&5
7461 echo "${ECHO_T}yes" >&6
7462        else
7463   echo "$as_me:$LINENO: result: no" >&5
7464 echo "${ECHO_T}no" >&6
7465 fi
7466        ;;
7467    *)
7468   echo "$as_me:$LINENO: result: no" >&5
7469 echo "${ECHO_T}no" >&6
7470     ;;
7471   esac
7472 fi
7473
7474 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
7475 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
7476 library_names_spec=
7477 libname_spec='lib$name'
7478 soname_spec=
7479 shrext=".so"
7480 postinstall_cmds=
7481 postuninstall_cmds=
7482 finish_cmds=
7483 finish_eval=
7484 shlibpath_var=
7485 shlibpath_overrides_runpath=unknown
7486 version_type=none
7487 dynamic_linker="$host_os ld.so"
7488 sys_lib_dlsearch_path_spec="/lib /usr/lib"
7489 if test "$GCC" = yes; then
7490   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
7491   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
7492     # if the path contains ";" then we assume it to be the separator
7493     # otherwise default to the standard path separator (i.e. ":") - it is
7494     # assumed that no part of a normal pathname contains ";" but that should
7495     # okay in the real world where ";" in dirpaths is itself problematic.
7496     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
7497   else
7498     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
7499   fi
7500 else
7501   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
7502 fi
7503 need_lib_prefix=unknown
7504 hardcode_into_libs=no
7505
7506 # when you set need_version to no, make sure it does not cause -set_version
7507 # flags to be left without arguments
7508 need_version=unknown
7509
7510 case $host_os in
7511 aix3*)
7512   version_type=linux
7513   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
7514   shlibpath_var=LIBPATH
7515
7516   # AIX 3 has no versioning support, so we append a major version to the name.
7517   soname_spec='${libname}${release}${shared_ext}$major'
7518   ;;
7519
7520 aix4* | aix5*)
7521   version_type=linux
7522   need_lib_prefix=no
7523   need_version=no
7524   hardcode_into_libs=yes
7525   if test "$host_cpu" = ia64; then
7526     # AIX 5 supports IA64
7527     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
7528     shlibpath_var=LD_LIBRARY_PATH
7529   else
7530     # With GCC up to 2.95.x, collect2 would create an import file
7531     # for dependence libraries.  The import file would start with
7532     # the line `#! .'.  This would cause the generated library to
7533     # depend on `.', always an invalid library.  This was fixed in
7534     # development snapshots of GCC prior to 3.0.
7535     case $host_os in
7536       aix4 | aix4.[01] | aix4.[01].*)
7537       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
7538            echo ' yes '
7539            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
7540         :
7541       else
7542         can_build_shared=no
7543       fi
7544       ;;
7545     esac
7546     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
7547     # soname into executable. Probably we can add versioning support to
7548     # collect2, so additional links can be useful in future.
7549     if test "$aix_use_runtimelinking" = yes; then
7550       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
7551       # instead of lib<name>.a to let people know that these are not
7552       # typical AIX shared libraries.
7553       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7554     else
7555       # We preserve .a as extension for shared libraries through AIX4.2
7556       # and later when we are not doing run time linking.
7557       library_names_spec='${libname}${release}.a $libname.a'
7558       soname_spec='${libname}${release}${shared_ext}$major'
7559     fi
7560     shlibpath_var=LIBPATH
7561   fi
7562   ;;
7563
7564 amigaos*)
7565   library_names_spec='$libname.ixlibrary $libname.a'
7566   # Create ${libname}_ixlibrary.a entries in /sys/libs.
7567   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'
7568   ;;
7569
7570 beos*)
7571   library_names_spec='${libname}${shared_ext}'
7572   dynamic_linker="$host_os ld.so"
7573   shlibpath_var=LIBRARY_PATH
7574   ;;
7575
7576 bsdi4*)
7577   version_type=linux
7578   need_version=no
7579   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7580   soname_spec='${libname}${release}${shared_ext}$major'
7581   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
7582   shlibpath_var=LD_LIBRARY_PATH
7583   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
7584   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
7585   # the default ld.so.conf also contains /usr/contrib/lib and
7586   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
7587   # libtool to hard-code these into programs
7588   ;;
7589
7590 cygwin* | mingw* | pw32*)
7591   version_type=windows
7592   shrext=".dll"
7593   need_version=no
7594   need_lib_prefix=no
7595
7596   case $GCC,$host_os in
7597   yes,cygwin* | yes,mingw* | yes,pw32*)
7598     library_names_spec='$libname.dll.a'
7599     # DLL is installed to $(libdir)/../bin by postinstall_cmds
7600     postinstall_cmds='base_file=`basename \${file}`~
7601       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
7602       dldir=$destdir/`dirname \$dlpath`~
7603       test -d \$dldir || mkdir -p \$dldir~
7604       $install_prog $dir/$dlname \$dldir/$dlname'
7605     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
7606       dlpath=$dir/\$dldll~
7607        $rm \$dlpath'
7608     shlibpath_overrides_runpath=yes
7609
7610     case $host_os in
7611     cygwin*)
7612       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
7613       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7614       sys_lib_search_path_spec="/lib /lib/w32api /usr/lib /usr/local/lib"
7615       ;;
7616     mingw*)
7617       # MinGW DLLs use traditional 'lib' prefix
7618       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7619       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
7620       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
7621         # It is most probably a Windows format PATH printed by
7622         # mingw gcc, but we are running on Cygwin. Gcc prints its search
7623         # path with ; separators, and with drive letters. We can handle the
7624         # drive letters (cygwin fileutils understands them), so leave them,
7625         # especially as we might pass files found there to a mingw objdump,
7626         # which wouldn't understand a cygwinified path. Ahh.
7627         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
7628       else
7629         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
7630       fi
7631       ;;
7632     pw32*)
7633       # pw32 DLLs use 'pw' prefix rather than 'lib'
7634       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
7635       ;;
7636     esac
7637     ;;
7638
7639   *)
7640     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
7641     ;;
7642   esac
7643   dynamic_linker='Win32 ld.exe'
7644   # FIXME: first we should search . and the directory the executable is in
7645   shlibpath_var=PATH
7646   ;;
7647
7648 darwin* | rhapsody*)
7649   dynamic_linker="$host_os dyld"
7650   version_type=darwin
7651   need_lib_prefix=no
7652   need_version=no
7653   # FIXME: Relying on posixy $() will cause problems for
7654   #        cross-compilation, but unfortunately the echo tests do not
7655   #        yet detect zsh echo's removal of \ escapes.
7656   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
7657   soname_spec='${libname}${release}${major}$shared_ext'
7658   shlibpath_overrides_runpath=yes
7659   shlibpath_var=DYLD_LIBRARY_PATH
7660   shrext='$(test .$module = .yes && echo .so || echo .dylib)'
7661   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
7662   if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
7663   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"`
7664   fi
7665   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
7666   ;;
7667
7668 dgux*)
7669   version_type=linux
7670   need_lib_prefix=no
7671   need_version=no
7672   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
7673   soname_spec='${libname}${release}${shared_ext}$major'
7674   shlibpath_var=LD_LIBRARY_PATH
7675   ;;
7676
7677 freebsd1*)
7678   dynamic_linker=no
7679   ;;
7680
7681 freebsd*)
7682   objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
7683   version_type=freebsd-$objformat
7684   case $version_type in
7685     freebsd-elf*)
7686       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
7687       need_version=no
7688       need_lib_prefix=no
7689       ;;
7690     freebsd-*)
7691       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
7692       need_version=yes
7693       ;;
7694   esac
7695   shlibpath_var=LD_LIBRARY_PATH
7696   case $host_os in
7697   freebsd2*)
7698     shlibpath_overrides_runpath=yes
7699     ;;
7700   freebsd3.01* | freebsdelf3.01*)
7701     shlibpath_overrides_runpath=yes
7702     hardcode_into_libs=yes
7703     ;;
7704   *) # from 3.2 on
7705     shlibpath_overrides_runpath=no
7706     hardcode_into_libs=yes
7707     ;;
7708   esac
7709   ;;
7710
7711 gnu*)
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   hardcode_into_libs=yes
7719   ;;
7720
7721 hpux9* | hpux10* | hpux11*)
7722   # Give a soname corresponding to the major version so that dld.sl refuses to
7723   # link against other versions.
7724   version_type=sunos
7725   need_lib_prefix=no
7726   need_version=no
7727   case "$host_cpu" in
7728   ia64*)
7729     shrext='.so'
7730     hardcode_into_libs=yes
7731     dynamic_linker="$host_os dld.so"
7732     shlibpath_var=LD_LIBRARY_PATH
7733     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
7734     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7735     soname_spec='${libname}${release}${shared_ext}$major'
7736     if test "X$HPUX_IA64_MODE" = X32; then
7737       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
7738     else
7739       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
7740     fi
7741     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
7742     ;;
7743    hppa*64*)
7744      shrext='.sl'
7745      hardcode_into_libs=yes
7746      dynamic_linker="$host_os dld.sl"
7747      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
7748      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
7749      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7750      soname_spec='${libname}${release}${shared_ext}$major'
7751      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
7752      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
7753      ;;
7754    *)
7755     shrext='.sl'
7756     dynamic_linker="$host_os dld.sl"
7757     shlibpath_var=SHLIB_PATH
7758     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
7759     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7760     soname_spec='${libname}${release}${shared_ext}$major'
7761     ;;
7762   esac
7763   # HP-UX runs *really* slowly unless shared libraries are mode 555.
7764   postinstall_cmds='chmod 555 $lib'
7765   ;;
7766
7767 irix5* | irix6* | nonstopux*)
7768   case $host_os in
7769     nonstopux*) version_type=nonstopux ;;
7770     *)
7771         if test "$lt_cv_prog_gnu_ld" = yes; then
7772                 version_type=linux
7773         else
7774                 version_type=irix
7775         fi ;;
7776   esac
7777   need_lib_prefix=no
7778   need_version=no
7779   soname_spec='${libname}${release}${shared_ext}$major'
7780   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
7781   case $host_os in
7782   irix5* | nonstopux*)
7783     libsuff= shlibsuff=
7784     ;;
7785   *)
7786     case $LD in # libtool.m4 will add one of these switches to LD
7787     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
7788       libsuff= shlibsuff= libmagic=32-bit;;
7789     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
7790       libsuff=32 shlibsuff=N32 libmagic=N32;;
7791     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
7792       libsuff=64 shlibsuff=64 libmagic=64-bit;;
7793     *) libsuff= shlibsuff= libmagic=never-match;;
7794     esac
7795     ;;
7796   esac
7797   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
7798   shlibpath_overrides_runpath=no
7799   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
7800   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
7801   hardcode_into_libs=yes
7802   ;;
7803
7804 # No shared lib support for Linux oldld, aout, or coff.
7805 linux*oldld* | linux*aout* | linux*coff*)
7806   dynamic_linker=no
7807   ;;
7808
7809 # This must be Linux ELF.
7810 linux*)
7811   version_type=linux
7812   need_lib_prefix=no
7813   need_version=no
7814   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7815   soname_spec='${libname}${release}${shared_ext}$major'
7816   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
7817   shlibpath_var=LD_LIBRARY_PATH
7818   shlibpath_overrides_runpath=no
7819   # This implies no fast_install, which is unacceptable.
7820   # Some rework will be needed to allow for fast_install
7821   # before this can be enabled.
7822   hardcode_into_libs=yes
7823
7824   # We used to test for /lib/ld.so.1 and disable shared libraries on
7825   # powerpc, because MkLinux only supported shared libraries with the
7826   # GNU dynamic linker.  Since this was broken with cross compilers,
7827   # most powerpc-linux boxes support dynamic linking these days and
7828   # people can always --disable-shared, the test was removed, and we
7829   # assume the GNU/Linux dynamic linker is in use.
7830   dynamic_linker='GNU/Linux ld.so'
7831   ;;
7832
7833 netbsd*)
7834   version_type=sunos
7835   need_lib_prefix=no
7836   need_version=no
7837   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7838     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
7839     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
7840     dynamic_linker='NetBSD (a.out) ld.so'
7841   else
7842     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
7843     soname_spec='${libname}${release}${shared_ext}$major'
7844     dynamic_linker='NetBSD ld.elf_so'
7845   fi
7846   shlibpath_var=LD_LIBRARY_PATH
7847   shlibpath_overrides_runpath=yes
7848   hardcode_into_libs=yes
7849   ;;
7850
7851 newsos6)
7852   version_type=linux
7853   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7854   shlibpath_var=LD_LIBRARY_PATH
7855   shlibpath_overrides_runpath=yes
7856   ;;
7857
7858 nto-qnx)
7859   version_type=linux
7860   need_lib_prefix=no
7861   need_version=no
7862   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7863   soname_spec='${libname}${release}${shared_ext}$major'
7864   shlibpath_var=LD_LIBRARY_PATH
7865   shlibpath_overrides_runpath=yes
7866   ;;
7867
7868 openbsd*)
7869   version_type=sunos
7870   need_lib_prefix=no
7871   need_version=no
7872   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
7873   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
7874   shlibpath_var=LD_LIBRARY_PATH
7875   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7876     case $host_os in
7877       openbsd2.[89] | openbsd2.[89].*)
7878         shlibpath_overrides_runpath=no
7879         ;;
7880       *)
7881         shlibpath_overrides_runpath=yes
7882         ;;
7883       esac
7884   else
7885     shlibpath_overrides_runpath=yes
7886   fi
7887   ;;
7888
7889 os2*)
7890   libname_spec='$name'
7891   shrext=".dll"
7892   need_lib_prefix=no
7893   library_names_spec='$libname${shared_ext} $libname.a'
7894   dynamic_linker='OS/2 ld.exe'
7895   shlibpath_var=LIBPATH
7896   ;;
7897
7898 osf3* | osf4* | osf5*)
7899   version_type=osf
7900   need_lib_prefix=no
7901   need_version=no
7902   soname_spec='${libname}${release}${shared_ext}$major'
7903   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7904   shlibpath_var=LD_LIBRARY_PATH
7905   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
7906   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
7907   ;;
7908
7909 sco3.2v5*)
7910   version_type=osf
7911   soname_spec='${libname}${release}${shared_ext}$major'
7912   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7913   shlibpath_var=LD_LIBRARY_PATH
7914   ;;
7915
7916 solaris*)
7917   version_type=linux
7918   need_lib_prefix=no
7919   need_version=no
7920   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7921   soname_spec='${libname}${release}${shared_ext}$major'
7922   shlibpath_var=LD_LIBRARY_PATH
7923   shlibpath_overrides_runpath=yes
7924   hardcode_into_libs=yes
7925   # ldd complains unless libraries are executable
7926   postinstall_cmds='chmod +x $lib'
7927   ;;
7928
7929 sunos4*)
7930   version_type=sunos
7931   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
7932   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
7933   shlibpath_var=LD_LIBRARY_PATH
7934   shlibpath_overrides_runpath=yes
7935   if test "$with_gnu_ld" = yes; then
7936     need_lib_prefix=no
7937   fi
7938   need_version=yes
7939   ;;
7940
7941 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
7942   version_type=linux
7943   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7944   soname_spec='${libname}${release}${shared_ext}$major'
7945   shlibpath_var=LD_LIBRARY_PATH
7946   case $host_vendor in
7947     sni)
7948       shlibpath_overrides_runpath=no
7949       need_lib_prefix=no
7950       export_dynamic_flag_spec='${wl}-Blargedynsym'
7951       runpath_var=LD_RUN_PATH
7952       ;;
7953     siemens)
7954       need_lib_prefix=no
7955       ;;
7956     motorola)
7957       need_lib_prefix=no
7958       need_version=no
7959       shlibpath_overrides_runpath=no
7960       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
7961       ;;
7962   esac
7963   ;;
7964
7965 sysv4*MP*)
7966   if test -d /usr/nec ;then
7967     version_type=linux
7968     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
7969     soname_spec='$libname${shared_ext}.$major'
7970     shlibpath_var=LD_LIBRARY_PATH
7971   fi
7972   ;;
7973
7974 uts4*)
7975   version_type=linux
7976   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7977   soname_spec='${libname}${release}${shared_ext}$major'
7978   shlibpath_var=LD_LIBRARY_PATH
7979   ;;
7980
7981 *)
7982   dynamic_linker=no
7983   ;;
7984 esac
7985 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
7986 echo "${ECHO_T}$dynamic_linker" >&6
7987 test "$dynamic_linker" = no && can_build_shared=no
7988
7989 if test "x$enable_dlopen" != xyes; then
7990   enable_dlopen=unknown
7991   enable_dlopen_self=unknown
7992   enable_dlopen_self_static=unknown
7993 else
7994   lt_cv_dlopen=no
7995   lt_cv_dlopen_libs=
7996
7997   case $host_os in
7998   beos*)
7999     lt_cv_dlopen="load_add_on"
8000     lt_cv_dlopen_libs=
8001     lt_cv_dlopen_self=yes
8002     ;;
8003
8004   mingw* | pw32*)
8005     lt_cv_dlopen="LoadLibrary"
8006     lt_cv_dlopen_libs=
8007    ;;
8008
8009   cygwin*)
8010     lt_cv_dlopen="dlopen"
8011     lt_cv_dlopen_libs=
8012    ;;
8013
8014   darwin*)
8015   # if libdl is installed we need to link against it
8016     echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
8017 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
8018 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
8019   echo $ECHO_N "(cached) $ECHO_C" >&6
8020 else
8021   ac_check_lib_save_LIBS=$LIBS
8022 LIBS="-ldl  $LIBS"
8023 cat >conftest.$ac_ext <<_ACEOF
8024 #line $LINENO "configure"
8025 /* confdefs.h.  */
8026 _ACEOF
8027 cat confdefs.h >>conftest.$ac_ext
8028 cat >>conftest.$ac_ext <<_ACEOF
8029 /* end confdefs.h.  */
8030
8031 /* Override any gcc2 internal prototype to avoid an error.  */
8032 #ifdef __cplusplus
8033 extern "C"
8034 #endif
8035 /* We use char because int might match the return type of a gcc2
8036    builtin and then its argument prototype would still apply.  */
8037 char dlopen ();
8038 int
8039 main ()
8040 {
8041 dlopen ();
8042   ;
8043   return 0;
8044 }
8045 _ACEOF
8046 rm -f conftest.$ac_objext conftest$ac_exeext
8047 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8048   (eval $ac_link) 2>&5
8049   ac_status=$?
8050   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8051   (exit $ac_status); } &&
8052          { ac_try='test -s conftest$ac_exeext'
8053   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8054   (eval $ac_try) 2>&5
8055   ac_status=$?
8056   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8057   (exit $ac_status); }; }; then
8058   ac_cv_lib_dl_dlopen=yes
8059 else
8060   echo "$as_me: failed program was:" >&5
8061 sed 's/^/| /' conftest.$ac_ext >&5
8062
8063 ac_cv_lib_dl_dlopen=no
8064 fi
8065 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8066 LIBS=$ac_check_lib_save_LIBS
8067 fi
8068 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
8069 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
8070 if test $ac_cv_lib_dl_dlopen = yes; then
8071   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
8072 else
8073
8074     lt_cv_dlopen="dyld"
8075     lt_cv_dlopen_libs=
8076     lt_cv_dlopen_self=yes
8077
8078 fi
8079
8080    ;;
8081
8082   *)
8083     echo "$as_me:$LINENO: checking for shl_load" >&5
8084 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
8085 if test "${ac_cv_func_shl_load+set}" = set; then
8086   echo $ECHO_N "(cached) $ECHO_C" >&6
8087 else
8088   cat >conftest.$ac_ext <<_ACEOF
8089 #line $LINENO "configure"
8090 /* confdefs.h.  */
8091 _ACEOF
8092 cat confdefs.h >>conftest.$ac_ext
8093 cat >>conftest.$ac_ext <<_ACEOF
8094 /* end confdefs.h.  */
8095 /* System header to define __stub macros and hopefully few prototypes,
8096     which can conflict with char shl_load (); below.
8097     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8098     <limits.h> exists even on freestanding compilers.  */
8099 #ifdef __STDC__
8100 # include <limits.h>
8101 #else
8102 # include <assert.h>
8103 #endif
8104 /* Override any gcc2 internal prototype to avoid an error.  */
8105 #ifdef __cplusplus
8106 extern "C"
8107 {
8108 #endif
8109 /* We use char because int might match the return type of a gcc2
8110    builtin and then its argument prototype would still apply.  */
8111 char shl_load ();
8112 /* The GNU C library defines this for functions which it implements
8113     to always fail with ENOSYS.  Some functions are actually named
8114     something starting with __ and the normal name is an alias.  */
8115 #if defined (__stub_shl_load) || defined (__stub___shl_load)
8116 choke me
8117 #else
8118 char (*f) () = shl_load;
8119 #endif
8120 #ifdef __cplusplus
8121 }
8122 #endif
8123
8124 int
8125 main ()
8126 {
8127 return f != shl_load;
8128   ;
8129   return 0;
8130 }
8131 _ACEOF
8132 rm -f conftest.$ac_objext conftest$ac_exeext
8133 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8134   (eval $ac_link) 2>&5
8135   ac_status=$?
8136   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8137   (exit $ac_status); } &&
8138          { ac_try='test -s conftest$ac_exeext'
8139   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8140   (eval $ac_try) 2>&5
8141   ac_status=$?
8142   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8143   (exit $ac_status); }; }; then
8144   ac_cv_func_shl_load=yes
8145 else
8146   echo "$as_me: failed program was:" >&5
8147 sed 's/^/| /' conftest.$ac_ext >&5
8148
8149 ac_cv_func_shl_load=no
8150 fi
8151 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8152 fi
8153 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
8154 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
8155 if test $ac_cv_func_shl_load = yes; then
8156   lt_cv_dlopen="shl_load"
8157 else
8158   echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
8159 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
8160 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
8161   echo $ECHO_N "(cached) $ECHO_C" >&6
8162 else
8163   ac_check_lib_save_LIBS=$LIBS
8164 LIBS="-ldld  $LIBS"
8165 cat >conftest.$ac_ext <<_ACEOF
8166 #line $LINENO "configure"
8167 /* confdefs.h.  */
8168 _ACEOF
8169 cat confdefs.h >>conftest.$ac_ext
8170 cat >>conftest.$ac_ext <<_ACEOF
8171 /* end confdefs.h.  */
8172
8173 /* Override any gcc2 internal prototype to avoid an error.  */
8174 #ifdef __cplusplus
8175 extern "C"
8176 #endif
8177 /* We use char because int might match the return type of a gcc2
8178    builtin and then its argument prototype would still apply.  */
8179 char shl_load ();
8180 int
8181 main ()
8182 {
8183 shl_load ();
8184   ;
8185   return 0;
8186 }
8187 _ACEOF
8188 rm -f conftest.$ac_objext conftest$ac_exeext
8189 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8190   (eval $ac_link) 2>&5
8191   ac_status=$?
8192   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8193   (exit $ac_status); } &&
8194          { ac_try='test -s conftest$ac_exeext'
8195   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8196   (eval $ac_try) 2>&5
8197   ac_status=$?
8198   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8199   (exit $ac_status); }; }; then
8200   ac_cv_lib_dld_shl_load=yes
8201 else
8202   echo "$as_me: failed program was:" >&5
8203 sed 's/^/| /' conftest.$ac_ext >&5
8204
8205 ac_cv_lib_dld_shl_load=no
8206 fi
8207 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8208 LIBS=$ac_check_lib_save_LIBS
8209 fi
8210 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
8211 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
8212 if test $ac_cv_lib_dld_shl_load = yes; then
8213   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
8214 else
8215   echo "$as_me:$LINENO: checking for dlopen" >&5
8216 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
8217 if test "${ac_cv_func_dlopen+set}" = set; then
8218   echo $ECHO_N "(cached) $ECHO_C" >&6
8219 else
8220   cat >conftest.$ac_ext <<_ACEOF
8221 #line $LINENO "configure"
8222 /* confdefs.h.  */
8223 _ACEOF
8224 cat confdefs.h >>conftest.$ac_ext
8225 cat >>conftest.$ac_ext <<_ACEOF
8226 /* end confdefs.h.  */
8227 /* System header to define __stub macros and hopefully few prototypes,
8228     which can conflict with char dlopen (); below.
8229     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8230     <limits.h> exists even on freestanding compilers.  */
8231 #ifdef __STDC__
8232 # include <limits.h>
8233 #else
8234 # include <assert.h>
8235 #endif
8236 /* Override any gcc2 internal prototype to avoid an error.  */
8237 #ifdef __cplusplus
8238 extern "C"
8239 {
8240 #endif
8241 /* We use char because int might match the return type of a gcc2
8242    builtin and then its argument prototype would still apply.  */
8243 char dlopen ();
8244 /* The GNU C library defines this for functions which it implements
8245     to always fail with ENOSYS.  Some functions are actually named
8246     something starting with __ and the normal name is an alias.  */
8247 #if defined (__stub_dlopen) || defined (__stub___dlopen)
8248 choke me
8249 #else
8250 char (*f) () = dlopen;
8251 #endif
8252 #ifdef __cplusplus
8253 }
8254 #endif
8255
8256 int
8257 main ()
8258 {
8259 return f != dlopen;
8260   ;
8261   return 0;
8262 }
8263 _ACEOF
8264 rm -f conftest.$ac_objext conftest$ac_exeext
8265 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8266   (eval $ac_link) 2>&5
8267   ac_status=$?
8268   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8269   (exit $ac_status); } &&
8270          { ac_try='test -s conftest$ac_exeext'
8271   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8272   (eval $ac_try) 2>&5
8273   ac_status=$?
8274   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8275   (exit $ac_status); }; }; then
8276   ac_cv_func_dlopen=yes
8277 else
8278   echo "$as_me: failed program was:" >&5
8279 sed 's/^/| /' conftest.$ac_ext >&5
8280
8281 ac_cv_func_dlopen=no
8282 fi
8283 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8284 fi
8285 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
8286 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
8287 if test $ac_cv_func_dlopen = yes; then
8288   lt_cv_dlopen="dlopen"
8289 else
8290   echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
8291 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
8292 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
8293   echo $ECHO_N "(cached) $ECHO_C" >&6
8294 else
8295   ac_check_lib_save_LIBS=$LIBS
8296 LIBS="-ldl  $LIBS"
8297 cat >conftest.$ac_ext <<_ACEOF
8298 #line $LINENO "configure"
8299 /* confdefs.h.  */
8300 _ACEOF
8301 cat confdefs.h >>conftest.$ac_ext
8302 cat >>conftest.$ac_ext <<_ACEOF
8303 /* end confdefs.h.  */
8304
8305 /* Override any gcc2 internal prototype to avoid an error.  */
8306 #ifdef __cplusplus
8307 extern "C"
8308 #endif
8309 /* We use char because int might match the return type of a gcc2
8310    builtin and then its argument prototype would still apply.  */
8311 char dlopen ();
8312 int
8313 main ()
8314 {
8315 dlopen ();
8316   ;
8317   return 0;
8318 }
8319 _ACEOF
8320 rm -f conftest.$ac_objext conftest$ac_exeext
8321 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8322   (eval $ac_link) 2>&5
8323   ac_status=$?
8324   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8325   (exit $ac_status); } &&
8326          { ac_try='test -s conftest$ac_exeext'
8327   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8328   (eval $ac_try) 2>&5
8329   ac_status=$?
8330   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8331   (exit $ac_status); }; }; then
8332   ac_cv_lib_dl_dlopen=yes
8333 else
8334   echo "$as_me: failed program was:" >&5
8335 sed 's/^/| /' conftest.$ac_ext >&5
8336
8337 ac_cv_lib_dl_dlopen=no
8338 fi
8339 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8340 LIBS=$ac_check_lib_save_LIBS
8341 fi
8342 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
8343 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
8344 if test $ac_cv_lib_dl_dlopen = yes; then
8345   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
8346 else
8347   echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
8348 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
8349 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
8350   echo $ECHO_N "(cached) $ECHO_C" >&6
8351 else
8352   ac_check_lib_save_LIBS=$LIBS
8353 LIBS="-lsvld  $LIBS"
8354 cat >conftest.$ac_ext <<_ACEOF
8355 #line $LINENO "configure"
8356 /* confdefs.h.  */
8357 _ACEOF
8358 cat confdefs.h >>conftest.$ac_ext
8359 cat >>conftest.$ac_ext <<_ACEOF
8360 /* end confdefs.h.  */
8361
8362 /* Override any gcc2 internal prototype to avoid an error.  */
8363 #ifdef __cplusplus
8364 extern "C"
8365 #endif
8366 /* We use char because int might match the return type of a gcc2
8367    builtin and then its argument prototype would still apply.  */
8368 char dlopen ();
8369 int
8370 main ()
8371 {
8372 dlopen ();
8373   ;
8374   return 0;
8375 }
8376 _ACEOF
8377 rm -f conftest.$ac_objext conftest$ac_exeext
8378 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8379   (eval $ac_link) 2>&5
8380   ac_status=$?
8381   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8382   (exit $ac_status); } &&
8383          { ac_try='test -s conftest$ac_exeext'
8384   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8385   (eval $ac_try) 2>&5
8386   ac_status=$?
8387   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8388   (exit $ac_status); }; }; then
8389   ac_cv_lib_svld_dlopen=yes
8390 else
8391   echo "$as_me: failed program was:" >&5
8392 sed 's/^/| /' conftest.$ac_ext >&5
8393
8394 ac_cv_lib_svld_dlopen=no
8395 fi
8396 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8397 LIBS=$ac_check_lib_save_LIBS
8398 fi
8399 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
8400 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
8401 if test $ac_cv_lib_svld_dlopen = yes; then
8402   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
8403 else
8404   echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
8405 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
8406 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
8407   echo $ECHO_N "(cached) $ECHO_C" >&6
8408 else
8409   ac_check_lib_save_LIBS=$LIBS
8410 LIBS="-ldld  $LIBS"
8411 cat >conftest.$ac_ext <<_ACEOF
8412 #line $LINENO "configure"
8413 /* confdefs.h.  */
8414 _ACEOF
8415 cat confdefs.h >>conftest.$ac_ext
8416 cat >>conftest.$ac_ext <<_ACEOF
8417 /* end confdefs.h.  */
8418
8419 /* Override any gcc2 internal prototype to avoid an error.  */
8420 #ifdef __cplusplus
8421 extern "C"
8422 #endif
8423 /* We use char because int might match the return type of a gcc2
8424    builtin and then its argument prototype would still apply.  */
8425 char dld_link ();
8426 int
8427 main ()
8428 {
8429 dld_link ();
8430   ;
8431   return 0;
8432 }
8433 _ACEOF
8434 rm -f conftest.$ac_objext conftest$ac_exeext
8435 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8436   (eval $ac_link) 2>&5
8437   ac_status=$?
8438   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8439   (exit $ac_status); } &&
8440          { ac_try='test -s conftest$ac_exeext'
8441   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8442   (eval $ac_try) 2>&5
8443   ac_status=$?
8444   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8445   (exit $ac_status); }; }; then
8446   ac_cv_lib_dld_dld_link=yes
8447 else
8448   echo "$as_me: failed program was:" >&5
8449 sed 's/^/| /' conftest.$ac_ext >&5
8450
8451 ac_cv_lib_dld_dld_link=no
8452 fi
8453 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8454 LIBS=$ac_check_lib_save_LIBS
8455 fi
8456 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
8457 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
8458 if test $ac_cv_lib_dld_dld_link = yes; then
8459   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
8460 fi
8461
8462
8463 fi
8464
8465
8466 fi
8467
8468
8469 fi
8470
8471
8472 fi
8473
8474
8475 fi
8476
8477     ;;
8478   esac
8479
8480   if test "x$lt_cv_dlopen" != xno; then
8481     enable_dlopen=yes
8482   else
8483     enable_dlopen=no
8484   fi
8485
8486   case $lt_cv_dlopen in
8487   dlopen)
8488     save_CPPFLAGS="$CPPFLAGS"
8489     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
8490
8491     save_LDFLAGS="$LDFLAGS"
8492     eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
8493
8494     save_LIBS="$LIBS"
8495     LIBS="$lt_cv_dlopen_libs $LIBS"
8496
8497     echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
8498 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
8499 if test "${lt_cv_dlopen_self+set}" = set; then
8500   echo $ECHO_N "(cached) $ECHO_C" >&6
8501 else
8502           if test "$cross_compiling" = yes; then :
8503   lt_cv_dlopen_self=cross
8504 else
8505   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
8506   lt_status=$lt_dlunknown
8507   cat > conftest.$ac_ext <<EOF
8508 #line 8508 "configure"
8509 #include "confdefs.h"
8510
8511 #if HAVE_DLFCN_H
8512 #include <dlfcn.h>
8513 #endif
8514
8515 #include <stdio.h>
8516
8517 #ifdef RTLD_GLOBAL
8518 #  define LT_DLGLOBAL           RTLD_GLOBAL
8519 #else
8520 #  ifdef DL_GLOBAL
8521 #    define LT_DLGLOBAL         DL_GLOBAL
8522 #  else
8523 #    define LT_DLGLOBAL         0
8524 #  endif
8525 #endif
8526
8527 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
8528    find out it does not work in some platform. */
8529 #ifndef LT_DLLAZY_OR_NOW
8530 #  ifdef RTLD_LAZY
8531 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
8532 #  else
8533 #    ifdef DL_LAZY
8534 #      define LT_DLLAZY_OR_NOW          DL_LAZY
8535 #    else
8536 #      ifdef RTLD_NOW
8537 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
8538 #      else
8539 #        ifdef DL_NOW
8540 #          define LT_DLLAZY_OR_NOW      DL_NOW
8541 #        else
8542 #          define LT_DLLAZY_OR_NOW      0
8543 #        endif
8544 #      endif
8545 #    endif
8546 #  endif
8547 #endif
8548
8549 #ifdef __cplusplus
8550 extern "C" void exit (int);
8551 #endif
8552
8553 void fnord() { int i=42;}
8554 int main ()
8555 {
8556   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
8557   int status = $lt_dlunknown;
8558
8559   if (self)
8560     {
8561       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
8562       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
8563       /* dlclose (self); */
8564     }
8565
8566     exit (status);
8567 }
8568 EOF
8569   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8570   (eval $ac_link) 2>&5
8571   ac_status=$?
8572   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8573   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
8574     (./conftest; exit; ) 2>/dev/null
8575     lt_status=$?
8576     case x$lt_status in
8577       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
8578       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
8579       x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
8580     esac
8581   else :
8582     # compilation failed
8583     lt_cv_dlopen_self=no
8584   fi
8585 fi
8586 rm -fr conftest*
8587
8588
8589 fi
8590 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
8591 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
8592
8593     if test "x$lt_cv_dlopen_self" = xyes; then
8594       LDFLAGS="$LDFLAGS $link_static_flag"
8595       echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
8596 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
8597 if test "${lt_cv_dlopen_self_static+set}" = set; then
8598   echo $ECHO_N "(cached) $ECHO_C" >&6
8599 else
8600           if test "$cross_compiling" = yes; then :
8601   lt_cv_dlopen_self_static=cross
8602 else
8603   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
8604   lt_status=$lt_dlunknown
8605   cat > conftest.$ac_ext <<EOF
8606 #line 8606 "configure"
8607 #include "confdefs.h"
8608
8609 #if HAVE_DLFCN_H
8610 #include <dlfcn.h>
8611 #endif
8612
8613 #include <stdio.h>
8614
8615 #ifdef RTLD_GLOBAL
8616 #  define LT_DLGLOBAL           RTLD_GLOBAL
8617 #else
8618 #  ifdef DL_GLOBAL
8619 #    define LT_DLGLOBAL         DL_GLOBAL
8620 #  else
8621 #    define LT_DLGLOBAL         0
8622 #  endif
8623 #endif
8624
8625 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
8626    find out it does not work in some platform. */
8627 #ifndef LT_DLLAZY_OR_NOW
8628 #  ifdef RTLD_LAZY
8629 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
8630 #  else
8631 #    ifdef DL_LAZY
8632 #      define LT_DLLAZY_OR_NOW          DL_LAZY
8633 #    else
8634 #      ifdef RTLD_NOW
8635 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
8636 #      else
8637 #        ifdef DL_NOW
8638 #          define LT_DLLAZY_OR_NOW      DL_NOW
8639 #        else
8640 #          define LT_DLLAZY_OR_NOW      0
8641 #        endif
8642 #      endif
8643 #    endif
8644 #  endif
8645 #endif
8646
8647 #ifdef __cplusplus
8648 extern "C" void exit (int);
8649 #endif
8650
8651 void fnord() { int i=42;}
8652 int main ()
8653 {
8654   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
8655   int status = $lt_dlunknown;
8656
8657   if (self)
8658     {
8659       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
8660       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
8661       /* dlclose (self); */
8662     }
8663
8664     exit (status);
8665 }
8666 EOF
8667   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8668   (eval $ac_link) 2>&5
8669   ac_status=$?
8670   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8671   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
8672     (./conftest; exit; ) 2>/dev/null
8673     lt_status=$?
8674     case x$lt_status in
8675       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
8676       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
8677       x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
8678     esac
8679   else :
8680     # compilation failed
8681     lt_cv_dlopen_self_static=no
8682   fi
8683 fi
8684 rm -fr conftest*
8685
8686
8687 fi
8688 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
8689 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
8690     fi
8691
8692     CPPFLAGS="$save_CPPFLAGS"
8693     LDFLAGS="$save_LDFLAGS"
8694     LIBS="$save_LIBS"
8695     ;;
8696   esac
8697
8698   case $lt_cv_dlopen_self in
8699   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
8700   *) enable_dlopen_self=unknown ;;
8701   esac
8702
8703   case $lt_cv_dlopen_self_static in
8704   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
8705   *) enable_dlopen_self_static=unknown ;;
8706   esac
8707 fi
8708
8709
8710 # Report which librarie types wil actually be built
8711 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
8712 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
8713 echo "$as_me:$LINENO: result: $can_build_shared" >&5
8714 echo "${ECHO_T}$can_build_shared" >&6
8715
8716 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
8717 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
8718 test "$can_build_shared" = "no" && enable_shared=no
8719
8720 # On AIX, shared libraries and static libraries use the same namespace, and
8721 # are all built from PIC.
8722 case "$host_os" in
8723 aix3*)
8724   test "$enable_shared" = yes && enable_static=no
8725   if test -n "$RANLIB"; then
8726     archive_cmds="$archive_cmds~\$RANLIB \$lib"
8727     postinstall_cmds='$RANLIB $lib'
8728   fi
8729   ;;
8730
8731 aix4*)
8732   if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
8733     test "$enable_shared" = yes && enable_static=no
8734   fi
8735   ;;
8736   darwin* | rhapsody*)
8737   if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
8738     archive_cmds_need_lc=no
8739     case "$host_os" in
8740     rhapsody* | darwin1.[012])
8741       allow_undefined_flag='-undefined suppress'
8742       ;;
8743     *) # Darwin 1.3 on
8744       test -z ${LD_TWOLEVEL_NAMESPACE} && allow_undefined_flag='-flat_namespace -undefined suppress'
8745       ;;
8746     esac
8747     # FIXME: Relying on posixy $() will cause problems for
8748     #        cross-compilation, but unfortunately the echo tests do not
8749     #        yet detect zsh echo's removal of \ escapes.  Also zsh mangles
8750     #          `"' quotes if we put them in here... so don't!
8751                 output_verbose_link_cmd='echo'
8752     archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags -install_name $rpath/$soname $verstring'
8753     module_cmds='$CC -bundle $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags'
8754     # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
8755                   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}'
8756                   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}'
8757     hardcode_direct=no
8758     hardcode_automatic=yes
8759     hardcode_shlibpath_var=unsupported
8760     whole_archive_flag_spec='-all_load $convenience'
8761     link_all_deplibs=yes
8762     fi
8763     ;;
8764 esac
8765 echo "$as_me:$LINENO: result: $enable_shared" >&5
8766 echo "${ECHO_T}$enable_shared" >&6
8767
8768 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
8769 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
8770 # Make sure either enable_shared or enable_static is yes.
8771 test "$enable_shared" = yes || enable_static=yes
8772 echo "$as_me:$LINENO: result: $enable_static" >&5
8773 echo "${ECHO_T}$enable_static" >&6
8774
8775 # The else clause should only fire when bootstrapping the
8776 # libtool distribution, otherwise you forgot to ship ltmain.sh
8777 # with your package, and you will get complaints that there are
8778 # no rules to generate ltmain.sh.
8779 if test -f "$ltmain"; then
8780   # See if we are running on zsh, and set the options which allow our commands through
8781   # without removal of \ escapes.
8782   if test -n "${ZSH_VERSION+set}" ; then
8783     setopt NO_GLOB_SUBST
8784   fi
8785   # Now quote all the things that may contain metacharacters while being
8786   # careful not to overquote the AC_SUBSTed values.  We take copies of the
8787   # variables and quote the copies for generation of the libtool script.
8788   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \
8789     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
8790     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
8791     deplibs_check_method reload_flag reload_cmds need_locks \
8792     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
8793     lt_cv_sys_global_symbol_to_c_name_address \
8794     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
8795     old_postinstall_cmds old_postuninstall_cmds \
8796     compiler \
8797     CC \
8798     LD \
8799     lt_prog_compiler_wl \
8800     lt_prog_compiler_pic \
8801     lt_prog_compiler_static \
8802     lt_prog_compiler_no_builtin_flag \
8803     export_dynamic_flag_spec \
8804     thread_safe_flag_spec \
8805     whole_archive_flag_spec \
8806     enable_shared_with_static_runtimes \
8807     old_archive_cmds \
8808     old_archive_from_new_cmds \
8809     predep_objects \
8810     postdep_objects \
8811     predeps \
8812     postdeps \
8813     compiler_lib_search_path \
8814     archive_cmds \
8815     archive_expsym_cmds \
8816     postinstall_cmds \
8817     postuninstall_cmds \
8818     old_archive_from_expsyms_cmds \
8819     allow_undefined_flag \
8820     no_undefined_flag \
8821     export_symbols_cmds \
8822     hardcode_libdir_flag_spec \
8823     hardcode_libdir_flag_spec_ld \
8824     hardcode_libdir_separator \
8825     hardcode_automatic \
8826     module_cmds \
8827     module_expsym_cmds \
8828     lt_cv_prog_compiler_c_o \
8829     exclude_expsyms \
8830     include_expsyms; do
8831
8832     case $var in
8833     old_archive_cmds | \
8834     old_archive_from_new_cmds | \
8835     archive_cmds | \
8836     archive_expsym_cmds | \
8837     module_cmds | \
8838     module_expsym_cmds | \
8839     old_archive_from_expsyms_cmds | \
8840     export_symbols_cmds | \
8841     extract_expsyms_cmds | reload_cmds | finish_cmds | \
8842     postinstall_cmds | postuninstall_cmds | \
8843     old_postinstall_cmds | old_postuninstall_cmds | \
8844     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
8845       # Double-quote double-evaled strings.
8846       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
8847       ;;
8848     *)
8849       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
8850       ;;
8851     esac
8852   done
8853
8854   case $lt_echo in
8855   *'\$0 --fallback-echo"')
8856     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
8857     ;;
8858   esac
8859
8860 cfgfile="${ofile}T"
8861   trap "$rm \"$cfgfile\"; exit 1" 1 2 15
8862   $rm -f "$cfgfile"
8863   { echo "$as_me:$LINENO: creating $ofile" >&5
8864 echo "$as_me: creating $ofile" >&6;}
8865
8866   cat <<__EOF__ >> "$cfgfile"
8867 #! $SHELL
8868
8869 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
8870 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
8871 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
8872 #
8873 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
8874 # Free Software Foundation, Inc.
8875 #
8876 # This file is part of GNU Libtool:
8877 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
8878 #
8879 # This program is free software; you can redistribute it and/or modify
8880 # it under the terms of the GNU General Public License as published by
8881 # the Free Software Foundation; either version 2 of the License, or
8882 # (at your option) any later version.
8883 #
8884 # This program is distributed in the hope that it will be useful, but
8885 # WITHOUT ANY WARRANTY; without even the implied warranty of
8886 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
8887 # General Public License for more details.
8888 #
8889 # You should have received a copy of the GNU General Public License
8890 # along with this program; if not, write to the Free Software
8891 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
8892 #
8893 # As a special exception to the GNU General Public License, if you
8894 # distribute this file as part of a program that contains a
8895 # configuration script generated by Autoconf, you may include it under
8896 # the same distribution terms that you use for the rest of that program.
8897
8898 # A sed program that does not truncate output.
8899 SED=$lt_SED
8900
8901 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
8902 Xsed="$SED -e s/^X//"
8903
8904 # The HP-UX ksh and POSIX shell print the target directory to stdout
8905 # if CDPATH is set.
8906 if test "X\${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
8907
8908 # The names of the tagged configurations supported by this script.
8909 available_tags=
8910
8911 # ### BEGIN LIBTOOL CONFIG
8912
8913 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
8914
8915 # Shell to use when invoking shell scripts.
8916 SHELL=$lt_SHELL
8917
8918 # Whether or not to build shared libraries.
8919 build_libtool_libs=$enable_shared
8920
8921 # Whether or not to build static libraries.
8922 build_old_libs=$enable_static
8923
8924 # Whether or not to add -lc for building shared libraries.
8925 build_libtool_need_lc=$archive_cmds_need_lc
8926
8927 # Whether or not to disallow shared libs when runtime libs are static
8928 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
8929
8930 # Whether or not to optimize for fast installation.
8931 fast_install=$enable_fast_install
8932
8933 # The host system.
8934 host_alias=$host_alias
8935 host=$host
8936
8937 # An echo program that does not interpret backslashes.
8938 echo=$lt_echo
8939
8940 # The archiver.
8941 AR=$lt_AR
8942 AR_FLAGS=$lt_AR_FLAGS
8943
8944 # A C compiler.
8945 LTCC=$lt_LTCC
8946
8947 # A language-specific compiler.
8948 CC=$lt_compiler
8949
8950 # Is the compiler the GNU C compiler?
8951 with_gcc=$GCC
8952
8953 # An ERE matcher.
8954 EGREP=$lt_EGREP
8955
8956 # The linker used to build libraries.
8957 LD=$lt_LD
8958
8959 # Whether we need hard or soft links.
8960 LN_S=$lt_LN_S
8961
8962 # A BSD-compatible nm program.
8963 NM=$lt_NM
8964
8965 # A symbol stripping program
8966 STRIP=$STRIP
8967
8968 # Used to examine libraries when file_magic_cmd begins "file"
8969 MAGIC_CMD=$MAGIC_CMD
8970
8971 # Used on cygwin: DLL creation program.
8972 DLLTOOL="$DLLTOOL"
8973
8974 # Used on cygwin: object dumper.
8975 OBJDUMP="$OBJDUMP"
8976
8977 # Used on cygwin: assembler.
8978 AS="$AS"
8979
8980 # The name of the directory that contains temporary libtool files.
8981 objdir=$objdir
8982
8983 # How to create reloadable object files.
8984 reload_flag=$lt_reload_flag
8985 reload_cmds=$lt_reload_cmds
8986
8987 # How to pass a linker flag through the compiler.
8988 wl=$lt_lt_prog_compiler_wl
8989
8990 # Object file suffix (normally "o").
8991 objext="$ac_objext"
8992
8993 # Old archive suffix (normally "a").
8994 libext="$libext"
8995
8996 # Shared library suffix (normally ".so").
8997 shrext='$shrext'
8998
8999 # Executable file suffix (normally "").
9000 exeext="$exeext"
9001
9002 # Additional compiler flags for building library objects.
9003 pic_flag=$lt_lt_prog_compiler_pic
9004 pic_mode=$pic_mode
9005
9006 # What is the maximum length of a command?
9007 max_cmd_len=$lt_cv_sys_max_cmd_len
9008
9009 # Does compiler simultaneously support -c and -o options?
9010 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
9011
9012 # Must we lock files when doing compilation ?
9013 need_locks=$lt_need_locks
9014
9015 # Do we need the lib prefix for modules?
9016 need_lib_prefix=$need_lib_prefix
9017
9018 # Do we need a version for libraries?
9019 need_version=$need_version
9020
9021 # Whether dlopen is supported.
9022 dlopen_support=$enable_dlopen
9023
9024 # Whether dlopen of programs is supported.
9025 dlopen_self=$enable_dlopen_self
9026
9027 # Whether dlopen of statically linked programs is supported.
9028 dlopen_self_static=$enable_dlopen_self_static
9029
9030 # Compiler flag to prevent dynamic linking.
9031 link_static_flag=$lt_lt_prog_compiler_static
9032
9033 # Compiler flag to turn off builtin functions.
9034 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
9035
9036 # Compiler flag to allow reflexive dlopens.
9037 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
9038
9039 # Compiler flag to generate shared objects directly from archives.
9040 whole_archive_flag_spec=$lt_whole_archive_flag_spec
9041
9042 # Compiler flag to generate thread-safe objects.
9043 thread_safe_flag_spec=$lt_thread_safe_flag_spec
9044
9045 # Library versioning type.
9046 version_type=$version_type
9047
9048 # Format of library name prefix.
9049 libname_spec=$lt_libname_spec
9050
9051 # List of archive names.  First name is the real one, the rest are links.
9052 # The last name is the one that the linker finds with -lNAME.
9053 library_names_spec=$lt_library_names_spec
9054
9055 # The coded name of the library, if different from the real name.
9056 soname_spec=$lt_soname_spec
9057
9058 # Commands used to build and install an old-style archive.
9059 RANLIB=$lt_RANLIB
9060 old_archive_cmds=$lt_old_archive_cmds
9061 old_postinstall_cmds=$lt_old_postinstall_cmds
9062 old_postuninstall_cmds=$lt_old_postuninstall_cmds
9063
9064 # Create an old-style archive from a shared archive.
9065 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
9066
9067 # Create a temporary old-style archive to link instead of a shared archive.
9068 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
9069
9070 # Commands used to build and install a shared archive.
9071 archive_cmds=$lt_archive_cmds
9072 archive_expsym_cmds=$lt_archive_expsym_cmds
9073 postinstall_cmds=$lt_postinstall_cmds
9074 postuninstall_cmds=$lt_postuninstall_cmds
9075
9076 # Commands used to build a loadable module (assumed same as above if empty)
9077 module_cmds=$lt_module_cmds
9078 module_expsym_cmds=$lt_module_expsym_cmds
9079
9080 # Commands to strip libraries.
9081 old_striplib=$lt_old_striplib
9082 striplib=$lt_striplib
9083
9084 # Dependencies to place before the objects being linked to create a
9085 # shared library.
9086 predep_objects=$lt_predep_objects
9087
9088 # Dependencies to place after the objects being linked to create a
9089 # shared library.
9090 postdep_objects=$lt_postdep_objects
9091
9092 # Dependencies to place before the objects being linked to create a
9093 # shared library.
9094 predeps=$lt_predeps
9095
9096 # Dependencies to place after the objects being linked to create a
9097 # shared library.
9098 postdeps=$lt_postdeps
9099
9100 # The library search path used internally by the compiler when linking
9101 # a shared library.
9102 compiler_lib_search_path=$lt_compiler_lib_search_path
9103
9104 # Method to check whether dependent libraries are shared objects.
9105 deplibs_check_method=$lt_deplibs_check_method
9106
9107 # Command to use when deplibs_check_method == file_magic.
9108 file_magic_cmd=$lt_file_magic_cmd
9109
9110 # Flag that allows shared libraries with undefined symbols to be built.
9111 allow_undefined_flag=$lt_allow_undefined_flag
9112
9113 # Flag that forces no undefined symbols.
9114 no_undefined_flag=$lt_no_undefined_flag
9115
9116 # Commands used to finish a libtool library installation in a directory.
9117 finish_cmds=$lt_finish_cmds
9118
9119 # Same as above, but a single script fragment to be evaled but not shown.
9120 finish_eval=$lt_finish_eval
9121
9122 # Take the output of nm and produce a listing of raw symbols and C names.
9123 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
9124
9125 # Transform the output of nm in a proper C declaration
9126 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
9127
9128 # Transform the output of nm in a C name address pair
9129 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
9130
9131 # This is the shared library runtime path variable.
9132 runpath_var=$runpath_var
9133
9134 # This is the shared library path variable.
9135 shlibpath_var=$shlibpath_var
9136
9137 # Is shlibpath searched before the hard-coded library search path?
9138 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
9139
9140 # How to hardcode a shared library path into an executable.
9141 hardcode_action=$hardcode_action
9142
9143 # Whether we should hardcode library paths into libraries.
9144 hardcode_into_libs=$hardcode_into_libs
9145
9146 # Flag to hardcode \$libdir into a binary during linking.
9147 # This must work even if \$libdir does not exist.
9148 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
9149
9150 # If ld is used when linking, flag to hardcode \$libdir into
9151 # a binary during linking. This must work even if \$libdir does
9152 # not exist.
9153 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
9154
9155 # Whether we need a single -rpath flag with a separated argument.
9156 hardcode_libdir_separator=$lt_hardcode_libdir_separator
9157
9158 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
9159 # resulting binary.
9160 hardcode_direct=$hardcode_direct
9161
9162 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
9163 # resulting binary.
9164 hardcode_minus_L=$hardcode_minus_L
9165
9166 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
9167 # the resulting binary.
9168 hardcode_shlibpath_var=$hardcode_shlibpath_var
9169
9170 # Set to yes if building a shared library automatically hardcodes DIR into the library
9171 # and all subsequent libraries and executables linked against it.
9172 hardcode_automatic=$hardcode_automatic
9173
9174 # Variables whose values should be saved in libtool wrapper scripts and
9175 # restored at relink time.
9176 variables_saved_for_relink="$variables_saved_for_relink"
9177
9178 # Whether libtool must link a program against all its dependency libraries.
9179 link_all_deplibs=$link_all_deplibs
9180
9181 # Compile-time system search path for libraries
9182 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
9183
9184 # Run-time system search path for libraries
9185 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
9186
9187 # Fix the shell variable \$srcfile for the compiler.
9188 fix_srcfile_path="$fix_srcfile_path"
9189
9190 # Set to yes if exported symbols are required.
9191 always_export_symbols=$always_export_symbols
9192
9193 # The commands to list exported symbols.
9194 export_symbols_cmds=$lt_export_symbols_cmds
9195
9196 # The commands to extract the exported symbol list from a shared archive.
9197 extract_expsyms_cmds=$lt_extract_expsyms_cmds
9198
9199 # Symbols that should not be listed in the preloaded symbols.
9200 exclude_expsyms=$lt_exclude_expsyms
9201
9202 # Symbols that must always be exported.
9203 include_expsyms=$lt_include_expsyms
9204
9205 # ### END LIBTOOL CONFIG
9206
9207 __EOF__
9208
9209
9210   case $host_os in
9211   aix3*)
9212     cat <<\EOF >> "$cfgfile"
9213
9214 # AIX sometimes has problems with the GCC collect2 program.  For some
9215 # reason, if we set the COLLECT_NAMES environment variable, the problems
9216 # vanish in a puff of smoke.
9217 if test "X${COLLECT_NAMES+set}" != Xset; then
9218   COLLECT_NAMES=
9219   export COLLECT_NAMES
9220 fi
9221 EOF
9222     ;;
9223   esac
9224
9225   # We use sed instead of cat because bash on DJGPP gets confused if
9226   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
9227   # text mode, it properly converts lines to CR/LF.  This bash problem
9228   # is reportedly fixed, but why not run on old versions too?
9229   sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
9230
9231   mv -f "$cfgfile" "$ofile" || \
9232     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
9233   chmod +x "$ofile"
9234
9235 else
9236   # If there is no Makefile yet, we rely on a make rule to execute
9237   # `config.status --recheck' to rerun these tests and create the
9238   # libtool script then.
9239   test -f Makefile && make "$ltmain"
9240 fi
9241
9242
9243 ac_ext=c
9244 ac_cpp='$CPP $CPPFLAGS'
9245 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9246 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9247 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9248
9249 CC="$lt_save_CC"
9250
9251
9252 # Check whether --with-tags or --without-tags was given.
9253 if test "${with_tags+set}" = set; then
9254   withval="$with_tags"
9255   tagnames="$withval"
9256 fi;
9257
9258 if test -f "$ltmain" && test -n "$tagnames"; then
9259   if test ! -f "${ofile}"; then
9260     { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
9261 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
9262   fi
9263
9264   if test -z "$LTCC"; then
9265     eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
9266     if test -z "$LTCC"; then
9267       { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
9268 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
9269     else
9270       { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
9271 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
9272     fi
9273   fi
9274
9275   # Extract list of available tagged configurations in $ofile.
9276   # Note that this assumes the entire list is on one line.
9277   available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
9278
9279   lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9280   for tagname in $tagnames; do
9281     IFS="$lt_save_ifs"
9282     # Check whether tagname contains only valid characters
9283     case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
9284     "") ;;
9285     *)  { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
9286 echo "$as_me: error: invalid tag name: $tagname" >&2;}
9287    { (exit 1); exit 1; }; }
9288         ;;
9289     esac
9290
9291     if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
9292     then
9293       { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
9294 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
9295    { (exit 1); exit 1; }; }
9296     fi
9297
9298     # Update the list of available tags.
9299     if test -n "$tagname"; then
9300       echo appending configuration tag \"$tagname\" to $ofile
9301
9302       case $tagname in
9303       CXX)
9304         if test -n "$CXX" && test "X$CXX" != "Xno"; then
9305           ac_ext=cc
9306 ac_cpp='$CXXCPP $CPPFLAGS'
9307 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9308 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9309 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9310
9311
9312
9313
9314 archive_cmds_need_lc_CXX=no
9315 allow_undefined_flag_CXX=
9316 always_export_symbols_CXX=no
9317 archive_expsym_cmds_CXX=
9318 export_dynamic_flag_spec_CXX=
9319 hardcode_direct_CXX=no
9320 hardcode_libdir_flag_spec_CXX=
9321 hardcode_libdir_flag_spec_ld_CXX=
9322 hardcode_libdir_separator_CXX=
9323 hardcode_minus_L_CXX=no
9324 hardcode_automatic_CXX=no
9325 module_cmds_CXX=
9326 module_expsym_cmds_CXX=
9327 link_all_deplibs_CXX=unknown
9328 old_archive_cmds_CXX=$old_archive_cmds
9329 no_undefined_flag_CXX=
9330 whole_archive_flag_spec_CXX=
9331 enable_shared_with_static_runtimes_CXX=no
9332
9333 # Dependencies to place before and after the object being linked:
9334 predep_objects_CXX=
9335 postdep_objects_CXX=
9336 predeps_CXX=
9337 postdeps_CXX=
9338 compiler_lib_search_path_CXX=
9339
9340 # Source file extension for C++ test sources.
9341 ac_ext=cc
9342
9343 # Object file extension for compiled C++ test sources.
9344 objext=o
9345 objext_CXX=$objext
9346
9347 # Code to be used in simple compile tests
9348 lt_simple_compile_test_code="int some_variable = 0;\n"
9349
9350 # Code to be used in simple link tests
9351 lt_simple_link_test_code='int main(int, char *) { return(0); }\n'
9352
9353 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
9354
9355 # If no C compiler was specified, use CC.
9356 LTCC=${LTCC-"$CC"}
9357
9358 # Allow CC to be a program name with arguments.
9359 compiler=$CC
9360
9361
9362 # Allow CC to be a program name with arguments.
9363 lt_save_CC=$CC
9364 lt_save_LD=$LD
9365 lt_save_GCC=$GCC
9366 GCC=$GXX
9367 lt_save_with_gnu_ld=$with_gnu_ld
9368 lt_save_path_LD=$lt_cv_path_LD
9369 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
9370   lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
9371 else
9372   unset lt_cv_prog_gnu_ld
9373 fi
9374 if test -n "${lt_cv_path_LDCXX+set}"; then
9375   lt_cv_path_LD=$lt_cv_path_LDCXX
9376 else
9377   unset lt_cv_path_LD
9378 fi
9379 test -z "${LDCXX+set}" || LD=$LDCXX
9380 CC=${CXX-"c++"}
9381 compiler=$CC
9382 compiler_CXX=$CC
9383 cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
9384
9385 # We don't want -fno-exception wen compiling C++ code, so set the
9386 # no_builtin_flag separately
9387 if test "$GXX" = yes; then
9388   lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
9389 else
9390   lt_prog_compiler_no_builtin_flag_CXX=
9391 fi
9392
9393 if test "$GXX" = yes; then
9394   # Set up default GNU C++ configuration
9395
9396
9397 # Check whether --with-gnu-ld or --without-gnu-ld was given.
9398 if test "${with_gnu_ld+set}" = set; then
9399   withval="$with_gnu_ld"
9400   test "$withval" = no || with_gnu_ld=yes
9401 else
9402   with_gnu_ld=no
9403 fi;
9404 ac_prog=ld
9405 if test "$GCC" = yes; then
9406   # Check if gcc -print-prog-name=ld gives a path.
9407   echo "$as_me:$LINENO: checking for ld used by $CC" >&5
9408 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
9409   case $host in
9410   *-*-mingw*)
9411     # gcc leaves a trailing carriage return which upsets mingw
9412     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
9413   *)
9414     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
9415   esac
9416   case $ac_prog in
9417     # Accept absolute paths.
9418     [\\/]* | ?:[\\/]*)
9419       re_direlt='/[^/][^/]*/\.\./'
9420       # Canonicalize the path of ld
9421       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
9422       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
9423         ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
9424       done
9425       test -z "$LD" && LD="$ac_prog"
9426       ;;
9427   "")
9428     # If it fails, then pretend we aren't using GCC.
9429     ac_prog=ld
9430     ;;
9431   *)
9432     # If it is relative, then search for the first ld in PATH.
9433     with_gnu_ld=unknown
9434     ;;
9435   esac
9436 elif test "$with_gnu_ld" = yes; then
9437   echo "$as_me:$LINENO: checking for GNU ld" >&5
9438 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
9439 else
9440   echo "$as_me:$LINENO: checking for non-GNU ld" >&5
9441 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
9442 fi
9443 if test "${lt_cv_path_LD+set}" = set; then
9444   echo $ECHO_N "(cached) $ECHO_C" >&6
9445 else
9446   if test -z "$LD"; then
9447   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9448   for ac_dir in $PATH; do
9449     IFS="$lt_save_ifs"
9450     test -z "$ac_dir" && ac_dir=.
9451     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
9452       lt_cv_path_LD="$ac_dir/$ac_prog"
9453       # Check to see if the program is GNU ld.  I'd rather use --version,
9454       # but apparently some GNU ld's only accept -v.
9455       # Break only if it was the GNU/non-GNU ld that we prefer.
9456       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
9457       *GNU* | *'with BFD'*)
9458         test "$with_gnu_ld" != no && break
9459         ;;
9460       *)
9461         test "$with_gnu_ld" != yes && break
9462         ;;
9463       esac
9464     fi
9465   done
9466   IFS="$lt_save_ifs"
9467 else
9468   lt_cv_path_LD="$LD" # Let the user override the test with a path.
9469 fi
9470 fi
9471
9472 LD="$lt_cv_path_LD"
9473 if test -n "$LD"; then
9474   echo "$as_me:$LINENO: result: $LD" >&5
9475 echo "${ECHO_T}$LD" >&6
9476 else
9477   echo "$as_me:$LINENO: result: no" >&5
9478 echo "${ECHO_T}no" >&6
9479 fi
9480 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
9481 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
9482    { (exit 1); exit 1; }; }
9483 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
9484 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
9485 if test "${lt_cv_prog_gnu_ld+set}" = set; then
9486   echo $ECHO_N "(cached) $ECHO_C" >&6
9487 else
9488   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
9489 case `"$LD" -v 2>&1 </dev/null` in
9490 *GNU* | *'with BFD'*)
9491   lt_cv_prog_gnu_ld=yes
9492   ;;
9493 *)
9494   lt_cv_prog_gnu_ld=no
9495   ;;
9496 esac
9497 fi
9498 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
9499 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
9500 with_gnu_ld=$lt_cv_prog_gnu_ld
9501
9502
9503
9504   # Check if GNU C++ uses GNU ld as the underlying linker, since the
9505   # archiving commands below assume that GNU ld is being used.
9506   if test "$with_gnu_ld" = yes; then
9507     archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
9508     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'
9509
9510     hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
9511     export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
9512
9513     # If archive_cmds runs LD, not CC, wlarc should be empty
9514     # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
9515     #     investigate it a little bit more. (MM)
9516     wlarc='${wl}'
9517
9518     # ancient GNU ld didn't support --whole-archive et. al.
9519     if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
9520         grep 'no-whole-archive' > /dev/null; then
9521       whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9522     else
9523       whole_archive_flag_spec_CXX=
9524     fi
9525   else
9526     with_gnu_ld=no
9527     wlarc=
9528
9529     # A generic and very simple default shared library creation
9530     # command for GNU C++ for the case where it uses the native
9531     # linker, instead of GNU ld.  If possible, this setting should
9532     # overridden to take advantage of the native linker features on
9533     # the platform it is being used on.
9534     archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
9535   fi
9536
9537   # Commands to make compiler produce verbose output that lists
9538   # what "hidden" libraries, object files and flags are used when
9539   # linking a shared library.
9540   output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
9541
9542 else
9543   GXX=no
9544   with_gnu_ld=no
9545   wlarc=
9546 fi
9547
9548 # PORTME: fill in a description of your system's C++ link characteristics
9549 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9550 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
9551 ld_shlibs_CXX=yes
9552 case $host_os in
9553   aix3*)
9554     # FIXME: insert proper C++ library support
9555     ld_shlibs_CXX=no
9556     ;;
9557   aix4* | aix5*)
9558     if test "$host_cpu" = ia64; then
9559       # On IA64, the linker does run time linking by default, so we don't
9560       # have to do anything special.
9561       aix_use_runtimelinking=no
9562       exp_sym_flag='-Bexport'
9563       no_entry_flag=""
9564     else
9565       aix_use_runtimelinking=no
9566
9567       # Test if we are trying to use run time linking or normal
9568       # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9569       # need to do runtime linking.
9570       case $host_os in aix4.[23]|aix4.[23].*|aix5*)
9571         for ld_flag in $LDFLAGS; do
9572           case $ld_flag in
9573           *-brtl*)
9574             aix_use_runtimelinking=yes
9575             break
9576             ;;
9577           esac
9578         done
9579       esac
9580
9581       exp_sym_flag='-bexport'
9582       no_entry_flag='-bnoentry'
9583     fi
9584
9585     # When large executables or shared objects are built, AIX ld can
9586     # have problems creating the table of contents.  If linking a library
9587     # or program results in "error TOC overflow" add -mminimal-toc to
9588     # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
9589     # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9590
9591     archive_cmds_CXX=''
9592     hardcode_direct_CXX=yes
9593     hardcode_libdir_separator_CXX=':'
9594     link_all_deplibs_CXX=yes
9595
9596     if test "$GXX" = yes; then
9597       case $host_os in aix4.012|aix4.012.*)
9598       # We only want to do this on AIX 4.2 and lower, the check
9599       # below for broken collect2 doesn't work under 4.3+
9600         collect2name=`${CC} -print-prog-name=collect2`
9601         if test -f "$collect2name" && \
9602            strings "$collect2name" | grep resolve_lib_name >/dev/null
9603         then
9604           # We have reworked collect2
9605           hardcode_direct_CXX=yes
9606         else
9607           # We have old collect2
9608           hardcode_direct_CXX=unsupported
9609           # It fails to find uninstalled libraries when the uninstalled
9610           # path is not listed in the libpath.  Setting hardcode_minus_L
9611           # to unsupported forces relinking
9612           hardcode_minus_L_CXX=yes
9613           hardcode_libdir_flag_spec_CXX='-L$libdir'
9614           hardcode_libdir_separator_CXX=
9615         fi
9616       esac
9617       shared_flag='-shared'
9618     else
9619       # not using gcc
9620       if test "$host_cpu" = ia64; then
9621         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9622         # chokes on -Wl,-G. The following line is correct:
9623         shared_flag='-G'
9624       else
9625         if test "$aix_use_runtimelinking" = yes; then
9626           shared_flag='${wl}-G'
9627         else
9628           shared_flag='${wl}-bM:SRE'
9629         fi
9630       fi
9631     fi
9632
9633     # It seems that -bexpall does not export symbols beginning with
9634     # underscore (_), so it is better to generate a list of symbols to export.
9635     always_export_symbols_CXX=yes
9636     if test "$aix_use_runtimelinking" = yes; then
9637       # Warning - without using the other runtime loading flags (-brtl),
9638       # -berok will link without error, but may produce a broken library.
9639       allow_undefined_flag_CXX='-berok'
9640       # Determine the default libpath from the value encoded in an empty executable.
9641       cat >conftest.$ac_ext <<_ACEOF
9642 #line $LINENO "configure"
9643 /* confdefs.h.  */
9644 _ACEOF
9645 cat confdefs.h >>conftest.$ac_ext
9646 cat >>conftest.$ac_ext <<_ACEOF
9647 /* end confdefs.h.  */
9648
9649 int
9650 main ()
9651 {
9652
9653   ;
9654   return 0;
9655 }
9656 _ACEOF
9657 rm -f conftest.$ac_objext conftest$ac_exeext
9658 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9659   (eval $ac_link) 2>&5
9660   ac_status=$?
9661   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9662   (exit $ac_status); } &&
9663          { ac_try='test -s conftest$ac_exeext'
9664   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9665   (eval $ac_try) 2>&5
9666   ac_status=$?
9667   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9668   (exit $ac_status); }; }; then
9669
9670 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
9671 }'`
9672 # Check for a 64-bit object if we didn't find anything.
9673 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; }
9674 }'`; fi
9675 else
9676   echo "$as_me: failed program was:" >&5
9677 sed 's/^/| /' conftest.$ac_ext >&5
9678
9679 fi
9680 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9681 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9682
9683       hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
9684
9685       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"
9686      else
9687       if test "$host_cpu" = ia64; then
9688         hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
9689         allow_undefined_flag_CXX="-z nodefs"
9690         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"
9691       else
9692         # Determine the default libpath from the value encoded in an empty executable.
9693         cat >conftest.$ac_ext <<_ACEOF
9694 #line $LINENO "configure"
9695 /* confdefs.h.  */
9696 _ACEOF
9697 cat confdefs.h >>conftest.$ac_ext
9698 cat >>conftest.$ac_ext <<_ACEOF
9699 /* end confdefs.h.  */
9700
9701 int
9702 main ()
9703 {
9704
9705   ;
9706   return 0;
9707 }
9708 _ACEOF
9709 rm -f conftest.$ac_objext conftest$ac_exeext
9710 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9711   (eval $ac_link) 2>&5
9712   ac_status=$?
9713   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9714   (exit $ac_status); } &&
9715          { ac_try='test -s conftest$ac_exeext'
9716   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9717   (eval $ac_try) 2>&5
9718   ac_status=$?
9719   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9720   (exit $ac_status); }; }; then
9721
9722 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
9723 }'`
9724 # Check for a 64-bit object if we didn't find anything.
9725 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; }
9726 }'`; fi
9727 else
9728   echo "$as_me: failed program was:" >&5
9729 sed 's/^/| /' conftest.$ac_ext >&5
9730
9731 fi
9732 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9733 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9734
9735         hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
9736         # Warning - without using the other run time loading flags,
9737         # -berok will link without error, but may produce a broken library.
9738         no_undefined_flag_CXX=' ${wl}-bernotok'
9739         allow_undefined_flag_CXX=' ${wl}-berok'
9740         # -bexpall does not export symbols beginning with underscore (_)
9741         always_export_symbols_CXX=yes
9742         # Exported symbols can be pulled into shared objects from archives
9743         whole_archive_flag_spec_CXX=' '
9744         archive_cmds_need_lc_CXX=yes
9745         # This is similar to how AIX traditionally builds it's shared libraries.
9746         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'
9747       fi
9748     fi
9749     ;;
9750   chorus*)
9751     case $cc_basename in
9752       *)
9753         # FIXME: insert proper C++ library support
9754         ld_shlibs_CXX=no
9755         ;;
9756     esac
9757     ;;
9758
9759   cygwin* | mingw* | pw32*)
9760     # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
9761     # as there is no search path for DLLs.
9762     hardcode_libdir_flag_spec_CXX='-L$libdir'
9763     allow_undefined_flag_CXX=unsupported
9764     always_export_symbols_CXX=no
9765     enable_shared_with_static_runtimes_CXX=yes
9766
9767     if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
9768       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'
9769       # If the export-symbols file already is a .def file (1st line
9770       # is EXPORTS), use it as is; otherwise, prepend...
9771       archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9772         cp $export_symbols $output_objdir/$soname.def;
9773       else
9774         echo EXPORTS > $output_objdir/$soname.def;
9775         cat $export_symbols >> $output_objdir/$soname.def;
9776       fi~
9777       $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'
9778     else
9779       ld_shlibs_CXX=no
9780     fi
9781   ;;
9782
9783   darwin* | rhapsody*)
9784    if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
9785     archive_cmds_need_lc_CXX=no
9786     case "$host_os" in
9787     rhapsody* | darwin1.[012])
9788       allow_undefined_flag_CXX='-undefined suppress'
9789       ;;
9790     *) # Darwin 1.3 on
9791       test -z ${LD_TWOLEVEL_NAMESPACE} && allow_undefined_flag_CXX='-flat_namespace -undefined suppress'
9792       ;;
9793     esac
9794         lt_int_apple_cc_single_mod=no
9795         output_verbose_link_cmd='echo'
9796         if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
9797           lt_int_apple_cc_single_mod=yes
9798         fi
9799         if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
9800           archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
9801         else
9802         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'
9803       fi
9804       module_cmds_CXX='$CC -bundle ${wl}-bind_at_load $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags'
9805
9806     # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
9807       if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
9808         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}'
9809       else
9810         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}'
9811       fi
9812         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}'
9813     hardcode_direct_CXX=no
9814     hardcode_automatic_CXX=yes
9815     hardcode_shlibpath_var_CXX=unsupported
9816     whole_archive_flag_spec_CXX='-all_load $convenience'
9817     link_all_deplibs_CXX=yes
9818    fi
9819     ;;
9820
9821   dgux*)
9822     case $cc_basename in
9823       ec++)
9824         # FIXME: insert proper C++ library support
9825         ld_shlibs_CXX=no
9826         ;;
9827       ghcx)
9828         # Green Hills C++ Compiler
9829         # FIXME: insert proper C++ library support
9830         ld_shlibs_CXX=no
9831         ;;
9832       *)
9833         # FIXME: insert proper C++ library support
9834         ld_shlibs_CXX=no
9835         ;;
9836     esac
9837     ;;
9838   freebsd12*)
9839     # C++ shared libraries reported to be fairly broken before switch to ELF
9840     ld_shlibs_CXX=no
9841     ;;
9842   freebsd-elf*)
9843     archive_cmds_need_lc_CXX=no
9844     ;;
9845   freebsd*)
9846     # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
9847     # conventions
9848     ld_shlibs_CXX=yes
9849     ;;
9850   gnu*)
9851     ;;
9852   hpux9*)
9853     hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
9854     hardcode_libdir_separator_CXX=:
9855     export_dynamic_flag_spec_CXX='${wl}-E'
9856     hardcode_direct_CXX=yes
9857     hardcode_minus_L_CXX=yes # Not in the search PATH,
9858                                 # but as the default
9859                                 # location of the library.
9860
9861     case $cc_basename in
9862     CC)
9863       # FIXME: insert proper C++ library support
9864       ld_shlibs_CXX=no
9865       ;;
9866     aCC)
9867       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'
9868       # Commands to make compiler produce verbose output that lists
9869       # what "hidden" libraries, object files and flags are used when
9870       # linking a shared library.
9871       #
9872       # There doesn't appear to be a way to prevent this compiler from
9873       # explicitly linking system object files so we need to strip them
9874       # from the output so that they don't get included in the library
9875       # dependencies.
9876       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'
9877       ;;
9878     *)
9879       if test "$GXX" = yes; then
9880         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'
9881       else
9882         # FIXME: insert proper C++ library support
9883         ld_shlibs_CXX=no
9884       fi
9885       ;;
9886     esac
9887     ;;
9888   hpux10*|hpux11*)
9889     if test $with_gnu_ld = no; then
9890       case "$host_cpu" in
9891       hppa*64*)
9892         hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
9893         hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
9894         hardcode_libdir_separator_CXX=:
9895         ;;
9896       ia64*)
9897         hardcode_libdir_flag_spec_CXX='-L$libdir'
9898         ;;
9899       *)
9900         hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
9901         hardcode_libdir_separator_CXX=:
9902         export_dynamic_flag_spec_CXX='${wl}-E'
9903         ;;
9904       esac
9905     fi
9906     case "$host_cpu" in
9907     hppa*64*)
9908       hardcode_direct_CXX=no
9909       hardcode_shlibpath_var_CXX=no
9910       ;;
9911     ia64*)
9912       hardcode_direct_CXX=no
9913       hardcode_shlibpath_var_CXX=no
9914       hardcode_minus_L_CXX=yes # Not in the search PATH,
9915                                               # but as the default
9916                                               # location of the library.
9917       ;;
9918     *)
9919       hardcode_direct_CXX=yes
9920       hardcode_minus_L_CXX=yes # Not in the search PATH,
9921                                               # but as the default
9922                                               # location of the library.
9923       ;;
9924     esac
9925
9926     case $cc_basename in
9927       CC)
9928         # FIXME: insert proper C++ library support
9929         ld_shlibs_CXX=no
9930         ;;
9931       aCC)
9932         case "$host_cpu" in
9933         hppa*64*|ia64*)
9934           archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
9935           ;;
9936         *)
9937           archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
9938           ;;
9939         esac
9940         # Commands to make compiler produce verbose output that lists
9941         # what "hidden" libraries, object files and flags are used when
9942         # linking a shared library.
9943         #
9944         # There doesn't appear to be a way to prevent this compiler from
9945         # explicitly linking system object files so we need to strip them
9946         # from the output so that they don't get included in the library
9947         # dependencies.
9948         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'
9949         ;;
9950       *)
9951         if test "$GXX" = yes; then
9952           if test $with_gnu_ld = no; then
9953             case "$host_cpu" in
9954             ia64*|hppa*64*)
9955               archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
9956               ;;
9957             *)
9958               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'
9959               ;;
9960             esac
9961           fi
9962         else
9963           # FIXME: insert proper C++ library support
9964           ld_shlibs_CXX=no
9965         fi
9966         ;;
9967     esac
9968     ;;
9969   irix5* | irix6*)
9970     case $cc_basename in
9971       CC)
9972         # SGI C++
9973         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'
9974
9975         # Archives containing C++ object files must be created using
9976         # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
9977         # necessary to make sure instantiated templates are included
9978         # in the archive.
9979         old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
9980         ;;
9981       *)
9982         if test "$GXX" = yes; then
9983           if test "$with_gnu_ld" = no; then
9984             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'
9985           else
9986             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'
9987           fi
9988         fi
9989         link_all_deplibs_CXX=yes
9990         ;;
9991     esac
9992     hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
9993     hardcode_libdir_separator_CXX=:
9994     ;;
9995   linux*)
9996     case $cc_basename in
9997       KCC)
9998         # Kuck and Associates, Inc. (KAI) C++ Compiler
9999
10000         # KCC will only create a shared library if the output file
10001         # ends with ".so" (or ".sl" for HP-UX), so rename the library
10002         # to its proper name (with version) after linking.
10003         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'
10004         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'
10005         # Commands to make compiler produce verbose output that lists
10006         # what "hidden" libraries, object files and flags are used when
10007         # linking a shared library.
10008         #
10009         # There doesn't appear to be a way to prevent this compiler from
10010         # explicitly linking system object files so we need to strip them
10011         # from the output so that they don't get included in the library
10012         # dependencies.
10013         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'
10014
10015         hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
10016         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10017
10018         # Archives containing C++ object files must be created using
10019         # "CC -Bstatic", where "CC" is the KAI C++ compiler.
10020         old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
10021         ;;
10022       icpc)
10023         # Intel C++
10024         with_gnu_ld=yes
10025         archive_cmds_need_lc_CXX=no
10026         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10027         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'
10028         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10029         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10030         whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
10031         ;;
10032       cxx)
10033         # Compaq C++
10034         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10035         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'
10036
10037         runpath_var=LD_RUN_PATH
10038         hardcode_libdir_flag_spec_CXX='-rpath $libdir'
10039         hardcode_libdir_separator_CXX=:
10040
10041         # Commands to make compiler produce verbose output that lists
10042         # what "hidden" libraries, object files and flags are used when
10043         # linking a shared library.
10044         #
10045         # There doesn't appear to be a way to prevent this compiler from
10046         # explicitly linking system object files so we need to strip them
10047         # from the output so that they don't get included in the library
10048         # dependencies.
10049         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'
10050         ;;
10051     esac
10052     ;;
10053   lynxos*)
10054     # FIXME: insert proper C++ library support
10055     ld_shlibs_CXX=no
10056     ;;
10057   m88k*)
10058     # FIXME: insert proper C++ library support
10059     ld_shlibs_CXX=no
10060     ;;
10061   mvs*)
10062     case $cc_basename in
10063       cxx)
10064         # FIXME: insert proper C++ library support
10065         ld_shlibs_CXX=no
10066         ;;
10067       *)
10068         # FIXME: insert proper C++ library support
10069         ld_shlibs_CXX=no
10070         ;;
10071     esac
10072     ;;
10073   netbsd*)
10074     if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
10075       archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
10076       wlarc=
10077       hardcode_libdir_flag_spec_CXX='-R$libdir'
10078       hardcode_direct_CXX=yes
10079       hardcode_shlibpath_var_CXX=no
10080     fi
10081     # Workaround some broken pre-1.5 toolchains
10082     output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
10083     ;;
10084   osf3*)
10085     case $cc_basename in
10086       KCC)
10087         # Kuck and Associates, Inc. (KAI) C++ Compiler
10088
10089         # KCC will only create a shared library if the output file
10090         # ends with ".so" (or ".sl" for HP-UX), so rename the library
10091         # to its proper name (with version) after linking.
10092         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'
10093
10094         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10095         hardcode_libdir_separator_CXX=:
10096
10097         # Archives containing C++ object files must be created using
10098         # "CC -Bstatic", where "CC" is the KAI C++ compiler.
10099         old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
10100
10101         ;;
10102       RCC)
10103         # Rational C++ 2.4.1
10104         # FIXME: insert proper C++ library support
10105         ld_shlibs_CXX=no
10106         ;;
10107       cxx)
10108         allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10109         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'
10110
10111         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10112         hardcode_libdir_separator_CXX=:
10113
10114         # Commands to make compiler produce verbose output that lists
10115         # what "hidden" libraries, object files and flags are used when
10116         # linking a shared library.
10117         #
10118         # There doesn't appear to be a way to prevent this compiler from
10119         # explicitly linking system object files so we need to strip them
10120         # from the output so that they don't get included in the library
10121         # dependencies.
10122         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'
10123         ;;
10124       *)
10125         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10126           allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10127           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'
10128
10129           hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10130           hardcode_libdir_separator_CXX=:
10131
10132           # Commands to make compiler produce verbose output that lists
10133           # what "hidden" libraries, object files and flags are used when
10134           # linking a shared library.
10135           output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10136
10137         else
10138           # FIXME: insert proper C++ library support
10139           ld_shlibs_CXX=no
10140         fi
10141         ;;
10142     esac
10143     ;;
10144   osf4* | osf5*)
10145     case $cc_basename in
10146       KCC)
10147         # Kuck and Associates, Inc. (KAI) C++ Compiler
10148
10149         # KCC will only create a shared library if the output file
10150         # ends with ".so" (or ".sl" for HP-UX), so rename the library
10151         # to its proper name (with version) after linking.
10152         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'
10153
10154         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10155         hardcode_libdir_separator_CXX=:
10156
10157         # Archives containing C++ object files must be created using
10158         # the KAI C++ compiler.
10159         old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
10160         ;;
10161       RCC)
10162         # Rational C++ 2.4.1
10163         # FIXME: insert proper C++ library support
10164         ld_shlibs_CXX=no
10165         ;;
10166       cxx)
10167         allow_undefined_flag_CXX=' -expect_unresolved \*'
10168         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'
10169         archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
10170           echo "-hidden">> $lib.exp~
10171           $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~
10172           $rm $lib.exp'
10173
10174         hardcode_libdir_flag_spec_CXX='-rpath $libdir'
10175         hardcode_libdir_separator_CXX=:
10176
10177         # Commands to make compiler produce verbose output that lists
10178         # what "hidden" libraries, object files and flags are used when
10179         # linking a shared library.
10180         #
10181         # There doesn't appear to be a way to prevent this compiler from
10182         # explicitly linking system object files so we need to strip them
10183         # from the output so that they don't get included in the library
10184         # dependencies.
10185         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'
10186         ;;
10187       *)
10188         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10189           allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10190          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'
10191
10192           hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10193           hardcode_libdir_separator_CXX=:
10194
10195           # Commands to make compiler produce verbose output that lists
10196           # what "hidden" libraries, object files and flags are used when
10197           # linking a shared library.
10198           output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10199
10200         else
10201           # FIXME: insert proper C++ library support
10202           ld_shlibs_CXX=no
10203         fi
10204         ;;
10205     esac
10206     ;;
10207   psos*)
10208     # FIXME: insert proper C++ library support
10209     ld_shlibs_CXX=no
10210     ;;
10211   sco*)
10212     archive_cmds_need_lc_CXX=no
10213     case $cc_basename in
10214       CC)
10215         # FIXME: insert proper C++ library support
10216         ld_shlibs_CXX=no
10217         ;;
10218       *)
10219         # FIXME: insert proper C++ library support
10220         ld_shlibs_CXX=no
10221         ;;
10222     esac
10223     ;;
10224   sunos4*)
10225     case $cc_basename in
10226       CC)
10227         # Sun C++ 4.x
10228         # FIXME: insert proper C++ library support
10229         ld_shlibs_CXX=no
10230         ;;
10231       lcc)
10232         # Lucid
10233         # FIXME: insert proper C++ library support
10234         ld_shlibs_CXX=no
10235         ;;
10236       *)
10237         # FIXME: insert proper C++ library support
10238         ld_shlibs_CXX=no
10239         ;;
10240     esac
10241     ;;
10242   solaris*)
10243     case $cc_basename in
10244       CC)
10245         # Sun C++ 4.2, 5.x and Centerline C++
10246         no_undefined_flag_CXX=' -zdefs'
10247         archive_cmds_CXX='$CC -G${allow_undefined_flag} -nolib -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10248         archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10249         $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'
10250
10251         hardcode_libdir_flag_spec_CXX='-R$libdir'
10252         hardcode_shlibpath_var_CXX=no
10253         case $host_os in
10254           solaris2.0-5 | solaris2.0-5.*) ;;
10255           *)
10256             # The C++ compiler is used as linker so we must use $wl
10257             # flag to pass the commands to the underlying system
10258             # linker.
10259             # Supported since Solaris 2.6 (maybe 2.5.1?)
10260             whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10261             ;;
10262         esac
10263         link_all_deplibs_CXX=yes
10264
10265         # Commands to make compiler produce verbose output that lists
10266         # what "hidden" libraries, object files and flags are used when
10267         # linking a shared library.
10268         #
10269         # There doesn't appear to be a way to prevent this compiler from
10270         # explicitly linking system object files so we need to strip them
10271         # from the output so that they don't get included in the library
10272         # dependencies.
10273         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'
10274
10275         # Archives containing C++ object files must be created using
10276         # "CC -xar", where "CC" is the Sun C++ compiler.  This is
10277         # necessary to make sure instantiated templates are included
10278         # in the archive.
10279         old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
10280         ;;
10281       gcx)
10282         # Green Hills C++ Compiler
10283         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10284
10285         # The C++ compiler must be used to create the archive.
10286         old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
10287         ;;
10288       *)
10289         # GNU C++ compiler with Solaris linker
10290         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10291           no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
10292           if $CC --version | grep -v '^2\.7' > /dev/null; then
10293             archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10294             archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10295                 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
10296
10297             # Commands to make compiler produce verbose output that lists
10298             # what "hidden" libraries, object files and flags are used when
10299             # linking a shared library.
10300             output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
10301           else
10302             # g++ 2.7 appears to require `-G' NOT `-shared' on this
10303             # platform.
10304             archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10305             archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10306                 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
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             output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
10312           fi
10313
10314           hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
10315         fi
10316         ;;
10317     esac
10318     ;;
10319   sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
10320     archive_cmds_need_lc_CXX=no
10321     ;;
10322   tandem*)
10323     case $cc_basename in
10324       NCC)
10325         # NonStop-UX NCC 3.20
10326         # FIXME: insert proper C++ library support
10327         ld_shlibs_CXX=no
10328         ;;
10329       *)
10330         # FIXME: insert proper C++ library support
10331         ld_shlibs_CXX=no
10332         ;;
10333     esac
10334     ;;
10335   vxworks*)
10336     # FIXME: insert proper C++ library support
10337     ld_shlibs_CXX=no
10338     ;;
10339   *)
10340     # FIXME: insert proper C++ library support
10341     ld_shlibs_CXX=no
10342     ;;
10343 esac
10344 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
10345 echo "${ECHO_T}$ld_shlibs_CXX" >&6
10346 test "$ld_shlibs_CXX" = no && can_build_shared=no
10347
10348 GCC_CXX="$GXX"
10349 LD_CXX="$LD"
10350
10351 ## CAVEAT EMPTOR:
10352 ## There is no encapsulation within the following macros, do not change
10353 ## the running order or otherwise move them around unless you know exactly
10354 ## what you are doing...
10355
10356 cat > conftest.$ac_ext <<EOF
10357 class Foo
10358 {
10359 public:
10360   Foo (void) { a = 0; }
10361 private:
10362   int a;
10363 };
10364 EOF
10365
10366 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10367   (eval $ac_compile) 2>&5
10368   ac_status=$?
10369   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10370   (exit $ac_status); }; then
10371   # Parse the compiler output and extract the necessary
10372   # objects, libraries and library flags.
10373
10374   # Sentinel used to keep track of whether or not we are before
10375   # the conftest object file.
10376   pre_test_object_deps_done=no
10377
10378   # The `*' in the case matches for architectures that use `case' in
10379   # $output_verbose_cmd can trigger glob expansion during the loop
10380   # eval without this substitution.
10381   output_verbose_link_cmd="`$echo \"X$output_verbose_link_cmd\" | $Xsed -e \"$no_glob_subst\"`"
10382
10383   for p in `eval $output_verbose_link_cmd`; do
10384     case $p in
10385
10386     -L* | -R* | -l*)
10387        # Some compilers place space between "-{L,R}" and the path.
10388        # Remove the space.
10389        if test $p = "-L" \
10390           || test $p = "-R"; then
10391          prev=$p
10392          continue
10393        else
10394          prev=
10395        fi
10396
10397        if test "$pre_test_object_deps_done" = no; then
10398          case $p in
10399          -L* | -R*)
10400            # Internal compiler library paths should come after those
10401            # provided the user.  The postdeps already come after the
10402            # user supplied libs so there is no need to process them.
10403            if test -z "$compiler_lib_search_path_CXX"; then
10404              compiler_lib_search_path_CXX="${prev}${p}"
10405            else
10406              compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
10407            fi
10408            ;;
10409          # The "-l" case would never come before the object being
10410          # linked, so don't bother handling this case.
10411          esac
10412        else
10413          if test -z "$postdeps_CXX"; then
10414            postdeps_CXX="${prev}${p}"
10415          else
10416            postdeps_CXX="${postdeps_CXX} ${prev}${p}"
10417          fi
10418        fi
10419        ;;
10420
10421     *.$objext)
10422        # This assumes that the test object file only shows up
10423        # once in the compiler output.
10424        if test "$p" = "conftest.$objext"; then
10425          pre_test_object_deps_done=yes
10426          continue
10427        fi
10428
10429        if test "$pre_test_object_deps_done" = no; then
10430          if test -z "$predep_objects_CXX"; then
10431            predep_objects_CXX="$p"
10432          else
10433            predep_objects_CXX="$predep_objects_CXX $p"
10434          fi
10435        else
10436          if test -z "$postdep_objects_CXX"; then
10437            postdep_objects_CXX="$p"
10438          else
10439            postdep_objects_CXX="$postdep_objects_CXX $p"
10440          fi
10441        fi
10442        ;;
10443
10444     *) ;; # Ignore the rest.
10445
10446     esac
10447   done
10448
10449   # Clean up.
10450   rm -f a.out a.exe
10451 else
10452   echo "libtool.m4: error: problem compiling CXX test program"
10453 fi
10454
10455 $rm -f confest.$objext
10456
10457 case " $postdeps_CXX " in
10458 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
10459 esac
10460
10461 lt_prog_compiler_wl_CXX=
10462 lt_prog_compiler_pic_CXX=
10463 lt_prog_compiler_static_CXX=
10464
10465 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
10466 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
10467
10468   # C++ specific cases for pic, static, wl, etc.
10469   if test "$GXX" = yes; then
10470     lt_prog_compiler_wl_CXX='-Wl,'
10471     lt_prog_compiler_static_CXX='-static'
10472
10473     case $host_os in
10474     aix*)
10475       # All AIX code is PIC.
10476       if test "$host_cpu" = ia64; then
10477         # AIX 5 now supports IA64 processor
10478         lt_prog_compiler_static_CXX='-Bstatic'
10479       fi
10480       ;;
10481     amigaos*)
10482       # FIXME: we need at least 68020 code to build shared libraries, but
10483       # adding the `-m68020' flag to GCC prevents building anything better,
10484       # like `-m68040'.
10485       lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
10486       ;;
10487     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
10488       # PIC is the default for these OSes.
10489       ;;
10490     mingw* | os2* | pw32*)
10491       # This hack is so that the source file can tell whether it is being
10492       # built for inclusion in a dll (and should export symbols for example).
10493       lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
10494       ;;
10495     darwin* | rhapsody*)
10496       # PIC is the default on this platform
10497       # Common symbols not allowed in MH_DYLIB files
10498       lt_prog_compiler_pic_CXX='-fno-common'
10499       ;;
10500     *djgpp*)
10501       # DJGPP does not support shared libraries at all
10502       lt_prog_compiler_pic_CXX=
10503       ;;
10504     sysv4*MP*)
10505       if test -d /usr/nec; then
10506         lt_prog_compiler_pic_CXX=-Kconform_pic
10507       fi
10508       ;;
10509     hpux*)
10510       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
10511       # not for PA HP-UX.
10512       case "$host_cpu" in
10513       hppa*64*|ia64*)
10514         ;;
10515       *)
10516         lt_prog_compiler_pic_CXX='-fPIC'
10517         ;;
10518       esac
10519       ;;
10520     *)
10521       lt_prog_compiler_pic_CXX='-fPIC'
10522       ;;
10523     esac
10524   else
10525     case $host_os in
10526       aix4* | aix5*)
10527         # All AIX code is PIC.
10528         if test "$host_cpu" = ia64; then
10529           # AIX 5 now supports IA64 processor
10530           lt_prog_compiler_static_CXX='-Bstatic'
10531         else
10532           lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
10533         fi
10534         ;;
10535       chorus*)
10536         case $cc_basename in
10537         cxch68)
10538           # Green Hills C++ Compiler
10539           # _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"
10540           ;;
10541         esac
10542         ;;
10543       dgux*)
10544         case $cc_basename in
10545           ec++)
10546             lt_prog_compiler_pic_CXX='-KPIC'
10547             ;;
10548           ghcx)
10549             # Green Hills C++ Compiler
10550             lt_prog_compiler_pic_CXX='-pic'
10551             ;;
10552           *)
10553             ;;
10554         esac
10555         ;;
10556       freebsd*)
10557         # FreeBSD uses GNU C++
10558         ;;
10559       hpux9* | hpux10* | hpux11*)
10560         case $cc_basename in
10561           CC)
10562             lt_prog_compiler_wl_CXX='-Wl,'
10563             lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
10564             if test "$host_cpu" != ia64; then
10565               lt_prog_compiler_pic_CXX='+Z'
10566             fi
10567             ;;
10568           aCC)
10569             lt_prog_compiler_wl_CXX='-Wl,'
10570             lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
10571             case "$host_cpu" in
10572             hppa*64*|ia64*)
10573               # +Z the default
10574               ;;
10575             *)
10576               lt_prog_compiler_pic_CXX='+Z'
10577               ;;
10578             esac
10579             ;;
10580           *)
10581             ;;
10582         esac
10583         ;;
10584       irix5* | irix6* | nonstopux*)
10585         case $cc_basename in
10586           CC)
10587             lt_prog_compiler_wl_CXX='-Wl,'
10588             lt_prog_compiler_static_CXX='-non_shared'
10589             # CC pic flag -KPIC is the default.
10590             ;;
10591           *)
10592             ;;
10593         esac
10594         ;;
10595       linux*)
10596         case $cc_basename in
10597           KCC)
10598             # KAI C++ Compiler
10599             lt_prog_compiler_wl_CXX='--backend -Wl,'
10600             lt_prog_compiler_pic_CXX='-fPIC'
10601             ;;
10602           icpc)
10603             # Intel C++
10604             lt_prog_compiler_wl_CXX='-Wl,'
10605             lt_prog_compiler_pic_CXX='-KPIC'
10606             lt_prog_compiler_static_CXX='-static'
10607             ;;
10608           cxx)
10609             # Compaq C++
10610             # Make sure the PIC flag is empty.  It appears that all Alpha
10611             # Linux and Compaq Tru64 Unix objects are PIC.
10612             lt_prog_compiler_pic_CXX=
10613             lt_prog_compiler_static_CXX='-non_shared'
10614             ;;
10615           *)
10616             ;;
10617         esac
10618         ;;
10619       lynxos*)
10620         ;;
10621       m88k*)
10622         ;;
10623       mvs*)
10624         case $cc_basename in
10625           cxx)
10626             lt_prog_compiler_pic_CXX='-W c,exportall'
10627             ;;
10628           *)
10629             ;;
10630         esac
10631         ;;
10632       netbsd*)
10633         ;;
10634       osf3* | osf4* | osf5*)
10635         case $cc_basename in
10636           KCC)
10637             lt_prog_compiler_wl_CXX='--backend -Wl,'
10638             ;;
10639           RCC)
10640             # Rational C++ 2.4.1
10641             lt_prog_compiler_pic_CXX='-pic'
10642             ;;
10643           cxx)
10644             # Digital/Compaq C++
10645             lt_prog_compiler_wl_CXX='-Wl,'
10646             # Make sure the PIC flag is empty.  It appears that all Alpha
10647             # Linux and Compaq Tru64 Unix objects are PIC.
10648             lt_prog_compiler_pic_CXX=
10649             lt_prog_compiler_static_CXX='-non_shared'
10650             ;;
10651           *)
10652             ;;
10653         esac
10654         ;;
10655       psos*)
10656         ;;
10657       sco*)
10658         case $cc_basename in
10659           CC)
10660             lt_prog_compiler_pic_CXX='-fPIC'
10661             ;;
10662           *)
10663             ;;
10664         esac
10665         ;;
10666       solaris*)
10667         case $cc_basename in
10668           CC)
10669             # Sun C++ 4.2, 5.x and Centerline C++
10670             lt_prog_compiler_pic_CXX='-KPIC'
10671             lt_prog_compiler_static_CXX='-Bstatic'
10672             lt_prog_compiler_wl_CXX='-Qoption ld '
10673             ;;
10674           gcx)
10675             # Green Hills C++ Compiler
10676             lt_prog_compiler_pic_CXX='-PIC'
10677             ;;
10678           *)
10679             ;;
10680         esac
10681         ;;
10682       sunos4*)
10683         case $cc_basename in
10684           CC)
10685             # Sun C++ 4.x
10686             lt_prog_compiler_pic_CXX='-pic'
10687             lt_prog_compiler_static_CXX='-Bstatic'
10688             ;;
10689           lcc)
10690             # Lucid
10691             lt_prog_compiler_pic_CXX='-pic'
10692             ;;
10693           *)
10694             ;;
10695         esac
10696         ;;
10697       tandem*)
10698         case $cc_basename in
10699           NCC)
10700             # NonStop-UX NCC 3.20
10701             lt_prog_compiler_pic_CXX='-KPIC'
10702             ;;
10703           *)
10704             ;;
10705         esac
10706         ;;
10707       unixware*)
10708         ;;
10709       vxworks*)
10710         ;;
10711       *)
10712         lt_prog_compiler_can_build_shared_CXX=no
10713         ;;
10714     esac
10715   fi
10716
10717 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
10718 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6
10719
10720 #
10721 # Check to make sure the PIC flag actually works.
10722 #
10723 if test -n "$lt_prog_compiler_pic_CXX"; then
10724   echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
10725 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6
10726 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
10727   echo $ECHO_N "(cached) $ECHO_C" >&6
10728 else
10729   lt_prog_compiler_pic_works_CXX=no
10730   ac_outfile=conftest.$ac_objext
10731    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
10732    lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
10733    # Insert the option either (1) after the last *FLAGS variable, or
10734    # (2) before a word containing "conftest.", or (3) at the end.
10735    # Note that $ac_compile itself does not contain backslashes and begins
10736    # with a dollar sign (not a hyphen), so the echo should work correctly.
10737    # The option is referenced via a variable to avoid confusing sed.
10738    lt_compile=`echo "$ac_compile" | $SED \
10739    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
10740    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10741    -e 's:$: $lt_compiler_flag:'`
10742    (eval echo "\"\$as_me:10742: $lt_compile\"" >&5)
10743    (eval "$lt_compile" 2>conftest.err)
10744    ac_status=$?
10745    cat conftest.err >&5
10746    echo "$as_me:10746: \$? = $ac_status" >&5
10747    if (exit $ac_status) && test -s "$ac_outfile"; then
10748      # The compiler can only warn and ignore the option if not recognized
10749      # So say no if there are warnings
10750      if test ! -s conftest.err; then
10751        lt_prog_compiler_pic_works_CXX=yes
10752      fi
10753    fi
10754    $rm conftest*
10755
10756 fi
10757 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
10758 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6
10759
10760 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
10761     case $lt_prog_compiler_pic_CXX in
10762      "" | " "*) ;;
10763      *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
10764      esac
10765 else
10766     lt_prog_compiler_pic_CXX=
10767      lt_prog_compiler_can_build_shared_CXX=no
10768 fi
10769
10770 fi
10771 case "$host_os" in
10772   # For platforms which do not support PIC, -DPIC is meaningless:
10773   *djgpp*)
10774     lt_prog_compiler_pic_CXX=
10775     ;;
10776   *)
10777     lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
10778     ;;
10779 esac
10780
10781 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
10782 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
10783 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
10784   echo $ECHO_N "(cached) $ECHO_C" >&6
10785 else
10786   lt_cv_prog_compiler_c_o_CXX=no
10787    $rm -r conftest 2>/dev/null
10788    mkdir conftest
10789    cd conftest
10790    mkdir out
10791    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
10792
10793    # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
10794    # that will create temporary files in the current directory regardless of
10795    # the output directory.  Thus, making CWD read-only will cause this test
10796    # to fail, enabling locking or at least warning the user not to do parallel
10797    # builds.
10798    chmod -w .
10799
10800    lt_compiler_flag="-o out/conftest2.$ac_objext"
10801    # Insert the option either (1) after the last *FLAGS variable, or
10802    # (2) before a word containing "conftest.", or (3) at the end.
10803    # Note that $ac_compile itself does not contain backslashes and begins
10804    # with a dollar sign (not a hyphen), so the echo should work correctly.
10805    lt_compile=`echo "$ac_compile" | $SED \
10806    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
10807    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10808    -e 's:$: $lt_compiler_flag:'`
10809    (eval echo "\"\$as_me:10809: $lt_compile\"" >&5)
10810    (eval "$lt_compile" 2>out/conftest.err)
10811    ac_status=$?
10812    cat out/conftest.err >&5
10813    echo "$as_me:10813: \$? = $ac_status" >&5
10814    if (exit $ac_status) && test -s out/conftest2.$ac_objext
10815    then
10816      # The compiler can only warn and ignore the option if not recognized
10817      # So say no if there are warnings
10818      if test ! -s out/conftest.err; then
10819        lt_cv_prog_compiler_c_o_CXX=yes
10820      fi
10821    fi
10822    chmod u+w .
10823    $rm conftest* out/*
10824    rmdir out
10825    cd ..
10826    rmdir conftest
10827    $rm conftest*
10828
10829 fi
10830 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
10831 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
10832
10833
10834 hard_links="nottested"
10835 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
10836   # do not overwrite the value of need_locks provided by the user
10837   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
10838 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
10839   hard_links=yes
10840   $rm conftest*
10841   ln conftest.a conftest.b 2>/dev/null && hard_links=no
10842   touch conftest.a
10843   ln conftest.a conftest.b 2>&5 || hard_links=no
10844   ln conftest.a conftest.b 2>/dev/null && hard_links=no
10845   echo "$as_me:$LINENO: result: $hard_links" >&5
10846 echo "${ECHO_T}$hard_links" >&6
10847   if test "$hard_links" = no; then
10848     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
10849 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
10850     need_locks=warn
10851   fi
10852 else
10853   need_locks=no
10854 fi
10855
10856 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10857 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
10858
10859   export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
10860   case $host_os in
10861   aix4* | aix5*)
10862     # If we're using GNU nm, then we don't want the "-C" option.
10863     # -C means demangle to AIX nm, but means don't demangle with GNU nm
10864     if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
10865       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'
10866     else
10867       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'
10868     fi
10869     ;;
10870   pw32*)
10871     export_symbols_cmds_CXX="$ltdll_cmds"
10872   ;;
10873   cygwin* | mingw*)
10874     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
10875   ;;
10876   *)
10877     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
10878   ;;
10879   esac
10880
10881 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
10882 echo "${ECHO_T}$ld_shlibs_CXX" >&6
10883 test "$ld_shlibs_CXX" = no && can_build_shared=no
10884
10885 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10886 if test "$GCC" = yes; then
10887   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10888 fi
10889
10890 #
10891 # Do we need to explicitly link libc?
10892 #
10893 case "x$archive_cmds_need_lc_CXX" in
10894 x|xyes)
10895   # Assume -lc should be added
10896   archive_cmds_need_lc_CXX=yes
10897
10898   if test "$enable_shared" = yes && test "$GCC" = yes; then
10899     case $archive_cmds_CXX in
10900     *'~'*)
10901       # FIXME: we may have to deal with multi-command sequences.
10902       ;;
10903     '$CC '*)
10904       # Test whether the compiler implicitly links with -lc since on some
10905       # systems, -lgcc has to come before -lc. If gcc already passes -lc
10906       # to ld, don't add -lc before -lgcc.
10907       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
10908 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
10909       $rm conftest*
10910       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
10911
10912       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10913   (eval $ac_compile) 2>&5
10914   ac_status=$?
10915   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10916   (exit $ac_status); } 2>conftest.err; then
10917         soname=conftest
10918         lib=conftest
10919         libobjs=conftest.$ac_objext
10920         deplibs=
10921         wl=$lt_prog_compiler_wl_CXX
10922         compiler_flags=-v
10923         linker_flags=-v
10924         verstring=
10925         output_objdir=.
10926         libname=conftest
10927         lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
10928         allow_undefined_flag_CXX=
10929         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
10930   (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
10931   ac_status=$?
10932   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10933   (exit $ac_status); }
10934         then
10935           archive_cmds_need_lc_CXX=no
10936         else
10937           archive_cmds_need_lc_CXX=yes
10938         fi
10939         allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
10940       else
10941         cat conftest.err 1>&5
10942       fi
10943       $rm conftest*
10944       echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
10945 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6
10946       ;;
10947     esac
10948   fi
10949   ;;
10950 esac
10951
10952 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
10953 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
10954 hardcode_action_CXX=
10955 if test -n "$hardcode_libdir_flag_spec_CXX" || \
10956    test -n "$runpath_var CXX" || \
10957    test "X$hardcode_automatic_CXX"="Xyes" ; then
10958
10959   # We can hardcode non-existant directories.
10960   if test "$hardcode_direct_CXX" != no &&
10961      # If the only mechanism to avoid hardcoding is shlibpath_var, we
10962      # have to relink, otherwise we might link with an installed library
10963      # when we should be linking with a yet-to-be-installed one
10964      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
10965      test "$hardcode_minus_L_CXX" != no; then
10966     # Linking always hardcodes the temporary library directory.
10967     hardcode_action_CXX=relink
10968   else
10969     # We can link without hardcoding, and we can hardcode nonexisting dirs.
10970     hardcode_action_CXX=immediate
10971   fi
10972 else
10973   # We cannot hardcode anything, or else we can only hardcode existing
10974   # directories.
10975   hardcode_action_CXX=unsupported
10976 fi
10977 echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
10978 echo "${ECHO_T}$hardcode_action_CXX" >&6
10979
10980 if test "$hardcode_action_CXX" = relink; then
10981   # Fast installation is not supported
10982   enable_fast_install=no
10983 elif test "$shlibpath_overrides_runpath" = yes ||
10984      test "$enable_shared" = no; then
10985   # Fast installation is not necessary
10986   enable_fast_install=needless
10987 fi
10988
10989 striplib=
10990 old_striplib=
10991 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
10992 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
10993 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
10994   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
10995   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
10996   echo "$as_me:$LINENO: result: yes" >&5
10997 echo "${ECHO_T}yes" >&6
10998 else
10999 # FIXME - insert some real tests, host_os isn't really good enough
11000   case $host_os in
11001    darwin*)
11002        if test -n "$STRIP" ; then
11003          striplib="$STRIP -x"
11004          echo "$as_me:$LINENO: result: yes" >&5
11005 echo "${ECHO_T}yes" >&6
11006        else
11007   echo "$as_me:$LINENO: result: no" >&5
11008 echo "${ECHO_T}no" >&6
11009 fi
11010        ;;
11011    *)
11012   echo "$as_me:$LINENO: result: no" >&5
11013 echo "${ECHO_T}no" >&6
11014     ;;
11015   esac
11016 fi
11017
11018 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
11019 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
11020 library_names_spec=
11021 libname_spec='lib$name'
11022 soname_spec=
11023 shrext=".so"
11024 postinstall_cmds=
11025 postuninstall_cmds=
11026 finish_cmds=
11027 finish_eval=
11028 shlibpath_var=
11029 shlibpath_overrides_runpath=unknown
11030 version_type=none
11031 dynamic_linker="$host_os ld.so"
11032 sys_lib_dlsearch_path_spec="/lib /usr/lib"
11033 if test "$GCC" = yes; then
11034   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11035   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
11036     # if the path contains ";" then we assume it to be the separator
11037     # otherwise default to the standard path separator (i.e. ":") - it is
11038     # assumed that no part of a normal pathname contains ";" but that should
11039     # okay in the real world where ";" in dirpaths is itself problematic.
11040     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11041   else
11042     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
11043   fi
11044 else
11045   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11046 fi
11047 need_lib_prefix=unknown
11048 hardcode_into_libs=no
11049
11050 # when you set need_version to no, make sure it does not cause -set_version
11051 # flags to be left without arguments
11052 need_version=unknown
11053
11054 case $host_os in
11055 aix3*)
11056   version_type=linux
11057   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
11058   shlibpath_var=LIBPATH
11059
11060   # AIX 3 has no versioning support, so we append a major version to the name.
11061   soname_spec='${libname}${release}${shared_ext}$major'
11062   ;;
11063
11064 aix4* | aix5*)
11065   version_type=linux
11066   need_lib_prefix=no
11067   need_version=no
11068   hardcode_into_libs=yes
11069   if test "$host_cpu" = ia64; then
11070     # AIX 5 supports IA64
11071     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
11072     shlibpath_var=LD_LIBRARY_PATH
11073   else
11074     # With GCC up to 2.95.x, collect2 would create an import file
11075     # for dependence libraries.  The import file would start with
11076     # the line `#! .'.  This would cause the generated library to
11077     # depend on `.', always an invalid library.  This was fixed in
11078     # development snapshots of GCC prior to 3.0.
11079     case $host_os in
11080       aix4 | aix4.[01] | aix4.[01].*)
11081       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11082            echo ' yes '
11083            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
11084         :
11085       else
11086         can_build_shared=no
11087       fi
11088       ;;
11089     esac
11090     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
11091     # soname into executable. Probably we can add versioning support to
11092     # collect2, so additional links can be useful in future.
11093     if test "$aix_use_runtimelinking" = yes; then
11094       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11095       # instead of lib<name>.a to let people know that these are not
11096       # typical AIX shared libraries.
11097       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11098     else
11099       # We preserve .a as extension for shared libraries through AIX4.2
11100       # and later when we are not doing run time linking.
11101       library_names_spec='${libname}${release}.a $libname.a'
11102       soname_spec='${libname}${release}${shared_ext}$major'
11103     fi
11104     shlibpath_var=LIBPATH
11105   fi
11106   ;;
11107
11108 amigaos*)
11109   library_names_spec='$libname.ixlibrary $libname.a'
11110   # Create ${libname}_ixlibrary.a entries in /sys/libs.
11111   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'
11112   ;;
11113
11114 beos*)
11115   library_names_spec='${libname}${shared_ext}'
11116   dynamic_linker="$host_os ld.so"
11117   shlibpath_var=LIBRARY_PATH
11118   ;;
11119
11120 bsdi4*)
11121   version_type=linux
11122   need_version=no
11123   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11124   soname_spec='${libname}${release}${shared_ext}$major'
11125   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11126   shlibpath_var=LD_LIBRARY_PATH
11127   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11128   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11129   # the default ld.so.conf also contains /usr/contrib/lib and
11130   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11131   # libtool to hard-code these into programs
11132   ;;
11133
11134 cygwin* | mingw* | pw32*)
11135   version_type=windows
11136   shrext=".dll"
11137   need_version=no
11138   need_lib_prefix=no
11139
11140   case $GCC,$host_os in
11141   yes,cygwin* | yes,mingw* | yes,pw32*)
11142     library_names_spec='$libname.dll.a'
11143     # DLL is installed to $(libdir)/../bin by postinstall_cmds
11144     postinstall_cmds='base_file=`basename \${file}`~
11145       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
11146       dldir=$destdir/`dirname \$dlpath`~
11147       test -d \$dldir || mkdir -p \$dldir~
11148       $install_prog $dir/$dlname \$dldir/$dlname'
11149     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11150       dlpath=$dir/\$dldll~
11151        $rm \$dlpath'
11152     shlibpath_overrides_runpath=yes
11153
11154     case $host_os in
11155     cygwin*)
11156       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11157       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11158       sys_lib_search_path_spec="/lib /lib/w32api /usr/lib /usr/local/lib"
11159       ;;
11160     mingw*)
11161       # MinGW DLLs use traditional 'lib' prefix
11162       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11163       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11164       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
11165         # It is most probably a Windows format PATH printed by
11166         # mingw gcc, but we are running on Cygwin. Gcc prints its search
11167         # path with ; separators, and with drive letters. We can handle the
11168         # drive letters (cygwin fileutils understands them), so leave them,
11169         # especially as we might pass files found there to a mingw objdump,
11170         # which wouldn't understand a cygwinified path. Ahh.
11171         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11172       else
11173         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
11174       fi
11175       ;;
11176     pw32*)
11177       # pw32 DLLs use 'pw' prefix rather than 'lib'
11178       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
11179       ;;
11180     esac
11181     ;;
11182
11183   *)
11184     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11185     ;;
11186   esac
11187   dynamic_linker='Win32 ld.exe'
11188   # FIXME: first we should search . and the directory the executable is in
11189   shlibpath_var=PATH
11190   ;;
11191
11192 darwin* | rhapsody*)
11193   dynamic_linker="$host_os dyld"
11194   version_type=darwin
11195   need_lib_prefix=no
11196   need_version=no
11197   # FIXME: Relying on posixy $() will cause problems for
11198   #        cross-compilation, but unfortunately the echo tests do not
11199   #        yet detect zsh echo's removal of \ escapes.
11200   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11201   soname_spec='${libname}${release}${major}$shared_ext'
11202   shlibpath_overrides_runpath=yes
11203   shlibpath_var=DYLD_LIBRARY_PATH
11204   shrext='$(test .$module = .yes && echo .so || echo .dylib)'
11205   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
11206   if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
11207   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"`
11208   fi
11209   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11210   ;;
11211
11212 dgux*)
11213   version_type=linux
11214   need_lib_prefix=no
11215   need_version=no
11216   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11217   soname_spec='${libname}${release}${shared_ext}$major'
11218   shlibpath_var=LD_LIBRARY_PATH
11219   ;;
11220
11221 freebsd1*)
11222   dynamic_linker=no
11223   ;;
11224
11225 freebsd*)
11226   objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
11227   version_type=freebsd-$objformat
11228   case $version_type in
11229     freebsd-elf*)
11230       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11231       need_version=no
11232       need_lib_prefix=no
11233       ;;
11234     freebsd-*)
11235       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11236       need_version=yes
11237       ;;
11238   esac
11239   shlibpath_var=LD_LIBRARY_PATH
11240   case $host_os in
11241   freebsd2*)
11242     shlibpath_overrides_runpath=yes
11243     ;;
11244   freebsd3.01* | freebsdelf3.01*)
11245     shlibpath_overrides_runpath=yes
11246     hardcode_into_libs=yes
11247     ;;
11248   *) # from 3.2 on
11249     shlibpath_overrides_runpath=no
11250     hardcode_into_libs=yes
11251     ;;
11252   esac
11253   ;;
11254
11255 gnu*)
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   hardcode_into_libs=yes
11263   ;;
11264
11265 hpux9* | hpux10* | hpux11*)
11266   # Give a soname corresponding to the major version so that dld.sl refuses to
11267   # link against other versions.
11268   version_type=sunos
11269   need_lib_prefix=no
11270   need_version=no
11271   case "$host_cpu" in
11272   ia64*)
11273     shrext='.so'
11274     hardcode_into_libs=yes
11275     dynamic_linker="$host_os dld.so"
11276     shlibpath_var=LD_LIBRARY_PATH
11277     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11278     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11279     soname_spec='${libname}${release}${shared_ext}$major'
11280     if test "X$HPUX_IA64_MODE" = X32; then
11281       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11282     else
11283       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11284     fi
11285     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11286     ;;
11287    hppa*64*)
11288      shrext='.sl'
11289      hardcode_into_libs=yes
11290      dynamic_linker="$host_os dld.sl"
11291      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11292      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11293      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11294      soname_spec='${libname}${release}${shared_ext}$major'
11295      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11296      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11297      ;;
11298    *)
11299     shrext='.sl'
11300     dynamic_linker="$host_os dld.sl"
11301     shlibpath_var=SHLIB_PATH
11302     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11303     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11304     soname_spec='${libname}${release}${shared_ext}$major'
11305     ;;
11306   esac
11307   # HP-UX runs *really* slowly unless shared libraries are mode 555.
11308   postinstall_cmds='chmod 555 $lib'
11309   ;;
11310
11311 irix5* | irix6* | nonstopux*)
11312   case $host_os in
11313     nonstopux*) version_type=nonstopux ;;
11314     *)
11315         if test "$lt_cv_prog_gnu_ld" = yes; then
11316                 version_type=linux
11317         else
11318                 version_type=irix
11319         fi ;;
11320   esac
11321   need_lib_prefix=no
11322   need_version=no
11323   soname_spec='${libname}${release}${shared_ext}$major'
11324   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11325   case $host_os in
11326   irix5* | nonstopux*)
11327     libsuff= shlibsuff=
11328     ;;
11329   *)
11330     case $LD in # libtool.m4 will add one of these switches to LD
11331     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11332       libsuff= shlibsuff= libmagic=32-bit;;
11333     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11334       libsuff=32 shlibsuff=N32 libmagic=N32;;
11335     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11336       libsuff=64 shlibsuff=64 libmagic=64-bit;;
11337     *) libsuff= shlibsuff= libmagic=never-match;;
11338     esac
11339     ;;
11340   esac
11341   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11342   shlibpath_overrides_runpath=no
11343   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11344   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11345   hardcode_into_libs=yes
11346   ;;
11347
11348 # No shared lib support for Linux oldld, aout, or coff.
11349 linux*oldld* | linux*aout* | linux*coff*)
11350   dynamic_linker=no
11351   ;;
11352
11353 # This must be Linux ELF.
11354 linux*)
11355   version_type=linux
11356   need_lib_prefix=no
11357   need_version=no
11358   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11359   soname_spec='${libname}${release}${shared_ext}$major'
11360   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11361   shlibpath_var=LD_LIBRARY_PATH
11362   shlibpath_overrides_runpath=no
11363   # This implies no fast_install, which is unacceptable.
11364   # Some rework will be needed to allow for fast_install
11365   # before this can be enabled.
11366   hardcode_into_libs=yes
11367
11368   # We used to test for /lib/ld.so.1 and disable shared libraries on
11369   # powerpc, because MkLinux only supported shared libraries with the
11370   # GNU dynamic linker.  Since this was broken with cross compilers,
11371   # most powerpc-linux boxes support dynamic linking these days and
11372   # people can always --disable-shared, the test was removed, and we
11373   # assume the GNU/Linux dynamic linker is in use.
11374   dynamic_linker='GNU/Linux ld.so'
11375   ;;
11376
11377 netbsd*)
11378   version_type=sunos
11379   need_lib_prefix=no
11380   need_version=no
11381   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
11382     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11383     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11384     dynamic_linker='NetBSD (a.out) ld.so'
11385   else
11386     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
11387     soname_spec='${libname}${release}${shared_ext}$major'
11388     dynamic_linker='NetBSD ld.elf_so'
11389   fi
11390   shlibpath_var=LD_LIBRARY_PATH
11391   shlibpath_overrides_runpath=yes
11392   hardcode_into_libs=yes
11393   ;;
11394
11395 newsos6)
11396   version_type=linux
11397   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11398   shlibpath_var=LD_LIBRARY_PATH
11399   shlibpath_overrides_runpath=yes
11400   ;;
11401
11402 nto-qnx)
11403   version_type=linux
11404   need_lib_prefix=no
11405   need_version=no
11406   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11407   soname_spec='${libname}${release}${shared_ext}$major'
11408   shlibpath_var=LD_LIBRARY_PATH
11409   shlibpath_overrides_runpath=yes
11410   ;;
11411
11412 openbsd*)
11413   version_type=sunos
11414   need_lib_prefix=no
11415   need_version=no
11416   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11417   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11418   shlibpath_var=LD_LIBRARY_PATH
11419   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11420     case $host_os in
11421       openbsd2.[89] | openbsd2.[89].*)
11422         shlibpath_overrides_runpath=no
11423         ;;
11424       *)
11425         shlibpath_overrides_runpath=yes
11426         ;;
11427       esac
11428   else
11429     shlibpath_overrides_runpath=yes
11430   fi
11431   ;;
11432
11433 os2*)
11434   libname_spec='$name'
11435   shrext=".dll"
11436   need_lib_prefix=no
11437   library_names_spec='$libname${shared_ext} $libname.a'
11438   dynamic_linker='OS/2 ld.exe'
11439   shlibpath_var=LIBPATH
11440   ;;
11441
11442 osf3* | osf4* | osf5*)
11443   version_type=osf
11444   need_lib_prefix=no
11445   need_version=no
11446   soname_spec='${libname}${release}${shared_ext}$major'
11447   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11448   shlibpath_var=LD_LIBRARY_PATH
11449   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11450   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11451   ;;
11452
11453 sco3.2v5*)
11454   version_type=osf
11455   soname_spec='${libname}${release}${shared_ext}$major'
11456   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11457   shlibpath_var=LD_LIBRARY_PATH
11458   ;;
11459
11460 solaris*)
11461   version_type=linux
11462   need_lib_prefix=no
11463   need_version=no
11464   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11465   soname_spec='${libname}${release}${shared_ext}$major'
11466   shlibpath_var=LD_LIBRARY_PATH
11467   shlibpath_overrides_runpath=yes
11468   hardcode_into_libs=yes
11469   # ldd complains unless libraries are executable
11470   postinstall_cmds='chmod +x $lib'
11471   ;;
11472
11473 sunos4*)
11474   version_type=sunos
11475   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11476   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11477   shlibpath_var=LD_LIBRARY_PATH
11478   shlibpath_overrides_runpath=yes
11479   if test "$with_gnu_ld" = yes; then
11480     need_lib_prefix=no
11481   fi
11482   need_version=yes
11483   ;;
11484
11485 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
11486   version_type=linux
11487   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11488   soname_spec='${libname}${release}${shared_ext}$major'
11489   shlibpath_var=LD_LIBRARY_PATH
11490   case $host_vendor in
11491     sni)
11492       shlibpath_overrides_runpath=no
11493       need_lib_prefix=no
11494       export_dynamic_flag_spec='${wl}-Blargedynsym'
11495       runpath_var=LD_RUN_PATH
11496       ;;
11497     siemens)
11498       need_lib_prefix=no
11499       ;;
11500     motorola)
11501       need_lib_prefix=no
11502       need_version=no
11503       shlibpath_overrides_runpath=no
11504       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11505       ;;
11506   esac
11507   ;;
11508
11509 sysv4*MP*)
11510   if test -d /usr/nec ;then
11511     version_type=linux
11512     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11513     soname_spec='$libname${shared_ext}.$major'
11514     shlibpath_var=LD_LIBRARY_PATH
11515   fi
11516   ;;
11517
11518 uts4*)
11519   version_type=linux
11520   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11521   soname_spec='${libname}${release}${shared_ext}$major'
11522   shlibpath_var=LD_LIBRARY_PATH
11523   ;;
11524
11525 *)
11526   dynamic_linker=no
11527   ;;
11528 esac
11529 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
11530 echo "${ECHO_T}$dynamic_linker" >&6
11531 test "$dynamic_linker" = no && can_build_shared=no
11532
11533 if test "x$enable_dlopen" != xyes; then
11534   enable_dlopen=unknown
11535   enable_dlopen_self=unknown
11536   enable_dlopen_self_static=unknown
11537 else
11538   lt_cv_dlopen=no
11539   lt_cv_dlopen_libs=
11540
11541   case $host_os in
11542   beos*)
11543     lt_cv_dlopen="load_add_on"
11544     lt_cv_dlopen_libs=
11545     lt_cv_dlopen_self=yes
11546     ;;
11547
11548   mingw* | pw32*)
11549     lt_cv_dlopen="LoadLibrary"
11550     lt_cv_dlopen_libs=
11551    ;;
11552
11553   cygwin*)
11554     lt_cv_dlopen="dlopen"
11555     lt_cv_dlopen_libs=
11556    ;;
11557
11558   darwin*)
11559   # if libdl is installed we need to link against it
11560     echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
11561 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
11562 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
11563   echo $ECHO_N "(cached) $ECHO_C" >&6
11564 else
11565   ac_check_lib_save_LIBS=$LIBS
11566 LIBS="-ldl  $LIBS"
11567 cat >conftest.$ac_ext <<_ACEOF
11568 #line $LINENO "configure"
11569 /* confdefs.h.  */
11570 _ACEOF
11571 cat confdefs.h >>conftest.$ac_ext
11572 cat >>conftest.$ac_ext <<_ACEOF
11573 /* end confdefs.h.  */
11574
11575 /* Override any gcc2 internal prototype to avoid an error.  */
11576 #ifdef __cplusplus
11577 extern "C"
11578 #endif
11579 /* We use char because int might match the return type of a gcc2
11580    builtin and then its argument prototype would still apply.  */
11581 char dlopen ();
11582 int
11583 main ()
11584 {
11585 dlopen ();
11586   ;
11587   return 0;
11588 }
11589 _ACEOF
11590 rm -f conftest.$ac_objext conftest$ac_exeext
11591 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11592   (eval $ac_link) 2>&5
11593   ac_status=$?
11594   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11595   (exit $ac_status); } &&
11596          { ac_try='test -s conftest$ac_exeext'
11597   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11598   (eval $ac_try) 2>&5
11599   ac_status=$?
11600   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11601   (exit $ac_status); }; }; then
11602   ac_cv_lib_dl_dlopen=yes
11603 else
11604   echo "$as_me: failed program was:" >&5
11605 sed 's/^/| /' conftest.$ac_ext >&5
11606
11607 ac_cv_lib_dl_dlopen=no
11608 fi
11609 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11610 LIBS=$ac_check_lib_save_LIBS
11611 fi
11612 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
11613 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
11614 if test $ac_cv_lib_dl_dlopen = yes; then
11615   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11616 else
11617
11618     lt_cv_dlopen="dyld"
11619     lt_cv_dlopen_libs=
11620     lt_cv_dlopen_self=yes
11621
11622 fi
11623
11624    ;;
11625
11626   *)
11627     echo "$as_me:$LINENO: checking for shl_load" >&5
11628 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
11629 if test "${ac_cv_func_shl_load+set}" = set; then
11630   echo $ECHO_N "(cached) $ECHO_C" >&6
11631 else
11632   cat >conftest.$ac_ext <<_ACEOF
11633 #line $LINENO "configure"
11634 /* confdefs.h.  */
11635 _ACEOF
11636 cat confdefs.h >>conftest.$ac_ext
11637 cat >>conftest.$ac_ext <<_ACEOF
11638 /* end confdefs.h.  */
11639 /* System header to define __stub macros and hopefully few prototypes,
11640     which can conflict with char shl_load (); below.
11641     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11642     <limits.h> exists even on freestanding compilers.  */
11643 #ifdef __STDC__
11644 # include <limits.h>
11645 #else
11646 # include <assert.h>
11647 #endif
11648 /* Override any gcc2 internal prototype to avoid an error.  */
11649 #ifdef __cplusplus
11650 extern "C"
11651 {
11652 #endif
11653 /* We use char because int might match the return type of a gcc2
11654    builtin and then its argument prototype would still apply.  */
11655 char shl_load ();
11656 /* The GNU C library defines this for functions which it implements
11657     to always fail with ENOSYS.  Some functions are actually named
11658     something starting with __ and the normal name is an alias.  */
11659 #if defined (__stub_shl_load) || defined (__stub___shl_load)
11660 choke me
11661 #else
11662 char (*f) () = shl_load;
11663 #endif
11664 #ifdef __cplusplus
11665 }
11666 #endif
11667
11668 int
11669 main ()
11670 {
11671 return f != shl_load;
11672   ;
11673   return 0;
11674 }
11675 _ACEOF
11676 rm -f conftest.$ac_objext conftest$ac_exeext
11677 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11678   (eval $ac_link) 2>&5
11679   ac_status=$?
11680   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11681   (exit $ac_status); } &&
11682          { ac_try='test -s conftest$ac_exeext'
11683   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11684   (eval $ac_try) 2>&5
11685   ac_status=$?
11686   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11687   (exit $ac_status); }; }; then
11688   ac_cv_func_shl_load=yes
11689 else
11690   echo "$as_me: failed program was:" >&5
11691 sed 's/^/| /' conftest.$ac_ext >&5
11692
11693 ac_cv_func_shl_load=no
11694 fi
11695 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11696 fi
11697 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
11698 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
11699 if test $ac_cv_func_shl_load = yes; then
11700   lt_cv_dlopen="shl_load"
11701 else
11702   echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
11703 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
11704 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
11705   echo $ECHO_N "(cached) $ECHO_C" >&6
11706 else
11707   ac_check_lib_save_LIBS=$LIBS
11708 LIBS="-ldld  $LIBS"
11709 cat >conftest.$ac_ext <<_ACEOF
11710 #line $LINENO "configure"
11711 /* confdefs.h.  */
11712 _ACEOF
11713 cat confdefs.h >>conftest.$ac_ext
11714 cat >>conftest.$ac_ext <<_ACEOF
11715 /* end confdefs.h.  */
11716
11717 /* Override any gcc2 internal prototype to avoid an error.  */
11718 #ifdef __cplusplus
11719 extern "C"
11720 #endif
11721 /* We use char because int might match the return type of a gcc2
11722    builtin and then its argument prototype would still apply.  */
11723 char shl_load ();
11724 int
11725 main ()
11726 {
11727 shl_load ();
11728   ;
11729   return 0;
11730 }
11731 _ACEOF
11732 rm -f conftest.$ac_objext conftest$ac_exeext
11733 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11734   (eval $ac_link) 2>&5
11735   ac_status=$?
11736   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11737   (exit $ac_status); } &&
11738          { ac_try='test -s conftest$ac_exeext'
11739   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11740   (eval $ac_try) 2>&5
11741   ac_status=$?
11742   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11743   (exit $ac_status); }; }; then
11744   ac_cv_lib_dld_shl_load=yes
11745 else
11746   echo "$as_me: failed program was:" >&5
11747 sed 's/^/| /' conftest.$ac_ext >&5
11748
11749 ac_cv_lib_dld_shl_load=no
11750 fi
11751 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11752 LIBS=$ac_check_lib_save_LIBS
11753 fi
11754 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
11755 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
11756 if test $ac_cv_lib_dld_shl_load = yes; then
11757   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
11758 else
11759   echo "$as_me:$LINENO: checking for dlopen" >&5
11760 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
11761 if test "${ac_cv_func_dlopen+set}" = set; then
11762   echo $ECHO_N "(cached) $ECHO_C" >&6
11763 else
11764   cat >conftest.$ac_ext <<_ACEOF
11765 #line $LINENO "configure"
11766 /* confdefs.h.  */
11767 _ACEOF
11768 cat confdefs.h >>conftest.$ac_ext
11769 cat >>conftest.$ac_ext <<_ACEOF
11770 /* end confdefs.h.  */
11771 /* System header to define __stub macros and hopefully few prototypes,
11772     which can conflict with char dlopen (); below.
11773     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11774     <limits.h> exists even on freestanding compilers.  */
11775 #ifdef __STDC__
11776 # include <limits.h>
11777 #else
11778 # include <assert.h>
11779 #endif
11780 /* Override any gcc2 internal prototype to avoid an error.  */
11781 #ifdef __cplusplus
11782 extern "C"
11783 {
11784 #endif
11785 /* We use char because int might match the return type of a gcc2
11786    builtin and then its argument prototype would still apply.  */
11787 char dlopen ();
11788 /* The GNU C library defines this for functions which it implements
11789     to always fail with ENOSYS.  Some functions are actually named
11790     something starting with __ and the normal name is an alias.  */
11791 #if defined (__stub_dlopen) || defined (__stub___dlopen)
11792 choke me
11793 #else
11794 char (*f) () = dlopen;
11795 #endif
11796 #ifdef __cplusplus
11797 }
11798 #endif
11799
11800 int
11801 main ()
11802 {
11803 return f != dlopen;
11804   ;
11805   return 0;
11806 }
11807 _ACEOF
11808 rm -f conftest.$ac_objext conftest$ac_exeext
11809 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11810   (eval $ac_link) 2>&5
11811   ac_status=$?
11812   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11813   (exit $ac_status); } &&
11814          { ac_try='test -s conftest$ac_exeext'
11815   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11816   (eval $ac_try) 2>&5
11817   ac_status=$?
11818   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11819   (exit $ac_status); }; }; then
11820   ac_cv_func_dlopen=yes
11821 else
11822   echo "$as_me: failed program was:" >&5
11823 sed 's/^/| /' conftest.$ac_ext >&5
11824
11825 ac_cv_func_dlopen=no
11826 fi
11827 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11828 fi
11829 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
11830 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
11831 if test $ac_cv_func_dlopen = yes; then
11832   lt_cv_dlopen="dlopen"
11833 else
11834   echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
11835 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
11836 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
11837   echo $ECHO_N "(cached) $ECHO_C" >&6
11838 else
11839   ac_check_lib_save_LIBS=$LIBS
11840 LIBS="-ldl  $LIBS"
11841 cat >conftest.$ac_ext <<_ACEOF
11842 #line $LINENO "configure"
11843 /* confdefs.h.  */
11844 _ACEOF
11845 cat confdefs.h >>conftest.$ac_ext
11846 cat >>conftest.$ac_ext <<_ACEOF
11847 /* end confdefs.h.  */
11848
11849 /* Override any gcc2 internal prototype to avoid an error.  */
11850 #ifdef __cplusplus
11851 extern "C"
11852 #endif
11853 /* We use char because int might match the return type of a gcc2
11854    builtin and then its argument prototype would still apply.  */
11855 char dlopen ();
11856 int
11857 main ()
11858 {
11859 dlopen ();
11860   ;
11861   return 0;
11862 }
11863 _ACEOF
11864 rm -f conftest.$ac_objext conftest$ac_exeext
11865 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11866   (eval $ac_link) 2>&5
11867   ac_status=$?
11868   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11869   (exit $ac_status); } &&
11870          { ac_try='test -s conftest$ac_exeext'
11871   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11872   (eval $ac_try) 2>&5
11873   ac_status=$?
11874   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11875   (exit $ac_status); }; }; then
11876   ac_cv_lib_dl_dlopen=yes
11877 else
11878   echo "$as_me: failed program was:" >&5
11879 sed 's/^/| /' conftest.$ac_ext >&5
11880
11881 ac_cv_lib_dl_dlopen=no
11882 fi
11883 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11884 LIBS=$ac_check_lib_save_LIBS
11885 fi
11886 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
11887 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
11888 if test $ac_cv_lib_dl_dlopen = yes; then
11889   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11890 else
11891   echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
11892 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
11893 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
11894   echo $ECHO_N "(cached) $ECHO_C" >&6
11895 else
11896   ac_check_lib_save_LIBS=$LIBS
11897 LIBS="-lsvld  $LIBS"
11898 cat >conftest.$ac_ext <<_ACEOF
11899 #line $LINENO "configure"
11900 /* confdefs.h.  */
11901 _ACEOF
11902 cat confdefs.h >>conftest.$ac_ext
11903 cat >>conftest.$ac_ext <<_ACEOF
11904 /* end confdefs.h.  */
11905
11906 /* Override any gcc2 internal prototype to avoid an error.  */
11907 #ifdef __cplusplus
11908 extern "C"
11909 #endif
11910 /* We use char because int might match the return type of a gcc2
11911    builtin and then its argument prototype would still apply.  */
11912 char dlopen ();
11913 int
11914 main ()
11915 {
11916 dlopen ();
11917   ;
11918   return 0;
11919 }
11920 _ACEOF
11921 rm -f conftest.$ac_objext conftest$ac_exeext
11922 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11923   (eval $ac_link) 2>&5
11924   ac_status=$?
11925   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11926   (exit $ac_status); } &&
11927          { ac_try='test -s conftest$ac_exeext'
11928   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11929   (eval $ac_try) 2>&5
11930   ac_status=$?
11931   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11932   (exit $ac_status); }; }; then
11933   ac_cv_lib_svld_dlopen=yes
11934 else
11935   echo "$as_me: failed program was:" >&5
11936 sed 's/^/| /' conftest.$ac_ext >&5
11937
11938 ac_cv_lib_svld_dlopen=no
11939 fi
11940 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11941 LIBS=$ac_check_lib_save_LIBS
11942 fi
11943 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
11944 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
11945 if test $ac_cv_lib_svld_dlopen = yes; then
11946   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11947 else
11948   echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
11949 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
11950 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
11951   echo $ECHO_N "(cached) $ECHO_C" >&6
11952 else
11953   ac_check_lib_save_LIBS=$LIBS
11954 LIBS="-ldld  $LIBS"
11955 cat >conftest.$ac_ext <<_ACEOF
11956 #line $LINENO "configure"
11957 /* confdefs.h.  */
11958 _ACEOF
11959 cat confdefs.h >>conftest.$ac_ext
11960 cat >>conftest.$ac_ext <<_ACEOF
11961 /* end confdefs.h.  */
11962
11963 /* Override any gcc2 internal prototype to avoid an error.  */
11964 #ifdef __cplusplus
11965 extern "C"
11966 #endif
11967 /* We use char because int might match the return type of a gcc2
11968    builtin and then its argument prototype would still apply.  */
11969 char dld_link ();
11970 int
11971 main ()
11972 {
11973 dld_link ();
11974   ;
11975   return 0;
11976 }
11977 _ACEOF
11978 rm -f conftest.$ac_objext conftest$ac_exeext
11979 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11980   (eval $ac_link) 2>&5
11981   ac_status=$?
11982   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11983   (exit $ac_status); } &&
11984          { ac_try='test -s conftest$ac_exeext'
11985   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11986   (eval $ac_try) 2>&5
11987   ac_status=$?
11988   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11989   (exit $ac_status); }; }; then
11990   ac_cv_lib_dld_dld_link=yes
11991 else
11992   echo "$as_me: failed program was:" >&5
11993 sed 's/^/| /' conftest.$ac_ext >&5
11994
11995 ac_cv_lib_dld_dld_link=no
11996 fi
11997 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11998 LIBS=$ac_check_lib_save_LIBS
11999 fi
12000 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
12001 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
12002 if test $ac_cv_lib_dld_dld_link = yes; then
12003   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
12004 fi
12005
12006
12007 fi
12008
12009
12010 fi
12011
12012
12013 fi
12014
12015
12016 fi
12017
12018
12019 fi
12020
12021     ;;
12022   esac
12023
12024   if test "x$lt_cv_dlopen" != xno; then
12025     enable_dlopen=yes
12026   else
12027     enable_dlopen=no
12028   fi
12029
12030   case $lt_cv_dlopen in
12031   dlopen)
12032     save_CPPFLAGS="$CPPFLAGS"
12033     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12034
12035     save_LDFLAGS="$LDFLAGS"
12036     eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12037
12038     save_LIBS="$LIBS"
12039     LIBS="$lt_cv_dlopen_libs $LIBS"
12040
12041     echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
12042 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
12043 if test "${lt_cv_dlopen_self+set}" = set; then
12044   echo $ECHO_N "(cached) $ECHO_C" >&6
12045 else
12046           if test "$cross_compiling" = yes; then :
12047   lt_cv_dlopen_self=cross
12048 else
12049   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12050   lt_status=$lt_dlunknown
12051   cat > conftest.$ac_ext <<EOF
12052 #line 12052 "configure"
12053 #include "confdefs.h"
12054
12055 #if HAVE_DLFCN_H
12056 #include <dlfcn.h>
12057 #endif
12058
12059 #include <stdio.h>
12060
12061 #ifdef RTLD_GLOBAL
12062 #  define LT_DLGLOBAL           RTLD_GLOBAL
12063 #else
12064 #  ifdef DL_GLOBAL
12065 #    define LT_DLGLOBAL         DL_GLOBAL
12066 #  else
12067 #    define LT_DLGLOBAL         0
12068 #  endif
12069 #endif
12070
12071 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12072    find out it does not work in some platform. */
12073 #ifndef LT_DLLAZY_OR_NOW
12074 #  ifdef RTLD_LAZY
12075 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
12076 #  else
12077 #    ifdef DL_LAZY
12078 #      define LT_DLLAZY_OR_NOW          DL_LAZY
12079 #    else
12080 #      ifdef RTLD_NOW
12081 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
12082 #      else
12083 #        ifdef DL_NOW
12084 #          define LT_DLLAZY_OR_NOW      DL_NOW
12085 #        else
12086 #          define LT_DLLAZY_OR_NOW      0
12087 #        endif
12088 #      endif
12089 #    endif
12090 #  endif
12091 #endif
12092
12093 #ifdef __cplusplus
12094 extern "C" void exit (int);
12095 #endif
12096
12097 void fnord() { int i=42;}
12098 int main ()
12099 {
12100   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12101   int status = $lt_dlunknown;
12102
12103   if (self)
12104     {
12105       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
12106       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12107       /* dlclose (self); */
12108     }
12109
12110     exit (status);
12111 }
12112 EOF
12113   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12114   (eval $ac_link) 2>&5
12115   ac_status=$?
12116   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12117   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
12118     (./conftest; exit; ) 2>/dev/null
12119     lt_status=$?
12120     case x$lt_status in
12121       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12122       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12123       x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
12124     esac
12125   else :
12126     # compilation failed
12127     lt_cv_dlopen_self=no
12128   fi
12129 fi
12130 rm -fr conftest*
12131
12132
12133 fi
12134 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
12135 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
12136
12137     if test "x$lt_cv_dlopen_self" = xyes; then
12138       LDFLAGS="$LDFLAGS $link_static_flag"
12139       echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
12140 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
12141 if test "${lt_cv_dlopen_self_static+set}" = set; then
12142   echo $ECHO_N "(cached) $ECHO_C" >&6
12143 else
12144           if test "$cross_compiling" = yes; then :
12145   lt_cv_dlopen_self_static=cross
12146 else
12147   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12148   lt_status=$lt_dlunknown
12149   cat > conftest.$ac_ext <<EOF
12150 #line 12150 "configure"
12151 #include "confdefs.h"
12152
12153 #if HAVE_DLFCN_H
12154 #include <dlfcn.h>
12155 #endif
12156
12157 #include <stdio.h>
12158
12159 #ifdef RTLD_GLOBAL
12160 #  define LT_DLGLOBAL           RTLD_GLOBAL
12161 #else
12162 #  ifdef DL_GLOBAL
12163 #    define LT_DLGLOBAL         DL_GLOBAL
12164 #  else
12165 #    define LT_DLGLOBAL         0
12166 #  endif
12167 #endif
12168
12169 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12170    find out it does not work in some platform. */
12171 #ifndef LT_DLLAZY_OR_NOW
12172 #  ifdef RTLD_LAZY
12173 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
12174 #  else
12175 #    ifdef DL_LAZY
12176 #      define LT_DLLAZY_OR_NOW          DL_LAZY
12177 #    else
12178 #      ifdef RTLD_NOW
12179 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
12180 #      else
12181 #        ifdef DL_NOW
12182 #          define LT_DLLAZY_OR_NOW      DL_NOW
12183 #        else
12184 #          define LT_DLLAZY_OR_NOW      0
12185 #        endif
12186 #      endif
12187 #    endif
12188 #  endif
12189 #endif
12190
12191 #ifdef __cplusplus
12192 extern "C" void exit (int);
12193 #endif
12194
12195 void fnord() { int i=42;}
12196 int main ()
12197 {
12198   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12199   int status = $lt_dlunknown;
12200
12201   if (self)
12202     {
12203       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
12204       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12205       /* dlclose (self); */
12206     }
12207
12208     exit (status);
12209 }
12210 EOF
12211   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12212   (eval $ac_link) 2>&5
12213   ac_status=$?
12214   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12215   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
12216     (./conftest; exit; ) 2>/dev/null
12217     lt_status=$?
12218     case x$lt_status in
12219       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12220       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12221       x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
12222     esac
12223   else :
12224     # compilation failed
12225     lt_cv_dlopen_self_static=no
12226   fi
12227 fi
12228 rm -fr conftest*
12229
12230
12231 fi
12232 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
12233 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
12234     fi
12235
12236     CPPFLAGS="$save_CPPFLAGS"
12237     LDFLAGS="$save_LDFLAGS"
12238     LIBS="$save_LIBS"
12239     ;;
12240   esac
12241
12242   case $lt_cv_dlopen_self in
12243   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12244   *) enable_dlopen_self=unknown ;;
12245   esac
12246
12247   case $lt_cv_dlopen_self_static in
12248   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12249   *) enable_dlopen_self_static=unknown ;;
12250   esac
12251 fi
12252
12253
12254 # The else clause should only fire when bootstrapping the
12255 # libtool distribution, otherwise you forgot to ship ltmain.sh
12256 # with your package, and you will get complaints that there are
12257 # no rules to generate ltmain.sh.
12258 if test -f "$ltmain"; then
12259   # See if we are running on zsh, and set the options which allow our commands through
12260   # without removal of \ escapes.
12261   if test -n "${ZSH_VERSION+set}" ; then
12262     setopt NO_GLOB_SUBST
12263   fi
12264   # Now quote all the things that may contain metacharacters while being
12265   # careful not to overquote the AC_SUBSTed values.  We take copies of the
12266   # variables and quote the copies for generation of the libtool script.
12267   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \
12268     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
12269     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
12270     deplibs_check_method reload_flag reload_cmds need_locks \
12271     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
12272     lt_cv_sys_global_symbol_to_c_name_address \
12273     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
12274     old_postinstall_cmds old_postuninstall_cmds \
12275     compiler_CXX \
12276     CC_CXX \
12277     LD_CXX \
12278     lt_prog_compiler_wl_CXX \
12279     lt_prog_compiler_pic_CXX \
12280     lt_prog_compiler_static_CXX \
12281     lt_prog_compiler_no_builtin_flag_CXX \
12282     export_dynamic_flag_spec_CXX \
12283     thread_safe_flag_spec_CXX \
12284     whole_archive_flag_spec_CXX \
12285     enable_shared_with_static_runtimes_CXX \
12286     old_archive_cmds_CXX \
12287     old_archive_from_new_cmds_CXX \
12288     predep_objects_CXX \
12289     postdep_objects_CXX \
12290     predeps_CXX \
12291     postdeps_CXX \
12292     compiler_lib_search_path_CXX \
12293     archive_cmds_CXX \
12294     archive_expsym_cmds_CXX \
12295     postinstall_cmds_CXX \
12296     postuninstall_cmds_CXX \
12297     old_archive_from_expsyms_cmds_CXX \
12298     allow_undefined_flag_CXX \
12299     no_undefined_flag_CXX \
12300     export_symbols_cmds_CXX \
12301     hardcode_libdir_flag_spec_CXX \
12302     hardcode_libdir_flag_spec_ld_CXX \
12303     hardcode_libdir_separator_CXX \
12304     hardcode_automatic_CXX \
12305     module_cmds_CXX \
12306     module_expsym_cmds_CXX \
12307     lt_cv_prog_compiler_c_o_CXX \
12308     exclude_expsyms_CXX \
12309     include_expsyms_CXX; do
12310
12311     case $var in
12312     old_archive_cmds_CXX | \
12313     old_archive_from_new_cmds_CXX | \
12314     archive_cmds_CXX | \
12315     archive_expsym_cmds_CXX | \
12316     module_cmds_CXX | \
12317     module_expsym_cmds_CXX | \
12318     old_archive_from_expsyms_cmds_CXX | \
12319     export_symbols_cmds_CXX | \
12320     extract_expsyms_cmds | reload_cmds | finish_cmds | \
12321     postinstall_cmds | postuninstall_cmds | \
12322     old_postinstall_cmds | old_postuninstall_cmds | \
12323     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
12324       # Double-quote double-evaled strings.
12325       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
12326       ;;
12327     *)
12328       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
12329       ;;
12330     esac
12331   done
12332
12333   case $lt_echo in
12334   *'\$0 --fallback-echo"')
12335     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
12336     ;;
12337   esac
12338
12339 cfgfile="$ofile"
12340
12341   cat <<__EOF__ >> "$cfgfile"
12342 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
12343
12344 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
12345
12346 # Shell to use when invoking shell scripts.
12347 SHELL=$lt_SHELL
12348
12349 # Whether or not to build shared libraries.
12350 build_libtool_libs=$enable_shared
12351
12352 # Whether or not to build static libraries.
12353 build_old_libs=$enable_static
12354
12355 # Whether or not to add -lc for building shared libraries.
12356 build_libtool_need_lc=$archive_cmds_need_lc_CXX
12357
12358 # Whether or not to disallow shared libs when runtime libs are static
12359 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
12360
12361 # Whether or not to optimize for fast installation.
12362 fast_install=$enable_fast_install
12363
12364 # The host system.
12365 host_alias=$host_alias
12366 host=$host
12367
12368 # An echo program that does not interpret backslashes.
12369 echo=$lt_echo
12370
12371 # The archiver.
12372 AR=$lt_AR
12373 AR_FLAGS=$lt_AR_FLAGS
12374
12375 # A C compiler.
12376 LTCC=$lt_LTCC
12377
12378 # A language-specific compiler.
12379 CC=$lt_compiler_CXX
12380
12381 # Is the compiler the GNU C compiler?
12382 with_gcc=$GCC_CXX
12383
12384 # An ERE matcher.
12385 EGREP=$lt_EGREP
12386
12387 # The linker used to build libraries.
12388 LD=$lt_LD_CXX
12389
12390 # Whether we need hard or soft links.
12391 LN_S=$lt_LN_S
12392
12393 # A BSD-compatible nm program.
12394 NM=$lt_NM
12395
12396 # A symbol stripping program
12397 STRIP=$STRIP
12398
12399 # Used to examine libraries when file_magic_cmd begins "file"
12400 MAGIC_CMD=$MAGIC_CMD
12401
12402 # Used on cygwin: DLL creation program.
12403 DLLTOOL="$DLLTOOL"
12404
12405 # Used on cygwin: object dumper.
12406 OBJDUMP="$OBJDUMP"
12407
12408 # Used on cygwin: assembler.
12409 AS="$AS"
12410
12411 # The name of the directory that contains temporary libtool files.
12412 objdir=$objdir
12413
12414 # How to create reloadable object files.
12415 reload_flag=$lt_reload_flag
12416 reload_cmds=$lt_reload_cmds
12417
12418 # How to pass a linker flag through the compiler.
12419 wl=$lt_lt_prog_compiler_wl_CXX
12420
12421 # Object file suffix (normally "o").
12422 objext="$ac_objext"
12423
12424 # Old archive suffix (normally "a").
12425 libext="$libext"
12426
12427 # Shared library suffix (normally ".so").
12428 shrext='$shrext'
12429
12430 # Executable file suffix (normally "").
12431 exeext="$exeext"
12432
12433 # Additional compiler flags for building library objects.
12434 pic_flag=$lt_lt_prog_compiler_pic_CXX
12435 pic_mode=$pic_mode
12436
12437 # What is the maximum length of a command?
12438 max_cmd_len=$lt_cv_sys_max_cmd_len
12439
12440 # Does compiler simultaneously support -c and -o options?
12441 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
12442
12443 # Must we lock files when doing compilation ?
12444 need_locks=$lt_need_locks
12445
12446 # Do we need the lib prefix for modules?
12447 need_lib_prefix=$need_lib_prefix
12448
12449 # Do we need a version for libraries?
12450 need_version=$need_version
12451
12452 # Whether dlopen is supported.
12453 dlopen_support=$enable_dlopen
12454
12455 # Whether dlopen of programs is supported.
12456 dlopen_self=$enable_dlopen_self
12457
12458 # Whether dlopen of statically linked programs is supported.
12459 dlopen_self_static=$enable_dlopen_self_static
12460
12461 # Compiler flag to prevent dynamic linking.
12462 link_static_flag=$lt_lt_prog_compiler_static_CXX
12463
12464 # Compiler flag to turn off builtin functions.
12465 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
12466
12467 # Compiler flag to allow reflexive dlopens.
12468 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
12469
12470 # Compiler flag to generate shared objects directly from archives.
12471 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
12472
12473 # Compiler flag to generate thread-safe objects.
12474 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
12475
12476 # Library versioning type.
12477 version_type=$version_type
12478
12479 # Format of library name prefix.
12480 libname_spec=$lt_libname_spec
12481
12482 # List of archive names.  First name is the real one, the rest are links.
12483 # The last name is the one that the linker finds with -lNAME.
12484 library_names_spec=$lt_library_names_spec
12485
12486 # The coded name of the library, if different from the real name.
12487 soname_spec=$lt_soname_spec
12488
12489 # Commands used to build and install an old-style archive.
12490 RANLIB=$lt_RANLIB
12491 old_archive_cmds=$lt_old_archive_cmds_CXX
12492 old_postinstall_cmds=$lt_old_postinstall_cmds
12493 old_postuninstall_cmds=$lt_old_postuninstall_cmds
12494
12495 # Create an old-style archive from a shared archive.
12496 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
12497
12498 # Create a temporary old-style archive to link instead of a shared archive.
12499 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
12500
12501 # Commands used to build and install a shared archive.
12502 archive_cmds=$lt_archive_cmds_CXX
12503 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
12504 postinstall_cmds=$lt_postinstall_cmds
12505 postuninstall_cmds=$lt_postuninstall_cmds
12506
12507 # Commands used to build a loadable module (assumed same as above if empty)
12508 module_cmds=$lt_module_cmds_CXX
12509 module_expsym_cmds=$lt_module_expsym_cmds_CXX
12510
12511 # Commands to strip libraries.
12512 old_striplib=$lt_old_striplib
12513 striplib=$lt_striplib
12514
12515 # Dependencies to place before the objects being linked to create a
12516 # shared library.
12517 predep_objects=$lt_predep_objects_CXX
12518
12519 # Dependencies to place after the objects being linked to create a
12520 # shared library.
12521 postdep_objects=$lt_postdep_objects_CXX
12522
12523 # Dependencies to place before the objects being linked to create a
12524 # shared library.
12525 predeps=$lt_predeps_CXX
12526
12527 # Dependencies to place after the objects being linked to create a
12528 # shared library.
12529 postdeps=$lt_postdeps_CXX
12530
12531 # The library search path used internally by the compiler when linking
12532 # a shared library.
12533 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
12534
12535 # Method to check whether dependent libraries are shared objects.
12536 deplibs_check_method=$lt_deplibs_check_method
12537
12538 # Command to use when deplibs_check_method == file_magic.
12539 file_magic_cmd=$lt_file_magic_cmd
12540
12541 # Flag that allows shared libraries with undefined symbols to be built.
12542 allow_undefined_flag=$lt_allow_undefined_flag_CXX
12543
12544 # Flag that forces no undefined symbols.
12545 no_undefined_flag=$lt_no_undefined_flag_CXX
12546
12547 # Commands used to finish a libtool library installation in a directory.
12548 finish_cmds=$lt_finish_cmds
12549
12550 # Same as above, but a single script fragment to be evaled but not shown.
12551 finish_eval=$lt_finish_eval
12552
12553 # Take the output of nm and produce a listing of raw symbols and C names.
12554 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
12555
12556 # Transform the output of nm in a proper C declaration
12557 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
12558
12559 # Transform the output of nm in a C name address pair
12560 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
12561
12562 # This is the shared library runtime path variable.
12563 runpath_var=$runpath_var
12564
12565 # This is the shared library path variable.
12566 shlibpath_var=$shlibpath_var
12567
12568 # Is shlibpath searched before the hard-coded library search path?
12569 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
12570
12571 # How to hardcode a shared library path into an executable.
12572 hardcode_action=$hardcode_action_CXX
12573
12574 # Whether we should hardcode library paths into libraries.
12575 hardcode_into_libs=$hardcode_into_libs
12576
12577 # Flag to hardcode \$libdir into a binary during linking.
12578 # This must work even if \$libdir does not exist.
12579 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
12580
12581 # If ld is used when linking, flag to hardcode \$libdir into
12582 # a binary during linking. This must work even if \$libdir does
12583 # not exist.
12584 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
12585
12586 # Whether we need a single -rpath flag with a separated argument.
12587 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
12588
12589 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
12590 # resulting binary.
12591 hardcode_direct=$hardcode_direct_CXX
12592
12593 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
12594 # resulting binary.
12595 hardcode_minus_L=$hardcode_minus_L_CXX
12596
12597 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
12598 # the resulting binary.
12599 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
12600
12601 # Set to yes if building a shared library automatically hardcodes DIR into the library
12602 # and all subsequent libraries and executables linked against it.
12603 hardcode_automatic=$hardcode_automatic_CXX
12604
12605 # Variables whose values should be saved in libtool wrapper scripts and
12606 # restored at relink time.
12607 variables_saved_for_relink="$variables_saved_for_relink"
12608
12609 # Whether libtool must link a program against all its dependency libraries.
12610 link_all_deplibs=$link_all_deplibs_CXX
12611
12612 # Compile-time system search path for libraries
12613 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
12614
12615 # Run-time system search path for libraries
12616 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
12617
12618 # Fix the shell variable \$srcfile for the compiler.
12619 fix_srcfile_path="$fix_srcfile_path_CXX"
12620
12621 # Set to yes if exported symbols are required.
12622 always_export_symbols=$always_export_symbols_CXX
12623
12624 # The commands to list exported symbols.
12625 export_symbols_cmds=$lt_export_symbols_cmds_CXX
12626
12627 # The commands to extract the exported symbol list from a shared archive.
12628 extract_expsyms_cmds=$lt_extract_expsyms_cmds
12629
12630 # Symbols that should not be listed in the preloaded symbols.
12631 exclude_expsyms=$lt_exclude_expsyms_CXX
12632
12633 # Symbols that must always be exported.
12634 include_expsyms=$lt_include_expsyms_CXX
12635
12636 # ### END LIBTOOL TAG CONFIG: $tagname
12637
12638 __EOF__
12639
12640
12641 else
12642   # If there is no Makefile yet, we rely on a make rule to execute
12643   # `config.status --recheck' to rerun these tests and create the
12644   # libtool script then.
12645   test -f Makefile && make "$ltmain"
12646 fi
12647
12648
12649 ac_ext=c
12650 ac_cpp='$CPP $CPPFLAGS'
12651 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12652 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12653 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12654
12655 CC=$lt_save_CC
12656 LDCXX=$LD
12657 LD=$lt_save_LD
12658 GCC=$lt_save_GCC
12659 with_gnu_ldcxx=$with_gnu_ld
12660 with_gnu_ld=$lt_save_with_gnu_ld
12661 lt_cv_path_LDCXX=$lt_cv_path_LD
12662 lt_cv_path_LD=$lt_save_path_LD
12663 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
12664 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
12665
12666         else
12667           tagname=""
12668         fi
12669         ;;
12670
12671       F77)
12672         if test -n "$F77" && test "X$F77" != "Xno"; then
12673
12674 ac_ext=f
12675 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
12676 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12677 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
12678
12679
12680 archive_cmds_need_lc_F77=no
12681 allow_undefined_flag_F77=
12682 always_export_symbols_F77=no
12683 archive_expsym_cmds_F77=
12684 export_dynamic_flag_spec_F77=
12685 hardcode_direct_F77=no
12686 hardcode_libdir_flag_spec_F77=
12687 hardcode_libdir_flag_spec_ld_F77=
12688 hardcode_libdir_separator_F77=
12689 hardcode_minus_L_F77=no
12690 hardcode_automatic_F77=no
12691 module_cmds_F77=
12692 module_expsym_cmds_F77=
12693 link_all_deplibs_F77=unknown
12694 old_archive_cmds_F77=$old_archive_cmds
12695 no_undefined_flag_F77=
12696 whole_archive_flag_spec_F77=
12697 enable_shared_with_static_runtimes_F77=no
12698
12699 # Source file extension for f77 test sources.
12700 ac_ext=f
12701
12702 # Object file extension for compiled f77 test sources.
12703 objext=o
12704 objext_F77=$objext
12705
12706 # Code to be used in simple compile tests
12707 lt_simple_compile_test_code="      subroutine t\n      return\n      end\n"
12708
12709 # Code to be used in simple link tests
12710 lt_simple_link_test_code="      program t\n      end\n"
12711
12712 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
12713
12714 # If no C compiler was specified, use CC.
12715 LTCC=${LTCC-"$CC"}
12716
12717 # Allow CC to be a program name with arguments.
12718 compiler=$CC
12719
12720
12721 # Allow CC to be a program name with arguments.
12722 lt_save_CC="$CC"
12723 CC=${F77-"f77"}
12724 compiler=$CC
12725 compiler_F77=$CC
12726 cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
12727
12728 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
12729 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
12730 echo "$as_me:$LINENO: result: $can_build_shared" >&5
12731 echo "${ECHO_T}$can_build_shared" >&6
12732
12733 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
12734 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
12735 test "$can_build_shared" = "no" && enable_shared=no
12736
12737 # On AIX, shared libraries and static libraries use the same namespace, and
12738 # are all built from PIC.
12739 case "$host_os" in
12740 aix3*)
12741   test "$enable_shared" = yes && enable_static=no
12742   if test -n "$RANLIB"; then
12743     archive_cmds="$archive_cmds~\$RANLIB \$lib"
12744     postinstall_cmds='$RANLIB $lib'
12745   fi
12746   ;;
12747 aix4*)
12748   test "$enable_shared" = yes && enable_static=no
12749   ;;
12750 esac
12751 echo "$as_me:$LINENO: result: $enable_shared" >&5
12752 echo "${ECHO_T}$enable_shared" >&6
12753
12754 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
12755 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
12756 # Make sure either enable_shared or enable_static is yes.
12757 test "$enable_shared" = yes || enable_static=yes
12758 echo "$as_me:$LINENO: result: $enable_static" >&5
12759 echo "${ECHO_T}$enable_static" >&6
12760
12761 test "$ld_shlibs_F77" = no && can_build_shared=no
12762
12763 GCC_F77="$G77"
12764 LD_F77="$LD"
12765
12766 lt_prog_compiler_wl_F77=
12767 lt_prog_compiler_pic_F77=
12768 lt_prog_compiler_static_F77=
12769
12770 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
12771 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
12772
12773   if test "$GCC" = yes; then
12774     lt_prog_compiler_wl_F77='-Wl,'
12775     lt_prog_compiler_static_F77='-static'
12776
12777     case $host_os in
12778       aix*)
12779       # All AIX code is PIC.
12780       if test "$host_cpu" = ia64; then
12781         # AIX 5 now supports IA64 processor
12782         lt_prog_compiler_static_F77='-Bstatic'
12783       fi
12784       ;;
12785
12786     amigaos*)
12787       # FIXME: we need at least 68020 code to build shared libraries, but
12788       # adding the `-m68020' flag to GCC prevents building anything better,
12789       # like `-m68040'.
12790       lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
12791       ;;
12792
12793     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12794       # PIC is the default for these OSes.
12795       ;;
12796
12797     mingw* | pw32* | os2*)
12798       # This hack is so that the source file can tell whether it is being
12799       # built for inclusion in a dll (and should export symbols for example).
12800       lt_prog_compiler_pic_F77='-DDLL_EXPORT'
12801       ;;
12802
12803     darwin* | rhapsody*)
12804       # PIC is the default on this platform
12805       # Common symbols not allowed in MH_DYLIB files
12806       lt_prog_compiler_pic_F77='-fno-common'
12807       ;;
12808
12809     msdosdjgpp*)
12810       # Just because we use GCC doesn't mean we suddenly get shared libraries
12811       # on systems that don't support them.
12812       lt_prog_compiler_can_build_shared_F77=no
12813       enable_shared=no
12814       ;;
12815
12816     sysv4*MP*)
12817       if test -d /usr/nec; then
12818         lt_prog_compiler_pic_F77=-Kconform_pic
12819       fi
12820       ;;
12821
12822     hpux*)
12823       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12824       # not for PA HP-UX.
12825       case "$host_cpu" in
12826       hppa*64*|ia64*)
12827         # +Z the default
12828         ;;
12829       *)
12830         lt_prog_compiler_pic_F77='-fPIC'
12831         ;;
12832       esac
12833       ;;
12834
12835     *)
12836       lt_prog_compiler_pic_F77='-fPIC'
12837       ;;
12838     esac
12839   else
12840     # PORTME Check for flag to pass linker flags through the system compiler.
12841     case $host_os in
12842     aix*)
12843       lt_prog_compiler_wl_F77='-Wl,'
12844       if test "$host_cpu" = ia64; then
12845         # AIX 5 now supports IA64 processor
12846         lt_prog_compiler_static_F77='-Bstatic'
12847       else
12848         lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
12849       fi
12850       ;;
12851
12852     mingw* | pw32* | os2*)
12853       # This hack is so that the source file can tell whether it is being
12854       # built for inclusion in a dll (and should export symbols for example).
12855       lt_prog_compiler_pic_F77='-DDLL_EXPORT'
12856       ;;
12857
12858     hpux9* | hpux10* | hpux11*)
12859       lt_prog_compiler_wl_F77='-Wl,'
12860       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12861       # not for PA HP-UX.
12862       case "$host_cpu" in
12863       hppa*64*|ia64*)
12864         # +Z the default
12865         ;;
12866       *)
12867         lt_prog_compiler_pic_F77='+Z'
12868         ;;
12869       esac
12870       # Is there a better lt_prog_compiler_static that works with the bundled CC?
12871       lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
12872       ;;
12873
12874     irix5* | irix6* | nonstopux*)
12875       lt_prog_compiler_wl_F77='-Wl,'
12876       # PIC (with -KPIC) is the default.
12877       lt_prog_compiler_static_F77='-non_shared'
12878       ;;
12879
12880     newsos6)
12881       lt_prog_compiler_pic_F77='-KPIC'
12882       lt_prog_compiler_static_F77='-Bstatic'
12883       ;;
12884
12885     linux*)
12886       case $CC in
12887       icc|ecc)
12888         lt_prog_compiler_wl_F77='-Wl,'
12889         lt_prog_compiler_pic_F77='-KPIC'
12890         lt_prog_compiler_static_F77='-static'
12891         ;;
12892       ccc)
12893         lt_prog_compiler_wl_F77='-Wl,'
12894         # All Alpha code is PIC.
12895         lt_prog_compiler_static_F77='-non_shared'
12896         ;;
12897       esac
12898       ;;
12899
12900     osf3* | osf4* | osf5*)
12901       lt_prog_compiler_wl_F77='-Wl,'
12902       # All OSF/1 code is PIC.
12903       lt_prog_compiler_static_F77='-non_shared'
12904       ;;
12905
12906     sco3.2v5*)
12907       lt_prog_compiler_pic_F77='-Kpic'
12908       lt_prog_compiler_static_F77='-dn'
12909       ;;
12910
12911     solaris*)
12912       lt_prog_compiler_wl_F77='-Wl,'
12913       lt_prog_compiler_pic_F77='-KPIC'
12914       lt_prog_compiler_static_F77='-Bstatic'
12915       ;;
12916
12917     sunos4*)
12918       lt_prog_compiler_wl_F77='-Qoption ld '
12919       lt_prog_compiler_pic_F77='-PIC'
12920       lt_prog_compiler_static_F77='-Bstatic'
12921       ;;
12922
12923     sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
12924       lt_prog_compiler_wl_F77='-Wl,'
12925       lt_prog_compiler_pic_F77='-KPIC'
12926       lt_prog_compiler_static_F77='-Bstatic'
12927       ;;
12928
12929     sysv4*MP*)
12930       if test -d /usr/nec ;then
12931         lt_prog_compiler_pic_F77='-Kconform_pic'
12932         lt_prog_compiler_static_F77='-Bstatic'
12933       fi
12934       ;;
12935
12936     uts4*)
12937       lt_prog_compiler_pic_F77='-pic'
12938       lt_prog_compiler_static_F77='-Bstatic'
12939       ;;
12940
12941     *)
12942       lt_prog_compiler_can_build_shared_F77=no
12943       ;;
12944     esac
12945   fi
12946
12947 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
12948 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6
12949
12950 #
12951 # Check to make sure the PIC flag actually works.
12952 #
12953 if test -n "$lt_prog_compiler_pic_F77"; then
12954   echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
12955 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6
12956 if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
12957   echo $ECHO_N "(cached) $ECHO_C" >&6
12958 else
12959   lt_prog_compiler_pic_works_F77=no
12960   ac_outfile=conftest.$ac_objext
12961    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12962    lt_compiler_flag="$lt_prog_compiler_pic_F77"
12963    # Insert the option either (1) after the last *FLAGS variable, or
12964    # (2) before a word containing "conftest.", or (3) at the end.
12965    # Note that $ac_compile itself does not contain backslashes and begins
12966    # with a dollar sign (not a hyphen), so the echo should work correctly.
12967    # The option is referenced via a variable to avoid confusing sed.
12968    lt_compile=`echo "$ac_compile" | $SED \
12969    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
12970    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12971    -e 's:$: $lt_compiler_flag:'`
12972    (eval echo "\"\$as_me:12972: $lt_compile\"" >&5)
12973    (eval "$lt_compile" 2>conftest.err)
12974    ac_status=$?
12975    cat conftest.err >&5
12976    echo "$as_me:12976: \$? = $ac_status" >&5
12977    if (exit $ac_status) && test -s "$ac_outfile"; then
12978      # The compiler can only warn and ignore the option if not recognized
12979      # So say no if there are warnings
12980      if test ! -s conftest.err; then
12981        lt_prog_compiler_pic_works_F77=yes
12982      fi
12983    fi
12984    $rm conftest*
12985
12986 fi
12987 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
12988 echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6
12989
12990 if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
12991     case $lt_prog_compiler_pic_F77 in
12992      "" | " "*) ;;
12993      *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
12994      esac
12995 else
12996     lt_prog_compiler_pic_F77=
12997      lt_prog_compiler_can_build_shared_F77=no
12998 fi
12999
13000 fi
13001 case "$host_os" in
13002   # For platforms which do not support PIC, -DPIC is meaningless:
13003   *djgpp*)
13004     lt_prog_compiler_pic_F77=
13005     ;;
13006   *)
13007     lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
13008     ;;
13009 esac
13010
13011 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
13012 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
13013 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
13014   echo $ECHO_N "(cached) $ECHO_C" >&6
13015 else
13016   lt_cv_prog_compiler_c_o_F77=no
13017    $rm -r conftest 2>/dev/null
13018    mkdir conftest
13019    cd conftest
13020    mkdir out
13021    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13022
13023    # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
13024    # that will create temporary files in the current directory regardless of
13025    # the output directory.  Thus, making CWD read-only will cause this test
13026    # to fail, enabling locking or at least warning the user not to do parallel
13027    # builds.
13028    chmod -w .
13029
13030    lt_compiler_flag="-o out/conftest2.$ac_objext"
13031    # Insert the option either (1) after the last *FLAGS variable, or
13032    # (2) before a word containing "conftest.", or (3) at the end.
13033    # Note that $ac_compile itself does not contain backslashes and begins
13034    # with a dollar sign (not a hyphen), so the echo should work correctly.
13035    lt_compile=`echo "$ac_compile" | $SED \
13036    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
13037    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13038    -e 's:$: $lt_compiler_flag:'`
13039    (eval echo "\"\$as_me:13039: $lt_compile\"" >&5)
13040    (eval "$lt_compile" 2>out/conftest.err)
13041    ac_status=$?
13042    cat out/conftest.err >&5
13043    echo "$as_me:13043: \$? = $ac_status" >&5
13044    if (exit $ac_status) && test -s out/conftest2.$ac_objext
13045    then
13046      # The compiler can only warn and ignore the option if not recognized
13047      # So say no if there are warnings
13048      if test ! -s out/conftest.err; then
13049        lt_cv_prog_compiler_c_o_F77=yes
13050      fi
13051    fi
13052    chmod u+w .
13053    $rm conftest* out/*
13054    rmdir out
13055    cd ..
13056    rmdir conftest
13057    $rm conftest*
13058
13059 fi
13060 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
13061 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6
13062
13063
13064 hard_links="nottested"
13065 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
13066   # do not overwrite the value of need_locks provided by the user
13067   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
13068 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
13069   hard_links=yes
13070   $rm conftest*
13071   ln conftest.a conftest.b 2>/dev/null && hard_links=no
13072   touch conftest.a
13073   ln conftest.a conftest.b 2>&5 || hard_links=no
13074   ln conftest.a conftest.b 2>/dev/null && hard_links=no
13075   echo "$as_me:$LINENO: result: $hard_links" >&5
13076 echo "${ECHO_T}$hard_links" >&6
13077   if test "$hard_links" = no; then
13078     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13079 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13080     need_locks=warn
13081   fi
13082 else
13083   need_locks=no
13084 fi
13085
13086 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13087 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
13088
13089   runpath_var=
13090   allow_undefined_flag_F77=
13091   enable_shared_with_static_runtimes_F77=no
13092   archive_cmds_F77=
13093   archive_expsym_cmds_F77=
13094   old_archive_From_new_cmds_F77=
13095   old_archive_from_expsyms_cmds_F77=
13096   export_dynamic_flag_spec_F77=
13097   whole_archive_flag_spec_F77=
13098   thread_safe_flag_spec_F77=
13099   hardcode_libdir_flag_spec_F77=
13100   hardcode_libdir_flag_spec_ld_F77=
13101   hardcode_libdir_separator_F77=
13102   hardcode_direct_F77=no
13103   hardcode_minus_L_F77=no
13104   hardcode_shlibpath_var_F77=unsupported
13105   link_all_deplibs_F77=unknown
13106   hardcode_automatic_F77=no
13107   module_cmds_F77=
13108   module_expsym_cmds_F77=
13109   always_export_symbols_F77=no
13110   export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13111   # include_expsyms should be a list of space-separated symbols to be *always*
13112   # included in the symbol list
13113   include_expsyms_F77=
13114   # exclude_expsyms can be an extended regexp of symbols to exclude
13115   # it will be wrapped by ` (' and `)$', so one must not match beginning or
13116   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
13117   # as well as any symbol that contains `d'.
13118   exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
13119   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
13120   # platforms (ab)use it in PIC code, but their linkers get confused if
13121   # the symbol is explicitly referenced.  Since portable code cannot
13122   # rely on this symbol name, it's probably fine to never include it in
13123   # preloaded symbol tables.
13124   extract_expsyms_cmds=
13125
13126   case $host_os in
13127   cygwin* | mingw* | pw32*)
13128     # FIXME: the MSVC++ port hasn't been tested in a loooong time
13129     # When not using gcc, we currently assume that we are using
13130     # Microsoft Visual C++.
13131     if test "$GCC" != yes; then
13132       with_gnu_ld=no
13133     fi
13134     ;;
13135   openbsd*)
13136     with_gnu_ld=no
13137     ;;
13138   esac
13139
13140   ld_shlibs_F77=yes
13141   if test "$with_gnu_ld" = yes; then
13142     # If archive_cmds runs LD, not CC, wlarc should be empty
13143     wlarc='${wl}'
13144
13145     # See if GNU ld supports shared libraries.
13146     case $host_os in
13147     aix3* | aix4* | aix5*)
13148       # On AIX/PPC, the GNU linker is very broken
13149       if test "$host_cpu" != ia64; then
13150         ld_shlibs_F77=no
13151         cat <<EOF 1>&2
13152
13153 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
13154 *** to be unable to reliably create shared libraries on AIX.
13155 *** Therefore, libtool is disabling shared libraries support.  If you
13156 *** really care for shared libraries, you may want to modify your PATH
13157 *** so that a non-GNU linker is found, and then restart.
13158
13159 EOF
13160       fi
13161       ;;
13162
13163     amigaos*)
13164       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)'
13165       hardcode_libdir_flag_spec_F77='-L$libdir'
13166       hardcode_minus_L_F77=yes
13167
13168       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
13169       # that the semantics of dynamic libraries on AmigaOS, at least up
13170       # to version 4, is to share data among multiple programs linked
13171       # with the same dynamic library.  Since this doesn't match the
13172       # behavior of shared libraries on other platforms, we can't use
13173       # them.
13174       ld_shlibs_F77=no
13175       ;;
13176
13177     beos*)
13178       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13179         allow_undefined_flag_F77=unsupported
13180         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13181         # support --undefined.  This deserves some investigation.  FIXME
13182         archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13183       else
13184         ld_shlibs_F77=no
13185       fi
13186       ;;
13187
13188     cygwin* | mingw* | pw32*)
13189       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
13190       # as there is no search path for DLLs.
13191       hardcode_libdir_flag_spec_F77='-L$libdir'
13192       allow_undefined_flag_F77=unsupported
13193       always_export_symbols_F77=no
13194       enable_shared_with_static_runtimes_F77=yes
13195       export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
13196
13197       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
13198         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
13199         # If the export-symbols file already is a .def file (1st line
13200         # is EXPORTS), use it as is; otherwise, prepend...
13201         archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13202           cp $export_symbols $output_objdir/$soname.def;
13203         else
13204           echo EXPORTS > $output_objdir/$soname.def;
13205           cat $export_symbols >> $output_objdir/$soname.def;
13206         fi~
13207         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
13208       else
13209         ld_shlibs=no
13210       fi
13211       ;;
13212
13213     netbsd*)
13214       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13215         archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
13216         wlarc=
13217       else
13218         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13219         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13220       fi
13221       ;;
13222
13223     solaris* | sysv5*)
13224       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
13225         ld_shlibs_F77=no
13226         cat <<EOF 1>&2
13227
13228 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
13229 *** create shared libraries on Solaris systems.  Therefore, libtool
13230 *** is disabling shared libraries support.  We urge you to upgrade GNU
13231 *** binutils to release 2.9.1 or newer.  Another option is to modify
13232 *** your PATH or compiler configuration so that the native linker is
13233 *** used, and then restart.
13234
13235 EOF
13236       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13237         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13238         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13239       else
13240         ld_shlibs_F77=no
13241       fi
13242       ;;
13243
13244     sunos4*)
13245       archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13246       wlarc=
13247       hardcode_direct_F77=yes
13248       hardcode_shlibpath_var_F77=no
13249       ;;
13250
13251     *)
13252       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13253         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13254         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13255       else
13256         ld_shlibs_F77=no
13257       fi
13258       ;;
13259     esac
13260
13261     if test "$ld_shlibs_F77" = yes; then
13262       runpath_var=LD_RUN_PATH
13263       hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
13264       export_dynamic_flag_spec_F77='${wl}--export-dynamic'
13265       # ancient GNU ld didn't support --whole-archive et. al.
13266       if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
13267         whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13268       else
13269         whole_archive_flag_spec_F77=
13270       fi
13271     fi
13272   else
13273     # PORTME fill in a description of your system's linker (not GNU ld)
13274     case $host_os in
13275     aix3*)
13276       allow_undefined_flag_F77=unsupported
13277       always_export_symbols_F77=yes
13278       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'
13279       # Note: this linker hardcodes the directories in LIBPATH if there
13280       # are no directories specified by -L.
13281       hardcode_minus_L_F77=yes
13282       if test "$GCC" = yes && test -z "$link_static_flag"; then
13283         # Neither direct hardcoding nor static linking is supported with a
13284         # broken collect2.
13285         hardcode_direct_F77=unsupported
13286       fi
13287       ;;
13288
13289     aix4* | aix5*)
13290       if test "$host_cpu" = ia64; then
13291         # On IA64, the linker does run time linking by default, so we don't
13292         # have to do anything special.
13293         aix_use_runtimelinking=no
13294         exp_sym_flag='-Bexport'
13295         no_entry_flag=""
13296       else
13297         # If we're using GNU nm, then we don't want the "-C" option.
13298         # -C means demangle to AIX nm, but means don't demangle with GNU nm
13299         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
13300           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'
13301         else
13302           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'
13303         fi
13304         aix_use_runtimelinking=no
13305
13306         # Test if we are trying to use run time linking or normal
13307         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
13308         # need to do runtime linking.
13309         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
13310           for ld_flag in $LDFLAGS; do
13311           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
13312             aix_use_runtimelinking=yes
13313             break
13314           fi
13315           done
13316         esac
13317
13318         exp_sym_flag='-bexport'
13319         no_entry_flag='-bnoentry'
13320       fi
13321
13322       # When large executables or shared objects are built, AIX ld can
13323       # have problems creating the table of contents.  If linking a library
13324       # or program results in "error TOC overflow" add -mminimal-toc to
13325       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
13326       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13327
13328       archive_cmds_F77=''
13329       hardcode_direct_F77=yes
13330       hardcode_libdir_separator_F77=':'
13331       link_all_deplibs_F77=yes
13332
13333       if test "$GCC" = yes; then
13334         case $host_os in aix4.012|aix4.012.*)
13335         # We only want to do this on AIX 4.2 and lower, the check
13336         # below for broken collect2 doesn't work under 4.3+
13337           collect2name=`${CC} -print-prog-name=collect2`
13338           if test -f "$collect2name" && \
13339            strings "$collect2name" | grep resolve_lib_name >/dev/null
13340           then
13341           # We have reworked collect2
13342           hardcode_direct_F77=yes
13343           else
13344           # We have old collect2
13345           hardcode_direct_F77=unsupported
13346           # It fails to find uninstalled libraries when the uninstalled
13347           # path is not listed in the libpath.  Setting hardcode_minus_L
13348           # to unsupported forces relinking
13349           hardcode_minus_L_F77=yes
13350           hardcode_libdir_flag_spec_F77='-L$libdir'
13351           hardcode_libdir_separator_F77=
13352           fi
13353         esac
13354         shared_flag='-shared'
13355       else
13356         # not using gcc
13357         if test "$host_cpu" = ia64; then
13358         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13359         # chokes on -Wl,-G. The following line is correct:
13360           shared_flag='-G'
13361         else
13362         if test "$aix_use_runtimelinking" = yes; then
13363             shared_flag='${wl}-G'
13364           else
13365             shared_flag='${wl}-bM:SRE'
13366         fi
13367         fi
13368       fi
13369
13370       # It seems that -bexpall does not export symbols beginning with
13371       # underscore (_), so it is better to generate a list of symbols to export.
13372       always_export_symbols_F77=yes
13373       if test "$aix_use_runtimelinking" = yes; then
13374         # Warning - without using the other runtime loading flags (-brtl),
13375         # -berok will link without error, but may produce a broken library.
13376         allow_undefined_flag_F77='-berok'
13377        # Determine the default libpath from the value encoded in an empty executable.
13378        cat >conftest.$ac_ext <<_ACEOF
13379       program main
13380
13381       end
13382 _ACEOF
13383 rm -f conftest.$ac_objext conftest$ac_exeext
13384 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13385   (eval $ac_link) 2>&5
13386   ac_status=$?
13387   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13388   (exit $ac_status); } &&
13389          { ac_try='test -s conftest$ac_exeext'
13390   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13391   (eval $ac_try) 2>&5
13392   ac_status=$?
13393   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13394   (exit $ac_status); }; }; then
13395
13396 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
13397 }'`
13398 # Check for a 64-bit object if we didn't find anything.
13399 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; }
13400 }'`; fi
13401 else
13402   echo "$as_me: failed program was:" >&5
13403 sed 's/^/| /' conftest.$ac_ext >&5
13404
13405 fi
13406 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13407 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13408
13409        hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
13410         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"
13411        else
13412         if test "$host_cpu" = ia64; then
13413           hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
13414           allow_undefined_flag_F77="-z nodefs"
13415           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"
13416         else
13417          # Determine the default libpath from the value encoded in an empty executable.
13418          cat >conftest.$ac_ext <<_ACEOF
13419       program main
13420
13421       end
13422 _ACEOF
13423 rm -f conftest.$ac_objext conftest$ac_exeext
13424 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13425   (eval $ac_link) 2>&5
13426   ac_status=$?
13427   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13428   (exit $ac_status); } &&
13429          { ac_try='test -s conftest$ac_exeext'
13430   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13431   (eval $ac_try) 2>&5
13432   ac_status=$?
13433   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13434   (exit $ac_status); }; }; then
13435
13436 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
13437 }'`
13438 # Check for a 64-bit object if we didn't find anything.
13439 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; }
13440 }'`; fi
13441 else
13442   echo "$as_me: failed program was:" >&5
13443 sed 's/^/| /' conftest.$ac_ext >&5
13444
13445 fi
13446 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13447 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13448
13449          hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
13450           # Warning - without using the other run time loading flags,
13451           # -berok will link without error, but may produce a broken library.
13452           no_undefined_flag_F77=' ${wl}-bernotok'
13453           allow_undefined_flag_F77=' ${wl}-berok'
13454           # -bexpall does not export symbols beginning with underscore (_)
13455           always_export_symbols_F77=yes
13456           # Exported symbols can be pulled into shared objects from archives
13457           whole_archive_flag_spec_F77=' '
13458           archive_cmds_need_lc_F77=yes
13459           # This is similar to how AIX traditionally builds it's shared libraries.
13460           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'
13461         fi
13462       fi
13463       ;;
13464
13465     amigaos*)
13466       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)'
13467       hardcode_libdir_flag_spec_F77='-L$libdir'
13468       hardcode_minus_L_F77=yes
13469       # see comment about different semantics on the GNU ld section
13470       ld_shlibs_F77=no
13471       ;;
13472
13473     bsdi4*)
13474       export_dynamic_flag_spec_F77=-rdynamic
13475       ;;
13476
13477     cygwin* | mingw* | pw32*)
13478       # When not using gcc, we currently assume that we are using
13479       # Microsoft Visual C++.
13480       # hardcode_libdir_flag_spec is actually meaningless, as there is
13481       # no search path for DLLs.
13482       hardcode_libdir_flag_spec_F77=' '
13483       allow_undefined_flag_F77=unsupported
13484       # Tell ltmain to make .lib files, not .a files.
13485       libext=lib
13486       # Tell ltmain to make .dll files, not .so files.
13487       shrext=".dll"
13488       # FIXME: Setting linknames here is a bad hack.
13489       archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
13490       # The linker will automatically build a .lib file if we build a DLL.
13491       old_archive_From_new_cmds_F77='true'
13492       # FIXME: Should let the user specify the lib program.
13493       old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
13494       fix_srcfile_path='`cygpath -w "$srcfile"`'
13495       enable_shared_with_static_runtimes_F77=yes
13496       ;;
13497
13498     darwin* | rhapsody*)
13499     if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
13500       archive_cmds_need_lc_F77=no
13501       case "$host_os" in
13502       rhapsody* | darwin1.[012])
13503         allow_undefined_flag_F77='-undefined suppress'
13504         ;;
13505       *) # Darwin 1.3 on
13506         test -z ${LD_TWOLEVEL_NAMESPACE} && allow_undefined_flag_F77='-flat_namespace -undefined suppress'
13507         ;;
13508       esac
13509       # FIXME: Relying on posixy $() will cause problems for
13510       #        cross-compilation, but unfortunately the echo tests do not
13511       #        yet detect zsh echo's removal of \ escapes.  Also zsh mangles
13512       #        `"' quotes if we put them in here... so don't!
13513         lt_int_apple_cc_single_mod=no
13514         output_verbose_link_cmd='echo'
13515         if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
13516           lt_int_apple_cc_single_mod=yes
13517         fi
13518         if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
13519           archive_cmds_F77='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
13520         else
13521         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'
13522       fi
13523       module_cmds_F77='$CC -bundle ${wl}-bind_at_load $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags'
13524       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
13525         if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
13526           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}'
13527         else
13528           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}'
13529         fi
13530           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}'
13531       hardcode_direct_F77=no
13532       hardcode_automatic_F77=yes
13533       hardcode_shlibpath_var_F77=unsupported
13534       whole_archive_flag_spec_F77='-all_load $convenience'
13535       link_all_deplibs_F77=yes
13536     fi
13537       ;;
13538
13539     dgux*)
13540       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13541       hardcode_libdir_flag_spec_F77='-L$libdir'
13542       hardcode_shlibpath_var_F77=no
13543       ;;
13544
13545     freebsd1*)
13546       ld_shlibs_F77=no
13547       ;;
13548
13549     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
13550     # support.  Future versions do this automatically, but an explicit c++rt0.o
13551     # does not break anything, and helps significantly (at the cost of a little
13552     # extra space).
13553     freebsd2.2*)
13554       archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
13555       hardcode_libdir_flag_spec_F77='-R$libdir'
13556       hardcode_direct_F77=yes
13557       hardcode_shlibpath_var_F77=no
13558       ;;
13559
13560     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
13561     freebsd2*)
13562       archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13563       hardcode_direct_F77=yes
13564       hardcode_minus_L_F77=yes
13565       hardcode_shlibpath_var_F77=no
13566       ;;
13567
13568     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
13569     freebsd*)
13570       archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
13571       hardcode_libdir_flag_spec_F77='-R$libdir'
13572       hardcode_direct_F77=yes
13573       hardcode_shlibpath_var_F77=no
13574       ;;
13575
13576     hpux9*)
13577       if test "$GCC" = yes; then
13578         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'
13579       else
13580         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'
13581       fi
13582       hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
13583       hardcode_libdir_separator_F77=:
13584       hardcode_direct_F77=yes
13585
13586       # hardcode_minus_L: Not really in the search PATH,
13587       # but as the default location of the library.
13588       hardcode_minus_L_F77=yes
13589       export_dynamic_flag_spec_F77='${wl}-E'
13590       ;;
13591
13592     hpux10* | hpux11*)
13593       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
13594         case "$host_cpu" in
13595         hppa*64*|ia64*)
13596           archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13597           ;;
13598         *)
13599           archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13600           ;;
13601         esac
13602       else
13603         case "$host_cpu" in
13604         hppa*64*|ia64*)
13605           archive_cmds_F77='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
13606           ;;
13607         *)
13608           archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
13609           ;;
13610         esac
13611       fi
13612       if test "$with_gnu_ld" = no; then
13613         case "$host_cpu" in
13614         hppa*64*)
13615           hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
13616           hardcode_libdir_flag_spec_ld_F77='+b $libdir'
13617           hardcode_libdir_separator_F77=:
13618           hardcode_direct_F77=no
13619           hardcode_shlibpath_var_F77=no
13620           ;;
13621         ia64*)
13622           hardcode_libdir_flag_spec_F77='-L$libdir'
13623           hardcode_direct_F77=no
13624           hardcode_shlibpath_var_F77=no
13625
13626           # hardcode_minus_L: Not really in the search PATH,
13627           # but as the default location of the library.
13628           hardcode_minus_L_F77=yes
13629           ;;
13630         *)
13631           hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
13632           hardcode_libdir_separator_F77=:
13633           hardcode_direct_F77=yes
13634           export_dynamic_flag_spec_F77='${wl}-E'
13635
13636           # hardcode_minus_L: Not really in the search PATH,
13637           # but as the default location of the library.
13638           hardcode_minus_L_F77=yes
13639           ;;
13640         esac
13641       fi
13642       ;;
13643
13644     irix5* | irix6* | nonstopux*)
13645       if test "$GCC" = yes; then
13646         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'
13647       else
13648         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'
13649         hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
13650       fi
13651       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
13652       hardcode_libdir_separator_F77=:
13653       link_all_deplibs_F77=yes
13654       ;;
13655
13656     netbsd*)
13657       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13658         archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
13659       else
13660         archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
13661       fi
13662       hardcode_libdir_flag_spec_F77='-R$libdir'
13663       hardcode_direct_F77=yes
13664       hardcode_shlibpath_var_F77=no
13665       ;;
13666
13667     newsos6)
13668       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13669       hardcode_direct_F77=yes
13670       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
13671       hardcode_libdir_separator_F77=:
13672       hardcode_shlibpath_var_F77=no
13673       ;;
13674
13675     openbsd*)
13676       hardcode_direct_F77=yes
13677       hardcode_shlibpath_var_F77=no
13678       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13679         archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13680         hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
13681         export_dynamic_flag_spec_F77='${wl}-E'
13682       else
13683        case $host_os in
13684          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
13685            archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13686            hardcode_libdir_flag_spec_F77='-R$libdir'
13687            ;;
13688          *)
13689            archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13690            hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
13691            ;;
13692        esac
13693       fi
13694       ;;
13695
13696     os2*)
13697       hardcode_libdir_flag_spec_F77='-L$libdir'
13698       hardcode_minus_L_F77=yes
13699       allow_undefined_flag_F77=unsupported
13700       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'
13701       old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
13702       ;;
13703
13704     osf3*)
13705       if test "$GCC" = yes; then
13706         allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
13707         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'
13708       else
13709         allow_undefined_flag_F77=' -expect_unresolved \*'
13710         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'
13711       fi
13712       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
13713       hardcode_libdir_separator_F77=:
13714       ;;
13715
13716     osf4* | osf5*)      # as osf3* with the addition of -msym flag
13717       if test "$GCC" = yes; then
13718         allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
13719         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'
13720         hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
13721       else
13722         allow_undefined_flag_F77=' -expect_unresolved \*'
13723         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'
13724         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~
13725         $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'
13726
13727         # Both c and cxx compiler support -rpath directly
13728         hardcode_libdir_flag_spec_F77='-rpath $libdir'
13729       fi
13730       hardcode_libdir_separator_F77=:
13731       ;;
13732
13733     sco3.2v5*)
13734       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13735       hardcode_shlibpath_var_F77=no
13736       export_dynamic_flag_spec_F77='${wl}-Bexport'
13737       runpath_var=LD_RUN_PATH
13738       hardcode_runpath_var=yes
13739       ;;
13740
13741     solaris*)
13742       no_undefined_flag_F77=' -z text'
13743       if test "$GCC" = yes; then
13744         archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13745         archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13746           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
13747       else
13748         archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
13749         archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13750         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
13751       fi
13752       hardcode_libdir_flag_spec_F77='-R$libdir'
13753       hardcode_shlibpath_var_F77=no
13754       case $host_os in
13755       solaris2.[0-5] | solaris2.[0-5].*) ;;
13756       *) # Supported since Solaris 2.6 (maybe 2.5.1?)
13757         whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
13758       esac
13759       link_all_deplibs_F77=yes
13760       ;;
13761
13762     sunos4*)
13763       if test "x$host_vendor" = xsequent; then
13764         # Use $CC to link under sequent, because it throws in some extra .o
13765         # files that make .init and .fini sections work.
13766         archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
13767       else
13768         archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
13769       fi
13770       hardcode_libdir_flag_spec_F77='-L$libdir'
13771       hardcode_direct_F77=yes
13772       hardcode_minus_L_F77=yes
13773       hardcode_shlibpath_var_F77=no
13774       ;;
13775
13776     sysv4)
13777       case $host_vendor in
13778         sni)
13779           archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13780           hardcode_direct_F77=yes # is this really true???
13781         ;;
13782         siemens)
13783           ## LD is ld it makes a PLAMLIB
13784           ## CC just makes a GrossModule.
13785           archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
13786           reload_cmds_F77='$CC -r -o $output$reload_objs'
13787           hardcode_direct_F77=no
13788         ;;
13789         motorola)
13790           archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13791           hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
13792         ;;
13793       esac
13794       runpath_var='LD_RUN_PATH'
13795       hardcode_shlibpath_var_F77=no
13796       ;;
13797
13798     sysv4.3*)
13799       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13800       hardcode_shlibpath_var_F77=no
13801       export_dynamic_flag_spec_F77='-Bexport'
13802       ;;
13803
13804     sysv4*MP*)
13805       if test -d /usr/nec; then
13806         archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13807         hardcode_shlibpath_var_F77=no
13808         runpath_var=LD_RUN_PATH
13809         hardcode_runpath_var=yes
13810         ld_shlibs_F77=yes
13811       fi
13812       ;;
13813
13814     sysv4.2uw2*)
13815       archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
13816       hardcode_direct_F77=yes
13817       hardcode_minus_L_F77=no
13818       hardcode_shlibpath_var_F77=no
13819       hardcode_runpath_var=yes
13820       runpath_var=LD_RUN_PATH
13821       ;;
13822
13823    sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
13824       no_undefined_flag_F77='${wl}-z ${wl}text'
13825       if test "$GCC" = yes; then
13826         archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13827       else
13828         archive_cmds_F77='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13829       fi
13830       runpath_var='LD_RUN_PATH'
13831       hardcode_shlibpath_var_F77=no
13832       ;;
13833
13834     sysv5*)
13835       no_undefined_flag_F77=' -z text'
13836       # $CC -shared without GNU ld will not create a library from C++
13837       # object files and a static libstdc++, better avoid it by now
13838       archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
13839       archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13840                 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
13841       hardcode_libdir_flag_spec_F77=
13842       hardcode_shlibpath_var_F77=no
13843       runpath_var='LD_RUN_PATH'
13844       ;;
13845
13846     uts4*)
13847       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13848       hardcode_libdir_flag_spec_F77='-L$libdir'
13849       hardcode_shlibpath_var_F77=no
13850       ;;
13851
13852     *)
13853       ld_shlibs_F77=no
13854       ;;
13855     esac
13856   fi
13857
13858 echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
13859 echo "${ECHO_T}$ld_shlibs_F77" >&6
13860 test "$ld_shlibs_F77" = no && can_build_shared=no
13861
13862 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
13863 if test "$GCC" = yes; then
13864   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
13865 fi
13866
13867 #
13868 # Do we need to explicitly link libc?
13869 #
13870 case "x$archive_cmds_need_lc_F77" in
13871 x|xyes)
13872   # Assume -lc should be added
13873   archive_cmds_need_lc_F77=yes
13874
13875   if test "$enable_shared" = yes && test "$GCC" = yes; then
13876     case $archive_cmds_F77 in
13877     *'~'*)
13878       # FIXME: we may have to deal with multi-command sequences.
13879       ;;
13880     '$CC '*)
13881       # Test whether the compiler implicitly links with -lc since on some
13882       # systems, -lgcc has to come before -lc. If gcc already passes -lc
13883       # to ld, don't add -lc before -lgcc.
13884       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
13885 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
13886       $rm conftest*
13887       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13888
13889       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13890   (eval $ac_compile) 2>&5
13891   ac_status=$?
13892   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13893   (exit $ac_status); } 2>conftest.err; then
13894         soname=conftest
13895         lib=conftest
13896         libobjs=conftest.$ac_objext
13897         deplibs=
13898         wl=$lt_prog_compiler_wl_F77
13899         compiler_flags=-v
13900         linker_flags=-v
13901         verstring=
13902         output_objdir=.
13903         libname=conftest
13904         lt_save_allow_undefined_flag=$allow_undefined_flag_F77
13905         allow_undefined_flag_F77=
13906         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
13907   (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
13908   ac_status=$?
13909   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13910   (exit $ac_status); }
13911         then
13912           archive_cmds_need_lc_F77=no
13913         else
13914           archive_cmds_need_lc_F77=yes
13915         fi
13916         allow_undefined_flag_F77=$lt_save_allow_undefined_flag
13917       else
13918         cat conftest.err 1>&5
13919       fi
13920       $rm conftest*
13921       echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
13922 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6
13923       ;;
13924     esac
13925   fi
13926   ;;
13927 esac
13928
13929 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
13930 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
13931 hardcode_action_F77=
13932 if test -n "$hardcode_libdir_flag_spec_F77" || \
13933    test -n "$runpath_var F77" || \
13934    test "X$hardcode_automatic_F77"="Xyes" ; then
13935
13936   # We can hardcode non-existant directories.
13937   if test "$hardcode_direct_F77" != no &&
13938      # If the only mechanism to avoid hardcoding is shlibpath_var, we
13939      # have to relink, otherwise we might link with an installed library
13940      # when we should be linking with a yet-to-be-installed one
13941      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
13942      test "$hardcode_minus_L_F77" != no; then
13943     # Linking always hardcodes the temporary library directory.
13944     hardcode_action_F77=relink
13945   else
13946     # We can link without hardcoding, and we can hardcode nonexisting dirs.
13947     hardcode_action_F77=immediate
13948   fi
13949 else
13950   # We cannot hardcode anything, or else we can only hardcode existing
13951   # directories.
13952   hardcode_action_F77=unsupported
13953 fi
13954 echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
13955 echo "${ECHO_T}$hardcode_action_F77" >&6
13956
13957 if test "$hardcode_action_F77" = relink; then
13958   # Fast installation is not supported
13959   enable_fast_install=no
13960 elif test "$shlibpath_overrides_runpath" = yes ||
13961      test "$enable_shared" = no; then
13962   # Fast installation is not necessary
13963   enable_fast_install=needless
13964 fi
13965
13966 striplib=
13967 old_striplib=
13968 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
13969 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
13970 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
13971   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
13972   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
13973   echo "$as_me:$LINENO: result: yes" >&5
13974 echo "${ECHO_T}yes" >&6
13975 else
13976 # FIXME - insert some real tests, host_os isn't really good enough
13977   case $host_os in
13978    darwin*)
13979        if test -n "$STRIP" ; then
13980          striplib="$STRIP -x"
13981          echo "$as_me:$LINENO: result: yes" >&5
13982 echo "${ECHO_T}yes" >&6
13983        else
13984   echo "$as_me:$LINENO: result: no" >&5
13985 echo "${ECHO_T}no" >&6
13986 fi
13987        ;;
13988    *)
13989   echo "$as_me:$LINENO: result: no" >&5
13990 echo "${ECHO_T}no" >&6
13991     ;;
13992   esac
13993 fi
13994
13995 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
13996 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
13997 library_names_spec=
13998 libname_spec='lib$name'
13999 soname_spec=
14000 shrext=".so"
14001 postinstall_cmds=
14002 postuninstall_cmds=
14003 finish_cmds=
14004 finish_eval=
14005 shlibpath_var=
14006 shlibpath_overrides_runpath=unknown
14007 version_type=none
14008 dynamic_linker="$host_os ld.so"
14009 sys_lib_dlsearch_path_spec="/lib /usr/lib"
14010 if test "$GCC" = yes; then
14011   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14012   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
14013     # if the path contains ";" then we assume it to be the separator
14014     # otherwise default to the standard path separator (i.e. ":") - it is
14015     # assumed that no part of a normal pathname contains ";" but that should
14016     # okay in the real world where ";" in dirpaths is itself problematic.
14017     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14018   else
14019     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
14020   fi
14021 else
14022   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
14023 fi
14024 need_lib_prefix=unknown
14025 hardcode_into_libs=no
14026
14027 # when you set need_version to no, make sure it does not cause -set_version
14028 # flags to be left without arguments
14029 need_version=unknown
14030
14031 case $host_os in
14032 aix3*)
14033   version_type=linux
14034   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14035   shlibpath_var=LIBPATH
14036
14037   # AIX 3 has no versioning support, so we append a major version to the name.
14038   soname_spec='${libname}${release}${shared_ext}$major'
14039   ;;
14040
14041 aix4* | aix5*)
14042   version_type=linux
14043   need_lib_prefix=no
14044   need_version=no
14045   hardcode_into_libs=yes
14046   if test "$host_cpu" = ia64; then
14047     # AIX 5 supports IA64
14048     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14049     shlibpath_var=LD_LIBRARY_PATH
14050   else
14051     # With GCC up to 2.95.x, collect2 would create an import file
14052     # for dependence libraries.  The import file would start with
14053     # the line `#! .'.  This would cause the generated library to
14054     # depend on `.', always an invalid library.  This was fixed in
14055     # development snapshots of GCC prior to 3.0.
14056     case $host_os in
14057       aix4 | aix4.[01] | aix4.[01].*)
14058       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14059            echo ' yes '
14060            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
14061         :
14062       else
14063         can_build_shared=no
14064       fi
14065       ;;
14066     esac
14067     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14068     # soname into executable. Probably we can add versioning support to
14069     # collect2, so additional links can be useful in future.
14070     if test "$aix_use_runtimelinking" = yes; then
14071       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14072       # instead of lib<name>.a to let people know that these are not
14073       # typical AIX shared libraries.
14074       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14075     else
14076       # We preserve .a as extension for shared libraries through AIX4.2
14077       # and later when we are not doing run time linking.
14078       library_names_spec='${libname}${release}.a $libname.a'
14079       soname_spec='${libname}${release}${shared_ext}$major'
14080     fi
14081     shlibpath_var=LIBPATH
14082   fi
14083   ;;
14084
14085 amigaos*)
14086   library_names_spec='$libname.ixlibrary $libname.a'
14087   # Create ${libname}_ixlibrary.a entries in /sys/libs.
14088   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'
14089   ;;
14090
14091 beos*)
14092   library_names_spec='${libname}${shared_ext}'
14093   dynamic_linker="$host_os ld.so"
14094   shlibpath_var=LIBRARY_PATH
14095   ;;
14096
14097 bsdi4*)
14098   version_type=linux
14099   need_version=no
14100   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14101   soname_spec='${libname}${release}${shared_ext}$major'
14102   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14103   shlibpath_var=LD_LIBRARY_PATH
14104   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14105   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14106   # the default ld.so.conf also contains /usr/contrib/lib and
14107   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14108   # libtool to hard-code these into programs
14109   ;;
14110
14111 cygwin* | mingw* | pw32*)
14112   version_type=windows
14113   shrext=".dll"
14114   need_version=no
14115   need_lib_prefix=no
14116
14117   case $GCC,$host_os in
14118   yes,cygwin* | yes,mingw* | yes,pw32*)
14119     library_names_spec='$libname.dll.a'
14120     # DLL is installed to $(libdir)/../bin by postinstall_cmds
14121     postinstall_cmds='base_file=`basename \${file}`~
14122       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
14123       dldir=$destdir/`dirname \$dlpath`~
14124       test -d \$dldir || mkdir -p \$dldir~
14125       $install_prog $dir/$dlname \$dldir/$dlname'
14126     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14127       dlpath=$dir/\$dldll~
14128        $rm \$dlpath'
14129     shlibpath_overrides_runpath=yes
14130
14131     case $host_os in
14132     cygwin*)
14133       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14134       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14135       sys_lib_search_path_spec="/lib /lib/w32api /usr/lib /usr/local/lib"
14136       ;;
14137     mingw*)
14138       # MinGW DLLs use traditional 'lib' prefix
14139       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14140       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14141       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
14142         # It is most probably a Windows format PATH printed by
14143         # mingw gcc, but we are running on Cygwin. Gcc prints its search
14144         # path with ; separators, and with drive letters. We can handle the
14145         # drive letters (cygwin fileutils understands them), so leave them,
14146         # especially as we might pass files found there to a mingw objdump,
14147         # which wouldn't understand a cygwinified path. Ahh.
14148         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14149       else
14150         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
14151       fi
14152       ;;
14153     pw32*)
14154       # pw32 DLLs use 'pw' prefix rather than 'lib'
14155       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
14156       ;;
14157     esac
14158     ;;
14159
14160   *)
14161     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14162     ;;
14163   esac
14164   dynamic_linker='Win32 ld.exe'
14165   # FIXME: first we should search . and the directory the executable is in
14166   shlibpath_var=PATH
14167   ;;
14168
14169 darwin* | rhapsody*)
14170   dynamic_linker="$host_os dyld"
14171   version_type=darwin
14172   need_lib_prefix=no
14173   need_version=no
14174   # FIXME: Relying on posixy $() will cause problems for
14175   #        cross-compilation, but unfortunately the echo tests do not
14176   #        yet detect zsh echo's removal of \ escapes.
14177   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14178   soname_spec='${libname}${release}${major}$shared_ext'
14179   shlibpath_overrides_runpath=yes
14180   shlibpath_var=DYLD_LIBRARY_PATH
14181   shrext='$(test .$module = .yes && echo .so || echo .dylib)'
14182   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
14183   if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
14184   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"`
14185   fi
14186   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14187   ;;
14188
14189 dgux*)
14190   version_type=linux
14191   need_lib_prefix=no
14192   need_version=no
14193   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14194   soname_spec='${libname}${release}${shared_ext}$major'
14195   shlibpath_var=LD_LIBRARY_PATH
14196   ;;
14197
14198 freebsd1*)
14199   dynamic_linker=no
14200   ;;
14201
14202 freebsd*)
14203   objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
14204   version_type=freebsd-$objformat
14205   case $version_type in
14206     freebsd-elf*)
14207       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14208       need_version=no
14209       need_lib_prefix=no
14210       ;;
14211     freebsd-*)
14212       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
14213       need_version=yes
14214       ;;
14215   esac
14216   shlibpath_var=LD_LIBRARY_PATH
14217   case $host_os in
14218   freebsd2*)
14219     shlibpath_overrides_runpath=yes
14220     ;;
14221   freebsd3.01* | freebsdelf3.01*)
14222     shlibpath_overrides_runpath=yes
14223     hardcode_into_libs=yes
14224     ;;
14225   *) # from 3.2 on
14226     shlibpath_overrides_runpath=no
14227     hardcode_into_libs=yes
14228     ;;
14229   esac
14230   ;;
14231
14232 gnu*)
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   hardcode_into_libs=yes
14240   ;;
14241
14242 hpux9* | hpux10* | hpux11*)
14243   # Give a soname corresponding to the major version so that dld.sl refuses to
14244   # link against other versions.
14245   version_type=sunos
14246   need_lib_prefix=no
14247   need_version=no
14248   case "$host_cpu" in
14249   ia64*)
14250     shrext='.so'
14251     hardcode_into_libs=yes
14252     dynamic_linker="$host_os dld.so"
14253     shlibpath_var=LD_LIBRARY_PATH
14254     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14255     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14256     soname_spec='${libname}${release}${shared_ext}$major'
14257     if test "X$HPUX_IA64_MODE" = X32; then
14258       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14259     else
14260       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14261     fi
14262     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14263     ;;
14264    hppa*64*)
14265      shrext='.sl'
14266      hardcode_into_libs=yes
14267      dynamic_linker="$host_os dld.sl"
14268      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14269      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14270      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14271      soname_spec='${libname}${release}${shared_ext}$major'
14272      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14273      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14274      ;;
14275    *)
14276     shrext='.sl'
14277     dynamic_linker="$host_os dld.sl"
14278     shlibpath_var=SHLIB_PATH
14279     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14280     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14281     soname_spec='${libname}${release}${shared_ext}$major'
14282     ;;
14283   esac
14284   # HP-UX runs *really* slowly unless shared libraries are mode 555.
14285   postinstall_cmds='chmod 555 $lib'
14286   ;;
14287
14288 irix5* | irix6* | nonstopux*)
14289   case $host_os in
14290     nonstopux*) version_type=nonstopux ;;
14291     *)
14292         if test "$lt_cv_prog_gnu_ld" = yes; then
14293                 version_type=linux
14294         else
14295                 version_type=irix
14296         fi ;;
14297   esac
14298   need_lib_prefix=no
14299   need_version=no
14300   soname_spec='${libname}${release}${shared_ext}$major'
14301   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
14302   case $host_os in
14303   irix5* | nonstopux*)
14304     libsuff= shlibsuff=
14305     ;;
14306   *)
14307     case $LD in # libtool.m4 will add one of these switches to LD
14308     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14309       libsuff= shlibsuff= libmagic=32-bit;;
14310     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14311       libsuff=32 shlibsuff=N32 libmagic=N32;;
14312     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14313       libsuff=64 shlibsuff=64 libmagic=64-bit;;
14314     *) libsuff= shlibsuff= libmagic=never-match;;
14315     esac
14316     ;;
14317   esac
14318   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14319   shlibpath_overrides_runpath=no
14320   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14321   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
14322   hardcode_into_libs=yes
14323   ;;
14324
14325 # No shared lib support for Linux oldld, aout, or coff.
14326 linux*oldld* | linux*aout* | linux*coff*)
14327   dynamic_linker=no
14328   ;;
14329
14330 # This must be Linux ELF.
14331 linux*)
14332   version_type=linux
14333   need_lib_prefix=no
14334   need_version=no
14335   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14336   soname_spec='${libname}${release}${shared_ext}$major'
14337   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14338   shlibpath_var=LD_LIBRARY_PATH
14339   shlibpath_overrides_runpath=no
14340   # This implies no fast_install, which is unacceptable.
14341   # Some rework will be needed to allow for fast_install
14342   # before this can be enabled.
14343   hardcode_into_libs=yes
14344
14345   # We used to test for /lib/ld.so.1 and disable shared libraries on
14346   # powerpc, because MkLinux only supported shared libraries with the
14347   # GNU dynamic linker.  Since this was broken with cross compilers,
14348   # most powerpc-linux boxes support dynamic linking these days and
14349   # people can always --disable-shared, the test was removed, and we
14350   # assume the GNU/Linux dynamic linker is in use.
14351   dynamic_linker='GNU/Linux ld.so'
14352   ;;
14353
14354 netbsd*)
14355   version_type=sunos
14356   need_lib_prefix=no
14357   need_version=no
14358   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14359     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14360     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14361     dynamic_linker='NetBSD (a.out) ld.so'
14362   else
14363     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
14364     soname_spec='${libname}${release}${shared_ext}$major'
14365     dynamic_linker='NetBSD ld.elf_so'
14366   fi
14367   shlibpath_var=LD_LIBRARY_PATH
14368   shlibpath_overrides_runpath=yes
14369   hardcode_into_libs=yes
14370   ;;
14371
14372 newsos6)
14373   version_type=linux
14374   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14375   shlibpath_var=LD_LIBRARY_PATH
14376   shlibpath_overrides_runpath=yes
14377   ;;
14378
14379 nto-qnx)
14380   version_type=linux
14381   need_lib_prefix=no
14382   need_version=no
14383   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14384   soname_spec='${libname}${release}${shared_ext}$major'
14385   shlibpath_var=LD_LIBRARY_PATH
14386   shlibpath_overrides_runpath=yes
14387   ;;
14388
14389 openbsd*)
14390   version_type=sunos
14391   need_lib_prefix=no
14392   need_version=no
14393   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14394   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14395   shlibpath_var=LD_LIBRARY_PATH
14396   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14397     case $host_os in
14398       openbsd2.[89] | openbsd2.[89].*)
14399         shlibpath_overrides_runpath=no
14400         ;;
14401       *)
14402         shlibpath_overrides_runpath=yes
14403         ;;
14404       esac
14405   else
14406     shlibpath_overrides_runpath=yes
14407   fi
14408   ;;
14409
14410 os2*)
14411   libname_spec='$name'
14412   shrext=".dll"
14413   need_lib_prefix=no
14414   library_names_spec='$libname${shared_ext} $libname.a'
14415   dynamic_linker='OS/2 ld.exe'
14416   shlibpath_var=LIBPATH
14417   ;;
14418
14419 osf3* | osf4* | osf5*)
14420   version_type=osf
14421   need_lib_prefix=no
14422   need_version=no
14423   soname_spec='${libname}${release}${shared_ext}$major'
14424   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14425   shlibpath_var=LD_LIBRARY_PATH
14426   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14427   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
14428   ;;
14429
14430 sco3.2v5*)
14431   version_type=osf
14432   soname_spec='${libname}${release}${shared_ext}$major'
14433   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14434   shlibpath_var=LD_LIBRARY_PATH
14435   ;;
14436
14437 solaris*)
14438   version_type=linux
14439   need_lib_prefix=no
14440   need_version=no
14441   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14442   soname_spec='${libname}${release}${shared_ext}$major'
14443   shlibpath_var=LD_LIBRARY_PATH
14444   shlibpath_overrides_runpath=yes
14445   hardcode_into_libs=yes
14446   # ldd complains unless libraries are executable
14447   postinstall_cmds='chmod +x $lib'
14448   ;;
14449
14450 sunos4*)
14451   version_type=sunos
14452   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14453   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14454   shlibpath_var=LD_LIBRARY_PATH
14455   shlibpath_overrides_runpath=yes
14456   if test "$with_gnu_ld" = yes; then
14457     need_lib_prefix=no
14458   fi
14459   need_version=yes
14460   ;;
14461
14462 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
14463   version_type=linux
14464   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14465   soname_spec='${libname}${release}${shared_ext}$major'
14466   shlibpath_var=LD_LIBRARY_PATH
14467   case $host_vendor in
14468     sni)
14469       shlibpath_overrides_runpath=no
14470       need_lib_prefix=no
14471       export_dynamic_flag_spec='${wl}-Blargedynsym'
14472       runpath_var=LD_RUN_PATH
14473       ;;
14474     siemens)
14475       need_lib_prefix=no
14476       ;;
14477     motorola)
14478       need_lib_prefix=no
14479       need_version=no
14480       shlibpath_overrides_runpath=no
14481       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14482       ;;
14483   esac
14484   ;;
14485
14486 sysv4*MP*)
14487   if test -d /usr/nec ;then
14488     version_type=linux
14489     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
14490     soname_spec='$libname${shared_ext}.$major'
14491     shlibpath_var=LD_LIBRARY_PATH
14492   fi
14493   ;;
14494
14495 uts4*)
14496   version_type=linux
14497   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14498   soname_spec='${libname}${release}${shared_ext}$major'
14499   shlibpath_var=LD_LIBRARY_PATH
14500   ;;
14501
14502 *)
14503   dynamic_linker=no
14504   ;;
14505 esac
14506 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
14507 echo "${ECHO_T}$dynamic_linker" >&6
14508 test "$dynamic_linker" = no && can_build_shared=no
14509
14510
14511 # The else clause should only fire when bootstrapping the
14512 # libtool distribution, otherwise you forgot to ship ltmain.sh
14513 # with your package, and you will get complaints that there are
14514 # no rules to generate ltmain.sh.
14515 if test -f "$ltmain"; then
14516   # See if we are running on zsh, and set the options which allow our commands through
14517   # without removal of \ escapes.
14518   if test -n "${ZSH_VERSION+set}" ; then
14519     setopt NO_GLOB_SUBST
14520   fi
14521   # Now quote all the things that may contain metacharacters while being
14522   # careful not to overquote the AC_SUBSTed values.  We take copies of the
14523   # variables and quote the copies for generation of the libtool script.
14524   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \
14525     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
14526     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
14527     deplibs_check_method reload_flag reload_cmds need_locks \
14528     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
14529     lt_cv_sys_global_symbol_to_c_name_address \
14530     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
14531     old_postinstall_cmds old_postuninstall_cmds \
14532     compiler_F77 \
14533     CC_F77 \
14534     LD_F77 \
14535     lt_prog_compiler_wl_F77 \
14536     lt_prog_compiler_pic_F77 \
14537     lt_prog_compiler_static_F77 \
14538     lt_prog_compiler_no_builtin_flag_F77 \
14539     export_dynamic_flag_spec_F77 \
14540     thread_safe_flag_spec_F77 \
14541     whole_archive_flag_spec_F77 \
14542     enable_shared_with_static_runtimes_F77 \
14543     old_archive_cmds_F77 \
14544     old_archive_from_new_cmds_F77 \
14545     predep_objects_F77 \
14546     postdep_objects_F77 \
14547     predeps_F77 \
14548     postdeps_F77 \
14549     compiler_lib_search_path_F77 \
14550     archive_cmds_F77 \
14551     archive_expsym_cmds_F77 \
14552     postinstall_cmds_F77 \
14553     postuninstall_cmds_F77 \
14554     old_archive_from_expsyms_cmds_F77 \
14555     allow_undefined_flag_F77 \
14556     no_undefined_flag_F77 \
14557     export_symbols_cmds_F77 \
14558     hardcode_libdir_flag_spec_F77 \
14559     hardcode_libdir_flag_spec_ld_F77 \
14560     hardcode_libdir_separator_F77 \
14561     hardcode_automatic_F77 \
14562     module_cmds_F77 \
14563     module_expsym_cmds_F77 \
14564     lt_cv_prog_compiler_c_o_F77 \
14565     exclude_expsyms_F77 \
14566     include_expsyms_F77; do
14567
14568     case $var in
14569     old_archive_cmds_F77 | \
14570     old_archive_from_new_cmds_F77 | \
14571     archive_cmds_F77 | \
14572     archive_expsym_cmds_F77 | \
14573     module_cmds_F77 | \
14574     module_expsym_cmds_F77 | \
14575     old_archive_from_expsyms_cmds_F77 | \
14576     export_symbols_cmds_F77 | \
14577     extract_expsyms_cmds | reload_cmds | finish_cmds | \
14578     postinstall_cmds | postuninstall_cmds | \
14579     old_postinstall_cmds | old_postuninstall_cmds | \
14580     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
14581       # Double-quote double-evaled strings.
14582       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
14583       ;;
14584     *)
14585       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
14586       ;;
14587     esac
14588   done
14589
14590   case $lt_echo in
14591   *'\$0 --fallback-echo"')
14592     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
14593     ;;
14594   esac
14595
14596 cfgfile="$ofile"
14597
14598   cat <<__EOF__ >> "$cfgfile"
14599 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
14600
14601 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
14602
14603 # Shell to use when invoking shell scripts.
14604 SHELL=$lt_SHELL
14605
14606 # Whether or not to build shared libraries.
14607 build_libtool_libs=$enable_shared
14608
14609 # Whether or not to build static libraries.
14610 build_old_libs=$enable_static
14611
14612 # Whether or not to add -lc for building shared libraries.
14613 build_libtool_need_lc=$archive_cmds_need_lc_F77
14614
14615 # Whether or not to disallow shared libs when runtime libs are static
14616 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
14617
14618 # Whether or not to optimize for fast installation.
14619 fast_install=$enable_fast_install
14620
14621 # The host system.
14622 host_alias=$host_alias
14623 host=$host
14624
14625 # An echo program that does not interpret backslashes.
14626 echo=$lt_echo
14627
14628 # The archiver.
14629 AR=$lt_AR
14630 AR_FLAGS=$lt_AR_FLAGS
14631
14632 # A C compiler.
14633 LTCC=$lt_LTCC
14634
14635 # A language-specific compiler.
14636 CC=$lt_compiler_F77
14637
14638 # Is the compiler the GNU C compiler?
14639 with_gcc=$GCC_F77
14640
14641 # An ERE matcher.
14642 EGREP=$lt_EGREP
14643
14644 # The linker used to build libraries.
14645 LD=$lt_LD_F77
14646
14647 # Whether we need hard or soft links.
14648 LN_S=$lt_LN_S
14649
14650 # A BSD-compatible nm program.
14651 NM=$lt_NM
14652
14653 # A symbol stripping program
14654 STRIP=$STRIP
14655
14656 # Used to examine libraries when file_magic_cmd begins "file"
14657 MAGIC_CMD=$MAGIC_CMD
14658
14659 # Used on cygwin: DLL creation program.
14660 DLLTOOL="$DLLTOOL"
14661
14662 # Used on cygwin: object dumper.
14663 OBJDUMP="$OBJDUMP"
14664
14665 # Used on cygwin: assembler.
14666 AS="$AS"
14667
14668 # The name of the directory that contains temporary libtool files.
14669 objdir=$objdir
14670
14671 # How to create reloadable object files.
14672 reload_flag=$lt_reload_flag
14673 reload_cmds=$lt_reload_cmds
14674
14675 # How to pass a linker flag through the compiler.
14676 wl=$lt_lt_prog_compiler_wl_F77
14677
14678 # Object file suffix (normally "o").
14679 objext="$ac_objext"
14680
14681 # Old archive suffix (normally "a").
14682 libext="$libext"
14683
14684 # Shared library suffix (normally ".so").
14685 shrext='$shrext'
14686
14687 # Executable file suffix (normally "").
14688 exeext="$exeext"
14689
14690 # Additional compiler flags for building library objects.
14691 pic_flag=$lt_lt_prog_compiler_pic_F77
14692 pic_mode=$pic_mode
14693
14694 # What is the maximum length of a command?
14695 max_cmd_len=$lt_cv_sys_max_cmd_len
14696
14697 # Does compiler simultaneously support -c and -o options?
14698 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
14699
14700 # Must we lock files when doing compilation ?
14701 need_locks=$lt_need_locks
14702
14703 # Do we need the lib prefix for modules?
14704 need_lib_prefix=$need_lib_prefix
14705
14706 # Do we need a version for libraries?
14707 need_version=$need_version
14708
14709 # Whether dlopen is supported.
14710 dlopen_support=$enable_dlopen
14711
14712 # Whether dlopen of programs is supported.
14713 dlopen_self=$enable_dlopen_self
14714
14715 # Whether dlopen of statically linked programs is supported.
14716 dlopen_self_static=$enable_dlopen_self_static
14717
14718 # Compiler flag to prevent dynamic linking.
14719 link_static_flag=$lt_lt_prog_compiler_static_F77
14720
14721 # Compiler flag to turn off builtin functions.
14722 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
14723
14724 # Compiler flag to allow reflexive dlopens.
14725 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
14726
14727 # Compiler flag to generate shared objects directly from archives.
14728 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
14729
14730 # Compiler flag to generate thread-safe objects.
14731 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
14732
14733 # Library versioning type.
14734 version_type=$version_type
14735
14736 # Format of library name prefix.
14737 libname_spec=$lt_libname_spec
14738
14739 # List of archive names.  First name is the real one, the rest are links.
14740 # The last name is the one that the linker finds with -lNAME.
14741 library_names_spec=$lt_library_names_spec
14742
14743 # The coded name of the library, if different from the real name.
14744 soname_spec=$lt_soname_spec
14745
14746 # Commands used to build and install an old-style archive.
14747 RANLIB=$lt_RANLIB
14748 old_archive_cmds=$lt_old_archive_cmds_F77
14749 old_postinstall_cmds=$lt_old_postinstall_cmds
14750 old_postuninstall_cmds=$lt_old_postuninstall_cmds
14751
14752 # Create an old-style archive from a shared archive.
14753 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
14754
14755 # Create a temporary old-style archive to link instead of a shared archive.
14756 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
14757
14758 # Commands used to build and install a shared archive.
14759 archive_cmds=$lt_archive_cmds_F77
14760 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
14761 postinstall_cmds=$lt_postinstall_cmds
14762 postuninstall_cmds=$lt_postuninstall_cmds
14763
14764 # Commands used to build a loadable module (assumed same as above if empty)
14765 module_cmds=$lt_module_cmds_F77
14766 module_expsym_cmds=$lt_module_expsym_cmds_F77
14767
14768 # Commands to strip libraries.
14769 old_striplib=$lt_old_striplib
14770 striplib=$lt_striplib
14771
14772 # Dependencies to place before the objects being linked to create a
14773 # shared library.
14774 predep_objects=$lt_predep_objects_F77
14775
14776 # Dependencies to place after the objects being linked to create a
14777 # shared library.
14778 postdep_objects=$lt_postdep_objects_F77
14779
14780 # Dependencies to place before the objects being linked to create a
14781 # shared library.
14782 predeps=$lt_predeps_F77
14783
14784 # Dependencies to place after the objects being linked to create a
14785 # shared library.
14786 postdeps=$lt_postdeps_F77
14787
14788 # The library search path used internally by the compiler when linking
14789 # a shared library.
14790 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
14791
14792 # Method to check whether dependent libraries are shared objects.
14793 deplibs_check_method=$lt_deplibs_check_method
14794
14795 # Command to use when deplibs_check_method == file_magic.
14796 file_magic_cmd=$lt_file_magic_cmd
14797
14798 # Flag that allows shared libraries with undefined symbols to be built.
14799 allow_undefined_flag=$lt_allow_undefined_flag_F77
14800
14801 # Flag that forces no undefined symbols.
14802 no_undefined_flag=$lt_no_undefined_flag_F77
14803
14804 # Commands used to finish a libtool library installation in a directory.
14805 finish_cmds=$lt_finish_cmds
14806
14807 # Same as above, but a single script fragment to be evaled but not shown.
14808 finish_eval=$lt_finish_eval
14809
14810 # Take the output of nm and produce a listing of raw symbols and C names.
14811 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
14812
14813 # Transform the output of nm in a proper C declaration
14814 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
14815
14816 # Transform the output of nm in a C name address pair
14817 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
14818
14819 # This is the shared library runtime path variable.
14820 runpath_var=$runpath_var
14821
14822 # This is the shared library path variable.
14823 shlibpath_var=$shlibpath_var
14824
14825 # Is shlibpath searched before the hard-coded library search path?
14826 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
14827
14828 # How to hardcode a shared library path into an executable.
14829 hardcode_action=$hardcode_action_F77
14830
14831 # Whether we should hardcode library paths into libraries.
14832 hardcode_into_libs=$hardcode_into_libs
14833
14834 # Flag to hardcode \$libdir into a binary during linking.
14835 # This must work even if \$libdir does not exist.
14836 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
14837
14838 # If ld is used when linking, flag to hardcode \$libdir into
14839 # a binary during linking. This must work even if \$libdir does
14840 # not exist.
14841 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
14842
14843 # Whether we need a single -rpath flag with a separated argument.
14844 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
14845
14846 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
14847 # resulting binary.
14848 hardcode_direct=$hardcode_direct_F77
14849
14850 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
14851 # resulting binary.
14852 hardcode_minus_L=$hardcode_minus_L_F77
14853
14854 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
14855 # the resulting binary.
14856 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
14857
14858 # Set to yes if building a shared library automatically hardcodes DIR into the library
14859 # and all subsequent libraries and executables linked against it.
14860 hardcode_automatic=$hardcode_automatic_F77
14861
14862 # Variables whose values should be saved in libtool wrapper scripts and
14863 # restored at relink time.
14864 variables_saved_for_relink="$variables_saved_for_relink"
14865
14866 # Whether libtool must link a program against all its dependency libraries.
14867 link_all_deplibs=$link_all_deplibs_F77
14868
14869 # Compile-time system search path for libraries
14870 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
14871
14872 # Run-time system search path for libraries
14873 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
14874
14875 # Fix the shell variable \$srcfile for the compiler.
14876 fix_srcfile_path="$fix_srcfile_path_F77"
14877
14878 # Set to yes if exported symbols are required.
14879 always_export_symbols=$always_export_symbols_F77
14880
14881 # The commands to list exported symbols.
14882 export_symbols_cmds=$lt_export_symbols_cmds_F77
14883
14884 # The commands to extract the exported symbol list from a shared archive.
14885 extract_expsyms_cmds=$lt_extract_expsyms_cmds
14886
14887 # Symbols that should not be listed in the preloaded symbols.
14888 exclude_expsyms=$lt_exclude_expsyms_F77
14889
14890 # Symbols that must always be exported.
14891 include_expsyms=$lt_include_expsyms_F77
14892
14893 # ### END LIBTOOL TAG CONFIG: $tagname
14894
14895 __EOF__
14896
14897
14898 else
14899   # If there is no Makefile yet, we rely on a make rule to execute
14900   # `config.status --recheck' to rerun these tests and create the
14901   # libtool script then.
14902   test -f Makefile && make "$ltmain"
14903 fi
14904
14905
14906 ac_ext=c
14907 ac_cpp='$CPP $CPPFLAGS'
14908 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14909 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14910 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14911
14912 CC="$lt_save_CC"
14913
14914         else
14915           tagname=""
14916         fi
14917         ;;
14918
14919       GCJ)
14920         if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
14921
14922
14923
14924 # Source file extension for Java test sources.
14925 ac_ext=java
14926
14927 # Object file extension for compiled Java test sources.
14928 objext=o
14929 objext_GCJ=$objext
14930
14931 # Code to be used in simple compile tests
14932 lt_simple_compile_test_code="class foo {}\n"
14933
14934 # Code to be used in simple link tests
14935 lt_simple_link_test_code='public class conftest { public static void main(String argv) {}; }\n'
14936
14937 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
14938
14939 # If no C compiler was specified, use CC.
14940 LTCC=${LTCC-"$CC"}
14941
14942 # Allow CC to be a program name with arguments.
14943 compiler=$CC
14944
14945
14946 # Allow CC to be a program name with arguments.
14947 lt_save_CC="$CC"
14948 CC=${GCJ-"gcj"}
14949 compiler=$CC
14950 compiler_GCJ=$CC
14951
14952 # GCJ did not exist at the time GCC didn't implicitly link libc in.
14953 archive_cmds_need_lc_GCJ=no
14954
14955 ## CAVEAT EMPTOR:
14956 ## There is no encapsulation within the following macros, do not change
14957 ## the running order or otherwise move them around unless you know exactly
14958 ## what you are doing...
14959
14960 lt_prog_compiler_no_builtin_flag_GCJ=
14961
14962 if test "$GCC" = yes; then
14963   lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
14964
14965   echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
14966 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
14967 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
14968   echo $ECHO_N "(cached) $ECHO_C" >&6
14969 else
14970   lt_cv_prog_compiler_rtti_exceptions=no
14971   ac_outfile=conftest.$ac_objext
14972    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14973    lt_compiler_flag="-fno-rtti -fno-exceptions"
14974    # Insert the option either (1) after the last *FLAGS variable, or
14975    # (2) before a word containing "conftest.", or (3) at the end.
14976    # Note that $ac_compile itself does not contain backslashes and begins
14977    # with a dollar sign (not a hyphen), so the echo should work correctly.
14978    # The option is referenced via a variable to avoid confusing sed.
14979    lt_compile=`echo "$ac_compile" | $SED \
14980    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
14981    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14982    -e 's:$: $lt_compiler_flag:'`
14983    (eval echo "\"\$as_me:14983: $lt_compile\"" >&5)
14984    (eval "$lt_compile" 2>conftest.err)
14985    ac_status=$?
14986    cat conftest.err >&5
14987    echo "$as_me:14987: \$? = $ac_status" >&5
14988    if (exit $ac_status) && test -s "$ac_outfile"; then
14989      # The compiler can only warn and ignore the option if not recognized
14990      # So say no if there are warnings
14991      if test ! -s conftest.err; then
14992        lt_cv_prog_compiler_rtti_exceptions=yes
14993      fi
14994    fi
14995    $rm conftest*
14996
14997 fi
14998 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
14999 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
15000
15001 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
15002     lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
15003 else
15004     :
15005 fi
15006
15007 fi
15008
15009 lt_prog_compiler_wl_GCJ=
15010 lt_prog_compiler_pic_GCJ=
15011 lt_prog_compiler_static_GCJ=
15012
15013 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
15014 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
15015
15016   if test "$GCC" = yes; then
15017     lt_prog_compiler_wl_GCJ='-Wl,'
15018     lt_prog_compiler_static_GCJ='-static'
15019
15020     case $host_os in
15021       aix*)
15022       # All AIX code is PIC.
15023       if test "$host_cpu" = ia64; then
15024         # AIX 5 now supports IA64 processor
15025         lt_prog_compiler_static_GCJ='-Bstatic'
15026       fi
15027       ;;
15028
15029     amigaos*)
15030       # FIXME: we need at least 68020 code to build shared libraries, but
15031       # adding the `-m68020' flag to GCC prevents building anything better,
15032       # like `-m68040'.
15033       lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
15034       ;;
15035
15036     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
15037       # PIC is the default for these OSes.
15038       ;;
15039
15040     mingw* | pw32* | os2*)
15041       # This hack is so that the source file can tell whether it is being
15042       # built for inclusion in a dll (and should export symbols for example).
15043       lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
15044       ;;
15045
15046     darwin* | rhapsody*)
15047       # PIC is the default on this platform
15048       # Common symbols not allowed in MH_DYLIB files
15049       lt_prog_compiler_pic_GCJ='-fno-common'
15050       ;;
15051
15052     msdosdjgpp*)
15053       # Just because we use GCC doesn't mean we suddenly get shared libraries
15054       # on systems that don't support them.
15055       lt_prog_compiler_can_build_shared_GCJ=no
15056       enable_shared=no
15057       ;;
15058
15059     sysv4*MP*)
15060       if test -d /usr/nec; then
15061         lt_prog_compiler_pic_GCJ=-Kconform_pic
15062       fi
15063       ;;
15064
15065     hpux*)
15066       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15067       # not for PA HP-UX.
15068       case "$host_cpu" in
15069       hppa*64*|ia64*)
15070         # +Z the default
15071         ;;
15072       *)
15073         lt_prog_compiler_pic_GCJ='-fPIC'
15074         ;;
15075       esac
15076       ;;
15077
15078     *)
15079       lt_prog_compiler_pic_GCJ='-fPIC'
15080       ;;
15081     esac
15082   else
15083     # PORTME Check for flag to pass linker flags through the system compiler.
15084     case $host_os in
15085     aix*)
15086       lt_prog_compiler_wl_GCJ='-Wl,'
15087       if test "$host_cpu" = ia64; then
15088         # AIX 5 now supports IA64 processor
15089         lt_prog_compiler_static_GCJ='-Bstatic'
15090       else
15091         lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
15092       fi
15093       ;;
15094
15095     mingw* | pw32* | os2*)
15096       # This hack is so that the source file can tell whether it is being
15097       # built for inclusion in a dll (and should export symbols for example).
15098       lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
15099       ;;
15100
15101     hpux9* | hpux10* | hpux11*)
15102       lt_prog_compiler_wl_GCJ='-Wl,'
15103       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15104       # not for PA HP-UX.
15105       case "$host_cpu" in
15106       hppa*64*|ia64*)
15107         # +Z the default
15108         ;;
15109       *)
15110         lt_prog_compiler_pic_GCJ='+Z'
15111         ;;
15112       esac
15113       # Is there a better lt_prog_compiler_static that works with the bundled CC?
15114       lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
15115       ;;
15116
15117     irix5* | irix6* | nonstopux*)
15118       lt_prog_compiler_wl_GCJ='-Wl,'
15119       # PIC (with -KPIC) is the default.
15120       lt_prog_compiler_static_GCJ='-non_shared'
15121       ;;
15122
15123     newsos6)
15124       lt_prog_compiler_pic_GCJ='-KPIC'
15125       lt_prog_compiler_static_GCJ='-Bstatic'
15126       ;;
15127
15128     linux*)
15129       case $CC in
15130       icc|ecc)
15131         lt_prog_compiler_wl_GCJ='-Wl,'
15132         lt_prog_compiler_pic_GCJ='-KPIC'
15133         lt_prog_compiler_static_GCJ='-static'
15134         ;;
15135       ccc)
15136         lt_prog_compiler_wl_GCJ='-Wl,'
15137         # All Alpha code is PIC.
15138         lt_prog_compiler_static_GCJ='-non_shared'
15139         ;;
15140       esac
15141       ;;
15142
15143     osf3* | osf4* | osf5*)
15144       lt_prog_compiler_wl_GCJ='-Wl,'
15145       # All OSF/1 code is PIC.
15146       lt_prog_compiler_static_GCJ='-non_shared'
15147       ;;
15148
15149     sco3.2v5*)
15150       lt_prog_compiler_pic_GCJ='-Kpic'
15151       lt_prog_compiler_static_GCJ='-dn'
15152       ;;
15153
15154     solaris*)
15155       lt_prog_compiler_wl_GCJ='-Wl,'
15156       lt_prog_compiler_pic_GCJ='-KPIC'
15157       lt_prog_compiler_static_GCJ='-Bstatic'
15158       ;;
15159
15160     sunos4*)
15161       lt_prog_compiler_wl_GCJ='-Qoption ld '
15162       lt_prog_compiler_pic_GCJ='-PIC'
15163       lt_prog_compiler_static_GCJ='-Bstatic'
15164       ;;
15165
15166     sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
15167       lt_prog_compiler_wl_GCJ='-Wl,'
15168       lt_prog_compiler_pic_GCJ='-KPIC'
15169       lt_prog_compiler_static_GCJ='-Bstatic'
15170       ;;
15171
15172     sysv4*MP*)
15173       if test -d /usr/nec ;then
15174         lt_prog_compiler_pic_GCJ='-Kconform_pic'
15175         lt_prog_compiler_static_GCJ='-Bstatic'
15176       fi
15177       ;;
15178
15179     uts4*)
15180       lt_prog_compiler_pic_GCJ='-pic'
15181       lt_prog_compiler_static_GCJ='-Bstatic'
15182       ;;
15183
15184     *)
15185       lt_prog_compiler_can_build_shared_GCJ=no
15186       ;;
15187     esac
15188   fi
15189
15190 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
15191 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6
15192
15193 #
15194 # Check to make sure the PIC flag actually works.
15195 #
15196 if test -n "$lt_prog_compiler_pic_GCJ"; then
15197   echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
15198 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6
15199 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
15200   echo $ECHO_N "(cached) $ECHO_C" >&6
15201 else
15202   lt_prog_compiler_pic_works_GCJ=no
15203   ac_outfile=conftest.$ac_objext
15204    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15205    lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
15206    # Insert the option either (1) after the last *FLAGS variable, or
15207    # (2) before a word containing "conftest.", or (3) at the end.
15208    # Note that $ac_compile itself does not contain backslashes and begins
15209    # with a dollar sign (not a hyphen), so the echo should work correctly.
15210    # The option is referenced via a variable to avoid confusing sed.
15211    lt_compile=`echo "$ac_compile" | $SED \
15212    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
15213    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15214    -e 's:$: $lt_compiler_flag:'`
15215    (eval echo "\"\$as_me:15215: $lt_compile\"" >&5)
15216    (eval "$lt_compile" 2>conftest.err)
15217    ac_status=$?
15218    cat conftest.err >&5
15219    echo "$as_me:15219: \$? = $ac_status" >&5
15220    if (exit $ac_status) && test -s "$ac_outfile"; then
15221      # The compiler can only warn and ignore the option if not recognized
15222      # So say no if there are warnings
15223      if test ! -s conftest.err; then
15224        lt_prog_compiler_pic_works_GCJ=yes
15225      fi
15226    fi
15227    $rm conftest*
15228
15229 fi
15230 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
15231 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6
15232
15233 if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
15234     case $lt_prog_compiler_pic_GCJ in
15235      "" | " "*) ;;
15236      *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
15237      esac
15238 else
15239     lt_prog_compiler_pic_GCJ=
15240      lt_prog_compiler_can_build_shared_GCJ=no
15241 fi
15242
15243 fi
15244 case "$host_os" in
15245   # For platforms which do not support PIC, -DPIC is meaningless:
15246   *djgpp*)
15247     lt_prog_compiler_pic_GCJ=
15248     ;;
15249   *)
15250     lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
15251     ;;
15252 esac
15253
15254 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
15255 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
15256 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
15257   echo $ECHO_N "(cached) $ECHO_C" >&6
15258 else
15259   lt_cv_prog_compiler_c_o_GCJ=no
15260    $rm -r conftest 2>/dev/null
15261    mkdir conftest
15262    cd conftest
15263    mkdir out
15264    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15265
15266    # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
15267    # that will create temporary files in the current directory regardless of
15268    # the output directory.  Thus, making CWD read-only will cause this test
15269    # to fail, enabling locking or at least warning the user not to do parallel
15270    # builds.
15271    chmod -w .
15272
15273    lt_compiler_flag="-o out/conftest2.$ac_objext"
15274    # Insert the option either (1) after the last *FLAGS variable, or
15275    # (2) before a word containing "conftest.", or (3) at the end.
15276    # Note that $ac_compile itself does not contain backslashes and begins
15277    # with a dollar sign (not a hyphen), so the echo should work correctly.
15278    lt_compile=`echo "$ac_compile" | $SED \
15279    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
15280    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15281    -e 's:$: $lt_compiler_flag:'`
15282    (eval echo "\"\$as_me:15282: $lt_compile\"" >&5)
15283    (eval "$lt_compile" 2>out/conftest.err)
15284    ac_status=$?
15285    cat out/conftest.err >&5
15286    echo "$as_me:15286: \$? = $ac_status" >&5
15287    if (exit $ac_status) && test -s out/conftest2.$ac_objext
15288    then
15289      # The compiler can only warn and ignore the option if not recognized
15290      # So say no if there are warnings
15291      if test ! -s out/conftest.err; then
15292        lt_cv_prog_compiler_c_o_GCJ=yes
15293      fi
15294    fi
15295    chmod u+w .
15296    $rm conftest* out/*
15297    rmdir out
15298    cd ..
15299    rmdir conftest
15300    $rm conftest*
15301
15302 fi
15303 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
15304 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6
15305
15306
15307 hard_links="nottested"
15308 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
15309   # do not overwrite the value of need_locks provided by the user
15310   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
15311 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
15312   hard_links=yes
15313   $rm conftest*
15314   ln conftest.a conftest.b 2>/dev/null && hard_links=no
15315   touch conftest.a
15316   ln conftest.a conftest.b 2>&5 || hard_links=no
15317   ln conftest.a conftest.b 2>/dev/null && hard_links=no
15318   echo "$as_me:$LINENO: result: $hard_links" >&5
15319 echo "${ECHO_T}$hard_links" >&6
15320   if test "$hard_links" = no; then
15321     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15322 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15323     need_locks=warn
15324   fi
15325 else
15326   need_locks=no
15327 fi
15328
15329 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15330 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
15331
15332   runpath_var=
15333   allow_undefined_flag_GCJ=
15334   enable_shared_with_static_runtimes_GCJ=no
15335   archive_cmds_GCJ=
15336   archive_expsym_cmds_GCJ=
15337   old_archive_From_new_cmds_GCJ=
15338   old_archive_from_expsyms_cmds_GCJ=
15339   export_dynamic_flag_spec_GCJ=
15340   whole_archive_flag_spec_GCJ=
15341   thread_safe_flag_spec_GCJ=
15342   hardcode_libdir_flag_spec_GCJ=
15343   hardcode_libdir_flag_spec_ld_GCJ=
15344   hardcode_libdir_separator_GCJ=
15345   hardcode_direct_GCJ=no
15346   hardcode_minus_L_GCJ=no
15347   hardcode_shlibpath_var_GCJ=unsupported
15348   link_all_deplibs_GCJ=unknown
15349   hardcode_automatic_GCJ=no
15350   module_cmds_GCJ=
15351   module_expsym_cmds_GCJ=
15352   always_export_symbols_GCJ=no
15353   export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15354   # include_expsyms should be a list of space-separated symbols to be *always*
15355   # included in the symbol list
15356   include_expsyms_GCJ=
15357   # exclude_expsyms can be an extended regexp of symbols to exclude
15358   # it will be wrapped by ` (' and `)$', so one must not match beginning or
15359   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
15360   # as well as any symbol that contains `d'.
15361   exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
15362   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
15363   # platforms (ab)use it in PIC code, but their linkers get confused if
15364   # the symbol is explicitly referenced.  Since portable code cannot
15365   # rely on this symbol name, it's probably fine to never include it in
15366   # preloaded symbol tables.
15367   extract_expsyms_cmds=
15368
15369   case $host_os in
15370   cygwin* | mingw* | pw32*)
15371     # FIXME: the MSVC++ port hasn't been tested in a loooong time
15372     # When not using gcc, we currently assume that we are using
15373     # Microsoft Visual C++.
15374     if test "$GCC" != yes; then
15375       with_gnu_ld=no
15376     fi
15377     ;;
15378   openbsd*)
15379     with_gnu_ld=no
15380     ;;
15381   esac
15382
15383   ld_shlibs_GCJ=yes
15384   if test "$with_gnu_ld" = yes; then
15385     # If archive_cmds runs LD, not CC, wlarc should be empty
15386     wlarc='${wl}'
15387
15388     # See if GNU ld supports shared libraries.
15389     case $host_os in
15390     aix3* | aix4* | aix5*)
15391       # On AIX/PPC, the GNU linker is very broken
15392       if test "$host_cpu" != ia64; then
15393         ld_shlibs_GCJ=no
15394         cat <<EOF 1>&2
15395
15396 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
15397 *** to be unable to reliably create shared libraries on AIX.
15398 *** Therefore, libtool is disabling shared libraries support.  If you
15399 *** really care for shared libraries, you may want to modify your PATH
15400 *** so that a non-GNU linker is found, and then restart.
15401
15402 EOF
15403       fi
15404       ;;
15405
15406     amigaos*)
15407       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)'
15408       hardcode_libdir_flag_spec_GCJ='-L$libdir'
15409       hardcode_minus_L_GCJ=yes
15410
15411       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
15412       # that the semantics of dynamic libraries on AmigaOS, at least up
15413       # to version 4, is to share data among multiple programs linked
15414       # with the same dynamic library.  Since this doesn't match the
15415       # behavior of shared libraries on other platforms, we can't use
15416       # them.
15417       ld_shlibs_GCJ=no
15418       ;;
15419
15420     beos*)
15421       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15422         allow_undefined_flag_GCJ=unsupported
15423         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
15424         # support --undefined.  This deserves some investigation.  FIXME
15425         archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15426       else
15427         ld_shlibs_GCJ=no
15428       fi
15429       ;;
15430
15431     cygwin* | mingw* | pw32*)
15432       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
15433       # as there is no search path for DLLs.
15434       hardcode_libdir_flag_spec_GCJ='-L$libdir'
15435       allow_undefined_flag_GCJ=unsupported
15436       always_export_symbols_GCJ=no
15437       enable_shared_with_static_runtimes_GCJ=yes
15438       export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
15439
15440       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
15441         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
15442         # If the export-symbols file already is a .def file (1st line
15443         # is EXPORTS), use it as is; otherwise, prepend...
15444         archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15445           cp $export_symbols $output_objdir/$soname.def;
15446         else
15447           echo EXPORTS > $output_objdir/$soname.def;
15448           cat $export_symbols >> $output_objdir/$soname.def;
15449         fi~
15450         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
15451       else
15452         ld_shlibs=no
15453       fi
15454       ;;
15455
15456     netbsd*)
15457       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15458         archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
15459         wlarc=
15460       else
15461         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15462         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15463       fi
15464       ;;
15465
15466     solaris* | sysv5*)
15467       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
15468         ld_shlibs_GCJ=no
15469         cat <<EOF 1>&2
15470
15471 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
15472 *** create shared libraries on Solaris systems.  Therefore, libtool
15473 *** is disabling shared libraries support.  We urge you to upgrade GNU
15474 *** binutils to release 2.9.1 or newer.  Another option is to modify
15475 *** your PATH or compiler configuration so that the native linker is
15476 *** used, and then restart.
15477
15478 EOF
15479       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15480         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15481         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15482       else
15483         ld_shlibs_GCJ=no
15484       fi
15485       ;;
15486
15487     sunos4*)
15488       archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15489       wlarc=
15490       hardcode_direct_GCJ=yes
15491       hardcode_shlibpath_var_GCJ=no
15492       ;;
15493
15494     *)
15495       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15496         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15497         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15498       else
15499         ld_shlibs_GCJ=no
15500       fi
15501       ;;
15502     esac
15503
15504     if test "$ld_shlibs_GCJ" = yes; then
15505       runpath_var=LD_RUN_PATH
15506       hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
15507       export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
15508       # ancient GNU ld didn't support --whole-archive et. al.
15509       if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
15510         whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15511       else
15512         whole_archive_flag_spec_GCJ=
15513       fi
15514     fi
15515   else
15516     # PORTME fill in a description of your system's linker (not GNU ld)
15517     case $host_os in
15518     aix3*)
15519       allow_undefined_flag_GCJ=unsupported
15520       always_export_symbols_GCJ=yes
15521       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'
15522       # Note: this linker hardcodes the directories in LIBPATH if there
15523       # are no directories specified by -L.
15524       hardcode_minus_L_GCJ=yes
15525       if test "$GCC" = yes && test -z "$link_static_flag"; then
15526         # Neither direct hardcoding nor static linking is supported with a
15527         # broken collect2.
15528         hardcode_direct_GCJ=unsupported
15529       fi
15530       ;;
15531
15532     aix4* | aix5*)
15533       if test "$host_cpu" = ia64; then
15534         # On IA64, the linker does run time linking by default, so we don't
15535         # have to do anything special.
15536         aix_use_runtimelinking=no
15537         exp_sym_flag='-Bexport'
15538         no_entry_flag=""
15539       else
15540         # If we're using GNU nm, then we don't want the "-C" option.
15541         # -C means demangle to AIX nm, but means don't demangle with GNU nm
15542         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
15543           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'
15544         else
15545           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'
15546         fi
15547         aix_use_runtimelinking=no
15548
15549         # Test if we are trying to use run time linking or normal
15550         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
15551         # need to do runtime linking.
15552         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
15553           for ld_flag in $LDFLAGS; do
15554           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
15555             aix_use_runtimelinking=yes
15556             break
15557           fi
15558           done
15559         esac
15560
15561         exp_sym_flag='-bexport'
15562         no_entry_flag='-bnoentry'
15563       fi
15564
15565       # When large executables or shared objects are built, AIX ld can
15566       # have problems creating the table of contents.  If linking a library
15567       # or program results in "error TOC overflow" add -mminimal-toc to
15568       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
15569       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15570
15571       archive_cmds_GCJ=''
15572       hardcode_direct_GCJ=yes
15573       hardcode_libdir_separator_GCJ=':'
15574       link_all_deplibs_GCJ=yes
15575
15576       if test "$GCC" = yes; then
15577         case $host_os in aix4.012|aix4.012.*)
15578         # We only want to do this on AIX 4.2 and lower, the check
15579         # below for broken collect2 doesn't work under 4.3+
15580           collect2name=`${CC} -print-prog-name=collect2`
15581           if test -f "$collect2name" && \
15582            strings "$collect2name" | grep resolve_lib_name >/dev/null
15583           then
15584           # We have reworked collect2
15585           hardcode_direct_GCJ=yes
15586           else
15587           # We have old collect2
15588           hardcode_direct_GCJ=unsupported
15589           # It fails to find uninstalled libraries when the uninstalled
15590           # path is not listed in the libpath.  Setting hardcode_minus_L
15591           # to unsupported forces relinking
15592           hardcode_minus_L_GCJ=yes
15593           hardcode_libdir_flag_spec_GCJ='-L$libdir'
15594           hardcode_libdir_separator_GCJ=
15595           fi
15596         esac
15597         shared_flag='-shared'
15598       else
15599         # not using gcc
15600         if test "$host_cpu" = ia64; then
15601         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15602         # chokes on -Wl,-G. The following line is correct:
15603           shared_flag='-G'
15604         else
15605         if test "$aix_use_runtimelinking" = yes; then
15606             shared_flag='${wl}-G'
15607           else
15608             shared_flag='${wl}-bM:SRE'
15609         fi
15610         fi
15611       fi
15612
15613       # It seems that -bexpall does not export symbols beginning with
15614       # underscore (_), so it is better to generate a list of symbols to export.
15615       always_export_symbols_GCJ=yes
15616       if test "$aix_use_runtimelinking" = yes; then
15617         # Warning - without using the other runtime loading flags (-brtl),
15618         # -berok will link without error, but may produce a broken library.
15619         allow_undefined_flag_GCJ='-berok'
15620        # Determine the default libpath from the value encoded in an empty executable.
15621        cat >conftest.$ac_ext <<_ACEOF
15622 #line $LINENO "configure"
15623 /* confdefs.h.  */
15624 _ACEOF
15625 cat confdefs.h >>conftest.$ac_ext
15626 cat >>conftest.$ac_ext <<_ACEOF
15627 /* end confdefs.h.  */
15628
15629 int
15630 main ()
15631 {
15632
15633   ;
15634   return 0;
15635 }
15636 _ACEOF
15637 rm -f conftest.$ac_objext conftest$ac_exeext
15638 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15639   (eval $ac_link) 2>&5
15640   ac_status=$?
15641   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15642   (exit $ac_status); } &&
15643          { ac_try='test -s conftest$ac_exeext'
15644   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15645   (eval $ac_try) 2>&5
15646   ac_status=$?
15647   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15648   (exit $ac_status); }; }; then
15649
15650 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
15651 }'`
15652 # Check for a 64-bit object if we didn't find anything.
15653 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; }
15654 }'`; fi
15655 else
15656   echo "$as_me: failed program was:" >&5
15657 sed 's/^/| /' conftest.$ac_ext >&5
15658
15659 fi
15660 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15661 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15662
15663        hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
15664         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"
15665        else
15666         if test "$host_cpu" = ia64; then
15667           hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
15668           allow_undefined_flag_GCJ="-z nodefs"
15669           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"
15670         else
15671          # Determine the default libpath from the value encoded in an empty executable.
15672          cat >conftest.$ac_ext <<_ACEOF
15673 #line $LINENO "configure"
15674 /* confdefs.h.  */
15675 _ACEOF
15676 cat confdefs.h >>conftest.$ac_ext
15677 cat >>conftest.$ac_ext <<_ACEOF
15678 /* end confdefs.h.  */
15679
15680 int
15681 main ()
15682 {
15683
15684   ;
15685   return 0;
15686 }
15687 _ACEOF
15688 rm -f conftest.$ac_objext conftest$ac_exeext
15689 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15690   (eval $ac_link) 2>&5
15691   ac_status=$?
15692   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15693   (exit $ac_status); } &&
15694          { ac_try='test -s conftest$ac_exeext'
15695   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15696   (eval $ac_try) 2>&5
15697   ac_status=$?
15698   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15699   (exit $ac_status); }; }; then
15700
15701 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
15702 }'`
15703 # Check for a 64-bit object if we didn't find anything.
15704 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; }
15705 }'`; fi
15706 else
15707   echo "$as_me: failed program was:" >&5
15708 sed 's/^/| /' conftest.$ac_ext >&5
15709
15710 fi
15711 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15712 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15713
15714          hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
15715           # Warning - without using the other run time loading flags,
15716           # -berok will link without error, but may produce a broken library.
15717           no_undefined_flag_GCJ=' ${wl}-bernotok'
15718           allow_undefined_flag_GCJ=' ${wl}-berok'
15719           # -bexpall does not export symbols beginning with underscore (_)
15720           always_export_symbols_GCJ=yes
15721           # Exported symbols can be pulled into shared objects from archives
15722           whole_archive_flag_spec_GCJ=' '
15723           archive_cmds_need_lc_GCJ=yes
15724           # This is similar to how AIX traditionally builds it's shared libraries.
15725           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'
15726         fi
15727       fi
15728       ;;
15729
15730     amigaos*)
15731       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)'
15732       hardcode_libdir_flag_spec_GCJ='-L$libdir'
15733       hardcode_minus_L_GCJ=yes
15734       # see comment about different semantics on the GNU ld section
15735       ld_shlibs_GCJ=no
15736       ;;
15737
15738     bsdi4*)
15739       export_dynamic_flag_spec_GCJ=-rdynamic
15740       ;;
15741
15742     cygwin* | mingw* | pw32*)
15743       # When not using gcc, we currently assume that we are using
15744       # Microsoft Visual C++.
15745       # hardcode_libdir_flag_spec is actually meaningless, as there is
15746       # no search path for DLLs.
15747       hardcode_libdir_flag_spec_GCJ=' '
15748       allow_undefined_flag_GCJ=unsupported
15749       # Tell ltmain to make .lib files, not .a files.
15750       libext=lib
15751       # Tell ltmain to make .dll files, not .so files.
15752       shrext=".dll"
15753       # FIXME: Setting linknames here is a bad hack.
15754       archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
15755       # The linker will automatically build a .lib file if we build a DLL.
15756       old_archive_From_new_cmds_GCJ='true'
15757       # FIXME: Should let the user specify the lib program.
15758       old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
15759       fix_srcfile_path='`cygpath -w "$srcfile"`'
15760       enable_shared_with_static_runtimes_GCJ=yes
15761       ;;
15762
15763     darwin* | rhapsody*)
15764     if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
15765       archive_cmds_need_lc_GCJ=no
15766       case "$host_os" in
15767       rhapsody* | darwin1.[012])
15768         allow_undefined_flag_GCJ='-undefined suppress'
15769         ;;
15770       *) # Darwin 1.3 on
15771         test -z ${LD_TWOLEVEL_NAMESPACE} && allow_undefined_flag_GCJ='-flat_namespace -undefined suppress'
15772         ;;
15773       esac
15774       # FIXME: Relying on posixy $() will cause problems for
15775       #        cross-compilation, but unfortunately the echo tests do not
15776       #        yet detect zsh echo's removal of \ escapes.  Also zsh mangles
15777       #        `"' quotes if we put them in here... so don't!
15778         lt_int_apple_cc_single_mod=no
15779         output_verbose_link_cmd='echo'
15780         if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
15781           lt_int_apple_cc_single_mod=yes
15782         fi
15783         if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
15784           archive_cmds_GCJ='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
15785         else
15786         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'
15787       fi
15788       module_cmds_GCJ='$CC -bundle ${wl}-bind_at_load $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags'
15789       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
15790         if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
15791           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}'
15792         else
15793           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}'
15794         fi
15795           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}'
15796       hardcode_direct_GCJ=no
15797       hardcode_automatic_GCJ=yes
15798       hardcode_shlibpath_var_GCJ=unsupported
15799       whole_archive_flag_spec_GCJ='-all_load $convenience'
15800       link_all_deplibs_GCJ=yes
15801     fi
15802       ;;
15803
15804     dgux*)
15805       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15806       hardcode_libdir_flag_spec_GCJ='-L$libdir'
15807       hardcode_shlibpath_var_GCJ=no
15808       ;;
15809
15810     freebsd1*)
15811       ld_shlibs_GCJ=no
15812       ;;
15813
15814     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
15815     # support.  Future versions do this automatically, but an explicit c++rt0.o
15816     # does not break anything, and helps significantly (at the cost of a little
15817     # extra space).
15818     freebsd2.2*)
15819       archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
15820       hardcode_libdir_flag_spec_GCJ='-R$libdir'
15821       hardcode_direct_GCJ=yes
15822       hardcode_shlibpath_var_GCJ=no
15823       ;;
15824
15825     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
15826     freebsd2*)
15827       archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15828       hardcode_direct_GCJ=yes
15829       hardcode_minus_L_GCJ=yes
15830       hardcode_shlibpath_var_GCJ=no
15831       ;;
15832
15833     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
15834     freebsd*)
15835       archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
15836       hardcode_libdir_flag_spec_GCJ='-R$libdir'
15837       hardcode_direct_GCJ=yes
15838       hardcode_shlibpath_var_GCJ=no
15839       ;;
15840
15841     hpux9*)
15842       if test "$GCC" = yes; then
15843         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'
15844       else
15845         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'
15846       fi
15847       hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
15848       hardcode_libdir_separator_GCJ=:
15849       hardcode_direct_GCJ=yes
15850
15851       # hardcode_minus_L: Not really in the search PATH,
15852       # but as the default location of the library.
15853       hardcode_minus_L_GCJ=yes
15854       export_dynamic_flag_spec_GCJ='${wl}-E'
15855       ;;
15856
15857     hpux10* | hpux11*)
15858       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15859         case "$host_cpu" in
15860         hppa*64*|ia64*)
15861           archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15862           ;;
15863         *)
15864           archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15865           ;;
15866         esac
15867       else
15868         case "$host_cpu" in
15869         hppa*64*|ia64*)
15870           archive_cmds_GCJ='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
15871           ;;
15872         *)
15873           archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15874           ;;
15875         esac
15876       fi
15877       if test "$with_gnu_ld" = no; then
15878         case "$host_cpu" in
15879         hppa*64*)
15880           hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
15881           hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
15882           hardcode_libdir_separator_GCJ=:
15883           hardcode_direct_GCJ=no
15884           hardcode_shlibpath_var_GCJ=no
15885           ;;
15886         ia64*)
15887           hardcode_libdir_flag_spec_GCJ='-L$libdir'
15888           hardcode_direct_GCJ=no
15889           hardcode_shlibpath_var_GCJ=no
15890
15891           # hardcode_minus_L: Not really in the search PATH,
15892           # but as the default location of the library.
15893           hardcode_minus_L_GCJ=yes
15894           ;;
15895         *)
15896           hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
15897           hardcode_libdir_separator_GCJ=:
15898           hardcode_direct_GCJ=yes
15899           export_dynamic_flag_spec_GCJ='${wl}-E'
15900
15901           # hardcode_minus_L: Not really in the search PATH,
15902           # but as the default location of the library.
15903           hardcode_minus_L_GCJ=yes
15904           ;;
15905         esac
15906       fi
15907       ;;
15908
15909     irix5* | irix6* | nonstopux*)
15910       if test "$GCC" = yes; then
15911         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'
15912       else
15913         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'
15914         hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
15915       fi
15916       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
15917       hardcode_libdir_separator_GCJ=:
15918       link_all_deplibs_GCJ=yes
15919       ;;
15920
15921     netbsd*)
15922       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15923         archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
15924       else
15925         archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
15926       fi
15927       hardcode_libdir_flag_spec_GCJ='-R$libdir'
15928       hardcode_direct_GCJ=yes
15929       hardcode_shlibpath_var_GCJ=no
15930       ;;
15931
15932     newsos6)
15933       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15934       hardcode_direct_GCJ=yes
15935       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
15936       hardcode_libdir_separator_GCJ=:
15937       hardcode_shlibpath_var_GCJ=no
15938       ;;
15939
15940     openbsd*)
15941       hardcode_direct_GCJ=yes
15942       hardcode_shlibpath_var_GCJ=no
15943       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15944         archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15945         hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
15946         export_dynamic_flag_spec_GCJ='${wl}-E'
15947       else
15948        case $host_os in
15949          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
15950            archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15951            hardcode_libdir_flag_spec_GCJ='-R$libdir'
15952            ;;
15953          *)
15954            archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15955            hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
15956            ;;
15957        esac
15958       fi
15959       ;;
15960
15961     os2*)
15962       hardcode_libdir_flag_spec_GCJ='-L$libdir'
15963       hardcode_minus_L_GCJ=yes
15964       allow_undefined_flag_GCJ=unsupported
15965       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'
15966       old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
15967       ;;
15968
15969     osf3*)
15970       if test "$GCC" = yes; then
15971         allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
15972         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'
15973       else
15974         allow_undefined_flag_GCJ=' -expect_unresolved \*'
15975         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'
15976       fi
15977       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
15978       hardcode_libdir_separator_GCJ=:
15979       ;;
15980
15981     osf4* | osf5*)      # as osf3* with the addition of -msym flag
15982       if test "$GCC" = yes; then
15983         allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
15984         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'
15985         hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
15986       else
15987         allow_undefined_flag_GCJ=' -expect_unresolved \*'
15988         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'
15989         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~
15990         $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'
15991
15992         # Both c and cxx compiler support -rpath directly
15993         hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
15994       fi
15995       hardcode_libdir_separator_GCJ=:
15996       ;;
15997
15998     sco3.2v5*)
15999       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16000       hardcode_shlibpath_var_GCJ=no
16001       export_dynamic_flag_spec_GCJ='${wl}-Bexport'
16002       runpath_var=LD_RUN_PATH
16003       hardcode_runpath_var=yes
16004       ;;
16005
16006     solaris*)
16007       no_undefined_flag_GCJ=' -z text'
16008       if test "$GCC" = yes; then
16009         archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16010         archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16011           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
16012       else
16013         archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16014         archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16015         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
16016       fi
16017       hardcode_libdir_flag_spec_GCJ='-R$libdir'
16018       hardcode_shlibpath_var_GCJ=no
16019       case $host_os in
16020       solaris2.[0-5] | solaris2.[0-5].*) ;;
16021       *) # Supported since Solaris 2.6 (maybe 2.5.1?)
16022         whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
16023       esac
16024       link_all_deplibs_GCJ=yes
16025       ;;
16026
16027     sunos4*)
16028       if test "x$host_vendor" = xsequent; then
16029         # Use $CC to link under sequent, because it throws in some extra .o
16030         # files that make .init and .fini sections work.
16031         archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
16032       else
16033         archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
16034       fi
16035       hardcode_libdir_flag_spec_GCJ='-L$libdir'
16036       hardcode_direct_GCJ=yes
16037       hardcode_minus_L_GCJ=yes
16038       hardcode_shlibpath_var_GCJ=no
16039       ;;
16040
16041     sysv4)
16042       case $host_vendor in
16043         sni)
16044           archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16045           hardcode_direct_GCJ=yes # is this really true???
16046         ;;
16047         siemens)
16048           ## LD is ld it makes a PLAMLIB
16049           ## CC just makes a GrossModule.
16050           archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16051           reload_cmds_GCJ='$CC -r -o $output$reload_objs'
16052           hardcode_direct_GCJ=no
16053         ;;
16054         motorola)
16055           archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16056           hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
16057         ;;
16058       esac
16059       runpath_var='LD_RUN_PATH'
16060       hardcode_shlibpath_var_GCJ=no
16061       ;;
16062
16063     sysv4.3*)
16064       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16065       hardcode_shlibpath_var_GCJ=no
16066       export_dynamic_flag_spec_GCJ='-Bexport'
16067       ;;
16068
16069     sysv4*MP*)
16070       if test -d /usr/nec; then
16071         archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16072         hardcode_shlibpath_var_GCJ=no
16073         runpath_var=LD_RUN_PATH
16074         hardcode_runpath_var=yes
16075         ld_shlibs_GCJ=yes
16076       fi
16077       ;;
16078
16079     sysv4.2uw2*)
16080       archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16081       hardcode_direct_GCJ=yes
16082       hardcode_minus_L_GCJ=no
16083       hardcode_shlibpath_var_GCJ=no
16084       hardcode_runpath_var=yes
16085       runpath_var=LD_RUN_PATH
16086       ;;
16087
16088    sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
16089       no_undefined_flag_GCJ='${wl}-z ${wl}text'
16090       if test "$GCC" = yes; then
16091         archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16092       else
16093         archive_cmds_GCJ='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16094       fi
16095       runpath_var='LD_RUN_PATH'
16096       hardcode_shlibpath_var_GCJ=no
16097       ;;
16098
16099     sysv5*)
16100       no_undefined_flag_GCJ=' -z text'
16101       # $CC -shared without GNU ld will not create a library from C++
16102       # object files and a static libstdc++, better avoid it by now
16103       archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16104       archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16105                 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
16106       hardcode_libdir_flag_spec_GCJ=
16107       hardcode_shlibpath_var_GCJ=no
16108       runpath_var='LD_RUN_PATH'
16109       ;;
16110
16111     uts4*)
16112       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16113       hardcode_libdir_flag_spec_GCJ='-L$libdir'
16114       hardcode_shlibpath_var_GCJ=no
16115       ;;
16116
16117     *)
16118       ld_shlibs_GCJ=no
16119       ;;
16120     esac
16121   fi
16122
16123 echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
16124 echo "${ECHO_T}$ld_shlibs_GCJ" >&6
16125 test "$ld_shlibs_GCJ" = no && can_build_shared=no
16126
16127 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16128 if test "$GCC" = yes; then
16129   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16130 fi
16131
16132 #
16133 # Do we need to explicitly link libc?
16134 #
16135 case "x$archive_cmds_need_lc_GCJ" in
16136 x|xyes)
16137   # Assume -lc should be added
16138   archive_cmds_need_lc_GCJ=yes
16139
16140   if test "$enable_shared" = yes && test "$GCC" = yes; then
16141     case $archive_cmds_GCJ in
16142     *'~'*)
16143       # FIXME: we may have to deal with multi-command sequences.
16144       ;;
16145     '$CC '*)
16146       # Test whether the compiler implicitly links with -lc since on some
16147       # systems, -lgcc has to come before -lc. If gcc already passes -lc
16148       # to ld, don't add -lc before -lgcc.
16149       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
16150 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
16151       $rm conftest*
16152       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16153
16154       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16155   (eval $ac_compile) 2>&5
16156   ac_status=$?
16157   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16158   (exit $ac_status); } 2>conftest.err; then
16159         soname=conftest
16160         lib=conftest
16161         libobjs=conftest.$ac_objext
16162         deplibs=
16163         wl=$lt_prog_compiler_wl_GCJ
16164         compiler_flags=-v
16165         linker_flags=-v
16166         verstring=
16167         output_objdir=.
16168         libname=conftest
16169         lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
16170         allow_undefined_flag_GCJ=
16171         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
16172   (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
16173   ac_status=$?
16174   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16175   (exit $ac_status); }
16176         then
16177           archive_cmds_need_lc_GCJ=no
16178         else
16179           archive_cmds_need_lc_GCJ=yes
16180         fi
16181         allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
16182       else
16183         cat conftest.err 1>&5
16184       fi
16185       $rm conftest*
16186       echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
16187 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6
16188       ;;
16189     esac
16190   fi
16191   ;;
16192 esac
16193
16194 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
16195 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
16196 hardcode_action_GCJ=
16197 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
16198    test -n "$runpath_var GCJ" || \
16199    test "X$hardcode_automatic_GCJ"="Xyes" ; then
16200
16201   # We can hardcode non-existant directories.
16202   if test "$hardcode_direct_GCJ" != no &&
16203      # If the only mechanism to avoid hardcoding is shlibpath_var, we
16204      # have to relink, otherwise we might link with an installed library
16205      # when we should be linking with a yet-to-be-installed one
16206      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
16207      test "$hardcode_minus_L_GCJ" != no; then
16208     # Linking always hardcodes the temporary library directory.
16209     hardcode_action_GCJ=relink
16210   else
16211     # We can link without hardcoding, and we can hardcode nonexisting dirs.
16212     hardcode_action_GCJ=immediate
16213   fi
16214 else
16215   # We cannot hardcode anything, or else we can only hardcode existing
16216   # directories.
16217   hardcode_action_GCJ=unsupported
16218 fi
16219 echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
16220 echo "${ECHO_T}$hardcode_action_GCJ" >&6
16221
16222 if test "$hardcode_action_GCJ" = relink; then
16223   # Fast installation is not supported
16224   enable_fast_install=no
16225 elif test "$shlibpath_overrides_runpath" = yes ||
16226      test "$enable_shared" = no; then
16227   # Fast installation is not necessary
16228   enable_fast_install=needless
16229 fi
16230
16231 striplib=
16232 old_striplib=
16233 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
16234 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
16235 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
16236   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
16237   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
16238   echo "$as_me:$LINENO: result: yes" >&5
16239 echo "${ECHO_T}yes" >&6
16240 else
16241 # FIXME - insert some real tests, host_os isn't really good enough
16242   case $host_os in
16243    darwin*)
16244        if test -n "$STRIP" ; then
16245          striplib="$STRIP -x"
16246          echo "$as_me:$LINENO: result: yes" >&5
16247 echo "${ECHO_T}yes" >&6
16248        else
16249   echo "$as_me:$LINENO: result: no" >&5
16250 echo "${ECHO_T}no" >&6
16251 fi
16252        ;;
16253    *)
16254   echo "$as_me:$LINENO: result: no" >&5
16255 echo "${ECHO_T}no" >&6
16256     ;;
16257   esac
16258 fi
16259
16260 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
16261 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
16262 library_names_spec=
16263 libname_spec='lib$name'
16264 soname_spec=
16265 shrext=".so"
16266 postinstall_cmds=
16267 postuninstall_cmds=
16268 finish_cmds=
16269 finish_eval=
16270 shlibpath_var=
16271 shlibpath_overrides_runpath=unknown
16272 version_type=none
16273 dynamic_linker="$host_os ld.so"
16274 sys_lib_dlsearch_path_spec="/lib /usr/lib"
16275 if test "$GCC" = yes; then
16276   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16277   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
16278     # if the path contains ";" then we assume it to be the separator
16279     # otherwise default to the standard path separator (i.e. ":") - it is
16280     # assumed that no part of a normal pathname contains ";" but that should
16281     # okay in the real world where ";" in dirpaths is itself problematic.
16282     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16283   else
16284     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
16285   fi
16286 else
16287   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
16288 fi
16289 need_lib_prefix=unknown
16290 hardcode_into_libs=no
16291
16292 # when you set need_version to no, make sure it does not cause -set_version
16293 # flags to be left without arguments
16294 need_version=unknown
16295
16296 case $host_os in
16297 aix3*)
16298   version_type=linux
16299   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
16300   shlibpath_var=LIBPATH
16301
16302   # AIX 3 has no versioning support, so we append a major version to the name.
16303   soname_spec='${libname}${release}${shared_ext}$major'
16304   ;;
16305
16306 aix4* | aix5*)
16307   version_type=linux
16308   need_lib_prefix=no
16309   need_version=no
16310   hardcode_into_libs=yes
16311   if test "$host_cpu" = ia64; then
16312     # AIX 5 supports IA64
16313     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16314     shlibpath_var=LD_LIBRARY_PATH
16315   else
16316     # With GCC up to 2.95.x, collect2 would create an import file
16317     # for dependence libraries.  The import file would start with
16318     # the line `#! .'.  This would cause the generated library to
16319     # depend on `.', always an invalid library.  This was fixed in
16320     # development snapshots of GCC prior to 3.0.
16321     case $host_os in
16322       aix4 | aix4.[01] | aix4.[01].*)
16323       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16324            echo ' yes '
16325            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
16326         :
16327       else
16328         can_build_shared=no
16329       fi
16330       ;;
16331     esac
16332     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16333     # soname into executable. Probably we can add versioning support to
16334     # collect2, so additional links can be useful in future.
16335     if test "$aix_use_runtimelinking" = yes; then
16336       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16337       # instead of lib<name>.a to let people know that these are not
16338       # typical AIX shared libraries.
16339       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16340     else
16341       # We preserve .a as extension for shared libraries through AIX4.2
16342       # and later when we are not doing run time linking.
16343       library_names_spec='${libname}${release}.a $libname.a'
16344       soname_spec='${libname}${release}${shared_ext}$major'
16345     fi
16346     shlibpath_var=LIBPATH
16347   fi
16348   ;;
16349
16350 amigaos*)
16351   library_names_spec='$libname.ixlibrary $libname.a'
16352   # Create ${libname}_ixlibrary.a entries in /sys/libs.
16353   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'
16354   ;;
16355
16356 beos*)
16357   library_names_spec='${libname}${shared_ext}'
16358   dynamic_linker="$host_os ld.so"
16359   shlibpath_var=LIBRARY_PATH
16360   ;;
16361
16362 bsdi4*)
16363   version_type=linux
16364   need_version=no
16365   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16366   soname_spec='${libname}${release}${shared_ext}$major'
16367   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16368   shlibpath_var=LD_LIBRARY_PATH
16369   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16370   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16371   # the default ld.so.conf also contains /usr/contrib/lib and
16372   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16373   # libtool to hard-code these into programs
16374   ;;
16375
16376 cygwin* | mingw* | pw32*)
16377   version_type=windows
16378   shrext=".dll"
16379   need_version=no
16380   need_lib_prefix=no
16381
16382   case $GCC,$host_os in
16383   yes,cygwin* | yes,mingw* | yes,pw32*)
16384     library_names_spec='$libname.dll.a'
16385     # DLL is installed to $(libdir)/../bin by postinstall_cmds
16386     postinstall_cmds='base_file=`basename \${file}`~
16387       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
16388       dldir=$destdir/`dirname \$dlpath`~
16389       test -d \$dldir || mkdir -p \$dldir~
16390       $install_prog $dir/$dlname \$dldir/$dlname'
16391     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16392       dlpath=$dir/\$dldll~
16393        $rm \$dlpath'
16394     shlibpath_overrides_runpath=yes
16395
16396     case $host_os in
16397     cygwin*)
16398       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16399       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16400       sys_lib_search_path_spec="/lib /lib/w32api /usr/lib /usr/local/lib"
16401       ;;
16402     mingw*)
16403       # MinGW DLLs use traditional 'lib' prefix
16404       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16405       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16406       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
16407         # It is most probably a Windows format PATH printed by
16408         # mingw gcc, but we are running on Cygwin. Gcc prints its search
16409         # path with ; separators, and with drive letters. We can handle the
16410         # drive letters (cygwin fileutils understands them), so leave them,
16411         # especially as we might pass files found there to a mingw objdump,
16412         # which wouldn't understand a cygwinified path. Ahh.
16413         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16414       else
16415         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
16416       fi
16417       ;;
16418     pw32*)
16419       # pw32 DLLs use 'pw' prefix rather than 'lib'
16420       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
16421       ;;
16422     esac
16423     ;;
16424
16425   *)
16426     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
16427     ;;
16428   esac
16429   dynamic_linker='Win32 ld.exe'
16430   # FIXME: first we should search . and the directory the executable is in
16431   shlibpath_var=PATH
16432   ;;
16433
16434 darwin* | rhapsody*)
16435   dynamic_linker="$host_os dyld"
16436   version_type=darwin
16437   need_lib_prefix=no
16438   need_version=no
16439   # FIXME: Relying on posixy $() will cause problems for
16440   #        cross-compilation, but unfortunately the echo tests do not
16441   #        yet detect zsh echo's removal of \ escapes.
16442   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
16443   soname_spec='${libname}${release}${major}$shared_ext'
16444   shlibpath_overrides_runpath=yes
16445   shlibpath_var=DYLD_LIBRARY_PATH
16446   shrext='$(test .$module = .yes && echo .so || echo .dylib)'
16447   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
16448   if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
16449   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"`
16450   fi
16451   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16452   ;;
16453
16454 dgux*)
16455   version_type=linux
16456   need_lib_prefix=no
16457   need_version=no
16458   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16459   soname_spec='${libname}${release}${shared_ext}$major'
16460   shlibpath_var=LD_LIBRARY_PATH
16461   ;;
16462
16463 freebsd1*)
16464   dynamic_linker=no
16465   ;;
16466
16467 freebsd*)
16468   objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
16469   version_type=freebsd-$objformat
16470   case $version_type in
16471     freebsd-elf*)
16472       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16473       need_version=no
16474       need_lib_prefix=no
16475       ;;
16476     freebsd-*)
16477       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
16478       need_version=yes
16479       ;;
16480   esac
16481   shlibpath_var=LD_LIBRARY_PATH
16482   case $host_os in
16483   freebsd2*)
16484     shlibpath_overrides_runpath=yes
16485     ;;
16486   freebsd3.01* | freebsdelf3.01*)
16487     shlibpath_overrides_runpath=yes
16488     hardcode_into_libs=yes
16489     ;;
16490   *) # from 3.2 on
16491     shlibpath_overrides_runpath=no
16492     hardcode_into_libs=yes
16493     ;;
16494   esac
16495   ;;
16496
16497 gnu*)
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   hardcode_into_libs=yes
16505   ;;
16506
16507 hpux9* | hpux10* | hpux11*)
16508   # Give a soname corresponding to the major version so that dld.sl refuses to
16509   # link against other versions.
16510   version_type=sunos
16511   need_lib_prefix=no
16512   need_version=no
16513   case "$host_cpu" in
16514   ia64*)
16515     shrext='.so'
16516     hardcode_into_libs=yes
16517     dynamic_linker="$host_os dld.so"
16518     shlibpath_var=LD_LIBRARY_PATH
16519     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16520     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16521     soname_spec='${libname}${release}${shared_ext}$major'
16522     if test "X$HPUX_IA64_MODE" = X32; then
16523       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16524     else
16525       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16526     fi
16527     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16528     ;;
16529    hppa*64*)
16530      shrext='.sl'
16531      hardcode_into_libs=yes
16532      dynamic_linker="$host_os dld.sl"
16533      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16534      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16535      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16536      soname_spec='${libname}${release}${shared_ext}$major'
16537      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16538      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16539      ;;
16540    *)
16541     shrext='.sl'
16542     dynamic_linker="$host_os dld.sl"
16543     shlibpath_var=SHLIB_PATH
16544     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16545     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16546     soname_spec='${libname}${release}${shared_ext}$major'
16547     ;;
16548   esac
16549   # HP-UX runs *really* slowly unless shared libraries are mode 555.
16550   postinstall_cmds='chmod 555 $lib'
16551   ;;
16552
16553 irix5* | irix6* | nonstopux*)
16554   case $host_os in
16555     nonstopux*) version_type=nonstopux ;;
16556     *)
16557         if test "$lt_cv_prog_gnu_ld" = yes; then
16558                 version_type=linux
16559         else
16560                 version_type=irix
16561         fi ;;
16562   esac
16563   need_lib_prefix=no
16564   need_version=no
16565   soname_spec='${libname}${release}${shared_ext}$major'
16566   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
16567   case $host_os in
16568   irix5* | nonstopux*)
16569     libsuff= shlibsuff=
16570     ;;
16571   *)
16572     case $LD in # libtool.m4 will add one of these switches to LD
16573     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16574       libsuff= shlibsuff= libmagic=32-bit;;
16575     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16576       libsuff=32 shlibsuff=N32 libmagic=N32;;
16577     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16578       libsuff=64 shlibsuff=64 libmagic=64-bit;;
16579     *) libsuff= shlibsuff= libmagic=never-match;;
16580     esac
16581     ;;
16582   esac
16583   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16584   shlibpath_overrides_runpath=no
16585   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16586   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
16587   hardcode_into_libs=yes
16588   ;;
16589
16590 # No shared lib support for Linux oldld, aout, or coff.
16591 linux*oldld* | linux*aout* | linux*coff*)
16592   dynamic_linker=no
16593   ;;
16594
16595 # This must be Linux ELF.
16596 linux*)
16597   version_type=linux
16598   need_lib_prefix=no
16599   need_version=no
16600   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16601   soname_spec='${libname}${release}${shared_ext}$major'
16602   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16603   shlibpath_var=LD_LIBRARY_PATH
16604   shlibpath_overrides_runpath=no
16605   # This implies no fast_install, which is unacceptable.
16606   # Some rework will be needed to allow for fast_install
16607   # before this can be enabled.
16608   hardcode_into_libs=yes
16609
16610   # We used to test for /lib/ld.so.1 and disable shared libraries on
16611   # powerpc, because MkLinux only supported shared libraries with the
16612   # GNU dynamic linker.  Since this was broken with cross compilers,
16613   # most powerpc-linux boxes support dynamic linking these days and
16614   # people can always --disable-shared, the test was removed, and we
16615   # assume the GNU/Linux dynamic linker is in use.
16616   dynamic_linker='GNU/Linux ld.so'
16617   ;;
16618
16619 netbsd*)
16620   version_type=sunos
16621   need_lib_prefix=no
16622   need_version=no
16623   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16624     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16625     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16626     dynamic_linker='NetBSD (a.out) ld.so'
16627   else
16628     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
16629     soname_spec='${libname}${release}${shared_ext}$major'
16630     dynamic_linker='NetBSD ld.elf_so'
16631   fi
16632   shlibpath_var=LD_LIBRARY_PATH
16633   shlibpath_overrides_runpath=yes
16634   hardcode_into_libs=yes
16635   ;;
16636
16637 newsos6)
16638   version_type=linux
16639   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16640   shlibpath_var=LD_LIBRARY_PATH
16641   shlibpath_overrides_runpath=yes
16642   ;;
16643
16644 nto-qnx)
16645   version_type=linux
16646   need_lib_prefix=no
16647   need_version=no
16648   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16649   soname_spec='${libname}${release}${shared_ext}$major'
16650   shlibpath_var=LD_LIBRARY_PATH
16651   shlibpath_overrides_runpath=yes
16652   ;;
16653
16654 openbsd*)
16655   version_type=sunos
16656   need_lib_prefix=no
16657   need_version=no
16658   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16659   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16660   shlibpath_var=LD_LIBRARY_PATH
16661   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16662     case $host_os in
16663       openbsd2.[89] | openbsd2.[89].*)
16664         shlibpath_overrides_runpath=no
16665         ;;
16666       *)
16667         shlibpath_overrides_runpath=yes
16668         ;;
16669       esac
16670   else
16671     shlibpath_overrides_runpath=yes
16672   fi
16673   ;;
16674
16675 os2*)
16676   libname_spec='$name'
16677   shrext=".dll"
16678   need_lib_prefix=no
16679   library_names_spec='$libname${shared_ext} $libname.a'
16680   dynamic_linker='OS/2 ld.exe'
16681   shlibpath_var=LIBPATH
16682   ;;
16683
16684 osf3* | osf4* | osf5*)
16685   version_type=osf
16686   need_lib_prefix=no
16687   need_version=no
16688   soname_spec='${libname}${release}${shared_ext}$major'
16689   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16690   shlibpath_var=LD_LIBRARY_PATH
16691   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16692   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16693   ;;
16694
16695 sco3.2v5*)
16696   version_type=osf
16697   soname_spec='${libname}${release}${shared_ext}$major'
16698   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16699   shlibpath_var=LD_LIBRARY_PATH
16700   ;;
16701
16702 solaris*)
16703   version_type=linux
16704   need_lib_prefix=no
16705   need_version=no
16706   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16707   soname_spec='${libname}${release}${shared_ext}$major'
16708   shlibpath_var=LD_LIBRARY_PATH
16709   shlibpath_overrides_runpath=yes
16710   hardcode_into_libs=yes
16711   # ldd complains unless libraries are executable
16712   postinstall_cmds='chmod +x $lib'
16713   ;;
16714
16715 sunos4*)
16716   version_type=sunos
16717   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16718   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16719   shlibpath_var=LD_LIBRARY_PATH
16720   shlibpath_overrides_runpath=yes
16721   if test "$with_gnu_ld" = yes; then
16722     need_lib_prefix=no
16723   fi
16724   need_version=yes
16725   ;;
16726
16727 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
16728   version_type=linux
16729   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16730   soname_spec='${libname}${release}${shared_ext}$major'
16731   shlibpath_var=LD_LIBRARY_PATH
16732   case $host_vendor in
16733     sni)
16734       shlibpath_overrides_runpath=no
16735       need_lib_prefix=no
16736       export_dynamic_flag_spec='${wl}-Blargedynsym'
16737       runpath_var=LD_RUN_PATH
16738       ;;
16739     siemens)
16740       need_lib_prefix=no
16741       ;;
16742     motorola)
16743       need_lib_prefix=no
16744       need_version=no
16745       shlibpath_overrides_runpath=no
16746       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16747       ;;
16748   esac
16749   ;;
16750
16751 sysv4*MP*)
16752   if test -d /usr/nec ;then
16753     version_type=linux
16754     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16755     soname_spec='$libname${shared_ext}.$major'
16756     shlibpath_var=LD_LIBRARY_PATH
16757   fi
16758   ;;
16759
16760 uts4*)
16761   version_type=linux
16762   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16763   soname_spec='${libname}${release}${shared_ext}$major'
16764   shlibpath_var=LD_LIBRARY_PATH
16765   ;;
16766
16767 *)
16768   dynamic_linker=no
16769   ;;
16770 esac
16771 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
16772 echo "${ECHO_T}$dynamic_linker" >&6
16773 test "$dynamic_linker" = no && can_build_shared=no
16774
16775 if test "x$enable_dlopen" != xyes; then
16776   enable_dlopen=unknown
16777   enable_dlopen_self=unknown
16778   enable_dlopen_self_static=unknown
16779 else
16780   lt_cv_dlopen=no
16781   lt_cv_dlopen_libs=
16782
16783   case $host_os in
16784   beos*)
16785     lt_cv_dlopen="load_add_on"
16786     lt_cv_dlopen_libs=
16787     lt_cv_dlopen_self=yes
16788     ;;
16789
16790   mingw* | pw32*)
16791     lt_cv_dlopen="LoadLibrary"
16792     lt_cv_dlopen_libs=
16793    ;;
16794
16795   cygwin*)
16796     lt_cv_dlopen="dlopen"
16797     lt_cv_dlopen_libs=
16798    ;;
16799
16800   darwin*)
16801   # if libdl is installed we need to link against it
16802     echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
16803 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
16804 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
16805   echo $ECHO_N "(cached) $ECHO_C" >&6
16806 else
16807   ac_check_lib_save_LIBS=$LIBS
16808 LIBS="-ldl  $LIBS"
16809 cat >conftest.$ac_ext <<_ACEOF
16810 #line $LINENO "configure"
16811 /* confdefs.h.  */
16812 _ACEOF
16813 cat confdefs.h >>conftest.$ac_ext
16814 cat >>conftest.$ac_ext <<_ACEOF
16815 /* end confdefs.h.  */
16816
16817 /* Override any gcc2 internal prototype to avoid an error.  */
16818 #ifdef __cplusplus
16819 extern "C"
16820 #endif
16821 /* We use char because int might match the return type of a gcc2
16822    builtin and then its argument prototype would still apply.  */
16823 char dlopen ();
16824 int
16825 main ()
16826 {
16827 dlopen ();
16828   ;
16829   return 0;
16830 }
16831 _ACEOF
16832 rm -f conftest.$ac_objext conftest$ac_exeext
16833 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16834   (eval $ac_link) 2>&5
16835   ac_status=$?
16836   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16837   (exit $ac_status); } &&
16838          { ac_try='test -s conftest$ac_exeext'
16839   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16840   (eval $ac_try) 2>&5
16841   ac_status=$?
16842   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16843   (exit $ac_status); }; }; then
16844   ac_cv_lib_dl_dlopen=yes
16845 else
16846   echo "$as_me: failed program was:" >&5
16847 sed 's/^/| /' conftest.$ac_ext >&5
16848
16849 ac_cv_lib_dl_dlopen=no
16850 fi
16851 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16852 LIBS=$ac_check_lib_save_LIBS
16853 fi
16854 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
16855 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
16856 if test $ac_cv_lib_dl_dlopen = yes; then
16857   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
16858 else
16859
16860     lt_cv_dlopen="dyld"
16861     lt_cv_dlopen_libs=
16862     lt_cv_dlopen_self=yes
16863
16864 fi
16865
16866    ;;
16867
16868   *)
16869     echo "$as_me:$LINENO: checking for shl_load" >&5
16870 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
16871 if test "${ac_cv_func_shl_load+set}" = set; then
16872   echo $ECHO_N "(cached) $ECHO_C" >&6
16873 else
16874   cat >conftest.$ac_ext <<_ACEOF
16875 #line $LINENO "configure"
16876 /* confdefs.h.  */
16877 _ACEOF
16878 cat confdefs.h >>conftest.$ac_ext
16879 cat >>conftest.$ac_ext <<_ACEOF
16880 /* end confdefs.h.  */
16881 /* System header to define __stub macros and hopefully few prototypes,
16882     which can conflict with char shl_load (); below.
16883     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16884     <limits.h> exists even on freestanding compilers.  */
16885 #ifdef __STDC__
16886 # include <limits.h>
16887 #else
16888 # include <assert.h>
16889 #endif
16890 /* Override any gcc2 internal prototype to avoid an error.  */
16891 #ifdef __cplusplus
16892 extern "C"
16893 {
16894 #endif
16895 /* We use char because int might match the return type of a gcc2
16896    builtin and then its argument prototype would still apply.  */
16897 char shl_load ();
16898 /* The GNU C library defines this for functions which it implements
16899     to always fail with ENOSYS.  Some functions are actually named
16900     something starting with __ and the normal name is an alias.  */
16901 #if defined (__stub_shl_load) || defined (__stub___shl_load)
16902 choke me
16903 #else
16904 char (*f) () = shl_load;
16905 #endif
16906 #ifdef __cplusplus
16907 }
16908 #endif
16909
16910 int
16911 main ()
16912 {
16913 return f != shl_load;
16914   ;
16915   return 0;
16916 }
16917 _ACEOF
16918 rm -f conftest.$ac_objext conftest$ac_exeext
16919 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16920   (eval $ac_link) 2>&5
16921   ac_status=$?
16922   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16923   (exit $ac_status); } &&
16924          { ac_try='test -s conftest$ac_exeext'
16925   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16926   (eval $ac_try) 2>&5
16927   ac_status=$?
16928   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16929   (exit $ac_status); }; }; then
16930   ac_cv_func_shl_load=yes
16931 else
16932   echo "$as_me: failed program was:" >&5
16933 sed 's/^/| /' conftest.$ac_ext >&5
16934
16935 ac_cv_func_shl_load=no
16936 fi
16937 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16938 fi
16939 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
16940 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
16941 if test $ac_cv_func_shl_load = yes; then
16942   lt_cv_dlopen="shl_load"
16943 else
16944   echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
16945 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
16946 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
16947   echo $ECHO_N "(cached) $ECHO_C" >&6
16948 else
16949   ac_check_lib_save_LIBS=$LIBS
16950 LIBS="-ldld  $LIBS"
16951 cat >conftest.$ac_ext <<_ACEOF
16952 #line $LINENO "configure"
16953 /* confdefs.h.  */
16954 _ACEOF
16955 cat confdefs.h >>conftest.$ac_ext
16956 cat >>conftest.$ac_ext <<_ACEOF
16957 /* end confdefs.h.  */
16958
16959 /* Override any gcc2 internal prototype to avoid an error.  */
16960 #ifdef __cplusplus
16961 extern "C"
16962 #endif
16963 /* We use char because int might match the return type of a gcc2
16964    builtin and then its argument prototype would still apply.  */
16965 char shl_load ();
16966 int
16967 main ()
16968 {
16969 shl_load ();
16970   ;
16971   return 0;
16972 }
16973 _ACEOF
16974 rm -f conftest.$ac_objext conftest$ac_exeext
16975 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16976   (eval $ac_link) 2>&5
16977   ac_status=$?
16978   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16979   (exit $ac_status); } &&
16980          { ac_try='test -s conftest$ac_exeext'
16981   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16982   (eval $ac_try) 2>&5
16983   ac_status=$?
16984   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16985   (exit $ac_status); }; }; then
16986   ac_cv_lib_dld_shl_load=yes
16987 else
16988   echo "$as_me: failed program was:" >&5
16989 sed 's/^/| /' conftest.$ac_ext >&5
16990
16991 ac_cv_lib_dld_shl_load=no
16992 fi
16993 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16994 LIBS=$ac_check_lib_save_LIBS
16995 fi
16996 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
16997 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
16998 if test $ac_cv_lib_dld_shl_load = yes; then
16999   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
17000 else
17001   echo "$as_me:$LINENO: checking for dlopen" >&5
17002 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
17003 if test "${ac_cv_func_dlopen+set}" = set; then
17004   echo $ECHO_N "(cached) $ECHO_C" >&6
17005 else
17006   cat >conftest.$ac_ext <<_ACEOF
17007 #line $LINENO "configure"
17008 /* confdefs.h.  */
17009 _ACEOF
17010 cat confdefs.h >>conftest.$ac_ext
17011 cat >>conftest.$ac_ext <<_ACEOF
17012 /* end confdefs.h.  */
17013 /* System header to define __stub macros and hopefully few prototypes,
17014     which can conflict with char dlopen (); below.
17015     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17016     <limits.h> exists even on freestanding compilers.  */
17017 #ifdef __STDC__
17018 # include <limits.h>
17019 #else
17020 # include <assert.h>
17021 #endif
17022 /* Override any gcc2 internal prototype to avoid an error.  */
17023 #ifdef __cplusplus
17024 extern "C"
17025 {
17026 #endif
17027 /* We use char because int might match the return type of a gcc2
17028    builtin and then its argument prototype would still apply.  */
17029 char dlopen ();
17030 /* The GNU C library defines this for functions which it implements
17031     to always fail with ENOSYS.  Some functions are actually named
17032     something starting with __ and the normal name is an alias.  */
17033 #if defined (__stub_dlopen) || defined (__stub___dlopen)
17034 choke me
17035 #else
17036 char (*f) () = dlopen;
17037 #endif
17038 #ifdef __cplusplus
17039 }
17040 #endif
17041
17042 int
17043 main ()
17044 {
17045 return f != dlopen;
17046   ;
17047   return 0;
17048 }
17049 _ACEOF
17050 rm -f conftest.$ac_objext conftest$ac_exeext
17051 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17052   (eval $ac_link) 2>&5
17053   ac_status=$?
17054   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17055   (exit $ac_status); } &&
17056          { ac_try='test -s conftest$ac_exeext'
17057   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17058   (eval $ac_try) 2>&5
17059   ac_status=$?
17060   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17061   (exit $ac_status); }; }; then
17062   ac_cv_func_dlopen=yes
17063 else
17064   echo "$as_me: failed program was:" >&5
17065 sed 's/^/| /' conftest.$ac_ext >&5
17066
17067 ac_cv_func_dlopen=no
17068 fi
17069 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17070 fi
17071 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
17072 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
17073 if test $ac_cv_func_dlopen = yes; then
17074   lt_cv_dlopen="dlopen"
17075 else
17076   echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
17077 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
17078 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
17079   echo $ECHO_N "(cached) $ECHO_C" >&6
17080 else
17081   ac_check_lib_save_LIBS=$LIBS
17082 LIBS="-ldl  $LIBS"
17083 cat >conftest.$ac_ext <<_ACEOF
17084 #line $LINENO "configure"
17085 /* confdefs.h.  */
17086 _ACEOF
17087 cat confdefs.h >>conftest.$ac_ext
17088 cat >>conftest.$ac_ext <<_ACEOF
17089 /* end confdefs.h.  */
17090
17091 /* Override any gcc2 internal prototype to avoid an error.  */
17092 #ifdef __cplusplus
17093 extern "C"
17094 #endif
17095 /* We use char because int might match the return type of a gcc2
17096    builtin and then its argument prototype would still apply.  */
17097 char dlopen ();
17098 int
17099 main ()
17100 {
17101 dlopen ();
17102   ;
17103   return 0;
17104 }
17105 _ACEOF
17106 rm -f conftest.$ac_objext conftest$ac_exeext
17107 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17108   (eval $ac_link) 2>&5
17109   ac_status=$?
17110   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17111   (exit $ac_status); } &&
17112          { ac_try='test -s conftest$ac_exeext'
17113   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17114   (eval $ac_try) 2>&5
17115   ac_status=$?
17116   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17117   (exit $ac_status); }; }; then
17118   ac_cv_lib_dl_dlopen=yes
17119 else
17120   echo "$as_me: failed program was:" >&5
17121 sed 's/^/| /' conftest.$ac_ext >&5
17122
17123 ac_cv_lib_dl_dlopen=no
17124 fi
17125 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17126 LIBS=$ac_check_lib_save_LIBS
17127 fi
17128 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
17129 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
17130 if test $ac_cv_lib_dl_dlopen = yes; then
17131   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17132 else
17133   echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
17134 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
17135 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
17136   echo $ECHO_N "(cached) $ECHO_C" >&6
17137 else
17138   ac_check_lib_save_LIBS=$LIBS
17139 LIBS="-lsvld  $LIBS"
17140 cat >conftest.$ac_ext <<_ACEOF
17141 #line $LINENO "configure"
17142 /* confdefs.h.  */
17143 _ACEOF
17144 cat confdefs.h >>conftest.$ac_ext
17145 cat >>conftest.$ac_ext <<_ACEOF
17146 /* end confdefs.h.  */
17147
17148 /* Override any gcc2 internal prototype to avoid an error.  */
17149 #ifdef __cplusplus
17150 extern "C"
17151 #endif
17152 /* We use char because int might match the return type of a gcc2
17153    builtin and then its argument prototype would still apply.  */
17154 char dlopen ();
17155 int
17156 main ()
17157 {
17158 dlopen ();
17159   ;
17160   return 0;
17161 }
17162 _ACEOF
17163 rm -f conftest.$ac_objext conftest$ac_exeext
17164 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17165   (eval $ac_link) 2>&5
17166   ac_status=$?
17167   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17168   (exit $ac_status); } &&
17169          { ac_try='test -s conftest$ac_exeext'
17170   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17171   (eval $ac_try) 2>&5
17172   ac_status=$?
17173   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17174   (exit $ac_status); }; }; then
17175   ac_cv_lib_svld_dlopen=yes
17176 else
17177   echo "$as_me: failed program was:" >&5
17178 sed 's/^/| /' conftest.$ac_ext >&5
17179
17180 ac_cv_lib_svld_dlopen=no
17181 fi
17182 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17183 LIBS=$ac_check_lib_save_LIBS
17184 fi
17185 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
17186 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
17187 if test $ac_cv_lib_svld_dlopen = yes; then
17188   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
17189 else
17190   echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
17191 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
17192 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
17193   echo $ECHO_N "(cached) $ECHO_C" >&6
17194 else
17195   ac_check_lib_save_LIBS=$LIBS
17196 LIBS="-ldld  $LIBS"
17197 cat >conftest.$ac_ext <<_ACEOF
17198 #line $LINENO "configure"
17199 /* confdefs.h.  */
17200 _ACEOF
17201 cat confdefs.h >>conftest.$ac_ext
17202 cat >>conftest.$ac_ext <<_ACEOF
17203 /* end confdefs.h.  */
17204
17205 /* Override any gcc2 internal prototype to avoid an error.  */
17206 #ifdef __cplusplus
17207 extern "C"
17208 #endif
17209 /* We use char because int might match the return type of a gcc2
17210    builtin and then its argument prototype would still apply.  */
17211 char dld_link ();
17212 int
17213 main ()
17214 {
17215 dld_link ();
17216   ;
17217   return 0;
17218 }
17219 _ACEOF
17220 rm -f conftest.$ac_objext conftest$ac_exeext
17221 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17222   (eval $ac_link) 2>&5
17223   ac_status=$?
17224   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17225   (exit $ac_status); } &&
17226          { ac_try='test -s conftest$ac_exeext'
17227   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17228   (eval $ac_try) 2>&5
17229   ac_status=$?
17230   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17231   (exit $ac_status); }; }; then
17232   ac_cv_lib_dld_dld_link=yes
17233 else
17234   echo "$as_me: failed program was:" >&5
17235 sed 's/^/| /' conftest.$ac_ext >&5
17236
17237 ac_cv_lib_dld_dld_link=no
17238 fi
17239 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17240 LIBS=$ac_check_lib_save_LIBS
17241 fi
17242 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
17243 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
17244 if test $ac_cv_lib_dld_dld_link = yes; then
17245   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
17246 fi
17247
17248
17249 fi
17250
17251
17252 fi
17253
17254
17255 fi
17256
17257
17258 fi
17259
17260
17261 fi
17262
17263     ;;
17264   esac
17265
17266   if test "x$lt_cv_dlopen" != xno; then
17267     enable_dlopen=yes
17268   else
17269     enable_dlopen=no
17270   fi
17271
17272   case $lt_cv_dlopen in
17273   dlopen)
17274     save_CPPFLAGS="$CPPFLAGS"
17275     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
17276
17277     save_LDFLAGS="$LDFLAGS"
17278     eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
17279
17280     save_LIBS="$LIBS"
17281     LIBS="$lt_cv_dlopen_libs $LIBS"
17282
17283     echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
17284 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
17285 if test "${lt_cv_dlopen_self+set}" = set; then
17286   echo $ECHO_N "(cached) $ECHO_C" >&6
17287 else
17288           if test "$cross_compiling" = yes; then :
17289   lt_cv_dlopen_self=cross
17290 else
17291   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17292   lt_status=$lt_dlunknown
17293   cat > conftest.$ac_ext <<EOF
17294 #line 17294 "configure"
17295 #include "confdefs.h"
17296
17297 #if HAVE_DLFCN_H
17298 #include <dlfcn.h>
17299 #endif
17300
17301 #include <stdio.h>
17302
17303 #ifdef RTLD_GLOBAL
17304 #  define LT_DLGLOBAL           RTLD_GLOBAL
17305 #else
17306 #  ifdef DL_GLOBAL
17307 #    define LT_DLGLOBAL         DL_GLOBAL
17308 #  else
17309 #    define LT_DLGLOBAL         0
17310 #  endif
17311 #endif
17312
17313 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17314    find out it does not work in some platform. */
17315 #ifndef LT_DLLAZY_OR_NOW
17316 #  ifdef RTLD_LAZY
17317 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
17318 #  else
17319 #    ifdef DL_LAZY
17320 #      define LT_DLLAZY_OR_NOW          DL_LAZY
17321 #    else
17322 #      ifdef RTLD_NOW
17323 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
17324 #      else
17325 #        ifdef DL_NOW
17326 #          define LT_DLLAZY_OR_NOW      DL_NOW
17327 #        else
17328 #          define LT_DLLAZY_OR_NOW      0
17329 #        endif
17330 #      endif
17331 #    endif
17332 #  endif
17333 #endif
17334
17335 #ifdef __cplusplus
17336 extern "C" void exit (int);
17337 #endif
17338
17339 void fnord() { int i=42;}
17340 int main ()
17341 {
17342   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17343   int status = $lt_dlunknown;
17344
17345   if (self)
17346     {
17347       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
17348       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17349       /* dlclose (self); */
17350     }
17351
17352     exit (status);
17353 }
17354 EOF
17355   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17356   (eval $ac_link) 2>&5
17357   ac_status=$?
17358   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17359   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
17360     (./conftest; exit; ) 2>/dev/null
17361     lt_status=$?
17362     case x$lt_status in
17363       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
17364       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
17365       x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
17366     esac
17367   else :
17368     # compilation failed
17369     lt_cv_dlopen_self=no
17370   fi
17371 fi
17372 rm -fr conftest*
17373
17374
17375 fi
17376 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
17377 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
17378
17379     if test "x$lt_cv_dlopen_self" = xyes; then
17380       LDFLAGS="$LDFLAGS $link_static_flag"
17381       echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
17382 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
17383 if test "${lt_cv_dlopen_self_static+set}" = set; then
17384   echo $ECHO_N "(cached) $ECHO_C" >&6
17385 else
17386           if test "$cross_compiling" = yes; then :
17387   lt_cv_dlopen_self_static=cross
17388 else
17389   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17390   lt_status=$lt_dlunknown
17391   cat > conftest.$ac_ext <<EOF
17392 #line 17392 "configure"
17393 #include "confdefs.h"
17394
17395 #if HAVE_DLFCN_H
17396 #include <dlfcn.h>
17397 #endif
17398
17399 #include <stdio.h>
17400
17401 #ifdef RTLD_GLOBAL
17402 #  define LT_DLGLOBAL           RTLD_GLOBAL
17403 #else
17404 #  ifdef DL_GLOBAL
17405 #    define LT_DLGLOBAL         DL_GLOBAL
17406 #  else
17407 #    define LT_DLGLOBAL         0
17408 #  endif
17409 #endif
17410
17411 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17412    find out it does not work in some platform. */
17413 #ifndef LT_DLLAZY_OR_NOW
17414 #  ifdef RTLD_LAZY
17415 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
17416 #  else
17417 #    ifdef DL_LAZY
17418 #      define LT_DLLAZY_OR_NOW          DL_LAZY
17419 #    else
17420 #      ifdef RTLD_NOW
17421 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
17422 #      else
17423 #        ifdef DL_NOW
17424 #          define LT_DLLAZY_OR_NOW      DL_NOW
17425 #        else
17426 #          define LT_DLLAZY_OR_NOW      0
17427 #        endif
17428 #      endif
17429 #    endif
17430 #  endif
17431 #endif
17432
17433 #ifdef __cplusplus
17434 extern "C" void exit (int);
17435 #endif
17436
17437 void fnord() { int i=42;}
17438 int main ()
17439 {
17440   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17441   int status = $lt_dlunknown;
17442
17443   if (self)
17444     {
17445       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
17446       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17447       /* dlclose (self); */
17448     }
17449
17450     exit (status);
17451 }
17452 EOF
17453   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17454   (eval $ac_link) 2>&5
17455   ac_status=$?
17456   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17457   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
17458     (./conftest; exit; ) 2>/dev/null
17459     lt_status=$?
17460     case x$lt_status in
17461       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
17462       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
17463       x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
17464     esac
17465   else :
17466     # compilation failed
17467     lt_cv_dlopen_self_static=no
17468   fi
17469 fi
17470 rm -fr conftest*
17471
17472
17473 fi
17474 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
17475 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
17476     fi
17477
17478     CPPFLAGS="$save_CPPFLAGS"
17479     LDFLAGS="$save_LDFLAGS"
17480     LIBS="$save_LIBS"
17481     ;;
17482   esac
17483
17484   case $lt_cv_dlopen_self in
17485   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
17486   *) enable_dlopen_self=unknown ;;
17487   esac
17488
17489   case $lt_cv_dlopen_self_static in
17490   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
17491   *) enable_dlopen_self_static=unknown ;;
17492   esac
17493 fi
17494
17495
17496 # The else clause should only fire when bootstrapping the
17497 # libtool distribution, otherwise you forgot to ship ltmain.sh
17498 # with your package, and you will get complaints that there are
17499 # no rules to generate ltmain.sh.
17500 if test -f "$ltmain"; then
17501   # See if we are running on zsh, and set the options which allow our commands through
17502   # without removal of \ escapes.
17503   if test -n "${ZSH_VERSION+set}" ; then
17504     setopt NO_GLOB_SUBST
17505   fi
17506   # Now quote all the things that may contain metacharacters while being
17507   # careful not to overquote the AC_SUBSTed values.  We take copies of the
17508   # variables and quote the copies for generation of the libtool script.
17509   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \
17510     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
17511     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
17512     deplibs_check_method reload_flag reload_cmds need_locks \
17513     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
17514     lt_cv_sys_global_symbol_to_c_name_address \
17515     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
17516     old_postinstall_cmds old_postuninstall_cmds \
17517     compiler_GCJ \
17518     CC_GCJ \
17519     LD_GCJ \
17520     lt_prog_compiler_wl_GCJ \
17521     lt_prog_compiler_pic_GCJ \
17522     lt_prog_compiler_static_GCJ \
17523     lt_prog_compiler_no_builtin_flag_GCJ \
17524     export_dynamic_flag_spec_GCJ \
17525     thread_safe_flag_spec_GCJ \
17526     whole_archive_flag_spec_GCJ \
17527     enable_shared_with_static_runtimes_GCJ \
17528     old_archive_cmds_GCJ \
17529     old_archive_from_new_cmds_GCJ \
17530     predep_objects_GCJ \
17531     postdep_objects_GCJ \
17532     predeps_GCJ \
17533     postdeps_GCJ \
17534     compiler_lib_search_path_GCJ \
17535     archive_cmds_GCJ \
17536     archive_expsym_cmds_GCJ \
17537     postinstall_cmds_GCJ \
17538     postuninstall_cmds_GCJ \
17539     old_archive_from_expsyms_cmds_GCJ \
17540     allow_undefined_flag_GCJ \
17541     no_undefined_flag_GCJ \
17542     export_symbols_cmds_GCJ \
17543     hardcode_libdir_flag_spec_GCJ \
17544     hardcode_libdir_flag_spec_ld_GCJ \
17545     hardcode_libdir_separator_GCJ \
17546     hardcode_automatic_GCJ \
17547     module_cmds_GCJ \
17548     module_expsym_cmds_GCJ \
17549     lt_cv_prog_compiler_c_o_GCJ \
17550     exclude_expsyms_GCJ \
17551     include_expsyms_GCJ; do
17552
17553     case $var in
17554     old_archive_cmds_GCJ | \
17555     old_archive_from_new_cmds_GCJ | \
17556     archive_cmds_GCJ | \
17557     archive_expsym_cmds_GCJ | \
17558     module_cmds_GCJ | \
17559     module_expsym_cmds_GCJ | \
17560     old_archive_from_expsyms_cmds_GCJ | \
17561     export_symbols_cmds_GCJ | \
17562     extract_expsyms_cmds | reload_cmds | finish_cmds | \
17563     postinstall_cmds | postuninstall_cmds | \
17564     old_postinstall_cmds | old_postuninstall_cmds | \
17565     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
17566       # Double-quote double-evaled strings.
17567       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
17568       ;;
17569     *)
17570       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
17571       ;;
17572     esac
17573   done
17574
17575   case $lt_echo in
17576   *'\$0 --fallback-echo"')
17577     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
17578     ;;
17579   esac
17580
17581 cfgfile="$ofile"
17582
17583   cat <<__EOF__ >> "$cfgfile"
17584 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
17585
17586 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17587
17588 # Shell to use when invoking shell scripts.
17589 SHELL=$lt_SHELL
17590
17591 # Whether or not to build shared libraries.
17592 build_libtool_libs=$enable_shared
17593
17594 # Whether or not to build static libraries.
17595 build_old_libs=$enable_static
17596
17597 # Whether or not to add -lc for building shared libraries.
17598 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
17599
17600 # Whether or not to disallow shared libs when runtime libs are static
17601 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
17602
17603 # Whether or not to optimize for fast installation.
17604 fast_install=$enable_fast_install
17605
17606 # The host system.
17607 host_alias=$host_alias
17608 host=$host
17609
17610 # An echo program that does not interpret backslashes.
17611 echo=$lt_echo
17612
17613 # The archiver.
17614 AR=$lt_AR
17615 AR_FLAGS=$lt_AR_FLAGS
17616
17617 # A C compiler.
17618 LTCC=$lt_LTCC
17619
17620 # A language-specific compiler.
17621 CC=$lt_compiler_GCJ
17622
17623 # Is the compiler the GNU C compiler?
17624 with_gcc=$GCC_GCJ
17625
17626 # An ERE matcher.
17627 EGREP=$lt_EGREP
17628
17629 # The linker used to build libraries.
17630 LD=$lt_LD_GCJ
17631
17632 # Whether we need hard or soft links.
17633 LN_S=$lt_LN_S
17634
17635 # A BSD-compatible nm program.
17636 NM=$lt_NM
17637
17638 # A symbol stripping program
17639 STRIP=$STRIP
17640
17641 # Used to examine libraries when file_magic_cmd begins "file"
17642 MAGIC_CMD=$MAGIC_CMD
17643
17644 # Used on cygwin: DLL creation program.
17645 DLLTOOL="$DLLTOOL"
17646
17647 # Used on cygwin: object dumper.
17648 OBJDUMP="$OBJDUMP"
17649
17650 # Used on cygwin: assembler.
17651 AS="$AS"
17652
17653 # The name of the directory that contains temporary libtool files.
17654 objdir=$objdir
17655
17656 # How to create reloadable object files.
17657 reload_flag=$lt_reload_flag
17658 reload_cmds=$lt_reload_cmds
17659
17660 # How to pass a linker flag through the compiler.
17661 wl=$lt_lt_prog_compiler_wl_GCJ
17662
17663 # Object file suffix (normally "o").
17664 objext="$ac_objext"
17665
17666 # Old archive suffix (normally "a").
17667 libext="$libext"
17668
17669 # Shared library suffix (normally ".so").
17670 shrext='$shrext'
17671
17672 # Executable file suffix (normally "").
17673 exeext="$exeext"
17674
17675 # Additional compiler flags for building library objects.
17676 pic_flag=$lt_lt_prog_compiler_pic_GCJ
17677 pic_mode=$pic_mode
17678
17679 # What is the maximum length of a command?
17680 max_cmd_len=$lt_cv_sys_max_cmd_len
17681
17682 # Does compiler simultaneously support -c and -o options?
17683 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
17684
17685 # Must we lock files when doing compilation ?
17686 need_locks=$lt_need_locks
17687
17688 # Do we need the lib prefix for modules?
17689 need_lib_prefix=$need_lib_prefix
17690
17691 # Do we need a version for libraries?
17692 need_version=$need_version
17693
17694 # Whether dlopen is supported.
17695 dlopen_support=$enable_dlopen
17696
17697 # Whether dlopen of programs is supported.
17698 dlopen_self=$enable_dlopen_self
17699
17700 # Whether dlopen of statically linked programs is supported.
17701 dlopen_self_static=$enable_dlopen_self_static
17702
17703 # Compiler flag to prevent dynamic linking.
17704 link_static_flag=$lt_lt_prog_compiler_static_GCJ
17705
17706 # Compiler flag to turn off builtin functions.
17707 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
17708
17709 # Compiler flag to allow reflexive dlopens.
17710 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
17711
17712 # Compiler flag to generate shared objects directly from archives.
17713 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
17714
17715 # Compiler flag to generate thread-safe objects.
17716 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
17717
17718 # Library versioning type.
17719 version_type=$version_type
17720
17721 # Format of library name prefix.
17722 libname_spec=$lt_libname_spec
17723
17724 # List of archive names.  First name is the real one, the rest are links.
17725 # The last name is the one that the linker finds with -lNAME.
17726 library_names_spec=$lt_library_names_spec
17727
17728 # The coded name of the library, if different from the real name.
17729 soname_spec=$lt_soname_spec
17730
17731 # Commands used to build and install an old-style archive.
17732 RANLIB=$lt_RANLIB
17733 old_archive_cmds=$lt_old_archive_cmds_GCJ
17734 old_postinstall_cmds=$lt_old_postinstall_cmds
17735 old_postuninstall_cmds=$lt_old_postuninstall_cmds
17736
17737 # Create an old-style archive from a shared archive.
17738 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
17739
17740 # Create a temporary old-style archive to link instead of a shared archive.
17741 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
17742
17743 # Commands used to build and install a shared archive.
17744 archive_cmds=$lt_archive_cmds_GCJ
17745 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
17746 postinstall_cmds=$lt_postinstall_cmds
17747 postuninstall_cmds=$lt_postuninstall_cmds
17748
17749 # Commands used to build a loadable module (assumed same as above if empty)
17750 module_cmds=$lt_module_cmds_GCJ
17751 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
17752
17753 # Commands to strip libraries.
17754 old_striplib=$lt_old_striplib
17755 striplib=$lt_striplib
17756
17757 # Dependencies to place before the objects being linked to create a
17758 # shared library.
17759 predep_objects=$lt_predep_objects_GCJ
17760
17761 # Dependencies to place after the objects being linked to create a
17762 # shared library.
17763 postdep_objects=$lt_postdep_objects_GCJ
17764
17765 # Dependencies to place before the objects being linked to create a
17766 # shared library.
17767 predeps=$lt_predeps_GCJ
17768
17769 # Dependencies to place after the objects being linked to create a
17770 # shared library.
17771 postdeps=$lt_postdeps_GCJ
17772
17773 # The library search path used internally by the compiler when linking
17774 # a shared library.
17775 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
17776
17777 # Method to check whether dependent libraries are shared objects.
17778 deplibs_check_method=$lt_deplibs_check_method
17779
17780 # Command to use when deplibs_check_method == file_magic.
17781 file_magic_cmd=$lt_file_magic_cmd
17782
17783 # Flag that allows shared libraries with undefined symbols to be built.
17784 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
17785
17786 # Flag that forces no undefined symbols.
17787 no_undefined_flag=$lt_no_undefined_flag_GCJ
17788
17789 # Commands used to finish a libtool library installation in a directory.
17790 finish_cmds=$lt_finish_cmds
17791
17792 # Same as above, but a single script fragment to be evaled but not shown.
17793 finish_eval=$lt_finish_eval
17794
17795 # Take the output of nm and produce a listing of raw symbols and C names.
17796 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
17797
17798 # Transform the output of nm in a proper C declaration
17799 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
17800
17801 # Transform the output of nm in a C name address pair
17802 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
17803
17804 # This is the shared library runtime path variable.
17805 runpath_var=$runpath_var
17806
17807 # This is the shared library path variable.
17808 shlibpath_var=$shlibpath_var
17809
17810 # Is shlibpath searched before the hard-coded library search path?
17811 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
17812
17813 # How to hardcode a shared library path into an executable.
17814 hardcode_action=$hardcode_action_GCJ
17815
17816 # Whether we should hardcode library paths into libraries.
17817 hardcode_into_libs=$hardcode_into_libs
17818
17819 # Flag to hardcode \$libdir into a binary during linking.
17820 # This must work even if \$libdir does not exist.
17821 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
17822
17823 # If ld is used when linking, flag to hardcode \$libdir into
17824 # a binary during linking. This must work even if \$libdir does
17825 # not exist.
17826 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
17827
17828 # Whether we need a single -rpath flag with a separated argument.
17829 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
17830
17831 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
17832 # resulting binary.
17833 hardcode_direct=$hardcode_direct_GCJ
17834
17835 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
17836 # resulting binary.
17837 hardcode_minus_L=$hardcode_minus_L_GCJ
17838
17839 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
17840 # the resulting binary.
17841 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
17842
17843 # Set to yes if building a shared library automatically hardcodes DIR into the library
17844 # and all subsequent libraries and executables linked against it.
17845 hardcode_automatic=$hardcode_automatic_GCJ
17846
17847 # Variables whose values should be saved in libtool wrapper scripts and
17848 # restored at relink time.
17849 variables_saved_for_relink="$variables_saved_for_relink"
17850
17851 # Whether libtool must link a program against all its dependency libraries.
17852 link_all_deplibs=$link_all_deplibs_GCJ
17853
17854 # Compile-time system search path for libraries
17855 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
17856
17857 # Run-time system search path for libraries
17858 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
17859
17860 # Fix the shell variable \$srcfile for the compiler.
17861 fix_srcfile_path="$fix_srcfile_path_GCJ"
17862
17863 # Set to yes if exported symbols are required.
17864 always_export_symbols=$always_export_symbols_GCJ
17865
17866 # The commands to list exported symbols.
17867 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
17868
17869 # The commands to extract the exported symbol list from a shared archive.
17870 extract_expsyms_cmds=$lt_extract_expsyms_cmds
17871
17872 # Symbols that should not be listed in the preloaded symbols.
17873 exclude_expsyms=$lt_exclude_expsyms_GCJ
17874
17875 # Symbols that must always be exported.
17876 include_expsyms=$lt_include_expsyms_GCJ
17877
17878 # ### END LIBTOOL TAG CONFIG: $tagname
17879
17880 __EOF__
17881
17882
17883 else
17884   # If there is no Makefile yet, we rely on a make rule to execute
17885   # `config.status --recheck' to rerun these tests and create the
17886   # libtool script then.
17887   test -f Makefile && make "$ltmain"
17888 fi
17889
17890
17891 ac_ext=c
17892 ac_cpp='$CPP $CPPFLAGS'
17893 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17894 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17895 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17896
17897 CC="$lt_save_CC"
17898
17899         else
17900           tagname=""
17901         fi
17902         ;;
17903
17904       RC)
17905
17906
17907
17908 # Source file extension for RC test sources.
17909 ac_ext=rc
17910
17911 # Object file extension for compiled RC test sources.
17912 objext=o
17913 objext_RC=$objext
17914
17915 # Code to be used in simple compile tests
17916 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
17917
17918 # Code to be used in simple link tests
17919 lt_simple_link_test_code="$lt_simple_compile_test_code"
17920
17921 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
17922
17923 # If no C compiler was specified, use CC.
17924 LTCC=${LTCC-"$CC"}
17925
17926 # Allow CC to be a program name with arguments.
17927 compiler=$CC
17928
17929
17930 # Allow CC to be a program name with arguments.
17931 lt_save_CC="$CC"
17932 CC=${RC-"windres"}
17933 compiler=$CC
17934 compiler_RC=$CC
17935 lt_cv_prog_compiler_c_o_RC=yes
17936
17937 # The else clause should only fire when bootstrapping the
17938 # libtool distribution, otherwise you forgot to ship ltmain.sh
17939 # with your package, and you will get complaints that there are
17940 # no rules to generate ltmain.sh.
17941 if test -f "$ltmain"; then
17942   # See if we are running on zsh, and set the options which allow our commands through
17943   # without removal of \ escapes.
17944   if test -n "${ZSH_VERSION+set}" ; then
17945     setopt NO_GLOB_SUBST
17946   fi
17947   # Now quote all the things that may contain metacharacters while being
17948   # careful not to overquote the AC_SUBSTed values.  We take copies of the
17949   # variables and quote the copies for generation of the libtool script.
17950   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \
17951     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
17952     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
17953     deplibs_check_method reload_flag reload_cmds need_locks \
17954     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
17955     lt_cv_sys_global_symbol_to_c_name_address \
17956     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
17957     old_postinstall_cmds old_postuninstall_cmds \
17958     compiler_RC \
17959     CC_RC \
17960     LD_RC \
17961     lt_prog_compiler_wl_RC \
17962     lt_prog_compiler_pic_RC \
17963     lt_prog_compiler_static_RC \
17964     lt_prog_compiler_no_builtin_flag_RC \
17965     export_dynamic_flag_spec_RC \
17966     thread_safe_flag_spec_RC \
17967     whole_archive_flag_spec_RC \
17968     enable_shared_with_static_runtimes_RC \
17969     old_archive_cmds_RC \
17970     old_archive_from_new_cmds_RC \
17971     predep_objects_RC \
17972     postdep_objects_RC \
17973     predeps_RC \
17974     postdeps_RC \
17975     compiler_lib_search_path_RC \
17976     archive_cmds_RC \
17977     archive_expsym_cmds_RC \
17978     postinstall_cmds_RC \
17979     postuninstall_cmds_RC \
17980     old_archive_from_expsyms_cmds_RC \
17981     allow_undefined_flag_RC \
17982     no_undefined_flag_RC \
17983     export_symbols_cmds_RC \
17984     hardcode_libdir_flag_spec_RC \
17985     hardcode_libdir_flag_spec_ld_RC \
17986     hardcode_libdir_separator_RC \
17987     hardcode_automatic_RC \
17988     module_cmds_RC \
17989     module_expsym_cmds_RC \
17990     lt_cv_prog_compiler_c_o_RC \
17991     exclude_expsyms_RC \
17992     include_expsyms_RC; do
17993
17994     case $var in
17995     old_archive_cmds_RC | \
17996     old_archive_from_new_cmds_RC | \
17997     archive_cmds_RC | \
17998     archive_expsym_cmds_RC | \
17999     module_cmds_RC | \
18000     module_expsym_cmds_RC | \
18001     old_archive_from_expsyms_cmds_RC | \
18002     export_symbols_cmds_RC | \
18003     extract_expsyms_cmds | reload_cmds | finish_cmds | \
18004     postinstall_cmds | postuninstall_cmds | \
18005     old_postinstall_cmds | old_postuninstall_cmds | \
18006     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18007       # Double-quote double-evaled strings.
18008       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18009       ;;
18010     *)
18011       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18012       ;;
18013     esac
18014   done
18015
18016   case $lt_echo in
18017   *'\$0 --fallback-echo"')
18018     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18019     ;;
18020   esac
18021
18022 cfgfile="$ofile"
18023
18024   cat <<__EOF__ >> "$cfgfile"
18025 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
18026
18027 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18028
18029 # Shell to use when invoking shell scripts.
18030 SHELL=$lt_SHELL
18031
18032 # Whether or not to build shared libraries.
18033 build_libtool_libs=$enable_shared
18034
18035 # Whether or not to build static libraries.
18036 build_old_libs=$enable_static
18037
18038 # Whether or not to add -lc for building shared libraries.
18039 build_libtool_need_lc=$archive_cmds_need_lc_RC
18040
18041 # Whether or not to disallow shared libs when runtime libs are static
18042 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
18043
18044 # Whether or not to optimize for fast installation.
18045 fast_install=$enable_fast_install
18046
18047 # The host system.
18048 host_alias=$host_alias
18049 host=$host
18050
18051 # An echo program that does not interpret backslashes.
18052 echo=$lt_echo
18053
18054 # The archiver.
18055 AR=$lt_AR
18056 AR_FLAGS=$lt_AR_FLAGS
18057
18058 # A C compiler.
18059 LTCC=$lt_LTCC
18060
18061 # A language-specific compiler.
18062 CC=$lt_compiler_RC
18063
18064 # Is the compiler the GNU C compiler?
18065 with_gcc=$GCC_RC
18066
18067 # An ERE matcher.
18068 EGREP=$lt_EGREP
18069
18070 # The linker used to build libraries.
18071 LD=$lt_LD_RC
18072
18073 # Whether we need hard or soft links.
18074 LN_S=$lt_LN_S
18075
18076 # A BSD-compatible nm program.
18077 NM=$lt_NM
18078
18079 # A symbol stripping program
18080 STRIP=$STRIP
18081
18082 # Used to examine libraries when file_magic_cmd begins "file"
18083 MAGIC_CMD=$MAGIC_CMD
18084
18085 # Used on cygwin: DLL creation program.
18086 DLLTOOL="$DLLTOOL"
18087
18088 # Used on cygwin: object dumper.
18089 OBJDUMP="$OBJDUMP"
18090
18091 # Used on cygwin: assembler.
18092 AS="$AS"
18093
18094 # The name of the directory that contains temporary libtool files.
18095 objdir=$objdir
18096
18097 # How to create reloadable object files.
18098 reload_flag=$lt_reload_flag
18099 reload_cmds=$lt_reload_cmds
18100
18101 # How to pass a linker flag through the compiler.
18102 wl=$lt_lt_prog_compiler_wl_RC
18103
18104 # Object file suffix (normally "o").
18105 objext="$ac_objext"
18106
18107 # Old archive suffix (normally "a").
18108 libext="$libext"
18109
18110 # Shared library suffix (normally ".so").
18111 shrext='$shrext'
18112
18113 # Executable file suffix (normally "").
18114 exeext="$exeext"
18115
18116 # Additional compiler flags for building library objects.
18117 pic_flag=$lt_lt_prog_compiler_pic_RC
18118 pic_mode=$pic_mode
18119
18120 # What is the maximum length of a command?
18121 max_cmd_len=$lt_cv_sys_max_cmd_len
18122
18123 # Does compiler simultaneously support -c and -o options?
18124 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
18125
18126 # Must we lock files when doing compilation ?
18127 need_locks=$lt_need_locks
18128
18129 # Do we need the lib prefix for modules?
18130 need_lib_prefix=$need_lib_prefix
18131
18132 # Do we need a version for libraries?
18133 need_version=$need_version
18134
18135 # Whether dlopen is supported.
18136 dlopen_support=$enable_dlopen
18137
18138 # Whether dlopen of programs is supported.
18139 dlopen_self=$enable_dlopen_self
18140
18141 # Whether dlopen of statically linked programs is supported.
18142 dlopen_self_static=$enable_dlopen_self_static
18143
18144 # Compiler flag to prevent dynamic linking.
18145 link_static_flag=$lt_lt_prog_compiler_static_RC
18146
18147 # Compiler flag to turn off builtin functions.
18148 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
18149
18150 # Compiler flag to allow reflexive dlopens.
18151 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
18152
18153 # Compiler flag to generate shared objects directly from archives.
18154 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
18155
18156 # Compiler flag to generate thread-safe objects.
18157 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
18158
18159 # Library versioning type.
18160 version_type=$version_type
18161
18162 # Format of library name prefix.
18163 libname_spec=$lt_libname_spec
18164
18165 # List of archive names.  First name is the real one, the rest are links.
18166 # The last name is the one that the linker finds with -lNAME.
18167 library_names_spec=$lt_library_names_spec
18168
18169 # The coded name of the library, if different from the real name.
18170 soname_spec=$lt_soname_spec
18171
18172 # Commands used to build and install an old-style archive.
18173 RANLIB=$lt_RANLIB
18174 old_archive_cmds=$lt_old_archive_cmds_RC
18175 old_postinstall_cmds=$lt_old_postinstall_cmds
18176 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18177
18178 # Create an old-style archive from a shared archive.
18179 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
18180
18181 # Create a temporary old-style archive to link instead of a shared archive.
18182 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
18183
18184 # Commands used to build and install a shared archive.
18185 archive_cmds=$lt_archive_cmds_RC
18186 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
18187 postinstall_cmds=$lt_postinstall_cmds
18188 postuninstall_cmds=$lt_postuninstall_cmds
18189
18190 # Commands used to build a loadable module (assumed same as above if empty)
18191 module_cmds=$lt_module_cmds_RC
18192 module_expsym_cmds=$lt_module_expsym_cmds_RC
18193
18194 # Commands to strip libraries.
18195 old_striplib=$lt_old_striplib
18196 striplib=$lt_striplib
18197
18198 # Dependencies to place before the objects being linked to create a
18199 # shared library.
18200 predep_objects=$lt_predep_objects_RC
18201
18202 # Dependencies to place after the objects being linked to create a
18203 # shared library.
18204 postdep_objects=$lt_postdep_objects_RC
18205
18206 # Dependencies to place before the objects being linked to create a
18207 # shared library.
18208 predeps=$lt_predeps_RC
18209
18210 # Dependencies to place after the objects being linked to create a
18211 # shared library.
18212 postdeps=$lt_postdeps_RC
18213
18214 # The library search path used internally by the compiler when linking
18215 # a shared library.
18216 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
18217
18218 # Method to check whether dependent libraries are shared objects.
18219 deplibs_check_method=$lt_deplibs_check_method
18220
18221 # Command to use when deplibs_check_method == file_magic.
18222 file_magic_cmd=$lt_file_magic_cmd
18223
18224 # Flag that allows shared libraries with undefined symbols to be built.
18225 allow_undefined_flag=$lt_allow_undefined_flag_RC
18226
18227 # Flag that forces no undefined symbols.
18228 no_undefined_flag=$lt_no_undefined_flag_RC
18229
18230 # Commands used to finish a libtool library installation in a directory.
18231 finish_cmds=$lt_finish_cmds
18232
18233 # Same as above, but a single script fragment to be evaled but not shown.
18234 finish_eval=$lt_finish_eval
18235
18236 # Take the output of nm and produce a listing of raw symbols and C names.
18237 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18238
18239 # Transform the output of nm in a proper C declaration
18240 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18241
18242 # Transform the output of nm in a C name address pair
18243 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18244
18245 # This is the shared library runtime path variable.
18246 runpath_var=$runpath_var
18247
18248 # This is the shared library path variable.
18249 shlibpath_var=$shlibpath_var
18250
18251 # Is shlibpath searched before the hard-coded library search path?
18252 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18253
18254 # How to hardcode a shared library path into an executable.
18255 hardcode_action=$hardcode_action_RC
18256
18257 # Whether we should hardcode library paths into libraries.
18258 hardcode_into_libs=$hardcode_into_libs
18259
18260 # Flag to hardcode \$libdir into a binary during linking.
18261 # This must work even if \$libdir does not exist.
18262 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
18263
18264 # If ld is used when linking, flag to hardcode \$libdir into
18265 # a binary during linking. This must work even if \$libdir does
18266 # not exist.
18267 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
18268
18269 # Whether we need a single -rpath flag with a separated argument.
18270 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
18271
18272 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18273 # resulting binary.
18274 hardcode_direct=$hardcode_direct_RC
18275
18276 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18277 # resulting binary.
18278 hardcode_minus_L=$hardcode_minus_L_RC
18279
18280 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18281 # the resulting binary.
18282 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
18283
18284 # Set to yes if building a shared library automatically hardcodes DIR into the library
18285 # and all subsequent libraries and executables linked against it.
18286 hardcode_automatic=$hardcode_automatic_RC
18287
18288 # Variables whose values should be saved in libtool wrapper scripts and
18289 # restored at relink time.
18290 variables_saved_for_relink="$variables_saved_for_relink"
18291
18292 # Whether libtool must link a program against all its dependency libraries.
18293 link_all_deplibs=$link_all_deplibs_RC
18294
18295 # Compile-time system search path for libraries
18296 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18297
18298 # Run-time system search path for libraries
18299 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18300
18301 # Fix the shell variable \$srcfile for the compiler.
18302 fix_srcfile_path="$fix_srcfile_path_RC"
18303
18304 # Set to yes if exported symbols are required.
18305 always_export_symbols=$always_export_symbols_RC
18306
18307 # The commands to list exported symbols.
18308 export_symbols_cmds=$lt_export_symbols_cmds_RC
18309
18310 # The commands to extract the exported symbol list from a shared archive.
18311 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18312
18313 # Symbols that should not be listed in the preloaded symbols.
18314 exclude_expsyms=$lt_exclude_expsyms_RC
18315
18316 # Symbols that must always be exported.
18317 include_expsyms=$lt_include_expsyms_RC
18318
18319 # ### END LIBTOOL TAG CONFIG: $tagname
18320
18321 __EOF__
18322
18323
18324 else
18325   # If there is no Makefile yet, we rely on a make rule to execute
18326   # `config.status --recheck' to rerun these tests and create the
18327   # libtool script then.
18328   test -f Makefile && make "$ltmain"
18329 fi
18330
18331
18332 ac_ext=c
18333 ac_cpp='$CPP $CPPFLAGS'
18334 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18335 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18336 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18337
18338 CC="$lt_save_CC"
18339
18340         ;;
18341
18342       *)
18343         { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
18344 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
18345    { (exit 1); exit 1; }; }
18346         ;;
18347       esac
18348
18349       # Append the new tag name to the list of available tags.
18350       if test -n "$tagname" ; then
18351       available_tags="$available_tags $tagname"
18352     fi
18353     fi
18354   done
18355   IFS="$lt_save_ifs"
18356
18357   # Now substitute the updated list of available tags.
18358   if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
18359     mv "${ofile}T" "$ofile"
18360     chmod +x "$ofile"
18361   else
18362     rm -f "${ofile}T"
18363     { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
18364 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
18365    { (exit 1); exit 1; }; }
18366   fi
18367 fi
18368
18369
18370
18371 # This can be used to rebuild libtool when needed
18372 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
18373
18374 # Always use our own libtool.
18375 LIBTOOL='$(SHELL) $(top_builddir)/mklib'
18376
18377 # Prevent multiple expansion
18378
18379
18380
18381
18382
18383
18384
18385
18386
18387
18388
18389
18390
18391
18392
18393
18394
18395
18396
18397
18398
18399 # Extract the first word of "pwd", so it can be a program name with args.
18400 set dummy pwd; ac_word=$2
18401 echo "$as_me:$LINENO: checking for $ac_word" >&5
18402 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18403 if test "${ac_cv_path_RPWD+set}" = set; then
18404   echo $ECHO_N "(cached) $ECHO_C" >&6
18405 else
18406   case $RPWD in
18407   [\\/]* | ?:[\\/]*)
18408   ac_cv_path_RPWD="$RPWD" # Let the user override the test with a path.
18409   ;;
18410   *)
18411   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18412 for as_dir in $PATH
18413 do
18414   IFS=$as_save_IFS
18415   test -z "$as_dir" && as_dir=.
18416   for ac_exec_ext in '' $ac_executable_extensions; do
18417   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18418     ac_cv_path_RPWD="$as_dir/$ac_word$ac_exec_ext"
18419     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18420     break 2
18421   fi
18422 done
18423 done
18424
18425   ;;
18426 esac
18427 fi
18428 RPWD=$ac_cv_path_RPWD
18429
18430 if test -n "$RPWD"; then
18431   echo "$as_me:$LINENO: result: $RPWD" >&5
18432 echo "${ECHO_T}$RPWD" >&6
18433 else
18434   echo "$as_me:$LINENO: result: no" >&5
18435 echo "${ECHO_T}no" >&6
18436 fi
18437
18438 # Extract the first word of "ar", so it can be a program name with args.
18439 set dummy ar; ac_word=$2
18440 echo "$as_me:$LINENO: checking for $ac_word" >&5
18441 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18442 if test "${ac_cv_path_AR+set}" = set; then
18443   echo $ECHO_N "(cached) $ECHO_C" >&6
18444 else
18445   case $AR in
18446   [\\/]* | ?:[\\/]*)
18447   ac_cv_path_AR="$AR" # Let the user override the test with a path.
18448   ;;
18449   *)
18450   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18451 for as_dir in $PATH
18452 do
18453   IFS=$as_save_IFS
18454   test -z "$as_dir" && as_dir=.
18455   for ac_exec_ext in '' $ac_executable_extensions; do
18456   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18457     ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext"
18458     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18459     break 2
18460   fi
18461 done
18462 done
18463
18464   ;;
18465 esac
18466 fi
18467 AR=$ac_cv_path_AR
18468
18469 if test -n "$AR"; then
18470   echo "$as_me:$LINENO: result: $AR" >&5
18471 echo "${ECHO_T}$AR" >&6
18472 else
18473   echo "$as_me:$LINENO: result: no" >&5
18474 echo "${ECHO_T}no" >&6
18475 fi
18476
18477 # Extract the first word of "sed", so it can be a program name with args.
18478 set dummy sed; ac_word=$2
18479 echo "$as_me:$LINENO: checking for $ac_word" >&5
18480 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18481 if test "${ac_cv_path_SED+set}" = set; then
18482   echo $ECHO_N "(cached) $ECHO_C" >&6
18483 else
18484   case $SED in
18485   [\\/]* | ?:[\\/]*)
18486   ac_cv_path_SED="$SED" # Let the user override the test with a path.
18487   ;;
18488   *)
18489   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18490 for as_dir in $PATH
18491 do
18492   IFS=$as_save_IFS
18493   test -z "$as_dir" && as_dir=.
18494   for ac_exec_ext in '' $ac_executable_extensions; do
18495   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18496     ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
18497     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18498     break 2
18499   fi
18500 done
18501 done
18502
18503   ;;
18504 esac
18505 fi
18506 SED=$ac_cv_path_SED
18507
18508 if test -n "$SED"; then
18509   echo "$as_me:$LINENO: result: $SED" >&5
18510 echo "${ECHO_T}$SED" >&6
18511 else
18512   echo "$as_me:$LINENO: result: no" >&5
18513 echo "${ECHO_T}no" >&6
18514 fi
18515
18516 # Extract the first word of "rm", so it can be a program name with args.
18517 set dummy rm; ac_word=$2
18518 echo "$as_me:$LINENO: checking for $ac_word" >&5
18519 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18520 if test "${ac_cv_path_RM+set}" = set; then
18521   echo $ECHO_N "(cached) $ECHO_C" >&6
18522 else
18523   case $RM in
18524   [\\/]* | ?:[\\/]*)
18525   ac_cv_path_RM="$RM" # Let the user override the test with a path.
18526   ;;
18527   *)
18528   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18529 for as_dir in $PATH
18530 do
18531   IFS=$as_save_IFS
18532   test -z "$as_dir" && as_dir=.
18533   for ac_exec_ext in '' $ac_executable_extensions; do
18534   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18535     ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
18536     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18537     break 2
18538   fi
18539 done
18540 done
18541
18542   ;;
18543 esac
18544 fi
18545 RM=$ac_cv_path_RM
18546
18547 if test -n "$RM"; then
18548   echo "$as_me:$LINENO: result: $RM" >&5
18549 echo "${ECHO_T}$RM" >&6
18550 else
18551   echo "$as_me:$LINENO: result: no" >&5
18552 echo "${ECHO_T}no" >&6
18553 fi
18554
18555 # Extract the first word of "echo", so it can be a program name with args.
18556 set dummy echo; ac_word=$2
18557 echo "$as_me:$LINENO: checking for $ac_word" >&5
18558 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18559 if test "${ac_cv_path_ECHO+set}" = set; then
18560   echo $ECHO_N "(cached) $ECHO_C" >&6
18561 else
18562   case $ECHO in
18563   [\\/]* | ?:[\\/]*)
18564   ac_cv_path_ECHO="$ECHO" # Let the user override the test with a path.
18565   ;;
18566   *)
18567   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18568 for as_dir in $PATH
18569 do
18570   IFS=$as_save_IFS
18571   test -z "$as_dir" && as_dir=.
18572   for ac_exec_ext in '' $ac_executable_extensions; do
18573   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18574     ac_cv_path_ECHO="$as_dir/$ac_word$ac_exec_ext"
18575     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18576     break 2
18577   fi
18578 done
18579 done
18580
18581   ;;
18582 esac
18583 fi
18584 ECHO=$ac_cv_path_ECHO
18585
18586 if test -n "$ECHO"; then
18587   echo "$as_me:$LINENO: result: $ECHO" >&5
18588 echo "${ECHO_T}$ECHO" >&6
18589 else
18590   echo "$as_me:$LINENO: result: no" >&5
18591 echo "${ECHO_T}no" >&6
18592 fi
18593
18594 # Extract the first word of "mkdir", so it can be a program name with args.
18595 set dummy mkdir; ac_word=$2
18596 echo "$as_me:$LINENO: checking for $ac_word" >&5
18597 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18598 if test "${ac_cv_path_MKDIR+set}" = set; then
18599   echo $ECHO_N "(cached) $ECHO_C" >&6
18600 else
18601   case $MKDIR in
18602   [\\/]* | ?:[\\/]*)
18603   ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
18604   ;;
18605   *)
18606   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18607 for as_dir in $PATH
18608 do
18609   IFS=$as_save_IFS
18610   test -z "$as_dir" && as_dir=.
18611   for ac_exec_ext in '' $ac_executable_extensions; do
18612   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18613     ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
18614     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18615     break 2
18616   fi
18617 done
18618 done
18619
18620   ;;
18621 esac
18622 fi
18623 MKDIR=$ac_cv_path_MKDIR
18624
18625 if test -n "$MKDIR"; then
18626   echo "$as_me:$LINENO: result: $MKDIR" >&5
18627 echo "${ECHO_T}$MKDIR" >&6
18628 else
18629   echo "$as_me:$LINENO: result: no" >&5
18630 echo "${ECHO_T}no" >&6
18631 fi
18632
18633 # Extract the first word of "date", so it can be a program name with args.
18634 set dummy date; ac_word=$2
18635 echo "$as_me:$LINENO: checking for $ac_word" >&5
18636 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18637 if test "${ac_cv_path_DATE+set}" = set; then
18638   echo $ECHO_N "(cached) $ECHO_C" >&6
18639 else
18640   case $DATE in
18641   [\\/]* | ?:[\\/]*)
18642   ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
18643   ;;
18644   *)
18645   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18646 for as_dir in $PATH
18647 do
18648   IFS=$as_save_IFS
18649   test -z "$as_dir" && as_dir=.
18650   for ac_exec_ext in '' $ac_executable_extensions; do
18651   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18652     ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
18653     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18654     break 2
18655   fi
18656 done
18657 done
18658
18659   ;;
18660 esac
18661 fi
18662 DATE=$ac_cv_path_DATE
18663
18664 if test -n "$DATE"; then
18665   echo "$as_me:$LINENO: result: $DATE" >&5
18666 echo "${ECHO_T}$DATE" >&6
18667 else
18668   echo "$as_me:$LINENO: result: no" >&5
18669 echo "${ECHO_T}no" >&6
18670 fi
18671
18672 # Extract the first word of "mv", so it can be a program name with args.
18673 set dummy mv; ac_word=$2
18674 echo "$as_me:$LINENO: checking for $ac_word" >&5
18675 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18676 if test "${ac_cv_path_MV+set}" = set; then
18677   echo $ECHO_N "(cached) $ECHO_C" >&6
18678 else
18679   case $MV in
18680   [\\/]* | ?:[\\/]*)
18681   ac_cv_path_MV="$MV" # Let the user override the test with a path.
18682   ;;
18683   *)
18684   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18685 for as_dir in $PATH
18686 do
18687   IFS=$as_save_IFS
18688   test -z "$as_dir" && as_dir=.
18689   for ac_exec_ext in '' $ac_executable_extensions; do
18690   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18691     ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
18692     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18693     break 2
18694   fi
18695 done
18696 done
18697
18698   ;;
18699 esac
18700 fi
18701 MV=$ac_cv_path_MV
18702
18703 if test -n "$MV"; then
18704   echo "$as_me:$LINENO: result: $MV" >&5
18705 echo "${ECHO_T}$MV" >&6
18706 else
18707   echo "$as_me:$LINENO: result: no" >&5
18708 echo "${ECHO_T}no" >&6
18709 fi
18710
18711 # Extract the first word of "dot", so it can be a program name with args.
18712 set dummy dot; ac_word=$2
18713 echo "$as_me:$LINENO: checking for $ac_word" >&5
18714 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18715 if test "${ac_cv_path_DOT+set}" = set; then
18716   echo $ECHO_N "(cached) $ECHO_C" >&6
18717 else
18718   case $DOT in
18719   [\\/]* | ?:[\\/]*)
18720   ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
18721   ;;
18722   *)
18723   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18724 for as_dir in $PATH
18725 do
18726   IFS=$as_save_IFS
18727   test -z "$as_dir" && as_dir=.
18728   for ac_exec_ext in '' $ac_executable_extensions; do
18729   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18730     ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
18731     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18732     break 2
18733   fi
18734 done
18735 done
18736
18737   ;;
18738 esac
18739 fi
18740 DOT=$ac_cv_path_DOT
18741
18742 if test -n "$DOT"; then
18743   echo "$as_me:$LINENO: result: $DOT" >&5
18744 echo "${ECHO_T}$DOT" >&6
18745 else
18746   echo "$as_me:$LINENO: result: no" >&5
18747 echo "${ECHO_T}no" >&6
18748 fi
18749
18750 # Extract the first word of "etags", so it can be a program name with args.
18751 set dummy etags; ac_word=$2
18752 echo "$as_me:$LINENO: checking for $ac_word" >&5
18753 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18754 if test "${ac_cv_path_ETAGS+set}" = set; then
18755   echo $ECHO_N "(cached) $ECHO_C" >&6
18756 else
18757   case $ETAGS in
18758   [\\/]* | ?:[\\/]*)
18759   ac_cv_path_ETAGS="$ETAGS" # Let the user override the test with a path.
18760   ;;
18761   *)
18762   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18763 for as_dir in $PATH
18764 do
18765   IFS=$as_save_IFS
18766   test -z "$as_dir" && as_dir=.
18767   for ac_exec_ext in '' $ac_executable_extensions; do
18768   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18769     ac_cv_path_ETAGS="$as_dir/$ac_word$ac_exec_ext"
18770     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18771     break 2
18772   fi
18773 done
18774 done
18775
18776   ;;
18777 esac
18778 fi
18779 ETAGS=$ac_cv_path_ETAGS
18780
18781 if test -n "$ETAGS"; then
18782   echo "$as_me:$LINENO: result: $ETAGS" >&5
18783 echo "${ECHO_T}$ETAGS" >&6
18784 else
18785   echo "$as_me:$LINENO: result: no" >&5
18786 echo "${ECHO_T}no" >&6
18787 fi
18788
18789 # Extract the first word of "purify", so it can be a program name with args.
18790 set dummy purify; ac_word=$2
18791 echo "$as_me:$LINENO: checking for $ac_word" >&5
18792 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18793 if test "${ac_cv_path_PURIFY+set}" = set; then
18794   echo $ECHO_N "(cached) $ECHO_C" >&6
18795 else
18796   case $PURIFY in
18797   [\\/]* | ?:[\\/]*)
18798   ac_cv_path_PURIFY="$PURIFY" # Let the user override the test with a path.
18799   ;;
18800   *)
18801   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18802 for as_dir in $PATH
18803 do
18804   IFS=$as_save_IFS
18805   test -z "$as_dir" && as_dir=.
18806   for ac_exec_ext in '' $ac_executable_extensions; do
18807   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18808     ac_cv_path_PURIFY="$as_dir/$ac_word$ac_exec_ext"
18809     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18810     break 2
18811   fi
18812 done
18813 done
18814
18815   ;;
18816 esac
18817 fi
18818 PURIFY=$ac_cv_path_PURIFY
18819
18820 if test -n "$PURIFY"; then
18821   echo "$as_me:$LINENO: result: $PURIFY" >&5
18822 echo "${ECHO_T}$PURIFY" >&6
18823 else
18824   echo "$as_me:$LINENO: result: no" >&5
18825 echo "${ECHO_T}no" >&6
18826 fi
18827
18828 # Extract the first word of "python", so it can be a program name with args.
18829 set dummy python; ac_word=$2
18830 echo "$as_me:$LINENO: checking for $ac_word" >&5
18831 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18832 if test "${ac_cv_path_PYTHON+set}" = set; then
18833   echo $ECHO_N "(cached) $ECHO_C" >&6
18834 else
18835   case $PYTHON in
18836   [\\/]* | ?:[\\/]*)
18837   ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
18838   ;;
18839   *)
18840   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18841 for as_dir in $PATH
18842 do
18843   IFS=$as_save_IFS
18844   test -z "$as_dir" && as_dir=.
18845   for ac_exec_ext in '' $ac_executable_extensions; do
18846   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18847     ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
18848     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18849     break 2
18850   fi
18851 done
18852 done
18853
18854   ;;
18855 esac
18856 fi
18857 PYTHON=$ac_cv_path_PYTHON
18858
18859 if test -n "$PYTHON"; then
18860   echo "$as_me:$LINENO: result: $PYTHON" >&5
18861 echo "${ECHO_T}$PYTHON" >&6
18862 else
18863   echo "$as_me:$LINENO: result: no" >&5
18864 echo "${ECHO_T}no" >&6
18865 fi
18866
18867 # Extract the first word of "qmtest", so it can be a program name with args.
18868 set dummy qmtest; ac_word=$2
18869 echo "$as_me:$LINENO: checking for $ac_word" >&5
18870 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18871 if test "${ac_cv_path_QMTEST+set}" = set; then
18872   echo $ECHO_N "(cached) $ECHO_C" >&6
18873 else
18874   case $QMTEST in
18875   [\\/]* | ?:[\\/]*)
18876   ac_cv_path_QMTEST="$QMTEST" # Let the user override the test with a path.
18877   ;;
18878   *)
18879   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18880 for as_dir in $PATH
18881 do
18882   IFS=$as_save_IFS
18883   test -z "$as_dir" && as_dir=.
18884   for ac_exec_ext in '' $ac_executable_extensions; do
18885   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18886     ac_cv_path_QMTEST="$as_dir/$ac_word$ac_exec_ext"
18887     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18888     break 2
18889   fi
18890 done
18891 done
18892
18893   ;;
18894 esac
18895 fi
18896 QMTEST=$ac_cv_path_QMTEST
18897
18898 if test -n "$QMTEST"; then
18899   echo "$as_me:$LINENO: result: $QMTEST" >&5
18900 echo "${ECHO_T}$QMTEST" >&6
18901 else
18902   echo "$as_me:$LINENO: result: no" >&5
18903 echo "${ECHO_T}no" >&6
18904 fi
18905
18906
18907 pyversion=`$PYTHON -V 2>&1 | cut -d\  -f2`
18908 pymajor=`echo $pyversion | cut -d. -f1`
18909 pyminor=`echo $pyversion | cut -d. -f2`
18910
18911 if test "$pymajor" -ge "2"
18912 then
18913         if test "$pymajor" -eq "2"
18914         then
18915                 if test "$pyminor" -lt "2"
18916                 then
18917                         { { echo "$as_me:$LINENO: error: Python 2.2 or greater required" >&5
18918 echo "$as_me: error: Python 2.2 or greater required" >&2;}
18919    { (exit 1); exit 1; }; }
18920                 fi
18921         fi
18922 else
18923         { { echo "$as_me:$LINENO: error: Python 2.2 or greater required" >&5
18924 echo "$as_me: error: Python 2.2 or greater required" >&2;}
18925    { (exit 1); exit 1; }; }
18926 fi
18927
18928
18929
18930
18931
18932 echo "$as_me:$LINENO: checking for elf_begin in -lelf" >&5
18933 echo $ECHO_N "checking for elf_begin in -lelf... $ECHO_C" >&6
18934 if test "${ac_cv_lib_elf_elf_begin+set}" = set; then
18935   echo $ECHO_N "(cached) $ECHO_C" >&6
18936 else
18937   ac_check_lib_save_LIBS=$LIBS
18938 LIBS="-lelf  $LIBS"
18939 cat >conftest.$ac_ext <<_ACEOF
18940 #line $LINENO "configure"
18941 /* confdefs.h.  */
18942 _ACEOF
18943 cat confdefs.h >>conftest.$ac_ext
18944 cat >>conftest.$ac_ext <<_ACEOF
18945 /* end confdefs.h.  */
18946
18947 /* Override any gcc2 internal prototype to avoid an error.  */
18948 #ifdef __cplusplus
18949 extern "C"
18950 #endif
18951 /* We use char because int might match the return type of a gcc2
18952    builtin and then its argument prototype would still apply.  */
18953 char elf_begin ();
18954 int
18955 main ()
18956 {
18957 elf_begin ();
18958   ;
18959   return 0;
18960 }
18961 _ACEOF
18962 rm -f conftest.$ac_objext conftest$ac_exeext
18963 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18964   (eval $ac_link) 2>&5
18965   ac_status=$?
18966   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18967   (exit $ac_status); } &&
18968          { ac_try='test -s conftest$ac_exeext'
18969   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18970   (eval $ac_try) 2>&5
18971   ac_status=$?
18972   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18973   (exit $ac_status); }; }; then
18974   ac_cv_lib_elf_elf_begin=yes
18975 else
18976   echo "$as_me: failed program was:" >&5
18977 sed 's/^/| /' conftest.$ac_ext >&5
18978
18979 ac_cv_lib_elf_elf_begin=no
18980 fi
18981 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18982 LIBS=$ac_check_lib_save_LIBS
18983 fi
18984 echo "$as_me:$LINENO: result: $ac_cv_lib_elf_elf_begin" >&5
18985 echo "${ECHO_T}$ac_cv_lib_elf_elf_begin" >&6
18986 if test $ac_cv_lib_elf_elf_begin = yes; then
18987   cat >>confdefs.h <<_ACEOF
18988 #define HAVE_LIBELF 1
18989 _ACEOF
18990
18991   LIBS="-lelf $LIBS"
18992
18993 fi
18994
18995
18996 echo "$as_me:$LINENO: checking for library containing dlopen" >&5
18997 echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6
18998 if test "${ac_cv_search_dlopen+set}" = set; then
18999   echo $ECHO_N "(cached) $ECHO_C" >&6
19000 else
19001   ac_func_search_save_LIBS=$LIBS
19002 ac_cv_search_dlopen=no
19003 cat >conftest.$ac_ext <<_ACEOF
19004 #line $LINENO "configure"
19005 /* confdefs.h.  */
19006 _ACEOF
19007 cat confdefs.h >>conftest.$ac_ext
19008 cat >>conftest.$ac_ext <<_ACEOF
19009 /* end confdefs.h.  */
19010
19011 /* Override any gcc2 internal prototype to avoid an error.  */
19012 #ifdef __cplusplus
19013 extern "C"
19014 #endif
19015 /* We use char because int might match the return type of a gcc2
19016    builtin and then its argument prototype would still apply.  */
19017 char dlopen ();
19018 int
19019 main ()
19020 {
19021 dlopen ();
19022   ;
19023   return 0;
19024 }
19025 _ACEOF
19026 rm -f conftest.$ac_objext conftest$ac_exeext
19027 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19028   (eval $ac_link) 2>&5
19029   ac_status=$?
19030   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19031   (exit $ac_status); } &&
19032          { ac_try='test -s conftest$ac_exeext'
19033   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19034   (eval $ac_try) 2>&5
19035   ac_status=$?
19036   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19037   (exit $ac_status); }; }; then
19038   ac_cv_search_dlopen="none required"
19039 else
19040   echo "$as_me: failed program was:" >&5
19041 sed 's/^/| /' conftest.$ac_ext >&5
19042
19043 fi
19044 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
19045 if test "$ac_cv_search_dlopen" = no; then
19046   for ac_lib in dl; do
19047     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
19048     cat >conftest.$ac_ext <<_ACEOF
19049 #line $LINENO "configure"
19050 /* confdefs.h.  */
19051 _ACEOF
19052 cat confdefs.h >>conftest.$ac_ext
19053 cat >>conftest.$ac_ext <<_ACEOF
19054 /* end confdefs.h.  */
19055
19056 /* Override any gcc2 internal prototype to avoid an error.  */
19057 #ifdef __cplusplus
19058 extern "C"
19059 #endif
19060 /* We use char because int might match the return type of a gcc2
19061    builtin and then its argument prototype would still apply.  */
19062 char dlopen ();
19063 int
19064 main ()
19065 {
19066 dlopen ();
19067   ;
19068   return 0;
19069 }
19070 _ACEOF
19071 rm -f conftest.$ac_objext conftest$ac_exeext
19072 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19073   (eval $ac_link) 2>&5
19074   ac_status=$?
19075   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19076   (exit $ac_status); } &&
19077          { ac_try='test -s conftest$ac_exeext'
19078   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19079   (eval $ac_try) 2>&5
19080   ac_status=$?
19081   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19082   (exit $ac_status); }; }; then
19083   ac_cv_search_dlopen="-l$ac_lib"
19084 break
19085 else
19086   echo "$as_me: failed program was:" >&5
19087 sed 's/^/| /' conftest.$ac_ext >&5
19088
19089 fi
19090 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
19091   done
19092 fi
19093 LIBS=$ac_func_search_save_LIBS
19094 fi
19095 echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
19096 echo "${ECHO_T}$ac_cv_search_dlopen" >&6
19097 if test "$ac_cv_search_dlopen" != no; then
19098   test "$ac_cv_search_dlopen" = "none required" || LIBS="$ac_cv_search_dlopen $LIBS"
19099
19100 else
19101   { { echo "$as_me:$LINENO: error: dlopen() required but not found" >&5
19102 echo "$as_me: error: dlopen() required but not found" >&2;}
19103    { (exit 1); exit 1; }; }
19104 fi
19105
19106
19107 echo "$as_me:$LINENO: checking for library containing mallinfo" >&5
19108 echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6
19109 if test "${ac_cv_search_mallinfo+set}" = set; then
19110   echo $ECHO_N "(cached) $ECHO_C" >&6
19111 else
19112   ac_func_search_save_LIBS=$LIBS
19113 ac_cv_search_mallinfo=no
19114 cat >conftest.$ac_ext <<_ACEOF
19115 #line $LINENO "configure"
19116 /* confdefs.h.  */
19117 _ACEOF
19118 cat confdefs.h >>conftest.$ac_ext
19119 cat >>conftest.$ac_ext <<_ACEOF
19120 /* end confdefs.h.  */
19121
19122 /* Override any gcc2 internal prototype to avoid an error.  */
19123 #ifdef __cplusplus
19124 extern "C"
19125 #endif
19126 /* We use char because int might match the return type of a gcc2
19127    builtin and then its argument prototype would still apply.  */
19128 char mallinfo ();
19129 int
19130 main ()
19131 {
19132 mallinfo ();
19133   ;
19134   return 0;
19135 }
19136 _ACEOF
19137 rm -f conftest.$ac_objext conftest$ac_exeext
19138 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19139   (eval $ac_link) 2>&5
19140   ac_status=$?
19141   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19142   (exit $ac_status); } &&
19143          { ac_try='test -s conftest$ac_exeext'
19144   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19145   (eval $ac_try) 2>&5
19146   ac_status=$?
19147   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19148   (exit $ac_status); }; }; then
19149   ac_cv_search_mallinfo="none required"
19150 else
19151   echo "$as_me: failed program was:" >&5
19152 sed 's/^/| /' conftest.$ac_ext >&5
19153
19154 fi
19155 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
19156 if test "$ac_cv_search_mallinfo" = no; then
19157   for ac_lib in malloc; do
19158     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
19159     cat >conftest.$ac_ext <<_ACEOF
19160 #line $LINENO "configure"
19161 /* confdefs.h.  */
19162 _ACEOF
19163 cat confdefs.h >>conftest.$ac_ext
19164 cat >>conftest.$ac_ext <<_ACEOF
19165 /* end confdefs.h.  */
19166
19167 /* Override any gcc2 internal prototype to avoid an error.  */
19168 #ifdef __cplusplus
19169 extern "C"
19170 #endif
19171 /* We use char because int might match the return type of a gcc2
19172    builtin and then its argument prototype would still apply.  */
19173 char mallinfo ();
19174 int
19175 main ()
19176 {
19177 mallinfo ();
19178   ;
19179   return 0;
19180 }
19181 _ACEOF
19182 rm -f conftest.$ac_objext conftest$ac_exeext
19183 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19184   (eval $ac_link) 2>&5
19185   ac_status=$?
19186   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19187   (exit $ac_status); } &&
19188          { ac_try='test -s conftest$ac_exeext'
19189   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19190   (eval $ac_try) 2>&5
19191   ac_status=$?
19192   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19193   (exit $ac_status); }; }; then
19194   ac_cv_search_mallinfo="-l$ac_lib"
19195 break
19196 else
19197   echo "$as_me: failed program was:" >&5
19198 sed 's/^/| /' conftest.$ac_ext >&5
19199
19200 fi
19201 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
19202   done
19203 fi
19204 LIBS=$ac_func_search_save_LIBS
19205 fi
19206 echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5
19207 echo "${ECHO_T}$ac_cv_search_mallinfo" >&6
19208 if test "$ac_cv_search_mallinfo" != no; then
19209   test "$ac_cv_search_mallinfo" = "none required" || LIBS="$ac_cv_search_mallinfo $LIBS"
19210   cat >>confdefs.h <<\_ACEOF
19211 #define HAVE_MALLINFO 1
19212 _ACEOF
19213
19214 fi
19215
19216
19217
19218 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
19219 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
19220 if test "${ac_cv_header_stdc+set}" = set; then
19221   echo $ECHO_N "(cached) $ECHO_C" >&6
19222 else
19223   cat >conftest.$ac_ext <<_ACEOF
19224 #line $LINENO "configure"
19225 /* confdefs.h.  */
19226 _ACEOF
19227 cat confdefs.h >>conftest.$ac_ext
19228 cat >>conftest.$ac_ext <<_ACEOF
19229 /* end confdefs.h.  */
19230 #include <stdlib.h>
19231 #include <stdarg.h>
19232 #include <string.h>
19233 #include <float.h>
19234
19235 int
19236 main ()
19237 {
19238
19239   ;
19240   return 0;
19241 }
19242 _ACEOF
19243 rm -f conftest.$ac_objext
19244 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19245   (eval $ac_compile) 2>&5
19246   ac_status=$?
19247   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19248   (exit $ac_status); } &&
19249          { ac_try='test -s conftest.$ac_objext'
19250   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19251   (eval $ac_try) 2>&5
19252   ac_status=$?
19253   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19254   (exit $ac_status); }; }; then
19255   ac_cv_header_stdc=yes
19256 else
19257   echo "$as_me: failed program was:" >&5
19258 sed 's/^/| /' conftest.$ac_ext >&5
19259
19260 ac_cv_header_stdc=no
19261 fi
19262 rm -f conftest.$ac_objext conftest.$ac_ext
19263
19264 if test $ac_cv_header_stdc = yes; then
19265   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
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 <string.h>
19274
19275 _ACEOF
19276 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19277   $EGREP "memchr" >/dev/null 2>&1; then
19278   :
19279 else
19280   ac_cv_header_stdc=no
19281 fi
19282 rm -f conftest*
19283
19284 fi
19285
19286 if test $ac_cv_header_stdc = yes; then
19287   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
19288   cat >conftest.$ac_ext <<_ACEOF
19289 #line $LINENO "configure"
19290 /* confdefs.h.  */
19291 _ACEOF
19292 cat confdefs.h >>conftest.$ac_ext
19293 cat >>conftest.$ac_ext <<_ACEOF
19294 /* end confdefs.h.  */
19295 #include <stdlib.h>
19296
19297 _ACEOF
19298 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19299   $EGREP "free" >/dev/null 2>&1; then
19300   :
19301 else
19302   ac_cv_header_stdc=no
19303 fi
19304 rm -f conftest*
19305
19306 fi
19307
19308 if test $ac_cv_header_stdc = yes; then
19309   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
19310   if test "$cross_compiling" = yes; then
19311   :
19312 else
19313   cat >conftest.$ac_ext <<_ACEOF
19314 #line $LINENO "configure"
19315 /* confdefs.h.  */
19316 _ACEOF
19317 cat confdefs.h >>conftest.$ac_ext
19318 cat >>conftest.$ac_ext <<_ACEOF
19319 /* end confdefs.h.  */
19320 #include <ctype.h>
19321 #if ((' ' & 0x0FF) == 0x020)
19322 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
19323 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
19324 #else
19325 # define ISLOWER(c) \
19326                    (('a' <= (c) && (c) <= 'i') \
19327                      || ('j' <= (c) && (c) <= 'r') \
19328                      || ('s' <= (c) && (c) <= 'z'))
19329 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
19330 #endif
19331
19332 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
19333 int
19334 main ()
19335 {
19336   int i;
19337   for (i = 0; i < 256; i++)
19338     if (XOR (islower (i), ISLOWER (i))
19339         || toupper (i) != TOUPPER (i))
19340       exit(2);
19341   exit (0);
19342 }
19343 _ACEOF
19344 rm -f conftest$ac_exeext
19345 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19346   (eval $ac_link) 2>&5
19347   ac_status=$?
19348   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19349   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19350   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19351   (eval $ac_try) 2>&5
19352   ac_status=$?
19353   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19354   (exit $ac_status); }; }; then
19355   :
19356 else
19357   echo "$as_me: program exited with status $ac_status" >&5
19358 echo "$as_me: failed program was:" >&5
19359 sed 's/^/| /' conftest.$ac_ext >&5
19360
19361 ( exit $ac_status )
19362 ac_cv_header_stdc=no
19363 fi
19364 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19365 fi
19366 fi
19367 fi
19368 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
19369 echo "${ECHO_T}$ac_cv_header_stdc" >&6
19370 if test $ac_cv_header_stdc = yes; then
19371
19372 cat >>confdefs.h <<\_ACEOF
19373 #define STDC_HEADERS 1
19374 _ACEOF
19375
19376 fi
19377
19378 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
19379 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
19380 if test "${ac_cv_header_sys_wait_h+set}" = set; then
19381   echo $ECHO_N "(cached) $ECHO_C" >&6
19382 else
19383   cat >conftest.$ac_ext <<_ACEOF
19384 #line $LINENO "configure"
19385 /* confdefs.h.  */
19386 _ACEOF
19387 cat confdefs.h >>conftest.$ac_ext
19388 cat >>conftest.$ac_ext <<_ACEOF
19389 /* end confdefs.h.  */
19390 #include <sys/types.h>
19391 #include <sys/wait.h>
19392 #ifndef WEXITSTATUS
19393 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
19394 #endif
19395 #ifndef WIFEXITED
19396 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
19397 #endif
19398
19399 int
19400 main ()
19401 {
19402   int s;
19403   wait (&s);
19404   s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
19405   ;
19406   return 0;
19407 }
19408 _ACEOF
19409 rm -f conftest.$ac_objext
19410 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19411   (eval $ac_compile) 2>&5
19412   ac_status=$?
19413   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19414   (exit $ac_status); } &&
19415          { ac_try='test -s conftest.$ac_objext'
19416   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19417   (eval $ac_try) 2>&5
19418   ac_status=$?
19419   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19420   (exit $ac_status); }; }; then
19421   ac_cv_header_sys_wait_h=yes
19422 else
19423   echo "$as_me: failed program was:" >&5
19424 sed 's/^/| /' conftest.$ac_ext >&5
19425
19426 ac_cv_header_sys_wait_h=no
19427 fi
19428 rm -f conftest.$ac_objext conftest.$ac_ext
19429 fi
19430 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
19431 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
19432 if test $ac_cv_header_sys_wait_h = yes; then
19433
19434 cat >>confdefs.h <<\_ACEOF
19435 #define HAVE_SYS_WAIT_H 1
19436 _ACEOF
19437
19438 fi
19439
19440
19441
19442
19443
19444
19445
19446
19447
19448
19449 for ac_header in assert.h fcntl.h limits.h sys/time.h unistd.h errno.h signal.h math.h
19450 do
19451 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19452 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19453   echo "$as_me:$LINENO: checking for $ac_header" >&5
19454 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19455 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19456   echo $ECHO_N "(cached) $ECHO_C" >&6
19457 fi
19458 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19459 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19460 else
19461   # Is the header compilable?
19462 echo "$as_me:$LINENO: checking $ac_header usability" >&5
19463 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19464 cat >conftest.$ac_ext <<_ACEOF
19465 #line $LINENO "configure"
19466 /* confdefs.h.  */
19467 _ACEOF
19468 cat confdefs.h >>conftest.$ac_ext
19469 cat >>conftest.$ac_ext <<_ACEOF
19470 /* end confdefs.h.  */
19471 $ac_includes_default
19472 #include <$ac_header>
19473 _ACEOF
19474 rm -f conftest.$ac_objext
19475 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19476   (eval $ac_compile) 2>&5
19477   ac_status=$?
19478   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19479   (exit $ac_status); } &&
19480          { ac_try='test -s conftest.$ac_objext'
19481   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19482   (eval $ac_try) 2>&5
19483   ac_status=$?
19484   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19485   (exit $ac_status); }; }; then
19486   ac_header_compiler=yes
19487 else
19488   echo "$as_me: failed program was:" >&5
19489 sed 's/^/| /' conftest.$ac_ext >&5
19490
19491 ac_header_compiler=no
19492 fi
19493 rm -f conftest.$ac_objext conftest.$ac_ext
19494 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19495 echo "${ECHO_T}$ac_header_compiler" >&6
19496
19497 # Is the header present?
19498 echo "$as_me:$LINENO: checking $ac_header presence" >&5
19499 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19500 cat >conftest.$ac_ext <<_ACEOF
19501 #line $LINENO "configure"
19502 /* confdefs.h.  */
19503 _ACEOF
19504 cat confdefs.h >>conftest.$ac_ext
19505 cat >>conftest.$ac_ext <<_ACEOF
19506 /* end confdefs.h.  */
19507 #include <$ac_header>
19508 _ACEOF
19509 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19510   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19511   ac_status=$?
19512   grep -v '^ *+' conftest.er1 >conftest.err
19513   rm -f conftest.er1
19514   cat conftest.err >&5
19515   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19516   (exit $ac_status); } >/dev/null; then
19517   if test -s conftest.err; then
19518     ac_cpp_err=$ac_c_preproc_warn_flag
19519   else
19520     ac_cpp_err=
19521   fi
19522 else
19523   ac_cpp_err=yes
19524 fi
19525 if test -z "$ac_cpp_err"; then
19526   ac_header_preproc=yes
19527 else
19528   echo "$as_me: failed program was:" >&5
19529 sed 's/^/| /' conftest.$ac_ext >&5
19530
19531   ac_header_preproc=no
19532 fi
19533 rm -f conftest.err conftest.$ac_ext
19534 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19535 echo "${ECHO_T}$ac_header_preproc" >&6
19536
19537 # So?  What about this header?
19538 case $ac_header_compiler:$ac_header_preproc in
19539   yes:no )
19540     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19541 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19542     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19543 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19544     (
19545       cat <<\_ASBOX
19546 ## ------------------------------------ ##
19547 ## Report this to bug-autoconf@gnu.org. ##
19548 ## ------------------------------------ ##
19549 _ASBOX
19550     ) |
19551       sed "s/^/$as_me: WARNING:     /" >&2
19552     ;;
19553   no:yes )
19554     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19555 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19556     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19557 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19558     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19559 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19560     (
19561       cat <<\_ASBOX
19562 ## ------------------------------------ ##
19563 ## Report this to bug-autoconf@gnu.org. ##
19564 ## ------------------------------------ ##
19565 _ASBOX
19566     ) |
19567       sed "s/^/$as_me: WARNING:     /" >&2
19568     ;;
19569 esac
19570 echo "$as_me:$LINENO: checking for $ac_header" >&5
19571 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19572 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19573   echo $ECHO_N "(cached) $ECHO_C" >&6
19574 else
19575   eval "$as_ac_Header=$ac_header_preproc"
19576 fi
19577 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19578 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19579
19580 fi
19581 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19582   cat >>confdefs.h <<_ACEOF
19583 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19584 _ACEOF
19585
19586 fi
19587
19588 done
19589
19590
19591
19592
19593
19594
19595 for ac_header in malloc.h strings.h sys/mman.h sys/resource.h
19596 do
19597 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19598 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19599   echo "$as_me:$LINENO: checking for $ac_header" >&5
19600 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19601 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19602   echo $ECHO_N "(cached) $ECHO_C" >&6
19603 fi
19604 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19605 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19606 else
19607   # Is the header compilable?
19608 echo "$as_me:$LINENO: checking $ac_header usability" >&5
19609 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19610 cat >conftest.$ac_ext <<_ACEOF
19611 #line $LINENO "configure"
19612 /* confdefs.h.  */
19613 _ACEOF
19614 cat confdefs.h >>conftest.$ac_ext
19615 cat >>conftest.$ac_ext <<_ACEOF
19616 /* end confdefs.h.  */
19617 $ac_includes_default
19618 #include <$ac_header>
19619 _ACEOF
19620 rm -f conftest.$ac_objext
19621 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19622   (eval $ac_compile) 2>&5
19623   ac_status=$?
19624   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19625   (exit $ac_status); } &&
19626          { ac_try='test -s conftest.$ac_objext'
19627   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19628   (eval $ac_try) 2>&5
19629   ac_status=$?
19630   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19631   (exit $ac_status); }; }; then
19632   ac_header_compiler=yes
19633 else
19634   echo "$as_me: failed program was:" >&5
19635 sed 's/^/| /' conftest.$ac_ext >&5
19636
19637 ac_header_compiler=no
19638 fi
19639 rm -f conftest.$ac_objext conftest.$ac_ext
19640 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19641 echo "${ECHO_T}$ac_header_compiler" >&6
19642
19643 # Is the header present?
19644 echo "$as_me:$LINENO: checking $ac_header presence" >&5
19645 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19646 cat >conftest.$ac_ext <<_ACEOF
19647 #line $LINENO "configure"
19648 /* confdefs.h.  */
19649 _ACEOF
19650 cat confdefs.h >>conftest.$ac_ext
19651 cat >>conftest.$ac_ext <<_ACEOF
19652 /* end confdefs.h.  */
19653 #include <$ac_header>
19654 _ACEOF
19655 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19656   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19657   ac_status=$?
19658   grep -v '^ *+' conftest.er1 >conftest.err
19659   rm -f conftest.er1
19660   cat conftest.err >&5
19661   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19662   (exit $ac_status); } >/dev/null; then
19663   if test -s conftest.err; then
19664     ac_cpp_err=$ac_c_preproc_warn_flag
19665   else
19666     ac_cpp_err=
19667   fi
19668 else
19669   ac_cpp_err=yes
19670 fi
19671 if test -z "$ac_cpp_err"; then
19672   ac_header_preproc=yes
19673 else
19674   echo "$as_me: failed program was:" >&5
19675 sed 's/^/| /' conftest.$ac_ext >&5
19676
19677   ac_header_preproc=no
19678 fi
19679 rm -f conftest.err conftest.$ac_ext
19680 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19681 echo "${ECHO_T}$ac_header_preproc" >&6
19682
19683 # So?  What about this header?
19684 case $ac_header_compiler:$ac_header_preproc in
19685   yes:no )
19686     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19687 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19688     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19689 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19690     (
19691       cat <<\_ASBOX
19692 ## ------------------------------------ ##
19693 ## Report this to bug-autoconf@gnu.org. ##
19694 ## ------------------------------------ ##
19695 _ASBOX
19696     ) |
19697       sed "s/^/$as_me: WARNING:     /" >&2
19698     ;;
19699   no:yes )
19700     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19701 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19702     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19703 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19704     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19705 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19706     (
19707       cat <<\_ASBOX
19708 ## ------------------------------------ ##
19709 ## Report this to bug-autoconf@gnu.org. ##
19710 ## ------------------------------------ ##
19711 _ASBOX
19712     ) |
19713       sed "s/^/$as_me: WARNING:     /" >&2
19714     ;;
19715 esac
19716 echo "$as_me:$LINENO: checking for $ac_header" >&5
19717 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19718 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19719   echo $ECHO_N "(cached) $ECHO_C" >&6
19720 else
19721   eval "$as_ac_Header=$ac_header_preproc"
19722 fi
19723 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19724 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19725
19726 fi
19727 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19728   cat >>confdefs.h <<_ACEOF
19729 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19730 _ACEOF
19731
19732 fi
19733
19734 done
19735
19736
19737
19738
19739 for ac_header in dlfcn.h link.h
19740 do
19741 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19742 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19743   echo "$as_me:$LINENO: checking for $ac_header" >&5
19744 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19745 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19746   echo $ECHO_N "(cached) $ECHO_C" >&6
19747 fi
19748 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19749 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19750 else
19751   # Is the header compilable?
19752 echo "$as_me:$LINENO: checking $ac_header usability" >&5
19753 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19754 cat >conftest.$ac_ext <<_ACEOF
19755 #line $LINENO "configure"
19756 /* confdefs.h.  */
19757 _ACEOF
19758 cat confdefs.h >>conftest.$ac_ext
19759 cat >>conftest.$ac_ext <<_ACEOF
19760 /* end confdefs.h.  */
19761 $ac_includes_default
19762 #include <$ac_header>
19763 _ACEOF
19764 rm -f conftest.$ac_objext
19765 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19766   (eval $ac_compile) 2>&5
19767   ac_status=$?
19768   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19769   (exit $ac_status); } &&
19770          { ac_try='test -s conftest.$ac_objext'
19771   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19772   (eval $ac_try) 2>&5
19773   ac_status=$?
19774   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19775   (exit $ac_status); }; }; then
19776   ac_header_compiler=yes
19777 else
19778   echo "$as_me: failed program was:" >&5
19779 sed 's/^/| /' conftest.$ac_ext >&5
19780
19781 ac_header_compiler=no
19782 fi
19783 rm -f conftest.$ac_objext conftest.$ac_ext
19784 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19785 echo "${ECHO_T}$ac_header_compiler" >&6
19786
19787 # Is the header present?
19788 echo "$as_me:$LINENO: checking $ac_header presence" >&5
19789 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19790 cat >conftest.$ac_ext <<_ACEOF
19791 #line $LINENO "configure"
19792 /* confdefs.h.  */
19793 _ACEOF
19794 cat confdefs.h >>conftest.$ac_ext
19795 cat >>conftest.$ac_ext <<_ACEOF
19796 /* end confdefs.h.  */
19797 #include <$ac_header>
19798 _ACEOF
19799 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19800   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19801   ac_status=$?
19802   grep -v '^ *+' conftest.er1 >conftest.err
19803   rm -f conftest.er1
19804   cat conftest.err >&5
19805   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19806   (exit $ac_status); } >/dev/null; then
19807   if test -s conftest.err; then
19808     ac_cpp_err=$ac_c_preproc_warn_flag
19809   else
19810     ac_cpp_err=
19811   fi
19812 else
19813   ac_cpp_err=yes
19814 fi
19815 if test -z "$ac_cpp_err"; then
19816   ac_header_preproc=yes
19817 else
19818   echo "$as_me: failed program was:" >&5
19819 sed 's/^/| /' conftest.$ac_ext >&5
19820
19821   ac_header_preproc=no
19822 fi
19823 rm -f conftest.err conftest.$ac_ext
19824 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19825 echo "${ECHO_T}$ac_header_preproc" >&6
19826
19827 # So?  What about this header?
19828 case $ac_header_compiler:$ac_header_preproc in
19829   yes:no )
19830     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19831 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19832     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19833 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19834     (
19835       cat <<\_ASBOX
19836 ## ------------------------------------ ##
19837 ## Report this to bug-autoconf@gnu.org. ##
19838 ## ------------------------------------ ##
19839 _ASBOX
19840     ) |
19841       sed "s/^/$as_me: WARNING:     /" >&2
19842     ;;
19843   no:yes )
19844     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19845 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19846     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19847 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19848     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19849 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19850     (
19851       cat <<\_ASBOX
19852 ## ------------------------------------ ##
19853 ## Report this to bug-autoconf@gnu.org. ##
19854 ## ------------------------------------ ##
19855 _ASBOX
19856     ) |
19857       sed "s/^/$as_me: WARNING:     /" >&2
19858     ;;
19859 esac
19860 echo "$as_me:$LINENO: checking for $ac_header" >&5
19861 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19862 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19863   echo $ECHO_N "(cached) $ECHO_C" >&6
19864 else
19865   eval "$as_ac_Header=$ac_header_preproc"
19866 fi
19867 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19868 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19869
19870 fi
19871 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19872   cat >>confdefs.h <<_ACEOF
19873 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19874 _ACEOF
19875
19876 fi
19877
19878 done
19879
19880
19881
19882 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
19883 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
19884 if test "${ac_cv_c_const+set}" = set; then
19885   echo $ECHO_N "(cached) $ECHO_C" >&6
19886 else
19887   cat >conftest.$ac_ext <<_ACEOF
19888 #line $LINENO "configure"
19889 /* confdefs.h.  */
19890 _ACEOF
19891 cat confdefs.h >>conftest.$ac_ext
19892 cat >>conftest.$ac_ext <<_ACEOF
19893 /* end confdefs.h.  */
19894
19895 int
19896 main ()
19897 {
19898 /* FIXME: Include the comments suggested by Paul. */
19899 #ifndef __cplusplus
19900   /* Ultrix mips cc rejects this.  */
19901   typedef int charset[2];
19902   const charset x;
19903   /* SunOS 4.1.1 cc rejects this.  */
19904   char const *const *ccp;
19905   char **p;
19906   /* NEC SVR4.0.2 mips cc rejects this.  */
19907   struct point {int x, y;};
19908   static struct point const zero = {0,0};
19909   /* AIX XL C 1.02.0.0 rejects this.
19910      It does not let you subtract one const X* pointer from another in
19911      an arm of an if-expression whose if-part is not a constant
19912      expression */
19913   const char *g = "string";
19914   ccp = &g + (g ? g-g : 0);
19915   /* HPUX 7.0 cc rejects these. */
19916   ++ccp;
19917   p = (char**) ccp;
19918   ccp = (char const *const *) p;
19919   { /* SCO 3.2v4 cc rejects this.  */
19920     char *t;
19921     char const *s = 0 ? (char *) 0 : (char const *) 0;
19922
19923     *t++ = 0;
19924   }
19925   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
19926     int x[] = {25, 17};
19927     const int *foo = &x[0];
19928     ++foo;
19929   }
19930   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
19931     typedef const int *iptr;
19932     iptr p = 0;
19933     ++p;
19934   }
19935   { /* AIX XL C 1.02.0.0 rejects this saying
19936        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
19937     struct s { int j; const int *ap[3]; };
19938     struct s *b; b->j = 5;
19939   }
19940   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
19941     const int foo = 10;
19942   }
19943 #endif
19944
19945   ;
19946   return 0;
19947 }
19948 _ACEOF
19949 rm -f conftest.$ac_objext
19950 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19951   (eval $ac_compile) 2>&5
19952   ac_status=$?
19953   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19954   (exit $ac_status); } &&
19955          { ac_try='test -s conftest.$ac_objext'
19956   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19957   (eval $ac_try) 2>&5
19958   ac_status=$?
19959   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19960   (exit $ac_status); }; }; then
19961   ac_cv_c_const=yes
19962 else
19963   echo "$as_me: failed program was:" >&5
19964 sed 's/^/| /' conftest.$ac_ext >&5
19965
19966 ac_cv_c_const=no
19967 fi
19968 rm -f conftest.$ac_objext conftest.$ac_ext
19969 fi
19970 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
19971 echo "${ECHO_T}$ac_cv_c_const" >&6
19972 if test $ac_cv_c_const = no; then
19973
19974 cat >>confdefs.h <<\_ACEOF
19975 #define const
19976 _ACEOF
19977
19978 fi
19979
19980 echo "$as_me:$LINENO: checking for inline" >&5
19981 echo $ECHO_N "checking for inline... $ECHO_C" >&6
19982 if test "${ac_cv_c_inline+set}" = set; then
19983   echo $ECHO_N "(cached) $ECHO_C" >&6
19984 else
19985   ac_cv_c_inline=no
19986 for ac_kw in inline __inline__ __inline; do
19987   cat >conftest.$ac_ext <<_ACEOF
19988 #line $LINENO "configure"
19989 /* confdefs.h.  */
19990 _ACEOF
19991 cat confdefs.h >>conftest.$ac_ext
19992 cat >>conftest.$ac_ext <<_ACEOF
19993 /* end confdefs.h.  */
19994 #ifndef __cplusplus
19995 typedef int foo_t;
19996 static $ac_kw foo_t static_foo () {return 0; }
19997 $ac_kw foo_t foo () {return 0; }
19998 #endif
19999
20000 _ACEOF
20001 rm -f conftest.$ac_objext
20002 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20003   (eval $ac_compile) 2>&5
20004   ac_status=$?
20005   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20006   (exit $ac_status); } &&
20007          { ac_try='test -s conftest.$ac_objext'
20008   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20009   (eval $ac_try) 2>&5
20010   ac_status=$?
20011   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20012   (exit $ac_status); }; }; then
20013   ac_cv_c_inline=$ac_kw; break
20014 else
20015   echo "$as_me: failed program was:" >&5
20016 sed 's/^/| /' conftest.$ac_ext >&5
20017
20018 fi
20019 rm -f conftest.$ac_objext conftest.$ac_ext
20020 done
20021
20022 fi
20023 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
20024 echo "${ECHO_T}$ac_cv_c_inline" >&6
20025 case $ac_cv_c_inline in
20026   inline | yes) ;;
20027   no)
20028 cat >>confdefs.h <<\_ACEOF
20029 #define inline
20030 _ACEOF
20031  ;;
20032   *)  cat >>confdefs.h <<_ACEOF
20033 #define inline $ac_cv_c_inline
20034 _ACEOF
20035  ;;
20036 esac
20037
20038
20039 echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
20040 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
20041 if test "${ac_cv_c_bigendian+set}" = set; then
20042   echo $ECHO_N "(cached) $ECHO_C" >&6
20043 else
20044   # See if sys/param.h defines the BYTE_ORDER macro.
20045 cat >conftest.$ac_ext <<_ACEOF
20046 #line $LINENO "configure"
20047 /* confdefs.h.  */
20048 _ACEOF
20049 cat confdefs.h >>conftest.$ac_ext
20050 cat >>conftest.$ac_ext <<_ACEOF
20051 /* end confdefs.h.  */
20052 #include <sys/types.h>
20053 #include <sys/param.h>
20054
20055 int
20056 main ()
20057 {
20058 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
20059  bogus endian macros
20060 #endif
20061
20062   ;
20063   return 0;
20064 }
20065 _ACEOF
20066 rm -f conftest.$ac_objext
20067 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20068   (eval $ac_compile) 2>&5
20069   ac_status=$?
20070   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20071   (exit $ac_status); } &&
20072          { ac_try='test -s conftest.$ac_objext'
20073   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20074   (eval $ac_try) 2>&5
20075   ac_status=$?
20076   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20077   (exit $ac_status); }; }; then
20078   # It does; now see whether it defined to BIG_ENDIAN or not.
20079 cat >conftest.$ac_ext <<_ACEOF
20080 #line $LINENO "configure"
20081 /* confdefs.h.  */
20082 _ACEOF
20083 cat confdefs.h >>conftest.$ac_ext
20084 cat >>conftest.$ac_ext <<_ACEOF
20085 /* end confdefs.h.  */
20086 #include <sys/types.h>
20087 #include <sys/param.h>
20088
20089 int
20090 main ()
20091 {
20092 #if BYTE_ORDER != BIG_ENDIAN
20093  not big endian
20094 #endif
20095
20096   ;
20097   return 0;
20098 }
20099 _ACEOF
20100 rm -f conftest.$ac_objext
20101 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20102   (eval $ac_compile) 2>&5
20103   ac_status=$?
20104   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20105   (exit $ac_status); } &&
20106          { ac_try='test -s conftest.$ac_objext'
20107   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20108   (eval $ac_try) 2>&5
20109   ac_status=$?
20110   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20111   (exit $ac_status); }; }; then
20112   ac_cv_c_bigendian=yes
20113 else
20114   echo "$as_me: failed program was:" >&5
20115 sed 's/^/| /' conftest.$ac_ext >&5
20116
20117 ac_cv_c_bigendian=no
20118 fi
20119 rm -f conftest.$ac_objext conftest.$ac_ext
20120 else
20121   echo "$as_me: failed program was:" >&5
20122 sed 's/^/| /' conftest.$ac_ext >&5
20123
20124 # It does not; compile a test program.
20125 if test "$cross_compiling" = yes; then
20126   # try to guess the endianness by grepping values into an object file
20127   ac_cv_c_bigendian=unknown
20128   cat >conftest.$ac_ext <<_ACEOF
20129 #line $LINENO "configure"
20130 /* confdefs.h.  */
20131 _ACEOF
20132 cat confdefs.h >>conftest.$ac_ext
20133 cat >>conftest.$ac_ext <<_ACEOF
20134 /* end confdefs.h.  */
20135 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
20136 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
20137 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
20138 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
20139 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
20140 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
20141 int
20142 main ()
20143 {
20144  _ascii (); _ebcdic ();
20145   ;
20146   return 0;
20147 }
20148 _ACEOF
20149 rm -f conftest.$ac_objext
20150 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20151   (eval $ac_compile) 2>&5
20152   ac_status=$?
20153   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20154   (exit $ac_status); } &&
20155          { ac_try='test -s conftest.$ac_objext'
20156   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20157   (eval $ac_try) 2>&5
20158   ac_status=$?
20159   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20160   (exit $ac_status); }; }; then
20161   if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
20162   ac_cv_c_bigendian=yes
20163 fi
20164 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
20165   if test "$ac_cv_c_bigendian" = unknown; then
20166     ac_cv_c_bigendian=no
20167   else
20168     # finding both strings is unlikely to happen, but who knows?
20169     ac_cv_c_bigendian=unknown
20170   fi
20171 fi
20172 else
20173   echo "$as_me: failed program was:" >&5
20174 sed 's/^/| /' conftest.$ac_ext >&5
20175
20176 fi
20177 rm -f conftest.$ac_objext conftest.$ac_ext
20178 else
20179   cat >conftest.$ac_ext <<_ACEOF
20180 #line $LINENO "configure"
20181 /* confdefs.h.  */
20182 _ACEOF
20183 cat confdefs.h >>conftest.$ac_ext
20184 cat >>conftest.$ac_ext <<_ACEOF
20185 /* end confdefs.h.  */
20186 int
20187 main ()
20188 {
20189   /* Are we little or big endian?  From Harbison&Steele.  */
20190   union
20191   {
20192     long l;
20193     char c[sizeof (long)];
20194   } u;
20195   u.l = 1;
20196   exit (u.c[sizeof (long) - 1] == 1);
20197 }
20198 _ACEOF
20199 rm -f conftest$ac_exeext
20200 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20201   (eval $ac_link) 2>&5
20202   ac_status=$?
20203   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20204   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20205   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20206   (eval $ac_try) 2>&5
20207   ac_status=$?
20208   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20209   (exit $ac_status); }; }; then
20210   ac_cv_c_bigendian=no
20211 else
20212   echo "$as_me: program exited with status $ac_status" >&5
20213 echo "$as_me: failed program was:" >&5
20214 sed 's/^/| /' conftest.$ac_ext >&5
20215
20216 ( exit $ac_status )
20217 ac_cv_c_bigendian=yes
20218 fi
20219 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20220 fi
20221 fi
20222 rm -f conftest.$ac_objext conftest.$ac_ext
20223 fi
20224 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
20225 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
20226 case $ac_cv_c_bigendian in
20227   yes)
20228     cat >>confdefs.h <<\_ACEOF
20229 #define ENDIAN_BIG 1
20230 _ACEOF
20231  ;;
20232   no)
20233     cat >>confdefs.h <<\_ACEOF
20234 #define ENDIAN_LITTLE 1
20235 _ACEOF
20236  ;;
20237   *)
20238     { { echo "$as_me:$LINENO: error: unknown endianness
20239 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
20240 echo "$as_me: error: unknown endianness
20241 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
20242    { (exit 1); exit 1; }; } ;;
20243 esac
20244
20245
20246 echo "$as_me:$LINENO: checking for pid_t" >&5
20247 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
20248 if test "${ac_cv_type_pid_t+set}" = set; then
20249   echo $ECHO_N "(cached) $ECHO_C" >&6
20250 else
20251   cat >conftest.$ac_ext <<_ACEOF
20252 #line $LINENO "configure"
20253 /* confdefs.h.  */
20254 _ACEOF
20255 cat confdefs.h >>conftest.$ac_ext
20256 cat >>conftest.$ac_ext <<_ACEOF
20257 /* end confdefs.h.  */
20258 $ac_includes_default
20259 int
20260 main ()
20261 {
20262 if ((pid_t *) 0)
20263   return 0;
20264 if (sizeof (pid_t))
20265   return 0;
20266   ;
20267   return 0;
20268 }
20269 _ACEOF
20270 rm -f conftest.$ac_objext
20271 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20272   (eval $ac_compile) 2>&5
20273   ac_status=$?
20274   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20275   (exit $ac_status); } &&
20276          { ac_try='test -s conftest.$ac_objext'
20277   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20278   (eval $ac_try) 2>&5
20279   ac_status=$?
20280   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20281   (exit $ac_status); }; }; then
20282   ac_cv_type_pid_t=yes
20283 else
20284   echo "$as_me: failed program was:" >&5
20285 sed 's/^/| /' conftest.$ac_ext >&5
20286
20287 ac_cv_type_pid_t=no
20288 fi
20289 rm -f conftest.$ac_objext conftest.$ac_ext
20290 fi
20291 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
20292 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
20293 if test $ac_cv_type_pid_t = yes; then
20294   :
20295 else
20296
20297 cat >>confdefs.h <<_ACEOF
20298 #define pid_t int
20299 _ACEOF
20300
20301 fi
20302
20303 echo "$as_me:$LINENO: checking for size_t" >&5
20304 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
20305 if test "${ac_cv_type_size_t+set}" = set; then
20306   echo $ECHO_N "(cached) $ECHO_C" >&6
20307 else
20308   cat >conftest.$ac_ext <<_ACEOF
20309 #line $LINENO "configure"
20310 /* confdefs.h.  */
20311 _ACEOF
20312 cat confdefs.h >>conftest.$ac_ext
20313 cat >>conftest.$ac_ext <<_ACEOF
20314 /* end confdefs.h.  */
20315 $ac_includes_default
20316 int
20317 main ()
20318 {
20319 if ((size_t *) 0)
20320   return 0;
20321 if (sizeof (size_t))
20322   return 0;
20323   ;
20324   return 0;
20325 }
20326 _ACEOF
20327 rm -f conftest.$ac_objext
20328 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20329   (eval $ac_compile) 2>&5
20330   ac_status=$?
20331   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20332   (exit $ac_status); } &&
20333          { ac_try='test -s conftest.$ac_objext'
20334   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20335   (eval $ac_try) 2>&5
20336   ac_status=$?
20337   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20338   (exit $ac_status); }; }; then
20339   ac_cv_type_size_t=yes
20340 else
20341   echo "$as_me: failed program was:" >&5
20342 sed 's/^/| /' conftest.$ac_ext >&5
20343
20344 ac_cv_type_size_t=no
20345 fi
20346 rm -f conftest.$ac_objext conftest.$ac_ext
20347 fi
20348 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
20349 echo "${ECHO_T}$ac_cv_type_size_t" >&6
20350 if test $ac_cv_type_size_t = yes; then
20351   :
20352 else
20353
20354 cat >>confdefs.h <<_ACEOF
20355 #define size_t unsigned
20356 _ACEOF
20357
20358 fi
20359
20360 echo "$as_me:$LINENO: checking for int64_t" >&5
20361 echo $ECHO_N "checking for int64_t... $ECHO_C" >&6
20362 if test "${ac_cv_type_int64_t+set}" = set; then
20363   echo $ECHO_N "(cached) $ECHO_C" >&6
20364 else
20365   cat >conftest.$ac_ext <<_ACEOF
20366 #line $LINENO "configure"
20367 /* confdefs.h.  */
20368 _ACEOF
20369 cat confdefs.h >>conftest.$ac_ext
20370 cat >>conftest.$ac_ext <<_ACEOF
20371 /* end confdefs.h.  */
20372 $ac_includes_default
20373 int
20374 main ()
20375 {
20376 if ((int64_t *) 0)
20377   return 0;
20378 if (sizeof (int64_t))
20379   return 0;
20380   ;
20381   return 0;
20382 }
20383 _ACEOF
20384 rm -f conftest.$ac_objext
20385 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20386   (eval $ac_compile) 2>&5
20387   ac_status=$?
20388   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20389   (exit $ac_status); } &&
20390          { ac_try='test -s conftest.$ac_objext'
20391   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20392   (eval $ac_try) 2>&5
20393   ac_status=$?
20394   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20395   (exit $ac_status); }; }; then
20396   ac_cv_type_int64_t=yes
20397 else
20398   echo "$as_me: failed program was:" >&5
20399 sed 's/^/| /' conftest.$ac_ext >&5
20400
20401 ac_cv_type_int64_t=no
20402 fi
20403 rm -f conftest.$ac_objext conftest.$ac_ext
20404 fi
20405 echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
20406 echo "${ECHO_T}$ac_cv_type_int64_t" >&6
20407 if test $ac_cv_type_int64_t = yes; then
20408
20409 cat >>confdefs.h <<_ACEOF
20410 #define HAVE_INT64_T 1
20411 _ACEOF
20412
20413
20414 else
20415   { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5
20416 echo "$as_me: error: Type int64_t required but not found" >&2;}
20417    { (exit 1); exit 1; }; }
20418 fi
20419
20420 echo "$as_me:$LINENO: checking for uint64_t" >&5
20421 echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6
20422 if test "${ac_cv_type_uint64_t+set}" = set; then
20423   echo $ECHO_N "(cached) $ECHO_C" >&6
20424 else
20425   cat >conftest.$ac_ext <<_ACEOF
20426 #line $LINENO "configure"
20427 /* confdefs.h.  */
20428 _ACEOF
20429 cat confdefs.h >>conftest.$ac_ext
20430 cat >>conftest.$ac_ext <<_ACEOF
20431 /* end confdefs.h.  */
20432 $ac_includes_default
20433 int
20434 main ()
20435 {
20436 if ((uint64_t *) 0)
20437   return 0;
20438 if (sizeof (uint64_t))
20439   return 0;
20440   ;
20441   return 0;
20442 }
20443 _ACEOF
20444 rm -f conftest.$ac_objext
20445 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20446   (eval $ac_compile) 2>&5
20447   ac_status=$?
20448   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20449   (exit $ac_status); } &&
20450          { ac_try='test -s conftest.$ac_objext'
20451   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20452   (eval $ac_try) 2>&5
20453   ac_status=$?
20454   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20455   (exit $ac_status); }; }; then
20456   ac_cv_type_uint64_t=yes
20457 else
20458   echo "$as_me: failed program was:" >&5
20459 sed 's/^/| /' conftest.$ac_ext >&5
20460
20461 ac_cv_type_uint64_t=no
20462 fi
20463 rm -f conftest.$ac_objext conftest.$ac_ext
20464 fi
20465 echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
20466 echo "${ECHO_T}$ac_cv_type_uint64_t" >&6
20467 if test $ac_cv_type_uint64_t = yes; then
20468
20469 cat >>confdefs.h <<_ACEOF
20470 #define HAVE_UINT64_T 1
20471 _ACEOF
20472
20473
20474 else
20475   { { echo "$as_me:$LINENO: error: Type uint64_t required but not found" >&5
20476 echo "$as_me: error: Type uint64_t required but not found" >&2;}
20477    { (exit 1); exit 1; }; }
20478 fi
20479
20480 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
20481 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
20482 if test "${ac_cv_header_time+set}" = set; then
20483   echo $ECHO_N "(cached) $ECHO_C" >&6
20484 else
20485   cat >conftest.$ac_ext <<_ACEOF
20486 #line $LINENO "configure"
20487 /* confdefs.h.  */
20488 _ACEOF
20489 cat confdefs.h >>conftest.$ac_ext
20490 cat >>conftest.$ac_ext <<_ACEOF
20491 /* end confdefs.h.  */
20492 #include <sys/types.h>
20493 #include <sys/time.h>
20494 #include <time.h>
20495
20496 int
20497 main ()
20498 {
20499 if ((struct tm *) 0)
20500 return 0;
20501   ;
20502   return 0;
20503 }
20504 _ACEOF
20505 rm -f conftest.$ac_objext
20506 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20507   (eval $ac_compile) 2>&5
20508   ac_status=$?
20509   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20510   (exit $ac_status); } &&
20511          { ac_try='test -s conftest.$ac_objext'
20512   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20513   (eval $ac_try) 2>&5
20514   ac_status=$?
20515   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20516   (exit $ac_status); }; }; then
20517   ac_cv_header_time=yes
20518 else
20519   echo "$as_me: failed program was:" >&5
20520 sed 's/^/| /' conftest.$ac_ext >&5
20521
20522 ac_cv_header_time=no
20523 fi
20524 rm -f conftest.$ac_objext conftest.$ac_ext
20525 fi
20526 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
20527 echo "${ECHO_T}$ac_cv_header_time" >&6
20528 if test $ac_cv_header_time = yes; then
20529
20530 cat >>confdefs.h <<\_ACEOF
20531 #define TIME_WITH_SYS_TIME 1
20532 _ACEOF
20533
20534 fi
20535
20536 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
20537 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
20538 if test "${ac_cv_struct_tm+set}" = set; then
20539   echo $ECHO_N "(cached) $ECHO_C" >&6
20540 else
20541   cat >conftest.$ac_ext <<_ACEOF
20542 #line $LINENO "configure"
20543 /* confdefs.h.  */
20544 _ACEOF
20545 cat confdefs.h >>conftest.$ac_ext
20546 cat >>conftest.$ac_ext <<_ACEOF
20547 /* end confdefs.h.  */
20548 #include <sys/types.h>
20549 #include <time.h>
20550
20551 int
20552 main ()
20553 {
20554 struct tm *tp; tp->tm_sec;
20555   ;
20556   return 0;
20557 }
20558 _ACEOF
20559 rm -f conftest.$ac_objext
20560 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20561   (eval $ac_compile) 2>&5
20562   ac_status=$?
20563   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20564   (exit $ac_status); } &&
20565          { ac_try='test -s conftest.$ac_objext'
20566   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20567   (eval $ac_try) 2>&5
20568   ac_status=$?
20569   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20570   (exit $ac_status); }; }; then
20571   ac_cv_struct_tm=time.h
20572 else
20573   echo "$as_me: failed program was:" >&5
20574 sed 's/^/| /' conftest.$ac_ext >&5
20575
20576 ac_cv_struct_tm=sys/time.h
20577 fi
20578 rm -f conftest.$ac_objext conftest.$ac_ext
20579 fi
20580 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
20581 echo "${ECHO_T}$ac_cv_struct_tm" >&6
20582 if test $ac_cv_struct_tm = sys/time.h; then
20583
20584 cat >>confdefs.h <<\_ACEOF
20585 #define TM_IN_SYS_TIME 1
20586 _ACEOF
20587
20588 fi
20589
20590
20591 echo "$as_me:$LINENO: checking whether the compiler implements namespaces" >&5
20592 echo $ECHO_N "checking whether the compiler implements namespaces... $ECHO_C" >&6
20593 if test "${ac_cv_cxx_namespaces+set}" = set; then
20594   echo $ECHO_N "(cached) $ECHO_C" >&6
20595 else
20596
20597
20598  ac_ext=cc
20599 ac_cpp='$CXXCPP $CPPFLAGS'
20600 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20601 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20602 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20603
20604  cat >conftest.$ac_ext <<_ACEOF
20605 #line $LINENO "configure"
20606 /* confdefs.h.  */
20607 _ACEOF
20608 cat confdefs.h >>conftest.$ac_ext
20609 cat >>conftest.$ac_ext <<_ACEOF
20610 /* end confdefs.h.  */
20611 namespace Outer { namespace Inner { int i = 0; }}
20612 int
20613 main ()
20614 {
20615 using namespace Outer::Inner; return i;
20616   ;
20617   return 0;
20618 }
20619 _ACEOF
20620 rm -f conftest.$ac_objext
20621 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20622   (eval $ac_compile) 2>&5
20623   ac_status=$?
20624   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20625   (exit $ac_status); } &&
20626          { ac_try='test -s conftest.$ac_objext'
20627   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20628   (eval $ac_try) 2>&5
20629   ac_status=$?
20630   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20631   (exit $ac_status); }; }; then
20632   ac_cv_cxx_namespaces=yes
20633 else
20634   echo "$as_me: failed program was:" >&5
20635 sed 's/^/| /' conftest.$ac_ext >&5
20636
20637 ac_cv_cxx_namespaces=no
20638 fi
20639 rm -f conftest.$ac_objext conftest.$ac_ext
20640  ac_ext=c
20641 ac_cpp='$CPP $CPPFLAGS'
20642 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20643 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20644 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20645
20646
20647 fi
20648 echo "$as_me:$LINENO: result: $ac_cv_cxx_namespaces" >&5
20649 echo "${ECHO_T}$ac_cv_cxx_namespaces" >&6
20650 if test "$ac_cv_cxx_namespaces" = yes; then
20651
20652 cat >>confdefs.h <<\_ACEOF
20653 #define HAVE_NAMESPACES
20654 _ACEOF
20655
20656 fi
20657
20658 echo "$as_me:$LINENO: checking whether the compiler has ext/hash_map" >&5
20659 echo $ECHO_N "checking whether the compiler has ext/hash_map... $ECHO_C" >&6
20660 if test "${ac_cv_cxx_have_ext_hash_map+set}" = set; then
20661   echo $ECHO_N "(cached) $ECHO_C" >&6
20662 else
20663
20664
20665
20666   ac_ext=cc
20667 ac_cpp='$CXXCPP $CPPFLAGS'
20668 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20669 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20670 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20671
20672   cat >conftest.$ac_ext <<_ACEOF
20673 #line $LINENO "configure"
20674 /* confdefs.h.  */
20675 _ACEOF
20676 cat confdefs.h >>conftest.$ac_ext
20677 cat >>conftest.$ac_ext <<_ACEOF
20678 /* end confdefs.h.  */
20679 #include <ext/hash_map>
20680 #ifdef HAVE_NAMESPACES
20681 using namespace std;
20682 #endif
20683 int
20684 main ()
20685 {
20686 hash_map<int, int> t; return 0;
20687   ;
20688   return 0;
20689 }
20690 _ACEOF
20691 rm -f conftest.$ac_objext
20692 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20693   (eval $ac_compile) 2>&5
20694   ac_status=$?
20695   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20696   (exit $ac_status); } &&
20697          { ac_try='test -s conftest.$ac_objext'
20698   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20699   (eval $ac_try) 2>&5
20700   ac_status=$?
20701   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20702   (exit $ac_status); }; }; then
20703   ac_cv_cxx_have_ext_hash_map=std
20704 else
20705   echo "$as_me: failed program was:" >&5
20706 sed 's/^/| /' conftest.$ac_ext >&5
20707
20708 ac_cv_cxx_have_ext_hash_map=no
20709 fi
20710 rm -f conftest.$ac_objext conftest.$ac_ext
20711   cat >conftest.$ac_ext <<_ACEOF
20712 #line $LINENO "configure"
20713 /* confdefs.h.  */
20714 _ACEOF
20715 cat confdefs.h >>conftest.$ac_ext
20716 cat >>conftest.$ac_ext <<_ACEOF
20717 /* end confdefs.h.  */
20718 #include <ext/hash_map>
20719 #ifdef HAVE_NAMESPACES
20720 using namespace __gnu_cxx;
20721 #endif
20722 int
20723 main ()
20724 {
20725 hash_map<int, int> t; return 0;
20726   ;
20727   return 0;
20728 }
20729 _ACEOF
20730 rm -f conftest.$ac_objext
20731 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20732   (eval $ac_compile) 2>&5
20733   ac_status=$?
20734   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20735   (exit $ac_status); } &&
20736          { ac_try='test -s conftest.$ac_objext'
20737   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20738   (eval $ac_try) 2>&5
20739   ac_status=$?
20740   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20741   (exit $ac_status); }; }; then
20742   ac_cv_cxx_have_ext_hash_map=gnu
20743 else
20744   echo "$as_me: failed program was:" >&5
20745 sed 's/^/| /' conftest.$ac_ext >&5
20746
20747 ac_cv_cxx_have_ext_hash_map=no
20748 fi
20749 rm -f conftest.$ac_objext conftest.$ac_ext
20750   ac_ext=c
20751 ac_cpp='$CPP $CPPFLAGS'
20752 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20753 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20754 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20755
20756
20757 fi
20758 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_ext_hash_map" >&5
20759 echo "${ECHO_T}$ac_cv_cxx_have_ext_hash_map" >&6
20760 if test "$ac_cv_cxx_have_ext_hash_map" = std; then
20761
20762 cat >>confdefs.h <<\_ACEOF
20763 #define HAVE_STD_EXT_HASH_MAP
20764 _ACEOF
20765
20766 fi
20767 if test "$ac_cv_cxx_have_ext_hash_map" = gnu; then
20768
20769 cat >>confdefs.h <<\_ACEOF
20770 #define HAVE_GNU_EXT_HASH_MAP
20771 _ACEOF
20772
20773 fi
20774
20775 echo "$as_me:$LINENO: checking whether the compiler has ext/hash_set" >&5
20776 echo $ECHO_N "checking whether the compiler has ext/hash_set... $ECHO_C" >&6
20777 if test "${ac_cv_cxx_have_ext_hash_set+set}" = set; then
20778   echo $ECHO_N "(cached) $ECHO_C" >&6
20779 else
20780
20781
20782
20783   ac_ext=cc
20784 ac_cpp='$CXXCPP $CPPFLAGS'
20785 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20786 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20787 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20788
20789   cat >conftest.$ac_ext <<_ACEOF
20790 #line $LINENO "configure"
20791 /* confdefs.h.  */
20792 _ACEOF
20793 cat confdefs.h >>conftest.$ac_ext
20794 cat >>conftest.$ac_ext <<_ACEOF
20795 /* end confdefs.h.  */
20796 #include <ext/hash_set>
20797 #ifdef HAVE_NAMESPACES
20798 using namespace std;
20799 #endif
20800 int
20801 main ()
20802 {
20803 hash_set<int> t; return 0;
20804   ;
20805   return 0;
20806 }
20807 _ACEOF
20808 rm -f conftest.$ac_objext
20809 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20810   (eval $ac_compile) 2>&5
20811   ac_status=$?
20812   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20813   (exit $ac_status); } &&
20814          { ac_try='test -s conftest.$ac_objext'
20815   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20816   (eval $ac_try) 2>&5
20817   ac_status=$?
20818   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20819   (exit $ac_status); }; }; then
20820   ac_cv_cxx_have_ext_hash_set=std
20821 else
20822   echo "$as_me: failed program was:" >&5
20823 sed 's/^/| /' conftest.$ac_ext >&5
20824
20825 ac_cv_cxx_have_ext_hash_set=no
20826 fi
20827 rm -f conftest.$ac_objext conftest.$ac_ext
20828   cat >conftest.$ac_ext <<_ACEOF
20829 #line $LINENO "configure"
20830 /* confdefs.h.  */
20831 _ACEOF
20832 cat confdefs.h >>conftest.$ac_ext
20833 cat >>conftest.$ac_ext <<_ACEOF
20834 /* end confdefs.h.  */
20835 #include <ext/hash_set>
20836 #ifdef HAVE_NAMESPACES
20837 using namespace __gnu_cxx;
20838 #endif
20839 int
20840 main ()
20841 {
20842 hash_set<int> t; return 0;
20843   ;
20844   return 0;
20845 }
20846 _ACEOF
20847 rm -f conftest.$ac_objext
20848 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20849   (eval $ac_compile) 2>&5
20850   ac_status=$?
20851   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20852   (exit $ac_status); } &&
20853          { ac_try='test -s conftest.$ac_objext'
20854   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20855   (eval $ac_try) 2>&5
20856   ac_status=$?
20857   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20858   (exit $ac_status); }; }; then
20859   ac_cv_cxx_have_ext_hash_set=gnu
20860 else
20861   echo "$as_me: failed program was:" >&5
20862 sed 's/^/| /' conftest.$ac_ext >&5
20863
20864 ac_cv_cxx_have_ext_hash_set=no
20865 fi
20866 rm -f conftest.$ac_objext conftest.$ac_ext
20867   ac_ext=c
20868 ac_cpp='$CPP $CPPFLAGS'
20869 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20870 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20871 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20872
20873
20874 fi
20875 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_ext_hash_set" >&5
20876 echo "${ECHO_T}$ac_cv_cxx_have_ext_hash_set" >&6
20877 if test "$ac_cv_cxx_have_ext_hash_set" = std; then
20878
20879 cat >>confdefs.h <<\_ACEOF
20880 #define HAVE_STD_EXT_HASH_SET
20881 _ACEOF
20882
20883 fi
20884 if test "$ac_cv_cxx_have_ext_hash_set" = gnu; then
20885
20886 cat >>confdefs.h <<\_ACEOF
20887 #define HAVE_GNU_EXT_HASH_SET
20888 _ACEOF
20889
20890 fi
20891
20892 echo "$as_me:$LINENO: checking whether the compiler has ext/slist" >&5
20893 echo $ECHO_N "checking whether the compiler has ext/slist... $ECHO_C" >&6
20894 if test "${ac_cv_cxx_have_ext_slist+set}" = set; then
20895   echo $ECHO_N "(cached) $ECHO_C" >&6
20896 else
20897
20898
20899
20900   ac_ext=cc
20901 ac_cpp='$CXXCPP $CPPFLAGS'
20902 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20903 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20904 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20905
20906   cat >conftest.$ac_ext <<_ACEOF
20907 #line $LINENO "configure"
20908 /* confdefs.h.  */
20909 _ACEOF
20910 cat confdefs.h >>conftest.$ac_ext
20911 cat >>conftest.$ac_ext <<_ACEOF
20912 /* end confdefs.h.  */
20913 #include <ext/slist>
20914 #ifdef HAVE_NAMESPACES
20915 using namespace std;
20916 #endif
20917 int
20918 main ()
20919 {
20920 slist<int> s; return 0;
20921   ;
20922   return 0;
20923 }
20924 _ACEOF
20925 rm -f conftest.$ac_objext
20926 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20927   (eval $ac_compile) 2>&5
20928   ac_status=$?
20929   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20930   (exit $ac_status); } &&
20931          { ac_try='test -s conftest.$ac_objext'
20932   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20933   (eval $ac_try) 2>&5
20934   ac_status=$?
20935   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20936   (exit $ac_status); }; }; then
20937   ac_cv_cxx_have_ext_slist=std
20938 else
20939   echo "$as_me: failed program was:" >&5
20940 sed 's/^/| /' conftest.$ac_ext >&5
20941
20942 ac_cv_cxx_have_ext_slist=no
20943 fi
20944 rm -f conftest.$ac_objext conftest.$ac_ext
20945   cat >conftest.$ac_ext <<_ACEOF
20946 #line $LINENO "configure"
20947 /* confdefs.h.  */
20948 _ACEOF
20949 cat confdefs.h >>conftest.$ac_ext
20950 cat >>conftest.$ac_ext <<_ACEOF
20951 /* end confdefs.h.  */
20952 #include <ext/slist>
20953 #ifdef HAVE_NAMESPACES
20954 using namespace __gnu_cxx;
20955 #endif
20956 int
20957 main ()
20958 {
20959 slist<int> s; return 0;
20960   ;
20961   return 0;
20962 }
20963 _ACEOF
20964 rm -f conftest.$ac_objext
20965 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20966   (eval $ac_compile) 2>&5
20967   ac_status=$?
20968   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20969   (exit $ac_status); } &&
20970          { ac_try='test -s conftest.$ac_objext'
20971   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20972   (eval $ac_try) 2>&5
20973   ac_status=$?
20974   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20975   (exit $ac_status); }; }; then
20976   ac_cv_cxx_have_ext_slist=gnu
20977 else
20978   echo "$as_me: failed program was:" >&5
20979 sed 's/^/| /' conftest.$ac_ext >&5
20980
20981 ac_cv_cxx_have_ext_slist=no
20982 fi
20983 rm -f conftest.$ac_objext conftest.$ac_ext
20984
20985   ac_ext=c
20986 ac_cpp='$CPP $CPPFLAGS'
20987 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20988 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20989 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20990
20991
20992 fi
20993 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_ext_slist" >&5
20994 echo "${ECHO_T}$ac_cv_cxx_have_ext_slist" >&6
20995 if test "$ac_cv_cxx_have_ext_slist" = std; then
20996
20997 cat >>confdefs.h <<\_ACEOF
20998 #define HAVE_EXT_SLIST std
20999 _ACEOF
21000
21001 fi
21002 if test "$ac_cv_cxx_have_ext_slist" = gnu; then
21003
21004 cat >>confdefs.h <<\_ACEOF
21005 #define HAVE_EXT_SLIST gnu
21006 _ACEOF
21007
21008 fi
21009
21010 echo "$as_me:$LINENO: checking whether the compiler has the standard iterator" >&5
21011 echo $ECHO_N "checking whether the compiler has the standard iterator... $ECHO_C" >&6
21012 if test "${ac_cv_cxx_have_std_iterator+set}" = set; then
21013   echo $ECHO_N "(cached) $ECHO_C" >&6
21014 else
21015
21016
21017
21018   ac_ext=cc
21019 ac_cpp='$CXXCPP $CPPFLAGS'
21020 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21021 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21022 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21023
21024   cat >conftest.$ac_ext <<_ACEOF
21025 #line $LINENO "configure"
21026 /* confdefs.h.  */
21027 _ACEOF
21028 cat confdefs.h >>conftest.$ac_ext
21029 cat >>conftest.$ac_ext <<_ACEOF
21030 /* end confdefs.h.  */
21031 #include <iterator>
21032 #ifdef HAVE_NAMESPACES
21033 using namespace std;
21034 #endif
21035 int
21036 main ()
21037 {
21038 iterator<int,int,int> t; return 0;
21039   ;
21040   return 0;
21041 }
21042 _ACEOF
21043 rm -f conftest.$ac_objext
21044 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21045   (eval $ac_compile) 2>&5
21046   ac_status=$?
21047   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21048   (exit $ac_status); } &&
21049          { ac_try='test -s conftest.$ac_objext'
21050   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21051   (eval $ac_try) 2>&5
21052   ac_status=$?
21053   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21054   (exit $ac_status); }; }; then
21055   ac_cv_cxx_have_std_iterator=yes
21056 else
21057   echo "$as_me: failed program was:" >&5
21058 sed 's/^/| /' conftest.$ac_ext >&5
21059
21060 ac_cv_cxx_have_std_iterator=no
21061 fi
21062 rm -f conftest.$ac_objext conftest.$ac_ext
21063   ac_ext=c
21064 ac_cpp='$CPP $CPPFLAGS'
21065 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21066 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21067 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21068
21069
21070 fi
21071 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_iterator" >&5
21072 echo "${ECHO_T}$ac_cv_cxx_have_std_iterator" >&6
21073 if test "$ac_cv_cxx_have_std_iterator" = yes; then
21074
21075 cat >>confdefs.h <<\_ACEOF
21076 #define HAVE_STD_ITERATOR
21077 _ACEOF
21078
21079 fi
21080
21081 echo "$as_me:$LINENO: checking whether the compiler has the bidirectional iterator" >&5
21082 echo $ECHO_N "checking whether the compiler has the bidirectional iterator... $ECHO_C" >&6
21083 if test "${ac_cv_cxx_have_bi_iterator+set}" = set; then
21084   echo $ECHO_N "(cached) $ECHO_C" >&6
21085 else
21086
21087
21088
21089   ac_ext=cc
21090 ac_cpp='$CXXCPP $CPPFLAGS'
21091 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21092 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21093 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21094
21095   cat >conftest.$ac_ext <<_ACEOF
21096 #line $LINENO "configure"
21097 /* confdefs.h.  */
21098 _ACEOF
21099 cat confdefs.h >>conftest.$ac_ext
21100 cat >>conftest.$ac_ext <<_ACEOF
21101 /* end confdefs.h.  */
21102 #include <iterator>
21103 #ifdef HAVE_NAMESPACES
21104 using namespace std;
21105 #endif
21106 int
21107 main ()
21108 {
21109 bidirectional_iterator<int,int> t; return 0;
21110   ;
21111   return 0;
21112 }
21113 _ACEOF
21114 rm -f conftest.$ac_objext
21115 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21116   (eval $ac_compile) 2>&5
21117   ac_status=$?
21118   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21119   (exit $ac_status); } &&
21120          { ac_try='test -s conftest.$ac_objext'
21121   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21122   (eval $ac_try) 2>&5
21123   ac_status=$?
21124   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21125   (exit $ac_status); }; }; then
21126   ac_cv_cxx_have_bi_iterator=yes
21127 else
21128   echo "$as_me: failed program was:" >&5
21129 sed 's/^/| /' conftest.$ac_ext >&5
21130
21131 ac_cv_cxx_have_bi_iterator=no
21132 fi
21133 rm -f conftest.$ac_objext conftest.$ac_ext
21134   ac_ext=c
21135 ac_cpp='$CPP $CPPFLAGS'
21136 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21137 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21138 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21139
21140
21141 fi
21142 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_bi_iterator" >&5
21143 echo "${ECHO_T}$ac_cv_cxx_have_bi_iterator" >&6
21144 if test "$ac_cv_cxx_have_bi_iterator" = yes; then
21145
21146 cat >>confdefs.h <<\_ACEOF
21147 #define HAVE_BI_ITERATOR
21148 _ACEOF
21149
21150 fi
21151
21152 echo "$as_me:$LINENO: checking whether the compiler has forward iterators" >&5
21153 echo $ECHO_N "checking whether the compiler has forward iterators... $ECHO_C" >&6
21154 if test "${ac_cv_cxx_have_fwd_iterator+set}" = set; then
21155   echo $ECHO_N "(cached) $ECHO_C" >&6
21156 else
21157
21158
21159
21160   ac_ext=cc
21161 ac_cpp='$CXXCPP $CPPFLAGS'
21162 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21163 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21164 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21165
21166   cat >conftest.$ac_ext <<_ACEOF
21167 #line $LINENO "configure"
21168 /* confdefs.h.  */
21169 _ACEOF
21170 cat confdefs.h >>conftest.$ac_ext
21171 cat >>conftest.$ac_ext <<_ACEOF
21172 /* end confdefs.h.  */
21173 #include <iterator>
21174 #ifdef HAVE_NAMESPACES
21175 using namespace std;
21176 #endif
21177 int
21178 main ()
21179 {
21180 forward_iterator<int,int> t; return 0;
21181   ;
21182   return 0;
21183 }
21184 _ACEOF
21185 rm -f conftest.$ac_objext
21186 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21187   (eval $ac_compile) 2>&5
21188   ac_status=$?
21189   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21190   (exit $ac_status); } &&
21191          { ac_try='test -s conftest.$ac_objext'
21192   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21193   (eval $ac_try) 2>&5
21194   ac_status=$?
21195   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21196   (exit $ac_status); }; }; then
21197   ac_cv_cxx_have_fwd_iterator=yes
21198 else
21199   echo "$as_me: failed program was:" >&5
21200 sed 's/^/| /' conftest.$ac_ext >&5
21201
21202 ac_cv_cxx_have_fwd_iterator=no
21203 fi
21204 rm -f conftest.$ac_objext conftest.$ac_ext
21205   ac_ext=c
21206 ac_cpp='$CPP $CPPFLAGS'
21207 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21208 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21209 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21210
21211
21212 fi
21213 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_fwd_iterator" >&5
21214 echo "${ECHO_T}$ac_cv_cxx_have_fwd_iterator" >&6
21215 if test "$ac_cv_cxx_have_fwd_iterator" = yes; then
21216
21217 cat >>confdefs.h <<\_ACEOF
21218 #define HAVE_FWD_ITERATOR
21219 _ACEOF
21220
21221 fi
21222
21223
21224 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
21225 # for constant arguments.  Useless!
21226 echo "$as_me:$LINENO: checking for working alloca.h" >&5
21227 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
21228 if test "${ac_cv_working_alloca_h+set}" = set; then
21229   echo $ECHO_N "(cached) $ECHO_C" >&6
21230 else
21231   cat >conftest.$ac_ext <<_ACEOF
21232 #line $LINENO "configure"
21233 /* confdefs.h.  */
21234 _ACEOF
21235 cat confdefs.h >>conftest.$ac_ext
21236 cat >>conftest.$ac_ext <<_ACEOF
21237 /* end confdefs.h.  */
21238 #include <alloca.h>
21239 int
21240 main ()
21241 {
21242 char *p = (char *) alloca (2 * sizeof (int));
21243   ;
21244   return 0;
21245 }
21246 _ACEOF
21247 rm -f conftest.$ac_objext conftest$ac_exeext
21248 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21249   (eval $ac_link) 2>&5
21250   ac_status=$?
21251   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21252   (exit $ac_status); } &&
21253          { ac_try='test -s conftest$ac_exeext'
21254   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21255   (eval $ac_try) 2>&5
21256   ac_status=$?
21257   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21258   (exit $ac_status); }; }; then
21259   ac_cv_working_alloca_h=yes
21260 else
21261   echo "$as_me: failed program was:" >&5
21262 sed 's/^/| /' conftest.$ac_ext >&5
21263
21264 ac_cv_working_alloca_h=no
21265 fi
21266 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21267 fi
21268 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
21269 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
21270 if test $ac_cv_working_alloca_h = yes; then
21271
21272 cat >>confdefs.h <<\_ACEOF
21273 #define HAVE_ALLOCA_H 1
21274 _ACEOF
21275
21276 fi
21277
21278 echo "$as_me:$LINENO: checking for alloca" >&5
21279 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
21280 if test "${ac_cv_func_alloca_works+set}" = set; then
21281   echo $ECHO_N "(cached) $ECHO_C" >&6
21282 else
21283   cat >conftest.$ac_ext <<_ACEOF
21284 #line $LINENO "configure"
21285 /* confdefs.h.  */
21286 _ACEOF
21287 cat confdefs.h >>conftest.$ac_ext
21288 cat >>conftest.$ac_ext <<_ACEOF
21289 /* end confdefs.h.  */
21290 #ifdef __GNUC__
21291 # define alloca __builtin_alloca
21292 #else
21293 # ifdef _MSC_VER
21294 #  include <malloc.h>
21295 #  define alloca _alloca
21296 # else
21297 #  if HAVE_ALLOCA_H
21298 #   include <alloca.h>
21299 #  else
21300 #   ifdef _AIX
21301  #pragma alloca
21302 #   else
21303 #    ifndef alloca /* predefined by HP cc +Olibcalls */
21304 char *alloca ();
21305 #    endif
21306 #   endif
21307 #  endif
21308 # endif
21309 #endif
21310
21311 int
21312 main ()
21313 {
21314 char *p = (char *) alloca (1);
21315   ;
21316   return 0;
21317 }
21318 _ACEOF
21319 rm -f conftest.$ac_objext conftest$ac_exeext
21320 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21321   (eval $ac_link) 2>&5
21322   ac_status=$?
21323   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21324   (exit $ac_status); } &&
21325          { ac_try='test -s conftest$ac_exeext'
21326   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21327   (eval $ac_try) 2>&5
21328   ac_status=$?
21329   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21330   (exit $ac_status); }; }; then
21331   ac_cv_func_alloca_works=yes
21332 else
21333   echo "$as_me: failed program was:" >&5
21334 sed 's/^/| /' conftest.$ac_ext >&5
21335
21336 ac_cv_func_alloca_works=no
21337 fi
21338 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21339 fi
21340 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
21341 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
21342
21343 if test $ac_cv_func_alloca_works = yes; then
21344
21345 cat >>confdefs.h <<\_ACEOF
21346 #define HAVE_ALLOCA 1
21347 _ACEOF
21348
21349 else
21350   # The SVR3 libPW and SVR4 libucb both contain incompatible functions
21351 # that cause trouble.  Some versions do not even contain alloca or
21352 # contain a buggy version.  If you still want to use their alloca,
21353 # use ar to extract alloca.o from them instead of compiling alloca.c.
21354
21355 ALLOCA=alloca.$ac_objext
21356
21357 cat >>confdefs.h <<\_ACEOF
21358 #define C_ALLOCA 1
21359 _ACEOF
21360
21361
21362 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
21363 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
21364 if test "${ac_cv_os_cray+set}" = set; then
21365   echo $ECHO_N "(cached) $ECHO_C" >&6
21366 else
21367   cat >conftest.$ac_ext <<_ACEOF
21368 #line $LINENO "configure"
21369 /* confdefs.h.  */
21370 _ACEOF
21371 cat confdefs.h >>conftest.$ac_ext
21372 cat >>conftest.$ac_ext <<_ACEOF
21373 /* end confdefs.h.  */
21374 #if defined(CRAY) && ! defined(CRAY2)
21375 webecray
21376 #else
21377 wenotbecray
21378 #endif
21379
21380 _ACEOF
21381 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21382   $EGREP "webecray" >/dev/null 2>&1; then
21383   ac_cv_os_cray=yes
21384 else
21385   ac_cv_os_cray=no
21386 fi
21387 rm -f conftest*
21388
21389 fi
21390 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
21391 echo "${ECHO_T}$ac_cv_os_cray" >&6
21392 if test $ac_cv_os_cray = yes; then
21393   for ac_func in _getb67 GETB67 getb67; do
21394     as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21395 echo "$as_me:$LINENO: checking for $ac_func" >&5
21396 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
21397 if eval "test \"\${$as_ac_var+set}\" = set"; then
21398   echo $ECHO_N "(cached) $ECHO_C" >&6
21399 else
21400   cat >conftest.$ac_ext <<_ACEOF
21401 #line $LINENO "configure"
21402 /* confdefs.h.  */
21403 _ACEOF
21404 cat confdefs.h >>conftest.$ac_ext
21405 cat >>conftest.$ac_ext <<_ACEOF
21406 /* end confdefs.h.  */
21407 /* System header to define __stub macros and hopefully few prototypes,
21408     which can conflict with char $ac_func (); below.
21409     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21410     <limits.h> exists even on freestanding compilers.  */
21411 #ifdef __STDC__
21412 # include <limits.h>
21413 #else
21414 # include <assert.h>
21415 #endif
21416 /* Override any gcc2 internal prototype to avoid an error.  */
21417 #ifdef __cplusplus
21418 extern "C"
21419 {
21420 #endif
21421 /* We use char because int might match the return type of a gcc2
21422    builtin and then its argument prototype would still apply.  */
21423 char $ac_func ();
21424 /* The GNU C library defines this for functions which it implements
21425     to always fail with ENOSYS.  Some functions are actually named
21426     something starting with __ and the normal name is an alias.  */
21427 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21428 choke me
21429 #else
21430 char (*f) () = $ac_func;
21431 #endif
21432 #ifdef __cplusplus
21433 }
21434 #endif
21435
21436 int
21437 main ()
21438 {
21439 return f != $ac_func;
21440   ;
21441   return 0;
21442 }
21443 _ACEOF
21444 rm -f conftest.$ac_objext conftest$ac_exeext
21445 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21446   (eval $ac_link) 2>&5
21447   ac_status=$?
21448   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21449   (exit $ac_status); } &&
21450          { ac_try='test -s conftest$ac_exeext'
21451   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21452   (eval $ac_try) 2>&5
21453   ac_status=$?
21454   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21455   (exit $ac_status); }; }; then
21456   eval "$as_ac_var=yes"
21457 else
21458   echo "$as_me: failed program was:" >&5
21459 sed 's/^/| /' conftest.$ac_ext >&5
21460
21461 eval "$as_ac_var=no"
21462 fi
21463 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21464 fi
21465 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
21466 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
21467 if test `eval echo '${'$as_ac_var'}'` = yes; then
21468
21469 cat >>confdefs.h <<_ACEOF
21470 #define CRAY_STACKSEG_END $ac_func
21471 _ACEOF
21472
21473     break
21474 fi
21475
21476   done
21477 fi
21478
21479 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
21480 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
21481 if test "${ac_cv_c_stack_direction+set}" = set; then
21482   echo $ECHO_N "(cached) $ECHO_C" >&6
21483 else
21484   if test "$cross_compiling" = yes; then
21485   ac_cv_c_stack_direction=0
21486 else
21487   cat >conftest.$ac_ext <<_ACEOF
21488 #line $LINENO "configure"
21489 /* confdefs.h.  */
21490 _ACEOF
21491 cat confdefs.h >>conftest.$ac_ext
21492 cat >>conftest.$ac_ext <<_ACEOF
21493 /* end confdefs.h.  */
21494 int
21495 find_stack_direction ()
21496 {
21497   static char *addr = 0;
21498   auto char dummy;
21499   if (addr == 0)
21500     {
21501       addr = &dummy;
21502       return find_stack_direction ();
21503     }
21504   else
21505     return (&dummy > addr) ? 1 : -1;
21506 }
21507
21508 int
21509 main ()
21510 {
21511   exit (find_stack_direction () < 0);
21512 }
21513 _ACEOF
21514 rm -f conftest$ac_exeext
21515 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21516   (eval $ac_link) 2>&5
21517   ac_status=$?
21518   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21519   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21520   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21521   (eval $ac_try) 2>&5
21522   ac_status=$?
21523   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21524   (exit $ac_status); }; }; then
21525   ac_cv_c_stack_direction=1
21526 else
21527   echo "$as_me: program exited with status $ac_status" >&5
21528 echo "$as_me: failed program was:" >&5
21529 sed 's/^/| /' conftest.$ac_ext >&5
21530
21531 ( exit $ac_status )
21532 ac_cv_c_stack_direction=-1
21533 fi
21534 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21535 fi
21536 fi
21537 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
21538 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
21539
21540 cat >>confdefs.h <<_ACEOF
21541 #define STACK_DIRECTION $ac_cv_c_stack_direction
21542 _ACEOF
21543
21544
21545 fi
21546
21547 if test $ac_cv_c_compiler_gnu = yes; then
21548     echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
21549 echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6
21550 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
21551   echo $ECHO_N "(cached) $ECHO_C" >&6
21552 else
21553     ac_pattern="Autoconf.*'x'"
21554   cat >conftest.$ac_ext <<_ACEOF
21555 #line $LINENO "configure"
21556 /* confdefs.h.  */
21557 _ACEOF
21558 cat confdefs.h >>conftest.$ac_ext
21559 cat >>conftest.$ac_ext <<_ACEOF
21560 /* end confdefs.h.  */
21561 #include <sgtty.h>
21562 Autoconf TIOCGETP
21563 _ACEOF
21564 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21565   $EGREP "$ac_pattern" >/dev/null 2>&1; then
21566   ac_cv_prog_gcc_traditional=yes
21567 else
21568   ac_cv_prog_gcc_traditional=no
21569 fi
21570 rm -f conftest*
21571
21572
21573   if test $ac_cv_prog_gcc_traditional = no; then
21574     cat >conftest.$ac_ext <<_ACEOF
21575 #line $LINENO "configure"
21576 /* confdefs.h.  */
21577 _ACEOF
21578 cat confdefs.h >>conftest.$ac_ext
21579 cat >>conftest.$ac_ext <<_ACEOF
21580 /* end confdefs.h.  */
21581 #include <termio.h>
21582 Autoconf TCGETA
21583 _ACEOF
21584 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21585   $EGREP "$ac_pattern" >/dev/null 2>&1; then
21586   ac_cv_prog_gcc_traditional=yes
21587 fi
21588 rm -f conftest*
21589
21590   fi
21591 fi
21592 echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
21593 echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6
21594   if test $ac_cv_prog_gcc_traditional = yes; then
21595     CC="$CC -traditional"
21596   fi
21597 fi
21598
21599 echo "$as_me:$LINENO: checking for working memcmp" >&5
21600 echo $ECHO_N "checking for working memcmp... $ECHO_C" >&6
21601 if test "${ac_cv_func_memcmp_working+set}" = set; then
21602   echo $ECHO_N "(cached) $ECHO_C" >&6
21603 else
21604   if test "$cross_compiling" = yes; then
21605   ac_cv_func_memcmp_working=no
21606 else
21607   cat >conftest.$ac_ext <<_ACEOF
21608 #line $LINENO "configure"
21609 /* confdefs.h.  */
21610 _ACEOF
21611 cat confdefs.h >>conftest.$ac_ext
21612 cat >>conftest.$ac_ext <<_ACEOF
21613 /* end confdefs.h.  */
21614
21615 int
21616 main ()
21617 {
21618
21619   /* Some versions of memcmp are not 8-bit clean.  */
21620   char c0 = 0x40, c1 = 0x80, c2 = 0x81;
21621   if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
21622     exit (1);
21623
21624   /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
21625      or more and with at least one buffer not starting on a 4-byte boundary.
21626      William Lewis provided this test program.   */
21627   {
21628     char foo[21];
21629     char bar[21];
21630     int i;
21631     for (i = 0; i < 4; i++)
21632       {
21633         char *a = foo + i;
21634         char *b = bar + i;
21635         strcpy (a, "--------01111111");
21636         strcpy (b, "--------10000000");
21637         if (memcmp (a, b, 16) >= 0)
21638           exit (1);
21639       }
21640     exit (0);
21641   }
21642
21643   ;
21644   return 0;
21645 }
21646 _ACEOF
21647 rm -f conftest$ac_exeext
21648 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21649   (eval $ac_link) 2>&5
21650   ac_status=$?
21651   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21652   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21653   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21654   (eval $ac_try) 2>&5
21655   ac_status=$?
21656   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21657   (exit $ac_status); }; }; then
21658   ac_cv_func_memcmp_working=yes
21659 else
21660   echo "$as_me: program exited with status $ac_status" >&5
21661 echo "$as_me: failed program was:" >&5
21662 sed 's/^/| /' conftest.$ac_ext >&5
21663
21664 ( exit $ac_status )
21665 ac_cv_func_memcmp_working=no
21666 fi
21667 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21668 fi
21669 fi
21670 echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
21671 echo "${ECHO_T}$ac_cv_func_memcmp_working" >&6
21672 test $ac_cv_func_memcmp_working = no && LIBOBJS="$LIBOBJS memcmp.$ac_objext"
21673
21674
21675
21676 for ac_header in stdlib.h unistd.h
21677 do
21678 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21679 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21680   echo "$as_me:$LINENO: checking for $ac_header" >&5
21681 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21682 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21683   echo $ECHO_N "(cached) $ECHO_C" >&6
21684 fi
21685 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21686 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21687 else
21688   # Is the header compilable?
21689 echo "$as_me:$LINENO: checking $ac_header usability" >&5
21690 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
21691 cat >conftest.$ac_ext <<_ACEOF
21692 #line $LINENO "configure"
21693 /* confdefs.h.  */
21694 _ACEOF
21695 cat confdefs.h >>conftest.$ac_ext
21696 cat >>conftest.$ac_ext <<_ACEOF
21697 /* end confdefs.h.  */
21698 $ac_includes_default
21699 #include <$ac_header>
21700 _ACEOF
21701 rm -f conftest.$ac_objext
21702 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21703   (eval $ac_compile) 2>&5
21704   ac_status=$?
21705   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21706   (exit $ac_status); } &&
21707          { ac_try='test -s conftest.$ac_objext'
21708   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21709   (eval $ac_try) 2>&5
21710   ac_status=$?
21711   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21712   (exit $ac_status); }; }; then
21713   ac_header_compiler=yes
21714 else
21715   echo "$as_me: failed program was:" >&5
21716 sed 's/^/| /' conftest.$ac_ext >&5
21717
21718 ac_header_compiler=no
21719 fi
21720 rm -f conftest.$ac_objext conftest.$ac_ext
21721 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21722 echo "${ECHO_T}$ac_header_compiler" >&6
21723
21724 # Is the header present?
21725 echo "$as_me:$LINENO: checking $ac_header presence" >&5
21726 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
21727 cat >conftest.$ac_ext <<_ACEOF
21728 #line $LINENO "configure"
21729 /* confdefs.h.  */
21730 _ACEOF
21731 cat confdefs.h >>conftest.$ac_ext
21732 cat >>conftest.$ac_ext <<_ACEOF
21733 /* end confdefs.h.  */
21734 #include <$ac_header>
21735 _ACEOF
21736 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21737   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21738   ac_status=$?
21739   grep -v '^ *+' conftest.er1 >conftest.err
21740   rm -f conftest.er1
21741   cat conftest.err >&5
21742   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21743   (exit $ac_status); } >/dev/null; then
21744   if test -s conftest.err; then
21745     ac_cpp_err=$ac_c_preproc_warn_flag
21746   else
21747     ac_cpp_err=
21748   fi
21749 else
21750   ac_cpp_err=yes
21751 fi
21752 if test -z "$ac_cpp_err"; then
21753   ac_header_preproc=yes
21754 else
21755   echo "$as_me: failed program was:" >&5
21756 sed 's/^/| /' conftest.$ac_ext >&5
21757
21758   ac_header_preproc=no
21759 fi
21760 rm -f conftest.err conftest.$ac_ext
21761 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21762 echo "${ECHO_T}$ac_header_preproc" >&6
21763
21764 # So?  What about this header?
21765 case $ac_header_compiler:$ac_header_preproc in
21766   yes:no )
21767     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21768 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21769     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21770 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21771     (
21772       cat <<\_ASBOX
21773 ## ------------------------------------ ##
21774 ## Report this to bug-autoconf@gnu.org. ##
21775 ## ------------------------------------ ##
21776 _ASBOX
21777     ) |
21778       sed "s/^/$as_me: WARNING:     /" >&2
21779     ;;
21780   no:yes )
21781     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21782 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21783     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21784 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21785     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21786 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21787     (
21788       cat <<\_ASBOX
21789 ## ------------------------------------ ##
21790 ## Report this to bug-autoconf@gnu.org. ##
21791 ## ------------------------------------ ##
21792 _ASBOX
21793     ) |
21794       sed "s/^/$as_me: WARNING:     /" >&2
21795     ;;
21796 esac
21797 echo "$as_me:$LINENO: checking for $ac_header" >&5
21798 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21799 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21800   echo $ECHO_N "(cached) $ECHO_C" >&6
21801 else
21802   eval "$as_ac_Header=$ac_header_preproc"
21803 fi
21804 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21805 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21806
21807 fi
21808 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21809   cat >>confdefs.h <<_ACEOF
21810 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21811 _ACEOF
21812
21813 fi
21814
21815 done
21816
21817
21818 for ac_func in getpagesize
21819 do
21820 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21821 echo "$as_me:$LINENO: checking for $ac_func" >&5
21822 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
21823 if eval "test \"\${$as_ac_var+set}\" = set"; then
21824   echo $ECHO_N "(cached) $ECHO_C" >&6
21825 else
21826   cat >conftest.$ac_ext <<_ACEOF
21827 #line $LINENO "configure"
21828 /* confdefs.h.  */
21829 _ACEOF
21830 cat confdefs.h >>conftest.$ac_ext
21831 cat >>conftest.$ac_ext <<_ACEOF
21832 /* end confdefs.h.  */
21833 /* System header to define __stub macros and hopefully few prototypes,
21834     which can conflict with char $ac_func (); below.
21835     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21836     <limits.h> exists even on freestanding compilers.  */
21837 #ifdef __STDC__
21838 # include <limits.h>
21839 #else
21840 # include <assert.h>
21841 #endif
21842 /* Override any gcc2 internal prototype to avoid an error.  */
21843 #ifdef __cplusplus
21844 extern "C"
21845 {
21846 #endif
21847 /* We use char because int might match the return type of a gcc2
21848    builtin and then its argument prototype would still apply.  */
21849 char $ac_func ();
21850 /* The GNU C library defines this for functions which it implements
21851     to always fail with ENOSYS.  Some functions are actually named
21852     something starting with __ and the normal name is an alias.  */
21853 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21854 choke me
21855 #else
21856 char (*f) () = $ac_func;
21857 #endif
21858 #ifdef __cplusplus
21859 }
21860 #endif
21861
21862 int
21863 main ()
21864 {
21865 return f != $ac_func;
21866   ;
21867   return 0;
21868 }
21869 _ACEOF
21870 rm -f conftest.$ac_objext conftest$ac_exeext
21871 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21872   (eval $ac_link) 2>&5
21873   ac_status=$?
21874   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21875   (exit $ac_status); } &&
21876          { ac_try='test -s conftest$ac_exeext'
21877   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21878   (eval $ac_try) 2>&5
21879   ac_status=$?
21880   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21881   (exit $ac_status); }; }; then
21882   eval "$as_ac_var=yes"
21883 else
21884   echo "$as_me: failed program was:" >&5
21885 sed 's/^/| /' conftest.$ac_ext >&5
21886
21887 eval "$as_ac_var=no"
21888 fi
21889 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21890 fi
21891 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
21892 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
21893 if test `eval echo '${'$as_ac_var'}'` = yes; then
21894   cat >>confdefs.h <<_ACEOF
21895 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21896 _ACEOF
21897
21898 fi
21899 done
21900
21901 echo "$as_me:$LINENO: checking for working mmap" >&5
21902 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
21903 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
21904   echo $ECHO_N "(cached) $ECHO_C" >&6
21905 else
21906   if test "$cross_compiling" = yes; then
21907   ac_cv_func_mmap_fixed_mapped=no
21908 else
21909   cat >conftest.$ac_ext <<_ACEOF
21910 #line $LINENO "configure"
21911 /* confdefs.h.  */
21912 _ACEOF
21913 cat confdefs.h >>conftest.$ac_ext
21914 cat >>conftest.$ac_ext <<_ACEOF
21915 /* end confdefs.h.  */
21916 $ac_includes_default
21917 /* malloc might have been renamed as rpl_malloc. */
21918 #undef malloc
21919
21920 /* Thanks to Mike Haertel and Jim Avera for this test.
21921    Here is a matrix of mmap possibilities:
21922         mmap private not fixed
21923         mmap private fixed at somewhere currently unmapped
21924         mmap private fixed at somewhere already mapped
21925         mmap shared not fixed
21926         mmap shared fixed at somewhere currently unmapped
21927         mmap shared fixed at somewhere already mapped
21928    For private mappings, we should verify that changes cannot be read()
21929    back from the file, nor mmap's back from the file at a different
21930    address.  (There have been systems where private was not correctly
21931    implemented like the infamous i386 svr4.0, and systems where the
21932    VM page cache was not coherent with the file system buffer cache
21933    like early versions of FreeBSD and possibly contemporary NetBSD.)
21934    For shared mappings, we should conversely verify that changes get
21935    propagated back to all the places they're supposed to be.
21936
21937    Grep wants private fixed already mapped.
21938    The main things grep needs to know about mmap are:
21939    * does it exist and is it safe to write into the mmap'd area
21940    * how to use it (BSD variants)  */
21941
21942 #include <fcntl.h>
21943 #include <sys/mman.h>
21944
21945 #if !STDC_HEADERS && !HAVE_STDLIB_H
21946 char *malloc ();
21947 #endif
21948
21949 /* This mess was copied from the GNU getpagesize.h.  */
21950 #if !HAVE_GETPAGESIZE
21951 /* Assume that all systems that can run configure have sys/param.h.  */
21952 # if !HAVE_SYS_PARAM_H
21953 #  define HAVE_SYS_PARAM_H 1
21954 # endif
21955
21956 # ifdef _SC_PAGESIZE
21957 #  define getpagesize() sysconf(_SC_PAGESIZE)
21958 # else /* no _SC_PAGESIZE */
21959 #  if HAVE_SYS_PARAM_H
21960 #   include <sys/param.h>
21961 #   ifdef EXEC_PAGESIZE
21962 #    define getpagesize() EXEC_PAGESIZE
21963 #   else /* no EXEC_PAGESIZE */
21964 #    ifdef NBPG
21965 #     define getpagesize() NBPG * CLSIZE
21966 #     ifndef CLSIZE
21967 #      define CLSIZE 1
21968 #     endif /* no CLSIZE */
21969 #    else /* no NBPG */
21970 #     ifdef NBPC
21971 #      define getpagesize() NBPC
21972 #     else /* no NBPC */
21973 #      ifdef PAGESIZE
21974 #       define getpagesize() PAGESIZE
21975 #      endif /* PAGESIZE */
21976 #     endif /* no NBPC */
21977 #    endif /* no NBPG */
21978 #   endif /* no EXEC_PAGESIZE */
21979 #  else /* no HAVE_SYS_PARAM_H */
21980 #   define getpagesize() 8192   /* punt totally */
21981 #  endif /* no HAVE_SYS_PARAM_H */
21982 # endif /* no _SC_PAGESIZE */
21983
21984 #endif /* no HAVE_GETPAGESIZE */
21985
21986 int
21987 main ()
21988 {
21989   char *data, *data2, *data3;
21990   int i, pagesize;
21991   int fd;
21992
21993   pagesize = getpagesize ();
21994
21995   /* First, make a file with some known garbage in it. */
21996   data = (char *) malloc (pagesize);
21997   if (!data)
21998     exit (1);
21999   for (i = 0; i < pagesize; ++i)
22000     *(data + i) = rand ();
22001   umask (0);
22002   fd = creat ("conftest.mmap", 0600);
22003   if (fd < 0)
22004     exit (1);
22005   if (write (fd, data, pagesize) != pagesize)
22006     exit (1);
22007   close (fd);
22008
22009   /* Next, try to mmap the file at a fixed address which already has
22010      something else allocated at it.  If we can, also make sure that
22011      we see the same garbage.  */
22012   fd = open ("conftest.mmap", O_RDWR);
22013   if (fd < 0)
22014     exit (1);
22015   data2 = (char *) malloc (2 * pagesize);
22016   if (!data2)
22017     exit (1);
22018   data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
22019   if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
22020                      MAP_PRIVATE | MAP_FIXED, fd, 0L))
22021     exit (1);
22022   for (i = 0; i < pagesize; ++i)
22023     if (*(data + i) != *(data2 + i))
22024       exit (1);
22025
22026   /* Finally, make sure that changes to the mapped area do not
22027      percolate back to the file as seen by read().  (This is a bug on
22028      some variants of i386 svr4.0.)  */
22029   for (i = 0; i < pagesize; ++i)
22030     *(data2 + i) = *(data2 + i) + 1;
22031   data3 = (char *) malloc (pagesize);
22032   if (!data3)
22033     exit (1);
22034   if (read (fd, data3, pagesize) != pagesize)
22035     exit (1);
22036   for (i = 0; i < pagesize; ++i)
22037     if (*(data + i) != *(data3 + i))
22038       exit (1);
22039   close (fd);
22040   exit (0);
22041 }
22042 _ACEOF
22043 rm -f conftest$ac_exeext
22044 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22045   (eval $ac_link) 2>&5
22046   ac_status=$?
22047   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22048   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22049   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22050   (eval $ac_try) 2>&5
22051   ac_status=$?
22052   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22053   (exit $ac_status); }; }; then
22054   ac_cv_func_mmap_fixed_mapped=yes
22055 else
22056   echo "$as_me: program exited with status $ac_status" >&5
22057 echo "$as_me: failed program was:" >&5
22058 sed 's/^/| /' conftest.$ac_ext >&5
22059
22060 ( exit $ac_status )
22061 ac_cv_func_mmap_fixed_mapped=no
22062 fi
22063 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22064 fi
22065 fi
22066 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
22067 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
22068 if test $ac_cv_func_mmap_fixed_mapped = yes; then
22069
22070 cat >>confdefs.h <<\_ACEOF
22071 #define HAVE_MMAP 1
22072 _ACEOF
22073
22074 fi
22075 rm -f conftest.mmap
22076
22077 echo "$as_me:$LINENO: checking for mmap of files" >&5
22078 echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6
22079 if test "${ac_cv_func_mmap_file+set}" = set; then
22080   echo $ECHO_N "(cached) $ECHO_C" >&6
22081 else
22082
22083
22084   ac_ext=c
22085 ac_cpp='$CPP $CPPFLAGS'
22086 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22087 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22088 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22089
22090   if test "$cross_compiling" = yes; then
22091   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
22092 See \`config.log' for more details." >&5
22093 echo "$as_me: error: cannot run test program while cross compiling
22094 See \`config.log' for more details." >&2;}
22095    { (exit 1); exit 1; }; }
22096 else
22097   cat >conftest.$ac_ext <<_ACEOF
22098 #line $LINENO "configure"
22099 /* confdefs.h.  */
22100 _ACEOF
22101 cat confdefs.h >>conftest.$ac_ext
22102 cat >>conftest.$ac_ext <<_ACEOF
22103 /* end confdefs.h.  */
22104
22105 #ifdef HAVE_SYS_MMAN_H
22106 #include <sys/mman.h>
22107 #endif
22108
22109 #ifdef HAVE_SYS_TYPES_H
22110 #include <sys/types.h>
22111 #endif
22112
22113 #ifdef HAVE_FCNTL_H
22114 #include <fcntl.h>
22115 #endif
22116
22117   int fd;
22118   int main () {
22119   fd = creat ("foo",0777); fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0); unlink ("foo"); return (fd != MAP_FAILED);}
22120 _ACEOF
22121 rm -f conftest$ac_exeext
22122 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22123   (eval $ac_link) 2>&5
22124   ac_status=$?
22125   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22126   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22127   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22128   (eval $ac_try) 2>&5
22129   ac_status=$?
22130   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22131   (exit $ac_status); }; }; then
22132   ac_cv_func_mmap_file=yes
22133 else
22134   echo "$as_me: program exited with status $ac_status" >&5
22135 echo "$as_me: failed program was:" >&5
22136 sed 's/^/| /' conftest.$ac_ext >&5
22137
22138 ( exit $ac_status )
22139 ac_cv_func_mmap_file=no
22140 fi
22141 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22142 fi
22143   ac_ext=c
22144 ac_cpp='$CPP $CPPFLAGS'
22145 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22146 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22147 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22148
22149
22150 fi
22151 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
22152 echo "${ECHO_T}$ac_cv_func_mmap_file" >&6
22153 if test "$ac_cv_func_mmap_file" = yes; then
22154    cat >>confdefs.h <<\_ACEOF
22155 #define HAVE_MMAP_FILE 1
22156 _ACEOF
22157
22158    MMAP_FILE=yes
22159
22160 fi
22161
22162 if test ${ac_cv_func_mmap_file} = "no"
22163 then
22164         { { echo "$as_me:$LINENO: error: mmap() of files required but not found" >&5
22165 echo "$as_me: error: mmap() of files required but not found" >&2;}
22166    { (exit 1); exit 1; }; }
22167 fi
22168 echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5
22169 echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6
22170 if test "${ac_cv_header_mmap_anon+set}" = set; then
22171   echo $ECHO_N "(cached) $ECHO_C" >&6
22172 else
22173
22174
22175   ac_ext=c
22176 ac_cpp='$CPP $CPPFLAGS'
22177 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22178 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22179 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22180
22181   cat >conftest.$ac_ext <<_ACEOF
22182 #line $LINENO "configure"
22183 /* confdefs.h.  */
22184 _ACEOF
22185 cat confdefs.h >>conftest.$ac_ext
22186 cat >>conftest.$ac_ext <<_ACEOF
22187 /* end confdefs.h.  */
22188 #include <sys/mman.h>
22189   #include <unistd.h>
22190   #include <fcntl.h>
22191 int
22192 main ()
22193 {
22194 mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0);
22195   ;
22196   return 0;
22197 }
22198 _ACEOF
22199 rm -f conftest.$ac_objext
22200 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22201   (eval $ac_compile) 2>&5
22202   ac_status=$?
22203   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22204   (exit $ac_status); } &&
22205          { ac_try='test -s conftest.$ac_objext'
22206   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22207   (eval $ac_try) 2>&5
22208   ac_status=$?
22209   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22210   (exit $ac_status); }; }; then
22211   ac_cv_header_mmap_anon=yes
22212 else
22213   echo "$as_me: failed program was:" >&5
22214 sed 's/^/| /' conftest.$ac_ext >&5
22215
22216 ac_cv_header_mmap_anon=no
22217 fi
22218 rm -f conftest.$ac_objext conftest.$ac_ext
22219   ac_ext=c
22220 ac_cpp='$CPP $CPPFLAGS'
22221 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22222 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22223 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22224
22225
22226 fi
22227 echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5
22228 echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6
22229 if test "$ac_cv_header_mmap_anon" = yes; then
22230    cat >>confdefs.h <<\_ACEOF
22231 #define HAVE_MMAP_ANONYMOUS 1
22232 _ACEOF
22233
22234 fi
22235
22236 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
22237 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
22238 if test "${ac_cv_type_signal+set}" = set; then
22239   echo $ECHO_N "(cached) $ECHO_C" >&6
22240 else
22241   cat >conftest.$ac_ext <<_ACEOF
22242 #line $LINENO "configure"
22243 /* confdefs.h.  */
22244 _ACEOF
22245 cat confdefs.h >>conftest.$ac_ext
22246 cat >>conftest.$ac_ext <<_ACEOF
22247 /* end confdefs.h.  */
22248 #include <sys/types.h>
22249 #include <signal.h>
22250 #ifdef signal
22251 # undef signal
22252 #endif
22253 #ifdef __cplusplus
22254 extern "C" void (*signal (int, void (*)(int)))(int);
22255 #else
22256 void (*signal ()) ();
22257 #endif
22258
22259 int
22260 main ()
22261 {
22262 int i;
22263   ;
22264   return 0;
22265 }
22266 _ACEOF
22267 rm -f conftest.$ac_objext
22268 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22269   (eval $ac_compile) 2>&5
22270   ac_status=$?
22271   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22272   (exit $ac_status); } &&
22273          { ac_try='test -s conftest.$ac_objext'
22274   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22275   (eval $ac_try) 2>&5
22276   ac_status=$?
22277   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22278   (exit $ac_status); }; }; then
22279   ac_cv_type_signal=void
22280 else
22281   echo "$as_me: failed program was:" >&5
22282 sed 's/^/| /' conftest.$ac_ext >&5
22283
22284 ac_cv_type_signal=int
22285 fi
22286 rm -f conftest.$ac_objext conftest.$ac_ext
22287 fi
22288 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
22289 echo "${ECHO_T}$ac_cv_type_signal" >&6
22290
22291 cat >>confdefs.h <<_ACEOF
22292 #define RETSIGTYPE $ac_cv_type_signal
22293 _ACEOF
22294
22295
22296
22297
22298
22299
22300
22301
22302
22303
22304
22305 for ac_func in getcwd gettimeofday strcspn strdup strerror strspn strstr strtod strtol
22306 do
22307 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22308 echo "$as_me:$LINENO: checking for $ac_func" >&5
22309 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
22310 if eval "test \"\${$as_ac_var+set}\" = set"; then
22311   echo $ECHO_N "(cached) $ECHO_C" >&6
22312 else
22313   cat >conftest.$ac_ext <<_ACEOF
22314 #line $LINENO "configure"
22315 /* confdefs.h.  */
22316 _ACEOF
22317 cat confdefs.h >>conftest.$ac_ext
22318 cat >>conftest.$ac_ext <<_ACEOF
22319 /* end confdefs.h.  */
22320 /* System header to define __stub macros and hopefully few prototypes,
22321     which can conflict with char $ac_func (); below.
22322     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22323     <limits.h> exists even on freestanding compilers.  */
22324 #ifdef __STDC__
22325 # include <limits.h>
22326 #else
22327 # include <assert.h>
22328 #endif
22329 /* Override any gcc2 internal prototype to avoid an error.  */
22330 #ifdef __cplusplus
22331 extern "C"
22332 {
22333 #endif
22334 /* We use char because int might match the return type of a gcc2
22335    builtin and then its argument prototype would still apply.  */
22336 char $ac_func ();
22337 /* The GNU C library defines this for functions which it implements
22338     to always fail with ENOSYS.  Some functions are actually named
22339     something starting with __ and the normal name is an alias.  */
22340 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22341 choke me
22342 #else
22343 char (*f) () = $ac_func;
22344 #endif
22345 #ifdef __cplusplus
22346 }
22347 #endif
22348
22349 int
22350 main ()
22351 {
22352 return f != $ac_func;
22353   ;
22354   return 0;
22355 }
22356 _ACEOF
22357 rm -f conftest.$ac_objext conftest$ac_exeext
22358 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22359   (eval $ac_link) 2>&5
22360   ac_status=$?
22361   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22362   (exit $ac_status); } &&
22363          { ac_try='test -s conftest$ac_exeext'
22364   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22365   (eval $ac_try) 2>&5
22366   ac_status=$?
22367   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22368   (exit $ac_status); }; }; then
22369   eval "$as_ac_var=yes"
22370 else
22371   echo "$as_me: failed program was:" >&5
22372 sed 's/^/| /' conftest.$ac_ext >&5
22373
22374 eval "$as_ac_var=no"
22375 fi
22376 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
22377 fi
22378 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
22379 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
22380 if test `eval echo '${'$as_ac_var'}'` = yes; then
22381   cat >>confdefs.h <<_ACEOF
22382 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22383 _ACEOF
22384
22385 fi
22386 done
22387
22388
22389
22390 echo "$as_me:$LINENO: checking for mmap" >&5
22391 echo $ECHO_N "checking for mmap... $ECHO_C" >&6
22392 if test "${ac_cv_func_mmap+set}" = set; then
22393   echo $ECHO_N "(cached) $ECHO_C" >&6
22394 else
22395   cat >conftest.$ac_ext <<_ACEOF
22396 #line $LINENO "configure"
22397 /* confdefs.h.  */
22398 _ACEOF
22399 cat confdefs.h >>conftest.$ac_ext
22400 cat >>conftest.$ac_ext <<_ACEOF
22401 /* end confdefs.h.  */
22402 /* System header to define __stub macros and hopefully few prototypes,
22403     which can conflict with char mmap (); below.
22404     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22405     <limits.h> exists even on freestanding compilers.  */
22406 #ifdef __STDC__
22407 # include <limits.h>
22408 #else
22409 # include <assert.h>
22410 #endif
22411 /* Override any gcc2 internal prototype to avoid an error.  */
22412 #ifdef __cplusplus
22413 extern "C"
22414 {
22415 #endif
22416 /* We use char because int might match the return type of a gcc2
22417    builtin and then its argument prototype would still apply.  */
22418 char mmap ();
22419 /* The GNU C library defines this for functions which it implements
22420     to always fail with ENOSYS.  Some functions are actually named
22421     something starting with __ and the normal name is an alias.  */
22422 #if defined (__stub_mmap) || defined (__stub___mmap)
22423 choke me
22424 #else
22425 char (*f) () = mmap;
22426 #endif
22427 #ifdef __cplusplus
22428 }
22429 #endif
22430
22431 int
22432 main ()
22433 {
22434 return f != mmap;
22435   ;
22436   return 0;
22437 }
22438 _ACEOF
22439 rm -f conftest.$ac_objext conftest$ac_exeext
22440 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22441   (eval $ac_link) 2>&5
22442   ac_status=$?
22443   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22444   (exit $ac_status); } &&
22445          { ac_try='test -s conftest$ac_exeext'
22446   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22447   (eval $ac_try) 2>&5
22448   ac_status=$?
22449   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22450   (exit $ac_status); }; }; then
22451   ac_cv_func_mmap=yes
22452 else
22453   echo "$as_me: failed program was:" >&5
22454 sed 's/^/| /' conftest.$ac_ext >&5
22455
22456 ac_cv_func_mmap=no
22457 fi
22458 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
22459 fi
22460 echo "$as_me:$LINENO: result: $ac_cv_func_mmap" >&5
22461 echo "${ECHO_T}$ac_cv_func_mmap" >&6
22462 if test $ac_cv_func_mmap = yes; then
22463   :
22464 else
22465   { { echo "$as_me:$LINENO: error: Function mmap() required but not found" >&5
22466 echo "$as_me: error: Function mmap() required but not found" >&2;}
22467    { (exit 1); exit 1; }; }
22468 fi
22469
22470 echo "$as_me:$LINENO: checking for mprotect" >&5
22471 echo $ECHO_N "checking for mprotect... $ECHO_C" >&6
22472 if test "${ac_cv_func_mprotect+set}" = set; then
22473   echo $ECHO_N "(cached) $ECHO_C" >&6
22474 else
22475   cat >conftest.$ac_ext <<_ACEOF
22476 #line $LINENO "configure"
22477 /* confdefs.h.  */
22478 _ACEOF
22479 cat confdefs.h >>conftest.$ac_ext
22480 cat >>conftest.$ac_ext <<_ACEOF
22481 /* end confdefs.h.  */
22482 /* System header to define __stub macros and hopefully few prototypes,
22483     which can conflict with char mprotect (); below.
22484     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22485     <limits.h> exists even on freestanding compilers.  */
22486 #ifdef __STDC__
22487 # include <limits.h>
22488 #else
22489 # include <assert.h>
22490 #endif
22491 /* Override any gcc2 internal prototype to avoid an error.  */
22492 #ifdef __cplusplus
22493 extern "C"
22494 {
22495 #endif
22496 /* We use char because int might match the return type of a gcc2
22497    builtin and then its argument prototype would still apply.  */
22498 char mprotect ();
22499 /* The GNU C library defines this for functions which it implements
22500     to always fail with ENOSYS.  Some functions are actually named
22501     something starting with __ and the normal name is an alias.  */
22502 #if defined (__stub_mprotect) || defined (__stub___mprotect)
22503 choke me
22504 #else
22505 char (*f) () = mprotect;
22506 #endif
22507 #ifdef __cplusplus
22508 }
22509 #endif
22510
22511 int
22512 main ()
22513 {
22514 return f != mprotect;
22515   ;
22516   return 0;
22517 }
22518 _ACEOF
22519 rm -f conftest.$ac_objext conftest$ac_exeext
22520 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22521   (eval $ac_link) 2>&5
22522   ac_status=$?
22523   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22524   (exit $ac_status); } &&
22525          { ac_try='test -s conftest$ac_exeext'
22526   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22527   (eval $ac_try) 2>&5
22528   ac_status=$?
22529   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22530   (exit $ac_status); }; }; then
22531   ac_cv_func_mprotect=yes
22532 else
22533   echo "$as_me: failed program was:" >&5
22534 sed 's/^/| /' conftest.$ac_ext >&5
22535
22536 ac_cv_func_mprotect=no
22537 fi
22538 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
22539 fi
22540 echo "$as_me:$LINENO: result: $ac_cv_func_mprotect" >&5
22541 echo "${ECHO_T}$ac_cv_func_mprotect" >&6
22542 if test $ac_cv_func_mprotect = yes; then
22543   :
22544 else
22545   { { echo "$as_me:$LINENO: error: Function mprotect() required but not found" >&5
22546 echo "$as_me: error: Function mprotect() required but not found" >&2;}
22547    { (exit 1); exit 1; }; }
22548 fi
22549
22550
22551
22552 # Check whether --enable-purify or --disable-purify was given.
22553 if test "${enable_purify+set}" = set; then
22554   enableval="$enable_purify"
22555
22556 else
22557   enableval="no"
22558 fi;
22559 if test ${enableval} = "no"
22560 then
22561         ENABLE_PURIFY=
22562
22563 else
22564         ENABLE_PURIFY=ENABLE_PURIFY=1
22565
22566 fi
22567
22568 # Check whether --enable-optimized or --disable-optimized was given.
22569 if test "${enable_optimized+set}" = set; then
22570   enableval="$enable_optimized"
22571
22572 else
22573   enableval=no
22574 fi;
22575 if test ${enableval} = "no"
22576 then
22577         ENABLE_OPTIMIZED=
22578
22579 else
22580         ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1
22581
22582 fi
22583
22584 # Check whether --enable-spec or --disable-spec was given.
22585 if test "${enable_spec+set}" = set; then
22586   enableval="$enable_spec"
22587
22588 else
22589   enableval=no
22590 fi;
22591 if test ${enableval} = "no"
22592 then
22593         USE_SPEC=
22594
22595 else
22596         USE_SPEC=USE_SPEC=1
22597
22598 fi
22599
22600 # Check whether --enable-precompiled_bytecode or --disable-precompiled_bytecode was given.
22601 if test "${enable_precompiled_bytecode+set}" = set; then
22602   enableval="$enable_precompiled_bytecode"
22603
22604 else
22605   enableval=no
22606 fi;
22607 if test ${enableval} = "no"
22608 then
22609         UPB=
22610
22611 else
22612         UPB=USE_PRECOMPILED_BYTECODE=1
22613
22614 fi
22615
22616
22617 # Check whether --enable-llc_diffs or --disable-llc_diffs was given.
22618 if test "${enable_llc_diffs+set}" = set; then
22619   enableval="$enable_llc_diffs"
22620
22621 else
22622   enableval=yes
22623 fi;
22624 if test ${enableval} = "no"
22625 then
22626         DISABLE_LLC_DIFFS=DISABLE_LLC_DIFFS:=1
22627
22628 else
22629         DISABLE_LLC_DIFFS=
22630
22631 fi
22632
22633 # Check whether --enable-jit or --disable-jit was given.
22634 if test "${enable_jit+set}" = set; then
22635   enableval="$enable_jit"
22636
22637 else
22638   enableval=default
22639 fi;
22640
22641 if test ${enableval} = "no"
22642 then
22643         JIT=
22644
22645 else
22646         case $target in
22647                 *i*86*)
22648                         JIT=TARGET_HAS_JIT=1
22649
22650                         ;;
22651                 *sparc*)
22652                         JIT=TARGET_HAS_JIT=1
22653
22654                         ;;
22655                 *)
22656                         JIT=
22657
22658                         ;;
22659         esac
22660 fi
22661
22662
22663
22664 # Check whether --with-spec or --without-spec was given.
22665 if test "${with_spec+set}" = set; then
22666   withval="$with_spec"
22667   SPEC_ROOT=$withval
22668
22669 else
22670   SPEC_ROOT=/home/vadve/shared/benchmarks/speccpu2000/benchspec
22671
22672 fi;
22673
22674
22675 # Check whether --with-llvmgccdir or --without-llvmgccdir was given.
22676 if test "${with_llvmgccdir+set}" = set; then
22677   withval="$with_llvmgccdir"
22678   LLVMGCCDIR=$withval
22679
22680 fi;
22681
22682
22683 # Check whether --with-bcrepos or --without-bcrepos was given.
22684 if test "${with_bcrepos+set}" = set; then
22685   withval="$with_bcrepos"
22686   BCR=$withval
22687
22688 else
22689   BCR=/home/vadve/lattner/LLVMPrograms
22690
22691 fi;
22692
22693
22694 # Check whether --with-papi or --without-papi was given.
22695 if test "${with_papi+set}" = set; then
22696   withval="$with_papi"
22697   PAPIDIR=$withval
22698
22699 else
22700   PAPIDIR=/home/vadve/shared/Sparc/papi-2.3.4.1
22701
22702 fi;
22703
22704
22705 # Check whether --with-purify or --without-purify was given.
22706 if test "${with_purify+set}" = set; then
22707   withval="$with_purify"
22708   PURIFY=$withval
22709
22710 fi;
22711
22712
22713           ac_config_files="$ac_config_files Makefile.config"
22714 cat >confcache <<\_ACEOF
22715 # This file is a shell script that caches the results of configure
22716 # tests run on this system so they can be shared between configure
22717 # scripts and configure runs, see configure's option --config-cache.
22718 # It is not useful on other systems.  If it contains results you don't
22719 # want to keep, you may remove or edit it.
22720 #
22721 # config.status only pays attention to the cache file if you give it
22722 # the --recheck option to rerun configure.
22723 #
22724 # `ac_cv_env_foo' variables (set or unset) will be overridden when
22725 # loading this file, other *unset* `ac_cv_foo' will be assigned the
22726 # following values.
22727
22728 _ACEOF
22729
22730 # The following way of writing the cache mishandles newlines in values,
22731 # but we know of no workaround that is simple, portable, and efficient.
22732 # So, don't put newlines in cache variables' values.
22733 # Ultrix sh set writes to stderr and can't be redirected directly,
22734 # and sets the high bit in the cache file unless we assign to the vars.
22735 {
22736   (set) 2>&1 |
22737     case `(ac_space=' '; set | grep ac_space) 2>&1` in
22738     *ac_space=\ *)
22739       # `set' does not quote correctly, so add quotes (double-quote
22740       # substitution turns \\\\ into \\, and sed turns \\ into \).
22741       sed -n \
22742         "s/'/'\\\\''/g;
22743           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
22744       ;;
22745     *)
22746       # `set' quotes correctly as required by POSIX, so do not add quotes.
22747       sed -n \
22748         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
22749       ;;
22750     esac;
22751 } |
22752   sed '
22753      t clear
22754      : clear
22755      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
22756      t end
22757      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
22758      : end' >>confcache
22759 if diff $cache_file confcache >/dev/null 2>&1; then :; else
22760   if test -w $cache_file; then
22761     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
22762     cat confcache >$cache_file
22763   else
22764     echo "not updating unwritable cache $cache_file"
22765   fi
22766 fi
22767 rm -f confcache
22768
22769 test "x$prefix" = xNONE && prefix=$ac_default_prefix
22770 # Let make expand exec_prefix.
22771 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
22772
22773 # VPATH may cause trouble with some makes, so we remove $(srcdir),
22774 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
22775 # trailing colons and then remove the whole line if VPATH becomes empty
22776 # (actually we leave an empty line to preserve line numbers).
22777 if test "x$srcdir" = x.; then
22778   ac_vpsub='/^[         ]*VPATH[        ]*=/{
22779 s/:*\$(srcdir):*/:/;
22780 s/:*\${srcdir}:*/:/;
22781 s/:*@srcdir@:*/:/;
22782 s/^\([^=]*=[    ]*\):*/\1/;
22783 s/:*$//;
22784 s/^[^=]*=[      ]*$//;
22785 }'
22786 fi
22787
22788 DEFS=-DHAVE_CONFIG_H
22789
22790 ac_libobjs=
22791 ac_ltlibobjs=
22792 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
22793   # 1. Remove the extension, and $U if already installed.
22794   ac_i=`echo "$ac_i" |
22795          sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
22796   # 2. Add them.
22797   ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
22798   ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
22799 done
22800 LIBOBJS=$ac_libobjs
22801
22802 LTLIBOBJS=$ac_ltlibobjs
22803
22804
22805
22806 : ${CONFIG_STATUS=./config.status}
22807 ac_clean_files_save=$ac_clean_files
22808 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
22809 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
22810 echo "$as_me: creating $CONFIG_STATUS" >&6;}
22811 cat >$CONFIG_STATUS <<_ACEOF
22812 #! $SHELL
22813 # Generated by $as_me.
22814 # Run this file to recreate the current configuration.
22815 # Compiler output produced by configure, useful for debugging
22816 # configure, is in config.log if it exists.
22817
22818 debug=false
22819 ac_cs_recheck=false
22820 ac_cs_silent=false
22821 SHELL=\${CONFIG_SHELL-$SHELL}
22822 _ACEOF
22823
22824 cat >>$CONFIG_STATUS <<\_ACEOF
22825 ## --------------------- ##
22826 ## M4sh Initialization.  ##
22827 ## --------------------- ##
22828
22829 # Be Bourne compatible
22830 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
22831   emulate sh
22832   NULLCMD=:
22833   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
22834   # is contrary to our usage.  Disable this feature.
22835   alias -g '${1+"$@"}'='"$@"'
22836 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
22837   set -o posix
22838 fi
22839
22840 # Support unset when possible.
22841 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
22842   as_unset=unset
22843 else
22844   as_unset=false
22845 fi
22846
22847
22848 # Work around bugs in pre-3.0 UWIN ksh.
22849 $as_unset ENV MAIL MAILPATH
22850 PS1='$ '
22851 PS2='> '
22852 PS4='+ '
22853
22854 # NLS nuisances.
22855 for as_var in \
22856   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
22857   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
22858   LC_TELEPHONE LC_TIME
22859 do
22860   if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
22861     eval $as_var=C; export $as_var
22862   else
22863     $as_unset $as_var
22864   fi
22865 done
22866
22867 # Required to use basename.
22868 if expr a : '\(a\)' >/dev/null 2>&1; then
22869   as_expr=expr
22870 else
22871   as_expr=false
22872 fi
22873
22874 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
22875   as_basename=basename
22876 else
22877   as_basename=false
22878 fi
22879
22880
22881 # Name of the executable.
22882 as_me=`$as_basename "$0" ||
22883 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
22884          X"$0" : 'X\(//\)$' \| \
22885          X"$0" : 'X\(/\)$' \| \
22886          .     : '\(.\)' 2>/dev/null ||
22887 echo X/"$0" |
22888     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
22889           /^X\/\(\/\/\)$/{ s//\1/; q; }
22890           /^X\/\(\/\).*/{ s//\1/; q; }
22891           s/.*/./; q'`
22892
22893
22894 # PATH needs CR, and LINENO needs CR and PATH.
22895 # Avoid depending upon Character Ranges.
22896 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
22897 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
22898 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
22899 as_cr_digits='0123456789'
22900 as_cr_alnum=$as_cr_Letters$as_cr_digits
22901
22902 # The user is always right.
22903 if test "${PATH_SEPARATOR+set}" != set; then
22904   echo "#! /bin/sh" >conf$$.sh
22905   echo  "exit 0"   >>conf$$.sh
22906   chmod +x conf$$.sh
22907   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
22908     PATH_SEPARATOR=';'
22909   else
22910     PATH_SEPARATOR=:
22911   fi
22912   rm -f conf$$.sh
22913 fi
22914
22915
22916   as_lineno_1=$LINENO
22917   as_lineno_2=$LINENO
22918   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
22919   test "x$as_lineno_1" != "x$as_lineno_2" &&
22920   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
22921   # Find who we are.  Look in the path if we contain no path at all
22922   # relative or not.
22923   case $0 in
22924     *[\\/]* ) as_myself=$0 ;;
22925     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22926 for as_dir in $PATH
22927 do
22928   IFS=$as_save_IFS
22929   test -z "$as_dir" && as_dir=.
22930   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
22931 done
22932
22933        ;;
22934   esac
22935   # We did not find ourselves, most probably we were run as `sh COMMAND'
22936   # in which case we are not to be found in the path.
22937   if test "x$as_myself" = x; then
22938     as_myself=$0
22939   fi
22940   if test ! -f "$as_myself"; then
22941     { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
22942 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
22943    { (exit 1); exit 1; }; }
22944   fi
22945   case $CONFIG_SHELL in
22946   '')
22947     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22948 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
22949 do
22950   IFS=$as_save_IFS
22951   test -z "$as_dir" && as_dir=.
22952   for as_base in sh bash ksh sh5; do
22953          case $as_dir in
22954          /*)
22955            if ("$as_dir/$as_base" -c '
22956   as_lineno_1=$LINENO
22957   as_lineno_2=$LINENO
22958   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
22959   test "x$as_lineno_1" != "x$as_lineno_2" &&
22960   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
22961              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
22962              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
22963              CONFIG_SHELL=$as_dir/$as_base
22964              export CONFIG_SHELL
22965              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
22966            fi;;
22967          esac
22968        done
22969 done
22970 ;;
22971   esac
22972
22973   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
22974   # uniformly replaced by the line number.  The first 'sed' inserts a
22975   # line-number line before each line; the second 'sed' does the real
22976   # work.  The second script uses 'N' to pair each line-number line
22977   # with the numbered line, and appends trailing '-' during
22978   # substitution so that $LINENO is not a special case at line end.
22979   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
22980   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
22981   sed '=' <$as_myself |
22982     sed '
22983       N
22984       s,$,-,
22985       : loop
22986       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
22987       t loop
22988       s,-$,,
22989       s,^['$as_cr_digits']*\n,,
22990     ' >$as_me.lineno &&
22991   chmod +x $as_me.lineno ||
22992     { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
22993 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
22994    { (exit 1); exit 1; }; }
22995
22996   # Don't try to exec as it changes $[0], causing all sort of problems
22997   # (the dirname of $[0] is not the place where we might find the
22998   # original and so on.  Autoconf is especially sensible to this).
22999   . ./$as_me.lineno
23000   # Exit status is that of the last command.
23001   exit
23002 }
23003
23004
23005 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
23006   *c*,-n*) ECHO_N= ECHO_C='
23007 ' ECHO_T='      ' ;;
23008   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
23009   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
23010 esac
23011
23012 if expr a : '\(a\)' >/dev/null 2>&1; then
23013   as_expr=expr
23014 else
23015   as_expr=false
23016 fi
23017
23018 rm -f conf$$ conf$$.exe conf$$.file
23019 echo >conf$$.file
23020 if ln -s conf$$.file conf$$ 2>/dev/null; then
23021   # We could just check for DJGPP; but this test a) works b) is more generic
23022   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
23023   if test -f conf$$.exe; then
23024     # Don't use ln at all; we don't have any links
23025     as_ln_s='cp -p'
23026   else
23027     as_ln_s='ln -s'
23028   fi
23029 elif ln conf$$.file conf$$ 2>/dev/null; then
23030   as_ln_s=ln
23031 else
23032   as_ln_s='cp -p'
23033 fi
23034 rm -f conf$$ conf$$.exe conf$$.file
23035
23036 if mkdir -p . 2>/dev/null; then
23037   as_mkdir_p=:
23038 else
23039   as_mkdir_p=false
23040 fi
23041
23042 as_executable_p="test -f"
23043
23044 # Sed expression to map a string onto a valid CPP name.
23045 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
23046
23047 # Sed expression to map a string onto a valid variable name.
23048 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
23049
23050
23051 # IFS
23052 # We need space, tab and new line, in precisely that order.
23053 as_nl='
23054 '
23055 IFS="   $as_nl"
23056
23057 # CDPATH.
23058 $as_unset CDPATH
23059
23060 exec 6>&1
23061
23062 # Open the log real soon, to keep \$[0] and so on meaningful, and to
23063 # report actual input values of CONFIG_FILES etc. instead of their
23064 # values after options handling.  Logging --version etc. is OK.
23065 exec 5>>config.log
23066 {
23067   echo
23068   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
23069 ## Running $as_me. ##
23070 _ASBOX
23071 } >&5
23072 cat >&5 <<_CSEOF
23073
23074 This file was extended by [LLVM] $as_me [1.0], which was
23075 generated by GNU Autoconf 2.57.  Invocation command line was
23076
23077   CONFIG_FILES    = $CONFIG_FILES
23078   CONFIG_HEADERS  = $CONFIG_HEADERS
23079   CONFIG_LINKS    = $CONFIG_LINKS
23080   CONFIG_COMMANDS = $CONFIG_COMMANDS
23081   $ $0 $@
23082
23083 _CSEOF
23084 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
23085 echo >&5
23086 _ACEOF
23087
23088 # Files that config.status was made for.
23089 if test -n "$ac_config_files"; then
23090   echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
23091 fi
23092
23093 if test -n "$ac_config_headers"; then
23094   echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
23095 fi
23096
23097 if test -n "$ac_config_links"; then
23098   echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
23099 fi
23100
23101 if test -n "$ac_config_commands"; then
23102   echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
23103 fi
23104
23105 cat >>$CONFIG_STATUS <<\_ACEOF
23106
23107 ac_cs_usage="\
23108 \`$as_me' instantiates files from templates according to the
23109 current configuration.
23110
23111 Usage: $0 [OPTIONS] [FILE]...
23112
23113   -h, --help       print this help, then exit
23114   -V, --version    print version number, then exit
23115   -q, --quiet      do not print progress messages
23116   -d, --debug      don't remove temporary files
23117       --recheck    update $as_me by reconfiguring in the same conditions
23118   --file=FILE[:TEMPLATE]
23119                    instantiate the configuration file FILE
23120   --header=FILE[:TEMPLATE]
23121                    instantiate the configuration header FILE
23122
23123 Configuration files:
23124 $config_files
23125
23126 Configuration headers:
23127 $config_headers
23128
23129 Configuration commands:
23130 $config_commands
23131
23132 Report bugs to <bug-autoconf@gnu.org>."
23133 _ACEOF
23134
23135 cat >>$CONFIG_STATUS <<_ACEOF
23136 ac_cs_version="\\
23137 [LLVM] config.status [1.0]
23138 configured by $0, generated by GNU Autoconf 2.57,
23139   with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
23140
23141 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
23142 Free Software Foundation, Inc.
23143 This config.status script is free software; the Free Software Foundation
23144 gives unlimited permission to copy, distribute and modify it."
23145 srcdir=$srcdir
23146 INSTALL="$INSTALL"
23147 _ACEOF
23148
23149 cat >>$CONFIG_STATUS <<\_ACEOF
23150 # If no file are specified by the user, then we need to provide default
23151 # value.  By we need to know if files were specified by the user.
23152 ac_need_defaults=:
23153 while test $# != 0
23154 do
23155   case $1 in
23156   --*=*)
23157     ac_option=`expr "x$1" : 'x\([^=]*\)='`
23158     ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
23159     ac_shift=:
23160     ;;
23161   -*)
23162     ac_option=$1
23163     ac_optarg=$2
23164     ac_shift=shift
23165     ;;
23166   *) # This is not an option, so the user has probably given explicit
23167      # arguments.
23168      ac_option=$1
23169      ac_need_defaults=false;;
23170   esac
23171
23172   case $ac_option in
23173   # Handling of the options.
23174 _ACEOF
23175 cat >>$CONFIG_STATUS <<\_ACEOF
23176   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
23177     ac_cs_recheck=: ;;
23178   --version | --vers* | -V )
23179     echo "$ac_cs_version"; exit 0 ;;
23180   --he | --h)
23181     # Conflict between --help and --header
23182     { { echo "$as_me:$LINENO: error: ambiguous option: $1
23183 Try \`$0 --help' for more information." >&5
23184 echo "$as_me: error: ambiguous option: $1
23185 Try \`$0 --help' for more information." >&2;}
23186    { (exit 1); exit 1; }; };;
23187   --help | --hel | -h )
23188     echo "$ac_cs_usage"; exit 0 ;;
23189   --debug | --d* | -d )
23190     debug=: ;;
23191   --file | --fil | --fi | --f )
23192     $ac_shift
23193     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
23194     ac_need_defaults=false;;
23195   --header | --heade | --head | --hea )
23196     $ac_shift
23197     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
23198     ac_need_defaults=false;;
23199   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
23200   | -silent | --silent | --silen | --sile | --sil | --si | --s)
23201     ac_cs_silent=: ;;
23202
23203   # This is an error.
23204   -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
23205 Try \`$0 --help' for more information." >&5
23206 echo "$as_me: error: unrecognized option: $1
23207 Try \`$0 --help' for more information." >&2;}
23208    { (exit 1); exit 1; }; } ;;
23209
23210   *) ac_config_targets="$ac_config_targets $1" ;;
23211
23212   esac
23213   shift
23214 done
23215
23216 ac_configure_extra_args=
23217
23218 if $ac_cs_silent; then
23219   exec 6>/dev/null
23220   ac_configure_extra_args="$ac_configure_extra_args --silent"
23221 fi
23222
23223 _ACEOF
23224 cat >>$CONFIG_STATUS <<_ACEOF
23225 if \$ac_cs_recheck; then
23226   echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
23227   exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
23228 fi
23229
23230 _ACEOF
23231
23232 cat >>$CONFIG_STATUS <<_ACEOF
23233 #
23234 # INIT-COMMANDS section.
23235 #
23236
23237 ${srcdir}/autoconf/mkinstalldirs `dirname Makefile`
23238 ${srcdir}/autoconf/mkinstalldirs `dirname Makefile.common`
23239 ${srcdir}/autoconf/mkinstalldirs `dirname Makefile.rules`
23240 ${srcdir}/autoconf/mkinstalldirs `dirname lib/Makefile`
23241 ${srcdir}/autoconf/mkinstalldirs `dirname lib/Analysis/Makefile`
23242 ${srcdir}/autoconf/mkinstalldirs `dirname lib/Analysis/DataStructure/Makefile`
23243 ${srcdir}/autoconf/mkinstalldirs `dirname lib/Analysis/IPA/Makefile`
23244 ${srcdir}/autoconf/mkinstalldirs `dirname lib/Analysis/LiveVar/Makefile`
23245 ${srcdir}/autoconf/mkinstalldirs `dirname lib/AsmParser/Makefile`
23246 ${srcdir}/autoconf/mkinstalldirs `dirname lib/Bytecode/Makefile`
23247 ${srcdir}/autoconf/mkinstalldirs `dirname lib/Bytecode/Reader/Makefile`
23248 ${srcdir}/autoconf/mkinstalldirs `dirname lib/Bytecode/Writer/Makefile`
23249 ${srcdir}/autoconf/mkinstalldirs `dirname lib/CWriter/Makefile`
23250 ${srcdir}/autoconf/mkinstalldirs `dirname lib/CodeGen/Makefile`
23251 ${srcdir}/autoconf/mkinstalldirs `dirname lib/CodeGen/InstrSched/Makefile`
23252 ${srcdir}/autoconf/mkinstalldirs `dirname lib/CodeGen/InstrSelection/Makefile`
23253 ${srcdir}/autoconf/mkinstalldirs `dirname lib/CodeGen/ModuloScheduling/Makefile`
23254 ${srcdir}/autoconf/mkinstalldirs `dirname lib/CodeGen/RegAlloc/Makefile`
23255 ${srcdir}/autoconf/mkinstalldirs `dirname lib/CodeGen/SelectionDAG/Makefile`
23256 ${srcdir}/autoconf/mkinstalldirs `dirname lib/ExecutionEngine/Makefile`
23257 ${srcdir}/autoconf/mkinstalldirs `dirname lib/ExecutionEngine/Interpreter/Makefile`
23258 ${srcdir}/autoconf/mkinstalldirs `dirname lib/ExecutionEngine/JIT/Makefile`
23259 ${srcdir}/autoconf/mkinstalldirs `dirname lib/Support/Makefile`
23260 ${srcdir}/autoconf/mkinstalldirs `dirname lib/Target/Makefile`
23261 ${srcdir}/autoconf/mkinstalldirs `dirname lib/Target/Sparc/Makefile`
23262 ${srcdir}/autoconf/mkinstalldirs `dirname lib/Target/X86/Makefile`
23263 ${srcdir}/autoconf/mkinstalldirs `dirname lib/Transforms/Makefile`
23264 ${srcdir}/autoconf/mkinstalldirs `dirname lib/Transforms/Hello/Makefile`
23265 ${srcdir}/autoconf/mkinstalldirs `dirname lib/Transforms/IPO/Makefile`
23266 ${srcdir}/autoconf/mkinstalldirs `dirname lib/Transforms/Instrumentation/Makefile`
23267 ${srcdir}/autoconf/mkinstalldirs `dirname lib/Transforms/Instrumentation/ProfilePaths/Makefile`
23268 ${srcdir}/autoconf/mkinstalldirs `dirname lib/Transforms/Scalar/Makefile`
23269 ${srcdir}/autoconf/mkinstalldirs `dirname lib/Transforms/Utils/Makefile`
23270 ${srcdir}/autoconf/mkinstalldirs `dirname lib/VMCore/Makefile`
23271 ${srcdir}/autoconf/mkinstalldirs `dirname runtime/Makefile`
23272 ${srcdir}/autoconf/mkinstalldirs `dirname runtime/GCCLibraries/Makefile`
23273 ${srcdir}/autoconf/mkinstalldirs `dirname runtime/GCCLibraries/crtend/Makefile`
23274 ${srcdir}/autoconf/mkinstalldirs `dirname runtime/GCCLibraries/libc/Makefile`
23275 ${srcdir}/autoconf/mkinstalldirs `dirname runtime/GCCLibraries/libg/Makefile`
23276 ${srcdir}/autoconf/mkinstalldirs `dirname runtime/GCCLibraries/libgcc/Makefile`
23277 ${srcdir}/autoconf/mkinstalldirs `dirname runtime/GCCLibraries/libm/Makefile`
23278 ${srcdir}/autoconf/mkinstalldirs `dirname runtime/GCCLibraries/libmalloc/Makefile`
23279 ${srcdir}/autoconf/mkinstalldirs `dirname runtime/GCCLibraries/libucb/Makefile`
23280 ${srcdir}/autoconf/mkinstalldirs `dirname runtime/libdummy/Makefile`
23281 ${srcdir}/autoconf/mkinstalldirs `dirname runtime/libtrace/Makefile`
23282 ${srcdir}/autoconf/mkinstalldirs `dirname test/Makefile`
23283 ${srcdir}/autoconf/mkinstalldirs `dirname test/Makefile.tests`
23284 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/Makefile`
23285 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/Makefile.programs`
23286 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.aa.Makefile`
23287 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.dsgraph.report`
23288 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.micro.report`
23289 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.aa.report`
23290 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.example.Makefile`
23291 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.nightly.Makefile`
23292 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.buildrepo.Makefile`
23293 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.jit.Makefile`
23294 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.nightly.report`
23295 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.dsgraph.Makefile`
23296 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.jit.report`
23297 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.typesafe.Makefile`
23298 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.dsgraph.gnuplot`
23299 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.micro.Makefile`
23300 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/Makefile`
23301 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/Makefile`
23302 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/CFP2000/Makefile`
23303 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/CFP2000/179.art/Makefile`
23304 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/CFP2000/183.equake/Makefile`
23305 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/CFP2000/188.ammp/Makefile`
23306 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/CINT2000/Makefile`
23307 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/CINT2000/164.gzip/Makefile`
23308 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/CINT2000/175.vpr/Makefile`
23309 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/CINT2000/176.gcc/Makefile`
23310 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/CINT2000/181.mcf/Makefile`
23311 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/CINT2000/186.crafty/Makefile`
23312 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/CINT2000/197.parser/Makefile`
23313 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/CINT2000/254.gap/Makefile`
23314 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/CINT2000/255.vortex/Makefile`
23315 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/CINT2000/256.bzip2/Makefile`
23316 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/CINT2000/300.twolf/Makefile`
23317 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/LLVMSource/Makefile`
23318 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Makefile`
23319 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Makefile.multisrc`
23320 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Burg/Makefile`
23321 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Fhourstones/Makefile`
23322 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/McCat/Makefile`
23323 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/McCat/01-qbsort/Makefile`
23324 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/McCat/03-testtrie/Makefile`
23325 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/McCat/04-bisect/Makefile`
23326 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/McCat/05-eks/Makefile`
23327 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/McCat/08-main/Makefile`
23328 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/McCat/09-vor/Makefile`
23329 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/McCat/12-IOtest/Makefile`
23330 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/McCat/15-trie/Makefile`
23331 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/McCat/17-bintr/Makefile`
23332 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/McCat/18-imp/Makefile`
23333 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Olden/Makefile`
23334 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Olden/bh/Makefile`
23335 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Olden/bisort/Makefile`
23336 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Olden/em3d/Makefile`
23337 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Olden/health/Makefile`
23338 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Olden/mst/Makefile`
23339 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Olden/perimeter/Makefile`
23340 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Olden/power/Makefile`
23341 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Olden/treeadd/Makefile`
23342 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Olden/tsp/Makefile`
23343 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Olden/voronoi/Makefile`
23344 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/OptimizerEval/Makefile`
23345 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Ptrdist/Makefile`
23346 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Ptrdist/anagram/Makefile`
23347 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Ptrdist/bc/Makefile`
23348 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Ptrdist/ft/Makefile`
23349 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Ptrdist/ks/Makefile`
23350 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Ptrdist/yacr2/Makefile`
23351 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/aha/Makefile`
23352 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/llubenchmark/Makefile`
23353 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/sgefa/Makefile`
23354 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/sim/Makefile`
23355 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/NoSource/Makefile`
23356 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/NoSource/Flex/Makefile`
23357 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/NoSource/Larn/Makefile`
23358 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/NoSource/Moria-5.5.2/Makefile`
23359 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/NoSource/Povray31/Makefile`
23360 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/NoSource/m4/Makefile`
23361 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/SingleSource/Makefile`
23362 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/SingleSource/Makefile.singlesrc`
23363 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/SingleSource/CustomChecked/Makefile`
23364 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/SingleSource/Shootout/Makefile`
23365 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/SingleSource/Stanford/Makefile`
23366 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/SingleSource/UnitTests/Makefile`
23367 ${srcdir}/autoconf/mkinstalldirs `dirname tools/Makefile`
23368 ${srcdir}/autoconf/mkinstalldirs `dirname tools/analyze/Makefile`
23369 ${srcdir}/autoconf/mkinstalldirs `dirname tools/as/Makefile`
23370 ${srcdir}/autoconf/mkinstalldirs `dirname tools/bugpoint/Makefile`
23371 ${srcdir}/autoconf/mkinstalldirs `dirname tools/dis/Makefile`
23372 ${srcdir}/autoconf/mkinstalldirs `dirname tools/extract/Makefile`
23373 ${srcdir}/autoconf/mkinstalldirs `dirname tools/gccas/Makefile`
23374 ${srcdir}/autoconf/mkinstalldirs `dirname tools/gccld/Makefile`
23375 ${srcdir}/autoconf/mkinstalldirs `dirname tools/link/Makefile`
23376 ${srcdir}/autoconf/mkinstalldirs `dirname tools/llc/Makefile`
23377 ${srcdir}/autoconf/mkinstalldirs `dirname tools/lli/Makefile`
23378 ${srcdir}/autoconf/mkinstalldirs `dirname tools/opt/Makefile`
23379 ${srcdir}/autoconf/mkinstalldirs `dirname tools/llee/Makefile`
23380 ${srcdir}/autoconf/mkinstalldirs `dirname tools/llvm-as/Makefile`
23381 ${srcdir}/autoconf/mkinstalldirs `dirname tools/llvm-dis/Makefile`
23382 ${srcdir}/autoconf/mkinstalldirs `dirname utils/Makefile`
23383 ${srcdir}/autoconf/mkinstalldirs `dirname utils/Burg/Makefile`
23384 ${srcdir}/autoconf/mkinstalldirs `dirname utils/Burg/Doc/Makefile`
23385 ${srcdir}/autoconf/mkinstalldirs `dirname utils/TableGen/Makefile`
23386 ${srcdir}/autoconf/mkinstalldirs `dirname www/docs/Makefile`
23387 ${srcdir}/autoconf/mkinstalldirs `dirname projects/Makefile`
23388 ${srcdir}/autoconf/mkinstalldirs `dirname projects/sample/Makefile`
23389 ${srcdir}/autoconf/mkinstalldirs `dirname projects/sample/Makefile.common`
23390 ${srcdir}/autoconf/mkinstalldirs `dirname projects/sample/Makefile.config`
23391 ${srcdir}/autoconf/mkinstalldirs `dirname projects/sample/lib/Makefile`
23392 ${srcdir}/autoconf/mkinstalldirs `dirname projects/sample/lib/sample/Makefile`
23393 ${srcdir}/autoconf/mkinstalldirs `dirname projects/sample/tools/Makefile`
23394 ${srcdir}/autoconf/mkinstalldirs `dirname projects/sample/tools/sample/Makefile`
23395 ${srcdir}/autoconf/mkinstalldirs `dirname projects/ModuleMaker/Makefile`
23396 ${srcdir}/autoconf/mkinstalldirs `dirname projects/ModuleMaker/Makefile.common`
23397 ${srcdir}/autoconf/mkinstalldirs `dirname projects/ModuleMaker/tools/Makefile`
23398 ${srcdir}/autoconf/mkinstalldirs `dirname projects/ModuleMaker/tools/ModuleMaker/Makefile`
23399
23400 _ACEOF
23401
23402
23403
23404 cat >>$CONFIG_STATUS <<\_ACEOF
23405 for ac_config_target in $ac_config_targets
23406 do
23407   case "$ac_config_target" in
23408   # Handling of arguments.
23409   "Makefile.config" ) CONFIG_FILES="$CONFIG_FILES Makefile.config" ;;
23410   "Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
23411   "Makefile.common" ) CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.common" ;;
23412   "Makefile.rules" ) CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.rules" ;;
23413   "lib/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;;
23414   "lib/Analysis/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Analysis/Makefile" ;;
23415   "lib/Analysis/DataStructure/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Analysis/DataStructure/Makefile" ;;
23416   "lib/Analysis/IPA/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Analysis/IPA/Makefile" ;;
23417   "lib/Analysis/LiveVar/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Analysis/LiveVar/Makefile" ;;
23418   "lib/AsmParser/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/AsmParser/Makefile" ;;
23419   "lib/Bytecode/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Bytecode/Makefile" ;;
23420   "lib/Bytecode/Reader/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Bytecode/Reader/Makefile" ;;
23421   "lib/Bytecode/Writer/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Bytecode/Writer/Makefile" ;;
23422   "lib/CWriter/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/CWriter/Makefile" ;;
23423   "lib/CodeGen/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/CodeGen/Makefile" ;;
23424   "lib/CodeGen/InstrSched/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/CodeGen/InstrSched/Makefile" ;;
23425   "lib/CodeGen/InstrSelection/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/CodeGen/InstrSelection/Makefile" ;;
23426   "lib/CodeGen/ModuloScheduling/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/CodeGen/ModuloScheduling/Makefile" ;;
23427   "lib/CodeGen/RegAlloc/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/CodeGen/RegAlloc/Makefile" ;;
23428   "lib/CodeGen/SelectionDAG/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/CodeGen/SelectionDAG/Makefile" ;;
23429   "lib/ExecutionEngine/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/ExecutionEngine/Makefile" ;;
23430   "lib/ExecutionEngine/Interpreter/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/ExecutionEngine/Interpreter/Makefile" ;;
23431   "lib/ExecutionEngine/JIT/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/ExecutionEngine/JIT/Makefile" ;;
23432   "lib/Support/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Support/Makefile" ;;
23433   "lib/Target/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Target/Makefile" ;;
23434   "lib/Target/Sparc/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Target/Sparc/Makefile" ;;
23435   "lib/Target/X86/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Target/X86/Makefile" ;;
23436   "lib/Transforms/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Transforms/Makefile" ;;
23437   "lib/Transforms/Hello/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Transforms/Hello/Makefile" ;;
23438   "lib/Transforms/IPO/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Transforms/IPO/Makefile" ;;
23439   "lib/Transforms/Instrumentation/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Transforms/Instrumentation/Makefile" ;;
23440   "lib/Transforms/Instrumentation/ProfilePaths/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Transforms/Instrumentation/ProfilePaths/Makefile" ;;
23441   "lib/Transforms/Scalar/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Transforms/Scalar/Makefile" ;;
23442   "lib/Transforms/Utils/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Transforms/Utils/Makefile" ;;
23443   "lib/VMCore/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/VMCore/Makefile" ;;
23444   "runtime/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/Makefile" ;;
23445   "runtime/GCCLibraries/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/GCCLibraries/Makefile" ;;
23446   "runtime/GCCLibraries/crtend/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/GCCLibraries/crtend/Makefile" ;;
23447   "runtime/GCCLibraries/libc/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/GCCLibraries/libc/Makefile" ;;
23448   "runtime/GCCLibraries/libg/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/GCCLibraries/libg/Makefile" ;;
23449   "runtime/GCCLibraries/libgcc/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/GCCLibraries/libgcc/Makefile" ;;
23450   "runtime/GCCLibraries/libm/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/GCCLibraries/libm/Makefile" ;;
23451   "runtime/GCCLibraries/libmalloc/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/GCCLibraries/libmalloc/Makefile" ;;
23452   "runtime/GCCLibraries/libucb/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/GCCLibraries/libucb/Makefile" ;;
23453   "runtime/libdummy/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/libdummy/Makefile" ;;
23454   "runtime/libtrace/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/libtrace/Makefile" ;;
23455   "test/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile" ;;
23456   "test/Makefile.tests" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile.tests" ;;
23457   "test/Programs/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/Makefile" ;;
23458   "test/Programs/Makefile.programs" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/Makefile.programs" ;;
23459   "test/Programs/TEST.aa.Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.aa.Makefile" ;;
23460   "test/Programs/TEST.dsgraph.report" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.dsgraph.report" ;;
23461   "test/Programs/TEST.micro.report" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.micro.report" ;;
23462   "test/Programs/TEST.aa.report" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.aa.report" ;;
23463   "test/Programs/TEST.example.Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.example.Makefile" ;;
23464   "test/Programs/TEST.nightly.Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.nightly.Makefile" ;;
23465   "test/Programs/TEST.buildrepo.Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.buildrepo.Makefile" ;;
23466   "test/Programs/TEST.jit.Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.jit.Makefile" ;;
23467   "test/Programs/TEST.nightly.report" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.nightly.report" ;;
23468   "test/Programs/TEST.dsgraph.Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.dsgraph.Makefile" ;;
23469   "test/Programs/TEST.jit.report" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.jit.report" ;;
23470   "test/Programs/TEST.typesafe.Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.typesafe.Makefile" ;;
23471   "test/Programs/TEST.dsgraph.gnuplot" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.dsgraph.gnuplot" ;;
23472   "test/Programs/TEST.micro.Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.micro.Makefile" ;;
23473   "test/Programs/External/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/Makefile" ;;
23474   "test/Programs/External/SPEC/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/Makefile" ;;
23475   "test/Programs/External/SPEC/CFP2000/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/CFP2000/Makefile" ;;
23476   "test/Programs/External/SPEC/CFP2000/179.art/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/CFP2000/179.art/Makefile" ;;
23477   "test/Programs/External/SPEC/CFP2000/183.equake/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/CFP2000/183.equake/Makefile" ;;
23478   "test/Programs/External/SPEC/CFP2000/188.ammp/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/CFP2000/188.ammp/Makefile" ;;
23479   "test/Programs/External/SPEC/CINT2000/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/CINT2000/Makefile" ;;
23480   "test/Programs/External/SPEC/CINT2000/164.gzip/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/CINT2000/164.gzip/Makefile" ;;
23481   "test/Programs/External/SPEC/CINT2000/175.vpr/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/CINT2000/175.vpr/Makefile" ;;
23482   "test/Programs/External/SPEC/CINT2000/176.gcc/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/CINT2000/176.gcc/Makefile" ;;
23483   "test/Programs/External/SPEC/CINT2000/181.mcf/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/CINT2000/181.mcf/Makefile" ;;
23484   "test/Programs/External/SPEC/CINT2000/186.crafty/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/CINT2000/186.crafty/Makefile" ;;
23485   "test/Programs/External/SPEC/CINT2000/197.parser/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/CINT2000/197.parser/Makefile" ;;
23486   "test/Programs/External/SPEC/CINT2000/254.gap/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/CINT2000/254.gap/Makefile" ;;
23487   "test/Programs/External/SPEC/CINT2000/255.vortex/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/CINT2000/255.vortex/Makefile" ;;
23488   "test/Programs/External/SPEC/CINT2000/256.bzip2/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/CINT2000/256.bzip2/Makefile" ;;
23489   "test/Programs/External/SPEC/CINT2000/300.twolf/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/CINT2000/300.twolf/Makefile" ;;
23490   "test/Programs/LLVMSource/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/LLVMSource/Makefile" ;;
23491   "test/Programs/MultiSource/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Makefile" ;;
23492   "test/Programs/MultiSource/Makefile.multisrc" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Makefile.multisrc" ;;
23493   "test/Programs/MultiSource/Burg/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Burg/Makefile" ;;
23494   "test/Programs/MultiSource/Fhourstones/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Fhourstones/Makefile" ;;
23495   "test/Programs/MultiSource/McCat/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/McCat/Makefile" ;;
23496   "test/Programs/MultiSource/McCat/01-qbsort/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/McCat/01-qbsort/Makefile" ;;
23497   "test/Programs/MultiSource/McCat/03-testtrie/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/McCat/03-testtrie/Makefile" ;;
23498   "test/Programs/MultiSource/McCat/04-bisect/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/McCat/04-bisect/Makefile" ;;
23499   "test/Programs/MultiSource/McCat/05-eks/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/McCat/05-eks/Makefile" ;;
23500   "test/Programs/MultiSource/McCat/08-main/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/McCat/08-main/Makefile" ;;
23501   "test/Programs/MultiSource/McCat/09-vor/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/McCat/09-vor/Makefile" ;;
23502   "test/Programs/MultiSource/McCat/12-IOtest/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/McCat/12-IOtest/Makefile" ;;
23503   "test/Programs/MultiSource/McCat/15-trie/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/McCat/15-trie/Makefile" ;;
23504   "test/Programs/MultiSource/McCat/17-bintr/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/McCat/17-bintr/Makefile" ;;
23505   "test/Programs/MultiSource/McCat/18-imp/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/McCat/18-imp/Makefile" ;;
23506   "test/Programs/MultiSource/Olden/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Olden/Makefile" ;;
23507   "test/Programs/MultiSource/Olden/bh/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Olden/bh/Makefile" ;;
23508   "test/Programs/MultiSource/Olden/bisort/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Olden/bisort/Makefile" ;;
23509   "test/Programs/MultiSource/Olden/em3d/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Olden/em3d/Makefile" ;;
23510   "test/Programs/MultiSource/Olden/health/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Olden/health/Makefile" ;;
23511   "test/Programs/MultiSource/Olden/mst/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Olden/mst/Makefile" ;;
23512   "test/Programs/MultiSource/Olden/perimeter/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Olden/perimeter/Makefile" ;;
23513   "test/Programs/MultiSource/Olden/power/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Olden/power/Makefile" ;;
23514   "test/Programs/MultiSource/Olden/treeadd/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Olden/treeadd/Makefile" ;;
23515   "test/Programs/MultiSource/Olden/tsp/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Olden/tsp/Makefile" ;;
23516   "test/Programs/MultiSource/Olden/voronoi/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Olden/voronoi/Makefile" ;;
23517   "test/Programs/MultiSource/OptimizerEval/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/OptimizerEval/Makefile" ;;
23518   "test/Programs/MultiSource/Ptrdist/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Ptrdist/Makefile" ;;
23519   "test/Programs/MultiSource/Ptrdist/anagram/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Ptrdist/anagram/Makefile" ;;
23520   "test/Programs/MultiSource/Ptrdist/bc/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Ptrdist/bc/Makefile" ;;
23521   "test/Programs/MultiSource/Ptrdist/ft/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Ptrdist/ft/Makefile" ;;
23522   "test/Programs/MultiSource/Ptrdist/ks/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Ptrdist/ks/Makefile" ;;
23523   "test/Programs/MultiSource/Ptrdist/yacr2/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Ptrdist/yacr2/Makefile" ;;
23524   "test/Programs/MultiSource/aha/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/aha/Makefile" ;;
23525   "test/Programs/MultiSource/llubenchmark/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/llubenchmark/Makefile" ;;
23526   "test/Programs/MultiSource/sgefa/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/sgefa/Makefile" ;;
23527   "test/Programs/MultiSource/sim/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/sim/Makefile" ;;
23528   "test/Programs/NoSource/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/NoSource/Makefile" ;;
23529   "test/Programs/NoSource/Flex/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/NoSource/Flex/Makefile" ;;
23530   "test/Programs/NoSource/Larn/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/NoSource/Larn/Makefile" ;;
23531   "test/Programs/NoSource/Moria-5.5.2/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/NoSource/Moria-5.5.2/Makefile" ;;
23532   "test/Programs/NoSource/Povray31/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/NoSource/Povray31/Makefile" ;;
23533   "test/Programs/NoSource/m4/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/NoSource/m4/Makefile" ;;
23534   "test/Programs/SingleSource/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/SingleSource/Makefile" ;;
23535   "test/Programs/SingleSource/Makefile.singlesrc" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/SingleSource/Makefile.singlesrc" ;;
23536   "test/Programs/SingleSource/CustomChecked/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/SingleSource/CustomChecked/Makefile" ;;
23537   "test/Programs/SingleSource/Shootout/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/SingleSource/Shootout/Makefile" ;;
23538   "test/Programs/SingleSource/Stanford/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/SingleSource/Stanford/Makefile" ;;
23539   "test/Programs/SingleSource/UnitTests/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/SingleSource/UnitTests/Makefile" ;;
23540   "tools/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;;
23541   "tools/analyze/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/analyze/Makefile" ;;
23542   "tools/as/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/as/Makefile" ;;
23543   "tools/bugpoint/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/bugpoint/Makefile" ;;
23544   "tools/dis/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/dis/Makefile" ;;
23545   "tools/extract/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/extract/Makefile" ;;
23546   "tools/gccas/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/gccas/Makefile" ;;
23547   "tools/gccld/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/gccld/Makefile" ;;
23548   "tools/link/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/link/Makefile" ;;
23549   "tools/llc/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/llc/Makefile" ;;
23550   "tools/lli/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/lli/Makefile" ;;
23551   "tools/opt/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/opt/Makefile" ;;
23552   "tools/llee/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/llee/Makefile" ;;
23553   "tools/llvm-as/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/llvm-as/Makefile" ;;
23554   "tools/llvm-dis/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/llvm-dis/Makefile" ;;
23555   "utils/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Makefile" ;;
23556   "utils/Burg/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Burg/Makefile" ;;
23557   "utils/Burg/Doc/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Burg/Doc/Makefile" ;;
23558   "utils/TableGen/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS utils/TableGen/Makefile" ;;
23559   "www/docs/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS www/docs/Makefile" ;;
23560   "projects/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Makefile" ;;
23561   "projects/sample/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS projects/sample/Makefile" ;;
23562   "projects/sample/Makefile.common" ) CONFIG_COMMANDS="$CONFIG_COMMANDS projects/sample/Makefile.common" ;;
23563   "projects/sample/Makefile.config" ) CONFIG_COMMANDS="$CONFIG_COMMANDS projects/sample/Makefile.config" ;;
23564   "projects/sample/lib/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS projects/sample/lib/Makefile" ;;
23565   "projects/sample/lib/sample/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS projects/sample/lib/sample/Makefile" ;;
23566   "projects/sample/tools/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS projects/sample/tools/Makefile" ;;
23567   "projects/sample/tools/sample/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS projects/sample/tools/sample/Makefile" ;;
23568   "projects/ModuleMaker/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS projects/ModuleMaker/Makefile" ;;
23569   "projects/ModuleMaker/Makefile.common" ) CONFIG_COMMANDS="$CONFIG_COMMANDS projects/ModuleMaker/Makefile.common" ;;
23570   "projects/ModuleMaker/tools/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS projects/ModuleMaker/tools/Makefile" ;;
23571   "projects/ModuleMaker/tools/ModuleMaker/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS projects/ModuleMaker/tools/ModuleMaker/Makefile" ;;
23572   "include/Config/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/Config/config.h" ;;
23573   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
23574 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
23575    { (exit 1); exit 1; }; };;
23576   esac
23577 done
23578
23579 # If the user did not use the arguments to specify the items to instantiate,
23580 # then the envvar interface is used.  Set only those that are not.
23581 # We use the long form for the default assignment because of an extremely
23582 # bizarre bug on SunOS 4.1.3.
23583 if $ac_need_defaults; then
23584   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
23585   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
23586   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
23587 fi
23588
23589 # Have a temporary directory for convenience.  Make it in the build tree
23590 # simply because there is no reason to put it here, and in addition,
23591 # creating and moving files from /tmp can sometimes cause problems.
23592 # Create a temporary directory, and hook for its removal unless debugging.
23593 $debug ||
23594 {
23595   trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
23596   trap '{ (exit 1); exit 1; }' 1 2 13 15
23597 }
23598
23599 # Create a (secure) tmp directory for tmp files.
23600
23601 {
23602   tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
23603   test -n "$tmp" && test -d "$tmp"
23604 }  ||
23605 {
23606   tmp=./confstat$$-$RANDOM
23607   (umask 077 && mkdir $tmp)
23608 } ||
23609 {
23610    echo "$me: cannot create a temporary directory in ." >&2
23611    { (exit 1); exit 1; }
23612 }
23613
23614 _ACEOF
23615
23616 cat >>$CONFIG_STATUS <<_ACEOF
23617
23618 #
23619 # CONFIG_FILES section.
23620 #
23621
23622 # No need to generate the scripts if there are no CONFIG_FILES.
23623 # This happens for instance when ./config.status config.h
23624 if test -n "\$CONFIG_FILES"; then
23625   # Protect against being on the right side of a sed subst in config.status.
23626   sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
23627    s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
23628 s,@SHELL@,$SHELL,;t t
23629 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
23630 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
23631 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
23632 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
23633 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
23634 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
23635 s,@exec_prefix@,$exec_prefix,;t t
23636 s,@prefix@,$prefix,;t t
23637 s,@program_transform_name@,$program_transform_name,;t t
23638 s,@bindir@,$bindir,;t t
23639 s,@sbindir@,$sbindir,;t t
23640 s,@libexecdir@,$libexecdir,;t t
23641 s,@datadir@,$datadir,;t t
23642 s,@sysconfdir@,$sysconfdir,;t t
23643 s,@sharedstatedir@,$sharedstatedir,;t t
23644 s,@localstatedir@,$localstatedir,;t t
23645 s,@libdir@,$libdir,;t t
23646 s,@includedir@,$includedir,;t t
23647 s,@oldincludedir@,$oldincludedir,;t t
23648 s,@infodir@,$infodir,;t t
23649 s,@mandir@,$mandir,;t t
23650 s,@build_alias@,$build_alias,;t t
23651 s,@host_alias@,$host_alias,;t t
23652 s,@target_alias@,$target_alias,;t t
23653 s,@DEFS@,$DEFS,;t t
23654 s,@ECHO_C@,$ECHO_C,;t t
23655 s,@ECHO_N@,$ECHO_N,;t t
23656 s,@ECHO_T@,$ECHO_T,;t t
23657 s,@LIBS@,$LIBS,;t t
23658 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
23659 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
23660 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
23661 s,@build@,$build,;t t
23662 s,@build_cpu@,$build_cpu,;t t
23663 s,@build_vendor@,$build_vendor,;t t
23664 s,@build_os@,$build_os,;t t
23665 s,@host@,$host,;t t
23666 s,@host_cpu@,$host_cpu,;t t
23667 s,@host_vendor@,$host_vendor,;t t
23668 s,@host_os@,$host_os,;t t
23669 s,@target@,$target,;t t
23670 s,@target_cpu@,$target_cpu,;t t
23671 s,@target_vendor@,$target_vendor,;t t
23672 s,@target_os@,$target_os,;t t
23673 s,@OS@,$OS,;t t
23674 s,@LLVMGCCDIR@,$LLVMGCCDIR,;t t
23675 s,@ARCH@,$ARCH,;t t
23676 s,@CXX@,$CXX,;t t
23677 s,@CXXFLAGS@,$CXXFLAGS,;t t
23678 s,@LDFLAGS@,$LDFLAGS,;t t
23679 s,@CPPFLAGS@,$CPPFLAGS,;t t
23680 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
23681 s,@EXEEXT@,$EXEEXT,;t t
23682 s,@OBJEXT@,$OBJEXT,;t t
23683 s,@CC@,$CC,;t t
23684 s,@CFLAGS@,$CFLAGS,;t t
23685 s,@ac_ct_CC@,$ac_ct_CC,;t t
23686 s,@CPP@,$CPP,;t t
23687 s,@ifGNUmake@,$ifGNUmake,;t t
23688 s,@LEX@,$LEX,;t t
23689 s,@LEXLIB@,$LEXLIB,;t t
23690 s,@LEX_OUTPUT_ROOT@,$LEX_OUTPUT_ROOT,;t t
23691 s,@YACC@,$YACC,;t t
23692 s,@EGREP@,$EGREP,;t t
23693 s,@LN_S@,$LN_S,;t t
23694 s,@ECHO@,$ECHO,;t t
23695 s,@AR@,$AR,;t t
23696 s,@ac_ct_AR@,$ac_ct_AR,;t t
23697 s,@RANLIB@,$RANLIB,;t t
23698 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
23699 s,@STRIP@,$STRIP,;t t
23700 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
23701 s,@CXXCPP@,$CXXCPP,;t t
23702 s,@F77@,$F77,;t t
23703 s,@FFLAGS@,$FFLAGS,;t t
23704 s,@ac_ct_F77@,$ac_ct_F77,;t t
23705 s,@LIBTOOL@,$LIBTOOL,;t t
23706 s,@RPWD@,$RPWD,;t t
23707 s,@SED@,$SED,;t t
23708 s,@RM@,$RM,;t t
23709 s,@MKDIR@,$MKDIR,;t t
23710 s,@DATE@,$DATE,;t t
23711 s,@MV@,$MV,;t t
23712 s,@DOT@,$DOT,;t t
23713 s,@ETAGS@,$ETAGS,;t t
23714 s,@PURIFY@,$PURIFY,;t t
23715 s,@PYTHON@,$PYTHON,;t t
23716 s,@QMTEST@,$QMTEST,;t t
23717 s,@ALLOCA@,$ALLOCA,;t t
23718 s,@LIBOBJS@,$LIBOBJS,;t t
23719 s,@MMAP_FILE@,$MMAP_FILE,;t t
23720 s,@ENABLE_PURIFY@,$ENABLE_PURIFY,;t t
23721 s,@ENABLE_OPTIMIZED@,$ENABLE_OPTIMIZED,;t t
23722 s,@USE_SPEC@,$USE_SPEC,;t t
23723 s,@UPB@,$UPB,;t t
23724 s,@DISABLE_LLC_DIFFS@,$DISABLE_LLC_DIFFS,;t t
23725 s,@JIT@,$JIT,;t t
23726 s,@SPEC_ROOT@,$SPEC_ROOT,;t t
23727 s,@BCR@,$BCR,;t t
23728 s,@PAPIDIR@,$PAPIDIR,;t t
23729 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
23730 CEOF
23731
23732 _ACEOF
23733
23734   cat >>$CONFIG_STATUS <<\_ACEOF
23735   # Split the substitutions into bite-sized pieces for seds with
23736   # small command number limits, like on Digital OSF/1 and HP-UX.
23737   ac_max_sed_lines=48
23738   ac_sed_frag=1 # Number of current file.
23739   ac_beg=1 # First line for current file.
23740   ac_end=$ac_max_sed_lines # Line after last line for current file.
23741   ac_more_lines=:
23742   ac_sed_cmds=
23743   while $ac_more_lines; do
23744     if test $ac_beg -gt 1; then
23745       sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
23746     else
23747       sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
23748     fi
23749     if test ! -s $tmp/subs.frag; then
23750       ac_more_lines=false
23751     else
23752       # The purpose of the label and of the branching condition is to
23753       # speed up the sed processing (if there are no `@' at all, there
23754       # is no need to browse any of the substitutions).
23755       # These are the two extra sed commands mentioned above.
23756       (echo ':t
23757   /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
23758       if test -z "$ac_sed_cmds"; then
23759         ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
23760       else
23761         ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
23762       fi
23763       ac_sed_frag=`expr $ac_sed_frag + 1`
23764       ac_beg=$ac_end
23765       ac_end=`expr $ac_end + $ac_max_sed_lines`
23766     fi
23767   done
23768   if test -z "$ac_sed_cmds"; then
23769     ac_sed_cmds=cat
23770   fi
23771 fi # test -n "$CONFIG_FILES"
23772
23773 _ACEOF
23774 cat >>$CONFIG_STATUS <<\_ACEOF
23775 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
23776   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
23777   case $ac_file in
23778   - | *:- | *:-:* ) # input from stdin
23779         cat >$tmp/stdin
23780         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
23781         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
23782   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
23783         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
23784   * )   ac_file_in=$ac_file.in ;;
23785   esac
23786
23787   # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
23788   ac_dir=`(dirname "$ac_file") 2>/dev/null ||
23789 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23790          X"$ac_file" : 'X\(//\)[^/]' \| \
23791          X"$ac_file" : 'X\(//\)$' \| \
23792          X"$ac_file" : 'X\(/\)' \| \
23793          .     : '\(.\)' 2>/dev/null ||
23794 echo X"$ac_file" |
23795     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23796           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23797           /^X\(\/\/\)$/{ s//\1/; q; }
23798           /^X\(\/\).*/{ s//\1/; q; }
23799           s/.*/./; q'`
23800   { if $as_mkdir_p; then
23801     mkdir -p "$ac_dir"
23802   else
23803     as_dir="$ac_dir"
23804     as_dirs=
23805     while test ! -d "$as_dir"; do
23806       as_dirs="$as_dir $as_dirs"
23807       as_dir=`(dirname "$as_dir") 2>/dev/null ||
23808 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23809          X"$as_dir" : 'X\(//\)[^/]' \| \
23810          X"$as_dir" : 'X\(//\)$' \| \
23811          X"$as_dir" : 'X\(/\)' \| \
23812          .     : '\(.\)' 2>/dev/null ||
23813 echo X"$as_dir" |
23814     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23815           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23816           /^X\(\/\/\)$/{ s//\1/; q; }
23817           /^X\(\/\).*/{ s//\1/; q; }
23818           s/.*/./; q'`
23819     done
23820     test ! -n "$as_dirs" || mkdir $as_dirs
23821   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
23822 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
23823    { (exit 1); exit 1; }; }; }
23824
23825   ac_builddir=.
23826
23827 if test "$ac_dir" != .; then
23828   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
23829   # A "../" for each directory in $ac_dir_suffix.
23830   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
23831 else
23832   ac_dir_suffix= ac_top_builddir=
23833 fi
23834
23835 case $srcdir in
23836   .)  # No --srcdir option.  We are building in place.
23837     ac_srcdir=.
23838     if test -z "$ac_top_builddir"; then
23839        ac_top_srcdir=.
23840     else
23841        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
23842     fi ;;
23843   [\\/]* | ?:[\\/]* )  # Absolute path.
23844     ac_srcdir=$srcdir$ac_dir_suffix;
23845     ac_top_srcdir=$srcdir ;;
23846   *) # Relative path.
23847     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
23848     ac_top_srcdir=$ac_top_builddir$srcdir ;;
23849 esac
23850 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
23851 # absolute.
23852 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
23853 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
23854 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
23855 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
23856
23857
23858   case $INSTALL in
23859   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
23860   *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
23861   esac
23862
23863   if test x"$ac_file" != x-; then
23864     { echo "$as_me:$LINENO: creating $ac_file" >&5
23865 echo "$as_me: creating $ac_file" >&6;}
23866     rm -f "$ac_file"
23867   fi
23868   # Let's still pretend it is `configure' which instantiates (i.e., don't
23869   # use $as_me), people would be surprised to read:
23870   #    /* config.h.  Generated by config.status.  */
23871   if test x"$ac_file" = x-; then
23872     configure_input=
23873   else
23874     configure_input="$ac_file.  "
23875   fi
23876   configure_input=$configure_input"Generated from `echo $ac_file_in |
23877                                      sed 's,.*/,,'` by configure."
23878
23879   # First look for the input files in the build tree, otherwise in the
23880   # src tree.
23881   ac_file_inputs=`IFS=:
23882     for f in $ac_file_in; do
23883       case $f in
23884       -) echo $tmp/stdin ;;
23885       [\\/$]*)
23886          # Absolute (can't be DOS-style, as IFS=:)
23887          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
23888 echo "$as_me: error: cannot find input file: $f" >&2;}
23889    { (exit 1); exit 1; }; }
23890          echo $f;;
23891       *) # Relative
23892          if test -f "$f"; then
23893            # Build tree
23894            echo $f
23895          elif test -f "$srcdir/$f"; then
23896            # Source tree
23897            echo $srcdir/$f
23898          else
23899            # /dev/null tree
23900            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
23901 echo "$as_me: error: cannot find input file: $f" >&2;}
23902    { (exit 1); exit 1; }; }
23903          fi;;
23904       esac
23905     done` || { (exit 1); exit 1; }
23906 _ACEOF
23907 cat >>$CONFIG_STATUS <<_ACEOF
23908   sed "$ac_vpsub
23909 $extrasub
23910 _ACEOF
23911 cat >>$CONFIG_STATUS <<\_ACEOF
23912 :t
23913 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
23914 s,@configure_input@,$configure_input,;t t
23915 s,@srcdir@,$ac_srcdir,;t t
23916 s,@abs_srcdir@,$ac_abs_srcdir,;t t
23917 s,@top_srcdir@,$ac_top_srcdir,;t t
23918 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
23919 s,@builddir@,$ac_builddir,;t t
23920 s,@abs_builddir@,$ac_abs_builddir,;t t
23921 s,@top_builddir@,$ac_top_builddir,;t t
23922 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
23923 s,@INSTALL@,$ac_INSTALL,;t t
23924 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
23925   rm -f $tmp/stdin
23926   if test x"$ac_file" != x-; then
23927     mv $tmp/out $ac_file
23928   else
23929     cat $tmp/out
23930     rm -f $tmp/out
23931   fi
23932
23933 done
23934 _ACEOF
23935 cat >>$CONFIG_STATUS <<\_ACEOF
23936
23937 #
23938 # CONFIG_HEADER section.
23939 #
23940
23941 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
23942 # NAME is the cpp macro being defined and VALUE is the value it is being given.
23943 #
23944 # ac_d sets the value in "#define NAME VALUE" lines.
23945 ac_dA='s,^\([   ]*\)#\([        ]*define[       ][      ]*\)'
23946 ac_dB='[        ].*$,\1#\2'
23947 ac_dC=' '
23948 ac_dD=',;t'
23949 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
23950 ac_uA='s,^\([   ]*\)#\([        ]*\)undef\([    ][      ]*\)'
23951 ac_uB='$,\1#\2define\3'
23952 ac_uC=' '
23953 ac_uD=',;t'
23954
23955 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
23956   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
23957   case $ac_file in
23958   - | *:- | *:-:* ) # input from stdin
23959         cat >$tmp/stdin
23960         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
23961         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
23962   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
23963         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
23964   * )   ac_file_in=$ac_file.in ;;
23965   esac
23966
23967   test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
23968 echo "$as_me: creating $ac_file" >&6;}
23969
23970   # First look for the input files in the build tree, otherwise in the
23971   # src tree.
23972   ac_file_inputs=`IFS=:
23973     for f in $ac_file_in; do
23974       case $f in
23975       -) echo $tmp/stdin ;;
23976       [\\/$]*)
23977          # Absolute (can't be DOS-style, as IFS=:)
23978          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
23979 echo "$as_me: error: cannot find input file: $f" >&2;}
23980    { (exit 1); exit 1; }; }
23981          echo $f;;
23982       *) # Relative
23983          if test -f "$f"; then
23984            # Build tree
23985            echo $f
23986          elif test -f "$srcdir/$f"; then
23987            # Source tree
23988            echo $srcdir/$f
23989          else
23990            # /dev/null tree
23991            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
23992 echo "$as_me: error: cannot find input file: $f" >&2;}
23993    { (exit 1); exit 1; }; }
23994          fi;;
23995       esac
23996     done` || { (exit 1); exit 1; }
23997   # Remove the trailing spaces.
23998   sed 's/[      ]*$//' $ac_file_inputs >$tmp/in
23999
24000 _ACEOF
24001
24002 # Transform confdefs.h into two sed scripts, `conftest.defines' and
24003 # `conftest.undefs', that substitutes the proper values into
24004 # config.h.in to produce config.h.  The first handles `#define'
24005 # templates, and the second `#undef' templates.
24006 # And first: Protect against being on the right side of a sed subst in
24007 # config.status.  Protect against being in an unquoted here document
24008 # in config.status.
24009 rm -f conftest.defines conftest.undefs
24010 # Using a here document instead of a string reduces the quoting nightmare.
24011 # Putting comments in sed scripts is not portable.
24012 #
24013 # `end' is used to avoid that the second main sed command (meant for
24014 # 0-ary CPP macros) applies to n-ary macro definitions.
24015 # See the Autoconf documentation for `clear'.
24016 cat >confdef2sed.sed <<\_ACEOF
24017 s/[\\&,]/\\&/g
24018 s,[\\$`],\\&,g
24019 t clear
24020 : clear
24021 s,^[    ]*#[    ]*define[       ][      ]*\([^  (][^    (]*\)\(([^)]*)\)[       ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
24022 t end
24023 s,^[    ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
24024 : end
24025 _ACEOF
24026 # If some macros were called several times there might be several times
24027 # the same #defines, which is useless.  Nevertheless, we may not want to
24028 # sort them, since we want the *last* AC-DEFINE to be honored.
24029 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
24030 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
24031 rm -f confdef2sed.sed
24032
24033 # This sed command replaces #undef with comments.  This is necessary, for
24034 # example, in the case of _POSIX_SOURCE, which is predefined and required
24035 # on some systems where configure will not decide to define it.
24036 cat >>conftest.undefs <<\_ACEOF
24037 s,^[    ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
24038 _ACEOF
24039
24040 # Break up conftest.defines because some shells have a limit on the size
24041 # of here documents, and old seds have small limits too (100 cmds).
24042 echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
24043 echo '  if grep "^[     ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
24044 echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
24045 echo '  :' >>$CONFIG_STATUS
24046 rm -f conftest.tail
24047 while grep . conftest.defines >/dev/null
24048 do
24049   # Write a limited-size here document to $tmp/defines.sed.
24050   echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
24051   # Speed up: don't consider the non `#define' lines.
24052   echo '/^[     ]*#[    ]*define/!b' >>$CONFIG_STATUS
24053   # Work around the forget-to-reset-the-flag bug.
24054   echo 't clr' >>$CONFIG_STATUS
24055   echo ': clr' >>$CONFIG_STATUS
24056   sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
24057   echo 'CEOF
24058   sed -f $tmp/defines.sed $tmp/in >$tmp/out
24059   rm -f $tmp/in
24060   mv $tmp/out $tmp/in
24061 ' >>$CONFIG_STATUS
24062   sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
24063   rm -f conftest.defines
24064   mv conftest.tail conftest.defines
24065 done
24066 rm -f conftest.defines
24067 echo '  fi # grep' >>$CONFIG_STATUS
24068 echo >>$CONFIG_STATUS
24069
24070 # Break up conftest.undefs because some shells have a limit on the size
24071 # of here documents, and old seds have small limits too (100 cmds).
24072 echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
24073 rm -f conftest.tail
24074 while grep . conftest.undefs >/dev/null
24075 do
24076   # Write a limited-size here document to $tmp/undefs.sed.
24077   echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
24078   # Speed up: don't consider the non `#undef'
24079   echo '/^[     ]*#[    ]*undef/!b' >>$CONFIG_STATUS
24080   # Work around the forget-to-reset-the-flag bug.
24081   echo 't clr' >>$CONFIG_STATUS
24082   echo ': clr' >>$CONFIG_STATUS
24083   sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
24084   echo 'CEOF
24085   sed -f $tmp/undefs.sed $tmp/in >$tmp/out
24086   rm -f $tmp/in
24087   mv $tmp/out $tmp/in
24088 ' >>$CONFIG_STATUS
24089   sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
24090   rm -f conftest.undefs
24091   mv conftest.tail conftest.undefs
24092 done
24093 rm -f conftest.undefs
24094
24095 cat >>$CONFIG_STATUS <<\_ACEOF
24096   # Let's still pretend it is `configure' which instantiates (i.e., don't
24097   # use $as_me), people would be surprised to read:
24098   #    /* config.h.  Generated by config.status.  */
24099   if test x"$ac_file" = x-; then
24100     echo "/* Generated by configure.  */" >$tmp/config.h
24101   else
24102     echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
24103   fi
24104   cat $tmp/in >>$tmp/config.h
24105   rm -f $tmp/in
24106   if test x"$ac_file" != x-; then
24107     if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
24108       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
24109 echo "$as_me: $ac_file is unchanged" >&6;}
24110     else
24111       ac_dir=`(dirname "$ac_file") 2>/dev/null ||
24112 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24113          X"$ac_file" : 'X\(//\)[^/]' \| \
24114          X"$ac_file" : 'X\(//\)$' \| \
24115          X"$ac_file" : 'X\(/\)' \| \
24116          .     : '\(.\)' 2>/dev/null ||
24117 echo X"$ac_file" |
24118     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24119           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24120           /^X\(\/\/\)$/{ s//\1/; q; }
24121           /^X\(\/\).*/{ s//\1/; q; }
24122           s/.*/./; q'`
24123       { if $as_mkdir_p; then
24124     mkdir -p "$ac_dir"
24125   else
24126     as_dir="$ac_dir"
24127     as_dirs=
24128     while test ! -d "$as_dir"; do
24129       as_dirs="$as_dir $as_dirs"
24130       as_dir=`(dirname "$as_dir") 2>/dev/null ||
24131 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24132          X"$as_dir" : 'X\(//\)[^/]' \| \
24133          X"$as_dir" : 'X\(//\)$' \| \
24134          X"$as_dir" : 'X\(/\)' \| \
24135          .     : '\(.\)' 2>/dev/null ||
24136 echo X"$as_dir" |
24137     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24138           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24139           /^X\(\/\/\)$/{ s//\1/; q; }
24140           /^X\(\/\).*/{ s//\1/; q; }
24141           s/.*/./; q'`
24142     done
24143     test ! -n "$as_dirs" || mkdir $as_dirs
24144   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
24145 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
24146    { (exit 1); exit 1; }; }; }
24147
24148       rm -f $ac_file
24149       mv $tmp/config.h $ac_file
24150     fi
24151   else
24152     cat $tmp/config.h
24153     rm -f $tmp/config.h
24154   fi
24155 done
24156 _ACEOF
24157 cat >>$CONFIG_STATUS <<\_ACEOF
24158
24159 #
24160 # CONFIG_COMMANDS section.
24161 #
24162 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
24163   ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
24164   ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
24165   ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
24166 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24167          X"$ac_dest" : 'X\(//\)[^/]' \| \
24168          X"$ac_dest" : 'X\(//\)$' \| \
24169          X"$ac_dest" : 'X\(/\)' \| \
24170          .     : '\(.\)' 2>/dev/null ||
24171 echo X"$ac_dest" |
24172     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24173           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24174           /^X\(\/\/\)$/{ s//\1/; q; }
24175           /^X\(\/\).*/{ s//\1/; q; }
24176           s/.*/./; q'`
24177   ac_builddir=.
24178
24179 if test "$ac_dir" != .; then
24180   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
24181   # A "../" for each directory in $ac_dir_suffix.
24182   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
24183 else
24184   ac_dir_suffix= ac_top_builddir=
24185 fi
24186
24187 case $srcdir in
24188   .)  # No --srcdir option.  We are building in place.
24189     ac_srcdir=.
24190     if test -z "$ac_top_builddir"; then
24191        ac_top_srcdir=.
24192     else
24193        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
24194     fi ;;
24195   [\\/]* | ?:[\\/]* )  # Absolute path.
24196     ac_srcdir=$srcdir$ac_dir_suffix;
24197     ac_top_srcdir=$srcdir ;;
24198   *) # Relative path.
24199     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
24200     ac_top_srcdir=$ac_top_builddir$srcdir ;;
24201 esac
24202 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
24203 # absolute.
24204 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
24205 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
24206 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
24207 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
24208
24209
24210   { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
24211 echo "$as_me: executing $ac_dest commands" >&6;}
24212   case $ac_dest in
24213     Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/Makefile Makefile ;;
24214     Makefile.common ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/Makefile.common Makefile.common ;;
24215     Makefile.rules ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/Makefile.rules Makefile.rules ;;
24216     lib/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Makefile lib/Makefile ;;
24217     lib/Analysis/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Analysis/Makefile lib/Analysis/Makefile ;;
24218     lib/Analysis/DataStructure/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Analysis/DataStructure/Makefile lib/Analysis/DataStructure/Makefile ;;
24219     lib/Analysis/IPA/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Analysis/IPA/Makefile lib/Analysis/IPA/Makefile ;;
24220     lib/Analysis/LiveVar/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Analysis/LiveVar/Makefile lib/Analysis/LiveVar/Makefile ;;
24221     lib/AsmParser/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/AsmParser/Makefile lib/AsmParser/Makefile ;;
24222     lib/Bytecode/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Bytecode/Makefile lib/Bytecode/Makefile ;;
24223     lib/Bytecode/Reader/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Bytecode/Reader/Makefile lib/Bytecode/Reader/Makefile ;;
24224     lib/Bytecode/Writer/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Bytecode/Writer/Makefile lib/Bytecode/Writer/Makefile ;;
24225     lib/CWriter/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/CWriter/Makefile lib/CWriter/Makefile ;;
24226     lib/CodeGen/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/CodeGen/Makefile lib/CodeGen/Makefile ;;
24227     lib/CodeGen/InstrSched/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/CodeGen/InstrSched/Makefile lib/CodeGen/InstrSched/Makefile ;;
24228     lib/CodeGen/InstrSelection/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/CodeGen/InstrSelection/Makefile lib/CodeGen/InstrSelection/Makefile ;;
24229     lib/CodeGen/ModuloScheduling/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/CodeGen/ModuloScheduling/Makefile lib/CodeGen/ModuloScheduling/Makefile ;;
24230     lib/CodeGen/RegAlloc/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/CodeGen/RegAlloc/Makefile lib/CodeGen/RegAlloc/Makefile ;;
24231     lib/CodeGen/SelectionDAG/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/CodeGen/SelectionDAG/Makefile lib/CodeGen/SelectionDAG/Makefile ;;
24232     lib/ExecutionEngine/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/ExecutionEngine/Makefile lib/ExecutionEngine/Makefile ;;
24233     lib/ExecutionEngine/Interpreter/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/ExecutionEngine/Interpreter/Makefile lib/ExecutionEngine/Interpreter/Makefile ;;
24234     lib/ExecutionEngine/JIT/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/ExecutionEngine/JIT/Makefile lib/ExecutionEngine/JIT/Makefile ;;
24235     lib/Support/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Support/Makefile lib/Support/Makefile ;;
24236     lib/Target/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Target/Makefile lib/Target/Makefile ;;
24237     lib/Target/Sparc/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Target/Sparc/Makefile lib/Target/Sparc/Makefile ;;
24238     lib/Target/X86/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Target/X86/Makefile lib/Target/X86/Makefile ;;
24239     lib/Transforms/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Transforms/Makefile lib/Transforms/Makefile ;;
24240     lib/Transforms/Hello/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Transforms/Hello/Makefile lib/Transforms/Hello/Makefile ;;
24241     lib/Transforms/IPO/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Transforms/IPO/Makefile lib/Transforms/IPO/Makefile ;;
24242     lib/Transforms/Instrumentation/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Transforms/Instrumentation/Makefile lib/Transforms/Instrumentation/Makefile ;;
24243     lib/Transforms/Instrumentation/ProfilePaths/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Transforms/Instrumentation/ProfilePaths/Makefile lib/Transforms/Instrumentation/ProfilePaths/Makefile ;;
24244     lib/Transforms/Scalar/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Transforms/Scalar/Makefile lib/Transforms/Scalar/Makefile ;;
24245     lib/Transforms/Utils/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Transforms/Utils/Makefile lib/Transforms/Utils/Makefile ;;
24246     lib/VMCore/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/VMCore/Makefile lib/VMCore/Makefile ;;
24247     runtime/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/runtime/Makefile runtime/Makefile ;;
24248     runtime/GCCLibraries/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/runtime/GCCLibraries/Makefile runtime/GCCLibraries/Makefile ;;
24249     runtime/GCCLibraries/crtend/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/runtime/GCCLibraries/crtend/Makefile runtime/GCCLibraries/crtend/Makefile ;;
24250     runtime/GCCLibraries/libc/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/runtime/GCCLibraries/libc/Makefile runtime/GCCLibraries/libc/Makefile ;;
24251     runtime/GCCLibraries/libg/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/runtime/GCCLibraries/libg/Makefile runtime/GCCLibraries/libg/Makefile ;;
24252     runtime/GCCLibraries/libgcc/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/runtime/GCCLibraries/libgcc/Makefile runtime/GCCLibraries/libgcc/Makefile ;;
24253     runtime/GCCLibraries/libm/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/runtime/GCCLibraries/libm/Makefile runtime/GCCLibraries/libm/Makefile ;;
24254     runtime/GCCLibraries/libmalloc/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/runtime/GCCLibraries/libmalloc/Makefile runtime/GCCLibraries/libmalloc/Makefile ;;
24255     runtime/GCCLibraries/libucb/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/runtime/GCCLibraries/libucb/Makefile runtime/GCCLibraries/libucb/Makefile ;;
24256     runtime/libdummy/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/runtime/libdummy/Makefile runtime/libdummy/Makefile ;;
24257     runtime/libtrace/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/runtime/libtrace/Makefile runtime/libtrace/Makefile ;;
24258     test/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Makefile test/Makefile ;;
24259     test/Makefile.tests ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Makefile.tests test/Makefile.tests ;;
24260     test/Programs/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/Makefile test/Programs/Makefile ;;
24261     test/Programs/Makefile.programs ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/Makefile.programs test/Programs/Makefile.programs ;;
24262     test/Programs/TEST.aa.Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.aa.Makefile test/Programs/TEST.aa.Makefile ;;
24263     test/Programs/TEST.dsgraph.report ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.dsgraph.report test/Programs/TEST.dsgraph.report ;;
24264     test/Programs/TEST.micro.report ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.micro.report test/Programs/TEST.micro.report ;;
24265     test/Programs/TEST.aa.report ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.aa.report test/Programs/TEST.aa.report ;;
24266     test/Programs/TEST.example.Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.example.Makefile test/Programs/TEST.example.Makefile ;;
24267     test/Programs/TEST.nightly.Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.nightly.Makefile test/Programs/TEST.nightly.Makefile ;;
24268     test/Programs/TEST.buildrepo.Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.buildrepo.Makefile test/Programs/TEST.buildrepo.Makefile ;;
24269     test/Programs/TEST.jit.Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.jit.Makefile test/Programs/TEST.jit.Makefile ;;
24270     test/Programs/TEST.nightly.report ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.nightly.report test/Programs/TEST.nightly.report ;;
24271     test/Programs/TEST.dsgraph.Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.dsgraph.Makefile test/Programs/TEST.dsgraph.Makefile ;;
24272     test/Programs/TEST.jit.report ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.jit.report test/Programs/TEST.jit.report ;;
24273     test/Programs/TEST.typesafe.Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.typesafe.Makefile test/Programs/TEST.typesafe.Makefile ;;
24274     test/Programs/TEST.dsgraph.gnuplot ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.dsgraph.gnuplot test/Programs/TEST.dsgraph.gnuplot ;;
24275     test/Programs/TEST.micro.Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.micro.Makefile test/Programs/TEST.micro.Makefile ;;
24276     test/Programs/External/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/External/Makefile test/Programs/External/Makefile ;;
24277     test/Programs/External/SPEC/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/External/SPEC/Makefile test/Programs/External/SPEC/Makefile ;;
24278     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 ;;
24279     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 ;;
24280     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 ;;
24281     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 ;;
24282     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 ;;
24283     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 ;;
24284     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 ;;
24285     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 ;;
24286     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 ;;
24287     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 ;;
24288     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 ;;
24289     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 ;;
24290     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 ;;
24291     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 ;;
24292     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 ;;
24293     test/Programs/LLVMSource/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/LLVMSource/Makefile test/Programs/LLVMSource/Makefile ;;
24294     test/Programs/MultiSource/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Makefile test/Programs/MultiSource/Makefile ;;
24295     test/Programs/MultiSource/Makefile.multisrc ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Makefile.multisrc test/Programs/MultiSource/Makefile.multisrc ;;
24296     test/Programs/MultiSource/Burg/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Burg/Makefile test/Programs/MultiSource/Burg/Makefile ;;
24297     test/Programs/MultiSource/Fhourstones/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Fhourstones/Makefile test/Programs/MultiSource/Fhourstones/Makefile ;;
24298     test/Programs/MultiSource/McCat/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/McCat/Makefile test/Programs/MultiSource/McCat/Makefile ;;
24299     test/Programs/MultiSource/McCat/01-qbsort/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/McCat/01-qbsort/Makefile test/Programs/MultiSource/McCat/01-qbsort/Makefile ;;
24300     test/Programs/MultiSource/McCat/03-testtrie/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/McCat/03-testtrie/Makefile test/Programs/MultiSource/McCat/03-testtrie/Makefile ;;
24301     test/Programs/MultiSource/McCat/04-bisect/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/McCat/04-bisect/Makefile test/Programs/MultiSource/McCat/04-bisect/Makefile ;;
24302     test/Programs/MultiSource/McCat/05-eks/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/McCat/05-eks/Makefile test/Programs/MultiSource/McCat/05-eks/Makefile ;;
24303     test/Programs/MultiSource/McCat/08-main/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/McCat/08-main/Makefile test/Programs/MultiSource/McCat/08-main/Makefile ;;
24304     test/Programs/MultiSource/McCat/09-vor/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/McCat/09-vor/Makefile test/Programs/MultiSource/McCat/09-vor/Makefile ;;
24305     test/Programs/MultiSource/McCat/12-IOtest/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/McCat/12-IOtest/Makefile test/Programs/MultiSource/McCat/12-IOtest/Makefile ;;
24306     test/Programs/MultiSource/McCat/15-trie/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/McCat/15-trie/Makefile test/Programs/MultiSource/McCat/15-trie/Makefile ;;
24307     test/Programs/MultiSource/McCat/17-bintr/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/McCat/17-bintr/Makefile test/Programs/MultiSource/McCat/17-bintr/Makefile ;;
24308     test/Programs/MultiSource/McCat/18-imp/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/McCat/18-imp/Makefile test/Programs/MultiSource/McCat/18-imp/Makefile ;;
24309     test/Programs/MultiSource/Olden/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Olden/Makefile test/Programs/MultiSource/Olden/Makefile ;;
24310     test/Programs/MultiSource/Olden/bh/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Olden/bh/Makefile test/Programs/MultiSource/Olden/bh/Makefile ;;
24311     test/Programs/MultiSource/Olden/bisort/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Olden/bisort/Makefile test/Programs/MultiSource/Olden/bisort/Makefile ;;
24312     test/Programs/MultiSource/Olden/em3d/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Olden/em3d/Makefile test/Programs/MultiSource/Olden/em3d/Makefile ;;
24313     test/Programs/MultiSource/Olden/health/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Olden/health/Makefile test/Programs/MultiSource/Olden/health/Makefile ;;
24314     test/Programs/MultiSource/Olden/mst/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Olden/mst/Makefile test/Programs/MultiSource/Olden/mst/Makefile ;;
24315     test/Programs/MultiSource/Olden/perimeter/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Olden/perimeter/Makefile test/Programs/MultiSource/Olden/perimeter/Makefile ;;
24316     test/Programs/MultiSource/Olden/power/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Olden/power/Makefile test/Programs/MultiSource/Olden/power/Makefile ;;
24317     test/Programs/MultiSource/Olden/treeadd/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Olden/treeadd/Makefile test/Programs/MultiSource/Olden/treeadd/Makefile ;;
24318     test/Programs/MultiSource/Olden/tsp/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Olden/tsp/Makefile test/Programs/MultiSource/Olden/tsp/Makefile ;;
24319     test/Programs/MultiSource/Olden/voronoi/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Olden/voronoi/Makefile test/Programs/MultiSource/Olden/voronoi/Makefile ;;
24320     test/Programs/MultiSource/OptimizerEval/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/OptimizerEval/Makefile test/Programs/MultiSource/OptimizerEval/Makefile ;;
24321     test/Programs/MultiSource/Ptrdist/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Ptrdist/Makefile test/Programs/MultiSource/Ptrdist/Makefile ;;
24322     test/Programs/MultiSource/Ptrdist/anagram/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Ptrdist/anagram/Makefile test/Programs/MultiSource/Ptrdist/anagram/Makefile ;;
24323     test/Programs/MultiSource/Ptrdist/bc/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Ptrdist/bc/Makefile test/Programs/MultiSource/Ptrdist/bc/Makefile ;;
24324     test/Programs/MultiSource/Ptrdist/ft/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Ptrdist/ft/Makefile test/Programs/MultiSource/Ptrdist/ft/Makefile ;;
24325     test/Programs/MultiSource/Ptrdist/ks/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Ptrdist/ks/Makefile test/Programs/MultiSource/Ptrdist/ks/Makefile ;;
24326     test/Programs/MultiSource/Ptrdist/yacr2/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Ptrdist/yacr2/Makefile test/Programs/MultiSource/Ptrdist/yacr2/Makefile ;;
24327     test/Programs/MultiSource/aha/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/aha/Makefile test/Programs/MultiSource/aha/Makefile ;;
24328     test/Programs/MultiSource/llubenchmark/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/llubenchmark/Makefile test/Programs/MultiSource/llubenchmark/Makefile ;;
24329     test/Programs/MultiSource/sgefa/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/sgefa/Makefile test/Programs/MultiSource/sgefa/Makefile ;;
24330     test/Programs/MultiSource/sim/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/sim/Makefile test/Programs/MultiSource/sim/Makefile ;;
24331     test/Programs/NoSource/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/NoSource/Makefile test/Programs/NoSource/Makefile ;;
24332     test/Programs/NoSource/Flex/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/NoSource/Flex/Makefile test/Programs/NoSource/Flex/Makefile ;;
24333     test/Programs/NoSource/Larn/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/NoSource/Larn/Makefile test/Programs/NoSource/Larn/Makefile ;;
24334     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 ;;
24335     test/Programs/NoSource/Povray31/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/NoSource/Povray31/Makefile test/Programs/NoSource/Povray31/Makefile ;;
24336     test/Programs/NoSource/m4/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/NoSource/m4/Makefile test/Programs/NoSource/m4/Makefile ;;
24337     test/Programs/SingleSource/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/SingleSource/Makefile test/Programs/SingleSource/Makefile ;;
24338     test/Programs/SingleSource/Makefile.singlesrc ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/SingleSource/Makefile.singlesrc test/Programs/SingleSource/Makefile.singlesrc ;;
24339     test/Programs/SingleSource/CustomChecked/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/SingleSource/CustomChecked/Makefile test/Programs/SingleSource/CustomChecked/Makefile ;;
24340     test/Programs/SingleSource/Shootout/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/SingleSource/Shootout/Makefile test/Programs/SingleSource/Shootout/Makefile ;;
24341     test/Programs/SingleSource/Stanford/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/SingleSource/Stanford/Makefile test/Programs/SingleSource/Stanford/Makefile ;;
24342     test/Programs/SingleSource/UnitTests/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/SingleSource/UnitTests/Makefile test/Programs/SingleSource/UnitTests/Makefile ;;
24343     tools/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/Makefile tools/Makefile ;;
24344     tools/analyze/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/analyze/Makefile tools/analyze/Makefile ;;
24345     tools/as/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/as/Makefile tools/as/Makefile ;;
24346     tools/bugpoint/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/bugpoint/Makefile tools/bugpoint/Makefile ;;
24347     tools/dis/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/dis/Makefile tools/dis/Makefile ;;
24348     tools/extract/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/extract/Makefile tools/extract/Makefile ;;
24349     tools/gccas/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/gccas/Makefile tools/gccas/Makefile ;;
24350     tools/gccld/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/gccld/Makefile tools/gccld/Makefile ;;
24351     tools/link/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/link/Makefile tools/link/Makefile ;;
24352     tools/llc/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/llc/Makefile tools/llc/Makefile ;;
24353     tools/lli/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/lli/Makefile tools/lli/Makefile ;;
24354     tools/opt/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/opt/Makefile tools/opt/Makefile ;;
24355     tools/llee/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/llee/Makefile tools/llee/Makefile ;;
24356     tools/llvm-as/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/llvm-as/Makefile tools/llvm-as/Makefile ;;
24357     tools/llvm-dis/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/llvm-dis/Makefile tools/llvm-dis/Makefile ;;
24358     utils/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/utils/Makefile utils/Makefile ;;
24359     utils/Burg/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/utils/Burg/Makefile utils/Burg/Makefile ;;
24360     utils/Burg/Doc/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/utils/Burg/Doc/Makefile utils/Burg/Doc/Makefile ;;
24361     utils/TableGen/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/utils/TableGen/Makefile utils/TableGen/Makefile ;;
24362     www/docs/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/www/docs/Makefile www/docs/Makefile ;;
24363     projects/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/projects/Makefile projects/Makefile ;;
24364     projects/sample/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/projects/sample/Makefile projects/sample/Makefile ;;
24365     projects/sample/Makefile.common ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/projects/sample/Makefile.common projects/sample/Makefile.common ;;
24366     projects/sample/Makefile.config ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/projects/sample/Makefile.config projects/sample/Makefile.config ;;
24367     projects/sample/lib/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/projects/sample/lib/Makefile projects/sample/lib/Makefile ;;
24368     projects/sample/lib/sample/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/projects/sample/lib/sample/Makefile projects/sample/lib/sample/Makefile ;;
24369     projects/sample/tools/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/projects/sample/tools/Makefile projects/sample/tools/Makefile ;;
24370     projects/sample/tools/sample/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/projects/sample/tools/sample/Makefile projects/sample/tools/sample/Makefile ;;
24371     projects/ModuleMaker/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/projects/ModuleMaker/Makefile projects/ModuleMaker/Makefile ;;
24372     projects/ModuleMaker/Makefile.common ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/projects/ModuleMaker/Makefile.common projects/ModuleMaker/Makefile.common ;;
24373     projects/ModuleMaker/tools/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/projects/ModuleMaker/tools/Makefile projects/ModuleMaker/tools/Makefile ;;
24374     projects/ModuleMaker/tools/ModuleMaker/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/projects/ModuleMaker/tools/ModuleMaker/Makefile projects/ModuleMaker/tools/ModuleMaker/Makefile ;;
24375   esac
24376 done
24377 _ACEOF
24378
24379 cat >>$CONFIG_STATUS <<\_ACEOF
24380
24381 { (exit 0); exit 0; }
24382 _ACEOF
24383 chmod +x $CONFIG_STATUS
24384 ac_clean_files=$ac_clean_files_save
24385
24386
24387 # configure is writing to config.log, and then calls config.status.
24388 # config.status does its own redirection, appending to config.log.
24389 # Unfortunately, on DOS this fails, as config.log is still kept open
24390 # by configure, so config.status won't be able to write to it; its
24391 # output is simply discarded.  So we exec the FD to /dev/null,
24392 # effectively closing config.log, so it can be properly (re)opened and
24393 # appended to by config.status.  When coming back to configure, we
24394 # need to make the FD available again.
24395 if test "$no_create" != yes; then
24396   ac_cs_success=:
24397   ac_config_status_args=
24398   test "$silent" = yes &&
24399     ac_config_status_args="$ac_config_status_args --quiet"
24400   exec 5>/dev/null
24401   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
24402   exec 5>>config.log
24403   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
24404   # would make configure fail if this is the last instruction.
24405   $ac_cs_success || { (exit 1); exit 1; }
24406 fi
24407