/[ascend]/trunk/base/autotools/configure
ViewVC logotype

Annotation of /trunk/base/autotools/configure

Parent Directory Parent Directory | Revision Log Revision Log


Revision 624 - (hide annotations) (download)
Thu May 18 15:39:38 2006 UTC (18 years, 9 months ago) by ben.allan
File size: 275866 byte(s)
Summary: most of the recent complaints about autotools build fixed,
but the buildbot might find a problem with the scons build/install/rpmbuild.


Details:

configure,Driver.c,utilities/config.h.in:
The choice of INSTALL_DATA as a configure variable name
has been repaired (renamed INSTALL_SHARE); INSTALL_DATA is the unix
canonical name for the program 'install' handling a data file.
Both autotools and scons builds have been updated to reflect this,
in the process correcting the definition from prefix/share to
prefix/share/ascend. 

autotools build:
Added --with-quiet option to make the install of already installed and
unchanged files less verbose.
Put in a workaround for the '' problem in tkConfig.sh seen by KC/JP.
Added --datadir support to autotools configure. If you configure
the autotools --datadir=PREFIX/share/ascend you get the same behavior
as the Pye packaging; by default you get the CMU packaging convention instead.
Added utilities/env.c to build.

compiler:
Turned off AWAL in anontype.c.
Noodling away at blackboxes continues...

1 aw0a 37 #! /bin/sh
2     # Guess values for system-dependent variables and create Makefiles.
3 ben.allan 545 # Generated by GNU Autoconf 2.57.
4 aw0a 37 #
5 ben.allan 545 # Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
6     # Free Software Foundation, Inc.
7 aw0a 37 # This configure script is free software; the Free Software Foundation
8     # gives unlimited permission to copy, distribute and modify it.
9 johnpye 133 ## --------------------- ##
10     ## M4sh Initialization. ##
11     ## --------------------- ##
12 aw0a 37
13 johnpye 133 # 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    
24     # Support unset when possible.
25 ben.allan 545 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
26 johnpye 133 as_unset=unset
27     else
28     as_unset=false
29     fi
30    
31    
32     # Work around bugs in pre-3.0 UWIN ksh.
33     $as_unset ENV MAIL MAILPATH
34     PS1='$ '
35     PS2='> '
36     PS4='+ '
37    
38     # NLS nuisances.
39     for as_var in \
40     LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
41     LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
42     LC_TELEPHONE LC_TIME
43     do
44 ben.allan 545 if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
45 johnpye 133 eval $as_var=C; export $as_var
46     else
47     $as_unset $as_var
48     fi
49     done
50    
51     # Required to use basename.
52     if expr a : '\(a\)' >/dev/null 2>&1; then
53     as_expr=expr
54     else
55     as_expr=false
56     fi
57    
58     if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
59     as_basename=basename
60     else
61     as_basename=false
62     fi
63    
64    
65     # Name of the executable.
66     as_me=`$as_basename "$0" ||
67     $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
68     X"$0" : 'X\(//\)$' \| \
69     X"$0" : 'X\(/\)$' \| \
70     . : '\(.\)' 2>/dev/null ||
71     echo X/"$0" |
72     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
73     /^X\/\(\/\/\)$/{ s//\1/; q; }
74     /^X\/\(\/\).*/{ s//\1/; q; }
75     s/.*/./; q'`
76    
77    
78     # PATH needs CR, and LINENO needs CR and PATH.
79     # Avoid depending upon Character Ranges.
80     as_cr_letters='abcdefghijklmnopqrstuvwxyz'
81     as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
82     as_cr_Letters=$as_cr_letters$as_cr_LETTERS
83     as_cr_digits='0123456789'
84     as_cr_alnum=$as_cr_Letters$as_cr_digits
85    
86     # The user is always right.
87     if test "${PATH_SEPARATOR+set}" != set; then
88     echo "#! /bin/sh" >conf$$.sh
89     echo "exit 0" >>conf$$.sh
90     chmod +x conf$$.sh
91     if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
92     PATH_SEPARATOR=';'
93     else
94     PATH_SEPARATOR=:
95     fi
96     rm -f conf$$.sh
97     fi
98    
99    
100     as_lineno_1=$LINENO
101     as_lineno_2=$LINENO
102     as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
103     test "x$as_lineno_1" != "x$as_lineno_2" &&
104     test "x$as_lineno_3" = "x$as_lineno_2" || {
105     # Find who we are. Look in the path if we contain no path at all
106     # relative or not.
107     case $0 in
108     *[\\/]* ) as_myself=$0 ;;
109     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
110     for as_dir in $PATH
111     do
112     IFS=$as_save_IFS
113     test -z "$as_dir" && as_dir=.
114     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
115     done
116    
117     ;;
118     esac
119     # We did not find ourselves, most probably we were run as `sh COMMAND'
120     # in which case we are not to be found in the path.
121     if test "x$as_myself" = x; then
122     as_myself=$0
123     fi
124     if test ! -f "$as_myself"; then
125     { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
126     { (exit 1); exit 1; }; }
127     fi
128     case $CONFIG_SHELL in
129     '')
130     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
131     for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
132     do
133     IFS=$as_save_IFS
134     test -z "$as_dir" && as_dir=.
135     for as_base in sh bash ksh sh5; do
136     case $as_dir in
137     /*)
138     if ("$as_dir/$as_base" -c '
139     as_lineno_1=$LINENO
140     as_lineno_2=$LINENO
141     as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
142     test "x$as_lineno_1" != "x$as_lineno_2" &&
143     test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
144     $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
145     $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
146     CONFIG_SHELL=$as_dir/$as_base
147     export CONFIG_SHELL
148     exec "$CONFIG_SHELL" "$0" ${1+"$@"}
149     fi;;
150     esac
151     done
152     done
153     ;;
154     esac
155    
156     # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
157     # uniformly replaced by the line number. The first 'sed' inserts a
158     # line-number line before each line; the second 'sed' does the real
159     # work. The second script uses 'N' to pair each line-number line
160     # with the numbered line, and appends trailing '-' during
161     # substitution so that $LINENO is not a special case at line end.
162     # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
163     # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
164     sed '=' <$as_myself |
165     sed '
166     N
167     s,$,-,
168     : loop
169     s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
170     t loop
171     s,-$,,
172     s,^['$as_cr_digits']*\n,,
173     ' >$as_me.lineno &&
174     chmod +x $as_me.lineno ||
175     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
176     { (exit 1); exit 1; }; }
177    
178     # Don't try to exec as it changes $[0], causing all sort of problems
179     # (the dirname of $[0] is not the place where we might find the
180     # original and so on. Autoconf is especially sensible to this).
181     . ./$as_me.lineno
182     # Exit status is that of the last command.
183     exit
184     }
185    
186    
187     case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
188     *c*,-n*) ECHO_N= ECHO_C='
189     ' ECHO_T=' ' ;;
190     *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
191     *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
192     esac
193    
194     if expr a : '\(a\)' >/dev/null 2>&1; then
195     as_expr=expr
196     else
197     as_expr=false
198     fi
199    
200     rm -f conf$$ conf$$.exe conf$$.file
201     echo >conf$$.file
202     if ln -s conf$$.file conf$$ 2>/dev/null; then
203     # We could just check for DJGPP; but this test a) works b) is more generic
204     # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
205     if test -f conf$$.exe; then
206     # Don't use ln at all; we don't have any links
207     as_ln_s='cp -p'
208     else
209     as_ln_s='ln -s'
210     fi
211     elif ln conf$$.file conf$$ 2>/dev/null; then
212     as_ln_s=ln
213     else
214     as_ln_s='cp -p'
215     fi
216     rm -f conf$$ conf$$.exe conf$$.file
217    
218     if mkdir -p . 2>/dev/null; then
219     as_mkdir_p=:
220     else
221     as_mkdir_p=false
222     fi
223    
224     as_executable_p="test -f"
225    
226     # Sed expression to map a string onto a valid CPP name.
227 ben.allan 545 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
228 johnpye 133
229     # Sed expression to map a string onto a valid variable name.
230 ben.allan 545 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
231 johnpye 133
232    
233     # IFS
234     # We need space, tab and new line, in precisely that order.
235     as_nl='
236     '
237     IFS=" $as_nl"
238    
239     # CDPATH.
240     $as_unset CDPATH
241    
242    
243     # Name of the host.
244     # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
245     # so uname gets run too.
246     ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
247    
248     exec 6>&1
249    
250     #
251     # Initializations.
252     #
253 aw0a 37 ac_default_prefix=/usr/local
254 johnpye 133 ac_config_libobj_dir=.
255     cross_compiling=no
256     subdirs=
257     MFLAGS=
258     MAKEFLAGS=
259     SHELL=${CONFIG_SHELL-/bin/sh}
260 aw0a 37
261 johnpye 133 # Maximum number of lines to put in a shell here document.
262     # This variable seems obsolete. It should probably be removed, and
263     # only ac_max_sed_lines should be used.
264     : ${ac_max_here_lines=38}
265 aw0a 37
266 johnpye 133 # Identity of this package.
267     PACKAGE_NAME=
268     PACKAGE_TARNAME=
269     PACKAGE_VERSION=
270     PACKAGE_STRING=
271     PACKAGE_BUGREPORT=
272 aw0a 37
273 johnpye 133 ac_unique_file="../generic/compiler/ascParse.y"
274     # Factoring default headers for most tests.
275     ac_includes_default="\
276     #include <stdio.h>
277     #if HAVE_SYS_TYPES_H
278     # include <sys/types.h>
279     #endif
280     #if HAVE_SYS_STAT_H
281     # include <sys/stat.h>
282     #endif
283     #if STDC_HEADERS
284     # include <stdlib.h>
285     # include <stddef.h>
286     #else
287     # if HAVE_STDLIB_H
288     # include <stdlib.h>
289     # endif
290     #endif
291     #if HAVE_STRING_H
292     # if !STDC_HEADERS && HAVE_MEMORY_H
293     # include <memory.h>
294     # endif
295     # include <string.h>
296     #endif
297     #if HAVE_STRINGS_H
298     # include <strings.h>
299     #endif
300     #if HAVE_INTTYPES_H
301     # include <inttypes.h>
302     #else
303     # if HAVE_STDINT_H
304     # include <stdint.h>
305     # endif
306     #endif
307     #if HAVE_UNISTD_H
308     # include <unistd.h>
309     #endif"
310    
311 ben.allan 624 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 RANLIB ac_ct_RANLIB LN_S SET_MAKE INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA build build_cpu build_vendor build_os host host_cpu host_vendor host_os CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT CPP DEBUG_LIBS EGREP YACC parser_src LEX LEXLIB LEX_OUTPUT_ROOT LIBOBJS TCLINCLUDE NOTCLCONFIG TCLCONFIG TCLLIB TCLDYNAMICLINKING TKINCLUDE TKLIB TKDYNAMICLINKING F77 BLASLIB LPAKLIB LSODLIB QUIET_INSTALL DEFAULT_ASCENDLIBRARY ASCEND_DEFAULTLIBRARY ascpwd fullpathsrcdir asc_include scanner_src typer_src MATH_LIBS X11_INCLUDES X11_LIBRARIES X11_RUN_PATH X11_EXTRA_LIBS DL_LIBS LD_FLAGS LD_SEARCH_FLAGS SHLIB_CFLAGS SHLIB_LD SHLIB_LD_LIBS SHLIB_SUFFIX ASC_LIB_SUFFIX TK_LIB TK_HDR TKTABLE_LIB ASC_TK_LIBRARY ASC_TCL_LIBRARY ASC_DISTDIR_REL_BIN INSTALL_SHARE ASC_ENV_TK_DEFAULT TK_LD_HACK HAVE_TKTABLE asc_subdirs F77LIBS make_blaslib make_lpaklib make_lsodlib HAVE_LSOD tkdir_root tkdir_topbuilddir models_dir_root models_topbuilddir help_dir_root help_topbuilddir LTLIBOBJS'
312 johnpye 133 ac_subst_files=''
313    
314 aw0a 37 # Initialize some variables set by options.
315 johnpye 133 ac_init_help=
316     ac_init_version=false
317 aw0a 37 # The variables have the same names as the options, with
318     # dashes changed to underlines.
319 johnpye 133 cache_file=/dev/null
320 aw0a 37 exec_prefix=NONE
321     no_create=
322     no_recursion=
323     prefix=NONE
324     program_prefix=NONE
325     program_suffix=NONE
326     program_transform_name=s,x,x,
327     silent=
328     site=
329     srcdir=
330     verbose=
331     x_includes=NONE
332     x_libraries=NONE
333 johnpye 133
334     # Installation directory options.
335     # These are left unexpanded so users can "make install exec_prefix=/foo"
336     # and all the variables that are supposed to be based on exec_prefix
337     # by default will actually change.
338     # Use braces instead of parens because sh, perl, etc. also accept them.
339 aw0a 37 bindir='${exec_prefix}/bin'
340     sbindir='${exec_prefix}/sbin'
341     libexecdir='${exec_prefix}/libexec'
342     datadir='${prefix}/share'
343     sysconfdir='${prefix}/etc'
344     sharedstatedir='${prefix}/com'
345     localstatedir='${prefix}/var'
346     libdir='${exec_prefix}/lib'
347     includedir='${prefix}/include'
348     oldincludedir='/usr/include'
349     infodir='${prefix}/info'
350     mandir='${prefix}/man'
351    
352     ac_prev=
353     for ac_option
354     do
355     # If the previous option needs an argument, assign it.
356     if test -n "$ac_prev"; then
357     eval "$ac_prev=\$ac_option"
358     ac_prev=
359     continue
360     fi
361    
362 johnpye 133 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
363 aw0a 37
364     # Accept the important Cygnus configure options, so we can diagnose typos.
365    
366 johnpye 133 case $ac_option in
367 aw0a 37
368     -bindir | --bindir | --bindi | --bind | --bin | --bi)
369     ac_prev=bindir ;;
370     -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
371 johnpye 133 bindir=$ac_optarg ;;
372 aw0a 37
373     -build | --build | --buil | --bui | --bu)
374 johnpye 133 ac_prev=build_alias ;;
375 aw0a 37 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
376 johnpye 133 build_alias=$ac_optarg ;;
377 aw0a 37
378     -cache-file | --cache-file | --cache-fil | --cache-fi \
379     | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
380     ac_prev=cache_file ;;
381     -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
382     | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
383 johnpye 133 cache_file=$ac_optarg ;;
384 aw0a 37
385 johnpye 133 --config-cache | -C)
386     cache_file=config.cache ;;
387    
388 aw0a 37 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
389     ac_prev=datadir ;;
390     -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
391     | --da=*)
392 johnpye 133 datadir=$ac_optarg ;;
393 aw0a 37
394     -disable-* | --disable-*)
395 johnpye 133 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
396 aw0a 37 # Reject names that are not valid shell variable names.
397 johnpye 133 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
398     { echo "$as_me: error: invalid feature name: $ac_feature" >&2
399     { (exit 1); exit 1; }; }
400     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
401     eval "enable_$ac_feature=no" ;;
402 aw0a 37
403     -enable-* | --enable-*)
404 johnpye 133 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
405 aw0a 37 # Reject names that are not valid shell variable names.
406 johnpye 133 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
407     { echo "$as_me: error: invalid feature name: $ac_feature" >&2
408     { (exit 1); exit 1; }; }
409     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
410     case $ac_option in
411     *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
412 aw0a 37 *) ac_optarg=yes ;;
413     esac
414 johnpye 133 eval "enable_$ac_feature='$ac_optarg'" ;;
415 aw0a 37
416     -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
417     | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
418     | --exec | --exe | --ex)
419     ac_prev=exec_prefix ;;
420     -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
421     | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
422     | --exec=* | --exe=* | --ex=*)
423 johnpye 133 exec_prefix=$ac_optarg ;;
424 aw0a 37
425     -gas | --gas | --ga | --g)
426     # Obsolete; use --with-gas.
427     with_gas=yes ;;
428    
429 johnpye 133 -help | --help | --hel | --he | -h)
430     ac_init_help=long ;;
431     -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
432     ac_init_help=recursive ;;
433     -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
434     ac_init_help=short ;;
435 aw0a 37
436     -host | --host | --hos | --ho)
437 johnpye 133 ac_prev=host_alias ;;
438 aw0a 37 -host=* | --host=* | --hos=* | --ho=*)
439 johnpye 133 host_alias=$ac_optarg ;;
440 aw0a 37
441     -includedir | --includedir | --includedi | --included | --include \
442     | --includ | --inclu | --incl | --inc)
443     ac_prev=includedir ;;
444     -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
445     | --includ=* | --inclu=* | --incl=* | --inc=*)
446 johnpye 133 includedir=$ac_optarg ;;
447 aw0a 37
448     -infodir | --infodir | --infodi | --infod | --info | --inf)
449     ac_prev=infodir ;;
450     -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
451 johnpye 133 infodir=$ac_optarg ;;
452 aw0a 37
453     -libdir | --libdir | --libdi | --libd)
454     ac_prev=libdir ;;
455     -libdir=* | --libdir=* | --libdi=* | --libd=*)
456 johnpye 133 libdir=$ac_optarg ;;
457 aw0a 37
458     -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
459     | --libexe | --libex | --libe)
460     ac_prev=libexecdir ;;
461     -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
462     | --libexe=* | --libex=* | --libe=*)
463 johnpye 133 libexecdir=$ac_optarg ;;
464 aw0a 37
465     -localstatedir | --localstatedir | --localstatedi | --localstated \
466     | --localstate | --localstat | --localsta | --localst \
467     | --locals | --local | --loca | --loc | --lo)
468     ac_prev=localstatedir ;;
469     -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
470     | --localstate=* | --localstat=* | --localsta=* | --localst=* \
471     | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
472 johnpye 133 localstatedir=$ac_optarg ;;
473 aw0a 37
474     -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
475     ac_prev=mandir ;;
476     -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
477 johnpye 133 mandir=$ac_optarg ;;
478 aw0a 37
479     -nfp | --nfp | --nf)
480     # Obsolete; use --without-fp.
481     with_fp=no ;;
482    
483     -no-create | --no-create | --no-creat | --no-crea | --no-cre \
484 johnpye 133 | --no-cr | --no-c | -n)
485 aw0a 37 no_create=yes ;;
486    
487     -no-recursion | --no-recursion | --no-recursio | --no-recursi \
488     | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
489     no_recursion=yes ;;
490    
491     -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
492     | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
493     | --oldin | --oldi | --old | --ol | --o)
494     ac_prev=oldincludedir ;;
495     -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
496     | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
497     | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
498 johnpye 133 oldincludedir=$ac_optarg ;;
499 aw0a 37
500     -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
501     ac_prev=prefix ;;
502     -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
503 johnpye 133 prefix=$ac_optarg ;;
504 aw0a 37
505     -program-prefix | --program-prefix | --program-prefi | --program-pref \
506     | --program-pre | --program-pr | --program-p)
507     ac_prev=program_prefix ;;
508     -program-prefix=* | --program-prefix=* | --program-prefi=* \
509     | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
510 johnpye 133 program_prefix=$ac_optarg ;;
511 aw0a 37
512     -program-suffix | --program-suffix | --program-suffi | --program-suff \
513     | --program-suf | --program-su | --program-s)
514     ac_prev=program_suffix ;;
515     -program-suffix=* | --program-suffix=* | --program-suffi=* \
516     | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
517 johnpye 133 program_suffix=$ac_optarg ;;
518 aw0a 37
519     -program-transform-name | --program-transform-name \
520     | --program-transform-nam | --program-transform-na \
521     | --program-transform-n | --program-transform- \
522     | --program-transform | --program-transfor \
523     | --program-transfo | --program-transf \
524     | --program-trans | --program-tran \
525     | --progr-tra | --program-tr | --program-t)
526     ac_prev=program_transform_name ;;
527     -program-transform-name=* | --program-transform-name=* \
528     | --program-transform-nam=* | --program-transform-na=* \
529     | --program-transform-n=* | --program-transform-=* \
530     | --program-transform=* | --program-transfor=* \
531     | --program-transfo=* | --program-transf=* \
532     | --program-trans=* | --program-tran=* \
533     | --progr-tra=* | --program-tr=* | --program-t=*)
534 johnpye 133 program_transform_name=$ac_optarg ;;
535 aw0a 37
536     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
537     | -silent | --silent | --silen | --sile | --sil)
538     silent=yes ;;
539    
540     -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
541     ac_prev=sbindir ;;
542     -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
543     | --sbi=* | --sb=*)
544 johnpye 133 sbindir=$ac_optarg ;;
545 aw0a 37
546     -sharedstatedir | --sharedstatedir | --sharedstatedi \
547     | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
548     | --sharedst | --shareds | --shared | --share | --shar \
549     | --sha | --sh)
550     ac_prev=sharedstatedir ;;
551     -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
552     | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
553     | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
554     | --sha=* | --sh=*)
555 johnpye 133 sharedstatedir=$ac_optarg ;;
556 aw0a 37
557     -site | --site | --sit)
558     ac_prev=site ;;
559     -site=* | --site=* | --sit=*)
560 johnpye 133 site=$ac_optarg ;;
561 aw0a 37
562     -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
563     ac_prev=srcdir ;;
564     -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
565 johnpye 133 srcdir=$ac_optarg ;;
566 aw0a 37
567     -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
568     | --syscon | --sysco | --sysc | --sys | --sy)
569     ac_prev=sysconfdir ;;
570     -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
571     | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
572 johnpye 133 sysconfdir=$ac_optarg ;;
573 aw0a 37
574     -target | --target | --targe | --targ | --tar | --ta | --t)
575 johnpye 133 ac_prev=target_alias ;;
576 aw0a 37 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
577 johnpye 133 target_alias=$ac_optarg ;;
578 aw0a 37
579     -v | -verbose | --verbose | --verbos | --verbo | --verb)
580     verbose=yes ;;
581    
582 johnpye 133 -version | --version | --versio | --versi | --vers | -V)
583     ac_init_version=: ;;
584 aw0a 37
585     -with-* | --with-*)
586 johnpye 133 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
587 aw0a 37 # Reject names that are not valid shell variable names.
588 johnpye 133 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
589     { echo "$as_me: error: invalid package name: $ac_package" >&2
590     { (exit 1); exit 1; }; }
591 aw0a 37 ac_package=`echo $ac_package| sed 's/-/_/g'`
592 johnpye 133 case $ac_option in
593     *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
594 aw0a 37 *) ac_optarg=yes ;;
595     esac
596 johnpye 133 eval "with_$ac_package='$ac_optarg'" ;;
597 aw0a 37
598     -without-* | --without-*)
599 johnpye 133 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
600 aw0a 37 # Reject names that are not valid shell variable names.
601 johnpye 133 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
602     { echo "$as_me: error: invalid package name: $ac_package" >&2
603     { (exit 1); exit 1; }; }
604     ac_package=`echo $ac_package | sed 's/-/_/g'`
605     eval "with_$ac_package=no" ;;
606 aw0a 37
607     --x)
608     # Obsolete; use --with-x.
609     with_x=yes ;;
610    
611     -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
612     | --x-incl | --x-inc | --x-in | --x-i)
613     ac_prev=x_includes ;;
614     -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
615     | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
616 johnpye 133 x_includes=$ac_optarg ;;
617 aw0a 37
618     -x-libraries | --x-libraries | --x-librarie | --x-librari \
619     | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
620     ac_prev=x_libraries ;;
621     -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
622     | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
623 johnpye 133 x_libraries=$ac_optarg ;;
624 aw0a 37
625 johnpye 133 -*) { echo "$as_me: error: unrecognized option: $ac_option
626     Try \`$0 --help' for more information." >&2
627     { (exit 1); exit 1; }; }
628 aw0a 37 ;;
629    
630 johnpye 133 *=*)
631     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
632     # Reject names that are not valid shell variable names.
633     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
634     { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
635     { (exit 1); exit 1; }; }
636     ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
637     eval "$ac_envvar='$ac_optarg'"
638     export $ac_envvar ;;
639    
640 aw0a 37 *)
641 johnpye 133 # FIXME: should be removed in autoconf 3.0.
642     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
643     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
644     echo "$as_me: WARNING: invalid host type: $ac_option" >&2
645     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
646 aw0a 37 ;;
647    
648     esac
649     done
650    
651     if test -n "$ac_prev"; then
652 johnpye 133 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
653     { echo "$as_me: error: missing argument to $ac_option" >&2
654     { (exit 1); exit 1; }; }
655 aw0a 37 fi
656    
657 johnpye 133 # Be sure to have absolute paths.
658     for ac_var in exec_prefix prefix
659     do
660     eval ac_val=$`echo $ac_var`
661     case $ac_val in
662     [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
663     *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
664     { (exit 1); exit 1; }; };;
665     esac
666     done
667 aw0a 37
668 johnpye 133 # Be sure to have absolute paths.
669     for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
670 ben.allan 545 localstatedir libdir includedir oldincludedir infodir mandir
671 aw0a 37 do
672 johnpye 133 eval ac_val=$`echo $ac_var`
673     case $ac_val in
674     [\\/$]* | ?:[\\/]* ) ;;
675     *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
676     { (exit 1); exit 1; }; };;
677 aw0a 37 esac
678     done
679    
680 johnpye 133 # There might be people who depend on the old broken behavior: `$host'
681     # used to hold the argument of --host etc.
682     # FIXME: To remove some day.
683     build=$build_alias
684     host=$host_alias
685     target=$target_alias
686 aw0a 37
687 johnpye 133 # FIXME: To remove some day.
688     if test "x$host_alias" != x; then
689     if test "x$build_alias" = x; then
690     cross_compiling=maybe
691     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
692     If a cross compiler is detected then cross compile mode will be used." >&2
693     elif test "x$build_alias" != "x$host_alias"; then
694     cross_compiling=yes
695     fi
696     fi
697 aw0a 37
698 johnpye 133 ac_tool_prefix=
699     test -n "$host_alias" && ac_tool_prefix=$host_alias-
700 aw0a 37
701 johnpye 133 test "$silent" = yes && exec 6>/dev/null
702    
703    
704 aw0a 37 # Find the source files, if location was not specified.
705     if test -z "$srcdir"; then
706     ac_srcdir_defaulted=yes
707     # Try the directory containing this script, then its parent.
708 johnpye 133 ac_confdir=`(dirname "$0") 2>/dev/null ||
709     $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
710 ben.allan 545 X"$0" : 'X\(//\)[^/]' \| \
711     X"$0" : 'X\(//\)$' \| \
712     X"$0" : 'X\(/\)' \| \
713     . : '\(.\)' 2>/dev/null ||
714 johnpye 133 echo X"$0" |
715     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
716     /^X\(\/\/\)[^/].*/{ s//\1/; q; }
717     /^X\(\/\/\)$/{ s//\1/; q; }
718     /^X\(\/\).*/{ s//\1/; q; }
719     s/.*/./; q'`
720 aw0a 37 srcdir=$ac_confdir
721     if test ! -r $srcdir/$ac_unique_file; then
722     srcdir=..
723     fi
724     else
725     ac_srcdir_defaulted=no
726     fi
727     if test ! -r $srcdir/$ac_unique_file; then
728     if test "$ac_srcdir_defaulted" = yes; then
729 johnpye 133 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
730     { (exit 1); exit 1; }; }
731 aw0a 37 else
732 johnpye 133 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
733     { (exit 1); exit 1; }; }
734 aw0a 37 fi
735     fi
736 johnpye 133 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
737     { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
738     { (exit 1); exit 1; }; }
739     srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
740     ac_env_build_alias_set=${build_alias+set}
741     ac_env_build_alias_value=$build_alias
742     ac_cv_env_build_alias_set=${build_alias+set}
743     ac_cv_env_build_alias_value=$build_alias
744     ac_env_host_alias_set=${host_alias+set}
745     ac_env_host_alias_value=$host_alias
746     ac_cv_env_host_alias_set=${host_alias+set}
747     ac_cv_env_host_alias_value=$host_alias
748     ac_env_target_alias_set=${target_alias+set}
749     ac_env_target_alias_value=$target_alias
750     ac_cv_env_target_alias_set=${target_alias+set}
751     ac_cv_env_target_alias_value=$target_alias
752     ac_env_CC_set=${CC+set}
753     ac_env_CC_value=$CC
754     ac_cv_env_CC_set=${CC+set}
755     ac_cv_env_CC_value=$CC
756     ac_env_CFLAGS_set=${CFLAGS+set}
757     ac_env_CFLAGS_value=$CFLAGS
758     ac_cv_env_CFLAGS_set=${CFLAGS+set}
759     ac_cv_env_CFLAGS_value=$CFLAGS
760     ac_env_LDFLAGS_set=${LDFLAGS+set}
761     ac_env_LDFLAGS_value=$LDFLAGS
762     ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
763     ac_cv_env_LDFLAGS_value=$LDFLAGS
764     ac_env_CPPFLAGS_set=${CPPFLAGS+set}
765     ac_env_CPPFLAGS_value=$CPPFLAGS
766     ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
767     ac_cv_env_CPPFLAGS_value=$CPPFLAGS
768     ac_env_CPP_set=${CPP+set}
769     ac_env_CPP_value=$CPP
770     ac_cv_env_CPP_set=${CPP+set}
771     ac_cv_env_CPP_value=$CPP
772 aw0a 37
773 johnpye 133 #
774     # Report the --help message.
775     #
776     if test "$ac_init_help" = "long"; then
777     # Omit some internal or obsolete options to make the list less imposing.
778     # This message is too long to be a string in the A/UX 3.1 sh.
779     cat <<_ACEOF
780     \`configure' configures this package to adapt to many kinds of systems.
781    
782     Usage: $0 [OPTION]... [VAR=VALUE]...
783    
784     To assign environment variables (e.g., CC, CFLAGS...), specify them as
785     VAR=VALUE. See below for descriptions of some of the useful variables.
786    
787     Defaults for the options are specified in brackets.
788    
789     Configuration:
790     -h, --help display this help and exit
791     --help=short display options specific to this package
792     --help=recursive display the short help of all the included packages
793     -V, --version display version information and exit
794     -q, --quiet, --silent do not print \`checking...' messages
795     --cache-file=FILE cache test results in FILE [disabled]
796     -C, --config-cache alias for \`--cache-file=config.cache'
797     -n, --no-create do not create output files
798     --srcdir=DIR find the sources in DIR [configure dir or \`..']
799    
800     _ACEOF
801    
802     cat <<_ACEOF
803     Installation directories:
804     --prefix=PREFIX install architecture-independent files in PREFIX
805 ben.allan 545 [$ac_default_prefix]
806 johnpye 133 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
807 ben.allan 545 [PREFIX]
808 johnpye 133
809     By default, \`make install' will install all the files in
810     \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
811     an installation prefix other than \`$ac_default_prefix' using \`--prefix',
812     for instance \`--prefix=\$HOME'.
813    
814     For better control, use the options below.
815    
816     Fine tuning of the installation directories:
817     --bindir=DIR user executables [EPREFIX/bin]
818     --sbindir=DIR system admin executables [EPREFIX/sbin]
819     --libexecdir=DIR program executables [EPREFIX/libexec]
820     --datadir=DIR read-only architecture-independent data [PREFIX/share]
821     --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
822     --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
823     --localstatedir=DIR modifiable single-machine data [PREFIX/var]
824     --libdir=DIR object code libraries [EPREFIX/lib]
825     --includedir=DIR C header files [PREFIX/include]
826     --oldincludedir=DIR C header files for non-gcc [/usr/include]
827     --infodir=DIR info documentation [PREFIX/info]
828     --mandir=DIR man documentation [PREFIX/man]
829     _ACEOF
830    
831     cat <<\_ACEOF
832    
833     X features:
834     --x-includes=DIR X include files are in DIR
835     --x-libraries=DIR X library files are in DIR
836    
837     System types:
838     --build=BUILD configure for building on BUILD [guessed]
839     --host=HOST cross-compile to build programs to run on HOST [BUILD]
840     _ACEOF
841     fi
842    
843     if test -n "$ac_init_help"; then
844    
845     cat <<\_ACEOF
846    
847     Optional Features:
848     --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
849     --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
850     --enable-optimization optimize the C code while building ascend
851 johnpye 368 --enable-dynamic-packages
852     Enable dynamic linking of ASCEND external packages
853     (default is YES for Linux, Cygwin and MinGW; NO for
854     any other platform)
855 johnpye 133
856 johnpye 371 --enable-relation-debugging
857     Enable debug output for relation compilation
858     (default is NO)
859 johnpye 368
860 johnpye 371 --enable-compiler-timing
861     Enable timing of the compiler (default is NO)
862    
863    
864 johnpye 133 Optional Packages:
865     --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
866     --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
867 ben.allan 472 --without-yacc do not generate parser from yacc file
868 johnpye 133 --with-x use the X Window System
869 johnpye 332 --without-tcl Disable Tcl
870 ben.allan 411 --with-tclconfig=path Set directory location of tclConfig.sh
871 johnpye 332 --with-tcl=path Set location of Tcl package
872     --with-tclincl=path Set location of Tcl include directory
873     --with-tcllib=path Set location of Tcl library directory
874 ben.allan 411 --without-tk Disable Tk
875     --with-tkconfig=path Set directory location of tkConfig.sh
876     --with-tk=path Set location of Tk package
877     --with-tkincl=path Set location of Tk include directory
878     --with-tklib=path Set location of Tk library directory
879 johnpye 133 Fortran compiler and libraries:
880     --with-fortran=F77,F77LIBS
881     The location of your Fortran compiler and its
882     library files. For example, under SunOS:
883     --with-fortran='f77,-L/usr/lang/lib -lF77 -lM77'
884     To specify only the compiler or libraries, leave off
885     whatever is not needed:
886     --with-fortran=',-L/usr/lang/lib -lF77 -lM77'
887     Use '--without-fortran' to not link against
888     any Fortran libraries
889     --with-blas=BLASLIB The full path to the blas library.
890     Use '--with-blas=build' to build the blas library
891     from the sources that come with the distribution.
892     --with-linpack=LPAKLIB The full path to the linpack library.
893     Use '--with-linpack=build' to build the library
894     from the sources that come with the distribution.
895     --with-lsod=LSODLIB The full path to the lsod library.
896     Use '--with-lsod=build' to build the lsod library
897     from the sources that come with the distribution.
898     Generation of Makefiles:
899     --without-tkdir do not generate Makefiles in the TK subdir
900     --without-models do not generate Makefiles in the models subdir
901 ben.allan 624 --with-quiet Much less whining if reinstalling the tk,models subdirs
902 johnpye 133
903     Some influential environment variables:
904     CC C compiler command
905     CFLAGS C compiler flags
906     LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
907     nonstandard directory <lib dir>
908     CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
909     headers in a nonstandard directory <include dir>
910     CPP C preprocessor
911    
912     Use these variables to override the choices made by `configure' or to help
913     it to find libraries and programs with nonstandard names/locations.
914    
915     _ACEOF
916     fi
917    
918     if test "$ac_init_help" = "recursive"; then
919     # If there are subdirs, report their specific --help.
920     ac_popdir=`pwd`
921     for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
922     test -d $ac_dir || continue
923     ac_builddir=.
924    
925     if test "$ac_dir" != .; then
926     ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
927     # A "../" for each directory in $ac_dir_suffix.
928     ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
929     else
930     ac_dir_suffix= ac_top_builddir=
931     fi
932    
933     case $srcdir in
934     .) # No --srcdir option. We are building in place.
935     ac_srcdir=.
936     if test -z "$ac_top_builddir"; then
937     ac_top_srcdir=.
938     else
939     ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
940     fi ;;
941     [\\/]* | ?:[\\/]* ) # Absolute path.
942     ac_srcdir=$srcdir$ac_dir_suffix;
943     ac_top_srcdir=$srcdir ;;
944     *) # Relative path.
945     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
946     ac_top_srcdir=$ac_top_builddir$srcdir ;;
947     esac
948 ben.allan 545 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
949     # absolute.
950     ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
951     ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
952     ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
953     ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
954 johnpye 133
955     cd $ac_dir
956     # Check for guested configure; otherwise get Cygnus style configure.
957     if test -f $ac_srcdir/configure.gnu; then
958     echo
959     $SHELL $ac_srcdir/configure.gnu --help=recursive
960     elif test -f $ac_srcdir/configure; then
961     echo
962     $SHELL $ac_srcdir/configure --help=recursive
963     elif test -f $ac_srcdir/configure.ac ||
964 ben.allan 545 test -f $ac_srcdir/configure.in; then
965 johnpye 133 echo
966     $ac_configure --help
967     else
968     echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
969     fi
970     cd $ac_popdir
971     done
972     fi
973    
974     test -n "$ac_init_help" && exit 0
975     if $ac_init_version; then
976     cat <<\_ACEOF
977    
978 ben.allan 545 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
979     Free Software Foundation, Inc.
980 johnpye 133 This configure script is free software; the Free Software Foundation
981     gives unlimited permission to copy, distribute and modify it.
982     _ACEOF
983     exit 0
984     fi
985     exec 5>config.log
986     cat >&5 <<_ACEOF
987     This file contains any messages produced by compilers while
988     running configure, to aid debugging if configure makes a mistake.
989    
990     It was created by $as_me, which was
991 ben.allan 545 generated by GNU Autoconf 2.57. Invocation command line was
992 johnpye 133
993     $ $0 $@
994    
995     _ACEOF
996     {
997     cat <<_ASUNAME
998     ## --------- ##
999     ## Platform. ##
1000     ## --------- ##
1001    
1002     hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1003     uname -m = `(uname -m) 2>/dev/null || echo unknown`
1004     uname -r = `(uname -r) 2>/dev/null || echo unknown`
1005     uname -s = `(uname -s) 2>/dev/null || echo unknown`
1006     uname -v = `(uname -v) 2>/dev/null || echo unknown`
1007    
1008     /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1009     /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1010    
1011     /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1012     /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1013     /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1014     hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1015     /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1016     /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1017     /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1018    
1019     _ASUNAME
1020    
1021     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1022     for as_dir in $PATH
1023     do
1024     IFS=$as_save_IFS
1025     test -z "$as_dir" && as_dir=.
1026     echo "PATH: $as_dir"
1027     done
1028    
1029     } >&5
1030    
1031     cat >&5 <<_ACEOF
1032    
1033    
1034     ## ----------- ##
1035     ## Core tests. ##
1036     ## ----------- ##
1037    
1038     _ACEOF
1039    
1040    
1041     # Keep a trace of the command line.
1042     # Strip out --no-create and --no-recursion so they do not pile up.
1043     # Strip out --silent because we don't want to record it for future runs.
1044     # Also quote any args containing shell meta-characters.
1045     # Make two passes to allow for proper duplicate-argument suppression.
1046     ac_configure_args=
1047     ac_configure_args0=
1048     ac_configure_args1=
1049     ac_sep=
1050     ac_must_keep_next=false
1051     for ac_pass in 1 2
1052     do
1053     for ac_arg
1054     do
1055     case $ac_arg in
1056     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1057     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1058     | -silent | --silent | --silen | --sile | --sil)
1059     continue ;;
1060     *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1061     ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1062     esac
1063     case $ac_pass in
1064     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1065     2)
1066     ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1067     if test $ac_must_keep_next = true; then
1068 ben.allan 545 ac_must_keep_next=false # Got value, back to normal.
1069 johnpye 133 else
1070 ben.allan 545 case $ac_arg in
1071     *=* | --config-cache | -C | -disable-* | --disable-* \
1072     | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1073     | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1074     | -with-* | --with-* | -without-* | --without-* | --x)
1075     case "$ac_configure_args0 " in
1076     "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1077     esac
1078     ;;
1079     -* ) ac_must_keep_next=true ;;
1080     esac
1081 johnpye 133 fi
1082     ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1083     # Get rid of the leading space.
1084     ac_sep=" "
1085     ;;
1086     esac
1087     done
1088     done
1089     $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1090     $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1091    
1092     # When interrupted or exit'd, cleanup temporary files, and complete
1093     # config.log. We remove comments because anyway the quotes in there
1094     # would cause problems or look ugly.
1095     # WARNING: Be sure not to use single quotes in there, as some shells,
1096     # such as our DU 5.0 friend, will then `close' the trap.
1097     trap 'exit_status=$?
1098     # Save into config.log some information that might help in debugging.
1099     {
1100     echo
1101    
1102     cat <<\_ASBOX
1103     ## ---------------- ##
1104     ## Cache variables. ##
1105     ## ---------------- ##
1106     _ASBOX
1107     echo
1108     # The following way of writing the cache mishandles newlines in values,
1109     {
1110     (set) 2>&1 |
1111     case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1112     *ac_space=\ *)
1113     sed -n \
1114 ben.allan 545 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1115     s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1116 johnpye 133 ;;
1117     *)
1118     sed -n \
1119 ben.allan 545 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1120 johnpye 133 ;;
1121     esac;
1122     }
1123     echo
1124    
1125     cat <<\_ASBOX
1126     ## ----------------- ##
1127     ## Output variables. ##
1128     ## ----------------- ##
1129     _ASBOX
1130     echo
1131     for ac_var in $ac_subst_vars
1132     do
1133     eval ac_val=$`echo $ac_var`
1134     echo "$ac_var='"'"'$ac_val'"'"'"
1135     done | sort
1136     echo
1137    
1138     if test -n "$ac_subst_files"; then
1139     cat <<\_ASBOX
1140     ## ------------- ##
1141     ## Output files. ##
1142     ## ------------- ##
1143     _ASBOX
1144     echo
1145     for ac_var in $ac_subst_files
1146     do
1147     eval ac_val=$`echo $ac_var`
1148 ben.allan 545 echo "$ac_var='"'"'$ac_val'"'"'"
1149 johnpye 133 done | sort
1150     echo
1151     fi
1152    
1153     if test -s confdefs.h; then
1154     cat <<\_ASBOX
1155     ## ----------- ##
1156     ## confdefs.h. ##
1157     ## ----------- ##
1158     _ASBOX
1159     echo
1160     sed "/^$/d" confdefs.h | sort
1161     echo
1162     fi
1163     test "$ac_signal" != 0 &&
1164     echo "$as_me: caught signal $ac_signal"
1165     echo "$as_me: exit $exit_status"
1166     } >&5
1167 ben.allan 545 rm -f core core.* *.core &&
1168 johnpye 133 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1169     exit $exit_status
1170     ' 0
1171     for ac_signal in 1 2 13 15; do
1172     trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1173     done
1174     ac_signal=0
1175    
1176     # confdefs.h avoids OS command line length limits that DEFS can exceed.
1177     rm -rf conftest* confdefs.h
1178     # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1179     echo >confdefs.h
1180    
1181     # Predefined preprocessor variables.
1182    
1183     cat >>confdefs.h <<_ACEOF
1184     #define PACKAGE_NAME "$PACKAGE_NAME"
1185     _ACEOF
1186    
1187    
1188     cat >>confdefs.h <<_ACEOF
1189     #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1190     _ACEOF
1191    
1192    
1193     cat >>confdefs.h <<_ACEOF
1194     #define PACKAGE_VERSION "$PACKAGE_VERSION"
1195     _ACEOF
1196    
1197    
1198     cat >>confdefs.h <<_ACEOF
1199     #define PACKAGE_STRING "$PACKAGE_STRING"
1200     _ACEOF
1201    
1202    
1203     cat >>confdefs.h <<_ACEOF
1204     #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1205     _ACEOF
1206    
1207    
1208     # Let the site file select an alternate cache file if it wants to.
1209 aw0a 37 # Prefer explicitly selected file to automatically selected ones.
1210     if test -z "$CONFIG_SITE"; then
1211     if test "x$prefix" != xNONE; then
1212     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1213     else
1214     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1215     fi
1216     fi
1217     for ac_site_file in $CONFIG_SITE; do
1218     if test -r "$ac_site_file"; then
1219 johnpye 133 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1220     echo "$as_me: loading site script $ac_site_file" >&6;}
1221     sed 's/^/| /' "$ac_site_file" >&5
1222 aw0a 37 . "$ac_site_file"
1223     fi
1224     done
1225    
1226    
1227 johnpye 133 # Check that the precious variables saved in the cache have kept the same
1228     # value.
1229     ac_cache_corrupted=false
1230     for ac_var in `(set) 2>&1 |
1231 ben.allan 545 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1232 johnpye 133 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1233     eval ac_new_set=\$ac_env_${ac_var}_set
1234     eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1235     eval ac_new_val="\$ac_env_${ac_var}_value"
1236     case $ac_old_set,$ac_new_set in
1237     set,)
1238     { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1239     echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1240     ac_cache_corrupted=: ;;
1241     ,set)
1242     { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1243     echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1244     ac_cache_corrupted=: ;;
1245     ,);;
1246     *)
1247     if test "x$ac_old_val" != "x$ac_new_val"; then
1248 ben.allan 545 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1249 johnpye 133 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1250 ben.allan 545 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1251 johnpye 133 echo "$as_me: former value: $ac_old_val" >&2;}
1252 ben.allan 545 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1253 johnpye 133 echo "$as_me: current value: $ac_new_val" >&2;}
1254 ben.allan 545 ac_cache_corrupted=:
1255 johnpye 133 fi;;
1256     esac
1257     # Pass precious variables to config.status.
1258     if test "$ac_new_set" = set; then
1259     case $ac_new_val in
1260     *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1261     ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1262     *) ac_arg=$ac_var=$ac_new_val ;;
1263     esac
1264     case " $ac_configure_args " in
1265     *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1266     *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1267     esac
1268     fi
1269     done
1270     if $ac_cache_corrupted; then
1271     { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1272     echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1273     { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1274     echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1275     { (exit 1); exit 1; }; }
1276     fi
1277    
1278 aw0a 37 ac_ext=c
1279     ac_cpp='$CPP $CPPFLAGS'
1280 johnpye 133 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1281     ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1282     ac_compiler_gnu=$ac_cv_c_compiler_gnu
1283 aw0a 37
1284    
1285    
1286    
1287    
1288 johnpye 133
1289    
1290    
1291    
1292    
1293    
1294    
1295    
1296    
1297    
1298    
1299    
1300    
1301    
1302    
1303    
1304 aw0a 37 #--------------------------------------------------------------------
1305     # CVS Most Recent Revision Data
1306     # Put this data after AC_INIT since we want this information
1307     # to also appear in configure and autoconf, when creating
1308     # configure, strips all comments that appear in configure.in
1309     # before AC_INIT
1310     # $Revision: 1.38 $
1311     # $Date: 2003/11/23 19:36:39 $
1312     # $Author: ballan $
1313     # $Source: /afs/cs.cmu.edu/project/ascend/Repository/configure.in,v $
1314     #--------------------------------------------------------------------
1315    
1316    
1317     #--------------------------------------------------------------------
1318     # Where configure should look for files it needs.
1319     #--------------------------------------------------------------------
1320     ac_aux_dir=
1321     for ac_dir in config $srcdir/config; do
1322     if test -f $ac_dir/install-sh; then
1323     ac_aux_dir=$ac_dir
1324     ac_install_sh="$ac_aux_dir/install-sh -c"
1325     break
1326     elif test -f $ac_dir/install.sh; then
1327     ac_aux_dir=$ac_dir
1328     ac_install_sh="$ac_aux_dir/install.sh -c"
1329     break
1330 johnpye 133 elif test -f $ac_dir/shtool; then
1331     ac_aux_dir=$ac_dir
1332     ac_install_sh="$ac_aux_dir/shtool install -c"
1333     break
1334 aw0a 37 fi
1335     done
1336     if test -z "$ac_aux_dir"; then
1337 johnpye 133 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in config $srcdir/config" >&5
1338     echo "$as_me: error: cannot find install-sh or install.sh in config $srcdir/config" >&2;}
1339     { (exit 1); exit 1; }; }
1340 aw0a 37 fi
1341 johnpye 133 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1342     ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1343     ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1344 aw0a 37
1345    
1346     #--------------------------------------------------------------------
1347     # Set the output variables prefix and exec_prefix that
1348     # determine where things will be installed.
1349     #--------------------------------------------------------------------
1350     if test "${prefix}" = "NONE"; then
1351     prefix=/usr/local
1352     fi
1353     if test "${exec_prefix}" = "NONE"; then
1354     exec_prefix=$prefix
1355     fi
1356    
1357    
1358     #--------------------------------------------------------------------
1359     # For the Fortran support libraries and the TCL/TK libraries
1360     # and header files, we unfortunately need the full path to
1361     # these files. The problem with having the full path is that
1362     # if the user moves the source tree, things will break unless
1363     # the user re-runs configure.
1364     #--------------------------------------------------------------------
1365    
1366     #--------------------------------------------------------------------
1367     ##AWW
1368     ##AWW We put the .o files when compiling into a tree structure
1369     ##AWW relative to the directory in which we currently reside,
1370     ##AWW while the .c and .h files are in a similar tree structure
1371     ##AWW relative to the configure instruction we invoke. This
1372     ##AWW allows one to have separate .o files in their own tree when
1373     ##AWW compiling for different operating systems.
1374     ##AWW
1375     ##AWW Example 1 (same directories)
1376     ##AWW Current directory one is in: /home/me/trunk/base/unixAC213
1377     ##AWW Directory containing configure: /home/me/trunk/base/unixAC213
1378     ##AWW Command to invoke configure: ./configure
1379     ##AWW $ascpwd will be: /home/me/trunk/base/unixAC213
1380     ##AWW $srcdir will be: .
1381     ##AWW
1382     ##AWW Example 2 (different directories, abs path for command)
1383     ##AWW Current directory one is in: /home/me/trunk/base/newTree
1384     ##AWW Directory containing configure: /home/me/trunk/base/unixAC213
1385     ##AWW Command to invoke configure: /home/me/trunk/base/unixAC213/configure
1386     ##AWW $ascpwd will be: /home/me/trunk/base/newTree
1387     ##AWW $srcdir will be: /home/me/trunk/base/unixAC213
1388     ##AWW
1389     ##AWW Example 3 (different directories, rel path for command)
1390     ##AWW Same as Example 2
1391     ##AWW Command to invoke configure: ../unixAC213/configure
1392     ##AWW $ascpwd will be: /home/me/trunk/base/newTree (same as in Example 2)
1393     ##AWW $srcdir will be: ../unixAC213
1394     ##AWW
1395     ##AWW Key elements of the source tree are:
1396     ##AWW code/trunk/trunk/base/unixAC213/configure
1397     ##AWW code/trunk/trunk/base/generic
1398 johnpye 569 ##AWW code/trunk/tcltk
1399 aw0a 37 ##AWW where $srcdir is pointing to /home/me/trunk/base/unixAC213, the folder
1400     ##AWW containing "configure"
1401     ##AWW
1402     ##AWW Configure is located at:
1403     ##AWW $srcdir/configure
1404     ##AWW while the .c/.h files one wants are in:
1405     ##AWW $srcdir/../generic/compiler
1406     ##AWW $srcdir/../generic/general
1407     ##AWW $srcdir/../generic/packages
1408     ##AWW $srcdir/../generic/solver
1409     ##AWW $srcdir/../generic/utilities
1410 johnpye 569 ##AWW $srcdir/../../tcltk/generic/interface
1411 aw0a 37 ##AWW
1412     ##AWW Each of these directories contain Makefiles and possible
1413     ##AWW need to find .h files in the other directories. For example
1414     ##AWW the include statements are always of the form
1415     ##AWW #include compiler/slv3.h or
1416     ##AWW #include interface/SlvProc.h
1417     ##AWW
1418     ##AWW A safe include path should assume one is a directory with any
1419     ##AWW of these .h and .c files and one needs to find a .h file in
1420 johnpye 133 ##AWW any other of them. The following paths should do it.
1421     ##AWW
1422 aw0a 37 ##AWW If in compiler, general, packages, solver, utilities
1423     ##AWW .. for general, packages, etc
1424 johnpye 569 ##AWW ../../../tcltk/generic for interface
1425 aw0a 37 ##AWW If in interface
1426     ##AWW .. for interface
1427     ##AWW ../../../base/generic for compiler, general, ..
1428     ##AWW
1429     #--------------------------------------------------------------------
1430     # The asc_include variable is (directory) path to the ascend4
1431     # SOURCE directory relative to the immediate subdirectories of
1432     # the ascend4 OBJECT directory. --rewrite - not clear.
1433     #AWW To compile a new ASCEND executable, one should move into the
1434     #AWW directory in which one wants the ASCEND object/executable
1435 johnpye 133 #AWW to reside (call this objTree) and from there run
1436 aw0a 37 #AWW ../base/unixAC213/configure.
1437     #AWW In the following code asc_include is set to the path from
1438 johnpye 362 #JP I think that the current recommendation is to install from
1439     #JP run ./configure (ie from this directory)
1440 aw0a 37
1441     ascpwd=`pwd`
1442     fullpathsrcdir=`cd $srcdir ; pwd`
1443    
1444     case "$srcdir" in
1445     .)
1446     asc_include="../$srcdir"
1447     ;;
1448     /*)
1449     asc_include="$srcdir/../generic"
1450     ;;
1451     *)
1452     asc_include="$srcdir/../generic"
1453     ;;
1454     esac
1455    
1456    
1457     #--------------------------------------------------------------------
1458     # Do basic checks to determine
1459     # * if we have `ranlib'
1460     # * if we can create symbolic links
1461     # * if `make' sets the MAKE macro
1462     # * a bsd-compatible `install' program
1463     # If we use the install-sh script that comes with configure,
1464     # prefix it with the current directory so it'll work in
1465     # subdirectories. Unfortunately, it won't work if the user
1466     # moves the source tree.
1467     #--------------------------------------------------------------------
1468 johnpye 133 if test -n "$ac_tool_prefix"; then
1469     # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
1470     set dummy ${ac_tool_prefix}ranlib; ac_word=$2
1471     echo "$as_me:$LINENO: checking for $ac_word" >&5
1472     echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1473     if test "${ac_cv_prog_RANLIB+set}" = set; then
1474     echo $ECHO_N "(cached) $ECHO_C" >&6
1475 aw0a 37 else
1476     if test -n "$RANLIB"; then
1477     ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1478     else
1479 johnpye 133 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1480     for as_dir in $PATH
1481     do
1482     IFS=$as_save_IFS
1483     test -z "$as_dir" && as_dir=.
1484     for ac_exec_ext in '' $ac_executable_extensions; do
1485     if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1486     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
1487     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1488     break 2
1489     fi
1490     done
1491     done
1492    
1493 aw0a 37 fi
1494     fi
1495 johnpye 133 RANLIB=$ac_cv_prog_RANLIB
1496 aw0a 37 if test -n "$RANLIB"; then
1497 johnpye 133 echo "$as_me:$LINENO: result: $RANLIB" >&5
1498     echo "${ECHO_T}$RANLIB" >&6
1499 aw0a 37 else
1500 johnpye 133 echo "$as_me:$LINENO: result: no" >&5
1501     echo "${ECHO_T}no" >&6
1502 aw0a 37 fi
1503    
1504 johnpye 133 fi
1505     if test -z "$ac_cv_prog_RANLIB"; then
1506     ac_ct_RANLIB=$RANLIB
1507     # Extract the first word of "ranlib", so it can be a program name with args.
1508     set dummy ranlib; ac_word=$2
1509     echo "$as_me:$LINENO: checking for $ac_word" >&5
1510     echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1511     if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
1512     echo $ECHO_N "(cached) $ECHO_C" >&6
1513 aw0a 37 else
1514 johnpye 133 if test -n "$ac_ct_RANLIB"; then
1515     ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
1516 aw0a 37 else
1517 johnpye 133 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1518     for as_dir in $PATH
1519     do
1520     IFS=$as_save_IFS
1521     test -z "$as_dir" && as_dir=.
1522     for ac_exec_ext in '' $ac_executable_extensions; do
1523     if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1524     ac_cv_prog_ac_ct_RANLIB="ranlib"
1525     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1526     break 2
1527     fi
1528     done
1529     done
1530    
1531     test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
1532 aw0a 37 fi
1533     fi
1534 johnpye 133 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
1535     if test -n "$ac_ct_RANLIB"; then
1536     echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
1537     echo "${ECHO_T}$ac_ct_RANLIB" >&6
1538 aw0a 37 else
1539 johnpye 133 echo "$as_me:$LINENO: result: no" >&5
1540     echo "${ECHO_T}no" >&6
1541 aw0a 37 fi
1542    
1543 johnpye 133 RANLIB=$ac_ct_RANLIB
1544 aw0a 37 else
1545 johnpye 133 RANLIB="$ac_cv_prog_RANLIB"
1546     fi
1547    
1548     echo "$as_me:$LINENO: checking whether ln -s works" >&5
1549     echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
1550     LN_S=$as_ln_s
1551     if test "$LN_S" = "ln -s"; then
1552     echo "$as_me:$LINENO: result: yes" >&5
1553     echo "${ECHO_T}yes" >&6
1554     else
1555     echo "$as_me:$LINENO: result: no, using $LN_S" >&5
1556     echo "${ECHO_T}no, using $LN_S" >&6
1557     fi
1558    
1559     echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1560     echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1561 ben.allan 545 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'`
1562 johnpye 133 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1563     echo $ECHO_N "(cached) $ECHO_C" >&6
1564     else
1565     cat >conftest.make <<\_ACEOF
1566 aw0a 37 all:
1567 johnpye 133 @echo 'ac_maketemp="$(MAKE)"'
1568     _ACEOF
1569 aw0a 37 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1570 johnpye 133 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1571 aw0a 37 if test -n "$ac_maketemp"; then
1572     eval ac_cv_prog_make_${ac_make}_set=yes
1573     else
1574     eval ac_cv_prog_make_${ac_make}_set=no
1575     fi
1576 johnpye 133 rm -f conftest.make
1577 aw0a 37 fi
1578     if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1579 johnpye 133 echo "$as_me:$LINENO: result: yes" >&5
1580     echo "${ECHO_T}yes" >&6
1581 aw0a 37 SET_MAKE=
1582     else
1583 johnpye 133 echo "$as_me:$LINENO: result: no" >&5
1584     echo "${ECHO_T}no" >&6
1585 aw0a 37 SET_MAKE="MAKE=${MAKE-make}"
1586     fi
1587    
1588     # Find a good install program. We prefer a C program (faster),
1589     # so one script is as good as another. But avoid the broken or
1590     # incompatible versions:
1591     # SysV /etc/install, /usr/sbin/install
1592     # SunOS /usr/etc/install
1593     # IRIX /sbin/install
1594     # AIX /bin/install
1595 johnpye 133 # AmigaOS /C/install, which installs bootblocks on floppy discs
1596 aw0a 37 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1597     # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1598     # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1599     # ./install, which can be erroneously created by make from ./install.sh.
1600 johnpye 133 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1601     echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1602 aw0a 37 if test -z "$INSTALL"; then
1603 johnpye 133 if test "${ac_cv_path_install+set}" = set; then
1604     echo $ECHO_N "(cached) $ECHO_C" >&6
1605 aw0a 37 else
1606 johnpye 133 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1607     for as_dir in $PATH
1608     do
1609     IFS=$as_save_IFS
1610     test -z "$as_dir" && as_dir=.
1611     # Account for people who put trailing slashes in PATH elements.
1612     case $as_dir/ in
1613     ./ | .// | /cC/* | \
1614     /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1615     /usr/ucb/* ) ;;
1616     *)
1617     # OSF1 and SCO ODT 3.0 have their own names for install.
1618     # Don't use installbsd from OSF since it installs stuff as root
1619     # by default.
1620     for ac_prog in ginstall scoinst install; do
1621     for ac_exec_ext in '' $ac_executable_extensions; do
1622 ben.allan 545 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1623     if test $ac_prog = install &&
1624     grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1625     # AIX install. It has an incompatible calling convention.
1626     :
1627     elif test $ac_prog = install &&
1628     grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1629     # program-specific install script used by HP pwplus--don't use.
1630     :
1631     else
1632     ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1633     break 3
1634     fi
1635     fi
1636 aw0a 37 done
1637 johnpye 133 done
1638     ;;
1639     esac
1640     done
1641 aw0a 37
1642 johnpye 133
1643 aw0a 37 fi
1644     if test "${ac_cv_path_install+set}" = set; then
1645 johnpye 133 INSTALL=$ac_cv_path_install
1646 aw0a 37 else
1647     # As a last resort, use the slow shell script. We don't cache a
1648     # path for INSTALL within a source directory, because that will
1649     # break other packages using the cache if that directory is
1650     # removed, or if the path is relative.
1651 johnpye 133 INSTALL=$ac_install_sh
1652 aw0a 37 fi
1653     fi
1654 johnpye 133 echo "$as_me:$LINENO: result: $INSTALL" >&5
1655     echo "${ECHO_T}$INSTALL" >&6
1656 aw0a 37
1657     # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1658     # It thinks the first close brace ends the variable substitution.
1659     test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1660    
1661 johnpye 133 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1662 aw0a 37
1663     test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1664    
1665 johnpye 192
1666 aw0a 37 case "X$INSTALL" in
1667     X/*)
1668     ;;
1669     *)
1670     INSTALL="$ascpwd/$INSTALL"
1671     ;;
1672     esac
1673    
1674    
1675     #--------------------------------------------------------------------
1676     # Get the host type for various checks along the way
1677     #--------------------------------------------------------------------
1678 johnpye 133 # Make sure we can run config.sub.
1679     $ac_config_sub sun4 >/dev/null 2>&1 ||
1680     { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1681     echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1682     { (exit 1); exit 1; }; }
1683 ben.allan 41
1684 johnpye 133 echo "$as_me:$LINENO: checking build system type" >&5
1685     echo $ECHO_N "checking build system type... $ECHO_C" >&6
1686     if test "${ac_cv_build+set}" = set; then
1687     echo $ECHO_N "(cached) $ECHO_C" >&6
1688     else
1689     ac_cv_build_alias=$build_alias
1690     test -z "$ac_cv_build_alias" &&
1691     ac_cv_build_alias=`$ac_config_guess`
1692     test -z "$ac_cv_build_alias" &&
1693     { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1694     echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1695     { (exit 1); exit 1; }; }
1696     ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1697     { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1698     echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1699     { (exit 1); exit 1; }; }
1700    
1701 aw0a 37 fi
1702 johnpye 133 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1703     echo "${ECHO_T}$ac_cv_build" >&6
1704     build=$ac_cv_build
1705     build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1706     build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1707     build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1708 aw0a 37
1709    
1710 johnpye 133 echo "$as_me:$LINENO: checking host system type" >&5
1711     echo $ECHO_N "checking host system type... $ECHO_C" >&6
1712     if test "${ac_cv_host+set}" = set; then
1713     echo $ECHO_N "(cached) $ECHO_C" >&6
1714     else
1715     ac_cv_host_alias=$host_alias
1716     test -z "$ac_cv_host_alias" &&
1717     ac_cv_host_alias=$ac_cv_build_alias
1718     ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1719     { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1720     echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1721     { (exit 1); exit 1; }; }
1722 aw0a 37
1723 johnpye 133 fi
1724     echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1725     echo "${ECHO_T}$ac_cv_host" >&6
1726     host=$ac_cv_host
1727     host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1728     host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1729     host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1730 aw0a 37
1731    
1732    
1733     #--------------------------------------------------------------------
1734     # Check for the C compiler: set CC and CFLAGS.
1735     # If the user does NOT specify `--enable-gcc' on the configure
1736     # command command line, set CC to either the envar CC or `cc'.
1737     # Call AC_PROG_CC which will use the value of CC (perhaps set
1738     # immediately above) or will check for `gcc' and then for `cc'
1739     # if `gcc' is not found.
1740     #
1741     # If we are using GCC, then assume it groks ANSI. Otherwise,
1742     # try to compile a small program using ANSI constructs with
1743     # CC. If this fails, try to locate each of the following:
1744     # c89 xlc acc
1745     # and if successful, see if it compiles an ANSI C program.
1746     # (Doing this in a loop would be ideal, but configure caches
1747     # the result of AC_CHECK_PROG and uses the cached value for
1748     # all but the first pass through the loop. This is also the
1749     # reason we have to use a different variable asc_cc1, asc_cc2
1750     # for each call to AC_CHECK_PROG.
1751     #
1752     # If we do not find an ANSI C compiler, print a warning and
1753     # use the first value of CC we tried.
1754     #--------------------------------------------------------------------
1755 johnpye 364 #JP removed the lengthy CC tests, since ANSI C is pretty universal
1756     #JP these days, and GCC can pretty much be assumed if we're using
1757     #JP Autotools.
1758 aw0a 37
1759 johnpye 362 ac_ext=c
1760 johnpye 133 ac_cpp='$CPP $CPPFLAGS'
1761     ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1762     ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1763     ac_compiler_gnu=$ac_cv_c_compiler_gnu
1764     if test -n "$ac_tool_prefix"; then
1765 johnpye 362 for ac_prog in gcc
1766 johnpye 133 do
1767     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1768     set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1769     echo "$as_me:$LINENO: checking for $ac_word" >&5
1770     echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1771     if test "${ac_cv_prog_CC+set}" = set; then
1772     echo $ECHO_N "(cached) $ECHO_C" >&6
1773     else
1774     if test -n "$CC"; then
1775     ac_cv_prog_CC="$CC" # Let the user override the test.
1776     else
1777     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1778     for as_dir in $PATH
1779     do
1780     IFS=$as_save_IFS
1781     test -z "$as_dir" && as_dir=.
1782     for ac_exec_ext in '' $ac_executable_extensions; do
1783     if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1784     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1785     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1786     break 2
1787     fi
1788     done
1789     done
1790    
1791     fi
1792     fi
1793     CC=$ac_cv_prog_CC
1794     if test -n "$CC"; then
1795     echo "$as_me:$LINENO: result: $CC" >&5
1796     echo "${ECHO_T}$CC" >&6
1797     else
1798     echo "$as_me:$LINENO: result: no" >&5
1799     echo "${ECHO_T}no" >&6
1800     fi
1801    
1802     test -n "$CC" && break
1803     done
1804     fi
1805     if test -z "$CC"; then
1806     ac_ct_CC=$CC
1807 johnpye 362 for ac_prog in gcc
1808 johnpye 133 do
1809     # Extract the first word of "$ac_prog", so it can be a program name with args.
1810     set dummy $ac_prog; ac_word=$2
1811     echo "$as_me:$LINENO: checking for $ac_word" >&5
1812     echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1813     if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1814     echo $ECHO_N "(cached) $ECHO_C" >&6
1815     else
1816     if test -n "$ac_ct_CC"; then
1817     ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1818     else
1819     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1820     for as_dir in $PATH
1821     do
1822     IFS=$as_save_IFS
1823     test -z "$as_dir" && as_dir=.
1824     for ac_exec_ext in '' $ac_executable_extensions; do
1825     if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1826     ac_cv_prog_ac_ct_CC="$ac_prog"
1827     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1828     break 2
1829     fi
1830     done
1831     done
1832    
1833     fi
1834     fi
1835     ac_ct_CC=$ac_cv_prog_ac_ct_CC
1836     if test -n "$ac_ct_CC"; then
1837     echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1838     echo "${ECHO_T}$ac_ct_CC" >&6
1839     else
1840     echo "$as_me:$LINENO: result: no" >&5
1841     echo "${ECHO_T}no" >&6
1842     fi
1843    
1844     test -n "$ac_ct_CC" && break
1845     done
1846    
1847     CC=$ac_ct_CC
1848     fi
1849    
1850    
1851     test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1852     See \`config.log' for more details." >&5
1853     echo "$as_me: error: no acceptable C compiler found in \$PATH
1854     See \`config.log' for more details." >&2;}
1855     { (exit 1); exit 1; }; }
1856    
1857     # Provide some information about the compiler.
1858     echo "$as_me:$LINENO:" \
1859     "checking for C compiler version" >&5
1860     ac_compiler=`set X $ac_compile; echo $2`
1861     { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1862     (eval $ac_compiler --version </dev/null >&5) 2>&5
1863     ac_status=$?
1864     echo "$as_me:$LINENO: \$? = $ac_status" >&5
1865     (exit $ac_status); }
1866     { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1867     (eval $ac_compiler -v </dev/null >&5) 2>&5
1868     ac_status=$?
1869     echo "$as_me:$LINENO: \$? = $ac_status" >&5
1870     (exit $ac_status); }
1871     { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1872     (eval $ac_compiler -V </dev/null >&5) 2>&5
1873     ac_status=$?
1874     echo "$as_me:$LINENO: \$? = $ac_status" >&5
1875     (exit $ac_status); }
1876    
1877     cat >conftest.$ac_ext <<_ACEOF
1878 ben.allan 545 #line $LINENO "configure"
1879 johnpye 133 /* confdefs.h. */
1880     _ACEOF
1881     cat confdefs.h >>conftest.$ac_ext
1882     cat >>conftest.$ac_ext <<_ACEOF
1883     /* end confdefs.h. */
1884    
1885     int
1886     main ()
1887     {
1888    
1889     ;
1890     return 0;
1891     }
1892     _ACEOF
1893     ac_clean_files_save=$ac_clean_files
1894     ac_clean_files="$ac_clean_files a.out a.exe b.out"
1895     # Try to create an executable without -o first, disregard a.out.
1896     # It will help us diagnose broken compilers, and finding out an intuition
1897     # of exeext.
1898 ben.allan 545 echo "$as_me:$LINENO: checking for C compiler default output" >&5
1899     echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
1900 johnpye 133 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1901     if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1902     (eval $ac_link_default) 2>&5
1903     ac_status=$?
1904     echo "$as_me:$LINENO: \$? = $ac_status" >&5
1905     (exit $ac_status); }; then
1906     # Find the output, starting from the most likely. This scheme is
1907     # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1908     # resort.
1909    
1910     # Be careful to initialize this variable, since it used to be cached.
1911     # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1912     ac_cv_exeext=
1913     # b.out is created by i960 compilers.
1914     for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
1915     do
1916     test -f "$ac_file" || continue
1917     case $ac_file in
1918     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
1919 ben.allan 545 ;;
1920 johnpye 133 conftest.$ac_ext )
1921 ben.allan 545 # This is the source file.
1922     ;;
1923 johnpye 133 [ab].out )
1924 ben.allan 545 # We found the default executable, but exeext='' is most
1925     # certainly right.
1926     break;;
1927 johnpye 133 *.* )
1928 ben.allan 545 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1929     # FIXME: I believe we export ac_cv_exeext for Libtool,
1930     # but it would be cool to find out if it's true. Does anybody
1931     # maintain Libtool? --akim.
1932     export ac_cv_exeext
1933     break;;
1934 johnpye 133 * )
1935 ben.allan 545 break;;
1936 johnpye 133 esac
1937     done
1938     else
1939     echo "$as_me: failed program was:" >&5
1940     sed 's/^/| /' conftest.$ac_ext >&5
1941    
1942     { { echo "$as_me:$LINENO: error: C compiler cannot create executables
1943     See \`config.log' for more details." >&5
1944     echo "$as_me: error: C compiler cannot create executables
1945     See \`config.log' for more details." >&2;}
1946     { (exit 77); exit 77; }; }
1947     fi
1948    
1949     ac_exeext=$ac_cv_exeext
1950     echo "$as_me:$LINENO: result: $ac_file" >&5
1951     echo "${ECHO_T}$ac_file" >&6
1952    
1953     # Check the compiler produces executables we can run. If not, either
1954     # the compiler is broken, or we cross compile.
1955     echo "$as_me:$LINENO: checking whether the C compiler works" >&5
1956     echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1957     # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1958     # If not cross compiling, check that we can run a simple program.
1959     if test "$cross_compiling" != yes; then
1960     if { ac_try='./$ac_file'
1961     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1962     (eval $ac_try) 2>&5
1963     ac_status=$?
1964     echo "$as_me:$LINENO: \$? = $ac_status" >&5
1965     (exit $ac_status); }; }; then
1966     cross_compiling=no
1967     else
1968     if test "$cross_compiling" = maybe; then
1969     cross_compiling=yes
1970     else
1971     { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
1972     If you meant to cross compile, use \`--host'.
1973     See \`config.log' for more details." >&5
1974     echo "$as_me: error: cannot run C compiled programs.
1975     If you meant to cross compile, use \`--host'.
1976     See \`config.log' for more details." >&2;}
1977     { (exit 1); exit 1; }; }
1978     fi
1979     fi
1980     fi
1981     echo "$as_me:$LINENO: result: yes" >&5
1982     echo "${ECHO_T}yes" >&6
1983    
1984     rm -f a.out a.exe conftest$ac_cv_exeext b.out
1985     ac_clean_files=$ac_clean_files_save
1986     # Check the compiler produces executables we can run. If not, either
1987     # the compiler is broken, or we cross compile.
1988     echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
1989     echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1990     echo "$as_me:$LINENO: result: $cross_compiling" >&5
1991     echo "${ECHO_T}$cross_compiling" >&6
1992    
1993     echo "$as_me:$LINENO: checking for suffix of executables" >&5
1994     echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
1995     if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1996     (eval $ac_link) 2>&5
1997     ac_status=$?
1998     echo "$as_me:$LINENO: \$? = $ac_status" >&5
1999     (exit $ac_status); }; then
2000     # If both `conftest.exe' and `conftest' are `present' (well, observable)
2001     # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2002     # work properly (i.e., refer to `conftest.exe'), while it won't with
2003     # `rm'.
2004     for ac_file in conftest.exe conftest conftest.*; do
2005     test -f "$ac_file" || continue
2006     case $ac_file in
2007     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2008     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2009 ben.allan 545 export ac_cv_exeext
2010     break;;
2011 johnpye 133 * ) break;;
2012     esac
2013     done
2014     else
2015     { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2016     See \`config.log' for more details." >&5
2017     echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2018     See \`config.log' for more details." >&2;}
2019     { (exit 1); exit 1; }; }
2020     fi
2021    
2022     rm -f conftest$ac_cv_exeext
2023     echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2024     echo "${ECHO_T}$ac_cv_exeext" >&6
2025    
2026     rm -f conftest.$ac_ext
2027     EXEEXT=$ac_cv_exeext
2028     ac_exeext=$EXEEXT
2029     echo "$as_me:$LINENO: checking for suffix of object files" >&5
2030     echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2031     if test "${ac_cv_objext+set}" = set; then
2032     echo $ECHO_N "(cached) $ECHO_C" >&6
2033     else
2034     cat >conftest.$ac_ext <<_ACEOF
2035 ben.allan 545 #line $LINENO "configure"
2036 johnpye 133 /* confdefs.h. */
2037     _ACEOF
2038     cat confdefs.h >>conftest.$ac_ext
2039     cat >>conftest.$ac_ext <<_ACEOF
2040     /* end confdefs.h. */
2041    
2042     int
2043     main ()
2044     {
2045    
2046     ;
2047     return 0;
2048     }
2049     _ACEOF
2050     rm -f conftest.o conftest.obj
2051     if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2052     (eval $ac_compile) 2>&5
2053     ac_status=$?
2054     echo "$as_me:$LINENO: \$? = $ac_status" >&5
2055     (exit $ac_status); }; then
2056     for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2057     case $ac_file in
2058     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2059     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2060     break;;
2061     esac
2062     done
2063     else
2064     echo "$as_me: failed program was:" >&5
2065     sed 's/^/| /' conftest.$ac_ext >&5
2066    
2067     { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2068     See \`config.log' for more details." >&5
2069     echo "$as_me: error: cannot compute suffix of object files: cannot compile
2070     See \`config.log' for more details." >&2;}
2071     { (exit 1); exit 1; }; }
2072     fi
2073    
2074     rm -f conftest.$ac_cv_objext conftest.$ac_ext
2075     fi
2076     echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2077     echo "${ECHO_T}$ac_cv_objext" >&6
2078     OBJEXT=$ac_cv_objext
2079     ac_objext=$OBJEXT
2080     echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2081     echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2082     if test "${ac_cv_c_compiler_gnu+set}" = set; then
2083     echo $ECHO_N "(cached) $ECHO_C" >&6
2084     else
2085     cat >conftest.$ac_ext <<_ACEOF
2086 ben.allan 545 #line $LINENO "configure"
2087 johnpye 133 /* confdefs.h. */
2088     _ACEOF
2089     cat confdefs.h >>conftest.$ac_ext
2090     cat >>conftest.$ac_ext <<_ACEOF
2091     /* end confdefs.h. */
2092    
2093     int
2094     main ()
2095     {
2096     #ifndef __GNUC__
2097     choke me
2098     #endif
2099    
2100     ;
2101     return 0;
2102     }
2103     _ACEOF
2104     rm -f conftest.$ac_objext
2105     if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2106 ben.allan 545 (eval $ac_compile) 2>&5
2107 johnpye 133 ac_status=$?
2108     echo "$as_me:$LINENO: \$? = $ac_status" >&5
2109     (exit $ac_status); } &&
2110 ben.allan 545 { ac_try='test -s conftest.$ac_objext'
2111 johnpye 133 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2112     (eval $ac_try) 2>&5
2113     ac_status=$?
2114     echo "$as_me:$LINENO: \$? = $ac_status" >&5
2115     (exit $ac_status); }; }; then
2116     ac_compiler_gnu=yes
2117     else
2118     echo "$as_me: failed program was:" >&5
2119     sed 's/^/| /' conftest.$ac_ext >&5
2120    
2121     ac_compiler_gnu=no
2122     fi
2123 ben.allan 545 rm -f conftest.$ac_objext conftest.$ac_ext
2124 johnpye 133 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2125    
2126     fi
2127     echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2128     echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2129     GCC=`test $ac_compiler_gnu = yes && echo yes`
2130     ac_test_CFLAGS=${CFLAGS+set}
2131     ac_save_CFLAGS=$CFLAGS
2132     CFLAGS="-g"
2133     echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2134     echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2135     if test "${ac_cv_prog_cc_g+set}" = set; then
2136     echo $ECHO_N "(cached) $ECHO_C" >&6
2137     else
2138     cat >conftest.$ac_ext <<_ACEOF
2139 ben.allan 545 #line $LINENO "configure"
2140 johnpye 133 /* confdefs.h. */
2141     _ACEOF
2142     cat confdefs.h >>conftest.$ac_ext
2143     cat >>conftest.$ac_ext <<_ACEOF
2144     /* end confdefs.h. */
2145    
2146     int
2147     main ()
2148     {
2149    
2150     ;
2151     return 0;
2152     }
2153     _ACEOF
2154     rm -f conftest.$ac_objext
2155     if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2156 ben.allan 545 (eval $ac_compile) 2>&5
2157 johnpye 133 ac_status=$?
2158     echo "$as_me:$LINENO: \$? = $ac_status" >&5
2159     (exit $ac_status); } &&
2160 ben.allan 545 { ac_try='test -s conftest.$ac_objext'
2161 johnpye 133 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2162     (eval $ac_try) 2>&5
2163     ac_status=$?
2164     echo "$as_me:$LINENO: \$? = $ac_status" >&5
2165     (exit $ac_status); }; }; then
2166     ac_cv_prog_cc_g=yes
2167     else
2168     echo "$as_me: failed program was:" >&5
2169     sed 's/^/| /' conftest.$ac_ext >&5
2170    
2171     ac_cv_prog_cc_g=no
2172     fi
2173 ben.allan 545 rm -f conftest.$ac_objext conftest.$ac_ext
2174 johnpye 133 fi
2175     echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2176     echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2177     if test "$ac_test_CFLAGS" = set; then
2178     CFLAGS=$ac_save_CFLAGS
2179     elif test $ac_cv_prog_cc_g = yes; then
2180     if test "$GCC" = yes; then
2181     CFLAGS="-g -O2"
2182     else
2183     CFLAGS="-g"
2184     fi
2185     else
2186     if test "$GCC" = yes; then
2187     CFLAGS="-O2"
2188     else
2189     CFLAGS=
2190     fi
2191     fi
2192     echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2193     echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2194     if test "${ac_cv_prog_cc_stdc+set}" = set; then
2195     echo $ECHO_N "(cached) $ECHO_C" >&6
2196     else
2197     ac_cv_prog_cc_stdc=no
2198     ac_save_CC=$CC
2199     cat >conftest.$ac_ext <<_ACEOF
2200 ben.allan 545 #line $LINENO "configure"
2201 johnpye 133 /* confdefs.h. */
2202     _ACEOF
2203     cat confdefs.h >>conftest.$ac_ext
2204     cat >>conftest.$ac_ext <<_ACEOF
2205     /* end confdefs.h. */
2206     #include <stdarg.h>
2207     #include <stdio.h>
2208     #include <sys/types.h>
2209     #include <sys/stat.h>
2210     /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2211     struct buf { int x; };
2212     FILE * (*rcsopen) (struct buf *, struct stat *, int);
2213     static char *e (p, i)
2214     char **p;
2215     int i;
2216     {
2217     return p[i];
2218     }
2219     static char *f (char * (*g) (char **, int), char **p, ...)
2220     {
2221     char *s;
2222     va_list v;
2223     va_start (v,p);
2224     s = g (p, va_arg (v,int));
2225     va_end (v);
2226     return s;
2227     }
2228     int test (int i, double x);
2229     struct s1 {int (*f) (int a);};
2230     struct s2 {int (*f) (double a);};
2231     int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2232     int argc;
2233     char **argv;
2234     int
2235     main ()
2236     {
2237     return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2238     ;
2239     return 0;
2240     }
2241     _ACEOF
2242     # Don't try gcc -ansi; that turns off useful extensions and
2243     # breaks some systems' header files.
2244     # AIX -qlanglvl=ansi
2245     # Ultrix and OSF/1 -std1
2246     # HP-UX 10.20 and later -Ae
2247     # HP-UX older versions -Aa -D_HPUX_SOURCE
2248     # SVR4 -Xc -D__EXTENSIONS__
2249     for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2250     do
2251     CC="$ac_save_CC $ac_arg"
2252     rm -f conftest.$ac_objext
2253     if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2254 ben.allan 545 (eval $ac_compile) 2>&5
2255 johnpye 133 ac_status=$?
2256     echo "$as_me:$LINENO: \$? = $ac_status" >&5
2257     (exit $ac_status); } &&
2258 ben.allan 545 { ac_try='test -s conftest.$ac_objext'
2259 johnpye 133 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2260     (eval $ac_try) 2>&5
2261     ac_status=$?
2262     echo "$as_me:$LINENO: \$? = $ac_status" >&5
2263     (exit $ac_status); }; }; then
2264     ac_cv_prog_cc_stdc=$ac_arg
2265     break
2266     else
2267     echo "$as_me: failed program was:" >&5
2268     sed 's/^/| /' conftest.$ac_ext >&5
2269    
2270     fi
2271 ben.allan 545 rm -f conftest.$ac_objext
2272 johnpye 133 done
2273     rm -f conftest.$ac_ext conftest.$ac_objext
2274     CC=$ac_save_CC
2275    
2276     fi
2277    
2278     case "x$ac_cv_prog_cc_stdc" in
2279     x|xno)
2280     echo "$as_me:$LINENO: result: none needed" >&5
2281     echo "${ECHO_T}none needed" >&6 ;;
2282     *)
2283     echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2284     echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2285     CC="$CC $ac_cv_prog_cc_stdc" ;;
2286     esac
2287    
2288     # Some people use a C++ compiler to compile C. Since we use `exit',
2289     # in C++ we need to declare it. In case someone uses the same compiler
2290     # for both compiling C and C++ we need to have the C++ compiler decide
2291     # the declaration of exit, since it's the most demanding environment.
2292     cat >conftest.$ac_ext <<_ACEOF
2293     #ifndef __cplusplus
2294     choke me
2295     #endif
2296     _ACEOF
2297     rm -f conftest.$ac_objext
2298     if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2299 ben.allan 545 (eval $ac_compile) 2>&5
2300 johnpye 133 ac_status=$?
2301     echo "$as_me:$LINENO: \$? = $ac_status" >&5
2302     (exit $ac_status); } &&
2303 ben.allan 545 { ac_try='test -s conftest.$ac_objext'
2304 johnpye 133 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2305     (eval $ac_try) 2>&5
2306     ac_status=$?
2307     echo "$as_me:$LINENO: \$? = $ac_status" >&5
2308     (exit $ac_status); }; }; then
2309     for ac_declaration in \
2310 ben.allan 545 ''\
2311     '#include <stdlib.h>' \
2312 johnpye 133 'extern "C" void std::exit (int) throw (); using std::exit;' \
2313     'extern "C" void std::exit (int); using std::exit;' \
2314     'extern "C" void exit (int) throw ();' \
2315     'extern "C" void exit (int);' \
2316     'void exit (int);'
2317     do
2318     cat >conftest.$ac_ext <<_ACEOF
2319 ben.allan 545 #line $LINENO "configure"
2320 johnpye 133 /* confdefs.h. */
2321     _ACEOF
2322     cat confdefs.h >>conftest.$ac_ext
2323     cat >>conftest.$ac_ext <<_ACEOF
2324     /* end confdefs.h. */
2325 ben.allan 545 #include <stdlib.h>
2326 johnpye 371 $ac_declaration
2327 johnpye 133 int
2328     main ()
2329     {
2330     exit (42);
2331     ;
2332     return 0;
2333     }
2334     _ACEOF
2335     rm -f conftest.$ac_objext
2336     if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2337 ben.allan 545 (eval $ac_compile) 2>&5
2338 johnpye 133 ac_status=$?
2339     echo "$as_me:$LINENO: \$? = $ac_status" >&5
2340     (exit $ac_status); } &&
2341 ben.allan 545 { ac_try='test -s conftest.$ac_objext'
2342 johnpye 133 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2343     (eval $ac_try) 2>&5
2344     ac_status=$?
2345     echo "$as_me:$LINENO: \$? = $ac_status" >&5
2346     (exit $ac_status); }; }; then
2347     :
2348     else
2349     echo "$as_me: failed program was:" >&5
2350     sed 's/^/| /' conftest.$ac_ext >&5
2351    
2352     continue
2353     fi
2354 ben.allan 545 rm -f conftest.$ac_objext conftest.$ac_ext
2355 johnpye 133 cat >conftest.$ac_ext <<_ACEOF
2356 ben.allan 545 #line $LINENO "configure"
2357 johnpye 133 /* confdefs.h. */
2358     _ACEOF
2359     cat confdefs.h >>conftest.$ac_ext
2360     cat >>conftest.$ac_ext <<_ACEOF
2361     /* end confdefs.h. */
2362     $ac_declaration
2363     int
2364     main ()
2365     {
2366     exit (42);
2367     ;
2368     return 0;
2369     }
2370     _ACEOF
2371     rm -f conftest.$ac_objext
2372     if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2373 ben.allan 545 (eval $ac_compile) 2>&5
2374 johnpye 133 ac_status=$?
2375     echo "$as_me:$LINENO: \$? = $ac_status" >&5
2376     (exit $ac_status); } &&
2377 ben.allan 545 { ac_try='test -s conftest.$ac_objext'
2378 johnpye 133 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2379     (eval $ac_try) 2>&5
2380     ac_status=$?
2381     echo "$as_me:$LINENO: \$? = $ac_status" >&5
2382     (exit $ac_status); }; }; then
2383     break
2384     else
2385     echo "$as_me: failed program was:" >&5
2386     sed 's/^/| /' conftest.$ac_ext >&5
2387    
2388     fi
2389 ben.allan 545 rm -f conftest.$ac_objext conftest.$ac_ext
2390 johnpye 133 done
2391     rm -f conftest*
2392     if test -n "$ac_declaration"; then
2393     echo '#ifdef __cplusplus' >>confdefs.h
2394     echo $ac_declaration >>confdefs.h
2395     echo '#endif' >>confdefs.h
2396     fi
2397    
2398     else
2399     echo "$as_me: failed program was:" >&5
2400     sed 's/^/| /' conftest.$ac_ext >&5
2401    
2402     fi
2403 ben.allan 545 rm -f conftest.$ac_objext conftest.$ac_ext
2404 johnpye 133 ac_ext=c
2405     ac_cpp='$CPP $CPPFLAGS'
2406     ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2407     ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2408     ac_compiler_gnu=$ac_cv_c_compiler_gnu
2409    
2410    
2411 aw0a 37 #--------------------------------------------------------------------
2412     # Do other misc checks with CC and CFLAGS.
2413     #
2414     # Determine how to run the C preprocessor.
2415     #
2416     # If the user specifies --enable-optimization, remove `-g'
2417     # from CFLAGS, add `-O' to CFLAGS, and define `NDEBUG'. If
2418     # we are not building optimized, check for special libraries
2419     # needed for building a debugging binary (currenly only
2420     # /usr/lib/end.o under HPUX).
2421     #
2422     # Check if we're running on AIX; if so, add `-D_ALL_SOURCE'
2423     # to CFLAGS.
2424     #
2425     # Check if we're running on HPUX; if so, add -D_HPUX_SOURCE'
2426     # to CFLAGS unless the C preprocessor goes it for us.
2427     #--------------------------------------------------------------------
2428    
2429 johnpye 133 ac_ext=c
2430     ac_cpp='$CPP $CPPFLAGS'
2431     ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2432     ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2433     ac_compiler_gnu=$ac_cv_c_compiler_gnu
2434     echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2435     echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2436 aw0a 37 # On Suns, sometimes $CPP names a directory.
2437     if test -n "$CPP" && test -d "$CPP"; then
2438     CPP=
2439     fi
2440     if test -z "$CPP"; then
2441 johnpye 133 if test "${ac_cv_prog_CPP+set}" = set; then
2442     echo $ECHO_N "(cached) $ECHO_C" >&6
2443 aw0a 37 else
2444 johnpye 133 # Double quotes because CPP needs to be expanded
2445     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2446     do
2447     ac_preproc_ok=false
2448     for ac_c_preproc_warn_flag in '' yes
2449     do
2450     # Use a header file that comes with gcc, so configuring glibc
2451     # with a fresh cross-compiler works.
2452 johnpye 371 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2453     # <limits.h> exists even on freestanding compilers.
2454 aw0a 37 # On the NeXT, cc -E runs the code through the compiler's parser,
2455 johnpye 133 # not just through cpp. "Syntax error" is here to catch this case.
2456     cat >conftest.$ac_ext <<_ACEOF
2457 ben.allan 545 #line $LINENO "configure"
2458 johnpye 133 /* confdefs.h. */
2459     _ACEOF
2460     cat confdefs.h >>conftest.$ac_ext
2461     cat >>conftest.$ac_ext <<_ACEOF
2462     /* end confdefs.h. */
2463 johnpye 371 #ifdef __STDC__
2464     # include <limits.h>
2465     #else
2466     # include <assert.h>
2467     #endif
2468 ben.allan 545 Syntax error
2469 johnpye 133 _ACEOF
2470     if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2471     (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2472     ac_status=$?
2473     grep -v '^ *+' conftest.er1 >conftest.err
2474     rm -f conftest.er1
2475     cat conftest.err >&5
2476     echo "$as_me:$LINENO: \$? = $ac_status" >&5
2477     (exit $ac_status); } >/dev/null; then
2478     if test -s conftest.err; then
2479     ac_cpp_err=$ac_c_preproc_warn_flag
2480     else
2481     ac_cpp_err=
2482     fi
2483 aw0a 37 else
2484 johnpye 133 ac_cpp_err=yes
2485     fi
2486     if test -z "$ac_cpp_err"; then
2487 aw0a 37 :
2488     else
2489 johnpye 133 echo "$as_me: failed program was:" >&5
2490     sed 's/^/| /' conftest.$ac_ext >&5
2491    
2492     # Broken: fails on valid input.
2493     continue
2494     fi
2495     rm -f conftest.err conftest.$ac_ext
2496    
2497     # OK, works on sane cases. Now check whether non-existent headers
2498     # can be detected and how.
2499     cat >conftest.$ac_ext <<_ACEOF
2500 ben.allan 545 #line $LINENO "configure"
2501 johnpye 133 /* confdefs.h. */
2502     _ACEOF
2503     cat confdefs.h >>conftest.$ac_ext
2504     cat >>conftest.$ac_ext <<_ACEOF
2505     /* end confdefs.h. */
2506     #include <ac_nonexistent.h>
2507     _ACEOF
2508     if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2509     (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2510     ac_status=$?
2511     grep -v '^ *+' conftest.er1 >conftest.err
2512     rm -f conftest.er1
2513     cat conftest.err >&5
2514     echo "$as_me:$LINENO: \$? = $ac_status" >&5
2515     (exit $ac_status); } >/dev/null; then
2516     if test -s conftest.err; then
2517     ac_cpp_err=$ac_c_preproc_warn_flag
2518     else
2519     ac_cpp_err=
2520     fi
2521 aw0a 37 else
2522 johnpye 133 ac_cpp_err=yes
2523 aw0a 37 fi
2524 johnpye 133 if test -z "$ac_cpp_err"; then
2525     # Broken: success on invalid input.
2526     continue
2527     else
2528     echo "$as_me: failed program was:" >&5
2529     sed 's/^/| /' conftest.$ac_ext >&5
2530    
2531     # Passes both tests.
2532     ac_preproc_ok=:
2533     break
2534 aw0a 37 fi
2535 johnpye 133 rm -f conftest.err conftest.$ac_ext
2536    
2537     done
2538     # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2539     rm -f conftest.err conftest.$ac_ext
2540     if $ac_preproc_ok; then
2541     break
2542 aw0a 37 fi
2543 johnpye 133
2544     done
2545     ac_cv_prog_CPP=$CPP
2546    
2547 aw0a 37 fi
2548 johnpye 133 CPP=$ac_cv_prog_CPP
2549 aw0a 37 else
2550 johnpye 133 ac_cv_prog_CPP=$CPP
2551 aw0a 37 fi
2552 johnpye 133 echo "$as_me:$LINENO: result: $CPP" >&5
2553     echo "${ECHO_T}$CPP" >&6
2554     ac_preproc_ok=false
2555     for ac_c_preproc_warn_flag in '' yes
2556     do
2557     # Use a header file that comes with gcc, so configuring glibc
2558     # with a fresh cross-compiler works.
2559 johnpye 371 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2560     # <limits.h> exists even on freestanding compilers.
2561 johnpye 133 # On the NeXT, cc -E runs the code through the compiler's parser,
2562     # not just through cpp. "Syntax error" is here to catch this case.
2563     cat >conftest.$ac_ext <<_ACEOF
2564 ben.allan 545 #line $LINENO "configure"
2565 johnpye 133 /* confdefs.h. */
2566     _ACEOF
2567     cat confdefs.h >>conftest.$ac_ext
2568     cat >>conftest.$ac_ext <<_ACEOF
2569     /* end confdefs.h. */
2570 johnpye 371 #ifdef __STDC__
2571     # include <limits.h>
2572     #else
2573     # include <assert.h>
2574     #endif
2575 ben.allan 545 Syntax error
2576 johnpye 133 _ACEOF
2577     if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2578     (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2579     ac_status=$?
2580     grep -v '^ *+' conftest.er1 >conftest.err
2581     rm -f conftest.er1
2582     cat conftest.err >&5
2583     echo "$as_me:$LINENO: \$? = $ac_status" >&5
2584     (exit $ac_status); } >/dev/null; then
2585     if test -s conftest.err; then
2586     ac_cpp_err=$ac_c_preproc_warn_flag
2587     else
2588     ac_cpp_err=
2589     fi
2590     else
2591     ac_cpp_err=yes
2592     fi
2593     if test -z "$ac_cpp_err"; then
2594     :
2595     else
2596     echo "$as_me: failed program was:" >&5
2597     sed 's/^/| /' conftest.$ac_ext >&5
2598 aw0a 37
2599 johnpye 133 # Broken: fails on valid input.
2600     continue
2601     fi
2602     rm -f conftest.err conftest.$ac_ext
2603 aw0a 37
2604 johnpye 133 # OK, works on sane cases. Now check whether non-existent headers
2605     # can be detected and how.
2606     cat >conftest.$ac_ext <<_ACEOF
2607 ben.allan 545 #line $LINENO "configure"
2608 johnpye 133 /* confdefs.h. */
2609     _ACEOF
2610     cat confdefs.h >>conftest.$ac_ext
2611     cat >>conftest.$ac_ext <<_ACEOF
2612     /* end confdefs.h. */
2613     #include <ac_nonexistent.h>
2614     _ACEOF
2615     if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2616     (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2617     ac_status=$?
2618     grep -v '^ *+' conftest.er1 >conftest.err
2619     rm -f conftest.er1
2620     cat conftest.err >&5
2621     echo "$as_me:$LINENO: \$? = $ac_status" >&5
2622     (exit $ac_status); } >/dev/null; then
2623     if test -s conftest.err; then
2624     ac_cpp_err=$ac_c_preproc_warn_flag
2625     else
2626     ac_cpp_err=
2627     fi
2628     else
2629     ac_cpp_err=yes
2630     fi
2631     if test -z "$ac_cpp_err"; then
2632     # Broken: success on invalid input.
2633     continue
2634     else
2635     echo "$as_me: failed program was:" >&5
2636     sed 's/^/| /' conftest.$ac_ext >&5
2637    
2638     # Passes both tests.
2639     ac_preproc_ok=:
2640     break
2641     fi
2642     rm -f conftest.err conftest.$ac_ext
2643    
2644     done
2645     # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2646     rm -f conftest.err conftest.$ac_ext
2647     if $ac_preproc_ok; then
2648     :
2649     else
2650     { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
2651     See \`config.log' for more details." >&5
2652     echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
2653     See \`config.log' for more details." >&2;}
2654     { (exit 1); exit 1; }; }
2655     fi
2656    
2657     ac_ext=c
2658     ac_cpp='$CPP $CPPFLAGS'
2659     ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2660     ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2661     ac_compiler_gnu=$ac_cv_c_compiler_gnu
2662    
2663    
2664 aw0a 37 # Check whether --enable-optimization or --disable-optimization was given.
2665     if test "${enable_optimization+set}" = set; then
2666     enableval="$enable_optimization"
2667     asc_do_opt="$enableval"
2668     else
2669     asc_do_opt=no
2670 johnpye 133 fi;
2671 johnpye 364
2672 aw0a 37 if test "$asc_do_opt" = yes; then
2673     CFLAGS=`echo "-O $CFLAGS " | sed 's/ -g / /g'`
2674 johnpye 133 cat >>confdefs.h <<\_ACEOF
2675 aw0a 37 #define NDEBUG 1
2676 johnpye 133 _ACEOF
2677 aw0a 37
2678     else
2679     # Extract the first word of "end.o", so it can be a program name with args.
2680     set dummy end.o; ac_word=$2
2681 johnpye 133 echo "$as_me:$LINENO: checking for $ac_word" >&5
2682     echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2683     if test "${ac_cv_path_DEBUG_LIBS+set}" = set; then
2684     echo $ECHO_N "(cached) $ECHO_C" >&6
2685 aw0a 37 else
2686 johnpye 133 case $DEBUG_LIBS in
2687     [\\/]* | ?:[\\/]*)
2688 aw0a 37 ac_cv_path_DEBUG_LIBS="$DEBUG_LIBS" # Let the user override the test with a path.
2689     ;;
2690     *)
2691 johnpye 133 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2692     for as_dir in /usr/lib
2693     do
2694     IFS=$as_save_IFS
2695     test -z "$as_dir" && as_dir=.
2696     for ac_exec_ext in '' $ac_executable_extensions; do
2697     if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2698     ac_cv_path_DEBUG_LIBS="$as_dir/$ac_word$ac_exec_ext"
2699     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2700     break 2
2701     fi
2702     done
2703     done
2704    
2705 aw0a 37 ;;
2706     esac
2707     fi
2708 johnpye 133 DEBUG_LIBS=$ac_cv_path_DEBUG_LIBS
2709    
2710 aw0a 37 if test -n "$DEBUG_LIBS"; then
2711 johnpye 133 echo "$as_me:$LINENO: result: $DEBUG_LIBS" >&5
2712     echo "${ECHO_T}$DEBUG_LIBS" >&6
2713 aw0a 37 else
2714 johnpye 133 echo "$as_me:$LINENO: result: no" >&5
2715     echo "${ECHO_T}no" >&6
2716 aw0a 37 fi
2717    
2718     fi
2719    
2720 johnpye 133 echo "$as_me:$LINENO: checking for AIX" >&5
2721     echo $ECHO_N "checking for AIX... $ECHO_C" >&6
2722 aw0a 37
2723 johnpye 362
2724 johnpye 133 echo "$as_me:$LINENO: checking for egrep" >&5
2725     echo $ECHO_N "checking for egrep... $ECHO_C" >&6
2726     if test "${ac_cv_prog_egrep+set}" = set; then
2727     echo $ECHO_N "(cached) $ECHO_C" >&6
2728     else
2729     if echo a | (grep -E '(a|b)') >/dev/null 2>&1
2730     then ac_cv_prog_egrep='grep -E'
2731     else ac_cv_prog_egrep='egrep'
2732     fi
2733     fi
2734     echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
2735     echo "${ECHO_T}$ac_cv_prog_egrep" >&6
2736     EGREP=$ac_cv_prog_egrep
2737    
2738    
2739     cat >conftest.$ac_ext <<_ACEOF
2740 ben.allan 545 #line $LINENO "configure"
2741 johnpye 133 /* confdefs.h. */
2742     _ACEOF
2743     cat confdefs.h >>conftest.$ac_ext
2744     cat >>conftest.$ac_ext <<_ACEOF
2745     /* end confdefs.h. */
2746    
2747 aw0a 37 #ifdef _AIX
2748     yes
2749     #endif
2750    
2751 johnpye 133 _ACEOF
2752 aw0a 37 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2753 johnpye 133 $EGREP "yes" >/dev/null 2>&1; then
2754     asc_aix=yes ; cat >>confdefs.h <<\_ACEOF
2755 aw0a 37 #define _ALL_SOURCE 1
2756 johnpye 133 _ACEOF
2757    
2758 aw0a 37 else
2759     asc_aix=no
2760     fi
2761     rm -f conftest*
2762    
2763 johnpye 133 echo "$as_me:$LINENO: result: $asc_aix" >&5
2764     echo "${ECHO_T}$asc_aix" >&6
2765 aw0a 37
2766 johnpye 133 echo "$as_me:$LINENO: checking whether -D_HPUX_SOURCE is needed" >&5
2767     echo $ECHO_N "checking whether -D_HPUX_SOURCE is needed... $ECHO_C" >&6
2768     cat >conftest.$ac_ext <<_ACEOF
2769 ben.allan 545 #line $LINENO "configure"
2770 johnpye 133 /* confdefs.h. */
2771     _ACEOF
2772     cat confdefs.h >>conftest.$ac_ext
2773     cat >>conftest.$ac_ext <<_ACEOF
2774     /* end confdefs.h. */
2775 aw0a 37
2776     #ifdef __hpux
2777     #ifndef _HPUX_SOURCE
2778     yes
2779     #endif
2780     #endif
2781    
2782 johnpye 133 _ACEOF
2783 aw0a 37 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2784 johnpye 133 $EGREP "yes" >/dev/null 2>&1; then
2785     asc_hpux=yes ; cat >>confdefs.h <<\_ACEOF
2786 aw0a 37 #define _HPUX_SOURCE 1
2787 johnpye 133 _ACEOF
2788    
2789 aw0a 37 else
2790     asc_hpux=no
2791     fi
2792     rm -f conftest*
2793    
2794 johnpye 133 echo "$as_me:$LINENO: result: $asc_hpux" >&5
2795     echo "${ECHO_T}$asc_hpux" >&6
2796 aw0a 37
2797     # Check the size of pointers; if cross compiling, assume 32 bit pointers
2798 johnpye 133 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
2799     echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
2800     if test "${ac_cv_header_stdc+set}" = set; then
2801     echo $ECHO_N "(cached) $ECHO_C" >&6
2802 aw0a 37 else
2803 johnpye 133 cat >conftest.$ac_ext <<_ACEOF
2804 ben.allan 545 #line $LINENO "configure"
2805 johnpye 133 /* confdefs.h. */
2806     _ACEOF
2807     cat confdefs.h >>conftest.$ac_ext
2808     cat >>conftest.$ac_ext <<_ACEOF
2809     /* end confdefs.h. */
2810     #include <stdlib.h>
2811     #include <stdarg.h>
2812     #include <string.h>
2813     #include <float.h>
2814    
2815     int
2816     main ()
2817     {
2818    
2819     ;
2820     return 0;
2821     }
2822     _ACEOF
2823     rm -f conftest.$ac_objext
2824     if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2825 ben.allan 545 (eval $ac_compile) 2>&5
2826 johnpye 133 ac_status=$?
2827     echo "$as_me:$LINENO: \$? = $ac_status" >&5
2828     (exit $ac_status); } &&
2829 ben.allan 545 { ac_try='test -s conftest.$ac_objext'
2830 johnpye 133 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2831     (eval $ac_try) 2>&5
2832     ac_status=$?
2833     echo "$as_me:$LINENO: \$? = $ac_status" >&5
2834     (exit $ac_status); }; }; then
2835     ac_cv_header_stdc=yes
2836     else
2837     echo "$as_me: failed program was:" >&5
2838     sed 's/^/| /' conftest.$ac_ext >&5
2839    
2840     ac_cv_header_stdc=no
2841     fi
2842 ben.allan 545 rm -f conftest.$ac_objext conftest.$ac_ext
2843 johnpye 133
2844     if test $ac_cv_header_stdc = yes; then
2845     # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
2846     cat >conftest.$ac_ext <<_ACEOF
2847 ben.allan 545 #line $LINENO "configure"
2848 johnpye 133 /* confdefs.h. */
2849     _ACEOF
2850     cat confdefs.h >>conftest.$ac_ext
2851     cat >>conftest.$ac_ext <<_ACEOF
2852     /* end confdefs.h. */
2853     #include <string.h>
2854    
2855     _ACEOF
2856     if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2857     $EGREP "memchr" >/dev/null 2>&1; then
2858     :
2859     else
2860     ac_cv_header_stdc=no
2861     fi
2862     rm -f conftest*
2863    
2864     fi
2865    
2866     if test $ac_cv_header_stdc = yes; then
2867     # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
2868     cat >conftest.$ac_ext <<_ACEOF
2869 ben.allan 545 #line $LINENO "configure"
2870 johnpye 133 /* confdefs.h. */
2871     _ACEOF
2872     cat confdefs.h >>conftest.$ac_ext
2873     cat >>conftest.$ac_ext <<_ACEOF
2874     /* end confdefs.h. */
2875     #include <stdlib.h>
2876    
2877     _ACEOF
2878     if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2879     $EGREP "free" >/dev/null 2>&1; then
2880     :
2881     else
2882     ac_cv_header_stdc=no
2883     fi
2884     rm -f conftest*
2885    
2886     fi
2887    
2888     if test $ac_cv_header_stdc = yes; then
2889     # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
2890 aw0a 37 if test "$cross_compiling" = yes; then
2891 johnpye 133 :
2892 aw0a 37 else
2893 johnpye 133 cat >conftest.$ac_ext <<_ACEOF
2894 ben.allan 545 #line $LINENO "configure"
2895 johnpye 133 /* confdefs.h. */
2896     _ACEOF
2897     cat confdefs.h >>conftest.$ac_ext
2898     cat >>conftest.$ac_ext <<_ACEOF
2899     /* end confdefs.h. */
2900     #include <ctype.h>
2901     #if ((' ' & 0x0FF) == 0x020)
2902     # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
2903     # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
2904     #else
2905     # define ISLOWER(c) \
2906 ben.allan 545 (('a' <= (c) && (c) <= 'i') \
2907     || ('j' <= (c) && (c) <= 'r') \
2908     || ('s' <= (c) && (c) <= 'z'))
2909 johnpye 133 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
2910     #endif
2911    
2912     #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
2913     int
2914     main ()
2915     {
2916     int i;
2917     for (i = 0; i < 256; i++)
2918     if (XOR (islower (i), ISLOWER (i))
2919 ben.allan 545 || toupper (i) != TOUPPER (i))
2920 johnpye 133 exit(2);
2921     exit (0);
2922     }
2923     _ACEOF
2924     rm -f conftest$ac_exeext
2925     if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2926     (eval $ac_link) 2>&5
2927     ac_status=$?
2928     echo "$as_me:$LINENO: \$? = $ac_status" >&5
2929     (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
2930     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2931     (eval $ac_try) 2>&5
2932     ac_status=$?
2933     echo "$as_me:$LINENO: \$? = $ac_status" >&5
2934     (exit $ac_status); }; }; then
2935     :
2936     else
2937     echo "$as_me: program exited with status $ac_status" >&5
2938     echo "$as_me: failed program was:" >&5
2939     sed 's/^/| /' conftest.$ac_ext >&5
2940    
2941     ( exit $ac_status )
2942     ac_cv_header_stdc=no
2943     fi
2944 ben.allan 545 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
2945 johnpye 133 fi
2946     fi
2947     fi
2948     echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
2949     echo "${ECHO_T}$ac_cv_header_stdc" >&6
2950     if test $ac_cv_header_stdc = yes; then
2951    
2952     cat >>confdefs.h <<\_ACEOF
2953     #define STDC_HEADERS 1
2954     _ACEOF
2955    
2956     fi
2957    
2958     # On IRIX 5.3, sys/types and inttypes.h are conflicting.
2959    
2960    
2961    
2962    
2963    
2964    
2965    
2966    
2967    
2968     for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
2969 ben.allan 545 inttypes.h stdint.h unistd.h
2970 johnpye 133 do
2971     as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
2972     echo "$as_me:$LINENO: checking for $ac_header" >&5
2973     echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
2974     if eval "test \"\${$as_ac_Header+set}\" = set"; then
2975     echo $ECHO_N "(cached) $ECHO_C" >&6
2976     else
2977     cat >conftest.$ac_ext <<_ACEOF
2978 ben.allan 545 #line $LINENO "configure"
2979 johnpye 133 /* confdefs.h. */
2980     _ACEOF
2981     cat confdefs.h >>conftest.$ac_ext
2982     cat >>conftest.$ac_ext <<_ACEOF
2983     /* end confdefs.h. */
2984     $ac_includes_default
2985    
2986     #include <$ac_header>
2987     _ACEOF
2988     rm -f conftest.$ac_objext
2989     if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2990 ben.allan 545 (eval $ac_compile) 2>&5
2991 johnpye 133 ac_status=$?
2992     echo "$as_me:$LINENO: \$? = $ac_status" >&5
2993     (exit $ac_status); } &&
2994 ben.allan 545 { ac_try='test -s conftest.$ac_objext'
2995 johnpye 133 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2996     (eval $ac_try) 2>&5
2997     ac_status=$?
2998     echo "$as_me:$LINENO: \$? = $ac_status" >&5
2999     (exit $ac_status); }; }; then
3000     eval "$as_ac_Header=yes"
3001     else
3002     echo "$as_me: failed program was:" >&5
3003     sed 's/^/| /' conftest.$ac_ext >&5
3004    
3005     eval "$as_ac_Header=no"
3006     fi
3007 ben.allan 545 rm -f conftest.$ac_objext conftest.$ac_ext
3008 johnpye 133 fi
3009     echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3010     echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3011     if test `eval echo '${'$as_ac_Header'}'` = yes; then
3012     cat >>confdefs.h <<_ACEOF
3013     #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3014     _ACEOF
3015    
3016     fi
3017    
3018     done
3019    
3020    
3021     echo "$as_me:$LINENO: checking for void *" >&5
3022     echo $ECHO_N "checking for void *... $ECHO_C" >&6
3023     if test "${ac_cv_type_void_p+set}" = set; then
3024     echo $ECHO_N "(cached) $ECHO_C" >&6
3025     else
3026     cat >conftest.$ac_ext <<_ACEOF
3027 ben.allan 545 #line $LINENO "configure"
3028 johnpye 133 /* confdefs.h. */
3029     _ACEOF
3030     cat confdefs.h >>conftest.$ac_ext
3031     cat >>conftest.$ac_ext <<_ACEOF
3032     /* end confdefs.h. */
3033     $ac_includes_default
3034     int
3035     main ()
3036     {
3037     if ((void * *) 0)
3038     return 0;
3039     if (