Merged in autoconf branch. This provides configuration via the autoconf
[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-verbose        Enable verbose compilation messages (default is NO)
1007   --enable-profiling      Compile with profiling information (default is NO)
1008   --enable-optimized      Compile with optimizations enabled (default is NO)
1009   --enable-spec           Compile SPEC benchmarks (default is NO)
1010   --enable-precompiled_bytecode
1011                           Use pre-compiled bytecode (default is NO)
1012   --enable-jit            Enable Just In Time Compiling (default is NO)
1013
1014 Optional Packages:
1015   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1016   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1017   --with-gnu-ld           assume the C compiler uses GNU ld default=no
1018   --with-pic              try to use only PIC/non-PIC objects default=use both
1019   --with-spec             Location of SPEC benchmarks
1020   --with-llvmgccdir       Location of LLVM GCC front-end
1021   --with-bcrepos          Location of Bytecode Repository
1022   --with-papi             Location of PAPI
1023   --with-objroot          Location where object files should be placed
1024                           (default is .)
1025   --with-purify           Location of purify program
1026
1027 Some influential environment variables:
1028   CXX         C++ compiler command
1029   CXXFLAGS    C++ compiler flags
1030   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1031               nonstandard directory <lib dir>
1032   CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
1033               headers in a nonstandard directory <include dir>
1034   CC          C compiler command
1035   CFLAGS      C compiler flags
1036   CPP         C preprocessor
1037
1038 Use these variables to override the choices made by `configure' or to help
1039 it to find libraries and programs with nonstandard names/locations.
1040
1041 Report bugs to <llvmbugs@cs.uiuc.edu>.
1042 _ACEOF
1043 fi
1044
1045 if test "$ac_init_help" = "recursive"; then
1046   # If there are subdirs, report their specific --help.
1047   ac_popdir=`pwd`
1048   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1049     test -d $ac_dir || continue
1050     ac_builddir=.
1051
1052 if test "$ac_dir" != .; then
1053   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1054   # A "../" for each directory in $ac_dir_suffix.
1055   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1056 else
1057   ac_dir_suffix= ac_top_builddir=
1058 fi
1059
1060 case $srcdir in
1061   .)  # No --srcdir option.  We are building in place.
1062     ac_srcdir=.
1063     if test -z "$ac_top_builddir"; then
1064        ac_top_srcdir=.
1065     else
1066        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1067     fi ;;
1068   [\\/]* | ?:[\\/]* )  # Absolute path.
1069     ac_srcdir=$srcdir$ac_dir_suffix;
1070     ac_top_srcdir=$srcdir ;;
1071   *) # Relative path.
1072     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1073     ac_top_srcdir=$ac_top_builddir$srcdir ;;
1074 esac
1075 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
1076 # absolute.
1077 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
1078 ac_abs_top_builddir=`cd "$ac_dir" && cd $ac_top_builddir && pwd`
1079 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
1080 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
1081
1082     cd $ac_dir
1083     # Check for guested configure; otherwise get Cygnus style configure.
1084     if test -f $ac_srcdir/configure.gnu; then
1085       echo
1086       $SHELL $ac_srcdir/configure.gnu  --help=recursive
1087     elif test -f $ac_srcdir/configure; then
1088       echo
1089       $SHELL $ac_srcdir/configure  --help=recursive
1090     elif test -f $ac_srcdir/configure.ac ||
1091            test -f $ac_srcdir/configure.in; then
1092       echo
1093       $ac_configure --help
1094     else
1095       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1096     fi
1097     cd $ac_popdir
1098   done
1099 fi
1100
1101 test -n "$ac_init_help" && exit 0
1102 if $ac_init_version; then
1103   cat <<\_ACEOF
1104 [LLVM] configure [1.0]
1105 generated by GNU Autoconf 2.53
1106
1107 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
1108 Free Software Foundation, Inc.
1109 This configure script is free software; the Free Software Foundation
1110 gives unlimited permission to copy, distribute and modify it.
1111 _ACEOF
1112   exit 0
1113 fi
1114 exec 5>config.log
1115 cat >&5 <<_ACEOF
1116 This file contains any messages produced by compilers while
1117 running configure, to aid debugging if configure makes a mistake.
1118
1119 It was created by [LLVM] $as_me [1.0], which was
1120 generated by GNU Autoconf 2.53.  Invocation command line was
1121
1122   $ $0 $@
1123
1124 _ACEOF
1125 {
1126 cat <<_ASUNAME
1127 ## --------- ##
1128 ## Platform. ##
1129 ## --------- ##
1130
1131 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1132 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1133 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1134 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1135 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1136
1137 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1138 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1139
1140 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1141 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1142 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1143 hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
1144 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1145 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1146 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1147
1148 _ASUNAME
1149
1150 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1151 for as_dir in $PATH
1152 do
1153   IFS=$as_save_IFS
1154   test -z "$as_dir" && as_dir=.
1155   echo "PATH: $as_dir"
1156 done
1157
1158 } >&5
1159
1160 cat >&5 <<_ACEOF
1161
1162
1163 ## ----------- ##
1164 ## Core tests. ##
1165 ## ----------- ##
1166
1167 _ACEOF
1168
1169
1170 # Keep a trace of the command line.
1171 # Strip out --no-create and --no-recursion so they do not pile up.
1172 # Also quote any args containing shell meta-characters.
1173 ac_configure_args=
1174 ac_sep=
1175 for ac_arg
1176 do
1177   case $ac_arg in
1178   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1179   | --no-cr | --no-c | -n ) continue ;;
1180   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1181   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1182     continue ;;
1183   *" "*|*"      "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1184     ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1185   esac
1186   case " $ac_configure_args " in
1187     *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1188     *) ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1189        ac_sep=" " ;;
1190   esac
1191   # Get rid of the leading space.
1192 done
1193
1194 # When interrupted or exit'd, cleanup temporary files, and complete
1195 # config.log.  We remove comments because anyway the quotes in there
1196 # would cause problems or look ugly.
1197 # WARNING: Be sure not to use single quotes in there, as some shells,
1198 # such as our DU 5.0 friend, will then `close' the trap.
1199 trap 'exit_status=$?
1200   # Save into config.log some information that might help in debugging.
1201   {
1202     echo
1203     cat <<\_ASBOX
1204 ## ---------------- ##
1205 ## Cache variables. ##
1206 ## ---------------- ##
1207 _ASBOX
1208     echo
1209     # The following way of writing the cache mishandles newlines in values,
1210 {
1211   (set) 2>&1 |
1212     case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1213     *ac_space=\ *)
1214       sed -n \
1215         "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1216           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1217       ;;
1218     *)
1219       sed -n \
1220         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1221       ;;
1222     esac;
1223 }
1224     echo
1225     if test -s confdefs.h; then
1226       cat <<\_ASBOX
1227 ## ----------- ##
1228 ## confdefs.h. ##
1229 ## ----------- ##
1230 _ASBOX
1231       echo
1232       sed "/^$/d" confdefs.h
1233       echo
1234     fi
1235     test "$ac_signal" != 0 &&
1236       echo "$as_me: caught signal $ac_signal"
1237     echo "$as_me: exit $exit_status"
1238   } >&5
1239   rm -f core core.* *.core &&
1240   rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1241     exit $exit_status
1242      ' 0
1243 for ac_signal in 1 2 13 15; do
1244   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1245 done
1246 ac_signal=0
1247
1248 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1249 rm -rf conftest* confdefs.h
1250 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1251 echo >confdefs.h
1252
1253 # Predefined preprocessor variables.
1254
1255 cat >>confdefs.h <<_ACEOF
1256 #define PACKAGE_NAME "$PACKAGE_NAME"
1257 _ACEOF
1258
1259
1260 cat >>confdefs.h <<_ACEOF
1261 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1262 _ACEOF
1263
1264
1265 cat >>confdefs.h <<_ACEOF
1266 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1267 _ACEOF
1268
1269
1270 cat >>confdefs.h <<_ACEOF
1271 #define PACKAGE_STRING "$PACKAGE_STRING"
1272 _ACEOF
1273
1274
1275 cat >>confdefs.h <<_ACEOF
1276 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1277 _ACEOF
1278
1279
1280 # Let the site file select an alternate cache file if it wants to.
1281 # Prefer explicitly selected file to automatically selected ones.
1282 if test -z "$CONFIG_SITE"; then
1283   if test "x$prefix" != xNONE; then
1284     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1285   else
1286     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1287   fi
1288 fi
1289 for ac_site_file in $CONFIG_SITE; do
1290   if test -r "$ac_site_file"; then
1291     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1292 echo "$as_me: loading site script $ac_site_file" >&6;}
1293     sed 's/^/| /' "$ac_site_file" >&5
1294     . "$ac_site_file"
1295   fi
1296 done
1297
1298 if test -r "$cache_file"; then
1299   # Some versions of bash will fail to source /dev/null (special
1300   # files actually), so we avoid doing that.
1301   if test -f "$cache_file"; then
1302     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1303 echo "$as_me: loading cache $cache_file" >&6;}
1304     case $cache_file in
1305       [\\/]* | ?:[\\/]* ) . $cache_file;;
1306       *)                      . ./$cache_file;;
1307     esac
1308   fi
1309 else
1310   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1311 echo "$as_me: creating cache $cache_file" >&6;}
1312   >$cache_file
1313 fi
1314
1315 # Check that the precious variables saved in the cache have kept the same
1316 # value.
1317 ac_cache_corrupted=false
1318 for ac_var in `(set) 2>&1 |
1319                sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1320   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1321   eval ac_new_set=\$ac_env_${ac_var}_set
1322   eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1323   eval ac_new_val="\$ac_env_${ac_var}_value"
1324   case $ac_old_set,$ac_new_set in
1325     set,)
1326       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1327 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1328       ac_cache_corrupted=: ;;
1329     ,set)
1330       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1331 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1332       ac_cache_corrupted=: ;;
1333     ,);;
1334     *)
1335       if test "x$ac_old_val" != "x$ac_new_val"; then
1336         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1337 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1338         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1339 echo "$as_me:   former value:  $ac_old_val" >&2;}
1340         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1341 echo "$as_me:   current value: $ac_new_val" >&2;}
1342         ac_cache_corrupted=:
1343       fi;;
1344   esac
1345   # Pass precious variables to config.status.
1346   if test "$ac_new_set" = set; then
1347     case $ac_new_val in
1348     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1349       ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1350     *) ac_arg=$ac_var=$ac_new_val ;;
1351     esac
1352     case " $ac_configure_args " in
1353       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1354       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1355     esac
1356   fi
1357 done
1358 if $ac_cache_corrupted; then
1359   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1360 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1361   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1362 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1363    { (exit 1); exit 1; }; }
1364 fi
1365
1366 ac_ext=c
1367 ac_cpp='$CPP $CPPFLAGS'
1368 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1369 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1370 ac_compiler_gnu=$ac_cv_c_compiler_gnu
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
1398 ac_config_headers="$ac_config_headers include/Config/config.h"
1399
1400
1401
1402 ac_aux_dir=
1403 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1404   if test -f $ac_dir/install-sh; then
1405     ac_aux_dir=$ac_dir
1406     ac_install_sh="$ac_aux_dir/install-sh -c"
1407     break
1408   elif test -f $ac_dir/install.sh; then
1409     ac_aux_dir=$ac_dir
1410     ac_install_sh="$ac_aux_dir/install.sh -c"
1411     break
1412   elif test -f $ac_dir/shtool; then
1413     ac_aux_dir=$ac_dir
1414     ac_install_sh="$ac_aux_dir/shtool install -c"
1415     break
1416   fi
1417 done
1418 if test -z "$ac_aux_dir"; then
1419   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1420 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1421    { (exit 1); exit 1; }; }
1422 fi
1423 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1424 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1425 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1426
1427 # Find a good install program.  We prefer a C program (faster),
1428 # so one script is as good as another.  But avoid the broken or
1429 # incompatible versions:
1430 # SysV /etc/install, /usr/sbin/install
1431 # SunOS /usr/etc/install
1432 # IRIX /sbin/install
1433 # AIX /bin/install
1434 # AmigaOS /C/install, which installs bootblocks on floppy discs
1435 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1436 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1437 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1438 # ./install, which can be erroneously created by make from ./install.sh.
1439 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1440 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1441 if test -z "$INSTALL"; then
1442 if test "${ac_cv_path_install+set}" = set; then
1443   echo $ECHO_N "(cached) $ECHO_C" >&6
1444 else
1445   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1446 for as_dir in $PATH
1447 do
1448   IFS=$as_save_IFS
1449   test -z "$as_dir" && as_dir=.
1450   # Account for people who put trailing slashes in PATH elements.
1451 case $as_dir/ in
1452   ./ | .// | /cC/* | \
1453   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1454   /usr/ucb/* ) ;;
1455   *)
1456     # OSF1 and SCO ODT 3.0 have their own names for install.
1457     # Don't use installbsd from OSF since it installs stuff as root
1458     # by default.
1459     for ac_prog in ginstall scoinst install; do
1460       for ac_exec_ext in '' $ac_executable_extensions; do
1461         if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1462           if test $ac_prog = install &&
1463             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1464             # AIX install.  It has an incompatible calling convention.
1465             :
1466           elif test $ac_prog = install &&
1467             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1468             # program-specific install script used by HP pwplus--don't use.
1469             :
1470           else
1471             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1472             break 3
1473           fi
1474         fi
1475       done
1476     done
1477     ;;
1478 esac
1479 done
1480
1481
1482 fi
1483   if test "${ac_cv_path_install+set}" = set; then
1484     INSTALL=$ac_cv_path_install
1485   else
1486     # As a last resort, use the slow shell script.  We don't cache a
1487     # path for INSTALL within a source directory, because that will
1488     # break other packages using the cache if that directory is
1489     # removed, or if the path is relative.
1490     INSTALL=$ac_install_sh
1491   fi
1492 fi
1493 echo "$as_me:$LINENO: result: $INSTALL" >&5
1494 echo "${ECHO_T}$INSTALL" >&6
1495
1496 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1497 # It thinks the first close brace ends the variable substitution.
1498 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1499
1500 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1501
1502 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1503
1504
1505 # Make sure we can run config.sub.
1506 $ac_config_sub sun4 >/dev/null 2>&1 ||
1507   { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1508 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1509    { (exit 1); exit 1; }; }
1510
1511 echo "$as_me:$LINENO: checking build system type" >&5
1512 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1513 if test "${ac_cv_build+set}" = set; then
1514   echo $ECHO_N "(cached) $ECHO_C" >&6
1515 else
1516   ac_cv_build_alias=$build_alias
1517 test -z "$ac_cv_build_alias" &&
1518   ac_cv_build_alias=`$ac_config_guess`
1519 test -z "$ac_cv_build_alias" &&
1520   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1521 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1522    { (exit 1); exit 1; }; }
1523 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1524   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1525 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1526    { (exit 1); exit 1; }; }
1527
1528 fi
1529 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1530 echo "${ECHO_T}$ac_cv_build" >&6
1531 build=$ac_cv_build
1532 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1533 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1534 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1535
1536
1537 echo "$as_me:$LINENO: checking host system type" >&5
1538 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1539 if test "${ac_cv_host+set}" = set; then
1540   echo $ECHO_N "(cached) $ECHO_C" >&6
1541 else
1542   ac_cv_host_alias=$host_alias
1543 test -z "$ac_cv_host_alias" &&
1544   ac_cv_host_alias=$ac_cv_build_alias
1545 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1546   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1547 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1548    { (exit 1); exit 1; }; }
1549
1550 fi
1551 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1552 echo "${ECHO_T}$ac_cv_host" >&6
1553 host=$ac_cv_host
1554 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1555 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1556 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1557
1558
1559 echo "$as_me:$LINENO: checking target system type" >&5
1560 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1561 if test "${ac_cv_target+set}" = set; then
1562   echo $ECHO_N "(cached) $ECHO_C" >&6
1563 else
1564   ac_cv_target_alias=$target_alias
1565 test "x$ac_cv_target_alias" = "x" &&
1566   ac_cv_target_alias=$ac_cv_host_alias
1567 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1568   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1569 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1570    { (exit 1); exit 1; }; }
1571
1572 fi
1573 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1574 echo "${ECHO_T}$ac_cv_target" >&6
1575 target=$ac_cv_target
1576 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1577 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1578 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1579
1580
1581 # The aliases save the names the user supplied, while $host etc.
1582 # will get canonicalized.
1583 test -n "$target_alias" &&
1584   test "$program_prefix$program_suffix$program_transform_name" = \
1585     NONENONEs,x,x, &&
1586   program_prefix=${target_alias}-
1587
1588 case $build in
1589         *i*86*)  OS=Linux
1590
1591                  DISABLE_LLC_DIFFS=DISABLE_LLC_DIFFS:=1
1592
1593                  LLVMGCCDIR=/home/vadve/lattner/local/x86/llvm-gcc/
1594
1595                  ;;
1596
1597         *sparc*) OS=SunOS
1598
1599                  LLVMGCCDIR=/home/vadve/lattner/local/sparc/llvm-gcc/
1600
1601                  ;;
1602
1603         *)       OS=Unknown
1604
1605                  ;;
1606 esac
1607
1608 case $target in
1609         *sparc*solaris*)  target=sparcv9-sun-solaris2.8
1610
1611                           ;;
1612 esac
1613
1614
1615 ac_ext=cc
1616 ac_cpp='$CXXCPP $CPPFLAGS'
1617 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1618 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1619 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
1620 if test -n "$ac_tool_prefix"; then
1621   for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
1622   do
1623     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1624 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1625 echo "$as_me:$LINENO: checking for $ac_word" >&5
1626 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1627 if test "${ac_cv_prog_CXX+set}" = set; then
1628   echo $ECHO_N "(cached) $ECHO_C" >&6
1629 else
1630   if test -n "$CXX"; then
1631   ac_cv_prog_CXX="$CXX" # Let the user override the test.
1632 else
1633 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1634 for as_dir in $PATH
1635 do
1636   IFS=$as_save_IFS
1637   test -z "$as_dir" && as_dir=.
1638   for ac_exec_ext in '' $ac_executable_extensions; do
1639   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1640     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
1641     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1642     break 2
1643   fi
1644 done
1645 done
1646
1647 fi
1648 fi
1649 CXX=$ac_cv_prog_CXX
1650 if test -n "$CXX"; then
1651   echo "$as_me:$LINENO: result: $CXX" >&5
1652 echo "${ECHO_T}$CXX" >&6
1653 else
1654   echo "$as_me:$LINENO: result: no" >&5
1655 echo "${ECHO_T}no" >&6
1656 fi
1657
1658     test -n "$CXX" && break
1659   done
1660 fi
1661 if test -z "$CXX"; then
1662   ac_ct_CXX=$CXX
1663   for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
1664 do
1665   # Extract the first word of "$ac_prog", so it can be a program name with args.
1666 set dummy $ac_prog; ac_word=$2
1667 echo "$as_me:$LINENO: checking for $ac_word" >&5
1668 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1669 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
1670   echo $ECHO_N "(cached) $ECHO_C" >&6
1671 else
1672   if test -n "$ac_ct_CXX"; then
1673   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
1674 else
1675 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1676 for as_dir in $PATH
1677 do
1678   IFS=$as_save_IFS
1679   test -z "$as_dir" && as_dir=.
1680   for ac_exec_ext in '' $ac_executable_extensions; do
1681   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1682     ac_cv_prog_ac_ct_CXX="$ac_prog"
1683     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1684     break 2
1685   fi
1686 done
1687 done
1688
1689 fi
1690 fi
1691 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
1692 if test -n "$ac_ct_CXX"; then
1693   echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
1694 echo "${ECHO_T}$ac_ct_CXX" >&6
1695 else
1696   echo "$as_me:$LINENO: result: no" >&5
1697 echo "${ECHO_T}no" >&6
1698 fi
1699
1700   test -n "$ac_ct_CXX" && break
1701 done
1702 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
1703
1704   CXX=$ac_ct_CXX
1705 fi
1706
1707
1708 # Provide some information about the compiler.
1709 echo "$as_me:$LINENO:" \
1710      "checking for C++ compiler version" >&5
1711 ac_compiler=`set X $ac_compile; echo $2`
1712 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1713   (eval $ac_compiler --version </dev/null >&5) 2>&5
1714   ac_status=$?
1715   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1716   (exit $ac_status); }
1717 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1718   (eval $ac_compiler -v </dev/null >&5) 2>&5
1719   ac_status=$?
1720   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1721   (exit $ac_status); }
1722 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1723   (eval $ac_compiler -V </dev/null >&5) 2>&5
1724   ac_status=$?
1725   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1726   (exit $ac_status); }
1727
1728 cat >conftest.$ac_ext <<_ACEOF
1729 #line $LINENO "configure"
1730 #include "confdefs.h"
1731
1732 #ifdef F77_DUMMY_MAIN
1733 #  ifdef __cplusplus
1734      extern "C"
1735 #  endif
1736    int F77_DUMMY_MAIN() { return 1; }
1737 #endif
1738 int
1739 main ()
1740 {
1741
1742   ;
1743   return 0;
1744 }
1745 _ACEOF
1746 ac_clean_files_save=$ac_clean_files
1747 ac_clean_files="$ac_clean_files a.out a.exe"
1748 # Try to create an executable without -o first, disregard a.out.
1749 # It will help us diagnose broken compilers, and finding out an intuition
1750 # of exeext.
1751 echo "$as_me:$LINENO: checking for C++ compiler default output" >&5
1752 echo $ECHO_N "checking for C++ compiler default output... $ECHO_C" >&6
1753 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1754 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1755   (eval $ac_link_default) 2>&5
1756   ac_status=$?
1757   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1758   (exit $ac_status); }; then
1759   # Find the output, starting from the most likely.  This scheme is
1760 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1761 # resort.
1762
1763 # Be careful to initialize this variable, since it used to be cached.
1764 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1765 ac_cv_exeext=
1766 for ac_file in `ls a_out.exe a.exe conftest.exe 2>/dev/null;
1767                 ls a.out conftest 2>/dev/null;
1768                 ls a.* conftest.* 2>/dev/null`; do
1769   case $ac_file in
1770     *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb | *.xSYM ) ;;
1771     a.out ) # We found the default executable, but exeext='' is most
1772             # certainly right.
1773             break;;
1774     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1775           # FIXME: I believe we export ac_cv_exeext for Libtool --akim.
1776           export ac_cv_exeext
1777           break;;
1778     * ) break;;
1779   esac
1780 done
1781 else
1782   echo "$as_me: failed program was:" >&5
1783 cat conftest.$ac_ext >&5
1784 { { echo "$as_me:$LINENO: error: C++ compiler cannot create executables" >&5
1785 echo "$as_me: error: C++ compiler cannot create executables" >&2;}
1786    { (exit 77); exit 77; }; }
1787 fi
1788
1789 ac_exeext=$ac_cv_exeext
1790 echo "$as_me:$LINENO: result: $ac_file" >&5
1791 echo "${ECHO_T}$ac_file" >&6
1792
1793 # Check the compiler produces executables we can run.  If not, either
1794 # the compiler is broken, or we cross compile.
1795 echo "$as_me:$LINENO: checking whether the C++ compiler works" >&5
1796 echo $ECHO_N "checking whether the C++ compiler works... $ECHO_C" >&6
1797 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1798 # If not cross compiling, check that we can run a simple program.
1799 if test "$cross_compiling" != yes; then
1800   if { ac_try='./$ac_file'
1801   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1802   (eval $ac_try) 2>&5
1803   ac_status=$?
1804   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1805   (exit $ac_status); }; }; then
1806     cross_compiling=no
1807   else
1808     if test "$cross_compiling" = maybe; then
1809         cross_compiling=yes
1810     else
1811         { { echo "$as_me:$LINENO: error: cannot run C++ compiled programs.
1812 If you meant to cross compile, use \`--host'." >&5
1813 echo "$as_me: error: cannot run C++ compiled programs.
1814 If you meant to cross compile, use \`--host'." >&2;}
1815    { (exit 1); exit 1; }; }
1816     fi
1817   fi
1818 fi
1819 echo "$as_me:$LINENO: result: yes" >&5
1820 echo "${ECHO_T}yes" >&6
1821
1822 rm -f a.out a.exe conftest$ac_cv_exeext
1823 ac_clean_files=$ac_clean_files_save
1824 # Check the compiler produces executables we can run.  If not, either
1825 # the compiler is broken, or we cross compile.
1826 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
1827 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1828 echo "$as_me:$LINENO: result: $cross_compiling" >&5
1829 echo "${ECHO_T}$cross_compiling" >&6
1830
1831 echo "$as_me:$LINENO: checking for suffix of executables" >&5
1832 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
1833 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1834   (eval $ac_link) 2>&5
1835   ac_status=$?
1836   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1837   (exit $ac_status); }; then
1838   # If both `conftest.exe' and `conftest' are `present' (well, observable)
1839 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
1840 # work properly (i.e., refer to `conftest.exe'), while it won't with
1841 # `rm'.
1842 for ac_file in `(ls conftest.exe; ls conftest; ls conftest.*) 2>/dev/null`; do
1843   case $ac_file in
1844     *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb ) ;;
1845     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1846           export ac_cv_exeext
1847           break;;
1848     * ) break;;
1849   esac
1850 done
1851 else
1852   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link" >&5
1853 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link" >&2;}
1854    { (exit 1); exit 1; }; }
1855 fi
1856
1857 rm -f conftest$ac_cv_exeext
1858 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
1859 echo "${ECHO_T}$ac_cv_exeext" >&6
1860
1861 rm -f conftest.$ac_ext
1862 EXEEXT=$ac_cv_exeext
1863 ac_exeext=$EXEEXT
1864 echo "$as_me:$LINENO: checking for suffix of object files" >&5
1865 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
1866 if test "${ac_cv_objext+set}" = set; then
1867   echo $ECHO_N "(cached) $ECHO_C" >&6
1868 else
1869   cat >conftest.$ac_ext <<_ACEOF
1870 #line $LINENO "configure"
1871 #include "confdefs.h"
1872
1873 #ifdef F77_DUMMY_MAIN
1874 #  ifdef __cplusplus
1875      extern "C"
1876 #  endif
1877    int F77_DUMMY_MAIN() { return 1; }
1878 #endif
1879 int
1880 main ()
1881 {
1882
1883   ;
1884   return 0;
1885 }
1886 _ACEOF
1887 rm -f conftest.o conftest.obj
1888 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1889   (eval $ac_compile) 2>&5
1890   ac_status=$?
1891   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1892   (exit $ac_status); }; then
1893   for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1894   case $ac_file in
1895     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb ) ;;
1896     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
1897        break;;
1898   esac
1899 done
1900 else
1901   echo "$as_me: failed program was:" >&5
1902 cat conftest.$ac_ext >&5
1903 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile" >&5
1904 echo "$as_me: error: cannot compute suffix of object files: cannot compile" >&2;}
1905    { (exit 1); exit 1; }; }
1906 fi
1907
1908 rm -f conftest.$ac_cv_objext conftest.$ac_ext
1909 fi
1910 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
1911 echo "${ECHO_T}$ac_cv_objext" >&6
1912 OBJEXT=$ac_cv_objext
1913 ac_objext=$OBJEXT
1914 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
1915 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
1916 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
1917   echo $ECHO_N "(cached) $ECHO_C" >&6
1918 else
1919   cat >conftest.$ac_ext <<_ACEOF
1920 #line $LINENO "configure"
1921 #include "confdefs.h"
1922
1923 #ifdef F77_DUMMY_MAIN
1924 #  ifdef __cplusplus
1925      extern "C"
1926 #  endif
1927    int F77_DUMMY_MAIN() { return 1; }
1928 #endif
1929 int
1930 main ()
1931 {
1932 #ifndef __GNUC__
1933        choke me
1934 #endif
1935
1936   ;
1937   return 0;
1938 }
1939 _ACEOF
1940 rm -f conftest.$ac_objext
1941 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1942   (eval $ac_compile) 2>&5
1943   ac_status=$?
1944   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1945   (exit $ac_status); } &&
1946          { ac_try='test -s conftest.$ac_objext'
1947   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1948   (eval $ac_try) 2>&5
1949   ac_status=$?
1950   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1951   (exit $ac_status); }; }; then
1952   ac_compiler_gnu=yes
1953 else
1954   echo "$as_me: failed program was:" >&5
1955 cat conftest.$ac_ext >&5
1956 ac_compiler_gnu=no
1957 fi
1958 rm -f conftest.$ac_objext conftest.$ac_ext
1959 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
1960
1961 fi
1962 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
1963 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
1964 GXX=`test $ac_compiler_gnu = yes && echo yes`
1965 ac_test_CXXFLAGS=${CXXFLAGS+set}
1966 ac_save_CXXFLAGS=$CXXFLAGS
1967 CXXFLAGS="-g"
1968 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
1969 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
1970 if test "${ac_cv_prog_cxx_g+set}" = set; then
1971   echo $ECHO_N "(cached) $ECHO_C" >&6
1972 else
1973   cat >conftest.$ac_ext <<_ACEOF
1974 #line $LINENO "configure"
1975 #include "confdefs.h"
1976
1977 #ifdef F77_DUMMY_MAIN
1978 #  ifdef __cplusplus
1979      extern "C"
1980 #  endif
1981    int F77_DUMMY_MAIN() { return 1; }
1982 #endif
1983 int
1984 main ()
1985 {
1986
1987   ;
1988   return 0;
1989 }
1990 _ACEOF
1991 rm -f conftest.$ac_objext
1992 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1993   (eval $ac_compile) 2>&5
1994   ac_status=$?
1995   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1996   (exit $ac_status); } &&
1997          { ac_try='test -s conftest.$ac_objext'
1998   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1999   (eval $ac_try) 2>&5
2000   ac_status=$?
2001   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2002   (exit $ac_status); }; }; then
2003   ac_cv_prog_cxx_g=yes
2004 else
2005   echo "$as_me: failed program was:" >&5
2006 cat conftest.$ac_ext >&5
2007 ac_cv_prog_cxx_g=no
2008 fi
2009 rm -f conftest.$ac_objext conftest.$ac_ext
2010 fi
2011 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
2012 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
2013 if test "$ac_test_CXXFLAGS" = set; then
2014   CXXFLAGS=$ac_save_CXXFLAGS
2015 elif test $ac_cv_prog_cxx_g = yes; then
2016   if test "$GXX" = yes; then
2017     CXXFLAGS="-g -O2"
2018   else
2019     CXXFLAGS="-g"
2020   fi
2021 else
2022   if test "$GXX" = yes; then
2023     CXXFLAGS="-O2"
2024   else
2025     CXXFLAGS=
2026   fi
2027 fi
2028 for ac_declaration in \
2029    ''\
2030    '#include <stdlib.h>' \
2031    'extern "C" void std::exit (int) throw (); using std::exit;' \
2032    'extern "C" void std::exit (int); using std::exit;' \
2033    'extern "C" void exit (int) throw ();' \
2034    'extern "C" void exit (int);' \
2035    'void exit (int);'
2036 do
2037   cat >conftest.$ac_ext <<_ACEOF
2038 #line $LINENO "configure"
2039 #include "confdefs.h"
2040 #include <stdlib.h>
2041 $ac_declaration
2042 #ifdef F77_DUMMY_MAIN
2043 #  ifdef __cplusplus
2044      extern "C"
2045 #  endif
2046    int F77_DUMMY_MAIN() { return 1; }
2047 #endif
2048 int
2049 main ()
2050 {
2051 exit (42);
2052   ;
2053   return 0;
2054 }
2055 _ACEOF
2056 rm -f conftest.$ac_objext
2057 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2058   (eval $ac_compile) 2>&5
2059   ac_status=$?
2060   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2061   (exit $ac_status); } &&
2062          { ac_try='test -s conftest.$ac_objext'
2063   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2064   (eval $ac_try) 2>&5
2065   ac_status=$?
2066   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2067   (exit $ac_status); }; }; then
2068   :
2069 else
2070   echo "$as_me: failed program was:" >&5
2071 cat conftest.$ac_ext >&5
2072 continue
2073 fi
2074 rm -f conftest.$ac_objext conftest.$ac_ext
2075   cat >conftest.$ac_ext <<_ACEOF
2076 #line $LINENO "configure"
2077 #include "confdefs.h"
2078 $ac_declaration
2079 #ifdef F77_DUMMY_MAIN
2080 #  ifdef __cplusplus
2081      extern "C"
2082 #  endif
2083    int F77_DUMMY_MAIN() { return 1; }
2084 #endif
2085 int
2086 main ()
2087 {
2088 exit (42);
2089   ;
2090   return 0;
2091 }
2092 _ACEOF
2093 rm -f conftest.$ac_objext
2094 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2095   (eval $ac_compile) 2>&5
2096   ac_status=$?
2097   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2098   (exit $ac_status); } &&
2099          { ac_try='test -s conftest.$ac_objext'
2100   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2101   (eval $ac_try) 2>&5
2102   ac_status=$?
2103   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2104   (exit $ac_status); }; }; then
2105   break
2106 else
2107   echo "$as_me: failed program was:" >&5
2108 cat conftest.$ac_ext >&5
2109 fi
2110 rm -f conftest.$ac_objext conftest.$ac_ext
2111 done
2112 rm -f conftest*
2113 if test -n "$ac_declaration"; then
2114   echo '#ifdef __cplusplus' >>confdefs.h
2115   echo $ac_declaration      >>confdefs.h
2116   echo '#endif'             >>confdefs.h
2117 fi
2118
2119 ac_ext=c
2120 ac_cpp='$CPP $CPPFLAGS'
2121 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2122 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2123 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2124
2125 ac_ext=c
2126 ac_cpp='$CPP $CPPFLAGS'
2127 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2128 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2129 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2130 if test -n "$ac_tool_prefix"; then
2131   for ac_prog in gcc
2132   do
2133     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2134 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2135 echo "$as_me:$LINENO: checking for $ac_word" >&5
2136 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2137 if test "${ac_cv_prog_CC+set}" = set; then
2138   echo $ECHO_N "(cached) $ECHO_C" >&6
2139 else
2140   if test -n "$CC"; then
2141   ac_cv_prog_CC="$CC" # Let the user override the test.
2142 else
2143 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2144 for as_dir in $PATH
2145 do
2146   IFS=$as_save_IFS
2147   test -z "$as_dir" && as_dir=.
2148   for ac_exec_ext in '' $ac_executable_extensions; do
2149   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2150     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2151     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2152     break 2
2153   fi
2154 done
2155 done
2156
2157 fi
2158 fi
2159 CC=$ac_cv_prog_CC
2160 if test -n "$CC"; then
2161   echo "$as_me:$LINENO: result: $CC" >&5
2162 echo "${ECHO_T}$CC" >&6
2163 else
2164   echo "$as_me:$LINENO: result: no" >&5
2165 echo "${ECHO_T}no" >&6
2166 fi
2167
2168     test -n "$CC" && break
2169   done
2170 fi
2171 if test -z "$CC"; then
2172   ac_ct_CC=$CC
2173   for ac_prog in gcc
2174 do
2175   # Extract the first word of "$ac_prog", so it can be a program name with args.
2176 set dummy $ac_prog; ac_word=$2
2177 echo "$as_me:$LINENO: checking for $ac_word" >&5
2178 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2179 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2180   echo $ECHO_N "(cached) $ECHO_C" >&6
2181 else
2182   if test -n "$ac_ct_CC"; then
2183   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2184 else
2185 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2186 for as_dir in $PATH
2187 do
2188   IFS=$as_save_IFS
2189   test -z "$as_dir" && as_dir=.
2190   for ac_exec_ext in '' $ac_executable_extensions; do
2191   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2192     ac_cv_prog_ac_ct_CC="$ac_prog"
2193     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2194     break 2
2195   fi
2196 done
2197 done
2198
2199 fi
2200 fi
2201 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2202 if test -n "$ac_ct_CC"; then
2203   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2204 echo "${ECHO_T}$ac_ct_CC" >&6
2205 else
2206   echo "$as_me:$LINENO: result: no" >&5
2207 echo "${ECHO_T}no" >&6
2208 fi
2209
2210   test -n "$ac_ct_CC" && break
2211 done
2212
2213   CC=$ac_ct_CC
2214 fi
2215
2216
2217 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH" >&5
2218 echo "$as_me: error: no acceptable C compiler found in \$PATH" >&2;}
2219    { (exit 1); exit 1; }; }
2220
2221 # Provide some information about the compiler.
2222 echo "$as_me:$LINENO:" \
2223      "checking for C compiler version" >&5
2224 ac_compiler=`set X $ac_compile; echo $2`
2225 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2226   (eval $ac_compiler --version </dev/null >&5) 2>&5
2227   ac_status=$?
2228   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2229   (exit $ac_status); }
2230 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2231   (eval $ac_compiler -v </dev/null >&5) 2>&5
2232   ac_status=$?
2233   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2234   (exit $ac_status); }
2235 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2236   (eval $ac_compiler -V </dev/null >&5) 2>&5
2237   ac_status=$?
2238   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2239   (exit $ac_status); }
2240
2241 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2242 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2243 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2244   echo $ECHO_N "(cached) $ECHO_C" >&6
2245 else
2246   cat >conftest.$ac_ext <<_ACEOF
2247 #line $LINENO "configure"
2248 #include "confdefs.h"
2249
2250 #ifdef F77_DUMMY_MAIN
2251 #  ifdef __cplusplus
2252      extern "C"
2253 #  endif
2254    int F77_DUMMY_MAIN() { return 1; }
2255 #endif
2256 int
2257 main ()
2258 {
2259 #ifndef __GNUC__
2260        choke me
2261 #endif
2262
2263   ;
2264   return 0;
2265 }
2266 _ACEOF
2267 rm -f conftest.$ac_objext
2268 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2269   (eval $ac_compile) 2>&5
2270   ac_status=$?
2271   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2272   (exit $ac_status); } &&
2273          { ac_try='test -s conftest.$ac_objext'
2274   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2275   (eval $ac_try) 2>&5
2276   ac_status=$?
2277   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2278   (exit $ac_status); }; }; then
2279   ac_compiler_gnu=yes
2280 else
2281   echo "$as_me: failed program was:" >&5
2282 cat conftest.$ac_ext >&5
2283 ac_compiler_gnu=no
2284 fi
2285 rm -f conftest.$ac_objext conftest.$ac_ext
2286 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2287
2288 fi
2289 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2290 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2291 GCC=`test $ac_compiler_gnu = yes && echo yes`
2292 ac_test_CFLAGS=${CFLAGS+set}
2293 ac_save_CFLAGS=$CFLAGS
2294 CFLAGS="-g"
2295 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2296 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2297 if test "${ac_cv_prog_cc_g+set}" = set; then
2298   echo $ECHO_N "(cached) $ECHO_C" >&6
2299 else
2300   cat >conftest.$ac_ext <<_ACEOF
2301 #line $LINENO "configure"
2302 #include "confdefs.h"
2303
2304 #ifdef F77_DUMMY_MAIN
2305 #  ifdef __cplusplus
2306      extern "C"
2307 #  endif
2308    int F77_DUMMY_MAIN() { return 1; }
2309 #endif
2310 int
2311 main ()
2312 {
2313
2314   ;
2315   return 0;
2316 }
2317 _ACEOF
2318 rm -f conftest.$ac_objext
2319 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2320   (eval $ac_compile) 2>&5
2321   ac_status=$?
2322   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2323   (exit $ac_status); } &&
2324          { ac_try='test -s conftest.$ac_objext'
2325   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2326   (eval $ac_try) 2>&5
2327   ac_status=$?
2328   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2329   (exit $ac_status); }; }; then
2330   ac_cv_prog_cc_g=yes
2331 else
2332   echo "$as_me: failed program was:" >&5
2333 cat conftest.$ac_ext >&5
2334 ac_cv_prog_cc_g=no
2335 fi
2336 rm -f conftest.$ac_objext conftest.$ac_ext
2337 fi
2338 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2339 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2340 if test "$ac_test_CFLAGS" = set; then
2341   CFLAGS=$ac_save_CFLAGS
2342 elif test $ac_cv_prog_cc_g = yes; then
2343   if test "$GCC" = yes; then
2344     CFLAGS="-g -O2"
2345   else
2346     CFLAGS="-g"
2347   fi
2348 else
2349   if test "$GCC" = yes; then
2350     CFLAGS="-O2"
2351   else
2352     CFLAGS=
2353   fi
2354 fi
2355 # Some people use a C++ compiler to compile C.  Since we use `exit',
2356 # in C++ we need to declare it.  In case someone uses the same compiler
2357 # for both compiling C and C++ we need to have the C++ compiler decide
2358 # the declaration of exit, since it's the most demanding environment.
2359 cat >conftest.$ac_ext <<_ACEOF
2360 #ifndef __cplusplus
2361   choke me
2362 #endif
2363 _ACEOF
2364 rm -f conftest.$ac_objext
2365 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2366   (eval $ac_compile) 2>&5
2367   ac_status=$?
2368   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2369   (exit $ac_status); } &&
2370          { ac_try='test -s conftest.$ac_objext'
2371   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2372   (eval $ac_try) 2>&5
2373   ac_status=$?
2374   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2375   (exit $ac_status); }; }; then
2376   for ac_declaration in \
2377    ''\
2378    '#include <stdlib.h>' \
2379    'extern "C" void std::exit (int) throw (); using std::exit;' \
2380    'extern "C" void std::exit (int); using std::exit;' \
2381    'extern "C" void exit (int) throw ();' \
2382    'extern "C" void exit (int);' \
2383    'void exit (int);'
2384 do
2385   cat >conftest.$ac_ext <<_ACEOF
2386 #line $LINENO "configure"
2387 #include "confdefs.h"
2388 #include <stdlib.h>
2389 $ac_declaration
2390 #ifdef F77_DUMMY_MAIN
2391 #  ifdef __cplusplus
2392      extern "C"
2393 #  endif
2394    int F77_DUMMY_MAIN() { return 1; }
2395 #endif
2396 int
2397 main ()
2398 {
2399 exit (42);
2400   ;
2401   return 0;
2402 }
2403 _ACEOF
2404 rm -f conftest.$ac_objext
2405 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2406   (eval $ac_compile) 2>&5
2407   ac_status=$?
2408   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2409   (exit $ac_status); } &&
2410          { ac_try='test -s conftest.$ac_objext'
2411   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2412   (eval $ac_try) 2>&5
2413   ac_status=$?
2414   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2415   (exit $ac_status); }; }; then
2416   :
2417 else
2418   echo "$as_me: failed program was:" >&5
2419 cat conftest.$ac_ext >&5
2420 continue
2421 fi
2422 rm -f conftest.$ac_objext conftest.$ac_ext
2423   cat >conftest.$ac_ext <<_ACEOF
2424 #line $LINENO "configure"
2425 #include "confdefs.h"
2426 $ac_declaration
2427 #ifdef F77_DUMMY_MAIN
2428 #  ifdef __cplusplus
2429      extern "C"
2430 #  endif
2431    int F77_DUMMY_MAIN() { return 1; }
2432 #endif
2433 int
2434 main ()
2435 {
2436 exit (42);
2437   ;
2438   return 0;
2439 }
2440 _ACEOF
2441 rm -f conftest.$ac_objext
2442 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2443   (eval $ac_compile) 2>&5
2444   ac_status=$?
2445   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2446   (exit $ac_status); } &&
2447          { ac_try='test -s conftest.$ac_objext'
2448   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2449   (eval $ac_try) 2>&5
2450   ac_status=$?
2451   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2452   (exit $ac_status); }; }; then
2453   break
2454 else
2455   echo "$as_me: failed program was:" >&5
2456 cat conftest.$ac_ext >&5
2457 fi
2458 rm -f conftest.$ac_objext conftest.$ac_ext
2459 done
2460 rm -f conftest*
2461 if test -n "$ac_declaration"; then
2462   echo '#ifdef __cplusplus' >>confdefs.h
2463   echo $ac_declaration      >>confdefs.h
2464   echo '#endif'             >>confdefs.h
2465 fi
2466
2467 else
2468   echo "$as_me: failed program was:" >&5
2469 cat conftest.$ac_ext >&5
2470 fi
2471 rm -f conftest.$ac_objext conftest.$ac_ext
2472 ac_ext=c
2473 ac_cpp='$CPP $CPPFLAGS'
2474 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2475 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2476 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2477
2478 ac_ext=c
2479 ac_cpp='$CPP $CPPFLAGS'
2480 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2481 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2482 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2483 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2484 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2485 # On Suns, sometimes $CPP names a directory.
2486 if test -n "$CPP" && test -d "$CPP"; then
2487   CPP=
2488 fi
2489 if test -z "$CPP"; then
2490   if test "${ac_cv_prog_CPP+set}" = set; then
2491   echo $ECHO_N "(cached) $ECHO_C" >&6
2492 else
2493       # Double quotes because CPP needs to be expanded
2494     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2495     do
2496       ac_preproc_ok=false
2497 for ac_c_preproc_warn_flag in '' yes
2498 do
2499   # Use a header file that comes with gcc, so configuring glibc
2500   # with a fresh cross-compiler works.
2501   # On the NeXT, cc -E runs the code through the compiler's parser,
2502   # not just through cpp. "Syntax error" is here to catch this case.
2503   cat >conftest.$ac_ext <<_ACEOF
2504 #line $LINENO "configure"
2505 #include "confdefs.h"
2506 #include <assert.h>
2507                      Syntax error
2508 _ACEOF
2509 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2510   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2511   ac_status=$?
2512   egrep -v '^ *\+' conftest.er1 >conftest.err
2513   rm -f conftest.er1
2514   cat conftest.err >&5
2515   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2516   (exit $ac_status); } >/dev/null; then
2517   if test -s conftest.err; then
2518     ac_cpp_err=$ac_c_preproc_warn_flag
2519   else
2520     ac_cpp_err=
2521   fi
2522 else
2523   ac_cpp_err=yes
2524 fi
2525 if test -z "$ac_cpp_err"; then
2526   :
2527 else
2528   echo "$as_me: failed program was:" >&5
2529   cat conftest.$ac_ext >&5
2530   # Broken: fails on valid input.
2531 continue
2532 fi
2533 rm -f conftest.err conftest.$ac_ext
2534
2535   # OK, works on sane cases.  Now check whether non-existent headers
2536   # can be detected and how.
2537   cat >conftest.$ac_ext <<_ACEOF
2538 #line $LINENO "configure"
2539 #include "confdefs.h"
2540 #include <ac_nonexistent.h>
2541 _ACEOF
2542 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2543   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2544   ac_status=$?
2545   egrep -v '^ *\+' conftest.er1 >conftest.err
2546   rm -f conftest.er1
2547   cat conftest.err >&5
2548   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2549   (exit $ac_status); } >/dev/null; then
2550   if test -s conftest.err; then
2551     ac_cpp_err=$ac_c_preproc_warn_flag
2552   else
2553     ac_cpp_err=
2554   fi
2555 else
2556   ac_cpp_err=yes
2557 fi
2558 if test -z "$ac_cpp_err"; then
2559   # Broken: success on invalid input.
2560 continue
2561 else
2562   echo "$as_me: failed program was:" >&5
2563   cat conftest.$ac_ext >&5
2564   # Passes both tests.
2565 ac_preproc_ok=:
2566 break
2567 fi
2568 rm -f conftest.err conftest.$ac_ext
2569
2570 done
2571 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2572 rm -f conftest.err conftest.$ac_ext
2573 if $ac_preproc_ok; then
2574   break
2575 fi
2576
2577     done
2578     ac_cv_prog_CPP=$CPP
2579
2580 fi
2581   CPP=$ac_cv_prog_CPP
2582 else
2583   ac_cv_prog_CPP=$CPP
2584 fi
2585 echo "$as_me:$LINENO: result: $CPP" >&5
2586 echo "${ECHO_T}$CPP" >&6
2587 ac_preproc_ok=false
2588 for ac_c_preproc_warn_flag in '' yes
2589 do
2590   # Use a header file that comes with gcc, so configuring glibc
2591   # with a fresh cross-compiler works.
2592   # On the NeXT, cc -E runs the code through the compiler's parser,
2593   # not just through cpp. "Syntax error" is here to catch this case.
2594   cat >conftest.$ac_ext <<_ACEOF
2595 #line $LINENO "configure"
2596 #include "confdefs.h"
2597 #include <assert.h>
2598                      Syntax error
2599 _ACEOF
2600 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2601   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2602   ac_status=$?
2603   egrep -v '^ *\+' conftest.er1 >conftest.err
2604   rm -f conftest.er1
2605   cat conftest.err >&5
2606   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2607   (exit $ac_status); } >/dev/null; then
2608   if test -s conftest.err; then
2609     ac_cpp_err=$ac_c_preproc_warn_flag
2610   else
2611     ac_cpp_err=
2612   fi
2613 else
2614   ac_cpp_err=yes
2615 fi
2616 if test -z "$ac_cpp_err"; then
2617   :
2618 else
2619   echo "$as_me: failed program was:" >&5
2620   cat conftest.$ac_ext >&5
2621   # Broken: fails on valid input.
2622 continue
2623 fi
2624 rm -f conftest.err conftest.$ac_ext
2625
2626   # OK, works on sane cases.  Now check whether non-existent headers
2627   # can be detected and how.
2628   cat >conftest.$ac_ext <<_ACEOF
2629 #line $LINENO "configure"
2630 #include "confdefs.h"
2631 #include <ac_nonexistent.h>
2632 _ACEOF
2633 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2634   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2635   ac_status=$?
2636   egrep -v '^ *\+' conftest.er1 >conftest.err
2637   rm -f conftest.er1
2638   cat conftest.err >&5
2639   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2640   (exit $ac_status); } >/dev/null; then
2641   if test -s conftest.err; then
2642     ac_cpp_err=$ac_c_preproc_warn_flag
2643   else
2644     ac_cpp_err=
2645   fi
2646 else
2647   ac_cpp_err=yes
2648 fi
2649 if test -z "$ac_cpp_err"; then
2650   # Broken: success on invalid input.
2651 continue
2652 else
2653   echo "$as_me: failed program was:" >&5
2654   cat conftest.$ac_ext >&5
2655   # Passes both tests.
2656 ac_preproc_ok=:
2657 break
2658 fi
2659 rm -f conftest.err conftest.$ac_ext
2660
2661 done
2662 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2663 rm -f conftest.err conftest.$ac_ext
2664 if $ac_preproc_ok; then
2665   :
2666 else
2667   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check" >&5
2668 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check" >&2;}
2669    { (exit 1); exit 1; }; }
2670 fi
2671
2672 ac_ext=c
2673 ac_cpp='$CPP $CPPFLAGS'
2674 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2675 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2676 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2677
2678
2679 if test "$GCC" != "yes"
2680 then
2681         { { echo "$as_me:$LINENO: error: gcc required but not found" >&5
2682 echo "$as_me: error: gcc required but not found" >&2;}
2683    { (exit 1); exit 1; }; }
2684 fi
2685
2686 if test "$GXX" != "yes"
2687 then
2688         { { echo "$as_me:$LINENO: error: g++ required but not found" >&5
2689 echo "$as_me: error: g++ required but not found" >&2;}
2690    { (exit 1); exit 1; }; }
2691 fi
2692
2693  echo "$as_me:$LINENO: checking for GNU make" >&5
2694 echo $ECHO_N "checking for GNU make... $ECHO_C" >&6
2695 if test "${_cv_gnu_make_command+set}" = set; then
2696   echo $ECHO_N "(cached) $ECHO_C" >&6
2697 else
2698   _cv_gnu_make_command='' ;
2699                 for a in "$MAKE" make gmake gnumake ; do
2700                         if test -z "$a" ; then continue ; fi ;
2701                         if  ( sh -c "$a --version" 2> /dev/null | grep GNU  2>&1 > /dev/null ) ;  then
2702                                 _cv_gnu_make_command=$a ;
2703                                 break;
2704                         fi
2705                 done ;
2706
2707 fi
2708 echo "$as_me:$LINENO: result: $_cv_gnu_make_command" >&5
2709 echo "${ECHO_T}$_cv_gnu_make_command" >&6 ;
2710         if test  "x$_cv_gnu_make_command" != "x"  ; then
2711                 ifGNUmake='' ;
2712         else
2713                 ifGNUmake='#' ;
2714                 echo "$as_me:$LINENO: result: \"Not found\"" >&5
2715 echo "${ECHO_T}\"Not found\"" >&6;
2716         fi
2717
2718
2719 if test -z "$_cv_gnu_make_command"
2720 then
2721         { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5
2722 echo "$as_me: error: GNU Make required but not found" >&2;}
2723    { (exit 1); exit 1; }; }
2724 fi
2725
2726
2727 echo "$as_me:$LINENO: checking " >&5
2728 echo $ECHO_N "checking ... $ECHO_C" >&6
2729 if test "${ac_cv_has_flex+set}" = set; then
2730   echo $ECHO_N "(cached) $ECHO_C" >&6
2731 else
2732   for ac_prog in flex lex
2733 do
2734   # Extract the first word of "$ac_prog", so it can be a program name with args.
2735 set dummy $ac_prog; ac_word=$2
2736 echo "$as_me:$LINENO: checking for $ac_word" >&5
2737 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2738 if test "${ac_cv_prog_LEX+set}" = set; then
2739   echo $ECHO_N "(cached) $ECHO_C" >&6
2740 else
2741   if test -n "$LEX"; then
2742   ac_cv_prog_LEX="$LEX" # Let the user override the test.
2743 else
2744 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2745 for as_dir in $PATH
2746 do
2747   IFS=$as_save_IFS
2748   test -z "$as_dir" && as_dir=.
2749   for ac_exec_ext in '' $ac_executable_extensions; do
2750   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2751     ac_cv_prog_LEX="$ac_prog"
2752     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2753     break 2
2754   fi
2755 done
2756 done
2757
2758 fi
2759 fi
2760 LEX=$ac_cv_prog_LEX
2761 if test -n "$LEX"; then
2762   echo "$as_me:$LINENO: result: $LEX" >&5
2763 echo "${ECHO_T}$LEX" >&6
2764 else
2765   echo "$as_me:$LINENO: result: no" >&5
2766 echo "${ECHO_T}no" >&6
2767 fi
2768
2769   test -n "$LEX" && break
2770 done
2771 test -n "$LEX" || LEX=":"
2772
2773 if test -z "$LEXLIB"
2774 then
2775   echo "$as_me:$LINENO: checking for yywrap in -lfl" >&5
2776 echo $ECHO_N "checking for yywrap in -lfl... $ECHO_C" >&6
2777 if test "${ac_cv_lib_fl_yywrap+set}" = set; then
2778   echo $ECHO_N "(cached) $ECHO_C" >&6
2779 else
2780   ac_check_lib_save_LIBS=$LIBS
2781 LIBS="-lfl  $LIBS"
2782 cat >conftest.$ac_ext <<_ACEOF
2783 #line $LINENO "configure"
2784 #include "confdefs.h"
2785
2786 /* Override any gcc2 internal prototype to avoid an error.  */
2787 #ifdef __cplusplus
2788 extern "C"
2789 #endif
2790 /* We use char because int might match the return type of a gcc2
2791    builtin and then its argument prototype would still apply.  */
2792 char yywrap ();
2793 #ifdef F77_DUMMY_MAIN
2794 #  ifdef __cplusplus
2795      extern "C"
2796 #  endif
2797    int F77_DUMMY_MAIN() { return 1; }
2798 #endif
2799 int
2800 main ()
2801 {
2802 yywrap ();
2803   ;
2804   return 0;
2805 }
2806 _ACEOF
2807 rm -f conftest.$ac_objext conftest$ac_exeext
2808 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2809   (eval $ac_link) 2>&5
2810   ac_status=$?
2811   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2812   (exit $ac_status); } &&
2813          { ac_try='test -s conftest$ac_exeext'
2814   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2815   (eval $ac_try) 2>&5
2816   ac_status=$?
2817   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2818   (exit $ac_status); }; }; then
2819   ac_cv_lib_fl_yywrap=yes
2820 else
2821   echo "$as_me: failed program was:" >&5
2822 cat conftest.$ac_ext >&5
2823 ac_cv_lib_fl_yywrap=no
2824 fi
2825 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
2826 LIBS=$ac_check_lib_save_LIBS
2827 fi
2828 echo "$as_me:$LINENO: result: $ac_cv_lib_fl_yywrap" >&5
2829 echo "${ECHO_T}$ac_cv_lib_fl_yywrap" >&6
2830 if test $ac_cv_lib_fl_yywrap = yes; then
2831   LEXLIB="-lfl"
2832 else
2833   echo "$as_me:$LINENO: checking for yywrap in -ll" >&5
2834 echo $ECHO_N "checking for yywrap in -ll... $ECHO_C" >&6
2835 if test "${ac_cv_lib_l_yywrap+set}" = set; then
2836   echo $ECHO_N "(cached) $ECHO_C" >&6
2837 else
2838   ac_check_lib_save_LIBS=$LIBS
2839 LIBS="-ll  $LIBS"
2840 cat >conftest.$ac_ext <<_ACEOF
2841 #line $LINENO "configure"
2842 #include "confdefs.h"
2843
2844 /* Override any gcc2 internal prototype to avoid an error.  */
2845 #ifdef __cplusplus
2846 extern "C"
2847 #endif
2848 /* We use char because int might match the return type of a gcc2
2849    builtin and then its argument prototype would still apply.  */
2850 char yywrap ();
2851 #ifdef F77_DUMMY_MAIN
2852 #  ifdef __cplusplus
2853      extern "C"
2854 #  endif
2855    int F77_DUMMY_MAIN() { return 1; }
2856 #endif
2857 int
2858 main ()
2859 {
2860 yywrap ();
2861   ;
2862   return 0;
2863 }
2864 _ACEOF
2865 rm -f conftest.$ac_objext conftest$ac_exeext
2866 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2867   (eval $ac_link) 2>&5
2868   ac_status=$?
2869   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2870   (exit $ac_status); } &&
2871          { ac_try='test -s conftest$ac_exeext'
2872   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2873   (eval $ac_try) 2>&5
2874   ac_status=$?
2875   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2876   (exit $ac_status); }; }; then
2877   ac_cv_lib_l_yywrap=yes
2878 else
2879   echo "$as_me: failed program was:" >&5
2880 cat conftest.$ac_ext >&5
2881 ac_cv_lib_l_yywrap=no
2882 fi
2883 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
2884 LIBS=$ac_check_lib_save_LIBS
2885 fi
2886 echo "$as_me:$LINENO: result: $ac_cv_lib_l_yywrap" >&5
2887 echo "${ECHO_T}$ac_cv_lib_l_yywrap" >&6
2888 if test $ac_cv_lib_l_yywrap = yes; then
2889   LEXLIB="-ll"
2890 fi
2891
2892 fi
2893
2894 fi
2895
2896 if test "x$LEX" != "x:"; then
2897   echo "$as_me:$LINENO: checking lex output file root" >&5
2898 echo $ECHO_N "checking lex output file root... $ECHO_C" >&6
2899 if test "${ac_cv_prog_lex_root+set}" = set; then
2900   echo $ECHO_N "(cached) $ECHO_C" >&6
2901 else
2902   # The minimal lex program is just a single line: %%.  But some broken lexes
2903 # (Solaris, I think it was) want two %% lines, so accommodate them.
2904 cat >conftest.l <<_ACEOF
2905 %%
2906 %%
2907 _ACEOF
2908 { (eval echo "$as_me:$LINENO: \"$LEX conftest.l\"") >&5
2909   (eval $LEX conftest.l) 2>&5
2910   ac_status=$?
2911   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2912   (exit $ac_status); }
2913 if test -f lex.yy.c; then
2914   ac_cv_prog_lex_root=lex.yy
2915 elif test -f lexyy.c; then
2916   ac_cv_prog_lex_root=lexyy
2917 else
2918   { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5
2919 echo "$as_me: error: cannot find output from $LEX; giving up" >&2;}
2920    { (exit 1); exit 1; }; }
2921 fi
2922 fi
2923 echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5
2924 echo "${ECHO_T}$ac_cv_prog_lex_root" >&6
2925 rm -f conftest.l
2926 LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
2927
2928 echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5
2929 echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6
2930 if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then
2931   echo $ECHO_N "(cached) $ECHO_C" >&6
2932 else
2933   # POSIX says lex can declare yytext either as a pointer or an array; the
2934 # default is implementation-dependent. Figure out which it is, since
2935 # not all implementations provide the %pointer and %array declarations.
2936 ac_cv_prog_lex_yytext_pointer=no
2937 echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c
2938 ac_save_LIBS=$LIBS
2939 LIBS="$LIBS $LEXLIB"
2940 cat >conftest.$ac_ext <<_ACEOF
2941 `cat $LEX_OUTPUT_ROOT.c`
2942 _ACEOF
2943 rm -f conftest.$ac_objext conftest$ac_exeext
2944 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2945   (eval $ac_link) 2>&5
2946   ac_status=$?
2947   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2948   (exit $ac_status); } &&
2949          { ac_try='test -s conftest$ac_exeext'
2950   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2951   (eval $ac_try) 2>&5
2952   ac_status=$?
2953   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2954   (exit $ac_status); }; }; then
2955   ac_cv_prog_lex_yytext_pointer=yes
2956 else
2957   echo "$as_me: failed program was:" >&5
2958 cat conftest.$ac_ext >&5
2959 fi
2960 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
2961 LIBS=$ac_save_LIBS
2962 rm -f "${LEX_OUTPUT_ROOT}.c"
2963
2964 fi
2965 echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5
2966 echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6
2967 if test $ac_cv_prog_lex_yytext_pointer = yes; then
2968
2969 cat >>confdefs.h <<\_ACEOF
2970 #define YYTEXT_POINTER 1
2971 _ACEOF
2972
2973 fi
2974
2975 fi
2976
2977 fi
2978 echo "$as_me:$LINENO: result: $ac_cv_has_flex" >&5
2979 echo "${ECHO_T}$ac_cv_has_flex" >&6
2980 if test "$LEX" != "flex"; then
2981   { { echo "$as_me:$LINENO: error: flex not found but required" >&5
2982 echo "$as_me: error: flex not found but required" >&2;}
2983    { (exit 1); exit 1; }; }
2984 fi
2985
2986 echo "$as_me:$LINENO: checking " >&5
2987 echo $ECHO_N "checking ... $ECHO_C" >&6
2988 if test "${ac_cv_has_bison+set}" = set; then
2989   echo $ECHO_N "(cached) $ECHO_C" >&6
2990 else
2991   for ac_prog in 'bison -y' byacc
2992 do
2993   # Extract the first word of "$ac_prog", so it can be a program name with args.
2994 set dummy $ac_prog; ac_word=$2
2995 echo "$as_me:$LINENO: checking for $ac_word" >&5
2996 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2997 if test "${ac_cv_prog_YACC+set}" = set; then
2998   echo $ECHO_N "(cached) $ECHO_C" >&6
2999 else
3000   if test -n "$YACC"; then
3001   ac_cv_prog_YACC="$YACC" # Let the user override the test.
3002 else
3003 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3004 for as_dir in $PATH
3005 do
3006   IFS=$as_save_IFS
3007   test -z "$as_dir" && as_dir=.
3008   for ac_exec_ext in '' $ac_executable_extensions; do
3009   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3010     ac_cv_prog_YACC="$ac_prog"
3011     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3012     break 2
3013   fi
3014 done
3015 done
3016
3017 fi
3018 fi
3019 YACC=$ac_cv_prog_YACC
3020 if test -n "$YACC"; then
3021   echo "$as_me:$LINENO: result: $YACC" >&5
3022 echo "${ECHO_T}$YACC" >&6
3023 else
3024   echo "$as_me:$LINENO: result: no" >&5
3025 echo "${ECHO_T}no" >&6
3026 fi
3027
3028   test -n "$YACC" && break
3029 done
3030 test -n "$YACC" || YACC="yacc"
3031
3032
3033 fi
3034 echo "$as_me:$LINENO: result: $ac_cv_has_bison" >&5
3035 echo "${ECHO_T}$ac_cv_has_bison" >&6
3036 if test "$YACC" != "bison -y"; then
3037   { { echo "$as_me:$LINENO: error: bison not found but required" >&5
3038 echo "$as_me: error: bison not found but required" >&2;}
3039    { (exit 1); exit 1; }; }
3040 else
3041   YACC=bison
3042
3043 fi
3044
3045
3046 # Check whether --enable-shared or --disable-shared was given.
3047 if test "${enable_shared+set}" = set; then
3048   enableval="$enable_shared"
3049   p=${PACKAGE-default}
3050 case $enableval in
3051 yes) enable_shared=yes ;;
3052 no) enable_shared=no ;;
3053 *)
3054   enable_shared=no
3055   # Look at the argument we got.  We use all the common list separators.
3056   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
3057   for pkg in $enableval; do
3058     if test "X$pkg" = "X$p"; then
3059       enable_shared=yes
3060     fi
3061   done
3062   IFS="$ac_save_ifs"
3063   ;;
3064 esac
3065 else
3066   enable_shared=yes
3067 fi;
3068 # Check whether --enable-static or --disable-static was given.
3069 if test "${enable_static+set}" = set; then
3070   enableval="$enable_static"
3071   p=${PACKAGE-default}
3072 case $enableval in
3073 yes) enable_static=yes ;;
3074 no) enable_static=no ;;
3075 *)
3076   enable_static=no
3077   # Look at the argument we got.  We use all the common list separators.
3078   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
3079   for pkg in $enableval; do
3080     if test "X$pkg" = "X$p"; then
3081       enable_static=yes
3082     fi
3083   done
3084   IFS="$ac_save_ifs"
3085   ;;
3086 esac
3087 else
3088   enable_static=yes
3089 fi;
3090 # Check whether --enable-fast-install or --disable-fast-install was given.
3091 if test "${enable_fast_install+set}" = set; then
3092   enableval="$enable_fast_install"
3093   p=${PACKAGE-default}
3094 case $enableval in
3095 yes) enable_fast_install=yes ;;
3096 no) enable_fast_install=no ;;
3097 *)
3098   enable_fast_install=no
3099   # Look at the argument we got.  We use all the common list separators.
3100   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
3101   for pkg in $enableval; do
3102     if test "X$pkg" = "X$p"; then
3103       enable_fast_install=yes
3104     fi
3105   done
3106   IFS="$ac_save_ifs"
3107   ;;
3108 esac
3109 else
3110   enable_fast_install=yes
3111 fi;
3112 # Find the correct PATH separator.  Usually this is `:', but
3113 # DJGPP uses `;' like DOS.
3114 if test "X${PATH_SEPARATOR+set}" != Xset; then
3115   UNAME=${UNAME-`uname 2>/dev/null`}
3116   case X$UNAME in
3117     *-DOS) lt_cv_sys_path_separator=';' ;;
3118     *)     lt_cv_sys_path_separator=':' ;;
3119   esac
3120   PATH_SEPARATOR=$lt_cv_sys_path_separator
3121 fi
3122
3123
3124 # Check whether --with-gnu-ld or --without-gnu-ld was given.
3125 if test "${with_gnu_ld+set}" = set; then
3126   withval="$with_gnu_ld"
3127   test "$withval" = no || with_gnu_ld=yes
3128 else
3129   with_gnu_ld=no
3130 fi;
3131 ac_prog=ld
3132 if test "$GCC" = yes; then
3133   # Check if gcc -print-prog-name=ld gives a path.
3134   echo "$as_me:$LINENO: checking for ld used by GCC" >&5
3135 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
3136   case $host in
3137   *-*-mingw*)
3138     # gcc leaves a trailing carriage return which upsets mingw
3139     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3140   *)
3141     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3142   esac
3143   case $ac_prog in
3144     # Accept absolute paths.
3145     [\\/]* | [A-Za-z]:[\\/]*)
3146       re_direlt='/[^/][^/]*/\.\./'
3147       # Canonicalize the path of ld
3148       ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
3149       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
3150         ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
3151       done
3152       test -z "$LD" && LD="$ac_prog"
3153       ;;
3154   "")
3155     # If it fails, then pretend we aren't using GCC.
3156     ac_prog=ld
3157     ;;
3158   *)
3159     # If it is relative, then search for the first ld in PATH.
3160     with_gnu_ld=unknown
3161     ;;
3162   esac
3163 elif test "$with_gnu_ld" = yes; then
3164   echo "$as_me:$LINENO: checking for GNU ld" >&5
3165 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
3166 else
3167   echo "$as_me:$LINENO: checking for non-GNU ld" >&5
3168 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
3169 fi
3170 if test "${lt_cv_path_LD+set}" = set; then
3171   echo $ECHO_N "(cached) $ECHO_C" >&6
3172 else
3173   if test -z "$LD"; then
3174   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3175   for ac_dir in $PATH; do
3176     test -z "$ac_dir" && ac_dir=.
3177     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3178       lt_cv_path_LD="$ac_dir/$ac_prog"
3179       # Check to see if the program is GNU ld.  I'd rather use --version,
3180       # but apparently some GNU ld's only accept -v.
3181       # Break only if it was the GNU/non-GNU ld that we prefer.
3182       if "$lt_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
3183         test "$with_gnu_ld" != no && break
3184       else
3185         test "$with_gnu_ld" != yes && break
3186       fi
3187     fi
3188   done
3189   IFS="$ac_save_ifs"
3190 else
3191   lt_cv_path_LD="$LD" # Let the user override the test with a path.
3192 fi
3193 fi
3194
3195 LD="$lt_cv_path_LD"
3196 if test -n "$LD"; then
3197   echo "$as_me:$LINENO: result: $LD" >&5
3198 echo "${ECHO_T}$LD" >&6
3199 else
3200   echo "$as_me:$LINENO: result: no" >&5
3201 echo "${ECHO_T}no" >&6
3202 fi
3203 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
3204 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
3205    { (exit 1); exit 1; }; }
3206 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
3207 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
3208 if test "${lt_cv_prog_gnu_ld+set}" = set; then
3209   echo $ECHO_N "(cached) $ECHO_C" >&6
3210 else
3211   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
3212 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
3213   lt_cv_prog_gnu_ld=yes
3214 else
3215   lt_cv_prog_gnu_ld=no
3216 fi
3217 fi
3218 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
3219 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
3220 with_gnu_ld=$lt_cv_prog_gnu_ld
3221
3222
3223 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
3224 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
3225 if test "${lt_cv_ld_reload_flag+set}" = set; then
3226   echo $ECHO_N "(cached) $ECHO_C" >&6
3227 else
3228   lt_cv_ld_reload_flag='-r'
3229 fi
3230 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
3231 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
3232 reload_flag=$lt_cv_ld_reload_flag
3233 test -n "$reload_flag" && reload_flag=" $reload_flag"
3234
3235 echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
3236 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
3237 if test "${lt_cv_path_NM+set}" = set; then
3238   echo $ECHO_N "(cached) $ECHO_C" >&6
3239 else
3240   if test -n "$NM"; then
3241   # Let the user override the test.
3242   lt_cv_path_NM="$NM"
3243 else
3244   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3245   for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
3246     test -z "$ac_dir" && ac_dir=.
3247     tmp_nm=$ac_dir/${ac_tool_prefix}nm
3248     if test -f $tmp_nm || test -f $tmp_nm$ac_exeext ; then
3249       # Check to see if the nm accepts a BSD-compat flag.
3250       # Adding the `sed 1q' prevents false positives on HP-UX, which says:
3251       #   nm: unknown option "B" ignored
3252       # Tru64's nm complains that /dev/null is an invalid object file
3253       if ($tmp_nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep '(/dev/null|Invalid file or object type)' >/dev/null; then
3254         lt_cv_path_NM="$tmp_nm -B"
3255         break
3256       elif ($tmp_nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
3257         lt_cv_path_NM="$tmp_nm -p"
3258         break
3259       else
3260         lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
3261         continue # so that we can try to find one that supports BSD flags
3262       fi
3263     fi
3264   done
3265   IFS="$ac_save_ifs"
3266   test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
3267 fi
3268 fi
3269
3270 NM="$lt_cv_path_NM"
3271 echo "$as_me:$LINENO: result: $NM" >&5
3272 echo "${ECHO_T}$NM" >&6
3273
3274 echo "$as_me:$LINENO: checking whether ln -s works" >&5
3275 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3276 LN_S=$as_ln_s
3277 if test "$LN_S" = "ln -s"; then
3278   echo "$as_me:$LINENO: result: yes" >&5
3279 echo "${ECHO_T}yes" >&6
3280 else
3281   echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3282 echo "${ECHO_T}no, using $LN_S" >&6
3283 fi
3284
3285 echo "$as_me:$LINENO: checking how to recognise dependant libraries" >&5
3286 echo $ECHO_N "checking how to recognise dependant libraries... $ECHO_C" >&6
3287 if test "${lt_cv_deplibs_check_method+set}" = set; then
3288   echo $ECHO_N "(cached) $ECHO_C" >&6
3289 else
3290   lt_cv_file_magic_cmd='$MAGIC_CMD'
3291 lt_cv_file_magic_test_file=
3292 lt_cv_deplibs_check_method='unknown'
3293 # Need to set the preceding variable on all platforms that support
3294 # interlibrary dependencies.
3295 # 'none' -- dependencies not supported.
3296 # `unknown' -- same as none, but documents that we really don't know.
3297 # 'pass_all' -- all dependencies passed with no checks.
3298 # 'test_compile' -- check by making test program.
3299 # 'file_magic [[regex]]' -- check by looking for files in library path
3300 # which responds to the $file_magic_cmd with a given egrep regex.
3301 # If you have `file' or equivalent on your system and you're not sure
3302 # whether `pass_all' will *always* work, you probably want this one.
3303
3304 case $host_os in
3305 aix4* | aix5*)
3306   lt_cv_deplibs_check_method=pass_all
3307   ;;
3308
3309 beos*)
3310   lt_cv_deplibs_check_method=pass_all
3311   ;;
3312
3313 bsdi4*)
3314   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
3315   lt_cv_file_magic_cmd='/usr/bin/file -L'
3316   lt_cv_file_magic_test_file=/shlib/libc.so
3317   ;;
3318
3319 cygwin* | mingw* | pw32*)
3320   lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
3321   lt_cv_file_magic_cmd='$OBJDUMP -f'
3322   ;;
3323
3324 darwin* | rhapsody*)
3325   lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
3326   lt_cv_file_magic_cmd='/usr/bin/file -L'
3327   case "$host_os" in
3328   rhapsody* | darwin1.[012])
3329     lt_cv_file_magic_test_file=`echo /System/Library/Frameworks/System.framework/Versions/*/System | head -1`
3330     ;;
3331   *) # Darwin 1.3 on
3332     lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
3333     ;;
3334   esac
3335   ;;
3336
3337 freebsd*)
3338   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3339     case $host_cpu in
3340     i*86 )
3341       # Not sure whether the presence of OpenBSD here was a mistake.
3342       # Let's accept both of them until this is cleared up.
3343       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
3344       lt_cv_file_magic_cmd=/usr/bin/file
3345       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3346       ;;
3347     esac
3348   else
3349     lt_cv_deplibs_check_method=pass_all
3350   fi
3351   ;;
3352
3353 gnu*)
3354   lt_cv_deplibs_check_method=pass_all
3355   ;;
3356
3357 hpux10.20*|hpux11*)
3358   lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
3359   lt_cv_file_magic_cmd=/usr/bin/file
3360   lt_cv_file_magic_test_file=/usr/lib/libc.sl
3361   ;;
3362
3363 irix5* | irix6*)
3364   case $host_os in
3365   irix5*)
3366     # this will be overridden with pass_all, but let us keep it just in case
3367     lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
3368     ;;
3369   *)
3370     case $LD in
3371     *-32|*"-32 ") libmagic=32-bit;;
3372     *-n32|*"-n32 ") libmagic=N32;;
3373     *-64|*"-64 ") libmagic=64-bit;;
3374     *) libmagic=never-match;;
3375     esac
3376     # this will be overridden with pass_all, but let us keep it just in case
3377     lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
3378     ;;
3379   esac
3380   lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
3381   lt_cv_deplibs_check_method=pass_all
3382   ;;
3383
3384 # This must be Linux ELF.
3385 linux-gnu*)
3386   case $host_cpu in
3387   alpha* | hppa* | i*86 | powerpc* | sparc* | ia64* | s390* )
3388     lt_cv_deplibs_check_method=pass_all ;;
3389   *)
3390     # glibc up to 2.1.1 does not perform some relocations on ARM
3391     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
3392   esac
3393   lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
3394   ;;
3395
3396 netbsd*)
3397   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3398     lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$'
3399   else
3400     lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so$'
3401   fi
3402   ;;
3403
3404 newos6*)
3405   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
3406   lt_cv_file_magic_cmd=/usr/bin/file
3407   lt_cv_file_magic_test_file=/usr/lib/libnls.so
3408   ;;
3409
3410 openbsd*)
3411   lt_cv_file_magic_cmd=/usr/bin/file
3412   lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3413   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
3414     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB shared object'
3415   else
3416     lt_cv_deplibs_check_method='file_magic OpenBSD.* shared library'
3417   fi
3418   ;;
3419
3420 osf3* | osf4* | osf5*)
3421   # this will be overridden with pass_all, but let us keep it just in case
3422   lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
3423   lt_cv_file_magic_test_file=/shlib/libc.so
3424   lt_cv_deplibs_check_method=pass_all
3425   ;;
3426
3427 sco3.2v5*)
3428   lt_cv_deplibs_check_method=pass_all
3429   ;;
3430
3431 solaris*)
3432   lt_cv_deplibs_check_method=pass_all
3433   lt_cv_file_magic_test_file=/lib/libc.so
3434   ;;
3435
3436 sysv5uw[78]* | sysv4*uw2*)
3437   lt_cv_deplibs_check_method=pass_all
3438   ;;
3439
3440 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
3441   case $host_vendor in
3442   motorola)
3443     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]'
3444     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
3445     ;;
3446   ncr)
3447     lt_cv_deplibs_check_method=pass_all
3448     ;;
3449   sequent)
3450     lt_cv_file_magic_cmd='/bin/file'
3451     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
3452     ;;
3453   sni)
3454     lt_cv_file_magic_cmd='/bin/file'
3455     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
3456     lt_cv_file_magic_test_file=/lib/libc.so
3457     ;;
3458   esac
3459   ;;
3460 esac
3461
3462 fi
3463 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
3464 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
3465 file_magic_cmd=$lt_cv_file_magic_cmd
3466 deplibs_check_method=$lt_cv_deplibs_check_method
3467
3468
3469
3470
3471
3472
3473
3474 # Check for command to grab the raw symbol name followed by C symbol from nm.
3475 echo "$as_me:$LINENO: checking command to parse $NM output" >&5
3476 echo $ECHO_N "checking command to parse $NM output... $ECHO_C" >&6
3477 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
3478   echo $ECHO_N "(cached) $ECHO_C" >&6
3479 else
3480
3481 # These are sane defaults that work on at least a few old systems.
3482 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
3483
3484 # Character class describing NM global symbol codes.
3485 symcode='[BCDEGRST]'
3486
3487 # Regexp to match symbols that can be accessed directly from C.
3488 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
3489
3490 # Transform the above into a raw symbol and a C symbol.
3491 symxfrm='\1 \2\3 \3'
3492
3493 # Transform an extracted symbol line into a proper C declaration
3494 lt_cv_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern char \1;/p'"
3495
3496 # Transform an extracted symbol line into symbol name and symbol address
3497 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'"
3498
3499 # Define system-specific variables.
3500 case $host_os in
3501 aix*)
3502   symcode='[BCDT]'
3503   ;;
3504 cygwin* | mingw* | pw32*)
3505   symcode='[ABCDGISTW]'
3506   ;;
3507 hpux*) # Its linker distinguishes data from code symbols
3508   lt_cv_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern char \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
3509   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'"
3510   ;;
3511 irix*)
3512   symcode='[BCDEGRST]'
3513   ;;
3514 solaris* | sysv5*)
3515   symcode='[BDT]'
3516   ;;
3517 sysv4)
3518   symcode='[DFNSTU]'
3519   ;;
3520 esac
3521
3522 # Handle CRLF in mingw tool chain
3523 opt_cr=
3524 case $host_os in
3525 mingw*)
3526   opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
3527   ;;
3528 esac
3529
3530 # If we're using GNU nm, then use its standard symbol codes.
3531 if $NM -V 2>&1 | egrep '(GNU|with BFD)' > /dev/null; then
3532   symcode='[ABCDGISTW]'
3533 fi
3534
3535 # Try without a prefix undercore, then with it.
3536 for ac_symprfx in "" "_"; do
3537
3538   # Write the raw and C identifiers.
3539 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[         ]\($symcode$symcode*\)[         ][      ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
3540
3541   # Check to see that the pipe works correctly.
3542   pipe_works=no
3543   rm -f conftest*
3544   cat > conftest.$ac_ext <<EOF
3545 #ifdef __cplusplus
3546 extern "C" {
3547 #endif
3548 char nm_test_var;
3549 void nm_test_func(){}
3550 #ifdef __cplusplus
3551 }
3552 #endif
3553 int main(){nm_test_var='a';nm_test_func();return(0);}
3554 EOF
3555
3556   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3557   (eval $ac_compile) 2>&5
3558   ac_status=$?
3559   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3560   (exit $ac_status); }; then
3561     # Now try to grab the symbols.
3562     nlist=conftest.nm
3563     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
3564   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
3565   ac_status=$?
3566   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3567   (exit $ac_status); } && test -s "$nlist"; then
3568       # Try sorting and uniquifying the output.
3569       if sort "$nlist" | uniq > "$nlist"T; then
3570         mv -f "$nlist"T "$nlist"
3571       else
3572         rm -f "$nlist"T
3573       fi
3574
3575       # Make sure that we snagged all the symbols we need.
3576       if egrep ' nm_test_var$' "$nlist" >/dev/null; then
3577         if egrep ' nm_test_func$' "$nlist" >/dev/null; then
3578           cat <<EOF > conftest.$ac_ext
3579 #ifdef __cplusplus
3580 extern "C" {
3581 #endif
3582
3583 EOF
3584           # Now generate the symbol file.
3585           eval "$lt_cv_global_symbol_to_cdecl"' < "$nlist" >> conftest.$ac_ext'
3586
3587           cat <<EOF >> conftest.$ac_ext
3588 #if defined (__STDC__) && __STDC__
3589 # define lt_ptr void *
3590 #else
3591 # define lt_ptr char *
3592 # define const
3593 #endif
3594
3595 /* The mapping between symbol names and symbols. */
3596 const struct {
3597   const char *name;
3598   lt_ptr address;
3599 }
3600 lt_preloaded_symbols[] =
3601 {
3602 EOF
3603           sed "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr) \&\2},/" < "$nlist" >> conftest.$ac_ext
3604           cat <<\EOF >> conftest.$ac_ext
3605   {0, (lt_ptr) 0}
3606 };
3607
3608 #ifdef __cplusplus
3609 }
3610 #endif
3611 EOF
3612           # Now try linking the two files.
3613           mv conftest.$ac_objext conftstm.$ac_objext
3614           save_LIBS="$LIBS"
3615           save_CFLAGS="$CFLAGS"
3616           LIBS="conftstm.$ac_objext"
3617           CFLAGS="$CFLAGS$no_builtin_flag"
3618           if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3619   (eval $ac_link) 2>&5
3620   ac_status=$?
3621   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3622   (exit $ac_status); } && test -s conftest; then
3623             pipe_works=yes
3624           fi
3625           LIBS="$save_LIBS"
3626           CFLAGS="$save_CFLAGS"
3627         else
3628           echo "cannot find nm_test_func in $nlist" >&5
3629         fi
3630       else
3631         echo "cannot find nm_test_var in $nlist" >&5
3632       fi
3633     else
3634       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
3635     fi
3636   else
3637     echo "$progname: failed program was:" >&5
3638     cat conftest.$ac_ext >&5
3639   fi
3640   rm -f conftest* conftst*
3641
3642   # Do not use the global_symbol_pipe unless it works.
3643   if test "$pipe_works" = yes; then
3644     break
3645   else
3646     lt_cv_sys_global_symbol_pipe=
3647   fi
3648 done
3649
3650 fi
3651
3652 global_symbol_pipe="$lt_cv_sys_global_symbol_pipe"
3653 if test -z "$lt_cv_sys_global_symbol_pipe"; then
3654   global_symbol_to_cdecl=
3655   global_symbol_to_c_name_address=
3656 else
3657   global_symbol_to_cdecl="$lt_cv_global_symbol_to_cdecl"
3658   global_symbol_to_c_name_address="$lt_cv_global_symbol_to_c_name_address"
3659 fi
3660 if test -z "$global_symbol_pipe$global_symbol_to_cdec$global_symbol_to_c_name_address";
3661 then
3662   echo "$as_me:$LINENO: result: failed" >&5
3663 echo "${ECHO_T}failed" >&6
3664 else
3665   echo "$as_me:$LINENO: result: ok" >&5
3666 echo "${ECHO_T}ok" >&6
3667 fi
3668
3669
3670 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3671 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
3672 if test "${ac_cv_header_stdc+set}" = set; then
3673   echo $ECHO_N "(cached) $ECHO_C" >&6
3674 else
3675   cat >conftest.$ac_ext <<_ACEOF
3676 #line $LINENO "configure"
3677 #include "confdefs.h"
3678 #include <stdlib.h>
3679 #include <stdarg.h>
3680 #include <string.h>
3681 #include <float.h>
3682
3683 _ACEOF
3684 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3685   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3686   ac_status=$?
3687   egrep -v '^ *\+' conftest.er1 >conftest.err
3688   rm -f conftest.er1
3689   cat conftest.err >&5
3690   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3691   (exit $ac_status); } >/dev/null; then
3692   if test -s conftest.err; then
3693     ac_cpp_err=$ac_c_preproc_warn_flag
3694   else
3695     ac_cpp_err=
3696   fi
3697 else
3698   ac_cpp_err=yes
3699 fi
3700 if test -z "$ac_cpp_err"; then
3701   ac_cv_header_stdc=yes
3702 else
3703   echo "$as_me: failed program was:" >&5
3704   cat conftest.$ac_ext >&5
3705   ac_cv_header_stdc=no
3706 fi
3707 rm -f conftest.err conftest.$ac_ext
3708
3709 if test $ac_cv_header_stdc = yes; then
3710   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3711   cat >conftest.$ac_ext <<_ACEOF
3712 #line $LINENO "configure"
3713 #include "confdefs.h"
3714 #include <string.h>
3715
3716 _ACEOF
3717 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3718   egrep "memchr" >/dev/null 2>&1; then
3719   :
3720 else
3721   ac_cv_header_stdc=no
3722 fi
3723 rm -f conftest*
3724
3725 fi
3726
3727 if test $ac_cv_header_stdc = yes; then
3728   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3729   cat >conftest.$ac_ext <<_ACEOF
3730 #line $LINENO "configure"
3731 #include "confdefs.h"
3732 #include <stdlib.h>
3733
3734 _ACEOF
3735 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3736   egrep "free" >/dev/null 2>&1; then
3737   :
3738 else
3739   ac_cv_header_stdc=no
3740 fi
3741 rm -f conftest*
3742
3743 fi
3744
3745 if test $ac_cv_header_stdc = yes; then
3746   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3747   if test "$cross_compiling" = yes; then
3748   :
3749 else
3750   cat >conftest.$ac_ext <<_ACEOF
3751 #line $LINENO "configure"
3752 #include "confdefs.h"
3753 #include <ctype.h>
3754 #if ((' ' & 0x0FF) == 0x020)
3755 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3756 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3757 #else
3758 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
3759                      || ('j' <= (c) && (c) <= 'r') \
3760                      || ('s' <= (c) && (c) <= 'z'))
3761 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3762 #endif
3763
3764 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3765 int
3766 main ()
3767 {
3768   int i;
3769   for (i = 0; i < 256; i++)
3770     if (XOR (islower (i), ISLOWER (i))
3771         || toupper (i) != TOUPPER (i))
3772       exit(2);
3773   exit (0);
3774 }
3775 _ACEOF
3776 rm -f conftest$ac_exeext
3777 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3778   (eval $ac_link) 2>&5
3779   ac_status=$?
3780   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3781   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3782   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3783   (eval $ac_try) 2>&5
3784   ac_status=$?
3785   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3786   (exit $ac_status); }; }; then
3787   :
3788 else
3789   echo "$as_me: program exited with status $ac_status" >&5
3790 echo "$as_me: failed program was:" >&5
3791 cat conftest.$ac_ext >&5
3792 ( exit $ac_status )
3793 ac_cv_header_stdc=no
3794 fi
3795 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3796 fi
3797 fi
3798 fi
3799 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3800 echo "${ECHO_T}$ac_cv_header_stdc" >&6
3801 if test $ac_cv_header_stdc = yes; then
3802
3803 cat >>confdefs.h <<\_ACEOF
3804 #define STDC_HEADERS 1
3805 _ACEOF
3806
3807 fi
3808
3809 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3810
3811
3812
3813
3814
3815
3816
3817
3818
3819 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3820                   inttypes.h stdint.h unistd.h
3821 do
3822 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3823 echo "$as_me:$LINENO: checking for $ac_header" >&5
3824 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3825 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3826   echo $ECHO_N "(cached) $ECHO_C" >&6
3827 else
3828   cat >conftest.$ac_ext <<_ACEOF
3829 #line $LINENO "configure"
3830 #include "confdefs.h"
3831 $ac_includes_default
3832
3833 #include <$ac_header>
3834 _ACEOF
3835 rm -f conftest.$ac_objext
3836 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3837   (eval $ac_compile) 2>&5
3838   ac_status=$?
3839   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3840   (exit $ac_status); } &&
3841          { ac_try='test -s conftest.$ac_objext'
3842   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3843   (eval $ac_try) 2>&5
3844   ac_status=$?
3845   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3846   (exit $ac_status); }; }; then
3847   eval "$as_ac_Header=yes"
3848 else
3849   echo "$as_me: failed program was:" >&5
3850 cat conftest.$ac_ext >&5
3851 eval "$as_ac_Header=no"
3852 fi
3853 rm -f conftest.$ac_objext conftest.$ac_ext
3854 fi
3855 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3856 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3857 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3858   cat >>confdefs.h <<_ACEOF
3859 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3860 _ACEOF
3861
3862 fi
3863
3864 done
3865
3866
3867
3868 for ac_header in dlfcn.h
3869 do
3870 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3871 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3872   echo "$as_me:$LINENO: checking for $ac_header" >&5
3873 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3874 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3875   echo $ECHO_N "(cached) $ECHO_C" >&6
3876 fi
3877 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3878 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3879 else
3880   # Is the header compilable?
3881 echo "$as_me:$LINENO: checking $ac_header usability" >&5
3882 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
3883 cat >conftest.$ac_ext <<_ACEOF
3884 #line $LINENO "configure"
3885 #include "confdefs.h"
3886 $ac_includes_default
3887 #include <$ac_header>
3888 _ACEOF
3889 rm -f conftest.$ac_objext
3890 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3891   (eval $ac_compile) 2>&5
3892   ac_status=$?
3893   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3894   (exit $ac_status); } &&
3895          { ac_try='test -s conftest.$ac_objext'
3896   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3897   (eval $ac_try) 2>&5
3898   ac_status=$?
3899   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3900   (exit $ac_status); }; }; then
3901   ac_header_compiler=yes
3902 else
3903   echo "$as_me: failed program was:" >&5
3904 cat conftest.$ac_ext >&5
3905 ac_header_compiler=no
3906 fi
3907 rm -f conftest.$ac_objext conftest.$ac_ext
3908 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3909 echo "${ECHO_T}$ac_header_compiler" >&6
3910
3911 # Is the header present?
3912 echo "$as_me:$LINENO: checking $ac_header presence" >&5
3913 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
3914 cat >conftest.$ac_ext <<_ACEOF
3915 #line $LINENO "configure"
3916 #include "confdefs.h"
3917 #include <$ac_header>
3918 _ACEOF
3919 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3920   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3921   ac_status=$?
3922   egrep -v '^ *\+' conftest.er1 >conftest.err
3923   rm -f conftest.er1
3924   cat conftest.err >&5
3925   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3926   (exit $ac_status); } >/dev/null; then
3927   if test -s conftest.err; then
3928     ac_cpp_err=$ac_c_preproc_warn_flag
3929   else
3930     ac_cpp_err=
3931   fi
3932 else
3933   ac_cpp_err=yes
3934 fi
3935 if test -z "$ac_cpp_err"; then
3936   ac_header_preproc=yes
3937 else
3938   echo "$as_me: failed program was:" >&5
3939   cat conftest.$ac_ext >&5
3940   ac_header_preproc=no
3941 fi
3942 rm -f conftest.err conftest.$ac_ext
3943 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3944 echo "${ECHO_T}$ac_header_preproc" >&6
3945
3946 # So?  What about this header?
3947 case $ac_header_compiler:$ac_header_preproc in
3948   yes:no )
3949     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
3950 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
3951     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3952 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
3953   no:yes )
3954     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
3955 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
3956     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
3957 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
3958     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3959 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
3960 esac
3961 echo "$as_me:$LINENO: checking for $ac_header" >&5
3962 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3963 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3964   echo $ECHO_N "(cached) $ECHO_C" >&6
3965 else
3966   eval "$as_ac_Header=$ac_header_preproc"
3967 fi
3968 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3969 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3970
3971 fi
3972 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3973   cat >>confdefs.h <<_ACEOF
3974 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3975 _ACEOF
3976
3977 fi
3978
3979 done
3980
3981
3982
3983
3984
3985 # Only perform the check for file, if the check method requires it
3986 case $deplibs_check_method in
3987 file_magic*)
3988   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
3989     echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
3990 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
3991 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
3992   echo $ECHO_N "(cached) $ECHO_C" >&6
3993 else
3994   case $MAGIC_CMD in
3995   /*)
3996   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
3997   ;;
3998   ?:/*)
3999   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
4000   ;;
4001   *)
4002   ac_save_MAGIC_CMD="$MAGIC_CMD"
4003   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
4004   ac_dummy="/usr/bin:$PATH"
4005   for ac_dir in $ac_dummy; do
4006     test -z "$ac_dir" && ac_dir=.
4007     if test -f $ac_dir/${ac_tool_prefix}file; then
4008       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
4009       if test -n "$file_magic_test_file"; then
4010         case $deplibs_check_method in
4011         "file_magic "*)
4012           file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
4013           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
4014           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
4015             egrep "$file_magic_regex" > /dev/null; then
4016             :
4017           else
4018             cat <<EOF 1>&2
4019
4020 *** Warning: the command libtool uses to detect shared libraries,
4021 *** $file_magic_cmd, produces output that libtool cannot recognize.
4022 *** The result is that libtool may fail to recognize shared libraries
4023 *** as such.  This will affect the creation of libtool libraries that
4024 *** depend on shared libraries, but programs linked with such libtool
4025 *** libraries will work regardless of this problem.  Nevertheless, you
4026 *** may want to report the problem to your system manager and/or to
4027 *** bug-libtool@gnu.org
4028
4029 EOF
4030           fi ;;
4031         esac
4032       fi
4033       break
4034     fi
4035   done
4036   IFS="$ac_save_ifs"
4037   MAGIC_CMD="$ac_save_MAGIC_CMD"
4038   ;;
4039 esac
4040 fi
4041
4042 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
4043 if test -n "$MAGIC_CMD"; then
4044   echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
4045 echo "${ECHO_T}$MAGIC_CMD" >&6
4046 else
4047   echo "$as_me:$LINENO: result: no" >&5
4048 echo "${ECHO_T}no" >&6
4049 fi
4050
4051 if test -z "$lt_cv_path_MAGIC_CMD"; then
4052   if test -n "$ac_tool_prefix"; then
4053     echo "$as_me:$LINENO: checking for file" >&5
4054 echo $ECHO_N "checking for file... $ECHO_C" >&6
4055 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
4056   echo $ECHO_N "(cached) $ECHO_C" >&6
4057 else
4058   case $MAGIC_CMD in
4059   /*)
4060   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
4061   ;;
4062   ?:/*)
4063   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
4064   ;;
4065   *)
4066   ac_save_MAGIC_CMD="$MAGIC_CMD"
4067   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
4068   ac_dummy="/usr/bin:$PATH"
4069   for ac_dir in $ac_dummy; do
4070     test -z "$ac_dir" && ac_dir=.
4071     if test -f $ac_dir/file; then
4072       lt_cv_path_MAGIC_CMD="$ac_dir/file"
4073       if test -n "$file_magic_test_file"; then
4074         case $deplibs_check_method in
4075         "file_magic "*)
4076           file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
4077           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
4078           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
4079             egrep "$file_magic_regex" > /dev/null; then
4080             :
4081           else
4082             cat <<EOF 1>&2
4083
4084 *** Warning: the command libtool uses to detect shared libraries,
4085 *** $file_magic_cmd, produces output that libtool cannot recognize.
4086 *** The result is that libtool may fail to recognize shared libraries
4087 *** as such.  This will affect the creation of libtool libraries that
4088 *** depend on shared libraries, but programs linked with such libtool
4089 *** libraries will work regardless of this problem.  Nevertheless, you
4090 *** may want to report the problem to your system manager and/or to
4091 *** bug-libtool@gnu.org
4092
4093 EOF
4094           fi ;;
4095         esac
4096       fi
4097       break
4098     fi
4099   done
4100   IFS="$ac_save_ifs"
4101   MAGIC_CMD="$ac_save_MAGIC_CMD"
4102   ;;
4103 esac
4104 fi
4105
4106 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
4107 if test -n "$MAGIC_CMD"; then
4108   echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
4109 echo "${ECHO_T}$MAGIC_CMD" >&6
4110 else
4111   echo "$as_me:$LINENO: result: no" >&5
4112 echo "${ECHO_T}no" >&6
4113 fi
4114
4115   else
4116     MAGIC_CMD=:
4117   fi
4118 fi
4119
4120   fi
4121   ;;
4122 esac
4123
4124 if test -n "$ac_tool_prefix"; then
4125   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4126 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4127 echo "$as_me:$LINENO: checking for $ac_word" >&5
4128 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4129 if test "${ac_cv_prog_RANLIB+set}" = set; then
4130   echo $ECHO_N "(cached) $ECHO_C" >&6
4131 else
4132   if test -n "$RANLIB"; then
4133   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4134 else
4135 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4136 for as_dir in $PATH
4137 do
4138   IFS=$as_save_IFS
4139   test -z "$as_dir" && as_dir=.
4140   for ac_exec_ext in '' $ac_executable_extensions; do
4141   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4142     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4143     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4144     break 2
4145   fi
4146 done
4147 done
4148
4149 fi
4150 fi
4151 RANLIB=$ac_cv_prog_RANLIB
4152 if test -n "$RANLIB"; then
4153   echo "$as_me:$LINENO: result: $RANLIB" >&5
4154 echo "${ECHO_T}$RANLIB" >&6
4155 else
4156   echo "$as_me:$LINENO: result: no" >&5
4157 echo "${ECHO_T}no" >&6
4158 fi
4159
4160 fi
4161 if test -z "$ac_cv_prog_RANLIB"; then
4162   ac_ct_RANLIB=$RANLIB
4163   # Extract the first word of "ranlib", so it can be a program name with args.
4164 set dummy ranlib; ac_word=$2
4165 echo "$as_me:$LINENO: checking for $ac_word" >&5
4166 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4167 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4168   echo $ECHO_N "(cached) $ECHO_C" >&6
4169 else
4170   if test -n "$ac_ct_RANLIB"; then
4171   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4172 else
4173 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4174 for as_dir in $PATH
4175 do
4176   IFS=$as_save_IFS
4177   test -z "$as_dir" && as_dir=.
4178   for ac_exec_ext in '' $ac_executable_extensions; do
4179   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4180     ac_cv_prog_ac_ct_RANLIB="ranlib"
4181     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4182     break 2
4183   fi
4184 done
4185 done
4186
4187   test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
4188 fi
4189 fi
4190 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4191 if test -n "$ac_ct_RANLIB"; then
4192   echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4193 echo "${ECHO_T}$ac_ct_RANLIB" >&6
4194 else
4195   echo "$as_me:$LINENO: result: no" >&5
4196 echo "${ECHO_T}no" >&6
4197 fi
4198
4199   RANLIB=$ac_ct_RANLIB
4200 else
4201   RANLIB="$ac_cv_prog_RANLIB"
4202 fi
4203
4204 if test -n "$ac_tool_prefix"; then
4205   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4206 set dummy ${ac_tool_prefix}strip; ac_word=$2
4207 echo "$as_me:$LINENO: checking for $ac_word" >&5
4208 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4209 if test "${ac_cv_prog_STRIP+set}" = set; then
4210   echo $ECHO_N "(cached) $ECHO_C" >&6
4211 else
4212   if test -n "$STRIP"; then
4213   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4214 else
4215 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4216 for as_dir in $PATH
4217 do
4218   IFS=$as_save_IFS
4219   test -z "$as_dir" && as_dir=.
4220   for ac_exec_ext in '' $ac_executable_extensions; do
4221   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4222     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
4223     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4224     break 2
4225   fi
4226 done
4227 done
4228
4229 fi
4230 fi
4231 STRIP=$ac_cv_prog_STRIP
4232 if test -n "$STRIP"; then
4233   echo "$as_me:$LINENO: result: $STRIP" >&5
4234 echo "${ECHO_T}$STRIP" >&6
4235 else
4236   echo "$as_me:$LINENO: result: no" >&5
4237 echo "${ECHO_T}no" >&6
4238 fi
4239
4240 fi
4241 if test -z "$ac_cv_prog_STRIP"; then
4242   ac_ct_STRIP=$STRIP
4243   # Extract the first word of "strip", so it can be a program name with args.
4244 set dummy strip; ac_word=$2
4245 echo "$as_me:$LINENO: checking for $ac_word" >&5
4246 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4247 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
4248   echo $ECHO_N "(cached) $ECHO_C" >&6
4249 else
4250   if test -n "$ac_ct_STRIP"; then
4251   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
4252 else
4253 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4254 for as_dir in $PATH
4255 do
4256   IFS=$as_save_IFS
4257   test -z "$as_dir" && as_dir=.
4258   for ac_exec_ext in '' $ac_executable_extensions; do
4259   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4260     ac_cv_prog_ac_ct_STRIP="strip"
4261     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4262     break 2
4263   fi
4264 done
4265 done
4266
4267   test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
4268 fi
4269 fi
4270 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4271 if test -n "$ac_ct_STRIP"; then
4272   echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
4273 echo "${ECHO_T}$ac_ct_STRIP" >&6
4274 else
4275   echo "$as_me:$LINENO: result: no" >&5
4276 echo "${ECHO_T}no" >&6
4277 fi
4278
4279   STRIP=$ac_ct_STRIP
4280 else
4281   STRIP="$ac_cv_prog_STRIP"
4282 fi
4283
4284
4285 enable_dlopen=no
4286 enable_win32_dll=no
4287
4288 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
4289 if test "${enable_libtool_lock+set}" = set; then
4290   enableval="$enable_libtool_lock"
4291
4292 fi;
4293 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
4294
4295 # Some flags need to be propagated to the compiler or linker for good
4296 # libtool support.
4297 case $host in
4298 *-*-irix6*)
4299   # Find out which ABI we are using.
4300   echo '#line 4300 "configure"' > conftest.$ac_ext
4301   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4302   (eval $ac_compile) 2>&5
4303   ac_status=$?
4304   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4305   (exit $ac_status); }; then
4306     case `/usr/bin/file conftest.$ac_objext` in
4307     *32-bit*)
4308       LD="${LD-ld} -32"
4309       ;;
4310     *N32*)
4311       LD="${LD-ld} -n32"
4312       ;;
4313     *64-bit*)
4314       LD="${LD-ld} -64"
4315       ;;
4316     esac
4317   fi
4318   rm -rf conftest*
4319   ;;
4320
4321 *-*-sco3.2v5*)
4322   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4323   SAVE_CFLAGS="$CFLAGS"
4324   CFLAGS="$CFLAGS -belf"
4325   echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
4326 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
4327 if test "${lt_cv_cc_needs_belf+set}" = set; then
4328   echo $ECHO_N "(cached) $ECHO_C" >&6
4329 else
4330
4331
4332      ac_ext=c
4333 ac_cpp='$CPP $CPPFLAGS'
4334 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4335 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4336 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4337
4338      cat >conftest.$ac_ext <<_ACEOF
4339 #line $LINENO "configure"
4340 #include "confdefs.h"
4341
4342 #ifdef F77_DUMMY_MAIN
4343 #  ifdef __cplusplus
4344      extern "C"
4345 #  endif
4346    int F77_DUMMY_MAIN() { return 1; }
4347 #endif
4348 int
4349 main ()
4350 {
4351
4352   ;
4353   return 0;
4354 }
4355 _ACEOF
4356 rm -f conftest.$ac_objext conftest$ac_exeext
4357 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4358   (eval $ac_link) 2>&5
4359   ac_status=$?
4360   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4361   (exit $ac_status); } &&
4362          { ac_try='test -s conftest$ac_exeext'
4363   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4364   (eval $ac_try) 2>&5
4365   ac_status=$?
4366   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4367   (exit $ac_status); }; }; then
4368   lt_cv_cc_needs_belf=yes
4369 else
4370   echo "$as_me: failed program was:" >&5
4371 cat conftest.$ac_ext >&5
4372 lt_cv_cc_needs_belf=no
4373 fi
4374 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4375      ac_ext=c
4376 ac_cpp='$CPP $CPPFLAGS'
4377 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4378 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4379 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4380
4381 fi
4382 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
4383 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
4384   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4385     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4386     CFLAGS="$SAVE_CFLAGS"
4387   fi
4388   ;;
4389
4390
4391 esac
4392
4393 # Sed substitution that helps us do robust quoting.  It backslashifies
4394 # metacharacters that are still active within double-quoted strings.
4395 Xsed='sed -e s/^X//'
4396 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
4397
4398 # Same as above, but do not quote variable references.
4399 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
4400
4401 # Sed substitution to delay expansion of an escaped shell variable in a
4402 # double_quote_subst'ed string.
4403 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4404
4405 # Constants:
4406 rm="rm -f"
4407
4408 # Global variables:
4409 default_ofile=libtool
4410 can_build_shared=yes
4411
4412 # All known linkers require a `.a' archive for static linking (except M$VC,
4413 # which needs '.lib').
4414 libext=a
4415 ltmain="$ac_aux_dir/ltmain.sh"
4416 ofile="$default_ofile"
4417 with_gnu_ld="$lt_cv_prog_gnu_ld"
4418 need_locks="$enable_libtool_lock"
4419
4420 old_CC="$CC"
4421 old_CFLAGS="$CFLAGS"
4422
4423 # Set sane defaults for various variables
4424 test -z "$AR" && AR=ar
4425 test -z "$AR_FLAGS" && AR_FLAGS=cru
4426 test -z "$AS" && AS=as
4427 test -z "$CC" && CC=cc
4428 test -z "$DLLTOOL" && DLLTOOL=dlltool
4429 test -z "$LD" && LD=ld
4430 test -z "$LN_S" && LN_S="ln -s"
4431 test -z "$MAGIC_CMD" && MAGIC_CMD=file
4432 test -z "$NM" && NM=nm
4433 test -z "$OBJDUMP" && OBJDUMP=objdump
4434 test -z "$RANLIB" && RANLIB=:
4435 test -z "$STRIP" && STRIP=:
4436 test -z "$ac_objext" && ac_objext=o
4437
4438 if test x"$host" != x"$build"; then
4439   ac_tool_prefix=${host_alias}-
4440 else
4441   ac_tool_prefix=
4442 fi
4443
4444 # Transform linux* to *-*-linux-gnu*, to support old configure scripts.
4445 case $host_os in
4446 linux-gnu*) ;;
4447 linux*) host=`echo $host | sed 's/^\(.*-.*-linux\)\(.*\)$/\1-gnu\2/'`
4448 esac
4449
4450 case $host_os in
4451 aix3*)
4452   # AIX sometimes has problems with the GCC collect2 program.  For some
4453   # reason, if we set the COLLECT_NAMES environment variable, the problems
4454   # vanish in a puff of smoke.
4455   if test "X${COLLECT_NAMES+set}" != Xset; then
4456     COLLECT_NAMES=
4457     export COLLECT_NAMES
4458   fi
4459   ;;
4460 esac
4461
4462 # Determine commands to create old-style static archives.
4463 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
4464 old_postinstall_cmds='chmod 644 $oldlib'
4465 old_postuninstall_cmds=
4466
4467 if test -n "$RANLIB"; then
4468   case $host_os in
4469   openbsd*)
4470     old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
4471     ;;
4472   *)
4473     old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
4474     ;;
4475   esac
4476   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
4477 fi
4478
4479 # Allow CC to be a program name with arguments.
4480 set dummy $CC
4481 compiler="$2"
4482
4483 ## FIXME: this should be a separate macro
4484 ##
4485 echo "$as_me:$LINENO: checking for objdir" >&5
4486 echo $ECHO_N "checking for objdir... $ECHO_C" >&6
4487 rm -f .libs 2>/dev/null
4488 mkdir .libs 2>/dev/null
4489 if test -d .libs; then
4490   objdir=.libs
4491 else
4492   # MS-DOS does not allow filenames that begin with a dot.
4493   objdir=_libs
4494 fi
4495 rmdir .libs 2>/dev/null
4496 echo "$as_me:$LINENO: result: $objdir" >&5
4497 echo "${ECHO_T}$objdir" >&6
4498 ##
4499 ## END FIXME
4500
4501
4502 ## FIXME: this should be a separate macro
4503 ##
4504
4505 # Check whether --with-pic or --without-pic was given.
4506 if test "${with_pic+set}" = set; then
4507   withval="$with_pic"
4508   pic_mode="$withval"
4509 else
4510   pic_mode=default
4511 fi;
4512 test -z "$pic_mode" && pic_mode=default
4513
4514 # We assume here that the value for lt_cv_prog_cc_pic will not be cached
4515 # in isolation, and that seeing it set (from the cache) indicates that
4516 # the associated values are set (in the cache) correctly too.
4517 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
4518 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
4519 if test "${lt_cv_prog_cc_pic+set}" = set; then
4520   echo $ECHO_N "(cached) $ECHO_C" >&6
4521 else
4522    lt_cv_prog_cc_pic=
4523   lt_cv_prog_cc_shlib=
4524   lt_cv_prog_cc_wl=
4525   lt_cv_prog_cc_static=
4526   lt_cv_prog_cc_no_builtin=
4527   lt_cv_prog_cc_can_build_shared=$can_build_shared
4528
4529   if test "$GCC" = yes; then
4530     lt_cv_prog_cc_wl='-Wl,'
4531     lt_cv_prog_cc_static='-static'
4532
4533     case $host_os in
4534     aix*)
4535       # Below there is a dirty hack to force normal static linking with -ldl
4536       # The problem is because libdl dynamically linked with both libc and
4537       # libC (AIX C++ library), which obviously doesn't included in libraries
4538       # list by gcc. This cause undefined symbols with -static flags.
4539       # This hack allows C programs to be linked with "-static -ldl", but
4540       # not sure about C++ programs.
4541       lt_cv_prog_cc_static="$lt_cv_prog_cc_static ${lt_cv_prog_cc_wl}-lC"
4542       ;;
4543     amigaos*)
4544       # FIXME: we need at least 68020 code to build shared libraries, but
4545       # adding the `-m68020' flag to GCC prevents building anything better,
4546       # like `-m68040'.
4547       lt_cv_prog_cc_pic='-m68020 -resident32 -malways-restore-a4'
4548       ;;
4549     beos* | irix5* | irix6* | osf3* | osf4* | osf5*)
4550       # PIC is the default for these OSes.
4551       ;;
4552     darwin* | rhapsody*)
4553       # PIC is the default on this platform
4554       # Common symbols not allowed in MH_DYLIB files
4555       lt_cv_prog_cc_pic='-fno-common'
4556       ;;
4557     cygwin* | mingw* | pw32* | os2*)
4558       # This hack is so that the source file can tell whether it is being
4559       # built for inclusion in a dll (and should export symbols for example).
4560       lt_cv_prog_cc_pic='-DDLL_EXPORT'
4561       ;;
4562     sysv4*MP*)
4563       if test -d /usr/nec; then
4564          lt_cv_prog_cc_pic=-Kconform_pic
4565       fi
4566       ;;
4567     *)
4568       lt_cv_prog_cc_pic='-fPIC'
4569       ;;
4570     esac
4571   else
4572     # PORTME Check for PIC flags for the system compiler.
4573     case $host_os in
4574     aix3* | aix4* | aix5*)
4575       lt_cv_prog_cc_wl='-Wl,'
4576       # All AIX code is PIC.
4577       if test "$host_cpu" = ia64; then
4578         # AIX 5 now supports IA64 processor
4579         lt_cv_prog_cc_static='-Bstatic'
4580       else
4581         lt_cv_prog_cc_static='-bnso -bI:/lib/syscalls.exp'
4582       fi
4583       ;;
4584
4585     hpux9* | hpux10* | hpux11*)
4586       # Is there a better lt_cv_prog_cc_static that works with the bundled CC?
4587       lt_cv_prog_cc_wl='-Wl,'
4588       lt_cv_prog_cc_static="${lt_cv_prog_cc_wl}-a ${lt_cv_prog_cc_wl}archive"
4589       lt_cv_prog_cc_pic='+Z'
4590       ;;
4591
4592     irix5* | irix6*)
4593       lt_cv_prog_cc_wl='-Wl,'
4594       lt_cv_prog_cc_static='-non_shared'
4595       # PIC (with -KPIC) is the default.
4596       ;;
4597
4598     cygwin* | mingw* | pw32* | os2*)
4599       # This hack is so that the source file can tell whether it is being
4600       # built for inclusion in a dll (and should export symbols for example).
4601       lt_cv_prog_cc_pic='-DDLL_EXPORT'
4602       ;;
4603
4604     newsos6)
4605       lt_cv_prog_cc_pic='-KPIC'
4606       lt_cv_prog_cc_static='-Bstatic'
4607       ;;
4608
4609     osf3* | osf4* | osf5*)
4610       # All OSF/1 code is PIC.
4611       lt_cv_prog_cc_wl='-Wl,'
4612       lt_cv_prog_cc_static='-non_shared'
4613       ;;
4614
4615     sco3.2v5*)
4616       lt_cv_prog_cc_pic='-Kpic'
4617       lt_cv_prog_cc_static='-dn'
4618       lt_cv_prog_cc_shlib='-belf'
4619       ;;
4620
4621     solaris*)
4622       lt_cv_prog_cc_pic='-KPIC'
4623       lt_cv_prog_cc_static='-Bstatic'
4624       lt_cv_prog_cc_wl='-Wl,'
4625       ;;
4626
4627     sunos4*)
4628       lt_cv_prog_cc_pic='-PIC'
4629       lt_cv_prog_cc_static='-Bstatic'
4630       lt_cv_prog_cc_wl='-Qoption ld '
4631       ;;
4632
4633     sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
4634       lt_cv_prog_cc_pic='-KPIC'
4635       lt_cv_prog_cc_static='-Bstatic'
4636       if test "x$host_vendor" = xsni; then
4637         lt_cv_prog_cc_wl='-LD'
4638       else
4639         lt_cv_prog_cc_wl='-Wl,'
4640       fi
4641       ;;
4642
4643     uts4*)
4644       lt_cv_prog_cc_pic='-pic'
4645       lt_cv_prog_cc_static='-Bstatic'
4646       ;;
4647
4648     sysv4*MP*)
4649       if test -d /usr/nec ;then
4650         lt_cv_prog_cc_pic='-Kconform_pic'
4651         lt_cv_prog_cc_static='-Bstatic'
4652       fi
4653       ;;
4654
4655     *)
4656       lt_cv_prog_cc_can_build_shared=no
4657       ;;
4658     esac
4659   fi
4660
4661 fi
4662
4663 if test -z "$lt_cv_prog_cc_pic"; then
4664   echo "$as_me:$LINENO: result: none" >&5
4665 echo "${ECHO_T}none" >&6
4666 else
4667   echo "$as_me:$LINENO: result: $lt_cv_prog_cc_pic" >&5
4668 echo "${ECHO_T}$lt_cv_prog_cc_pic" >&6
4669
4670   # Check to make sure the pic_flag actually works.
4671   echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_cv_prog_cc_pic works" >&5
4672 echo $ECHO_N "checking if $compiler PIC flag $lt_cv_prog_cc_pic works... $ECHO_C" >&6
4673   if test "${lt_cv_prog_cc_pic_works+set}" = set; then
4674   echo $ECHO_N "(cached) $ECHO_C" >&6
4675 else
4676       save_CFLAGS="$CFLAGS"
4677     CFLAGS="$CFLAGS $lt_cv_prog_cc_pic -DPIC"
4678     cat >conftest.$ac_ext <<_ACEOF
4679 #line $LINENO "configure"
4680 #include "confdefs.h"
4681
4682 #ifdef F77_DUMMY_MAIN
4683 #  ifdef __cplusplus
4684      extern "C"
4685 #  endif
4686    int F77_DUMMY_MAIN() { return 1; }
4687 #endif
4688 int
4689 main ()
4690 {
4691
4692   ;
4693   return 0;
4694 }
4695 _ACEOF
4696 rm -f conftest.$ac_objext
4697 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4698   (eval $ac_compile) 2>&5
4699   ac_status=$?
4700   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4701   (exit $ac_status); } &&
4702          { ac_try='test -s conftest.$ac_objext'
4703   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4704   (eval $ac_try) 2>&5
4705   ac_status=$?
4706   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4707   (exit $ac_status); }; }; then
4708         case $host_os in
4709       hpux9* | hpux10* | hpux11*)
4710         # On HP-UX, both CC and GCC only warn that PIC is supported... then
4711         # they create non-PIC objects.  So, if there were any warnings, we
4712         # assume that PIC is not supported.
4713         if test -s conftest.err; then
4714           lt_cv_prog_cc_pic_works=no
4715         else
4716           lt_cv_prog_cc_pic_works=yes
4717         fi
4718         ;;
4719       *)
4720         lt_cv_prog_cc_pic_works=yes
4721         ;;
4722       esac
4723
4724 else
4725   echo "$as_me: failed program was:" >&5
4726 cat conftest.$ac_ext >&5
4727       lt_cv_prog_cc_pic_works=no
4728
4729 fi
4730 rm -f conftest.$ac_objext conftest.$ac_ext
4731     CFLAGS="$save_CFLAGS"
4732
4733 fi
4734
4735
4736   if test "X$lt_cv_prog_cc_pic_works" = Xno; then
4737     lt_cv_prog_cc_pic=
4738     lt_cv_prog_cc_can_build_shared=no
4739   else
4740     lt_cv_prog_cc_pic=" $lt_cv_prog_cc_pic"
4741   fi
4742
4743   echo "$as_me:$LINENO: result: $lt_cv_prog_cc_pic_works" >&5
4744 echo "${ECHO_T}$lt_cv_prog_cc_pic_works" >&6
4745 fi
4746 ##
4747 ## END FIXME
4748
4749 # Check for any special shared library compilation flags.
4750 if test -n "$lt_cv_prog_cc_shlib"; then
4751   { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_cv_prog_cc_shlib' to build shared libraries" >&5
4752 echo "$as_me: WARNING: \`$CC' requires \`$lt_cv_prog_cc_shlib' to build shared libraries" >&2;}
4753   if echo "$old_CC $old_CFLAGS " | egrep -e "[  ]$lt_cv_prog_cc_shlib[  ]" >/dev/null; then :
4754   else
4755    { echo "$as_me:$LINENO: WARNING: add \`$lt_cv_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
4756 echo "$as_me: WARNING: add \`$lt_cv_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
4757     lt_cv_prog_cc_can_build_shared=no
4758   fi
4759 fi
4760
4761 ## FIXME: this should be a separate macro
4762 ##
4763 echo "$as_me:$LINENO: checking if $compiler static flag $lt_cv_prog_cc_static works" >&5
4764 echo $ECHO_N "checking if $compiler static flag $lt_cv_prog_cc_static works... $ECHO_C" >&6
4765 if test "${lt_cv_prog_cc_static_works+set}" = set; then
4766   echo $ECHO_N "(cached) $ECHO_C" >&6
4767 else
4768     lt_cv_prog_cc_static_works=no
4769   save_LDFLAGS="$LDFLAGS"
4770   LDFLAGS="$LDFLAGS $lt_cv_prog_cc_static"
4771   cat >conftest.$ac_ext <<_ACEOF
4772 #line $LINENO "configure"
4773 #include "confdefs.h"
4774
4775 #ifdef F77_DUMMY_MAIN
4776 #  ifdef __cplusplus
4777      extern "C"
4778 #  endif
4779    int F77_DUMMY_MAIN() { return 1; }
4780 #endif
4781 int
4782 main ()
4783 {
4784
4785   ;
4786   return 0;
4787 }
4788 _ACEOF
4789 rm -f conftest.$ac_objext conftest$ac_exeext
4790 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4791   (eval $ac_link) 2>&5
4792   ac_status=$?
4793   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4794   (exit $ac_status); } &&
4795          { ac_try='test -s conftest$ac_exeext'
4796   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4797   (eval $ac_try) 2>&5
4798   ac_status=$?
4799   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4800   (exit $ac_status); }; }; then
4801   lt_cv_prog_cc_static_works=yes
4802 else
4803   echo "$as_me: failed program was:" >&5
4804 cat conftest.$ac_ext >&5
4805 fi
4806 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4807   LDFLAGS="$save_LDFLAGS"
4808
4809 fi
4810
4811
4812 # Belt *and* braces to stop my trousers falling down:
4813 test "X$lt_cv_prog_cc_static_works" = Xno && lt_cv_prog_cc_static=
4814 echo "$as_me:$LINENO: result: $lt_cv_prog_cc_static_works" >&5
4815 echo "${ECHO_T}$lt_cv_prog_cc_static_works" >&6
4816
4817 pic_flag="$lt_cv_prog_cc_pic"
4818 special_shlib_compile_flags="$lt_cv_prog_cc_shlib"
4819 wl="$lt_cv_prog_cc_wl"
4820 link_static_flag="$lt_cv_prog_cc_static"
4821 no_builtin_flag="$lt_cv_prog_cc_no_builtin"
4822 can_build_shared="$lt_cv_prog_cc_can_build_shared"
4823 ##
4824 ## END FIXME
4825
4826
4827 ## FIXME: this should be a separate macro
4828 ##
4829 # Check to see if options -o and -c are simultaneously supported by compiler
4830 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
4831 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
4832 if test "${lt_cv_compiler_c_o+set}" = set; then
4833   echo $ECHO_N "(cached) $ECHO_C" >&6
4834 else
4835
4836 $rm -r conftest 2>/dev/null
4837 mkdir conftest
4838 cd conftest
4839 echo "int some_variable = 0;" > conftest.$ac_ext
4840 mkdir out
4841 # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
4842 # that will create temporary files in the current directory regardless of
4843 # the output directory.  Thus, making CWD read-only will cause this test
4844 # to fail, enabling locking or at least warning the user not to do parallel
4845 # builds.
4846 chmod -w .
4847 save_CFLAGS="$CFLAGS"
4848 CFLAGS="$CFLAGS -o out/conftest2.$ac_objext"
4849 compiler_c_o=no
4850 if { (eval echo configure:4850: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>out/conftest.err; } && test -s out/conftest2.$ac_objext; then
4851   # The compiler can only warn and ignore the option if not recognized
4852   # So say no if there are warnings
4853   if test -s out/conftest.err; then
4854     lt_cv_compiler_c_o=no
4855   else
4856     lt_cv_compiler_c_o=yes
4857   fi
4858 else
4859   # Append any errors to the config.log.
4860   cat out/conftest.err 1>&5
4861   lt_cv_compiler_c_o=no
4862 fi
4863 CFLAGS="$save_CFLAGS"
4864 chmod u+w .
4865 $rm conftest* out/*
4866 rmdir out
4867 cd ..
4868 rmdir conftest
4869 $rm -r conftest 2>/dev/null
4870
4871 fi
4872
4873 compiler_c_o=$lt_cv_compiler_c_o
4874 echo "$as_me:$LINENO: result: $compiler_c_o" >&5
4875 echo "${ECHO_T}$compiler_c_o" >&6
4876
4877 if test x"$compiler_c_o" = x"yes"; then
4878   # Check to see if we can write to a .lo
4879   echo "$as_me:$LINENO: checking if $compiler supports -c -o file.lo" >&5
4880 echo $ECHO_N "checking if $compiler supports -c -o file.lo... $ECHO_C" >&6
4881   if test "${lt_cv_compiler_o_lo+set}" = set; then
4882   echo $ECHO_N "(cached) $ECHO_C" >&6
4883 else
4884
4885   lt_cv_compiler_o_lo=no
4886   save_CFLAGS="$CFLAGS"
4887   CFLAGS="$CFLAGS -c -o conftest.lo"
4888   save_objext="$ac_objext"
4889   ac_objext=lo
4890   cat >conftest.$ac_ext <<_ACEOF
4891 #line $LINENO "configure"
4892 #include "confdefs.h"
4893
4894 #ifdef F77_DUMMY_MAIN
4895 #  ifdef __cplusplus
4896      extern "C"
4897 #  endif
4898    int F77_DUMMY_MAIN() { return 1; }
4899 #endif
4900 int
4901 main ()
4902 {
4903 int some_variable = 0;
4904   ;
4905   return 0;
4906 }
4907 _ACEOF
4908 rm -f conftest.$ac_objext
4909 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4910   (eval $ac_compile) 2>&5
4911   ac_status=$?
4912   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4913   (exit $ac_status); } &&
4914          { ac_try='test -s conftest.$ac_objext'
4915   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4916   (eval $ac_try) 2>&5
4917   ac_status=$?
4918   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4919   (exit $ac_status); }; }; then
4920       # The compiler can only warn and ignore the option if not recognized
4921     # So say no if there are warnings
4922     if test -s conftest.err; then
4923       lt_cv_compiler_o_lo=no
4924     else
4925       lt_cv_compiler_o_lo=yes
4926     fi
4927
4928 else
4929   echo "$as_me: failed program was:" >&5
4930 cat conftest.$ac_ext >&5
4931 fi
4932 rm -f conftest.$ac_objext conftest.$ac_ext
4933   ac_objext="$save_objext"
4934   CFLAGS="$save_CFLAGS"
4935
4936 fi
4937
4938   compiler_o_lo=$lt_cv_compiler_o_lo
4939   echo "$as_me:$LINENO: result: $compiler_o_lo" >&5
4940 echo "${ECHO_T}$compiler_o_lo" >&6
4941 else
4942   compiler_o_lo=no
4943 fi
4944 ##
4945 ## END FIXME
4946
4947 ## FIXME: this should be a separate macro
4948 ##
4949 # Check to see if we can do hard links to lock some files if needed
4950 hard_links="nottested"
4951 if test "$compiler_c_o" = no && test "$need_locks" != no; then
4952   # do not overwrite the value of need_locks provided by the user
4953   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
4954 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
4955   hard_links=yes
4956   $rm conftest*
4957   ln conftest.a conftest.b 2>/dev/null && hard_links=no
4958   touch conftest.a
4959   ln conftest.a conftest.b 2>&5 || hard_links=no
4960   ln conftest.a conftest.b 2>/dev/null && hard_links=no
4961   echo "$as_me:$LINENO: result: $hard_links" >&5
4962 echo "${ECHO_T}$hard_links" >&6
4963   if test "$hard_links" = no; then
4964     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
4965 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
4966     need_locks=warn
4967   fi
4968 else
4969   need_locks=no
4970 fi
4971 ##
4972 ## END FIXME
4973
4974 ## FIXME: this should be a separate macro
4975 ##
4976 if test "$GCC" = yes; then
4977   # Check to see if options -fno-rtti -fno-exceptions are supported by compiler
4978   echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
4979 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
4980   echo "int some_variable = 0;" > conftest.$ac_ext
4981   save_CFLAGS="$CFLAGS"
4982   CFLAGS="$CFLAGS -fno-rtti -fno-exceptions -c conftest.$ac_ext"
4983   compiler_rtti_exceptions=no
4984   cat >conftest.$ac_ext <<_ACEOF
4985 #line $LINENO "configure"
4986 #include "confdefs.h"
4987
4988 #ifdef F77_DUMMY_MAIN
4989 #  ifdef __cplusplus
4990      extern "C"
4991 #  endif
4992    int F77_DUMMY_MAIN() { return 1; }
4993 #endif
4994 int
4995 main ()
4996 {
4997 int some_variable = 0;
4998   ;
4999   return 0;
5000 }
5001 _ACEOF
5002 rm -f conftest.$ac_objext
5003 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5004   (eval $ac_compile) 2>&5
5005   ac_status=$?
5006   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5007   (exit $ac_status); } &&
5008          { ac_try='test -s conftest.$ac_objext'
5009   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5010   (eval $ac_try) 2>&5
5011   ac_status=$?
5012   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5013   (exit $ac_status); }; }; then
5014       # The compiler can only warn and ignore the option if not recognized
5015     # So say no if there are warnings
5016     if test -s conftest.err; then
5017       compiler_rtti_exceptions=no
5018     else
5019       compiler_rtti_exceptions=yes
5020     fi
5021
5022 else
5023   echo "$as_me: failed program was:" >&5
5024 cat conftest.$ac_ext >&5
5025 fi
5026 rm -f conftest.$ac_objext conftest.$ac_ext
5027   CFLAGS="$save_CFLAGS"
5028   echo "$as_me:$LINENO: result: $compiler_rtti_exceptions" >&5
5029 echo "${ECHO_T}$compiler_rtti_exceptions" >&6
5030
5031   if test "$compiler_rtti_exceptions" = "yes"; then
5032     no_builtin_flag=' -fno-builtin -fno-rtti -fno-exceptions'
5033   else
5034     no_builtin_flag=' -fno-builtin'
5035   fi
5036 fi
5037 ##
5038 ## END FIXME
5039
5040 ## FIXME: this should be a separate macro
5041 ##
5042 # See if the linker supports building shared libraries.
5043 echo "$as_me:$LINENO: checking whether the linker ($LD) supports shared libraries" >&5
5044 echo $ECHO_N "checking whether the linker ($LD) supports shared libraries... $ECHO_C" >&6
5045
5046 allow_undefined_flag=
5047 no_undefined_flag=
5048 need_lib_prefix=unknown
5049 need_version=unknown
5050 # when you set need_version to no, make sure it does not cause -set_version
5051 # flags to be left without arguments
5052 archive_cmds=
5053 archive_expsym_cmds=
5054 old_archive_from_new_cmds=
5055 old_archive_from_expsyms_cmds=
5056 export_dynamic_flag_spec=
5057 whole_archive_flag_spec=
5058 thread_safe_flag_spec=
5059 hardcode_into_libs=no
5060 hardcode_libdir_flag_spec=
5061 hardcode_libdir_separator=
5062 hardcode_direct=no
5063 hardcode_minus_L=no
5064 hardcode_shlibpath_var=unsupported
5065 runpath_var=
5066 link_all_deplibs=unknown
5067 always_export_symbols=no
5068 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | sed '\''s/.* //'\'' | sort | uniq > $export_symbols'
5069 # include_expsyms should be a list of space-separated symbols to be *always*
5070 # included in the symbol list
5071 include_expsyms=
5072 # exclude_expsyms can be an egrep regular expression of symbols to exclude
5073 # it will be wrapped by ` (' and `)$', so one must not match beginning or
5074 # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
5075 # as well as any symbol that contains `d'.
5076 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
5077 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
5078 # platforms (ab)use it in PIC code, but their linkers get confused if
5079 # the symbol is explicitly referenced.  Since portable code cannot
5080 # rely on this symbol name, it's probably fine to never include it in
5081 # preloaded symbol tables.
5082 extract_expsyms_cmds=
5083
5084 case $host_os in
5085 cygwin* | mingw* | pw32*)
5086   # FIXME: the MSVC++ port hasn't been tested in a loooong time
5087   # When not using gcc, we currently assume that we are using
5088   # Microsoft Visual C++.
5089   if test "$GCC" != yes; then
5090     with_gnu_ld=no
5091   fi
5092   ;;
5093 openbsd*)
5094   with_gnu_ld=no
5095   ;;
5096 esac
5097
5098 ld_shlibs=yes
5099 if test "$with_gnu_ld" = yes; then
5100   # If archive_cmds runs LD, not CC, wlarc should be empty
5101   wlarc='${wl}'
5102
5103   # See if GNU ld supports shared libraries.
5104   case $host_os in
5105   aix3* | aix4* | aix5*)
5106     # On AIX, the GNU linker is very broken
5107     # Note:Check GNU linker on AIX 5-IA64 when/if it becomes available.
5108     ld_shlibs=no
5109     cat <<EOF 1>&2
5110
5111 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
5112 *** to be unable to reliably create shared libraries on AIX.
5113 *** Therefore, libtool is disabling shared libraries support.  If you
5114 *** really care for shared libraries, you may want to modify your PATH
5115 *** so that a non-GNU linker is found, and then restart.
5116
5117 EOF
5118     ;;
5119
5120   amigaos*)
5121     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)'
5122     hardcode_libdir_flag_spec='-L$libdir'
5123     hardcode_minus_L=yes
5124
5125     # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
5126     # that the semantics of dynamic libraries on AmigaOS, at least up
5127     # to version 4, is to share data among multiple programs linked
5128     # with the same dynamic library.  Since this doesn't match the
5129     # behavior of shared libraries on other platforms, we can use
5130     # them.
5131     ld_shlibs=no
5132     ;;
5133
5134   beos*)
5135     if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
5136       allow_undefined_flag=unsupported
5137       # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
5138       # support --undefined.  This deserves some investigation.  FIXME
5139       archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5140     else
5141       ld_shlibs=no
5142     fi
5143     ;;
5144
5145   cygwin* | mingw* | pw32*)
5146     # hardcode_libdir_flag_spec is actually meaningless, as there is
5147     # no search path for DLLs.
5148     hardcode_libdir_flag_spec='-L$libdir'
5149     allow_undefined_flag=unsupported
5150     always_export_symbols=yes
5151
5152     extract_expsyms_cmds='test -f $output_objdir/impgen.c || \
5153       sed -e "/^# \/\* impgen\.c starts here \*\//,/^# \/\* impgen.c ends here \*\// { s/^# //;s/^# *$//; p; }" -e d < $''0 > $output_objdir/impgen.c~
5154       test -f $output_objdir/impgen.exe || (cd $output_objdir && \
5155       if test "x$HOST_CC" != "x" ; then $HOST_CC -o impgen impgen.c ; \
5156       else $CC -o impgen impgen.c ; fi)~
5157       $output_objdir/impgen $dir/$soroot > $output_objdir/$soname-def'
5158
5159     old_archive_from_expsyms_cmds='$DLLTOOL --as=$AS --dllname $soname --def $output_objdir/$soname-def --output-lib $output_objdir/$newlib'
5160
5161     # cygwin and mingw dlls have different entry points and sets of symbols
5162     # to exclude.
5163     # FIXME: what about values for MSVC?
5164     dll_entry=__cygwin_dll_entry@12
5165     dll_exclude_symbols=DllMain@12,_cygwin_dll_entry@12,_cygwin_noncygwin_dll_entry@12~
5166     case $host_os in
5167     mingw*)
5168       # mingw values
5169       dll_entry=_DllMainCRTStartup@12
5170       dll_exclude_symbols=DllMain@12,DllMainCRTStartup@12,DllEntryPoint@12~
5171       ;;
5172     esac
5173
5174     # mingw and cygwin differ, and it's simplest to just exclude the union
5175     # of the two symbol sets.
5176     dll_exclude_symbols=DllMain@12,_cygwin_dll_entry@12,_cygwin_noncygwin_dll_entry@12,DllMainCRTStartup@12,DllEntryPoint@12
5177
5178     # recent cygwin and mingw systems supply a stub DllMain which the user
5179     # can override, but on older systems we have to supply one (in ltdll.c)
5180     if test "x$lt_cv_need_dllmain" = "xyes"; then
5181       ltdll_obj='$output_objdir/$soname-ltdll.'"$ac_objext "
5182       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~
5183         test -f $output_objdir/$soname-ltdll.$ac_objext || (cd $output_objdir && $CC -c $soname-ltdll.c)~'
5184     else
5185       ltdll_obj=
5186       ltdll_cmds=
5187     fi
5188
5189     # Extract the symbol export list from an `--export-all' def file,
5190     # then regenerate the def file from the symbol export list, so that
5191     # the compiled dll only exports the symbol export list.
5192     # Be careful not to strip the DATA tag left be newer dlltools.
5193     export_symbols_cmds="$ltdll_cmds"'
5194       $DLLTOOL --export-all --exclude-symbols '$dll_exclude_symbols' --output-def $output_objdir/$soname-def '$ltdll_obj'$libobjs $convenience~
5195       sed -e "1,/EXPORTS/d" -e "s/ @ [0-9]*//" -e "s/ *;.*$//" < $output_objdir/$soname-def > $export_symbols'
5196
5197     # If the export-symbols file already is a .def file (1st line
5198     # is EXPORTS), use it as is.
5199     # If DATA tags from a recent dlltool are present, honour them!
5200     archive_expsym_cmds='if test "x`head -1 $export_symbols`" = xEXPORTS; then
5201         cp $export_symbols $output_objdir/$soname-def;
5202       else
5203         echo EXPORTS > $output_objdir/$soname-def;
5204         _lt_hint=1;
5205         cat $export_symbols | while read symbol; do
5206          set dummy \$symbol;
5207          case \$# in
5208            2) echo "   \$2 @ \$_lt_hint ; " >> $output_objdir/$soname-def;;
5209            *) echo "     \$2 @ \$_lt_hint \$3 ; " >> $output_objdir/$soname-def;;
5210          esac;
5211          _lt_hint=`expr 1 + \$_lt_hint`;
5212         done;
5213       fi~
5214       '"$ltdll_cmds"'
5215       $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~
5216       $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~
5217       $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~
5218       $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~
5219       $CC $output_objdir/$soname-exp '$lt_cv_cc_dll_switch' -Wl,-e,'$dll_entry' -o $output_objdir/$soname '$ltdll_obj'$libobjs $deplibs $compiler_flags'
5220     ;;
5221
5222   netbsd*)
5223     if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
5224       archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
5225       wlarc=
5226     else
5227       archive_cmds='$CC -shared -nodefaultlibs $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5228       archive_expsym_cmds='$CC -shared -nodefaultlibs $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
5229     fi
5230     ;;
5231
5232   solaris* | sysv5*)
5233     if $LD -v 2>&1 | egrep 'BFD 2\.8' > /dev/null; then
5234       ld_shlibs=no
5235       cat <<EOF 1>&2
5236
5237 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
5238 *** create shared libraries on Solaris systems.  Therefore, libtool
5239 *** is disabling shared libraries support.  We urge you to upgrade GNU
5240 *** binutils to release 2.9.1 or newer.  Another option is to modify
5241 *** your PATH or compiler configuration so that the native linker is
5242 *** used, and then restart.
5243
5244 EOF
5245     elif $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
5246       archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5247       archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
5248     else
5249       ld_shlibs=no
5250     fi
5251     ;;
5252
5253   sunos4*)
5254     archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
5255     wlarc=
5256     hardcode_direct=yes
5257     hardcode_shlibpath_var=no
5258     ;;
5259
5260   *)
5261     if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
5262       archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5263       archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
5264     else
5265       ld_shlibs=no
5266     fi
5267     ;;
5268   esac
5269
5270   if test "$ld_shlibs" = yes; then
5271     runpath_var=LD_RUN_PATH
5272     hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
5273     export_dynamic_flag_spec='${wl}--export-dynamic'
5274     case $host_os in
5275     cygwin* | mingw* | pw32*)
5276       # dlltool doesn't understand --whole-archive et. al.
5277       whole_archive_flag_spec=
5278       ;;
5279     *)
5280       # ancient GNU ld didn't support --whole-archive et. al.
5281       if $LD --help 2>&1 | egrep 'no-whole-archive' > /dev/null; then
5282         whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
5283       else
5284         whole_archive_flag_spec=
5285       fi
5286       ;;
5287     esac
5288   fi
5289 else
5290   # PORTME fill in a description of your system's linker (not GNU ld)
5291   case $host_os in
5292   aix3*)
5293     allow_undefined_flag=unsupported
5294     always_export_symbols=yes
5295     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'
5296     # Note: this linker hardcodes the directories in LIBPATH if there
5297     # are no directories specified by -L.
5298     hardcode_minus_L=yes
5299     if test "$GCC" = yes && test -z "$link_static_flag"; then
5300       # Neither direct hardcoding nor static linking is supported with a
5301       # broken collect2.
5302       hardcode_direct=unsupported
5303     fi
5304     ;;
5305
5306   aix4* | aix5*)
5307     if test "$host_cpu" = ia64; then
5308       # On IA64, the linker does run time linking by default, so we don't
5309       # have to do anything special.
5310       aix_use_runtimelinking=no
5311       exp_sym_flag='-Bexport'
5312       no_entry_flag=""
5313     else
5314       aix_use_runtimelinking=no
5315
5316       # Test if we are trying to use run time linking or normal
5317       # AIX style linking. If -brtl is somewhere in LDFLAGS, we
5318       # need to do runtime linking.
5319       case $host_os in aix4.[23]|aix4.[23].*|aix5*)
5320         for ld_flag in $LDFLAGS; do
5321           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
5322             aix_use_runtimelinking=yes
5323             break
5324           fi
5325         done
5326       esac
5327
5328       exp_sym_flag='-bexport'
5329       no_entry_flag='-bnoentry'
5330     fi
5331
5332     # When large executables or shared objects are built, AIX ld can
5333     # have problems creating the table of contents.  If linking a library
5334     # or program results in "error TOC overflow" add -mminimal-toc to
5335     # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
5336     # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
5337
5338     hardcode_direct=yes
5339     archive_cmds=''
5340     hardcode_libdir_separator=':'
5341     if test "$GCC" = yes; then
5342       case $host_os in aix4.[012]|aix4.[012].*)
5343         collect2name=`${CC} -print-prog-name=collect2`
5344         if test -f "$collect2name" && \
5345           strings "$collect2name" | grep resolve_lib_name >/dev/null
5346         then
5347           # We have reworked collect2
5348           hardcode_direct=yes
5349         else
5350           # We have old collect2
5351           hardcode_direct=unsupported
5352           # It fails to find uninstalled libraries when the uninstalled
5353           # path is not listed in the libpath.  Setting hardcode_minus_L
5354           # to unsupported forces relinking
5355           hardcode_minus_L=yes
5356           hardcode_libdir_flag_spec='-L$libdir'
5357           hardcode_libdir_separator=
5358         fi
5359       esac
5360
5361       shared_flag='-shared'
5362     else
5363       # not using gcc
5364       if test "$host_cpu" = ia64; then
5365         shared_flag='${wl}-G'
5366       else
5367         if test "$aix_use_runtimelinking" = yes; then
5368           shared_flag='${wl}-G'
5369         else
5370           shared_flag='${wl}-bM:SRE'
5371         fi
5372       fi
5373     fi
5374
5375     # It seems that -bexpall can do strange things, so it is better to
5376     # generate a list of symbols to export.
5377     always_export_symbols=yes
5378     if test "$aix_use_runtimelinking" = yes; then
5379       # Warning - without using the other runtime loading flags (-brtl),
5380       # -berok will link without error, but may produce a broken library.
5381       allow_undefined_flag='-berok'
5382       hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:/usr/lib:/lib'
5383       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"
5384     else
5385       if test "$host_cpu" = ia64; then
5386         hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
5387         allow_undefined_flag="-z nodefs"
5388         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"
5389       else
5390         hardcode_libdir_flag_spec='${wl}-bnolibpath ${wl}-blibpath:$libdir:/usr/lib:/lib'
5391         # Warning - without using the other run time loading flags,
5392         # -berok will link without error, but may produce a broken library.
5393         allow_undefined_flag='${wl}-berok'
5394         # This is a bit strange, but is similar to how AIX traditionally builds
5395         # it's shared libraries.
5396         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'
5397       fi
5398     fi
5399     ;;
5400
5401   amigaos*)
5402     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)'
5403     hardcode_libdir_flag_spec='-L$libdir'
5404     hardcode_minus_L=yes
5405     # see comment about different semantics on the GNU ld section
5406     ld_shlibs=no
5407     ;;
5408
5409   cygwin* | mingw* | pw32*)
5410     # When not using gcc, we currently assume that we are using
5411     # Microsoft Visual C++.
5412     # hardcode_libdir_flag_spec is actually meaningless, as there is
5413     # no search path for DLLs.
5414     hardcode_libdir_flag_spec=' '
5415     allow_undefined_flag=unsupported
5416     # Tell ltmain to make .lib files, not .a files.
5417     libext=lib
5418     # FIXME: Setting linknames here is a bad hack.
5419     archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | sed -e '\''s/ -lc$//'\''` -link -dll~linknames='
5420     # The linker will automatically build a .lib file if we build a DLL.
5421     old_archive_from_new_cmds='true'
5422     # FIXME: Should let the user specify the lib program.
5423     old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
5424     fix_srcfile_path='`cygpath -w "$srcfile"`'
5425     ;;
5426
5427   darwin* | rhapsody*)
5428     case "$host_os" in
5429     rhapsody* | darwin1.[012])
5430       allow_undefined_flag='-undefined suppress'
5431       ;;
5432     *) # Darwin 1.3 on
5433       allow_undefined_flag='-flat_namespace -undefined suppress'
5434       ;;
5435     esac
5436     # FIXME: Relying on posixy $() will cause problems for
5437     #        cross-compilation, but unfortunately the echo tests do not
5438     #        yet detect zsh echo's removal of \ escapes.
5439     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'
5440     # We need to add '_' to the symbols in $export_symbols first
5441     #archive_expsym_cmds="$archive_cmds"' && strip -s $export_symbols'
5442     hardcode_direct=yes
5443     hardcode_shlibpath_var=no
5444     whole_archive_flag_spec='-all_load $convenience'
5445     ;;
5446
5447   freebsd1*)
5448     ld_shlibs=no
5449     ;;
5450
5451   # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
5452   # support.  Future versions do this automatically, but an explicit c++rt0.o
5453   # does not break anything, and helps significantly (at the cost of a little
5454   # extra space).
5455   freebsd2.2*)
5456     archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
5457     hardcode_libdir_flag_spec='-R$libdir'
5458     hardcode_direct=yes
5459     hardcode_shlibpath_var=no
5460     ;;
5461
5462   # Unfortunately, older versions of FreeBSD 2 do not have this feature.
5463   freebsd2*)
5464     archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
5465     hardcode_direct=yes
5466     hardcode_minus_L=yes
5467     hardcode_shlibpath_var=no
5468     ;;
5469
5470   # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
5471   freebsd*)
5472     archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
5473     hardcode_libdir_flag_spec='-R$libdir'
5474     hardcode_direct=yes
5475     hardcode_shlibpath_var=no
5476     ;;
5477
5478   hpux9* | hpux10* | hpux11*)
5479     case $host_os in
5480     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' ;;
5481     *) archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' ;;
5482     esac
5483     hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
5484     hardcode_libdir_separator=:
5485     hardcode_direct=yes
5486     hardcode_minus_L=yes # Not in the search PATH, but as the default
5487                          # location of the library.
5488     export_dynamic_flag_spec='${wl}-E'
5489     ;;
5490
5491   irix5* | irix6*)
5492     if test "$GCC" = yes; then
5493       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'
5494     else
5495       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'
5496     fi
5497     hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
5498     hardcode_libdir_separator=:
5499     link_all_deplibs=yes
5500     ;;
5501
5502   netbsd*)
5503     if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
5504       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
5505     else
5506       archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
5507     fi
5508     hardcode_libdir_flag_spec='-R$libdir'
5509     hardcode_direct=yes
5510     hardcode_shlibpath_var=no
5511     ;;
5512
5513   newsos6)
5514     archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5515     hardcode_direct=yes
5516     hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
5517     hardcode_libdir_separator=:
5518     hardcode_shlibpath_var=no
5519     ;;
5520
5521   openbsd*)
5522     hardcode_direct=yes
5523     hardcode_shlibpath_var=no
5524     if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5525       archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $linker_flags'
5526       hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
5527       export_dynamic_flag_spec='${wl}-E'
5528     else
5529       case "$host_os" in
5530       openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
5531         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
5532         hardcode_libdir_flag_spec='-R$libdir'
5533         ;;
5534       *)
5535         archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $linker_flags'
5536         hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
5537         ;;
5538       esac
5539     fi
5540     ;;
5541
5542   os2*)
5543     hardcode_libdir_flag_spec='-L$libdir'
5544     hardcode_minus_L=yes
5545     allow_undefined_flag=unsupported
5546     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'
5547     old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
5548     ;;
5549
5550   osf3*)
5551     if test "$GCC" = yes; then
5552       allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
5553       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'
5554     else
5555       allow_undefined_flag=' -expect_unresolved \*'
5556       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'
5557     fi
5558     hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
5559     hardcode_libdir_separator=:
5560     ;;
5561
5562   osf4* | osf5*)        # as osf3* with the addition of -msym flag
5563     if test "$GCC" = yes; then
5564       allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
5565       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'
5566       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
5567     else
5568       allow_undefined_flag=' -expect_unresolved \*'
5569       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'
5570       archive_expsym_cmds='for i in `cat $export_symbols`; do printf "-exported_symbol " >> $lib.exp; echo "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
5571       $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'
5572
5573       #Both c and cxx compiler support -rpath directly
5574       hardcode_libdir_flag_spec='-rpath $libdir'
5575     fi
5576     hardcode_libdir_separator=:
5577     ;;
5578
5579   sco3.2v5*)
5580     archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5581     hardcode_shlibpath_var=no
5582     runpath_var=LD_RUN_PATH
5583     hardcode_runpath_var=yes
5584     export_dynamic_flag_spec='${wl}-Bexport'
5585     ;;
5586
5587   solaris*)
5588     # gcc --version < 3.0 without binutils cannot create self contained
5589     # shared libraries reliably, requiring libgcc.a to resolve some of
5590     # the object symbols generated in some cases.  Libraries that use
5591     # assert need libgcc.a to resolve __eprintf, for example.  Linking
5592     # a copy of libgcc.a into every shared library to guarantee resolving
5593     # such symbols causes other problems:  According to Tim Van Holder
5594     # <tim.van.holder@pandora.be>, C++ libraries end up with a separate
5595     # (to the application) exception stack for one thing.
5596     no_undefined_flag=' -z defs'
5597     if test "$GCC" = yes; then
5598       case `$CC --version 2>/dev/null` in
5599       [12].*)
5600         cat <<EOF 1>&2
5601
5602 *** Warning: Releases of GCC earlier than version 3.0 cannot reliably
5603 *** create self contained shared libraries on Solaris systems, without
5604 *** introducing a dependency on libgcc.a.  Therefore, libtool is disabling
5605 *** -no-undefined support, which will at least allow you to build shared
5606 *** libraries.  However, you may find that when you link such libraries
5607 *** into an application without using GCC, you have to manually add
5608 *** \`gcc --print-libgcc-file-name\` to the link command.  We urge you to
5609 *** upgrade to a newer version of GCC.  Another option is to rebuild your
5610 *** current GCC to use the GNU linker from GNU binutils 2.9.1 or newer.
5611
5612 EOF
5613         no_undefined_flag=
5614         ;;
5615       esac
5616     fi
5617     # $CC -shared without GNU ld will not create a library from C++
5618     # object files and a static libstdc++, better avoid it by now
5619     archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
5620     archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
5621                 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
5622     hardcode_libdir_flag_spec='-R$libdir'
5623     hardcode_shlibpath_var=no
5624     case $host_os in
5625     solaris2.[0-5] | solaris2.[0-5].*) ;;
5626     *) # Supported since Solaris 2.6 (maybe 2.5.1?)
5627       whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
5628     esac
5629     link_all_deplibs=yes
5630     ;;
5631
5632   sunos4*)
5633     if test "x$host_vendor" = xsequent; then
5634       # Use $CC to link under sequent, because it throws in some extra .o
5635       # files that make .init and .fini sections work.
5636       archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
5637     else
5638       archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
5639     fi
5640     hardcode_libdir_flag_spec='-L$libdir'
5641     hardcode_direct=yes
5642     hardcode_minus_L=yes
5643     hardcode_shlibpath_var=no
5644     ;;
5645
5646   sysv4)
5647     if test "x$host_vendor" = xsno; then
5648       archive_cmds='$LD -G -Bsymbolic -h $soname -o $lib $libobjs $deplibs $linker_flags'
5649       hardcode_direct=yes # is this really true???
5650     else
5651       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5652       hardcode_direct=no #Motorola manual says yes, but my tests say they lie
5653     fi
5654     runpath_var='LD_RUN_PATH'
5655     hardcode_shlibpath_var=no
5656     ;;
5657
5658   sysv4.3*)
5659     archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5660     hardcode_shlibpath_var=no
5661     export_dynamic_flag_spec='-Bexport'
5662     ;;
5663
5664   sysv5*)
5665     no_undefined_flag=' -z text'
5666     # $CC -shared without GNU ld will not create a library from C++
5667     # object files and a static libstdc++, better avoid it by now
5668     archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
5669     archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
5670                 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
5671     hardcode_libdir_flag_spec=
5672     hardcode_shlibpath_var=no
5673     runpath_var='LD_RUN_PATH'
5674     ;;
5675
5676   uts4*)
5677     archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5678     hardcode_libdir_flag_spec='-L$libdir'
5679     hardcode_shlibpath_var=no
5680     ;;
5681
5682   dgux*)
5683     archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5684     hardcode_libdir_flag_spec='-L$libdir'
5685     hardcode_shlibpath_var=no
5686     ;;
5687
5688   sysv4*MP*)
5689     if test -d /usr/nec; then
5690       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5691       hardcode_shlibpath_var=no
5692       runpath_var=LD_RUN_PATH
5693       hardcode_runpath_var=yes
5694       ld_shlibs=yes
5695     fi
5696     ;;
5697
5698   sysv4.2uw2*)
5699     archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
5700     hardcode_direct=yes
5701     hardcode_minus_L=no
5702     hardcode_shlibpath_var=no
5703     hardcode_runpath_var=yes
5704     runpath_var=LD_RUN_PATH
5705     ;;
5706
5707   sysv5uw7* | unixware7*)
5708     no_undefined_flag='${wl}-z ${wl}text'
5709     if test "$GCC" = yes; then
5710       archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
5711     else
5712       archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
5713     fi
5714     runpath_var='LD_RUN_PATH'
5715     hardcode_shlibpath_var=no
5716     ;;
5717
5718   *)
5719     ld_shlibs=no
5720     ;;
5721   esac
5722 fi
5723 echo "$as_me:$LINENO: result: $ld_shlibs" >&5
5724 echo "${ECHO_T}$ld_shlibs" >&6
5725 test "$ld_shlibs" = no && can_build_shared=no
5726 ##
5727 ## END FIXME
5728
5729 ## FIXME: this should be a separate macro
5730 ##
5731 # Check hardcoding attributes.
5732 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
5733 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
5734 hardcode_action=
5735 if test -n "$hardcode_libdir_flag_spec" || \
5736    test -n "$runpath_var"; then
5737
5738   # We can hardcode non-existant directories.
5739   if test "$hardcode_direct" != no &&
5740      # If the only mechanism to avoid hardcoding is shlibpath_var, we
5741      # have to relink, otherwise we might link with an installed library
5742      # when we should be linking with a yet-to-be-installed one
5743      ## test "$hardcode_shlibpath_var" != no &&
5744      test "$hardcode_minus_L" != no; then
5745     # Linking always hardcodes the temporary library directory.
5746     hardcode_action=relink
5747   else
5748     # We can link without hardcoding, and we can hardcode nonexisting dirs.
5749     hardcode_action=immediate
5750   fi
5751 else
5752   # We cannot hardcode anything, or else we can only hardcode existing
5753   # directories.
5754   hardcode_action=unsupported
5755 fi
5756 echo "$as_me:$LINENO: result: $hardcode_action" >&5
5757 echo "${ECHO_T}$hardcode_action" >&6
5758 ##
5759 ## END FIXME
5760
5761 ## FIXME: this should be a separate macro
5762 ##
5763 striplib=
5764 old_striplib=
5765 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
5766 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
5767 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
5768   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
5769   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
5770   echo "$as_me:$LINENO: result: yes" >&5
5771 echo "${ECHO_T}yes" >&6
5772 else
5773   echo "$as_me:$LINENO: result: no" >&5
5774 echo "${ECHO_T}no" >&6
5775 fi
5776 ##
5777 ## END FIXME
5778
5779 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5780 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5781
5782 ## FIXME: this should be a separate macro
5783 ##
5784 # PORTME Fill in your ld.so characteristics
5785 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
5786 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
5787 library_names_spec=
5788 libname_spec='lib$name'
5789 soname_spec=
5790 postinstall_cmds=
5791 postuninstall_cmds=
5792 finish_cmds=
5793 finish_eval=
5794 shlibpath_var=
5795 shlibpath_overrides_runpath=unknown
5796 version_type=none
5797 dynamic_linker="$host_os ld.so"
5798 sys_lib_dlsearch_path_spec="/lib /usr/lib"
5799 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
5800
5801 case $host_os in
5802 aix3*)
5803   version_type=linux
5804   library_names_spec='${libname}${release}.so$versuffix $libname.a'
5805   shlibpath_var=LIBPATH
5806
5807   # AIX has no versioning support, so we append a major version to the name.
5808   soname_spec='${libname}${release}.so$major'
5809   ;;
5810
5811 aix4* | aix5*)
5812   version_type=linux
5813   if test "$host_cpu" = ia64; then
5814     # AIX 5 supports IA64
5815     library_names_spec='${libname}${release}.so$major ${libname}${release}.so$versuffix $libname.so'
5816     shlibpath_var=LD_LIBRARY_PATH
5817   else
5818     # With GCC up to 2.95.x, collect2 would create an import file
5819     # for dependence libraries.  The import file would start with
5820     # the line `#! .'.  This would cause the generated library to
5821     # depend on `.', always an invalid library.  This was fixed in
5822     # development snapshots of GCC prior to 3.0.
5823     case $host_os in
5824       aix4 | aix4.[01] | aix4.[01].*)
5825         if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
5826              echo ' yes '
5827              echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
5828           :
5829         else
5830           can_build_shared=no
5831         fi
5832         ;;
5833     esac
5834     # AIX (on Power*) has no versioning support, so currently we can
5835     # not hardcode correct soname into executable. Probably we can
5836     # add versioning support to collect2, so additional links can
5837     # be useful in future.
5838     if test "$aix_use_runtimelinking" = yes; then
5839       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
5840       # instead of lib<name>.a to let people know that these are not
5841       # typical AIX shared libraries.
5842       library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
5843     else
5844       # We preserve .a as extension for shared libraries through AIX4.2
5845       # and later when we are not doing run time linking.
5846       library_names_spec='${libname}${release}.a $libname.a'
5847       soname_spec='${libname}${release}.so$major'
5848     fi
5849     shlibpath_var=LIBPATH
5850   fi
5851   ;;
5852
5853 amigaos*)
5854   library_names_spec='$libname.ixlibrary $libname.a'
5855   # Create ${libname}_ixlibrary.a entries in /sys/libs.
5856   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'
5857   ;;
5858
5859 beos*)
5860   library_names_spec='${libname}.so'
5861   dynamic_linker="$host_os ld.so"
5862   shlibpath_var=LIBRARY_PATH
5863   ;;
5864
5865 bsdi4*)
5866   version_type=linux
5867   need_version=no
5868   library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
5869   soname_spec='${libname}${release}.so$major'
5870   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
5871   shlibpath_var=LD_LIBRARY_PATH
5872   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
5873   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
5874   export_dynamic_flag_spec=-rdynamic
5875   # the default ld.so.conf also contains /usr/contrib/lib and
5876   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
5877   # libtool to hard-code these into programs
5878   ;;
5879
5880 cygwin* | mingw* | pw32*)
5881   version_type=windows
5882   need_version=no
5883   need_lib_prefix=no
5884   case $GCC,$host_os in
5885   yes,cygwin*)
5886     library_names_spec='$libname.dll.a'
5887     soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll'
5888     postinstall_cmds='dlpath=`bash 2>&1 -c '\''. $dir/${file}i;echo \$dlname'\''`~
5889       dldir=$destdir/`dirname \$dlpath`~
5890       test -d \$dldir || mkdir -p \$dldir~
5891       $install_prog .libs/$dlname \$dldir/$dlname'
5892     postuninstall_cmds='dldll=`bash 2>&1 -c '\''. $file; echo \$dlname'\''`~
5893       dlpath=$dir/\$dldll~
5894        $rm \$dlpath'
5895     ;;
5896   yes,mingw*)
5897     library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll'
5898     sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | sed -e "s/^libraries://" -e "s/;/ /g"`
5899     ;;
5900   yes,pw32*)
5901     library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | sed -e 's/./-/g'`${versuffix}.dll'
5902     ;;
5903   *)
5904     library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll $libname.lib'
5905     ;;
5906   esac
5907   dynamic_linker='Win32 ld.exe'
5908   # FIXME: first we should search . and the directory the executable is in
5909   shlibpath_var=PATH
5910   ;;
5911
5912 darwin* | rhapsody*)
5913   dynamic_linker="$host_os dyld"
5914   version_type=darwin
5915   need_lib_prefix=no
5916   need_version=no
5917   # FIXME: Relying on posixy $() will cause problems for
5918   #        cross-compilation, but unfortunately the echo tests do not
5919   #        yet detect zsh echo's removal of \ escapes.
5920   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)'
5921   soname_spec='${libname}${release}${major}.$(test .$module = .yes && echo so || echo dylib)'
5922   shlibpath_overrides_runpath=yes
5923   shlibpath_var=DYLD_LIBRARY_PATH
5924   ;;
5925
5926 freebsd1*)
5927   dynamic_linker=no
5928   ;;
5929
5930 freebsd*)
5931   objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
5932   version_type=freebsd-$objformat
5933   case $version_type in
5934     freebsd-elf*)
5935       library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so $libname.so'
5936       need_version=no
5937       need_lib_prefix=no
5938       ;;
5939     freebsd-*)
5940       library_names_spec='${libname}${release}.so$versuffix $libname.so$versuffix'
5941       need_version=yes
5942       ;;
5943   esac
5944   shlibpath_var=LD_LIBRARY_PATH
5945   case $host_os in
5946   freebsd2*)
5947     shlibpath_overrides_runpath=yes
5948     ;;
5949   *)
5950     shlibpath_overrides_runpath=no
5951     hardcode_into_libs=yes
5952     ;;
5953   esac
5954   ;;
5955
5956 gnu*)
5957   version_type=linux
5958   need_lib_prefix=no
5959   need_version=no
5960   library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so${major} ${libname}.so'
5961   soname_spec='${libname}${release}.so$major'
5962   shlibpath_var=LD_LIBRARY_PATH
5963   hardcode_into_libs=yes
5964   ;;
5965
5966 hpux9* | hpux10* | hpux11*)
5967   # Give a soname corresponding to the major version so that dld.sl refuses to
5968   # link against other versions.
5969   dynamic_linker="$host_os dld.sl"
5970   version_type=sunos
5971   need_lib_prefix=no
5972   need_version=no
5973   shlibpath_var=SHLIB_PATH
5974   shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
5975   library_names_spec='${libname}${release}.sl$versuffix ${libname}${release}.sl$major $libname.sl'
5976   soname_spec='${libname}${release}.sl$major'
5977   # HP-UX runs *really* slowly unless shared libraries are mode 555.
5978   postinstall_cmds='chmod 555 $lib'
5979   ;;
5980
5981 irix5* | irix6*)
5982   version_type=irix
5983   need_lib_prefix=no
5984   need_version=no
5985   soname_spec='${libname}${release}.so$major'
5986   library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so $libname.so'
5987   case $host_os in
5988   irix5*)
5989     libsuff= shlibsuff=
5990     ;;
5991   *)
5992     case $LD in # libtool.m4 will add one of these switches to LD
5993     *-32|*"-32 ") libsuff= shlibsuff= libmagic=32-bit;;
5994     *-n32|*"-n32 ") libsuff=32 shlibsuff=N32 libmagic=N32;;
5995     *-64|*"-64 ") libsuff=64 shlibsuff=64 libmagic=64-bit;;
5996     *) libsuff= shlibsuff= libmagic=never-match;;
5997     esac
5998     ;;
5999   esac
6000   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
6001   shlibpath_overrides_runpath=no
6002   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
6003   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
6004   ;;
6005
6006 # No shared lib support for Linux oldld, aout, or coff.
6007 linux-gnuoldld* | linux-gnuaout* | linux-gnucoff*)
6008   dynamic_linker=no
6009   ;;
6010
6011 # This must be Linux ELF.
6012 linux-gnu*)
6013   version_type=linux
6014   need_lib_prefix=no
6015   need_version=no
6016   library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6017   soname_spec='${libname}${release}.so$major'
6018   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
6019   shlibpath_var=LD_LIBRARY_PATH
6020   shlibpath_overrides_runpath=no
6021   # This implies no fast_install, which is unacceptable.
6022   # Some rework will be needed to allow for fast_install
6023   # before this can be enabled.
6024   hardcode_into_libs=yes
6025
6026   # We used to test for /lib/ld.so.1 and disable shared libraries on
6027   # powerpc, because MkLinux only supported shared libraries with the
6028   # GNU dynamic linker.  Since this was broken with cross compilers,
6029   # most powerpc-linux boxes support dynamic linking these days and
6030   # people can always --disable-shared, the test was removed, and we
6031   # assume the GNU/Linux dynamic linker is in use.
6032   dynamic_linker='GNU/Linux ld.so'
6033   ;;
6034
6035 netbsd*)
6036   version_type=sunos
6037   need_lib_prefix=no
6038   need_version=no
6039   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6040     library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
6041     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
6042     dynamic_linker='NetBSD (a.out) ld.so'
6043   else
6044     library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so ${libname}.so'
6045     soname_spec='${libname}${release}.so$major'
6046     dynamic_linker='NetBSD ld.elf_so'
6047   fi
6048   shlibpath_var=LD_LIBRARY_PATH
6049   shlibpath_overrides_runpath=yes
6050   hardcode_into_libs=yes
6051   ;;
6052
6053 newsos6)
6054   version_type=linux
6055   library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6056   shlibpath_var=LD_LIBRARY_PATH
6057   shlibpath_overrides_runpath=yes
6058   ;;
6059
6060 openbsd*)
6061   version_type=sunos
6062   need_lib_prefix=no
6063   need_version=no
6064   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6065     case "$host_os" in
6066     openbsd2.[89] | openbsd2.[89].*)
6067       shlibpath_overrides_runpath=no
6068       ;;
6069     *)
6070       shlibpath_overrides_runpath=yes
6071       ;;
6072     esac
6073   else
6074     shlibpath_overrides_runpath=yes
6075   fi
6076   library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
6077   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
6078   shlibpath_var=LD_LIBRARY_PATH
6079   ;;
6080
6081 os2*)
6082   libname_spec='$name'
6083   need_lib_prefix=no
6084   library_names_spec='$libname.dll $libname.a'
6085   dynamic_linker='OS/2 ld.exe'
6086   shlibpath_var=LIBPATH
6087   ;;
6088
6089 osf3* | osf4* | osf5*)
6090   version_type=osf
6091   need_version=no
6092   soname_spec='${libname}${release}.so'
6093   library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so $libname.so'
6094   shlibpath_var=LD_LIBRARY_PATH
6095   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
6096   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
6097   ;;
6098
6099 sco3.2v5*)
6100   version_type=osf
6101   soname_spec='${libname}${release}.so$major'
6102   library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6103   shlibpath_var=LD_LIBRARY_PATH
6104   ;;
6105
6106 solaris*)
6107   version_type=linux
6108   need_lib_prefix=no
6109   need_version=no
6110   library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6111   soname_spec='${libname}${release}.so$major'
6112   shlibpath_var=LD_LIBRARY_PATH
6113   shlibpath_overrides_runpath=yes
6114   hardcode_into_libs=yes
6115   # ldd complains unless libraries are executable
6116   postinstall_cmds='chmod +x $lib'
6117   ;;
6118
6119 sunos4*)
6120   version_type=sunos
6121   library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
6122   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
6123   shlibpath_var=LD_LIBRARY_PATH
6124   shlibpath_overrides_runpath=yes
6125   if test "$with_gnu_ld" = yes; then
6126     need_lib_prefix=no
6127   fi
6128   need_version=yes
6129   ;;
6130
6131 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
6132   version_type=linux
6133   library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6134   soname_spec='${libname}${release}.so$major'
6135   shlibpath_var=LD_LIBRARY_PATH
6136   case $host_vendor in
6137     sni)
6138       shlibpath_overrides_runpath=no
6139       ;;
6140     motorola)
6141       need_lib_prefix=no
6142       need_version=no
6143       shlibpath_overrides_runpath=no
6144       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
6145       ;;
6146   esac
6147   ;;
6148
6149 uts4*)
6150   version_type=linux
6151   library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6152   soname_spec='${libname}${release}.so$major'
6153   shlibpath_var=LD_LIBRARY_PATH
6154   ;;
6155
6156 dgux*)
6157   version_type=linux
6158   need_lib_prefix=no
6159   need_version=no
6160   library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6161   soname_spec='${libname}${release}.so$major'
6162   shlibpath_var=LD_LIBRARY_PATH
6163   ;;
6164
6165 sysv4*MP*)
6166   if test -d /usr/nec ;then
6167     version_type=linux
6168     library_names_spec='$libname.so.$versuffix $libname.so.$major $libname.so'
6169     soname_spec='$libname.so.$major'
6170     shlibpath_var=LD_LIBRARY_PATH
6171   fi
6172   ;;
6173
6174 *)
6175   dynamic_linker=no
6176   ;;
6177 esac
6178 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
6179 echo "${ECHO_T}$dynamic_linker" >&6
6180 test "$dynamic_linker" = no && can_build_shared=no
6181 ##
6182 ## END FIXME
6183
6184 ## FIXME: this should be a separate macro
6185 ##
6186 # Report the final consequences.
6187 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
6188 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
6189 echo "$as_me:$LINENO: result: $can_build_shared" >&5
6190 echo "${ECHO_T}$can_build_shared" >&6
6191 ##
6192 ## END FIXME
6193
6194 ## FIXME: this should be a separate macro
6195 ##
6196 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
6197 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
6198 test "$can_build_shared" = "no" && enable_shared=no
6199
6200 # On AIX, shared libraries and static libraries use the same namespace, and
6201 # are all built from PIC.
6202 case "$host_os" in
6203 aix3*)
6204   test "$enable_shared" = yes && enable_static=no
6205   if test -n "$RANLIB"; then
6206     archive_cmds="$archive_cmds~\$RANLIB \$lib"
6207     postinstall_cmds='$RANLIB $lib'
6208   fi
6209   ;;
6210
6211 aix4*)
6212   if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
6213     test "$enable_shared" = yes && enable_static=no
6214   fi
6215   ;;
6216 esac
6217 echo "$as_me:$LINENO: result: $enable_shared" >&5
6218 echo "${ECHO_T}$enable_shared" >&6
6219 ##
6220 ## END FIXME
6221
6222 ## FIXME: this should be a separate macro
6223 ##
6224 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
6225 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
6226 # Make sure either enable_shared or enable_static is yes.
6227 test "$enable_shared" = yes || enable_static=yes
6228 echo "$as_me:$LINENO: result: $enable_static" >&5
6229 echo "${ECHO_T}$enable_static" >&6
6230 ##
6231 ## END FIXME
6232
6233 if test "$hardcode_action" = relink; then
6234   # Fast installation is not supported
6235   enable_fast_install=no
6236 elif test "$shlibpath_overrides_runpath" = yes ||
6237      test "$enable_shared" = no; then
6238   # Fast installation is not necessary
6239   enable_fast_install=needless
6240 fi
6241
6242 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
6243 if test "$GCC" = yes; then
6244   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
6245 fi
6246
6247 if test "x$enable_dlopen" != xyes; then
6248   enable_dlopen=unknown
6249   enable_dlopen_self=unknown
6250   enable_dlopen_self_static=unknown
6251 else
6252   lt_cv_dlopen=no
6253   lt_cv_dlopen_libs=
6254
6255   case $host_os in
6256   beos*)
6257     lt_cv_dlopen="load_add_on"
6258     lt_cv_dlopen_libs=
6259     lt_cv_dlopen_self=yes
6260     ;;
6261
6262   cygwin* | mingw* | pw32*)
6263     lt_cv_dlopen="LoadLibrary"
6264     lt_cv_dlopen_libs=
6265    ;;
6266
6267   *)
6268     echo "$as_me:$LINENO: checking for shl_load" >&5
6269 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
6270 if test "${ac_cv_func_shl_load+set}" = set; then
6271   echo $ECHO_N "(cached) $ECHO_C" >&6
6272 else
6273   cat >conftest.$ac_ext <<_ACEOF
6274 #line $LINENO "configure"
6275 #include "confdefs.h"
6276 /* System header to define __stub macros and hopefully few prototypes,
6277     which can conflict with char shl_load (); below.  */
6278 #include <assert.h>
6279 /* Override any gcc2 internal prototype to avoid an error.  */
6280 #ifdef __cplusplus
6281 extern "C"
6282 #endif
6283 /* We use char because int might match the return type of a gcc2
6284    builtin and then its argument prototype would still apply.  */
6285 char shl_load ();
6286 char (*f) ();
6287
6288 #ifdef F77_DUMMY_MAIN
6289 #  ifdef __cplusplus
6290      extern "C"
6291 #  endif
6292    int F77_DUMMY_MAIN() { return 1; }
6293 #endif
6294 int
6295 main ()
6296 {
6297 /* The GNU C library defines this for functions which it implements
6298     to always fail with ENOSYS.  Some functions are actually named
6299     something starting with __ and the normal name is an alias.  */
6300 #if defined (__stub_shl_load) || defined (__stub___shl_load)
6301 choke me
6302 #else
6303 f = shl_load;
6304 #endif
6305
6306   ;
6307   return 0;
6308 }
6309 _ACEOF
6310 rm -f conftest.$ac_objext conftest$ac_exeext
6311 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6312   (eval $ac_link) 2>&5
6313   ac_status=$?
6314   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6315   (exit $ac_status); } &&
6316          { ac_try='test -s conftest$ac_exeext'
6317   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6318   (eval $ac_try) 2>&5
6319   ac_status=$?
6320   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6321   (exit $ac_status); }; }; then
6322   ac_cv_func_shl_load=yes
6323 else
6324   echo "$as_me: failed program was:" >&5
6325 cat conftest.$ac_ext >&5
6326 ac_cv_func_shl_load=no
6327 fi
6328 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6329 fi
6330 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
6331 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
6332 if test $ac_cv_func_shl_load = yes; then
6333   lt_cv_dlopen="shl_load"
6334 else
6335   echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
6336 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
6337 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
6338   echo $ECHO_N "(cached) $ECHO_C" >&6
6339 else
6340   ac_check_lib_save_LIBS=$LIBS
6341 LIBS="-ldld  $LIBS"
6342 cat >conftest.$ac_ext <<_ACEOF
6343 #line $LINENO "configure"
6344 #include "confdefs.h"
6345
6346 /* Override any gcc2 internal prototype to avoid an error.  */
6347 #ifdef __cplusplus
6348 extern "C"
6349 #endif
6350 /* We use char because int might match the return type of a gcc2
6351    builtin and then its argument prototype would still apply.  */
6352 char shl_load ();
6353 #ifdef F77_DUMMY_MAIN
6354 #  ifdef __cplusplus
6355      extern "C"
6356 #  endif
6357    int F77_DUMMY_MAIN() { return 1; }
6358 #endif
6359 int
6360 main ()
6361 {
6362 shl_load ();
6363   ;
6364   return 0;
6365 }
6366 _ACEOF
6367 rm -f conftest.$ac_objext conftest$ac_exeext
6368 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6369   (eval $ac_link) 2>&5
6370   ac_status=$?
6371   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6372   (exit $ac_status); } &&
6373          { ac_try='test -s conftest$ac_exeext'
6374   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6375   (eval $ac_try) 2>&5
6376   ac_status=$?
6377   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6378   (exit $ac_status); }; }; then
6379   ac_cv_lib_dld_shl_load=yes
6380 else
6381   echo "$as_me: failed program was:" >&5
6382 cat conftest.$ac_ext >&5
6383 ac_cv_lib_dld_shl_load=no
6384 fi
6385 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6386 LIBS=$ac_check_lib_save_LIBS
6387 fi
6388 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
6389 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
6390 if test $ac_cv_lib_dld_shl_load = yes; then
6391   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
6392 else
6393   echo "$as_me:$LINENO: checking for dlopen" >&5
6394 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
6395 if test "${ac_cv_func_dlopen+set}" = set; then
6396   echo $ECHO_N "(cached) $ECHO_C" >&6
6397 else
6398   cat >conftest.$ac_ext <<_ACEOF
6399 #line $LINENO "configure"
6400 #include "confdefs.h"
6401 /* System header to define __stub macros and hopefully few prototypes,
6402     which can conflict with char dlopen (); below.  */
6403 #include <assert.h>
6404 /* Override any gcc2 internal prototype to avoid an error.  */
6405 #ifdef __cplusplus
6406 extern "C"
6407 #endif
6408 /* We use char because int might match the return type of a gcc2
6409    builtin and then its argument prototype would still apply.  */
6410 char dlopen ();
6411 char (*f) ();
6412
6413 #ifdef F77_DUMMY_MAIN
6414 #  ifdef __cplusplus
6415      extern "C"
6416 #  endif
6417    int F77_DUMMY_MAIN() { return 1; }
6418 #endif
6419 int
6420 main ()
6421 {
6422 /* The GNU C library defines this for functions which it implements
6423     to always fail with ENOSYS.  Some functions are actually named
6424     something starting with __ and the normal name is an alias.  */
6425 #if defined (__stub_dlopen) || defined (__stub___dlopen)
6426 choke me
6427 #else
6428 f = dlopen;
6429 #endif
6430
6431   ;
6432   return 0;
6433 }
6434 _ACEOF
6435 rm -f conftest.$ac_objext conftest$ac_exeext
6436 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6437   (eval $ac_link) 2>&5
6438   ac_status=$?
6439   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6440   (exit $ac_status); } &&
6441          { ac_try='test -s conftest$ac_exeext'
6442   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6443   (eval $ac_try) 2>&5
6444   ac_status=$?
6445   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6446   (exit $ac_status); }; }; then
6447   ac_cv_func_dlopen=yes
6448 else
6449   echo "$as_me: failed program was:" >&5
6450 cat conftest.$ac_ext >&5
6451 ac_cv_func_dlopen=no
6452 fi
6453 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6454 fi
6455 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
6456 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
6457 if test $ac_cv_func_dlopen = yes; then
6458   lt_cv_dlopen="dlopen"
6459 else
6460   echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
6461 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
6462 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
6463   echo $ECHO_N "(cached) $ECHO_C" >&6
6464 else
6465   ac_check_lib_save_LIBS=$LIBS
6466 LIBS="-ldl  $LIBS"
6467 cat >conftest.$ac_ext <<_ACEOF
6468 #line $LINENO "configure"
6469 #include "confdefs.h"
6470
6471 /* Override any gcc2 internal prototype to avoid an error.  */
6472 #ifdef __cplusplus
6473 extern "C"
6474 #endif
6475 /* We use char because int might match the return type of a gcc2
6476    builtin and then its argument prototype would still apply.  */
6477 char dlopen ();
6478 #ifdef F77_DUMMY_MAIN
6479 #  ifdef __cplusplus
6480      extern "C"
6481 #  endif
6482    int F77_DUMMY_MAIN() { return 1; }
6483 #endif
6484 int
6485 main ()
6486 {
6487 dlopen ();
6488   ;
6489   return 0;
6490 }
6491 _ACEOF
6492 rm -f conftest.$ac_objext conftest$ac_exeext
6493 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6494   (eval $ac_link) 2>&5
6495   ac_status=$?
6496   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6497   (exit $ac_status); } &&
6498          { ac_try='test -s conftest$ac_exeext'
6499   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6500   (eval $ac_try) 2>&5
6501   ac_status=$?
6502   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6503   (exit $ac_status); }; }; then
6504   ac_cv_lib_dl_dlopen=yes
6505 else
6506   echo "$as_me: failed program was:" >&5
6507 cat conftest.$ac_ext >&5
6508 ac_cv_lib_dl_dlopen=no
6509 fi
6510 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6511 LIBS=$ac_check_lib_save_LIBS
6512 fi
6513 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
6514 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
6515 if test $ac_cv_lib_dl_dlopen = yes; then
6516   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
6517 else
6518   echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
6519 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
6520 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
6521   echo $ECHO_N "(cached) $ECHO_C" >&6
6522 else
6523   ac_check_lib_save_LIBS=$LIBS
6524 LIBS="-lsvld  $LIBS"
6525 cat >conftest.$ac_ext <<_ACEOF
6526 #line $LINENO "configure"
6527 #include "confdefs.h"
6528
6529 /* Override any gcc2 internal prototype to avoid an error.  */
6530 #ifdef __cplusplus
6531 extern "C"
6532 #endif
6533 /* We use char because int might match the return type of a gcc2
6534    builtin and then its argument prototype would still apply.  */
6535 char dlopen ();
6536 #ifdef F77_DUMMY_MAIN
6537 #  ifdef __cplusplus
6538      extern "C"
6539 #  endif
6540    int F77_DUMMY_MAIN() { return 1; }
6541 #endif
6542 int
6543 main ()
6544 {
6545 dlopen ();
6546   ;
6547   return 0;
6548 }
6549 _ACEOF
6550 rm -f conftest.$ac_objext conftest$ac_exeext
6551 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6552   (eval $ac_link) 2>&5
6553   ac_status=$?
6554   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6555   (exit $ac_status); } &&
6556          { ac_try='test -s conftest$ac_exeext'
6557   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6558   (eval $ac_try) 2>&5
6559   ac_status=$?
6560   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6561   (exit $ac_status); }; }; then
6562   ac_cv_lib_svld_dlopen=yes
6563 else
6564   echo "$as_me: failed program was:" >&5
6565 cat conftest.$ac_ext >&5
6566 ac_cv_lib_svld_dlopen=no
6567 fi
6568 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6569 LIBS=$ac_check_lib_save_LIBS
6570 fi
6571 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
6572 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
6573 if test $ac_cv_lib_svld_dlopen = yes; then
6574   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
6575 else
6576   echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
6577 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
6578 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
6579   echo $ECHO_N "(cached) $ECHO_C" >&6
6580 else
6581   ac_check_lib_save_LIBS=$LIBS
6582 LIBS="-ldld  $LIBS"
6583 cat >conftest.$ac_ext <<_ACEOF
6584 #line $LINENO "configure"
6585 #include "confdefs.h"
6586
6587 /* Override any gcc2 internal prototype to avoid an error.  */
6588 #ifdef __cplusplus
6589 extern "C"
6590 #endif
6591 /* We use char because int might match the return type of a gcc2
6592    builtin and then its argument prototype would still apply.  */
6593 char dld_link ();
6594 #ifdef F77_DUMMY_MAIN
6595 #  ifdef __cplusplus
6596      extern "C"
6597 #  endif
6598    int F77_DUMMY_MAIN() { return 1; }
6599 #endif
6600 int
6601 main ()
6602 {
6603 dld_link ();
6604   ;
6605   return 0;
6606 }
6607 _ACEOF
6608 rm -f conftest.$ac_objext conftest$ac_exeext
6609 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6610   (eval $ac_link) 2>&5
6611   ac_status=$?
6612   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6613   (exit $ac_status); } &&
6614          { ac_try='test -s conftest$ac_exeext'
6615   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6616   (eval $ac_try) 2>&5
6617   ac_status=$?
6618   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6619   (exit $ac_status); }; }; then
6620   ac_cv_lib_dld_dld_link=yes
6621 else
6622   echo "$as_me: failed program was:" >&5
6623 cat conftest.$ac_ext >&5
6624 ac_cv_lib_dld_dld_link=no
6625 fi
6626 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6627 LIBS=$ac_check_lib_save_LIBS
6628 fi
6629 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
6630 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
6631 if test $ac_cv_lib_dld_dld_link = yes; then
6632   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
6633 fi
6634
6635
6636 fi
6637
6638
6639 fi
6640
6641
6642 fi
6643
6644
6645 fi
6646
6647
6648 fi
6649
6650     ;;
6651   esac
6652
6653   if test "x$lt_cv_dlopen" != xno; then
6654     enable_dlopen=yes
6655   else
6656     enable_dlopen=no
6657   fi
6658
6659   case $lt_cv_dlopen in
6660   dlopen)
6661     save_CPPFLAGS="$CPPFLAGS"
6662         test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
6663
6664     save_LDFLAGS="$LDFLAGS"
6665     eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
6666
6667     save_LIBS="$LIBS"
6668     LIBS="$lt_cv_dlopen_libs $LIBS"
6669
6670     echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
6671 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
6672 if test "${lt_cv_dlopen_self+set}" = set; then
6673   echo $ECHO_N "(cached) $ECHO_C" >&6
6674 else
6675           if test "$cross_compiling" = yes; then :
6676   lt_cv_dlopen_self=cross
6677 else
6678     lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
6679   lt_status=$lt_dlunknown
6680   cat > conftest.$ac_ext <<EOF
6681 #line 6681 "configure"
6682 #include "confdefs.h"
6683
6684 #if HAVE_DLFCN_H
6685 #include <dlfcn.h>
6686 #endif
6687
6688 #include <stdio.h>
6689
6690 #ifdef RTLD_GLOBAL
6691 #  define LT_DLGLOBAL           RTLD_GLOBAL
6692 #else
6693 #  ifdef DL_GLOBAL
6694 #    define LT_DLGLOBAL         DL_GLOBAL
6695 #  else
6696 #    define LT_DLGLOBAL         0
6697 #  endif
6698 #endif
6699
6700 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
6701    find out it does not work in some platform. */
6702 #ifndef LT_DLLAZY_OR_NOW
6703 #  ifdef RTLD_LAZY
6704 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
6705 #  else
6706 #    ifdef DL_LAZY
6707 #      define LT_DLLAZY_OR_NOW          DL_LAZY
6708 #    else
6709 #      ifdef RTLD_NOW
6710 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
6711 #      else
6712 #        ifdef DL_NOW
6713 #          define LT_DLLAZY_OR_NOW      DL_NOW
6714 #        else
6715 #          define LT_DLLAZY_OR_NOW      0
6716 #        endif
6717 #      endif
6718 #    endif
6719 #  endif
6720 #endif
6721
6722 #ifdef __cplusplus
6723 extern "C" void exit (int);
6724 #endif
6725
6726 void fnord() { int i=42;}
6727 int main ()
6728 {
6729   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
6730   int status = $lt_dlunknown;
6731
6732   if (self)
6733     {
6734       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
6735       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
6736       /* dlclose (self); */
6737     }
6738
6739     exit (status);
6740 }
6741 EOF
6742   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6743   (eval $ac_link) 2>&5
6744   ac_status=$?
6745   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6746   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
6747     (./conftest; exit; ) 2>/dev/null
6748     lt_status=$?
6749     case x$lt_status in
6750       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
6751       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
6752       x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
6753     esac
6754   else :
6755     # compilation failed
6756     lt_cv_dlopen_self=no
6757   fi
6758 fi
6759 rm -fr conftest*
6760
6761
6762 fi
6763 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
6764 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
6765
6766     if test "x$lt_cv_dlopen_self" = xyes; then
6767       LDFLAGS="$LDFLAGS $link_static_flag"
6768       echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
6769 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
6770 if test "${lt_cv_dlopen_self_static+set}" = set; then
6771   echo $ECHO_N "(cached) $ECHO_C" >&6
6772 else
6773           if test "$cross_compiling" = yes; then :
6774   lt_cv_dlopen_self_static=cross
6775 else
6776     lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
6777   lt_status=$lt_dlunknown
6778   cat > conftest.$ac_ext <<EOF
6779 #line 6779 "configure"
6780 #include "confdefs.h"
6781
6782 #if HAVE_DLFCN_H
6783 #include <dlfcn.h>
6784 #endif
6785
6786 #include <stdio.h>
6787
6788 #ifdef RTLD_GLOBAL
6789 #  define LT_DLGLOBAL           RTLD_GLOBAL
6790 #else
6791 #  ifdef DL_GLOBAL
6792 #    define LT_DLGLOBAL         DL_GLOBAL
6793 #  else
6794 #    define LT_DLGLOBAL         0
6795 #  endif
6796 #endif
6797
6798 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
6799    find out it does not work in some platform. */
6800 #ifndef LT_DLLAZY_OR_NOW
6801 #  ifdef RTLD_LAZY
6802 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
6803 #  else
6804 #    ifdef DL_LAZY
6805 #      define LT_DLLAZY_OR_NOW          DL_LAZY
6806 #    else
6807 #      ifdef RTLD_NOW
6808 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
6809 #      else
6810 #        ifdef DL_NOW
6811 #          define LT_DLLAZY_OR_NOW      DL_NOW
6812 #        else
6813 #          define LT_DLLAZY_OR_NOW      0
6814 #        endif
6815 #      endif
6816 #    endif
6817 #  endif
6818 #endif
6819
6820 #ifdef __cplusplus
6821 extern "C" void exit (int);
6822 #endif
6823
6824 void fnord() { int i=42;}
6825 int main ()
6826 {
6827   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
6828   int status = $lt_dlunknown;
6829
6830   if (self)
6831     {
6832       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
6833       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
6834       /* dlclose (self); */
6835     }
6836
6837     exit (status);
6838 }
6839 EOF
6840   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6841   (eval $ac_link) 2>&5
6842   ac_status=$?
6843   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6844   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
6845     (./conftest; exit; ) 2>/dev/null
6846     lt_status=$?
6847     case x$lt_status in
6848       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
6849       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
6850       x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
6851     esac
6852   else :
6853     # compilation failed
6854     lt_cv_dlopen_self_static=no
6855   fi
6856 fi
6857 rm -fr conftest*
6858
6859
6860 fi
6861 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
6862 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
6863     fi
6864
6865     CPPFLAGS="$save_CPPFLAGS"
6866     LDFLAGS="$save_LDFLAGS"
6867     LIBS="$save_LIBS"
6868     ;;
6869   esac
6870
6871   case $lt_cv_dlopen_self in
6872   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
6873   *) enable_dlopen_self=unknown ;;
6874   esac
6875
6876   case $lt_cv_dlopen_self_static in
6877   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
6878   *) enable_dlopen_self_static=unknown ;;
6879   esac
6880 fi
6881
6882
6883 ## FIXME: this should be a separate macro
6884 ##
6885 if test "$enable_shared" = yes && test "$GCC" = yes; then
6886   case $archive_cmds in
6887   *'~'*)
6888     # FIXME: we may have to deal with multi-command sequences.
6889     ;;
6890   '$CC '*)
6891     # Test whether the compiler implicitly links with -lc since on some
6892     # systems, -lgcc has to come before -lc. If gcc already passes -lc
6893     # to ld, don't add -lc before -lgcc.
6894     echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
6895 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
6896     if test "${lt_cv_archive_cmds_need_lc+set}" = set; then
6897   echo $ECHO_N "(cached) $ECHO_C" >&6
6898 else
6899   $rm conftest*
6900     echo 'static int dummy;' > conftest.$ac_ext
6901
6902     if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6903   (eval $ac_compile) 2>&5
6904   ac_status=$?
6905   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6906   (exit $ac_status); }; then
6907       soname=conftest
6908       lib=conftest
6909       libobjs=conftest.$ac_objext
6910       deplibs=
6911       wl=$lt_cv_prog_cc_wl
6912       compiler_flags=-v
6913       linker_flags=-v
6914       verstring=
6915       output_objdir=.
6916       libname=conftest
6917       save_allow_undefined_flag=$allow_undefined_flag
6918       allow_undefined_flag=
6919       if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
6920   (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
6921   ac_status=$?
6922   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6923   (exit $ac_status); }
6924       then
6925         lt_cv_archive_cmds_need_lc=no
6926       else
6927         lt_cv_archive_cmds_need_lc=yes
6928       fi
6929       allow_undefined_flag=$save_allow_undefined_flag
6930     else
6931       cat conftest.err 1>&5
6932     fi
6933 fi
6934
6935     echo "$as_me:$LINENO: result: $lt_cv_archive_cmds_need_lc" >&5
6936 echo "${ECHO_T}$lt_cv_archive_cmds_need_lc" >&6
6937     ;;
6938   esac
6939 fi
6940 need_lc=${lt_cv_archive_cmds_need_lc-yes}
6941 ##
6942 ## END FIXME
6943
6944 ## FIXME: this should be a separate macro
6945 ##
6946 # The second clause should only fire when bootstrapping the
6947 # libtool distribution, otherwise you forgot to ship ltmain.sh
6948 # with your package, and you will get complaints that there are
6949 # no rules to generate ltmain.sh.
6950 if test -f "$ltmain"; then
6951   :
6952 else
6953   # If there is no Makefile yet, we rely on a make rule to execute
6954   # `config.status --recheck' to rerun these tests and create the
6955   # libtool script then.
6956   test -f Makefile && make "$ltmain"
6957 fi
6958
6959 if test -f "$ltmain"; then
6960   trap "$rm \"${ofile}T\"; exit 1" 1 2 15
6961   $rm -f "${ofile}T"
6962
6963   echo creating $ofile
6964
6965   # Now quote all the things that may contain metacharacters while being
6966   # careful not to overquote the AC_SUBSTed values.  We take copies of the
6967   # variables and quote the copies for generation of the libtool script.
6968   for var in echo old_CC old_CFLAGS \
6969     AR AR_FLAGS CC LD LN_S NM SHELL \
6970     reload_flag reload_cmds wl \
6971     pic_flag link_static_flag no_builtin_flag export_dynamic_flag_spec \
6972     thread_safe_flag_spec whole_archive_flag_spec libname_spec \
6973     library_names_spec soname_spec \
6974     RANLIB old_archive_cmds old_archive_from_new_cmds old_postinstall_cmds \
6975     old_postuninstall_cmds archive_cmds archive_expsym_cmds postinstall_cmds \
6976     postuninstall_cmds extract_expsyms_cmds old_archive_from_expsyms_cmds \
6977     old_striplib striplib file_magic_cmd export_symbols_cmds \
6978     deplibs_check_method allow_undefined_flag no_undefined_flag \
6979     finish_cmds finish_eval global_symbol_pipe global_symbol_to_cdecl \
6980     global_symbol_to_c_name_address \
6981     hardcode_libdir_flag_spec hardcode_libdir_separator  \
6982     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
6983     compiler_c_o compiler_o_lo need_locks exclude_expsyms include_expsyms; do
6984
6985     case $var in
6986     reload_cmds | old_archive_cmds | old_archive_from_new_cmds | \
6987     old_postinstall_cmds | old_postuninstall_cmds | \
6988     export_symbols_cmds | archive_cmds | archive_expsym_cmds | \
6989     extract_expsyms_cmds | old_archive_from_expsyms_cmds | \
6990     postinstall_cmds | postuninstall_cmds | \
6991     finish_cmds | sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
6992       # Double-quote double-evaled strings.
6993       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
6994       ;;
6995     *)
6996       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
6997       ;;
6998     esac
6999   done
7000
7001   cat <<__EOF__ > "${ofile}T"
7002 #! $SHELL
7003
7004 # `$echo "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
7005 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
7006 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
7007 #
7008 # Copyright (C) 1996-2000 Free Software Foundation, Inc.
7009 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
7010 #
7011 # This program is free software; you can redistribute it and/or modify
7012 # it under the terms of the GNU General Public License as published by
7013 # the Free Software Foundation; either version 2 of the License, or
7014 # (at your option) any later version.
7015 #
7016 # This program is distributed in the hope that it will be useful, but
7017 # WITHOUT ANY WARRANTY; without even the implied warranty of
7018 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
7019 # General Public License for more details.
7020 #
7021 # You should have received a copy of the GNU General Public License
7022 # along with this program; if not, write to the Free Software
7023 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
7024 #
7025 # As a special exception to the GNU General Public License, if you
7026 # distribute this file as part of a program that contains a
7027 # configuration script generated by Autoconf, you may include it under
7028 # the same distribution terms that you use for the rest of that program.
7029
7030 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
7031 Xsed="sed -e s/^X//"
7032
7033 # The HP-UX ksh and POSIX shell print the target directory to stdout
7034 # if CDPATH is set.
7035 if test "X\${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
7036
7037 # ### BEGIN LIBTOOL CONFIG
7038
7039 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
7040
7041 # Shell to use when invoking shell scripts.
7042 SHELL=$lt_SHELL
7043
7044 # Whether or not to build shared libraries.
7045 build_libtool_libs=$enable_shared
7046
7047 # Whether or not to build static libraries.
7048 build_old_libs=$enable_static
7049
7050 # Whether or not to add -lc for building shared libraries.
7051 build_libtool_need_lc=$need_lc
7052
7053 # Whether or not to optimize for fast installation.
7054 fast_install=$enable_fast_install
7055
7056 # The host system.
7057 host_alias=$host_alias
7058 host=$host
7059
7060 # An echo program that does not interpret backslashes.
7061 echo=$lt_echo
7062
7063 # The archiver.
7064 AR=$lt_AR
7065 AR_FLAGS=$lt_AR_FLAGS
7066
7067 # The default C compiler.
7068 CC=$lt_CC
7069
7070 # Is the compiler the GNU C compiler?
7071 with_gcc=$GCC
7072
7073 # The linker used to build libraries.
7074 LD=$lt_LD
7075
7076 # Whether we need hard or soft links.
7077 LN_S=$lt_LN_S
7078
7079 # A BSD-compatible nm program.
7080 NM=$lt_NM
7081
7082 # A symbol stripping program
7083 STRIP=$STRIP
7084
7085 # Used to examine libraries when file_magic_cmd begins "file"
7086 MAGIC_CMD=$MAGIC_CMD
7087
7088 # Used on cygwin: DLL creation program.
7089 DLLTOOL="$DLLTOOL"
7090
7091 # Used on cygwin: object dumper.
7092 OBJDUMP="$OBJDUMP"
7093
7094 # Used on cygwin: assembler.
7095 AS="$AS"
7096
7097 # The name of the directory that contains temporary libtool files.
7098 objdir=$objdir
7099
7100 # How to create reloadable object files.
7101 reload_flag=$lt_reload_flag
7102 reload_cmds=$lt_reload_cmds
7103
7104 # How to pass a linker flag through the compiler.
7105 wl=$lt_wl
7106
7107 # Object file suffix (normally "o").
7108 objext="$ac_objext"
7109
7110 # Old archive suffix (normally "a").
7111 libext="$libext"
7112
7113 # Executable file suffix (normally "").
7114 exeext="$exeext"
7115
7116 # Additional compiler flags for building library objects.
7117 pic_flag=$lt_pic_flag
7118 pic_mode=$pic_mode
7119
7120 # Does compiler simultaneously support -c and -o options?
7121 compiler_c_o=$lt_compiler_c_o
7122
7123 # Can we write directly to a .lo ?
7124 compiler_o_lo=$lt_compiler_o_lo
7125
7126 # Must we lock files when doing compilation ?
7127 need_locks=$lt_need_locks
7128
7129 # Do we need the lib prefix for modules?
7130 need_lib_prefix=$need_lib_prefix
7131
7132 # Do we need a version for libraries?
7133 need_version=$need_version
7134
7135 # Whether dlopen is supported.
7136 dlopen_support=$enable_dlopen
7137
7138 # Whether dlopen of programs is supported.
7139 dlopen_self=$enable_dlopen_self
7140
7141 # Whether dlopen of statically linked programs is supported.
7142 dlopen_self_static=$enable_dlopen_self_static
7143
7144 # Compiler flag to prevent dynamic linking.
7145 link_static_flag=$lt_link_static_flag
7146
7147 # Compiler flag to turn off builtin functions.
7148 no_builtin_flag=$lt_no_builtin_flag
7149
7150 # Compiler flag to allow reflexive dlopens.
7151 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
7152
7153 # Compiler flag to generate shared objects directly from archives.
7154 whole_archive_flag_spec=$lt_whole_archive_flag_spec
7155
7156 # Compiler flag to generate thread-safe objects.
7157 thread_safe_flag_spec=$lt_thread_safe_flag_spec
7158
7159 # Library versioning type.
7160 version_type=$version_type
7161
7162 # Format of library name prefix.
7163 libname_spec=$lt_libname_spec
7164
7165 # List of archive names.  First name is the real one, the rest are links.
7166 # The last name is the one that the linker finds with -lNAME.
7167 library_names_spec=$lt_library_names_spec
7168
7169 # The coded name of the library, if different from the real name.
7170 soname_spec=$lt_soname_spec
7171
7172 # Commands used to build and install an old-style archive.
7173 RANLIB=$lt_RANLIB
7174 old_archive_cmds=$lt_old_archive_cmds
7175 old_postinstall_cmds=$lt_old_postinstall_cmds
7176 old_postuninstall_cmds=$lt_old_postuninstall_cmds
7177
7178 # Create an old-style archive from a shared archive.
7179 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
7180
7181 # Create a temporary old-style archive to link instead of a shared archive.
7182 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
7183
7184 # Commands used to build and install a shared archive.
7185 archive_cmds=$lt_archive_cmds
7186 archive_expsym_cmds=$lt_archive_expsym_cmds
7187 postinstall_cmds=$lt_postinstall_cmds
7188 postuninstall_cmds=$lt_postuninstall_cmds
7189
7190 # Commands to strip libraries.
7191 old_striplib=$lt_old_striplib
7192 striplib=$lt_striplib
7193
7194 # Method to check whether dependent libraries are shared objects.
7195 deplibs_check_method=$lt_deplibs_check_method
7196
7197 # Command to use when deplibs_check_method == file_magic.
7198 file_magic_cmd=$lt_file_magic_cmd
7199
7200 # Flag that allows shared libraries with undefined symbols to be built.
7201 allow_undefined_flag=$lt_allow_undefined_flag
7202
7203 # Flag that forces no undefined symbols.
7204 no_undefined_flag=$lt_no_undefined_flag
7205
7206 # Commands used to finish a libtool library installation in a directory.
7207 finish_cmds=$lt_finish_cmds
7208
7209 # Same as above, but a single script fragment to be evaled but not shown.
7210 finish_eval=$lt_finish_eval
7211
7212 # Take the output of nm and produce a listing of raw symbols and C names.
7213 global_symbol_pipe=$lt_global_symbol_pipe
7214
7215 # Transform the output of nm in a proper C declaration
7216 global_symbol_to_cdecl=$lt_global_symbol_to_cdecl
7217
7218 # Transform the output of nm in a C name address pair
7219 global_symbol_to_c_name_address=$lt_global_symbol_to_c_name_address
7220
7221 # This is the shared library runtime path variable.
7222 runpath_var=$runpath_var
7223
7224 # This is the shared library path variable.
7225 shlibpath_var=$shlibpath_var
7226
7227 # Is shlibpath searched before the hard-coded library search path?
7228 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
7229
7230 # How to hardcode a shared library path into an executable.
7231 hardcode_action=$hardcode_action
7232
7233 # Whether we should hardcode library paths into libraries.
7234 hardcode_into_libs=$hardcode_into_libs
7235
7236 # Flag to hardcode \$libdir into a binary during linking.
7237 # This must work even if \$libdir does not exist.
7238 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
7239
7240 # Whether we need a single -rpath flag with a separated argument.
7241 hardcode_libdir_separator=$lt_hardcode_libdir_separator
7242
7243 # Set to yes if using DIR/libNAME.so during linking hardcodes DIR into the
7244 # resulting binary.
7245 hardcode_direct=$hardcode_direct
7246
7247 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
7248 # resulting binary.
7249 hardcode_minus_L=$hardcode_minus_L
7250
7251 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
7252 # the resulting binary.
7253 hardcode_shlibpath_var=$hardcode_shlibpath_var
7254
7255 # Variables whose values should be saved in libtool wrapper scripts and
7256 # restored at relink time.
7257 variables_saved_for_relink="$variables_saved_for_relink"
7258
7259 # Whether libtool must link a program against all its dependency libraries.
7260 link_all_deplibs=$link_all_deplibs
7261
7262 # Compile-time system search path for libraries
7263 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
7264
7265 # Run-time system search path for libraries
7266 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
7267
7268 # Fix the shell variable \$srcfile for the compiler.
7269 fix_srcfile_path="$fix_srcfile_path"
7270
7271 # Set to yes if exported symbols are required.
7272 always_export_symbols=$always_export_symbols
7273
7274 # The commands to list exported symbols.
7275 export_symbols_cmds=$lt_export_symbols_cmds
7276
7277 # The commands to extract the exported symbol list from a shared archive.
7278 extract_expsyms_cmds=$lt_extract_expsyms_cmds
7279
7280 # Symbols that should not be listed in the preloaded symbols.
7281 exclude_expsyms=$lt_exclude_expsyms
7282
7283 # Symbols that must always be exported.
7284 include_expsyms=$lt_include_expsyms
7285
7286 # ### END LIBTOOL CONFIG
7287
7288 __EOF__
7289
7290   case $host_os in
7291   aix3*)
7292     cat <<\EOF >> "${ofile}T"
7293
7294 # AIX sometimes has problems with the GCC collect2 program.  For some
7295 # reason, if we set the COLLECT_NAMES environment variable, the problems
7296 # vanish in a puff of smoke.
7297 if test "X${COLLECT_NAMES+set}" != Xset; then
7298   COLLECT_NAMES=
7299   export COLLECT_NAMES
7300 fi
7301 EOF
7302     ;;
7303   esac
7304
7305   case $host_os in
7306   cygwin* | mingw* | pw32* | os2*)
7307     cat <<'EOF' >> "${ofile}T"
7308       # This is a source program that is used to create dlls on Windows
7309       # Don't remove nor modify the starting and closing comments
7310 # /* ltdll.c starts here */
7311 # #define WIN32_LEAN_AND_MEAN
7312 # #include <windows.h>
7313 # #undef WIN32_LEAN_AND_MEAN
7314 # #include <stdio.h>
7315 #
7316 # #ifndef __CYGWIN__
7317 # #  ifdef __CYGWIN32__
7318 # #    define __CYGWIN__ __CYGWIN32__
7319 # #  endif
7320 # #endif
7321 #
7322 # #ifdef __cplusplus
7323 # extern "C" {
7324 # #endif
7325 # BOOL APIENTRY DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved);
7326 # #ifdef __cplusplus
7327 # }
7328 # #endif
7329 #
7330 # #ifdef __CYGWIN__
7331 # #include <cygwin/cygwin_dll.h>
7332 # DECLARE_CYGWIN_DLL( DllMain );
7333 # #endif
7334 # HINSTANCE __hDllInstance_base;
7335 #
7336 # BOOL APIENTRY
7337 # DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved)
7338 # {
7339 #   __hDllInstance_base = hInst;
7340 #   return TRUE;
7341 # }
7342 # /* ltdll.c ends here */
7343         # This is a source program that is used to create import libraries
7344         # on Windows for dlls which lack them. Don't remove nor modify the
7345         # starting and closing comments
7346 # /* impgen.c starts here */
7347 # /*   Copyright (C) 1999-2000 Free Software Foundation, Inc.
7348 #
7349 #  This file is part of GNU libtool.
7350 #
7351 #  This program is free software; you can redistribute it and/or modify
7352 #  it under the terms of the GNU General Public License as published by
7353 #  the Free Software Foundation; either version 2 of the License, or
7354 #  (at your option) any later version.
7355 #
7356 #  This program is distributed in the hope that it will be useful,
7357 #  but WITHOUT ANY WARRANTY; without even the implied warranty of
7358 #  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
7359 #  GNU General Public License for more details.
7360 #
7361 #  You should have received a copy of the GNU General Public License
7362 #  along with this program; if not, write to the Free Software
7363 #  Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
7364 #  */
7365 #
7366 # #include <stdio.h>            /* for printf() */
7367 # #include <unistd.h>           /* for open(), lseek(), read() */
7368 # #include <fcntl.h>            /* for O_RDONLY, O_BINARY */
7369 # #include <string.h>           /* for strdup() */
7370 #
7371 # /* O_BINARY isn't required (or even defined sometimes) under Unix */
7372 # #ifndef O_BINARY
7373 # #define O_BINARY 0
7374 # #endif
7375 #
7376 # static unsigned int
7377 # pe_get16 (fd, offset)
7378 #      int fd;
7379 #      int offset;
7380 # {
7381 #   unsigned char b[2];
7382 #   lseek (fd, offset, SEEK_SET);
7383 #   read (fd, b, 2);
7384 #   return b[0] + (b[1]<<8);
7385 # }
7386 #
7387 # static unsigned int
7388 # pe_get32 (fd, offset)
7389 #     int fd;
7390 #     int offset;
7391 # {
7392 #   unsigned char b[4];
7393 #   lseek (fd, offset, SEEK_SET);
7394 #   read (fd, b, 4);
7395 #   return b[0] + (b[1]<<8) + (b[2]<<16) + (b[3]<<24);
7396 # }
7397 #
7398 # static unsigned int
7399 # pe_as32 (ptr)
7400 #      void *ptr;
7401 # {
7402 #   unsigned char *b = ptr;
7403 #   return b[0] + (b[1]<<8) + (b[2]<<16) + (b[3]<<24);
7404 # }
7405 #
7406 # int
7407 # main (argc, argv)
7408 #     int argc;
7409 #     char *argv[];
7410 # {
7411 #     int dll;
7412 #     unsigned long pe_header_offset, opthdr_ofs, num_entries, i;
7413 #     unsigned long export_rva, export_size, nsections, secptr, expptr;
7414 #     unsigned long name_rvas, nexp;
7415 #     unsigned char *expdata, *erva;
7416 #     char *filename, *dll_name;
7417 #
7418 #     filename = argv[1];
7419 #
7420 #     dll = open(filename, O_RDONLY|O_BINARY);
7421 #     if (dll < 1)
7422 #       return 1;
7423 #
7424 #     dll_name = filename;
7425 #
7426 #     for (i=0; filename[i]; i++)
7427 #       if (filename[i] == '/' || filename[i] == '\\'  || filename[i] == ':')
7428 #           dll_name = filename + i +1;
7429 #
7430 #     pe_header_offset = pe_get32 (dll, 0x3c);
7431 #     opthdr_ofs = pe_header_offset + 4 + 20;
7432 #     num_entries = pe_get32 (dll, opthdr_ofs + 92);
7433 #
7434 #     if (num_entries < 1) /* no exports */
7435 #       return 1;
7436 #
7437 #     export_rva = pe_get32 (dll, opthdr_ofs + 96);
7438 #     export_size = pe_get32 (dll, opthdr_ofs + 100);
7439 #     nsections = pe_get16 (dll, pe_header_offset + 4 +2);
7440 #     secptr = (pe_header_offset + 4 + 20 +
7441 #             pe_get16 (dll, pe_header_offset + 4 + 16));
7442 #
7443 #     expptr = 0;
7444 #     for (i = 0; i < nsections; i++)
7445 #     {
7446 #       char sname[8];
7447 #       unsigned long secptr1 = secptr + 40 * i;
7448 #       unsigned long vaddr = pe_get32 (dll, secptr1 + 12);
7449 #       unsigned long vsize = pe_get32 (dll, secptr1 + 16);
7450 #       unsigned long fptr = pe_get32 (dll, secptr1 + 20);
7451 #       lseek(dll, secptr1, SEEK_SET);
7452 #       read(dll, sname, 8);
7453 #       if (vaddr <= export_rva && vaddr+vsize > export_rva)
7454 #       {
7455 #           expptr = fptr + (export_rva - vaddr);
7456 #           if (export_rva + export_size > vaddr + vsize)
7457 #               export_size = vsize - (export_rva - vaddr);
7458 #           break;
7459 #       }
7460 #     }
7461 #
7462 #     expdata = (unsigned char*)malloc(export_size);
7463 #     lseek (dll, expptr, SEEK_SET);
7464 #     read (dll, expdata, export_size);
7465 #     erva = expdata - export_rva;
7466 #
7467 #     nexp = pe_as32 (expdata+24);
7468 #     name_rvas = pe_as32 (expdata+32);
7469 #
7470 #     printf ("EXPORTS\n");
7471 #     for (i = 0; i<nexp; i++)
7472 #     {
7473 #       unsigned long name_rva = pe_as32 (erva+name_rvas+i*4);
7474 #       printf ("\t%s @ %ld ;\n", erva+name_rva, 1+ i);
7475 #     }
7476 #
7477 #     return 0;
7478 # }
7479 # /* impgen.c ends here */
7480
7481 EOF
7482     ;;
7483   esac
7484
7485   # We use sed instead of cat because bash on DJGPP gets confused if
7486   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
7487   # text mode, it properly converts lines to CR/LF.  This bash problem
7488   # is reportedly fixed, but why not run on old versions too?
7489   sed '$q' "$ltmain" >> "${ofile}T" || (rm -f "${ofile}T"; exit 1)
7490
7491   mv -f "${ofile}T" "$ofile" || \
7492     (rm -f "$ofile" && cp "${ofile}T" "$ofile" && rm -f "${ofile}T")
7493   chmod +x "$ofile"
7494 fi
7495 ##
7496 ## END FIXME
7497
7498
7499
7500
7501
7502 # This can be used to rebuild libtool when needed
7503 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
7504
7505 # Always use our own libtool.
7506 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7507
7508 # Prevent multiple expansion
7509
7510
7511
7512 # Extract the first word of "ar", so it can be a program name with args.
7513 set dummy ar; ac_word=$2
7514 echo "$as_me:$LINENO: checking for $ac_word" >&5
7515 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7516 if test "${ac_cv_path_AR+set}" = set; then
7517   echo $ECHO_N "(cached) $ECHO_C" >&6
7518 else
7519   case $AR in
7520   [\\/]* | ?:[\\/]*)
7521   ac_cv_path_AR="$AR" # Let the user override the test with a path.
7522   ;;
7523   *)
7524   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7525 for as_dir in $PATH
7526 do
7527   IFS=$as_save_IFS
7528   test -z "$as_dir" && as_dir=.
7529   for ac_exec_ext in '' $ac_executable_extensions; do
7530   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7531     ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext"
7532     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7533     break 2
7534   fi
7535 done
7536 done
7537
7538   ;;
7539 esac
7540 fi
7541 AR=$ac_cv_path_AR
7542
7543 if test -n "$AR"; then
7544   echo "$as_me:$LINENO: result: $AR" >&5
7545 echo "${ECHO_T}$AR" >&6
7546 else
7547   echo "$as_me:$LINENO: result: no" >&5
7548 echo "${ECHO_T}no" >&6
7549 fi
7550
7551 # Extract the first word of "sed", so it can be a program name with args.
7552 set dummy sed; ac_word=$2
7553 echo "$as_me:$LINENO: checking for $ac_word" >&5
7554 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7555 if test "${ac_cv_path_SED+set}" = set; then
7556   echo $ECHO_N "(cached) $ECHO_C" >&6
7557 else
7558   case $SED in
7559   [\\/]* | ?:[\\/]*)
7560   ac_cv_path_SED="$SED" # Let the user override the test with a path.
7561   ;;
7562   *)
7563   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7564 for as_dir in $PATH
7565 do
7566   IFS=$as_save_IFS
7567   test -z "$as_dir" && as_dir=.
7568   for ac_exec_ext in '' $ac_executable_extensions; do
7569   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7570     ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
7571     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7572     break 2
7573   fi
7574 done
7575 done
7576
7577   ;;
7578 esac
7579 fi
7580 SED=$ac_cv_path_SED
7581
7582 if test -n "$SED"; then
7583   echo "$as_me:$LINENO: result: $SED" >&5
7584 echo "${ECHO_T}$SED" >&6
7585 else
7586   echo "$as_me:$LINENO: result: no" >&5
7587 echo "${ECHO_T}no" >&6
7588 fi
7589
7590 # Extract the first word of "rm", so it can be a program name with args.
7591 set dummy rm; ac_word=$2
7592 echo "$as_me:$LINENO: checking for $ac_word" >&5
7593 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7594 if test "${ac_cv_path_RM+set}" = set; then
7595   echo $ECHO_N "(cached) $ECHO_C" >&6
7596 else
7597   case $RM in
7598   [\\/]* | ?:[\\/]*)
7599   ac_cv_path_RM="$RM" # Let the user override the test with a path.
7600   ;;
7601   *)
7602   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7603 for as_dir in $PATH
7604 do
7605   IFS=$as_save_IFS
7606   test -z "$as_dir" && as_dir=.
7607   for ac_exec_ext in '' $ac_executable_extensions; do
7608   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7609     ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
7610     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7611     break 2
7612   fi
7613 done
7614 done
7615
7616   ;;
7617 esac
7618 fi
7619 RM=$ac_cv_path_RM
7620
7621 if test -n "$RM"; then
7622   echo "$as_me:$LINENO: result: $RM" >&5
7623 echo "${ECHO_T}$RM" >&6
7624 else
7625   echo "$as_me:$LINENO: result: no" >&5
7626 echo "${ECHO_T}no" >&6
7627 fi
7628
7629 # Extract the first word of "echo", so it can be a program name with args.
7630 set dummy echo; ac_word=$2
7631 echo "$as_me:$LINENO: checking for $ac_word" >&5
7632 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7633 if test "${ac_cv_path_ECHO+set}" = set; then
7634   echo $ECHO_N "(cached) $ECHO_C" >&6
7635 else
7636   case $ECHO in
7637   [\\/]* | ?:[\\/]*)
7638   ac_cv_path_ECHO="$ECHO" # Let the user override the test with a path.
7639   ;;
7640   *)
7641   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7642 for as_dir in $PATH
7643 do
7644   IFS=$as_save_IFS
7645   test -z "$as_dir" && as_dir=.
7646   for ac_exec_ext in '' $ac_executable_extensions; do
7647   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7648     ac_cv_path_ECHO="$as_dir/$ac_word$ac_exec_ext"
7649     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7650     break 2
7651   fi
7652 done
7653 done
7654
7655   ;;
7656 esac
7657 fi
7658 ECHO=$ac_cv_path_ECHO
7659
7660 if test -n "$ECHO"; then
7661   echo "$as_me:$LINENO: result: $ECHO" >&5
7662 echo "${ECHO_T}$ECHO" >&6
7663 else
7664   echo "$as_me:$LINENO: result: no" >&5
7665 echo "${ECHO_T}no" >&6
7666 fi
7667
7668 # Extract the first word of "mkdir", so it can be a program name with args.
7669 set dummy mkdir; ac_word=$2
7670 echo "$as_me:$LINENO: checking for $ac_word" >&5
7671 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7672 if test "${ac_cv_path_MKDIR+set}" = set; then
7673   echo $ECHO_N "(cached) $ECHO_C" >&6
7674 else
7675   case $MKDIR in
7676   [\\/]* | ?:[\\/]*)
7677   ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
7678   ;;
7679   *)
7680   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7681 for as_dir in $PATH
7682 do
7683   IFS=$as_save_IFS
7684   test -z "$as_dir" && as_dir=.
7685   for ac_exec_ext in '' $ac_executable_extensions; do
7686   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7687     ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
7688     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7689     break 2
7690   fi
7691 done
7692 done
7693
7694   ;;
7695 esac
7696 fi
7697 MKDIR=$ac_cv_path_MKDIR
7698
7699 if test -n "$MKDIR"; then
7700   echo "$as_me:$LINENO: result: $MKDIR" >&5
7701 echo "${ECHO_T}$MKDIR" >&6
7702 else
7703   echo "$as_me:$LINENO: result: no" >&5
7704 echo "${ECHO_T}no" >&6
7705 fi
7706
7707 # Extract the first word of "date", so it can be a program name with args.
7708 set dummy date; ac_word=$2
7709 echo "$as_me:$LINENO: checking for $ac_word" >&5
7710 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7711 if test "${ac_cv_path_DATE+set}" = set; then
7712   echo $ECHO_N "(cached) $ECHO_C" >&6
7713 else
7714   case $DATE in
7715   [\\/]* | ?:[\\/]*)
7716   ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
7717   ;;
7718   *)
7719   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7720 for as_dir in $PATH
7721 do
7722   IFS=$as_save_IFS
7723   test -z "$as_dir" && as_dir=.
7724   for ac_exec_ext in '' $ac_executable_extensions; do
7725   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7726     ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
7727     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7728     break 2
7729   fi
7730 done
7731 done
7732
7733   ;;
7734 esac
7735 fi
7736 DATE=$ac_cv_path_DATE
7737
7738 if test -n "$DATE"; then
7739   echo "$as_me:$LINENO: result: $DATE" >&5
7740 echo "${ECHO_T}$DATE" >&6
7741 else
7742   echo "$as_me:$LINENO: result: no" >&5
7743 echo "${ECHO_T}no" >&6
7744 fi
7745
7746 # Extract the first word of "mv", so it can be a program name with args.
7747 set dummy mv; ac_word=$2
7748 echo "$as_me:$LINENO: checking for $ac_word" >&5
7749 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7750 if test "${ac_cv_path_MV+set}" = set; then
7751   echo $ECHO_N "(cached) $ECHO_C" >&6
7752 else
7753   case $MV in
7754   [\\/]* | ?:[\\/]*)
7755   ac_cv_path_MV="$MV" # Let the user override the test with a path.
7756   ;;
7757   *)
7758   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7759 for as_dir in $PATH
7760 do
7761   IFS=$as_save_IFS
7762   test -z "$as_dir" && as_dir=.
7763   for ac_exec_ext in '' $ac_executable_extensions; do
7764   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7765     ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
7766     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7767     break 2
7768   fi
7769 done
7770 done
7771
7772   ;;
7773 esac
7774 fi
7775 MV=$ac_cv_path_MV
7776
7777 if test -n "$MV"; then
7778   echo "$as_me:$LINENO: result: $MV" >&5
7779 echo "${ECHO_T}$MV" >&6
7780 else
7781   echo "$as_me:$LINENO: result: no" >&5
7782 echo "${ECHO_T}no" >&6
7783 fi
7784
7785 # Extract the first word of "dot", so it can be a program name with args.
7786 set dummy dot; ac_word=$2
7787 echo "$as_me:$LINENO: checking for $ac_word" >&5
7788 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7789 if test "${ac_cv_path_DOT+set}" = set; then
7790   echo $ECHO_N "(cached) $ECHO_C" >&6
7791 else
7792   case $DOT in
7793   [\\/]* | ?:[\\/]*)
7794   ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
7795   ;;
7796   *)
7797   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7798 for as_dir in $PATH
7799 do
7800   IFS=$as_save_IFS
7801   test -z "$as_dir" && as_dir=.
7802   for ac_exec_ext in '' $ac_executable_extensions; do
7803   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7804     ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
7805     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7806     break 2
7807   fi
7808 done
7809 done
7810
7811   ;;
7812 esac
7813 fi
7814 DOT=$ac_cv_path_DOT
7815
7816 if test -n "$DOT"; then
7817   echo "$as_me:$LINENO: result: $DOT" >&5
7818 echo "${ECHO_T}$DOT" >&6
7819 else
7820   echo "$as_me:$LINENO: result: no" >&5
7821 echo "${ECHO_T}no" >&6
7822 fi
7823
7824 # Extract the first word of "etags", so it can be a program name with args.
7825 set dummy etags; ac_word=$2
7826 echo "$as_me:$LINENO: checking for $ac_word" >&5
7827 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7828 if test "${ac_cv_path_ETAGS+set}" = set; then
7829   echo $ECHO_N "(cached) $ECHO_C" >&6
7830 else
7831   case $ETAGS in
7832   [\\/]* | ?:[\\/]*)
7833   ac_cv_path_ETAGS="$ETAGS" # Let the user override the test with a path.
7834   ;;
7835   *)
7836   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7837 for as_dir in $PATH
7838 do
7839   IFS=$as_save_IFS
7840   test -z "$as_dir" && as_dir=.
7841   for ac_exec_ext in '' $ac_executable_extensions; do
7842   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7843     ac_cv_path_ETAGS="$as_dir/$ac_word$ac_exec_ext"
7844     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7845     break 2
7846   fi
7847 done
7848 done
7849
7850   ;;
7851 esac
7852 fi
7853 ETAGS=$ac_cv_path_ETAGS
7854
7855 if test -n "$ETAGS"; then
7856   echo "$as_me:$LINENO: result: $ETAGS" >&5
7857 echo "${ECHO_T}$ETAGS" >&6
7858 else
7859   echo "$as_me:$LINENO: result: no" >&5
7860 echo "${ECHO_T}no" >&6
7861 fi
7862
7863 # Extract the first word of "purify", so it can be a program name with args.
7864 set dummy purify; ac_word=$2
7865 echo "$as_me:$LINENO: checking for $ac_word" >&5
7866 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7867 if test "${ac_cv_path_PURIFY+set}" = set; then
7868   echo $ECHO_N "(cached) $ECHO_C" >&6
7869 else
7870   case $PURIFY in
7871   [\\/]* | ?:[\\/]*)
7872   ac_cv_path_PURIFY="$PURIFY" # Let the user override the test with a path.
7873   ;;
7874   *)
7875   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7876 for as_dir in $PATH
7877 do
7878   IFS=$as_save_IFS
7879   test -z "$as_dir" && as_dir=.
7880   for ac_exec_ext in '' $ac_executable_extensions; do
7881   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7882     ac_cv_path_PURIFY="$as_dir/$ac_word$ac_exec_ext"
7883     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7884     break 2
7885   fi
7886 done
7887 done
7888
7889   ;;
7890 esac
7891 fi
7892 PURIFY=$ac_cv_path_PURIFY
7893
7894 if test -n "$PURIFY"; then
7895   echo "$as_me:$LINENO: result: $PURIFY" >&5
7896 echo "${ECHO_T}$PURIFY" >&6
7897 else
7898   echo "$as_me:$LINENO: result: no" >&5
7899 echo "${ECHO_T}no" >&6
7900 fi
7901
7902
7903
7904
7905
7906
7907 echo "$as_me:$LINENO: checking for elf_begin in -lelf" >&5
7908 echo $ECHO_N "checking for elf_begin in -lelf... $ECHO_C" >&6
7909 if test "${ac_cv_lib_elf_elf_begin+set}" = set; then
7910   echo $ECHO_N "(cached) $ECHO_C" >&6
7911 else
7912   ac_check_lib_save_LIBS=$LIBS
7913 LIBS="-lelf  $LIBS"
7914 cat >conftest.$ac_ext <<_ACEOF
7915 #line $LINENO "configure"
7916 #include "confdefs.h"
7917
7918 /* Override any gcc2 internal prototype to avoid an error.  */
7919 #ifdef __cplusplus
7920 extern "C"
7921 #endif
7922 /* We use char because int might match the return type of a gcc2
7923    builtin and then its argument prototype would still apply.  */
7924 char elf_begin ();
7925 #ifdef F77_DUMMY_MAIN
7926 #  ifdef __cplusplus
7927      extern "C"
7928 #  endif
7929    int F77_DUMMY_MAIN() { return 1; }
7930 #endif
7931 int
7932 main ()
7933 {
7934 elf_begin ();
7935   ;
7936   return 0;
7937 }
7938 _ACEOF
7939 rm -f conftest.$ac_objext conftest$ac_exeext
7940 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7941   (eval $ac_link) 2>&5
7942   ac_status=$?
7943   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7944   (exit $ac_status); } &&
7945          { ac_try='test -s conftest$ac_exeext'
7946   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7947   (eval $ac_try) 2>&5
7948   ac_status=$?
7949   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7950   (exit $ac_status); }; }; then
7951   ac_cv_lib_elf_elf_begin=yes
7952 else
7953   echo "$as_me: failed program was:" >&5
7954 cat conftest.$ac_ext >&5
7955 ac_cv_lib_elf_elf_begin=no
7956 fi
7957 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7958 LIBS=$ac_check_lib_save_LIBS
7959 fi
7960 echo "$as_me:$LINENO: result: $ac_cv_lib_elf_elf_begin" >&5
7961 echo "${ECHO_T}$ac_cv_lib_elf_elf_begin" >&6
7962 if test $ac_cv_lib_elf_elf_begin = yes; then
7963   cat >>confdefs.h <<_ACEOF
7964 #define HAVE_LIBELF 1
7965 _ACEOF
7966
7967   LIBS="-lelf $LIBS"
7968
7969 fi
7970
7971
7972 echo "$as_me:$LINENO: checking for library containing dlopen" >&5
7973 echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6
7974 if test "${ac_cv_search_dlopen+set}" = set; then
7975   echo $ECHO_N "(cached) $ECHO_C" >&6
7976 else
7977   ac_func_search_save_LIBS=$LIBS
7978 ac_cv_search_dlopen=no
7979 cat >conftest.$ac_ext <<_ACEOF
7980 #line $LINENO "configure"
7981 #include "confdefs.h"
7982
7983 /* Override any gcc2 internal prototype to avoid an error.  */
7984 #ifdef __cplusplus
7985 extern "C"
7986 #endif
7987 /* We use char because int might match the return type of a gcc2
7988    builtin and then its argument prototype would still apply.  */
7989 char dlopen ();
7990 #ifdef F77_DUMMY_MAIN
7991 #  ifdef __cplusplus
7992      extern "C"
7993 #  endif
7994    int F77_DUMMY_MAIN() { return 1; }
7995 #endif
7996 int
7997 main ()
7998 {
7999 dlopen ();
8000   ;
8001   return 0;
8002 }
8003 _ACEOF
8004 rm -f conftest.$ac_objext conftest$ac_exeext
8005 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8006   (eval $ac_link) 2>&5
8007   ac_status=$?
8008   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8009   (exit $ac_status); } &&
8010          { ac_try='test -s conftest$ac_exeext'
8011   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8012   (eval $ac_try) 2>&5
8013   ac_status=$?
8014   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8015   (exit $ac_status); }; }; then
8016   ac_cv_search_dlopen="none required"
8017 else
8018   echo "$as_me: failed program was:" >&5
8019 cat conftest.$ac_ext >&5
8020 fi
8021 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8022 if test "$ac_cv_search_dlopen" = no; then
8023   for ac_lib in dl; do
8024     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
8025     cat >conftest.$ac_ext <<_ACEOF
8026 #line $LINENO "configure"
8027 #include "confdefs.h"
8028
8029 /* Override any gcc2 internal prototype to avoid an error.  */
8030 #ifdef __cplusplus
8031 extern "C"
8032 #endif
8033 /* We use char because int might match the return type of a gcc2
8034    builtin and then its argument prototype would still apply.  */
8035 char dlopen ();
8036 #ifdef F77_DUMMY_MAIN
8037 #  ifdef __cplusplus
8038      extern "C"
8039 #  endif
8040    int F77_DUMMY_MAIN() { return 1; }
8041 #endif
8042 int
8043 main ()
8044 {
8045 dlopen ();
8046   ;
8047   return 0;
8048 }
8049 _ACEOF
8050 rm -f conftest.$ac_objext conftest$ac_exeext
8051 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8052   (eval $ac_link) 2>&5
8053   ac_status=$?
8054   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8055   (exit $ac_status); } &&
8056          { ac_try='test -s conftest$ac_exeext'
8057   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8058   (eval $ac_try) 2>&5
8059   ac_status=$?
8060   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8061   (exit $ac_status); }; }; then
8062   ac_cv_search_dlopen="-l$ac_lib"
8063 break
8064 else
8065   echo "$as_me: failed program was:" >&5
8066 cat conftest.$ac_ext >&5
8067 fi
8068 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8069   done
8070 fi
8071 LIBS=$ac_func_search_save_LIBS
8072 fi
8073 echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
8074 echo "${ECHO_T}$ac_cv_search_dlopen" >&6
8075 if test "$ac_cv_search_dlopen" != no; then
8076   test "$ac_cv_search_dlopen" = "none required" || LIBS="$ac_cv_search_dlopen $LIBS"
8077
8078 else
8079   { { echo "$as_me:$LINENO: error: dlopen() required but not found" >&5
8080 echo "$as_me: error: dlopen() required but not found" >&2;}
8081    { (exit 1); exit 1; }; }
8082 fi
8083
8084
8085 echo "$as_me:$LINENO: checking for library containing mallinfo" >&5
8086 echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6
8087 if test "${ac_cv_search_mallinfo+set}" = set; then
8088   echo $ECHO_N "(cached) $ECHO_C" >&6
8089 else
8090   ac_func_search_save_LIBS=$LIBS
8091 ac_cv_search_mallinfo=no
8092 cat >conftest.$ac_ext <<_ACEOF
8093 #line $LINENO "configure"
8094 #include "confdefs.h"
8095
8096 /* Override any gcc2 internal prototype to avoid an error.  */
8097 #ifdef __cplusplus
8098 extern "C"
8099 #endif
8100 /* We use char because int might match the return type of a gcc2
8101    builtin and then its argument prototype would still apply.  */
8102 char mallinfo ();
8103 #ifdef F77_DUMMY_MAIN
8104 #  ifdef __cplusplus
8105      extern "C"
8106 #  endif
8107    int F77_DUMMY_MAIN() { return 1; }
8108 #endif
8109 int
8110 main ()
8111 {
8112 mallinfo ();
8113   ;
8114   return 0;
8115 }
8116 _ACEOF
8117 rm -f conftest.$ac_objext conftest$ac_exeext
8118 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8119   (eval $ac_link) 2>&5
8120   ac_status=$?
8121   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8122   (exit $ac_status); } &&
8123          { ac_try='test -s conftest$ac_exeext'
8124   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8125   (eval $ac_try) 2>&5
8126   ac_status=$?
8127   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8128   (exit $ac_status); }; }; then
8129   ac_cv_search_mallinfo="none required"
8130 else
8131   echo "$as_me: failed program was:" >&5
8132 cat conftest.$ac_ext >&5
8133 fi
8134 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8135 if test "$ac_cv_search_mallinfo" = no; then
8136   for ac_lib in malloc; do
8137     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
8138     cat >conftest.$ac_ext <<_ACEOF
8139 #line $LINENO "configure"
8140 #include "confdefs.h"
8141
8142 /* Override any gcc2 internal prototype to avoid an error.  */
8143 #ifdef __cplusplus
8144 extern "C"
8145 #endif
8146 /* We use char because int might match the return type of a gcc2
8147    builtin and then its argument prototype would still apply.  */
8148 char mallinfo ();
8149 #ifdef F77_DUMMY_MAIN
8150 #  ifdef __cplusplus
8151      extern "C"
8152 #  endif
8153    int F77_DUMMY_MAIN() { return 1; }
8154 #endif
8155 int
8156 main ()
8157 {
8158 mallinfo ();
8159   ;
8160   return 0;
8161 }
8162 _ACEOF
8163 rm -f conftest.$ac_objext conftest$ac_exeext
8164 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8165   (eval $ac_link) 2>&5
8166   ac_status=$?
8167   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8168   (exit $ac_status); } &&
8169          { ac_try='test -s conftest$ac_exeext'
8170   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8171   (eval $ac_try) 2>&5
8172   ac_status=$?
8173   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8174   (exit $ac_status); }; }; then
8175   ac_cv_search_mallinfo="-l$ac_lib"
8176 break
8177 else
8178   echo "$as_me: failed program was:" >&5
8179 cat conftest.$ac_ext >&5
8180 fi
8181 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8182   done
8183 fi
8184 LIBS=$ac_func_search_save_LIBS
8185 fi
8186 echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5
8187 echo "${ECHO_T}$ac_cv_search_mallinfo" >&6
8188 if test "$ac_cv_search_mallinfo" != no; then
8189   test "$ac_cv_search_mallinfo" = "none required" || LIBS="$ac_cv_search_mallinfo $LIBS"
8190   cat >>confdefs.h <<\_ACEOF
8191 #define HAVE_MALLINFO 1
8192 _ACEOF
8193
8194 fi
8195
8196
8197
8198 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
8199 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
8200 if test "${ac_cv_header_stdc+set}" = set; then
8201   echo $ECHO_N "(cached) $ECHO_C" >&6
8202 else
8203   cat >conftest.$ac_ext <<_ACEOF
8204 #line $LINENO "configure"
8205 #include "confdefs.h"
8206 #include <stdlib.h>
8207 #include <stdarg.h>
8208 #include <string.h>
8209 #include <float.h>
8210
8211 _ACEOF
8212 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8213   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8214   ac_status=$?
8215   egrep -v '^ *\+' conftest.er1 >conftest.err
8216   rm -f conftest.er1
8217   cat conftest.err >&5
8218   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8219   (exit $ac_status); } >/dev/null; then
8220   if test -s conftest.err; then
8221     ac_cpp_err=$ac_c_preproc_warn_flag
8222   else
8223     ac_cpp_err=
8224   fi
8225 else
8226   ac_cpp_err=yes
8227 fi
8228 if test -z "$ac_cpp_err"; then
8229   ac_cv_header_stdc=yes
8230 else
8231   echo "$as_me: failed program was:" >&5
8232   cat conftest.$ac_ext >&5
8233   ac_cv_header_stdc=no
8234 fi
8235 rm -f conftest.err conftest.$ac_ext
8236
8237 if test $ac_cv_header_stdc = yes; then
8238   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8239   cat >conftest.$ac_ext <<_ACEOF
8240 #line $LINENO "configure"
8241 #include "confdefs.h"
8242 #include <string.h>
8243
8244 _ACEOF
8245 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8246   egrep "memchr" >/dev/null 2>&1; then
8247   :
8248 else
8249   ac_cv_header_stdc=no
8250 fi
8251 rm -f conftest*
8252
8253 fi
8254
8255 if test $ac_cv_header_stdc = yes; then
8256   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8257   cat >conftest.$ac_ext <<_ACEOF
8258 #line $LINENO "configure"
8259 #include "confdefs.h"
8260 #include <stdlib.h>
8261
8262 _ACEOF
8263 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8264   egrep "free" >/dev/null 2>&1; then
8265   :
8266 else
8267   ac_cv_header_stdc=no
8268 fi
8269 rm -f conftest*
8270
8271 fi
8272
8273 if test $ac_cv_header_stdc = yes; then
8274   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8275   if test "$cross_compiling" = yes; then
8276   :
8277 else
8278   cat >conftest.$ac_ext <<_ACEOF
8279 #line $LINENO "configure"
8280 #include "confdefs.h"
8281 #include <ctype.h>
8282 #if ((' ' & 0x0FF) == 0x020)
8283 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8284 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8285 #else
8286 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
8287                      || ('j' <= (c) && (c) <= 'r') \
8288                      || ('s' <= (c) && (c) <= 'z'))
8289 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8290 #endif
8291
8292 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8293 int
8294 main ()
8295 {
8296   int i;
8297   for (i = 0; i < 256; i++)
8298     if (XOR (islower (i), ISLOWER (i))
8299         || toupper (i) != TOUPPER (i))
8300       exit(2);
8301   exit (0);
8302 }
8303 _ACEOF
8304 rm -f conftest$ac_exeext
8305 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8306   (eval $ac_link) 2>&5
8307   ac_status=$?
8308   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8309   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8310   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8311   (eval $ac_try) 2>&5
8312   ac_status=$?
8313   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8314   (exit $ac_status); }; }; then
8315   :
8316 else
8317   echo "$as_me: program exited with status $ac_status" >&5
8318 echo "$as_me: failed program was:" >&5
8319 cat conftest.$ac_ext >&5
8320 ( exit $ac_status )
8321 ac_cv_header_stdc=no
8322 fi
8323 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8324 fi
8325 fi
8326 fi
8327 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
8328 echo "${ECHO_T}$ac_cv_header_stdc" >&6
8329 if test $ac_cv_header_stdc = yes; then
8330
8331 cat >>confdefs.h <<\_ACEOF
8332 #define STDC_HEADERS 1
8333 _ACEOF
8334
8335 fi
8336
8337 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
8338 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
8339 if test "${ac_cv_header_sys_wait_h+set}" = set; then
8340   echo $ECHO_N "(cached) $ECHO_C" >&6
8341 else
8342   cat >conftest.$ac_ext <<_ACEOF
8343 #line $LINENO "configure"
8344 #include "confdefs.h"
8345 #include <sys/types.h>
8346 #include <sys/wait.h>
8347 #ifndef WEXITSTATUS
8348 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
8349 #endif
8350 #ifndef WIFEXITED
8351 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
8352 #endif
8353
8354 #ifdef F77_DUMMY_MAIN
8355 #  ifdef __cplusplus
8356      extern "C"
8357 #  endif
8358    int F77_DUMMY_MAIN() { return 1; }
8359 #endif
8360 int
8361 main ()
8362 {
8363   int s;
8364   wait (&s);
8365   s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
8366   ;
8367   return 0;
8368 }
8369 _ACEOF
8370 rm -f conftest.$ac_objext
8371 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8372   (eval $ac_compile) 2>&5
8373   ac_status=$?
8374   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8375   (exit $ac_status); } &&
8376          { ac_try='test -s conftest.$ac_objext'
8377   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8378   (eval $ac_try) 2>&5
8379   ac_status=$?
8380   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8381   (exit $ac_status); }; }; then
8382   ac_cv_header_sys_wait_h=yes
8383 else
8384   echo "$as_me: failed program was:" >&5
8385 cat conftest.$ac_ext >&5
8386 ac_cv_header_sys_wait_h=no
8387 fi
8388 rm -f conftest.$ac_objext conftest.$ac_ext
8389 fi
8390 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
8391 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
8392 if test $ac_cv_header_sys_wait_h = yes; then
8393
8394 cat >>confdefs.h <<\_ACEOF
8395 #define HAVE_SYS_WAIT_H 1
8396 _ACEOF
8397
8398 fi
8399
8400
8401
8402
8403
8404
8405
8406
8407
8408
8409 for ac_header in assert.h fcntl.h limits.h sys/time.h unistd.h errno.h signal.h math.h
8410 do
8411 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8412 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8413   echo "$as_me:$LINENO: checking for $ac_header" >&5
8414 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8415 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8416   echo $ECHO_N "(cached) $ECHO_C" >&6
8417 fi
8418 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8419 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8420 else
8421   # Is the header compilable?
8422 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8423 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8424 cat >conftest.$ac_ext <<_ACEOF
8425 #line $LINENO "configure"
8426 #include "confdefs.h"
8427 $ac_includes_default
8428 #include <$ac_header>
8429 _ACEOF
8430 rm -f conftest.$ac_objext
8431 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8432   (eval $ac_compile) 2>&5
8433   ac_status=$?
8434   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8435   (exit $ac_status); } &&
8436          { ac_try='test -s conftest.$ac_objext'
8437   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8438   (eval $ac_try) 2>&5
8439   ac_status=$?
8440   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8441   (exit $ac_status); }; }; then
8442   ac_header_compiler=yes
8443 else
8444   echo "$as_me: failed program was:" >&5
8445 cat conftest.$ac_ext >&5
8446 ac_header_compiler=no
8447 fi
8448 rm -f conftest.$ac_objext conftest.$ac_ext
8449 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8450 echo "${ECHO_T}$ac_header_compiler" >&6
8451
8452 # Is the header present?
8453 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8454 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8455 cat >conftest.$ac_ext <<_ACEOF
8456 #line $LINENO "configure"
8457 #include "confdefs.h"
8458 #include <$ac_header>
8459 _ACEOF
8460 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8461   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8462   ac_status=$?
8463   egrep -v '^ *\+' conftest.er1 >conftest.err
8464   rm -f conftest.er1
8465   cat conftest.err >&5
8466   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8467   (exit $ac_status); } >/dev/null; then
8468   if test -s conftest.err; then
8469     ac_cpp_err=$ac_c_preproc_warn_flag
8470   else
8471     ac_cpp_err=
8472   fi
8473 else
8474   ac_cpp_err=yes
8475 fi
8476 if test -z "$ac_cpp_err"; then
8477   ac_header_preproc=yes
8478 else
8479   echo "$as_me: failed program was:" >&5
8480   cat conftest.$ac_ext >&5
8481   ac_header_preproc=no
8482 fi
8483 rm -f conftest.err conftest.$ac_ext
8484 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8485 echo "${ECHO_T}$ac_header_preproc" >&6
8486
8487 # So?  What about this header?
8488 case $ac_header_compiler:$ac_header_preproc in
8489   yes:no )
8490     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8491 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8492     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8493 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
8494   no:yes )
8495     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8496 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8497     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8498 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8499     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8500 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
8501 esac
8502 echo "$as_me:$LINENO: checking for $ac_header" >&5
8503 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8504 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8505   echo $ECHO_N "(cached) $ECHO_C" >&6
8506 else
8507   eval "$as_ac_Header=$ac_header_preproc"
8508 fi
8509 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8510 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8511
8512 fi
8513 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8514   cat >>confdefs.h <<_ACEOF
8515 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8516 _ACEOF
8517
8518 fi
8519
8520 done
8521
8522
8523
8524
8525
8526
8527 for ac_header in malloc.h strings.h sys/mman.h sys/resource.h
8528 do
8529 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8530 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8531   echo "$as_me:$LINENO: checking for $ac_header" >&5
8532 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8533 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8534   echo $ECHO_N "(cached) $ECHO_C" >&6
8535 fi
8536 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8537 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8538 else
8539   # Is the header compilable?
8540 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8541 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8542 cat >conftest.$ac_ext <<_ACEOF
8543 #line $LINENO "configure"
8544 #include "confdefs.h"
8545 $ac_includes_default
8546 #include <$ac_header>
8547 _ACEOF
8548 rm -f conftest.$ac_objext
8549 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8550   (eval $ac_compile) 2>&5
8551   ac_status=$?
8552   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8553   (exit $ac_status); } &&
8554          { ac_try='test -s conftest.$ac_objext'
8555   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8556   (eval $ac_try) 2>&5
8557   ac_status=$?
8558   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8559   (exit $ac_status); }; }; then
8560   ac_header_compiler=yes
8561 else
8562   echo "$as_me: failed program was:" >&5
8563 cat conftest.$ac_ext >&5
8564 ac_header_compiler=no
8565 fi
8566 rm -f conftest.$ac_objext conftest.$ac_ext
8567 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8568 echo "${ECHO_T}$ac_header_compiler" >&6
8569
8570 # Is the header present?
8571 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8572 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8573 cat >conftest.$ac_ext <<_ACEOF
8574 #line $LINENO "configure"
8575 #include "confdefs.h"
8576 #include <$ac_header>
8577 _ACEOF
8578 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8579   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8580   ac_status=$?
8581   egrep -v '^ *\+' conftest.er1 >conftest.err
8582   rm -f conftest.er1
8583   cat conftest.err >&5
8584   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8585   (exit $ac_status); } >/dev/null; then
8586   if test -s conftest.err; then
8587     ac_cpp_err=$ac_c_preproc_warn_flag
8588   else
8589     ac_cpp_err=
8590   fi
8591 else
8592   ac_cpp_err=yes
8593 fi
8594 if test -z "$ac_cpp_err"; then
8595   ac_header_preproc=yes
8596 else
8597   echo "$as_me: failed program was:" >&5
8598   cat conftest.$ac_ext >&5
8599   ac_header_preproc=no
8600 fi
8601 rm -f conftest.err conftest.$ac_ext
8602 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8603 echo "${ECHO_T}$ac_header_preproc" >&6
8604
8605 # So?  What about this header?
8606 case $ac_header_compiler:$ac_header_preproc in
8607   yes:no )
8608     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8609 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8610     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8611 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
8612   no:yes )
8613     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8614 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8615     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8616 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8617     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8618 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
8619 esac
8620 echo "$as_me:$LINENO: checking for $ac_header" >&5
8621 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8622 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8623   echo $ECHO_N "(cached) $ECHO_C" >&6
8624 else
8625   eval "$as_ac_Header=$ac_header_preproc"
8626 fi
8627 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8628 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8629
8630 fi
8631 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8632   cat >>confdefs.h <<_ACEOF
8633 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8634 _ACEOF
8635
8636 fi
8637
8638 done
8639
8640
8641
8642
8643 for ac_header in dlfcn.h link.h
8644 do
8645 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8646 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8647   echo "$as_me:$LINENO: checking for $ac_header" >&5
8648 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8649 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8650   echo $ECHO_N "(cached) $ECHO_C" >&6
8651 fi
8652 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8653 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8654 else
8655   # Is the header compilable?
8656 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8657 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8658 cat >conftest.$ac_ext <<_ACEOF
8659 #line $LINENO "configure"
8660 #include "confdefs.h"
8661 $ac_includes_default
8662 #include <$ac_header>
8663 _ACEOF
8664 rm -f conftest.$ac_objext
8665 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8666   (eval $ac_compile) 2>&5
8667   ac_status=$?
8668   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8669   (exit $ac_status); } &&
8670          { ac_try='test -s conftest.$ac_objext'
8671   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8672   (eval $ac_try) 2>&5
8673   ac_status=$?
8674   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8675   (exit $ac_status); }; }; then
8676   ac_header_compiler=yes
8677 else
8678   echo "$as_me: failed program was:" >&5
8679 cat conftest.$ac_ext >&5
8680 ac_header_compiler=no
8681 fi
8682 rm -f conftest.$ac_objext conftest.$ac_ext
8683 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8684 echo "${ECHO_T}$ac_header_compiler" >&6
8685
8686 # Is the header present?
8687 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8688 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8689 cat >conftest.$ac_ext <<_ACEOF
8690 #line $LINENO "configure"
8691 #include "confdefs.h"
8692 #include <$ac_header>
8693 _ACEOF
8694 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8695   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8696   ac_status=$?
8697   egrep -v '^ *\+' conftest.er1 >conftest.err
8698   rm -f conftest.er1
8699   cat conftest.err >&5
8700   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8701   (exit $ac_status); } >/dev/null; then
8702   if test -s conftest.err; then
8703     ac_cpp_err=$ac_c_preproc_warn_flag
8704   else
8705     ac_cpp_err=
8706   fi
8707 else
8708   ac_cpp_err=yes
8709 fi
8710 if test -z "$ac_cpp_err"; then
8711   ac_header_preproc=yes
8712 else
8713   echo "$as_me: failed program was:" >&5
8714   cat conftest.$ac_ext >&5
8715   ac_header_preproc=no
8716 fi
8717 rm -f conftest.err conftest.$ac_ext
8718 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8719 echo "${ECHO_T}$ac_header_preproc" >&6
8720
8721 # So?  What about this header?
8722 case $ac_header_compiler:$ac_header_preproc in
8723   yes:no )
8724     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8725 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8726     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8727 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
8728   no:yes )
8729     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8730 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8731     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8732 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8733     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8734 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
8735 esac
8736 echo "$as_me:$LINENO: checking for $ac_header" >&5
8737 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8738 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8739   echo $ECHO_N "(cached) $ECHO_C" >&6
8740 else
8741   eval "$as_ac_Header=$ac_header_preproc"
8742 fi
8743 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8744 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8745
8746 fi
8747 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8748   cat >>confdefs.h <<_ACEOF
8749 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8750 _ACEOF
8751
8752 fi
8753
8754 done
8755
8756
8757
8758 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
8759 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
8760 if test "${ac_cv_prog_cc_stdc+set}" = set; then
8761   echo $ECHO_N "(cached) $ECHO_C" >&6
8762 else
8763   ac_cv_prog_cc_stdc=no
8764 ac_save_CC=$CC
8765 cat >conftest.$ac_ext <<_ACEOF
8766 #line $LINENO "configure"
8767 #include "confdefs.h"
8768 #include <stdarg.h>
8769 #include <stdio.h>
8770 #include <sys/types.h>
8771 #include <sys/stat.h>
8772 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
8773 struct buf { int x; };
8774 FILE * (*rcsopen) (struct buf *, struct stat *, int);
8775 static char *e (p, i)
8776      char **p;
8777      int i;
8778 {
8779   return p[i];
8780 }
8781 static char *f (char * (*g) (char **, int), char **p, ...)
8782 {
8783   char *s;
8784   va_list v;
8785   va_start (v,p);
8786   s = g (p, va_arg (v,int));
8787   va_end (v);
8788   return s;
8789 }
8790 int test (int i, double x);
8791 struct s1 {int (*f) (int a);};
8792 struct s2 {int (*f) (double a);};
8793 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
8794 int argc;
8795 char **argv;
8796 #ifdef F77_DUMMY_MAIN
8797 #  ifdef __cplusplus
8798      extern "C"
8799 #  endif
8800    int F77_DUMMY_MAIN() { return 1; }
8801 #endif
8802 int
8803 main ()
8804 {
8805 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
8806   ;
8807   return 0;
8808 }
8809 _ACEOF
8810 # Don't try gcc -ansi; that turns off useful extensions and
8811 # breaks some systems' header files.
8812 # AIX                   -qlanglvl=ansi
8813 # Ultrix and OSF/1      -std1
8814 # HP-UX 10.20 and later -Ae
8815 # HP-UX older versions  -Aa -D_HPUX_SOURCE
8816 # SVR4                  -Xc -D__EXTENSIONS__
8817 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
8818 do
8819   CC="$ac_save_CC $ac_arg"
8820   rm -f conftest.$ac_objext
8821 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8822   (eval $ac_compile) 2>&5
8823   ac_status=$?
8824   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8825   (exit $ac_status); } &&
8826          { ac_try='test -s conftest.$ac_objext'
8827   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8828   (eval $ac_try) 2>&5
8829   ac_status=$?
8830   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8831   (exit $ac_status); }; }; then
8832   ac_cv_prog_cc_stdc=$ac_arg
8833 break
8834 else
8835   echo "$as_me: failed program was:" >&5
8836 cat conftest.$ac_ext >&5
8837 fi
8838 rm -f conftest.$ac_objext
8839 done
8840 rm -f conftest.$ac_ext conftest.$ac_objext
8841 CC=$ac_save_CC
8842
8843 fi
8844
8845 case "x$ac_cv_prog_cc_stdc" in
8846   x|xno)
8847     echo "$as_me:$LINENO: result: none needed" >&5
8848 echo "${ECHO_T}none needed" >&6 ;;
8849   *)
8850     echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
8851 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
8852     CC="$CC $ac_cv_prog_cc_stdc" ;;
8853 esac
8854
8855 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
8856 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
8857 if test "${ac_cv_c_const+set}" = set; then
8858   echo $ECHO_N "(cached) $ECHO_C" >&6
8859 else
8860   cat >conftest.$ac_ext <<_ACEOF
8861 #line $LINENO "configure"
8862 #include "confdefs.h"
8863
8864 #ifdef F77_DUMMY_MAIN
8865 #  ifdef __cplusplus
8866      extern "C"
8867 #  endif
8868    int F77_DUMMY_MAIN() { return 1; }
8869 #endif
8870 int
8871 main ()
8872 {
8873 /* FIXME: Include the comments suggested by Paul. */
8874 #ifndef __cplusplus
8875   /* Ultrix mips cc rejects this.  */
8876   typedef int charset[2];
8877   const charset x;
8878   /* SunOS 4.1.1 cc rejects this.  */
8879   char const *const *ccp;
8880   char **p;
8881   /* NEC SVR4.0.2 mips cc rejects this.  */
8882   struct point {int x, y;};
8883   static struct point const zero = {0,0};
8884   /* AIX XL C 1.02.0.0 rejects this.
8885      It does not let you subtract one const X* pointer from another in
8886      an arm of an if-expression whose if-part is not a constant
8887      expression */
8888   const char *g = "string";
8889   ccp = &g + (g ? g-g : 0);
8890   /* HPUX 7.0 cc rejects these. */
8891   ++ccp;
8892   p = (char**) ccp;
8893   ccp = (char const *const *) p;
8894   { /* SCO 3.2v4 cc rejects this.  */
8895     char *t;
8896     char const *s = 0 ? (char *) 0 : (char const *) 0;
8897
8898     *t++ = 0;
8899   }
8900   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
8901     int x[] = {25, 17};
8902     const int *foo = &x[0];
8903     ++foo;
8904   }
8905   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
8906     typedef const int *iptr;
8907     iptr p = 0;
8908     ++p;
8909   }
8910   { /* AIX XL C 1.02.0.0 rejects this saying
8911        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
8912     struct s { int j; const int *ap[3]; };
8913     struct s *b; b->j = 5;
8914   }
8915   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
8916     const int foo = 10;
8917   }
8918 #endif
8919
8920   ;
8921   return 0;
8922 }
8923 _ACEOF
8924 rm -f conftest.$ac_objext
8925 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8926   (eval $ac_compile) 2>&5
8927   ac_status=$?
8928   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8929   (exit $ac_status); } &&
8930          { ac_try='test -s conftest.$ac_objext'
8931   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8932   (eval $ac_try) 2>&5
8933   ac_status=$?
8934   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8935   (exit $ac_status); }; }; then
8936   ac_cv_c_const=yes
8937 else
8938   echo "$as_me: failed program was:" >&5
8939 cat conftest.$ac_ext >&5
8940 ac_cv_c_const=no
8941 fi
8942 rm -f conftest.$ac_objext conftest.$ac_ext
8943 fi
8944 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
8945 echo "${ECHO_T}$ac_cv_c_const" >&6
8946 if test $ac_cv_c_const = no; then
8947
8948 cat >>confdefs.h <<\_ACEOF
8949 #define const
8950 _ACEOF
8951
8952 fi
8953
8954 echo "$as_me:$LINENO: checking for inline" >&5
8955 echo $ECHO_N "checking for inline... $ECHO_C" >&6
8956 if test "${ac_cv_c_inline+set}" = set; then
8957   echo $ECHO_N "(cached) $ECHO_C" >&6
8958 else
8959   ac_cv_c_inline=no
8960 for ac_kw in inline __inline__ __inline; do
8961   cat >conftest.$ac_ext <<_ACEOF
8962 #line $LINENO "configure"
8963 #include "confdefs.h"
8964 #ifndef __cplusplus
8965 static $ac_kw int static_foo () {return 0; }
8966 $ac_kw int foo () {return 0; }
8967 #endif
8968
8969 _ACEOF
8970 rm -f conftest.$ac_objext
8971 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8972   (eval $ac_compile) 2>&5
8973   ac_status=$?
8974   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8975   (exit $ac_status); } &&
8976          { ac_try='test -s conftest.$ac_objext'
8977   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8978   (eval $ac_try) 2>&5
8979   ac_status=$?
8980   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8981   (exit $ac_status); }; }; then
8982   ac_cv_c_inline=$ac_kw; break
8983 else
8984   echo "$as_me: failed program was:" >&5
8985 cat conftest.$ac_ext >&5
8986 fi
8987 rm -f conftest.$ac_objext conftest.$ac_ext
8988 done
8989
8990 fi
8991 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
8992 echo "${ECHO_T}$ac_cv_c_inline" >&6
8993 case $ac_cv_c_inline in
8994   inline | yes) ;;
8995   no)
8996 cat >>confdefs.h <<\_ACEOF
8997 #define inline
8998 _ACEOF
8999  ;;
9000   *)  cat >>confdefs.h <<_ACEOF
9001 #define inline $ac_cv_c_inline
9002 _ACEOF
9003  ;;
9004 esac
9005
9006
9007 echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
9008 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
9009 if test "${ac_cv_c_bigendian+set}" = set; then
9010   echo $ECHO_N "(cached) $ECHO_C" >&6
9011 else
9012   # See if sys/param.h defines the BYTE_ORDER macro.
9013 cat >conftest.$ac_ext <<_ACEOF
9014 #line $LINENO "configure"
9015 #include "confdefs.h"
9016 #include <sys/types.h>
9017 #include <sys/param.h>
9018
9019 #ifdef F77_DUMMY_MAIN
9020 #  ifdef __cplusplus
9021      extern "C"
9022 #  endif
9023    int F77_DUMMY_MAIN() { return 1; }
9024 #endif
9025 int
9026 main ()
9027 {
9028 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
9029  bogus endian macros
9030 #endif
9031
9032   ;
9033   return 0;
9034 }
9035 _ACEOF
9036 rm -f conftest.$ac_objext
9037 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9038   (eval $ac_compile) 2>&5
9039   ac_status=$?
9040   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9041   (exit $ac_status); } &&
9042          { ac_try='test -s conftest.$ac_objext'
9043   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9044   (eval $ac_try) 2>&5
9045   ac_status=$?
9046   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9047   (exit $ac_status); }; }; then
9048   # It does; now see whether it defined to BIG_ENDIAN or not.
9049 cat >conftest.$ac_ext <<_ACEOF
9050 #line $LINENO "configure"
9051 #include "confdefs.h"
9052 #include <sys/types.h>
9053 #include <sys/param.h>
9054
9055 #ifdef F77_DUMMY_MAIN
9056 #  ifdef __cplusplus
9057      extern "C"
9058 #  endif
9059    int F77_DUMMY_MAIN() { return 1; }
9060 #endif
9061 int
9062 main ()
9063 {
9064 #if BYTE_ORDER != BIG_ENDIAN
9065  not big endian
9066 #endif
9067
9068   ;
9069   return 0;
9070 }
9071 _ACEOF
9072 rm -f conftest.$ac_objext
9073 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9074   (eval $ac_compile) 2>&5
9075   ac_status=$?
9076   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9077   (exit $ac_status); } &&
9078          { ac_try='test -s conftest.$ac_objext'
9079   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9080   (eval $ac_try) 2>&5
9081   ac_status=$?
9082   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9083   (exit $ac_status); }; }; then
9084   ac_cv_c_bigendian=yes
9085 else
9086   echo "$as_me: failed program was:" >&5
9087 cat conftest.$ac_ext >&5
9088 ac_cv_c_bigendian=no
9089 fi
9090 rm -f conftest.$ac_objext conftest.$ac_ext
9091 else
9092   echo "$as_me: failed program was:" >&5
9093 cat conftest.$ac_ext >&5
9094 # It does not; compile a test program.
9095 if test "$cross_compiling" = yes; then
9096   # try to guess the endianess by grep'ing values into an object file
9097   ac_cv_c_bigendian=unknown
9098   cat >conftest.$ac_ext <<_ACEOF
9099 #line $LINENO "configure"
9100 #include "confdefs.h"
9101 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
9102 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
9103 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
9104 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
9105 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
9106 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
9107 #ifdef F77_DUMMY_MAIN
9108 #  ifdef __cplusplus
9109      extern "C"
9110 #  endif
9111    int F77_DUMMY_MAIN() { return 1; }
9112 #endif
9113 int
9114 main ()
9115 {
9116  _ascii (); _ebcdic ();
9117   ;
9118   return 0;
9119 }
9120 _ACEOF
9121 rm -f conftest.$ac_objext
9122 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9123   (eval $ac_compile) 2>&5
9124   ac_status=$?
9125   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9126   (exit $ac_status); } &&
9127          { ac_try='test -s conftest.$ac_objext'
9128   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9129   (eval $ac_try) 2>&5
9130   ac_status=$?
9131   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9132   (exit $ac_status); }; }; then
9133   if fgrep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
9134   ac_cv_c_bigendian=yes
9135 fi
9136 if fgrep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
9137   if test "$ac_cv_c_bigendian" = unknown; then
9138     ac_cv_c_bigendian=no
9139   else
9140     # finding both strings is unlikely to happen, but who knows?
9141     ac_cv_c_bigendian=unknown
9142   fi
9143 fi
9144 else
9145   echo "$as_me: failed program was:" >&5
9146 cat conftest.$ac_ext >&5
9147 fi
9148 rm -f conftest.$ac_objext conftest.$ac_ext
9149 else
9150   cat >conftest.$ac_ext <<_ACEOF
9151 #line $LINENO "configure"
9152 #include "confdefs.h"
9153 int
9154 main ()
9155 {
9156   /* Are we little or big endian?  From Harbison&Steele.  */
9157   union
9158   {
9159     long l;
9160     char c[sizeof (long)];
9161   } u;
9162   u.l = 1;
9163   exit (u.c[sizeof (long) - 1] == 1);
9164 }
9165 _ACEOF
9166 rm -f conftest$ac_exeext
9167 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9168   (eval $ac_link) 2>&5
9169   ac_status=$?
9170   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9171   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9172   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9173   (eval $ac_try) 2>&5
9174   ac_status=$?
9175   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9176   (exit $ac_status); }; }; then
9177   ac_cv_c_bigendian=no
9178 else
9179   echo "$as_me: program exited with status $ac_status" >&5
9180 echo "$as_me: failed program was:" >&5
9181 cat conftest.$ac_ext >&5
9182 ( exit $ac_status )
9183 ac_cv_c_bigendian=yes
9184 fi
9185 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9186 fi
9187 fi
9188 rm -f conftest.$ac_objext conftest.$ac_ext
9189 fi
9190 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
9191 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
9192 case $ac_cv_c_bigendian in
9193   yes)
9194     cat >>confdefs.h <<\_ACEOF
9195 #define ENDIAN_BIG 1
9196 _ACEOF
9197  ;;
9198   no)
9199     cat >>confdefs.h <<\_ACEOF
9200 #define ENDIAN_LITTLE 1
9201 _ACEOF
9202  ;;
9203   *)
9204     { { echo "$as_me:$LINENO: error: unknown endianess
9205 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
9206 echo "$as_me: error: unknown endianess
9207 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
9208    { (exit 1); exit 1; }; } ;;
9209 esac
9210
9211
9212 echo "$as_me:$LINENO: checking for pid_t" >&5
9213 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
9214 if test "${ac_cv_type_pid_t+set}" = set; then
9215   echo $ECHO_N "(cached) $ECHO_C" >&6
9216 else
9217   cat >conftest.$ac_ext <<_ACEOF
9218 #line $LINENO "configure"
9219 #include "confdefs.h"
9220 $ac_includes_default
9221 #ifdef F77_DUMMY_MAIN
9222 #  ifdef __cplusplus
9223      extern "C"
9224 #  endif
9225    int F77_DUMMY_MAIN() { return 1; }
9226 #endif
9227 int
9228 main ()
9229 {
9230 if ((pid_t *) 0)
9231   return 0;
9232 if (sizeof (pid_t))
9233   return 0;
9234   ;
9235   return 0;
9236 }
9237 _ACEOF
9238 rm -f conftest.$ac_objext
9239 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9240   (eval $ac_compile) 2>&5
9241   ac_status=$?
9242   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9243   (exit $ac_status); } &&
9244          { ac_try='test -s conftest.$ac_objext'
9245   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9246   (eval $ac_try) 2>&5
9247   ac_status=$?
9248   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9249   (exit $ac_status); }; }; then
9250   ac_cv_type_pid_t=yes
9251 else
9252   echo "$as_me: failed program was:" >&5
9253 cat conftest.$ac_ext >&5
9254 ac_cv_type_pid_t=no
9255 fi
9256 rm -f conftest.$ac_objext conftest.$ac_ext
9257 fi
9258 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
9259 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
9260 if test $ac_cv_type_pid_t = yes; then
9261   :
9262 else
9263
9264 cat >>confdefs.h <<_ACEOF
9265 #define pid_t int
9266 _ACEOF
9267
9268 fi
9269
9270 echo "$as_me:$LINENO: checking for size_t" >&5
9271 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
9272 if test "${ac_cv_type_size_t+set}" = set; then
9273   echo $ECHO_N "(cached) $ECHO_C" >&6
9274 else
9275   cat >conftest.$ac_ext <<_ACEOF
9276 #line $LINENO "configure"
9277 #include "confdefs.h"
9278 $ac_includes_default
9279 #ifdef F77_DUMMY_MAIN
9280 #  ifdef __cplusplus
9281      extern "C"
9282 #  endif
9283    int F77_DUMMY_MAIN() { return 1; }
9284 #endif
9285 int
9286 main ()
9287 {
9288 if ((size_t *) 0)
9289   return 0;
9290 if (sizeof (size_t))
9291   return 0;
9292   ;
9293   return 0;
9294 }
9295 _ACEOF
9296 rm -f conftest.$ac_objext
9297 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9298   (eval $ac_compile) 2>&5
9299   ac_status=$?
9300   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9301   (exit $ac_status); } &&
9302          { ac_try='test -s conftest.$ac_objext'
9303   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9304   (eval $ac_try) 2>&5
9305   ac_status=$?
9306   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9307   (exit $ac_status); }; }; then
9308   ac_cv_type_size_t=yes
9309 else
9310   echo "$as_me: failed program was:" >&5
9311 cat conftest.$ac_ext >&5
9312 ac_cv_type_size_t=no
9313 fi
9314 rm -f conftest.$ac_objext conftest.$ac_ext
9315 fi
9316 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
9317 echo "${ECHO_T}$ac_cv_type_size_t" >&6
9318 if test $ac_cv_type_size_t = yes; then
9319   :
9320 else
9321
9322 cat >>confdefs.h <<_ACEOF
9323 #define size_t unsigned
9324 _ACEOF
9325
9326 fi
9327
9328 echo "$as_me:$LINENO: checking for int64_t" >&5
9329 echo $ECHO_N "checking for int64_t... $ECHO_C" >&6
9330 if test "${ac_cv_type_int64_t+set}" = set; then
9331   echo $ECHO_N "(cached) $ECHO_C" >&6
9332 else
9333   cat >conftest.$ac_ext <<_ACEOF
9334 #line $LINENO "configure"
9335 #include "confdefs.h"
9336 $ac_includes_default
9337 #ifdef F77_DUMMY_MAIN
9338 #  ifdef __cplusplus
9339      extern "C"
9340 #  endif
9341    int F77_DUMMY_MAIN() { return 1; }
9342 #endif
9343 int
9344 main ()
9345 {
9346 if ((int64_t *) 0)
9347   return 0;
9348 if (sizeof (int64_t))
9349   return 0;
9350   ;
9351   return 0;
9352 }
9353 _ACEOF
9354 rm -f conftest.$ac_objext
9355 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9356   (eval $ac_compile) 2>&5
9357   ac_status=$?
9358   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9359   (exit $ac_status); } &&
9360          { ac_try='test -s conftest.$ac_objext'
9361   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9362   (eval $ac_try) 2>&5
9363   ac_status=$?
9364   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9365   (exit $ac_status); }; }; then
9366   ac_cv_type_int64_t=yes
9367 else
9368   echo "$as_me: failed program was:" >&5
9369 cat conftest.$ac_ext >&5
9370 ac_cv_type_int64_t=no
9371 fi
9372 rm -f conftest.$ac_objext conftest.$ac_ext
9373 fi
9374 echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
9375 echo "${ECHO_T}$ac_cv_type_int64_t" >&6
9376 if test $ac_cv_type_int64_t = yes; then
9377
9378 cat >>confdefs.h <<_ACEOF
9379 #define HAVE_INT64_T 1
9380 _ACEOF
9381
9382
9383 else
9384   { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5
9385 echo "$as_me: error: Type int64_t required but not found" >&2;}
9386    { (exit 1); exit 1; }; }
9387 fi
9388
9389 echo "$as_me:$LINENO: checking for uint64_t" >&5
9390 echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6
9391 if test "${ac_cv_type_uint64_t+set}" = set; then
9392   echo $ECHO_N "(cached) $ECHO_C" >&6
9393 else
9394   cat >conftest.$ac_ext <<_ACEOF
9395 #line $LINENO "configure"
9396 #include "confdefs.h"
9397 $ac_includes_default
9398 #ifdef F77_DUMMY_MAIN
9399 #  ifdef __cplusplus
9400      extern "C"
9401 #  endif
9402    int F77_DUMMY_MAIN() { return 1; }
9403 #endif
9404 int
9405 main ()
9406 {
9407 if ((uint64_t *) 0)
9408   return 0;
9409 if (sizeof (uint64_t))
9410   return 0;
9411   ;
9412   return 0;
9413 }
9414 _ACEOF
9415 rm -f conftest.$ac_objext
9416 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9417   (eval $ac_compile) 2>&5
9418   ac_status=$?
9419   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9420   (exit $ac_status); } &&
9421          { ac_try='test -s conftest.$ac_objext'
9422   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9423   (eval $ac_try) 2>&5
9424   ac_status=$?
9425   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9426   (exit $ac_status); }; }; then
9427   ac_cv_type_uint64_t=yes
9428 else
9429   echo "$as_me: failed program was:" >&5
9430 cat conftest.$ac_ext >&5
9431 ac_cv_type_uint64_t=no
9432 fi
9433 rm -f conftest.$ac_objext conftest.$ac_ext
9434 fi
9435 echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
9436 echo "${ECHO_T}$ac_cv_type_uint64_t" >&6
9437 if test $ac_cv_type_uint64_t = yes; then
9438
9439 cat >>confdefs.h <<_ACEOF
9440 #define HAVE_UINT64_T 1
9441 _ACEOF
9442
9443
9444 else
9445   { { echo "$as_me:$LINENO: error: Type uint64_t required but not found" >&5
9446 echo "$as_me: error: Type uint64_t required but not found" >&2;}
9447    { (exit 1); exit 1; }; }
9448 fi
9449
9450 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
9451 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
9452 if test "${ac_cv_header_time+set}" = set; then
9453   echo $ECHO_N "(cached) $ECHO_C" >&6
9454 else
9455   cat >conftest.$ac_ext <<_ACEOF
9456 #line $LINENO "configure"
9457 #include "confdefs.h"
9458 #include <sys/types.h>
9459 #include <sys/time.h>
9460 #include <time.h>
9461
9462 #ifdef F77_DUMMY_MAIN
9463 #  ifdef __cplusplus
9464      extern "C"
9465 #  endif
9466    int F77_DUMMY_MAIN() { return 1; }
9467 #endif
9468 int
9469 main ()
9470 {
9471 if ((struct tm *) 0)
9472 return 0;
9473   ;
9474   return 0;
9475 }
9476 _ACEOF
9477 rm -f conftest.$ac_objext
9478 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9479   (eval $ac_compile) 2>&5
9480   ac_status=$?
9481   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9482   (exit $ac_status); } &&
9483          { ac_try='test -s conftest.$ac_objext'
9484   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9485   (eval $ac_try) 2>&5
9486   ac_status=$?
9487   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9488   (exit $ac_status); }; }; then
9489   ac_cv_header_time=yes
9490 else
9491   echo "$as_me: failed program was:" >&5
9492 cat conftest.$ac_ext >&5
9493 ac_cv_header_time=no
9494 fi
9495 rm -f conftest.$ac_objext conftest.$ac_ext
9496 fi
9497 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
9498 echo "${ECHO_T}$ac_cv_header_time" >&6
9499 if test $ac_cv_header_time = yes; then
9500
9501 cat >>confdefs.h <<\_ACEOF
9502 #define TIME_WITH_SYS_TIME 1
9503 _ACEOF
9504
9505 fi
9506
9507 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
9508 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
9509 if test "${ac_cv_struct_tm+set}" = set; then
9510   echo $ECHO_N "(cached) $ECHO_C" >&6
9511 else
9512   cat >conftest.$ac_ext <<_ACEOF
9513 #line $LINENO "configure"
9514 #include "confdefs.h"
9515 #include <sys/types.h>
9516 #include <time.h>
9517
9518 #ifdef F77_DUMMY_MAIN
9519 #  ifdef __cplusplus
9520      extern "C"
9521 #  endif
9522    int F77_DUMMY_MAIN() { return 1; }
9523 #endif
9524 int
9525 main ()
9526 {
9527 struct tm *tp; tp->tm_sec;
9528   ;
9529   return 0;
9530 }
9531 _ACEOF
9532 rm -f conftest.$ac_objext
9533 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9534   (eval $ac_compile) 2>&5
9535   ac_status=$?
9536   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9537   (exit $ac_status); } &&
9538          { ac_try='test -s conftest.$ac_objext'
9539   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9540   (eval $ac_try) 2>&5
9541   ac_status=$?
9542   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9543   (exit $ac_status); }; }; then
9544   ac_cv_struct_tm=time.h
9545 else
9546   echo "$as_me: failed program was:" >&5
9547 cat conftest.$ac_ext >&5
9548 ac_cv_struct_tm=sys/time.h
9549 fi
9550 rm -f conftest.$ac_objext conftest.$ac_ext
9551 fi
9552 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
9553 echo "${ECHO_T}$ac_cv_struct_tm" >&6
9554 if test $ac_cv_struct_tm = sys/time.h; then
9555
9556 cat >>confdefs.h <<\_ACEOF
9557 #define TM_IN_SYS_TIME 1
9558 _ACEOF
9559
9560 fi
9561
9562
9563
9564 echo "$as_me:$LINENO: checking whether the compiler implements namespaces" >&5
9565 echo $ECHO_N "checking whether the compiler implements namespaces... $ECHO_C" >&6
9566 if test "${ac_cv_cxx_namespaces+set}" = set; then
9567   echo $ECHO_N "(cached) $ECHO_C" >&6
9568 else
9569
9570
9571  ac_ext=cc
9572 ac_cpp='$CXXCPP $CPPFLAGS'
9573 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9574 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9575 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9576
9577  cat >conftest.$ac_ext <<_ACEOF
9578 #line $LINENO "configure"
9579 #include "confdefs.h"
9580 namespace Outer { namespace Inner { int i = 0; }}
9581 #ifdef F77_DUMMY_MAIN
9582 #  ifdef __cplusplus
9583      extern "C"
9584 #  endif
9585    int F77_DUMMY_MAIN() { return 1; }
9586 #endif
9587 int
9588 main ()
9589 {
9590 using namespace Outer::Inner; return i;
9591   ;
9592   return 0;
9593 }
9594 _ACEOF
9595 rm -f conftest.$ac_objext
9596 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9597   (eval $ac_compile) 2>&5
9598   ac_status=$?
9599   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9600   (exit $ac_status); } &&
9601          { ac_try='test -s conftest.$ac_objext'
9602   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9603   (eval $ac_try) 2>&5
9604   ac_status=$?
9605   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9606   (exit $ac_status); }; }; then
9607   ac_cv_cxx_namespaces=yes
9608 else
9609   echo "$as_me: failed program was:" >&5
9610 cat conftest.$ac_ext >&5
9611 ac_cv_cxx_namespaces=no
9612 fi
9613 rm -f conftest.$ac_objext conftest.$ac_ext
9614  ac_ext=c
9615 ac_cpp='$CPP $CPPFLAGS'
9616 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9617 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9618 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9619
9620
9621 fi
9622 echo "$as_me:$LINENO: result: $ac_cv_cxx_namespaces" >&5
9623 echo "${ECHO_T}$ac_cv_cxx_namespaces" >&6
9624 if test "$ac_cv_cxx_namespaces" = yes; then
9625
9626 cat >>confdefs.h <<\_ACEOF
9627 #define HAVE_NAMESPACES
9628 _ACEOF
9629
9630 fi
9631
9632 echo "$as_me:$LINENO: checking whether the compiler has ext/hash_map" >&5
9633 echo $ECHO_N "checking whether the compiler has ext/hash_map... $ECHO_C" >&6
9634 if test "${ac_cv_cxx_have_ext_hash_map+set}" = set; then
9635   echo $ECHO_N "(cached) $ECHO_C" >&6
9636 else
9637
9638
9639
9640   ac_ext=cc
9641 ac_cpp='$CXXCPP $CPPFLAGS'
9642 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9643 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9644 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9645
9646   cat >conftest.$ac_ext <<_ACEOF
9647 #line $LINENO "configure"
9648 #include "confdefs.h"
9649 #include <ext/hash_map>
9650 #ifdef HAVE_NAMESPACES
9651 using namespace std;
9652 #endif
9653 #ifdef F77_DUMMY_MAIN
9654 #  ifdef __cplusplus
9655      extern "C"
9656 #  endif
9657    int F77_DUMMY_MAIN() { return 1; }
9658 #endif
9659 int
9660 main ()
9661 {
9662 hash_map<int, int> t; return 0;
9663   ;
9664   return 0;
9665 }
9666 _ACEOF
9667 rm -f conftest.$ac_objext
9668 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9669   (eval $ac_compile) 2>&5
9670   ac_status=$?
9671   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9672   (exit $ac_status); } &&
9673          { ac_try='test -s conftest.$ac_objext'
9674   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9675   (eval $ac_try) 2>&5
9676   ac_status=$?
9677   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9678   (exit $ac_status); }; }; then
9679   ac_cv_cxx_have_ext_hash_map=std
9680 else
9681   echo "$as_me: failed program was:" >&5
9682 cat conftest.$ac_ext >&5
9683 ac_cv_cxx_have_ext_hash_map=no
9684 fi
9685 rm -f conftest.$ac_objext conftest.$ac_ext
9686   cat >conftest.$ac_ext <<_ACEOF
9687 #line $LINENO "configure"
9688 #include "confdefs.h"
9689 #include <ext/hash_map>
9690 #ifdef HAVE_NAMESPACES
9691 using namespace __gnu_cxx;
9692 #endif
9693 #ifdef F77_DUMMY_MAIN
9694 #  ifdef __cplusplus
9695      extern "C"
9696 #  endif
9697    int F77_DUMMY_MAIN() { return 1; }
9698 #endif
9699 int
9700 main ()
9701 {
9702 hash_map<int, int> t; return 0;
9703   ;
9704   return 0;
9705 }
9706 _ACEOF
9707 rm -f conftest.$ac_objext
9708 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9709   (eval $ac_compile) 2>&5
9710   ac_status=$?
9711   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9712   (exit $ac_status); } &&
9713          { ac_try='test -s conftest.$ac_objext'
9714   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9715   (eval $ac_try) 2>&5
9716   ac_status=$?
9717   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9718   (exit $ac_status); }; }; then
9719   ac_cv_cxx_have_ext_hash_map=gnu
9720 else
9721   echo "$as_me: failed program was:" >&5
9722 cat conftest.$ac_ext >&5
9723 ac_cv_cxx_have_ext_hash_map=no
9724 fi
9725 rm -f conftest.$ac_objext conftest.$ac_ext
9726   ac_ext=c
9727 ac_cpp='$CPP $CPPFLAGS'
9728 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9729 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9730 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9731
9732
9733 fi
9734 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_ext_hash_map" >&5
9735 echo "${ECHO_T}$ac_cv_cxx_have_ext_hash_map" >&6
9736 if test "$ac_cv_cxx_have_ext_hash_map" = std; then
9737
9738 cat >>confdefs.h <<\_ACEOF
9739 #define HAVE_STD_EXT_HASH_MAP
9740 _ACEOF
9741
9742 fi
9743 if test "$ac_cv_cxx_have_ext_hash_map" = gnu; then
9744
9745 cat >>confdefs.h <<\_ACEOF
9746 #define HAVE_GNU_EXT_HASH_MAP
9747 _ACEOF
9748
9749 fi
9750
9751 echo "$as_me:$LINENO: checking whether the compiler has ext/hash_set" >&5
9752 echo $ECHO_N "checking whether the compiler has ext/hash_set... $ECHO_C" >&6
9753 if test "${ac_cv_cxx_have_ext_hash_set+set}" = set; then
9754   echo $ECHO_N "(cached) $ECHO_C" >&6
9755 else
9756
9757
9758
9759   ac_ext=cc
9760 ac_cpp='$CXXCPP $CPPFLAGS'
9761 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9762 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9763 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9764
9765   cat >conftest.$ac_ext <<_ACEOF
9766 #line $LINENO "configure"
9767 #include "confdefs.h"
9768 #include <ext/hash_set>
9769 #ifdef HAVE_NAMESPACES
9770 using namespace std;
9771 #endif
9772 #ifdef F77_DUMMY_MAIN
9773 #  ifdef __cplusplus
9774      extern "C"
9775 #  endif
9776    int F77_DUMMY_MAIN() { return 1; }
9777 #endif
9778 int
9779 main ()
9780 {
9781 hash_set<int> t; return 0;
9782   ;
9783   return 0;
9784 }
9785 _ACEOF
9786 rm -f conftest.$ac_objext
9787 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9788   (eval $ac_compile) 2>&5
9789   ac_status=$?
9790   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9791   (exit $ac_status); } &&
9792          { ac_try='test -s conftest.$ac_objext'
9793   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9794   (eval $ac_try) 2>&5
9795   ac_status=$?
9796   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9797   (exit $ac_status); }; }; then
9798   ac_cv_cxx_have_ext_hash_set=std
9799 else
9800   echo "$as_me: failed program was:" >&5
9801 cat conftest.$ac_ext >&5
9802 ac_cv_cxx_have_ext_hash_set=no
9803 fi
9804 rm -f conftest.$ac_objext conftest.$ac_ext
9805   cat >conftest.$ac_ext <<_ACEOF
9806 #line $LINENO "configure"
9807 #include "confdefs.h"
9808 #include <ext/hash_set>
9809 #ifdef HAVE_NAMESPACES
9810 using namespace __gnu_cxx;
9811 #endif
9812 #ifdef F77_DUMMY_MAIN
9813 #  ifdef __cplusplus
9814      extern "C"
9815 #  endif
9816    int F77_DUMMY_MAIN() { return 1; }
9817 #endif
9818 int
9819 main ()
9820 {
9821 hash_set<int> t; return 0;
9822   ;
9823   return 0;
9824 }
9825 _ACEOF
9826 rm -f conftest.$ac_objext
9827 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9828   (eval $ac_compile) 2>&5
9829   ac_status=$?
9830   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9831   (exit $ac_status); } &&
9832          { ac_try='test -s conftest.$ac_objext'
9833   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9834   (eval $ac_try) 2>&5
9835   ac_status=$?
9836   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9837   (exit $ac_status); }; }; then
9838   ac_cv_cxx_have_ext_hash_set=gnu
9839 else
9840   echo "$as_me: failed program was:" >&5
9841 cat conftest.$ac_ext >&5
9842 ac_cv_cxx_have_ext_hash_set=no
9843 fi
9844 rm -f conftest.$ac_objext conftest.$ac_ext
9845   ac_ext=c
9846 ac_cpp='$CPP $CPPFLAGS'
9847 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9848 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9849 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9850
9851
9852 fi
9853 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_ext_hash_set" >&5
9854 echo "${ECHO_T}$ac_cv_cxx_have_ext_hash_set" >&6
9855 if test "$ac_cv_cxx_have_ext_hash_set" = std; then
9856
9857 cat >>confdefs.h <<\_ACEOF
9858 #define HAVE_STD_EXT_HASH_SET
9859 _ACEOF
9860
9861 fi
9862 if test "$ac_cv_cxx_have_ext_hash_set" = gnu; then
9863
9864 cat >>confdefs.h <<\_ACEOF
9865 #define HAVE_GNU_EXT_HASH_SET
9866 _ACEOF
9867
9868 fi
9869
9870 echo "$as_me:$LINENO: checking whether the compiler has ext/slist" >&5
9871 echo $ECHO_N "checking whether the compiler has ext/slist... $ECHO_C" >&6
9872 if test "${ac_cv_cxx_have_ext_slist+set}" = set; then
9873   echo $ECHO_N "(cached) $ECHO_C" >&6
9874 else
9875
9876
9877
9878   ac_ext=cc
9879 ac_cpp='$CXXCPP $CPPFLAGS'
9880 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9881 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9882 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9883
9884   cat >conftest.$ac_ext <<_ACEOF
9885 #line $LINENO "configure"
9886 #include "confdefs.h"
9887 #include <ext/slist>
9888 #ifdef HAVE_NAMESPACES
9889 using namespace std;
9890 #endif
9891 #ifdef F77_DUMMY_MAIN
9892 #  ifdef __cplusplus
9893      extern "C"
9894 #  endif
9895    int F77_DUMMY_MAIN() { return 1; }
9896 #endif
9897 int
9898 main ()
9899 {
9900 slist<int> s; return 0;
9901   ;
9902   return 0;
9903 }
9904 _ACEOF
9905 rm -f conftest.$ac_objext
9906 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9907   (eval $ac_compile) 2>&5
9908   ac_status=$?
9909   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9910   (exit $ac_status); } &&
9911          { ac_try='test -s conftest.$ac_objext'
9912   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9913   (eval $ac_try) 2>&5
9914   ac_status=$?
9915   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9916   (exit $ac_status); }; }; then
9917   ac_cv_cxx_have_ext_slist=std
9918 else
9919   echo "$as_me: failed program was:" >&5
9920 cat conftest.$ac_ext >&5
9921 ac_cv_cxx_have_ext_slist=no
9922 fi
9923 rm -f conftest.$ac_objext conftest.$ac_ext
9924   cat >conftest.$ac_ext <<_ACEOF
9925 #line $LINENO "configure"
9926 #include "confdefs.h"
9927 #include <ext/slist>
9928 #ifdef HAVE_NAMESPACES
9929 using namespace __gnu_cxx;
9930 #endif
9931 #ifdef F77_DUMMY_MAIN
9932 #  ifdef __cplusplus
9933      extern "C"
9934 #  endif
9935    int F77_DUMMY_MAIN() { return 1; }
9936 #endif
9937 int
9938 main ()
9939 {
9940 slist<int> s; return 0;
9941   ;
9942   return 0;
9943 }
9944 _ACEOF
9945 rm -f conftest.$ac_objext
9946 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9947   (eval $ac_compile) 2>&5
9948   ac_status=$?
9949   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9950   (exit $ac_status); } &&
9951          { ac_try='test -s conftest.$ac_objext'
9952   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9953   (eval $ac_try) 2>&5
9954   ac_status=$?
9955   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9956   (exit $ac_status); }; }; then
9957   ac_cv_cxx_have_ext_slist=gnu
9958 else
9959   echo "$as_me: failed program was:" >&5
9960 cat conftest.$ac_ext >&5
9961 ac_cv_cxx_have_ext_slist=no
9962 fi
9963 rm -f conftest.$ac_objext conftest.$ac_ext
9964
9965   ac_ext=c
9966 ac_cpp='$CPP $CPPFLAGS'
9967 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9968 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9969 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9970
9971
9972 fi
9973 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_ext_slist" >&5
9974 echo "${ECHO_T}$ac_cv_cxx_have_ext_slist" >&6
9975 if test "$ac_cv_cxx_have_ext_slist" = std; then
9976
9977 cat >>confdefs.h <<\_ACEOF
9978 #define HAVE_EXT_SLIST std
9979 _ACEOF
9980
9981 fi
9982 if test "$ac_cv_cxx_have_ext_slist" = gnu; then
9983
9984 cat >>confdefs.h <<\_ACEOF
9985 #define HAVE_EXT_SLIST gnu
9986 _ACEOF
9987
9988 fi
9989
9990 echo "$as_me:$LINENO: checking whether the compiler has the standard iterator" >&5
9991 echo $ECHO_N "checking whether the compiler has the standard iterator... $ECHO_C" >&6
9992 if test "${ac_cv_cxx_have_std_iterator+set}" = set; then
9993   echo $ECHO_N "(cached) $ECHO_C" >&6
9994 else
9995
9996
9997
9998   ac_ext=cc
9999 ac_cpp='$CXXCPP $CPPFLAGS'
10000 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10001 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10002 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10003
10004   cat >conftest.$ac_ext <<_ACEOF
10005 #line $LINENO "configure"
10006 #include "confdefs.h"
10007 #include <iterator>
10008 #ifdef HAVE_NAMESPACES
10009 using namespace std;
10010 #endif
10011 #ifdef F77_DUMMY_MAIN
10012 #  ifdef __cplusplus
10013      extern "C"
10014 #  endif
10015    int F77_DUMMY_MAIN() { return 1; }
10016 #endif
10017 int
10018 main ()
10019 {
10020 iterator<int,int,int> t; return 0;
10021   ;
10022   return 0;
10023 }
10024 _ACEOF
10025 rm -f conftest.$ac_objext
10026 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10027   (eval $ac_compile) 2>&5
10028   ac_status=$?
10029   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10030   (exit $ac_status); } &&
10031          { ac_try='test -s conftest.$ac_objext'
10032   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10033   (eval $ac_try) 2>&5
10034   ac_status=$?
10035   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10036   (exit $ac_status); }; }; then
10037   ac_cv_cxx_have_std_iterator=yes
10038 else
10039   echo "$as_me: failed program was:" >&5
10040 cat conftest.$ac_ext >&5
10041 ac_cv_cxx_have_std_iterator=no
10042 fi
10043 rm -f conftest.$ac_objext conftest.$ac_ext
10044   ac_ext=c
10045 ac_cpp='$CPP $CPPFLAGS'
10046 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10047 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10048 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10049
10050
10051 fi
10052 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_iterator" >&5
10053 echo "${ECHO_T}$ac_cv_cxx_have_std_iterator" >&6
10054 if test "$ac_cv_cxx_have_std_iterator" = yes; then
10055
10056 cat >>confdefs.h <<\_ACEOF
10057 #define HAVE_STD_ITERATOR
10058 _ACEOF
10059
10060 fi
10061
10062 echo "$as_me:$LINENO: checking whether the compiler has the bidirectional iterator" >&5
10063 echo $ECHO_N "checking whether the compiler has the bidirectional iterator... $ECHO_C" >&6
10064 if test "${ac_cv_cxx_have_bi_iterator+set}" = set; then
10065   echo $ECHO_N "(cached) $ECHO_C" >&6
10066 else
10067
10068
10069
10070   ac_ext=cc
10071 ac_cpp='$CXXCPP $CPPFLAGS'
10072 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10073 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10074 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10075
10076   cat >conftest.$ac_ext <<_ACEOF
10077 #line $LINENO "configure"
10078 #include "confdefs.h"
10079 #include <iterator>
10080 #ifdef HAVE_NAMESPACES
10081 using namespace std;
10082 #endif
10083 #ifdef F77_DUMMY_MAIN
10084 #  ifdef __cplusplus
10085      extern "C"
10086 #  endif
10087    int F77_DUMMY_MAIN() { return 1; }
10088 #endif
10089 int
10090 main ()
10091 {
10092 bidirectional_iterator<int,int,int> t; return 0;
10093   ;
10094   return 0;
10095 }
10096 _ACEOF
10097 rm -f conftest.$ac_objext
10098 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10099   (eval $ac_compile) 2>&5
10100   ac_status=$?
10101   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10102   (exit $ac_status); } &&
10103          { ac_try='test -s conftest.$ac_objext'
10104   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10105   (eval $ac_try) 2>&5
10106   ac_status=$?
10107   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10108   (exit $ac_status); }; }; then
10109   ac_cv_cxx_have_bi_iterator=yes
10110 else
10111   echo "$as_me: failed program was:" >&5
10112 cat conftest.$ac_ext >&5
10113 ac_cv_cxx_have_bi_iterator=no
10114 fi
10115 rm -f conftest.$ac_objext conftest.$ac_ext
10116   ac_ext=c
10117 ac_cpp='$CPP $CPPFLAGS'
10118 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10119 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10120 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10121
10122
10123 fi
10124 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_bi_iterator" >&5
10125 echo "${ECHO_T}$ac_cv_cxx_have_bi_iterator" >&6
10126 if test "$ac_cv_cxx_have_bi_iterator" = yes; then
10127
10128 cat >>confdefs.h <<\_ACEOF
10129 #define HAVE_BI_ITERATOR
10130 _ACEOF
10131
10132 fi
10133
10134 echo "$as_me:$LINENO: checking whether the compiler has forward iterators" >&5
10135 echo $ECHO_N "checking whether the compiler has forward iterators... $ECHO_C" >&6
10136 if test "${ac_cv_cxx_have_fwd_iterator+set}" = set; then
10137   echo $ECHO_N "(cached) $ECHO_C" >&6
10138 else
10139
10140
10141
10142   ac_ext=cc
10143 ac_cpp='$CXXCPP $CPPFLAGS'
10144 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10145 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10146 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10147
10148   cat >conftest.$ac_ext <<_ACEOF
10149 #line $LINENO "configure"
10150 #include "confdefs.h"
10151 #include <iterator>
10152 #ifdef HAVE_NAMESPACES
10153 using namespace std;
10154 #endif
10155 #ifdef F77_DUMMY_MAIN
10156 #  ifdef __cplusplus
10157      extern "C"
10158 #  endif
10159    int F77_DUMMY_MAIN() { return 1; }
10160 #endif
10161 int
10162 main ()
10163 {
10164 forward_iterator<int,int,int> t; return 0;
10165   ;
10166   return 0;
10167 }
10168 _ACEOF
10169 rm -f conftest.$ac_objext
10170 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10171   (eval $ac_compile) 2>&5
10172   ac_status=$?
10173   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10174   (exit $ac_status); } &&
10175          { ac_try='test -s conftest.$ac_objext'
10176   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10177   (eval $ac_try) 2>&5
10178   ac_status=$?
10179   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10180   (exit $ac_status); }; }; then
10181   ac_cv_cxx_have_fwd_iterator=yes
10182 else
10183   echo "$as_me: failed program was:" >&5
10184 cat conftest.$ac_ext >&5
10185 ac_cv_cxx_have_fwd_iterator=no
10186 fi
10187 rm -f conftest.$ac_objext conftest.$ac_ext
10188   ac_ext=c
10189 ac_cpp='$CPP $CPPFLAGS'
10190 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10191 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10192 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10193
10194
10195 fi
10196 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_fwd_iterator" >&5
10197 echo "${ECHO_T}$ac_cv_cxx_have_fwd_iterator" >&6
10198 if test "$ac_cv_cxx_have_fwd_iterator" = yes; then
10199
10200 cat >>confdefs.h <<\_ACEOF
10201 #define HAVE_FWD_ITERATOR
10202 _ACEOF
10203
10204 fi
10205
10206
10207 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
10208 # for constant arguments.  Useless!
10209 echo "$as_me:$LINENO: checking for working alloca.h" >&5
10210 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
10211 if test "${ac_cv_working_alloca_h+set}" = set; then
10212   echo $ECHO_N "(cached) $ECHO_C" >&6
10213 else
10214   cat >conftest.$ac_ext <<_ACEOF
10215 #line $LINENO "configure"
10216 #include "confdefs.h"
10217 #include <alloca.h>
10218 #ifdef F77_DUMMY_MAIN
10219 #  ifdef __cplusplus
10220      extern "C"
10221 #  endif
10222    int F77_DUMMY_MAIN() { return 1; }
10223 #endif
10224 int
10225 main ()
10226 {
10227 char *p = (char *) alloca (2 * sizeof (int));
10228   ;
10229   return 0;
10230 }
10231 _ACEOF
10232 rm -f conftest.$ac_objext conftest$ac_exeext
10233 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10234   (eval $ac_link) 2>&5
10235   ac_status=$?
10236   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10237   (exit $ac_status); } &&
10238          { ac_try='test -s conftest$ac_exeext'
10239   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10240   (eval $ac_try) 2>&5
10241   ac_status=$?
10242   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10243   (exit $ac_status); }; }; then
10244   ac_cv_working_alloca_h=yes
10245 else
10246   echo "$as_me: failed program was:" >&5
10247 cat conftest.$ac_ext >&5
10248 ac_cv_working_alloca_h=no
10249 fi
10250 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10251 fi
10252 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
10253 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
10254 if test $ac_cv_working_alloca_h = yes; then
10255
10256 cat >>confdefs.h <<\_ACEOF
10257 #define HAVE_ALLOCA_H 1
10258 _ACEOF
10259
10260 fi
10261
10262 echo "$as_me:$LINENO: checking for alloca" >&5
10263 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
10264 if test "${ac_cv_func_alloca_works+set}" = set; then
10265   echo $ECHO_N "(cached) $ECHO_C" >&6
10266 else
10267   cat >conftest.$ac_ext <<_ACEOF
10268 #line $LINENO "configure"
10269 #include "confdefs.h"
10270 #ifdef __GNUC__
10271 # define alloca __builtin_alloca
10272 #else
10273 # ifdef _MSC_VER
10274 #  include <malloc.h>
10275 #  define alloca _alloca
10276 # else
10277 #  if HAVE_ALLOCA_H
10278 #   include <alloca.h>
10279 #  else
10280 #   ifdef _AIX
10281  #pragma alloca
10282 #   else
10283 #    ifndef alloca /* predefined by HP cc +Olibcalls */
10284 char *alloca ();
10285 #    endif
10286 #   endif
10287 #  endif
10288 # endif
10289 #endif
10290
10291 #ifdef F77_DUMMY_MAIN
10292 #  ifdef __cplusplus
10293      extern "C"
10294 #  endif
10295    int F77_DUMMY_MAIN() { return 1; }
10296 #endif
10297 int
10298 main ()
10299 {
10300 char *p = (char *) alloca (1);
10301   ;
10302   return 0;
10303 }
10304 _ACEOF
10305 rm -f conftest.$ac_objext conftest$ac_exeext
10306 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10307   (eval $ac_link) 2>&5
10308   ac_status=$?
10309   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10310   (exit $ac_status); } &&
10311          { ac_try='test -s conftest$ac_exeext'
10312   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10313   (eval $ac_try) 2>&5
10314   ac_status=$?
10315   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10316   (exit $ac_status); }; }; then
10317   ac_cv_func_alloca_works=yes
10318 else
10319   echo "$as_me: failed program was:" >&5
10320 cat conftest.$ac_ext >&5
10321 ac_cv_func_alloca_works=no
10322 fi
10323 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10324 fi
10325 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
10326 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
10327
10328 if test $ac_cv_func_alloca_works = yes; then
10329
10330 cat >>confdefs.h <<\_ACEOF
10331 #define HAVE_ALLOCA 1
10332 _ACEOF
10333
10334 else
10335   # The SVR3 libPW and SVR4 libucb both contain incompatible functions
10336 # that cause trouble.  Some versions do not even contain alloca or
10337 # contain a buggy version.  If you still want to use their alloca,
10338 # use ar to extract alloca.o from them instead of compiling alloca.c.
10339
10340 ALLOCA=alloca.$ac_objext
10341
10342 cat >>confdefs.h <<\_ACEOF
10343 #define C_ALLOCA 1
10344 _ACEOF
10345
10346
10347 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
10348 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
10349 if test "${ac_cv_os_cray+set}" = set; then
10350   echo $ECHO_N "(cached) $ECHO_C" >&6
10351 else
10352   cat >conftest.$ac_ext <<_ACEOF
10353 #line $LINENO "configure"
10354 #include "confdefs.h"
10355 #if defined(CRAY) && ! defined(CRAY2)
10356 webecray
10357 #else
10358 wenotbecray
10359 #endif
10360
10361 _ACEOF
10362 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10363   egrep "webecray" >/dev/null 2>&1; then
10364   ac_cv_os_cray=yes
10365 else
10366   ac_cv_os_cray=no
10367 fi
10368 rm -f conftest*
10369
10370 fi
10371 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
10372 echo "${ECHO_T}$ac_cv_os_cray" >&6
10373 if test $ac_cv_os_cray = yes; then
10374   for ac_func in _getb67 GETB67 getb67; do
10375     as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10376 echo "$as_me:$LINENO: checking for $ac_func" >&5
10377 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10378 if eval "test \"\${$as_ac_var+set}\" = set"; then
10379   echo $ECHO_N "(cached) $ECHO_C" >&6
10380 else
10381   cat >conftest.$ac_ext <<_ACEOF
10382 #line $LINENO "configure"
10383 #include "confdefs.h"
10384 /* System header to define __stub macros and hopefully few prototypes,
10385     which can conflict with char $ac_func (); below.  */
10386 #include <assert.h>
10387 /* Override any gcc2 internal prototype to avoid an error.  */
10388 #ifdef __cplusplus
10389 extern "C"
10390 #endif
10391 /* We use char because int might match the return type of a gcc2
10392    builtin and then its argument prototype would still apply.  */
10393 char $ac_func ();
10394 char (*f) ();
10395
10396 #ifdef F77_DUMMY_MAIN
10397 #  ifdef __cplusplus
10398      extern "C"
10399 #  endif
10400    int F77_DUMMY_MAIN() { return 1; }
10401 #endif
10402 int
10403 main ()
10404 {
10405 /* The GNU C library defines this for functions which it implements
10406     to always fail with ENOSYS.  Some functions are actually named
10407     something starting with __ and the normal name is an alias.  */
10408 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10409 choke me
10410 #else
10411 f = $ac_func;
10412 #endif
10413
10414   ;
10415   return 0;
10416 }
10417 _ACEOF
10418 rm -f conftest.$ac_objext conftest$ac_exeext
10419 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10420   (eval $ac_link) 2>&5
10421   ac_status=$?
10422   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10423   (exit $ac_status); } &&
10424          { ac_try='test -s conftest$ac_exeext'
10425   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10426   (eval $ac_try) 2>&5
10427   ac_status=$?
10428   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10429   (exit $ac_status); }; }; then
10430   eval "$as_ac_var=yes"
10431 else
10432   echo "$as_me: failed program was:" >&5
10433 cat conftest.$ac_ext >&5
10434 eval "$as_ac_var=no"
10435 fi
10436 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10437 fi
10438 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10439 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10440 if test `eval echo '${'$as_ac_var'}'` = yes; then
10441
10442 cat >>confdefs.h <<_ACEOF
10443 #define CRAY_STACKSEG_END $ac_func
10444 _ACEOF
10445
10446     break
10447 fi
10448
10449   done
10450 fi
10451
10452 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
10453 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
10454 if test "${ac_cv_c_stack_direction+set}" = set; then
10455   echo $ECHO_N "(cached) $ECHO_C" >&6
10456 else
10457   if test "$cross_compiling" = yes; then
10458   ac_cv_c_stack_direction=0
10459 else
10460   cat >conftest.$ac_ext <<_ACEOF
10461 #line $LINENO "configure"
10462 #include "confdefs.h"
10463 int
10464 find_stack_direction ()
10465 {
10466   static char *addr = 0;
10467   auto char dummy;
10468   if (addr == 0)
10469     {
10470       addr = &dummy;
10471       return find_stack_direction ();
10472     }
10473   else
10474     return (&dummy > addr) ? 1 : -1;
10475 }
10476
10477 int
10478 main ()
10479 {
10480   exit (find_stack_direction () < 0);
10481 }
10482 _ACEOF
10483 rm -f conftest$ac_exeext
10484 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10485   (eval $ac_link) 2>&5
10486   ac_status=$?
10487   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10488   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10489   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10490   (eval $ac_try) 2>&5
10491   ac_status=$?
10492   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10493   (exit $ac_status); }; }; then
10494   ac_cv_c_stack_direction=1
10495 else
10496   echo "$as_me: program exited with status $ac_status" >&5
10497 echo "$as_me: failed program was:" >&5
10498 cat conftest.$ac_ext >&5
10499 ( exit $ac_status )
10500 ac_cv_c_stack_direction=-1
10501 fi
10502 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10503 fi
10504 fi
10505 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
10506 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
10507
10508 cat >>confdefs.h <<_ACEOF
10509 #define STACK_DIRECTION $ac_cv_c_stack_direction
10510 _ACEOF
10511
10512
10513 fi
10514
10515 if test $ac_cv_c_compiler_gnu = yes; then
10516     echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
10517 echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6
10518 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
10519   echo $ECHO_N "(cached) $ECHO_C" >&6
10520 else
10521     ac_pattern="Autoconf.*'x'"
10522   cat >conftest.$ac_ext <<_ACEOF
10523 #line $LINENO "configure"
10524 #include "confdefs.h"
10525 #include <sgtty.h>
10526 Autoconf TIOCGETP
10527 _ACEOF
10528 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10529   egrep "$ac_pattern" >/dev/null 2>&1; then
10530   ac_cv_prog_gcc_traditional=yes
10531 else
10532   ac_cv_prog_gcc_traditional=no
10533 fi
10534 rm -f conftest*
10535
10536
10537   if test $ac_cv_prog_gcc_traditional = no; then
10538     cat >conftest.$ac_ext <<_ACEOF
10539 #line $LINENO "configure"
10540 #include "confdefs.h"
10541 #include <termio.h>
10542 Autoconf TCGETA
10543 _ACEOF
10544 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10545   egrep "$ac_pattern" >/dev/null 2>&1; then
10546   ac_cv_prog_gcc_traditional=yes
10547 fi
10548 rm -f conftest*
10549
10550   fi
10551 fi
10552 echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
10553 echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6
10554   if test $ac_cv_prog_gcc_traditional = yes; then
10555     CC="$CC -traditional"
10556   fi
10557 fi
10558
10559 echo "$as_me:$LINENO: checking for working memcmp" >&5
10560 echo $ECHO_N "checking for working memcmp... $ECHO_C" >&6
10561 if test "${ac_cv_func_memcmp_working+set}" = set; then
10562   echo $ECHO_N "(cached) $ECHO_C" >&6
10563 else
10564   if test "$cross_compiling" = yes; then
10565   ac_cv_func_memcmp_working=no
10566 else
10567   cat >conftest.$ac_ext <<_ACEOF
10568 #line $LINENO "configure"
10569 #include "confdefs.h"
10570
10571 #ifdef F77_DUMMY_MAIN
10572 #  ifdef __cplusplus
10573      extern "C"
10574 #  endif
10575    int F77_DUMMY_MAIN() { return 1; }
10576 #endif
10577 int
10578 main ()
10579 {
10580
10581   /* Some versions of memcmp are not 8-bit clean.  */
10582   char c0 = 0x40, c1 = 0x80, c2 = 0x81;
10583   if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
10584     exit (1);
10585
10586   /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
10587      or more and with at least one buffer not starting on a 4-byte boundary.
10588      William Lewis provided this test program.   */
10589   {
10590     char foo[21];
10591     char bar[21];
10592     int i;
10593     for (i = 0; i < 4; i++)
10594       {
10595         char *a = foo + i;
10596         char *b = bar + i;
10597         strcpy (a, "--------01111111");
10598         strcpy (b, "--------10000000");
10599         if (memcmp (a, b, 16) >= 0)
10600           exit (1);
10601       }
10602     exit (0);
10603   }
10604
10605   ;
10606   return 0;
10607 }
10608 _ACEOF
10609 rm -f conftest$ac_exeext
10610 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10611   (eval $ac_link) 2>&5
10612   ac_status=$?
10613   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10614   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10615   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10616   (eval $ac_try) 2>&5
10617   ac_status=$?
10618   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10619   (exit $ac_status); }; }; then
10620   ac_cv_func_memcmp_working=yes
10621 else
10622   echo "$as_me: program exited with status $ac_status" >&5
10623 echo "$as_me: failed program was:" >&5
10624 cat conftest.$ac_ext >&5
10625 ( exit $ac_status )
10626 ac_cv_func_memcmp_working=no
10627 fi
10628 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10629 fi
10630 fi
10631 echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
10632 echo "${ECHO_T}$ac_cv_func_memcmp_working" >&6
10633 test $ac_cv_func_memcmp_working = no && LIBOBJS="$LIBOBJS memcmp.$ac_objext"
10634
10635
10636
10637 for ac_header in stdlib.h unistd.h
10638 do
10639 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10640 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10641   echo "$as_me:$LINENO: checking for $ac_header" >&5
10642 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10643 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10644   echo $ECHO_N "(cached) $ECHO_C" >&6
10645 fi
10646 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10647 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10648 else
10649   # Is the header compilable?
10650 echo "$as_me:$LINENO: checking $ac_header usability" >&5
10651 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10652 cat >conftest.$ac_ext <<_ACEOF
10653 #line $LINENO "configure"
10654 #include "confdefs.h"
10655 $ac_includes_default
10656 #include <$ac_header>
10657 _ACEOF
10658 rm -f conftest.$ac_objext
10659 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10660   (eval $ac_compile) 2>&5
10661   ac_status=$?
10662   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10663   (exit $ac_status); } &&
10664          { ac_try='test -s conftest.$ac_objext'
10665   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10666   (eval $ac_try) 2>&5
10667   ac_status=$?
10668   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10669   (exit $ac_status); }; }; then
10670   ac_header_compiler=yes
10671 else
10672   echo "$as_me: failed program was:" >&5
10673 cat conftest.$ac_ext >&5
10674 ac_header_compiler=no
10675 fi
10676 rm -f conftest.$ac_objext conftest.$ac_ext
10677 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10678 echo "${ECHO_T}$ac_header_compiler" >&6
10679
10680 # Is the header present?
10681 echo "$as_me:$LINENO: checking $ac_header presence" >&5
10682 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10683 cat >conftest.$ac_ext <<_ACEOF
10684 #line $LINENO "configure"
10685 #include "confdefs.h"
10686 #include <$ac_header>
10687 _ACEOF
10688 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10689   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10690   ac_status=$?
10691   egrep -v '^ *\+' conftest.er1 >conftest.err
10692   rm -f conftest.er1
10693   cat conftest.err >&5
10694   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10695   (exit $ac_status); } >/dev/null; then
10696   if test -s conftest.err; then
10697     ac_cpp_err=$ac_c_preproc_warn_flag
10698   else
10699     ac_cpp_err=
10700   fi
10701 else
10702   ac_cpp_err=yes
10703 fi
10704 if test -z "$ac_cpp_err"; then
10705   ac_header_preproc=yes
10706 else
10707   echo "$as_me: failed program was:" >&5
10708   cat conftest.$ac_ext >&5
10709   ac_header_preproc=no
10710 fi
10711 rm -f conftest.err conftest.$ac_ext
10712 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10713 echo "${ECHO_T}$ac_header_preproc" >&6
10714
10715 # So?  What about this header?
10716 case $ac_header_compiler:$ac_header_preproc in
10717   yes:no )
10718     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10719 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10720     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10721 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
10722   no:yes )
10723     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10724 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10725     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10726 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10727     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10728 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
10729 esac
10730 echo "$as_me:$LINENO: checking for $ac_header" >&5
10731 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10732 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10733   echo $ECHO_N "(cached) $ECHO_C" >&6
10734 else
10735   eval "$as_ac_Header=$ac_header_preproc"
10736 fi
10737 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10738 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10739
10740 fi
10741 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10742   cat >>confdefs.h <<_ACEOF
10743 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10744 _ACEOF
10745
10746 fi
10747
10748 done
10749
10750
10751 for ac_func in getpagesize
10752 do
10753 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10754 echo "$as_me:$LINENO: checking for $ac_func" >&5
10755 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10756 if eval "test \"\${$as_ac_var+set}\" = set"; then
10757   echo $ECHO_N "(cached) $ECHO_C" >&6
10758 else
10759   cat >conftest.$ac_ext <<_ACEOF
10760 #line $LINENO "configure"
10761 #include "confdefs.h"
10762 /* System header to define __stub macros and hopefully few prototypes,
10763     which can conflict with char $ac_func (); below.  */
10764 #include <assert.h>
10765 /* Override any gcc2 internal prototype to avoid an error.  */
10766 #ifdef __cplusplus
10767 extern "C"
10768 #endif
10769 /* We use char because int might match the return type of a gcc2
10770    builtin and then its argument prototype would still apply.  */
10771 char $ac_func ();
10772 char (*f) ();
10773
10774 #ifdef F77_DUMMY_MAIN
10775 #  ifdef __cplusplus
10776      extern "C"
10777 #  endif
10778    int F77_DUMMY_MAIN() { return 1; }
10779 #endif
10780 int
10781 main ()
10782 {
10783 /* The GNU C library defines this for functions which it implements
10784     to always fail with ENOSYS.  Some functions are actually named
10785     something starting with __ and the normal name is an alias.  */
10786 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10787 choke me
10788 #else
10789 f = $ac_func;
10790 #endif
10791
10792   ;
10793   return 0;
10794 }
10795 _ACEOF
10796 rm -f conftest.$ac_objext conftest$ac_exeext
10797 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10798   (eval $ac_link) 2>&5
10799   ac_status=$?
10800   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10801   (exit $ac_status); } &&
10802          { ac_try='test -s conftest$ac_exeext'
10803   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10804   (eval $ac_try) 2>&5
10805   ac_status=$?
10806   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10807   (exit $ac_status); }; }; then
10808   eval "$as_ac_var=yes"
10809 else
10810   echo "$as_me: failed program was:" >&5
10811 cat conftest.$ac_ext >&5
10812 eval "$as_ac_var=no"
10813 fi
10814 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10815 fi
10816 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10817 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10818 if test `eval echo '${'$as_ac_var'}'` = yes; then
10819   cat >>confdefs.h <<_ACEOF
10820 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10821 _ACEOF
10822
10823 fi
10824 done
10825
10826 echo "$as_me:$LINENO: checking for working mmap" >&5
10827 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
10828 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
10829   echo $ECHO_N "(cached) $ECHO_C" >&6
10830 else
10831   if test "$cross_compiling" = yes; then
10832   ac_cv_func_mmap_fixed_mapped=no
10833 else
10834   cat >conftest.$ac_ext <<_ACEOF
10835 #line $LINENO "configure"
10836 #include "confdefs.h"
10837 $ac_includes_default
10838 /* malloc might have been renamed as rpl_malloc. */
10839 #undef malloc
10840
10841 /* Thanks to Mike Haertel and Jim Avera for this test.
10842    Here is a matrix of mmap possibilities:
10843         mmap private not fixed
10844         mmap private fixed at somewhere currently unmapped
10845         mmap private fixed at somewhere already mapped
10846         mmap shared not fixed
10847         mmap shared fixed at somewhere currently unmapped
10848         mmap shared fixed at somewhere already mapped
10849    For private mappings, we should verify that changes cannot be read()
10850    back from the file, nor mmap's back from the file at a different
10851    address.  (There have been systems where private was not correctly
10852    implemented like the infamous i386 svr4.0, and systems where the
10853    VM page cache was not coherent with the file system buffer cache
10854    like early versions of FreeBSD and possibly contemporary NetBSD.)
10855    For shared mappings, we should conversely verify that changes get
10856    propagated back to all the places they're supposed to be.
10857
10858    Grep wants private fixed already mapped.
10859    The main things grep needs to know about mmap are:
10860    * does it exist and is it safe to write into the mmap'd area
10861    * how to use it (BSD variants)  */
10862
10863 #include <fcntl.h>
10864 #include <sys/mman.h>
10865
10866 #if !STDC_HEADERS && !HAVE_STDLIB_H
10867 char *malloc ();
10868 #endif
10869
10870 /* This mess was copied from the GNU getpagesize.h.  */
10871 #if !HAVE_GETPAGESIZE
10872 /* Assume that all systems that can run configure have sys/param.h.  */
10873 # if !HAVE_SYS_PARAM_H
10874 #  define HAVE_SYS_PARAM_H 1
10875 # endif
10876
10877 # ifdef _SC_PAGESIZE
10878 #  define getpagesize() sysconf(_SC_PAGESIZE)
10879 # else /* no _SC_PAGESIZE */
10880 #  if HAVE_SYS_PARAM_H
10881 #   include <sys/param.h>
10882 #   ifdef EXEC_PAGESIZE
10883 #    define getpagesize() EXEC_PAGESIZE
10884 #   else /* no EXEC_PAGESIZE */
10885 #    ifdef NBPG
10886 #     define getpagesize() NBPG * CLSIZE
10887 #     ifndef CLSIZE
10888 #      define CLSIZE 1
10889 #     endif /* no CLSIZE */
10890 #    else /* no NBPG */
10891 #     ifdef NBPC
10892 #      define getpagesize() NBPC
10893 #     else /* no NBPC */
10894 #      ifdef PAGESIZE
10895 #       define getpagesize() PAGESIZE
10896 #      endif /* PAGESIZE */
10897 #     endif /* no NBPC */
10898 #    endif /* no NBPG */
10899 #   endif /* no EXEC_PAGESIZE */
10900 #  else /* no HAVE_SYS_PARAM_H */
10901 #   define getpagesize() 8192   /* punt totally */
10902 #  endif /* no HAVE_SYS_PARAM_H */
10903 # endif /* no _SC_PAGESIZE */
10904
10905 #endif /* no HAVE_GETPAGESIZE */
10906
10907 int
10908 main ()
10909 {
10910   char *data, *data2, *data3;
10911   int i, pagesize;
10912   int fd;
10913
10914   pagesize = getpagesize ();
10915
10916   /* First, make a file with some known garbage in it. */
10917   data = (char *) malloc (pagesize);
10918   if (!data)
10919     exit (1);
10920   for (i = 0; i < pagesize; ++i)
10921     *(data + i) = rand ();
10922   umask (0);
10923   fd = creat ("conftest.mmap", 0600);
10924   if (fd < 0)
10925     exit (1);
10926   if (write (fd, data, pagesize) != pagesize)
10927     exit (1);
10928   close (fd);
10929
10930   /* Next, try to mmap the file at a fixed address which already has
10931      something else allocated at it.  If we can, also make sure that
10932      we see the same garbage.  */
10933   fd = open ("conftest.mmap", O_RDWR);
10934   if (fd < 0)
10935     exit (1);
10936   data2 = (char *) malloc (2 * pagesize);
10937   if (!data2)
10938     exit (1);
10939   data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
10940   if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
10941                      MAP_PRIVATE | MAP_FIXED, fd, 0L))
10942     exit (1);
10943   for (i = 0; i < pagesize; ++i)
10944     if (*(data + i) != *(data2 + i))
10945       exit (1);
10946
10947   /* Finally, make sure that changes to the mapped area do not
10948      percolate back to the file as seen by read().  (This is a bug on
10949      some variants of i386 svr4.0.)  */
10950   for (i = 0; i < pagesize; ++i)
10951     *(data2 + i) = *(data2 + i) + 1;
10952   data3 = (char *) malloc (pagesize);
10953   if (!data3)
10954     exit (1);
10955   if (read (fd, data3, pagesize) != pagesize)
10956     exit (1);
10957   for (i = 0; i < pagesize; ++i)
10958     if (*(data + i) != *(data3 + i))
10959       exit (1);
10960   close (fd);
10961   exit (0);
10962 }
10963 _ACEOF
10964 rm -f conftest$ac_exeext
10965 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10966   (eval $ac_link) 2>&5
10967   ac_status=$?
10968   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10969   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10970   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10971   (eval $ac_try) 2>&5
10972   ac_status=$?
10973   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10974   (exit $ac_status); }; }; then
10975   ac_cv_func_mmap_fixed_mapped=yes
10976 else
10977   echo "$as_me: program exited with status $ac_status" >&5
10978 echo "$as_me: failed program was:" >&5
10979 cat conftest.$ac_ext >&5
10980 ( exit $ac_status )
10981 ac_cv_func_mmap_fixed_mapped=no
10982 fi
10983 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10984 fi
10985 fi
10986 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
10987 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
10988 if test $ac_cv_func_mmap_fixed_mapped = yes; then
10989
10990 cat >>confdefs.h <<\_ACEOF
10991 #define HAVE_MMAP 1
10992 _ACEOF
10993
10994 fi
10995 rm -f conftest.mmap
10996
10997 echo "$as_me:$LINENO: checking for mmap of files" >&5
10998 echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6
10999 if test "${ac_cv_func_mmap_file+set}" = set; then
11000   echo $ECHO_N "(cached) $ECHO_C" >&6
11001 else
11002
11003
11004   ac_ext=c
11005 ac_cpp='$CPP $CPPFLAGS'
11006 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11007 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11008 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11009
11010   if test "$cross_compiling" = yes; then
11011   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
11012 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
11013    { (exit 1); exit 1; }; }
11014 else
11015   cat >conftest.$ac_ext <<_ACEOF
11016 #line $LINENO "configure"
11017 #include "confdefs.h"
11018
11019 #ifdef HAVE_SYS_MMAN_H
11020 #include <sys/mman.h>
11021 #endif
11022
11023 #ifdef HAVE_SYS_TYPES_H
11024 #include <sys/types.h>
11025 #endif
11026
11027 #ifdef HAVE_FCNTL_H
11028 #include <fcntl.h>
11029 #endif
11030
11031   int fd;
11032   int main () {
11033   fd = creat ("foo",0777); fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0); unlink ("foo"); return (fd != MAP_FAILED);}
11034 _ACEOF
11035 rm -f conftest$ac_exeext
11036 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11037   (eval $ac_link) 2>&5
11038   ac_status=$?
11039   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11040   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11041   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11042   (eval $ac_try) 2>&5
11043   ac_status=$?
11044   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11045   (exit $ac_status); }; }; then
11046   ac_cv_func_mmap_file=yes
11047 else
11048   echo "$as_me: program exited with status $ac_status" >&5
11049 echo "$as_me: failed program was:" >&5
11050 cat conftest.$ac_ext >&5
11051 ( exit $ac_status )
11052 ac_cv_func_mmap_file=no
11053 fi
11054 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11055 fi
11056   ac_ext=c
11057 ac_cpp='$CPP $CPPFLAGS'
11058 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11059 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11060 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11061
11062
11063 fi
11064 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
11065 echo "${ECHO_T}$ac_cv_func_mmap_file" >&6
11066 if test "$ac_cv_func_mmap_file" = yes; then
11067    cat >>confdefs.h <<\_ACEOF
11068 #define HAVE_MMAP_FILE 1
11069 _ACEOF
11070
11071    MMAP_FILE=yes
11072
11073 fi
11074
11075 if test ${ac_cv_func_mmap_file} = "no"
11076 then
11077         { { echo "$as_me:$LINENO: error: mmap() of files required but not found" >&5
11078 echo "$as_me: error: mmap() of files required but not found" >&2;}
11079    { (exit 1); exit 1; }; }
11080 fi
11081 echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5
11082 echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6
11083 if test "${ac_cv_header_mmap_anon+set}" = set; then
11084   echo $ECHO_N "(cached) $ECHO_C" >&6
11085 else
11086
11087
11088   ac_ext=c
11089 ac_cpp='$CPP $CPPFLAGS'
11090 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11091 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11092 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11093
11094   cat >conftest.$ac_ext <<_ACEOF
11095 #line $LINENO "configure"
11096 #include "confdefs.h"
11097 #include <sys/mman.h>
11098   #include <unistd.h>
11099   #include <fcntl.h>
11100 #ifdef F77_DUMMY_MAIN
11101 #  ifdef __cplusplus
11102      extern "C"
11103 #  endif
11104    int F77_DUMMY_MAIN() { return 1; }
11105 #endif
11106 int
11107 main ()
11108 {
11109 mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0);
11110   ;
11111   return 0;
11112 }
11113 _ACEOF
11114 rm -f conftest.$ac_objext
11115 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11116   (eval $ac_compile) 2>&5
11117   ac_status=$?
11118   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11119   (exit $ac_status); } &&
11120          { ac_try='test -s conftest.$ac_objext'
11121   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11122   (eval $ac_try) 2>&5
11123   ac_status=$?
11124   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11125   (exit $ac_status); }; }; then
11126   ac_cv_header_mmap_anon=yes
11127 else
11128   echo "$as_me: failed program was:" >&5
11129 cat conftest.$ac_ext >&5
11130 ac_cv_header_mmap_anon=no
11131 fi
11132 rm -f conftest.$ac_objext conftest.$ac_ext
11133   ac_ext=c
11134 ac_cpp='$CPP $CPPFLAGS'
11135 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11136 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11137 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11138
11139
11140 fi
11141 echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5
11142 echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6
11143 if test "$ac_cv_header_mmap_anon" = yes; then
11144    cat >>confdefs.h <<\_ACEOF
11145 #define HAVE_MMAP_ANONYMOUS 1
11146 _ACEOF
11147
11148 fi
11149
11150 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
11151 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
11152 if test "${ac_cv_type_signal+set}" = set; then
11153   echo $ECHO_N "(cached) $ECHO_C" >&6
11154 else
11155   cat >conftest.$ac_ext <<_ACEOF
11156 #line $LINENO "configure"
11157 #include "confdefs.h"
11158 #include <sys/types.h>
11159 #include <signal.h>
11160 #ifdef signal
11161 # undef signal
11162 #endif
11163 #ifdef __cplusplus
11164 extern "C" void (*signal (int, void (*)(int)))(int);
11165 #else
11166 void (*signal ()) ();
11167 #endif
11168
11169 #ifdef F77_DUMMY_MAIN
11170 #  ifdef __cplusplus
11171      extern "C"
11172 #  endif
11173    int F77_DUMMY_MAIN() { return 1; }
11174 #endif
11175 int
11176 main ()
11177 {
11178 int i;
11179   ;
11180   return 0;
11181 }
11182 _ACEOF
11183 rm -f conftest.$ac_objext
11184 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11185   (eval $ac_compile) 2>&5
11186   ac_status=$?
11187   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11188   (exit $ac_status); } &&
11189          { ac_try='test -s conftest.$ac_objext'
11190   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11191   (eval $ac_try) 2>&5
11192   ac_status=$?
11193   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11194   (exit $ac_status); }; }; then
11195   ac_cv_type_signal=void
11196 else
11197   echo "$as_me: failed program was:" >&5
11198 cat conftest.$ac_ext >&5
11199 ac_cv_type_signal=int
11200 fi
11201 rm -f conftest.$ac_objext conftest.$ac_ext
11202 fi
11203 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
11204 echo "${ECHO_T}$ac_cv_type_signal" >&6
11205
11206 cat >>confdefs.h <<_ACEOF
11207 #define RETSIGTYPE $ac_cv_type_signal
11208 _ACEOF
11209
11210
11211
11212
11213
11214
11215
11216
11217
11218
11219
11220 for ac_func in getcwd gettimeofday strcspn strdup strerror strspn strstr strtod strtol
11221 do
11222 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11223 echo "$as_me:$LINENO: checking for $ac_func" >&5
11224 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11225 if eval "test \"\${$as_ac_var+set}\" = set"; then
11226   echo $ECHO_N "(cached) $ECHO_C" >&6
11227 else
11228   cat >conftest.$ac_ext <<_ACEOF
11229 #line $LINENO "configure"
11230 #include "confdefs.h"
11231 /* System header to define __stub macros and hopefully few prototypes,
11232     which can conflict with char $ac_func (); below.  */
11233 #include <assert.h>
11234 /* Override any gcc2 internal prototype to avoid an error.  */
11235 #ifdef __cplusplus
11236 extern "C"
11237 #endif
11238 /* We use char because int might match the return type of a gcc2
11239    builtin and then its argument prototype would still apply.  */
11240 char $ac_func ();
11241 char (*f) ();
11242
11243 #ifdef F77_DUMMY_MAIN
11244 #  ifdef __cplusplus
11245      extern "C"
11246 #  endif
11247    int F77_DUMMY_MAIN() { return 1; }
11248 #endif
11249 int
11250 main ()
11251 {
11252 /* The GNU C library defines this for functions which it implements
11253     to always fail with ENOSYS.  Some functions are actually named
11254     something starting with __ and the normal name is an alias.  */
11255 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11256 choke me
11257 #else
11258 f = $ac_func;
11259 #endif
11260
11261   ;
11262   return 0;
11263 }
11264 _ACEOF
11265 rm -f conftest.$ac_objext conftest$ac_exeext
11266 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11267   (eval $ac_link) 2>&5
11268   ac_status=$?
11269   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11270   (exit $ac_status); } &&
11271          { ac_try='test -s conftest$ac_exeext'
11272   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11273   (eval $ac_try) 2>&5
11274   ac_status=$?
11275   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11276   (exit $ac_status); }; }; then
11277   eval "$as_ac_var=yes"
11278 else
11279   echo "$as_me: failed program was:" >&5
11280 cat conftest.$ac_ext >&5
11281 eval "$as_ac_var=no"
11282 fi
11283 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11284 fi
11285 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11286 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11287 if test `eval echo '${'$as_ac_var'}'` = yes; then
11288   cat >>confdefs.h <<_ACEOF
11289 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11290 _ACEOF
11291
11292 fi
11293 done
11294
11295
11296
11297 echo "$as_me:$LINENO: checking for mmap" >&5
11298 echo $ECHO_N "checking for mmap... $ECHO_C" >&6
11299 if test "${ac_cv_func_mmap+set}" = set; then
11300   echo $ECHO_N "(cached) $ECHO_C" >&6
11301 else
11302   cat >conftest.$ac_ext <<_ACEOF
11303 #line $LINENO "configure"
11304 #include "confdefs.h"
11305 /* System header to define __stub macros and hopefully few prototypes,
11306     which can conflict with char mmap (); below.  */
11307 #include <assert.h>
11308 /* Override any gcc2 internal prototype to avoid an error.  */
11309 #ifdef __cplusplus
11310 extern "C"
11311 #endif
11312 /* We use char because int might match the return type of a gcc2
11313    builtin and then its argument prototype would still apply.  */
11314 char mmap ();
11315 char (*f) ();
11316
11317 #ifdef F77_DUMMY_MAIN
11318 #  ifdef __cplusplus
11319      extern "C"
11320 #  endif
11321    int F77_DUMMY_MAIN() { return 1; }
11322 #endif
11323 int
11324 main ()
11325 {
11326 /* The GNU C library defines this for functions which it implements
11327     to always fail with ENOSYS.  Some functions are actually named
11328     something starting with __ and the normal name is an alias.  */
11329 #if defined (__stub_mmap) || defined (__stub___mmap)
11330 choke me
11331 #else
11332 f = mmap;
11333 #endif
11334
11335   ;
11336   return 0;
11337 }
11338 _ACEOF
11339 rm -f conftest.$ac_objext conftest$ac_exeext
11340 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11341   (eval $ac_link) 2>&5
11342   ac_status=$?
11343   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11344   (exit $ac_status); } &&
11345          { ac_try='test -s conftest$ac_exeext'
11346   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11347   (eval $ac_try) 2>&5
11348   ac_status=$?
11349   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11350   (exit $ac_status); }; }; then
11351   ac_cv_func_mmap=yes
11352 else
11353   echo "$as_me: failed program was:" >&5
11354 cat conftest.$ac_ext >&5
11355 ac_cv_func_mmap=no
11356 fi
11357 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11358 fi
11359 echo "$as_me:$LINENO: result: $ac_cv_func_mmap" >&5
11360 echo "${ECHO_T}$ac_cv_func_mmap" >&6
11361 if test $ac_cv_func_mmap = yes; then
11362   :
11363 else
11364   { { echo "$as_me:$LINENO: error: Function mmap() required but not found" >&5
11365 echo "$as_me: error: Function mmap() required but not found" >&2;}
11366    { (exit 1); exit 1; }; }
11367 fi
11368
11369 echo "$as_me:$LINENO: checking for mprotect" >&5
11370 echo $ECHO_N "checking for mprotect... $ECHO_C" >&6
11371 if test "${ac_cv_func_mprotect+set}" = set; then
11372   echo $ECHO_N "(cached) $ECHO_C" >&6
11373 else
11374   cat >conftest.$ac_ext <<_ACEOF
11375 #line $LINENO "configure"
11376 #include "confdefs.h"
11377 /* System header to define __stub macros and hopefully few prototypes,
11378     which can conflict with char mprotect (); below.  */
11379 #include <assert.h>
11380 /* Override any gcc2 internal prototype to avoid an error.  */
11381 #ifdef __cplusplus
11382 extern "C"
11383 #endif
11384 /* We use char because int might match the return type of a gcc2
11385    builtin and then its argument prototype would still apply.  */
11386 char mprotect ();
11387 char (*f) ();
11388
11389 #ifdef F77_DUMMY_MAIN
11390 #  ifdef __cplusplus
11391      extern "C"
11392 #  endif
11393    int F77_DUMMY_MAIN() { return 1; }
11394 #endif
11395 int
11396 main ()
11397 {
11398 /* The GNU C library defines this for functions which it implements
11399     to always fail with ENOSYS.  Some functions are actually named
11400     something starting with __ and the normal name is an alias.  */
11401 #if defined (__stub_mprotect) || defined (__stub___mprotect)
11402 choke me
11403 #else
11404 f = mprotect;
11405 #endif
11406
11407   ;
11408   return 0;
11409 }
11410 _ACEOF
11411 rm -f conftest.$ac_objext conftest$ac_exeext
11412 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11413   (eval $ac_link) 2>&5
11414   ac_status=$?
11415   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11416   (exit $ac_status); } &&
11417          { ac_try='test -s conftest$ac_exeext'
11418   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11419   (eval $ac_try) 2>&5
11420   ac_status=$?
11421   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11422   (exit $ac_status); }; }; then
11423   ac_cv_func_mprotect=yes
11424 else
11425   echo "$as_me: failed program was:" >&5
11426 cat conftest.$ac_ext >&5
11427 ac_cv_func_mprotect=no
11428 fi
11429 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11430 fi
11431 echo "$as_me:$LINENO: result: $ac_cv_func_mprotect" >&5
11432 echo "${ECHO_T}$ac_cv_func_mprotect" >&6
11433 if test $ac_cv_func_mprotect = yes; then
11434   :
11435 else
11436   { { echo "$as_me:$LINENO: error: Function mprotect() required but not found" >&5
11437 echo "$as_me: error: Function mprotect() required but not found" >&2;}
11438    { (exit 1); exit 1; }; }
11439 fi
11440
11441
11442 # Check whether --enable-purify or --disable-purify was given.
11443 if test "${enable_purify+set}" = set; then
11444   enableval="$enable_purify"
11445   ENABLE_PURIFY=ENABLE_PURIFY=1
11446
11447 else
11448   ENABLE_PURIFY=
11449
11450 fi;
11451 # Check whether --enable-verbose or --disable-verbose was given.
11452 if test "${enable_verbose+set}" = set; then
11453   enableval="$enable_verbose"
11454   ENABLE_VERBOSE=VERBOSE=1
11455
11456 else
11457   ENABLE_VERBOSE=
11458
11459 fi;
11460 # Check whether --enable-profiling or --disable-profiling was given.
11461 if test "${enable_profiling+set}" = set; then
11462   enableval="$enable_profiling"
11463   ENABLE_PROFILING=ENABLE_PROFILING=1
11464
11465 else
11466   ENABLE_PROFILING=
11467
11468 fi;
11469 # Check whether --enable-optimized or --disable-optimized was given.
11470 if test "${enable_optimized+set}" = set; then
11471   enableval="$enable_optimized"
11472   ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1
11473
11474 else
11475   ENABLE_OPTIMIZED=
11476
11477 fi;
11478 # Check whether --enable-spec or --disable-spec was given.
11479 if test "${enable_spec+set}" = set; then
11480   enableval="$enable_spec"
11481   USE_SPEC=USE_SPEC=1
11482
11483 else
11484   USE_SPEC=
11485
11486 fi;
11487 # Check whether --enable-precompiled_bytecode or --disable-precompiled_bytecode was given.
11488 if test "${enable_precompiled_bytecode+set}" = set; then
11489   enableval="$enable_precompiled_bytecode"
11490   UPB=USE_PRECOMPILED_BYTECODE=1
11491
11492 else
11493   UPB=
11494
11495 fi;
11496 case $build in
11497         *i*86*)  # Check whether --enable-jit or --disable-jit was given.
11498 if test "${enable_jit+set}" = set; then
11499   enableval="$enable_jit"
11500   JIT=TARGET_HAS_JIT=1
11501
11502 else
11503   JIT=
11504
11505 fi;
11506                  ;;
11507         *)
11508                  ;;
11509 esac
11510
11511
11512 # Check whether --with-spec or --without-spec was given.
11513 if test "${with_spec+set}" = set; then
11514   withval="$with_spec"
11515   SPEC_ROOT=$withval
11516
11517 else
11518   SPEC_ROOT=/home/vadve/shared/benchmarks/speccpu2000/benchspec
11519
11520 fi;
11521
11522 # Check whether --with-llvmgccdir or --without-llvmgccdir was given.
11523 if test "${with_llvmgccdir+set}" = set; then
11524   withval="$with_llvmgccdir"
11525   LLVMGCCDIR=$withval
11526
11527 fi;
11528
11529 # Check whether --with-bcrepos or --without-bcrepos was given.
11530 if test "${with_bcrepos+set}" = set; then
11531   withval="$with_bcrepos"
11532   BCR=$withval
11533
11534 else
11535   BCR=/home/vadve/lattner/LLVMPrograms
11536
11537 fi;
11538
11539 # Check whether --with-papi or --without-papi was given.
11540 if test "${with_papi+set}" = set; then
11541   withval="$with_papi"
11542   PAPIDIR=$withval
11543
11544 else
11545   PAPIDIR=/home/vadve/shared/papi-2.3.4.1
11546
11547 fi;
11548
11549 # Check whether --with-objroot or --without-objroot was given.
11550 if test "${with_objroot+set}" = set; then
11551   withval="$with_objroot"
11552   OBJROOT=$withval
11553
11554 else
11555   OBJROOT=.
11556
11557 fi;
11558
11559 # Check whether --with-purify or --without-purify was given.
11560 if test "${with_purify+set}" = set; then
11561   withval="$with_purify"
11562   PURIFY=$withval
11563
11564 fi;
11565
11566 ac_config_files="$ac_config_files Makefile.config"
11567 cat >confcache <<\_ACEOF
11568 # This file is a shell script that caches the results of configure
11569 # tests run on this system so they can be shared between configure
11570 # scripts and configure runs, see configure's option --config-cache.
11571 # It is not useful on other systems.  If it contains results you don't
11572 # want to keep, you may remove or edit it.
11573 #
11574 # config.status only pays attention to the cache file if you give it
11575 # the --recheck option to rerun configure.
11576 #
11577 # `ac_cv_env_foo' variables (set or unset) will be overriden when
11578 # loading this file, other *unset* `ac_cv_foo' will be assigned the
11579 # following values.
11580
11581 _ACEOF
11582
11583 # The following way of writing the cache mishandles newlines in values,
11584 # but we know of no workaround that is simple, portable, and efficient.
11585 # So, don't put newlines in cache variables' values.
11586 # Ultrix sh set writes to stderr and can't be redirected directly,
11587 # and sets the high bit in the cache file unless we assign to the vars.
11588 {
11589   (set) 2>&1 |
11590     case `(ac_space=' '; set | grep ac_space) 2>&1` in
11591     *ac_space=\ *)
11592       # `set' does not quote correctly, so add quotes (double-quote
11593       # substitution turns \\\\ into \\, and sed turns \\ into \).
11594       sed -n \
11595         "s/'/'\\\\''/g;
11596           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
11597       ;;
11598     *)
11599       # `set' quotes correctly as required by POSIX, so do not add quotes.
11600       sed -n \
11601         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
11602       ;;
11603     esac;
11604 } |
11605   sed '
11606      t clear
11607      : clear
11608      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
11609      t end
11610      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
11611      : end' >>confcache
11612 if cmp -s $cache_file confcache; then :; else
11613   if test -w $cache_file; then
11614     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
11615     cat confcache >$cache_file
11616   else
11617     echo "not updating unwritable cache $cache_file"
11618   fi
11619 fi
11620 rm -f confcache
11621
11622 test "x$prefix" = xNONE && prefix=$ac_default_prefix
11623 # Let make expand exec_prefix.
11624 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
11625
11626 # VPATH may cause trouble with some makes, so we remove $(srcdir),
11627 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
11628 # trailing colons and then remove the whole line if VPATH becomes empty
11629 # (actually we leave an empty line to preserve line numbers).
11630 if test "x$srcdir" = x.; then
11631   ac_vpsub='/^[         ]*VPATH[        ]*=/{
11632 s/:*\$(srcdir):*/:/;
11633 s/:*\${srcdir}:*/:/;
11634 s/:*@srcdir@:*/:/;
11635 s/^\([^=]*=[    ]*\):*/\1/;
11636 s/:*$//;
11637 s/^[^=]*=[      ]*$//;
11638 }'
11639 fi
11640
11641 DEFS=-DHAVE_CONFIG_H
11642
11643
11644 : ${CONFIG_STATUS=./config.status}
11645 ac_clean_files_save=$ac_clean_files
11646 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
11647 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
11648 echo "$as_me: creating $CONFIG_STATUS" >&6;}
11649 cat >$CONFIG_STATUS <<_ACEOF
11650 #! $SHELL
11651 # Generated by $as_me.
11652 # Run this file to recreate the current configuration.
11653 # Compiler output produced by configure, useful for debugging
11654 # configure, is in config.log if it exists.
11655
11656 debug=false
11657 SHELL=\${CONFIG_SHELL-$SHELL}
11658 _ACEOF
11659
11660 cat >>$CONFIG_STATUS <<\_ACEOF
11661
11662 ## --------------------- ##
11663 ## M4sh Initialization.  ##
11664 ## --------------------- ##
11665
11666 # Be Bourne compatible
11667 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
11668   emulate sh
11669   NULLCMD=:
11670 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
11671   set -o posix
11672 fi
11673
11674 # NLS nuisances.
11675 # Support unset when possible.
11676 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
11677   as_unset=unset
11678 else
11679   as_unset=false
11680 fi
11681
11682 (set +x; test -n "`(LANG=C; export LANG) 2>&1`") &&
11683     { $as_unset LANG || test "${LANG+set}" != set; } ||
11684       { LANG=C; export LANG; }
11685 (set +x; test -n "`(LC_ALL=C; export LC_ALL) 2>&1`") &&
11686     { $as_unset LC_ALL || test "${LC_ALL+set}" != set; } ||
11687       { LC_ALL=C; export LC_ALL; }
11688 (set +x; test -n "`(LC_TIME=C; export LC_TIME) 2>&1`") &&
11689     { $as_unset LC_TIME || test "${LC_TIME+set}" != set; } ||
11690       { LC_TIME=C; export LC_TIME; }
11691 (set +x; test -n "`(LC_CTYPE=C; export LC_CTYPE) 2>&1`") &&
11692     { $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set; } ||
11693       { LC_CTYPE=C; export LC_CTYPE; }
11694 (set +x; test -n "`(LANGUAGE=C; export LANGUAGE) 2>&1`") &&
11695     { $as_unset LANGUAGE || test "${LANGUAGE+set}" != set; } ||
11696       { LANGUAGE=C; export LANGUAGE; }
11697 (set +x; test -n "`(LC_COLLATE=C; export LC_COLLATE) 2>&1`") &&
11698     { $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set; } ||
11699       { LC_COLLATE=C; export LC_COLLATE; }
11700 (set +x; test -n "`(LC_NUMERIC=C; export LC_NUMERIC) 2>&1`") &&
11701     { $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set; } ||
11702       { LC_NUMERIC=C; export LC_NUMERIC; }
11703 (set +x; test -n "`(LC_MESSAGES=C; export LC_MESSAGES) 2>&1`") &&
11704     { $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set; } ||
11705       { LC_MESSAGES=C; export LC_MESSAGES; }
11706
11707
11708 # Name of the executable.
11709 as_me=`(basename "$0") 2>/dev/null ||
11710 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
11711          X"$0" : 'X\(//\)$' \| \
11712          X"$0" : 'X\(/\)$' \| \
11713          .     : '\(.\)' 2>/dev/null ||
11714 echo X/"$0" |
11715     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
11716           /^X\/\(\/\/\)$/{ s//\1/; q; }
11717           /^X\/\(\/\).*/{ s//\1/; q; }
11718           s/.*/./; q'`
11719
11720 # PATH needs CR, and LINENO needs CR and PATH.
11721 # Avoid depending upon Character Ranges.
11722 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
11723 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
11724 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
11725 as_cr_digits='0123456789'
11726 as_cr_alnum=$as_cr_Letters$as_cr_digits
11727
11728 # The user is always right.
11729 if test "${PATH_SEPARATOR+set}" != set; then
11730   echo "#! /bin/sh" >conftest.sh
11731   echo  "exit 0"   >>conftest.sh
11732   chmod +x conftest.sh
11733   if (PATH=".;."; conftest.sh) >/dev/null 2>&1; then
11734     PATH_SEPARATOR=';'
11735   else
11736     PATH_SEPARATOR=:
11737   fi
11738   rm -f conftest.sh
11739 fi
11740
11741
11742   as_lineno_1=$LINENO
11743   as_lineno_2=$LINENO
11744   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
11745   test "x$as_lineno_1" != "x$as_lineno_2" &&
11746   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
11747   # Find who we are.  Look in the path if we contain no path at all
11748   # relative or not.
11749   case $0 in
11750     *[\\/]* ) as_myself=$0 ;;
11751     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11752 for as_dir in $PATH
11753 do
11754   IFS=$as_save_IFS
11755   test -z "$as_dir" && as_dir=.
11756   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
11757 done
11758
11759        ;;
11760   esac
11761   # We did not find ourselves, most probably we were run as `sh COMMAND'
11762   # in which case we are not to be found in the path.
11763   if test "x$as_myself" = x; then
11764     as_myself=$0
11765   fi
11766   if test ! -f "$as_myself"; then
11767     { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
11768 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
11769    { (exit 1); exit 1; }; }
11770   fi
11771   case $CONFIG_SHELL in
11772   '')
11773     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11774 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
11775 do
11776   IFS=$as_save_IFS
11777   test -z "$as_dir" && as_dir=.
11778   for as_base in sh bash ksh sh5; do
11779          case $as_dir in
11780          /*)
11781            if ("$as_dir/$as_base" -c '
11782   as_lineno_1=$LINENO
11783   as_lineno_2=$LINENO
11784   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
11785   test "x$as_lineno_1" != "x$as_lineno_2" &&
11786   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
11787              CONFIG_SHELL=$as_dir/$as_base
11788              export CONFIG_SHELL
11789              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
11790            fi;;
11791          esac
11792        done
11793 done
11794 ;;
11795   esac
11796
11797   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
11798   # uniformly replaced by the line number.  The first 'sed' inserts a
11799   # line-number line before each line; the second 'sed' does the real
11800   # work.  The second script uses 'N' to pair each line-number line
11801   # with the numbered line, and appends trailing '-' during
11802   # substitution so that $LINENO is not a special case at line end.
11803   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
11804   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
11805   sed '=' <$as_myself |
11806     sed '
11807       N
11808       s,$,-,
11809       : loop
11810       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
11811       t loop
11812       s,-$,,
11813       s,^['$as_cr_digits']*\n,,
11814     ' >$as_me.lineno &&
11815   chmod +x $as_me.lineno ||
11816     { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
11817 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
11818    { (exit 1); exit 1; }; }
11819
11820   # Don't try to exec as it changes $[0], causing all sort of problems
11821   # (the dirname of $[0] is not the place where we might find the
11822   # original and so on.  Autoconf is especially sensible to this).
11823   . ./$as_me.lineno
11824   # Exit status is that of the last command.
11825   exit
11826 }
11827
11828
11829 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
11830   *c*,-n*) ECHO_N= ECHO_C='
11831 ' ECHO_T='      ' ;;
11832   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
11833   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
11834 esac
11835
11836 if expr a : '\(a\)' >/dev/null 2>&1; then
11837   as_expr=expr
11838 else
11839   as_expr=false
11840 fi
11841
11842 rm -f conf$$ conf$$.exe conf$$.file
11843 echo >conf$$.file
11844 if ln -s conf$$.file conf$$ 2>/dev/null; then
11845   # We could just check for DJGPP; but this test a) works b) is more generic
11846   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
11847   if test -f conf$$.exe; then
11848     # Don't use ln at all; we don't have any links
11849     as_ln_s='cp -p'
11850   else
11851     as_ln_s='ln -s'
11852   fi
11853 elif ln conf$$.file conf$$ 2>/dev/null; then
11854   as_ln_s=ln
11855 else
11856   as_ln_s='cp -p'
11857 fi
11858 rm -f conf$$ conf$$.exe conf$$.file
11859
11860 as_executable_p="test -f"
11861
11862 # Sed expression to map a string onto a valid CPP name.
11863 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
11864
11865 # Sed expression to map a string onto a valid variable name.
11866 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
11867
11868
11869 # IFS
11870 # We need space, tab and new line, in precisely that order.
11871 as_nl='
11872 '
11873 IFS="   $as_nl"
11874
11875 # CDPATH.
11876 $as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=$PATH_SEPARATOR; export CDPATH; }
11877
11878 exec 6>&1
11879
11880 # Open the log real soon, to keep \$[0] and so on meaningful, and to
11881 # report actual input values of CONFIG_FILES etc. instead of their
11882 # values after options handling.  Logging --version etc. is OK.
11883 exec 5>>config.log
11884 {
11885   echo
11886   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
11887 ## Running $as_me. ##
11888 _ASBOX
11889 } >&5
11890 cat >&5 <<_CSEOF
11891
11892 This file was extended by [LLVM] $as_me [1.0], which was
11893 generated by GNU Autoconf 2.53.  Invocation command line was
11894
11895   CONFIG_FILES    = $CONFIG_FILES
11896   CONFIG_HEADERS  = $CONFIG_HEADERS
11897   CONFIG_LINKS    = $CONFIG_LINKS
11898   CONFIG_COMMANDS = $CONFIG_COMMANDS
11899   $ $0 $@
11900
11901 _CSEOF
11902 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
11903 echo >&5
11904 _ACEOF
11905
11906 # Files that config.status was made for.
11907 if test -n "$ac_config_files"; then
11908   echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
11909 fi
11910
11911 if test -n "$ac_config_headers"; then
11912   echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
11913 fi
11914
11915 if test -n "$ac_config_links"; then
11916   echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
11917 fi
11918
11919 if test -n "$ac_config_commands"; then
11920   echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
11921 fi
11922
11923 cat >>$CONFIG_STATUS <<\_ACEOF
11924
11925 ac_cs_usage="\
11926 \`$as_me' instantiates files from templates according to the
11927 current configuration.
11928
11929 Usage: $0 [OPTIONS] [FILE]...
11930
11931   -h, --help       print this help, then exit
11932   -V, --version    print version number, then exit
11933   -d, --debug      don't remove temporary files
11934       --recheck    update $as_me by reconfiguring in the same conditions
11935   --file=FILE[:TEMPLATE]
11936                    instantiate the configuration file FILE
11937   --header=FILE[:TEMPLATE]
11938                    instantiate the configuration header FILE
11939
11940 Configuration files:
11941 $config_files
11942
11943 Configuration headers:
11944 $config_headers
11945
11946 Report bugs to <bug-autoconf@gnu.org>."
11947 _ACEOF
11948
11949 cat >>$CONFIG_STATUS <<_ACEOF
11950 ac_cs_version="\\
11951 [LLVM] config.status [1.0]
11952 configured by $0, generated by GNU Autoconf 2.53,
11953   with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
11954
11955 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
11956 Free Software Foundation, Inc.
11957 This config.status script is free software; the Free Software Foundation
11958 gives unlimited permission to copy, distribute and modify it."
11959 srcdir=$srcdir
11960 INSTALL="$INSTALL"
11961 _ACEOF
11962
11963 cat >>$CONFIG_STATUS <<\_ACEOF
11964 # If no file are specified by the user, then we need to provide default
11965 # value.  By we need to know if files were specified by the user.
11966 ac_need_defaults=:
11967 while test $# != 0
11968 do
11969   case $1 in
11970   --*=*)
11971     ac_option=`expr "x$1" : 'x\([^=]*\)='`
11972     ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
11973     shift
11974     set dummy "$ac_option" "$ac_optarg" ${1+"$@"}
11975     shift
11976     ;;
11977   -*);;
11978   *) # This is not an option, so the user has probably given explicit
11979      # arguments.
11980      ac_need_defaults=false;;
11981   esac
11982
11983   case $1 in
11984   # Handling of the options.
11985 _ACEOF
11986 cat >>$CONFIG_STATUS <<_ACEOF
11987   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
11988     echo "running $SHELL $0 " $ac_configure_args " --no-create --no-recursion"
11989     exec $SHELL $0 $ac_configure_args --no-create --no-recursion ;;
11990 _ACEOF
11991 cat >>$CONFIG_STATUS <<\_ACEOF
11992   --version | --vers* | -V )
11993     echo "$ac_cs_version"; exit 0 ;;
11994   --he | --h)
11995     # Conflict between --help and --header
11996     { { echo "$as_me:$LINENO: error: ambiguous option: $1
11997 Try \`$0 --help' for more information." >&5
11998 echo "$as_me: error: ambiguous option: $1
11999 Try \`$0 --help' for more information." >&2;}
12000    { (exit 1); exit 1; }; };;
12001   --help | --hel | -h )
12002     echo "$ac_cs_usage"; exit 0 ;;
12003   --debug | --d* | -d )
12004     debug=: ;;
12005   --file | --fil | --fi | --f )
12006     shift
12007     CONFIG_FILES="$CONFIG_FILES $1"
12008     ac_need_defaults=false;;
12009   --header | --heade | --head | --hea )
12010     shift
12011     CONFIG_HEADERS="$CONFIG_HEADERS $1"
12012     ac_need_defaults=false;;
12013
12014   # This is an error.
12015   -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
12016 Try \`$0 --help' for more information." >&5
12017 echo "$as_me: error: unrecognized option: $1
12018 Try \`$0 --help' for more information." >&2;}
12019    { (exit 1); exit 1; }; } ;;
12020
12021   *) ac_config_targets="$ac_config_targets $1" ;;
12022
12023   esac
12024   shift
12025 done
12026
12027 _ACEOF
12028
12029
12030
12031
12032
12033 cat >>$CONFIG_STATUS <<\_ACEOF
12034 for ac_config_target in $ac_config_targets
12035 do
12036   case "$ac_config_target" in
12037   # Handling of arguments.
12038   "Makefile.config" ) CONFIG_FILES="$CONFIG_FILES Makefile.config" ;;
12039   "include/Config/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/Config/config.h" ;;
12040   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
12041 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
12042    { (exit 1); exit 1; }; };;
12043   esac
12044 done
12045
12046 # If the user did not use the arguments to specify the items to instantiate,
12047 # then the envvar interface is used.  Set only those that are not.
12048 # We use the long form for the default assignment because of an extremely
12049 # bizarre bug on SunOS 4.1.3.
12050 if $ac_need_defaults; then
12051   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
12052   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
12053 fi
12054
12055 # Create a temporary directory, and hook for its removal unless debugging.
12056 $debug ||
12057 {
12058   trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
12059   trap '{ (exit 1); exit 1; }' 1 2 13 15
12060 }
12061
12062 # Create a (secure) tmp directory for tmp files.
12063 : ${TMPDIR=/tmp}
12064 {
12065   tmp=`(umask 077 && mktemp -d -q "$TMPDIR/csXXXXXX") 2>/dev/null` &&
12066   test -n "$tmp" && test -d "$tmp"
12067 }  ||
12068 {
12069   tmp=$TMPDIR/cs$$-$RANDOM
12070   (umask 077 && mkdir $tmp)
12071 } ||
12072 {
12073    echo "$me: cannot create a temporary directory in $TMPDIR" >&2
12074    { (exit 1); exit 1; }
12075 }
12076
12077 _ACEOF
12078
12079 cat >>$CONFIG_STATUS <<_ACEOF
12080
12081 #
12082 # CONFIG_FILES section.
12083 #
12084
12085 # No need to generate the scripts if there are no CONFIG_FILES.
12086 # This happens for instance when ./config.status config.h
12087 if test -n "\$CONFIG_FILES"; then
12088   # Protect against being on the right side of a sed subst in config.status.
12089   sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
12090    s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
12091 s,@SHELL@,$SHELL,;t t
12092 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
12093 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
12094 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
12095 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
12096 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
12097 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
12098 s,@exec_prefix@,$exec_prefix,;t t
12099 s,@prefix@,$prefix,;t t
12100 s,@program_transform_name@,$program_transform_name,;t t
12101 s,@bindir@,$bindir,;t t
12102 s,@sbindir@,$sbindir,;t t
12103 s,@libexecdir@,$libexecdir,;t t
12104 s,@datadir@,$datadir,;t t
12105 s,@sysconfdir@,$sysconfdir,;t t
12106 s,@sharedstatedir@,$sharedstatedir,;t t
12107 s,@localstatedir@,$localstatedir,;t t
12108 s,@libdir@,$libdir,;t t
12109 s,@includedir@,$includedir,;t t
12110 s,@oldincludedir@,$oldincludedir,;t t
12111 s,@infodir@,$infodir,;t t
12112 s,@mandir@,$mandir,;t t
12113 s,@build_alias@,$build_alias,;t t
12114 s,@host_alias@,$host_alias,;t t
12115 s,@target_alias@,$target_alias,;t t
12116 s,@DEFS@,$DEFS,;t t
12117 s,@ECHO_C@,$ECHO_C,;t t
12118 s,@ECHO_N@,$ECHO_N,;t t
12119 s,@ECHO_T@,$ECHO_T,;t t
12120 s,@LIBS@,$LIBS,;t t
12121 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
12122 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
12123 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
12124 s,@build@,$build,;t t
12125 s,@build_cpu@,$build_cpu,;t t
12126 s,@build_vendor@,$build_vendor,;t t
12127 s,@build_os@,$build_os,;t t
12128 s,@host@,$host,;t t
12129 s,@host_cpu@,$host_cpu,;t t
12130 s,@host_vendor@,$host_vendor,;t t
12131 s,@host_os@,$host_os,;t t
12132 s,@target@,$target,;t t
12133 s,@target_cpu@,$target_cpu,;t t
12134 s,@target_vendor@,$target_vendor,;t t
12135 s,@target_os@,$target_os,;t t
12136 s,@OS@,$OS,;t t
12137 s,@DISABLE_LLC_DIFFS@,$DISABLE_LLC_DIFFS,;t t
12138 s,@LLVMGCCDIR@,$LLVMGCCDIR,;t t
12139 s,@CXX@,$CXX,;t t
12140 s,@CXXFLAGS@,$CXXFLAGS,;t t
12141 s,@LDFLAGS@,$LDFLAGS,;t t
12142 s,@CPPFLAGS@,$CPPFLAGS,;t t
12143 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
12144 s,@EXEEXT@,$EXEEXT,;t t
12145 s,@OBJEXT@,$OBJEXT,;t t
12146 s,@CC@,$CC,;t t
12147 s,@CFLAGS@,$CFLAGS,;t t
12148 s,@ac_ct_CC@,$ac_ct_CC,;t t
12149 s,@CPP@,$CPP,;t t
12150 s,@ifGNUmake@,$ifGNUmake,;t t
12151 s,@LEX@,$LEX,;t t
12152 s,@LEXLIB@,$LEXLIB,;t t
12153 s,@LEX_OUTPUT_ROOT@,$LEX_OUTPUT_ROOT,;t t
12154 s,@YACC@,$YACC,;t t
12155 s,@LN_S@,$LN_S,;t t
12156 s,@ECHO@,$ECHO,;t t
12157 s,@RANLIB@,$RANLIB,;t t
12158 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
12159 s,@STRIP@,$STRIP,;t t
12160 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
12161 s,@LIBTOOL@,$LIBTOOL,;t t
12162 s,@AR@,$AR,;t t
12163 s,@SED@,$SED,;t t
12164 s,@RM@,$RM,;t t
12165 s,@MKDIR@,$MKDIR,;t t
12166 s,@DATE@,$DATE,;t t
12167 s,@MV@,$MV,;t t
12168 s,@DOT@,$DOT,;t t
12169 s,@ETAGS@,$ETAGS,;t t
12170 s,@PURIFY@,$PURIFY,;t t
12171 s,@ALLOCA@,$ALLOCA,;t t
12172 s,@LIBOBJS@,$LIBOBJS,;t t
12173 s,@MMAP_FILE@,$MMAP_FILE,;t t
12174 s,@ENABLE_PURIFY@,$ENABLE_PURIFY,;t t
12175 s,@ENABLE_VERBOSE@,$ENABLE_VERBOSE,;t t
12176 s,@ENABLE_PROFILING@,$ENABLE_PROFILING,;t t
12177 s,@ENABLE_OPTIMIZED@,$ENABLE_OPTIMIZED,;t t
12178 s,@USE_SPEC@,$USE_SPEC,;t t
12179 s,@UPB@,$UPB,;t t
12180 s,@JIT@,$JIT,;t t
12181 s,@SPEC_ROOT@,$SPEC_ROOT,;t t
12182 s,@BCR@,$BCR,;t t
12183 s,@PAPIDIR@,$PAPIDIR,;t t
12184 s,@OBJROOT@,$OBJROOT,;t t
12185 CEOF
12186
12187 _ACEOF
12188
12189   cat >>$CONFIG_STATUS <<\_ACEOF
12190   # Split the substitutions into bite-sized pieces for seds with
12191   # small command number limits, like on Digital OSF/1 and HP-UX.
12192   ac_max_sed_lines=48
12193   ac_sed_frag=1 # Number of current file.
12194   ac_beg=1 # First line for current file.
12195   ac_end=$ac_max_sed_lines # Line after last line for current file.
12196   ac_more_lines=:
12197   ac_sed_cmds=
12198   while $ac_more_lines; do
12199     if test $ac_beg -gt 1; then
12200       sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
12201     else
12202       sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
12203     fi
12204     if test ! -s $tmp/subs.frag; then
12205       ac_more_lines=false
12206     else
12207       # The purpose of the label and of the branching condition is to
12208       # speed up the sed processing (if there are no `@' at all, there
12209       # is no need to browse any of the substitutions).
12210       # These are the two extra sed commands mentioned above.
12211       (echo ':t
12212   /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
12213       if test -z "$ac_sed_cmds"; then
12214         ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
12215       else
12216         ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
12217       fi
12218       ac_sed_frag=`expr $ac_sed_frag + 1`
12219       ac_beg=$ac_end
12220       ac_end=`expr $ac_end + $ac_max_sed_lines`
12221     fi
12222   done
12223   if test -z "$ac_sed_cmds"; then
12224     ac_sed_cmds=cat
12225   fi
12226 fi # test -n "$CONFIG_FILES"
12227
12228 _ACEOF
12229 cat >>$CONFIG_STATUS <<\_ACEOF
12230 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
12231   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
12232   case $ac_file in
12233   - | *:- | *:-:* ) # input from stdin
12234         cat >$tmp/stdin
12235         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
12236         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
12237   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
12238         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
12239   * )   ac_file_in=$ac_file.in ;;
12240   esac
12241
12242   # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
12243   ac_dir=`(dirname "$ac_file") 2>/dev/null ||
12244 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12245          X"$ac_file" : 'X\(//\)[^/]' \| \
12246          X"$ac_file" : 'X\(//\)$' \| \
12247          X"$ac_file" : 'X\(/\)' \| \
12248          .     : '\(.\)' 2>/dev/null ||
12249 echo X"$ac_file" |
12250     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12251           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12252           /^X\(\/\/\)$/{ s//\1/; q; }
12253           /^X\(\/\).*/{ s//\1/; q; }
12254           s/.*/./; q'`
12255   { case "$ac_dir" in
12256   [\\/]* | ?:[\\/]* ) as_incr_dir=;;
12257   *)                      as_incr_dir=.;;
12258 esac
12259 as_dummy="$ac_dir"
12260 for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
12261   case $as_mkdir_dir in
12262     # Skip DOS drivespec
12263     ?:) as_incr_dir=$as_mkdir_dir ;;
12264     *)
12265       as_incr_dir=$as_incr_dir/$as_mkdir_dir
12266       test -d "$as_incr_dir" ||
12267         mkdir "$as_incr_dir" ||
12268         { { echo "$as_me:$LINENO: error: cannot create \"$ac_dir\"" >&5
12269 echo "$as_me: error: cannot create \"$ac_dir\"" >&2;}
12270    { (exit 1); exit 1; }; }
12271     ;;
12272   esac
12273 done; }
12274
12275   ac_builddir=.
12276
12277 if test "$ac_dir" != .; then
12278   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
12279   # A "../" for each directory in $ac_dir_suffix.
12280   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
12281 else
12282   ac_dir_suffix= ac_top_builddir=
12283 fi
12284
12285 case $srcdir in
12286   .)  # No --srcdir option.  We are building in place.
12287     ac_srcdir=.
12288     if test -z "$ac_top_builddir"; then
12289        ac_top_srcdir=.
12290     else
12291        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
12292     fi ;;
12293   [\\/]* | ?:[\\/]* )  # Absolute path.
12294     ac_srcdir=$srcdir$ac_dir_suffix;
12295     ac_top_srcdir=$srcdir ;;
12296   *) # Relative path.
12297     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
12298     ac_top_srcdir=$ac_top_builddir$srcdir ;;
12299 esac
12300 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
12301 # absolute.
12302 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
12303 ac_abs_top_builddir=`cd "$ac_dir" && cd $ac_top_builddir && pwd`
12304 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
12305 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
12306
12307
12308   case $INSTALL in
12309   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
12310   *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
12311   esac
12312
12313   if test x"$ac_file" != x-; then
12314     { echo "$as_me:$LINENO: creating $ac_file" >&5
12315 echo "$as_me: creating $ac_file" >&6;}
12316     rm -f "$ac_file"
12317   fi
12318   # Let's still pretend it is `configure' which instantiates (i.e., don't
12319   # use $as_me), people would be surprised to read:
12320   #    /* config.h.  Generated by config.status.  */
12321   if test x"$ac_file" = x-; then
12322     configure_input=
12323   else
12324     configure_input="$ac_file.  "
12325   fi
12326   configure_input=$configure_input"Generated from `echo $ac_file_in |
12327                                      sed 's,.*/,,'` by configure."
12328
12329   # First look for the input files in the build tree, otherwise in the
12330   # src tree.
12331   ac_file_inputs=`IFS=:
12332     for f in $ac_file_in; do
12333       case $f in
12334       -) echo $tmp/stdin ;;
12335       [\\/$]*)
12336          # Absolute (can't be DOS-style, as IFS=:)
12337          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
12338 echo "$as_me: error: cannot find input file: $f" >&2;}
12339    { (exit 1); exit 1; }; }
12340          echo $f;;
12341       *) # Relative
12342          if test -f "$f"; then
12343            # Build tree
12344            echo $f
12345          elif test -f "$srcdir/$f"; then
12346            # Source tree
12347            echo $srcdir/$f
12348          else
12349            # /dev/null tree
12350            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
12351 echo "$as_me: error: cannot find input file: $f" >&2;}
12352    { (exit 1); exit 1; }; }
12353          fi;;
12354       esac
12355     done` || { (exit 1); exit 1; }
12356 _ACEOF
12357 cat >>$CONFIG_STATUS <<_ACEOF
12358   sed "$ac_vpsub
12359 $extrasub
12360 _ACEOF
12361 cat >>$CONFIG_STATUS <<\_ACEOF
12362 :t
12363 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
12364 s,@configure_input@,$configure_input,;t t
12365 s,@srcdir@,$ac_srcdir,;t t
12366 s,@abs_srcdir@,$ac_abs_srcdir,;t t
12367 s,@top_srcdir@,$ac_top_srcdir,;t t
12368 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
12369 s,@builddir@,$ac_builddir,;t t
12370 s,@abs_builddir@,$ac_abs_builddir,;t t
12371 s,@top_builddir@,$ac_top_builddir,;t t
12372 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
12373 s,@INSTALL@,$ac_INSTALL,;t t
12374 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
12375   rm -f $tmp/stdin
12376   if test x"$ac_file" != x-; then
12377     mv $tmp/out $ac_file
12378   else
12379     cat $tmp/out
12380     rm -f $tmp/out
12381   fi
12382
12383 done
12384 _ACEOF
12385 cat >>$CONFIG_STATUS <<\_ACEOF
12386
12387 #
12388 # CONFIG_HEADER section.
12389 #
12390
12391 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
12392 # NAME is the cpp macro being defined and VALUE is the value it is being given.
12393 #
12394 # ac_d sets the value in "#define NAME VALUE" lines.
12395 ac_dA='s,^\([   ]*\)#\([        ]*define[       ][      ]*\)'
12396 ac_dB='[        ].*$,\1#\2'
12397 ac_dC=' '
12398 ac_dD=',;t'
12399 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
12400 ac_uA='s,^\([   ]*\)#\([        ]*\)undef\([    ][      ]*\)'
12401 ac_uB='$,\1#\2define\3'
12402 ac_uC=' '
12403 ac_uD=',;t'
12404
12405 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
12406   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
12407   case $ac_file in
12408   - | *:- | *:-:* ) # input from stdin
12409         cat >$tmp/stdin
12410         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
12411         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
12412   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
12413         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
12414   * )   ac_file_in=$ac_file.in ;;
12415   esac
12416
12417   test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
12418 echo "$as_me: creating $ac_file" >&6;}
12419
12420   # First look for the input files in the build tree, otherwise in the
12421   # src tree.
12422   ac_file_inputs=`IFS=:
12423     for f in $ac_file_in; do
12424       case $f in
12425       -) echo $tmp/stdin ;;
12426       [\\/$]*)
12427          # Absolute (can't be DOS-style, as IFS=:)
12428          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
12429 echo "$as_me: error: cannot find input file: $f" >&2;}
12430    { (exit 1); exit 1; }; }
12431          echo $f;;
12432       *) # Relative
12433          if test -f "$f"; then
12434            # Build tree
12435            echo $f
12436          elif test -f "$srcdir/$f"; then
12437            # Source tree
12438            echo $srcdir/$f
12439          else
12440            # /dev/null tree
12441            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
12442 echo "$as_me: error: cannot find input file: $f" >&2;}
12443    { (exit 1); exit 1; }; }
12444          fi;;
12445       esac
12446     done` || { (exit 1); exit 1; }
12447   # Remove the trailing spaces.
12448   sed 's/[      ]*$//' $ac_file_inputs >$tmp/in
12449
12450 _ACEOF
12451
12452 # Transform confdefs.h into two sed scripts, `conftest.defines' and
12453 # `conftest.undefs', that substitutes the proper values into
12454 # config.h.in to produce config.h.  The first handles `#define'
12455 # templates, and the second `#undef' templates.
12456 # And first: Protect against being on the right side of a sed subst in
12457 # config.status.  Protect against being in an unquoted here document
12458 # in config.status.
12459 rm -f conftest.defines conftest.undefs
12460 # Using a here document instead of a string reduces the quoting nightmare.
12461 # Putting comments in sed scripts is not portable.
12462 #
12463 # `end' is used to avoid that the second main sed command (meant for
12464 # 0-ary CPP macros) applies to n-ary macro definitions.
12465 # See the Autoconf documentation for `clear'.
12466 cat >confdef2sed.sed <<\_ACEOF
12467 s/[\\&,]/\\&/g
12468 s,[\\$`],\\&,g
12469 t clear
12470 : clear
12471 s,^[    ]*#[    ]*define[       ][      ]*\([^  (][^    (]*\)\(([^)]*)\)[       ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
12472 t end
12473 s,^[    ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
12474 : end
12475 _ACEOF
12476 # If some macros were called several times there might be several times
12477 # the same #defines, which is useless.  Nevertheless, we may not want to
12478 # sort them, since we want the *last* AC-DEFINE to be honored.
12479 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
12480 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
12481 rm -f confdef2sed.sed
12482
12483 # This sed command replaces #undef with comments.  This is necessary, for
12484 # example, in the case of _POSIX_SOURCE, which is predefined and required
12485 # on some systems where configure will not decide to define it.
12486 cat >>conftest.undefs <<\_ACEOF
12487 s,^[    ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
12488 _ACEOF
12489
12490 # Break up conftest.defines because some shells have a limit on the size
12491 # of here documents, and old seds have small limits too (100 cmds).
12492 echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
12493 echo '  if egrep "^[    ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
12494 echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
12495 echo '  :' >>$CONFIG_STATUS
12496 rm -f conftest.tail
12497 while grep . conftest.defines >/dev/null
12498 do
12499   # Write a limited-size here document to $tmp/defines.sed.
12500   echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
12501   # Speed up: don't consider the non `#define' lines.
12502   echo '/^[     ]*#[    ]*define/!b' >>$CONFIG_STATUS
12503   # Work around the forget-to-reset-the-flag bug.
12504   echo 't clr' >>$CONFIG_STATUS
12505   echo ': clr' >>$CONFIG_STATUS
12506   sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
12507   echo 'CEOF
12508   sed -f $tmp/defines.sed $tmp/in >$tmp/out
12509   rm -f $tmp/in
12510   mv $tmp/out $tmp/in
12511 ' >>$CONFIG_STATUS
12512   sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
12513   rm -f conftest.defines
12514   mv conftest.tail conftest.defines
12515 done
12516 rm -f conftest.defines
12517 echo '  fi # egrep' >>$CONFIG_STATUS
12518 echo >>$CONFIG_STATUS
12519
12520 # Break up conftest.undefs because some shells have a limit on the size
12521 # of here documents, and old seds have small limits too (100 cmds).
12522 echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
12523 rm -f conftest.tail
12524 while grep . conftest.undefs >/dev/null
12525 do
12526   # Write a limited-size here document to $tmp/undefs.sed.
12527   echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
12528   # Speed up: don't consider the non `#undef'
12529   echo '/^[     ]*#[    ]*undef/!b' >>$CONFIG_STATUS
12530   # Work around the forget-to-reset-the-flag bug.
12531   echo 't clr' >>$CONFIG_STATUS
12532   echo ': clr' >>$CONFIG_STATUS
12533   sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
12534   echo 'CEOF
12535   sed -f $tmp/undefs.sed $tmp/in >$tmp/out
12536   rm -f $tmp/in
12537   mv $tmp/out $tmp/in
12538 ' >>$CONFIG_STATUS
12539   sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
12540   rm -f conftest.undefs
12541   mv conftest.tail conftest.undefs
12542 done
12543 rm -f conftest.undefs
12544
12545 cat >>$CONFIG_STATUS <<\_ACEOF
12546   # Let's still pretend it is `configure' which instantiates (i.e., don't
12547   # use $as_me), people would be surprised to read:
12548   #    /* config.h.  Generated by config.status.  */
12549   if test x"$ac_file" = x-; then
12550     echo "/* Generated by configure.  */" >$tmp/config.h
12551   else
12552     echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
12553   fi
12554   cat $tmp/in >>$tmp/config.h
12555   rm -f $tmp/in
12556   if test x"$ac_file" != x-; then
12557     if cmp -s $ac_file $tmp/config.h 2>/dev/null; then
12558       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
12559 echo "$as_me: $ac_file is unchanged" >&6;}
12560     else
12561       ac_dir=`(dirname "$ac_file") 2>/dev/null ||
12562 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12563          X"$ac_file" : 'X\(//\)[^/]' \| \
12564          X"$ac_file" : 'X\(//\)$' \| \
12565          X"$ac_file" : 'X\(/\)' \| \
12566          .     : '\(.\)' 2>/dev/null ||
12567 echo X"$ac_file" |
12568     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12569           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12570           /^X\(\/\/\)$/{ s//\1/; q; }
12571           /^X\(\/\).*/{ s//\1/; q; }
12572           s/.*/./; q'`
12573       { case "$ac_dir" in
12574   [\\/]* | ?:[\\/]* ) as_incr_dir=;;
12575   *)                      as_incr_dir=.;;
12576 esac
12577 as_dummy="$ac_dir"
12578 for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
12579   case $as_mkdir_dir in
12580     # Skip DOS drivespec
12581     ?:) as_incr_dir=$as_mkdir_dir ;;
12582     *)
12583       as_incr_dir=$as_incr_dir/$as_mkdir_dir
12584       test -d "$as_incr_dir" ||
12585         mkdir "$as_incr_dir" ||
12586         { { echo "$as_me:$LINENO: error: cannot create \"$ac_dir\"" >&5
12587 echo "$as_me: error: cannot create \"$ac_dir\"" >&2;}
12588    { (exit 1); exit 1; }; }
12589     ;;
12590   esac
12591 done; }
12592
12593       rm -f $ac_file
12594       mv $tmp/config.h $ac_file
12595     fi
12596   else
12597     cat $tmp/config.h
12598     rm -f $tmp/config.h
12599   fi
12600 done
12601 _ACEOF
12602
12603 cat >>$CONFIG_STATUS <<\_ACEOF
12604
12605 { (exit 0); exit 0; }
12606 _ACEOF
12607 chmod +x $CONFIG_STATUS
12608 ac_clean_files=$ac_clean_files_save
12609
12610
12611 # configure is writing to config.log, and then calls config.status.
12612 # config.status does its own redirection, appending to config.log.
12613 # Unfortunately, on DOS this fails, as config.log is still kept open
12614 # by configure, so config.status won't be able to write to it; its
12615 # output is simply discarded.  So we exec the FD to /dev/null,
12616 # effectively closing config.log, so it can be properly (re)opened and
12617 # appended to by config.status.  When coming back to configure, we
12618 # need to make the FD available again.
12619 if test "$no_create" != yes; then
12620   ac_cs_success=:
12621   exec 5>/dev/null
12622   $SHELL $CONFIG_STATUS || ac_cs_success=false
12623   exec 5>>config.log
12624   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
12625   # would make configure fail if this is the last instruction.
12626   $ac_cs_success || { (exit 1); exit 1; }
12627 fi
12628