Removed the --enable-verbose option.
[oota-llvm.git] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.53 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 # Find the correct PATH separator.  Usually this is `:', but
13 # DJGPP uses `;' like DOS.
14 if test "X${PATH_SEPARATOR+set}" != Xset; then
15   UNAME=${UNAME-`uname 2>/dev/null`}
16   case X$UNAME in
17     *-DOS) lt_cv_sys_path_separator=';' ;;
18     *)     lt_cv_sys_path_separator=':' ;;
19   esac
20   PATH_SEPARATOR=$lt_cv_sys_path_separator
21 fi
22
23
24 # Check that we are running under the correct shell.
25 SHELL=${CONFIG_SHELL-/bin/sh}
26
27 case X$ECHO in
28 X*--fallback-echo)
29   # Remove one level of quotation (which was required for Make).
30   ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
31   ;;
32 esac
33
34 echo=${ECHO-echo}
35 if test "X$1" = X--no-reexec; then
36   # Discard the --no-reexec flag, and continue.
37   shift
38 elif test "X$1" = X--fallback-echo; then
39   # Avoid inline document here, it may be left over
40   :
41 elif test "X`($echo '\t') 2>/dev/null`" = 'X\t'; then
42   # Yippee, $echo works!
43   :
44 else
45   # Restart under the correct shell.
46   exec $SHELL "$0" --no-reexec ${1+"$@"}
47 fi
48
49 if test "X$1" = X--fallback-echo; then
50   # used as fallback echo
51   shift
52   cat <<EOF
53
54 EOF
55   exit 0
56 fi
57
58 # The HP-UX ksh and POSIX shell print the target directory to stdout
59 # if CDPATH is set.
60 if test "X${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
61
62 if test -z "$ECHO"; then
63 if test "X${echo_test_string+set}" != Xset; then
64 # find a string as large as possible, as long as the shell can cope with it
65   for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
66     # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
67     if (echo_test_string="`eval $cmd`") 2>/dev/null &&
68        echo_test_string="`eval $cmd`" &&
69        (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
70     then
71       break
72     fi
73   done
74 fi
75
76 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
77    echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
78    test "X$echo_testing_string" = "X$echo_test_string"; then
79   :
80 else
81   # The Solaris, AIX, and Digital Unix default echo programs unquote
82   # backslashes.  This makes it impossible to quote backslashes using
83   #   echo "$something" | sed 's/\\/\\\\/g'
84   #
85   # So, first we look for a working echo in the user's PATH.
86
87   IFS="${IFS=   }"; save_ifs="$IFS"; IFS=$PATH_SEPARATOR
88   for dir in $PATH /usr/ucb; do
89     if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
90        test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
91        echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
92        test "X$echo_testing_string" = "X$echo_test_string"; then
93       echo="$dir/echo"
94       break
95     fi
96   done
97   IFS="$save_ifs"
98
99   if test "X$echo" = Xecho; then
100     # We didn't find a better echo, so look for alternatives.
101     if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
102        echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
103        test "X$echo_testing_string" = "X$echo_test_string"; then
104       # This shell has a builtin print -r that does the trick.
105       echo='print -r'
106     elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
107          test "X$CONFIG_SHELL" != X/bin/ksh; then
108       # If we have ksh, try running configure again with it.
109       ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
110       export ORIGINAL_CONFIG_SHELL
111       CONFIG_SHELL=/bin/ksh
112       export CONFIG_SHELL
113       exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
114     else
115       # Try using printf.
116       echo='printf %s\n'
117       if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
118          echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
119          test "X$echo_testing_string" = "X$echo_test_string"; then
120         # Cool, printf works
121         :
122       elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
123            test "X$echo_testing_string" = 'X\t' &&
124            echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
125            test "X$echo_testing_string" = "X$echo_test_string"; then
126         CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
127         export CONFIG_SHELL
128         SHELL="$CONFIG_SHELL"
129         export SHELL
130         echo="$CONFIG_SHELL $0 --fallback-echo"
131       elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
132            test "X$echo_testing_string" = 'X\t' &&
133            echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
134            test "X$echo_testing_string" = "X$echo_test_string"; then
135         echo="$CONFIG_SHELL $0 --fallback-echo"
136       else
137         # maybe with a smaller string...
138         prev=:
139
140         for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
141           if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
142           then
143             break
144           fi
145           prev="$cmd"
146         done
147
148         if test "$prev" != 'sed 50q "$0"'; then
149           echo_test_string=`eval $prev`
150           export echo_test_string
151           exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
152         else
153           # Oops.  We lost completely, so just stick with echo.
154           echo=echo
155         fi
156       fi
157     fi
158   fi
159 fi
160 fi
161
162 # Copy echo and quote the copy suitably for passing to libtool from
163 # the Makefile, instead of quoting the original, which is used later.
164 ECHO=$echo
165 if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
166    ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
167 fi
168
169
170
171 if expr a : '\(a\)' >/dev/null 2>&1; then
172   as_expr=expr
173 else
174   as_expr=false
175 fi
176
177
178 ## --------------------- ##
179 ## M4sh Initialization.  ##
180 ## --------------------- ##
181
182 # Be Bourne compatible
183 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
184   emulate sh
185   NULLCMD=:
186 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
187   set -o posix
188 fi
189
190 # NLS nuisances.
191 # Support unset when possible.
192 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
193   as_unset=unset
194 else
195   as_unset=false
196 fi
197
198 (set +x; test -n "`(LANG=C; export LANG) 2>&1`") &&
199     { $as_unset LANG || test "${LANG+set}" != set; } ||
200       { LANG=C; export LANG; }
201 (set +x; test -n "`(LC_ALL=C; export LC_ALL) 2>&1`") &&
202     { $as_unset LC_ALL || test "${LC_ALL+set}" != set; } ||
203       { LC_ALL=C; export LC_ALL; }
204 (set +x; test -n "`(LC_TIME=C; export LC_TIME) 2>&1`") &&
205     { $as_unset LC_TIME || test "${LC_TIME+set}" != set; } ||
206       { LC_TIME=C; export LC_TIME; }
207 (set +x; test -n "`(LC_CTYPE=C; export LC_CTYPE) 2>&1`") &&
208     { $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set; } ||
209       { LC_CTYPE=C; export LC_CTYPE; }
210 (set +x; test -n "`(LANGUAGE=C; export LANGUAGE) 2>&1`") &&
211     { $as_unset LANGUAGE || test "${LANGUAGE+set}" != set; } ||
212       { LANGUAGE=C; export LANGUAGE; }
213 (set +x; test -n "`(LC_COLLATE=C; export LC_COLLATE) 2>&1`") &&
214     { $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set; } ||
215       { LC_COLLATE=C; export LC_COLLATE; }
216 (set +x; test -n "`(LC_NUMERIC=C; export LC_NUMERIC) 2>&1`") &&
217     { $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set; } ||
218       { LC_NUMERIC=C; export LC_NUMERIC; }
219 (set +x; test -n "`(LC_MESSAGES=C; export LC_MESSAGES) 2>&1`") &&
220     { $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set; } ||
221       { LC_MESSAGES=C; export LC_MESSAGES; }
222
223
224 # Name of the executable.
225 as_me=`(basename "$0") 2>/dev/null ||
226 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
227          X"$0" : 'X\(//\)$' \| \
228          X"$0" : 'X\(/\)$' \| \
229          .     : '\(.\)' 2>/dev/null ||
230 echo X/"$0" |
231     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
232           /^X\/\(\/\/\)$/{ s//\1/; q; }
233           /^X\/\(\/\).*/{ s//\1/; q; }
234           s/.*/./; q'`
235
236 # PATH needs CR, and LINENO needs CR and PATH.
237 # Avoid depending upon Character Ranges.
238 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
239 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
240 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
241 as_cr_digits='0123456789'
242 as_cr_alnum=$as_cr_Letters$as_cr_digits
243
244 # The user is always right.
245 if test "${PATH_SEPARATOR+set}" != set; then
246   echo "#! /bin/sh" >conftest.sh
247   echo  "exit 0"   >>conftest.sh
248   chmod +x conftest.sh
249   if (PATH=".;."; conftest.sh) >/dev/null 2>&1; then
250     PATH_SEPARATOR=';'
251   else
252     PATH_SEPARATOR=:
253   fi
254   rm -f conftest.sh
255 fi
256
257
258   as_lineno_1=$LINENO
259   as_lineno_2=$LINENO
260   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
261   test "x$as_lineno_1" != "x$as_lineno_2" &&
262   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
263   # Find who we are.  Look in the path if we contain no path at all
264   # relative or not.
265   case $0 in
266     *[\\/]* ) as_myself=$0 ;;
267     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
268 for as_dir in $PATH
269 do
270   IFS=$as_save_IFS
271   test -z "$as_dir" && as_dir=.
272   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
273 done
274
275        ;;
276   esac
277   # We did not find ourselves, most probably we were run as `sh COMMAND'
278   # in which case we are not to be found in the path.
279   if test "x$as_myself" = x; then
280     as_myself=$0
281   fi
282   if test ! -f "$as_myself"; then
283     { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
284    { (exit 1); exit 1; }; }
285   fi
286   case $CONFIG_SHELL in
287   '')
288     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
289 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
290 do
291   IFS=$as_save_IFS
292   test -z "$as_dir" && as_dir=.
293   for as_base in sh bash ksh sh5; do
294          case $as_dir in
295          /*)
296            if ("$as_dir/$as_base" -c '
297   as_lineno_1=$LINENO
298   as_lineno_2=$LINENO
299   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
300   test "x$as_lineno_1" != "x$as_lineno_2" &&
301   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
302              CONFIG_SHELL=$as_dir/$as_base
303              export CONFIG_SHELL
304              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
305            fi;;
306          esac
307        done
308 done
309 ;;
310   esac
311
312   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
313   # uniformly replaced by the line number.  The first 'sed' inserts a
314   # line-number line before each line; the second 'sed' does the real
315   # work.  The second script uses 'N' to pair each line-number line
316   # with the numbered line, and appends trailing '-' during
317   # substitution so that $LINENO is not a special case at line end.
318   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
319   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
320   sed '=' <$as_myself |
321     sed '
322       N
323       s,$,-,
324       : loop
325       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
326       t loop
327       s,-$,,
328       s,^['$as_cr_digits']*\n,,
329     ' >$as_me.lineno &&
330   chmod +x $as_me.lineno ||
331     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
332    { (exit 1); exit 1; }; }
333
334   # Don't try to exec as it changes $[0], causing all sort of problems
335   # (the dirname of $[0] is not the place where we might find the
336   # original and so on.  Autoconf is especially sensible to this).
337   . ./$as_me.lineno
338   # Exit status is that of the last command.
339   exit
340 }
341
342
343 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
344   *c*,-n*) ECHO_N= ECHO_C='
345 ' ECHO_T='      ' ;;
346   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
347   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
348 esac
349
350 if expr a : '\(a\)' >/dev/null 2>&1; then
351   as_expr=expr
352 else
353   as_expr=false
354 fi
355
356 rm -f conf$$ conf$$.exe conf$$.file
357 echo >conf$$.file
358 if ln -s conf$$.file conf$$ 2>/dev/null; then
359   # We could just check for DJGPP; but this test a) works b) is more generic
360   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
361   if test -f conf$$.exe; then
362     # Don't use ln at all; we don't have any links
363     as_ln_s='cp -p'
364   else
365     as_ln_s='ln -s'
366   fi
367 elif ln conf$$.file conf$$ 2>/dev/null; then
368   as_ln_s=ln
369 else
370   as_ln_s='cp -p'
371 fi
372 rm -f conf$$ conf$$.exe conf$$.file
373
374 as_executable_p="test -f"
375
376 # Sed expression to map a string onto a valid CPP name.
377 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
378
379 # Sed expression to map a string onto a valid variable name.
380 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
381
382
383 # IFS
384 # We need space, tab and new line, in precisely that order.
385 as_nl='
386 '
387 IFS="   $as_nl"
388
389 # CDPATH.
390 $as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=$PATH_SEPARATOR; export CDPATH; }
391
392
393 # Name of the host.
394 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
395 # so uname gets run too.
396 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
397
398 exec 6>&1
399
400 #
401 # Initializations.
402 #
403 ac_default_prefix=/usr/local
404 cross_compiling=no
405 subdirs=
406 MFLAGS=
407 MAKEFLAGS=
408 SHELL=${CONFIG_SHELL-/bin/sh}
409
410 # Maximum number of lines to put in a shell here document.
411 # This variable seems obsolete.  It should probably be removed, and
412 # only ac_max_sed_lines should be used.
413 : ${ac_max_here_lines=38}
414
415 # Identity of this package.
416 PACKAGE_NAME='[LLVM]'
417 PACKAGE_TARNAME='--llvm--'
418 PACKAGE_VERSION='[1.0]'
419 PACKAGE_STRING='[LLVM] [1.0]'
420 PACKAGE_BUGREPORT='llvmbugs@cs.uiuc.edu'
421
422 # Factoring default headers for most tests.
423 ac_includes_default="\
424 #include <stdio.h>
425 #if HAVE_SYS_TYPES_H
426 # include <sys/types.h>
427 #endif
428 #if HAVE_SYS_STAT_H
429 # include <sys/stat.h>
430 #endif
431 #if STDC_HEADERS
432 # include <stdlib.h>
433 # include <stddef.h>
434 #else
435 # if HAVE_STDLIB_H
436 #  include <stdlib.h>
437 # endif
438 #endif
439 #if HAVE_STRING_H
440 # if !STDC_HEADERS && HAVE_MEMORY_H
441 #  include <memory.h>
442 # endif
443 # include <string.h>
444 #endif
445 #if HAVE_STRINGS_H
446 # include <strings.h>
447 #endif
448 #if HAVE_INTTYPES_H
449 # include <inttypes.h>
450 #else
451 # if HAVE_STDINT_H
452 #  include <stdint.h>
453 # endif
454 #endif
455 #if HAVE_UNISTD_H
456 # include <unistd.h>
457 #endif"
458
459 ac_unique_file=""Makefile.config.in""
460
461 # Initialize some variables set by options.
462 ac_init_help=
463 ac_init_version=false
464 # The variables have the same names as the options, with
465 # dashes changed to underlines.
466 cache_file=/dev/null
467 exec_prefix=NONE
468 no_create=
469 no_recursion=
470 prefix=NONE
471 program_prefix=NONE
472 program_suffix=NONE
473 program_transform_name=s,x,x,
474 silent=
475 site=
476 srcdir=
477 verbose=
478 x_includes=NONE
479 x_libraries=NONE
480
481 # Installation directory options.
482 # These are left unexpanded so users can "make install exec_prefix=/foo"
483 # and all the variables that are supposed to be based on exec_prefix
484 # by default will actually change.
485 # Use braces instead of parens because sh, perl, etc. also accept them.
486 bindir='${exec_prefix}/bin'
487 sbindir='${exec_prefix}/sbin'
488 libexecdir='${exec_prefix}/libexec'
489 datadir='${prefix}/share'
490 sysconfdir='${prefix}/etc'
491 sharedstatedir='${prefix}/com'
492 localstatedir='${prefix}/var'
493 libdir='${exec_prefix}/lib'
494 includedir='${prefix}/include'
495 oldincludedir='/usr/include'
496 infodir='${prefix}/info'
497 mandir='${prefix}/man'
498
499 ac_prev=
500 for ac_option
501 do
502   # If the previous option needs an argument, assign it.
503   if test -n "$ac_prev"; then
504     eval "$ac_prev=\$ac_option"
505     ac_prev=
506     continue
507   fi
508
509   ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
510
511   # Accept the important Cygnus configure options, so we can diagnose typos.
512
513   case $ac_option in
514
515   -bindir | --bindir | --bindi | --bind | --bin | --bi)
516     ac_prev=bindir ;;
517   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
518     bindir=$ac_optarg ;;
519
520   -build | --build | --buil | --bui | --bu)
521     ac_prev=build_alias ;;
522   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
523     build_alias=$ac_optarg ;;
524
525   -cache-file | --cache-file | --cache-fil | --cache-fi \
526   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
527     ac_prev=cache_file ;;
528   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
529   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
530     cache_file=$ac_optarg ;;
531
532   --config-cache | -C)
533     cache_file=config.cache ;;
534
535   -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
536     ac_prev=datadir ;;
537   -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
538   | --da=*)
539     datadir=$ac_optarg ;;
540
541   -disable-* | --disable-*)
542     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
543     # Reject names that are not valid shell variable names.
544     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
545       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
546    { (exit 1); exit 1; }; }
547     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
548     eval "enable_$ac_feature=no" ;;
549
550   -enable-* | --enable-*)
551     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
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     case $ac_option in
558       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
559       *) ac_optarg=yes ;;
560     esac
561     eval "enable_$ac_feature='$ac_optarg'" ;;
562
563   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
564   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
565   | --exec | --exe | --ex)
566     ac_prev=exec_prefix ;;
567   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
568   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
569   | --exec=* | --exe=* | --ex=*)
570     exec_prefix=$ac_optarg ;;
571
572   -gas | --gas | --ga | --g)
573     # Obsolete; use --with-gas.
574     with_gas=yes ;;
575
576   -help | --help | --hel | --he | -h)
577     ac_init_help=long ;;
578   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
579     ac_init_help=recursive ;;
580   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
581     ac_init_help=short ;;
582
583   -host | --host | --hos | --ho)
584     ac_prev=host_alias ;;
585   -host=* | --host=* | --hos=* | --ho=*)
586     host_alias=$ac_optarg ;;
587
588   -includedir | --includedir | --includedi | --included | --include \
589   | --includ | --inclu | --incl | --inc)
590     ac_prev=includedir ;;
591   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
592   | --includ=* | --inclu=* | --incl=* | --inc=*)
593     includedir=$ac_optarg ;;
594
595   -infodir | --infodir | --infodi | --infod | --info | --inf)
596     ac_prev=infodir ;;
597   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
598     infodir=$ac_optarg ;;
599
600   -libdir | --libdir | --libdi | --libd)
601     ac_prev=libdir ;;
602   -libdir=* | --libdir=* | --libdi=* | --libd=*)
603     libdir=$ac_optarg ;;
604
605   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
606   | --libexe | --libex | --libe)
607     ac_prev=libexecdir ;;
608   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
609   | --libexe=* | --libex=* | --libe=*)
610     libexecdir=$ac_optarg ;;
611
612   -localstatedir | --localstatedir | --localstatedi | --localstated \
613   | --localstate | --localstat | --localsta | --localst \
614   | --locals | --local | --loca | --loc | --lo)
615     ac_prev=localstatedir ;;
616   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
617   | --localstate=* | --localstat=* | --localsta=* | --localst=* \
618   | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
619     localstatedir=$ac_optarg ;;
620
621   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
622     ac_prev=mandir ;;
623   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
624     mandir=$ac_optarg ;;
625
626   -nfp | --nfp | --nf)
627     # Obsolete; use --without-fp.
628     with_fp=no ;;
629
630   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
631   | --no-cr | --no-c | -n)
632     no_create=yes ;;
633
634   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
635   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
636     no_recursion=yes ;;
637
638   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
639   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
640   | --oldin | --oldi | --old | --ol | --o)
641     ac_prev=oldincludedir ;;
642   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
643   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
644   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
645     oldincludedir=$ac_optarg ;;
646
647   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
648     ac_prev=prefix ;;
649   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
650     prefix=$ac_optarg ;;
651
652   -program-prefix | --program-prefix | --program-prefi | --program-pref \
653   | --program-pre | --program-pr | --program-p)
654     ac_prev=program_prefix ;;
655   -program-prefix=* | --program-prefix=* | --program-prefi=* \
656   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
657     program_prefix=$ac_optarg ;;
658
659   -program-suffix | --program-suffix | --program-suffi | --program-suff \
660   | --program-suf | --program-su | --program-s)
661     ac_prev=program_suffix ;;
662   -program-suffix=* | --program-suffix=* | --program-suffi=* \
663   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
664     program_suffix=$ac_optarg ;;
665
666   -program-transform-name | --program-transform-name \
667   | --program-transform-nam | --program-transform-na \
668   | --program-transform-n | --program-transform- \
669   | --program-transform | --program-transfor \
670   | --program-transfo | --program-transf \
671   | --program-trans | --program-tran \
672   | --progr-tra | --program-tr | --program-t)
673     ac_prev=program_transform_name ;;
674   -program-transform-name=* | --program-transform-name=* \
675   | --program-transform-nam=* | --program-transform-na=* \
676   | --program-transform-n=* | --program-transform-=* \
677   | --program-transform=* | --program-transfor=* \
678   | --program-transfo=* | --program-transf=* \
679   | --program-trans=* | --program-tran=* \
680   | --progr-tra=* | --program-tr=* | --program-t=*)
681     program_transform_name=$ac_optarg ;;
682
683   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
684   | -silent | --silent | --silen | --sile | --sil)
685     silent=yes ;;
686
687   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
688     ac_prev=sbindir ;;
689   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
690   | --sbi=* | --sb=*)
691     sbindir=$ac_optarg ;;
692
693   -sharedstatedir | --sharedstatedir | --sharedstatedi \
694   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
695   | --sharedst | --shareds | --shared | --share | --shar \
696   | --sha | --sh)
697     ac_prev=sharedstatedir ;;
698   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
699   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
700   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
701   | --sha=* | --sh=*)
702     sharedstatedir=$ac_optarg ;;
703
704   -site | --site | --sit)
705     ac_prev=site ;;
706   -site=* | --site=* | --sit=*)
707     site=$ac_optarg ;;
708
709   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
710     ac_prev=srcdir ;;
711   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
712     srcdir=$ac_optarg ;;
713
714   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
715   | --syscon | --sysco | --sysc | --sys | --sy)
716     ac_prev=sysconfdir ;;
717   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
718   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
719     sysconfdir=$ac_optarg ;;
720
721   -target | --target | --targe | --targ | --tar | --ta | --t)
722     ac_prev=target_alias ;;
723   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
724     target_alias=$ac_optarg ;;
725
726   -v | -verbose | --verbose | --verbos | --verbo | --verb)
727     verbose=yes ;;
728
729   -version | --version | --versio | --versi | --vers | -V)
730     ac_init_version=: ;;
731
732   -with-* | --with-*)
733     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
734     # Reject names that are not valid shell variable names.
735     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
736       { echo "$as_me: error: invalid package name: $ac_package" >&2
737    { (exit 1); exit 1; }; }
738     ac_package=`echo $ac_package| sed 's/-/_/g'`
739     case $ac_option in
740       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
741       *) ac_optarg=yes ;;
742     esac
743     eval "with_$ac_package='$ac_optarg'" ;;
744
745   -without-* | --without-*)
746     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
747     # Reject names that are not valid shell variable names.
748     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
749       { echo "$as_me: error: invalid package name: $ac_package" >&2
750    { (exit 1); exit 1; }; }
751     ac_package=`echo $ac_package | sed 's/-/_/g'`
752     eval "with_$ac_package=no" ;;
753
754   --x)
755     # Obsolete; use --with-x.
756     with_x=yes ;;
757
758   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
759   | --x-incl | --x-inc | --x-in | --x-i)
760     ac_prev=x_includes ;;
761   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
762   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
763     x_includes=$ac_optarg ;;
764
765   -x-libraries | --x-libraries | --x-librarie | --x-librari \
766   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
767     ac_prev=x_libraries ;;
768   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
769   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
770     x_libraries=$ac_optarg ;;
771
772   -*) { echo "$as_me: error: unrecognized option: $ac_option
773 Try \`$0 --help' for more information." >&2
774    { (exit 1); exit 1; }; }
775     ;;
776
777   *=*)
778     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
779     # Reject names that are not valid shell variable names.
780     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
781       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
782    { (exit 1); exit 1; }; }
783     ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
784     eval "$ac_envvar='$ac_optarg'"
785     export $ac_envvar ;;
786
787   *)
788     # FIXME: should be removed in autoconf 3.0.
789     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
790     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
791       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
792     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
793     ;;
794
795   esac
796 done
797
798 if test -n "$ac_prev"; then
799   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
800   { echo "$as_me: error: missing argument to $ac_option" >&2
801    { (exit 1); exit 1; }; }
802 fi
803
804 # Be sure to have absolute paths.
805 for ac_var in exec_prefix prefix
806 do
807   eval ac_val=$`echo $ac_var`
808   case $ac_val in
809     [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
810     *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
811    { (exit 1); exit 1; }; };;
812   esac
813 done
814
815 # Be sure to have absolute paths.
816 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
817               localstatedir libdir includedir oldincludedir infodir mandir
818 do
819   eval ac_val=$`echo $ac_var`
820   case $ac_val in
821     [\\/$]* | ?:[\\/]* ) ;;
822     *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
823    { (exit 1); exit 1; }; };;
824   esac
825 done
826
827 # There might be people who depend on the old broken behavior: `$host'
828 # used to hold the argument of --host etc.
829 # FIXME: To remove some day.
830 build=$build_alias
831 host=$host_alias
832 target=$target_alias
833
834 # FIXME: To remove some day.
835 if test "x$host_alias" != x; then
836   if test "x$build_alias" = x; then
837     cross_compiling=maybe
838     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
839     If a cross compiler is detected then cross compile mode will be used." >&2
840   elif test "x$build_alias" != "x$host_alias"; then
841     cross_compiling=yes
842   fi
843 fi
844
845 ac_tool_prefix=
846 test -n "$host_alias" && ac_tool_prefix=$host_alias-
847
848 test "$silent" = yes && exec 6>/dev/null
849
850
851 # Find the source files, if location was not specified.
852 if test -z "$srcdir"; then
853   ac_srcdir_defaulted=yes
854   # Try the directory containing this script, then its parent.
855   ac_confdir=`(dirname "$0") 2>/dev/null ||
856 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
857          X"$0" : 'X\(//\)[^/]' \| \
858          X"$0" : 'X\(//\)$' \| \
859          X"$0" : 'X\(/\)' \| \
860          .     : '\(.\)' 2>/dev/null ||
861 echo X"$0" |
862     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
863           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
864           /^X\(\/\/\)$/{ s//\1/; q; }
865           /^X\(\/\).*/{ s//\1/; q; }
866           s/.*/./; q'`
867   srcdir=$ac_confdir
868   if test ! -r $srcdir/$ac_unique_file; then
869     srcdir=..
870   fi
871 else
872   ac_srcdir_defaulted=no
873 fi
874 if test ! -r $srcdir/$ac_unique_file; then
875   if test "$ac_srcdir_defaulted" = yes; then
876     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
877    { (exit 1); exit 1; }; }
878   else
879     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
880    { (exit 1); exit 1; }; }
881   fi
882 fi
883 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
884 ac_env_build_alias_set=${build_alias+set}
885 ac_env_build_alias_value=$build_alias
886 ac_cv_env_build_alias_set=${build_alias+set}
887 ac_cv_env_build_alias_value=$build_alias
888 ac_env_host_alias_set=${host_alias+set}
889 ac_env_host_alias_value=$host_alias
890 ac_cv_env_host_alias_set=${host_alias+set}
891 ac_cv_env_host_alias_value=$host_alias
892 ac_env_target_alias_set=${target_alias+set}
893 ac_env_target_alias_value=$target_alias
894 ac_cv_env_target_alias_set=${target_alias+set}
895 ac_cv_env_target_alias_value=$target_alias
896 ac_env_CXX_set=${CXX+set}
897 ac_env_CXX_value=$CXX
898 ac_cv_env_CXX_set=${CXX+set}
899 ac_cv_env_CXX_value=$CXX
900 ac_env_CXXFLAGS_set=${CXXFLAGS+set}
901 ac_env_CXXFLAGS_value=$CXXFLAGS
902 ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
903 ac_cv_env_CXXFLAGS_value=$CXXFLAGS
904 ac_env_LDFLAGS_set=${LDFLAGS+set}
905 ac_env_LDFLAGS_value=$LDFLAGS
906 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
907 ac_cv_env_LDFLAGS_value=$LDFLAGS
908 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
909 ac_env_CPPFLAGS_value=$CPPFLAGS
910 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
911 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
912 ac_env_CC_set=${CC+set}
913 ac_env_CC_value=$CC
914 ac_cv_env_CC_set=${CC+set}
915 ac_cv_env_CC_value=$CC
916 ac_env_CFLAGS_set=${CFLAGS+set}
917 ac_env_CFLAGS_value=$CFLAGS
918 ac_cv_env_CFLAGS_set=${CFLAGS+set}
919 ac_cv_env_CFLAGS_value=$CFLAGS
920 ac_env_CPP_set=${CPP+set}
921 ac_env_CPP_value=$CPP
922 ac_cv_env_CPP_set=${CPP+set}
923 ac_cv_env_CPP_value=$CPP
924
925 #
926 # Report the --help message.
927 #
928 if test "$ac_init_help" = "long"; then
929   # Omit some internal or obsolete options to make the list less imposing.
930   # This message is too long to be a string in the A/UX 3.1 sh.
931   cat <<_ACEOF
932 \`configure' configures [LLVM] [1.0] to adapt to many kinds of systems.
933
934 Usage: $0 [OPTION]... [VAR=VALUE]...
935
936 To assign environment variables (e.g., CC, CFLAGS...), specify them as
937 VAR=VALUE.  See below for descriptions of some of the useful variables.
938
939 Defaults for the options are specified in brackets.
940
941 Configuration:
942   -h, --help              display this help and exit
943       --help=short        display options specific to this package
944       --help=recursive    display the short help of all the included packages
945   -V, --version           display version information and exit
946   -q, --quiet, --silent   do not print \`checking...' messages
947       --cache-file=FILE   cache test results in FILE [disabled]
948   -C, --config-cache      alias for \`--cache-file=config.cache'
949   -n, --no-create         do not create output files
950       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
951
952 _ACEOF
953
954   cat <<_ACEOF
955 Installation directories:
956   --prefix=PREFIX         install architecture-independent files in PREFIX
957                           [$ac_default_prefix]
958   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
959                           [PREFIX]
960
961 By default, \`make install' will install all the files in
962 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
963 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
964 for instance \`--prefix=\$HOME'.
965
966 For better control, use the options below.
967
968 Fine tuning of the installation directories:
969   --bindir=DIR           user executables [EPREFIX/bin]
970   --sbindir=DIR          system admin executables [EPREFIX/sbin]
971   --libexecdir=DIR       program executables [EPREFIX/libexec]
972   --datadir=DIR          read-only architecture-independent data [PREFIX/share]
973   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
974   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
975   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
976   --libdir=DIR           object code libraries [EPREFIX/lib]
977   --includedir=DIR       C header files [PREFIX/include]
978   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
979   --infodir=DIR          info documentation [PREFIX/info]
980   --mandir=DIR           man documentation [PREFIX/man]
981 _ACEOF
982
983   cat <<\_ACEOF
984
985 System types:
986   --build=BUILD     configure for building on BUILD [guessed]
987   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
988   --target=TARGET   configure for building compilers for TARGET [HOST]
989 _ACEOF
990 fi
991
992 if test -n "$ac_init_help"; then
993   case $ac_init_help in
994      short | recursive ) echo "Configuration of [LLVM] [1.0]:";;
995    esac
996   cat <<\_ACEOF
997
998 Optional Features:
999   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1000   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1001   --enable-shared=PKGS  build shared libraries default=yes
1002   --enable-static=PKGS  build static libraries default=yes
1003   --enable-fast-install=PKGS  optimize for fast installation default=yes
1004   --disable-libtool-lock  avoid locking (might break parallel builds)
1005   --enable-purify         Compile with purify (default is NO)
1006   --enable-profiling      Compile with profiling information (default is NO)
1007   --enable-optimized      Compile with optimizations enabled (default is NO)
1008   --enable-spec           Compile SPEC benchmarks (default is NO)
1009   --enable-precompiled_bytecode
1010                           Use pre-compiled bytecode (default is NO)
1011   --enable-jit            Enable Just In Time Compiling (default is NO)
1012
1013 Optional Packages:
1014   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1015   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1016   --with-gnu-ld           assume the C compiler uses GNU ld default=no
1017   --with-pic              try to use only PIC/non-PIC objects default=use both
1018   --with-spec             Location of SPEC benchmarks
1019   --with-llvmgccdir       Location of LLVM GCC front-end
1020   --with-bcrepos          Location of Bytecode Repository
1021   --with-papi             Location of PAPI
1022   --with-objroot          Location where object files should be placed
1023                           (default is .)
1024   --with-purify           Location of purify program
1025
1026 Some influential environment variables:
1027   CXX         C++ compiler command
1028   CXXFLAGS    C++ compiler flags
1029   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1030               nonstandard directory <lib dir>
1031   CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
1032               headers in a nonstandard directory <include dir>
1033   CC          C compiler command
1034   CFLAGS      C compiler flags
1035   CPP         C preprocessor
1036
1037 Use these variables to override the choices made by `configure' or to help
1038 it to find libraries and programs with nonstandard names/locations.
1039
1040 Report bugs to <llvmbugs@cs.uiuc.edu>.
1041 _ACEOF
1042 fi
1043
1044 if test "$ac_init_help" = "recursive"; then
1045   # If there are subdirs, report their specific --help.
1046   ac_popdir=`pwd`
1047   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1048     test -d $ac_dir || continue
1049     ac_builddir=.
1050
1051 if test "$ac_dir" != .; then
1052   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1053   # A "../" for each directory in $ac_dir_suffix.
1054   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1055 else
1056   ac_dir_suffix= ac_top_builddir=
1057 fi
1058
1059 case $srcdir in
1060   .)  # No --srcdir option.  We are building in place.
1061     ac_srcdir=.
1062     if test -z "$ac_top_builddir"; then
1063        ac_top_srcdir=.
1064     else
1065        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1066     fi ;;
1067   [\\/]* | ?:[\\/]* )  # Absolute path.
1068     ac_srcdir=$srcdir$ac_dir_suffix;
1069     ac_top_srcdir=$srcdir ;;
1070   *) # Relative path.
1071     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1072     ac_top_srcdir=$ac_top_builddir$srcdir ;;
1073 esac
1074 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
1075 # absolute.
1076 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
1077 ac_abs_top_builddir=`cd "$ac_dir" && cd $ac_top_builddir && pwd`
1078 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
1079 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
1080
1081     cd $ac_dir
1082     # Check for guested configure; otherwise get Cygnus style configure.
1083     if test -f $ac_srcdir/configure.gnu; then
1084       echo
1085       $SHELL $ac_srcdir/configure.gnu  --help=recursive
1086     elif test -f $ac_srcdir/configure; then
1087       echo
1088       $SHELL $ac_srcdir/configure  --help=recursive
1089     elif test -f $ac_srcdir/configure.ac ||
1090            test -f $ac_srcdir/configure.in; then
1091       echo
1092       $ac_configure --help
1093     else
1094       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1095     fi
1096     cd $ac_popdir
1097   done
1098 fi
1099
1100 test -n "$ac_init_help" && exit 0
1101 if $ac_init_version; then
1102   cat <<\_ACEOF
1103 [LLVM] configure [1.0]
1104 generated by GNU Autoconf 2.53
1105
1106 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
1107 Free Software Foundation, Inc.
1108 This configure script is free software; the Free Software Foundation
1109 gives unlimited permission to copy, distribute and modify it.
1110 _ACEOF
1111   exit 0
1112 fi
1113 exec 5>config.log
1114 cat >&5 <<_ACEOF
1115 This file contains any messages produced by compilers while
1116 running configure, to aid debugging if configure makes a mistake.
1117
1118 It was created by [LLVM] $as_me [1.0], which was
1119 generated by GNU Autoconf 2.53.  Invocation command line was
1120
1121   $ $0 $@
1122
1123 _ACEOF
1124 {
1125 cat <<_ASUNAME
1126 ## --------- ##
1127 ## Platform. ##
1128 ## --------- ##
1129
1130 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1131 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1132 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1133 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1134 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1135
1136 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1137 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1138
1139 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1140 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1141 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1142 hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
1143 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1144 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1145 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1146
1147 _ASUNAME
1148
1149 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1150 for as_dir in $PATH
1151 do
1152   IFS=$as_save_IFS
1153   test -z "$as_dir" && as_dir=.
1154   echo "PATH: $as_dir"
1155 done
1156
1157 } >&5
1158
1159 cat >&5 <<_ACEOF
1160
1161
1162 ## ----------- ##
1163 ## Core tests. ##
1164 ## ----------- ##
1165
1166 _ACEOF
1167
1168
1169 # Keep a trace of the command line.
1170 # Strip out --no-create and --no-recursion so they do not pile up.
1171 # Also quote any args containing shell meta-characters.
1172 ac_configure_args=
1173 ac_sep=
1174 for ac_arg
1175 do
1176   case $ac_arg in
1177   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1178   | --no-cr | --no-c | -n ) continue ;;
1179   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1180   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1181     continue ;;
1182   *" "*|*"      "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1183     ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1184   esac
1185   case " $ac_configure_args " in
1186     *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1187     *) ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1188        ac_sep=" " ;;
1189   esac
1190   # Get rid of the leading space.
1191 done
1192
1193 # When interrupted or exit'd, cleanup temporary files, and complete
1194 # config.log.  We remove comments because anyway the quotes in there
1195 # would cause problems or look ugly.
1196 # WARNING: Be sure not to use single quotes in there, as some shells,
1197 # such as our DU 5.0 friend, will then `close' the trap.
1198 trap 'exit_status=$?
1199   # Save into config.log some information that might help in debugging.
1200   {
1201     echo
1202     cat <<\_ASBOX
1203 ## ---------------- ##
1204 ## Cache variables. ##
1205 ## ---------------- ##
1206 _ASBOX
1207     echo
1208     # The following way of writing the cache mishandles newlines in values,
1209 {
1210   (set) 2>&1 |
1211     case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1212     *ac_space=\ *)
1213       sed -n \
1214         "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1215           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1216       ;;
1217     *)
1218       sed -n \
1219         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1220       ;;
1221     esac;
1222 }
1223     echo
1224     if test -s confdefs.h; then
1225       cat <<\_ASBOX
1226 ## ----------- ##
1227 ## confdefs.h. ##
1228 ## ----------- ##
1229 _ASBOX
1230       echo
1231       sed "/^$/d" confdefs.h
1232       echo
1233     fi
1234     test "$ac_signal" != 0 &&
1235       echo "$as_me: caught signal $ac_signal"
1236     echo "$as_me: exit $exit_status"
1237   } >&5
1238   rm -f core core.* *.core &&
1239   rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1240     exit $exit_status
1241      ' 0
1242 for ac_signal in 1 2 13 15; do
1243   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1244 done
1245 ac_signal=0
1246
1247 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1248 rm -rf conftest* confdefs.h
1249 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1250 echo >confdefs.h
1251
1252 # Predefined preprocessor variables.
1253
1254 cat >>confdefs.h <<_ACEOF
1255 #define PACKAGE_NAME "$PACKAGE_NAME"
1256 _ACEOF
1257
1258
1259 cat >>confdefs.h <<_ACEOF
1260 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1261 _ACEOF
1262
1263
1264 cat >>confdefs.h <<_ACEOF
1265 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1266 _ACEOF
1267
1268
1269 cat >>confdefs.h <<_ACEOF
1270 #define PACKAGE_STRING "$PACKAGE_STRING"
1271 _ACEOF
1272
1273
1274 cat >>confdefs.h <<_ACEOF
1275 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1276 _ACEOF
1277
1278
1279 # Let the site file select an alternate cache file if it wants to.
1280 # Prefer explicitly selected file to automatically selected ones.
1281 if test -z "$CONFIG_SITE"; then
1282   if test "x$prefix" != xNONE; then
1283     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1284   else
1285     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1286   fi
1287 fi
1288 for ac_site_file in $CONFIG_SITE; do
1289   if test -r "$ac_site_file"; then
1290     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1291 echo "$as_me: loading site script $ac_site_file" >&6;}
1292     sed 's/^/| /' "$ac_site_file" >&5
1293     . "$ac_site_file"
1294   fi
1295 done
1296
1297 if test -r "$cache_file"; then
1298   # Some versions of bash will fail to source /dev/null (special
1299   # files actually), so we avoid doing that.
1300   if test -f "$cache_file"; then
1301     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1302 echo "$as_me: loading cache $cache_file" >&6;}
1303     case $cache_file in
1304       [\\/]* | ?:[\\/]* ) . $cache_file;;
1305       *)                      . ./$cache_file;;
1306     esac
1307   fi
1308 else
1309   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1310 echo "$as_me: creating cache $cache_file" >&6;}
1311   >$cache_file
1312 fi
1313
1314 # Check that the precious variables saved in the cache have kept the same
1315 # value.
1316 ac_cache_corrupted=false
1317 for ac_var in `(set) 2>&1 |
1318                sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1319   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1320   eval ac_new_set=\$ac_env_${ac_var}_set
1321   eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1322   eval ac_new_val="\$ac_env_${ac_var}_value"
1323   case $ac_old_set,$ac_new_set in
1324     set,)
1325       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1326 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1327       ac_cache_corrupted=: ;;
1328     ,set)
1329       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1330 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1331       ac_cache_corrupted=: ;;
1332     ,);;
1333     *)
1334       if test "x$ac_old_val" != "x$ac_new_val"; then
1335         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1336 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1337         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1338 echo "$as_me:   former value:  $ac_old_val" >&2;}
1339         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1340 echo "$as_me:   current value: $ac_new_val" >&2;}
1341         ac_cache_corrupted=:
1342       fi;;
1343   esac
1344   # Pass precious variables to config.status.
1345   if test "$ac_new_set" = set; then
1346     case $ac_new_val in
1347     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1348       ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1349     *) ac_arg=$ac_var=$ac_new_val ;;
1350     esac
1351     case " $ac_configure_args " in
1352       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1353       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1354     esac
1355   fi
1356 done
1357 if $ac_cache_corrupted; then
1358   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1359 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1360   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1361 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1362    { (exit 1); exit 1; }; }
1363 fi
1364
1365 ac_ext=c
1366 ac_cpp='$CPP $CPPFLAGS'
1367 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1368 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1369 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1370
1371
1372
1373
1374
1375
1376
1377
1378
1379
1380
1381
1382
1383
1384
1385
1386
1387
1388
1389
1390
1391
1392
1393
1394
1395
1396
1397 ac_config_headers="$ac_config_headers include/Config/config.h"
1398
1399
1400
1401 ac_aux_dir=
1402 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1403   if test -f $ac_dir/install-sh; then
1404     ac_aux_dir=$ac_dir
1405     ac_install_sh="$ac_aux_dir/install-sh -c"
1406     break
1407   elif test -f $ac_dir/install.sh; then
1408     ac_aux_dir=$ac_dir
1409     ac_install_sh="$ac_aux_dir/install.sh -c"
1410     break
1411   elif test -f $ac_dir/shtool; then
1412     ac_aux_dir=$ac_dir
1413     ac_install_sh="$ac_aux_dir/shtool install -c"
1414     break
1415   fi
1416 done
1417 if test -z "$ac_aux_dir"; then
1418   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1419 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1420    { (exit 1); exit 1; }; }
1421 fi
1422 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1423 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1424 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1425
1426 # Find a good install program.  We prefer a C program (faster),
1427 # so one script is as good as another.  But avoid the broken or
1428 # incompatible versions:
1429 # SysV /etc/install, /usr/sbin/install
1430 # SunOS /usr/etc/install
1431 # IRIX /sbin/install
1432 # AIX /bin/install
1433 # AmigaOS /C/install, which installs bootblocks on floppy discs
1434 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1435 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1436 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1437 # ./install, which can be erroneously created by make from ./install.sh.
1438 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1439 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1440 if test -z "$INSTALL"; then
1441 if test "${ac_cv_path_install+set}" = set; then
1442   echo $ECHO_N "(cached) $ECHO_C" >&6
1443 else
1444   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1445 for as_dir in $PATH
1446 do
1447   IFS=$as_save_IFS
1448   test -z "$as_dir" && as_dir=.
1449   # Account for people who put trailing slashes in PATH elements.
1450 case $as_dir/ in
1451   ./ | .// | /cC/* | \
1452   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1453   /usr/ucb/* ) ;;
1454   *)
1455     # OSF1 and SCO ODT 3.0 have their own names for install.
1456     # Don't use installbsd from OSF since it installs stuff as root
1457     # by default.
1458     for ac_prog in ginstall scoinst install; do
1459       for ac_exec_ext in '' $ac_executable_extensions; do
1460         if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1461           if test $ac_prog = install &&
1462             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1463             # AIX install.  It has an incompatible calling convention.
1464             :
1465           elif test $ac_prog = install &&
1466             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1467             # program-specific install script used by HP pwplus--don't use.
1468             :
1469           else
1470             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1471             break 3
1472           fi
1473         fi
1474       done
1475     done
1476     ;;
1477 esac
1478 done
1479
1480
1481 fi
1482   if test "${ac_cv_path_install+set}" = set; then
1483     INSTALL=$ac_cv_path_install
1484   else
1485     # As a last resort, use the slow shell script.  We don't cache a
1486     # path for INSTALL within a source directory, because that will
1487     # break other packages using the cache if that directory is
1488     # removed, or if the path is relative.
1489     INSTALL=$ac_install_sh
1490   fi
1491 fi
1492 echo "$as_me:$LINENO: result: $INSTALL" >&5
1493 echo "${ECHO_T}$INSTALL" >&6
1494
1495 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1496 # It thinks the first close brace ends the variable substitution.
1497 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1498
1499 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1500
1501 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1502
1503
1504 # Make sure we can run config.sub.
1505 $ac_config_sub sun4 >/dev/null 2>&1 ||
1506   { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1507 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1508    { (exit 1); exit 1; }; }
1509
1510 echo "$as_me:$LINENO: checking build system type" >&5
1511 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1512 if test "${ac_cv_build+set}" = set; then
1513   echo $ECHO_N "(cached) $ECHO_C" >&6
1514 else
1515   ac_cv_build_alias=$build_alias
1516 test -z "$ac_cv_build_alias" &&
1517   ac_cv_build_alias=`$ac_config_guess`
1518 test -z "$ac_cv_build_alias" &&
1519   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1520 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1521    { (exit 1); exit 1; }; }
1522 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1523   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1524 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1525    { (exit 1); exit 1; }; }
1526
1527 fi
1528 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1529 echo "${ECHO_T}$ac_cv_build" >&6
1530 build=$ac_cv_build
1531 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1532 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1533 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1534
1535
1536 echo "$as_me:$LINENO: checking host system type" >&5
1537 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1538 if test "${ac_cv_host+set}" = set; then
1539   echo $ECHO_N "(cached) $ECHO_C" >&6
1540 else
1541   ac_cv_host_alias=$host_alias
1542 test -z "$ac_cv_host_alias" &&
1543   ac_cv_host_alias=$ac_cv_build_alias
1544 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1545   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1546 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1547    { (exit 1); exit 1; }; }
1548
1549 fi
1550 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1551 echo "${ECHO_T}$ac_cv_host" >&6
1552 host=$ac_cv_host
1553 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1554 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1555 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1556
1557
1558 echo "$as_me:$LINENO: checking target system type" >&5
1559 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1560 if test "${ac_cv_target+set}" = set; then
1561   echo $ECHO_N "(cached) $ECHO_C" >&6
1562 else
1563   ac_cv_target_alias=$target_alias
1564 test "x$ac_cv_target_alias" = "x" &&
1565   ac_cv_target_alias=$ac_cv_host_alias
1566 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1567   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1568 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1569    { (exit 1); exit 1; }; }
1570
1571 fi
1572 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1573 echo "${ECHO_T}$ac_cv_target" >&6
1574 target=$ac_cv_target
1575 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1576 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1577 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1578
1579
1580 # The aliases save the names the user supplied, while $host etc.
1581 # will get canonicalized.
1582 test -n "$target_alias" &&
1583   test "$program_prefix$program_suffix$program_transform_name" = \
1584     NONENONEs,x,x, &&
1585   program_prefix=${target_alias}-
1586
1587 case $build in
1588         *i*86*)  OS=Linux
1589
1590                  DISABLE_LLC_DIFFS=DISABLE_LLC_DIFFS:=1
1591
1592                  LLVMGCCDIR=/home/vadve/lattner/local/x86/llvm-gcc/
1593
1594                  ;;
1595
1596         *sparc*) OS=SunOS
1597
1598                  LLVMGCCDIR=/home/vadve/lattner/local/sparc/llvm-gcc/
1599
1600                  ;;
1601
1602         *)       OS=Unknown
1603
1604                  ;;
1605 esac
1606
1607 case $target in
1608         *sparc*solaris*)  target=sparcv9-sun-solaris2.8
1609
1610                           ;;
1611 esac
1612
1613
1614 ac_ext=cc
1615 ac_cpp='$CXXCPP $CPPFLAGS'
1616 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1617 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1618 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
1619 if test -n "$ac_tool_prefix"; then
1620   for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
1621   do
1622     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1623 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1624 echo "$as_me:$LINENO: checking for $ac_word" >&5
1625 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1626 if test "${ac_cv_prog_CXX+set}" = set; then
1627   echo $ECHO_N "(cached) $ECHO_C" >&6
1628 else
1629   if test -n "$CXX"; then
1630   ac_cv_prog_CXX="$CXX" # Let the user override the test.
1631 else
1632 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1633 for as_dir in $PATH
1634 do
1635   IFS=$as_save_IFS
1636   test -z "$as_dir" && as_dir=.
1637   for ac_exec_ext in '' $ac_executable_extensions; do
1638   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1639     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
1640     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1641     break 2
1642   fi
1643 done
1644 done
1645
1646 fi
1647 fi
1648 CXX=$ac_cv_prog_CXX
1649 if test -n "$CXX"; then
1650   echo "$as_me:$LINENO: result: $CXX" >&5
1651 echo "${ECHO_T}$CXX" >&6
1652 else
1653   echo "$as_me:$LINENO: result: no" >&5
1654 echo "${ECHO_T}no" >&6
1655 fi
1656
1657     test -n "$CXX" && break
1658   done
1659 fi
1660 if test -z "$CXX"; then
1661   ac_ct_CXX=$CXX
1662   for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
1663 do
1664   # Extract the first word of "$ac_prog", so it can be a program name with args.
1665 set dummy $ac_prog; ac_word=$2
1666 echo "$as_me:$LINENO: checking for $ac_word" >&5
1667 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1668 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
1669   echo $ECHO_N "(cached) $ECHO_C" >&6
1670 else
1671   if test -n "$ac_ct_CXX"; then
1672   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
1673 else
1674 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1675 for as_dir in $PATH
1676 do
1677   IFS=$as_save_IFS
1678   test -z "$as_dir" && as_dir=.
1679   for ac_exec_ext in '' $ac_executable_extensions; do
1680   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1681     ac_cv_prog_ac_ct_CXX="$ac_prog"
1682     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1683     break 2
1684   fi
1685 done
1686 done
1687
1688 fi
1689 fi
1690 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
1691 if test -n "$ac_ct_CXX"; then
1692   echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
1693 echo "${ECHO_T}$ac_ct_CXX" >&6
1694 else
1695   echo "$as_me:$LINENO: result: no" >&5
1696 echo "${ECHO_T}no" >&6
1697 fi
1698
1699   test -n "$ac_ct_CXX" && break
1700 done
1701 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
1702
1703   CXX=$ac_ct_CXX
1704 fi
1705
1706
1707 # Provide some information about the compiler.
1708 echo "$as_me:$LINENO:" \
1709      "checking for C++ compiler version" >&5
1710 ac_compiler=`set X $ac_compile; echo $2`
1711 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1712   (eval $ac_compiler --version </dev/null >&5) 2>&5
1713   ac_status=$?
1714   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1715   (exit $ac_status); }
1716 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1717   (eval $ac_compiler -v </dev/null >&5) 2>&5
1718   ac_status=$?
1719   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1720   (exit $ac_status); }
1721 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1722   (eval $ac_compiler -V </dev/null >&5) 2>&5
1723   ac_status=$?
1724   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1725   (exit $ac_status); }
1726
1727 cat >conftest.$ac_ext <<_ACEOF
1728 #line $LINENO "configure"
1729 #include "confdefs.h"
1730
1731 #ifdef F77_DUMMY_MAIN
1732 #  ifdef __cplusplus
1733      extern "C"
1734 #  endif
1735    int F77_DUMMY_MAIN() { return 1; }
1736 #endif
1737 int
1738 main ()
1739 {
1740
1741   ;
1742   return 0;
1743 }
1744 _ACEOF
1745 ac_clean_files_save=$ac_clean_files
1746 ac_clean_files="$ac_clean_files a.out a.exe"
1747 # Try to create an executable without -o first, disregard a.out.
1748 # It will help us diagnose broken compilers, and finding out an intuition
1749 # of exeext.
1750 echo "$as_me:$LINENO: checking for C++ compiler default output" >&5
1751 echo $ECHO_N "checking for C++ compiler default output... $ECHO_C" >&6
1752 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1753 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1754   (eval $ac_link_default) 2>&5
1755   ac_status=$?
1756   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1757   (exit $ac_status); }; then
1758   # Find the output, starting from the most likely.  This scheme is
1759 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1760 # resort.
1761
1762 # Be careful to initialize this variable, since it used to be cached.
1763 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1764 ac_cv_exeext=
1765 for ac_file in `ls a_out.exe a.exe conftest.exe 2>/dev/null;
1766                 ls a.out conftest 2>/dev/null;
1767                 ls a.* conftest.* 2>/dev/null`; do
1768   case $ac_file in
1769     *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb | *.xSYM ) ;;
1770     a.out ) # We found the default executable, but exeext='' is most
1771             # certainly right.
1772             break;;
1773     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1774           # FIXME: I believe we export ac_cv_exeext for Libtool --akim.
1775           export ac_cv_exeext
1776           break;;
1777     * ) break;;
1778   esac
1779 done
1780 else
1781   echo "$as_me: failed program was:" >&5
1782 cat conftest.$ac_ext >&5
1783 { { echo "$as_me:$LINENO: error: C++ compiler cannot create executables" >&5
1784 echo "$as_me: error: C++ compiler cannot create executables" >&2;}
1785    { (exit 77); exit 77; }; }
1786 fi
1787
1788 ac_exeext=$ac_cv_exeext
1789 echo "$as_me:$LINENO: result: $ac_file" >&5
1790 echo "${ECHO_T}$ac_file" >&6
1791
1792 # Check the compiler produces executables we can run.  If not, either
1793 # the compiler is broken, or we cross compile.
1794 echo "$as_me:$LINENO: checking whether the C++ compiler works" >&5
1795 echo $ECHO_N "checking whether the C++ compiler works... $ECHO_C" >&6
1796 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1797 # If not cross compiling, check that we can run a simple program.
1798 if test "$cross_compiling" != yes; then
1799   if { ac_try='./$ac_file'
1800   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1801   (eval $ac_try) 2>&5
1802   ac_status=$?
1803   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1804   (exit $ac_status); }; }; then
1805     cross_compiling=no
1806   else
1807     if test "$cross_compiling" = maybe; then
1808         cross_compiling=yes
1809     else
1810         { { echo "$as_me:$LINENO: error: cannot run C++ compiled programs.
1811 If you meant to cross compile, use \`--host'." >&5
1812 echo "$as_me: error: cannot run C++ compiled programs.
1813 If you meant to cross compile, use \`--host'." >&2;}
1814    { (exit 1); exit 1; }; }
1815     fi
1816   fi
1817 fi
1818 echo "$as_me:$LINENO: result: yes" >&5
1819 echo "${ECHO_T}yes" >&6
1820
1821 rm -f a.out a.exe conftest$ac_cv_exeext
1822 ac_clean_files=$ac_clean_files_save
1823 # Check the compiler produces executables we can run.  If not, either
1824 # the compiler is broken, or we cross compile.
1825 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
1826 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1827 echo "$as_me:$LINENO: result: $cross_compiling" >&5
1828 echo "${ECHO_T}$cross_compiling" >&6
1829
1830 echo "$as_me:$LINENO: checking for suffix of executables" >&5
1831 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
1832 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1833   (eval $ac_link) 2>&5
1834   ac_status=$?
1835   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1836   (exit $ac_status); }; then
1837   # If both `conftest.exe' and `conftest' are `present' (well, observable)
1838 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
1839 # work properly (i.e., refer to `conftest.exe'), while it won't with
1840 # `rm'.
1841 for ac_file in `(ls conftest.exe; ls conftest; ls conftest.*) 2>/dev/null`; do
1842   case $ac_file in
1843     *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb ) ;;
1844     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1845           export ac_cv_exeext
1846           break;;
1847     * ) break;;
1848   esac
1849 done
1850 else
1851   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link" >&5
1852 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link" >&2;}
1853    { (exit 1); exit 1; }; }
1854 fi
1855
1856 rm -f conftest$ac_cv_exeext
1857 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
1858 echo "${ECHO_T}$ac_cv_exeext" >&6
1859
1860 rm -f conftest.$ac_ext
1861 EXEEXT=$ac_cv_exeext
1862 ac_exeext=$EXEEXT
1863 echo "$as_me:$LINENO: checking for suffix of object files" >&5
1864 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
1865 if test "${ac_cv_objext+set}" = set; then
1866   echo $ECHO_N "(cached) $ECHO_C" >&6
1867 else
1868   cat >conftest.$ac_ext <<_ACEOF
1869 #line $LINENO "configure"
1870 #include "confdefs.h"
1871
1872 #ifdef F77_DUMMY_MAIN
1873 #  ifdef __cplusplus
1874      extern "C"
1875 #  endif
1876    int F77_DUMMY_MAIN() { return 1; }
1877 #endif
1878 int
1879 main ()
1880 {
1881
1882   ;
1883   return 0;
1884 }
1885 _ACEOF
1886 rm -f conftest.o conftest.obj
1887 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1888   (eval $ac_compile) 2>&5
1889   ac_status=$?
1890   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1891   (exit $ac_status); }; then
1892   for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1893   case $ac_file in
1894     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb ) ;;
1895     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
1896        break;;
1897   esac
1898 done
1899 else
1900   echo "$as_me: failed program was:" >&5
1901 cat conftest.$ac_ext >&5
1902 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile" >&5
1903 echo "$as_me: error: cannot compute suffix of object files: cannot compile" >&2;}
1904    { (exit 1); exit 1; }; }
1905 fi
1906
1907 rm -f conftest.$ac_cv_objext conftest.$ac_ext
1908 fi
1909 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
1910 echo "${ECHO_T}$ac_cv_objext" >&6
1911 OBJEXT=$ac_cv_objext
1912 ac_objext=$OBJEXT
1913 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
1914 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
1915 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
1916   echo $ECHO_N "(cached) $ECHO_C" >&6
1917 else
1918   cat >conftest.$ac_ext <<_ACEOF
1919 #line $LINENO "configure"
1920 #include "confdefs.h"
1921
1922 #ifdef F77_DUMMY_MAIN
1923 #  ifdef __cplusplus
1924      extern "C"
1925 #  endif
1926    int F77_DUMMY_MAIN() { return 1; }
1927 #endif
1928 int
1929 main ()
1930 {
1931 #ifndef __GNUC__
1932        choke me
1933 #endif
1934
1935   ;
1936   return 0;
1937 }
1938 _ACEOF
1939 rm -f conftest.$ac_objext
1940 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1941   (eval $ac_compile) 2>&5
1942   ac_status=$?
1943   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1944   (exit $ac_status); } &&
1945          { ac_try='test -s conftest.$ac_objext'
1946   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1947   (eval $ac_try) 2>&5
1948   ac_status=$?
1949   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1950   (exit $ac_status); }; }; then
1951   ac_compiler_gnu=yes
1952 else
1953   echo "$as_me: failed program was:" >&5
1954 cat conftest.$ac_ext >&5
1955 ac_compiler_gnu=no
1956 fi
1957 rm -f conftest.$ac_objext conftest.$ac_ext
1958 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
1959
1960 fi
1961 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
1962 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
1963 GXX=`test $ac_compiler_gnu = yes && echo yes`
1964 ac_test_CXXFLAGS=${CXXFLAGS+set}
1965 ac_save_CXXFLAGS=$CXXFLAGS
1966 CXXFLAGS="-g"
1967 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
1968 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
1969 if test "${ac_cv_prog_cxx_g+set}" = set; then
1970   echo $ECHO_N "(cached) $ECHO_C" >&6
1971 else
1972   cat >conftest.$ac_ext <<_ACEOF
1973 #line $LINENO "configure"
1974 #include "confdefs.h"
1975
1976 #ifdef F77_DUMMY_MAIN
1977 #  ifdef __cplusplus
1978      extern "C"
1979 #  endif
1980    int F77_DUMMY_MAIN() { return 1; }
1981 #endif
1982 int
1983 main ()
1984 {
1985
1986   ;
1987   return 0;
1988 }
1989 _ACEOF
1990 rm -f conftest.$ac_objext
1991 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1992   (eval $ac_compile) 2>&5
1993   ac_status=$?
1994   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1995   (exit $ac_status); } &&
1996          { ac_try='test -s conftest.$ac_objext'
1997   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1998   (eval $ac_try) 2>&5
1999   ac_status=$?
2000   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2001   (exit $ac_status); }; }; then
2002   ac_cv_prog_cxx_g=yes
2003 else
2004   echo "$as_me: failed program was:" >&5
2005 cat conftest.$ac_ext >&5
2006 ac_cv_prog_cxx_g=no
2007 fi
2008 rm -f conftest.$ac_objext conftest.$ac_ext
2009 fi
2010 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
2011 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
2012 if test "$ac_test_CXXFLAGS" = set; then
2013   CXXFLAGS=$ac_save_CXXFLAGS
2014 elif test $ac_cv_prog_cxx_g = yes; then
2015   if test "$GXX" = yes; then
2016     CXXFLAGS="-g -O2"
2017   else
2018     CXXFLAGS="-g"
2019   fi
2020 else
2021   if test "$GXX" = yes; then
2022     CXXFLAGS="-O2"
2023   else
2024     CXXFLAGS=
2025   fi
2026 fi
2027 for ac_declaration in \
2028    ''\
2029    '#include <stdlib.h>' \
2030    'extern "C" void std::exit (int) throw (); using std::exit;' \
2031    'extern "C" void std::exit (int); using std::exit;' \
2032    'extern "C" void exit (int) throw ();' \
2033    'extern "C" void exit (int);' \
2034    'void exit (int);'
2035 do
2036   cat >conftest.$ac_ext <<_ACEOF
2037 #line $LINENO "configure"
2038 #include "confdefs.h"
2039 #include <stdlib.h>
2040 $ac_declaration
2041 #ifdef F77_DUMMY_MAIN
2042 #  ifdef __cplusplus
2043      extern "C"
2044 #  endif
2045    int F77_DUMMY_MAIN() { return 1; }
2046 #endif
2047 int
2048 main ()
2049 {
2050 exit (42);
2051   ;
2052   return 0;
2053 }
2054 _ACEOF
2055 rm -f conftest.$ac_objext
2056 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2057   (eval $ac_compile) 2>&5
2058   ac_status=$?
2059   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2060   (exit $ac_status); } &&
2061          { ac_try='test -s conftest.$ac_objext'
2062   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2063   (eval $ac_try) 2>&5
2064   ac_status=$?
2065   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2066   (exit $ac_status); }; }; then
2067   :
2068 else
2069   echo "$as_me: failed program was:" >&5
2070 cat conftest.$ac_ext >&5
2071 continue
2072 fi
2073 rm -f conftest.$ac_objext conftest.$ac_ext
2074   cat >conftest.$ac_ext <<_ACEOF
2075 #line $LINENO "configure"
2076 #include "confdefs.h"
2077 $ac_declaration
2078 #ifdef F77_DUMMY_MAIN
2079 #  ifdef __cplusplus
2080      extern "C"
2081 #  endif
2082    int F77_DUMMY_MAIN() { return 1; }
2083 #endif
2084 int
2085 main ()
2086 {
2087 exit (42);
2088   ;
2089   return 0;
2090 }
2091 _ACEOF
2092 rm -f conftest.$ac_objext
2093 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2094   (eval $ac_compile) 2>&5
2095   ac_status=$?
2096   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2097   (exit $ac_status); } &&
2098          { ac_try='test -s conftest.$ac_objext'
2099   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2100   (eval $ac_try) 2>&5
2101   ac_status=$?
2102   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2103   (exit $ac_status); }; }; then
2104   break
2105 else
2106   echo "$as_me: failed program was:" >&5
2107 cat conftest.$ac_ext >&5
2108 fi
2109 rm -f conftest.$ac_objext conftest.$ac_ext
2110 done
2111 rm -f conftest*
2112 if test -n "$ac_declaration"; then
2113   echo '#ifdef __cplusplus' >>confdefs.h
2114   echo $ac_declaration      >>confdefs.h
2115   echo '#endif'             >>confdefs.h
2116 fi
2117
2118 ac_ext=c
2119 ac_cpp='$CPP $CPPFLAGS'
2120 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2121 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2122 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2123
2124 ac_ext=c
2125 ac_cpp='$CPP $CPPFLAGS'
2126 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2127 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2128 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2129 if test -n "$ac_tool_prefix"; then
2130   for ac_prog in gcc
2131   do
2132     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2133 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2134 echo "$as_me:$LINENO: checking for $ac_word" >&5
2135 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2136 if test "${ac_cv_prog_CC+set}" = set; then
2137   echo $ECHO_N "(cached) $ECHO_C" >&6
2138 else
2139   if test -n "$CC"; then
2140   ac_cv_prog_CC="$CC" # Let the user override the test.
2141 else
2142 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2143 for as_dir in $PATH
2144 do
2145   IFS=$as_save_IFS
2146   test -z "$as_dir" && as_dir=.
2147   for ac_exec_ext in '' $ac_executable_extensions; do
2148   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2149     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2150     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2151     break 2
2152   fi
2153 done
2154 done
2155
2156 fi
2157 fi
2158 CC=$ac_cv_prog_CC
2159 if test -n "$CC"; then
2160   echo "$as_me:$LINENO: result: $CC" >&5
2161 echo "${ECHO_T}$CC" >&6
2162 else
2163   echo "$as_me:$LINENO: result: no" >&5
2164 echo "${ECHO_T}no" >&6
2165 fi
2166
2167     test -n "$CC" && break
2168   done
2169 fi
2170 if test -z "$CC"; then
2171   ac_ct_CC=$CC
2172   for ac_prog in gcc
2173 do
2174   # Extract the first word of "$ac_prog", so it can be a program name with args.
2175 set dummy $ac_prog; ac_word=$2
2176 echo "$as_me:$LINENO: checking for $ac_word" >&5
2177 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2178 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2179   echo $ECHO_N "(cached) $ECHO_C" >&6
2180 else
2181   if test -n "$ac_ct_CC"; then
2182   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2183 else
2184 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2185 for as_dir in $PATH
2186 do
2187   IFS=$as_save_IFS
2188   test -z "$as_dir" && as_dir=.
2189   for ac_exec_ext in '' $ac_executable_extensions; do
2190   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2191     ac_cv_prog_ac_ct_CC="$ac_prog"
2192     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2193     break 2
2194   fi
2195 done
2196 done
2197
2198 fi
2199 fi
2200 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2201 if test -n "$ac_ct_CC"; then
2202   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2203 echo "${ECHO_T}$ac_ct_CC" >&6
2204 else
2205   echo "$as_me:$LINENO: result: no" >&5
2206 echo "${ECHO_T}no" >&6
2207 fi
2208
2209   test -n "$ac_ct_CC" && break
2210 done
2211
2212   CC=$ac_ct_CC
2213 fi
2214
2215
2216 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH" >&5
2217 echo "$as_me: error: no acceptable C compiler found in \$PATH" >&2;}
2218    { (exit 1); exit 1; }; }
2219
2220 # Provide some information about the compiler.
2221 echo "$as_me:$LINENO:" \
2222      "checking for C compiler version" >&5
2223 ac_compiler=`set X $ac_compile; echo $2`
2224 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2225   (eval $ac_compiler --version </dev/null >&5) 2>&5
2226   ac_status=$?
2227   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2228   (exit $ac_status); }
2229 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2230   (eval $ac_compiler -v </dev/null >&5) 2>&5
2231   ac_status=$?
2232   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2233   (exit $ac_status); }
2234 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2235   (eval $ac_compiler -V </dev/null >&5) 2>&5
2236   ac_status=$?
2237   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2238   (exit $ac_status); }
2239
2240 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2241 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2242 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2243   echo $ECHO_N "(cached) $ECHO_C" >&6
2244 else
2245   cat >conftest.$ac_ext <<_ACEOF
2246 #line $LINENO "configure"
2247 #include "confdefs.h"
2248
2249 #ifdef F77_DUMMY_MAIN
2250 #  ifdef __cplusplus
2251      extern "C"
2252 #  endif
2253    int F77_DUMMY_MAIN() { return 1; }
2254 #endif
2255 int
2256 main ()
2257 {
2258 #ifndef __GNUC__
2259        choke me
2260 #endif
2261
2262   ;
2263   return 0;
2264 }
2265 _ACEOF
2266 rm -f conftest.$ac_objext
2267 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2268   (eval $ac_compile) 2>&5
2269   ac_status=$?
2270   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2271   (exit $ac_status); } &&
2272          { ac_try='test -s conftest.$ac_objext'
2273   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2274   (eval $ac_try) 2>&5
2275   ac_status=$?
2276   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2277   (exit $ac_status); }; }; then
2278   ac_compiler_gnu=yes
2279 else
2280   echo "$as_me: failed program was:" >&5
2281 cat conftest.$ac_ext >&5
2282 ac_compiler_gnu=no
2283 fi
2284 rm -f conftest.$ac_objext conftest.$ac_ext
2285 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2286
2287 fi
2288 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2289 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2290 GCC=`test $ac_compiler_gnu = yes && echo yes`
2291 ac_test_CFLAGS=${CFLAGS+set}
2292 ac_save_CFLAGS=$CFLAGS
2293 CFLAGS="-g"
2294 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2295 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2296 if test "${ac_cv_prog_cc_g+set}" = set; then
2297   echo $ECHO_N "(cached) $ECHO_C" >&6
2298 else
2299   cat >conftest.$ac_ext <<_ACEOF
2300 #line $LINENO "configure"
2301 #include "confdefs.h"
2302
2303 #ifdef F77_DUMMY_MAIN
2304 #  ifdef __cplusplus
2305      extern "C"
2306 #  endif
2307    int F77_DUMMY_MAIN() { return 1; }
2308 #endif
2309 int
2310 main ()
2311 {
2312
2313   ;
2314   return 0;
2315 }
2316 _ACEOF
2317 rm -f conftest.$ac_objext
2318 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2319   (eval $ac_compile) 2>&5
2320   ac_status=$?
2321   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2322   (exit $ac_status); } &&
2323          { ac_try='test -s conftest.$ac_objext'
2324   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2325   (eval $ac_try) 2>&5
2326   ac_status=$?
2327   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2328   (exit $ac_status); }; }; then
2329   ac_cv_prog_cc_g=yes
2330 else
2331   echo "$as_me: failed program was:" >&5
2332 cat conftest.$ac_ext >&5
2333 ac_cv_prog_cc_g=no
2334 fi
2335 rm -f conftest.$ac_objext conftest.$ac_ext
2336 fi
2337 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2338 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2339 if test "$ac_test_CFLAGS" = set; then
2340   CFLAGS=$ac_save_CFLAGS
2341 elif test $ac_cv_prog_cc_g = yes; then
2342   if test "$GCC" = yes; then
2343     CFLAGS="-g -O2"
2344   else
2345     CFLAGS="-g"
2346   fi
2347 else
2348   if test "$GCC" = yes; then
2349     CFLAGS="-O2"
2350   else
2351     CFLAGS=
2352   fi
2353 fi
2354 # Some people use a C++ compiler to compile C.  Since we use `exit',
2355 # in C++ we need to declare it.  In case someone uses the same compiler
2356 # for both compiling C and C++ we need to have the C++ compiler decide
2357 # the declaration of exit, since it's the most demanding environment.
2358 cat >conftest.$ac_ext <<_ACEOF
2359 #ifndef __cplusplus
2360   choke me
2361 #endif
2362 _ACEOF
2363 rm -f conftest.$ac_objext
2364 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2365   (eval $ac_compile) 2>&5
2366   ac_status=$?
2367   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2368   (exit $ac_status); } &&
2369          { ac_try='test -s conftest.$ac_objext'
2370   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2371   (eval $ac_try) 2>&5
2372   ac_status=$?
2373   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2374   (exit $ac_status); }; }; then
2375   for ac_declaration in \
2376    ''\
2377    '#include <stdlib.h>' \
2378    'extern "C" void std::exit (int) throw (); using std::exit;' \
2379    'extern "C" void std::exit (int); using std::exit;' \
2380    'extern "C" void exit (int) throw ();' \
2381    'extern "C" void exit (int);' \
2382    'void exit (int);'
2383 do
2384   cat >conftest.$ac_ext <<_ACEOF
2385 #line $LINENO "configure"
2386 #include "confdefs.h"
2387 #include <stdlib.h>
2388 $ac_declaration
2389 #ifdef F77_DUMMY_MAIN
2390 #  ifdef __cplusplus
2391      extern "C"
2392 #  endif
2393    int F77_DUMMY_MAIN() { return 1; }
2394 #endif
2395 int
2396 main ()
2397 {
2398 exit (42);
2399   ;
2400   return 0;
2401 }
2402 _ACEOF
2403 rm -f conftest.$ac_objext
2404 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2405   (eval $ac_compile) 2>&5
2406   ac_status=$?
2407   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2408   (exit $ac_status); } &&
2409          { ac_try='test -s conftest.$ac_objext'
2410   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2411   (eval $ac_try) 2>&5
2412   ac_status=$?
2413   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2414   (exit $ac_status); }; }; then
2415   :
2416 else
2417   echo "$as_me: failed program was:" >&5
2418 cat conftest.$ac_ext >&5
2419 continue
2420 fi
2421 rm -f conftest.$ac_objext conftest.$ac_ext
2422   cat >conftest.$ac_ext <<_ACEOF
2423 #line $LINENO "configure"
2424 #include "confdefs.h"
2425 $ac_declaration
2426 #ifdef F77_DUMMY_MAIN
2427 #  ifdef __cplusplus
2428      extern "C"
2429 #  endif
2430    int F77_DUMMY_MAIN() { return 1; }
2431 #endif
2432 int
2433 main ()
2434 {
2435 exit (42);
2436   ;
2437   return 0;
2438 }
2439 _ACEOF
2440 rm -f conftest.$ac_objext
2441 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2442   (eval $ac_compile) 2>&5
2443   ac_status=$?
2444   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2445   (exit $ac_status); } &&
2446          { ac_try='test -s conftest.$ac_objext'
2447   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2448   (eval $ac_try) 2>&5
2449   ac_status=$?
2450   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2451   (exit $ac_status); }; }; then
2452   break
2453 else
2454   echo "$as_me: failed program was:" >&5
2455 cat conftest.$ac_ext >&5
2456 fi
2457 rm -f conftest.$ac_objext conftest.$ac_ext
2458 done
2459 rm -f conftest*
2460 if test -n "$ac_declaration"; then
2461   echo '#ifdef __cplusplus' >>confdefs.h
2462   echo $ac_declaration      >>confdefs.h
2463   echo '#endif'             >>confdefs.h
2464 fi
2465
2466 else
2467   echo "$as_me: failed program was:" >&5
2468 cat conftest.$ac_ext >&5
2469 fi
2470 rm -f conftest.$ac_objext conftest.$ac_ext
2471 ac_ext=c
2472 ac_cpp='$CPP $CPPFLAGS'
2473 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2474 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2475 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2476
2477 ac_ext=c
2478 ac_cpp='$CPP $CPPFLAGS'
2479 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2480 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2481 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2482 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2483 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2484 # On Suns, sometimes $CPP names a directory.
2485 if test -n "$CPP" && test -d "$CPP"; then
2486   CPP=
2487 fi
2488 if test -z "$CPP"; then
2489   if test "${ac_cv_prog_CPP+set}" = set; then
2490   echo $ECHO_N "(cached) $ECHO_C" >&6
2491 else
2492       # Double quotes because CPP needs to be expanded
2493     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2494     do
2495       ac_preproc_ok=false
2496 for ac_c_preproc_warn_flag in '' yes
2497 do
2498   # Use a header file that comes with gcc, so configuring glibc
2499   # with a fresh cross-compiler works.
2500   # On the NeXT, cc -E runs the code through the compiler's parser,
2501   # not just through cpp. "Syntax error" is here to catch this case.
2502   cat >conftest.$ac_ext <<_ACEOF
2503 #line $LINENO "configure"
2504 #include "confdefs.h"
2505 #include <assert.h>
2506                      Syntax error
2507 _ACEOF
2508 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2509   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2510   ac_status=$?
2511   egrep -v '^ *\+' conftest.er1 >conftest.err
2512   rm -f conftest.er1
2513   cat conftest.err >&5
2514   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2515   (exit $ac_status); } >/dev/null; then
2516   if test -s conftest.err; then
2517     ac_cpp_err=$ac_c_preproc_warn_flag
2518   else
2519     ac_cpp_err=
2520   fi
2521 else
2522   ac_cpp_err=yes
2523 fi
2524 if test -z "$ac_cpp_err"; then
2525   :
2526 else
2527   echo "$as_me: failed program was:" >&5
2528   cat conftest.$ac_ext >&5
2529   # Broken: fails on valid input.
2530 continue
2531 fi
2532 rm -f conftest.err conftest.$ac_ext
2533
2534   # OK, works on sane cases.  Now check whether non-existent headers
2535   # can be detected and how.
2536   cat >conftest.$ac_ext <<_ACEOF
2537 #line $LINENO "configure"
2538 #include "confdefs.h"
2539 #include <ac_nonexistent.h>
2540 _ACEOF
2541 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2542   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2543   ac_status=$?
2544   egrep -v '^ *\+' conftest.er1 >conftest.err
2545   rm -f conftest.er1
2546   cat conftest.err >&5
2547   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2548   (exit $ac_status); } >/dev/null; then
2549   if test -s conftest.err; then
2550     ac_cpp_err=$ac_c_preproc_warn_flag
2551   else
2552     ac_cpp_err=
2553   fi
2554 else
2555   ac_cpp_err=yes
2556 fi
2557 if test -z "$ac_cpp_err"; then
2558   # Broken: success on invalid input.
2559 continue
2560 else
2561   echo "$as_me: failed program was:" >&5
2562   cat conftest.$ac_ext >&5
2563   # Passes both tests.
2564 ac_preproc_ok=:
2565 break
2566 fi
2567 rm -f conftest.err conftest.$ac_ext
2568
2569 done
2570 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2571 rm -f conftest.err conftest.$ac_ext
2572 if $ac_preproc_ok; then
2573   break
2574 fi
2575
2576     done
2577     ac_cv_prog_CPP=$CPP
2578
2579 fi
2580   CPP=$ac_cv_prog_CPP
2581 else
2582   ac_cv_prog_CPP=$CPP
2583 fi
2584 echo "$as_me:$LINENO: result: $CPP" >&5
2585 echo "${ECHO_T}$CPP" >&6
2586 ac_preproc_ok=false
2587 for ac_c_preproc_warn_flag in '' yes
2588 do
2589   # Use a header file that comes with gcc, so configuring glibc
2590   # with a fresh cross-compiler works.
2591   # On the NeXT, cc -E runs the code through the compiler's parser,
2592   # not just through cpp. "Syntax error" is here to catch this case.
2593   cat >conftest.$ac_ext <<_ACEOF
2594 #line $LINENO "configure"
2595 #include "confdefs.h"
2596 #include <assert.h>
2597                      Syntax error
2598 _ACEOF
2599 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2600   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2601   ac_status=$?
2602   egrep -v '^ *\+' conftest.er1 >conftest.err
2603   rm -f conftest.er1
2604   cat conftest.err >&5
2605   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2606   (exit $ac_status); } >/dev/null; then
2607   if test -s conftest.err; then
2608     ac_cpp_err=$ac_c_preproc_warn_flag
2609   else
2610     ac_cpp_err=
2611   fi
2612 else
2613   ac_cpp_err=yes
2614 fi
2615 if test -z "$ac_cpp_err"; then
2616   :
2617 else
2618   echo "$as_me: failed program was:" >&5
2619   cat conftest.$ac_ext >&5
2620   # Broken: fails on valid input.
2621 continue
2622 fi
2623 rm -f conftest.err conftest.$ac_ext
2624
2625   # OK, works on sane cases.  Now check whether non-existent headers
2626   # can be detected and how.
2627   cat >conftest.$ac_ext <<_ACEOF
2628 #line $LINENO "configure"
2629 #include "confdefs.h"
2630 #include <ac_nonexistent.h>
2631 _ACEOF
2632 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2633   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2634   ac_status=$?
2635   egrep -v '^ *\+' conftest.er1 >conftest.err
2636   rm -f conftest.er1
2637   cat conftest.err >&5
2638   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2639   (exit $ac_status); } >/dev/null; then
2640   if test -s conftest.err; then
2641     ac_cpp_err=$ac_c_preproc_warn_flag
2642   else
2643     ac_cpp_err=
2644   fi
2645 else
2646   ac_cpp_err=yes
2647 fi
2648 if test -z "$ac_cpp_err"; then
2649   # Broken: success on invalid input.
2650 continue
2651 else
2652   echo "$as_me: failed program was:" >&5
2653   cat conftest.$ac_ext >&5
2654   # Passes both tests.
2655 ac_preproc_ok=:
2656 break
2657 fi
2658 rm -f conftest.err conftest.$ac_ext
2659
2660 done
2661 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2662 rm -f conftest.err conftest.$ac_ext
2663 if $ac_preproc_ok; then
2664   :
2665 else
2666   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check" >&5
2667 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check" >&2;}
2668    { (exit 1); exit 1; }; }
2669 fi
2670
2671 ac_ext=c
2672 ac_cpp='$CPP $CPPFLAGS'
2673 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2674 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2675 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2676
2677
2678 if test "$GCC" != "yes"
2679 then
2680         { { echo "$as_me:$LINENO: error: gcc required but not found" >&5
2681 echo "$as_me: error: gcc required but not found" >&2;}
2682    { (exit 1); exit 1; }; }
2683 fi
2684
2685 if test "$GXX" != "yes"
2686 then
2687         { { echo "$as_me:$LINENO: error: g++ required but not found" >&5
2688 echo "$as_me: error: g++ required but not found" >&2;}
2689    { (exit 1); exit 1; }; }
2690 fi
2691
2692  echo "$as_me:$LINENO: checking for GNU make" >&5
2693 echo $ECHO_N "checking for GNU make... $ECHO_C" >&6
2694 if test "${_cv_gnu_make_command+set}" = set; then
2695   echo $ECHO_N "(cached) $ECHO_C" >&6
2696 else
2697   _cv_gnu_make_command='' ;
2698                 for a in "$MAKE" make gmake gnumake ; do
2699                         if test -z "$a" ; then continue ; fi ;
2700                         if  ( sh -c "$a --version" 2> /dev/null | grep GNU  2>&1 > /dev/null ) ;  then
2701                                 _cv_gnu_make_command=$a ;
2702                                 break;
2703                         fi
2704                 done ;
2705
2706 fi
2707 echo "$as_me:$LINENO: result: $_cv_gnu_make_command" >&5
2708 echo "${ECHO_T}$_cv_gnu_make_command" >&6 ;
2709         if test  "x$_cv_gnu_make_command" != "x"  ; then
2710                 ifGNUmake='' ;
2711         else
2712                 ifGNUmake='#' ;
2713                 echo "$as_me:$LINENO: result: \"Not found\"" >&5
2714 echo "${ECHO_T}\"Not found\"" >&6;
2715         fi
2716
2717
2718 if test -z "$_cv_gnu_make_command"
2719 then
2720         { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5
2721 echo "$as_me: error: GNU Make required but not found" >&2;}
2722    { (exit 1); exit 1; }; }
2723 fi
2724
2725
2726 echo "$as_me:$LINENO: checking " >&5
2727 echo $ECHO_N "checking ... $ECHO_C" >&6
2728 if test "${ac_cv_has_flex+set}" = set; then
2729   echo $ECHO_N "(cached) $ECHO_C" >&6
2730 else
2731   for ac_prog in flex lex
2732 do
2733   # Extract the first word of "$ac_prog", so it can be a program name with args.
2734 set dummy $ac_prog; ac_word=$2
2735 echo "$as_me:$LINENO: checking for $ac_word" >&5
2736 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2737 if test "${ac_cv_prog_LEX+set}" = set; then
2738   echo $ECHO_N "(cached) $ECHO_C" >&6
2739 else
2740   if test -n "$LEX"; then
2741   ac_cv_prog_LEX="$LEX" # Let the user override the test.
2742 else
2743 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2744 for as_dir in $PATH
2745 do
2746   IFS=$as_save_IFS
2747   test -z "$as_dir" && as_dir=.
2748   for ac_exec_ext in '' $ac_executable_extensions; do
2749   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2750     ac_cv_prog_LEX="$ac_prog"
2751     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2752     break 2
2753   fi
2754 done
2755 done
2756
2757 fi
2758 fi
2759 LEX=$ac_cv_prog_LEX
2760 if test -n "$LEX"; then
2761   echo "$as_me:$LINENO: result: $LEX" >&5
2762 echo "${ECHO_T}$LEX" >&6
2763 else
2764   echo "$as_me:$LINENO: result: no" >&5
2765 echo "${ECHO_T}no" >&6
2766 fi
2767
2768   test -n "$LEX" && break
2769 done
2770 test -n "$LEX" || LEX=":"
2771
2772 if test -z "$LEXLIB"
2773 then
2774   echo "$as_me:$LINENO: checking for yywrap in -lfl" >&5
2775 echo $ECHO_N "checking for yywrap in -lfl... $ECHO_C" >&6
2776 if test "${ac_cv_lib_fl_yywrap+set}" = set; then
2777   echo $ECHO_N "(cached) $ECHO_C" >&6
2778 else
2779   ac_check_lib_save_LIBS=$LIBS
2780 LIBS="-lfl  $LIBS"
2781 cat >conftest.$ac_ext <<_ACEOF
2782 #line $LINENO "configure"
2783 #include "confdefs.h"
2784
2785 /* Override any gcc2 internal prototype to avoid an error.  */
2786 #ifdef __cplusplus
2787 extern "C"
2788 #endif
2789 /* We use char because int might match the return type of a gcc2
2790    builtin and then its argument prototype would still apply.  */
2791 char yywrap ();
2792 #ifdef F77_DUMMY_MAIN
2793 #  ifdef __cplusplus
2794      extern "C"
2795 #  endif
2796    int F77_DUMMY_MAIN() { return 1; }
2797 #endif
2798 int
2799 main ()
2800 {
2801 yywrap ();
2802   ;
2803   return 0;
2804 }
2805 _ACEOF
2806 rm -f conftest.$ac_objext conftest$ac_exeext
2807 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2808   (eval $ac_link) 2>&5
2809   ac_status=$?
2810   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2811   (exit $ac_status); } &&
2812          { ac_try='test -s conftest$ac_exeext'
2813   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2814   (eval $ac_try) 2>&5
2815   ac_status=$?
2816   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2817   (exit $ac_status); }; }; then
2818   ac_cv_lib_fl_yywrap=yes
2819 else
2820   echo "$as_me: failed program was:" >&5
2821 cat conftest.$ac_ext >&5
2822 ac_cv_lib_fl_yywrap=no
2823 fi
2824 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
2825 LIBS=$ac_check_lib_save_LIBS
2826 fi
2827 echo "$as_me:$LINENO: result: $ac_cv_lib_fl_yywrap" >&5
2828 echo "${ECHO_T}$ac_cv_lib_fl_yywrap" >&6
2829 if test $ac_cv_lib_fl_yywrap = yes; then
2830   LEXLIB="-lfl"
2831 else
2832   echo "$as_me:$LINENO: checking for yywrap in -ll" >&5
2833 echo $ECHO_N "checking for yywrap in -ll... $ECHO_C" >&6
2834 if test "${ac_cv_lib_l_yywrap+set}" = set; then
2835   echo $ECHO_N "(cached) $ECHO_C" >&6
2836 else
2837   ac_check_lib_save_LIBS=$LIBS
2838 LIBS="-ll  $LIBS"
2839 cat >conftest.$ac_ext <<_ACEOF
2840 #line $LINENO "configure"
2841 #include "confdefs.h"
2842
2843 /* Override any gcc2 internal prototype to avoid an error.  */
2844 #ifdef __cplusplus
2845 extern "C"
2846 #endif
2847 /* We use char because int might match the return type of a gcc2
2848    builtin and then its argument prototype would still apply.  */
2849 char yywrap ();
2850 #ifdef F77_DUMMY_MAIN
2851 #  ifdef __cplusplus
2852      extern "C"
2853 #  endif
2854    int F77_DUMMY_MAIN() { return 1; }
2855 #endif
2856 int
2857 main ()
2858 {
2859 yywrap ();
2860   ;
2861   return 0;
2862 }
2863 _ACEOF
2864 rm -f conftest.$ac_objext conftest$ac_exeext
2865 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2866   (eval $ac_link) 2>&5
2867   ac_status=$?
2868   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2869   (exit $ac_status); } &&
2870          { ac_try='test -s conftest$ac_exeext'
2871   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2872   (eval $ac_try) 2>&5
2873   ac_status=$?
2874   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2875   (exit $ac_status); }; }; then
2876   ac_cv_lib_l_yywrap=yes
2877 else
2878   echo "$as_me: failed program was:" >&5
2879 cat conftest.$ac_ext >&5
2880 ac_cv_lib_l_yywrap=no
2881 fi
2882 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
2883 LIBS=$ac_check_lib_save_LIBS
2884 fi
2885 echo "$as_me:$LINENO: result: $ac_cv_lib_l_yywrap" >&5
2886 echo "${ECHO_T}$ac_cv_lib_l_yywrap" >&6
2887 if test $ac_cv_lib_l_yywrap = yes; then
2888   LEXLIB="-ll"
2889 fi
2890
2891 fi
2892
2893 fi
2894
2895 if test "x$LEX" != "x:"; then
2896   echo "$as_me:$LINENO: checking lex output file root" >&5
2897 echo $ECHO_N "checking lex output file root... $ECHO_C" >&6
2898 if test "${ac_cv_prog_lex_root+set}" = set; then
2899   echo $ECHO_N "(cached) $ECHO_C" >&6
2900 else
2901   # The minimal lex program is just a single line: %%.  But some broken lexes
2902 # (Solaris, I think it was) want two %% lines, so accommodate them.
2903 cat >conftest.l <<_ACEOF
2904 %%
2905 %%
2906 _ACEOF
2907 { (eval echo "$as_me:$LINENO: \"$LEX conftest.l\"") >&5
2908   (eval $LEX conftest.l) 2>&5
2909   ac_status=$?
2910   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2911   (exit $ac_status); }
2912 if test -f lex.yy.c; then
2913   ac_cv_prog_lex_root=lex.yy
2914 elif test -f lexyy.c; then
2915   ac_cv_prog_lex_root=lexyy
2916 else
2917   { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5
2918 echo "$as_me: error: cannot find output from $LEX; giving up" >&2;}
2919    { (exit 1); exit 1; }; }
2920 fi
2921 fi
2922 echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5
2923 echo "${ECHO_T}$ac_cv_prog_lex_root" >&6
2924 rm -f conftest.l
2925 LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
2926
2927 echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5
2928 echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6
2929 if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then
2930   echo $ECHO_N "(cached) $ECHO_C" >&6
2931 else
2932   # POSIX says lex can declare yytext either as a pointer or an array; the
2933 # default is implementation-dependent. Figure out which it is, since
2934 # not all implementations provide the %pointer and %array declarations.
2935 ac_cv_prog_lex_yytext_pointer=no
2936 echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c
2937 ac_save_LIBS=$LIBS
2938 LIBS="$LIBS $LEXLIB"
2939 cat >conftest.$ac_ext <<_ACEOF
2940 `cat $LEX_OUTPUT_ROOT.c`
2941 _ACEOF
2942 rm -f conftest.$ac_objext conftest$ac_exeext
2943 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2944   (eval $ac_link) 2>&5
2945   ac_status=$?
2946   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2947   (exit $ac_status); } &&
2948          { ac_try='test -s conftest$ac_exeext'
2949   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2950   (eval $ac_try) 2>&5
2951   ac_status=$?
2952   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2953   (exit $ac_status); }; }; then
2954   ac_cv_prog_lex_yytext_pointer=yes
2955 else
2956   echo "$as_me: failed program was:" >&5
2957 cat conftest.$ac_ext >&5
2958 fi
2959 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
2960 LIBS=$ac_save_LIBS
2961 rm -f "${LEX_OUTPUT_ROOT}.c"
2962
2963 fi
2964 echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5
2965 echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6
2966 if test $ac_cv_prog_lex_yytext_pointer = yes; then
2967
2968 cat >>confdefs.h <<\_ACEOF
2969 #define YYTEXT_POINTER 1
2970 _ACEOF
2971
2972 fi
2973
2974 fi
2975
2976 fi
2977 echo "$as_me:$LINENO: result: $ac_cv_has_flex" >&5
2978 echo "${ECHO_T}$ac_cv_has_flex" >&6
2979 if test "$LEX" != "flex"; then
2980   { { echo "$as_me:$LINENO: error: flex not found but required" >&5
2981 echo "$as_me: error: flex not found but required" >&2;}
2982    { (exit 1); exit 1; }; }
2983 fi
2984
2985 echo "$as_me:$LINENO: checking " >&5
2986 echo $ECHO_N "checking ... $ECHO_C" >&6
2987 if test "${ac_cv_has_bison+set}" = set; then
2988   echo $ECHO_N "(cached) $ECHO_C" >&6
2989 else
2990   for ac_prog in 'bison -y' byacc
2991 do
2992   # Extract the first word of "$ac_prog", so it can be a program name with args.
2993 set dummy $ac_prog; ac_word=$2
2994 echo "$as_me:$LINENO: checking for $ac_word" >&5
2995 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2996 if test "${ac_cv_prog_YACC+set}" = set; then
2997   echo $ECHO_N "(cached) $ECHO_C" >&6
2998 else
2999   if test -n "$YACC"; then
3000   ac_cv_prog_YACC="$YACC" # Let the user override the test.
3001 else
3002 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3003 for as_dir in $PATH
3004 do
3005   IFS=$as_save_IFS
3006   test -z "$as_dir" && as_dir=.
3007   for ac_exec_ext in '' $ac_executable_extensions; do
3008   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3009     ac_cv_prog_YACC="$ac_prog"
3010     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3011     break 2
3012   fi
3013 done
3014 done
3015
3016 fi
3017 fi
3018 YACC=$ac_cv_prog_YACC
3019 if test -n "$YACC"; then
3020   echo "$as_me:$LINENO: result: $YACC" >&5
3021 echo "${ECHO_T}$YACC" >&6
3022 else
3023   echo "$as_me:$LINENO: result: no" >&5
3024 echo "${ECHO_T}no" >&6
3025 fi
3026
3027   test -n "$YACC" && break
3028 done
3029 test -n "$YACC" || YACC="yacc"
3030
3031
3032 fi
3033 echo "$as_me:$LINENO: result: $ac_cv_has_bison" >&5
3034 echo "${ECHO_T}$ac_cv_has_bison" >&6
3035 if test "$YACC" != "bison -y"; then
3036   { { echo "$as_me:$LINENO: error: bison not found but required" >&5
3037 echo "$as_me: error: bison not found but required" >&2;}
3038    { (exit 1); exit 1; }; }
3039 else
3040   YACC=bison
3041
3042 fi
3043
3044
3045 # Check whether --enable-shared or --disable-shared was given.
3046 if test "${enable_shared+set}" = set; then
3047   enableval="$enable_shared"
3048   p=${PACKAGE-default}
3049 case $enableval in
3050 yes) enable_shared=yes ;;
3051 no) enable_shared=no ;;
3052 *)
3053   enable_shared=no
3054   # Look at the argument we got.  We use all the common list separators.
3055   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
3056   for pkg in $enableval; do
3057     if test "X$pkg" = "X$p"; then
3058       enable_shared=yes
3059     fi
3060   done
3061   IFS="$ac_save_ifs"
3062   ;;
3063 esac
3064 else
3065   enable_shared=yes
3066 fi;
3067 # Check whether --enable-static or --disable-static was given.
3068 if test "${enable_static+set}" = set; then
3069   enableval="$enable_static"
3070   p=${PACKAGE-default}
3071 case $enableval in
3072 yes) enable_static=yes ;;
3073 no) enable_static=no ;;
3074 *)
3075   enable_static=no
3076   # Look at the argument we got.  We use all the common list separators.
3077   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
3078   for pkg in $enableval; do
3079     if test "X$pkg" = "X$p"; then
3080       enable_static=yes
3081     fi
3082   done
3083   IFS="$ac_save_ifs"
3084   ;;
3085 esac
3086 else
3087   enable_static=yes
3088 fi;
3089 # Check whether --enable-fast-install or --disable-fast-install was given.
3090 if test "${enable_fast_install+set}" = set; then
3091   enableval="$enable_fast_install"
3092   p=${PACKAGE-default}
3093 case $enableval in
3094 yes) enable_fast_install=yes ;;
3095 no) enable_fast_install=no ;;
3096 *)
3097   enable_fast_install=no
3098   # Look at the argument we got.  We use all the common list separators.
3099   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
3100   for pkg in $enableval; do
3101     if test "X$pkg" = "X$p"; then
3102       enable_fast_install=yes
3103     fi
3104   done
3105   IFS="$ac_save_ifs"
3106   ;;
3107 esac
3108 else
3109   enable_fast_install=yes
3110 fi;
3111 # Find the correct PATH separator.  Usually this is `:', but
3112 # DJGPP uses `;' like DOS.
3113 if test "X${PATH_SEPARATOR+set}" != Xset; then
3114   UNAME=${UNAME-`uname 2>/dev/null`}
3115   case X$UNAME in
3116     *-DOS) lt_cv_sys_path_separator=';' ;;
3117     *)     lt_cv_sys_path_separator=':' ;;
3118   esac
3119   PATH_SEPARATOR=$lt_cv_sys_path_separator
3120 fi
3121
3122
3123 # Check whether --with-gnu-ld or --without-gnu-ld was given.
3124 if test "${with_gnu_ld+set}" = set; then
3125   withval="$with_gnu_ld"
3126   test "$withval" = no || with_gnu_ld=yes
3127 else
3128   with_gnu_ld=no
3129 fi;
3130 ac_prog=ld
3131 if test "$GCC" = yes; then
3132   # Check if gcc -print-prog-name=ld gives a path.
3133   echo "$as_me:$LINENO: checking for ld used by GCC" >&5
3134 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
3135   case $host in
3136   *-*-mingw*)
3137     # gcc leaves a trailing carriage return which upsets mingw
3138     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3139   *)
3140     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3141   esac
3142   case $ac_prog in
3143     # Accept absolute paths.
3144     [\\/]* | [A-Za-z]:[\\/]*)
3145       re_direlt='/[^/][^/]*/\.\./'
3146       # Canonicalize the path of ld
3147       ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
3148       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
3149         ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
3150       done
3151       test -z "$LD" && LD="$ac_prog"
3152       ;;
3153   "")
3154     # If it fails, then pretend we aren't using GCC.
3155     ac_prog=ld
3156     ;;
3157   *)
3158     # If it is relative, then search for the first ld in PATH.
3159     with_gnu_ld=unknown
3160     ;;
3161   esac
3162 elif test "$with_gnu_ld" = yes; then
3163   echo "$as_me:$LINENO: checking for GNU ld" >&5
3164 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
3165 else
3166   echo "$as_me:$LINENO: checking for non-GNU ld" >&5
3167 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
3168 fi
3169 if test "${lt_cv_path_LD+set}" = set; then
3170   echo $ECHO_N "(cached) $ECHO_C" >&6
3171 else
3172   if test -z "$LD"; then
3173   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3174   for ac_dir in $PATH; do
3175     test -z "$ac_dir" && ac_dir=.
3176     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3177       lt_cv_path_LD="$ac_dir/$ac_prog"
3178       # Check to see if the program is GNU ld.  I'd rather use --version,
3179       # but apparently some GNU ld's only accept -v.
3180       # Break only if it was the GNU/non-GNU ld that we prefer.
3181       if "$lt_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
3182         test "$with_gnu_ld" != no && break
3183       else
3184         test "$with_gnu_ld" != yes && break
3185       fi
3186     fi
3187   done
3188   IFS="$ac_save_ifs"
3189 else
3190   lt_cv_path_LD="$LD" # Let the user override the test with a path.
3191 fi
3192 fi
3193
3194 LD="$lt_cv_path_LD"
3195 if test -n "$LD"; then
3196   echo "$as_me:$LINENO: result: $LD" >&5
3197 echo "${ECHO_T}$LD" >&6
3198 else
3199   echo "$as_me:$LINENO: result: no" >&5
3200 echo "${ECHO_T}no" >&6
3201 fi
3202 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
3203 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
3204    { (exit 1); exit 1; }; }
3205 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
3206 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
3207 if test "${lt_cv_prog_gnu_ld+set}" = set; then
3208   echo $ECHO_N "(cached) $ECHO_C" >&6
3209 else
3210   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
3211 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
3212   lt_cv_prog_gnu_ld=yes
3213 else
3214   lt_cv_prog_gnu_ld=no
3215 fi
3216 fi
3217 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
3218 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
3219 with_gnu_ld=$lt_cv_prog_gnu_ld
3220
3221
3222 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
3223 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
3224 if test "${lt_cv_ld_reload_flag+set}" = set; then
3225   echo $ECHO_N "(cached) $ECHO_C" >&6
3226 else
3227   lt_cv_ld_reload_flag='-r'
3228 fi
3229 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
3230 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
3231 reload_flag=$lt_cv_ld_reload_flag
3232 test -n "$reload_flag" && reload_flag=" $reload_flag"
3233
3234 echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
3235 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
3236 if test "${lt_cv_path_NM+set}" = set; then
3237   echo $ECHO_N "(cached) $ECHO_C" >&6
3238 else
3239   if test -n "$NM"; then
3240   # Let the user override the test.
3241   lt_cv_path_NM="$NM"
3242 else
3243   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3244   for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
3245     test -z "$ac_dir" && ac_dir=.
3246     tmp_nm=$ac_dir/${ac_tool_prefix}nm
3247     if test -f $tmp_nm || test -f $tmp_nm$ac_exeext ; then
3248       # Check to see if the nm accepts a BSD-compat flag.
3249       # Adding the `sed 1q' prevents false positives on HP-UX, which says:
3250       #   nm: unknown option "B" ignored
3251       # Tru64's nm complains that /dev/null is an invalid object file
3252       if ($tmp_nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep '(/dev/null|Invalid file or object type)' >/dev/null; then
3253         lt_cv_path_NM="$tmp_nm -B"
3254         break
3255       elif ($tmp_nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
3256         lt_cv_path_NM="$tmp_nm -p"
3257         break
3258       else
3259         lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
3260         continue # so that we can try to find one that supports BSD flags
3261       fi
3262     fi
3263   done
3264   IFS="$ac_save_ifs"
3265   test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
3266 fi
3267 fi
3268
3269 NM="$lt_cv_path_NM"
3270 echo "$as_me:$LINENO: result: $NM" >&5
3271 echo "${ECHO_T}$NM" >&6
3272
3273 echo "$as_me:$LINENO: checking whether ln -s works" >&5
3274 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3275 LN_S=$as_ln_s
3276 if test "$LN_S" = "ln -s"; then
3277   echo "$as_me:$LINENO: result: yes" >&5
3278 echo "${ECHO_T}yes" >&6
3279 else
3280   echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3281 echo "${ECHO_T}no, using $LN_S" >&6
3282 fi
3283
3284 echo "$as_me:$LINENO: checking how to recognise dependant libraries" >&5
3285 echo $ECHO_N "checking how to recognise dependant libraries... $ECHO_C" >&6
3286 if test "${lt_cv_deplibs_check_method+set}" = set; then
3287   echo $ECHO_N "(cached) $ECHO_C" >&6
3288 else
3289   lt_cv_file_magic_cmd='$MAGIC_CMD'
3290 lt_cv_file_magic_test_file=
3291 lt_cv_deplibs_check_method='unknown'
3292 # Need to set the preceding variable on all platforms that support
3293 # interlibrary dependencies.
3294 # 'none' -- dependencies not supported.
3295 # `unknown' -- same as none, but documents that we really don't know.
3296 # 'pass_all' -- all dependencies passed with no checks.
3297 # 'test_compile' -- check by making test program.
3298 # 'file_magic [[regex]]' -- check by looking for files in library path
3299 # which responds to the $file_magic_cmd with a given egrep regex.
3300 # If you have `file' or equivalent on your system and you're not sure
3301 # whether `pass_all' will *always* work, you probably want this one.
3302
3303 case $host_os in
3304 aix4* | aix5*)
3305   lt_cv_deplibs_check_method=pass_all
3306   ;;
3307
3308 beos*)
3309   lt_cv_deplibs_check_method=pass_all
3310   ;;
3311
3312 bsdi4*)
3313   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
3314   lt_cv_file_magic_cmd='/usr/bin/file -L'
3315   lt_cv_file_magic_test_file=/shlib/libc.so
3316   ;;
3317
3318 cygwin* | mingw* | pw32*)
3319   lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
3320   lt_cv_file_magic_cmd='$OBJDUMP -f'
3321   ;;
3322
3323 darwin* | rhapsody*)
3324   lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
3325   lt_cv_file_magic_cmd='/usr/bin/file -L'
3326   case "$host_os" in
3327   rhapsody* | darwin1.[012])
3328     lt_cv_file_magic_test_file=`echo /System/Library/Frameworks/System.framework/Versions/*/System | head -1`
3329     ;;
3330   *) # Darwin 1.3 on
3331     lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
3332     ;;
3333   esac
3334   ;;
3335
3336 freebsd*)
3337   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3338     case $host_cpu in
3339     i*86 )
3340       # Not sure whether the presence of OpenBSD here was a mistake.
3341       # Let's accept both of them until this is cleared up.
3342       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
3343       lt_cv_file_magic_cmd=/usr/bin/file
3344       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3345       ;;
3346     esac
3347   else
3348     lt_cv_deplibs_check_method=pass_all
3349   fi
3350   ;;
3351
3352 gnu*)
3353   lt_cv_deplibs_check_method=pass_all
3354   ;;
3355
3356 hpux10.20*|hpux11*)
3357   lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
3358   lt_cv_file_magic_cmd=/usr/bin/file
3359   lt_cv_file_magic_test_file=/usr/lib/libc.sl
3360   ;;
3361
3362 irix5* | irix6*)
3363   case $host_os in
3364   irix5*)
3365     # this will be overridden with pass_all, but let us keep it just in case
3366     lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
3367     ;;
3368   *)
3369     case $LD in
3370     *-32|*"-32 ") libmagic=32-bit;;
3371     *-n32|*"-n32 ") libmagic=N32;;
3372     *-64|*"-64 ") libmagic=64-bit;;
3373     *) libmagic=never-match;;
3374     esac
3375     # this will be overridden with pass_all, but let us keep it just in case
3376     lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
3377     ;;
3378   esac
3379   lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
3380   lt_cv_deplibs_check_method=pass_all
3381   ;;
3382
3383 # This must be Linux ELF.
3384 linux-gnu*)
3385   case $host_cpu in
3386   alpha* | hppa* | i*86 | powerpc* | sparc* | ia64* | s390* )
3387     lt_cv_deplibs_check_method=pass_all ;;
3388   *)
3389     # glibc up to 2.1.1 does not perform some relocations on ARM
3390     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
3391   esac
3392   lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
3393   ;;
3394
3395 netbsd*)
3396   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3397     lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$'
3398   else
3399     lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so$'
3400   fi
3401   ;;
3402
3403 newos6*)
3404   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
3405   lt_cv_file_magic_cmd=/usr/bin/file
3406   lt_cv_file_magic_test_file=/usr/lib/libnls.so
3407   ;;
3408
3409 openbsd*)
3410   lt_cv_file_magic_cmd=/usr/bin/file
3411   lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3412   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
3413     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB shared object'
3414   else
3415     lt_cv_deplibs_check_method='file_magic OpenBSD.* shared library'
3416   fi
3417   ;;
3418
3419 osf3* | osf4* | osf5*)
3420   # this will be overridden with pass_all, but let us keep it just in case
3421   lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
3422   lt_cv_file_magic_test_file=/shlib/libc.so
3423   lt_cv_deplibs_check_method=pass_all
3424   ;;
3425
3426 sco3.2v5*)
3427   lt_cv_deplibs_check_method=pass_all
3428   ;;
3429
3430 solaris*)
3431   lt_cv_deplibs_check_method=pass_all
3432   lt_cv_file_magic_test_file=/lib/libc.so
3433   ;;
3434
3435 sysv5uw[78]* | sysv4*uw2*)
3436   lt_cv_deplibs_check_method=pass_all
3437   ;;
3438
3439 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
3440   case $host_vendor in
3441   motorola)
3442     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]'
3443     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
3444     ;;
3445   ncr)
3446     lt_cv_deplibs_check_method=pass_all
3447     ;;
3448   sequent)
3449     lt_cv_file_magic_cmd='/bin/file'
3450     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
3451     ;;
3452   sni)
3453     lt_cv_file_magic_cmd='/bin/file'
3454     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
3455     lt_cv_file_magic_test_file=/lib/libc.so
3456     ;;
3457   esac
3458   ;;
3459 esac
3460
3461 fi
3462 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
3463 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
3464 file_magic_cmd=$lt_cv_file_magic_cmd
3465 deplibs_check_method=$lt_cv_deplibs_check_method
3466
3467
3468
3469
3470
3471
3472
3473 # Check for command to grab the raw symbol name followed by C symbol from nm.
3474 echo "$as_me:$LINENO: checking command to parse $NM output" >&5
3475 echo $ECHO_N "checking command to parse $NM output... $ECHO_C" >&6
3476 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
3477   echo $ECHO_N "(cached) $ECHO_C" >&6
3478 else
3479
3480 # These are sane defaults that work on at least a few old systems.
3481 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
3482
3483 # Character class describing NM global symbol codes.
3484 symcode='[BCDEGRST]'
3485
3486 # Regexp to match symbols that can be accessed directly from C.
3487 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
3488
3489 # Transform the above into a raw symbol and a C symbol.
3490 symxfrm='\1 \2\3 \3'
3491
3492 # Transform an extracted symbol line into a proper C declaration
3493 lt_cv_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern char \1;/p'"
3494
3495 # Transform an extracted symbol line into symbol name and symbol address
3496 lt_cv_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode \([^ ]*\) \([^ ]*\)$/  {\"\2\", (lt_ptr) \&\2},/p'"
3497
3498 # Define system-specific variables.
3499 case $host_os in
3500 aix*)
3501   symcode='[BCDT]'
3502   ;;
3503 cygwin* | mingw* | pw32*)
3504   symcode='[ABCDGISTW]'
3505   ;;
3506 hpux*) # Its linker distinguishes data from code symbols
3507   lt_cv_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern char \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
3508   lt_cv_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (lt_ptr) \&\2},/p'"
3509   ;;
3510 irix*)
3511   symcode='[BCDEGRST]'
3512   ;;
3513 solaris* | sysv5*)
3514   symcode='[BDT]'
3515   ;;
3516 sysv4)
3517   symcode='[DFNSTU]'
3518   ;;
3519 esac
3520
3521 # Handle CRLF in mingw tool chain
3522 opt_cr=
3523 case $host_os in
3524 mingw*)
3525   opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
3526   ;;
3527 esac
3528
3529 # If we're using GNU nm, then use its standard symbol codes.
3530 if $NM -V 2>&1 | egrep '(GNU|with BFD)' > /dev/null; then
3531   symcode='[ABCDGISTW]'
3532 fi
3533
3534 # Try without a prefix undercore, then with it.
3535 for ac_symprfx in "" "_"; do
3536
3537   # Write the raw and C identifiers.
3538 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[         ]\($symcode$symcode*\)[         ][      ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
3539
3540   # Check to see that the pipe works correctly.
3541   pipe_works=no
3542   rm -f conftest*
3543   cat > conftest.$ac_ext <<EOF
3544 #ifdef __cplusplus
3545 extern "C" {
3546 #endif
3547 char nm_test_var;
3548 void nm_test_func(){}
3549 #ifdef __cplusplus
3550 }
3551 #endif
3552 int main(){nm_test_var='a';nm_test_func();return(0);}
3553 EOF
3554
3555   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3556   (eval $ac_compile) 2>&5
3557   ac_status=$?
3558   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3559   (exit $ac_status); }; then
3560     # Now try to grab the symbols.
3561     nlist=conftest.nm
3562     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
3563   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
3564   ac_status=$?
3565   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3566   (exit $ac_status); } && test -s "$nlist"; then
3567       # Try sorting and uniquifying the output.
3568       if sort "$nlist" | uniq > "$nlist"T; then
3569         mv -f "$nlist"T "$nlist"
3570       else
3571         rm -f "$nlist"T
3572       fi
3573
3574       # Make sure that we snagged all the symbols we need.
3575       if egrep ' nm_test_var$' "$nlist" >/dev/null; then
3576         if egrep ' nm_test_func$' "$nlist" >/dev/null; then
3577           cat <<EOF > conftest.$ac_ext
3578 #ifdef __cplusplus
3579 extern "C" {
3580 #endif
3581
3582 EOF
3583           # Now generate the symbol file.
3584           eval "$lt_cv_global_symbol_to_cdecl"' < "$nlist" >> conftest.$ac_ext'
3585
3586           cat <<EOF >> conftest.$ac_ext
3587 #if defined (__STDC__) && __STDC__
3588 # define lt_ptr void *
3589 #else
3590 # define lt_ptr char *
3591 # define const
3592 #endif
3593
3594 /* The mapping between symbol names and symbols. */
3595 const struct {
3596   const char *name;
3597   lt_ptr address;
3598 }
3599 lt_preloaded_symbols[] =
3600 {
3601 EOF
3602           sed "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr) \&\2},/" < "$nlist" >> conftest.$ac_ext
3603           cat <<\EOF >> conftest.$ac_ext
3604   {0, (lt_ptr) 0}
3605 };
3606
3607 #ifdef __cplusplus
3608 }
3609 #endif
3610 EOF
3611           # Now try linking the two files.
3612           mv conftest.$ac_objext conftstm.$ac_objext
3613           save_LIBS="$LIBS"
3614           save_CFLAGS="$CFLAGS"
3615           LIBS="conftstm.$ac_objext"
3616           CFLAGS="$CFLAGS$no_builtin_flag"
3617           if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3618   (eval $ac_link) 2>&5
3619   ac_status=$?
3620   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3621   (exit $ac_status); } && test -s conftest; then
3622             pipe_works=yes
3623           fi
3624           LIBS="$save_LIBS"
3625           CFLAGS="$save_CFLAGS"
3626         else
3627           echo "cannot find nm_test_func in $nlist" >&5
3628         fi
3629       else
3630         echo "cannot find nm_test_var in $nlist" >&5
3631       fi
3632     else
3633       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
3634     fi
3635   else
3636     echo "$progname: failed program was:" >&5
3637     cat conftest.$ac_ext >&5
3638   fi
3639   rm -f conftest* conftst*
3640
3641   # Do not use the global_symbol_pipe unless it works.
3642   if test "$pipe_works" = yes; then
3643     break
3644   else
3645     lt_cv_sys_global_symbol_pipe=
3646   fi
3647 done
3648
3649 fi
3650
3651 global_symbol_pipe="$lt_cv_sys_global_symbol_pipe"
3652 if test -z "$lt_cv_sys_global_symbol_pipe"; then
3653   global_symbol_to_cdecl=
3654   global_symbol_to_c_name_address=
3655 else
3656   global_symbol_to_cdecl="$lt_cv_global_symbol_to_cdecl"
3657   global_symbol_to_c_name_address="$lt_cv_global_symbol_to_c_name_address"
3658 fi
3659 if test -z "$global_symbol_pipe$global_symbol_to_cdec$global_symbol_to_c_name_address";
3660 then
3661   echo "$as_me:$LINENO: result: failed" >&5
3662 echo "${ECHO_T}failed" >&6
3663 else
3664   echo "$as_me:$LINENO: result: ok" >&5
3665 echo "${ECHO_T}ok" >&6
3666 fi
3667
3668
3669 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3670 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
3671 if test "${ac_cv_header_stdc+set}" = set; then
3672   echo $ECHO_N "(cached) $ECHO_C" >&6
3673 else
3674   cat >conftest.$ac_ext <<_ACEOF
3675 #line $LINENO "configure"
3676 #include "confdefs.h"
3677 #include <stdlib.h>
3678 #include <stdarg.h>
3679 #include <string.h>
3680 #include <float.h>
3681
3682 _ACEOF
3683 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3684   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3685   ac_status=$?
3686   egrep -v '^ *\+' conftest.er1 >conftest.err
3687   rm -f conftest.er1
3688   cat conftest.err >&5
3689   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3690   (exit $ac_status); } >/dev/null; then
3691   if test -s conftest.err; then
3692     ac_cpp_err=$ac_c_preproc_warn_flag
3693   else
3694     ac_cpp_err=
3695   fi
3696 else
3697   ac_cpp_err=yes
3698 fi
3699 if test -z "$ac_cpp_err"; then
3700   ac_cv_header_stdc=yes
3701 else
3702   echo "$as_me: failed program was:" >&5
3703   cat conftest.$ac_ext >&5
3704   ac_cv_header_stdc=no
3705 fi
3706 rm -f conftest.err conftest.$ac_ext
3707
3708 if test $ac_cv_header_stdc = yes; then
3709   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3710   cat >conftest.$ac_ext <<_ACEOF
3711 #line $LINENO "configure"
3712 #include "confdefs.h"
3713 #include <string.h>
3714
3715 _ACEOF
3716 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3717   egrep "memchr" >/dev/null 2>&1; then
3718   :
3719 else
3720   ac_cv_header_stdc=no
3721 fi
3722 rm -f conftest*
3723
3724 fi
3725
3726 if test $ac_cv_header_stdc = yes; then
3727   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3728   cat >conftest.$ac_ext <<_ACEOF
3729 #line $LINENO "configure"
3730 #include "confdefs.h"
3731 #include <stdlib.h>
3732
3733 _ACEOF
3734 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3735   egrep "free" >/dev/null 2>&1; then
3736   :
3737 else
3738   ac_cv_header_stdc=no
3739 fi
3740 rm -f conftest*
3741
3742 fi
3743
3744 if test $ac_cv_header_stdc = yes; then
3745   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3746   if test "$cross_compiling" = yes; then
3747   :
3748 else
3749   cat >conftest.$ac_ext <<_ACEOF
3750 #line $LINENO "configure"
3751 #include "confdefs.h"
3752 #include <ctype.h>
3753 #if ((' ' & 0x0FF) == 0x020)
3754 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3755 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3756 #else
3757 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
3758                      || ('j' <= (c) && (c) <= 'r') \
3759                      || ('s' <= (c) && (c) <= 'z'))
3760 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3761 #endif
3762
3763 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3764 int
3765 main ()
3766 {
3767   int i;
3768   for (i = 0; i < 256; i++)
3769     if (XOR (islower (i), ISLOWER (i))
3770         || toupper (i) != TOUPPER (i))
3771       exit(2);
3772   exit (0);
3773 }
3774 _ACEOF
3775 rm -f conftest$ac_exeext
3776 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3777   (eval $ac_link) 2>&5
3778   ac_status=$?
3779   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3780   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3781   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3782   (eval $ac_try) 2>&5
3783   ac_status=$?
3784   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3785   (exit $ac_status); }; }; then
3786   :
3787 else
3788   echo "$as_me: program exited with status $ac_status" >&5
3789 echo "$as_me: failed program was:" >&5
3790 cat conftest.$ac_ext >&5
3791 ( exit $ac_status )
3792 ac_cv_header_stdc=no
3793 fi
3794 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3795 fi
3796 fi
3797 fi
3798 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3799 echo "${ECHO_T}$ac_cv_header_stdc" >&6
3800 if test $ac_cv_header_stdc = yes; then
3801
3802 cat >>confdefs.h <<\_ACEOF
3803 #define STDC_HEADERS 1
3804 _ACEOF
3805
3806 fi
3807
3808 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3809
3810
3811
3812
3813
3814
3815
3816
3817
3818 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3819                   inttypes.h stdint.h unistd.h
3820 do
3821 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3822 echo "$as_me:$LINENO: checking for $ac_header" >&5
3823 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3824 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3825   echo $ECHO_N "(cached) $ECHO_C" >&6
3826 else
3827   cat >conftest.$ac_ext <<_ACEOF
3828 #line $LINENO "configure"
3829 #include "confdefs.h"
3830 $ac_includes_default
3831
3832 #include <$ac_header>
3833 _ACEOF
3834 rm -f conftest.$ac_objext
3835 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3836   (eval $ac_compile) 2>&5
3837   ac_status=$?
3838   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3839   (exit $ac_status); } &&
3840          { ac_try='test -s conftest.$ac_objext'
3841   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3842   (eval $ac_try) 2>&5
3843   ac_status=$?
3844   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3845   (exit $ac_status); }; }; then
3846   eval "$as_ac_Header=yes"
3847 else
3848   echo "$as_me: failed program was:" >&5
3849 cat conftest.$ac_ext >&5
3850 eval "$as_ac_Header=no"
3851 fi
3852 rm -f conftest.$ac_objext conftest.$ac_ext
3853 fi
3854 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3855 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3856 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3857   cat >>confdefs.h <<_ACEOF
3858 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3859 _ACEOF
3860
3861 fi
3862
3863 done
3864
3865
3866
3867 for ac_header in dlfcn.h
3868 do
3869 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3870 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3871   echo "$as_me:$LINENO: checking for $ac_header" >&5
3872 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3873 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3874   echo $ECHO_N "(cached) $ECHO_C" >&6
3875 fi
3876 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3877 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3878 else
3879   # Is the header compilable?
3880 echo "$as_me:$LINENO: checking $ac_header usability" >&5
3881 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
3882 cat >conftest.$ac_ext <<_ACEOF
3883 #line $LINENO "configure"
3884 #include "confdefs.h"
3885 $ac_includes_default
3886 #include <$ac_header>
3887 _ACEOF
3888 rm -f conftest.$ac_objext
3889 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3890   (eval $ac_compile) 2>&5
3891   ac_status=$?
3892   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3893   (exit $ac_status); } &&
3894          { ac_try='test -s conftest.$ac_objext'
3895   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3896   (eval $ac_try) 2>&5
3897   ac_status=$?
3898   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3899   (exit $ac_status); }; }; then
3900   ac_header_compiler=yes
3901 else
3902   echo "$as_me: failed program was:" >&5
3903 cat conftest.$ac_ext >&5
3904 ac_header_compiler=no
3905 fi
3906 rm -f conftest.$ac_objext conftest.$ac_ext
3907 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3908 echo "${ECHO_T}$ac_header_compiler" >&6
3909
3910 # Is the header present?
3911 echo "$as_me:$LINENO: checking $ac_header presence" >&5
3912 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
3913 cat >conftest.$ac_ext <<_ACEOF
3914 #line $LINENO "configure"
3915 #include "confdefs.h"
3916 #include <$ac_header>
3917 _ACEOF
3918 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3919   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3920   ac_status=$?
3921   egrep -v '^ *\+' conftest.er1 >conftest.err
3922   rm -f conftest.er1
3923   cat conftest.err >&5
3924   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3925   (exit $ac_status); } >/dev/null; then
3926   if test -s conftest.err; then
3927     ac_cpp_err=$ac_c_preproc_warn_flag
3928   else
3929     ac_cpp_err=
3930   fi
3931 else
3932   ac_cpp_err=yes
3933 fi
3934 if test -z "$ac_cpp_err"; then
3935   ac_header_preproc=yes
3936 else
3937   echo "$as_me: failed program was:" >&5
3938   cat conftest.$ac_ext >&5
3939   ac_header_preproc=no
3940 fi
3941 rm -f conftest.err conftest.$ac_ext
3942 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3943 echo "${ECHO_T}$ac_header_preproc" >&6
3944
3945 # So?  What about this header?
3946 case $ac_header_compiler:$ac_header_preproc in
3947   yes:no )
3948     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
3949 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
3950     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3951 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
3952   no:yes )
3953     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
3954 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
3955     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
3956 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
3957     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3958 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
3959 esac
3960 echo "$as_me:$LINENO: checking for $ac_header" >&5
3961 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3962 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3963   echo $ECHO_N "(cached) $ECHO_C" >&6
3964 else
3965   eval "$as_ac_Header=$ac_header_preproc"
3966 fi
3967 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3968 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3969
3970 fi
3971 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3972   cat >>confdefs.h <<_ACEOF
3973 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3974 _ACEOF
3975
3976 fi
3977
3978 done
3979
3980
3981
3982
3983
3984 # Only perform the check for file, if the check method requires it
3985 case $deplibs_check_method in
3986 file_magic*)
3987   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
3988     echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
3989 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
3990 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
3991   echo $ECHO_N "(cached) $ECHO_C" >&6
3992 else
3993   case $MAGIC_CMD in
3994   /*)
3995   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
3996   ;;
3997   ?:/*)
3998   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
3999   ;;
4000   *)
4001   ac_save_MAGIC_CMD="$MAGIC_CMD"
4002   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
4003   ac_dummy="/usr/bin:$PATH"
4004   for ac_dir in $ac_dummy; do
4005     test -z "$ac_dir" && ac_dir=.
4006     if test -f $ac_dir/${ac_tool_prefix}file; then
4007       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
4008       if test -n "$file_magic_test_file"; then
4009         case $deplibs_check_method in
4010         "file_magic "*)
4011           file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
4012           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
4013           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
4014             egrep "$file_magic_regex" > /dev/null; then
4015             :
4016           else
4017             cat <<EOF 1>&2
4018
4019 *** Warning: the command libtool uses to detect shared libraries,
4020 *** $file_magic_cmd, produces output that libtool cannot recognize.
4021 *** The result is that libtool may fail to recognize shared libraries
4022 *** as such.  This will affect the creation of libtool libraries that
4023 *** depend on shared libraries, but programs linked with such libtool
4024 *** libraries will work regardless of this problem.  Nevertheless, you
4025 *** may want to report the problem to your system manager and/or to
4026 *** bug-libtool@gnu.org
4027
4028 EOF
4029           fi ;;
4030         esac
4031       fi
4032       break
4033     fi
4034   done
4035   IFS="$ac_save_ifs"
4036   MAGIC_CMD="$ac_save_MAGIC_CMD"
4037   ;;
4038 esac
4039 fi
4040
4041 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
4042 if test -n "$MAGIC_CMD"; then
4043   echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
4044 echo "${ECHO_T}$MAGIC_CMD" >&6
4045 else
4046   echo "$as_me:$LINENO: result: no" >&5
4047 echo "${ECHO_T}no" >&6
4048 fi
4049
4050 if test -z "$lt_cv_path_MAGIC_CMD"; then
4051   if test -n "$ac_tool_prefix"; then
4052     echo "$as_me:$LINENO: checking for file" >&5
4053 echo $ECHO_N "checking for file... $ECHO_C" >&6
4054 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
4055   echo $ECHO_N "(cached) $ECHO_C" >&6
4056 else
4057   case $MAGIC_CMD in
4058   /*)
4059   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
4060   ;;
4061   ?:/*)
4062   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
4063   ;;
4064   *)
4065   ac_save_MAGIC_CMD="$MAGIC_CMD"
4066   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
4067   ac_dummy="/usr/bin:$PATH"
4068   for ac_dir in $ac_dummy; do
4069     test -z "$ac_dir" && ac_dir=.
4070     if test -f $ac_dir/file; then
4071       lt_cv_path_MAGIC_CMD="$ac_dir/file"
4072       if test -n "$file_magic_test_file"; then
4073         case $deplibs_check_method in
4074         "file_magic "*)
4075           file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
4076           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
4077           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
4078             egrep "$file_magic_regex" > /dev/null; then
4079             :
4080           else
4081             cat <<EOF 1>&2
4082
4083 *** Warning: the command libtool uses to detect shared libraries,
4084 *** $file_magic_cmd, produces output that libtool cannot recognize.
4085 *** The result is that libtool may fail to recognize shared libraries
4086 *** as such.  This will affect the creation of libtool libraries that
4087 *** depend on shared libraries, but programs linked with such libtool
4088 *** libraries will work regardless of this problem.  Nevertheless, you
4089 *** may want to report the problem to your system manager and/or to
4090 *** bug-libtool@gnu.org
4091
4092 EOF
4093           fi ;;
4094         esac
4095       fi
4096       break
4097     fi
4098   done
4099   IFS="$ac_save_ifs"
4100   MAGIC_CMD="$ac_save_MAGIC_CMD"
4101   ;;
4102 esac
4103 fi
4104
4105 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
4106 if test -n "$MAGIC_CMD"; then
4107   echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
4108 echo "${ECHO_T}$MAGIC_CMD" >&6
4109 else
4110   echo "$as_me:$LINENO: result: no" >&5
4111 echo "${ECHO_T}no" >&6
4112 fi
4113
4114   else
4115     MAGIC_CMD=:
4116   fi
4117 fi
4118
4119   fi
4120   ;;
4121 esac
4122
4123 if test -n "$ac_tool_prefix"; then
4124   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4125 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4126 echo "$as_me:$LINENO: checking for $ac_word" >&5
4127 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4128 if test "${ac_cv_prog_RANLIB+set}" = set; then
4129   echo $ECHO_N "(cached) $ECHO_C" >&6
4130 else
4131   if test -n "$RANLIB"; then
4132   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4133 else
4134 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4135 for as_dir in $PATH
4136 do
4137   IFS=$as_save_IFS
4138   test -z "$as_dir" && as_dir=.
4139   for ac_exec_ext in '' $ac_executable_extensions; do
4140   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4141     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4142     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4143     break 2
4144   fi
4145 done
4146 done
4147
4148 fi
4149 fi
4150 RANLIB=$ac_cv_prog_RANLIB
4151 if test -n "$RANLIB"; then
4152   echo "$as_me:$LINENO: result: $RANLIB" >&5
4153 echo "${ECHO_T}$RANLIB" >&6
4154 else
4155   echo "$as_me:$LINENO: result: no" >&5
4156 echo "${ECHO_T}no" >&6
4157 fi
4158
4159 fi
4160 if test -z "$ac_cv_prog_RANLIB"; then
4161   ac_ct_RANLIB=$RANLIB
4162   # Extract the first word of "ranlib", so it can be a program name with args.
4163 set dummy ranlib; ac_word=$2
4164 echo "$as_me:$LINENO: checking for $ac_word" >&5
4165 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4166 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4167   echo $ECHO_N "(cached) $ECHO_C" >&6
4168 else
4169   if test -n "$ac_ct_RANLIB"; then
4170   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4171 else
4172 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4173 for as_dir in $PATH
4174 do
4175   IFS=$as_save_IFS
4176   test -z "$as_dir" && as_dir=.
4177   for ac_exec_ext in '' $ac_executable_extensions; do
4178   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4179     ac_cv_prog_ac_ct_RANLIB="ranlib"
4180     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4181     break 2
4182   fi
4183 done
4184 done
4185
4186   test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
4187 fi
4188 fi
4189 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4190 if test -n "$ac_ct_RANLIB"; then
4191   echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4192 echo "${ECHO_T}$ac_ct_RANLIB" >&6
4193 else
4194   echo "$as_me:$LINENO: result: no" >&5
4195 echo "${ECHO_T}no" >&6
4196 fi
4197
4198   RANLIB=$ac_ct_RANLIB
4199 else
4200   RANLIB="$ac_cv_prog_RANLIB"
4201 fi
4202
4203 if test -n "$ac_tool_prefix"; then
4204   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4205 set dummy ${ac_tool_prefix}strip; ac_word=$2
4206 echo "$as_me:$LINENO: checking for $ac_word" >&5
4207 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4208 if test "${ac_cv_prog_STRIP+set}" = set; then
4209   echo $ECHO_N "(cached) $ECHO_C" >&6
4210 else
4211   if test -n "$STRIP"; then
4212   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4213 else
4214 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4215 for as_dir in $PATH
4216 do
4217   IFS=$as_save_IFS
4218   test -z "$as_dir" && as_dir=.
4219   for ac_exec_ext in '' $ac_executable_extensions; do
4220   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4221     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
4222     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4223     break 2
4224   fi
4225 done
4226 done
4227
4228 fi
4229 fi
4230 STRIP=$ac_cv_prog_STRIP
4231 if test -n "$STRIP"; then
4232   echo "$as_me:$LINENO: result: $STRIP" >&5
4233 echo "${ECHO_T}$STRIP" >&6
4234 else
4235   echo "$as_me:$LINENO: result: no" >&5
4236 echo "${ECHO_T}no" >&6
4237 fi
4238
4239 fi
4240 if test -z "$ac_cv_prog_STRIP"; then
4241   ac_ct_STRIP=$STRIP
4242   # Extract the first word of "strip", so it can be a program name with args.
4243 set dummy strip; ac_word=$2
4244 echo "$as_me:$LINENO: checking for $ac_word" >&5
4245 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4246 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
4247   echo $ECHO_N "(cached) $ECHO_C" >&6
4248 else
4249   if test -n "$ac_ct_STRIP"; then
4250   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
4251 else
4252 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4253 for as_dir in $PATH
4254 do
4255   IFS=$as_save_IFS
4256   test -z "$as_dir" && as_dir=.
4257   for ac_exec_ext in '' $ac_executable_extensions; do
4258   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4259     ac_cv_prog_ac_ct_STRIP="strip"
4260     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4261     break 2
4262   fi
4263 done
4264 done
4265
4266   test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
4267 fi
4268 fi
4269 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4270 if test -n "$ac_ct_STRIP"; then
4271   echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
4272 echo "${ECHO_T}$ac_ct_STRIP" >&6
4273 else
4274   echo "$as_me:$LINENO: result: no" >&5
4275 echo "${ECHO_T}no" >&6
4276 fi
4277
4278   STRIP=$ac_ct_STRIP
4279 else
4280   STRIP="$ac_cv_prog_STRIP"
4281 fi
4282
4283
4284 enable_dlopen=no
4285 enable_win32_dll=no
4286
4287 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
4288 if test "${enable_libtool_lock+set}" = set; then
4289   enableval="$enable_libtool_lock"
4290
4291 fi;
4292 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
4293
4294 # Some flags need to be propagated to the compiler or linker for good
4295 # libtool support.
4296 case $host in
4297 *-*-irix6*)
4298   # Find out which ABI we are using.
4299   echo '#line 4299 "configure"' > conftest.$ac_ext
4300   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4301   (eval $ac_compile) 2>&5
4302   ac_status=$?
4303   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4304   (exit $ac_status); }; then
4305     case `/usr/bin/file conftest.$ac_objext` in
4306     *32-bit*)
4307       LD="${LD-ld} -32"
4308       ;;
4309     *N32*)
4310       LD="${LD-ld} -n32"
4311       ;;
4312     *64-bit*)
4313       LD="${LD-ld} -64"
4314       ;;
4315     esac
4316   fi
4317   rm -rf conftest*
4318   ;;
4319
4320 *-*-sco3.2v5*)
4321   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4322   SAVE_CFLAGS="$CFLAGS"
4323   CFLAGS="$CFLAGS -belf"
4324   echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
4325 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
4326 if test "${lt_cv_cc_needs_belf+set}" = set; then
4327   echo $ECHO_N "(cached) $ECHO_C" >&6
4328 else
4329
4330
4331      ac_ext=c
4332 ac_cpp='$CPP $CPPFLAGS'
4333 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4334 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4335 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4336
4337      cat >conftest.$ac_ext <<_ACEOF
4338 #line $LINENO "configure"
4339 #include "confdefs.h"
4340
4341 #ifdef F77_DUMMY_MAIN
4342 #  ifdef __cplusplus
4343      extern "C"
4344 #  endif
4345    int F77_DUMMY_MAIN() { return 1; }
4346 #endif
4347 int
4348 main ()
4349 {
4350
4351   ;
4352   return 0;
4353 }
4354 _ACEOF
4355 rm -f conftest.$ac_objext conftest$ac_exeext
4356 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4357   (eval $ac_link) 2>&5
4358   ac_status=$?
4359   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4360   (exit $ac_status); } &&
4361          { ac_try='test -s conftest$ac_exeext'
4362   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4363   (eval $ac_try) 2>&5
4364   ac_status=$?
4365   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4366   (exit $ac_status); }; }; then
4367   lt_cv_cc_needs_belf=yes
4368 else
4369   echo "$as_me: failed program was:" >&5
4370 cat conftest.$ac_ext >&5
4371 lt_cv_cc_needs_belf=no
4372 fi
4373 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4374      ac_ext=c
4375 ac_cpp='$CPP $CPPFLAGS'
4376 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4377 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4378 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4379
4380 fi
4381 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
4382 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
4383   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4384     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4385     CFLAGS="$SAVE_CFLAGS"
4386   fi
4387   ;;
4388
4389
4390 esac
4391
4392 # Sed substitution that helps us do robust quoting.  It backslashifies
4393 # metacharacters that are still active within double-quoted strings.
4394 Xsed='sed -e s/^X//'
4395 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
4396
4397 # Same as above, but do not quote variable references.
4398 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
4399
4400 # Sed substitution to delay expansion of an escaped shell variable in a
4401 # double_quote_subst'ed string.
4402 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4403
4404 # Constants:
4405 rm="rm -f"
4406
4407 # Global variables:
4408 default_ofile=libtool
4409 can_build_shared=yes
4410
4411 # All known linkers require a `.a' archive for static linking (except M$VC,
4412 # which needs '.lib').
4413 libext=a
4414 ltmain="$ac_aux_dir/ltmain.sh"
4415 ofile="$default_ofile"
4416 with_gnu_ld="$lt_cv_prog_gnu_ld"
4417 need_locks="$enable_libtool_lock"
4418
4419 old_CC="$CC"
4420 old_CFLAGS="$CFLAGS"
4421
4422 # Set sane defaults for various variables
4423 test -z "$AR" && AR=ar
4424 test -z "$AR_FLAGS" && AR_FLAGS=cru
4425 test -z "$AS" && AS=as
4426 test -z "$CC" && CC=cc
4427 test -z "$DLLTOOL" && DLLTOOL=dlltool
4428 test -z "$LD" && LD=ld
4429 test -z "$LN_S" && LN_S="ln -s"
4430 test -z "$MAGIC_CMD" && MAGIC_CMD=file
4431 test -z "$NM" && NM=nm
4432 test -z "$OBJDUMP" && OBJDUMP=objdump
4433 test -z "$RANLIB" && RANLIB=:
4434 test -z "$STRIP" && STRIP=:
4435 test -z "$ac_objext" && ac_objext=o
4436
4437 if test x"$host" != x"$build"; then
4438   ac_tool_prefix=${host_alias}-
4439 else
4440   ac_tool_prefix=
4441 fi
4442
4443 # Transform linux* to *-*-linux-gnu*, to support old configure scripts.
4444 case $host_os in
4445 linux-gnu*) ;;
4446 linux*) host=`echo $host | sed 's/^\(.*-.*-linux\)\(.*\)$/\1-gnu\2/'`
4447 esac
4448
4449 case $host_os in
4450 aix3*)
4451   # AIX sometimes has problems with the GCC collect2 program.  For some
4452   # reason, if we set the COLLECT_NAMES environment variable, the problems
4453   # vanish in a puff of smoke.
4454   if test "X${COLLECT_NAMES+set}" != Xset; then
4455     COLLECT_NAMES=
4456     export COLLECT_NAMES
4457   fi
4458   ;;
4459 esac
4460
4461 # Determine commands to create old-style static archives.
4462 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
4463 old_postinstall_cmds='chmod 644 $oldlib'
4464 old_postuninstall_cmds=
4465
4466 if test -n "$RANLIB"; then
4467   case $host_os in
4468   openbsd*)
4469     old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
4470     ;;
4471   *)
4472     old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
4473     ;;
4474   esac
4475   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
4476 fi
4477
4478 # Allow CC to be a program name with arguments.
4479 set dummy $CC
4480 compiler="$2"
4481
4482 ## FIXME: this should be a separate macro
4483 ##
4484 echo "$as_me:$LINENO: checking for objdir" >&5
4485 echo $ECHO_N "checking for objdir... $ECHO_C" >&6
4486 rm -f .libs 2>/dev/null
4487 mkdir .libs 2>/dev/null
4488 if test -d .libs; then
4489   objdir=.libs
4490 else
4491   # MS-DOS does not allow filenames that begin with a dot.
4492   objdir=_libs
4493 fi
4494 rmdir .libs 2>/dev/null
4495 echo "$as_me:$LINENO: result: $objdir" >&5
4496 echo "${ECHO_T}$objdir" >&6
4497 ##
4498 ## END FIXME
4499
4500
4501 ## FIXME: this should be a separate macro
4502 ##
4503
4504 # Check whether --with-pic or --without-pic was given.
4505 if test "${with_pic+set}" = set; then
4506   withval="$with_pic"
4507   pic_mode="$withval"
4508 else
4509   pic_mode=default
4510 fi;
4511 test -z "$pic_mode" && pic_mode=default
4512
4513 # We assume here that the value for lt_cv_prog_cc_pic will not be cached
4514 # in isolation, and that seeing it set (from the cache) indicates that
4515 # the associated values are set (in the cache) correctly too.
4516 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
4517 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
4518 if test "${lt_cv_prog_cc_pic+set}" = set; then
4519   echo $ECHO_N "(cached) $ECHO_C" >&6
4520 else
4521    lt_cv_prog_cc_pic=
4522   lt_cv_prog_cc_shlib=
4523   lt_cv_prog_cc_wl=
4524   lt_cv_prog_cc_static=
4525   lt_cv_prog_cc_no_builtin=
4526   lt_cv_prog_cc_can_build_shared=$can_build_shared
4527
4528   if test "$GCC" = yes; then
4529     lt_cv_prog_cc_wl='-Wl,'
4530     lt_cv_prog_cc_static='-static'
4531
4532     case $host_os in
4533     aix*)
4534       # Below there is a dirty hack to force normal static linking with -ldl
4535       # The problem is because libdl dynamically linked with both libc and
4536       # libC (AIX C++ library), which obviously doesn't included in libraries
4537       # list by gcc. This cause undefined symbols with -static flags.
4538       # This hack allows C programs to be linked with "-static -ldl", but
4539       # not sure about C++ programs.
4540       lt_cv_prog_cc_static="$lt_cv_prog_cc_static ${lt_cv_prog_cc_wl}-lC"
4541       ;;
4542     amigaos*)
4543       # FIXME: we need at least 68020 code to build shared libraries, but
4544       # adding the `-m68020' flag to GCC prevents building anything better,
4545       # like `-m68040'.
4546       lt_cv_prog_cc_pic='-m68020 -resident32 -malways-restore-a4'
4547       ;;
4548     beos* | irix5* | irix6* | osf3* | osf4* | osf5*)
4549       # PIC is the default for these OSes.
4550       ;;
4551     darwin* | rhapsody*)
4552       # PIC is the default on this platform
4553       # Common symbols not allowed in MH_DYLIB files
4554       lt_cv_prog_cc_pic='-fno-common'
4555       ;;
4556     cygwin* | mingw* | pw32* | os2*)
4557       # This hack is so that the source file can tell whether it is being
4558       # built for inclusion in a dll (and should export symbols for example).
4559       lt_cv_prog_cc_pic='-DDLL_EXPORT'
4560       ;;
4561     sysv4*MP*)
4562       if test -d /usr/nec; then
4563          lt_cv_prog_cc_pic=-Kconform_pic
4564       fi
4565       ;;
4566     *)
4567       lt_cv_prog_cc_pic='-fPIC'
4568       ;;
4569     esac
4570   else
4571     # PORTME Check for PIC flags for the system compiler.
4572     case $host_os in
4573     aix3* | aix4* | aix5*)
4574       lt_cv_prog_cc_wl='-Wl,'
4575       # All AIX code is PIC.
4576       if test "$host_cpu" = ia64; then
4577         # AIX 5 now supports IA64 processor
4578         lt_cv_prog_cc_static='-Bstatic'
4579       else
4580         lt_cv_prog_cc_static='-bnso -bI:/lib/syscalls.exp'
4581       fi
4582       ;;
4583
4584     hpux9* | hpux10* | hpux11*)
4585       # Is there a better lt_cv_prog_cc_static that works with the bundled CC?
4586       lt_cv_prog_cc_wl='-Wl,'
4587       lt_cv_prog_cc_static="${lt_cv_prog_cc_wl}-a ${lt_cv_prog_cc_wl}archive"
4588       lt_cv_prog_cc_pic='+Z'
4589       ;;
4590
4591     irix5* | irix6*)
4592       lt_cv_prog_cc_wl='-Wl,'
4593       lt_cv_prog_cc_static='-non_shared'
4594       # PIC (with -KPIC) is the default.
4595       ;;
4596
4597     cygwin* | mingw* | pw32* | os2*)
4598       # This hack is so that the source file can tell whether it is being
4599       # built for inclusion in a dll (and should export symbols for example).
4600       lt_cv_prog_cc_pic='-DDLL_EXPORT'
4601       ;;
4602
4603     newsos6)
4604       lt_cv_prog_cc_pic='-KPIC'
4605       lt_cv_prog_cc_static='-Bstatic'
4606       ;;
4607
4608     osf3* | osf4* | osf5*)
4609       # All OSF/1 code is PIC.
4610       lt_cv_prog_cc_wl='-Wl,'
4611       lt_cv_prog_cc_static='-non_shared'
4612       ;;
4613
4614     sco3.2v5*)
4615       lt_cv_prog_cc_pic='-Kpic'
4616       lt_cv_prog_cc_static='-dn'
4617       lt_cv_prog_cc_shlib='-belf'
4618       ;;
4619
4620     solaris*)
4621       lt_cv_prog_cc_pic='-KPIC'
4622       lt_cv_prog_cc_static='-Bstatic'
4623       lt_cv_prog_cc_wl='-Wl,'
4624       ;;
4625
4626     sunos4*)
4627       lt_cv_prog_cc_pic='-PIC'
4628       lt_cv_prog_cc_static='-Bstatic'
4629       lt_cv_prog_cc_wl='-Qoption ld '
4630       ;;
4631
4632     sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
4633       lt_cv_prog_cc_pic='-KPIC'
4634       lt_cv_prog_cc_static='-Bstatic'
4635       if test "x$host_vendor" = xsni; then
4636         lt_cv_prog_cc_wl='-LD'
4637       else
4638         lt_cv_prog_cc_wl='-Wl,'
4639       fi
4640       ;;
4641
4642     uts4*)
4643       lt_cv_prog_cc_pic='-pic'
4644       lt_cv_prog_cc_static='-Bstatic'
4645       ;;
4646
4647     sysv4*MP*)
4648       if test -d /usr/nec ;then
4649         lt_cv_prog_cc_pic='-Kconform_pic'
4650         lt_cv_prog_cc_static='-Bstatic'
4651       fi
4652       ;;
4653
4654     *)
4655       lt_cv_prog_cc_can_build_shared=no
4656       ;;
4657     esac
4658   fi
4659
4660 fi
4661
4662 if test -z "$lt_cv_prog_cc_pic"; then
4663   echo "$as_me:$LINENO: result: none" >&5
4664 echo "${ECHO_T}none" >&6
4665 else
4666   echo "$as_me:$LINENO: result: $lt_cv_prog_cc_pic" >&5
4667 echo "${ECHO_T}$lt_cv_prog_cc_pic" >&6
4668
4669   # Check to make sure the pic_flag actually works.
4670   echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_cv_prog_cc_pic works" >&5
4671 echo $ECHO_N "checking if $compiler PIC flag $lt_cv_prog_cc_pic works... $ECHO_C" >&6
4672   if test "${lt_cv_prog_cc_pic_works+set}" = set; then
4673   echo $ECHO_N "(cached) $ECHO_C" >&6
4674 else
4675       save_CFLAGS="$CFLAGS"
4676     CFLAGS="$CFLAGS $lt_cv_prog_cc_pic -DPIC"
4677     cat >conftest.$ac_ext <<_ACEOF
4678 #line $LINENO "configure"
4679 #include "confdefs.h"
4680
4681 #ifdef F77_DUMMY_MAIN
4682 #  ifdef __cplusplus
4683      extern "C"
4684 #  endif
4685    int F77_DUMMY_MAIN() { return 1; }
4686 #endif
4687 int
4688 main ()
4689 {
4690
4691   ;
4692   return 0;
4693 }
4694 _ACEOF
4695 rm -f conftest.$ac_objext
4696 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4697   (eval $ac_compile) 2>&5
4698   ac_status=$?
4699   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4700   (exit $ac_status); } &&
4701          { ac_try='test -s conftest.$ac_objext'
4702   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4703   (eval $ac_try) 2>&5
4704   ac_status=$?
4705   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4706   (exit $ac_status); }; }; then
4707         case $host_os in
4708       hpux9* | hpux10* | hpux11*)
4709         # On HP-UX, both CC and GCC only warn that PIC is supported... then
4710         # they create non-PIC objects.  So, if there were any warnings, we
4711         # assume that PIC is not supported.
4712         if test -s conftest.err; then
4713           lt_cv_prog_cc_pic_works=no
4714         else
4715           lt_cv_prog_cc_pic_works=yes
4716         fi
4717         ;;
4718       *)
4719         lt_cv_prog_cc_pic_works=yes
4720         ;;
4721       esac
4722
4723 else
4724   echo "$as_me: failed program was:" >&5
4725 cat conftest.$ac_ext >&5
4726       lt_cv_prog_cc_pic_works=no
4727
4728 fi
4729 rm -f conftest.$ac_objext conftest.$ac_ext
4730     CFLAGS="$save_CFLAGS"
4731
4732 fi
4733
4734
4735   if test "X$lt_cv_prog_cc_pic_works" = Xno; then
4736     lt_cv_prog_cc_pic=
4737     lt_cv_prog_cc_can_build_shared=no
4738   else
4739     lt_cv_prog_cc_pic=" $lt_cv_prog_cc_pic"
4740   fi
4741
4742   echo "$as_me:$LINENO: result: $lt_cv_prog_cc_pic_works" >&5
4743 echo "${ECHO_T}$lt_cv_prog_cc_pic_works" >&6
4744 fi
4745 ##
4746 ## END FIXME
4747
4748 # Check for any special shared library compilation flags.
4749 if test -n "$lt_cv_prog_cc_shlib"; then
4750   { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_cv_prog_cc_shlib' to build shared libraries" >&5
4751 echo "$as_me: WARNING: \`$CC' requires \`$lt_cv_prog_cc_shlib' to build shared libraries" >&2;}
4752   if echo "$old_CC $old_CFLAGS " | egrep -e "[  ]$lt_cv_prog_cc_shlib[  ]" >/dev/null; then :
4753   else
4754    { echo "$as_me:$LINENO: WARNING: add \`$lt_cv_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
4755 echo "$as_me: WARNING: add \`$lt_cv_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
4756     lt_cv_prog_cc_can_build_shared=no
4757   fi
4758 fi
4759
4760 ## FIXME: this should be a separate macro
4761 ##
4762 echo "$as_me:$LINENO: checking if $compiler static flag $lt_cv_prog_cc_static works" >&5
4763 echo $ECHO_N "checking if $compiler static flag $lt_cv_prog_cc_static works... $ECHO_C" >&6
4764 if test "${lt_cv_prog_cc_static_works+set}" = set; then
4765   echo $ECHO_N "(cached) $ECHO_C" >&6
4766 else
4767     lt_cv_prog_cc_static_works=no
4768   save_LDFLAGS="$LDFLAGS"
4769   LDFLAGS="$LDFLAGS $lt_cv_prog_cc_static"
4770   cat >conftest.$ac_ext <<_ACEOF
4771 #line $LINENO "configure"
4772 #include "confdefs.h"
4773
4774 #ifdef F77_DUMMY_MAIN
4775 #  ifdef __cplusplus
4776      extern "C"
4777 #  endif
4778    int F77_DUMMY_MAIN() { return 1; }
4779 #endif
4780 int
4781 main ()
4782 {
4783
4784   ;
4785   return 0;
4786 }
4787 _ACEOF
4788 rm -f conftest.$ac_objext conftest$ac_exeext
4789 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4790   (eval $ac_link) 2>&5
4791   ac_status=$?
4792   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4793   (exit $ac_status); } &&
4794          { ac_try='test -s conftest$ac_exeext'
4795   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4796   (eval $ac_try) 2>&5
4797   ac_status=$?
4798   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4799   (exit $ac_status); }; }; then
4800   lt_cv_prog_cc_static_works=yes
4801 else
4802   echo "$as_me: failed program was:" >&5
4803 cat conftest.$ac_ext >&5
4804 fi
4805 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4806   LDFLAGS="$save_LDFLAGS"
4807
4808 fi
4809
4810
4811 # Belt *and* braces to stop my trousers falling down:
4812 test "X$lt_cv_prog_cc_static_works" = Xno && lt_cv_prog_cc_static=
4813 echo "$as_me:$LINENO: result: $lt_cv_prog_cc_static_works" >&5
4814 echo "${ECHO_T}$lt_cv_prog_cc_static_works" >&6
4815
4816 pic_flag="$lt_cv_prog_cc_pic"
4817 special_shlib_compile_flags="$lt_cv_prog_cc_shlib"
4818 wl="$lt_cv_prog_cc_wl"
4819 link_static_flag="$lt_cv_prog_cc_static"
4820 no_builtin_flag="$lt_cv_prog_cc_no_builtin"
4821 can_build_shared="$lt_cv_prog_cc_can_build_shared"
4822 ##
4823 ## END FIXME
4824
4825
4826 ## FIXME: this should be a separate macro
4827 ##
4828 # Check to see if options -o and -c are simultaneously supported by compiler
4829 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
4830 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
4831 if test "${lt_cv_compiler_c_o+set}" = set; then
4832   echo $ECHO_N "(cached) $ECHO_C" >&6
4833 else
4834
4835 $rm -r conftest 2>/dev/null
4836 mkdir conftest
4837 cd conftest
4838 echo "int some_variable = 0;" > conftest.$ac_ext
4839 mkdir out
4840 # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
4841 # that will create temporary files in the current directory regardless of
4842 # the output directory.  Thus, making CWD read-only will cause this test
4843 # to fail, enabling locking or at least warning the user not to do parallel
4844 # builds.
4845 chmod -w .
4846 save_CFLAGS="$CFLAGS"
4847 CFLAGS="$CFLAGS -o out/conftest2.$ac_objext"
4848 compiler_c_o=no
4849 if { (eval echo configure:4849: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>out/conftest.err; } && test -s out/conftest2.$ac_objext; then
4850   # The compiler can only warn and ignore the option if not recognized
4851   # So say no if there are warnings
4852   if test -s out/conftest.err; then
4853     lt_cv_compiler_c_o=no
4854   else
4855     lt_cv_compiler_c_o=yes
4856   fi
4857 else
4858   # Append any errors to the config.log.
4859   cat out/conftest.err 1>&5
4860   lt_cv_compiler_c_o=no
4861 fi
4862 CFLAGS="$save_CFLAGS"
4863 chmod u+w .
4864 $rm conftest* out/*
4865 rmdir out
4866 cd ..
4867 rmdir conftest
4868 $rm -r conftest 2>/dev/null
4869
4870 fi
4871
4872 compiler_c_o=$lt_cv_compiler_c_o
4873 echo "$as_me:$LINENO: result: $compiler_c_o" >&5
4874 echo "${ECHO_T}$compiler_c_o" >&6
4875
4876 if test x"$compiler_c_o" = x"yes"; then
4877   # Check to see if we can write to a .lo
4878   echo "$as_me:$LINENO: checking if $compiler supports -c -o file.lo" >&5
4879 echo $ECHO_N "checking if $compiler supports -c -o file.lo... $ECHO_C" >&6
4880   if test "${lt_cv_compiler_o_lo+set}" = set; then
4881   echo $ECHO_N "(cached) $ECHO_C" >&6
4882 else
4883
4884   lt_cv_compiler_o_lo=no
4885   save_CFLAGS="$CFLAGS"
4886   CFLAGS="$CFLAGS -c -o conftest.lo"
4887   save_objext="$ac_objext"
4888   ac_objext=lo
4889   cat >conftest.$ac_ext <<_ACEOF
4890 #line $LINENO "configure"
4891 #include "confdefs.h"
4892
4893 #ifdef F77_DUMMY_MAIN
4894 #  ifdef __cplusplus
4895      extern "C"
4896 #  endif
4897    int F77_DUMMY_MAIN() { return 1; }
4898 #endif
4899 int
4900 main ()
4901 {
4902 int some_variable = 0;
4903   ;
4904   return 0;
4905 }
4906 _ACEOF
4907 rm -f conftest.$ac_objext
4908 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4909   (eval $ac_compile) 2>&5
4910   ac_status=$?
4911   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4912   (exit $ac_status); } &&
4913          { ac_try='test -s conftest.$ac_objext'
4914   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4915   (eval $ac_try) 2>&5
4916   ac_status=$?
4917   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4918   (exit $ac_status); }; }; then
4919       # The compiler can only warn and ignore the option if not recognized
4920     # So say no if there are warnings
4921     if test -s conftest.err; then
4922       lt_cv_compiler_o_lo=no
4923     else
4924       lt_cv_compiler_o_lo=yes
4925     fi
4926
4927 else
4928   echo "$as_me: failed program was:" >&5
4929 cat conftest.$ac_ext >&5
4930 fi
4931 rm -f conftest.$ac_objext conftest.$ac_ext
4932   ac_objext="$save_objext"
4933   CFLAGS="$save_CFLAGS"
4934
4935 fi
4936
4937   compiler_o_lo=$lt_cv_compiler_o_lo
4938   echo "$as_me:$LINENO: result: $compiler_o_lo" >&5
4939 echo "${ECHO_T}$compiler_o_lo" >&6
4940 else
4941   compiler_o_lo=no
4942 fi
4943 ##
4944 ## END FIXME
4945
4946 ## FIXME: this should be a separate macro
4947 ##
4948 # Check to see if we can do hard links to lock some files if needed
4949 hard_links="nottested"
4950 if test "$compiler_c_o" = no && test "$need_locks" != no; then
4951   # do not overwrite the value of need_locks provided by the user
4952   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
4953 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
4954   hard_links=yes
4955   $rm conftest*
4956   ln conftest.a conftest.b 2>/dev/null && hard_links=no
4957   touch conftest.a
4958   ln conftest.a conftest.b 2>&5 || hard_links=no
4959   ln conftest.a conftest.b 2>/dev/null && hard_links=no
4960   echo "$as_me:$LINENO: result: $hard_links" >&5
4961 echo "${ECHO_T}$hard_links" >&6
4962   if test "$hard_links" = no; then
4963     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
4964 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
4965     need_locks=warn
4966   fi
4967 else
4968   need_locks=no
4969 fi
4970 ##
4971 ## END FIXME
4972
4973 ## FIXME: this should be a separate macro
4974 ##
4975 if test "$GCC" = yes; then
4976   # Check to see if options -fno-rtti -fno-exceptions are supported by compiler
4977   echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
4978 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
4979   echo "int some_variable = 0;" > conftest.$ac_ext
4980   save_CFLAGS="$CFLAGS"
4981   CFLAGS="$CFLAGS -fno-rtti -fno-exceptions -c conftest.$ac_ext"
4982   compiler_rtti_exceptions=no
4983   cat >conftest.$ac_ext <<_ACEOF
4984 #line $LINENO "configure"
4985 #include "confdefs.h"
4986
4987 #ifdef F77_DUMMY_MAIN
4988 #  ifdef __cplusplus
4989      extern "C"
4990 #  endif
4991    int F77_DUMMY_MAIN() { return 1; }
4992 #endif
4993 int
4994 main ()
4995 {
4996 int some_variable = 0;
4997   ;
4998   return 0;
4999 }
5000 _ACEOF
5001 rm -f conftest.$ac_objext
5002 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5003   (eval $ac_compile) 2>&5
5004   ac_status=$?
5005   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5006   (exit $ac_status); } &&
5007          { ac_try='test -s conftest.$ac_objext'
5008   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5009   (eval $ac_try) 2>&5
5010   ac_status=$?
5011   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5012   (exit $ac_status); }; }; then
5013       # The compiler can only warn and ignore the option if not recognized
5014     # So say no if there are warnings
5015     if test -s conftest.err; then
5016       compiler_rtti_exceptions=no
5017     else
5018       compiler_rtti_exceptions=yes
5019     fi
5020
5021 else
5022   echo "$as_me: failed program was:" >&5
5023 cat conftest.$ac_ext >&5
5024 fi
5025 rm -f conftest.$ac_objext conftest.$ac_ext
5026   CFLAGS="$save_CFLAGS"
5027   echo "$as_me:$LINENO: result: $compiler_rtti_exceptions" >&5
5028 echo "${ECHO_T}$compiler_rtti_exceptions" >&6
5029
5030   if test "$compiler_rtti_exceptions" = "yes"; then
5031     no_builtin_flag=' -fno-builtin -fno-rtti -fno-exceptions'
5032   else
5033     no_builtin_flag=' -fno-builtin'
5034   fi
5035 fi
5036 ##
5037 ## END FIXME
5038
5039 ## FIXME: this should be a separate macro
5040 ##
5041 # See if the linker supports building shared libraries.
5042 echo "$as_me:$LINENO: checking whether the linker ($LD) supports shared libraries" >&5
5043 echo $ECHO_N "checking whether the linker ($LD) supports shared libraries... $ECHO_C" >&6
5044
5045 allow_undefined_flag=
5046 no_undefined_flag=
5047 need_lib_prefix=unknown
5048 need_version=unknown
5049 # when you set need_version to no, make sure it does not cause -set_version
5050 # flags to be left without arguments
5051 archive_cmds=
5052 archive_expsym_cmds=
5053 old_archive_from_new_cmds=
5054 old_archive_from_expsyms_cmds=
5055 export_dynamic_flag_spec=
5056 whole_archive_flag_spec=
5057 thread_safe_flag_spec=
5058 hardcode_into_libs=no
5059 hardcode_libdir_flag_spec=
5060 hardcode_libdir_separator=
5061 hardcode_direct=no
5062 hardcode_minus_L=no
5063 hardcode_shlibpath_var=unsupported
5064 runpath_var=
5065 link_all_deplibs=unknown
5066 always_export_symbols=no
5067 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | sed '\''s/.* //'\'' | sort | uniq > $export_symbols'
5068 # include_expsyms should be a list of space-separated symbols to be *always*
5069 # included in the symbol list
5070 include_expsyms=
5071 # exclude_expsyms can be an egrep regular expression of symbols to exclude
5072 # it will be wrapped by ` (' and `)$', so one must not match beginning or
5073 # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
5074 # as well as any symbol that contains `d'.
5075 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
5076 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
5077 # platforms (ab)use it in PIC code, but their linkers get confused if
5078 # the symbol is explicitly referenced.  Since portable code cannot
5079 # rely on this symbol name, it's probably fine to never include it in
5080 # preloaded symbol tables.
5081 extract_expsyms_cmds=
5082
5083 case $host_os in
5084 cygwin* | mingw* | pw32*)
5085   # FIXME: the MSVC++ port hasn't been tested in a loooong time
5086   # When not using gcc, we currently assume that we are using
5087   # Microsoft Visual C++.
5088   if test "$GCC" != yes; then
5089     with_gnu_ld=no
5090   fi
5091   ;;
5092 openbsd*)
5093   with_gnu_ld=no
5094   ;;
5095 esac
5096
5097 ld_shlibs=yes
5098 if test "$with_gnu_ld" = yes; then
5099   # If archive_cmds runs LD, not CC, wlarc should be empty
5100   wlarc='${wl}'
5101
5102   # See if GNU ld supports shared libraries.
5103   case $host_os in
5104   aix3* | aix4* | aix5*)
5105     # On AIX, the GNU linker is very broken
5106     # Note:Check GNU linker on AIX 5-IA64 when/if it becomes available.
5107     ld_shlibs=no
5108     cat <<EOF 1>&2
5109
5110 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
5111 *** to be unable to reliably create shared libraries on AIX.
5112 *** Therefore, libtool is disabling shared libraries support.  If you
5113 *** really care for shared libraries, you may want to modify your PATH
5114 *** so that a non-GNU linker is found, and then restart.
5115
5116 EOF
5117     ;;
5118
5119   amigaos*)
5120     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)'
5121     hardcode_libdir_flag_spec='-L$libdir'
5122     hardcode_minus_L=yes
5123
5124     # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
5125     # that the semantics of dynamic libraries on AmigaOS, at least up
5126     # to version 4, is to share data among multiple programs linked
5127     # with the same dynamic library.  Since this doesn't match the
5128     # behavior of shared libraries on other platforms, we can use
5129     # them.
5130     ld_shlibs=no
5131     ;;
5132
5133   beos*)
5134     if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
5135       allow_undefined_flag=unsupported
5136       # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
5137       # support --undefined.  This deserves some investigation.  FIXME
5138       archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5139     else
5140       ld_shlibs=no
5141     fi
5142     ;;
5143
5144   cygwin* | mingw* | pw32*)
5145     # hardcode_libdir_flag_spec is actually meaningless, as there is
5146     # no search path for DLLs.
5147     hardcode_libdir_flag_spec='-L$libdir'
5148     allow_undefined_flag=unsupported
5149     always_export_symbols=yes
5150
5151     extract_expsyms_cmds='test -f $output_objdir/impgen.c || \
5152       sed -e "/^# \/\* impgen\.c starts here \*\//,/^# \/\* impgen.c ends here \*\// { s/^# //;s/^# *$//; p; }" -e d < $''0 > $output_objdir/impgen.c~
5153       test -f $output_objdir/impgen.exe || (cd $output_objdir && \
5154       if test "x$HOST_CC" != "x" ; then $HOST_CC -o impgen impgen.c ; \
5155       else $CC -o impgen impgen.c ; fi)~
5156       $output_objdir/impgen $dir/$soroot > $output_objdir/$soname-def'
5157
5158     old_archive_from_expsyms_cmds='$DLLTOOL --as=$AS --dllname $soname --def $output_objdir/$soname-def --output-lib $output_objdir/$newlib'
5159
5160     # cygwin and mingw dlls have different entry points and sets of symbols
5161     # to exclude.
5162     # FIXME: what about values for MSVC?
5163     dll_entry=__cygwin_dll_entry@12
5164     dll_exclude_symbols=DllMain@12,_cygwin_dll_entry@12,_cygwin_noncygwin_dll_entry@12~
5165     case $host_os in
5166     mingw*)
5167       # mingw values
5168       dll_entry=_DllMainCRTStartup@12
5169       dll_exclude_symbols=DllMain@12,DllMainCRTStartup@12,DllEntryPoint@12~
5170       ;;
5171     esac
5172
5173     # mingw and cygwin differ, and it's simplest to just exclude the union
5174     # of the two symbol sets.
5175     dll_exclude_symbols=DllMain@12,_cygwin_dll_entry@12,_cygwin_noncygwin_dll_entry@12,DllMainCRTStartup@12,DllEntryPoint@12
5176
5177     # recent cygwin and mingw systems supply a stub DllMain which the user
5178     # can override, but on older systems we have to supply one (in ltdll.c)
5179     if test "x$lt_cv_need_dllmain" = "xyes"; then
5180       ltdll_obj='$output_objdir/$soname-ltdll.'"$ac_objext "
5181       ltdll_cmds='test -f $output_objdir/$soname-ltdll.c || sed -e "/^# \/\* ltdll\.c starts here \*\//,/^# \/\* ltdll.c ends here \*\// { s/^# //; p; }" -e d < $''0 > $output_objdir/$soname-ltdll.c~
5182         test -f $output_objdir/$soname-ltdll.$ac_objext || (cd $output_objdir && $CC -c $soname-ltdll.c)~'
5183     else
5184       ltdll_obj=
5185       ltdll_cmds=
5186     fi
5187
5188     # Extract the symbol export list from an `--export-all' def file,
5189     # then regenerate the def file from the symbol export list, so that
5190     # the compiled dll only exports the symbol export list.
5191     # Be careful not to strip the DATA tag left be newer dlltools.
5192     export_symbols_cmds="$ltdll_cmds"'
5193       $DLLTOOL --export-all --exclude-symbols '$dll_exclude_symbols' --output-def $output_objdir/$soname-def '$ltdll_obj'$libobjs $convenience~
5194       sed -e "1,/EXPORTS/d" -e "s/ @ [0-9]*//" -e "s/ *;.*$//" < $output_objdir/$soname-def > $export_symbols'
5195
5196     # If the export-symbols file already is a .def file (1st line
5197     # is EXPORTS), use it as is.
5198     # If DATA tags from a recent dlltool are present, honour them!
5199     archive_expsym_cmds='if test "x`head -1 $export_symbols`" = xEXPORTS; then
5200         cp $export_symbols $output_objdir/$soname-def;
5201       else
5202         echo EXPORTS > $output_objdir/$soname-def;
5203         _lt_hint=1;
5204         cat $export_symbols | while read symbol; do
5205          set dummy \$symbol;
5206          case \$# in
5207            2) echo "   \$2 @ \$_lt_hint ; " >> $output_objdir/$soname-def;;
5208            *) echo "     \$2 @ \$_lt_hint \$3 ; " >> $output_objdir/$soname-def;;
5209          esac;
5210          _lt_hint=`expr 1 + \$_lt_hint`;
5211         done;
5212       fi~
5213       '"$ltdll_cmds"'
5214       $CC -Wl,--base-file,$output_objdir/$soname-base '$lt_cv_cc_dll_switch' -Wl,-e,'$dll_entry' -o $output_objdir/$soname '$ltdll_obj'$libobjs $deplibs $compiler_flags~
5215       $DLLTOOL --as=$AS --dllname $soname --exclude-symbols '$dll_exclude_symbols' --def $output_objdir/$soname-def --base-file $output_objdir/$soname-base --output-exp $output_objdir/$soname-exp~
5216       $CC -Wl,--base-file,$output_objdir/$soname-base $output_objdir/$soname-exp '$lt_cv_cc_dll_switch' -Wl,-e,'$dll_entry' -o $output_objdir/$soname '$ltdll_obj'$libobjs $deplibs $compiler_flags~
5217       $DLLTOOL --as=$AS --dllname $soname --exclude-symbols '$dll_exclude_symbols' --def $output_objdir/$soname-def --base-file $output_objdir/$soname-base --output-exp $output_objdir/$soname-exp --output-lib $output_objdir/$libname.dll.a~
5218       $CC $output_objdir/$soname-exp '$lt_cv_cc_dll_switch' -Wl,-e,'$dll_entry' -o $output_objdir/$soname '$ltdll_obj'$libobjs $deplibs $compiler_flags'
5219     ;;
5220
5221   netbsd*)
5222     if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
5223       archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
5224       wlarc=
5225     else
5226       archive_cmds='$CC -shared -nodefaultlibs $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5227       archive_expsym_cmds='$CC -shared -nodefaultlibs $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
5228     fi
5229     ;;
5230
5231   solaris* | sysv5*)
5232     if $LD -v 2>&1 | egrep 'BFD 2\.8' > /dev/null; then
5233       ld_shlibs=no
5234       cat <<EOF 1>&2
5235
5236 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
5237 *** create shared libraries on Solaris systems.  Therefore, libtool
5238 *** is disabling shared libraries support.  We urge you to upgrade GNU
5239 *** binutils to release 2.9.1 or newer.  Another option is to modify
5240 *** your PATH or compiler configuration so that the native linker is
5241 *** used, and then restart.
5242
5243 EOF
5244     elif $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
5245       archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5246       archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
5247     else
5248       ld_shlibs=no
5249     fi
5250     ;;
5251
5252   sunos4*)
5253     archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
5254     wlarc=
5255     hardcode_direct=yes
5256     hardcode_shlibpath_var=no
5257     ;;
5258
5259   *)
5260     if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
5261       archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5262       archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
5263     else
5264       ld_shlibs=no
5265     fi
5266     ;;
5267   esac
5268
5269   if test "$ld_shlibs" = yes; then
5270     runpath_var=LD_RUN_PATH
5271     hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
5272     export_dynamic_flag_spec='${wl}--export-dynamic'
5273     case $host_os in
5274     cygwin* | mingw* | pw32*)
5275       # dlltool doesn't understand --whole-archive et. al.
5276       whole_archive_flag_spec=
5277       ;;
5278     *)
5279       # ancient GNU ld didn't support --whole-archive et. al.
5280       if $LD --help 2>&1 | egrep 'no-whole-archive' > /dev/null; then
5281         whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
5282       else
5283         whole_archive_flag_spec=
5284       fi
5285       ;;
5286     esac
5287   fi
5288 else
5289   # PORTME fill in a description of your system's linker (not GNU ld)
5290   case $host_os in
5291   aix3*)
5292     allow_undefined_flag=unsupported
5293     always_export_symbols=yes
5294     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'
5295     # Note: this linker hardcodes the directories in LIBPATH if there
5296     # are no directories specified by -L.
5297     hardcode_minus_L=yes
5298     if test "$GCC" = yes && test -z "$link_static_flag"; then
5299       # Neither direct hardcoding nor static linking is supported with a
5300       # broken collect2.
5301       hardcode_direct=unsupported
5302     fi
5303     ;;
5304
5305   aix4* | aix5*)
5306     if test "$host_cpu" = ia64; then
5307       # On IA64, the linker does run time linking by default, so we don't
5308       # have to do anything special.
5309       aix_use_runtimelinking=no
5310       exp_sym_flag='-Bexport'
5311       no_entry_flag=""
5312     else
5313       aix_use_runtimelinking=no
5314
5315       # Test if we are trying to use run time linking or normal
5316       # AIX style linking. If -brtl is somewhere in LDFLAGS, we
5317       # need to do runtime linking.
5318       case $host_os in aix4.[23]|aix4.[23].*|aix5*)
5319         for ld_flag in $LDFLAGS; do
5320           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
5321             aix_use_runtimelinking=yes
5322             break
5323           fi
5324         done
5325       esac
5326
5327       exp_sym_flag='-bexport'
5328       no_entry_flag='-bnoentry'
5329     fi
5330
5331     # When large executables or shared objects are built, AIX ld can
5332     # have problems creating the table of contents.  If linking a library
5333     # or program results in "error TOC overflow" add -mminimal-toc to
5334     # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
5335     # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
5336
5337     hardcode_direct=yes
5338     archive_cmds=''
5339     hardcode_libdir_separator=':'
5340     if test "$GCC" = yes; then
5341       case $host_os in aix4.[012]|aix4.[012].*)
5342         collect2name=`${CC} -print-prog-name=collect2`
5343         if test -f "$collect2name" && \
5344           strings "$collect2name" | grep resolve_lib_name >/dev/null
5345         then
5346           # We have reworked collect2
5347           hardcode_direct=yes
5348         else
5349           # We have old collect2
5350           hardcode_direct=unsupported
5351           # It fails to find uninstalled libraries when the uninstalled
5352           # path is not listed in the libpath.  Setting hardcode_minus_L
5353           # to unsupported forces relinking
5354           hardcode_minus_L=yes
5355           hardcode_libdir_flag_spec='-L$libdir'
5356           hardcode_libdir_separator=
5357         fi
5358       esac
5359
5360       shared_flag='-shared'
5361     else
5362       # not using gcc
5363       if test "$host_cpu" = ia64; then
5364         shared_flag='${wl}-G'
5365       else
5366         if test "$aix_use_runtimelinking" = yes; then
5367           shared_flag='${wl}-G'
5368         else
5369           shared_flag='${wl}-bM:SRE'
5370         fi
5371       fi
5372     fi
5373
5374     # It seems that -bexpall can do strange things, so it is better to
5375     # generate a list of symbols to export.
5376     always_export_symbols=yes
5377     if test "$aix_use_runtimelinking" = yes; then
5378       # Warning - without using the other runtime loading flags (-brtl),
5379       # -berok will link without error, but may produce a broken library.
5380       allow_undefined_flag='-berok'
5381       hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:/usr/lib:/lib'
5382       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"
5383     else
5384       if test "$host_cpu" = ia64; then
5385         hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
5386         allow_undefined_flag="-z nodefs"
5387         archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname ${wl}-h$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
5388       else
5389         hardcode_libdir_flag_spec='${wl}-bnolibpath ${wl}-blibpath:$libdir:/usr/lib:/lib'
5390         # Warning - without using the other run time loading flags,
5391         # -berok will link without error, but may produce a broken library.
5392         allow_undefined_flag='${wl}-berok'
5393         # This is a bit strange, but is similar to how AIX traditionally builds
5394         # it's shared libraries.
5395         archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"' ~$AR -crlo $objdir/$libname$release.a $objdir/$soname'
5396       fi
5397     fi
5398     ;;
5399
5400   amigaos*)
5401     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)'
5402     hardcode_libdir_flag_spec='-L$libdir'
5403     hardcode_minus_L=yes
5404     # see comment about different semantics on the GNU ld section
5405     ld_shlibs=no
5406     ;;
5407
5408   cygwin* | mingw* | pw32*)
5409     # When not using gcc, we currently assume that we are using
5410     # Microsoft Visual C++.
5411     # hardcode_libdir_flag_spec is actually meaningless, as there is
5412     # no search path for DLLs.
5413     hardcode_libdir_flag_spec=' '
5414     allow_undefined_flag=unsupported
5415     # Tell ltmain to make .lib files, not .a files.
5416     libext=lib
5417     # FIXME: Setting linknames here is a bad hack.
5418     archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | sed -e '\''s/ -lc$//'\''` -link -dll~linknames='
5419     # The linker will automatically build a .lib file if we build a DLL.
5420     old_archive_from_new_cmds='true'
5421     # FIXME: Should let the user specify the lib program.
5422     old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
5423     fix_srcfile_path='`cygpath -w "$srcfile"`'
5424     ;;
5425
5426   darwin* | rhapsody*)
5427     case "$host_os" in
5428     rhapsody* | darwin1.[012])
5429       allow_undefined_flag='-undefined suppress'
5430       ;;
5431     *) # Darwin 1.3 on
5432       allow_undefined_flag='-flat_namespace -undefined suppress'
5433       ;;
5434     esac
5435     # FIXME: Relying on posixy $() will cause problems for
5436     #        cross-compilation, but unfortunately the echo tests do not
5437     #        yet detect zsh echo's removal of \ escapes.
5438     archive_cmds='$nonopt $(test "x$module" = xyes && echo -bundle || echo -dynamiclib) $allow_undefined_flag -o $lib $libobjs $deplibs$linker_flags -install_name $rpath/$soname $verstring'
5439     # We need to add '_' to the symbols in $export_symbols first
5440     #archive_expsym_cmds="$archive_cmds"' && strip -s $export_symbols'
5441     hardcode_direct=yes
5442     hardcode_shlibpath_var=no
5443     whole_archive_flag_spec='-all_load $convenience'
5444     ;;
5445
5446   freebsd1*)
5447     ld_shlibs=no
5448     ;;
5449
5450   # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
5451   # support.  Future versions do this automatically, but an explicit c++rt0.o
5452   # does not break anything, and helps significantly (at the cost of a little
5453   # extra space).
5454   freebsd2.2*)
5455     archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
5456     hardcode_libdir_flag_spec='-R$libdir'
5457     hardcode_direct=yes
5458     hardcode_shlibpath_var=no
5459     ;;
5460
5461   # Unfortunately, older versions of FreeBSD 2 do not have this feature.
5462   freebsd2*)
5463     archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
5464     hardcode_direct=yes
5465     hardcode_minus_L=yes
5466     hardcode_shlibpath_var=no
5467     ;;
5468
5469   # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
5470   freebsd*)
5471     archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
5472     hardcode_libdir_flag_spec='-R$libdir'
5473     hardcode_direct=yes
5474     hardcode_shlibpath_var=no
5475     ;;
5476
5477   hpux9* | hpux10* | hpux11*)
5478     case $host_os in
5479     hpux9*) 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' ;;
5480     *) archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' ;;
5481     esac
5482     hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
5483     hardcode_libdir_separator=:
5484     hardcode_direct=yes
5485     hardcode_minus_L=yes # Not in the search PATH, but as the default
5486                          # location of the library.
5487     export_dynamic_flag_spec='${wl}-E'
5488     ;;
5489
5490   irix5* | irix6*)
5491     if test "$GCC" = yes; then
5492       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'
5493     else
5494       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'
5495     fi
5496     hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
5497     hardcode_libdir_separator=:
5498     link_all_deplibs=yes
5499     ;;
5500
5501   netbsd*)
5502     if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
5503       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
5504     else
5505       archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
5506     fi
5507     hardcode_libdir_flag_spec='-R$libdir'
5508     hardcode_direct=yes
5509     hardcode_shlibpath_var=no
5510     ;;
5511
5512   newsos6)
5513     archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5514     hardcode_direct=yes
5515     hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
5516     hardcode_libdir_separator=:
5517     hardcode_shlibpath_var=no
5518     ;;
5519
5520   openbsd*)
5521     hardcode_direct=yes
5522     hardcode_shlibpath_var=no
5523     if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5524       archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $linker_flags'
5525       hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
5526       export_dynamic_flag_spec='${wl}-E'
5527     else
5528       case "$host_os" in
5529       openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
5530         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
5531         hardcode_libdir_flag_spec='-R$libdir'
5532         ;;
5533       *)
5534         archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $linker_flags'
5535         hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
5536         ;;
5537       esac
5538     fi
5539     ;;
5540
5541   os2*)
5542     hardcode_libdir_flag_spec='-L$libdir'
5543     hardcode_minus_L=yes
5544     allow_undefined_flag=unsupported
5545     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'
5546     old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
5547     ;;
5548
5549   osf3*)
5550     if test "$GCC" = yes; then
5551       allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
5552       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'
5553     else
5554       allow_undefined_flag=' -expect_unresolved \*'
5555       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'
5556     fi
5557     hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
5558     hardcode_libdir_separator=:
5559     ;;
5560
5561   osf4* | osf5*)        # as osf3* with the addition of -msym flag
5562     if test "$GCC" = yes; then
5563       allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
5564       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'
5565       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
5566     else
5567       allow_undefined_flag=' -expect_unresolved \*'
5568       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'
5569       archive_expsym_cmds='for i in `cat $export_symbols`; do printf "-exported_symbol " >> $lib.exp; echo "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
5570       $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'
5571
5572       #Both c and cxx compiler support -rpath directly
5573       hardcode_libdir_flag_spec='-rpath $libdir'
5574     fi
5575     hardcode_libdir_separator=:
5576     ;;
5577
5578   sco3.2v5*)
5579     archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5580     hardcode_shlibpath_var=no
5581     runpath_var=LD_RUN_PATH
5582     hardcode_runpath_var=yes
5583     export_dynamic_flag_spec='${wl}-Bexport'
5584     ;;
5585
5586   solaris*)
5587     # gcc --version < 3.0 without binutils cannot create self contained
5588     # shared libraries reliably, requiring libgcc.a to resolve some of
5589     # the object symbols generated in some cases.  Libraries that use
5590     # assert need libgcc.a to resolve __eprintf, for example.  Linking
5591     # a copy of libgcc.a into every shared library to guarantee resolving
5592     # such symbols causes other problems:  According to Tim Van Holder
5593     # <tim.van.holder@pandora.be>, C++ libraries end up with a separate
5594     # (to the application) exception stack for one thing.
5595     no_undefined_flag=' -z defs'
5596     if test "$GCC" = yes; then
5597       case `$CC --version 2>/dev/null` in
5598       [12].*)
5599         cat <<EOF 1>&2
5600
5601 *** Warning: Releases of GCC earlier than version 3.0 cannot reliably
5602 *** create self contained shared libraries on Solaris systems, without
5603 *** introducing a dependency on libgcc.a.  Therefore, libtool is disabling
5604 *** -no-undefined support, which will at least allow you to build shared
5605 *** libraries.  However, you may find that when you link such libraries
5606 *** into an application without using GCC, you have to manually add
5607 *** \`gcc --print-libgcc-file-name\` to the link command.  We urge you to
5608 *** upgrade to a newer version of GCC.  Another option is to rebuild your
5609 *** current GCC to use the GNU linker from GNU binutils 2.9.1 or newer.
5610
5611 EOF
5612         no_undefined_flag=
5613         ;;
5614       esac
5615     fi
5616     # $CC -shared without GNU ld will not create a library from C++
5617     # object files and a static libstdc++, better avoid it by now
5618     archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
5619     archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
5620                 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
5621     hardcode_libdir_flag_spec='-R$libdir'
5622     hardcode_shlibpath_var=no
5623     case $host_os in
5624     solaris2.[0-5] | solaris2.[0-5].*) ;;
5625     *) # Supported since Solaris 2.6 (maybe 2.5.1?)
5626       whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
5627     esac
5628     link_all_deplibs=yes
5629     ;;
5630
5631   sunos4*)
5632     if test "x$host_vendor" = xsequent; then
5633       # Use $CC to link under sequent, because it throws in some extra .o
5634       # files that make .init and .fini sections work.
5635       archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
5636     else
5637       archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
5638     fi
5639     hardcode_libdir_flag_spec='-L$libdir'
5640     hardcode_direct=yes
5641     hardcode_minus_L=yes
5642     hardcode_shlibpath_var=no
5643     ;;
5644
5645   sysv4)
5646     if test "x$host_vendor" = xsno; then
5647       archive_cmds='$LD -G -Bsymbolic -h $soname -o $lib $libobjs $deplibs $linker_flags'
5648       hardcode_direct=yes # is this really true???
5649     else
5650       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5651       hardcode_direct=no #Motorola manual says yes, but my tests say they lie
5652     fi
5653     runpath_var='LD_RUN_PATH'
5654     hardcode_shlibpath_var=no
5655     ;;
5656
5657   sysv4.3*)
5658     archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5659     hardcode_shlibpath_var=no
5660     export_dynamic_flag_spec='-Bexport'
5661     ;;
5662
5663   sysv5*)
5664     no_undefined_flag=' -z text'
5665     # $CC -shared without GNU ld will not create a library from C++
5666     # object files and a static libstdc++, better avoid it by now
5667     archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
5668     archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
5669                 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
5670     hardcode_libdir_flag_spec=
5671     hardcode_shlibpath_var=no
5672     runpath_var='LD_RUN_PATH'
5673     ;;
5674
5675   uts4*)
5676     archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5677     hardcode_libdir_flag_spec='-L$libdir'
5678     hardcode_shlibpath_var=no
5679     ;;
5680
5681   dgux*)
5682     archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5683     hardcode_libdir_flag_spec='-L$libdir'
5684     hardcode_shlibpath_var=no
5685     ;;
5686
5687   sysv4*MP*)
5688     if test -d /usr/nec; then
5689       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5690       hardcode_shlibpath_var=no
5691       runpath_var=LD_RUN_PATH
5692       hardcode_runpath_var=yes
5693       ld_shlibs=yes
5694     fi
5695     ;;
5696
5697   sysv4.2uw2*)
5698     archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
5699     hardcode_direct=yes
5700     hardcode_minus_L=no
5701     hardcode_shlibpath_var=no
5702     hardcode_runpath_var=yes
5703     runpath_var=LD_RUN_PATH
5704     ;;
5705
5706   sysv5uw7* | unixware7*)
5707     no_undefined_flag='${wl}-z ${wl}text'
5708     if test "$GCC" = yes; then
5709       archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
5710     else
5711       archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
5712     fi
5713     runpath_var='LD_RUN_PATH'
5714     hardcode_shlibpath_var=no
5715     ;;
5716
5717   *)
5718     ld_shlibs=no
5719     ;;
5720   esac
5721 fi
5722 echo "$as_me:$LINENO: result: $ld_shlibs" >&5
5723 echo "${ECHO_T}$ld_shlibs" >&6
5724 test "$ld_shlibs" = no && can_build_shared=no
5725 ##
5726 ## END FIXME
5727
5728 ## FIXME: this should be a separate macro
5729 ##
5730 # Check hardcoding attributes.
5731 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
5732 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
5733 hardcode_action=
5734 if test -n "$hardcode_libdir_flag_spec" || \
5735    test -n "$runpath_var"; then
5736
5737   # We can hardcode non-existant directories.
5738   if test "$hardcode_direct" != no &&
5739      # If the only mechanism to avoid hardcoding is shlibpath_var, we
5740      # have to relink, otherwise we might link with an installed library
5741      # when we should be linking with a yet-to-be-installed one
5742      ## test "$hardcode_shlibpath_var" != no &&
5743      test "$hardcode_minus_L" != no; then
5744     # Linking always hardcodes the temporary library directory.
5745     hardcode_action=relink
5746   else
5747     # We can link without hardcoding, and we can hardcode nonexisting dirs.
5748     hardcode_action=immediate
5749   fi
5750 else
5751   # We cannot hardcode anything, or else we can only hardcode existing
5752   # directories.
5753   hardcode_action=unsupported
5754 fi
5755 echo "$as_me:$LINENO: result: $hardcode_action" >&5
5756 echo "${ECHO_T}$hardcode_action" >&6
5757 ##
5758 ## END FIXME
5759
5760 ## FIXME: this should be a separate macro
5761 ##
5762 striplib=
5763 old_striplib=
5764 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
5765 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
5766 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
5767   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
5768   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
5769   echo "$as_me:$LINENO: result: yes" >&5
5770 echo "${ECHO_T}yes" >&6
5771 else
5772   echo "$as_me:$LINENO: result: no" >&5
5773 echo "${ECHO_T}no" >&6
5774 fi
5775 ##
5776 ## END FIXME
5777
5778 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5779 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5780
5781 ## FIXME: this should be a separate macro
5782 ##
5783 # PORTME Fill in your ld.so characteristics
5784 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
5785 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
5786 library_names_spec=
5787 libname_spec='lib$name'
5788 soname_spec=
5789 postinstall_cmds=
5790 postuninstall_cmds=
5791 finish_cmds=
5792 finish_eval=
5793 shlibpath_var=
5794 shlibpath_overrides_runpath=unknown
5795 version_type=none
5796 dynamic_linker="$host_os ld.so"
5797 sys_lib_dlsearch_path_spec="/lib /usr/lib"
5798 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
5799
5800 case $host_os in
5801 aix3*)
5802   version_type=linux
5803   library_names_spec='${libname}${release}.so$versuffix $libname.a'
5804   shlibpath_var=LIBPATH
5805
5806   # AIX has no versioning support, so we append a major version to the name.
5807   soname_spec='${libname}${release}.so$major'
5808   ;;
5809
5810 aix4* | aix5*)
5811   version_type=linux
5812   if test "$host_cpu" = ia64; then
5813     # AIX 5 supports IA64
5814     library_names_spec='${libname}${release}.so$major ${libname}${release}.so$versuffix $libname.so'
5815     shlibpath_var=LD_LIBRARY_PATH
5816   else
5817     # With GCC up to 2.95.x, collect2 would create an import file
5818     # for dependence libraries.  The import file would start with
5819     # the line `#! .'.  This would cause the generated library to
5820     # depend on `.', always an invalid library.  This was fixed in
5821     # development snapshots of GCC prior to 3.0.
5822     case $host_os in
5823       aix4 | aix4.[01] | aix4.[01].*)
5824         if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
5825              echo ' yes '
5826              echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
5827           :
5828         else
5829           can_build_shared=no
5830         fi
5831         ;;
5832     esac
5833     # AIX (on Power*) has no versioning support, so currently we can
5834     # not hardcode correct soname into executable. Probably we can
5835     # add versioning support to collect2, so additional links can
5836     # be useful in future.
5837     if test "$aix_use_runtimelinking" = yes; then
5838       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
5839       # instead of lib<name>.a to let people know that these are not
5840       # typical AIX shared libraries.
5841       library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
5842     else
5843       # We preserve .a as extension for shared libraries through AIX4.2
5844       # and later when we are not doing run time linking.
5845       library_names_spec='${libname}${release}.a $libname.a'
5846       soname_spec='${libname}${release}.so$major'
5847     fi
5848     shlibpath_var=LIBPATH
5849   fi
5850   ;;
5851
5852 amigaos*)
5853   library_names_spec='$libname.ixlibrary $libname.a'
5854   # Create ${libname}_ixlibrary.a entries in /sys/libs.
5855   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'
5856   ;;
5857
5858 beos*)
5859   library_names_spec='${libname}.so'
5860   dynamic_linker="$host_os ld.so"
5861   shlibpath_var=LIBRARY_PATH
5862   ;;
5863
5864 bsdi4*)
5865   version_type=linux
5866   need_version=no
5867   library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
5868   soname_spec='${libname}${release}.so$major'
5869   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
5870   shlibpath_var=LD_LIBRARY_PATH
5871   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
5872   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
5873   export_dynamic_flag_spec=-rdynamic
5874   # the default ld.so.conf also contains /usr/contrib/lib and
5875   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
5876   # libtool to hard-code these into programs
5877   ;;
5878
5879 cygwin* | mingw* | pw32*)
5880   version_type=windows
5881   need_version=no
5882   need_lib_prefix=no
5883   case $GCC,$host_os in
5884   yes,cygwin*)
5885     library_names_spec='$libname.dll.a'
5886     soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll'
5887     postinstall_cmds='dlpath=`bash 2>&1 -c '\''. $dir/${file}i;echo \$dlname'\''`~
5888       dldir=$destdir/`dirname \$dlpath`~
5889       test -d \$dldir || mkdir -p \$dldir~
5890       $install_prog .libs/$dlname \$dldir/$dlname'
5891     postuninstall_cmds='dldll=`bash 2>&1 -c '\''. $file; echo \$dlname'\''`~
5892       dlpath=$dir/\$dldll~
5893        $rm \$dlpath'
5894     ;;
5895   yes,mingw*)
5896     library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll'
5897     sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | sed -e "s/^libraries://" -e "s/;/ /g"`
5898     ;;
5899   yes,pw32*)
5900     library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | sed -e 's/./-/g'`${versuffix}.dll'
5901     ;;
5902   *)
5903     library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll $libname.lib'
5904     ;;
5905   esac
5906   dynamic_linker='Win32 ld.exe'
5907   # FIXME: first we should search . and the directory the executable is in
5908   shlibpath_var=PATH
5909   ;;
5910
5911 darwin* | rhapsody*)
5912   dynamic_linker="$host_os dyld"
5913   version_type=darwin
5914   need_lib_prefix=no
5915   need_version=no
5916   # FIXME: Relying on posixy $() will cause problems for
5917   #        cross-compilation, but unfortunately the echo tests do not
5918   #        yet detect zsh echo's removal of \ escapes.
5919   library_names_spec='${libname}${release}${versuffix}.$(test .$module = .yes && echo so || echo dylib) ${libname}${release}${major}.$(test .$module = .yes && echo so || echo dylib) ${libname}.$(test .$module = .yes && echo so || echo dylib)'
5920   soname_spec='${libname}${release}${major}.$(test .$module = .yes && echo so || echo dylib)'
5921   shlibpath_overrides_runpath=yes
5922   shlibpath_var=DYLD_LIBRARY_PATH
5923   ;;
5924
5925 freebsd1*)
5926   dynamic_linker=no
5927   ;;
5928
5929 freebsd*)
5930   objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
5931   version_type=freebsd-$objformat
5932   case $version_type in
5933     freebsd-elf*)
5934       library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so $libname.so'
5935       need_version=no
5936       need_lib_prefix=no
5937       ;;
5938     freebsd-*)
5939       library_names_spec='${libname}${release}.so$versuffix $libname.so$versuffix'
5940       need_version=yes
5941       ;;
5942   esac
5943   shlibpath_var=LD_LIBRARY_PATH
5944   case $host_os in
5945   freebsd2*)
5946     shlibpath_overrides_runpath=yes
5947     ;;
5948   *)
5949     shlibpath_overrides_runpath=no
5950     hardcode_into_libs=yes
5951     ;;
5952   esac
5953   ;;
5954
5955 gnu*)
5956   version_type=linux
5957   need_lib_prefix=no
5958   need_version=no
5959   library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so${major} ${libname}.so'
5960   soname_spec='${libname}${release}.so$major'
5961   shlibpath_var=LD_LIBRARY_PATH
5962   hardcode_into_libs=yes
5963   ;;
5964
5965 hpux9* | hpux10* | hpux11*)
5966   # Give a soname corresponding to the major version so that dld.sl refuses to
5967   # link against other versions.
5968   dynamic_linker="$host_os dld.sl"
5969   version_type=sunos
5970   need_lib_prefix=no
5971   need_version=no
5972   shlibpath_var=SHLIB_PATH
5973   shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
5974   library_names_spec='${libname}${release}.sl$versuffix ${libname}${release}.sl$major $libname.sl'
5975   soname_spec='${libname}${release}.sl$major'
5976   # HP-UX runs *really* slowly unless shared libraries are mode 555.
5977   postinstall_cmds='chmod 555 $lib'
5978   ;;
5979
5980 irix5* | irix6*)
5981   version_type=irix
5982   need_lib_prefix=no
5983   need_version=no
5984   soname_spec='${libname}${release}.so$major'
5985   library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so $libname.so'
5986   case $host_os in
5987   irix5*)
5988     libsuff= shlibsuff=
5989     ;;
5990   *)
5991     case $LD in # libtool.m4 will add one of these switches to LD
5992     *-32|*"-32 ") libsuff= shlibsuff= libmagic=32-bit;;
5993     *-n32|*"-n32 ") libsuff=32 shlibsuff=N32 libmagic=N32;;
5994     *-64|*"-64 ") libsuff=64 shlibsuff=64 libmagic=64-bit;;
5995     *) libsuff= shlibsuff= libmagic=never-match;;
5996     esac
5997     ;;
5998   esac
5999   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
6000   shlibpath_overrides_runpath=no
6001   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
6002   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
6003   ;;
6004
6005 # No shared lib support for Linux oldld, aout, or coff.
6006 linux-gnuoldld* | linux-gnuaout* | linux-gnucoff*)
6007   dynamic_linker=no
6008   ;;
6009
6010 # This must be Linux ELF.
6011 linux-gnu*)
6012   version_type=linux
6013   need_lib_prefix=no
6014   need_version=no
6015   library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6016   soname_spec='${libname}${release}.so$major'
6017   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
6018   shlibpath_var=LD_LIBRARY_PATH
6019   shlibpath_overrides_runpath=no
6020   # This implies no fast_install, which is unacceptable.
6021   # Some rework will be needed to allow for fast_install
6022   # before this can be enabled.
6023   hardcode_into_libs=yes
6024
6025   # We used to test for /lib/ld.so.1 and disable shared libraries on
6026   # powerpc, because MkLinux only supported shared libraries with the
6027   # GNU dynamic linker.  Since this was broken with cross compilers,
6028   # most powerpc-linux boxes support dynamic linking these days and
6029   # people can always --disable-shared, the test was removed, and we
6030   # assume the GNU/Linux dynamic linker is in use.
6031   dynamic_linker='GNU/Linux ld.so'
6032   ;;
6033
6034 netbsd*)
6035   version_type=sunos
6036   need_lib_prefix=no
6037   need_version=no
6038   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6039     library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
6040     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
6041     dynamic_linker='NetBSD (a.out) ld.so'
6042   else
6043     library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so ${libname}.so'
6044     soname_spec='${libname}${release}.so$major'
6045     dynamic_linker='NetBSD ld.elf_so'
6046   fi
6047   shlibpath_var=LD_LIBRARY_PATH
6048   shlibpath_overrides_runpath=yes
6049   hardcode_into_libs=yes
6050   ;;
6051
6052 newsos6)
6053   version_type=linux
6054   library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6055   shlibpath_var=LD_LIBRARY_PATH
6056   shlibpath_overrides_runpath=yes
6057   ;;
6058
6059 openbsd*)
6060   version_type=sunos
6061   need_lib_prefix=no
6062   need_version=no
6063   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6064     case "$host_os" in
6065     openbsd2.[89] | openbsd2.[89].*)
6066       shlibpath_overrides_runpath=no
6067       ;;
6068     *)
6069       shlibpath_overrides_runpath=yes
6070       ;;
6071     esac
6072   else
6073     shlibpath_overrides_runpath=yes
6074   fi
6075   library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
6076   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
6077   shlibpath_var=LD_LIBRARY_PATH
6078   ;;
6079
6080 os2*)
6081   libname_spec='$name'
6082   need_lib_prefix=no
6083   library_names_spec='$libname.dll $libname.a'
6084   dynamic_linker='OS/2 ld.exe'
6085   shlibpath_var=LIBPATH
6086   ;;
6087
6088 osf3* | osf4* | osf5*)
6089   version_type=osf
6090   need_version=no
6091   soname_spec='${libname}${release}.so'
6092   library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so $libname.so'
6093   shlibpath_var=LD_LIBRARY_PATH
6094   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
6095   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
6096   ;;
6097
6098 sco3.2v5*)
6099   version_type=osf
6100   soname_spec='${libname}${release}.so$major'
6101   library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6102   shlibpath_var=LD_LIBRARY_PATH
6103   ;;
6104
6105 solaris*)
6106   version_type=linux
6107   need_lib_prefix=no
6108   need_version=no
6109   library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6110   soname_spec='${libname}${release}.so$major'
6111   shlibpath_var=LD_LIBRARY_PATH
6112   shlibpath_overrides_runpath=yes
6113   hardcode_into_libs=yes
6114   # ldd complains unless libraries are executable
6115   postinstall_cmds='chmod +x $lib'
6116   ;;
6117
6118 sunos4*)
6119   version_type=sunos
6120   library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
6121   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
6122   shlibpath_var=LD_LIBRARY_PATH
6123   shlibpath_overrides_runpath=yes
6124   if test "$with_gnu_ld" = yes; then
6125     need_lib_prefix=no
6126   fi
6127   need_version=yes
6128   ;;
6129
6130 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
6131   version_type=linux
6132   library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6133   soname_spec='${libname}${release}.so$major'
6134   shlibpath_var=LD_LIBRARY_PATH
6135   case $host_vendor in
6136     sni)
6137       shlibpath_overrides_runpath=no
6138       ;;
6139     motorola)
6140       need_lib_prefix=no
6141       need_version=no
6142       shlibpath_overrides_runpath=no
6143       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
6144       ;;
6145   esac
6146   ;;
6147
6148 uts4*)
6149   version_type=linux
6150   library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6151   soname_spec='${libname}${release}.so$major'
6152   shlibpath_var=LD_LIBRARY_PATH
6153   ;;
6154
6155 dgux*)
6156   version_type=linux
6157   need_lib_prefix=no
6158   need_version=no
6159   library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6160   soname_spec='${libname}${release}.so$major'
6161   shlibpath_var=LD_LIBRARY_PATH
6162   ;;
6163
6164 sysv4*MP*)
6165   if test -d /usr/nec ;then
6166     version_type=linux
6167     library_names_spec='$libname.so.$versuffix $libname.so.$major $libname.so'
6168     soname_spec='$libname.so.$major'
6169     shlibpath_var=LD_LIBRARY_PATH
6170   fi
6171   ;;
6172
6173 *)
6174   dynamic_linker=no
6175   ;;
6176 esac
6177 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
6178 echo "${ECHO_T}$dynamic_linker" >&6
6179 test "$dynamic_linker" = no && can_build_shared=no
6180 ##
6181 ## END FIXME
6182
6183 ## FIXME: this should be a separate macro
6184 ##
6185 # Report the final consequences.
6186 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
6187 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
6188 echo "$as_me:$LINENO: result: $can_build_shared" >&5
6189 echo "${ECHO_T}$can_build_shared" >&6
6190 ##
6191 ## END FIXME
6192
6193 ## FIXME: this should be a separate macro
6194 ##
6195 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
6196 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
6197 test "$can_build_shared" = "no" && enable_shared=no
6198
6199 # On AIX, shared libraries and static libraries use the same namespace, and
6200 # are all built from PIC.
6201 case "$host_os" in
6202 aix3*)
6203   test "$enable_shared" = yes && enable_static=no
6204   if test -n "$RANLIB"; then
6205     archive_cmds="$archive_cmds~\$RANLIB \$lib"
6206     postinstall_cmds='$RANLIB $lib'
6207   fi
6208   ;;
6209
6210 aix4*)
6211   if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
6212     test "$enable_shared" = yes && enable_static=no
6213   fi
6214   ;;
6215 esac
6216 echo "$as_me:$LINENO: result: $enable_shared" >&5
6217 echo "${ECHO_T}$enable_shared" >&6
6218 ##
6219 ## END FIXME
6220
6221 ## FIXME: this should be a separate macro
6222 ##
6223 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
6224 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
6225 # Make sure either enable_shared or enable_static is yes.
6226 test "$enable_shared" = yes || enable_static=yes
6227 echo "$as_me:$LINENO: result: $enable_static" >&5
6228 echo "${ECHO_T}$enable_static" >&6
6229 ##
6230 ## END FIXME
6231
6232 if test "$hardcode_action" = relink; then
6233   # Fast installation is not supported
6234   enable_fast_install=no
6235 elif test "$shlibpath_overrides_runpath" = yes ||
6236      test "$enable_shared" = no; then
6237   # Fast installation is not necessary
6238   enable_fast_install=needless
6239 fi
6240
6241 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
6242 if test "$GCC" = yes; then
6243   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
6244 fi
6245
6246 if test "x$enable_dlopen" != xyes; then
6247   enable_dlopen=unknown
6248   enable_dlopen_self=unknown
6249   enable_dlopen_self_static=unknown
6250 else
6251   lt_cv_dlopen=no
6252   lt_cv_dlopen_libs=
6253
6254   case $host_os in
6255   beos*)
6256     lt_cv_dlopen="load_add_on"
6257     lt_cv_dlopen_libs=
6258     lt_cv_dlopen_self=yes
6259     ;;
6260
6261   cygwin* | mingw* | pw32*)
6262     lt_cv_dlopen="LoadLibrary"
6263     lt_cv_dlopen_libs=
6264    ;;
6265
6266   *)
6267     echo "$as_me:$LINENO: checking for shl_load" >&5
6268 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
6269 if test "${ac_cv_func_shl_load+set}" = set; then
6270   echo $ECHO_N "(cached) $ECHO_C" >&6
6271 else
6272   cat >conftest.$ac_ext <<_ACEOF
6273 #line $LINENO "configure"
6274 #include "confdefs.h"
6275 /* System header to define __stub macros and hopefully few prototypes,
6276     which can conflict with char shl_load (); below.  */
6277 #include <assert.h>
6278 /* Override any gcc2 internal prototype to avoid an error.  */
6279 #ifdef __cplusplus
6280 extern "C"
6281 #endif
6282 /* We use char because int might match the return type of a gcc2
6283    builtin and then its argument prototype would still apply.  */
6284 char shl_load ();
6285 char (*f) ();
6286
6287 #ifdef F77_DUMMY_MAIN
6288 #  ifdef __cplusplus
6289      extern "C"
6290 #  endif
6291    int F77_DUMMY_MAIN() { return 1; }
6292 #endif
6293 int
6294 main ()
6295 {
6296 /* The GNU C library defines this for functions which it implements
6297     to always fail with ENOSYS.  Some functions are actually named
6298     something starting with __ and the normal name is an alias.  */
6299 #if defined (__stub_shl_load) || defined (__stub___shl_load)
6300 choke me
6301 #else
6302 f = shl_load;
6303 #endif
6304
6305   ;
6306   return 0;
6307 }
6308 _ACEOF
6309 rm -f conftest.$ac_objext conftest$ac_exeext
6310 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6311   (eval $ac_link) 2>&5
6312   ac_status=$?
6313   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6314   (exit $ac_status); } &&
6315          { ac_try='test -s conftest$ac_exeext'
6316   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6317   (eval $ac_try) 2>&5
6318   ac_status=$?
6319   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6320   (exit $ac_status); }; }; then
6321   ac_cv_func_shl_load=yes
6322 else
6323   echo "$as_me: failed program was:" >&5
6324 cat conftest.$ac_ext >&5
6325 ac_cv_func_shl_load=no
6326 fi
6327 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6328 fi
6329 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
6330 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
6331 if test $ac_cv_func_shl_load = yes; then
6332   lt_cv_dlopen="shl_load"
6333 else
6334   echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
6335 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
6336 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
6337   echo $ECHO_N "(cached) $ECHO_C" >&6
6338 else
6339   ac_check_lib_save_LIBS=$LIBS
6340 LIBS="-ldld  $LIBS"
6341 cat >conftest.$ac_ext <<_ACEOF
6342 #line $LINENO "configure"
6343 #include "confdefs.h"
6344
6345 /* Override any gcc2 internal prototype to avoid an error.  */
6346 #ifdef __cplusplus
6347 extern "C"
6348 #endif
6349 /* We use char because int might match the return type of a gcc2
6350    builtin and then its argument prototype would still apply.  */
6351 char shl_load ();
6352 #ifdef F77_DUMMY_MAIN
6353 #  ifdef __cplusplus
6354      extern "C"
6355 #  endif
6356    int F77_DUMMY_MAIN() { return 1; }
6357 #endif
6358 int
6359 main ()
6360 {
6361 shl_load ();
6362   ;
6363   return 0;
6364 }
6365 _ACEOF
6366 rm -f conftest.$ac_objext conftest$ac_exeext
6367 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6368   (eval $ac_link) 2>&5
6369   ac_status=$?
6370   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6371   (exit $ac_status); } &&
6372          { ac_try='test -s conftest$ac_exeext'
6373   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6374   (eval $ac_try) 2>&5
6375   ac_status=$?
6376   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6377   (exit $ac_status); }; }; then
6378   ac_cv_lib_dld_shl_load=yes
6379 else
6380   echo "$as_me: failed program was:" >&5
6381 cat conftest.$ac_ext >&5
6382 ac_cv_lib_dld_shl_load=no
6383 fi
6384 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6385 LIBS=$ac_check_lib_save_LIBS
6386 fi
6387 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
6388 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
6389 if test $ac_cv_lib_dld_shl_load = yes; then
6390   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
6391 else
6392   echo "$as_me:$LINENO: checking for dlopen" >&5
6393 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
6394 if test "${ac_cv_func_dlopen+set}" = set; then
6395   echo $ECHO_N "(cached) $ECHO_C" >&6
6396 else
6397   cat >conftest.$ac_ext <<_ACEOF
6398 #line $LINENO "configure"
6399 #include "confdefs.h"
6400 /* System header to define __stub macros and hopefully few prototypes,
6401     which can conflict with char dlopen (); below.  */
6402 #include <assert.h>
6403 /* Override any gcc2 internal prototype to avoid an error.  */
6404 #ifdef __cplusplus
6405 extern "C"
6406 #endif
6407 /* We use char because int might match the return type of a gcc2
6408    builtin and then its argument prototype would still apply.  */
6409 char dlopen ();
6410 char (*f) ();
6411
6412 #ifdef F77_DUMMY_MAIN
6413 #  ifdef __cplusplus
6414      extern "C"
6415 #  endif
6416    int F77_DUMMY_MAIN() { return 1; }
6417 #endif
6418 int
6419 main ()
6420 {
6421 /* The GNU C library defines this for functions which it implements
6422     to always fail with ENOSYS.  Some functions are actually named
6423     something starting with __ and the normal name is an alias.  */
6424 #if defined (__stub_dlopen) || defined (__stub___dlopen)
6425 choke me
6426 #else
6427 f = dlopen;
6428 #endif
6429
6430   ;
6431   return 0;
6432 }
6433 _ACEOF
6434 rm -f conftest.$ac_objext conftest$ac_exeext
6435 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6436   (eval $ac_link) 2>&5
6437   ac_status=$?
6438   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6439   (exit $ac_status); } &&
6440          { ac_try='test -s conftest$ac_exeext'
6441   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6442   (eval $ac_try) 2>&5
6443   ac_status=$?
6444   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6445   (exit $ac_status); }; }; then
6446   ac_cv_func_dlopen=yes
6447 else
6448   echo "$as_me: failed program was:" >&5
6449 cat conftest.$ac_ext >&5
6450 ac_cv_func_dlopen=no
6451 fi
6452 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6453 fi
6454 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
6455 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
6456 if test $ac_cv_func_dlopen = yes; then
6457   lt_cv_dlopen="dlopen"
6458 else
6459   echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
6460 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
6461 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
6462   echo $ECHO_N "(cached) $ECHO_C" >&6
6463 else
6464   ac_check_lib_save_LIBS=$LIBS
6465 LIBS="-ldl  $LIBS"
6466 cat >conftest.$ac_ext <<_ACEOF
6467 #line $LINENO "configure"
6468 #include "confdefs.h"
6469
6470 /* Override any gcc2 internal prototype to avoid an error.  */
6471 #ifdef __cplusplus
6472 extern "C"
6473 #endif
6474 /* We use char because int might match the return type of a gcc2
6475    builtin and then its argument prototype would still apply.  */
6476 char dlopen ();
6477 #ifdef F77_DUMMY_MAIN
6478 #  ifdef __cplusplus
6479      extern "C"
6480 #  endif
6481    int F77_DUMMY_MAIN() { return 1; }
6482 #endif
6483 int
6484 main ()
6485 {
6486 dlopen ();
6487   ;
6488   return 0;
6489 }
6490 _ACEOF
6491 rm -f conftest.$ac_objext conftest$ac_exeext
6492 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6493   (eval $ac_link) 2>&5
6494   ac_status=$?
6495   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6496   (exit $ac_status); } &&
6497          { ac_try='test -s conftest$ac_exeext'
6498   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6499   (eval $ac_try) 2>&5
6500   ac_status=$?
6501   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6502   (exit $ac_status); }; }; then
6503   ac_cv_lib_dl_dlopen=yes
6504 else
6505   echo "$as_me: failed program was:" >&5
6506 cat conftest.$ac_ext >&5
6507 ac_cv_lib_dl_dlopen=no
6508 fi
6509 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6510 LIBS=$ac_check_lib_save_LIBS
6511 fi
6512 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
6513 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
6514 if test $ac_cv_lib_dl_dlopen = yes; then
6515   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
6516 else
6517   echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
6518 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
6519 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
6520   echo $ECHO_N "(cached) $ECHO_C" >&6
6521 else
6522   ac_check_lib_save_LIBS=$LIBS
6523 LIBS="-lsvld  $LIBS"
6524 cat >conftest.$ac_ext <<_ACEOF
6525 #line $LINENO "configure"
6526 #include "confdefs.h"
6527
6528 /* Override any gcc2 internal prototype to avoid an error.  */
6529 #ifdef __cplusplus
6530 extern "C"
6531 #endif
6532 /* We use char because int might match the return type of a gcc2
6533    builtin and then its argument prototype would still apply.  */
6534 char dlopen ();
6535 #ifdef F77_DUMMY_MAIN
6536 #  ifdef __cplusplus
6537      extern "C"
6538 #  endif
6539    int F77_DUMMY_MAIN() { return 1; }
6540 #endif
6541 int
6542 main ()
6543 {
6544 dlopen ();
6545   ;
6546   return 0;
6547 }
6548 _ACEOF
6549 rm -f conftest.$ac_objext conftest$ac_exeext
6550 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6551   (eval $ac_link) 2>&5
6552   ac_status=$?
6553   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6554   (exit $ac_status); } &&
6555          { ac_try='test -s conftest$ac_exeext'
6556   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6557   (eval $ac_try) 2>&5
6558   ac_status=$?
6559   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6560   (exit $ac_status); }; }; then
6561   ac_cv_lib_svld_dlopen=yes
6562 else
6563   echo "$as_me: failed program was:" >&5
6564 cat conftest.$ac_ext >&5
6565 ac_cv_lib_svld_dlopen=no
6566 fi
6567 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6568 LIBS=$ac_check_lib_save_LIBS
6569 fi
6570 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
6571 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
6572 if test $ac_cv_lib_svld_dlopen = yes; then
6573   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
6574 else
6575   echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
6576 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
6577 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
6578   echo $ECHO_N "(cached) $ECHO_C" >&6
6579 else
6580   ac_check_lib_save_LIBS=$LIBS
6581 LIBS="-ldld  $LIBS"
6582 cat >conftest.$ac_ext <<_ACEOF
6583 #line $LINENO "configure"
6584 #include "confdefs.h"
6585
6586 /* Override any gcc2 internal prototype to avoid an error.  */
6587 #ifdef __cplusplus
6588 extern "C"
6589 #endif
6590 /* We use char because int might match the return type of a gcc2
6591    builtin and then its argument prototype would still apply.  */
6592 char dld_link ();
6593 #ifdef F77_DUMMY_MAIN
6594 #  ifdef __cplusplus
6595      extern "C"
6596 #  endif
6597    int F77_DUMMY_MAIN() { return 1; }
6598 #endif
6599 int
6600 main ()
6601 {
6602 dld_link ();
6603   ;
6604   return 0;
6605 }
6606 _ACEOF
6607 rm -f conftest.$ac_objext conftest$ac_exeext
6608 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6609   (eval $ac_link) 2>&5
6610   ac_status=$?
6611   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6612   (exit $ac_status); } &&
6613          { ac_try='test -s conftest$ac_exeext'
6614   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6615   (eval $ac_try) 2>&5
6616   ac_status=$?
6617   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6618   (exit $ac_status); }; }; then
6619   ac_cv_lib_dld_dld_link=yes
6620 else
6621   echo "$as_me: failed program was:" >&5
6622 cat conftest.$ac_ext >&5
6623 ac_cv_lib_dld_dld_link=no
6624 fi
6625 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6626 LIBS=$ac_check_lib_save_LIBS
6627 fi
6628 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
6629 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
6630 if test $ac_cv_lib_dld_dld_link = yes; then
6631   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
6632 fi
6633
6634
6635 fi
6636
6637
6638 fi
6639
6640
6641 fi
6642
6643
6644 fi
6645
6646
6647 fi
6648
6649     ;;
6650   esac
6651
6652   if test "x$lt_cv_dlopen" != xno; then
6653     enable_dlopen=yes
6654   else
6655     enable_dlopen=no
6656   fi
6657
6658   case $lt_cv_dlopen in
6659   dlopen)
6660     save_CPPFLAGS="$CPPFLAGS"
6661         test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
6662
6663     save_LDFLAGS="$LDFLAGS"
6664     eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
6665
6666     save_LIBS="$LIBS"
6667     LIBS="$lt_cv_dlopen_libs $LIBS"
6668
6669     echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
6670 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
6671 if test "${lt_cv_dlopen_self+set}" = set; then
6672   echo $ECHO_N "(cached) $ECHO_C" >&6
6673 else
6674           if test "$cross_compiling" = yes; then :
6675   lt_cv_dlopen_self=cross
6676 else
6677     lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
6678   lt_status=$lt_dlunknown
6679   cat > conftest.$ac_ext <<EOF
6680 #line 6680 "configure"
6681 #include "confdefs.h"
6682
6683 #if HAVE_DLFCN_H
6684 #include <dlfcn.h>
6685 #endif
6686
6687 #include <stdio.h>
6688
6689 #ifdef RTLD_GLOBAL
6690 #  define LT_DLGLOBAL           RTLD_GLOBAL
6691 #else
6692 #  ifdef DL_GLOBAL
6693 #    define LT_DLGLOBAL         DL_GLOBAL
6694 #  else
6695 #    define LT_DLGLOBAL         0
6696 #  endif
6697 #endif
6698
6699 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
6700    find out it does not work in some platform. */
6701 #ifndef LT_DLLAZY_OR_NOW
6702 #  ifdef RTLD_LAZY
6703 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
6704 #  else
6705 #    ifdef DL_LAZY
6706 #      define LT_DLLAZY_OR_NOW          DL_LAZY
6707 #    else
6708 #      ifdef RTLD_NOW
6709 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
6710 #      else
6711 #        ifdef DL_NOW
6712 #          define LT_DLLAZY_OR_NOW      DL_NOW
6713 #        else
6714 #          define LT_DLLAZY_OR_NOW      0
6715 #        endif
6716 #      endif
6717 #    endif
6718 #  endif
6719 #endif
6720
6721 #ifdef __cplusplus
6722 extern "C" void exit (int);
6723 #endif
6724
6725 void fnord() { int i=42;}
6726 int main ()
6727 {
6728   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
6729   int status = $lt_dlunknown;
6730
6731   if (self)
6732     {
6733       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
6734       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
6735       /* dlclose (self); */
6736     }
6737
6738     exit (status);
6739 }
6740 EOF
6741   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6742   (eval $ac_link) 2>&5
6743   ac_status=$?
6744   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6745   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
6746     (./conftest; exit; ) 2>/dev/null
6747     lt_status=$?
6748     case x$lt_status in
6749       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
6750       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
6751       x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
6752     esac
6753   else :
6754     # compilation failed
6755     lt_cv_dlopen_self=no
6756   fi
6757 fi
6758 rm -fr conftest*
6759
6760
6761 fi
6762 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
6763 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
6764
6765     if test "x$lt_cv_dlopen_self" = xyes; then
6766       LDFLAGS="$LDFLAGS $link_static_flag"
6767       echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
6768 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
6769 if test "${lt_cv_dlopen_self_static+set}" = set; then
6770   echo $ECHO_N "(cached) $ECHO_C" >&6
6771 else
6772           if test "$cross_compiling" = yes; then :
6773   lt_cv_dlopen_self_static=cross
6774 else
6775     lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
6776   lt_status=$lt_dlunknown
6777   cat > conftest.$ac_ext <<EOF
6778 #line 6778 "configure"
6779 #include "confdefs.h"
6780
6781 #if HAVE_DLFCN_H
6782 #include <dlfcn.h>
6783 #endif
6784
6785 #include <stdio.h>
6786
6787 #ifdef RTLD_GLOBAL
6788 #  define LT_DLGLOBAL           RTLD_GLOBAL
6789 #else
6790 #  ifdef DL_GLOBAL
6791 #    define LT_DLGLOBAL         DL_GLOBAL
6792 #  else
6793 #    define LT_DLGLOBAL         0
6794 #  endif
6795 #endif
6796
6797 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
6798    find out it does not work in some platform. */
6799 #ifndef LT_DLLAZY_OR_NOW
6800 #  ifdef RTLD_LAZY
6801 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
6802 #  else
6803 #    ifdef DL_LAZY
6804 #      define LT_DLLAZY_OR_NOW          DL_LAZY
6805 #    else
6806 #      ifdef RTLD_NOW
6807 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
6808 #      else
6809 #        ifdef DL_NOW
6810 #          define LT_DLLAZY_OR_NOW      DL_NOW
6811 #        else
6812 #          define LT_DLLAZY_OR_NOW      0
6813 #        endif
6814 #      endif
6815 #    endif
6816 #  endif
6817 #endif
6818
6819 #ifdef __cplusplus
6820 extern "C" void exit (int);
6821 #endif
6822
6823 void fnord() { int i=42;}
6824 int main ()
6825 {
6826   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
6827   int status = $lt_dlunknown;
6828
6829   if (self)
6830     {
6831       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
6832       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
6833       /* dlclose (self); */
6834     }
6835
6836     exit (status);
6837 }
6838 EOF
6839   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6840   (eval $ac_link) 2>&5
6841   ac_status=$?
6842   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6843   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
6844     (./conftest; exit; ) 2>/dev/null
6845     lt_status=$?
6846     case x$lt_status in
6847       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
6848       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
6849       x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
6850     esac
6851   else :
6852     # compilation failed
6853     lt_cv_dlopen_self_static=no
6854   fi
6855 fi
6856 rm -fr conftest*
6857
6858
6859 fi
6860 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
6861 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
6862     fi
6863
6864     CPPFLAGS="$save_CPPFLAGS"
6865     LDFLAGS="$save_LDFLAGS"
6866     LIBS="$save_LIBS"
6867     ;;
6868   esac
6869
6870   case $lt_cv_dlopen_self in
6871   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
6872   *) enable_dlopen_self=unknown ;;
6873   esac
6874
6875   case $lt_cv_dlopen_self_static in
6876   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
6877   *) enable_dlopen_self_static=unknown ;;
6878   esac
6879 fi
6880
6881
6882 ## FIXME: this should be a separate macro
6883 ##
6884 if test "$enable_shared" = yes && test "$GCC" = yes; then
6885   case $archive_cmds in
6886   *'~'*)
6887     # FIXME: we may have to deal with multi-command sequences.
6888     ;;
6889   '$CC '*)
6890     # Test whether the compiler implicitly links with -lc since on some
6891     # systems, -lgcc has to come before -lc. If gcc already passes -lc
6892     # to ld, don't add -lc before -lgcc.
6893     echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
6894 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
6895     if test "${lt_cv_archive_cmds_need_lc+set}" = set; then
6896   echo $ECHO_N "(cached) $ECHO_C" >&6
6897 else
6898   $rm conftest*
6899     echo 'static int dummy;' > conftest.$ac_ext
6900
6901     if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6902   (eval $ac_compile) 2>&5
6903   ac_status=$?
6904   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6905   (exit $ac_status); }; then
6906       soname=conftest
6907       lib=conftest
6908       libobjs=conftest.$ac_objext
6909       deplibs=
6910       wl=$lt_cv_prog_cc_wl
6911       compiler_flags=-v
6912       linker_flags=-v
6913       verstring=
6914       output_objdir=.
6915       libname=conftest
6916       save_allow_undefined_flag=$allow_undefined_flag
6917       allow_undefined_flag=
6918       if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
6919   (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
6920   ac_status=$?
6921   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6922   (exit $ac_status); }
6923       then
6924         lt_cv_archive_cmds_need_lc=no
6925       else
6926         lt_cv_archive_cmds_need_lc=yes
6927       fi
6928       allow_undefined_flag=$save_allow_undefined_flag
6929     else
6930       cat conftest.err 1>&5
6931     fi
6932 fi
6933
6934     echo "$as_me:$LINENO: result: $lt_cv_archive_cmds_need_lc" >&5
6935 echo "${ECHO_T}$lt_cv_archive_cmds_need_lc" >&6
6936     ;;
6937   esac
6938 fi
6939 need_lc=${lt_cv_archive_cmds_need_lc-yes}
6940 ##
6941 ## END FIXME
6942
6943 ## FIXME: this should be a separate macro
6944 ##
6945 # The second clause should only fire when bootstrapping the
6946 # libtool distribution, otherwise you forgot to ship ltmain.sh
6947 # with your package, and you will get complaints that there are
6948 # no rules to generate ltmain.sh.
6949 if test -f "$ltmain"; then
6950   :
6951 else
6952   # If there is no Makefile yet, we rely on a make rule to execute
6953   # `config.status --recheck' to rerun these tests and create the
6954   # libtool script then.
6955   test -f Makefile && make "$ltmain"
6956 fi
6957
6958 if test -f "$ltmain"; then
6959   trap "$rm \"${ofile}T\"; exit 1" 1 2 15
6960   $rm -f "${ofile}T"
6961
6962   echo creating $ofile
6963
6964   # Now quote all the things that may contain metacharacters while being
6965   # careful not to overquote the AC_SUBSTed values.  We take copies of the
6966   # variables and quote the copies for generation of the libtool script.
6967   for var in echo old_CC old_CFLAGS \
6968     AR AR_FLAGS CC LD LN_S NM SHELL \
6969     reload_flag reload_cmds wl \
6970     pic_flag link_static_flag no_builtin_flag export_dynamic_flag_spec \
6971     thread_safe_flag_spec whole_archive_flag_spec libname_spec \
6972     library_names_spec soname_spec \
6973     RANLIB old_archive_cmds old_archive_from_new_cmds old_postinstall_cmds \
6974     old_postuninstall_cmds archive_cmds archive_expsym_cmds postinstall_cmds \
6975     postuninstall_cmds extract_expsyms_cmds old_archive_from_expsyms_cmds \
6976     old_striplib striplib file_magic_cmd export_symbols_cmds \
6977     deplibs_check_method allow_undefined_flag no_undefined_flag \
6978     finish_cmds finish_eval global_symbol_pipe global_symbol_to_cdecl \
6979     global_symbol_to_c_name_address \
6980     hardcode_libdir_flag_spec hardcode_libdir_separator  \
6981     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
6982     compiler_c_o compiler_o_lo need_locks exclude_expsyms include_expsyms; do
6983
6984     case $var in
6985     reload_cmds | old_archive_cmds | old_archive_from_new_cmds | \
6986     old_postinstall_cmds | old_postuninstall_cmds | \
6987     export_symbols_cmds | archive_cmds | archive_expsym_cmds | \
6988     extract_expsyms_cmds | old_archive_from_expsyms_cmds | \
6989     postinstall_cmds | postuninstall_cmds | \
6990     finish_cmds | sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
6991       # Double-quote double-evaled strings.
6992       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
6993       ;;
6994     *)
6995       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
6996       ;;
6997     esac
6998   done
6999
7000   cat <<__EOF__ > "${ofile}T"
7001 #! $SHELL
7002
7003 # `$echo "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
7004 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
7005 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
7006 #
7007 # Copyright (C) 1996-2000 Free Software Foundation, Inc.
7008 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
7009 #
7010 # This program is free software; you can redistribute it and/or modify
7011 # it under the terms of the GNU General Public License as published by
7012 # the Free Software Foundation; either version 2 of the License, or
7013 # (at your option) any later version.
7014 #
7015 # This program is distributed in the hope that it will be useful, but
7016 # WITHOUT ANY WARRANTY; without even the implied warranty of
7017 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
7018 # General Public License for more details.
7019 #
7020 # You should have received a copy of the GNU General Public License
7021 # along with this program; if not, write to the Free Software
7022 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
7023 #
7024 # As a special exception to the GNU General Public License, if you
7025 # distribute this file as part of a program that contains a
7026 # configuration script generated by Autoconf, you may include it under
7027 # the same distribution terms that you use for the rest of that program.
7028
7029 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
7030 Xsed="sed -e s/^X//"
7031
7032 # The HP-UX ksh and POSIX shell print the target directory to stdout
7033 # if CDPATH is set.
7034 if test "X\${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
7035
7036 # ### BEGIN LIBTOOL CONFIG
7037
7038 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
7039
7040 # Shell to use when invoking shell scripts.
7041 SHELL=$lt_SHELL
7042
7043 # Whether or not to build shared libraries.
7044 build_libtool_libs=$enable_shared
7045
7046 # Whether or not to build static libraries.
7047 build_old_libs=$enable_static
7048
7049 # Whether or not to add -lc for building shared libraries.
7050 build_libtool_need_lc=$need_lc
7051
7052 # Whether or not to optimize for fast installation.
7053 fast_install=$enable_fast_install
7054
7055 # The host system.
7056 host_alias=$host_alias
7057 host=$host
7058
7059 # An echo program that does not interpret backslashes.
7060 echo=$lt_echo
7061
7062 # The archiver.
7063 AR=$lt_AR
7064 AR_FLAGS=$lt_AR_FLAGS
7065
7066 # The default C compiler.
7067 CC=$lt_CC
7068
7069 # Is the compiler the GNU C compiler?
7070 with_gcc=$GCC
7071
7072 # The linker used to build libraries.
7073 LD=$lt_LD
7074
7075 # Whether we need hard or soft links.
7076 LN_S=$lt_LN_S
7077
7078 # A BSD-compatible nm program.
7079 NM=$lt_NM
7080
7081 # A symbol stripping program
7082 STRIP=$STRIP
7083
7084 # Used to examine libraries when file_magic_cmd begins "file"
7085 MAGIC_CMD=$MAGIC_CMD
7086
7087 # Used on cygwin: DLL creation program.
7088 DLLTOOL="$DLLTOOL"
7089
7090 # Used on cygwin: object dumper.
7091 OBJDUMP="$OBJDUMP"
7092
7093 # Used on cygwin: assembler.
7094 AS="$AS"
7095
7096 # The name of the directory that contains temporary libtool files.
7097 objdir=$objdir
7098
7099 # How to create reloadable object files.
7100 reload_flag=$lt_reload_flag
7101 reload_cmds=$lt_reload_cmds
7102
7103 # How to pass a linker flag through the compiler.
7104 wl=$lt_wl
7105
7106 # Object file suffix (normally "o").
7107 objext="$ac_objext"
7108
7109 # Old archive suffix (normally "a").
7110 libext="$libext"
7111
7112 # Executable file suffix (normally "").
7113 exeext="$exeext"
7114
7115 # Additional compiler flags for building library objects.
7116 pic_flag=$lt_pic_flag
7117 pic_mode=$pic_mode
7118
7119 # Does compiler simultaneously support -c and -o options?
7120 compiler_c_o=$lt_compiler_c_o
7121
7122 # Can we write directly to a .lo ?
7123 compiler_o_lo=$lt_compiler_o_lo
7124
7125 # Must we lock files when doing compilation ?
7126 need_locks=$lt_need_locks
7127
7128 # Do we need the lib prefix for modules?
7129 need_lib_prefix=$need_lib_prefix
7130
7131 # Do we need a version for libraries?
7132 need_version=$need_version
7133
7134 # Whether dlopen is supported.
7135 dlopen_support=$enable_dlopen
7136
7137 # Whether dlopen of programs is supported.
7138 dlopen_self=$enable_dlopen_self
7139
7140 # Whether dlopen of statically linked programs is supported.
7141 dlopen_self_static=$enable_dlopen_self_static
7142
7143 # Compiler flag to prevent dynamic linking.
7144 link_static_flag=$lt_link_static_flag
7145
7146 # Compiler flag to turn off builtin functions.
7147 no_builtin_flag=$lt_no_builtin_flag
7148
7149 # Compiler flag to allow reflexive dlopens.
7150 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
7151
7152 # Compiler flag to generate shared objects directly from archives.
7153 whole_archive_flag_spec=$lt_whole_archive_flag_spec
7154
7155 # Compiler flag to generate thread-safe objects.
7156 thread_safe_flag_spec=$lt_thread_safe_flag_spec
7157
7158 # Library versioning type.
7159 version_type=$version_type
7160
7161 # Format of library name prefix.
7162 libname_spec=$lt_libname_spec
7163
7164 # List of archive names.  First name is the real one, the rest are links.
7165 # The last name is the one that the linker finds with -lNAME.
7166 library_names_spec=$lt_library_names_spec
7167
7168 # The coded name of the library, if different from the real name.
7169 soname_spec=$lt_soname_spec
7170
7171 # Commands used to build and install an old-style archive.
7172 RANLIB=$lt_RANLIB
7173 old_archive_cmds=$lt_old_archive_cmds
7174 old_postinstall_cmds=$lt_old_postinstall_cmds
7175 old_postuninstall_cmds=$lt_old_postuninstall_cmds
7176
7177 # Create an old-style archive from a shared archive.
7178 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
7179
7180 # Create a temporary old-style archive to link instead of a shared archive.
7181 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
7182
7183 # Commands used to build and install a shared archive.
7184 archive_cmds=$lt_archive_cmds
7185 archive_expsym_cmds=$lt_archive_expsym_cmds
7186 postinstall_cmds=$lt_postinstall_cmds
7187 postuninstall_cmds=$lt_postuninstall_cmds
7188
7189 # Commands to strip libraries.
7190 old_striplib=$lt_old_striplib
7191 striplib=$lt_striplib
7192
7193 # Method to check whether dependent libraries are shared objects.
7194 deplibs_check_method=$lt_deplibs_check_method
7195
7196 # Command to use when deplibs_check_method == file_magic.
7197 file_magic_cmd=$lt_file_magic_cmd
7198
7199 # Flag that allows shared libraries with undefined symbols to be built.
7200 allow_undefined_flag=$lt_allow_undefined_flag
7201
7202 # Flag that forces no undefined symbols.
7203 no_undefined_flag=$lt_no_undefined_flag
7204
7205 # Commands used to finish a libtool library installation in a directory.
7206 finish_cmds=$lt_finish_cmds
7207
7208 # Same as above, but a single script fragment to be evaled but not shown.
7209 finish_eval=$lt_finish_eval
7210
7211 # Take the output of nm and produce a listing of raw symbols and C names.
7212 global_symbol_pipe=$lt_global_symbol_pipe
7213
7214 # Transform the output of nm in a proper C declaration
7215 global_symbol_to_cdecl=$lt_global_symbol_to_cdecl
7216
7217 # Transform the output of nm in a C name address pair
7218 global_symbol_to_c_name_address=$lt_global_symbol_to_c_name_address
7219
7220 # This is the shared library runtime path variable.
7221 runpath_var=$runpath_var
7222
7223 # This is the shared library path variable.
7224 shlibpath_var=$shlibpath_var
7225
7226 # Is shlibpath searched before the hard-coded library search path?
7227 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
7228
7229 # How to hardcode a shared library path into an executable.
7230 hardcode_action=$hardcode_action
7231
7232 # Whether we should hardcode library paths into libraries.
7233 hardcode_into_libs=$hardcode_into_libs
7234
7235 # Flag to hardcode \$libdir into a binary during linking.
7236 # This must work even if \$libdir does not exist.
7237 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
7238
7239 # Whether we need a single -rpath flag with a separated argument.
7240 hardcode_libdir_separator=$lt_hardcode_libdir_separator
7241
7242 # Set to yes if using DIR/libNAME.so during linking hardcodes DIR into the
7243 # resulting binary.
7244 hardcode_direct=$hardcode_direct
7245
7246 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
7247 # resulting binary.
7248 hardcode_minus_L=$hardcode_minus_L
7249
7250 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
7251 # the resulting binary.
7252 hardcode_shlibpath_var=$hardcode_shlibpath_var
7253
7254 # Variables whose values should be saved in libtool wrapper scripts and
7255 # restored at relink time.
7256 variables_saved_for_relink="$variables_saved_for_relink"
7257
7258 # Whether libtool must link a program against all its dependency libraries.
7259 link_all_deplibs=$link_all_deplibs
7260
7261 # Compile-time system search path for libraries
7262 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
7263
7264 # Run-time system search path for libraries
7265 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
7266
7267 # Fix the shell variable \$srcfile for the compiler.
7268 fix_srcfile_path="$fix_srcfile_path"
7269
7270 # Set to yes if exported symbols are required.
7271 always_export_symbols=$always_export_symbols
7272
7273 # The commands to list exported symbols.
7274 export_symbols_cmds=$lt_export_symbols_cmds
7275
7276 # The commands to extract the exported symbol list from a shared archive.
7277 extract_expsyms_cmds=$lt_extract_expsyms_cmds
7278
7279 # Symbols that should not be listed in the preloaded symbols.
7280 exclude_expsyms=$lt_exclude_expsyms
7281
7282 # Symbols that must always be exported.
7283 include_expsyms=$lt_include_expsyms
7284
7285 # ### END LIBTOOL CONFIG
7286
7287 __EOF__
7288
7289   case $host_os in
7290   aix3*)
7291     cat <<\EOF >> "${ofile}T"
7292
7293 # AIX sometimes has problems with the GCC collect2 program.  For some
7294 # reason, if we set the COLLECT_NAMES environment variable, the problems
7295 # vanish in a puff of smoke.
7296 if test "X${COLLECT_NAMES+set}" != Xset; then
7297   COLLECT_NAMES=
7298   export COLLECT_NAMES
7299 fi
7300 EOF
7301     ;;
7302   esac
7303
7304   case $host_os in
7305   cygwin* | mingw* | pw32* | os2*)
7306     cat <<'EOF' >> "${ofile}T"
7307       # This is a source program that is used to create dlls on Windows
7308       # Don't remove nor modify the starting and closing comments
7309 # /* ltdll.c starts here */
7310 # #define WIN32_LEAN_AND_MEAN
7311 # #include <windows.h>
7312 # #undef WIN32_LEAN_AND_MEAN
7313 # #include <stdio.h>
7314 #
7315 # #ifndef __CYGWIN__
7316 # #  ifdef __CYGWIN32__
7317 # #    define __CYGWIN__ __CYGWIN32__
7318 # #  endif
7319 # #endif
7320 #
7321 # #ifdef __cplusplus
7322 # extern "C" {
7323 # #endif
7324 # BOOL APIENTRY DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved);
7325 # #ifdef __cplusplus
7326 # }
7327 # #endif
7328 #
7329 # #ifdef __CYGWIN__
7330 # #include <cygwin/cygwin_dll.h>
7331 # DECLARE_CYGWIN_DLL( DllMain );
7332 # #endif
7333 # HINSTANCE __hDllInstance_base;
7334 #
7335 # BOOL APIENTRY
7336 # DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved)
7337 # {
7338 #   __hDllInstance_base = hInst;
7339 #   return TRUE;
7340 # }
7341 # /* ltdll.c ends here */
7342         # This is a source program that is used to create import libraries
7343         # on Windows for dlls which lack them. Don't remove nor modify the
7344         # starting and closing comments
7345 # /* impgen.c starts here */
7346 # /*   Copyright (C) 1999-2000 Free Software Foundation, Inc.
7347 #
7348 #  This file is part of GNU libtool.
7349 #
7350 #  This program is free software; you can redistribute it and/or modify
7351 #  it under the terms of the GNU General Public License as published by
7352 #  the Free Software Foundation; either version 2 of the License, or
7353 #  (at your option) any later version.
7354 #
7355 #  This program is distributed in the hope that it will be useful,
7356 #  but WITHOUT ANY WARRANTY; without even the implied warranty of
7357 #  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
7358 #  GNU General Public License for more details.
7359 #
7360 #  You should have received a copy of the GNU General Public License
7361 #  along with this program; if not, write to the Free Software
7362 #  Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
7363 #  */
7364 #
7365 # #include <stdio.h>            /* for printf() */
7366 # #include <unistd.h>           /* for open(), lseek(), read() */
7367 # #include <fcntl.h>            /* for O_RDONLY, O_BINARY */
7368 # #include <string.h>           /* for strdup() */
7369 #
7370 # /* O_BINARY isn't required (or even defined sometimes) under Unix */
7371 # #ifndef O_BINARY
7372 # #define O_BINARY 0
7373 # #endif
7374 #
7375 # static unsigned int
7376 # pe_get16 (fd, offset)
7377 #      int fd;
7378 #      int offset;
7379 # {
7380 #   unsigned char b[2];
7381 #   lseek (fd, offset, SEEK_SET);
7382 #   read (fd, b, 2);
7383 #   return b[0] + (b[1]<<8);
7384 # }
7385 #
7386 # static unsigned int
7387 # pe_get32 (fd, offset)
7388 #     int fd;
7389 #     int offset;
7390 # {
7391 #   unsigned char b[4];
7392 #   lseek (fd, offset, SEEK_SET);
7393 #   read (fd, b, 4);
7394 #   return b[0] + (b[1]<<8) + (b[2]<<16) + (b[3]<<24);
7395 # }
7396 #
7397 # static unsigned int
7398 # pe_as32 (ptr)
7399 #      void *ptr;
7400 # {
7401 #   unsigned char *b = ptr;
7402 #   return b[0] + (b[1]<<8) + (b[2]<<16) + (b[3]<<24);
7403 # }
7404 #
7405 # int
7406 # main (argc, argv)
7407 #     int argc;
7408 #     char *argv[];
7409 # {
7410 #     int dll;
7411 #     unsigned long pe_header_offset, opthdr_ofs, num_entries, i;
7412 #     unsigned long export_rva, export_size, nsections, secptr, expptr;
7413 #     unsigned long name_rvas, nexp;
7414 #     unsigned char *expdata, *erva;
7415 #     char *filename, *dll_name;
7416 #
7417 #     filename = argv[1];
7418 #
7419 #     dll = open(filename, O_RDONLY|O_BINARY);
7420 #     if (dll < 1)
7421 #       return 1;
7422 #
7423 #     dll_name = filename;
7424 #
7425 #     for (i=0; filename[i]; i++)
7426 #       if (filename[i] == '/' || filename[i] == '\\'  || filename[i] == ':')
7427 #           dll_name = filename + i +1;
7428 #
7429 #     pe_header_offset = pe_get32 (dll, 0x3c);
7430 #     opthdr_ofs = pe_header_offset + 4 + 20;
7431 #     num_entries = pe_get32 (dll, opthdr_ofs + 92);
7432 #
7433 #     if (num_entries < 1) /* no exports */
7434 #       return 1;
7435 #
7436 #     export_rva = pe_get32 (dll, opthdr_ofs + 96);
7437 #     export_size = pe_get32 (dll, opthdr_ofs + 100);
7438 #     nsections = pe_get16 (dll, pe_header_offset + 4 +2);
7439 #     secptr = (pe_header_offset + 4 + 20 +
7440 #             pe_get16 (dll, pe_header_offset + 4 + 16));
7441 #
7442 #     expptr = 0;
7443 #     for (i = 0; i < nsections; i++)
7444 #     {
7445 #       char sname[8];
7446 #       unsigned long secptr1 = secptr + 40 * i;
7447 #       unsigned long vaddr = pe_get32 (dll, secptr1 + 12);
7448 #       unsigned long vsize = pe_get32 (dll, secptr1 + 16);
7449 #       unsigned long fptr = pe_get32 (dll, secptr1 + 20);
7450 #       lseek(dll, secptr1, SEEK_SET);
7451 #       read(dll, sname, 8);
7452 #       if (vaddr <= export_rva && vaddr+vsize > export_rva)
7453 #       {
7454 #           expptr = fptr + (export_rva - vaddr);
7455 #           if (export_rva + export_size > vaddr + vsize)
7456 #               export_size = vsize - (export_rva - vaddr);
7457 #           break;
7458 #       }
7459 #     }
7460 #
7461 #     expdata = (unsigned char*)malloc(export_size);
7462 #     lseek (dll, expptr, SEEK_SET);
7463 #     read (dll, expdata, export_size);
7464 #     erva = expdata - export_rva;
7465 #
7466 #     nexp = pe_as32 (expdata+24);
7467 #     name_rvas = pe_as32 (expdata+32);
7468 #
7469 #     printf ("EXPORTS\n");
7470 #     for (i = 0; i<nexp; i++)
7471 #     {
7472 #       unsigned long name_rva = pe_as32 (erva+name_rvas+i*4);
7473 #       printf ("\t%s @ %ld ;\n", erva+name_rva, 1+ i);
7474 #     }
7475 #
7476 #     return 0;
7477 # }
7478 # /* impgen.c ends here */
7479
7480 EOF
7481     ;;
7482   esac
7483
7484   # We use sed instead of cat because bash on DJGPP gets confused if
7485   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
7486   # text mode, it properly converts lines to CR/LF.  This bash problem
7487   # is reportedly fixed, but why not run on old versions too?
7488   sed '$q' "$ltmain" >> "${ofile}T" || (rm -f "${ofile}T"; exit 1)
7489
7490   mv -f "${ofile}T" "$ofile" || \
7491     (rm -f "$ofile" && cp "${ofile}T" "$ofile" && rm -f "${ofile}T")
7492   chmod +x "$ofile"
7493 fi
7494 ##
7495 ## END FIXME
7496
7497
7498
7499
7500
7501 # This can be used to rebuild libtool when needed
7502 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
7503
7504 # Always use our own libtool.
7505 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7506
7507 # Prevent multiple expansion
7508
7509
7510
7511 # Extract the first word of "ar", so it can be a program name with args.
7512 set dummy ar; ac_word=$2
7513 echo "$as_me:$LINENO: checking for $ac_word" >&5
7514 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7515 if test "${ac_cv_path_AR+set}" = set; then
7516   echo $ECHO_N "(cached) $ECHO_C" >&6
7517 else
7518   case $AR in
7519   [\\/]* | ?:[\\/]*)
7520   ac_cv_path_AR="$AR" # Let the user override the test with a path.
7521   ;;
7522   *)
7523   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7524 for as_dir in $PATH
7525 do
7526   IFS=$as_save_IFS
7527   test -z "$as_dir" && as_dir=.
7528   for ac_exec_ext in '' $ac_executable_extensions; do
7529   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7530     ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext"
7531     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7532     break 2
7533   fi
7534 done
7535 done
7536
7537   ;;
7538 esac
7539 fi
7540 AR=$ac_cv_path_AR
7541
7542 if test -n "$AR"; then
7543   echo "$as_me:$LINENO: result: $AR" >&5
7544 echo "${ECHO_T}$AR" >&6
7545 else
7546   echo "$as_me:$LINENO: result: no" >&5
7547 echo "${ECHO_T}no" >&6
7548 fi
7549
7550 # Extract the first word of "sed", so it can be a program name with args.
7551 set dummy sed; ac_word=$2
7552 echo "$as_me:$LINENO: checking for $ac_word" >&5
7553 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7554 if test "${ac_cv_path_SED+set}" = set; then
7555   echo $ECHO_N "(cached) $ECHO_C" >&6
7556 else
7557   case $SED in
7558   [\\/]* | ?:[\\/]*)
7559   ac_cv_path_SED="$SED" # Let the user override the test with a path.
7560   ;;
7561   *)
7562   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7563 for as_dir in $PATH
7564 do
7565   IFS=$as_save_IFS
7566   test -z "$as_dir" && as_dir=.
7567   for ac_exec_ext in '' $ac_executable_extensions; do
7568   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7569     ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
7570     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7571     break 2
7572   fi
7573 done
7574 done
7575
7576   ;;
7577 esac
7578 fi
7579 SED=$ac_cv_path_SED
7580
7581 if test -n "$SED"; then
7582   echo "$as_me:$LINENO: result: $SED" >&5
7583 echo "${ECHO_T}$SED" >&6
7584 else
7585   echo "$as_me:$LINENO: result: no" >&5
7586 echo "${ECHO_T}no" >&6
7587 fi
7588
7589 # Extract the first word of "rm", so it can be a program name with args.
7590 set dummy rm; ac_word=$2
7591 echo "$as_me:$LINENO: checking for $ac_word" >&5
7592 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7593 if test "${ac_cv_path_RM+set}" = set; then
7594   echo $ECHO_N "(cached) $ECHO_C" >&6
7595 else
7596   case $RM in
7597   [\\/]* | ?:[\\/]*)
7598   ac_cv_path_RM="$RM" # Let the user override the test with a path.
7599   ;;
7600   *)
7601   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7602 for as_dir in $PATH
7603 do
7604   IFS=$as_save_IFS
7605   test -z "$as_dir" && as_dir=.
7606   for ac_exec_ext in '' $ac_executable_extensions; do
7607   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7608     ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
7609     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7610     break 2
7611   fi
7612 done
7613 done
7614
7615   ;;
7616 esac
7617 fi
7618 RM=$ac_cv_path_RM
7619
7620 if test -n "$RM"; then
7621   echo "$as_me:$LINENO: result: $RM" >&5
7622 echo "${ECHO_T}$RM" >&6
7623 else
7624   echo "$as_me:$LINENO: result: no" >&5
7625 echo "${ECHO_T}no" >&6
7626 fi
7627
7628 # Extract the first word of "echo", so it can be a program name with args.
7629 set dummy echo; ac_word=$2
7630 echo "$as_me:$LINENO: checking for $ac_word" >&5
7631 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7632 if test "${ac_cv_path_ECHO+set}" = set; then
7633   echo $ECHO_N "(cached) $ECHO_C" >&6
7634 else
7635   case $ECHO in
7636   [\\/]* | ?:[\\/]*)
7637   ac_cv_path_ECHO="$ECHO" # Let the user override the test with a path.
7638   ;;
7639   *)
7640   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7641 for as_dir in $PATH
7642 do
7643   IFS=$as_save_IFS
7644   test -z "$as_dir" && as_dir=.
7645   for ac_exec_ext in '' $ac_executable_extensions; do
7646   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7647     ac_cv_path_ECHO="$as_dir/$ac_word$ac_exec_ext"
7648     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7649     break 2
7650   fi
7651 done
7652 done
7653
7654   ;;
7655 esac
7656 fi
7657 ECHO=$ac_cv_path_ECHO
7658
7659 if test -n "$ECHO"; then
7660   echo "$as_me:$LINENO: result: $ECHO" >&5
7661 echo "${ECHO_T}$ECHO" >&6
7662 else
7663   echo "$as_me:$LINENO: result: no" >&5
7664 echo "${ECHO_T}no" >&6
7665 fi
7666
7667 # Extract the first word of "mkdir", so it can be a program name with args.
7668 set dummy mkdir; ac_word=$2
7669 echo "$as_me:$LINENO: checking for $ac_word" >&5
7670 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7671 if test "${ac_cv_path_MKDIR+set}" = set; then
7672   echo $ECHO_N "(cached) $ECHO_C" >&6
7673 else
7674   case $MKDIR in
7675   [\\/]* | ?:[\\/]*)
7676   ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
7677   ;;
7678   *)
7679   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7680 for as_dir in $PATH
7681 do
7682   IFS=$as_save_IFS
7683   test -z "$as_dir" && as_dir=.
7684   for ac_exec_ext in '' $ac_executable_extensions; do
7685   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7686     ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
7687     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7688     break 2
7689   fi
7690 done
7691 done
7692
7693   ;;
7694 esac
7695 fi
7696 MKDIR=$ac_cv_path_MKDIR
7697
7698 if test -n "$MKDIR"; then
7699   echo "$as_me:$LINENO: result: $MKDIR" >&5
7700 echo "${ECHO_T}$MKDIR" >&6
7701 else
7702   echo "$as_me:$LINENO: result: no" >&5
7703 echo "${ECHO_T}no" >&6
7704 fi
7705
7706 # Extract the first word of "date", so it can be a program name with args.
7707 set dummy date; ac_word=$2
7708 echo "$as_me:$LINENO: checking for $ac_word" >&5
7709 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7710 if test "${ac_cv_path_DATE+set}" = set; then
7711   echo $ECHO_N "(cached) $ECHO_C" >&6
7712 else
7713   case $DATE in
7714   [\\/]* | ?:[\\/]*)
7715   ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
7716   ;;
7717   *)
7718   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7719 for as_dir in $PATH
7720 do
7721   IFS=$as_save_IFS
7722   test -z "$as_dir" && as_dir=.
7723   for ac_exec_ext in '' $ac_executable_extensions; do
7724   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7725     ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
7726     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7727     break 2
7728   fi
7729 done
7730 done
7731
7732   ;;
7733 esac
7734 fi
7735 DATE=$ac_cv_path_DATE
7736
7737 if test -n "$DATE"; then
7738   echo "$as_me:$LINENO: result: $DATE" >&5
7739 echo "${ECHO_T}$DATE" >&6
7740 else
7741   echo "$as_me:$LINENO: result: no" >&5
7742 echo "${ECHO_T}no" >&6
7743 fi
7744
7745 # Extract the first word of "mv", so it can be a program name with args.
7746 set dummy mv; ac_word=$2
7747 echo "$as_me:$LINENO: checking for $ac_word" >&5
7748 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7749 if test "${ac_cv_path_MV+set}" = set; then
7750   echo $ECHO_N "(cached) $ECHO_C" >&6
7751 else
7752   case $MV in
7753   [\\/]* | ?:[\\/]*)
7754   ac_cv_path_MV="$MV" # Let the user override the test with a path.
7755   ;;
7756   *)
7757   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7758 for as_dir in $PATH
7759 do
7760   IFS=$as_save_IFS
7761   test -z "$as_dir" && as_dir=.
7762   for ac_exec_ext in '' $ac_executable_extensions; do
7763   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7764     ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
7765     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7766     break 2
7767   fi
7768 done
7769 done
7770
7771   ;;
7772 esac
7773 fi
7774 MV=$ac_cv_path_MV
7775
7776 if test -n "$MV"; then
7777   echo "$as_me:$LINENO: result: $MV" >&5
7778 echo "${ECHO_T}$MV" >&6
7779 else
7780   echo "$as_me:$LINENO: result: no" >&5
7781 echo "${ECHO_T}no" >&6
7782 fi
7783
7784 # Extract the first word of "dot", so it can be a program name with args.
7785 set dummy dot; ac_word=$2
7786 echo "$as_me:$LINENO: checking for $ac_word" >&5
7787 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7788 if test "${ac_cv_path_DOT+set}" = set; then
7789   echo $ECHO_N "(cached) $ECHO_C" >&6
7790 else
7791   case $DOT in
7792   [\\/]* | ?:[\\/]*)
7793   ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
7794   ;;
7795   *)
7796   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7797 for as_dir in $PATH
7798 do
7799   IFS=$as_save_IFS
7800   test -z "$as_dir" && as_dir=.
7801   for ac_exec_ext in '' $ac_executable_extensions; do
7802   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7803     ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
7804     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7805     break 2
7806   fi
7807 done
7808 done
7809
7810   ;;
7811 esac
7812 fi
7813 DOT=$ac_cv_path_DOT
7814
7815 if test -n "$DOT"; then
7816   echo "$as_me:$LINENO: result: $DOT" >&5
7817 echo "${ECHO_T}$DOT" >&6
7818 else
7819   echo "$as_me:$LINENO: result: no" >&5
7820 echo "${ECHO_T}no" >&6
7821 fi
7822
7823 # Extract the first word of "etags", so it can be a program name with args.
7824 set dummy etags; ac_word=$2
7825 echo "$as_me:$LINENO: checking for $ac_word" >&5
7826 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7827 if test "${ac_cv_path_ETAGS+set}" = set; then
7828   echo $ECHO_N "(cached) $ECHO_C" >&6
7829 else
7830   case $ETAGS in
7831   [\\/]* | ?:[\\/]*)
7832   ac_cv_path_ETAGS="$ETAGS" # Let the user override the test with a path.
7833   ;;
7834   *)
7835   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7836 for as_dir in $PATH
7837 do
7838   IFS=$as_save_IFS
7839   test -z "$as_dir" && as_dir=.
7840   for ac_exec_ext in '' $ac_executable_extensions; do
7841   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7842     ac_cv_path_ETAGS="$as_dir/$ac_word$ac_exec_ext"
7843     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7844     break 2
7845   fi
7846 done
7847 done
7848
7849   ;;
7850 esac
7851 fi
7852 ETAGS=$ac_cv_path_ETAGS
7853
7854 if test -n "$ETAGS"; then
7855   echo "$as_me:$LINENO: result: $ETAGS" >&5
7856 echo "${ECHO_T}$ETAGS" >&6
7857 else
7858   echo "$as_me:$LINENO: result: no" >&5
7859 echo "${ECHO_T}no" >&6
7860 fi
7861
7862 # Extract the first word of "purify", so it can be a program name with args.
7863 set dummy purify; ac_word=$2
7864 echo "$as_me:$LINENO: checking for $ac_word" >&5
7865 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7866 if test "${ac_cv_path_PURIFY+set}" = set; then
7867   echo $ECHO_N "(cached) $ECHO_C" >&6
7868 else
7869   case $PURIFY in
7870   [\\/]* | ?:[\\/]*)
7871   ac_cv_path_PURIFY="$PURIFY" # Let the user override the test with a path.
7872   ;;
7873   *)
7874   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7875 for as_dir in $PATH
7876 do
7877   IFS=$as_save_IFS
7878   test -z "$as_dir" && as_dir=.
7879   for ac_exec_ext in '' $ac_executable_extensions; do
7880   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7881     ac_cv_path_PURIFY="$as_dir/$ac_word$ac_exec_ext"
7882     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7883     break 2
7884   fi
7885 done
7886 done
7887
7888   ;;
7889 esac
7890 fi
7891 PURIFY=$ac_cv_path_PURIFY
7892
7893 if test -n "$PURIFY"; then
7894   echo "$as_me:$LINENO: result: $PURIFY" >&5
7895 echo "${ECHO_T}$PURIFY" >&6
7896 else
7897   echo "$as_me:$LINENO: result: no" >&5
7898 echo "${ECHO_T}no" >&6
7899 fi
7900
7901
7902
7903
7904
7905
7906 echo "$as_me:$LINENO: checking for elf_begin in -lelf" >&5
7907 echo $ECHO_N "checking for elf_begin in -lelf... $ECHO_C" >&6
7908 if test "${ac_cv_lib_elf_elf_begin+set}" = set; then
7909   echo $ECHO_N "(cached) $ECHO_C" >&6
7910 else
7911   ac_check_lib_save_LIBS=$LIBS
7912 LIBS="-lelf  $LIBS"
7913 cat >conftest.$ac_ext <<_ACEOF
7914 #line $LINENO "configure"
7915 #include "confdefs.h"
7916
7917 /* Override any gcc2 internal prototype to avoid an error.  */
7918 #ifdef __cplusplus
7919 extern "C"
7920 #endif
7921 /* We use char because int might match the return type of a gcc2
7922    builtin and then its argument prototype would still apply.  */
7923 char elf_begin ();
7924 #ifdef F77_DUMMY_MAIN
7925 #  ifdef __cplusplus
7926      extern "C"
7927 #  endif
7928    int F77_DUMMY_MAIN() { return 1; }
7929 #endif
7930 int
7931 main ()
7932 {
7933 elf_begin ();
7934   ;
7935   return 0;
7936 }
7937 _ACEOF
7938 rm -f conftest.$ac_objext conftest$ac_exeext
7939 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7940   (eval $ac_link) 2>&5
7941   ac_status=$?
7942   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7943   (exit $ac_status); } &&
7944          { ac_try='test -s conftest$ac_exeext'
7945   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7946   (eval $ac_try) 2>&5
7947   ac_status=$?
7948   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7949   (exit $ac_status); }; }; then
7950   ac_cv_lib_elf_elf_begin=yes
7951 else
7952   echo "$as_me: failed program was:" >&5
7953 cat conftest.$ac_ext >&5
7954 ac_cv_lib_elf_elf_begin=no
7955 fi
7956 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7957 LIBS=$ac_check_lib_save_LIBS
7958 fi
7959 echo "$as_me:$LINENO: result: $ac_cv_lib_elf_elf_begin" >&5
7960 echo "${ECHO_T}$ac_cv_lib_elf_elf_begin" >&6
7961 if test $ac_cv_lib_elf_elf_begin = yes; then
7962   cat >>confdefs.h <<_ACEOF
7963 #define HAVE_LIBELF 1
7964 _ACEOF
7965
7966   LIBS="-lelf $LIBS"
7967
7968 fi
7969
7970
7971 echo "$as_me:$LINENO: checking for library containing dlopen" >&5
7972 echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6
7973 if test "${ac_cv_search_dlopen+set}" = set; then
7974   echo $ECHO_N "(cached) $ECHO_C" >&6
7975 else
7976   ac_func_search_save_LIBS=$LIBS
7977 ac_cv_search_dlopen=no
7978 cat >conftest.$ac_ext <<_ACEOF
7979 #line $LINENO "configure"
7980 #include "confdefs.h"
7981
7982 /* Override any gcc2 internal prototype to avoid an error.  */
7983 #ifdef __cplusplus
7984 extern "C"
7985 #endif
7986 /* We use char because int might match the return type of a gcc2
7987    builtin and then its argument prototype would still apply.  */
7988 char dlopen ();
7989 #ifdef F77_DUMMY_MAIN
7990 #  ifdef __cplusplus
7991      extern "C"
7992 #  endif
7993    int F77_DUMMY_MAIN() { return 1; }
7994 #endif
7995 int
7996 main ()
7997 {
7998 dlopen ();
7999   ;
8000   return 0;
8001 }
8002 _ACEOF
8003 rm -f conftest.$ac_objext conftest$ac_exeext
8004 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8005   (eval $ac_link) 2>&5
8006   ac_status=$?
8007   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8008   (exit $ac_status); } &&
8009          { ac_try='test -s conftest$ac_exeext'
8010   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8011   (eval $ac_try) 2>&5
8012   ac_status=$?
8013   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8014   (exit $ac_status); }; }; then
8015   ac_cv_search_dlopen="none required"
8016 else
8017   echo "$as_me: failed program was:" >&5
8018 cat conftest.$ac_ext >&5
8019 fi
8020 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8021 if test "$ac_cv_search_dlopen" = no; then
8022   for ac_lib in dl; do
8023     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
8024     cat >conftest.$ac_ext <<_ACEOF
8025 #line $LINENO "configure"
8026 #include "confdefs.h"
8027
8028 /* Override any gcc2 internal prototype to avoid an error.  */
8029 #ifdef __cplusplus
8030 extern "C"
8031 #endif
8032 /* We use char because int might match the return type of a gcc2
8033    builtin and then its argument prototype would still apply.  */
8034 char dlopen ();
8035 #ifdef F77_DUMMY_MAIN
8036 #  ifdef __cplusplus
8037      extern "C"
8038 #  endif
8039    int F77_DUMMY_MAIN() { return 1; }
8040 #endif
8041 int
8042 main ()
8043 {
8044 dlopen ();
8045   ;
8046   return 0;
8047 }
8048 _ACEOF
8049 rm -f conftest.$ac_objext conftest$ac_exeext
8050 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8051   (eval $ac_link) 2>&5
8052   ac_status=$?
8053   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8054   (exit $ac_status); } &&
8055          { ac_try='test -s conftest$ac_exeext'
8056   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8057   (eval $ac_try) 2>&5
8058   ac_status=$?
8059   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8060   (exit $ac_status); }; }; then
8061   ac_cv_search_dlopen="-l$ac_lib"
8062 break
8063 else
8064   echo "$as_me: failed program was:" >&5
8065 cat conftest.$ac_ext >&5
8066 fi
8067 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8068   done
8069 fi
8070 LIBS=$ac_func_search_save_LIBS
8071 fi
8072 echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
8073 echo "${ECHO_T}$ac_cv_search_dlopen" >&6
8074 if test "$ac_cv_search_dlopen" != no; then
8075   test "$ac_cv_search_dlopen" = "none required" || LIBS="$ac_cv_search_dlopen $LIBS"
8076
8077 else
8078   { { echo "$as_me:$LINENO: error: dlopen() required but not found" >&5
8079 echo "$as_me: error: dlopen() required but not found" >&2;}
8080    { (exit 1); exit 1; }; }
8081 fi
8082
8083
8084 echo "$as_me:$LINENO: checking for library containing mallinfo" >&5
8085 echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6
8086 if test "${ac_cv_search_mallinfo+set}" = set; then
8087   echo $ECHO_N "(cached) $ECHO_C" >&6
8088 else
8089   ac_func_search_save_LIBS=$LIBS
8090 ac_cv_search_mallinfo=no
8091 cat >conftest.$ac_ext <<_ACEOF
8092 #line $LINENO "configure"
8093 #include "confdefs.h"
8094
8095 /* Override any gcc2 internal prototype to avoid an error.  */
8096 #ifdef __cplusplus
8097 extern "C"
8098 #endif
8099 /* We use char because int might match the return type of a gcc2
8100    builtin and then its argument prototype would still apply.  */
8101 char mallinfo ();
8102 #ifdef F77_DUMMY_MAIN
8103 #  ifdef __cplusplus
8104      extern "C"
8105 #  endif
8106    int F77_DUMMY_MAIN() { return 1; }
8107 #endif
8108 int
8109 main ()
8110 {
8111 mallinfo ();
8112   ;
8113   return 0;
8114 }
8115 _ACEOF
8116 rm -f conftest.$ac_objext conftest$ac_exeext
8117 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8118   (eval $ac_link) 2>&5
8119   ac_status=$?
8120   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8121   (exit $ac_status); } &&
8122          { ac_try='test -s conftest$ac_exeext'
8123   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8124   (eval $ac_try) 2>&5
8125   ac_status=$?
8126   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8127   (exit $ac_status); }; }; then
8128   ac_cv_search_mallinfo="none required"
8129 else
8130   echo "$as_me: failed program was:" >&5
8131 cat conftest.$ac_ext >&5
8132 fi
8133 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8134 if test "$ac_cv_search_mallinfo" = no; then
8135   for ac_lib in malloc; do
8136     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
8137     cat >conftest.$ac_ext <<_ACEOF
8138 #line $LINENO "configure"
8139 #include "confdefs.h"
8140
8141 /* Override any gcc2 internal prototype to avoid an error.  */
8142 #ifdef __cplusplus
8143 extern "C"
8144 #endif
8145 /* We use char because int might match the return type of a gcc2
8146    builtin and then its argument prototype would still apply.  */
8147 char mallinfo ();
8148 #ifdef F77_DUMMY_MAIN
8149 #  ifdef __cplusplus
8150      extern "C"
8151 #  endif
8152    int F77_DUMMY_MAIN() { return 1; }
8153 #endif
8154 int
8155 main ()
8156 {
8157 mallinfo ();
8158   ;
8159   return 0;
8160 }
8161 _ACEOF
8162 rm -f conftest.$ac_objext conftest$ac_exeext
8163 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8164   (eval $ac_link) 2>&5
8165   ac_status=$?
8166   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8167   (exit $ac_status); } &&
8168          { ac_try='test -s conftest$ac_exeext'
8169   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8170   (eval $ac_try) 2>&5
8171   ac_status=$?
8172   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8173   (exit $ac_status); }; }; then
8174   ac_cv_search_mallinfo="-l$ac_lib"
8175 break
8176 else
8177   echo "$as_me: failed program was:" >&5
8178 cat conftest.$ac_ext >&5
8179 fi
8180 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8181   done
8182 fi
8183 LIBS=$ac_func_search_save_LIBS
8184 fi
8185 echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5
8186 echo "${ECHO_T}$ac_cv_search_mallinfo" >&6
8187 if test "$ac_cv_search_mallinfo" != no; then
8188   test "$ac_cv_search_mallinfo" = "none required" || LIBS="$ac_cv_search_mallinfo $LIBS"
8189   cat >>confdefs.h <<\_ACEOF
8190 #define HAVE_MALLINFO 1
8191 _ACEOF
8192
8193 fi
8194
8195
8196
8197 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
8198 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
8199 if test "${ac_cv_header_stdc+set}" = set; then
8200   echo $ECHO_N "(cached) $ECHO_C" >&6
8201 else
8202   cat >conftest.$ac_ext <<_ACEOF
8203 #line $LINENO "configure"
8204 #include "confdefs.h"
8205 #include <stdlib.h>
8206 #include <stdarg.h>
8207 #include <string.h>
8208 #include <float.h>
8209
8210 _ACEOF
8211 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8212   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8213   ac_status=$?
8214   egrep -v '^ *\+' conftest.er1 >conftest.err
8215   rm -f conftest.er1
8216   cat conftest.err >&5
8217   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8218   (exit $ac_status); } >/dev/null; then
8219   if test -s conftest.err; then
8220     ac_cpp_err=$ac_c_preproc_warn_flag
8221   else
8222     ac_cpp_err=
8223   fi
8224 else
8225   ac_cpp_err=yes
8226 fi
8227 if test -z "$ac_cpp_err"; then
8228   ac_cv_header_stdc=yes
8229 else
8230   echo "$as_me: failed program was:" >&5
8231   cat conftest.$ac_ext >&5
8232   ac_cv_header_stdc=no
8233 fi
8234 rm -f conftest.err conftest.$ac_ext
8235
8236 if test $ac_cv_header_stdc = yes; then
8237   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8238   cat >conftest.$ac_ext <<_ACEOF
8239 #line $LINENO "configure"
8240 #include "confdefs.h"
8241 #include <string.h>
8242
8243 _ACEOF
8244 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8245   egrep "memchr" >/dev/null 2>&1; then
8246   :
8247 else
8248   ac_cv_header_stdc=no
8249 fi
8250 rm -f conftest*
8251
8252 fi
8253
8254 if test $ac_cv_header_stdc = yes; then
8255   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8256   cat >conftest.$ac_ext <<_ACEOF
8257 #line $LINENO "configure"
8258 #include "confdefs.h"
8259 #include <stdlib.h>
8260
8261 _ACEOF
8262 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8263   egrep "free" >/dev/null 2>&1; then
8264   :
8265 else
8266   ac_cv_header_stdc=no
8267 fi
8268 rm -f conftest*
8269
8270 fi
8271
8272 if test $ac_cv_header_stdc = yes; then
8273   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8274   if test "$cross_compiling" = yes; then
8275   :
8276 else
8277   cat >conftest.$ac_ext <<_ACEOF
8278 #line $LINENO "configure"
8279 #include "confdefs.h"
8280 #include <ctype.h>
8281 #if ((' ' & 0x0FF) == 0x020)
8282 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8283 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8284 #else
8285 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
8286                      || ('j' <= (c) && (c) <= 'r') \
8287                      || ('s' <= (c) && (c) <= 'z'))
8288 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8289 #endif
8290
8291 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8292 int
8293 main ()
8294 {
8295   int i;
8296   for (i = 0; i < 256; i++)
8297     if (XOR (islower (i), ISLOWER (i))
8298         || toupper (i) != TOUPPER (i))
8299       exit(2);
8300   exit (0);
8301 }
8302 _ACEOF
8303 rm -f conftest$ac_exeext
8304 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8305   (eval $ac_link) 2>&5
8306   ac_status=$?
8307   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8308   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8309   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8310   (eval $ac_try) 2>&5
8311   ac_status=$?
8312   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8313   (exit $ac_status); }; }; then
8314   :
8315 else
8316   echo "$as_me: program exited with status $ac_status" >&5
8317 echo "$as_me: failed program was:" >&5
8318 cat conftest.$ac_ext >&5
8319 ( exit $ac_status )
8320 ac_cv_header_stdc=no
8321 fi
8322 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8323 fi
8324 fi
8325 fi
8326 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
8327 echo "${ECHO_T}$ac_cv_header_stdc" >&6
8328 if test $ac_cv_header_stdc = yes; then
8329
8330 cat >>confdefs.h <<\_ACEOF
8331 #define STDC_HEADERS 1
8332 _ACEOF
8333
8334 fi
8335
8336 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
8337 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
8338 if test "${ac_cv_header_sys_wait_h+set}" = set; then
8339   echo $ECHO_N "(cached) $ECHO_C" >&6
8340 else
8341   cat >conftest.$ac_ext <<_ACEOF
8342 #line $LINENO "configure"
8343 #include "confdefs.h"
8344 #include <sys/types.h>
8345 #include <sys/wait.h>
8346 #ifndef WEXITSTATUS
8347 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
8348 #endif
8349 #ifndef WIFEXITED
8350 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
8351 #endif
8352
8353 #ifdef F77_DUMMY_MAIN
8354 #  ifdef __cplusplus
8355      extern "C"
8356 #  endif
8357    int F77_DUMMY_MAIN() { return 1; }
8358 #endif
8359 int
8360 main ()
8361 {
8362   int s;
8363   wait (&s);
8364   s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
8365   ;
8366   return 0;
8367 }
8368 _ACEOF
8369 rm -f conftest.$ac_objext
8370 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8371   (eval $ac_compile) 2>&5
8372   ac_status=$?
8373   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8374   (exit $ac_status); } &&
8375          { ac_try='test -s conftest.$ac_objext'
8376   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8377   (eval $ac_try) 2>&5
8378   ac_status=$?
8379   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8380   (exit $ac_status); }; }; then
8381   ac_cv_header_sys_wait_h=yes
8382 else
8383   echo "$as_me: failed program was:" >&5
8384 cat conftest.$ac_ext >&5
8385 ac_cv_header_sys_wait_h=no
8386 fi
8387 rm -f conftest.$ac_objext conftest.$ac_ext
8388 fi
8389 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
8390 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
8391 if test $ac_cv_header_sys_wait_h = yes; then
8392
8393 cat >>confdefs.h <<\_ACEOF
8394 #define HAVE_SYS_WAIT_H 1
8395 _ACEOF
8396
8397 fi
8398
8399
8400
8401
8402
8403
8404
8405
8406
8407
8408 for ac_header in assert.h fcntl.h limits.h sys/time.h unistd.h errno.h signal.h math.h
8409 do
8410 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8411 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8412   echo "$as_me:$LINENO: checking for $ac_header" >&5
8413 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8414 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8415   echo $ECHO_N "(cached) $ECHO_C" >&6
8416 fi
8417 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8418 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8419 else
8420   # Is the header compilable?
8421 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8422 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8423 cat >conftest.$ac_ext <<_ACEOF
8424 #line $LINENO "configure"
8425 #include "confdefs.h"
8426 $ac_includes_default
8427 #include <$ac_header>
8428 _ACEOF
8429 rm -f conftest.$ac_objext
8430 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8431   (eval $ac_compile) 2>&5
8432   ac_status=$?
8433   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8434   (exit $ac_status); } &&
8435          { ac_try='test -s conftest.$ac_objext'
8436   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8437   (eval $ac_try) 2>&5
8438   ac_status=$?
8439   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8440   (exit $ac_status); }; }; then
8441   ac_header_compiler=yes
8442 else
8443   echo "$as_me: failed program was:" >&5
8444 cat conftest.$ac_ext >&5
8445 ac_header_compiler=no
8446 fi
8447 rm -f conftest.$ac_objext conftest.$ac_ext
8448 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8449 echo "${ECHO_T}$ac_header_compiler" >&6
8450
8451 # Is the header present?
8452 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8453 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8454 cat >conftest.$ac_ext <<_ACEOF
8455 #line $LINENO "configure"
8456 #include "confdefs.h"
8457 #include <$ac_header>
8458 _ACEOF
8459 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8460   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8461   ac_status=$?
8462   egrep -v '^ *\+' conftest.er1 >conftest.err
8463   rm -f conftest.er1
8464   cat conftest.err >&5
8465   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8466   (exit $ac_status); } >/dev/null; then
8467   if test -s conftest.err; then
8468     ac_cpp_err=$ac_c_preproc_warn_flag
8469   else
8470     ac_cpp_err=
8471   fi
8472 else
8473   ac_cpp_err=yes
8474 fi
8475 if test -z "$ac_cpp_err"; then
8476   ac_header_preproc=yes
8477 else
8478   echo "$as_me: failed program was:" >&5
8479   cat conftest.$ac_ext >&5
8480   ac_header_preproc=no
8481 fi
8482 rm -f conftest.err conftest.$ac_ext
8483 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8484 echo "${ECHO_T}$ac_header_preproc" >&6
8485
8486 # So?  What about this header?
8487 case $ac_header_compiler:$ac_header_preproc in
8488   yes:no )
8489     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8490 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8491     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8492 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
8493   no:yes )
8494     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8495 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8496     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8497 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8498     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8499 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
8500 esac
8501 echo "$as_me:$LINENO: checking for $ac_header" >&5
8502 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8503 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8504   echo $ECHO_N "(cached) $ECHO_C" >&6
8505 else
8506   eval "$as_ac_Header=$ac_header_preproc"
8507 fi
8508 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8509 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8510
8511 fi
8512 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8513   cat >>confdefs.h <<_ACEOF
8514 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8515 _ACEOF
8516
8517 fi
8518
8519 done
8520
8521
8522
8523
8524
8525
8526 for ac_header in malloc.h strings.h sys/mman.h sys/resource.h
8527 do
8528 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8529 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8530   echo "$as_me:$LINENO: checking for $ac_header" >&5
8531 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8532 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8533   echo $ECHO_N "(cached) $ECHO_C" >&6
8534 fi
8535 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8536 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8537 else
8538   # Is the header compilable?
8539 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8540 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8541 cat >conftest.$ac_ext <<_ACEOF
8542 #line $LINENO "configure"
8543 #include "confdefs.h"
8544 $ac_includes_default
8545 #include <$ac_header>
8546 _ACEOF
8547 rm -f conftest.$ac_objext
8548 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8549   (eval $ac_compile) 2>&5
8550   ac_status=$?
8551   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8552   (exit $ac_status); } &&
8553          { ac_try='test -s conftest.$ac_objext'
8554   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8555   (eval $ac_try) 2>&5
8556   ac_status=$?
8557   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8558   (exit $ac_status); }; }; then
8559   ac_header_compiler=yes
8560 else
8561   echo "$as_me: failed program was:" >&5
8562 cat conftest.$ac_ext >&5
8563 ac_header_compiler=no
8564 fi
8565 rm -f conftest.$ac_objext conftest.$ac_ext
8566 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8567 echo "${ECHO_T}$ac_header_compiler" >&6
8568
8569 # Is the header present?
8570 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8571 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8572 cat >conftest.$ac_ext <<_ACEOF
8573 #line $LINENO "configure"
8574 #include "confdefs.h"
8575 #include <$ac_header>
8576 _ACEOF
8577 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8578   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8579   ac_status=$?
8580   egrep -v '^ *\+' conftest.er1 >conftest.err
8581   rm -f conftest.er1
8582   cat conftest.err >&5
8583   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8584   (exit $ac_status); } >/dev/null; then
8585   if test -s conftest.err; then
8586     ac_cpp_err=$ac_c_preproc_warn_flag
8587   else
8588     ac_cpp_err=
8589   fi
8590 else
8591   ac_cpp_err=yes
8592 fi
8593 if test -z "$ac_cpp_err"; then
8594   ac_header_preproc=yes
8595 else
8596   echo "$as_me: failed program was:" >&5
8597   cat conftest.$ac_ext >&5
8598   ac_header_preproc=no
8599 fi
8600 rm -f conftest.err conftest.$ac_ext
8601 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8602 echo "${ECHO_T}$ac_header_preproc" >&6
8603
8604 # So?  What about this header?
8605 case $ac_header_compiler:$ac_header_preproc in
8606   yes:no )
8607     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8608 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8609     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8610 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
8611   no:yes )
8612     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8613 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8614     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8615 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8616     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8617 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
8618 esac
8619 echo "$as_me:$LINENO: checking for $ac_header" >&5
8620 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8621 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8622   echo $ECHO_N "(cached) $ECHO_C" >&6
8623 else
8624   eval "$as_ac_Header=$ac_header_preproc"
8625 fi
8626 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8627 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8628
8629 fi
8630 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8631   cat >>confdefs.h <<_ACEOF
8632 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8633 _ACEOF
8634
8635 fi
8636
8637 done
8638
8639
8640
8641
8642 for ac_header in dlfcn.h link.h
8643 do
8644 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8645 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8646   echo "$as_me:$LINENO: checking for $ac_header" >&5
8647 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8648 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8649   echo $ECHO_N "(cached) $ECHO_C" >&6
8650 fi
8651 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8652 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8653 else
8654   # Is the header compilable?
8655 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8656 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8657 cat >conftest.$ac_ext <<_ACEOF
8658 #line $LINENO "configure"
8659 #include "confdefs.h"
8660 $ac_includes_default
8661 #include <$ac_header>
8662 _ACEOF
8663 rm -f conftest.$ac_objext
8664 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8665   (eval $ac_compile) 2>&5
8666   ac_status=$?
8667   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8668   (exit $ac_status); } &&
8669          { ac_try='test -s conftest.$ac_objext'
8670   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8671   (eval $ac_try) 2>&5
8672   ac_status=$?
8673   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8674   (exit $ac_status); }; }; then
8675   ac_header_compiler=yes
8676 else
8677   echo "$as_me: failed program was:" >&5
8678 cat conftest.$ac_ext >&5
8679 ac_header_compiler=no
8680 fi
8681 rm -f conftest.$ac_objext conftest.$ac_ext
8682 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8683 echo "${ECHO_T}$ac_header_compiler" >&6
8684
8685 # Is the header present?
8686 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8687 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8688 cat >conftest.$ac_ext <<_ACEOF
8689 #line $LINENO "configure"
8690 #include "confdefs.h"
8691 #include <$ac_header>
8692 _ACEOF
8693 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8694   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8695   ac_status=$?
8696   egrep -v '^ *\+' conftest.er1 >conftest.err
8697   rm -f conftest.er1
8698   cat conftest.err >&5
8699   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8700   (exit $ac_status); } >/dev/null; then
8701   if test -s conftest.err; then
8702     ac_cpp_err=$ac_c_preproc_warn_flag
8703   else
8704     ac_cpp_err=
8705   fi
8706 else
8707   ac_cpp_err=yes
8708 fi
8709 if test -z "$ac_cpp_err"; then
8710   ac_header_preproc=yes
8711 else
8712   echo "$as_me: failed program was:" >&5
8713   cat conftest.$ac_ext >&5
8714   ac_header_preproc=no
8715 fi
8716 rm -f conftest.err conftest.$ac_ext
8717 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8718 echo "${ECHO_T}$ac_header_preproc" >&6
8719
8720 # So?  What about this header?
8721 case $ac_header_compiler:$ac_header_preproc in
8722   yes:no )
8723     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8724 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8725     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8726 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
8727   no:yes )
8728     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8729 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8730     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8731 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8732     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8733 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
8734 esac
8735 echo "$as_me:$LINENO: checking for $ac_header" >&5
8736 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8737 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8738   echo $ECHO_N "(cached) $ECHO_C" >&6
8739 else
8740   eval "$as_ac_Header=$ac_header_preproc"
8741 fi
8742 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8743 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8744
8745 fi
8746 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8747   cat >>confdefs.h <<_ACEOF
8748 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8749 _ACEOF
8750
8751 fi
8752
8753 done
8754
8755
8756
8757 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
8758 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
8759 if test "${ac_cv_prog_cc_stdc+set}" = set; then
8760   echo $ECHO_N "(cached) $ECHO_C" >&6
8761 else
8762   ac_cv_prog_cc_stdc=no
8763 ac_save_CC=$CC
8764 cat >conftest.$ac_ext <<_ACEOF
8765 #line $LINENO "configure"
8766 #include "confdefs.h"
8767 #include <stdarg.h>
8768 #include <stdio.h>
8769 #include <sys/types.h>
8770 #include <sys/stat.h>
8771 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
8772 struct buf { int x; };
8773 FILE * (*rcsopen) (struct buf *, struct stat *, int);
8774 static char *e (p, i)
8775      char **p;
8776      int i;
8777 {
8778   return p[i];
8779 }
8780 static char *f (char * (*g) (char **, int), char **p, ...)
8781 {
8782   char *s;
8783   va_list v;
8784   va_start (v,p);
8785   s = g (p, va_arg (v,int));
8786   va_end (v);
8787   return s;
8788 }
8789 int test (int i, double x);
8790 struct s1 {int (*f) (int a);};
8791 struct s2 {int (*f) (double a);};
8792 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
8793 int argc;
8794 char **argv;
8795 #ifdef F77_DUMMY_MAIN
8796 #  ifdef __cplusplus
8797      extern "C"
8798 #  endif
8799    int F77_DUMMY_MAIN() { return 1; }
8800 #endif
8801 int
8802 main ()
8803 {
8804 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
8805   ;
8806   return 0;
8807 }
8808 _ACEOF
8809 # Don't try gcc -ansi; that turns off useful extensions and
8810 # breaks some systems' header files.
8811 # AIX                   -qlanglvl=ansi
8812 # Ultrix and OSF/1      -std1
8813 # HP-UX 10.20 and later -Ae
8814 # HP-UX older versions  -Aa -D_HPUX_SOURCE
8815 # SVR4                  -Xc -D__EXTENSIONS__
8816 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
8817 do
8818   CC="$ac_save_CC $ac_arg"
8819   rm -f conftest.$ac_objext
8820 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8821   (eval $ac_compile) 2>&5
8822   ac_status=$?
8823   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8824   (exit $ac_status); } &&
8825          { ac_try='test -s conftest.$ac_objext'
8826   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8827   (eval $ac_try) 2>&5
8828   ac_status=$?
8829   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8830   (exit $ac_status); }; }; then
8831   ac_cv_prog_cc_stdc=$ac_arg
8832 break
8833 else
8834   echo "$as_me: failed program was:" >&5
8835 cat conftest.$ac_ext >&5
8836 fi
8837 rm -f conftest.$ac_objext
8838 done
8839 rm -f conftest.$ac_ext conftest.$ac_objext
8840 CC=$ac_save_CC
8841
8842 fi
8843
8844 case "x$ac_cv_prog_cc_stdc" in
8845   x|xno)
8846     echo "$as_me:$LINENO: result: none needed" >&5
8847 echo "${ECHO_T}none needed" >&6 ;;
8848   *)
8849     echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
8850 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
8851     CC="$CC $ac_cv_prog_cc_stdc" ;;
8852 esac
8853
8854 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
8855 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
8856 if test "${ac_cv_c_const+set}" = set; then
8857   echo $ECHO_N "(cached) $ECHO_C" >&6
8858 else
8859   cat >conftest.$ac_ext <<_ACEOF
8860 #line $LINENO "configure"
8861 #include "confdefs.h"
8862
8863 #ifdef F77_DUMMY_MAIN
8864 #  ifdef __cplusplus
8865      extern "C"
8866 #  endif
8867    int F77_DUMMY_MAIN() { return 1; }
8868 #endif
8869 int
8870 main ()
8871 {
8872 /* FIXME: Include the comments suggested by Paul. */
8873 #ifndef __cplusplus
8874   /* Ultrix mips cc rejects this.  */
8875   typedef int charset[2];
8876   const charset x;
8877   /* SunOS 4.1.1 cc rejects this.  */
8878   char const *const *ccp;
8879   char **p;
8880   /* NEC SVR4.0.2 mips cc rejects this.  */
8881   struct point {int x, y;};
8882   static struct point const zero = {0,0};
8883   /* AIX XL C 1.02.0.0 rejects this.
8884      It does not let you subtract one const X* pointer from another in
8885      an arm of an if-expression whose if-part is not a constant
8886      expression */
8887   const char *g = "string";
8888   ccp = &g + (g ? g-g : 0);
8889   /* HPUX 7.0 cc rejects these. */
8890   ++ccp;
8891   p = (char**) ccp;
8892   ccp = (char const *const *) p;
8893   { /* SCO 3.2v4 cc rejects this.  */
8894     char *t;
8895     char const *s = 0 ? (char *) 0 : (char const *) 0;
8896
8897     *t++ = 0;
8898   }
8899   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
8900     int x[] = {25, 17};
8901     const int *foo = &x[0];
8902     ++foo;
8903   }
8904   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
8905     typedef const int *iptr;
8906     iptr p = 0;
8907     ++p;
8908   }
8909   { /* AIX XL C 1.02.0.0 rejects this saying
8910        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
8911     struct s { int j; const int *ap[3]; };
8912     struct s *b; b->j = 5;
8913   }
8914   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
8915     const int foo = 10;
8916   }
8917 #endif
8918
8919   ;
8920   return 0;
8921 }
8922 _ACEOF
8923 rm -f conftest.$ac_objext
8924 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8925   (eval $ac_compile) 2>&5
8926   ac_status=$?
8927   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8928   (exit $ac_status); } &&
8929          { ac_try='test -s conftest.$ac_objext'
8930   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8931   (eval $ac_try) 2>&5
8932   ac_status=$?
8933   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8934   (exit $ac_status); }; }; then
8935   ac_cv_c_const=yes
8936 else
8937   echo "$as_me: failed program was:" >&5
8938 cat conftest.$ac_ext >&5
8939 ac_cv_c_const=no
8940 fi
8941 rm -f conftest.$ac_objext conftest.$ac_ext
8942 fi
8943 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
8944 echo "${ECHO_T}$ac_cv_c_const" >&6
8945 if test $ac_cv_c_const = no; then
8946
8947 cat >>confdefs.h <<\_ACEOF
8948 #define const
8949 _ACEOF
8950
8951 fi
8952
8953 echo "$as_me:$LINENO: checking for inline" >&5
8954 echo $ECHO_N "checking for inline... $ECHO_C" >&6
8955 if test "${ac_cv_c_inline+set}" = set; then
8956   echo $ECHO_N "(cached) $ECHO_C" >&6
8957 else
8958   ac_cv_c_inline=no
8959 for ac_kw in inline __inline__ __inline; do
8960   cat >conftest.$ac_ext <<_ACEOF
8961 #line $LINENO "configure"
8962 #include "confdefs.h"
8963 #ifndef __cplusplus
8964 static $ac_kw int static_foo () {return 0; }
8965 $ac_kw int foo () {return 0; }
8966 #endif
8967
8968 _ACEOF
8969 rm -f conftest.$ac_objext
8970 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8971   (eval $ac_compile) 2>&5
8972   ac_status=$?
8973   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8974   (exit $ac_status); } &&
8975          { ac_try='test -s conftest.$ac_objext'
8976   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8977   (eval $ac_try) 2>&5
8978   ac_status=$?
8979   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8980   (exit $ac_status); }; }; then
8981   ac_cv_c_inline=$ac_kw; break
8982 else
8983   echo "$as_me: failed program was:" >&5
8984 cat conftest.$ac_ext >&5
8985 fi
8986 rm -f conftest.$ac_objext conftest.$ac_ext
8987 done
8988
8989 fi
8990 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
8991 echo "${ECHO_T}$ac_cv_c_inline" >&6
8992 case $ac_cv_c_inline in
8993   inline | yes) ;;
8994   no)
8995 cat >>confdefs.h <<\_ACEOF
8996 #define inline
8997 _ACEOF
8998  ;;
8999   *)  cat >>confdefs.h <<_ACEOF
9000 #define inline $ac_cv_c_inline
9001 _ACEOF
9002  ;;
9003 esac
9004
9005
9006 echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
9007 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
9008 if test "${ac_cv_c_bigendian+set}" = set; then
9009   echo $ECHO_N "(cached) $ECHO_C" >&6
9010 else
9011   # See if sys/param.h defines the BYTE_ORDER macro.
9012 cat >conftest.$ac_ext <<_ACEOF
9013 #line $LINENO "configure"
9014 #include "confdefs.h"
9015 #include <sys/types.h>
9016 #include <sys/param.h>
9017
9018 #ifdef F77_DUMMY_MAIN
9019 #  ifdef __cplusplus
9020      extern "C"
9021 #  endif
9022    int F77_DUMMY_MAIN() { return 1; }
9023 #endif
9024 int
9025 main ()
9026 {
9027 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
9028  bogus endian macros
9029 #endif
9030
9031   ;
9032   return 0;
9033 }
9034 _ACEOF
9035 rm -f conftest.$ac_objext
9036 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9037   (eval $ac_compile) 2>&5
9038   ac_status=$?
9039   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9040   (exit $ac_status); } &&
9041          { ac_try='test -s conftest.$ac_objext'
9042   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9043   (eval $ac_try) 2>&5
9044   ac_status=$?
9045   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9046   (exit $ac_status); }; }; then
9047   # It does; now see whether it defined to BIG_ENDIAN or not.
9048 cat >conftest.$ac_ext <<_ACEOF
9049 #line $LINENO "configure"
9050 #include "confdefs.h"
9051 #include <sys/types.h>
9052 #include <sys/param.h>
9053
9054 #ifdef F77_DUMMY_MAIN
9055 #  ifdef __cplusplus
9056      extern "C"
9057 #  endif
9058    int F77_DUMMY_MAIN() { return 1; }
9059 #endif
9060 int
9061 main ()
9062 {
9063 #if BYTE_ORDER != BIG_ENDIAN
9064  not big endian
9065 #endif
9066
9067   ;
9068   return 0;
9069 }
9070 _ACEOF
9071 rm -f conftest.$ac_objext
9072 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9073   (eval $ac_compile) 2>&5
9074   ac_status=$?
9075   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9076   (exit $ac_status); } &&
9077          { ac_try='test -s conftest.$ac_objext'
9078   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9079   (eval $ac_try) 2>&5
9080   ac_status=$?
9081   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9082   (exit $ac_status); }; }; then
9083   ac_cv_c_bigendian=yes
9084 else
9085   echo "$as_me: failed program was:" >&5
9086 cat conftest.$ac_ext >&5
9087 ac_cv_c_bigendian=no
9088 fi
9089 rm -f conftest.$ac_objext conftest.$ac_ext
9090 else
9091   echo "$as_me: failed program was:" >&5
9092 cat conftest.$ac_ext >&5
9093 # It does not; compile a test program.
9094 if test "$cross_compiling" = yes; then
9095   # try to guess the endianess by grep'ing values into an object file
9096   ac_cv_c_bigendian=unknown
9097   cat >conftest.$ac_ext <<_ACEOF
9098 #line $LINENO "configure"
9099 #include "confdefs.h"
9100 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
9101 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
9102 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
9103 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
9104 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
9105 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
9106 #ifdef F77_DUMMY_MAIN
9107 #  ifdef __cplusplus
9108      extern "C"
9109 #  endif
9110    int F77_DUMMY_MAIN() { return 1; }
9111 #endif
9112 int
9113 main ()
9114 {
9115  _ascii (); _ebcdic ();
9116   ;
9117   return 0;
9118 }
9119 _ACEOF
9120 rm -f conftest.$ac_objext
9121 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9122   (eval $ac_compile) 2>&5
9123   ac_status=$?
9124   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9125   (exit $ac_status); } &&
9126          { ac_try='test -s conftest.$ac_objext'
9127   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9128   (eval $ac_try) 2>&5
9129   ac_status=$?
9130   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9131   (exit $ac_status); }; }; then
9132   if fgrep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
9133   ac_cv_c_bigendian=yes
9134 fi
9135 if fgrep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
9136   if test "$ac_cv_c_bigendian" = unknown; then
9137     ac_cv_c_bigendian=no
9138   else
9139     # finding both strings is unlikely to happen, but who knows?
9140     ac_cv_c_bigendian=unknown
9141   fi
9142 fi
9143 else
9144   echo "$as_me: failed program was:" >&5
9145 cat conftest.$ac_ext >&5
9146 fi
9147 rm -f conftest.$ac_objext conftest.$ac_ext
9148 else
9149   cat >conftest.$ac_ext <<_ACEOF
9150 #line $LINENO "configure"
9151 #include "confdefs.h"
9152 int
9153 main ()
9154 {
9155   /* Are we little or big endian?  From Harbison&Steele.  */
9156   union
9157   {
9158     long l;
9159     char c[sizeof (long)];
9160   } u;
9161   u.l = 1;
9162   exit (u.c[sizeof (long) - 1] == 1);
9163 }
9164 _ACEOF
9165 rm -f conftest$ac_exeext
9166 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9167   (eval $ac_link) 2>&5
9168   ac_status=$?
9169   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9170   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9171   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9172   (eval $ac_try) 2>&5
9173   ac_status=$?
9174   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9175   (exit $ac_status); }; }; then
9176   ac_cv_c_bigendian=no
9177 else
9178   echo "$as_me: program exited with status $ac_status" >&5
9179 echo "$as_me: failed program was:" >&5
9180 cat conftest.$ac_ext >&5
9181 ( exit $ac_status )
9182 ac_cv_c_bigendian=yes
9183 fi
9184 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9185 fi
9186 fi
9187 rm -f conftest.$ac_objext conftest.$ac_ext
9188 fi
9189 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
9190 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
9191 case $ac_cv_c_bigendian in
9192   yes)
9193     cat >>confdefs.h <<\_ACEOF
9194 #define ENDIAN_BIG 1
9195 _ACEOF
9196  ;;
9197   no)
9198     cat >>confdefs.h <<\_ACEOF
9199 #define ENDIAN_LITTLE 1
9200 _ACEOF
9201  ;;
9202   *)
9203     { { echo "$as_me:$LINENO: error: unknown endianess
9204 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
9205 echo "$as_me: error: unknown endianess
9206 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
9207    { (exit 1); exit 1; }; } ;;
9208 esac
9209
9210
9211 echo "$as_me:$LINENO: checking for pid_t" >&5
9212 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
9213 if test "${ac_cv_type_pid_t+set}" = set; then
9214   echo $ECHO_N "(cached) $ECHO_C" >&6
9215 else
9216   cat >conftest.$ac_ext <<_ACEOF
9217 #line $LINENO "configure"
9218 #include "confdefs.h"
9219 $ac_includes_default
9220 #ifdef F77_DUMMY_MAIN
9221 #  ifdef __cplusplus
9222      extern "C"
9223 #  endif
9224    int F77_DUMMY_MAIN() { return 1; }
9225 #endif
9226 int
9227 main ()
9228 {
9229 if ((pid_t *) 0)
9230   return 0;
9231 if (sizeof (pid_t))
9232   return 0;
9233   ;
9234   return 0;
9235 }
9236 _ACEOF
9237 rm -f conftest.$ac_objext
9238 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9239   (eval $ac_compile) 2>&5
9240   ac_status=$?
9241   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9242   (exit $ac_status); } &&
9243          { ac_try='test -s conftest.$ac_objext'
9244   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9245   (eval $ac_try) 2>&5
9246   ac_status=$?
9247   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9248   (exit $ac_status); }; }; then
9249   ac_cv_type_pid_t=yes
9250 else
9251   echo "$as_me: failed program was:" >&5
9252 cat conftest.$ac_ext >&5
9253 ac_cv_type_pid_t=no
9254 fi
9255 rm -f conftest.$ac_objext conftest.$ac_ext
9256 fi
9257 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
9258 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
9259 if test $ac_cv_type_pid_t = yes; then
9260   :
9261 else
9262
9263 cat >>confdefs.h <<_ACEOF
9264 #define pid_t int
9265 _ACEOF
9266
9267 fi
9268
9269 echo "$as_me:$LINENO: checking for size_t" >&5
9270 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
9271 if test "${ac_cv_type_size_t+set}" = set; then
9272   echo $ECHO_N "(cached) $ECHO_C" >&6
9273 else
9274   cat >conftest.$ac_ext <<_ACEOF
9275 #line $LINENO "configure"
9276 #include "confdefs.h"
9277 $ac_includes_default
9278 #ifdef F77_DUMMY_MAIN
9279 #  ifdef __cplusplus
9280      extern "C"
9281 #  endif
9282    int F77_DUMMY_MAIN() { return 1; }
9283 #endif
9284 int
9285 main ()
9286 {
9287 if ((size_t *) 0)
9288   return 0;
9289 if (sizeof (size_t))
9290   return 0;
9291   ;
9292   return 0;
9293 }
9294 _ACEOF
9295 rm -f conftest.$ac_objext
9296 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9297   (eval $ac_compile) 2>&5
9298   ac_status=$?
9299   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9300   (exit $ac_status); } &&
9301          { ac_try='test -s conftest.$ac_objext'
9302   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9303   (eval $ac_try) 2>&5
9304   ac_status=$?
9305   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9306   (exit $ac_status); }; }; then
9307   ac_cv_type_size_t=yes
9308 else
9309   echo "$as_me: failed program was:" >&5
9310 cat conftest.$ac_ext >&5
9311 ac_cv_type_size_t=no
9312 fi
9313 rm -f conftest.$ac_objext conftest.$ac_ext
9314 fi
9315 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
9316 echo "${ECHO_T}$ac_cv_type_size_t" >&6
9317 if test $ac_cv_type_size_t = yes; then
9318   :
9319 else
9320
9321 cat >>confdefs.h <<_ACEOF
9322 #define size_t unsigned
9323 _ACEOF
9324
9325 fi
9326
9327 echo "$as_me:$LINENO: checking for int64_t" >&5
9328 echo $ECHO_N "checking for int64_t... $ECHO_C" >&6
9329 if test "${ac_cv_type_int64_t+set}" = set; then
9330   echo $ECHO_N "(cached) $ECHO_C" >&6
9331 else
9332   cat >conftest.$ac_ext <<_ACEOF
9333 #line $LINENO "configure"
9334 #include "confdefs.h"
9335 $ac_includes_default
9336 #ifdef F77_DUMMY_MAIN
9337 #  ifdef __cplusplus
9338      extern "C"
9339 #  endif
9340    int F77_DUMMY_MAIN() { return 1; }
9341 #endif
9342 int
9343 main ()
9344 {
9345 if ((int64_t *) 0)
9346   return 0;
9347 if (sizeof (int64_t))
9348   return 0;
9349   ;
9350   return 0;
9351 }
9352 _ACEOF
9353 rm -f conftest.$ac_objext
9354 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9355   (eval $ac_compile) 2>&5
9356   ac_status=$?
9357   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9358   (exit $ac_status); } &&
9359          { ac_try='test -s conftest.$ac_objext'
9360   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9361   (eval $ac_try) 2>&5
9362   ac_status=$?
9363   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9364   (exit $ac_status); }; }; then
9365   ac_cv_type_int64_t=yes
9366 else
9367   echo "$as_me: failed program was:" >&5
9368 cat conftest.$ac_ext >&5
9369 ac_cv_type_int64_t=no
9370 fi
9371 rm -f conftest.$ac_objext conftest.$ac_ext
9372 fi
9373 echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
9374 echo "${ECHO_T}$ac_cv_type_int64_t" >&6
9375 if test $ac_cv_type_int64_t = yes; then
9376
9377 cat >>confdefs.h <<_ACEOF
9378 #define HAVE_INT64_T 1
9379 _ACEOF
9380
9381
9382 else
9383   { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5
9384 echo "$as_me: error: Type int64_t required but not found" >&2;}
9385    { (exit 1); exit 1; }; }
9386 fi
9387
9388 echo "$as_me:$LINENO: checking for uint64_t" >&5
9389 echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6
9390 if test "${ac_cv_type_uint64_t+set}" = set; then
9391   echo $ECHO_N "(cached) $ECHO_C" >&6
9392 else
9393   cat >conftest.$ac_ext <<_ACEOF
9394 #line $LINENO "configure"
9395 #include "confdefs.h"
9396 $ac_includes_default
9397 #ifdef F77_DUMMY_MAIN
9398 #  ifdef __cplusplus
9399      extern "C"
9400 #  endif
9401    int F77_DUMMY_MAIN() { return 1; }
9402 #endif
9403 int
9404 main ()
9405 {
9406 if ((uint64_t *) 0)
9407   return 0;
9408 if (sizeof (uint64_t))
9409   return 0;
9410   ;
9411   return 0;
9412 }
9413 _ACEOF
9414 rm -f conftest.$ac_objext
9415 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9416   (eval $ac_compile) 2>&5
9417   ac_status=$?
9418   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9419   (exit $ac_status); } &&
9420          { ac_try='test -s conftest.$ac_objext'
9421   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9422   (eval $ac_try) 2>&5
9423   ac_status=$?
9424   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9425   (exit $ac_status); }; }; then
9426   ac_cv_type_uint64_t=yes
9427 else
9428   echo "$as_me: failed program was:" >&5
9429 cat conftest.$ac_ext >&5
9430 ac_cv_type_uint64_t=no
9431 fi
9432 rm -f conftest.$ac_objext conftest.$ac_ext
9433 fi
9434 echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
9435 echo "${ECHO_T}$ac_cv_type_uint64_t" >&6
9436 if test $ac_cv_type_uint64_t = yes; then
9437
9438 cat >>confdefs.h <<_ACEOF
9439 #define HAVE_UINT64_T 1
9440 _ACEOF
9441
9442
9443 else
9444   { { echo "$as_me:$LINENO: error: Type uint64_t required but not found" >&5
9445 echo "$as_me: error: Type uint64_t required but not found" >&2;}
9446    { (exit 1); exit 1; }; }
9447 fi
9448
9449 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
9450 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
9451 if test "${ac_cv_header_time+set}" = set; then
9452   echo $ECHO_N "(cached) $ECHO_C" >&6
9453 else
9454   cat >conftest.$ac_ext <<_ACEOF
9455 #line $LINENO "configure"
9456 #include "confdefs.h"
9457 #include <sys/types.h>
9458 #include <sys/time.h>
9459 #include <time.h>
9460
9461 #ifdef F77_DUMMY_MAIN
9462 #  ifdef __cplusplus
9463      extern "C"
9464 #  endif
9465    int F77_DUMMY_MAIN() { return 1; }
9466 #endif
9467 int
9468 main ()
9469 {
9470 if ((struct tm *) 0)
9471 return 0;
9472   ;
9473   return 0;
9474 }
9475 _ACEOF
9476 rm -f conftest.$ac_objext
9477 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9478   (eval $ac_compile) 2>&5
9479   ac_status=$?
9480   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9481   (exit $ac_status); } &&
9482          { ac_try='test -s conftest.$ac_objext'
9483   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9484   (eval $ac_try) 2>&5
9485   ac_status=$?
9486   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9487   (exit $ac_status); }; }; then
9488   ac_cv_header_time=yes
9489 else
9490   echo "$as_me: failed program was:" >&5
9491 cat conftest.$ac_ext >&5
9492 ac_cv_header_time=no
9493 fi
9494 rm -f conftest.$ac_objext conftest.$ac_ext
9495 fi
9496 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
9497 echo "${ECHO_T}$ac_cv_header_time" >&6
9498 if test $ac_cv_header_time = yes; then
9499
9500 cat >>confdefs.h <<\_ACEOF
9501 #define TIME_WITH_SYS_TIME 1
9502 _ACEOF
9503
9504 fi
9505
9506 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
9507 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
9508 if test "${ac_cv_struct_tm+set}" = set; then
9509   echo $ECHO_N "(cached) $ECHO_C" >&6
9510 else
9511   cat >conftest.$ac_ext <<_ACEOF
9512 #line $LINENO "configure"
9513 #include "confdefs.h"
9514 #include <sys/types.h>
9515 #include <time.h>
9516
9517 #ifdef F77_DUMMY_MAIN
9518 #  ifdef __cplusplus
9519      extern "C"
9520 #  endif
9521    int F77_DUMMY_MAIN() { return 1; }
9522 #endif
9523 int
9524 main ()
9525 {
9526 struct tm *tp; tp->tm_sec;
9527   ;
9528   return 0;
9529 }
9530 _ACEOF
9531 rm -f conftest.$ac_objext
9532 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9533   (eval $ac_compile) 2>&5
9534   ac_status=$?
9535   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9536   (exit $ac_status); } &&
9537          { ac_try='test -s conftest.$ac_objext'
9538   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9539   (eval $ac_try) 2>&5
9540   ac_status=$?
9541   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9542   (exit $ac_status); }; }; then
9543   ac_cv_struct_tm=time.h
9544 else
9545   echo "$as_me: failed program was:" >&5
9546 cat conftest.$ac_ext >&5
9547 ac_cv_struct_tm=sys/time.h
9548 fi
9549 rm -f conftest.$ac_objext conftest.$ac_ext
9550 fi
9551 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
9552 echo "${ECHO_T}$ac_cv_struct_tm" >&6
9553 if test $ac_cv_struct_tm = sys/time.h; then
9554
9555 cat >>confdefs.h <<\_ACEOF
9556 #define TM_IN_SYS_TIME 1
9557 _ACEOF
9558
9559 fi
9560
9561
9562
9563 echo "$as_me:$LINENO: checking whether the compiler implements namespaces" >&5
9564 echo $ECHO_N "checking whether the compiler implements namespaces... $ECHO_C" >&6
9565 if test "${ac_cv_cxx_namespaces+set}" = set; then
9566   echo $ECHO_N "(cached) $ECHO_C" >&6
9567 else
9568
9569
9570  ac_ext=cc
9571 ac_cpp='$CXXCPP $CPPFLAGS'
9572 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9573 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9574 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9575
9576  cat >conftest.$ac_ext <<_ACEOF
9577 #line $LINENO "configure"
9578 #include "confdefs.h"
9579 namespace Outer { namespace Inner { int i = 0; }}
9580 #ifdef F77_DUMMY_MAIN
9581 #  ifdef __cplusplus
9582      extern "C"
9583 #  endif
9584    int F77_DUMMY_MAIN() { return 1; }
9585 #endif
9586 int
9587 main ()
9588 {
9589 using namespace Outer::Inner; return i;
9590   ;
9591   return 0;
9592 }
9593 _ACEOF
9594 rm -f conftest.$ac_objext
9595 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9596   (eval $ac_compile) 2>&5
9597   ac_status=$?
9598   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9599   (exit $ac_status); } &&
9600          { ac_try='test -s conftest.$ac_objext'
9601   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9602   (eval $ac_try) 2>&5
9603   ac_status=$?
9604   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9605   (exit $ac_status); }; }; then
9606   ac_cv_cxx_namespaces=yes
9607 else
9608   echo "$as_me: failed program was:" >&5
9609 cat conftest.$ac_ext >&5
9610 ac_cv_cxx_namespaces=no
9611 fi
9612 rm -f conftest.$ac_objext conftest.$ac_ext
9613  ac_ext=c
9614 ac_cpp='$CPP $CPPFLAGS'
9615 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9616 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9617 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9618
9619
9620 fi
9621 echo "$as_me:$LINENO: result: $ac_cv_cxx_namespaces" >&5
9622 echo "${ECHO_T}$ac_cv_cxx_namespaces" >&6
9623 if test "$ac_cv_cxx_namespaces" = yes; then
9624
9625 cat >>confdefs.h <<\_ACEOF
9626 #define HAVE_NAMESPACES
9627 _ACEOF
9628
9629 fi
9630
9631 echo "$as_me:$LINENO: checking whether the compiler has ext/hash_map" >&5
9632 echo $ECHO_N "checking whether the compiler has ext/hash_map... $ECHO_C" >&6
9633 if test "${ac_cv_cxx_have_ext_hash_map+set}" = set; then
9634   echo $ECHO_N "(cached) $ECHO_C" >&6
9635 else
9636
9637
9638
9639   ac_ext=cc
9640 ac_cpp='$CXXCPP $CPPFLAGS'
9641 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9642 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9643 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9644
9645   cat >conftest.$ac_ext <<_ACEOF
9646 #line $LINENO "configure"
9647 #include "confdefs.h"
9648 #include <ext/hash_map>
9649 #ifdef HAVE_NAMESPACES
9650 using namespace std;
9651 #endif
9652 #ifdef F77_DUMMY_MAIN
9653 #  ifdef __cplusplus
9654      extern "C"
9655 #  endif
9656    int F77_DUMMY_MAIN() { return 1; }
9657 #endif
9658 int
9659 main ()
9660 {
9661 hash_map<int, int> t; return 0;
9662   ;
9663   return 0;
9664 }
9665 _ACEOF
9666 rm -f conftest.$ac_objext
9667 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9668   (eval $ac_compile) 2>&5
9669   ac_status=$?
9670   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9671   (exit $ac_status); } &&
9672          { ac_try='test -s conftest.$ac_objext'
9673   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9674   (eval $ac_try) 2>&5
9675   ac_status=$?
9676   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9677   (exit $ac_status); }; }; then
9678   ac_cv_cxx_have_ext_hash_map=std
9679 else
9680   echo "$as_me: failed program was:" >&5
9681 cat conftest.$ac_ext >&5
9682 ac_cv_cxx_have_ext_hash_map=no
9683 fi
9684 rm -f conftest.$ac_objext conftest.$ac_ext
9685   cat >conftest.$ac_ext <<_ACEOF
9686 #line $LINENO "configure"
9687 #include "confdefs.h"
9688 #include <ext/hash_map>
9689 #ifdef HAVE_NAMESPACES
9690 using namespace __gnu_cxx;
9691 #endif
9692 #ifdef F77_DUMMY_MAIN
9693 #  ifdef __cplusplus
9694      extern "C"
9695 #  endif
9696    int F77_DUMMY_MAIN() { return 1; }
9697 #endif
9698 int
9699 main ()
9700 {
9701 hash_map<int, int> t; return 0;
9702   ;
9703   return 0;
9704 }
9705 _ACEOF
9706 rm -f conftest.$ac_objext
9707 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9708   (eval $ac_compile) 2>&5
9709   ac_status=$?
9710   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9711   (exit $ac_status); } &&
9712          { ac_try='test -s conftest.$ac_objext'
9713   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9714   (eval $ac_try) 2>&5
9715   ac_status=$?
9716   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9717   (exit $ac_status); }; }; then
9718   ac_cv_cxx_have_ext_hash_map=gnu
9719 else
9720   echo "$as_me: failed program was:" >&5
9721 cat conftest.$ac_ext >&5
9722 ac_cv_cxx_have_ext_hash_map=no
9723 fi
9724 rm -f conftest.$ac_objext conftest.$ac_ext
9725   ac_ext=c
9726 ac_cpp='$CPP $CPPFLAGS'
9727 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9728 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9729 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9730
9731
9732 fi
9733 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_ext_hash_map" >&5
9734 echo "${ECHO_T}$ac_cv_cxx_have_ext_hash_map" >&6
9735 if test "$ac_cv_cxx_have_ext_hash_map" = std; then
9736
9737 cat >>confdefs.h <<\_ACEOF
9738 #define HAVE_STD_EXT_HASH_MAP
9739 _ACEOF
9740
9741 fi
9742 if test "$ac_cv_cxx_have_ext_hash_map" = gnu; then
9743
9744 cat >>confdefs.h <<\_ACEOF
9745 #define HAVE_GNU_EXT_HASH_MAP
9746 _ACEOF
9747
9748 fi
9749
9750 echo "$as_me:$LINENO: checking whether the compiler has ext/hash_set" >&5
9751 echo $ECHO_N "checking whether the compiler has ext/hash_set... $ECHO_C" >&6
9752 if test "${ac_cv_cxx_have_ext_hash_set+set}" = set; then
9753   echo $ECHO_N "(cached) $ECHO_C" >&6
9754 else
9755
9756
9757
9758   ac_ext=cc
9759 ac_cpp='$CXXCPP $CPPFLAGS'
9760 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9761 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9762 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9763
9764   cat >conftest.$ac_ext <<_ACEOF
9765 #line $LINENO "configure"
9766 #include "confdefs.h"
9767 #include <ext/hash_set>
9768 #ifdef HAVE_NAMESPACES
9769 using namespace std;
9770 #endif
9771 #ifdef F77_DUMMY_MAIN
9772 #  ifdef __cplusplus
9773      extern "C"
9774 #  endif
9775    int F77_DUMMY_MAIN() { return 1; }
9776 #endif
9777 int
9778 main ()
9779 {
9780 hash_set<int> t; return 0;
9781   ;
9782   return 0;
9783 }
9784 _ACEOF
9785 rm -f conftest.$ac_objext
9786 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9787   (eval $ac_compile) 2>&5
9788   ac_status=$?
9789   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9790   (exit $ac_status); } &&
9791          { ac_try='test -s conftest.$ac_objext'
9792   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9793   (eval $ac_try) 2>&5
9794   ac_status=$?
9795   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9796   (exit $ac_status); }; }; then
9797   ac_cv_cxx_have_ext_hash_set=std
9798 else
9799   echo "$as_me: failed program was:" >&5
9800 cat conftest.$ac_ext >&5
9801 ac_cv_cxx_have_ext_hash_set=no
9802 fi
9803 rm -f conftest.$ac_objext conftest.$ac_ext
9804   cat >conftest.$ac_ext <<_ACEOF
9805 #line $LINENO "configure"
9806 #include "confdefs.h"
9807 #include <ext/hash_set>
9808 #ifdef HAVE_NAMESPACES
9809 using namespace __gnu_cxx;
9810 #endif
9811 #ifdef F77_DUMMY_MAIN
9812 #  ifdef __cplusplus
9813      extern "C"
9814 #  endif
9815    int F77_DUMMY_MAIN() { return 1; }
9816 #endif
9817 int
9818 main ()
9819 {
9820 hash_set<int> t; return 0;
9821   ;
9822   return 0;
9823 }
9824 _ACEOF
9825 rm -f conftest.$ac_objext
9826 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9827   (eval $ac_compile) 2>&5
9828   ac_status=$?
9829   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9830   (exit $ac_status); } &&
9831          { ac_try='test -s conftest.$ac_objext'
9832   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9833   (eval $ac_try) 2>&5
9834   ac_status=$?
9835   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9836   (exit $ac_status); }; }; then
9837   ac_cv_cxx_have_ext_hash_set=gnu
9838 else
9839   echo "$as_me: failed program was:" >&5
9840 cat conftest.$ac_ext >&5
9841 ac_cv_cxx_have_ext_hash_set=no
9842 fi
9843 rm -f conftest.$ac_objext conftest.$ac_ext
9844   ac_ext=c
9845 ac_cpp='$CPP $CPPFLAGS'
9846 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9847 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9848 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9849
9850
9851 fi
9852 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_ext_hash_set" >&5
9853 echo "${ECHO_T}$ac_cv_cxx_have_ext_hash_set" >&6
9854 if test "$ac_cv_cxx_have_ext_hash_set" = std; then
9855
9856 cat >>confdefs.h <<\_ACEOF
9857 #define HAVE_STD_EXT_HASH_SET
9858 _ACEOF
9859
9860 fi
9861 if test "$ac_cv_cxx_have_ext_hash_set" = gnu; then
9862
9863 cat >>confdefs.h <<\_ACEOF
9864 #define HAVE_GNU_EXT_HASH_SET
9865 _ACEOF
9866
9867 fi
9868
9869 echo "$as_me:$LINENO: checking whether the compiler has ext/slist" >&5
9870 echo $ECHO_N "checking whether the compiler has ext/slist... $ECHO_C" >&6
9871 if test "${ac_cv_cxx_have_ext_slist+set}" = set; then
9872   echo $ECHO_N "(cached) $ECHO_C" >&6
9873 else
9874
9875
9876
9877   ac_ext=cc
9878 ac_cpp='$CXXCPP $CPPFLAGS'
9879 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9880 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9881 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9882
9883   cat >conftest.$ac_ext <<_ACEOF
9884 #line $LINENO "configure"
9885 #include "confdefs.h"
9886 #include <ext/slist>
9887 #ifdef HAVE_NAMESPACES
9888 using namespace std;
9889 #endif
9890 #ifdef F77_DUMMY_MAIN
9891 #  ifdef __cplusplus
9892      extern "C"
9893 #  endif
9894    int F77_DUMMY_MAIN() { return 1; }
9895 #endif
9896 int
9897 main ()
9898 {
9899 slist<int> s; return 0;
9900   ;
9901   return 0;
9902 }
9903 _ACEOF
9904 rm -f conftest.$ac_objext
9905 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9906   (eval $ac_compile) 2>&5
9907   ac_status=$?
9908   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9909   (exit $ac_status); } &&
9910          { ac_try='test -s conftest.$ac_objext'
9911   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9912   (eval $ac_try) 2>&5
9913   ac_status=$?
9914   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9915   (exit $ac_status); }; }; then
9916   ac_cv_cxx_have_ext_slist=std
9917 else
9918   echo "$as_me: failed program was:" >&5
9919 cat conftest.$ac_ext >&5
9920 ac_cv_cxx_have_ext_slist=no
9921 fi
9922 rm -f conftest.$ac_objext conftest.$ac_ext
9923   cat >conftest.$ac_ext <<_ACEOF
9924 #line $LINENO "configure"
9925 #include "confdefs.h"
9926 #include <ext/slist>
9927 #ifdef HAVE_NAMESPACES
9928 using namespace __gnu_cxx;
9929 #endif
9930 #ifdef F77_DUMMY_MAIN
9931 #  ifdef __cplusplus
9932      extern "C"
9933 #  endif
9934    int F77_DUMMY_MAIN() { return 1; }
9935 #endif
9936 int
9937 main ()
9938 {
9939 slist<int> s; return 0;
9940   ;
9941   return 0;
9942 }
9943 _ACEOF
9944 rm -f conftest.$ac_objext
9945 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9946   (eval $ac_compile) 2>&5
9947   ac_status=$?
9948   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9949   (exit $ac_status); } &&
9950          { ac_try='test -s conftest.$ac_objext'
9951   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9952   (eval $ac_try) 2>&5
9953   ac_status=$?
9954   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9955   (exit $ac_status); }; }; then
9956   ac_cv_cxx_have_ext_slist=gnu
9957 else
9958   echo "$as_me: failed program was:" >&5
9959 cat conftest.$ac_ext >&5
9960 ac_cv_cxx_have_ext_slist=no
9961 fi
9962 rm -f conftest.$ac_objext conftest.$ac_ext
9963
9964   ac_ext=c
9965 ac_cpp='$CPP $CPPFLAGS'
9966 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9967 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9968 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9969
9970
9971 fi
9972 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_ext_slist" >&5
9973 echo "${ECHO_T}$ac_cv_cxx_have_ext_slist" >&6
9974 if test "$ac_cv_cxx_have_ext_slist" = std; then
9975
9976 cat >>confdefs.h <<\_ACEOF
9977 #define HAVE_EXT_SLIST std
9978 _ACEOF
9979
9980 fi
9981 if test "$ac_cv_cxx_have_ext_slist" = gnu; then
9982
9983 cat >>confdefs.h <<\_ACEOF
9984 #define HAVE_EXT_SLIST gnu
9985 _ACEOF
9986
9987 fi
9988
9989 echo "$as_me:$LINENO: checking whether the compiler has the standard iterator" >&5
9990 echo $ECHO_N "checking whether the compiler has the standard iterator... $ECHO_C" >&6
9991 if test "${ac_cv_cxx_have_std_iterator+set}" = set; then
9992   echo $ECHO_N "(cached) $ECHO_C" >&6
9993 else
9994
9995
9996
9997   ac_ext=cc
9998 ac_cpp='$CXXCPP $CPPFLAGS'
9999 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10000 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10001 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10002
10003   cat >conftest.$ac_ext <<_ACEOF
10004 #line $LINENO "configure"
10005 #include "confdefs.h"
10006 #include <iterator>
10007 #ifdef HAVE_NAMESPACES
10008 using namespace std;
10009 #endif
10010 #ifdef F77_DUMMY_MAIN
10011 #  ifdef __cplusplus
10012      extern "C"
10013 #  endif
10014    int F77_DUMMY_MAIN() { return 1; }
10015 #endif
10016 int
10017 main ()
10018 {
10019 iterator<int,int,int> t; return 0;
10020   ;
10021   return 0;
10022 }
10023 _ACEOF
10024 rm -f conftest.$ac_objext
10025 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10026   (eval $ac_compile) 2>&5
10027   ac_status=$?
10028   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10029   (exit $ac_status); } &&
10030          { ac_try='test -s conftest.$ac_objext'
10031   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10032   (eval $ac_try) 2>&5
10033   ac_status=$?
10034   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10035   (exit $ac_status); }; }; then
10036   ac_cv_cxx_have_std_iterator=yes
10037 else
10038   echo "$as_me: failed program was:" >&5
10039 cat conftest.$ac_ext >&5
10040 ac_cv_cxx_have_std_iterator=no
10041 fi
10042 rm -f conftest.$ac_objext conftest.$ac_ext
10043   ac_ext=c
10044 ac_cpp='$CPP $CPPFLAGS'
10045 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10046 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10047 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10048
10049
10050 fi
10051 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_iterator" >&5
10052 echo "${ECHO_T}$ac_cv_cxx_have_std_iterator" >&6
10053 if test "$ac_cv_cxx_have_std_iterator" = yes; then
10054
10055 cat >>confdefs.h <<\_ACEOF
10056 #define HAVE_STD_ITERATOR
10057 _ACEOF
10058
10059 fi
10060
10061 echo "$as_me:$LINENO: checking whether the compiler has the bidirectional iterator" >&5
10062 echo $ECHO_N "checking whether the compiler has the bidirectional iterator... $ECHO_C" >&6
10063 if test "${ac_cv_cxx_have_bi_iterator+set}" = set; then
10064   echo $ECHO_N "(cached) $ECHO_C" >&6
10065 else
10066
10067
10068
10069   ac_ext=cc
10070 ac_cpp='$CXXCPP $CPPFLAGS'
10071 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10072 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10073 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10074
10075   cat >conftest.$ac_ext <<_ACEOF
10076 #line $LINENO "configure"
10077 #include "confdefs.h"
10078 #include <iterator>
10079 #ifdef HAVE_NAMESPACES
10080 using namespace std;
10081 #endif
10082 #ifdef F77_DUMMY_MAIN
10083 #  ifdef __cplusplus
10084      extern "C"
10085 #  endif
10086    int F77_DUMMY_MAIN() { return 1; }
10087 #endif
10088 int
10089 main ()
10090 {
10091 bidirectional_iterator<int,int,int> t; return 0;
10092   ;
10093   return 0;
10094 }
10095 _ACEOF
10096 rm -f conftest.$ac_objext
10097 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10098   (eval $ac_compile) 2>&5
10099   ac_status=$?
10100   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10101   (exit $ac_status); } &&
10102          { ac_try='test -s conftest.$ac_objext'
10103   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10104   (eval $ac_try) 2>&5
10105   ac_status=$?
10106   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10107   (exit $ac_status); }; }; then
10108   ac_cv_cxx_have_bi_iterator=yes
10109 else
10110   echo "$as_me: failed program was:" >&5
10111 cat conftest.$ac_ext >&5
10112 ac_cv_cxx_have_bi_iterator=no
10113 fi
10114 rm -f conftest.$ac_objext conftest.$ac_ext
10115   ac_ext=c
10116 ac_cpp='$CPP $CPPFLAGS'
10117 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10118 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10119 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10120
10121
10122 fi
10123 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_bi_iterator" >&5
10124 echo "${ECHO_T}$ac_cv_cxx_have_bi_iterator" >&6
10125 if test "$ac_cv_cxx_have_bi_iterator" = yes; then
10126
10127 cat >>confdefs.h <<\_ACEOF
10128 #define HAVE_BI_ITERATOR
10129 _ACEOF
10130
10131 fi
10132
10133 echo "$as_me:$LINENO: checking whether the compiler has forward iterators" >&5
10134 echo $ECHO_N "checking whether the compiler has forward iterators... $ECHO_C" >&6
10135 if test "${ac_cv_cxx_have_fwd_iterator+set}" = set; then
10136   echo $ECHO_N "(cached) $ECHO_C" >&6
10137 else
10138
10139
10140
10141   ac_ext=cc
10142 ac_cpp='$CXXCPP $CPPFLAGS'
10143 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10144 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10145 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10146
10147   cat >conftest.$ac_ext <<_ACEOF
10148 #line $LINENO "configure"
10149 #include "confdefs.h"
10150 #include <iterator>
10151 #ifdef HAVE_NAMESPACES
10152 using namespace std;
10153 #endif
10154 #ifdef F77_DUMMY_MAIN
10155 #  ifdef __cplusplus
10156      extern "C"
10157 #  endif
10158    int F77_DUMMY_MAIN() { return 1; }
10159 #endif
10160 int
10161 main ()
10162 {
10163 forward_iterator<int,int,int> t; return 0;
10164   ;
10165   return 0;
10166 }
10167 _ACEOF
10168 rm -f conftest.$ac_objext
10169 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10170   (eval $ac_compile) 2>&5
10171   ac_status=$?
10172   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10173   (exit $ac_status); } &&
10174          { ac_try='test -s conftest.$ac_objext'
10175   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10176   (eval $ac_try) 2>&5
10177   ac_status=$?
10178   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10179   (exit $ac_status); }; }; then
10180   ac_cv_cxx_have_fwd_iterator=yes
10181 else
10182   echo "$as_me: failed program was:" >&5
10183 cat conftest.$ac_ext >&5
10184 ac_cv_cxx_have_fwd_iterator=no
10185 fi
10186 rm -f conftest.$ac_objext conftest.$ac_ext
10187   ac_ext=c
10188 ac_cpp='$CPP $CPPFLAGS'
10189 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10190 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10191 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10192
10193
10194 fi
10195 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_fwd_iterator" >&5
10196 echo "${ECHO_T}$ac_cv_cxx_have_fwd_iterator" >&6
10197 if test "$ac_cv_cxx_have_fwd_iterator" = yes; then
10198
10199 cat >>confdefs.h <<\_ACEOF
10200 #define HAVE_FWD_ITERATOR
10201 _ACEOF
10202
10203 fi
10204
10205
10206 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
10207 # for constant arguments.  Useless!
10208 echo "$as_me:$LINENO: checking for working alloca.h" >&5
10209 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
10210 if test "${ac_cv_working_alloca_h+set}" = set; then
10211   echo $ECHO_N "(cached) $ECHO_C" >&6
10212 else
10213   cat >conftest.$ac_ext <<_ACEOF
10214 #line $LINENO "configure"
10215 #include "confdefs.h"
10216 #include <alloca.h>
10217 #ifdef F77_DUMMY_MAIN
10218 #  ifdef __cplusplus
10219      extern "C"
10220 #  endif
10221    int F77_DUMMY_MAIN() { return 1; }
10222 #endif
10223 int
10224 main ()
10225 {
10226 char *p = (char *) alloca (2 * sizeof (int));
10227   ;
10228   return 0;
10229 }
10230 _ACEOF
10231 rm -f conftest.$ac_objext conftest$ac_exeext
10232 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10233   (eval $ac_link) 2>&5
10234   ac_status=$?
10235   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10236   (exit $ac_status); } &&
10237          { ac_try='test -s conftest$ac_exeext'
10238   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10239   (eval $ac_try) 2>&5
10240   ac_status=$?
10241   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10242   (exit $ac_status); }; }; then
10243   ac_cv_working_alloca_h=yes
10244 else
10245   echo "$as_me: failed program was:" >&5
10246 cat conftest.$ac_ext >&5
10247 ac_cv_working_alloca_h=no
10248 fi
10249 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10250 fi
10251 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
10252 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
10253 if test $ac_cv_working_alloca_h = yes; then
10254
10255 cat >>confdefs.h <<\_ACEOF
10256 #define HAVE_ALLOCA_H 1
10257 _ACEOF
10258
10259 fi
10260
10261 echo "$as_me:$LINENO: checking for alloca" >&5
10262 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
10263 if test "${ac_cv_func_alloca_works+set}" = set; then
10264   echo $ECHO_N "(cached) $ECHO_C" >&6
10265 else
10266   cat >conftest.$ac_ext <<_ACEOF
10267 #line $LINENO "configure"
10268 #include "confdefs.h"
10269 #ifdef __GNUC__
10270 # define alloca __builtin_alloca
10271 #else
10272 # ifdef _MSC_VER
10273 #  include <malloc.h>
10274 #  define alloca _alloca
10275 # else
10276 #  if HAVE_ALLOCA_H
10277 #   include <alloca.h>
10278 #  else
10279 #   ifdef _AIX
10280  #pragma alloca
10281 #   else
10282 #    ifndef alloca /* predefined by HP cc +Olibcalls */
10283 char *alloca ();
10284 #    endif
10285 #   endif
10286 #  endif
10287 # endif
10288 #endif
10289
10290 #ifdef F77_DUMMY_MAIN
10291 #  ifdef __cplusplus
10292      extern "C"
10293 #  endif
10294    int F77_DUMMY_MAIN() { return 1; }
10295 #endif
10296 int
10297 main ()
10298 {
10299 char *p = (char *) alloca (1);
10300   ;
10301   return 0;
10302 }
10303 _ACEOF
10304 rm -f conftest.$ac_objext conftest$ac_exeext
10305 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10306   (eval $ac_link) 2>&5
10307   ac_status=$?
10308   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10309   (exit $ac_status); } &&
10310          { ac_try='test -s conftest$ac_exeext'
10311   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10312   (eval $ac_try) 2>&5
10313   ac_status=$?
10314   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10315   (exit $ac_status); }; }; then
10316   ac_cv_func_alloca_works=yes
10317 else
10318   echo "$as_me: failed program was:" >&5
10319 cat conftest.$ac_ext >&5
10320 ac_cv_func_alloca_works=no
10321 fi
10322 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10323 fi
10324 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
10325 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
10326
10327 if test $ac_cv_func_alloca_works = yes; then
10328
10329 cat >>confdefs.h <<\_ACEOF
10330 #define HAVE_ALLOCA 1
10331 _ACEOF
10332
10333 else
10334   # The SVR3 libPW and SVR4 libucb both contain incompatible functions
10335 # that cause trouble.  Some versions do not even contain alloca or
10336 # contain a buggy version.  If you still want to use their alloca,
10337 # use ar to extract alloca.o from them instead of compiling alloca.c.
10338
10339 ALLOCA=alloca.$ac_objext
10340
10341 cat >>confdefs.h <<\_ACEOF
10342 #define C_ALLOCA 1
10343 _ACEOF
10344
10345
10346 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
10347 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
10348 if test "${ac_cv_os_cray+set}" = set; then
10349   echo $ECHO_N "(cached) $ECHO_C" >&6
10350 else
10351   cat >conftest.$ac_ext <<_ACEOF
10352 #line $LINENO "configure"
10353 #include "confdefs.h"
10354 #if defined(CRAY) && ! defined(CRAY2)
10355 webecray
10356 #else
10357 wenotbecray
10358 #endif
10359
10360 _ACEOF
10361 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10362   egrep "webecray" >/dev/null 2>&1; then
10363   ac_cv_os_cray=yes
10364 else
10365   ac_cv_os_cray=no
10366 fi
10367 rm -f conftest*
10368
10369 fi
10370 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
10371 echo "${ECHO_T}$ac_cv_os_cray" >&6
10372 if test $ac_cv_os_cray = yes; then
10373   for ac_func in _getb67 GETB67 getb67; do
10374     as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10375 echo "$as_me:$LINENO: checking for $ac_func" >&5
10376 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10377 if eval "test \"\${$as_ac_var+set}\" = set"; then
10378   echo $ECHO_N "(cached) $ECHO_C" >&6
10379 else
10380   cat >conftest.$ac_ext <<_ACEOF
10381 #line $LINENO "configure"
10382 #include "confdefs.h"
10383 /* System header to define __stub macros and hopefully few prototypes,
10384     which can conflict with char $ac_func (); below.  */
10385 #include <assert.h>
10386 /* Override any gcc2 internal prototype to avoid an error.  */
10387 #ifdef __cplusplus
10388 extern "C"
10389 #endif
10390 /* We use char because int might match the return type of a gcc2
10391    builtin and then its argument prototype would still apply.  */
10392 char $ac_func ();
10393 char (*f) ();
10394
10395 #ifdef F77_DUMMY_MAIN
10396 #  ifdef __cplusplus
10397      extern "C"
10398 #  endif
10399    int F77_DUMMY_MAIN() { return 1; }
10400 #endif
10401 int
10402 main ()
10403 {
10404 /* The GNU C library defines this for functions which it implements
10405     to always fail with ENOSYS.  Some functions are actually named
10406     something starting with __ and the normal name is an alias.  */
10407 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10408 choke me
10409 #else
10410 f = $ac_func;
10411 #endif
10412
10413   ;
10414   return 0;
10415 }
10416 _ACEOF
10417 rm -f conftest.$ac_objext conftest$ac_exeext
10418 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10419   (eval $ac_link) 2>&5
10420   ac_status=$?
10421   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10422   (exit $ac_status); } &&
10423          { ac_try='test -s conftest$ac_exeext'
10424   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10425   (eval $ac_try) 2>&5
10426   ac_status=$?
10427   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10428   (exit $ac_status); }; }; then
10429   eval "$as_ac_var=yes"
10430 else
10431   echo "$as_me: failed program was:" >&5
10432 cat conftest.$ac_ext >&5
10433 eval "$as_ac_var=no"
10434 fi
10435 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10436 fi
10437 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10438 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10439 if test `eval echo '${'$as_ac_var'}'` = yes; then
10440
10441 cat >>confdefs.h <<_ACEOF
10442 #define CRAY_STACKSEG_END $ac_func
10443 _ACEOF
10444
10445     break
10446 fi
10447
10448   done
10449 fi
10450
10451 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
10452 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
10453 if test "${ac_cv_c_stack_direction+set}" = set; then
10454   echo $ECHO_N "(cached) $ECHO_C" >&6
10455 else
10456   if test "$cross_compiling" = yes; then
10457   ac_cv_c_stack_direction=0
10458 else
10459   cat >conftest.$ac_ext <<_ACEOF
10460 #line $LINENO "configure"
10461 #include "confdefs.h"
10462 int
10463 find_stack_direction ()
10464 {
10465   static char *addr = 0;
10466   auto char dummy;
10467   if (addr == 0)
10468     {
10469       addr = &dummy;
10470       return find_stack_direction ();
10471     }
10472   else
10473     return (&dummy > addr) ? 1 : -1;
10474 }
10475
10476 int
10477 main ()
10478 {
10479   exit (find_stack_direction () < 0);
10480 }
10481 _ACEOF
10482 rm -f conftest$ac_exeext
10483 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10484   (eval $ac_link) 2>&5
10485   ac_status=$?
10486   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10487   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10488   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10489   (eval $ac_try) 2>&5
10490   ac_status=$?
10491   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10492   (exit $ac_status); }; }; then
10493   ac_cv_c_stack_direction=1
10494 else
10495   echo "$as_me: program exited with status $ac_status" >&5
10496 echo "$as_me: failed program was:" >&5
10497 cat conftest.$ac_ext >&5
10498 ( exit $ac_status )
10499 ac_cv_c_stack_direction=-1
10500 fi
10501 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10502 fi
10503 fi
10504 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
10505 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
10506
10507 cat >>confdefs.h <<_ACEOF
10508 #define STACK_DIRECTION $ac_cv_c_stack_direction
10509 _ACEOF
10510
10511
10512 fi
10513
10514 if test $ac_cv_c_compiler_gnu = yes; then
10515     echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
10516 echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6
10517 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
10518   echo $ECHO_N "(cached) $ECHO_C" >&6
10519 else
10520     ac_pattern="Autoconf.*'x'"
10521   cat >conftest.$ac_ext <<_ACEOF
10522 #line $LINENO "configure"
10523 #include "confdefs.h"
10524 #include <sgtty.h>
10525 Autoconf TIOCGETP
10526 _ACEOF
10527 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10528   egrep "$ac_pattern" >/dev/null 2>&1; then
10529   ac_cv_prog_gcc_traditional=yes
10530 else
10531   ac_cv_prog_gcc_traditional=no
10532 fi
10533 rm -f conftest*
10534
10535
10536   if test $ac_cv_prog_gcc_traditional = no; then
10537     cat >conftest.$ac_ext <<_ACEOF
10538 #line $LINENO "configure"
10539 #include "confdefs.h"
10540 #include <termio.h>
10541 Autoconf TCGETA
10542 _ACEOF
10543 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10544   egrep "$ac_pattern" >/dev/null 2>&1; then
10545   ac_cv_prog_gcc_traditional=yes
10546 fi
10547 rm -f conftest*
10548
10549   fi
10550 fi
10551 echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
10552 echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6
10553   if test $ac_cv_prog_gcc_traditional = yes; then
10554     CC="$CC -traditional"
10555   fi
10556 fi
10557
10558 echo "$as_me:$LINENO: checking for working memcmp" >&5
10559 echo $ECHO_N "checking for working memcmp... $ECHO_C" >&6
10560 if test "${ac_cv_func_memcmp_working+set}" = set; then
10561   echo $ECHO_N "(cached) $ECHO_C" >&6
10562 else
10563   if test "$cross_compiling" = yes; then
10564   ac_cv_func_memcmp_working=no
10565 else
10566   cat >conftest.$ac_ext <<_ACEOF
10567 #line $LINENO "configure"
10568 #include "confdefs.h"
10569
10570 #ifdef F77_DUMMY_MAIN
10571 #  ifdef __cplusplus
10572      extern "C"
10573 #  endif
10574    int F77_DUMMY_MAIN() { return 1; }
10575 #endif
10576 int
10577 main ()
10578 {
10579
10580   /* Some versions of memcmp are not 8-bit clean.  */
10581   char c0 = 0x40, c1 = 0x80, c2 = 0x81;
10582   if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
10583     exit (1);
10584
10585   /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
10586      or more and with at least one buffer not starting on a 4-byte boundary.
10587      William Lewis provided this test program.   */
10588   {
10589     char foo[21];
10590     char bar[21];
10591     int i;
10592     for (i = 0; i < 4; i++)
10593       {
10594         char *a = foo + i;
10595         char *b = bar + i;
10596         strcpy (a, "--------01111111");
10597         strcpy (b, "--------10000000");
10598         if (memcmp (a, b, 16) >= 0)
10599           exit (1);
10600       }
10601     exit (0);
10602   }
10603
10604   ;
10605   return 0;
10606 }
10607 _ACEOF
10608 rm -f conftest$ac_exeext
10609 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10610   (eval $ac_link) 2>&5
10611   ac_status=$?
10612   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10613   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10614   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10615   (eval $ac_try) 2>&5
10616   ac_status=$?
10617   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10618   (exit $ac_status); }; }; then
10619   ac_cv_func_memcmp_working=yes
10620 else
10621   echo "$as_me: program exited with status $ac_status" >&5
10622 echo "$as_me: failed program was:" >&5
10623 cat conftest.$ac_ext >&5
10624 ( exit $ac_status )
10625 ac_cv_func_memcmp_working=no
10626 fi
10627 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10628 fi
10629 fi
10630 echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
10631 echo "${ECHO_T}$ac_cv_func_memcmp_working" >&6
10632 test $ac_cv_func_memcmp_working = no && LIBOBJS="$LIBOBJS memcmp.$ac_objext"
10633
10634
10635
10636 for ac_header in stdlib.h unistd.h
10637 do
10638 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10639 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10640   echo "$as_me:$LINENO: checking for $ac_header" >&5
10641 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10642 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10643   echo $ECHO_N "(cached) $ECHO_C" >&6
10644 fi
10645 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10646 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10647 else
10648   # Is the header compilable?
10649 echo "$as_me:$LINENO: checking $ac_header usability" >&5
10650 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10651 cat >conftest.$ac_ext <<_ACEOF
10652 #line $LINENO "configure"
10653 #include "confdefs.h"
10654 $ac_includes_default
10655 #include <$ac_header>
10656 _ACEOF
10657 rm -f conftest.$ac_objext
10658 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10659   (eval $ac_compile) 2>&5
10660   ac_status=$?
10661   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10662   (exit $ac_status); } &&
10663          { ac_try='test -s conftest.$ac_objext'
10664   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10665   (eval $ac_try) 2>&5
10666   ac_status=$?
10667   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10668   (exit $ac_status); }; }; then
10669   ac_header_compiler=yes
10670 else
10671   echo "$as_me: failed program was:" >&5
10672 cat conftest.$ac_ext >&5
10673 ac_header_compiler=no
10674 fi
10675 rm -f conftest.$ac_objext conftest.$ac_ext
10676 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10677 echo "${ECHO_T}$ac_header_compiler" >&6
10678
10679 # Is the header present?
10680 echo "$as_me:$LINENO: checking $ac_header presence" >&5
10681 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10682 cat >conftest.$ac_ext <<_ACEOF
10683 #line $LINENO "configure"
10684 #include "confdefs.h"
10685 #include <$ac_header>
10686 _ACEOF
10687 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10688   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10689   ac_status=$?
10690   egrep -v '^ *\+' conftest.er1 >conftest.err
10691   rm -f conftest.er1
10692   cat conftest.err >&5
10693   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10694   (exit $ac_status); } >/dev/null; then
10695   if test -s conftest.err; then
10696     ac_cpp_err=$ac_c_preproc_warn_flag
10697   else
10698     ac_cpp_err=
10699   fi
10700 else
10701   ac_cpp_err=yes
10702 fi
10703 if test -z "$ac_cpp_err"; then
10704   ac_header_preproc=yes
10705 else
10706   echo "$as_me: failed program was:" >&5
10707   cat conftest.$ac_ext >&5
10708   ac_header_preproc=no
10709 fi
10710 rm -f conftest.err conftest.$ac_ext
10711 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10712 echo "${ECHO_T}$ac_header_preproc" >&6
10713
10714 # So?  What about this header?
10715 case $ac_header_compiler:$ac_header_preproc in
10716   yes:no )
10717     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10718 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10719     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10720 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
10721   no:yes )
10722     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10723 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10724     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10725 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10726     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10727 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
10728 esac
10729 echo "$as_me:$LINENO: checking for $ac_header" >&5
10730 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10731 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10732   echo $ECHO_N "(cached) $ECHO_C" >&6
10733 else
10734   eval "$as_ac_Header=$ac_header_preproc"
10735 fi
10736 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10737 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10738
10739 fi
10740 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10741   cat >>confdefs.h <<_ACEOF
10742 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10743 _ACEOF
10744
10745 fi
10746
10747 done
10748
10749
10750 for ac_func in getpagesize
10751 do
10752 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10753 echo "$as_me:$LINENO: checking for $ac_func" >&5
10754 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10755 if eval "test \"\${$as_ac_var+set}\" = set"; then
10756   echo $ECHO_N "(cached) $ECHO_C" >&6
10757 else
10758   cat >conftest.$ac_ext <<_ACEOF
10759 #line $LINENO "configure"
10760 #include "confdefs.h"
10761 /* System header to define __stub macros and hopefully few prototypes,
10762     which can conflict with char $ac_func (); below.  */
10763 #include <assert.h>
10764 /* Override any gcc2 internal prototype to avoid an error.  */
10765 #ifdef __cplusplus
10766 extern "C"
10767 #endif
10768 /* We use char because int might match the return type of a gcc2
10769    builtin and then its argument prototype would still apply.  */
10770 char $ac_func ();
10771 char (*f) ();
10772
10773 #ifdef F77_DUMMY_MAIN
10774 #  ifdef __cplusplus
10775      extern "C"
10776 #  endif
10777    int F77_DUMMY_MAIN() { return 1; }
10778 #endif
10779 int
10780 main ()
10781 {
10782 /* The GNU C library defines this for functions which it implements
10783     to always fail with ENOSYS.  Some functions are actually named
10784     something starting with __ and the normal name is an alias.  */
10785 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10786 choke me
10787 #else
10788 f = $ac_func;
10789 #endif
10790
10791   ;
10792   return 0;
10793 }
10794 _ACEOF
10795 rm -f conftest.$ac_objext conftest$ac_exeext
10796 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10797   (eval $ac_link) 2>&5
10798   ac_status=$?
10799   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10800   (exit $ac_status); } &&
10801          { ac_try='test -s conftest$ac_exeext'
10802   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10803   (eval $ac_try) 2>&5
10804   ac_status=$?
10805   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10806   (exit $ac_status); }; }; then
10807   eval "$as_ac_var=yes"
10808 else
10809   echo "$as_me: failed program was:" >&5
10810 cat conftest.$ac_ext >&5
10811 eval "$as_ac_var=no"
10812 fi
10813 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10814 fi
10815 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10816 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10817 if test `eval echo '${'$as_ac_var'}'` = yes; then
10818   cat >>confdefs.h <<_ACEOF
10819 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10820 _ACEOF
10821
10822 fi
10823 done
10824
10825 echo "$as_me:$LINENO: checking for working mmap" >&5
10826 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
10827 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
10828   echo $ECHO_N "(cached) $ECHO_C" >&6
10829 else
10830   if test "$cross_compiling" = yes; then
10831   ac_cv_func_mmap_fixed_mapped=no
10832 else
10833   cat >conftest.$ac_ext <<_ACEOF
10834 #line $LINENO "configure"
10835 #include "confdefs.h"
10836 $ac_includes_default
10837 /* malloc might have been renamed as rpl_malloc. */
10838 #undef malloc
10839
10840 /* Thanks to Mike Haertel and Jim Avera for this test.
10841    Here is a matrix of mmap possibilities:
10842         mmap private not fixed
10843         mmap private fixed at somewhere currently unmapped
10844         mmap private fixed at somewhere already mapped
10845         mmap shared not fixed
10846         mmap shared fixed at somewhere currently unmapped
10847         mmap shared fixed at somewhere already mapped
10848    For private mappings, we should verify that changes cannot be read()
10849    back from the file, nor mmap's back from the file at a different
10850    address.  (There have been systems where private was not correctly
10851    implemented like the infamous i386 svr4.0, and systems where the
10852    VM page cache was not coherent with the file system buffer cache
10853    like early versions of FreeBSD and possibly contemporary NetBSD.)
10854    For shared mappings, we should conversely verify that changes get
10855    propagated back to all the places they're supposed to be.
10856
10857    Grep wants private fixed already mapped.
10858    The main things grep needs to know about mmap are:
10859    * does it exist and is it safe to write into the mmap'd area
10860    * how to use it (BSD variants)  */
10861
10862 #include <fcntl.h>
10863 #include <sys/mman.h>
10864
10865 #if !STDC_HEADERS && !HAVE_STDLIB_H
10866 char *malloc ();
10867 #endif
10868
10869 /* This mess was copied from the GNU getpagesize.h.  */
10870 #if !HAVE_GETPAGESIZE
10871 /* Assume that all systems that can run configure have sys/param.h.  */
10872 # if !HAVE_SYS_PARAM_H
10873 #  define HAVE_SYS_PARAM_H 1
10874 # endif
10875
10876 # ifdef _SC_PAGESIZE
10877 #  define getpagesize() sysconf(_SC_PAGESIZE)
10878 # else /* no _SC_PAGESIZE */
10879 #  if HAVE_SYS_PARAM_H
10880 #   include <sys/param.h>
10881 #   ifdef EXEC_PAGESIZE
10882 #    define getpagesize() EXEC_PAGESIZE
10883 #   else /* no EXEC_PAGESIZE */
10884 #    ifdef NBPG
10885 #     define getpagesize() NBPG * CLSIZE
10886 #     ifndef CLSIZE
10887 #      define CLSIZE 1
10888 #     endif /* no CLSIZE */
10889 #    else /* no NBPG */
10890 #     ifdef NBPC
10891 #      define getpagesize() NBPC
10892 #     else /* no NBPC */
10893 #      ifdef PAGESIZE
10894 #       define getpagesize() PAGESIZE
10895 #      endif /* PAGESIZE */
10896 #     endif /* no NBPC */
10897 #    endif /* no NBPG */
10898 #   endif /* no EXEC_PAGESIZE */
10899 #  else /* no HAVE_SYS_PARAM_H */
10900 #   define getpagesize() 8192   /* punt totally */
10901 #  endif /* no HAVE_SYS_PARAM_H */
10902 # endif /* no _SC_PAGESIZE */
10903
10904 #endif /* no HAVE_GETPAGESIZE */
10905
10906 int
10907 main ()
10908 {
10909   char *data, *data2, *data3;
10910   int i, pagesize;
10911   int fd;
10912
10913   pagesize = getpagesize ();
10914
10915   /* First, make a file with some known garbage in it. */
10916   data = (char *) malloc (pagesize);
10917   if (!data)
10918     exit (1);
10919   for (i = 0; i < pagesize; ++i)
10920     *(data + i) = rand ();
10921   umask (0);
10922   fd = creat ("conftest.mmap", 0600);
10923   if (fd < 0)
10924     exit (1);
10925   if (write (fd, data, pagesize) != pagesize)
10926     exit (1);
10927   close (fd);
10928
10929   /* Next, try to mmap the file at a fixed address which already has
10930      something else allocated at it.  If we can, also make sure that
10931      we see the same garbage.  */
10932   fd = open ("conftest.mmap", O_RDWR);
10933   if (fd < 0)
10934     exit (1);
10935   data2 = (char *) malloc (2 * pagesize);
10936   if (!data2)
10937     exit (1);
10938   data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
10939   if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
10940                      MAP_PRIVATE | MAP_FIXED, fd, 0L))
10941     exit (1);
10942   for (i = 0; i < pagesize; ++i)
10943     if (*(data + i) != *(data2 + i))
10944       exit (1);
10945
10946   /* Finally, make sure that changes to the mapped area do not
10947      percolate back to the file as seen by read().  (This is a bug on
10948      some variants of i386 svr4.0.)  */
10949   for (i = 0; i < pagesize; ++i)
10950     *(data2 + i) = *(data2 + i) + 1;
10951   data3 = (char *) malloc (pagesize);
10952   if (!data3)
10953     exit (1);
10954   if (read (fd, data3, pagesize) != pagesize)
10955     exit (1);
10956   for (i = 0; i < pagesize; ++i)
10957     if (*(data + i) != *(data3 + i))
10958       exit (1);
10959   close (fd);
10960   exit (0);
10961 }
10962 _ACEOF
10963 rm -f conftest$ac_exeext
10964 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10965   (eval $ac_link) 2>&5
10966   ac_status=$?
10967   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10968   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10969   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10970   (eval $ac_try) 2>&5
10971   ac_status=$?
10972   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10973   (exit $ac_status); }; }; then
10974   ac_cv_func_mmap_fixed_mapped=yes
10975 else
10976   echo "$as_me: program exited with status $ac_status" >&5
10977 echo "$as_me: failed program was:" >&5
10978 cat conftest.$ac_ext >&5
10979 ( exit $ac_status )
10980 ac_cv_func_mmap_fixed_mapped=no
10981 fi
10982 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10983 fi
10984 fi
10985 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
10986 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
10987 if test $ac_cv_func_mmap_fixed_mapped = yes; then
10988
10989 cat >>confdefs.h <<\_ACEOF
10990 #define HAVE_MMAP 1
10991 _ACEOF
10992
10993 fi
10994 rm -f conftest.mmap
10995
10996 echo "$as_me:$LINENO: checking for mmap of files" >&5
10997 echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6
10998 if test "${ac_cv_func_mmap_file+set}" = set; then
10999   echo $ECHO_N "(cached) $ECHO_C" >&6
11000 else
11001
11002
11003   ac_ext=c
11004 ac_cpp='$CPP $CPPFLAGS'
11005 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11006 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11007 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11008
11009   if test "$cross_compiling" = yes; then
11010   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
11011 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
11012    { (exit 1); exit 1; }; }
11013 else
11014   cat >conftest.$ac_ext <<_ACEOF
11015 #line $LINENO "configure"
11016 #include "confdefs.h"
11017
11018 #ifdef HAVE_SYS_MMAN_H
11019 #include <sys/mman.h>
11020 #endif
11021
11022 #ifdef HAVE_SYS_TYPES_H
11023 #include <sys/types.h>
11024 #endif
11025
11026 #ifdef HAVE_FCNTL_H
11027 #include <fcntl.h>
11028 #endif
11029
11030   int fd;
11031   int main () {
11032   fd = creat ("foo",0777); fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0); unlink ("foo"); return (fd != MAP_FAILED);}
11033 _ACEOF
11034 rm -f conftest$ac_exeext
11035 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11036   (eval $ac_link) 2>&5
11037   ac_status=$?
11038   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11039   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11040   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11041   (eval $ac_try) 2>&5
11042   ac_status=$?
11043   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11044   (exit $ac_status); }; }; then
11045   ac_cv_func_mmap_file=yes
11046 else
11047   echo "$as_me: program exited with status $ac_status" >&5
11048 echo "$as_me: failed program was:" >&5
11049 cat conftest.$ac_ext >&5
11050 ( exit $ac_status )
11051 ac_cv_func_mmap_file=no
11052 fi
11053 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11054 fi
11055   ac_ext=c
11056 ac_cpp='$CPP $CPPFLAGS'
11057 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11058 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11059 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11060
11061
11062 fi
11063 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
11064 echo "${ECHO_T}$ac_cv_func_mmap_file" >&6
11065 if test "$ac_cv_func_mmap_file" = yes; then
11066    cat >>confdefs.h <<\_ACEOF
11067 #define HAVE_MMAP_FILE 1
11068 _ACEOF
11069
11070    MMAP_FILE=yes
11071
11072 fi
11073
11074 if test ${ac_cv_func_mmap_file} = "no"
11075 then
11076         { { echo "$as_me:$LINENO: error: mmap() of files required but not found" >&5
11077 echo "$as_me: error: mmap() of files required but not found" >&2;}
11078    { (exit 1); exit 1; }; }
11079 fi
11080 echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5
11081 echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6
11082 if test "${ac_cv_header_mmap_anon+set}" = set; then
11083   echo $ECHO_N "(cached) $ECHO_C" >&6
11084 else
11085
11086
11087   ac_ext=c
11088 ac_cpp='$CPP $CPPFLAGS'
11089 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11090 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11091 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11092
11093   cat >conftest.$ac_ext <<_ACEOF
11094 #line $LINENO "configure"
11095 #include "confdefs.h"
11096 #include <sys/mman.h>
11097   #include <unistd.h>
11098   #include <fcntl.h>
11099 #ifdef F77_DUMMY_MAIN
11100 #  ifdef __cplusplus
11101      extern "C"
11102 #  endif
11103    int F77_DUMMY_MAIN() { return 1; }
11104 #endif
11105 int
11106 main ()
11107 {
11108 mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0);
11109   ;
11110   return 0;
11111 }
11112 _ACEOF
11113 rm -f conftest.$ac_objext
11114 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11115   (eval $ac_compile) 2>&5
11116   ac_status=$?
11117   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11118   (exit $ac_status); } &&
11119          { ac_try='test -s conftest.$ac_objext'
11120   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11121   (eval $ac_try) 2>&5
11122   ac_status=$?
11123   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11124   (exit $ac_status); }; }; then
11125   ac_cv_header_mmap_anon=yes
11126 else
11127   echo "$as_me: failed program was:" >&5
11128 cat conftest.$ac_ext >&5
11129 ac_cv_header_mmap_anon=no
11130 fi
11131 rm -f conftest.$ac_objext conftest.$ac_ext
11132   ac_ext=c
11133 ac_cpp='$CPP $CPPFLAGS'
11134 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11135 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11136 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11137
11138
11139 fi
11140 echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5
11141 echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6
11142 if test "$ac_cv_header_mmap_anon" = yes; then
11143    cat >>confdefs.h <<\_ACEOF
11144 #define HAVE_MMAP_ANONYMOUS 1
11145 _ACEOF
11146
11147 fi
11148
11149 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
11150 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
11151 if test "${ac_cv_type_signal+set}" = set; then
11152   echo $ECHO_N "(cached) $ECHO_C" >&6
11153 else
11154   cat >conftest.$ac_ext <<_ACEOF
11155 #line $LINENO "configure"
11156 #include "confdefs.h"
11157 #include <sys/types.h>
11158 #include <signal.h>
11159 #ifdef signal
11160 # undef signal
11161 #endif
11162 #ifdef __cplusplus
11163 extern "C" void (*signal (int, void (*)(int)))(int);
11164 #else
11165 void (*signal ()) ();
11166 #endif
11167
11168 #ifdef F77_DUMMY_MAIN
11169 #  ifdef __cplusplus
11170      extern "C"
11171 #  endif
11172    int F77_DUMMY_MAIN() { return 1; }
11173 #endif
11174 int
11175 main ()
11176 {
11177 int i;
11178   ;
11179   return 0;
11180 }
11181 _ACEOF
11182 rm -f conftest.$ac_objext
11183 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11184   (eval $ac_compile) 2>&5
11185   ac_status=$?
11186   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11187   (exit $ac_status); } &&
11188          { ac_try='test -s conftest.$ac_objext'
11189   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11190   (eval $ac_try) 2>&5
11191   ac_status=$?
11192   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11193   (exit $ac_status); }; }; then
11194   ac_cv_type_signal=void
11195 else
11196   echo "$as_me: failed program was:" >&5
11197 cat conftest.$ac_ext >&5
11198 ac_cv_type_signal=int
11199 fi
11200 rm -f conftest.$ac_objext conftest.$ac_ext
11201 fi
11202 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
11203 echo "${ECHO_T}$ac_cv_type_signal" >&6
11204
11205 cat >>confdefs.h <<_ACEOF
11206 #define RETSIGTYPE $ac_cv_type_signal
11207 _ACEOF
11208
11209
11210
11211
11212
11213
11214
11215
11216
11217
11218
11219 for ac_func in getcwd gettimeofday strcspn strdup strerror strspn strstr strtod strtol
11220 do
11221 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11222 echo "$as_me:$LINENO: checking for $ac_func" >&5
11223 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11224 if eval "test \"\${$as_ac_var+set}\" = set"; then
11225   echo $ECHO_N "(cached) $ECHO_C" >&6
11226 else
11227   cat >conftest.$ac_ext <<_ACEOF
11228 #line $LINENO "configure"
11229 #include "confdefs.h"
11230 /* System header to define __stub macros and hopefully few prototypes,
11231     which can conflict with char $ac_func (); below.  */
11232 #include <assert.h>
11233 /* Override any gcc2 internal prototype to avoid an error.  */
11234 #ifdef __cplusplus
11235 extern "C"
11236 #endif
11237 /* We use char because int might match the return type of a gcc2
11238    builtin and then its argument prototype would still apply.  */
11239 char $ac_func ();
11240 char (*f) ();
11241
11242 #ifdef F77_DUMMY_MAIN
11243 #  ifdef __cplusplus
11244      extern "C"
11245 #  endif
11246    int F77_DUMMY_MAIN() { return 1; }
11247 #endif
11248 int
11249 main ()
11250 {
11251 /* The GNU C library defines this for functions which it implements
11252     to always fail with ENOSYS.  Some functions are actually named
11253     something starting with __ and the normal name is an alias.  */
11254 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11255 choke me
11256 #else
11257 f = $ac_func;
11258 #endif
11259
11260   ;
11261   return 0;
11262 }
11263 _ACEOF
11264 rm -f conftest.$ac_objext conftest$ac_exeext
11265 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11266   (eval $ac_link) 2>&5
11267   ac_status=$?
11268   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11269   (exit $ac_status); } &&
11270          { ac_try='test -s conftest$ac_exeext'
11271   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11272   (eval $ac_try) 2>&5
11273   ac_status=$?
11274   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11275   (exit $ac_status); }; }; then
11276   eval "$as_ac_var=yes"
11277 else
11278   echo "$as_me: failed program was:" >&5
11279 cat conftest.$ac_ext >&5
11280 eval "$as_ac_var=no"
11281 fi
11282 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11283 fi
11284 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11285 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11286 if test `eval echo '${'$as_ac_var'}'` = yes; then
11287   cat >>confdefs.h <<_ACEOF
11288 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11289 _ACEOF
11290
11291 fi
11292 done
11293
11294
11295
11296 echo "$as_me:$LINENO: checking for mmap" >&5
11297 echo $ECHO_N "checking for mmap... $ECHO_C" >&6
11298 if test "${ac_cv_func_mmap+set}" = set; then
11299   echo $ECHO_N "(cached) $ECHO_C" >&6
11300 else
11301   cat >conftest.$ac_ext <<_ACEOF
11302 #line $LINENO "configure"
11303 #include "confdefs.h"
11304 /* System header to define __stub macros and hopefully few prototypes,
11305     which can conflict with char mmap (); below.  */
11306 #include <assert.h>
11307 /* Override any gcc2 internal prototype to avoid an error.  */
11308 #ifdef __cplusplus
11309 extern "C"
11310 #endif
11311 /* We use char because int might match the return type of a gcc2
11312    builtin and then its argument prototype would still apply.  */
11313 char mmap ();
11314 char (*f) ();
11315
11316 #ifdef F77_DUMMY_MAIN
11317 #  ifdef __cplusplus
11318      extern "C"
11319 #  endif
11320    int F77_DUMMY_MAIN() { return 1; }
11321 #endif
11322 int
11323 main ()
11324 {
11325 /* The GNU C library defines this for functions which it implements
11326     to always fail with ENOSYS.  Some functions are actually named
11327     something starting with __ and the normal name is an alias.  */
11328 #if defined (__stub_mmap) || defined (__stub___mmap)
11329 choke me
11330 #else
11331 f = mmap;
11332 #endif
11333
11334   ;
11335   return 0;
11336 }
11337 _ACEOF
11338 rm -f conftest.$ac_objext conftest$ac_exeext
11339 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11340   (eval $ac_link) 2>&5
11341   ac_status=$?
11342   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11343   (exit $ac_status); } &&
11344          { ac_try='test -s conftest$ac_exeext'
11345   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11346   (eval $ac_try) 2>&5
11347   ac_status=$?
11348   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11349   (exit $ac_status); }; }; then
11350   ac_cv_func_mmap=yes
11351 else
11352   echo "$as_me: failed program was:" >&5
11353 cat conftest.$ac_ext >&5
11354 ac_cv_func_mmap=no
11355 fi
11356 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11357 fi
11358 echo "$as_me:$LINENO: result: $ac_cv_func_mmap" >&5
11359 echo "${ECHO_T}$ac_cv_func_mmap" >&6
11360 if test $ac_cv_func_mmap = yes; then
11361   :
11362 else
11363   { { echo "$as_me:$LINENO: error: Function mmap() required but not found" >&5
11364 echo "$as_me: error: Function mmap() required but not found" >&2;}
11365    { (exit 1); exit 1; }; }
11366 fi
11367
11368 echo "$as_me:$LINENO: checking for mprotect" >&5
11369 echo $ECHO_N "checking for mprotect... $ECHO_C" >&6
11370 if test "${ac_cv_func_mprotect+set}" = set; then
11371   echo $ECHO_N "(cached) $ECHO_C" >&6
11372 else
11373   cat >conftest.$ac_ext <<_ACEOF
11374 #line $LINENO "configure"
11375 #include "confdefs.h"
11376 /* System header to define __stub macros and hopefully few prototypes,
11377     which can conflict with char mprotect (); below.  */
11378 #include <assert.h>
11379 /* Override any gcc2 internal prototype to avoid an error.  */
11380 #ifdef __cplusplus
11381 extern "C"
11382 #endif
11383 /* We use char because int might match the return type of a gcc2
11384    builtin and then its argument prototype would still apply.  */
11385 char mprotect ();
11386 char (*f) ();
11387
11388 #ifdef F77_DUMMY_MAIN
11389 #  ifdef __cplusplus
11390      extern "C"
11391 #  endif
11392    int F77_DUMMY_MAIN() { return 1; }
11393 #endif
11394 int
11395 main ()
11396 {
11397 /* The GNU C library defines this for functions which it implements
11398     to always fail with ENOSYS.  Some functions are actually named
11399     something starting with __ and the normal name is an alias.  */
11400 #if defined (__stub_mprotect) || defined (__stub___mprotect)
11401 choke me
11402 #else
11403 f = mprotect;
11404 #endif
11405
11406   ;
11407   return 0;
11408 }
11409 _ACEOF
11410 rm -f conftest.$ac_objext conftest$ac_exeext
11411 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11412   (eval $ac_link) 2>&5
11413   ac_status=$?
11414   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11415   (exit $ac_status); } &&
11416          { ac_try='test -s conftest$ac_exeext'
11417   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11418   (eval $ac_try) 2>&5
11419   ac_status=$?
11420   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11421   (exit $ac_status); }; }; then
11422   ac_cv_func_mprotect=yes
11423 else
11424   echo "$as_me: failed program was:" >&5
11425 cat conftest.$ac_ext >&5
11426 ac_cv_func_mprotect=no
11427 fi
11428 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11429 fi
11430 echo "$as_me:$LINENO: result: $ac_cv_func_mprotect" >&5
11431 echo "${ECHO_T}$ac_cv_func_mprotect" >&6
11432 if test $ac_cv_func_mprotect = yes; then
11433   :
11434 else
11435   { { echo "$as_me:$LINENO: error: Function mprotect() required but not found" >&5
11436 echo "$as_me: error: Function mprotect() required but not found" >&2;}
11437    { (exit 1); exit 1; }; }
11438 fi
11439
11440
11441 # Check whether --enable-purify or --disable-purify was given.
11442 if test "${enable_purify+set}" = set; then
11443   enableval="$enable_purify"
11444   ENABLE_PURIFY=ENABLE_PURIFY=1
11445
11446 else
11447   ENABLE_PURIFY=
11448
11449 fi;
11450 # Check whether --enable-profiling or --disable-profiling was given.
11451 if test "${enable_profiling+set}" = set; then
11452   enableval="$enable_profiling"
11453   ENABLE_PROFILING=ENABLE_PROFILING=1
11454
11455 else
11456   ENABLE_PROFILING=
11457
11458 fi;
11459 # Check whether --enable-optimized or --disable-optimized was given.
11460 if test "${enable_optimized+set}" = set; then
11461   enableval="$enable_optimized"
11462   ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1
11463
11464 else
11465   ENABLE_OPTIMIZED=
11466
11467 fi;
11468 # Check whether --enable-spec or --disable-spec was given.
11469 if test "${enable_spec+set}" = set; then
11470   enableval="$enable_spec"
11471   USE_SPEC=USE_SPEC=1
11472
11473 else
11474   USE_SPEC=
11475
11476 fi;
11477 # Check whether --enable-precompiled_bytecode or --disable-precompiled_bytecode was given.
11478 if test "${enable_precompiled_bytecode+set}" = set; then
11479   enableval="$enable_precompiled_bytecode"
11480   UPB=USE_PRECOMPILED_BYTECODE=1
11481
11482 else
11483   UPB=
11484
11485 fi;
11486 case $build in
11487         *i*86*)  # Check whether --enable-jit or --disable-jit was given.
11488 if test "${enable_jit+set}" = set; then
11489   enableval="$enable_jit"
11490   JIT=TARGET_HAS_JIT=1
11491
11492 else
11493   JIT=
11494
11495 fi;
11496                  ;;
11497         *)
11498                  ;;
11499 esac
11500
11501
11502 # Check whether --with-spec or --without-spec was given.
11503 if test "${with_spec+set}" = set; then
11504   withval="$with_spec"
11505   SPEC_ROOT=$withval
11506
11507 else
11508   SPEC_ROOT=/home/vadve/shared/benchmarks/speccpu2000/benchspec
11509
11510 fi;
11511
11512 # Check whether --with-llvmgccdir or --without-llvmgccdir was given.
11513 if test "${with_llvmgccdir+set}" = set; then
11514   withval="$with_llvmgccdir"
11515   LLVMGCCDIR=$withval
11516
11517 fi;
11518
11519 # Check whether --with-bcrepos or --without-bcrepos was given.
11520 if test "${with_bcrepos+set}" = set; then
11521   withval="$with_bcrepos"
11522   BCR=$withval
11523
11524 else
11525   BCR=/home/vadve/lattner/LLVMPrograms
11526
11527 fi;
11528
11529 # Check whether --with-papi or --without-papi was given.
11530 if test "${with_papi+set}" = set; then
11531   withval="$with_papi"
11532   PAPIDIR=$withval
11533
11534 else
11535   PAPIDIR=/home/vadve/shared/papi-2.3.4.1
11536
11537 fi;
11538
11539 # Check whether --with-objroot or --without-objroot was given.
11540 if test "${with_objroot+set}" = set; then
11541   withval="$with_objroot"
11542   OBJROOT=$withval
11543
11544 else
11545   OBJROOT=.
11546
11547 fi;
11548
11549 # Check whether --with-purify or --without-purify was given.
11550 if test "${with_purify+set}" = set; then
11551   withval="$with_purify"
11552   PURIFY=$withval
11553
11554 fi;
11555
11556 ac_config_files="$ac_config_files Makefile.config"
11557 cat >confcache <<\_ACEOF
11558 # This file is a shell script that caches the results of configure
11559 # tests run on this system so they can be shared between configure
11560 # scripts and configure runs, see configure's option --config-cache.
11561 # It is not useful on other systems.  If it contains results you don't
11562 # want to keep, you may remove or edit it.
11563 #
11564 # config.status only pays attention to the cache file if you give it
11565 # the --recheck option to rerun configure.
11566 #
11567 # `ac_cv_env_foo' variables (set or unset) will be overriden when
11568 # loading this file, other *unset* `ac_cv_foo' will be assigned the
11569 # following values.
11570
11571 _ACEOF
11572
11573 # The following way of writing the cache mishandles newlines in values,
11574 # but we know of no workaround that is simple, portable, and efficient.
11575 # So, don't put newlines in cache variables' values.
11576 # Ultrix sh set writes to stderr and can't be redirected directly,
11577 # and sets the high bit in the cache file unless we assign to the vars.
11578 {
11579   (set) 2>&1 |
11580     case `(ac_space=' '; set | grep ac_space) 2>&1` in
11581     *ac_space=\ *)
11582       # `set' does not quote correctly, so add quotes (double-quote
11583       # substitution turns \\\\ into \\, and sed turns \\ into \).
11584       sed -n \
11585         "s/'/'\\\\''/g;
11586           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
11587       ;;
11588     *)
11589       # `set' quotes correctly as required by POSIX, so do not add quotes.
11590       sed -n \
11591         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
11592       ;;
11593     esac;
11594 } |
11595   sed '
11596      t clear
11597      : clear
11598      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
11599      t end
11600      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
11601      : end' >>confcache
11602 if cmp -s $cache_file confcache; then :; else
11603   if test -w $cache_file; then
11604     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
11605     cat confcache >$cache_file
11606   else
11607     echo "not updating unwritable cache $cache_file"
11608   fi
11609 fi
11610 rm -f confcache
11611
11612 test "x$prefix" = xNONE && prefix=$ac_default_prefix
11613 # Let make expand exec_prefix.
11614 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
11615
11616 # VPATH may cause trouble with some makes, so we remove $(srcdir),
11617 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
11618 # trailing colons and then remove the whole line if VPATH becomes empty
11619 # (actually we leave an empty line to preserve line numbers).
11620 if test "x$srcdir" = x.; then
11621   ac_vpsub='/^[         ]*VPATH[        ]*=/{
11622 s/:*\$(srcdir):*/:/;
11623 s/:*\${srcdir}:*/:/;
11624 s/:*@srcdir@:*/:/;
11625 s/^\([^=]*=[    ]*\):*/\1/;
11626 s/:*$//;
11627 s/^[^=]*=[      ]*$//;
11628 }'
11629 fi
11630
11631 DEFS=-DHAVE_CONFIG_H
11632
11633
11634 : ${CONFIG_STATUS=./config.status}
11635 ac_clean_files_save=$ac_clean_files
11636 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
11637 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
11638 echo "$as_me: creating $CONFIG_STATUS" >&6;}
11639 cat >$CONFIG_STATUS <<_ACEOF
11640 #! $SHELL
11641 # Generated by $as_me.
11642 # Run this file to recreate the current configuration.
11643 # Compiler output produced by configure, useful for debugging
11644 # configure, is in config.log if it exists.
11645
11646 debug=false
11647 SHELL=\${CONFIG_SHELL-$SHELL}
11648 _ACEOF
11649
11650 cat >>$CONFIG_STATUS <<\_ACEOF
11651
11652 ## --------------------- ##
11653 ## M4sh Initialization.  ##
11654 ## --------------------- ##
11655
11656 # Be Bourne compatible
11657 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
11658   emulate sh
11659   NULLCMD=:
11660 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
11661   set -o posix
11662 fi
11663
11664 # NLS nuisances.
11665 # Support unset when possible.
11666 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
11667   as_unset=unset
11668 else
11669   as_unset=false
11670 fi
11671
11672 (set +x; test -n "`(LANG=C; export LANG) 2>&1`") &&
11673     { $as_unset LANG || test "${LANG+set}" != set; } ||
11674       { LANG=C; export LANG; }
11675 (set +x; test -n "`(LC_ALL=C; export LC_ALL) 2>&1`") &&
11676     { $as_unset LC_ALL || test "${LC_ALL+set}" != set; } ||
11677       { LC_ALL=C; export LC_ALL; }
11678 (set +x; test -n "`(LC_TIME=C; export LC_TIME) 2>&1`") &&
11679     { $as_unset LC_TIME || test "${LC_TIME+set}" != set; } ||
11680       { LC_TIME=C; export LC_TIME; }
11681 (set +x; test -n "`(LC_CTYPE=C; export LC_CTYPE) 2>&1`") &&
11682     { $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set; } ||
11683       { LC_CTYPE=C; export LC_CTYPE; }
11684 (set +x; test -n "`(LANGUAGE=C; export LANGUAGE) 2>&1`") &&
11685     { $as_unset LANGUAGE || test "${LANGUAGE+set}" != set; } ||
11686       { LANGUAGE=C; export LANGUAGE; }
11687 (set +x; test -n "`(LC_COLLATE=C; export LC_COLLATE) 2>&1`") &&
11688     { $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set; } ||
11689       { LC_COLLATE=C; export LC_COLLATE; }
11690 (set +x; test -n "`(LC_NUMERIC=C; export LC_NUMERIC) 2>&1`") &&
11691     { $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set; } ||
11692       { LC_NUMERIC=C; export LC_NUMERIC; }
11693 (set +x; test -n "`(LC_MESSAGES=C; export LC_MESSAGES) 2>&1`") &&
11694     { $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set; } ||
11695       { LC_MESSAGES=C; export LC_MESSAGES; }
11696
11697
11698 # Name of the executable.
11699 as_me=`(basename "$0") 2>/dev/null ||
11700 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
11701          X"$0" : 'X\(//\)$' \| \
11702          X"$0" : 'X\(/\)$' \| \
11703          .     : '\(.\)' 2>/dev/null ||
11704 echo X/"$0" |
11705     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
11706           /^X\/\(\/\/\)$/{ s//\1/; q; }
11707           /^X\/\(\/\).*/{ s//\1/; q; }
11708           s/.*/./; q'`
11709
11710 # PATH needs CR, and LINENO needs CR and PATH.
11711 # Avoid depending upon Character Ranges.
11712 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
11713 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
11714 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
11715 as_cr_digits='0123456789'
11716 as_cr_alnum=$as_cr_Letters$as_cr_digits
11717
11718 # The user is always right.
11719 if test "${PATH_SEPARATOR+set}" != set; then
11720   echo "#! /bin/sh" >conftest.sh
11721   echo  "exit 0"   >>conftest.sh
11722   chmod +x conftest.sh
11723   if (PATH=".;."; conftest.sh) >/dev/null 2>&1; then
11724     PATH_SEPARATOR=';'
11725   else
11726     PATH_SEPARATOR=:
11727   fi
11728   rm -f conftest.sh
11729 fi
11730
11731
11732   as_lineno_1=$LINENO
11733   as_lineno_2=$LINENO
11734   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
11735   test "x$as_lineno_1" != "x$as_lineno_2" &&
11736   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
11737   # Find who we are.  Look in the path if we contain no path at all
11738   # relative or not.
11739   case $0 in
11740     *[\\/]* ) as_myself=$0 ;;
11741     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11742 for as_dir in $PATH
11743 do
11744   IFS=$as_save_IFS
11745   test -z "$as_dir" && as_dir=.
11746   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
11747 done
11748
11749        ;;
11750   esac
11751   # We did not find ourselves, most probably we were run as `sh COMMAND'
11752   # in which case we are not to be found in the path.
11753   if test "x$as_myself" = x; then
11754     as_myself=$0
11755   fi
11756   if test ! -f "$as_myself"; then
11757     { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
11758 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
11759    { (exit 1); exit 1; }; }
11760   fi
11761   case $CONFIG_SHELL in
11762   '')
11763     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11764 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
11765 do
11766   IFS=$as_save_IFS
11767   test -z "$as_dir" && as_dir=.
11768   for as_base in sh bash ksh sh5; do
11769          case $as_dir in
11770          /*)
11771            if ("$as_dir/$as_base" -c '
11772   as_lineno_1=$LINENO
11773   as_lineno_2=$LINENO
11774   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
11775   test "x$as_lineno_1" != "x$as_lineno_2" &&
11776   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
11777              CONFIG_SHELL=$as_dir/$as_base
11778              export CONFIG_SHELL
11779              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
11780            fi;;
11781          esac
11782        done
11783 done
11784 ;;
11785   esac
11786
11787   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
11788   # uniformly replaced by the line number.  The first 'sed' inserts a
11789   # line-number line before each line; the second 'sed' does the real
11790   # work.  The second script uses 'N' to pair each line-number line
11791   # with the numbered line, and appends trailing '-' during
11792   # substitution so that $LINENO is not a special case at line end.
11793   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
11794   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
11795   sed '=' <$as_myself |
11796     sed '
11797       N
11798       s,$,-,
11799       : loop
11800       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
11801       t loop
11802       s,-$,,
11803       s,^['$as_cr_digits']*\n,,
11804     ' >$as_me.lineno &&
11805   chmod +x $as_me.lineno ||
11806     { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
11807 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
11808    { (exit 1); exit 1; }; }
11809
11810   # Don't try to exec as it changes $[0], causing all sort of problems
11811   # (the dirname of $[0] is not the place where we might find the
11812   # original and so on.  Autoconf is especially sensible to this).
11813   . ./$as_me.lineno
11814   # Exit status is that of the last command.
11815   exit
11816 }
11817
11818
11819 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
11820   *c*,-n*) ECHO_N= ECHO_C='
11821 ' ECHO_T='      ' ;;
11822   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
11823   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
11824 esac
11825
11826 if expr a : '\(a\)' >/dev/null 2>&1; then
11827   as_expr=expr
11828 else
11829   as_expr=false
11830 fi
11831
11832 rm -f conf$$ conf$$.exe conf$$.file
11833 echo >conf$$.file
11834 if ln -s conf$$.file conf$$ 2>/dev/null; then
11835   # We could just check for DJGPP; but this test a) works b) is more generic
11836   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
11837   if test -f conf$$.exe; then
11838     # Don't use ln at all; we don't have any links
11839     as_ln_s='cp -p'
11840   else
11841     as_ln_s='ln -s'
11842   fi
11843 elif ln conf$$.file conf$$ 2>/dev/null; then
11844   as_ln_s=ln
11845 else
11846   as_ln_s='cp -p'
11847 fi
11848 rm -f conf$$ conf$$.exe conf$$.file
11849
11850 as_executable_p="test -f"
11851
11852 # Sed expression to map a string onto a valid CPP name.
11853 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
11854
11855 # Sed expression to map a string onto a valid variable name.
11856 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
11857
11858
11859 # IFS
11860 # We need space, tab and new line, in precisely that order.
11861 as_nl='
11862 '
11863 IFS="   $as_nl"
11864
11865 # CDPATH.
11866 $as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=$PATH_SEPARATOR; export CDPATH; }
11867
11868 exec 6>&1
11869
11870 # Open the log real soon, to keep \$[0] and so on meaningful, and to
11871 # report actual input values of CONFIG_FILES etc. instead of their
11872 # values after options handling.  Logging --version etc. is OK.
11873 exec 5>>config.log
11874 {
11875   echo
11876   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
11877 ## Running $as_me. ##
11878 _ASBOX
11879 } >&5
11880 cat >&5 <<_CSEOF
11881
11882 This file was extended by [LLVM] $as_me [1.0], which was
11883 generated by GNU Autoconf 2.53.  Invocation command line was
11884
11885   CONFIG_FILES    = $CONFIG_FILES
11886   CONFIG_HEADERS  = $CONFIG_HEADERS
11887   CONFIG_LINKS    = $CONFIG_LINKS
11888   CONFIG_COMMANDS = $CONFIG_COMMANDS
11889   $ $0 $@
11890
11891 _CSEOF
11892 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
11893 echo >&5
11894 _ACEOF
11895
11896 # Files that config.status was made for.
11897 if test -n "$ac_config_files"; then
11898   echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
11899 fi
11900
11901 if test -n "$ac_config_headers"; then
11902   echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
11903 fi
11904
11905 if test -n "$ac_config_links"; then
11906   echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
11907 fi
11908
11909 if test -n "$ac_config_commands"; then
11910   echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
11911 fi
11912
11913 cat >>$CONFIG_STATUS <<\_ACEOF
11914
11915 ac_cs_usage="\
11916 \`$as_me' instantiates files from templates according to the
11917 current configuration.
11918
11919 Usage: $0 [OPTIONS] [FILE]...
11920
11921   -h, --help       print this help, then exit
11922   -V, --version    print version number, then exit
11923   -d, --debug      don't remove temporary files
11924       --recheck    update $as_me by reconfiguring in the same conditions
11925   --file=FILE[:TEMPLATE]
11926                    instantiate the configuration file FILE
11927   --header=FILE[:TEMPLATE]
11928                    instantiate the configuration header FILE
11929
11930 Configuration files:
11931 $config_files
11932
11933 Configuration headers:
11934 $config_headers
11935
11936 Report bugs to <bug-autoconf@gnu.org>."
11937 _ACEOF
11938
11939 cat >>$CONFIG_STATUS <<_ACEOF
11940 ac_cs_version="\\
11941 [LLVM] config.status [1.0]
11942 configured by $0, generated by GNU Autoconf 2.53,
11943   with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
11944
11945 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
11946 Free Software Foundation, Inc.
11947 This config.status script is free software; the Free Software Foundation
11948 gives unlimited permission to copy, distribute and modify it."
11949 srcdir=$srcdir
11950 INSTALL="$INSTALL"
11951 _ACEOF
11952
11953 cat >>$CONFIG_STATUS <<\_ACEOF
11954 # If no file are specified by the user, then we need to provide default
11955 # value.  By we need to know if files were specified by the user.
11956 ac_need_defaults=:
11957 while test $# != 0
11958 do
11959   case $1 in
11960   --*=*)
11961     ac_option=`expr "x$1" : 'x\([^=]*\)='`
11962     ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
11963     shift
11964     set dummy "$ac_option" "$ac_optarg" ${1+"$@"}
11965     shift
11966     ;;
11967   -*);;
11968   *) # This is not an option, so the user has probably given explicit
11969      # arguments.
11970      ac_need_defaults=false;;
11971   esac
11972
11973   case $1 in
11974   # Handling of the options.
11975 _ACEOF
11976 cat >>$CONFIG_STATUS <<_ACEOF
11977   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
11978     echo "running $SHELL $0 " $ac_configure_args " --no-create --no-recursion"
11979     exec $SHELL $0 $ac_configure_args --no-create --no-recursion ;;
11980 _ACEOF
11981 cat >>$CONFIG_STATUS <<\_ACEOF
11982   --version | --vers* | -V )
11983     echo "$ac_cs_version"; exit 0 ;;
11984   --he | --h)
11985     # Conflict between --help and --header
11986     { { echo "$as_me:$LINENO: error: ambiguous option: $1
11987 Try \`$0 --help' for more information." >&5
11988 echo "$as_me: error: ambiguous option: $1
11989 Try \`$0 --help' for more information." >&2;}
11990    { (exit 1); exit 1; }; };;
11991   --help | --hel | -h )
11992     echo "$ac_cs_usage"; exit 0 ;;
11993   --debug | --d* | -d )
11994     debug=: ;;
11995   --file | --fil | --fi | --f )
11996     shift
11997     CONFIG_FILES="$CONFIG_FILES $1"
11998     ac_need_defaults=false;;
11999   --header | --heade | --head | --hea )
12000     shift
12001     CONFIG_HEADERS="$CONFIG_HEADERS $1"
12002     ac_need_defaults=false;;
12003
12004   # This is an error.
12005   -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
12006 Try \`$0 --help' for more information." >&5
12007 echo "$as_me: error: unrecognized option: $1
12008 Try \`$0 --help' for more information." >&2;}
12009    { (exit 1); exit 1; }; } ;;
12010
12011   *) ac_config_targets="$ac_config_targets $1" ;;
12012
12013   esac
12014   shift
12015 done
12016
12017 _ACEOF
12018
12019
12020
12021
12022
12023 cat >>$CONFIG_STATUS <<\_ACEOF
12024 for ac_config_target in $ac_config_targets
12025 do
12026   case "$ac_config_target" in
12027   # Handling of arguments.
12028   "Makefile.config" ) CONFIG_FILES="$CONFIG_FILES Makefile.config" ;;
12029   "include/Config/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/Config/config.h" ;;
12030   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
12031 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
12032    { (exit 1); exit 1; }; };;
12033   esac
12034 done
12035
12036 # If the user did not use the arguments to specify the items to instantiate,
12037 # then the envvar interface is used.  Set only those that are not.
12038 # We use the long form for the default assignment because of an extremely
12039 # bizarre bug on SunOS 4.1.3.
12040 if $ac_need_defaults; then
12041   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
12042   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
12043 fi
12044
12045 # Create a temporary directory, and hook for its removal unless debugging.
12046 $debug ||
12047 {
12048   trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
12049   trap '{ (exit 1); exit 1; }' 1 2 13 15
12050 }
12051
12052 # Create a (secure) tmp directory for tmp files.
12053 : ${TMPDIR=/tmp}
12054 {
12055   tmp=`(umask 077 && mktemp -d -q "$TMPDIR/csXXXXXX") 2>/dev/null` &&
12056   test -n "$tmp" && test -d "$tmp"
12057 }  ||
12058 {
12059   tmp=$TMPDIR/cs$$-$RANDOM
12060   (umask 077 && mkdir $tmp)
12061 } ||
12062 {
12063    echo "$me: cannot create a temporary directory in $TMPDIR" >&2
12064    { (exit 1); exit 1; }
12065 }
12066
12067 _ACEOF
12068
12069 cat >>$CONFIG_STATUS <<_ACEOF
12070
12071 #
12072 # CONFIG_FILES section.
12073 #
12074
12075 # No need to generate the scripts if there are no CONFIG_FILES.
12076 # This happens for instance when ./config.status config.h
12077 if test -n "\$CONFIG_FILES"; then
12078   # Protect against being on the right side of a sed subst in config.status.
12079   sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
12080    s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
12081 s,@SHELL@,$SHELL,;t t
12082 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
12083 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
12084 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
12085 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
12086 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
12087 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
12088 s,@exec_prefix@,$exec_prefix,;t t
12089 s,@prefix@,$prefix,;t t
12090 s,@program_transform_name@,$program_transform_name,;t t
12091 s,@bindir@,$bindir,;t t
12092 s,@sbindir@,$sbindir,;t t
12093 s,@libexecdir@,$libexecdir,;t t
12094 s,@datadir@,$datadir,;t t
12095 s,@sysconfdir@,$sysconfdir,;t t
12096 s,@sharedstatedir@,$sharedstatedir,;t t
12097 s,@localstatedir@,$localstatedir,;t t
12098 s,@libdir@,$libdir,;t t
12099 s,@includedir@,$includedir,;t t
12100 s,@oldincludedir@,$oldincludedir,;t t
12101 s,@infodir@,$infodir,;t t
12102 s,@mandir@,$mandir,;t t
12103 s,@build_alias@,$build_alias,;t t
12104 s,@host_alias@,$host_alias,;t t
12105 s,@target_alias@,$target_alias,;t t
12106 s,@DEFS@,$DEFS,;t t
12107 s,@ECHO_C@,$ECHO_C,;t t
12108 s,@ECHO_N@,$ECHO_N,;t t
12109 s,@ECHO_T@,$ECHO_T,;t t
12110 s,@LIBS@,$LIBS,;t t
12111 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
12112 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
12113 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
12114 s,@build@,$build,;t t
12115 s,@build_cpu@,$build_cpu,;t t
12116 s,@build_vendor@,$build_vendor,;t t
12117 s,@build_os@,$build_os,;t t
12118 s,@host@,$host,;t t
12119 s,@host_cpu@,$host_cpu,;t t
12120 s,@host_vendor@,$host_vendor,;t t
12121 s,@host_os@,$host_os,;t t
12122 s,@target@,$target,;t t
12123 s,@target_cpu@,$target_cpu,;t t
12124 s,@target_vendor@,$target_vendor,;t t
12125 s,@target_os@,$target_os,;t t
12126 s,@OS@,$OS,;t t
12127 s,@DISABLE_LLC_DIFFS@,$DISABLE_LLC_DIFFS,;t t
12128 s,@LLVMGCCDIR@,$LLVMGCCDIR,;t t
12129 s,@CXX@,$CXX,;t t
12130 s,@CXXFLAGS@,$CXXFLAGS,;t t
12131 s,@LDFLAGS@,$LDFLAGS,;t t
12132 s,@CPPFLAGS@,$CPPFLAGS,;t t
12133 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
12134 s,@EXEEXT@,$EXEEXT,;t t
12135 s,@OBJEXT@,$OBJEXT,;t t
12136 s,@CC@,$CC,;t t
12137 s,@CFLAGS@,$CFLAGS,;t t
12138 s,@ac_ct_CC@,$ac_ct_CC,;t t
12139 s,@CPP@,$CPP,;t t
12140 s,@ifGNUmake@,$ifGNUmake,;t t
12141 s,@LEX@,$LEX,;t t
12142 s,@LEXLIB@,$LEXLIB,;t t
12143 s,@LEX_OUTPUT_ROOT@,$LEX_OUTPUT_ROOT,;t t
12144 s,@YACC@,$YACC,;t t
12145 s,@LN_S@,$LN_S,;t t
12146 s,@ECHO@,$ECHO,;t t
12147 s,@RANLIB@,$RANLIB,;t t
12148 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
12149 s,@STRIP@,$STRIP,;t t
12150 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
12151 s,@LIBTOOL@,$LIBTOOL,;t t
12152 s,@AR@,$AR,;t t
12153 s,@SED@,$SED,;t t
12154 s,@RM@,$RM,;t t
12155 s,@MKDIR@,$MKDIR,;t t
12156 s,@DATE@,$DATE,;t t
12157 s,@MV@,$MV,;t t
12158 s,@DOT@,$DOT,;t t
12159 s,@ETAGS@,$ETAGS,;t t
12160 s,@PURIFY@,$PURIFY,;t t
12161 s,@ALLOCA@,$ALLOCA,;t t
12162 s,@LIBOBJS@,$LIBOBJS,;t t
12163 s,@MMAP_FILE@,$MMAP_FILE,;t t
12164 s,@ENABLE_PURIFY@,$ENABLE_PURIFY,;t t
12165 s,@ENABLE_PROFILING@,$ENABLE_PROFILING,;t t
12166 s,@ENABLE_OPTIMIZED@,$ENABLE_OPTIMIZED,;t t
12167 s,@USE_SPEC@,$USE_SPEC,;t t
12168 s,@UPB@,$UPB,;t t
12169 s,@JIT@,$JIT,;t t
12170 s,@SPEC_ROOT@,$SPEC_ROOT,;t t
12171 s,@BCR@,$BCR,;t t
12172 s,@PAPIDIR@,$PAPIDIR,;t t
12173 s,@OBJROOT@,$OBJROOT,;t t
12174 CEOF
12175
12176 _ACEOF
12177
12178   cat >>$CONFIG_STATUS <<\_ACEOF
12179   # Split the substitutions into bite-sized pieces for seds with
12180   # small command number limits, like on Digital OSF/1 and HP-UX.
12181   ac_max_sed_lines=48
12182   ac_sed_frag=1 # Number of current file.
12183   ac_beg=1 # First line for current file.
12184   ac_end=$ac_max_sed_lines # Line after last line for current file.
12185   ac_more_lines=:
12186   ac_sed_cmds=
12187   while $ac_more_lines; do
12188     if test $ac_beg -gt 1; then
12189       sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
12190     else
12191       sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
12192     fi
12193     if test ! -s $tmp/subs.frag; then
12194       ac_more_lines=false
12195     else
12196       # The purpose of the label and of the branching condition is to
12197       # speed up the sed processing (if there are no `@' at all, there
12198       # is no need to browse any of the substitutions).
12199       # These are the two extra sed commands mentioned above.
12200       (echo ':t
12201   /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
12202       if test -z "$ac_sed_cmds"; then
12203         ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
12204       else
12205         ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
12206       fi
12207       ac_sed_frag=`expr $ac_sed_frag + 1`
12208       ac_beg=$ac_end
12209       ac_end=`expr $ac_end + $ac_max_sed_lines`
12210     fi
12211   done
12212   if test -z "$ac_sed_cmds"; then
12213     ac_sed_cmds=cat
12214   fi
12215 fi # test -n "$CONFIG_FILES"
12216
12217 _ACEOF
12218 cat >>$CONFIG_STATUS <<\_ACEOF
12219 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
12220   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
12221   case $ac_file in
12222   - | *:- | *:-:* ) # input from stdin
12223         cat >$tmp/stdin
12224         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
12225         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
12226   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
12227         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
12228   * )   ac_file_in=$ac_file.in ;;
12229   esac
12230
12231   # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
12232   ac_dir=`(dirname "$ac_file") 2>/dev/null ||
12233 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12234          X"$ac_file" : 'X\(//\)[^/]' \| \
12235          X"$ac_file" : 'X\(//\)$' \| \
12236          X"$ac_file" : 'X\(/\)' \| \
12237          .     : '\(.\)' 2>/dev/null ||
12238 echo X"$ac_file" |
12239     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12240           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12241           /^X\(\/\/\)$/{ s//\1/; q; }
12242           /^X\(\/\).*/{ s//\1/; q; }
12243           s/.*/./; q'`
12244   { case "$ac_dir" in
12245   [\\/]* | ?:[\\/]* ) as_incr_dir=;;
12246   *)                      as_incr_dir=.;;
12247 esac
12248 as_dummy="$ac_dir"
12249 for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
12250   case $as_mkdir_dir in
12251     # Skip DOS drivespec
12252     ?:) as_incr_dir=$as_mkdir_dir ;;
12253     *)
12254       as_incr_dir=$as_incr_dir/$as_mkdir_dir
12255       test -d "$as_incr_dir" ||
12256         mkdir "$as_incr_dir" ||
12257         { { echo "$as_me:$LINENO: error: cannot create \"$ac_dir\"" >&5
12258 echo "$as_me: error: cannot create \"$ac_dir\"" >&2;}
12259    { (exit 1); exit 1; }; }
12260     ;;
12261   esac
12262 done; }
12263
12264   ac_builddir=.
12265
12266 if test "$ac_dir" != .; then
12267   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
12268   # A "../" for each directory in $ac_dir_suffix.
12269   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
12270 else
12271   ac_dir_suffix= ac_top_builddir=
12272 fi
12273
12274 case $srcdir in
12275   .)  # No --srcdir option.  We are building in place.
12276     ac_srcdir=.
12277     if test -z "$ac_top_builddir"; then
12278        ac_top_srcdir=.
12279     else
12280        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
12281     fi ;;
12282   [\\/]* | ?:[\\/]* )  # Absolute path.
12283     ac_srcdir=$srcdir$ac_dir_suffix;
12284     ac_top_srcdir=$srcdir ;;
12285   *) # Relative path.
12286     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
12287     ac_top_srcdir=$ac_top_builddir$srcdir ;;
12288 esac
12289 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
12290 # absolute.
12291 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
12292 ac_abs_top_builddir=`cd "$ac_dir" && cd $ac_top_builddir && pwd`
12293 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
12294 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
12295
12296
12297   case $INSTALL in
12298   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
12299   *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
12300   esac
12301
12302   if test x"$ac_file" != x-; then
12303     { echo "$as_me:$LINENO: creating $ac_file" >&5
12304 echo "$as_me: creating $ac_file" >&6;}
12305     rm -f "$ac_file"
12306   fi
12307   # Let's still pretend it is `configure' which instantiates (i.e., don't
12308   # use $as_me), people would be surprised to read:
12309   #    /* config.h.  Generated by config.status.  */
12310   if test x"$ac_file" = x-; then
12311     configure_input=
12312   else
12313     configure_input="$ac_file.  "
12314   fi
12315   configure_input=$configure_input"Generated from `echo $ac_file_in |
12316                                      sed 's,.*/,,'` by configure."
12317
12318   # First look for the input files in the build tree, otherwise in the
12319   # src tree.
12320   ac_file_inputs=`IFS=:
12321     for f in $ac_file_in; do
12322       case $f in
12323       -) echo $tmp/stdin ;;
12324       [\\/$]*)
12325          # Absolute (can't be DOS-style, as IFS=:)
12326          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
12327 echo "$as_me: error: cannot find input file: $f" >&2;}
12328    { (exit 1); exit 1; }; }
12329          echo $f;;
12330       *) # Relative
12331          if test -f "$f"; then
12332            # Build tree
12333            echo $f
12334          elif test -f "$srcdir/$f"; then
12335            # Source tree
12336            echo $srcdir/$f
12337          else
12338            # /dev/null tree
12339            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
12340 echo "$as_me: error: cannot find input file: $f" >&2;}
12341    { (exit 1); exit 1; }; }
12342          fi;;
12343       esac
12344     done` || { (exit 1); exit 1; }
12345 _ACEOF
12346 cat >>$CONFIG_STATUS <<_ACEOF
12347   sed "$ac_vpsub
12348 $extrasub
12349 _ACEOF
12350 cat >>$CONFIG_STATUS <<\_ACEOF
12351 :t
12352 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
12353 s,@configure_input@,$configure_input,;t t
12354 s,@srcdir@,$ac_srcdir,;t t
12355 s,@abs_srcdir@,$ac_abs_srcdir,;t t
12356 s,@top_srcdir@,$ac_top_srcdir,;t t
12357 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
12358 s,@builddir@,$ac_builddir,;t t
12359 s,@abs_builddir@,$ac_abs_builddir,;t t
12360 s,@top_builddir@,$ac_top_builddir,;t t
12361 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
12362 s,@INSTALL@,$ac_INSTALL,;t t
12363 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
12364   rm -f $tmp/stdin
12365   if test x"$ac_file" != x-; then
12366     mv $tmp/out $ac_file
12367   else
12368     cat $tmp/out
12369     rm -f $tmp/out
12370   fi
12371
12372 done
12373 _ACEOF
12374 cat >>$CONFIG_STATUS <<\_ACEOF
12375
12376 #
12377 # CONFIG_HEADER section.
12378 #
12379
12380 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
12381 # NAME is the cpp macro being defined and VALUE is the value it is being given.
12382 #
12383 # ac_d sets the value in "#define NAME VALUE" lines.
12384 ac_dA='s,^\([   ]*\)#\([        ]*define[       ][      ]*\)'
12385 ac_dB='[        ].*$,\1#\2'
12386 ac_dC=' '
12387 ac_dD=',;t'
12388 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
12389 ac_uA='s,^\([   ]*\)#\([        ]*\)undef\([    ][      ]*\)'
12390 ac_uB='$,\1#\2define\3'
12391 ac_uC=' '
12392 ac_uD=',;t'
12393
12394 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
12395   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
12396   case $ac_file in
12397   - | *:- | *:-:* ) # input from stdin
12398         cat >$tmp/stdin
12399         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
12400         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
12401   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
12402         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
12403   * )   ac_file_in=$ac_file.in ;;
12404   esac
12405
12406   test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
12407 echo "$as_me: creating $ac_file" >&6;}
12408
12409   # First look for the input files in the build tree, otherwise in the
12410   # src tree.
12411   ac_file_inputs=`IFS=:
12412     for f in $ac_file_in; do
12413       case $f in
12414       -) echo $tmp/stdin ;;
12415       [\\/$]*)
12416          # Absolute (can't be DOS-style, as IFS=:)
12417          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
12418 echo "$as_me: error: cannot find input file: $f" >&2;}
12419    { (exit 1); exit 1; }; }
12420          echo $f;;
12421       *) # Relative
12422          if test -f "$f"; then
12423            # Build tree
12424            echo $f
12425          elif test -f "$srcdir/$f"; then
12426            # Source tree
12427            echo $srcdir/$f
12428          else
12429            # /dev/null tree
12430            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
12431 echo "$as_me: error: cannot find input file: $f" >&2;}
12432    { (exit 1); exit 1; }; }
12433          fi;;
12434       esac
12435     done` || { (exit 1); exit 1; }
12436   # Remove the trailing spaces.
12437   sed 's/[      ]*$//' $ac_file_inputs >$tmp/in
12438
12439 _ACEOF
12440
12441 # Transform confdefs.h into two sed scripts, `conftest.defines' and
12442 # `conftest.undefs', that substitutes the proper values into
12443 # config.h.in to produce config.h.  The first handles `#define'
12444 # templates, and the second `#undef' templates.
12445 # And first: Protect against being on the right side of a sed subst in
12446 # config.status.  Protect against being in an unquoted here document
12447 # in config.status.
12448 rm -f conftest.defines conftest.undefs
12449 # Using a here document instead of a string reduces the quoting nightmare.
12450 # Putting comments in sed scripts is not portable.
12451 #
12452 # `end' is used to avoid that the second main sed command (meant for
12453 # 0-ary CPP macros) applies to n-ary macro definitions.
12454 # See the Autoconf documentation for `clear'.
12455 cat >confdef2sed.sed <<\_ACEOF
12456 s/[\\&,]/\\&/g
12457 s,[\\$`],\\&,g
12458 t clear
12459 : clear
12460 s,^[    ]*#[    ]*define[       ][      ]*\([^  (][^    (]*\)\(([^)]*)\)[       ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
12461 t end
12462 s,^[    ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
12463 : end
12464 _ACEOF
12465 # If some macros were called several times there might be several times
12466 # the same #defines, which is useless.  Nevertheless, we may not want to
12467 # sort them, since we want the *last* AC-DEFINE to be honored.
12468 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
12469 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
12470 rm -f confdef2sed.sed
12471
12472 # This sed command replaces #undef with comments.  This is necessary, for
12473 # example, in the case of _POSIX_SOURCE, which is predefined and required
12474 # on some systems where configure will not decide to define it.
12475 cat >>conftest.undefs <<\_ACEOF
12476 s,^[    ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
12477 _ACEOF
12478
12479 # Break up conftest.defines because some shells have a limit on the size
12480 # of here documents, and old seds have small limits too (100 cmds).
12481 echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
12482 echo '  if egrep "^[    ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
12483 echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
12484 echo '  :' >>$CONFIG_STATUS
12485 rm -f conftest.tail
12486 while grep . conftest.defines >/dev/null
12487 do
12488   # Write a limited-size here document to $tmp/defines.sed.
12489   echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
12490   # Speed up: don't consider the non `#define' lines.
12491   echo '/^[     ]*#[    ]*define/!b' >>$CONFIG_STATUS
12492   # Work around the forget-to-reset-the-flag bug.
12493   echo 't clr' >>$CONFIG_STATUS
12494   echo ': clr' >>$CONFIG_STATUS
12495   sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
12496   echo 'CEOF
12497   sed -f $tmp/defines.sed $tmp/in >$tmp/out
12498   rm -f $tmp/in
12499   mv $tmp/out $tmp/in
12500 ' >>$CONFIG_STATUS
12501   sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
12502   rm -f conftest.defines
12503   mv conftest.tail conftest.defines
12504 done
12505 rm -f conftest.defines
12506 echo '  fi # egrep' >>$CONFIG_STATUS
12507 echo >>$CONFIG_STATUS
12508
12509 # Break up conftest.undefs because some shells have a limit on the size
12510 # of here documents, and old seds have small limits too (100 cmds).
12511 echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
12512 rm -f conftest.tail
12513 while grep . conftest.undefs >/dev/null
12514 do
12515   # Write a limited-size here document to $tmp/undefs.sed.
12516   echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
12517   # Speed up: don't consider the non `#undef'
12518   echo '/^[     ]*#[    ]*undef/!b' >>$CONFIG_STATUS
12519   # Work around the forget-to-reset-the-flag bug.
12520   echo 't clr' >>$CONFIG_STATUS
12521   echo ': clr' >>$CONFIG_STATUS
12522   sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
12523   echo 'CEOF
12524   sed -f $tmp/undefs.sed $tmp/in >$tmp/out
12525   rm -f $tmp/in
12526   mv $tmp/out $tmp/in
12527 ' >>$CONFIG_STATUS
12528   sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
12529   rm -f conftest.undefs
12530   mv conftest.tail conftest.undefs
12531 done
12532 rm -f conftest.undefs
12533
12534 cat >>$CONFIG_STATUS <<\_ACEOF
12535   # Let's still pretend it is `configure' which instantiates (i.e., don't
12536   # use $as_me), people would be surprised to read:
12537   #    /* config.h.  Generated by config.status.  */
12538   if test x"$ac_file" = x-; then
12539     echo "/* Generated by configure.  */" >$tmp/config.h
12540   else
12541     echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
12542   fi
12543   cat $tmp/in >>$tmp/config.h
12544   rm -f $tmp/in
12545   if test x"$ac_file" != x-; then
12546     if cmp -s $ac_file $tmp/config.h 2>/dev/null; then
12547       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
12548 echo "$as_me: $ac_file is unchanged" >&6;}
12549     else
12550       ac_dir=`(dirname "$ac_file") 2>/dev/null ||
12551 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12552          X"$ac_file" : 'X\(//\)[^/]' \| \
12553          X"$ac_file" : 'X\(//\)$' \| \
12554          X"$ac_file" : 'X\(/\)' \| \
12555          .     : '\(.\)' 2>/dev/null ||
12556 echo X"$ac_file" |
12557     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12558           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12559           /^X\(\/\/\)$/{ s//\1/; q; }
12560           /^X\(\/\).*/{ s//\1/; q; }
12561           s/.*/./; q'`
12562       { case "$ac_dir" in
12563   [\\/]* | ?:[\\/]* ) as_incr_dir=;;
12564   *)                      as_incr_dir=.;;
12565 esac
12566 as_dummy="$ac_dir"
12567 for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
12568   case $as_mkdir_dir in
12569     # Skip DOS drivespec
12570     ?:) as_incr_dir=$as_mkdir_dir ;;
12571     *)
12572       as_incr_dir=$as_incr_dir/$as_mkdir_dir
12573       test -d "$as_incr_dir" ||
12574         mkdir "$as_incr_dir" ||
12575         { { echo "$as_me:$LINENO: error: cannot create \"$ac_dir\"" >&5
12576 echo "$as_me: error: cannot create \"$ac_dir\"" >&2;}
12577    { (exit 1); exit 1; }; }
12578     ;;
12579   esac
12580 done; }
12581
12582       rm -f $ac_file
12583       mv $tmp/config.h $ac_file
12584     fi
12585   else
12586     cat $tmp/config.h
12587     rm -f $tmp/config.h
12588   fi
12589 done
12590 _ACEOF
12591
12592 cat >>$CONFIG_STATUS <<\_ACEOF
12593
12594 { (exit 0); exit 0; }
12595 _ACEOF
12596 chmod +x $CONFIG_STATUS
12597 ac_clean_files=$ac_clean_files_save
12598
12599
12600 # configure is writing to config.log, and then calls config.status.
12601 # config.status does its own redirection, appending to config.log.
12602 # Unfortunately, on DOS this fails, as config.log is still kept open
12603 # by configure, so config.status won't be able to write to it; its
12604 # output is simply discarded.  So we exec the FD to /dev/null,
12605 # effectively closing config.log, so it can be properly (re)opened and
12606 # appended to by config.status.  When coming back to configure, we
12607 # need to make the FD available again.
12608 if test "$no_create" != yes; then
12609   ac_cs_success=:
12610   exec 5>/dev/null
12611   $SHELL $CONFIG_STATUS || ac_cs_success=false
12612   exec 5>>config.log
12613   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
12614   # would make configure fail if this is the last instruction.
12615   $ac_cs_success || { (exit 1); exit 1; }
12616 fi
12617