* New upstream release.
[debian/mimetic.git] / configure
1 #! /bin/sh
2 # From configure.in Revision: 1.35 .
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated by GNU Autoconf 2.59.
5 #
6 # Copyright (C) 2003 Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
9 ## --------------------- ##
10 ## M4sh Initialization.  ##
11 ## --------------------- ##
12
13 # Be Bourne compatible
14 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
15   emulate sh
16   NULLCMD=:
17   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
18   # is contrary to our usage.  Disable this feature.
19   alias -g '${1+"$@"}'='"$@"'
20 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
21   set -o posix
22 fi
23 DUALCASE=1; export DUALCASE # for MKS sh
24
25 # Support unset when possible.
26 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
27   as_unset=unset
28 else
29   as_unset=false
30 fi
31
32
33 # Work around bugs in pre-3.0 UWIN ksh.
34 $as_unset ENV MAIL MAILPATH
35 PS1='$ '
36 PS2='> '
37 PS4='+ '
38
39 # NLS nuisances.
40 for as_var in \
41   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
42   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
43   LC_TELEPHONE LC_TIME
44 do
45   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
46     eval $as_var=C; export $as_var
47   else
48     $as_unset $as_var
49   fi
50 done
51
52 # Required to use basename.
53 if expr a : '\(a\)' >/dev/null 2>&1; then
54   as_expr=expr
55 else
56   as_expr=false
57 fi
58
59 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
60   as_basename=basename
61 else
62   as_basename=false
63 fi
64
65
66 # Name of the executable.
67 as_me=`$as_basename "$0" ||
68 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
69          X"$0" : 'X\(//\)$' \| \
70          X"$0" : 'X\(/\)$' \| \
71          .     : '\(.\)' 2>/dev/null ||
72 echo X/"$0" |
73     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
74           /^X\/\(\/\/\)$/{ s//\1/; q; }
75           /^X\/\(\/\).*/{ s//\1/; q; }
76           s/.*/./; q'`
77
78
79 # PATH needs CR, and LINENO needs CR and PATH.
80 # Avoid depending upon Character Ranges.
81 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
82 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
83 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
84 as_cr_digits='0123456789'
85 as_cr_alnum=$as_cr_Letters$as_cr_digits
86
87 # The user is always right.
88 if test "${PATH_SEPARATOR+set}" != set; then
89   echo "#! /bin/sh" >conf$$.sh
90   echo  "exit 0"   >>conf$$.sh
91   chmod +x conf$$.sh
92   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
93     PATH_SEPARATOR=';'
94   else
95     PATH_SEPARATOR=:
96   fi
97   rm -f conf$$.sh
98 fi
99
100
101   as_lineno_1=$LINENO
102   as_lineno_2=$LINENO
103   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
104   test "x$as_lineno_1" != "x$as_lineno_2" &&
105   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
106   # Find who we are.  Look in the path if we contain no path at all
107   # relative or not.
108   case $0 in
109     *[\\/]* ) as_myself=$0 ;;
110     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
111 for as_dir in $PATH
112 do
113   IFS=$as_save_IFS
114   test -z "$as_dir" && as_dir=.
115   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
116 done
117
118        ;;
119   esac
120   # We did not find ourselves, most probably we were run as `sh COMMAND'
121   # in which case we are not to be found in the path.
122   if test "x$as_myself" = x; then
123     as_myself=$0
124   fi
125   if test ! -f "$as_myself"; then
126     { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
127    { (exit 1); exit 1; }; }
128   fi
129   case $CONFIG_SHELL in
130   '')
131     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
132 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
133 do
134   IFS=$as_save_IFS
135   test -z "$as_dir" && as_dir=.
136   for as_base in sh bash ksh sh5; do
137          case $as_dir in
138          /*)
139            if ("$as_dir/$as_base" -c '
140   as_lineno_1=$LINENO
141   as_lineno_2=$LINENO
142   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
143   test "x$as_lineno_1" != "x$as_lineno_2" &&
144   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
145              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
146              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
147              CONFIG_SHELL=$as_dir/$as_base
148              export CONFIG_SHELL
149              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
150            fi;;
151          esac
152        done
153 done
154 ;;
155   esac
156
157   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
158   # uniformly replaced by the line number.  The first 'sed' inserts a
159   # line-number line before each line; the second 'sed' does the real
160   # work.  The second script uses 'N' to pair each line-number line
161   # with the numbered line, and appends trailing '-' during
162   # substitution so that $LINENO is not a special case at line end.
163   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
164   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
165   sed '=' <$as_myself |
166     sed '
167       N
168       s,$,-,
169       : loop
170       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
171       t loop
172       s,-$,,
173       s,^['$as_cr_digits']*\n,,
174     ' >$as_me.lineno &&
175   chmod +x $as_me.lineno ||
176     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
177    { (exit 1); exit 1; }; }
178
179   # Don't try to exec as it changes $[0], causing all sort of problems
180   # (the dirname of $[0] is not the place where we might find the
181   # original and so on.  Autoconf is especially sensible to this).
182   . ./$as_me.lineno
183   # Exit status is that of the last command.
184   exit
185 }
186
187
188 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
189   *c*,-n*) ECHO_N= ECHO_C='
190 ' ECHO_T='      ' ;;
191   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
192   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
193 esac
194
195 if expr a : '\(a\)' >/dev/null 2>&1; then
196   as_expr=expr
197 else
198   as_expr=false
199 fi
200
201 rm -f conf$$ conf$$.exe conf$$.file
202 echo >conf$$.file
203 if ln -s conf$$.file conf$$ 2>/dev/null; then
204   # We could just check for DJGPP; but this test a) works b) is more generic
205   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
206   if test -f conf$$.exe; then
207     # Don't use ln at all; we don't have any links
208     as_ln_s='cp -p'
209   else
210     as_ln_s='ln -s'
211   fi
212 elif ln conf$$.file conf$$ 2>/dev/null; then
213   as_ln_s=ln
214 else
215   as_ln_s='cp -p'
216 fi
217 rm -f conf$$ conf$$.exe conf$$.file
218
219 if mkdir -p . 2>/dev/null; then
220   as_mkdir_p=:
221 else
222   test -d ./-p && rmdir ./-p
223   as_mkdir_p=false
224 fi
225
226 as_executable_p="test -f"
227
228 # Sed expression to map a string onto a valid CPP name.
229 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
230
231 # Sed expression to map a string onto a valid variable name.
232 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
233
234
235 # IFS
236 # We need space, tab and new line, in precisely that order.
237 as_nl='
238 '
239 IFS="   $as_nl"
240
241 # CDPATH.
242 $as_unset CDPATH
243
244
245
246 # Check that we are running under the correct shell.
247 SHELL=${CONFIG_SHELL-/bin/sh}
248
249 case X$ECHO in
250 X*--fallback-echo)
251   # Remove one level of quotation (which was required for Make).
252   ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
253   ;;
254 esac
255
256 echo=${ECHO-echo}
257 if test "X$1" = X--no-reexec; then
258   # Discard the --no-reexec flag, and continue.
259   shift
260 elif test "X$1" = X--fallback-echo; then
261   # Avoid inline document here, it may be left over
262   :
263 elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
264   # Yippee, $echo works!
265   :
266 else
267   # Restart under the correct shell.
268   exec $SHELL "$0" --no-reexec ${1+"$@"}
269 fi
270
271 if test "X$1" = X--fallback-echo; then
272   # used as fallback echo
273   shift
274   cat <<EOF
275 $*
276 EOF
277   exit 0
278 fi
279
280 # The HP-UX ksh and POSIX shell print the target directory to stdout
281 # if CDPATH is set.
282 if test "X${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
283
284 if test -z "$ECHO"; then
285 if test "X${echo_test_string+set}" != Xset; then
286 # find a string as large as possible, as long as the shell can cope with it
287   for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
288     # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
289     if (echo_test_string="`eval $cmd`") 2>/dev/null &&
290        echo_test_string="`eval $cmd`" &&
291        (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
292     then
293       break
294     fi
295   done
296 fi
297
298 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
299    echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
300    test "X$echo_testing_string" = "X$echo_test_string"; then
301   :
302 else
303   # The Solaris, AIX, and Digital Unix default echo programs unquote
304   # backslashes.  This makes it impossible to quote backslashes using
305   #   echo "$something" | sed 's/\\/\\\\/g'
306   #
307   # So, first we look for a working echo in the user's PATH.
308
309   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
310   for dir in $PATH /usr/ucb; do
311     IFS="$lt_save_ifs"
312     if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
313        test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
314        echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
315        test "X$echo_testing_string" = "X$echo_test_string"; then
316       echo="$dir/echo"
317       break
318     fi
319   done
320   IFS="$lt_save_ifs"
321
322   if test "X$echo" = Xecho; then
323     # We didn't find a better echo, so look for alternatives.
324     if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
325        echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
326        test "X$echo_testing_string" = "X$echo_test_string"; then
327       # This shell has a builtin print -r that does the trick.
328       echo='print -r'
329     elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
330          test "X$CONFIG_SHELL" != X/bin/ksh; then
331       # If we have ksh, try running configure again with it.
332       ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
333       export ORIGINAL_CONFIG_SHELL
334       CONFIG_SHELL=/bin/ksh
335       export CONFIG_SHELL
336       exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
337     else
338       # Try using printf.
339       echo='printf %s\n'
340       if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
341          echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
342          test "X$echo_testing_string" = "X$echo_test_string"; then
343         # Cool, printf works
344         :
345       elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
346            test "X$echo_testing_string" = 'X\t' &&
347            echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
348            test "X$echo_testing_string" = "X$echo_test_string"; then
349         CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
350         export CONFIG_SHELL
351         SHELL="$CONFIG_SHELL"
352         export SHELL
353         echo="$CONFIG_SHELL $0 --fallback-echo"
354       elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
355            test "X$echo_testing_string" = 'X\t' &&
356            echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
357            test "X$echo_testing_string" = "X$echo_test_string"; then
358         echo="$CONFIG_SHELL $0 --fallback-echo"
359       else
360         # maybe with a smaller string...
361         prev=:
362
363         for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
364           if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
365           then
366             break
367           fi
368           prev="$cmd"
369         done
370
371         if test "$prev" != 'sed 50q "$0"'; then
372           echo_test_string=`eval $prev`
373           export echo_test_string
374           exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
375         else
376           # Oops.  We lost completely, so just stick with echo.
377           echo=echo
378         fi
379       fi
380     fi
381   fi
382 fi
383 fi
384
385 # Copy echo and quote the copy suitably for passing to libtool from
386 # the Makefile, instead of quoting the original, which is used later.
387 ECHO=$echo
388 if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
389    ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
390 fi
391
392
393
394
395 tagnames=${tagnames+${tagnames},}CXX
396
397 tagnames=${tagnames+${tagnames},}F77
398
399 # Name of the host.
400 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
401 # so uname gets run too.
402 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
403
404 exec 6>&1
405
406 #
407 # Initializations.
408 #
409 ac_default_prefix=/usr/local
410 ac_config_libobj_dir=.
411 cross_compiling=no
412 subdirs=
413 MFLAGS=
414 MAKEFLAGS=
415 SHELL=${CONFIG_SHELL-/bin/sh}
416
417 # Maximum number of lines to put in a shell here document.
418 # This variable seems obsolete.  It should probably be removed, and
419 # only ac_max_sed_lines should be used.
420 : ${ac_max_here_lines=38}
421
422 # Identity of this package.
423 PACKAGE_NAME=
424 PACKAGE_TARNAME=
425 PACKAGE_VERSION=
426 PACKAGE_STRING=
427 PACKAGE_BUGREPORT=
428
429 ac_unique_file="mimetic/mimetic.h"
430 # Factoring default headers for most tests.
431 ac_includes_default="\
432 #include <stdio.h>
433 #if HAVE_SYS_TYPES_H
434 # include <sys/types.h>
435 #endif
436 #if HAVE_SYS_STAT_H
437 # include <sys/stat.h>
438 #endif
439 #if STDC_HEADERS
440 # include <stdlib.h>
441 # include <stddef.h>
442 #else
443 # if HAVE_STDLIB_H
444 #  include <stdlib.h>
445 # endif
446 #endif
447 #if HAVE_STRING_H
448 # if !STDC_HEADERS && HAVE_MEMORY_H
449 #  include <memory.h>
450 # endif
451 # include <string.h>
452 #endif
453 #if HAVE_STRINGS_H
454 # include <strings.h>
455 #endif
456 #if HAVE_INTTYPES_H
457 # include <inttypes.h>
458 #else
459 # if HAVE_STDINT_H
460 #  include <stdint.h>
461 # endif
462 #endif
463 #if HAVE_UNISTD_H
464 # include <unistd.h>
465 #endif"
466
467 ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO SET_MAKE CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT EGREP LN_S ECHO AR ac_ct_AR RANLIB ac_ct_RANLIB STRIP ac_ct_STRIP CPP CXX CXXFLAGS ac_ct_CXX CXXCPP F77 FFLAGS ac_ct_F77 LIBTOOL INCLUDEDIR LIBOBJS LTLIBOBJS'
468 ac_subst_files=''
469
470 # Initialize some variables set by options.
471 ac_init_help=
472 ac_init_version=false
473 # The variables have the same names as the options, with
474 # dashes changed to underlines.
475 cache_file=/dev/null
476 exec_prefix=NONE
477 no_create=
478 no_recursion=
479 prefix=NONE
480 program_prefix=NONE
481 program_suffix=NONE
482 program_transform_name=s,x,x,
483 silent=
484 site=
485 srcdir=
486 verbose=
487 x_includes=NONE
488 x_libraries=NONE
489
490 # Installation directory options.
491 # These are left unexpanded so users can "make install exec_prefix=/foo"
492 # and all the variables that are supposed to be based on exec_prefix
493 # by default will actually change.
494 # Use braces instead of parens because sh, perl, etc. also accept them.
495 bindir='${exec_prefix}/bin'
496 sbindir='${exec_prefix}/sbin'
497 libexecdir='${exec_prefix}/libexec'
498 datadir='${prefix}/share'
499 sysconfdir='${prefix}/etc'
500 sharedstatedir='${prefix}/com'
501 localstatedir='${prefix}/var'
502 libdir='${exec_prefix}/lib'
503 includedir='${prefix}/include'
504 oldincludedir='/usr/include'
505 infodir='${prefix}/info'
506 mandir='${prefix}/man'
507
508 ac_prev=
509 for ac_option
510 do
511   # If the previous option needs an argument, assign it.
512   if test -n "$ac_prev"; then
513     eval "$ac_prev=\$ac_option"
514     ac_prev=
515     continue
516   fi
517
518   ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
519
520   # Accept the important Cygnus configure options, so we can diagnose typos.
521
522   case $ac_option in
523
524   -bindir | --bindir | --bindi | --bind | --bin | --bi)
525     ac_prev=bindir ;;
526   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
527     bindir=$ac_optarg ;;
528
529   -build | --build | --buil | --bui | --bu)
530     ac_prev=build_alias ;;
531   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
532     build_alias=$ac_optarg ;;
533
534   -cache-file | --cache-file | --cache-fil | --cache-fi \
535   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
536     ac_prev=cache_file ;;
537   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
538   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
539     cache_file=$ac_optarg ;;
540
541   --config-cache | -C)
542     cache_file=config.cache ;;
543
544   -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
545     ac_prev=datadir ;;
546   -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
547   | --da=*)
548     datadir=$ac_optarg ;;
549
550   -disable-* | --disable-*)
551     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
552     # Reject names that are not valid shell variable names.
553     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
554       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
555    { (exit 1); exit 1; }; }
556     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
557     eval "enable_$ac_feature=no" ;;
558
559   -enable-* | --enable-*)
560     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
561     # Reject names that are not valid shell variable names.
562     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
563       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
564    { (exit 1); exit 1; }; }
565     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
566     case $ac_option in
567       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
568       *) ac_optarg=yes ;;
569     esac
570     eval "enable_$ac_feature='$ac_optarg'" ;;
571
572   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
573   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
574   | --exec | --exe | --ex)
575     ac_prev=exec_prefix ;;
576   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
577   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
578   | --exec=* | --exe=* | --ex=*)
579     exec_prefix=$ac_optarg ;;
580
581   -gas | --gas | --ga | --g)
582     # Obsolete; use --with-gas.
583     with_gas=yes ;;
584
585   -help | --help | --hel | --he | -h)
586     ac_init_help=long ;;
587   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
588     ac_init_help=recursive ;;
589   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
590     ac_init_help=short ;;
591
592   -host | --host | --hos | --ho)
593     ac_prev=host_alias ;;
594   -host=* | --host=* | --hos=* | --ho=*)
595     host_alias=$ac_optarg ;;
596
597   -includedir | --includedir | --includedi | --included | --include \
598   | --includ | --inclu | --incl | --inc)
599     ac_prev=includedir ;;
600   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
601   | --includ=* | --inclu=* | --incl=* | --inc=*)
602     includedir=$ac_optarg ;;
603
604   -infodir | --infodir | --infodi | --infod | --info | --inf)
605     ac_prev=infodir ;;
606   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
607     infodir=$ac_optarg ;;
608
609   -libdir | --libdir | --libdi | --libd)
610     ac_prev=libdir ;;
611   -libdir=* | --libdir=* | --libdi=* | --libd=*)
612     libdir=$ac_optarg ;;
613
614   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
615   | --libexe | --libex | --libe)
616     ac_prev=libexecdir ;;
617   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
618   | --libexe=* | --libex=* | --libe=*)
619     libexecdir=$ac_optarg ;;
620
621   -localstatedir | --localstatedir | --localstatedi | --localstated \
622   | --localstate | --localstat | --localsta | --localst \
623   | --locals | --local | --loca | --loc | --lo)
624     ac_prev=localstatedir ;;
625   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
626   | --localstate=* | --localstat=* | --localsta=* | --localst=* \
627   | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
628     localstatedir=$ac_optarg ;;
629
630   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
631     ac_prev=mandir ;;
632   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
633     mandir=$ac_optarg ;;
634
635   -nfp | --nfp | --nf)
636     # Obsolete; use --without-fp.
637     with_fp=no ;;
638
639   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
640   | --no-cr | --no-c | -n)
641     no_create=yes ;;
642
643   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
644   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
645     no_recursion=yes ;;
646
647   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
648   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
649   | --oldin | --oldi | --old | --ol | --o)
650     ac_prev=oldincludedir ;;
651   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
652   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
653   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
654     oldincludedir=$ac_optarg ;;
655
656   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
657     ac_prev=prefix ;;
658   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
659     prefix=$ac_optarg ;;
660
661   -program-prefix | --program-prefix | --program-prefi | --program-pref \
662   | --program-pre | --program-pr | --program-p)
663     ac_prev=program_prefix ;;
664   -program-prefix=* | --program-prefix=* | --program-prefi=* \
665   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
666     program_prefix=$ac_optarg ;;
667
668   -program-suffix | --program-suffix | --program-suffi | --program-suff \
669   | --program-suf | --program-su | --program-s)
670     ac_prev=program_suffix ;;
671   -program-suffix=* | --program-suffix=* | --program-suffi=* \
672   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
673     program_suffix=$ac_optarg ;;
674
675   -program-transform-name | --program-transform-name \
676   | --program-transform-nam | --program-transform-na \
677   | --program-transform-n | --program-transform- \
678   | --program-transform | --program-transfor \
679   | --program-transfo | --program-transf \
680   | --program-trans | --program-tran \
681   | --progr-tra | --program-tr | --program-t)
682     ac_prev=program_transform_name ;;
683   -program-transform-name=* | --program-transform-name=* \
684   | --program-transform-nam=* | --program-transform-na=* \
685   | --program-transform-n=* | --program-transform-=* \
686   | --program-transform=* | --program-transfor=* \
687   | --program-transfo=* | --program-transf=* \
688   | --program-trans=* | --program-tran=* \
689   | --progr-tra=* | --program-tr=* | --program-t=*)
690     program_transform_name=$ac_optarg ;;
691
692   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
693   | -silent | --silent | --silen | --sile | --sil)
694     silent=yes ;;
695
696   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
697     ac_prev=sbindir ;;
698   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
699   | --sbi=* | --sb=*)
700     sbindir=$ac_optarg ;;
701
702   -sharedstatedir | --sharedstatedir | --sharedstatedi \
703   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
704   | --sharedst | --shareds | --shared | --share | --shar \
705   | --sha | --sh)
706     ac_prev=sharedstatedir ;;
707   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
708   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
709   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
710   | --sha=* | --sh=*)
711     sharedstatedir=$ac_optarg ;;
712
713   -site | --site | --sit)
714     ac_prev=site ;;
715   -site=* | --site=* | --sit=*)
716     site=$ac_optarg ;;
717
718   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
719     ac_prev=srcdir ;;
720   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
721     srcdir=$ac_optarg ;;
722
723   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
724   | --syscon | --sysco | --sysc | --sys | --sy)
725     ac_prev=sysconfdir ;;
726   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
727   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
728     sysconfdir=$ac_optarg ;;
729
730   -target | --target | --targe | --targ | --tar | --ta | --t)
731     ac_prev=target_alias ;;
732   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
733     target_alias=$ac_optarg ;;
734
735   -v | -verbose | --verbose | --verbos | --verbo | --verb)
736     verbose=yes ;;
737
738   -version | --version | --versio | --versi | --vers | -V)
739     ac_init_version=: ;;
740
741   -with-* | --with-*)
742     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
743     # Reject names that are not valid shell variable names.
744     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
745       { echo "$as_me: error: invalid package name: $ac_package" >&2
746    { (exit 1); exit 1; }; }
747     ac_package=`echo $ac_package| sed 's/-/_/g'`
748     case $ac_option in
749       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
750       *) ac_optarg=yes ;;
751     esac
752     eval "with_$ac_package='$ac_optarg'" ;;
753
754   -without-* | --without-*)
755     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
756     # Reject names that are not valid shell variable names.
757     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
758       { echo "$as_me: error: invalid package name: $ac_package" >&2
759    { (exit 1); exit 1; }; }
760     ac_package=`echo $ac_package | sed 's/-/_/g'`
761     eval "with_$ac_package=no" ;;
762
763   --x)
764     # Obsolete; use --with-x.
765     with_x=yes ;;
766
767   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
768   | --x-incl | --x-inc | --x-in | --x-i)
769     ac_prev=x_includes ;;
770   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
771   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
772     x_includes=$ac_optarg ;;
773
774   -x-libraries | --x-libraries | --x-librarie | --x-librari \
775   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
776     ac_prev=x_libraries ;;
777   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
778   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
779     x_libraries=$ac_optarg ;;
780
781   -*) { echo "$as_me: error: unrecognized option: $ac_option
782 Try \`$0 --help' for more information." >&2
783    { (exit 1); exit 1; }; }
784     ;;
785
786   *=*)
787     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
788     # Reject names that are not valid shell variable names.
789     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
790       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
791    { (exit 1); exit 1; }; }
792     ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
793     eval "$ac_envvar='$ac_optarg'"
794     export $ac_envvar ;;
795
796   *)
797     # FIXME: should be removed in autoconf 3.0.
798     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
799     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
800       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
801     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
802     ;;
803
804   esac
805 done
806
807 if test -n "$ac_prev"; then
808   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
809   { echo "$as_me: error: missing argument to $ac_option" >&2
810    { (exit 1); exit 1; }; }
811 fi
812
813 # Be sure to have absolute paths.
814 for ac_var in exec_prefix prefix
815 do
816   eval ac_val=$`echo $ac_var`
817   case $ac_val in
818     [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
819     *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
820    { (exit 1); exit 1; }; };;
821   esac
822 done
823
824 # Be sure to have absolute paths.
825 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
826               localstatedir libdir includedir oldincludedir infodir mandir
827 do
828   eval ac_val=$`echo $ac_var`
829   case $ac_val in
830     [\\/$]* | ?:[\\/]* ) ;;
831     *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
832    { (exit 1); exit 1; }; };;
833   esac
834 done
835
836 # There might be people who depend on the old broken behavior: `$host'
837 # used to hold the argument of --host etc.
838 # FIXME: To remove some day.
839 build=$build_alias
840 host=$host_alias
841 target=$target_alias
842
843 # FIXME: To remove some day.
844 if test "x$host_alias" != x; then
845   if test "x$build_alias" = x; then
846     cross_compiling=maybe
847     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
848     If a cross compiler is detected then cross compile mode will be used." >&2
849   elif test "x$build_alias" != "x$host_alias"; then
850     cross_compiling=yes
851   fi
852 fi
853
854 ac_tool_prefix=
855 test -n "$host_alias" && ac_tool_prefix=$host_alias-
856
857 test "$silent" = yes && exec 6>/dev/null
858
859
860 # Find the source files, if location was not specified.
861 if test -z "$srcdir"; then
862   ac_srcdir_defaulted=yes
863   # Try the directory containing this script, then its parent.
864   ac_confdir=`(dirname "$0") 2>/dev/null ||
865 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
866          X"$0" : 'X\(//\)[^/]' \| \
867          X"$0" : 'X\(//\)$' \| \
868          X"$0" : 'X\(/\)' \| \
869          .     : '\(.\)' 2>/dev/null ||
870 echo X"$0" |
871     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
872           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
873           /^X\(\/\/\)$/{ s//\1/; q; }
874           /^X\(\/\).*/{ s//\1/; q; }
875           s/.*/./; q'`
876   srcdir=$ac_confdir
877   if test ! -r $srcdir/$ac_unique_file; then
878     srcdir=..
879   fi
880 else
881   ac_srcdir_defaulted=no
882 fi
883 if test ! -r $srcdir/$ac_unique_file; then
884   if test "$ac_srcdir_defaulted" = yes; then
885     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
886    { (exit 1); exit 1; }; }
887   else
888     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
889    { (exit 1); exit 1; }; }
890   fi
891 fi
892 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
893   { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
894    { (exit 1); exit 1; }; }
895 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
896 ac_env_build_alias_set=${build_alias+set}
897 ac_env_build_alias_value=$build_alias
898 ac_cv_env_build_alias_set=${build_alias+set}
899 ac_cv_env_build_alias_value=$build_alias
900 ac_env_host_alias_set=${host_alias+set}
901 ac_env_host_alias_value=$host_alias
902 ac_cv_env_host_alias_set=${host_alias+set}
903 ac_cv_env_host_alias_value=$host_alias
904 ac_env_target_alias_set=${target_alias+set}
905 ac_env_target_alias_value=$target_alias
906 ac_cv_env_target_alias_set=${target_alias+set}
907 ac_cv_env_target_alias_value=$target_alias
908 ac_env_CC_set=${CC+set}
909 ac_env_CC_value=$CC
910 ac_cv_env_CC_set=${CC+set}
911 ac_cv_env_CC_value=$CC
912 ac_env_CFLAGS_set=${CFLAGS+set}
913 ac_env_CFLAGS_value=$CFLAGS
914 ac_cv_env_CFLAGS_set=${CFLAGS+set}
915 ac_cv_env_CFLAGS_value=$CFLAGS
916 ac_env_LDFLAGS_set=${LDFLAGS+set}
917 ac_env_LDFLAGS_value=$LDFLAGS
918 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
919 ac_cv_env_LDFLAGS_value=$LDFLAGS
920 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
921 ac_env_CPPFLAGS_value=$CPPFLAGS
922 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
923 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
924 ac_env_CPP_set=${CPP+set}
925 ac_env_CPP_value=$CPP
926 ac_cv_env_CPP_set=${CPP+set}
927 ac_cv_env_CPP_value=$CPP
928 ac_env_CXX_set=${CXX+set}
929 ac_env_CXX_value=$CXX
930 ac_cv_env_CXX_set=${CXX+set}
931 ac_cv_env_CXX_value=$CXX
932 ac_env_CXXFLAGS_set=${CXXFLAGS+set}
933 ac_env_CXXFLAGS_value=$CXXFLAGS
934 ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
935 ac_cv_env_CXXFLAGS_value=$CXXFLAGS
936 ac_env_CXXCPP_set=${CXXCPP+set}
937 ac_env_CXXCPP_value=$CXXCPP
938 ac_cv_env_CXXCPP_set=${CXXCPP+set}
939 ac_cv_env_CXXCPP_value=$CXXCPP
940 ac_env_F77_set=${F77+set}
941 ac_env_F77_value=$F77
942 ac_cv_env_F77_set=${F77+set}
943 ac_cv_env_F77_value=$F77
944 ac_env_FFLAGS_set=${FFLAGS+set}
945 ac_env_FFLAGS_value=$FFLAGS
946 ac_cv_env_FFLAGS_set=${FFLAGS+set}
947 ac_cv_env_FFLAGS_value=$FFLAGS
948
949 #
950 # Report the --help message.
951 #
952 if test "$ac_init_help" = "long"; then
953   # Omit some internal or obsolete options to make the list less imposing.
954   # This message is too long to be a string in the A/UX 3.1 sh.
955   cat <<_ACEOF
956 \`configure' configures this package to adapt to many kinds of systems.
957
958 Usage: $0 [OPTION]... [VAR=VALUE]...
959
960 To assign environment variables (e.g., CC, CFLAGS...), specify them as
961 VAR=VALUE.  See below for descriptions of some of the useful variables.
962
963 Defaults for the options are specified in brackets.
964
965 Configuration:
966   -h, --help              display this help and exit
967       --help=short        display options specific to this package
968       --help=recursive    display the short help of all the included packages
969   -V, --version           display version information and exit
970   -q, --quiet, --silent   do not print \`checking...' messages
971       --cache-file=FILE   cache test results in FILE [disabled]
972   -C, --config-cache      alias for \`--cache-file=config.cache'
973   -n, --no-create         do not create output files
974       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
975
976 _ACEOF
977
978   cat <<_ACEOF
979 Installation directories:
980   --prefix=PREFIX         install architecture-independent files in PREFIX
981                           [$ac_default_prefix]
982   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
983                           [PREFIX]
984
985 By default, \`make install' will install all the files in
986 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
987 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
988 for instance \`--prefix=\$HOME'.
989
990 For better control, use the options below.
991
992 Fine tuning of the installation directories:
993   --bindir=DIR           user executables [EPREFIX/bin]
994   --sbindir=DIR          system admin executables [EPREFIX/sbin]
995   --libexecdir=DIR       program executables [EPREFIX/libexec]
996   --datadir=DIR          read-only architecture-independent data [PREFIX/share]
997   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
998   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
999   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1000   --libdir=DIR           object code libraries [EPREFIX/lib]
1001   --includedir=DIR       C header files [PREFIX/include]
1002   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1003   --infodir=DIR          info documentation [PREFIX/info]
1004   --mandir=DIR           man documentation [PREFIX/man]
1005 _ACEOF
1006
1007   cat <<\_ACEOF
1008
1009 Program names:
1010   --program-prefix=PREFIX            prepend PREFIX to installed program names
1011   --program-suffix=SUFFIX            append SUFFIX to installed program names
1012   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1013
1014 System types:
1015   --build=BUILD     configure for building on BUILD [guessed]
1016   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1017   --target=TARGET   configure for building compilers for TARGET [HOST]
1018 _ACEOF
1019 fi
1020
1021 if test -n "$ac_init_help"; then
1022
1023   cat <<\_ACEOF
1024
1025 Optional Features:
1026   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1027   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1028   --enable-shared[=PKGS]
1029                           build shared libraries [default=yes]
1030   --enable-static[=PKGS]
1031                           build static libraries [default=yes]
1032   --enable-fast-install[=PKGS]
1033                           optimize for fast installation [default=yes]
1034   --disable-libtool-lock  avoid locking (might break parallel builds)
1035   --enable-debug=LEVEL  enables debug symbols default=2
1036   --enable-profile        enables profiling
1037
1038 Optional Packages:
1039   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1040   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1041   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1042   --with-pic              try to use only PIC/non-PIC objects [default=use
1043                           both]
1044   --with-tags[=TAGS]
1045                           include additional configurations [automatic]
1046   --with-stlport=BASEDIR       use STLport
1047   --with-stlport-includes=DIR    where the STLport includes are
1048   --with-stlport-libraries=DIR   where STLport library is installed
1049   --with-stlport-libname=NAME    STLport lib base name
1050
1051 Some influential environment variables:
1052   CC          C compiler command
1053   CFLAGS      C compiler flags
1054   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1055               nonstandard directory <lib dir>
1056   CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
1057               headers in a nonstandard directory <include dir>
1058   CPP         C preprocessor
1059   CXX         C++ compiler command
1060   CXXFLAGS    C++ compiler flags
1061   CXXCPP      C++ preprocessor
1062   F77         Fortran 77 compiler command
1063   FFLAGS      Fortran 77 compiler flags
1064
1065 Use these variables to override the choices made by `configure' or to help
1066 it to find libraries and programs with nonstandard names/locations.
1067
1068 _ACEOF
1069 fi
1070
1071 if test "$ac_init_help" = "recursive"; then
1072   # If there are subdirs, report their specific --help.
1073   ac_popdir=`pwd`
1074   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1075     test -d $ac_dir || continue
1076     ac_builddir=.
1077
1078 if test "$ac_dir" != .; then
1079   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1080   # A "../" for each directory in $ac_dir_suffix.
1081   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1082 else
1083   ac_dir_suffix= ac_top_builddir=
1084 fi
1085
1086 case $srcdir in
1087   .)  # No --srcdir option.  We are building in place.
1088     ac_srcdir=.
1089     if test -z "$ac_top_builddir"; then
1090        ac_top_srcdir=.
1091     else
1092        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1093     fi ;;
1094   [\\/]* | ?:[\\/]* )  # Absolute path.
1095     ac_srcdir=$srcdir$ac_dir_suffix;
1096     ac_top_srcdir=$srcdir ;;
1097   *) # Relative path.
1098     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1099     ac_top_srcdir=$ac_top_builddir$srcdir ;;
1100 esac
1101
1102 # Do not use `cd foo && pwd` to compute absolute paths, because
1103 # the directories may not exist.
1104 case `pwd` in
1105 .) ac_abs_builddir="$ac_dir";;
1106 *)
1107   case "$ac_dir" in
1108   .) ac_abs_builddir=`pwd`;;
1109   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1110   *) ac_abs_builddir=`pwd`/"$ac_dir";;
1111   esac;;
1112 esac
1113 case $ac_abs_builddir in
1114 .) ac_abs_top_builddir=${ac_top_builddir}.;;
1115 *)
1116   case ${ac_top_builddir}. in
1117   .) ac_abs_top_builddir=$ac_abs_builddir;;
1118   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1119   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1120   esac;;
1121 esac
1122 case $ac_abs_builddir in
1123 .) ac_abs_srcdir=$ac_srcdir;;
1124 *)
1125   case $ac_srcdir in
1126   .) ac_abs_srcdir=$ac_abs_builddir;;
1127   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1128   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1129   esac;;
1130 esac
1131 case $ac_abs_builddir in
1132 .) ac_abs_top_srcdir=$ac_top_srcdir;;
1133 *)
1134   case $ac_top_srcdir in
1135   .) ac_abs_top_srcdir=$ac_abs_builddir;;
1136   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1137   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1138   esac;;
1139 esac
1140
1141     cd $ac_dir
1142     # Check for guested configure; otherwise get Cygnus style configure.
1143     if test -f $ac_srcdir/configure.gnu; then
1144       echo
1145       $SHELL $ac_srcdir/configure.gnu  --help=recursive
1146     elif test -f $ac_srcdir/configure; then
1147       echo
1148       $SHELL $ac_srcdir/configure  --help=recursive
1149     elif test -f $ac_srcdir/configure.ac ||
1150            test -f $ac_srcdir/configure.in; then
1151       echo
1152       $ac_configure --help
1153     else
1154       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1155     fi
1156     cd "$ac_popdir"
1157   done
1158 fi
1159
1160 test -n "$ac_init_help" && exit 0
1161 if $ac_init_version; then
1162   cat <<\_ACEOF
1163
1164 Copyright (C) 2003 Free Software Foundation, Inc.
1165 This configure script is free software; the Free Software Foundation
1166 gives unlimited permission to copy, distribute and modify it.
1167 _ACEOF
1168   exit 0
1169 fi
1170 exec 5>config.log
1171 cat >&5 <<_ACEOF
1172 This file contains any messages produced by compilers while
1173 running configure, to aid debugging if configure makes a mistake.
1174
1175 It was created by $as_me, which was
1176 generated by GNU Autoconf 2.59.  Invocation command line was
1177
1178   $ $0 $@
1179
1180 _ACEOF
1181 {
1182 cat <<_ASUNAME
1183 ## --------- ##
1184 ## Platform. ##
1185 ## --------- ##
1186
1187 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1188 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1189 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1190 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1191 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1192
1193 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1194 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1195
1196 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1197 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1198 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1199 hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
1200 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1201 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1202 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1203
1204 _ASUNAME
1205
1206 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1207 for as_dir in $PATH
1208 do
1209   IFS=$as_save_IFS
1210   test -z "$as_dir" && as_dir=.
1211   echo "PATH: $as_dir"
1212 done
1213
1214 } >&5
1215
1216 cat >&5 <<_ACEOF
1217
1218
1219 ## ----------- ##
1220 ## Core tests. ##
1221 ## ----------- ##
1222
1223 _ACEOF
1224
1225
1226 # Keep a trace of the command line.
1227 # Strip out --no-create and --no-recursion so they do not pile up.
1228 # Strip out --silent because we don't want to record it for future runs.
1229 # Also quote any args containing shell meta-characters.
1230 # Make two passes to allow for proper duplicate-argument suppression.
1231 ac_configure_args=
1232 ac_configure_args0=
1233 ac_configure_args1=
1234 ac_sep=
1235 ac_must_keep_next=false
1236 for ac_pass in 1 2
1237 do
1238   for ac_arg
1239   do
1240     case $ac_arg in
1241     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1242     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1243     | -silent | --silent | --silen | --sile | --sil)
1244       continue ;;
1245     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1246       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1247     esac
1248     case $ac_pass in
1249     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1250     2)
1251       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1252       if test $ac_must_keep_next = true; then
1253         ac_must_keep_next=false # Got value, back to normal.
1254       else
1255         case $ac_arg in
1256           *=* | --config-cache | -C | -disable-* | --disable-* \
1257           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1258           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1259           | -with-* | --with-* | -without-* | --without-* | --x)
1260             case "$ac_configure_args0 " in
1261               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1262             esac
1263             ;;
1264           -* ) ac_must_keep_next=true ;;
1265         esac
1266       fi
1267       ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1268       # Get rid of the leading space.
1269       ac_sep=" "
1270       ;;
1271     esac
1272   done
1273 done
1274 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1275 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1276
1277 # When interrupted or exit'd, cleanup temporary files, and complete
1278 # config.log.  We remove comments because anyway the quotes in there
1279 # would cause problems or look ugly.
1280 # WARNING: Be sure not to use single quotes in there, as some shells,
1281 # such as our DU 5.0 friend, will then `close' the trap.
1282 trap 'exit_status=$?
1283   # Save into config.log some information that might help in debugging.
1284   {
1285     echo
1286
1287     cat <<\_ASBOX
1288 ## ---------------- ##
1289 ## Cache variables. ##
1290 ## ---------------- ##
1291 _ASBOX
1292     echo
1293     # The following way of writing the cache mishandles newlines in values,
1294 {
1295   (set) 2>&1 |
1296     case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1297     *ac_space=\ *)
1298       sed -n \
1299         "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1300           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1301       ;;
1302     *)
1303       sed -n \
1304         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1305       ;;
1306     esac;
1307 }
1308     echo
1309
1310     cat <<\_ASBOX
1311 ## ----------------- ##
1312 ## Output variables. ##
1313 ## ----------------- ##
1314 _ASBOX
1315     echo
1316     for ac_var in $ac_subst_vars
1317     do
1318       eval ac_val=$`echo $ac_var`
1319       echo "$ac_var='"'"'$ac_val'"'"'"
1320     done | sort
1321     echo
1322
1323     if test -n "$ac_subst_files"; then
1324       cat <<\_ASBOX
1325 ## ------------- ##
1326 ## Output files. ##
1327 ## ------------- ##
1328 _ASBOX
1329       echo
1330       for ac_var in $ac_subst_files
1331       do
1332         eval ac_val=$`echo $ac_var`
1333         echo "$ac_var='"'"'$ac_val'"'"'"
1334       done | sort
1335       echo
1336     fi
1337
1338     if test -s confdefs.h; then
1339       cat <<\_ASBOX
1340 ## ----------- ##
1341 ## confdefs.h. ##
1342 ## ----------- ##
1343 _ASBOX
1344       echo
1345       sed "/^$/d" confdefs.h | sort
1346       echo
1347     fi
1348     test "$ac_signal" != 0 &&
1349       echo "$as_me: caught signal $ac_signal"
1350     echo "$as_me: exit $exit_status"
1351   } >&5
1352   rm -f core *.core &&
1353   rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1354     exit $exit_status
1355      ' 0
1356 for ac_signal in 1 2 13 15; do
1357   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1358 done
1359 ac_signal=0
1360
1361 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1362 rm -rf conftest* confdefs.h
1363 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1364 echo >confdefs.h
1365
1366 # Predefined preprocessor variables.
1367
1368 cat >>confdefs.h <<_ACEOF
1369 #define PACKAGE_NAME "$PACKAGE_NAME"
1370 _ACEOF
1371
1372
1373 cat >>confdefs.h <<_ACEOF
1374 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1375 _ACEOF
1376
1377
1378 cat >>confdefs.h <<_ACEOF
1379 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1380 _ACEOF
1381
1382
1383 cat >>confdefs.h <<_ACEOF
1384 #define PACKAGE_STRING "$PACKAGE_STRING"
1385 _ACEOF
1386
1387
1388 cat >>confdefs.h <<_ACEOF
1389 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1390 _ACEOF
1391
1392
1393 # Let the site file select an alternate cache file if it wants to.
1394 # Prefer explicitly selected file to automatically selected ones.
1395 if test -z "$CONFIG_SITE"; then
1396   if test "x$prefix" != xNONE; then
1397     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1398   else
1399     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1400   fi
1401 fi
1402 for ac_site_file in $CONFIG_SITE; do
1403   if test -r "$ac_site_file"; then
1404     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1405 echo "$as_me: loading site script $ac_site_file" >&6;}
1406     sed 's/^/| /' "$ac_site_file" >&5
1407     . "$ac_site_file"
1408   fi
1409 done
1410
1411 if test -r "$cache_file"; then
1412   # Some versions of bash will fail to source /dev/null (special
1413   # files actually), so we avoid doing that.
1414   if test -f "$cache_file"; then
1415     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1416 echo "$as_me: loading cache $cache_file" >&6;}
1417     case $cache_file in
1418       [\\/]* | ?:[\\/]* ) . $cache_file;;
1419       *)                      . ./$cache_file;;
1420     esac
1421   fi
1422 else
1423   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1424 echo "$as_me: creating cache $cache_file" >&6;}
1425   >$cache_file
1426 fi
1427
1428 # Check that the precious variables saved in the cache have kept the same
1429 # value.
1430 ac_cache_corrupted=false
1431 for ac_var in `(set) 2>&1 |
1432                sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1433   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1434   eval ac_new_set=\$ac_env_${ac_var}_set
1435   eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1436   eval ac_new_val="\$ac_env_${ac_var}_value"
1437   case $ac_old_set,$ac_new_set in
1438     set,)
1439       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1440 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1441       ac_cache_corrupted=: ;;
1442     ,set)
1443       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1444 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1445       ac_cache_corrupted=: ;;
1446     ,);;
1447     *)
1448       if test "x$ac_old_val" != "x$ac_new_val"; then
1449         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1450 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1451         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1452 echo "$as_me:   former value:  $ac_old_val" >&2;}
1453         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1454 echo "$as_me:   current value: $ac_new_val" >&2;}
1455         ac_cache_corrupted=:
1456       fi;;
1457   esac
1458   # Pass precious variables to config.status.
1459   if test "$ac_new_set" = set; then
1460     case $ac_new_val in
1461     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1462       ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1463     *) ac_arg=$ac_var=$ac_new_val ;;
1464     esac
1465     case " $ac_configure_args " in
1466       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1467       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1468     esac
1469   fi
1470 done
1471 if $ac_cache_corrupted; then
1472   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1473 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1474   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1475 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1476    { (exit 1); exit 1; }; }
1477 fi
1478
1479 ac_ext=c
1480 ac_cpp='$CPP $CPPFLAGS'
1481 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1482 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1483 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1484
1485
1486
1487
1488
1489
1490
1491
1492
1493
1494
1495
1496
1497
1498
1499
1500
1501
1502
1503 ac_aux_dir=
1504 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1505   if test -f $ac_dir/install-sh; then
1506     ac_aux_dir=$ac_dir
1507     ac_install_sh="$ac_aux_dir/install-sh -c"
1508     break
1509   elif test -f $ac_dir/install.sh; then
1510     ac_aux_dir=$ac_dir
1511     ac_install_sh="$ac_aux_dir/install.sh -c"
1512     break
1513   elif test -f $ac_dir/shtool; then
1514     ac_aux_dir=$ac_dir
1515     ac_install_sh="$ac_aux_dir/shtool install -c"
1516     break
1517   fi
1518 done
1519 if test -z "$ac_aux_dir"; then
1520   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1521 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1522    { (exit 1); exit 1; }; }
1523 fi
1524 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1525 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1526 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1527
1528 # Make sure we can run config.sub.
1529 $ac_config_sub sun4 >/dev/null 2>&1 ||
1530   { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1531 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1532    { (exit 1); exit 1; }; }
1533
1534 echo "$as_me:$LINENO: checking build system type" >&5
1535 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1536 if test "${ac_cv_build+set}" = set; then
1537   echo $ECHO_N "(cached) $ECHO_C" >&6
1538 else
1539   ac_cv_build_alias=$build_alias
1540 test -z "$ac_cv_build_alias" &&
1541   ac_cv_build_alias=`$ac_config_guess`
1542 test -z "$ac_cv_build_alias" &&
1543   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1544 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1545    { (exit 1); exit 1; }; }
1546 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1547   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1548 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1549    { (exit 1); exit 1; }; }
1550
1551 fi
1552 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1553 echo "${ECHO_T}$ac_cv_build" >&6
1554 build=$ac_cv_build
1555 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1556 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1557 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1558
1559
1560 echo "$as_me:$LINENO: checking host system type" >&5
1561 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1562 if test "${ac_cv_host+set}" = set; then
1563   echo $ECHO_N "(cached) $ECHO_C" >&6
1564 else
1565   ac_cv_host_alias=$host_alias
1566 test -z "$ac_cv_host_alias" &&
1567   ac_cv_host_alias=$ac_cv_build_alias
1568 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1569   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1570 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1571    { (exit 1); exit 1; }; }
1572
1573 fi
1574 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1575 echo "${ECHO_T}$ac_cv_host" >&6
1576 host=$ac_cv_host
1577 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1578 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1579 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1580
1581
1582 echo "$as_me:$LINENO: checking target system type" >&5
1583 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1584 if test "${ac_cv_target+set}" = set; then
1585   echo $ECHO_N "(cached) $ECHO_C" >&6
1586 else
1587   ac_cv_target_alias=$target_alias
1588 test "x$ac_cv_target_alias" = "x" &&
1589   ac_cv_target_alias=$ac_cv_host_alias
1590 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1591   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1592 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1593    { (exit 1); exit 1; }; }
1594
1595 fi
1596 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1597 echo "${ECHO_T}$ac_cv_target" >&6
1598 target=$ac_cv_target
1599 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1600 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1601 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1602
1603
1604 # The aliases save the names the user supplied, while $host etc.
1605 # will get canonicalized.
1606 test -n "$target_alias" &&
1607   test "$program_prefix$program_suffix$program_transform_name" = \
1608     NONENONEs,x,x, &&
1609   program_prefix=${target_alias}-
1610
1611 am__api_version="1.4"
1612 # Find a good install program.  We prefer a C program (faster),
1613 # so one script is as good as another.  But avoid the broken or
1614 # incompatible versions:
1615 # SysV /etc/install, /usr/sbin/install
1616 # SunOS /usr/etc/install
1617 # IRIX /sbin/install
1618 # AIX /bin/install
1619 # AmigaOS /C/install, which installs bootblocks on floppy discs
1620 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1621 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1622 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1623 # OS/2's system install, which has a completely different semantic
1624 # ./install, which can be erroneously created by make from ./install.sh.
1625 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1626 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1627 if test -z "$INSTALL"; then
1628 if test "${ac_cv_path_install+set}" = set; then
1629   echo $ECHO_N "(cached) $ECHO_C" >&6
1630 else
1631   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1632 for as_dir in $PATH
1633 do
1634   IFS=$as_save_IFS
1635   test -z "$as_dir" && as_dir=.
1636   # Account for people who put trailing slashes in PATH elements.
1637 case $as_dir/ in
1638   ./ | .// | /cC/* | \
1639   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1640   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1641   /usr/ucb/* ) ;;
1642   *)
1643     # OSF1 and SCO ODT 3.0 have their own names for install.
1644     # Don't use installbsd from OSF since it installs stuff as root
1645     # by default.
1646     for ac_prog in ginstall scoinst install; do
1647       for ac_exec_ext in '' $ac_executable_extensions; do
1648         if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1649           if test $ac_prog = install &&
1650             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1651             # AIX install.  It has an incompatible calling convention.
1652             :
1653           elif test $ac_prog = install &&
1654             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1655             # program-specific install script used by HP pwplus--don't use.
1656             :
1657           else
1658             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1659             break 3
1660           fi
1661         fi
1662       done
1663     done
1664     ;;
1665 esac
1666 done
1667
1668
1669 fi
1670   if test "${ac_cv_path_install+set}" = set; then
1671     INSTALL=$ac_cv_path_install
1672   else
1673     # As a last resort, use the slow shell script.  We don't cache a
1674     # path for INSTALL within a source directory, because that will
1675     # break other packages using the cache if that directory is
1676     # removed, or if the path is relative.
1677     INSTALL=$ac_install_sh
1678   fi
1679 fi
1680 echo "$as_me:$LINENO: result: $INSTALL" >&5
1681 echo "${ECHO_T}$INSTALL" >&6
1682
1683 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1684 # It thinks the first close brace ends the variable substitution.
1685 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1686
1687 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1688
1689 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1690
1691 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1692 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1693 # Just in case
1694 sleep 1
1695 echo timestamp > conftestfile
1696 # Do `set' in a subshell so we don't clobber the current shell's
1697 # arguments.  Must try -L first in case configure is actually a
1698 # symlink; some systems play weird games with the mod time of symlinks
1699 # (eg FreeBSD returns the mod time of the symlink's containing
1700 # directory).
1701 if (
1702    set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null`
1703    if test "$*" = "X"; then
1704       # -L didn't work.
1705       set X `ls -t $srcdir/configure conftestfile`
1706    fi
1707    if test "$*" != "X $srcdir/configure conftestfile" \
1708       && test "$*" != "X conftestfile $srcdir/configure"; then
1709
1710       # If neither matched, then we have a broken ls.  This can happen
1711       # if, for instance, CONFIG_SHELL is bash and it inherits a
1712       # broken ls alias from the environment.  This has actually
1713       # happened.  Such a system could not be considered "sane".
1714       { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
1715 alias in your environment" >&5
1716 echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
1717 alias in your environment" >&2;}
1718    { (exit 1); exit 1; }; }
1719    fi
1720
1721    test "$2" = conftestfile
1722    )
1723 then
1724    # Ok.
1725    :
1726 else
1727    { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1728 Check your system clock" >&5
1729 echo "$as_me: error: newly created file is older than distributed files!
1730 Check your system clock" >&2;}
1731    { (exit 1); exit 1; }; }
1732 fi
1733 rm -f conftest*
1734 echo "$as_me:$LINENO: result: yes" >&5
1735 echo "${ECHO_T}yes" >&6
1736 test "$program_prefix" != NONE &&
1737   program_transform_name="s,^,$program_prefix,;$program_transform_name"
1738 # Use a double $ so make ignores it.
1739 test "$program_suffix" != NONE &&
1740   program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1741 # Double any \ or $.  echo might interpret backslashes.
1742 # By default was `s,x,x', remove it if useless.
1743 cat <<\_ACEOF >conftest.sed
1744 s/[\\$]/&&/g;s/;s,x,x,$//
1745 _ACEOF
1746 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1747 rm conftest.sed
1748
1749 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1750 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1751 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
1752 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1753   echo $ECHO_N "(cached) $ECHO_C" >&6
1754 else
1755   cat >conftest.make <<\_ACEOF
1756 all:
1757         @echo 'ac_maketemp="$(MAKE)"'
1758 _ACEOF
1759 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1760 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1761 if test -n "$ac_maketemp"; then
1762   eval ac_cv_prog_make_${ac_make}_set=yes
1763 else
1764   eval ac_cv_prog_make_${ac_make}_set=no
1765 fi
1766 rm -f conftest.make
1767 fi
1768 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1769   echo "$as_me:$LINENO: result: yes" >&5
1770 echo "${ECHO_T}yes" >&6
1771   SET_MAKE=
1772 else
1773   echo "$as_me:$LINENO: result: no" >&5
1774 echo "${ECHO_T}no" >&6
1775   SET_MAKE="MAKE=${MAKE-make}"
1776 fi
1777
1778
1779 PACKAGE=mimetic
1780
1781 VERSION=0.9.2
1782
1783 if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then
1784   { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1785 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1786    { (exit 1); exit 1; }; }
1787 fi
1788
1789 cat >>confdefs.h <<_ACEOF
1790 #define PACKAGE "$PACKAGE"
1791 _ACEOF
1792
1793
1794 cat >>confdefs.h <<_ACEOF
1795 #define VERSION "$VERSION"
1796 _ACEOF
1797
1798
1799
1800 missing_dir=`cd $ac_aux_dir && pwd`
1801 echo "$as_me:$LINENO: checking for working aclocal-${am__api_version}" >&5
1802 echo $ECHO_N "checking for working aclocal-${am__api_version}... $ECHO_C" >&6
1803 # Run test in a subshell; some versions of sh will print an error if
1804 # an executable is not found, even if stderr is redirected.
1805 # Redirect stdin to placate older versions of autoconf.  Sigh.
1806 if (aclocal-${am__api_version} --version) < /dev/null > /dev/null 2>&1; then
1807    ACLOCAL=aclocal-${am__api_version}
1808    echo "$as_me:$LINENO: result: found" >&5
1809 echo "${ECHO_T}found" >&6
1810 else
1811    ACLOCAL="$missing_dir/missing aclocal-${am__api_version}"
1812    echo "$as_me:$LINENO: result: missing" >&5
1813 echo "${ECHO_T}missing" >&6
1814 fi
1815
1816 echo "$as_me:$LINENO: checking for working autoconf" >&5
1817 echo $ECHO_N "checking for working autoconf... $ECHO_C" >&6
1818 # Run test in a subshell; some versions of sh will print an error if
1819 # an executable is not found, even if stderr is redirected.
1820 # Redirect stdin to placate older versions of autoconf.  Sigh.
1821 if (autoconf --version) < /dev/null > /dev/null 2>&1; then
1822    AUTOCONF=autoconf
1823    echo "$as_me:$LINENO: result: found" >&5
1824 echo "${ECHO_T}found" >&6
1825 else
1826    AUTOCONF="$missing_dir/missing autoconf"
1827    echo "$as_me:$LINENO: result: missing" >&5
1828 echo "${ECHO_T}missing" >&6
1829 fi
1830
1831 echo "$as_me:$LINENO: checking for working automake-${am__api_version}" >&5
1832 echo $ECHO_N "checking for working automake-${am__api_version}... $ECHO_C" >&6
1833 # Run test in a subshell; some versions of sh will print an error if
1834 # an executable is not found, even if stderr is redirected.
1835 # Redirect stdin to placate older versions of autoconf.  Sigh.
1836 if (automake-${am__api_version} --version) < /dev/null > /dev/null 2>&1; then
1837    AUTOMAKE=automake-${am__api_version}
1838    echo "$as_me:$LINENO: result: found" >&5
1839 echo "${ECHO_T}found" >&6
1840 else
1841    AUTOMAKE="$missing_dir/missing automake-${am__api_version}"
1842    echo "$as_me:$LINENO: result: missing" >&5
1843 echo "${ECHO_T}missing" >&6
1844 fi
1845
1846 echo "$as_me:$LINENO: checking for working autoheader" >&5
1847 echo $ECHO_N "checking for working autoheader... $ECHO_C" >&6
1848 # Run test in a subshell; some versions of sh will print an error if
1849 # an executable is not found, even if stderr is redirected.
1850 # Redirect stdin to placate older versions of autoconf.  Sigh.
1851 if (autoheader --version) < /dev/null > /dev/null 2>&1; then
1852    AUTOHEADER=autoheader
1853    echo "$as_me:$LINENO: result: found" >&5
1854 echo "${ECHO_T}found" >&6
1855 else
1856    AUTOHEADER="$missing_dir/missing autoheader"
1857    echo "$as_me:$LINENO: result: missing" >&5
1858 echo "${ECHO_T}missing" >&6
1859 fi
1860
1861 echo "$as_me:$LINENO: checking for working makeinfo" >&5
1862 echo $ECHO_N "checking for working makeinfo... $ECHO_C" >&6
1863 # Run test in a subshell; some versions of sh will print an error if
1864 # an executable is not found, even if stderr is redirected.
1865 # Redirect stdin to placate older versions of autoconf.  Sigh.
1866 if (makeinfo --version) < /dev/null > /dev/null 2>&1; then
1867    MAKEINFO=makeinfo
1868    echo "$as_me:$LINENO: result: found" >&5
1869 echo "${ECHO_T}found" >&6
1870 else
1871    MAKEINFO="$missing_dir/missing makeinfo"
1872    echo "$as_me:$LINENO: result: missing" >&5
1873 echo "${ECHO_T}missing" >&6
1874 fi
1875
1876
1877
1878           ac_config_headers="$ac_config_headers mimetic/config.h"
1879
1880           ac_config_commands="$ac_config_commands default-1"
1881
1882
1883 ac_ext=c
1884 ac_cpp='$CPP $CPPFLAGS'
1885 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1886 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1887 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1888 if test -n "$ac_tool_prefix"; then
1889   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1890 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1891 echo "$as_me:$LINENO: checking for $ac_word" >&5
1892 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1893 if test "${ac_cv_prog_CC+set}" = set; then
1894   echo $ECHO_N "(cached) $ECHO_C" >&6
1895 else
1896   if test -n "$CC"; then
1897   ac_cv_prog_CC="$CC" # Let the user override the test.
1898 else
1899 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1900 for as_dir in $PATH
1901 do
1902   IFS=$as_save_IFS
1903   test -z "$as_dir" && as_dir=.
1904   for ac_exec_ext in '' $ac_executable_extensions; do
1905   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1906     ac_cv_prog_CC="${ac_tool_prefix}gcc"
1907     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1908     break 2
1909   fi
1910 done
1911 done
1912
1913 fi
1914 fi
1915 CC=$ac_cv_prog_CC
1916 if test -n "$CC"; then
1917   echo "$as_me:$LINENO: result: $CC" >&5
1918 echo "${ECHO_T}$CC" >&6
1919 else
1920   echo "$as_me:$LINENO: result: no" >&5
1921 echo "${ECHO_T}no" >&6
1922 fi
1923
1924 fi
1925 if test -z "$ac_cv_prog_CC"; then
1926   ac_ct_CC=$CC
1927   # Extract the first word of "gcc", so it can be a program name with args.
1928 set dummy gcc; ac_word=$2
1929 echo "$as_me:$LINENO: checking for $ac_word" >&5
1930 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1931 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1932   echo $ECHO_N "(cached) $ECHO_C" >&6
1933 else
1934   if test -n "$ac_ct_CC"; then
1935   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1936 else
1937 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1938 for as_dir in $PATH
1939 do
1940   IFS=$as_save_IFS
1941   test -z "$as_dir" && as_dir=.
1942   for ac_exec_ext in '' $ac_executable_extensions; do
1943   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1944     ac_cv_prog_ac_ct_CC="gcc"
1945     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1946     break 2
1947   fi
1948 done
1949 done
1950
1951 fi
1952 fi
1953 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1954 if test -n "$ac_ct_CC"; then
1955   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1956 echo "${ECHO_T}$ac_ct_CC" >&6
1957 else
1958   echo "$as_me:$LINENO: result: no" >&5
1959 echo "${ECHO_T}no" >&6
1960 fi
1961
1962   CC=$ac_ct_CC
1963 else
1964   CC="$ac_cv_prog_CC"
1965 fi
1966
1967 if test -z "$CC"; then
1968   if test -n "$ac_tool_prefix"; then
1969   # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1970 set dummy ${ac_tool_prefix}cc; ac_word=$2
1971 echo "$as_me:$LINENO: checking for $ac_word" >&5
1972 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1973 if test "${ac_cv_prog_CC+set}" = set; then
1974   echo $ECHO_N "(cached) $ECHO_C" >&6
1975 else
1976   if test -n "$CC"; then
1977   ac_cv_prog_CC="$CC" # Let the user override the test.
1978 else
1979 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1980 for as_dir in $PATH
1981 do
1982   IFS=$as_save_IFS
1983   test -z "$as_dir" && as_dir=.
1984   for ac_exec_ext in '' $ac_executable_extensions; do
1985   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1986     ac_cv_prog_CC="${ac_tool_prefix}cc"
1987     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1988     break 2
1989   fi
1990 done
1991 done
1992
1993 fi
1994 fi
1995 CC=$ac_cv_prog_CC
1996 if test -n "$CC"; then
1997   echo "$as_me:$LINENO: result: $CC" >&5
1998 echo "${ECHO_T}$CC" >&6
1999 else
2000   echo "$as_me:$LINENO: result: no" >&5
2001 echo "${ECHO_T}no" >&6
2002 fi
2003
2004 fi
2005 if test -z "$ac_cv_prog_CC"; then
2006   ac_ct_CC=$CC
2007   # Extract the first word of "cc", so it can be a program name with args.
2008 set dummy cc; ac_word=$2
2009 echo "$as_me:$LINENO: checking for $ac_word" >&5
2010 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2011 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2012   echo $ECHO_N "(cached) $ECHO_C" >&6
2013 else
2014   if test -n "$ac_ct_CC"; then
2015   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2016 else
2017 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2018 for as_dir in $PATH
2019 do
2020   IFS=$as_save_IFS
2021   test -z "$as_dir" && as_dir=.
2022   for ac_exec_ext in '' $ac_executable_extensions; do
2023   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2024     ac_cv_prog_ac_ct_CC="cc"
2025     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2026     break 2
2027   fi
2028 done
2029 done
2030
2031 fi
2032 fi
2033 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2034 if test -n "$ac_ct_CC"; then
2035   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2036 echo "${ECHO_T}$ac_ct_CC" >&6
2037 else
2038   echo "$as_me:$LINENO: result: no" >&5
2039 echo "${ECHO_T}no" >&6
2040 fi
2041
2042   CC=$ac_ct_CC
2043 else
2044   CC="$ac_cv_prog_CC"
2045 fi
2046
2047 fi
2048 if test -z "$CC"; then
2049   # Extract the first word of "cc", so it can be a program name with args.
2050 set dummy cc; ac_word=$2
2051 echo "$as_me:$LINENO: checking for $ac_word" >&5
2052 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2053 if test "${ac_cv_prog_CC+set}" = set; then
2054   echo $ECHO_N "(cached) $ECHO_C" >&6
2055 else
2056   if test -n "$CC"; then
2057   ac_cv_prog_CC="$CC" # Let the user override the test.
2058 else
2059   ac_prog_rejected=no
2060 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2061 for as_dir in $PATH
2062 do
2063   IFS=$as_save_IFS
2064   test -z "$as_dir" && as_dir=.
2065   for ac_exec_ext in '' $ac_executable_extensions; do
2066   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2067     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2068        ac_prog_rejected=yes
2069        continue
2070      fi
2071     ac_cv_prog_CC="cc"
2072     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2073     break 2
2074   fi
2075 done
2076 done
2077
2078 if test $ac_prog_rejected = yes; then
2079   # We found a bogon in the path, so make sure we never use it.
2080   set dummy $ac_cv_prog_CC
2081   shift
2082   if test $# != 0; then
2083     # We chose a different compiler from the bogus one.
2084     # However, it has the same basename, so the bogon will be chosen
2085     # first if we set CC to just the basename; use the full file name.
2086     shift
2087     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2088   fi
2089 fi
2090 fi
2091 fi
2092 CC=$ac_cv_prog_CC
2093 if test -n "$CC"; then
2094   echo "$as_me:$LINENO: result: $CC" >&5
2095 echo "${ECHO_T}$CC" >&6
2096 else
2097   echo "$as_me:$LINENO: result: no" >&5
2098 echo "${ECHO_T}no" >&6
2099 fi
2100
2101 fi
2102 if test -z "$CC"; then
2103   if test -n "$ac_tool_prefix"; then
2104   for ac_prog in cl
2105   do
2106     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2107 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2108 echo "$as_me:$LINENO: checking for $ac_word" >&5
2109 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2110 if test "${ac_cv_prog_CC+set}" = set; then
2111   echo $ECHO_N "(cached) $ECHO_C" >&6
2112 else
2113   if test -n "$CC"; then
2114   ac_cv_prog_CC="$CC" # Let the user override the test.
2115 else
2116 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2117 for as_dir in $PATH
2118 do
2119   IFS=$as_save_IFS
2120   test -z "$as_dir" && as_dir=.
2121   for ac_exec_ext in '' $ac_executable_extensions; do
2122   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2123     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2124     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2125     break 2
2126   fi
2127 done
2128 done
2129
2130 fi
2131 fi
2132 CC=$ac_cv_prog_CC
2133 if test -n "$CC"; then
2134   echo "$as_me:$LINENO: result: $CC" >&5
2135 echo "${ECHO_T}$CC" >&6
2136 else
2137   echo "$as_me:$LINENO: result: no" >&5
2138 echo "${ECHO_T}no" >&6
2139 fi
2140
2141     test -n "$CC" && break
2142   done
2143 fi
2144 if test -z "$CC"; then
2145   ac_ct_CC=$CC
2146   for ac_prog in cl
2147 do
2148   # Extract the first word of "$ac_prog", so it can be a program name with args.
2149 set dummy $ac_prog; ac_word=$2
2150 echo "$as_me:$LINENO: checking for $ac_word" >&5
2151 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2152 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2153   echo $ECHO_N "(cached) $ECHO_C" >&6
2154 else
2155   if test -n "$ac_ct_CC"; then
2156   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2157 else
2158 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2159 for as_dir in $PATH
2160 do
2161   IFS=$as_save_IFS
2162   test -z "$as_dir" && as_dir=.
2163   for ac_exec_ext in '' $ac_executable_extensions; do
2164   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2165     ac_cv_prog_ac_ct_CC="$ac_prog"
2166     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2167     break 2
2168   fi
2169 done
2170 done
2171
2172 fi
2173 fi
2174 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2175 if test -n "$ac_ct_CC"; then
2176   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2177 echo "${ECHO_T}$ac_ct_CC" >&6
2178 else
2179   echo "$as_me:$LINENO: result: no" >&5
2180 echo "${ECHO_T}no" >&6
2181 fi
2182
2183   test -n "$ac_ct_CC" && break
2184 done
2185
2186   CC=$ac_ct_CC
2187 fi
2188
2189 fi
2190
2191
2192 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2193 See \`config.log' for more details." >&5
2194 echo "$as_me: error: no acceptable C compiler found in \$PATH
2195 See \`config.log' for more details." >&2;}
2196    { (exit 1); exit 1; }; }
2197
2198 # Provide some information about the compiler.
2199 echo "$as_me:$LINENO:" \
2200      "checking for C compiler version" >&5
2201 ac_compiler=`set X $ac_compile; echo $2`
2202 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2203   (eval $ac_compiler --version </dev/null >&5) 2>&5
2204   ac_status=$?
2205   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2206   (exit $ac_status); }
2207 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2208   (eval $ac_compiler -v </dev/null >&5) 2>&5
2209   ac_status=$?
2210   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2211   (exit $ac_status); }
2212 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2213   (eval $ac_compiler -V </dev/null >&5) 2>&5
2214   ac_status=$?
2215   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2216   (exit $ac_status); }
2217
2218 cat >conftest.$ac_ext <<_ACEOF
2219 /* confdefs.h.  */
2220 _ACEOF
2221 cat confdefs.h >>conftest.$ac_ext
2222 cat >>conftest.$ac_ext <<_ACEOF
2223 /* end confdefs.h.  */
2224
2225 int
2226 main ()
2227 {
2228
2229   ;
2230   return 0;
2231 }
2232 _ACEOF
2233 ac_clean_files_save=$ac_clean_files
2234 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2235 # Try to create an executable without -o first, disregard a.out.
2236 # It will help us diagnose broken compilers, and finding out an intuition
2237 # of exeext.
2238 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2239 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2240 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2241 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2242   (eval $ac_link_default) 2>&5
2243   ac_status=$?
2244   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2245   (exit $ac_status); }; then
2246   # Find the output, starting from the most likely.  This scheme is
2247 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2248 # resort.
2249
2250 # Be careful to initialize this variable, since it used to be cached.
2251 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2252 ac_cv_exeext=
2253 # b.out is created by i960 compilers.
2254 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2255 do
2256   test -f "$ac_file" || continue
2257   case $ac_file in
2258     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2259         ;;
2260     conftest.$ac_ext )
2261         # This is the source file.
2262         ;;
2263     [ab].out )
2264         # We found the default executable, but exeext='' is most
2265         # certainly right.
2266         break;;
2267     *.* )
2268         ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2269         # FIXME: I believe we export ac_cv_exeext for Libtool,
2270         # but it would be cool to find out if it's true.  Does anybody
2271         # maintain Libtool? --akim.
2272         export ac_cv_exeext
2273         break;;
2274     * )
2275         break;;
2276   esac
2277 done
2278 else
2279   echo "$as_me: failed program was:" >&5
2280 sed 's/^/| /' conftest.$ac_ext >&5
2281
2282 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2283 See \`config.log' for more details." >&5
2284 echo "$as_me: error: C compiler cannot create executables
2285 See \`config.log' for more details." >&2;}
2286    { (exit 77); exit 77; }; }
2287 fi
2288
2289 ac_exeext=$ac_cv_exeext
2290 echo "$as_me:$LINENO: result: $ac_file" >&5
2291 echo "${ECHO_T}$ac_file" >&6
2292
2293 # Check the compiler produces executables we can run.  If not, either
2294 # the compiler is broken, or we cross compile.
2295 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2296 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2297 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2298 # If not cross compiling, check that we can run a simple program.
2299 if test "$cross_compiling" != yes; then
2300   if { ac_try='./$ac_file'
2301   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2302   (eval $ac_try) 2>&5
2303   ac_status=$?
2304   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2305   (exit $ac_status); }; }; then
2306     cross_compiling=no
2307   else
2308     if test "$cross_compiling" = maybe; then
2309         cross_compiling=yes
2310     else
2311         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2312 If you meant to cross compile, use \`--host'.
2313 See \`config.log' for more details." >&5
2314 echo "$as_me: error: cannot run C compiled programs.
2315 If you meant to cross compile, use \`--host'.
2316 See \`config.log' for more details." >&2;}
2317    { (exit 1); exit 1; }; }
2318     fi
2319   fi
2320 fi
2321 echo "$as_me:$LINENO: result: yes" >&5
2322 echo "${ECHO_T}yes" >&6
2323
2324 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2325 ac_clean_files=$ac_clean_files_save
2326 # Check the compiler produces executables we can run.  If not, either
2327 # the compiler is broken, or we cross compile.
2328 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2329 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2330 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2331 echo "${ECHO_T}$cross_compiling" >&6
2332
2333 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2334 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2335 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2336   (eval $ac_link) 2>&5
2337   ac_status=$?
2338   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2339   (exit $ac_status); }; then
2340   # If both `conftest.exe' and `conftest' are `present' (well, observable)
2341 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2342 # work properly (i.e., refer to `conftest.exe'), while it won't with
2343 # `rm'.
2344 for ac_file in conftest.exe conftest conftest.*; do
2345   test -f "$ac_file" || continue
2346   case $ac_file in
2347     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2348     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2349           export ac_cv_exeext
2350           break;;
2351     * ) break;;
2352   esac
2353 done
2354 else
2355   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2356 See \`config.log' for more details." >&5
2357 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2358 See \`config.log' for more details." >&2;}
2359    { (exit 1); exit 1; }; }
2360 fi
2361
2362 rm -f conftest$ac_cv_exeext
2363 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2364 echo "${ECHO_T}$ac_cv_exeext" >&6
2365
2366 rm -f conftest.$ac_ext
2367 EXEEXT=$ac_cv_exeext
2368 ac_exeext=$EXEEXT
2369 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2370 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2371 if test "${ac_cv_objext+set}" = set; then
2372   echo $ECHO_N "(cached) $ECHO_C" >&6
2373 else
2374   cat >conftest.$ac_ext <<_ACEOF
2375 /* confdefs.h.  */
2376 _ACEOF
2377 cat confdefs.h >>conftest.$ac_ext
2378 cat >>conftest.$ac_ext <<_ACEOF
2379 /* end confdefs.h.  */
2380
2381 int
2382 main ()
2383 {
2384
2385   ;
2386   return 0;
2387 }
2388 _ACEOF
2389 rm -f conftest.o conftest.obj
2390 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2391   (eval $ac_compile) 2>&5
2392   ac_status=$?
2393   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2394   (exit $ac_status); }; then
2395   for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2396   case $ac_file in
2397     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2398     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2399        break;;
2400   esac
2401 done
2402 else
2403   echo "$as_me: failed program was:" >&5
2404 sed 's/^/| /' conftest.$ac_ext >&5
2405
2406 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2407 See \`config.log' for more details." >&5
2408 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2409 See \`config.log' for more details." >&2;}
2410    { (exit 1); exit 1; }; }
2411 fi
2412
2413 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2414 fi
2415 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2416 echo "${ECHO_T}$ac_cv_objext" >&6
2417 OBJEXT=$ac_cv_objext
2418 ac_objext=$OBJEXT
2419 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2420 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2421 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2422   echo $ECHO_N "(cached) $ECHO_C" >&6
2423 else
2424   cat >conftest.$ac_ext <<_ACEOF
2425 /* confdefs.h.  */
2426 _ACEOF
2427 cat confdefs.h >>conftest.$ac_ext
2428 cat >>conftest.$ac_ext <<_ACEOF
2429 /* end confdefs.h.  */
2430
2431 int
2432 main ()
2433 {
2434 #ifndef __GNUC__
2435        choke me
2436 #endif
2437
2438   ;
2439   return 0;
2440 }
2441 _ACEOF
2442 rm -f conftest.$ac_objext
2443 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2444   (eval $ac_compile) 2>conftest.er1
2445   ac_status=$?
2446   grep -v '^ *+' conftest.er1 >conftest.err
2447   rm -f conftest.er1
2448   cat conftest.err >&5
2449   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2450   (exit $ac_status); } &&
2451          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
2452   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2453   (eval $ac_try) 2>&5
2454   ac_status=$?
2455   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2456   (exit $ac_status); }; } &&
2457          { ac_try='test -s conftest.$ac_objext'
2458   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2459   (eval $ac_try) 2>&5
2460   ac_status=$?
2461   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2462   (exit $ac_status); }; }; then
2463   ac_compiler_gnu=yes
2464 else
2465   echo "$as_me: failed program was:" >&5
2466 sed 's/^/| /' conftest.$ac_ext >&5
2467
2468 ac_compiler_gnu=no
2469 fi
2470 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2471 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2472
2473 fi
2474 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2475 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2476 GCC=`test $ac_compiler_gnu = yes && echo yes`
2477 ac_test_CFLAGS=${CFLAGS+set}
2478 ac_save_CFLAGS=$CFLAGS
2479 CFLAGS="-g"
2480 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2481 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2482 if test "${ac_cv_prog_cc_g+set}" = set; then
2483   echo $ECHO_N "(cached) $ECHO_C" >&6
2484 else
2485   cat >conftest.$ac_ext <<_ACEOF
2486 /* confdefs.h.  */
2487 _ACEOF
2488 cat confdefs.h >>conftest.$ac_ext
2489 cat >>conftest.$ac_ext <<_ACEOF
2490 /* end confdefs.h.  */
2491
2492 int
2493 main ()
2494 {
2495
2496   ;
2497   return 0;
2498 }
2499 _ACEOF
2500 rm -f conftest.$ac_objext
2501 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2502   (eval $ac_compile) 2>conftest.er1
2503   ac_status=$?
2504   grep -v '^ *+' conftest.er1 >conftest.err
2505   rm -f conftest.er1
2506   cat conftest.err >&5
2507   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2508   (exit $ac_status); } &&
2509          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
2510   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2511   (eval $ac_try) 2>&5
2512   ac_status=$?
2513   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2514   (exit $ac_status); }; } &&
2515          { ac_try='test -s conftest.$ac_objext'
2516   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2517   (eval $ac_try) 2>&5
2518   ac_status=$?
2519   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2520   (exit $ac_status); }; }; then
2521   ac_cv_prog_cc_g=yes
2522 else
2523   echo "$as_me: failed program was:" >&5
2524 sed 's/^/| /' conftest.$ac_ext >&5
2525
2526 ac_cv_prog_cc_g=no
2527 fi
2528 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2529 fi
2530 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2531 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2532 if test "$ac_test_CFLAGS" = set; then
2533   CFLAGS=$ac_save_CFLAGS
2534 elif test $ac_cv_prog_cc_g = yes; then
2535   if test "$GCC" = yes; then
2536     CFLAGS="-g -O2"
2537   else
2538     CFLAGS="-g"
2539   fi
2540 else
2541   if test "$GCC" = yes; then
2542     CFLAGS="-O2"
2543   else
2544     CFLAGS=
2545   fi
2546 fi
2547 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2548 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2549 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2550   echo $ECHO_N "(cached) $ECHO_C" >&6
2551 else
2552   ac_cv_prog_cc_stdc=no
2553 ac_save_CC=$CC
2554 cat >conftest.$ac_ext <<_ACEOF
2555 /* confdefs.h.  */
2556 _ACEOF
2557 cat confdefs.h >>conftest.$ac_ext
2558 cat >>conftest.$ac_ext <<_ACEOF
2559 /* end confdefs.h.  */
2560 #include <stdarg.h>
2561 #include <stdio.h>
2562 #include <sys/types.h>
2563 #include <sys/stat.h>
2564 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2565 struct buf { int x; };
2566 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2567 static char *e (p, i)
2568      char **p;
2569      int i;
2570 {
2571   return p[i];
2572 }
2573 static char *f (char * (*g) (char **, int), char **p, ...)
2574 {
2575   char *s;
2576   va_list v;
2577   va_start (v,p);
2578   s = g (p, va_arg (v,int));
2579   va_end (v);
2580   return s;
2581 }
2582
2583 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2584    function prototypes and stuff, but not '\xHH' hex character constants.
2585    These don't provoke an error unfortunately, instead are silently treated
2586    as 'x'.  The following induces an error, until -std1 is added to get
2587    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2588    array size at least.  It's necessary to write '\x00'==0 to get something
2589    that's true only with -std1.  */
2590 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2591
2592 int test (int i, double x);
2593 struct s1 {int (*f) (int a);};
2594 struct s2 {int (*f) (double a);};
2595 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2596 int argc;
2597 char **argv;
2598 int
2599 main ()
2600 {
2601 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2602   ;
2603   return 0;
2604 }
2605 _ACEOF
2606 # Don't try gcc -ansi; that turns off useful extensions and
2607 # breaks some systems' header files.
2608 # AIX                   -qlanglvl=ansi
2609 # Ultrix and OSF/1      -std1
2610 # HP-UX 10.20 and later -Ae
2611 # HP-UX older versions  -Aa -D_HPUX_SOURCE
2612 # SVR4                  -Xc -D__EXTENSIONS__
2613 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2614 do
2615   CC="$ac_save_CC $ac_arg"
2616   rm -f conftest.$ac_objext
2617 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2618   (eval $ac_compile) 2>conftest.er1
2619   ac_status=$?
2620   grep -v '^ *+' conftest.er1 >conftest.err
2621   rm -f conftest.er1
2622   cat conftest.err >&5
2623   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2624   (exit $ac_status); } &&
2625          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
2626   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2627   (eval $ac_try) 2>&5
2628   ac_status=$?
2629   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2630   (exit $ac_status); }; } &&
2631          { ac_try='test -s conftest.$ac_objext'
2632   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2633   (eval $ac_try) 2>&5
2634   ac_status=$?
2635   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2636   (exit $ac_status); }; }; then
2637   ac_cv_prog_cc_stdc=$ac_arg
2638 break
2639 else
2640   echo "$as_me: failed program was:" >&5
2641 sed 's/^/| /' conftest.$ac_ext >&5
2642
2643 fi
2644 rm -f conftest.err conftest.$ac_objext
2645 done
2646 rm -f conftest.$ac_ext conftest.$ac_objext
2647 CC=$ac_save_CC
2648
2649 fi
2650
2651 case "x$ac_cv_prog_cc_stdc" in
2652   x|xno)
2653     echo "$as_me:$LINENO: result: none needed" >&5
2654 echo "${ECHO_T}none needed" >&6 ;;
2655   *)
2656     echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2657 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2658     CC="$CC $ac_cv_prog_cc_stdc" ;;
2659 esac
2660
2661 # Some people use a C++ compiler to compile C.  Since we use `exit',
2662 # in C++ we need to declare it.  In case someone uses the same compiler
2663 # for both compiling C and C++ we need to have the C++ compiler decide
2664 # the declaration of exit, since it's the most demanding environment.
2665 cat >conftest.$ac_ext <<_ACEOF
2666 #ifndef __cplusplus
2667   choke me
2668 #endif
2669 _ACEOF
2670 rm -f conftest.$ac_objext
2671 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2672   (eval $ac_compile) 2>conftest.er1
2673   ac_status=$?
2674   grep -v '^ *+' conftest.er1 >conftest.err
2675   rm -f conftest.er1
2676   cat conftest.err >&5
2677   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2678   (exit $ac_status); } &&
2679          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
2680   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2681   (eval $ac_try) 2>&5
2682   ac_status=$?
2683   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2684   (exit $ac_status); }; } &&
2685          { ac_try='test -s conftest.$ac_objext'
2686   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2687   (eval $ac_try) 2>&5
2688   ac_status=$?
2689   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2690   (exit $ac_status); }; }; then
2691   for ac_declaration in \
2692    '' \
2693    'extern "C" void std::exit (int) throw (); using std::exit;' \
2694    'extern "C" void std::exit (int); using std::exit;' \
2695    'extern "C" void exit (int) throw ();' \
2696    'extern "C" void exit (int);' \
2697    'void exit (int);'
2698 do
2699   cat >conftest.$ac_ext <<_ACEOF
2700 /* confdefs.h.  */
2701 _ACEOF
2702 cat confdefs.h >>conftest.$ac_ext
2703 cat >>conftest.$ac_ext <<_ACEOF
2704 /* end confdefs.h.  */
2705 $ac_declaration
2706 #include <stdlib.h>
2707 int
2708 main ()
2709 {
2710 exit (42);
2711   ;
2712   return 0;
2713 }
2714 _ACEOF
2715 rm -f conftest.$ac_objext
2716 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2717   (eval $ac_compile) 2>conftest.er1
2718   ac_status=$?
2719   grep -v '^ *+' conftest.er1 >conftest.err
2720   rm -f conftest.er1
2721   cat conftest.err >&5
2722   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2723   (exit $ac_status); } &&
2724          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
2725   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2726   (eval $ac_try) 2>&5
2727   ac_status=$?
2728   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2729   (exit $ac_status); }; } &&
2730          { ac_try='test -s conftest.$ac_objext'
2731   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2732   (eval $ac_try) 2>&5
2733   ac_status=$?
2734   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2735   (exit $ac_status); }; }; then
2736   :
2737 else
2738   echo "$as_me: failed program was:" >&5
2739 sed 's/^/| /' conftest.$ac_ext >&5
2740
2741 continue
2742 fi
2743 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2744   cat >conftest.$ac_ext <<_ACEOF
2745 /* confdefs.h.  */
2746 _ACEOF
2747 cat confdefs.h >>conftest.$ac_ext
2748 cat >>conftest.$ac_ext <<_ACEOF
2749 /* end confdefs.h.  */
2750 $ac_declaration
2751 int
2752 main ()
2753 {
2754 exit (42);
2755   ;
2756   return 0;
2757 }
2758 _ACEOF
2759 rm -f conftest.$ac_objext
2760 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2761   (eval $ac_compile) 2>conftest.er1
2762   ac_status=$?
2763   grep -v '^ *+' conftest.er1 >conftest.err
2764   rm -f conftest.er1
2765   cat conftest.err >&5
2766   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2767   (exit $ac_status); } &&
2768          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
2769   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2770   (eval $ac_try) 2>&5
2771   ac_status=$?
2772   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2773   (exit $ac_status); }; } &&
2774          { ac_try='test -s conftest.$ac_objext'
2775   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2776   (eval $ac_try) 2>&5
2777   ac_status=$?
2778   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2779   (exit $ac_status); }; }; then
2780   break
2781 else
2782   echo "$as_me: failed program was:" >&5
2783 sed 's/^/| /' conftest.$ac_ext >&5
2784
2785 fi
2786 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2787 done
2788 rm -f conftest*
2789 if test -n "$ac_declaration"; then
2790   echo '#ifdef __cplusplus' >>confdefs.h
2791   echo $ac_declaration      >>confdefs.h
2792   echo '#endif'             >>confdefs.h
2793 fi
2794
2795 else
2796   echo "$as_me: failed program was:" >&5
2797 sed 's/^/| /' conftest.$ac_ext >&5
2798
2799 fi
2800 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2801 ac_ext=c
2802 ac_cpp='$CPP $CPPFLAGS'
2803 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2804 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2805 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2806
2807 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2808 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
2809 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
2810 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
2811   echo $ECHO_N "(cached) $ECHO_C" >&6
2812 else
2813   cat >conftest.make <<\_ACEOF
2814 all:
2815         @echo 'ac_maketemp="$(MAKE)"'
2816 _ACEOF
2817 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2818 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
2819 if test -n "$ac_maketemp"; then
2820   eval ac_cv_prog_make_${ac_make}_set=yes
2821 else
2822   eval ac_cv_prog_make_${ac_make}_set=no
2823 fi
2824 rm -f conftest.make
2825 fi
2826 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
2827   echo "$as_me:$LINENO: result: yes" >&5
2828 echo "${ECHO_T}yes" >&6
2829   SET_MAKE=
2830 else
2831   echo "$as_me:$LINENO: result: no" >&5
2832 echo "${ECHO_T}no" >&6
2833   SET_MAKE="MAKE=${MAKE-make}"
2834 fi
2835
2836 # Check whether --enable-shared or --disable-shared was given.
2837 if test "${enable_shared+set}" = set; then
2838   enableval="$enable_shared"
2839   p=${PACKAGE-default}
2840     case $enableval in
2841     yes) enable_shared=yes ;;
2842     no) enable_shared=no ;;
2843     *)
2844       enable_shared=no
2845       # Look at the argument we got.  We use all the common list separators.
2846       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
2847       for pkg in $enableval; do
2848         IFS="$lt_save_ifs"
2849         if test "X$pkg" = "X$p"; then
2850           enable_shared=yes
2851         fi
2852       done
2853       IFS="$lt_save_ifs"
2854       ;;
2855     esac
2856 else
2857   enable_shared=yes
2858 fi;
2859
2860 # Check whether --enable-static or --disable-static was given.
2861 if test "${enable_static+set}" = set; then
2862   enableval="$enable_static"
2863   p=${PACKAGE-default}
2864     case $enableval in
2865     yes) enable_static=yes ;;
2866     no) enable_static=no ;;
2867     *)
2868      enable_static=no
2869       # Look at the argument we got.  We use all the common list separators.
2870       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
2871       for pkg in $enableval; do
2872         IFS="$lt_save_ifs"
2873         if test "X$pkg" = "X$p"; then
2874           enable_static=yes
2875         fi
2876       done
2877       IFS="$lt_save_ifs"
2878       ;;
2879     esac
2880 else
2881   enable_static=yes
2882 fi;
2883
2884 # Check whether --enable-fast-install or --disable-fast-install was given.
2885 if test "${enable_fast_install+set}" = set; then
2886   enableval="$enable_fast_install"
2887   p=${PACKAGE-default}
2888     case $enableval in
2889     yes) enable_fast_install=yes ;;
2890     no) enable_fast_install=no ;;
2891     *)
2892       enable_fast_install=no
2893       # Look at the argument we got.  We use all the common list separators.
2894       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
2895       for pkg in $enableval; do
2896         IFS="$lt_save_ifs"
2897         if test "X$pkg" = "X$p"; then
2898           enable_fast_install=yes
2899         fi
2900       done
2901       IFS="$lt_save_ifs"
2902       ;;
2903     esac
2904 else
2905   enable_fast_install=yes
2906 fi;
2907
2908 echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
2909 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
2910 if test "${lt_cv_path_SED+set}" = set; then
2911   echo $ECHO_N "(cached) $ECHO_C" >&6
2912 else
2913   # Loop through the user's path and test for sed and gsed.
2914 # Then use that list of sed's as ones to test for truncation.
2915 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2916 for as_dir in $PATH
2917 do
2918   IFS=$as_save_IFS
2919   test -z "$as_dir" && as_dir=.
2920   for lt_ac_prog in sed gsed; do
2921     for ac_exec_ext in '' $ac_executable_extensions; do
2922       if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
2923         lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
2924       fi
2925     done
2926   done
2927 done
2928 lt_ac_max=0
2929 lt_ac_count=0
2930 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
2931 # along with /bin/sed that truncates output.
2932 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
2933   test ! -f $lt_ac_sed && break
2934   cat /dev/null > conftest.in
2935   lt_ac_count=0
2936   echo $ECHO_N "0123456789$ECHO_C" >conftest.in
2937   # Check for GNU sed and select it if it is found.
2938   if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
2939     lt_cv_path_SED=$lt_ac_sed
2940     break
2941   fi
2942   while true; do
2943     cat conftest.in conftest.in >conftest.tmp
2944     mv conftest.tmp conftest.in
2945     cp conftest.in conftest.nl
2946     echo >>conftest.nl
2947     $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
2948     cmp -s conftest.out conftest.nl || break
2949     # 10000 chars as input seems more than enough
2950     test $lt_ac_count -gt 10 && break
2951     lt_ac_count=`expr $lt_ac_count + 1`
2952     if test $lt_ac_count -gt $lt_ac_max; then
2953       lt_ac_max=$lt_ac_count
2954       lt_cv_path_SED=$lt_ac_sed
2955     fi
2956   done
2957 done
2958 SED=$lt_cv_path_SED
2959
2960 fi
2961
2962 echo "$as_me:$LINENO: result: $SED" >&5
2963 echo "${ECHO_T}$SED" >&6
2964
2965 echo "$as_me:$LINENO: checking for egrep" >&5
2966 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
2967 if test "${ac_cv_prog_egrep+set}" = set; then
2968   echo $ECHO_N "(cached) $ECHO_C" >&6
2969 else
2970   if echo a | (grep -E '(a|b)') >/dev/null 2>&1
2971     then ac_cv_prog_egrep='grep -E'
2972     else ac_cv_prog_egrep='egrep'
2973     fi
2974 fi
2975 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
2976 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
2977  EGREP=$ac_cv_prog_egrep
2978
2979
2980
2981 # Check whether --with-gnu-ld or --without-gnu-ld was given.
2982 if test "${with_gnu_ld+set}" = set; then
2983   withval="$with_gnu_ld"
2984   test "$withval" = no || with_gnu_ld=yes
2985 else
2986   with_gnu_ld=no
2987 fi;
2988 ac_prog=ld
2989 if test "$GCC" = yes; then
2990   # Check if gcc -print-prog-name=ld gives a path.
2991   echo "$as_me:$LINENO: checking for ld used by $CC" >&5
2992 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
2993   case $host in
2994   *-*-mingw*)
2995     # gcc leaves a trailing carriage return which upsets mingw
2996     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
2997   *)
2998     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
2999   esac
3000   case $ac_prog in
3001     # Accept absolute paths.
3002     [\\/]* | ?:[\\/]*)
3003       re_direlt='/[^/][^/]*/\.\./'
3004       # Canonicalize the pathname of ld
3005       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
3006       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
3007         ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
3008       done
3009       test -z "$LD" && LD="$ac_prog"
3010       ;;
3011   "")
3012     # If it fails, then pretend we aren't using GCC.
3013     ac_prog=ld
3014     ;;
3015   *)
3016     # If it is relative, then search for the first ld in PATH.
3017     with_gnu_ld=unknown
3018     ;;
3019   esac
3020 elif test "$with_gnu_ld" = yes; then
3021   echo "$as_me:$LINENO: checking for GNU ld" >&5
3022 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
3023 else
3024   echo "$as_me:$LINENO: checking for non-GNU ld" >&5
3025 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
3026 fi
3027 if test "${lt_cv_path_LD+set}" = set; then
3028   echo $ECHO_N "(cached) $ECHO_C" >&6
3029 else
3030   if test -z "$LD"; then
3031   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3032   for ac_dir in $PATH; do
3033     IFS="$lt_save_ifs"
3034     test -z "$ac_dir" && ac_dir=.
3035     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3036       lt_cv_path_LD="$ac_dir/$ac_prog"
3037       # Check to see if the program is GNU ld.  I'd rather use --version,
3038       # but apparently some GNU ld's only accept -v.
3039       # Break only if it was the GNU/non-GNU ld that we prefer.
3040       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
3041       *GNU* | *'with BFD'*)
3042         test "$with_gnu_ld" != no && break
3043         ;;
3044       *)
3045         test "$with_gnu_ld" != yes && break
3046         ;;
3047       esac
3048     fi
3049   done
3050   IFS="$lt_save_ifs"
3051 else
3052   lt_cv_path_LD="$LD" # Let the user override the test with a path.
3053 fi
3054 fi
3055
3056 LD="$lt_cv_path_LD"
3057 if test -n "$LD"; then
3058   echo "$as_me:$LINENO: result: $LD" >&5
3059 echo "${ECHO_T}$LD" >&6
3060 else
3061   echo "$as_me:$LINENO: result: no" >&5
3062 echo "${ECHO_T}no" >&6
3063 fi
3064 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
3065 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
3066    { (exit 1); exit 1; }; }
3067 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
3068 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
3069 if test "${lt_cv_prog_gnu_ld+set}" = set; then
3070   echo $ECHO_N "(cached) $ECHO_C" >&6
3071 else
3072   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
3073 case `$LD -v 2>&1 </dev/null` in
3074 *GNU* | *'with BFD'*)
3075   lt_cv_prog_gnu_ld=yes
3076   ;;
3077 *)
3078   lt_cv_prog_gnu_ld=no
3079   ;;
3080 esac
3081 fi
3082 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
3083 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
3084 with_gnu_ld=$lt_cv_prog_gnu_ld
3085
3086
3087 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
3088 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
3089 if test "${lt_cv_ld_reload_flag+set}" = set; then
3090   echo $ECHO_N "(cached) $ECHO_C" >&6
3091 else
3092   lt_cv_ld_reload_flag='-r'
3093 fi
3094 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
3095 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
3096 reload_flag=$lt_cv_ld_reload_flag
3097 case $reload_flag in
3098 "" | " "*) ;;
3099 *) reload_flag=" $reload_flag" ;;
3100 esac
3101 reload_cmds='$LD$reload_flag -o $output$reload_objs'
3102
3103 echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
3104 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
3105 if test "${lt_cv_path_NM+set}" = set; then
3106   echo $ECHO_N "(cached) $ECHO_C" >&6
3107 else
3108   if test -n "$NM"; then
3109   # Let the user override the test.
3110   lt_cv_path_NM="$NM"
3111 else
3112   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3113   for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
3114     IFS="$lt_save_ifs"
3115     test -z "$ac_dir" && ac_dir=.
3116     tmp_nm="$ac_dir/${ac_tool_prefix}nm"
3117     if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
3118       # Check to see if the nm accepts a BSD-compat flag.
3119       # Adding the `sed 1q' prevents false positives on HP-UX, which says:
3120       #   nm: unknown option "B" ignored
3121       # Tru64's nm complains that /dev/null is an invalid object file
3122       case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
3123       */dev/null* | *'Invalid file or object type'*)
3124         lt_cv_path_NM="$tmp_nm -B"
3125         break
3126         ;;
3127       *)
3128         case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
3129         */dev/null*)
3130           lt_cv_path_NM="$tmp_nm -p"
3131           break
3132           ;;
3133         *)
3134           lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
3135           continue # so that we can try to find one that supports BSD flags
3136           ;;
3137         esac
3138       esac
3139     fi
3140   done
3141   IFS="$lt_save_ifs"
3142   test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
3143 fi
3144 fi
3145 echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
3146 echo "${ECHO_T}$lt_cv_path_NM" >&6
3147 NM="$lt_cv_path_NM"
3148
3149 echo "$as_me:$LINENO: checking whether ln -s works" >&5
3150 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3151 LN_S=$as_ln_s
3152 if test "$LN_S" = "ln -s"; then
3153   echo "$as_me:$LINENO: result: yes" >&5
3154 echo "${ECHO_T}yes" >&6
3155 else
3156   echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3157 echo "${ECHO_T}no, using $LN_S" >&6
3158 fi
3159
3160 echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
3161 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
3162 if test "${lt_cv_deplibs_check_method+set}" = set; then
3163   echo $ECHO_N "(cached) $ECHO_C" >&6
3164 else
3165   lt_cv_file_magic_cmd='$MAGIC_CMD'
3166 lt_cv_file_magic_test_file=
3167 lt_cv_deplibs_check_method='unknown'
3168 # Need to set the preceding variable on all platforms that support
3169 # interlibrary dependencies.
3170 # 'none' -- dependencies not supported.
3171 # `unknown' -- same as none, but documents that we really don't know.
3172 # 'pass_all' -- all dependencies passed with no checks.
3173 # 'test_compile' -- check by making test program.
3174 # 'file_magic [[regex]]' -- check by looking for files in library path
3175 # which responds to the $file_magic_cmd with a given extended regex.
3176 # If you have `file' or equivalent on your system and you're not sure
3177 # whether `pass_all' will *always* work, you probably want this one.
3178
3179 case $host_os in
3180 aix4* | aix5*)
3181   lt_cv_deplibs_check_method=pass_all
3182   ;;
3183
3184 beos*)
3185   lt_cv_deplibs_check_method=pass_all
3186   ;;
3187
3188 bsdi4*)
3189   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
3190   lt_cv_file_magic_cmd='/usr/bin/file -L'
3191   lt_cv_file_magic_test_file=/shlib/libc.so
3192   ;;
3193
3194 cygwin*)
3195   # func_win32_libid is a shell function defined in ltmain.sh
3196   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
3197   lt_cv_file_magic_cmd='func_win32_libid'
3198   ;;
3199
3200 mingw* | pw32*)
3201   # Base MSYS/MinGW do not provide the 'file' command needed by
3202   # func_win32_libid shell function, so use a weaker test based on 'objdump'.
3203   lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
3204   lt_cv_file_magic_cmd='$OBJDUMP -f'
3205   ;;
3206
3207 darwin* | rhapsody*)
3208   lt_cv_deplibs_check_method=pass_all
3209   ;;
3210
3211 freebsd* | kfreebsd*-gnu)
3212   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3213     case $host_cpu in
3214     i*86 )
3215       # Not sure whether the presence of OpenBSD here was a mistake.
3216       # Let's accept both of them until this is cleared up.
3217       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
3218       lt_cv_file_magic_cmd=/usr/bin/file
3219       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3220       ;;
3221     esac
3222   else
3223     lt_cv_deplibs_check_method=pass_all
3224   fi
3225   ;;
3226
3227 gnu*)
3228   lt_cv_deplibs_check_method=pass_all
3229   ;;
3230
3231 hpux10.20* | hpux11*)
3232   lt_cv_file_magic_cmd=/usr/bin/file
3233   case "$host_cpu" in
3234   ia64*)
3235     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
3236     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
3237     ;;
3238   hppa*64*)
3239     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - PA-RISC [0-9].[0-9]'
3240     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
3241     ;;
3242   *)
3243     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
3244     lt_cv_file_magic_test_file=/usr/lib/libc.sl
3245     ;;
3246   esac
3247   ;;
3248
3249 irix5* | irix6* | nonstopux*)
3250   case $LD in
3251   *-32|*"-32 ") libmagic=32-bit;;
3252   *-n32|*"-n32 ") libmagic=N32;;
3253   *-64|*"-64 ") libmagic=64-bit;;
3254   *) libmagic=never-match;;
3255   esac
3256   lt_cv_deplibs_check_method=pass_all
3257   ;;
3258
3259 # This must be Linux ELF.
3260 linux*)
3261   lt_cv_deplibs_check_method=pass_all
3262   ;;
3263
3264 netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
3265   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3266     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
3267   else
3268     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
3269   fi
3270   ;;
3271
3272 newos6*)
3273   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
3274   lt_cv_file_magic_cmd=/usr/bin/file
3275   lt_cv_file_magic_test_file=/usr/lib/libnls.so
3276   ;;
3277
3278 nto-qnx*)
3279   lt_cv_deplibs_check_method=unknown
3280   ;;
3281
3282 openbsd*)
3283   lt_cv_file_magic_cmd=/usr/bin/file
3284   lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3285   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
3286     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB shared object'
3287   else
3288     lt_cv_deplibs_check_method='file_magic OpenBSD.* shared library'
3289   fi
3290   ;;
3291
3292 osf3* | osf4* | osf5*)
3293   lt_cv_deplibs_check_method=pass_all
3294   ;;
3295
3296 sco3.2v5*)
3297   lt_cv_deplibs_check_method=pass_all
3298   ;;
3299
3300 solaris*)
3301   lt_cv_deplibs_check_method=pass_all
3302   ;;
3303
3304 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
3305   case $host_vendor in
3306   motorola)
3307     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]'
3308     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
3309     ;;
3310   ncr)
3311     lt_cv_deplibs_check_method=pass_all
3312     ;;
3313   sequent)
3314     lt_cv_file_magic_cmd='/bin/file'
3315     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
3316     ;;
3317   sni)
3318     lt_cv_file_magic_cmd='/bin/file'
3319     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
3320     lt_cv_file_magic_test_file=/lib/libc.so
3321     ;;
3322   siemens)
3323     lt_cv_deplibs_check_method=pass_all
3324     ;;
3325   esac
3326   ;;
3327
3328 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*)
3329   lt_cv_deplibs_check_method=pass_all
3330   ;;
3331 esac
3332
3333 fi
3334 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
3335 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
3336 file_magic_cmd=$lt_cv_file_magic_cmd
3337 deplibs_check_method=$lt_cv_deplibs_check_method
3338 test -z "$deplibs_check_method" && deplibs_check_method=unknown
3339
3340
3341
3342
3343 # If no C compiler was specified, use CC.
3344 LTCC=${LTCC-"$CC"}
3345
3346 # Allow CC to be a program name with arguments.
3347 compiler=$CC
3348
3349
3350 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
3351 if test "${enable_libtool_lock+set}" = set; then
3352   enableval="$enable_libtool_lock"
3353
3354 fi;
3355 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
3356
3357 # Some flags need to be propagated to the compiler or linker for good
3358 # libtool support.
3359 case $host in
3360 ia64-*-hpux*)
3361   # Find out which ABI we are using.
3362   echo 'int i;' > conftest.$ac_ext
3363   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3364   (eval $ac_compile) 2>&5
3365   ac_status=$?
3366   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3367   (exit $ac_status); }; then
3368     case `/usr/bin/file conftest.$ac_objext` in
3369     *ELF-32*)
3370       HPUX_IA64_MODE="32"
3371       ;;
3372     *ELF-64*)
3373       HPUX_IA64_MODE="64"
3374       ;;
3375     esac
3376   fi
3377   rm -rf conftest*
3378   ;;
3379 *-*-irix6*)
3380   # Find out which ABI we are using.
3381   echo '#line 3381 "configure"' > conftest.$ac_ext
3382   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3383   (eval $ac_compile) 2>&5
3384   ac_status=$?
3385   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3386   (exit $ac_status); }; then
3387    if test "$lt_cv_prog_gnu_ld" = yes; then
3388     case `/usr/bin/file conftest.$ac_objext` in
3389     *32-bit*)
3390       LD="${LD-ld} -melf32bsmip"
3391       ;;
3392     *N32*)
3393       LD="${LD-ld} -melf32bmipn32"
3394       ;;
3395     *64-bit*)
3396       LD="${LD-ld} -melf64bmip"
3397       ;;
3398     esac
3399    else
3400     case `/usr/bin/file conftest.$ac_objext` in
3401     *32-bit*)
3402       LD="${LD-ld} -32"
3403       ;;
3404     *N32*)
3405       LD="${LD-ld} -n32"
3406       ;;
3407     *64-bit*)
3408       LD="${LD-ld} -64"
3409       ;;
3410     esac
3411    fi
3412   fi
3413   rm -rf conftest*
3414   ;;
3415
3416 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
3417   # Find out which ABI we are using.
3418   echo 'int i;' > conftest.$ac_ext
3419   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3420   (eval $ac_compile) 2>&5
3421   ac_status=$?
3422   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3423   (exit $ac_status); }; then
3424     case "`/usr/bin/file conftest.o`" in
3425     *32-bit*)
3426       case $host in
3427         x86_64-*linux*)
3428           LD="${LD-ld} -m elf_i386"
3429           ;;
3430         ppc64-*linux*|powerpc64-*linux*)
3431           LD="${LD-ld} -m elf32ppclinux"
3432           ;;
3433         s390x-*linux*)
3434           LD="${LD-ld} -m elf_s390"
3435           ;;
3436         sparc64-*linux*)
3437           LD="${LD-ld} -m elf32_sparc"
3438           ;;
3439       esac
3440       ;;
3441     *64-bit*)
3442       case $host in
3443         x86_64-*linux*)
3444           LD="${LD-ld} -m elf_x86_64"
3445           ;;
3446         ppc*-*linux*|powerpc*-*linux*)
3447           LD="${LD-ld} -m elf64ppc"
3448           ;;
3449         s390*-*linux*)
3450           LD="${LD-ld} -m elf64_s390"
3451           ;;
3452         sparc*-*linux*)
3453           LD="${LD-ld} -m elf64_sparc"
3454           ;;
3455       esac
3456       ;;
3457     esac
3458   fi
3459   rm -rf conftest*
3460   ;;
3461
3462 *-*-sco3.2v5*)
3463   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
3464   SAVE_CFLAGS="$CFLAGS"
3465   CFLAGS="$CFLAGS -belf"
3466   echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
3467 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
3468 if test "${lt_cv_cc_needs_belf+set}" = set; then
3469   echo $ECHO_N "(cached) $ECHO_C" >&6
3470 else
3471   ac_ext=c
3472 ac_cpp='$CPP $CPPFLAGS'
3473 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3474 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3475 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3476
3477      cat >conftest.$ac_ext <<_ACEOF
3478 /* confdefs.h.  */
3479 _ACEOF
3480 cat confdefs.h >>conftest.$ac_ext
3481 cat >>conftest.$ac_ext <<_ACEOF
3482 /* end confdefs.h.  */
3483
3484 int
3485 main ()
3486 {
3487
3488   ;
3489   return 0;
3490 }
3491 _ACEOF
3492 rm -f conftest.$ac_objext conftest$ac_exeext
3493 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3494   (eval $ac_link) 2>conftest.er1
3495   ac_status=$?
3496   grep -v '^ *+' conftest.er1 >conftest.err
3497   rm -f conftest.er1
3498   cat conftest.err >&5
3499   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3500   (exit $ac_status); } &&
3501          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
3502   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3503   (eval $ac_try) 2>&5
3504   ac_status=$?
3505   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3506   (exit $ac_status); }; } &&
3507          { ac_try='test -s conftest$ac_exeext'
3508   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3509   (eval $ac_try) 2>&5
3510   ac_status=$?
3511   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3512   (exit $ac_status); }; }; then
3513   lt_cv_cc_needs_belf=yes
3514 else
3515   echo "$as_me: failed program was:" >&5
3516 sed 's/^/| /' conftest.$ac_ext >&5
3517
3518 lt_cv_cc_needs_belf=no
3519 fi
3520 rm -f conftest.err conftest.$ac_objext \
3521       conftest$ac_exeext conftest.$ac_ext
3522      ac_ext=c
3523 ac_cpp='$CPP $CPPFLAGS'
3524 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3525 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3526 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3527
3528 fi
3529 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
3530 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
3531   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
3532     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
3533     CFLAGS="$SAVE_CFLAGS"
3534   fi
3535   ;;
3536
3537 esac
3538
3539 need_locks="$enable_libtool_lock"
3540
3541
3542 ac_ext=c
3543 ac_cpp='$CPP $CPPFLAGS'
3544 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3545 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3546 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3547 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3548 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3549 # On Suns, sometimes $CPP names a directory.
3550 if test -n "$CPP" && test -d "$CPP"; then
3551   CPP=
3552 fi
3553 if test -z "$CPP"; then
3554   if test "${ac_cv_prog_CPP+set}" = set; then
3555   echo $ECHO_N "(cached) $ECHO_C" >&6
3556 else
3557       # Double quotes because CPP needs to be expanded
3558     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3559     do
3560       ac_preproc_ok=false
3561 for ac_c_preproc_warn_flag in '' yes
3562 do
3563   # Use a header file that comes with gcc, so configuring glibc
3564   # with a fresh cross-compiler works.
3565   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3566   # <limits.h> exists even on freestanding compilers.
3567   # On the NeXT, cc -E runs the code through the compiler's parser,
3568   # not just through cpp. "Syntax error" is here to catch this case.
3569   cat >conftest.$ac_ext <<_ACEOF
3570 /* confdefs.h.  */
3571 _ACEOF
3572 cat confdefs.h >>conftest.$ac_ext
3573 cat >>conftest.$ac_ext <<_ACEOF
3574 /* end confdefs.h.  */
3575 #ifdef __STDC__
3576 # include <limits.h>
3577 #else
3578 # include <assert.h>
3579 #endif
3580                      Syntax error
3581 _ACEOF
3582 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3583   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3584   ac_status=$?
3585   grep -v '^ *+' conftest.er1 >conftest.err
3586   rm -f conftest.er1
3587   cat conftest.err >&5
3588   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3589   (exit $ac_status); } >/dev/null; then
3590   if test -s conftest.err; then
3591     ac_cpp_err=$ac_c_preproc_warn_flag
3592     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3593   else
3594     ac_cpp_err=
3595   fi
3596 else
3597   ac_cpp_err=yes
3598 fi
3599 if test -z "$ac_cpp_err"; then
3600   :
3601 else
3602   echo "$as_me: failed program was:" >&5
3603 sed 's/^/| /' conftest.$ac_ext >&5
3604
3605   # Broken: fails on valid input.
3606 continue
3607 fi
3608 rm -f conftest.err conftest.$ac_ext
3609
3610   # OK, works on sane cases.  Now check whether non-existent headers
3611   # can be detected and how.
3612   cat >conftest.$ac_ext <<_ACEOF
3613 /* confdefs.h.  */
3614 _ACEOF
3615 cat confdefs.h >>conftest.$ac_ext
3616 cat >>conftest.$ac_ext <<_ACEOF
3617 /* end confdefs.h.  */
3618 #include <ac_nonexistent.h>
3619 _ACEOF
3620 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3621   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3622   ac_status=$?
3623   grep -v '^ *+' conftest.er1 >conftest.err
3624   rm -f conftest.er1
3625   cat conftest.err >&5
3626   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3627   (exit $ac_status); } >/dev/null; then
3628   if test -s conftest.err; then
3629     ac_cpp_err=$ac_c_preproc_warn_flag
3630     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3631   else
3632     ac_cpp_err=
3633   fi
3634 else
3635   ac_cpp_err=yes
3636 fi
3637 if test -z "$ac_cpp_err"; then
3638   # Broken: success on invalid input.
3639 continue
3640 else
3641   echo "$as_me: failed program was:" >&5
3642 sed 's/^/| /' conftest.$ac_ext >&5
3643
3644   # Passes both tests.
3645 ac_preproc_ok=:
3646 break
3647 fi
3648 rm -f conftest.err conftest.$ac_ext
3649
3650 done
3651 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3652 rm -f conftest.err conftest.$ac_ext
3653 if $ac_preproc_ok; then
3654   break
3655 fi
3656
3657     done
3658     ac_cv_prog_CPP=$CPP
3659
3660 fi
3661   CPP=$ac_cv_prog_CPP
3662 else
3663   ac_cv_prog_CPP=$CPP
3664 fi
3665 echo "$as_me:$LINENO: result: $CPP" >&5
3666 echo "${ECHO_T}$CPP" >&6
3667 ac_preproc_ok=false
3668 for ac_c_preproc_warn_flag in '' yes
3669 do
3670   # Use a header file that comes with gcc, so configuring glibc
3671   # with a fresh cross-compiler works.
3672   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3673   # <limits.h> exists even on freestanding compilers.
3674   # On the NeXT, cc -E runs the code through the compiler's parser,
3675   # not just through cpp. "Syntax error" is here to catch this case.
3676   cat >conftest.$ac_ext <<_ACEOF
3677 /* confdefs.h.  */
3678 _ACEOF
3679 cat confdefs.h >>conftest.$ac_ext
3680 cat >>conftest.$ac_ext <<_ACEOF
3681 /* end confdefs.h.  */
3682 #ifdef __STDC__
3683 # include <limits.h>
3684 #else
3685 # include <assert.h>
3686 #endif
3687                      Syntax error
3688 _ACEOF
3689 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3690   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3691   ac_status=$?
3692   grep -v '^ *+' conftest.er1 >conftest.err
3693   rm -f conftest.er1
3694   cat conftest.err >&5
3695   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3696   (exit $ac_status); } >/dev/null; then
3697   if test -s conftest.err; then
3698     ac_cpp_err=$ac_c_preproc_warn_flag
3699     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3700   else
3701     ac_cpp_err=
3702   fi
3703 else
3704   ac_cpp_err=yes
3705 fi
3706 if test -z "$ac_cpp_err"; then
3707   :
3708 else
3709   echo "$as_me: failed program was:" >&5
3710 sed 's/^/| /' conftest.$ac_ext >&5
3711
3712   # Broken: fails on valid input.
3713 continue
3714 fi
3715 rm -f conftest.err conftest.$ac_ext
3716
3717   # OK, works on sane cases.  Now check whether non-existent headers
3718   # can be detected and how.
3719   cat >conftest.$ac_ext <<_ACEOF
3720 /* confdefs.h.  */
3721 _ACEOF
3722 cat confdefs.h >>conftest.$ac_ext
3723 cat >>conftest.$ac_ext <<_ACEOF
3724 /* end confdefs.h.  */
3725 #include <ac_nonexistent.h>
3726 _ACEOF
3727 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3728   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3729   ac_status=$?
3730   grep -v '^ *+' conftest.er1 >conftest.err
3731   rm -f conftest.er1
3732   cat conftest.err >&5
3733   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3734   (exit $ac_status); } >/dev/null; then
3735   if test -s conftest.err; then
3736     ac_cpp_err=$ac_c_preproc_warn_flag
3737     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3738   else
3739     ac_cpp_err=
3740   fi
3741 else
3742   ac_cpp_err=yes
3743 fi
3744 if test -z "$ac_cpp_err"; then
3745   # Broken: success on invalid input.
3746 continue
3747 else
3748   echo "$as_me: failed program was:" >&5
3749 sed 's/^/| /' conftest.$ac_ext >&5
3750
3751   # Passes both tests.
3752 ac_preproc_ok=:
3753 break
3754 fi
3755 rm -f conftest.err conftest.$ac_ext
3756
3757 done
3758 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3759 rm -f conftest.err conftest.$ac_ext
3760 if $ac_preproc_ok; then
3761   :
3762 else
3763   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3764 See \`config.log' for more details." >&5
3765 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3766 See \`config.log' for more details." >&2;}
3767    { (exit 1); exit 1; }; }
3768 fi
3769
3770 ac_ext=c
3771 ac_cpp='$CPP $CPPFLAGS'
3772 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3773 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3774 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3775
3776
3777 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3778 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
3779 if test "${ac_cv_header_stdc+set}" = set; then
3780   echo $ECHO_N "(cached) $ECHO_C" >&6
3781 else
3782   cat >conftest.$ac_ext <<_ACEOF
3783 /* confdefs.h.  */
3784 _ACEOF
3785 cat confdefs.h >>conftest.$ac_ext
3786 cat >>conftest.$ac_ext <<_ACEOF
3787 /* end confdefs.h.  */
3788 #include <stdlib.h>
3789 #include <stdarg.h>
3790 #include <string.h>
3791 #include <float.h>
3792
3793 int
3794 main ()
3795 {
3796
3797   ;
3798   return 0;
3799 }
3800 _ACEOF
3801 rm -f conftest.$ac_objext
3802 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3803   (eval $ac_compile) 2>conftest.er1
3804   ac_status=$?
3805   grep -v '^ *+' conftest.er1 >conftest.err
3806   rm -f conftest.er1
3807   cat conftest.err >&5
3808   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3809   (exit $ac_status); } &&
3810          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
3811   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3812   (eval $ac_try) 2>&5
3813   ac_status=$?
3814   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3815   (exit $ac_status); }; } &&
3816          { ac_try='test -s conftest.$ac_objext'
3817   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3818   (eval $ac_try) 2>&5
3819   ac_status=$?
3820   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3821   (exit $ac_status); }; }; then
3822   ac_cv_header_stdc=yes
3823 else
3824   echo "$as_me: failed program was:" >&5
3825 sed 's/^/| /' conftest.$ac_ext >&5
3826
3827 ac_cv_header_stdc=no
3828 fi
3829 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3830
3831 if test $ac_cv_header_stdc = yes; then
3832   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3833   cat >conftest.$ac_ext <<_ACEOF
3834 /* confdefs.h.  */
3835 _ACEOF
3836 cat confdefs.h >>conftest.$ac_ext
3837 cat >>conftest.$ac_ext <<_ACEOF
3838 /* end confdefs.h.  */
3839 #include <string.h>
3840
3841 _ACEOF
3842 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3843   $EGREP "memchr" >/dev/null 2>&1; then
3844   :
3845 else
3846   ac_cv_header_stdc=no
3847 fi
3848 rm -f conftest*
3849
3850 fi
3851
3852 if test $ac_cv_header_stdc = yes; then
3853   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3854   cat >conftest.$ac_ext <<_ACEOF
3855 /* confdefs.h.  */
3856 _ACEOF
3857 cat confdefs.h >>conftest.$ac_ext
3858 cat >>conftest.$ac_ext <<_ACEOF
3859 /* end confdefs.h.  */
3860 #include <stdlib.h>
3861
3862 _ACEOF
3863 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3864   $EGREP "free" >/dev/null 2>&1; then
3865   :
3866 else
3867   ac_cv_header_stdc=no
3868 fi
3869 rm -f conftest*
3870
3871 fi
3872
3873 if test $ac_cv_header_stdc = yes; then
3874   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3875   if test "$cross_compiling" = yes; then
3876   :
3877 else
3878   cat >conftest.$ac_ext <<_ACEOF
3879 /* confdefs.h.  */
3880 _ACEOF
3881 cat confdefs.h >>conftest.$ac_ext
3882 cat >>conftest.$ac_ext <<_ACEOF
3883 /* end confdefs.h.  */
3884 #include <ctype.h>
3885 #if ((' ' & 0x0FF) == 0x020)
3886 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3887 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3888 #else
3889 # define ISLOWER(c) \
3890                    (('a' <= (c) && (c) <= 'i') \
3891                      || ('j' <= (c) && (c) <= 'r') \
3892                      || ('s' <= (c) && (c) <= 'z'))
3893 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3894 #endif
3895
3896 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3897 int
3898 main ()
3899 {
3900   int i;
3901   for (i = 0; i < 256; i++)
3902     if (XOR (islower (i), ISLOWER (i))
3903         || toupper (i) != TOUPPER (i))
3904       exit(2);
3905   exit (0);
3906 }
3907 _ACEOF
3908 rm -f conftest$ac_exeext
3909 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3910   (eval $ac_link) 2>&5
3911   ac_status=$?
3912   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3913   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3914   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3915   (eval $ac_try) 2>&5
3916   ac_status=$?
3917   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3918   (exit $ac_status); }; }; then
3919   :
3920 else
3921   echo "$as_me: program exited with status $ac_status" >&5
3922 echo "$as_me: failed program was:" >&5
3923 sed 's/^/| /' conftest.$ac_ext >&5
3924
3925 ( exit $ac_status )
3926 ac_cv_header_stdc=no
3927 fi
3928 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3929 fi
3930 fi
3931 fi
3932 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3933 echo "${ECHO_T}$ac_cv_header_stdc" >&6
3934 if test $ac_cv_header_stdc = yes; then
3935
3936 cat >>confdefs.h <<\_ACEOF
3937 #define STDC_HEADERS 1
3938 _ACEOF
3939
3940 fi
3941
3942 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3943
3944
3945
3946
3947
3948
3949
3950
3951
3952 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3953                   inttypes.h stdint.h unistd.h
3954 do
3955 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3956 echo "$as_me:$LINENO: checking for $ac_header" >&5
3957 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3958 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3959   echo $ECHO_N "(cached) $ECHO_C" >&6
3960 else
3961   cat >conftest.$ac_ext <<_ACEOF
3962 /* confdefs.h.  */
3963 _ACEOF
3964 cat confdefs.h >>conftest.$ac_ext
3965 cat >>conftest.$ac_ext <<_ACEOF
3966 /* end confdefs.h.  */
3967 $ac_includes_default
3968
3969 #include <$ac_header>
3970 _ACEOF
3971 rm -f conftest.$ac_objext
3972 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3973   (eval $ac_compile) 2>conftest.er1
3974   ac_status=$?
3975   grep -v '^ *+' conftest.er1 >conftest.err
3976   rm -f conftest.er1
3977   cat conftest.err >&5
3978   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3979   (exit $ac_status); } &&
3980          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
3981   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3982   (eval $ac_try) 2>&5
3983   ac_status=$?
3984   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3985   (exit $ac_status); }; } &&
3986          { ac_try='test -s conftest.$ac_objext'
3987   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3988   (eval $ac_try) 2>&5
3989   ac_status=$?
3990   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3991   (exit $ac_status); }; }; then
3992   eval "$as_ac_Header=yes"
3993 else
3994   echo "$as_me: failed program was:" >&5
3995 sed 's/^/| /' conftest.$ac_ext >&5
3996
3997 eval "$as_ac_Header=no"
3998 fi
3999 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4000 fi
4001 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4002 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4003 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4004   cat >>confdefs.h <<_ACEOF
4005 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4006 _ACEOF
4007
4008 fi
4009
4010 done
4011
4012
4013
4014 for ac_header in dlfcn.h
4015 do
4016 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4017 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4018   echo "$as_me:$LINENO: checking for $ac_header" >&5
4019 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4020 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4021   echo $ECHO_N "(cached) $ECHO_C" >&6
4022 fi
4023 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4024 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4025 else
4026   # Is the header compilable?
4027 echo "$as_me:$LINENO: checking $ac_header usability" >&5
4028 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4029 cat >conftest.$ac_ext <<_ACEOF
4030 /* confdefs.h.  */
4031 _ACEOF
4032 cat confdefs.h >>conftest.$ac_ext
4033 cat >>conftest.$ac_ext <<_ACEOF
4034 /* end confdefs.h.  */
4035 $ac_includes_default
4036 #include <$ac_header>
4037 _ACEOF
4038 rm -f conftest.$ac_objext
4039 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4040   (eval $ac_compile) 2>conftest.er1
4041   ac_status=$?
4042   grep -v '^ *+' conftest.er1 >conftest.err
4043   rm -f conftest.er1
4044   cat conftest.err >&5
4045   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4046   (exit $ac_status); } &&
4047          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
4048   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4049   (eval $ac_try) 2>&5
4050   ac_status=$?
4051   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4052   (exit $ac_status); }; } &&
4053          { ac_try='test -s conftest.$ac_objext'
4054   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4055   (eval $ac_try) 2>&5
4056   ac_status=$?
4057   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4058   (exit $ac_status); }; }; then
4059   ac_header_compiler=yes
4060 else
4061   echo "$as_me: failed program was:" >&5
4062 sed 's/^/| /' conftest.$ac_ext >&5
4063
4064 ac_header_compiler=no
4065 fi
4066 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4067 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4068 echo "${ECHO_T}$ac_header_compiler" >&6
4069
4070 # Is the header present?
4071 echo "$as_me:$LINENO: checking $ac_header presence" >&5
4072 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4073 cat >conftest.$ac_ext <<_ACEOF
4074 /* confdefs.h.  */
4075 _ACEOF
4076 cat confdefs.h >>conftest.$ac_ext
4077 cat >>conftest.$ac_ext <<_ACEOF
4078 /* end confdefs.h.  */
4079 #include <$ac_header>
4080 _ACEOF
4081 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4082   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4083   ac_status=$?
4084   grep -v '^ *+' conftest.er1 >conftest.err
4085   rm -f conftest.er1
4086   cat conftest.err >&5
4087   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4088   (exit $ac_status); } >/dev/null; then
4089   if test -s conftest.err; then
4090     ac_cpp_err=$ac_c_preproc_warn_flag
4091     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4092   else
4093     ac_cpp_err=
4094   fi
4095 else
4096   ac_cpp_err=yes
4097 fi
4098 if test -z "$ac_cpp_err"; then
4099   ac_header_preproc=yes
4100 else
4101   echo "$as_me: failed program was:" >&5
4102 sed 's/^/| /' conftest.$ac_ext >&5
4103
4104   ac_header_preproc=no
4105 fi
4106 rm -f conftest.err conftest.$ac_ext
4107 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4108 echo "${ECHO_T}$ac_header_preproc" >&6
4109
4110 # So?  What about this header?
4111 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4112   yes:no: )
4113     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4114 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4115     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4116 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4117     ac_header_preproc=yes
4118     ;;
4119   no:yes:* )
4120     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4121 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4122     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
4123 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
4124     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4125 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4126     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
4127 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
4128     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4129 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4130     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4131 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4132     (
4133       cat <<\_ASBOX
4134 ## ------------------------------------------ ##
4135 ## Report this to the AC_PACKAGE_NAME lists.  ##
4136 ## ------------------------------------------ ##
4137 _ASBOX
4138     ) |
4139       sed "s/^/$as_me: WARNING:     /" >&2
4140     ;;
4141 esac
4142 echo "$as_me:$LINENO: checking for $ac_header" >&5
4143 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4144 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4145   echo $ECHO_N "(cached) $ECHO_C" >&6
4146 else
4147   eval "$as_ac_Header=\$ac_header_preproc"
4148 fi
4149 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4150 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4151
4152 fi
4153 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4154   cat >>confdefs.h <<_ACEOF
4155 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4156 _ACEOF
4157
4158 fi
4159
4160 done
4161
4162 ac_ext=cc
4163 ac_cpp='$CXXCPP $CPPFLAGS'
4164 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4165 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4166 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4167 if test -n "$ac_tool_prefix"; then
4168   for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
4169   do
4170     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4171 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4172 echo "$as_me:$LINENO: checking for $ac_word" >&5
4173 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4174 if test "${ac_cv_prog_CXX+set}" = set; then
4175   echo $ECHO_N "(cached) $ECHO_C" >&6
4176 else
4177   if test -n "$CXX"; then
4178   ac_cv_prog_CXX="$CXX" # Let the user override the test.
4179 else
4180 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4181 for as_dir in $PATH
4182 do
4183   IFS=$as_save_IFS
4184   test -z "$as_dir" && as_dir=.
4185   for ac_exec_ext in '' $ac_executable_extensions; do
4186   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4187     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4188     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4189     break 2
4190   fi
4191 done
4192 done
4193
4194 fi
4195 fi
4196 CXX=$ac_cv_prog_CXX
4197 if test -n "$CXX"; then
4198   echo "$as_me:$LINENO: result: $CXX" >&5
4199 echo "${ECHO_T}$CXX" >&6
4200 else
4201   echo "$as_me:$LINENO: result: no" >&5
4202 echo "${ECHO_T}no" >&6
4203 fi
4204
4205     test -n "$CXX" && break
4206   done
4207 fi
4208 if test -z "$CXX"; then
4209   ac_ct_CXX=$CXX
4210   for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
4211 do
4212   # Extract the first word of "$ac_prog", so it can be a program name with args.
4213 set dummy $ac_prog; ac_word=$2
4214 echo "$as_me:$LINENO: checking for $ac_word" >&5
4215 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4216 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
4217   echo $ECHO_N "(cached) $ECHO_C" >&6
4218 else
4219   if test -n "$ac_ct_CXX"; then
4220   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4221 else
4222 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4223 for as_dir in $PATH
4224 do
4225   IFS=$as_save_IFS
4226   test -z "$as_dir" && as_dir=.
4227   for ac_exec_ext in '' $ac_executable_extensions; do
4228   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4229     ac_cv_prog_ac_ct_CXX="$ac_prog"
4230     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4231     break 2
4232   fi
4233 done
4234 done
4235
4236 fi
4237 fi
4238 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4239 if test -n "$ac_ct_CXX"; then
4240   echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
4241 echo "${ECHO_T}$ac_ct_CXX" >&6
4242 else
4243   echo "$as_me:$LINENO: result: no" >&5
4244 echo "${ECHO_T}no" >&6
4245 fi
4246
4247   test -n "$ac_ct_CXX" && break
4248 done
4249 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
4250
4251   CXX=$ac_ct_CXX
4252 fi
4253
4254
4255 # Provide some information about the compiler.
4256 echo "$as_me:$LINENO:" \
4257      "checking for C++ compiler version" >&5
4258 ac_compiler=`set X $ac_compile; echo $2`
4259 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
4260   (eval $ac_compiler --version </dev/null >&5) 2>&5
4261   ac_status=$?
4262   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4263   (exit $ac_status); }
4264 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
4265   (eval $ac_compiler -v </dev/null >&5) 2>&5
4266   ac_status=$?
4267   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4268   (exit $ac_status); }
4269 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
4270   (eval $ac_compiler -V </dev/null >&5) 2>&5
4271   ac_status=$?
4272   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4273   (exit $ac_status); }
4274
4275 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
4276 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
4277 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
4278   echo $ECHO_N "(cached) $ECHO_C" >&6
4279 else
4280   cat >conftest.$ac_ext <<_ACEOF
4281 /* confdefs.h.  */
4282 _ACEOF
4283 cat confdefs.h >>conftest.$ac_ext
4284 cat >>conftest.$ac_ext <<_ACEOF
4285 /* end confdefs.h.  */
4286
4287 int
4288 main ()
4289 {
4290 #ifndef __GNUC__
4291        choke me
4292 #endif
4293
4294   ;
4295   return 0;
4296 }
4297 _ACEOF
4298 rm -f conftest.$ac_objext
4299 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4300   (eval $ac_compile) 2>conftest.er1
4301   ac_status=$?
4302   grep -v '^ *+' conftest.er1 >conftest.err
4303   rm -f conftest.er1
4304   cat conftest.err >&5
4305   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4306   (exit $ac_status); } &&
4307          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
4308   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4309   (eval $ac_try) 2>&5
4310   ac_status=$?
4311   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4312   (exit $ac_status); }; } &&
4313          { ac_try='test -s conftest.$ac_objext'
4314   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4315   (eval $ac_try) 2>&5
4316   ac_status=$?
4317   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4318   (exit $ac_status); }; }; then
4319   ac_compiler_gnu=yes
4320 else
4321   echo "$as_me: failed program was:" >&5
4322 sed 's/^/| /' conftest.$ac_ext >&5
4323
4324 ac_compiler_gnu=no
4325 fi
4326 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4327 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4328
4329 fi
4330 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
4331 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
4332 GXX=`test $ac_compiler_gnu = yes && echo yes`
4333 ac_test_CXXFLAGS=${CXXFLAGS+set}
4334 ac_save_CXXFLAGS=$CXXFLAGS
4335 CXXFLAGS="-g"
4336 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
4337 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
4338 if test "${ac_cv_prog_cxx_g+set}" = set; then
4339   echo $ECHO_N "(cached) $ECHO_C" >&6
4340 else
4341   cat >conftest.$ac_ext <<_ACEOF
4342 /* confdefs.h.  */
4343 _ACEOF
4344 cat confdefs.h >>conftest.$ac_ext
4345 cat >>conftest.$ac_ext <<_ACEOF
4346 /* end confdefs.h.  */
4347
4348 int
4349 main ()
4350 {
4351
4352   ;
4353   return 0;
4354 }
4355 _ACEOF
4356 rm -f conftest.$ac_objext
4357 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4358   (eval $ac_compile) 2>conftest.er1
4359   ac_status=$?
4360   grep -v '^ *+' conftest.er1 >conftest.err
4361   rm -f conftest.er1
4362   cat conftest.err >&5
4363   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4364   (exit $ac_status); } &&
4365          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
4366   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4367   (eval $ac_try) 2>&5
4368   ac_status=$?
4369   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4370   (exit $ac_status); }; } &&
4371          { ac_try='test -s conftest.$ac_objext'
4372   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4373   (eval $ac_try) 2>&5
4374   ac_status=$?
4375   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4376   (exit $ac_status); }; }; then
4377   ac_cv_prog_cxx_g=yes
4378 else
4379   echo "$as_me: failed program was:" >&5
4380 sed 's/^/| /' conftest.$ac_ext >&5
4381
4382 ac_cv_prog_cxx_g=no
4383 fi
4384 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4385 fi
4386 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
4387 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
4388 if test "$ac_test_CXXFLAGS" = set; then
4389   CXXFLAGS=$ac_save_CXXFLAGS
4390 elif test $ac_cv_prog_cxx_g = yes; then
4391   if test "$GXX" = yes; then
4392     CXXFLAGS="-g -O2"
4393   else
4394     CXXFLAGS="-g"
4395   fi
4396 else
4397   if test "$GXX" = yes; then
4398     CXXFLAGS="-O2"
4399   else
4400     CXXFLAGS=
4401   fi
4402 fi
4403 for ac_declaration in \
4404    '' \
4405    'extern "C" void std::exit (int) throw (); using std::exit;' \
4406    'extern "C" void std::exit (int); using std::exit;' \
4407    'extern "C" void exit (int) throw ();' \
4408    'extern "C" void exit (int);' \
4409    'void exit (int);'
4410 do
4411   cat >conftest.$ac_ext <<_ACEOF
4412 /* confdefs.h.  */
4413 _ACEOF
4414 cat confdefs.h >>conftest.$ac_ext
4415 cat >>conftest.$ac_ext <<_ACEOF
4416 /* end confdefs.h.  */
4417 $ac_declaration
4418 #include <stdlib.h>
4419 int
4420 main ()
4421 {
4422 exit (42);
4423   ;
4424   return 0;
4425 }
4426 _ACEOF
4427 rm -f conftest.$ac_objext
4428 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4429   (eval $ac_compile) 2>conftest.er1
4430   ac_status=$?
4431   grep -v '^ *+' conftest.er1 >conftest.err
4432   rm -f conftest.er1
4433   cat conftest.err >&5
4434   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4435   (exit $ac_status); } &&
4436          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
4437   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4438   (eval $ac_try) 2>&5
4439   ac_status=$?
4440   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4441   (exit $ac_status); }; } &&
4442          { ac_try='test -s conftest.$ac_objext'
4443   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4444   (eval $ac_try) 2>&5
4445   ac_status=$?
4446   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4447   (exit $ac_status); }; }; then
4448   :
4449 else
4450   echo "$as_me: failed program was:" >&5
4451 sed 's/^/| /' conftest.$ac_ext >&5
4452
4453 continue
4454 fi
4455 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4456   cat >conftest.$ac_ext <<_ACEOF
4457 /* confdefs.h.  */
4458 _ACEOF
4459 cat confdefs.h >>conftest.$ac_ext
4460 cat >>conftest.$ac_ext <<_ACEOF
4461 /* end confdefs.h.  */
4462 $ac_declaration
4463 int
4464 main ()
4465 {
4466 exit (42);
4467   ;
4468   return 0;
4469 }
4470 _ACEOF
4471 rm -f conftest.$ac_objext
4472 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4473   (eval $ac_compile) 2>conftest.er1
4474   ac_status=$?
4475   grep -v '^ *+' conftest.er1 >conftest.err
4476   rm -f conftest.er1
4477   cat conftest.err >&5
4478   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4479   (exit $ac_status); } &&
4480          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
4481   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4482   (eval $ac_try) 2>&5
4483   ac_status=$?
4484   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4485   (exit $ac_status); }; } &&
4486          { ac_try='test -s conftest.$ac_objext'
4487   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4488   (eval $ac_try) 2>&5
4489   ac_status=$?
4490   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4491   (exit $ac_status); }; }; then
4492   break
4493 else
4494   echo "$as_me: failed program was:" >&5
4495 sed 's/^/| /' conftest.$ac_ext >&5
4496
4497 fi
4498 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4499 done
4500 rm -f conftest*
4501 if test -n "$ac_declaration"; then
4502   echo '#ifdef __cplusplus' >>confdefs.h
4503   echo $ac_declaration      >>confdefs.h
4504   echo '#endif'             >>confdefs.h
4505 fi
4506
4507 ac_ext=cc
4508 ac_cpp='$CXXCPP $CPPFLAGS'
4509 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4510 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4511 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4512
4513 ac_ext=cc
4514 ac_cpp='$CXXCPP $CPPFLAGS'
4515 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4516 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4517 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4518 echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
4519 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
4520 if test -z "$CXXCPP"; then
4521   if test "${ac_cv_prog_CXXCPP+set}" = set; then
4522   echo $ECHO_N "(cached) $ECHO_C" >&6
4523 else
4524       # Double quotes because CXXCPP needs to be expanded
4525     for CXXCPP in "$CXX -E" "/lib/cpp"
4526     do
4527       ac_preproc_ok=false
4528 for ac_cxx_preproc_warn_flag in '' yes
4529 do
4530   # Use a header file that comes with gcc, so configuring glibc
4531   # with a fresh cross-compiler works.
4532   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4533   # <limits.h> exists even on freestanding compilers.
4534   # On the NeXT, cc -E runs the code through the compiler's parser,
4535   # not just through cpp. "Syntax error" is here to catch this case.
4536   cat >conftest.$ac_ext <<_ACEOF
4537 /* confdefs.h.  */
4538 _ACEOF
4539 cat confdefs.h >>conftest.$ac_ext
4540 cat >>conftest.$ac_ext <<_ACEOF
4541 /* end confdefs.h.  */
4542 #ifdef __STDC__
4543 # include <limits.h>
4544 #else
4545 # include <assert.h>
4546 #endif
4547                      Syntax error
4548 _ACEOF
4549 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4550   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4551   ac_status=$?
4552   grep -v '^ *+' conftest.er1 >conftest.err
4553   rm -f conftest.er1
4554   cat conftest.err >&5
4555   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4556   (exit $ac_status); } >/dev/null; then
4557   if test -s conftest.err; then
4558     ac_cpp_err=$ac_cxx_preproc_warn_flag
4559     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
4560   else
4561     ac_cpp_err=
4562   fi
4563 else
4564   ac_cpp_err=yes
4565 fi
4566 if test -z "$ac_cpp_err"; then
4567   :
4568 else
4569   echo "$as_me: failed program was:" >&5
4570 sed 's/^/| /' conftest.$ac_ext >&5
4571
4572   # Broken: fails on valid input.
4573 continue
4574 fi
4575 rm -f conftest.err conftest.$ac_ext
4576
4577   # OK, works on sane cases.  Now check whether non-existent headers
4578   # can be detected and how.
4579   cat >conftest.$ac_ext <<_ACEOF
4580 /* confdefs.h.  */
4581 _ACEOF
4582 cat confdefs.h >>conftest.$ac_ext
4583 cat >>conftest.$ac_ext <<_ACEOF
4584 /* end confdefs.h.  */
4585 #include <ac_nonexistent.h>
4586 _ACEOF
4587 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4588   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4589   ac_status=$?
4590   grep -v '^ *+' conftest.er1 >conftest.err
4591   rm -f conftest.er1
4592   cat conftest.err >&5
4593   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4594   (exit $ac_status); } >/dev/null; then
4595   if test -s conftest.err; then
4596     ac_cpp_err=$ac_cxx_preproc_warn_flag
4597     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
4598   else
4599     ac_cpp_err=
4600   fi
4601 else
4602   ac_cpp_err=yes
4603 fi
4604 if test -z "$ac_cpp_err"; then
4605   # Broken: success on invalid input.
4606 continue
4607 else
4608   echo "$as_me: failed program was:" >&5
4609 sed 's/^/| /' conftest.$ac_ext >&5
4610
4611   # Passes both tests.
4612 ac_preproc_ok=:
4613 break
4614 fi
4615 rm -f conftest.err conftest.$ac_ext
4616
4617 done
4618 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4619 rm -f conftest.err conftest.$ac_ext
4620 if $ac_preproc_ok; then
4621   break
4622 fi
4623
4624     done
4625     ac_cv_prog_CXXCPP=$CXXCPP
4626
4627 fi
4628   CXXCPP=$ac_cv_prog_CXXCPP
4629 else
4630   ac_cv_prog_CXXCPP=$CXXCPP
4631 fi
4632 echo "$as_me:$LINENO: result: $CXXCPP" >&5
4633 echo "${ECHO_T}$CXXCPP" >&6
4634 ac_preproc_ok=false
4635 for ac_cxx_preproc_warn_flag in '' yes
4636 do
4637   # Use a header file that comes with gcc, so configuring glibc
4638   # with a fresh cross-compiler works.
4639   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4640   # <limits.h> exists even on freestanding compilers.
4641   # On the NeXT, cc -E runs the code through the compiler's parser,
4642   # not just through cpp. "Syntax error" is here to catch this case.
4643   cat >conftest.$ac_ext <<_ACEOF
4644 /* confdefs.h.  */
4645 _ACEOF
4646 cat confdefs.h >>conftest.$ac_ext
4647 cat >>conftest.$ac_ext <<_ACEOF
4648 /* end confdefs.h.  */
4649 #ifdef __STDC__
4650 # include <limits.h>
4651 #else
4652 # include <assert.h>
4653 #endif
4654                      Syntax error
4655 _ACEOF
4656 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4657   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4658   ac_status=$?
4659   grep -v '^ *+' conftest.er1 >conftest.err
4660   rm -f conftest.er1
4661   cat conftest.err >&5
4662   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4663   (exit $ac_status); } >/dev/null; then
4664   if test -s conftest.err; then
4665     ac_cpp_err=$ac_cxx_preproc_warn_flag
4666     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
4667   else
4668     ac_cpp_err=
4669   fi
4670 else
4671   ac_cpp_err=yes
4672 fi
4673 if test -z "$ac_cpp_err"; then
4674   :
4675 else
4676   echo "$as_me: failed program was:" >&5
4677 sed 's/^/| /' conftest.$ac_ext >&5
4678
4679   # Broken: fails on valid input.
4680 continue
4681 fi
4682 rm -f conftest.err conftest.$ac_ext
4683
4684   # OK, works on sane cases.  Now check whether non-existent headers
4685   # can be detected and how.
4686   cat >conftest.$ac_ext <<_ACEOF
4687 /* confdefs.h.  */
4688 _ACEOF
4689 cat confdefs.h >>conftest.$ac_ext
4690 cat >>conftest.$ac_ext <<_ACEOF
4691 /* end confdefs.h.  */
4692 #include <ac_nonexistent.h>
4693 _ACEOF
4694 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4695   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4696   ac_status=$?
4697   grep -v '^ *+' conftest.er1 >conftest.err
4698   rm -f conftest.er1
4699   cat conftest.err >&5
4700   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4701   (exit $ac_status); } >/dev/null; then
4702   if test -s conftest.err; then
4703     ac_cpp_err=$ac_cxx_preproc_warn_flag
4704     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
4705   else
4706     ac_cpp_err=
4707   fi
4708 else
4709   ac_cpp_err=yes
4710 fi
4711 if test -z "$ac_cpp_err"; then
4712   # Broken: success on invalid input.
4713 continue
4714 else
4715   echo "$as_me: failed program was:" >&5
4716 sed 's/^/| /' conftest.$ac_ext >&5
4717
4718   # Passes both tests.
4719 ac_preproc_ok=:
4720 break
4721 fi
4722 rm -f conftest.err conftest.$ac_ext
4723
4724 done
4725 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4726 rm -f conftest.err conftest.$ac_ext
4727 if $ac_preproc_ok; then
4728   :
4729 else
4730   { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
4731 See \`config.log' for more details." >&5
4732 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
4733 See \`config.log' for more details." >&2;}
4734    { (exit 1); exit 1; }; }
4735 fi
4736
4737 ac_ext=cc
4738 ac_cpp='$CXXCPP $CPPFLAGS'
4739 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4740 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4741 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4742
4743
4744 ac_ext=f
4745 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
4746 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4747 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
4748 if test -n "$ac_tool_prefix"; then
4749   for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
4750   do
4751     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4752 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4753 echo "$as_me:$LINENO: checking for $ac_word" >&5
4754 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4755 if test "${ac_cv_prog_F77+set}" = set; then
4756   echo $ECHO_N "(cached) $ECHO_C" >&6
4757 else
4758   if test -n "$F77"; then
4759   ac_cv_prog_F77="$F77" # Let the user override the test.
4760 else
4761 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4762 for as_dir in $PATH
4763 do
4764   IFS=$as_save_IFS
4765   test -z "$as_dir" && as_dir=.
4766   for ac_exec_ext in '' $ac_executable_extensions; do
4767   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4768     ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
4769     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4770     break 2
4771   fi
4772 done
4773 done
4774
4775 fi
4776 fi
4777 F77=$ac_cv_prog_F77
4778 if test -n "$F77"; then
4779   echo "$as_me:$LINENO: result: $F77" >&5
4780 echo "${ECHO_T}$F77" >&6
4781 else
4782   echo "$as_me:$LINENO: result: no" >&5
4783 echo "${ECHO_T}no" >&6
4784 fi
4785
4786     test -n "$F77" && break
4787   done
4788 fi
4789 if test -z "$F77"; then
4790   ac_ct_F77=$F77
4791   for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
4792 do
4793   # Extract the first word of "$ac_prog", so it can be a program name with args.
4794 set dummy $ac_prog; ac_word=$2
4795 echo "$as_me:$LINENO: checking for $ac_word" >&5
4796 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4797 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
4798   echo $ECHO_N "(cached) $ECHO_C" >&6
4799 else
4800   if test -n "$ac_ct_F77"; then
4801   ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
4802 else
4803 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4804 for as_dir in $PATH
4805 do
4806   IFS=$as_save_IFS
4807   test -z "$as_dir" && as_dir=.
4808   for ac_exec_ext in '' $ac_executable_extensions; do
4809   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4810     ac_cv_prog_ac_ct_F77="$ac_prog"
4811     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4812     break 2
4813   fi
4814 done
4815 done
4816
4817 fi
4818 fi
4819 ac_ct_F77=$ac_cv_prog_ac_ct_F77
4820 if test -n "$ac_ct_F77"; then
4821   echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
4822 echo "${ECHO_T}$ac_ct_F77" >&6
4823 else
4824   echo "$as_me:$LINENO: result: no" >&5
4825 echo "${ECHO_T}no" >&6
4826 fi
4827
4828   test -n "$ac_ct_F77" && break
4829 done
4830
4831   F77=$ac_ct_F77
4832 fi
4833
4834
4835 # Provide some information about the compiler.
4836 echo "$as_me:4836:" \
4837      "checking for Fortran 77 compiler version" >&5
4838 ac_compiler=`set X $ac_compile; echo $2`
4839 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
4840   (eval $ac_compiler --version </dev/null >&5) 2>&5
4841   ac_status=$?
4842   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4843   (exit $ac_status); }
4844 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
4845   (eval $ac_compiler -v </dev/null >&5) 2>&5
4846   ac_status=$?
4847   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4848   (exit $ac_status); }
4849 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
4850   (eval $ac_compiler -V </dev/null >&5) 2>&5
4851   ac_status=$?
4852   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4853   (exit $ac_status); }
4854 rm -f a.out
4855
4856 # If we don't use `.F' as extension, the preprocessor is not run on the
4857 # input file.  (Note that this only needs to work for GNU compilers.)
4858 ac_save_ext=$ac_ext
4859 ac_ext=F
4860 echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
4861 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
4862 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
4863   echo $ECHO_N "(cached) $ECHO_C" >&6
4864 else
4865   cat >conftest.$ac_ext <<_ACEOF
4866       program main
4867 #ifndef __GNUC__
4868        choke me
4869 #endif
4870
4871       end
4872 _ACEOF
4873 rm -f conftest.$ac_objext
4874 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4875   (eval $ac_compile) 2>conftest.er1
4876   ac_status=$?
4877   grep -v '^ *+' conftest.er1 >conftest.err
4878   rm -f conftest.er1
4879   cat conftest.err >&5
4880   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4881   (exit $ac_status); } &&
4882          { ac_try='test -z "$ac_f77_werror_flag"                         || test ! -s conftest.err'
4883   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4884   (eval $ac_try) 2>&5
4885   ac_status=$?
4886   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4887   (exit $ac_status); }; } &&
4888          { ac_try='test -s conftest.$ac_objext'
4889   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4890   (eval $ac_try) 2>&5
4891   ac_status=$?
4892   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4893   (exit $ac_status); }; }; then
4894   ac_compiler_gnu=yes
4895 else
4896   echo "$as_me: failed program was:" >&5
4897 sed 's/^/| /' conftest.$ac_ext >&5
4898
4899 ac_compiler_gnu=no
4900 fi
4901 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4902 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
4903
4904 fi
4905 echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
4906 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
4907 ac_ext=$ac_save_ext
4908 ac_test_FFLAGS=${FFLAGS+set}
4909 ac_save_FFLAGS=$FFLAGS
4910 FFLAGS=
4911 echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
4912 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
4913 if test "${ac_cv_prog_f77_g+set}" = set; then
4914   echo $ECHO_N "(cached) $ECHO_C" >&6
4915 else
4916   FFLAGS=-g
4917 cat >conftest.$ac_ext <<_ACEOF
4918       program main
4919
4920       end
4921 _ACEOF
4922 rm -f conftest.$ac_objext
4923 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4924   (eval $ac_compile) 2>conftest.er1
4925   ac_status=$?
4926   grep -v '^ *+' conftest.er1 >conftest.err
4927   rm -f conftest.er1
4928   cat conftest.err >&5
4929   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4930   (exit $ac_status); } &&
4931          { ac_try='test -z "$ac_f77_werror_flag"                         || test ! -s conftest.err'
4932   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4933   (eval $ac_try) 2>&5
4934   ac_status=$?
4935   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4936   (exit $ac_status); }; } &&
4937          { ac_try='test -s conftest.$ac_objext'
4938   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4939   (eval $ac_try) 2>&5
4940   ac_status=$?
4941   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4942   (exit $ac_status); }; }; then
4943   ac_cv_prog_f77_g=yes
4944 else
4945   echo "$as_me: failed program was:" >&5
4946 sed 's/^/| /' conftest.$ac_ext >&5
4947
4948 ac_cv_prog_f77_g=no
4949 fi
4950 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4951
4952 fi
4953 echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
4954 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
4955 if test "$ac_test_FFLAGS" = set; then
4956   FFLAGS=$ac_save_FFLAGS
4957 elif test $ac_cv_prog_f77_g = yes; then
4958   if test "x$ac_cv_f77_compiler_gnu" = xyes; then
4959     FFLAGS="-g -O2"
4960   else
4961     FFLAGS="-g"
4962   fi
4963 else
4964   if test "x$ac_cv_f77_compiler_gnu" = xyes; then
4965     FFLAGS="-O2"
4966   else
4967     FFLAGS=
4968   fi
4969 fi
4970
4971 G77=`test $ac_compiler_gnu = yes && echo yes`
4972 ac_ext=c
4973 ac_cpp='$CPP $CPPFLAGS'
4974 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4975 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4976 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4977
4978
4979
4980 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
4981
4982 # find the maximum length of&