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

Contents of /trunk/base/autotools/configure

Parent Directory Parent Directory | Revision Log Revision Log


Revision 353 - (show annotations) (download)
Fri Mar 3 04:47:21 2006 UTC (14 years, 4 months ago) by johnpye
File size: 333326 byte(s)
These are new versions from my MinGW work. Not sure if they need to be commited or not.
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.59.
4 #
5 # Copyright (C) 2003 Free Software Foundation, Inc.
6 # This configure script is free software; the Free Software Foundation
7 # gives unlimited permission to copy, distribute and modify it.
8 ## --------------------- ##
9 ## M4sh Initialization. ##
10 ## --------------------- ##
11
12 # Be Bourne compatible
13 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
14 emulate sh
15 NULLCMD=:
16 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
17 # is contrary to our usage. Disable this feature.
18 alias -g '${1+"$@"}'='"$@"'
19 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
20 set -o posix
21 fi
22 DUALCASE=1; export DUALCASE # for MKS sh
23
24 # Support unset when possible.
25 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
26 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 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
45 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 test -d ./-p && rmdir ./-p
222 as_mkdir_p=false
223 fi
224
225 as_executable_p="test -f"
226
227 # Sed expression to map a string onto a valid CPP name.
228 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
229
230 # Sed expression to map a string onto a valid variable name.
231 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
232
233
234 # IFS
235 # We need space, tab and new line, in precisely that order.
236 as_nl='
237 '
238 IFS=" $as_nl"
239
240 # CDPATH.
241 $as_unset CDPATH
242
243
244 # Name of the host.
245 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
246 # so uname gets run too.
247 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
248
249 exec 6>&1
250
251 #
252 # Initializations.
253 #
254 ac_default_prefix=/usr/local
255 ac_config_libobj_dir=.
256 cross_compiling=no
257 subdirs=
258 MFLAGS=
259 MAKEFLAGS=
260 SHELL=${CONFIG_SHELL-/bin/sh}
261
262 # Maximum number of lines to put in a shell here document.
263 # This variable seems obsolete. It should probably be removed, and
264 # only ac_max_sed_lines should be used.
265 : ${ac_max_here_lines=38}
266
267 # Identity of this package.
268 PACKAGE_NAME=
269 PACKAGE_TARNAME=
270 PACKAGE_VERSION=
271 PACKAGE_STRING=
272 PACKAGE_BUGREPORT=
273
274 ac_unique_file="../generic/compiler/ascParse.y"
275 # Factoring default headers for most tests.
276 ac_includes_default="\
277 #include <stdio.h>
278 #if HAVE_SYS_TYPES_H
279 # include <sys/types.h>
280 #endif
281 #if HAVE_SYS_STAT_H
282 # include <sys/stat.h>
283 #endif
284 #if STDC_HEADERS
285 # include <stdlib.h>
286 # include <stddef.h>
287 #else
288 # if HAVE_STDLIB_H
289 # include <stdlib.h>
290 # endif
291 #endif
292 #if HAVE_STRING_H
293 # if !STDC_HEADERS && HAVE_MEMORY_H
294 # include <memory.h>
295 # endif
296 # include <string.h>
297 #endif
298 #if HAVE_STRINGS_H
299 # include <strings.h>
300 #endif
301 #if HAVE_INTTYPES_H
302 # include <inttypes.h>
303 #else
304 # if HAVE_STDINT_H
305 # include <stdint.h>
306 # endif
307 #endif
308 #if HAVE_UNISTD_H
309 # include <unistd.h>
310 #endif"
311
312 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 asc_cc1 asc_cc2 asc_cc3 CPP DEBUG_LIBS EGREP YACC LEX LEXLIB LEX_OUTPUT_ROOT LIBOBJS TCLINCLUDE TCLLIB TCLDYNAMICLINKING F77 BLASLIB LPAKLIB LSODLIB 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 TCL_LIB TCL_HDR TK_LIB TK_HDR TKTABLE_LIB ASC_TK_LIBRARY ASC_TCL_LIBRARY 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'
313 ac_subst_files=''
314
315 # Initialize some variables set by options.
316 ac_init_help=
317 ac_init_version=false
318 # The variables have the same names as the options, with
319 # dashes changed to underlines.
320 cache_file=/dev/null
321 exec_prefix=NONE
322 no_create=
323 no_recursion=
324 prefix=NONE
325 program_prefix=NONE
326 program_suffix=NONE
327 program_transform_name=s,x,x,
328 silent=
329 site=
330 srcdir=
331 verbose=
332 x_includes=NONE
333 x_libraries=NONE
334
335 # Installation directory options.
336 # These are left unexpanded so users can "make install exec_prefix=/foo"
337 # and all the variables that are supposed to be based on exec_prefix
338 # by default will actually change.
339 # Use braces instead of parens because sh, perl, etc. also accept them.
340 bindir='${exec_prefix}/bin'
341 sbindir='${exec_prefix}/sbin'
342 libexecdir='${exec_prefix}/libexec'
343 datadir='${prefix}/share'
344 sysconfdir='${prefix}/etc'
345 sharedstatedir='${prefix}/com'
346 localstatedir='${prefix}/var'
347 libdir='${exec_prefix}/lib'
348 includedir='${prefix}/include'
349 oldincludedir='/usr/include'
350 infodir='${prefix}/info'
351 mandir='${prefix}/man'
352
353 ac_prev=
354 for ac_option
355 do
356 # If the previous option needs an argument, assign it.
357 if test -n "$ac_prev"; then
358 eval "$ac_prev=\$ac_option"
359 ac_prev=
360 continue
361 fi
362
363 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
364
365 # Accept the important Cygnus configure options, so we can diagnose typos.
366
367 case $ac_option in
368
369 -bindir | --bindir | --bindi | --bind | --bin | --bi)
370 ac_prev=bindir ;;
371 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
372 bindir=$ac_optarg ;;
373
374 -build | --build | --buil | --bui | --bu)
375 ac_prev=build_alias ;;
376 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
377 build_alias=$ac_optarg ;;
378
379 -cache-file | --cache-file | --cache-fil | --cache-fi \
380 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
381 ac_prev=cache_file ;;
382 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
383 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
384 cache_file=$ac_optarg ;;
385
386 --config-cache | -C)
387 cache_file=config.cache ;;
388
389 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
390 ac_prev=datadir ;;
391 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
392 | --da=*)
393 datadir=$ac_optarg ;;
394
395 -disable-* | --disable-*)
396 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
397 # Reject names that are not valid shell variable names.
398 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
399 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
400 { (exit 1); exit 1; }; }
401 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
402 eval "enable_$ac_feature=no" ;;
403
404 -enable-* | --enable-*)
405 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
406 # Reject names that are not valid shell variable names.
407 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
408 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
409 { (exit 1); exit 1; }; }
410 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
411 case $ac_option in
412 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
413 *) ac_optarg=yes ;;
414 esac
415 eval "enable_$ac_feature='$ac_optarg'" ;;
416
417 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
418 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
419 | --exec | --exe | --ex)
420 ac_prev=exec_prefix ;;
421 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
422 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
423 | --exec=* | --exe=* | --ex=*)
424 exec_prefix=$ac_optarg ;;
425
426 -gas | --gas | --ga | --g)
427 # Obsolete; use --with-gas.
428 with_gas=yes ;;
429
430 -help | --help | --hel | --he | -h)
431 ac_init_help=long ;;
432 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
433 ac_init_help=recursive ;;
434 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
435 ac_init_help=short ;;
436
437 -host | --host | --hos | --ho)
438 ac_prev=host_alias ;;
439 -host=* | --host=* | --hos=* | --ho=*)
440 host_alias=$ac_optarg ;;
441
442 -includedir | --includedir | --includedi | --included | --include \
443 | --includ | --inclu | --incl | --inc)
444 ac_prev=includedir ;;
445 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
446 | --includ=* | --inclu=* | --incl=* | --inc=*)
447 includedir=$ac_optarg ;;
448
449 -infodir | --infodir | --infodi | --infod | --info | --inf)
450 ac_prev=infodir ;;
451 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
452 infodir=$ac_optarg ;;
453
454 -libdir | --libdir | --libdi | --libd)
455 ac_prev=libdir ;;
456 -libdir=* | --libdir=* | --libdi=* | --libd=*)
457 libdir=$ac_optarg ;;
458
459 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
460 | --libexe | --libex | --libe)
461 ac_prev=libexecdir ;;
462 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
463 | --libexe=* | --libex=* | --libe=*)
464 libexecdir=$ac_optarg ;;
465
466 -localstatedir | --localstatedir | --localstatedi | --localstated \
467 | --localstate | --localstat | --localsta | --localst \
468 | --locals | --local | --loca | --loc | --lo)
469 ac_prev=localstatedir ;;
470 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
471 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
472 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
473 localstatedir=$ac_optarg ;;
474
475 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
476 ac_prev=mandir ;;
477 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
478 mandir=$ac_optarg ;;
479
480 -nfp | --nfp | --nf)
481 # Obsolete; use --without-fp.
482 with_fp=no ;;
483
484 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
485 | --no-cr | --no-c | -n)
486 no_create=yes ;;
487
488 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
489 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
490 no_recursion=yes ;;
491
492 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
493 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
494 | --oldin | --oldi | --old | --ol | --o)
495 ac_prev=oldincludedir ;;
496 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
497 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
498 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
499 oldincludedir=$ac_optarg ;;
500
501 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
502 ac_prev=prefix ;;
503 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
504 prefix=$ac_optarg ;;
505
506 -program-prefix | --program-prefix | --program-prefi | --program-pref \
507 | --program-pre | --program-pr | --program-p)
508 ac_prev=program_prefix ;;
509 -program-prefix=* | --program-prefix=* | --program-prefi=* \
510 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
511 program_prefix=$ac_optarg ;;
512
513 -program-suffix | --program-suffix | --program-suffi | --program-suff \
514 | --program-suf | --program-su | --program-s)
515 ac_prev=program_suffix ;;
516 -program-suffix=* | --program-suffix=* | --program-suffi=* \
517 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
518 program_suffix=$ac_optarg ;;
519
520 -program-transform-name | --program-transform-name \
521 | --program-transform-nam | --program-transform-na \
522 | --program-transform-n | --program-transform- \
523 | --program-transform | --program-transfor \
524 | --program-transfo | --program-transf \
525 | --program-trans | --program-tran \
526 | --progr-tra | --program-tr | --program-t)
527 ac_prev=program_transform_name ;;
528 -program-transform-name=* | --program-transform-name=* \
529 | --program-transform-nam=* | --program-transform-na=* \
530 | --program-transform-n=* | --program-transform-=* \
531 | --program-transform=* | --program-transfor=* \
532 | --program-transfo=* | --program-transf=* \
533 | --program-trans=* | --program-tran=* \
534 | --progr-tra=* | --program-tr=* | --program-t=*)
535 program_transform_name=$ac_optarg ;;
536
537 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
538 | -silent | --silent | --silen | --sile | --sil)
539 silent=yes ;;
540
541 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
542 ac_prev=sbindir ;;
543 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
544 | --sbi=* | --sb=*)
545 sbindir=$ac_optarg ;;
546
547 -sharedstatedir | --sharedstatedir | --sharedstatedi \
548 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
549 | --sharedst | --shareds | --shared | --share | --shar \
550 | --sha | --sh)
551 ac_prev=sharedstatedir ;;
552 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
553 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
554 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
555 | --sha=* | --sh=*)
556 sharedstatedir=$ac_optarg ;;
557
558 -site | --site | --sit)
559 ac_prev=site ;;
560 -site=* | --site=* | --sit=*)
561 site=$ac_optarg ;;
562
563 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
564 ac_prev=srcdir ;;
565 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
566 srcdir=$ac_optarg ;;
567
568 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
569 | --syscon | --sysco | --sysc | --sys | --sy)
570 ac_prev=sysconfdir ;;
571 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
572 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
573 sysconfdir=$ac_optarg ;;
574
575 -target | --target | --targe | --targ | --tar | --ta | --t)
576 ac_prev=target_alias ;;
577 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
578 target_alias=$ac_optarg ;;
579
580 -v | -verbose | --verbose | --verbos | --verbo | --verb)
581 verbose=yes ;;
582
583 -version | --version | --versio | --versi | --vers | -V)
584 ac_init_version=: ;;
585
586 -with-* | --with-*)
587 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
588 # Reject names that are not valid shell variable names.
589 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
590 { echo "$as_me: error: invalid package name: $ac_package" >&2
591 { (exit 1); exit 1; }; }
592 ac_package=`echo $ac_package| sed 's/-/_/g'`
593 case $ac_option in
594 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
595 *) ac_optarg=yes ;;
596 esac
597 eval "with_$ac_package='$ac_optarg'" ;;
598
599 -without-* | --without-*)
600 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
601 # Reject names that are not valid shell variable names.
602 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
603 { echo "$as_me: error: invalid package name: $ac_package" >&2
604 { (exit 1); exit 1; }; }
605 ac_package=`echo $ac_package | sed 's/-/_/g'`
606 eval "with_$ac_package=no" ;;
607
608 --x)
609 # Obsolete; use --with-x.
610 with_x=yes ;;
611
612 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
613 | --x-incl | --x-inc | --x-in | --x-i)
614 ac_prev=x_includes ;;
615 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
616 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
617 x_includes=$ac_optarg ;;
618
619 -x-libraries | --x-libraries | --x-librarie | --x-librari \
620 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
621 ac_prev=x_libraries ;;
622 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
623 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
624 x_libraries=$ac_optarg ;;
625
626 -*) { echo "$as_me: error: unrecognized option: $ac_option
627 Try \`$0 --help' for more information." >&2
628 { (exit 1); exit 1; }; }
629 ;;
630
631 *=*)
632 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
633 # Reject names that are not valid shell variable names.
634 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
635 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
636 { (exit 1); exit 1; }; }
637 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
638 eval "$ac_envvar='$ac_optarg'"
639 export $ac_envvar ;;
640
641 *)
642 # FIXME: should be removed in autoconf 3.0.
643 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
644 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
645 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
646 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
647 ;;
648
649 esac
650 done
651
652 if test -n "$ac_prev"; then
653 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
654 { echo "$as_me: error: missing argument to $ac_option" >&2
655 { (exit 1); exit 1; }; }
656 fi
657
658 # Be sure to have absolute paths.
659 for ac_var in exec_prefix prefix
660 do
661 eval ac_val=$`echo $ac_var`
662 case $ac_val in
663 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
664 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
665 { (exit 1); exit 1; }; };;
666 esac
667 done
668
669 # Be sure to have absolute paths.
670 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
671 localstatedir libdir includedir oldincludedir infodir mandir
672 do
673 eval ac_val=$`echo $ac_var`
674 case $ac_val in
675 [\\/$]* | ?:[\\/]* ) ;;
676 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
677 { (exit 1); exit 1; }; };;
678 esac
679 done
680
681 # There might be people who depend on the old broken behavior: `$host'
682 # used to hold the argument of --host etc.
683 # FIXME: To remove some day.
684 build=$build_alias
685 host=$host_alias
686 target=$target_alias
687
688 # FIXME: To remove some day.
689 if test "x$host_alias" != x; then
690 if test "x$build_alias" = x; then
691 cross_compiling=maybe
692 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
693 If a cross compiler is detected then cross compile mode will be used." >&2
694 elif test "x$build_alias" != "x$host_alias"; then
695 cross_compiling=yes
696 fi
697 fi
698
699 ac_tool_prefix=
700 test -n "$host_alias" && ac_tool_prefix=$host_alias-
701
702 test "$silent" = yes && exec 6>/dev/null
703
704
705 # Find the source files, if location was not specified.
706 if test -z "$srcdir"; then
707 ac_srcdir_defaulted=yes
708 # Try the directory containing this script, then its parent.
709 ac_confdir=`(dirname "$0") 2>/dev/null ||
710 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
711 X"$0" : 'X\(//\)[^/]' \| \
712 X"$0" : 'X\(//\)$' \| \
713 X"$0" : 'X\(/\)' \| \
714 . : '\(.\)' 2>/dev/null ||
715 echo X"$0" |
716 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
717 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
718 /^X\(\/\/\)$/{ s//\1/; q; }
719 /^X\(\/\).*/{ s//\1/; q; }
720 s/.*/./; q'`
721 srcdir=$ac_confdir
722 if test ! -r $srcdir/$ac_unique_file; then
723 srcdir=..
724 fi
725 else
726 ac_srcdir_defaulted=no
727 fi
728 if test ! -r $srcdir/$ac_unique_file; then
729 if test "$ac_srcdir_defaulted" = yes; then
730 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
731 { (exit 1); exit 1; }; }
732 else
733 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
734 { (exit 1); exit 1; }; }
735 fi
736 fi
737 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
738 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
739 { (exit 1); exit 1; }; }
740 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
741 ac_env_build_alias_set=${build_alias+set}
742 ac_env_build_alias_value=$build_alias
743 ac_cv_env_build_alias_set=${build_alias+set}
744 ac_cv_env_build_alias_value=$build_alias
745 ac_env_host_alias_set=${host_alias+set}
746 ac_env_host_alias_value=$host_alias
747 ac_cv_env_host_alias_set=${host_alias+set}
748 ac_cv_env_host_alias_value=$host_alias
749 ac_env_target_alias_set=${target_alias+set}
750 ac_env_target_alias_value=$target_alias
751 ac_cv_env_target_alias_set=${target_alias+set}
752 ac_cv_env_target_alias_value=$target_alias
753 ac_env_CC_set=${CC+set}
754 ac_env_CC_value=$CC
755 ac_cv_env_CC_set=${CC+set}
756 ac_cv_env_CC_value=$CC
757 ac_env_CFLAGS_set=${CFLAGS+set}
758 ac_env_CFLAGS_value=$CFLAGS
759 ac_cv_env_CFLAGS_set=${CFLAGS+set}
760 ac_cv_env_CFLAGS_value=$CFLAGS
761 ac_env_LDFLAGS_set=${LDFLAGS+set}
762 ac_env_LDFLAGS_value=$LDFLAGS
763 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
764 ac_cv_env_LDFLAGS_value=$LDFLAGS
765 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
766 ac_env_CPPFLAGS_value=$CPPFLAGS
767 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
768 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
769 ac_env_CPP_set=${CPP+set}
770 ac_env_CPP_value=$CPP
771 ac_cv_env_CPP_set=${CPP+set}
772 ac_cv_env_CPP_value=$CPP
773
774 #
775 # Report the --help message.
776 #
777 if test "$ac_init_help" = "long"; then
778 # Omit some internal or obsolete options to make the list less imposing.
779 # This message is too long to be a string in the A/UX 3.1 sh.
780 cat <<_ACEOF
781 \`configure' configures this package to adapt to many kinds of systems.
782
783 Usage: $0 [OPTION]... [VAR=VALUE]...
784
785 To assign environment variables (e.g., CC, CFLAGS...), specify them as
786 VAR=VALUE. See below for descriptions of some of the useful variables.
787
788 Defaults for the options are specified in brackets.
789
790 Configuration:
791 -h, --help display this help and exit
792 --help=short display options specific to this package
793 --help=recursive display the short help of all the included packages
794 -V, --version display version information and exit
795 -q, --quiet, --silent do not print \`checking...' messages
796 --cache-file=FILE cache test results in FILE [disabled]
797 -C, --config-cache alias for \`--cache-file=config.cache'
798 -n, --no-create do not create output files
799 --srcdir=DIR find the sources in DIR [configure dir or \`..']
800
801 _ACEOF
802
803 cat <<_ACEOF
804 Installation directories:
805 --prefix=PREFIX install architecture-independent files in PREFIX
806 [$ac_default_prefix]
807 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
808 [PREFIX]
809
810 By default, \`make install' will install all the files in
811 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
812 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
813 for instance \`--prefix=\$HOME'.
814
815 For better control, use the options below.
816
817 Fine tuning of the installation directories:
818 --bindir=DIR user executables [EPREFIX/bin]
819 --sbindir=DIR system admin executables [EPREFIX/sbin]
820 --libexecdir=DIR program executables [EPREFIX/libexec]
821 --datadir=DIR read-only architecture-independent data [PREFIX/share]
822 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
823 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
824 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
825 --libdir=DIR object code libraries [EPREFIX/lib]
826 --includedir=DIR C header files [PREFIX/include]
827 --oldincludedir=DIR C header files for non-gcc [/usr/include]
828 --infodir=DIR info documentation [PREFIX/info]
829 --mandir=DIR man documentation [PREFIX/man]
830 _ACEOF
831
832 cat <<\_ACEOF
833
834 X features:
835 --x-includes=DIR X include files are in DIR
836 --x-libraries=DIR X library files are in DIR
837
838 System types:
839 --build=BUILD configure for building on BUILD [guessed]
840 --host=HOST cross-compile to build programs to run on HOST [BUILD]
841 _ACEOF
842 fi
843
844 if test -n "$ac_init_help"; then
845
846 cat <<\_ACEOF
847
848 Optional Features:
849 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
850 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
851
852 ASCEND specific options
853
854 Compiler options:
855 --enable-gcc allow use of gcc if avaiable
856 --enable-optimization optimize the C code while building ascend
857
858 Optional Packages:
859 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
860 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
861 --with-x use the X Window System
862 --without-tcl Disable Tcl
863 --with-tclconfig=path Set location of tclConfig.sh
864 --with-tcl=path Set location of Tcl package
865 --with-tclincl=path Set location of Tcl include directory
866 --with-tcllib=path Set location of Tcl library directory
867 Fortran compiler and libraries:
868 --with-fortran=F77,F77LIBS
869 The location of your Fortran compiler and its
870 library files. For example, under SunOS:
871 --with-fortran='f77,-L/usr/lang/lib -lF77 -lM77'
872 To specify only the compiler or libraries, leave off
873 whatever is not needed:
874 --with-fortran=',-L/usr/lang/lib -lF77 -lM77'
875 Use '--without-fortran' to not link against
876 any Fortran libraries
877 --with-blas=BLASLIB The full path to the blas library.
878 Use '--with-blas=build' to build the blas library
879 from the sources that come with the distribution.
880 --with-linpack=LPAKLIB The full path to the linpack library.
881 Use '--with-linpack=build' to build the library
882 from the sources that come with the distribution.
883 --with-lsod=LSODLIB The full path to the lsod library.
884 Use '--with-lsod=build' to build the lsod library
885 from the sources that come with the distribution.
886 Generation of Makefiles:
887 --without-tkdir do not generate Makefiles in the TK subdir
888 --without-models do not generate Makefiles in the models subdir
889
890 Some influential environment variables:
891 CC C compiler command
892 CFLAGS C compiler flags
893 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
894 nonstandard directory <lib dir>
895 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
896 headers in a nonstandard directory <include dir>
897 CPP C preprocessor
898
899 Use these variables to override the choices made by `configure' or to help
900 it to find libraries and programs with nonstandard names/locations.
901
902 _ACEOF
903 fi
904
905 if test "$ac_init_help" = "recursive"; then
906 # If there are subdirs, report their specific --help.
907 ac_popdir=`pwd`
908 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
909 test -d $ac_dir || continue
910 ac_builddir=.
911
912 if test "$ac_dir" != .; then
913 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
914 # A "../" for each directory in $ac_dir_suffix.
915 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
916 else
917 ac_dir_suffix= ac_top_builddir=
918 fi
919
920 case $srcdir in
921 .) # No --srcdir option. We are building in place.
922 ac_srcdir=.
923 if test -z "$ac_top_builddir"; then
924 ac_top_srcdir=.
925 else
926 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
927 fi ;;
928 [\\/]* | ?:[\\/]* ) # Absolute path.
929 ac_srcdir=$srcdir$ac_dir_suffix;
930 ac_top_srcdir=$srcdir ;;
931 *) # Relative path.
932 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
933 ac_top_srcdir=$ac_top_builddir$srcdir ;;
934 esac
935
936 # Do not use `cd foo && pwd` to compute absolute paths, because
937 # the directories may not exist.
938 case `pwd` in
939 .) ac_abs_builddir="$ac_dir";;
940 *)
941 case "$ac_dir" in
942 .) ac_abs_builddir=`pwd`;;
943 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
944 *) ac_abs_builddir=`pwd`/"$ac_dir";;
945 esac;;
946 esac
947 case $ac_abs_builddir in
948 .) ac_abs_top_builddir=${ac_top_builddir}.;;
949 *)
950 case ${ac_top_builddir}. in
951 .) ac_abs_top_builddir=$ac_abs_builddir;;
952 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
953 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
954 esac;;
955 esac
956 case $ac_abs_builddir in
957 .) ac_abs_srcdir=$ac_srcdir;;
958 *)
959 case $ac_srcdir in
960 .) ac_abs_srcdir=$ac_abs_builddir;;
961 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
962 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
963 esac;;
964 esac
965 case $ac_abs_builddir in
966 .) ac_abs_top_srcdir=$ac_top_srcdir;;
967 *)
968 case $ac_top_srcdir in
969 .) ac_abs_top_srcdir=$ac_abs_builddir;;
970 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
971 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
972 esac;;
973 esac
974
975 cd $ac_dir
976 # Check for guested configure; otherwise get Cygnus style configure.
977 if test -f $ac_srcdir/configure.gnu; then
978 echo
979 $SHELL $ac_srcdir/configure.gnu --help=recursive
980 elif test -f $ac_srcdir/configure; then
981 echo
982 $SHELL $ac_srcdir/configure --help=recursive
983 elif test -f $ac_srcdir/configure.ac ||
984 test -f $ac_srcdir/configure.in; then
985 echo
986 $ac_configure --help
987 else
988 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
989 fi
990 cd $ac_popdir
991 done
992 fi
993
994 test -n "$ac_init_help" && exit 0
995 if $ac_init_version; then
996 cat <<\_ACEOF
997
998 Copyright (C) 2003 Free Software Foundation, Inc.
999 This configure script is free software; the Free Software Foundation
1000 gives unlimited permission to copy, distribute and modify it.
1001 _ACEOF
1002 exit 0
1003 fi
1004 exec 5>config.log
1005 cat >&5 <<_ACEOF
1006 This file contains any messages produced by compilers while
1007 running configure, to aid debugging if configure makes a mistake.
1008
1009 It was created by $as_me, which was
1010 generated by GNU Autoconf 2.59. Invocation command line was
1011
1012 $ $0 $@
1013
1014 _ACEOF
1015 {
1016 cat <<_ASUNAME
1017 ## --------- ##
1018 ## Platform. ##
1019 ## --------- ##
1020
1021 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1022 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1023 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1024 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1025 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1026
1027 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1028 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1029
1030 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1031 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1032 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1033 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1034 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1035 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1036 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1037
1038 _ASUNAME
1039
1040 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1041 for as_dir in $PATH
1042 do
1043 IFS=$as_save_IFS
1044 test -z "$as_dir" && as_dir=.
1045 echo "PATH: $as_dir"
1046 done
1047
1048 } >&5
1049
1050 cat >&5 <<_ACEOF
1051
1052
1053 ## ----------- ##
1054 ## Core tests. ##
1055 ## ----------- ##
1056
1057 _ACEOF
1058
1059
1060 # Keep a trace of the command line.
1061 # Strip out --no-create and --no-recursion so they do not pile up.
1062 # Strip out --silent because we don't want to record it for future runs.
1063 # Also quote any args containing shell meta-characters.
1064 # Make two passes to allow for proper duplicate-argument suppression.
1065 ac_configure_args=
1066 ac_configure_args0=
1067 ac_configure_args1=
1068 ac_sep=
1069 ac_must_keep_next=false
1070 for ac_pass in 1 2
1071 do
1072 for ac_arg
1073 do
1074 case $ac_arg in
1075 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1076 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1077 | -silent | --silent | --silen | --sile | --sil)
1078 continue ;;
1079 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1080 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1081 esac
1082 case $ac_pass in
1083 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1084 2)
1085 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1086 if test $ac_must_keep_next = true; then
1087 ac_must_keep_next=false # Got value, back to normal.
1088 else
1089 case $ac_arg in
1090 *=* | --config-cache | -C | -disable-* | --disable-* \
1091 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1092 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1093 | -with-* | --with-* | -without-* | --without-* | --x)
1094 case "$ac_configure_args0 " in
1095 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1096 esac
1097 ;;
1098 -* ) ac_must_keep_next=true ;;
1099 esac
1100 fi
1101 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1102 # Get rid of the leading space.
1103 ac_sep=" "
1104 ;;
1105 esac
1106 done
1107 done
1108 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1109 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1110
1111 # When interrupted or exit'd, cleanup temporary files, and complete
1112 # config.log. We remove comments because anyway the quotes in there
1113 # would cause problems or look ugly.
1114 # WARNING: Be sure not to use single quotes in there, as some shells,
1115 # such as our DU 5.0 friend, will then `close' the trap.
1116 trap 'exit_status=$?
1117 # Save into config.log some information that might help in debugging.
1118 {
1119 echo
1120
1121 cat <<\_ASBOX
1122 ## ---------------- ##
1123 ## Cache variables. ##
1124 ## ---------------- ##
1125 _ASBOX
1126 echo
1127 # The following way of writing the cache mishandles newlines in values,
1128 {
1129 (set) 2>&1 |
1130 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1131 *ac_space=\ *)
1132 sed -n \
1133 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1134 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1135 ;;
1136 *)
1137 sed -n \
1138 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1139 ;;
1140 esac;
1141 }
1142 echo
1143
1144 cat <<\_ASBOX
1145 ## ----------------- ##
1146 ## Output variables. ##
1147 ## ----------------- ##
1148 _ASBOX
1149 echo
1150 for ac_var in $ac_subst_vars
1151 do
1152 eval ac_val=$`echo $ac_var`
1153 echo "$ac_var='"'"'$ac_val'"'"'"
1154 done | sort
1155 echo
1156
1157 if test -n "$ac_subst_files"; then
1158 cat <<\_ASBOX
1159 ## ------------- ##
1160 ## Output files. ##
1161 ## ------------- ##
1162 _ASBOX
1163 echo
1164 for ac_var in $ac_subst_files
1165 do
1166 eval ac_val=$`echo $ac_var`
1167 echo "$ac_var='"'"'$ac_val'"'"'"
1168 done | sort
1169 echo
1170 fi
1171
1172 if test -s confdefs.h; then
1173 cat <<\_ASBOX
1174 ## ----------- ##
1175 ## confdefs.h. ##
1176 ## ----------- ##
1177 _ASBOX
1178 echo
1179 sed "/^$/d" confdefs.h | sort
1180 echo
1181 fi
1182 test "$ac_signal" != 0 &&
1183 echo "$as_me: caught signal $ac_signal"
1184 echo "$as_me: exit $exit_status"
1185 } >&5
1186 rm -f core *.core &&
1187 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1188 exit $exit_status
1189 ' 0
1190 for ac_signal in 1 2 13 15; do
1191 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1192 done
1193 ac_signal=0
1194
1195 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1196 rm -rf conftest* confdefs.h
1197 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1198 echo >confdefs.h
1199
1200 # Predefined preprocessor variables.
1201
1202 cat >>confdefs.h <<_ACEOF
1203 #define PACKAGE_NAME "$PACKAGE_NAME"
1204 _ACEOF
1205
1206
1207 cat >>confdefs.h <<_ACEOF
1208 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1209 _ACEOF
1210
1211
1212 cat >>confdefs.h <<_ACEOF
1213 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1214 _ACEOF
1215
1216
1217 cat >>confdefs.h <<_ACEOF
1218 #define PACKAGE_STRING "$PACKAGE_STRING"
1219 _ACEOF
1220
1221
1222 cat >>confdefs.h <<_ACEOF
1223 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1224 _ACEOF
1225
1226
1227 # Let the site file select an alternate cache file if it wants to.
1228 # Prefer explicitly selected file to automatically selected ones.
1229 if test -z "$CONFIG_SITE"; then
1230 if test "x$prefix" != xNONE; then
1231 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1232 else
1233 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1234 fi
1235 fi
1236 for ac_site_file in $CONFIG_SITE; do
1237 if test -r "$ac_site_file"; then
1238 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1239 echo "$as_me: loading site script $ac_site_file" >&6;}
1240 sed 's/^/| /' "$ac_site_file" >&5
1241 . "$ac_site_file"
1242 fi
1243 done
1244
1245
1246 # Check that the precious variables saved in the cache have kept the same
1247 # value.
1248 ac_cache_corrupted=false
1249 for ac_var in `(set) 2>&1 |
1250 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1251 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1252 eval ac_new_set=\$ac_env_${ac_var}_set
1253 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1254 eval ac_new_val="\$ac_env_${ac_var}_value"
1255 case $ac_old_set,$ac_new_set in
1256 set,)
1257 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1258 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1259 ac_cache_corrupted=: ;;
1260 ,set)
1261 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1262 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1263 ac_cache_corrupted=: ;;
1264 ,);;
1265 *)
1266 if test "x$ac_old_val" != "x$ac_new_val"; then
1267 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1268 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1269 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1270 echo "$as_me: former value: $ac_old_val" >&2;}
1271 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1272 echo "$as_me: current value: $ac_new_val" >&2;}
1273 ac_cache_corrupted=:
1274 fi;;
1275 esac
1276 # Pass precious variables to config.status.
1277 if test "$ac_new_set" = set; then
1278 case $ac_new_val in
1279 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1280 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1281 *) ac_arg=$ac_var=$ac_new_val ;;
1282 esac
1283 case " $ac_configure_args " in
1284 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1285 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1286 esac
1287 fi
1288 done
1289 if $ac_cache_corrupted; then
1290 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1291 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1292 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1293 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1294 { (exit 1); exit 1; }; }
1295 fi
1296
1297 ac_ext=c
1298 ac_cpp='$CPP $CPPFLAGS'
1299 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1300 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1301 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1302
1303
1304
1305
1306
1307
1308
1309
1310
1311
1312
1313
1314
1315
1316
1317
1318
1319
1320
1321
1322
1323 #--------------------------------------------------------------------
1324 # CVS Most Recent Revision Data
1325 # Put this data after AC_INIT since we want this information
1326 # to also appear in configure and autoconf, when creating
1327 # configure, strips all comments that appear in configure.in
1328 # before AC_INIT
1329 # $Revision: 1.38 $
1330 # $Date: 2003/11/23 19:36:39 $
1331 # $Author: ballan $
1332 # $Source: /afs/cs.cmu.edu/project/ascend/Repository/configure.in,v $
1333 #--------------------------------------------------------------------
1334
1335
1336 #--------------------------------------------------------------------
1337 # Where configure should look for files it needs.
1338 #--------------------------------------------------------------------
1339 ac_aux_dir=
1340 for ac_dir in config $srcdir/config; do
1341 if test -f $ac_dir/install-sh; then
1342 ac_aux_dir=$ac_dir
1343 ac_install_sh="$ac_aux_dir/install-sh -c"
1344 break
1345 elif test -f $ac_dir/install.sh; then
1346 ac_aux_dir=$ac_dir
1347 ac_install_sh="$ac_aux_dir/install.sh -c"
1348 break
1349 elif test -f $ac_dir/shtool; then
1350 ac_aux_dir=$ac_dir
1351 ac_install_sh="$ac_aux_dir/shtool install -c"
1352 break
1353 fi
1354 done
1355 if test -z "$ac_aux_dir"; then
1356 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in config $srcdir/config" >&5
1357 echo "$as_me: error: cannot find install-sh or install.sh in config $srcdir/config" >&2;}
1358 { (exit 1); exit 1; }; }
1359 fi
1360 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1361 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1362 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1363
1364
1365 #--------------------------------------------------------------------
1366 # Set the output variables prefix and exec_prefix that
1367 # determine where things will be installed.
1368 #--------------------------------------------------------------------
1369 if test "${prefix}" = "NONE"; then
1370 prefix=/usr/local
1371 fi
1372 if test "${exec_prefix}" = "NONE"; then
1373 exec_prefix=$prefix
1374 fi
1375
1376
1377 #--------------------------------------------------------------------
1378 # For the Fortran support libraries and the TCL/TK libraries
1379 # and header files, we unfortunately need the full path to
1380 # these files. The problem with having the full path is that
1381 # if the user moves the source tree, things will break unless
1382 # the user re-runs configure.
1383 #--------------------------------------------------------------------
1384
1385 #--------------------------------------------------------------------
1386 ##AWW
1387 ##AWW We put the .o files when compiling into a tree structure
1388 ##AWW relative to the directory in which we currently reside,
1389 ##AWW while the .c and .h files are in a similar tree structure
1390 ##AWW relative to the configure instruction we invoke. This
1391 ##AWW allows one to have separate .o files in their own tree when
1392 ##AWW compiling for different operating systems.
1393 ##AWW
1394 ##AWW Example 1 (same directories)
1395 ##AWW Current directory one is in: /home/me/trunk/base/unixAC213
1396 ##AWW Directory containing configure: /home/me/trunk/base/unixAC213
1397 ##AWW Command to invoke configure: ./configure
1398 ##AWW $ascpwd will be: /home/me/trunk/base/unixAC213
1399 ##AWW $srcdir will be: .
1400 ##AWW
1401 ##AWW Example 2 (different directories, abs path for command)
1402 ##AWW Current directory one is in: /home/me/trunk/base/newTree
1403 ##AWW Directory containing configure: /home/me/trunk/base/unixAC213
1404 ##AWW Command to invoke configure: /home/me/trunk/base/unixAC213/configure
1405 ##AWW $ascpwd will be: /home/me/trunk/base/newTree
1406 ##AWW $srcdir will be: /home/me/trunk/base/unixAC213
1407 ##AWW
1408 ##AWW Example 3 (different directories, rel path for command)
1409 ##AWW Same as Example 2
1410 ##AWW Command to invoke configure: ../unixAC213/configure
1411 ##AWW $ascpwd will be: /home/me/trunk/base/newTree (same as in Example 2)
1412 ##AWW $srcdir will be: ../unixAC213
1413 ##AWW
1414 ##AWW Key elements of the source tree are:
1415 ##AWW code/trunk/trunk/base/unixAC213/configure
1416 ##AWW code/trunk/trunk/base/generic
1417 ##AWW code/trunk/tcltk98
1418 ##AWW where $srcdir is pointing to /home/me/trunk/base/unixAC213, the folder
1419 ##AWW containing "configure"
1420 ##AWW
1421 ##AWW Configure is located at:
1422 ##AWW $srcdir/configure
1423 ##AWW while the .c/.h files one wants are in:
1424 ##AWW $srcdir/../generic/compiler
1425 ##AWW $srcdir/../generic/general
1426 ##AWW $srcdir/../generic/packages
1427 ##AWW $srcdir/../generic/solver
1428 ##AWW $srcdir/../generic/utilities
1429 ##AWW $srcdir/../../tcltk98/generic/interface
1430 ##AWW
1431 ##AWW Each of these directories contain Makefiles and possible
1432 ##AWW need to find .h files in the other directories. For example
1433 ##AWW the include statements are always of the form
1434 ##AWW #include compiler/slv3.h or
1435 ##AWW #include interface/SlvProc.h
1436 ##AWW
1437 ##AWW A safe include path should assume one is a directory with any
1438 ##AWW of these .h and .c files and one needs to find a .h file in
1439 ##AWW any other of them. The following paths should do it.
1440 ##AWW
1441 ##AWW If in compiler, general, packages, solver, utilities
1442 ##AWW .. for general, packages, etc
1443 ##AWW ../../../tcltk98/generic for interface
1444 ##AWW If in interface
1445 ##AWW .. for interface
1446 ##AWW ../../../base/generic for compiler, general, ..
1447 ##AWW
1448 #--------------------------------------------------------------------
1449 # The asc_include variable is (directory) path to the ascend4
1450 # SOURCE directory relative to the immediate subdirectories of
1451 # the ascend4 OBJECT directory. --rewrite - not clear.
1452 #AWW To compile a new ASCEND executable, one should move into the
1453 #AWW directory in which one wants the ASCEND object/executable
1454 #AWW to reside (call this objTree) and from there run
1455 #AWW ../base/unixAC213/configure.
1456 #AWW In the following code asc_include is set to the path from
1457
1458 ascpwd=`pwd`
1459 fullpathsrcdir=`cd $srcdir ; pwd`
1460
1461 case "$srcdir" in
1462 .)
1463 asc_include="../$srcdir"
1464 ;;
1465 /*)
1466 asc_include="$srcdir/../generic"
1467 ;;
1468 *)
1469 asc_include="$srcdir/../generic"
1470 ;;
1471 esac
1472
1473
1474 #--------------------------------------------------------------------
1475 # Do basic checks to determine
1476 # * if we have `ranlib'
1477 # * if we can create symbolic links
1478 # * if `make' sets the MAKE macro
1479 # * a bsd-compatible `install' program
1480 # If we use the install-sh script that comes with configure,
1481 # prefix it with the current directory so it'll work in
1482 # subdirectories. Unfortunately, it won't work if the user
1483 # moves the source tree.
1484 #--------------------------------------------------------------------
1485 if test -n "$ac_tool_prefix"; then
1486 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
1487 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
1488 echo "$as_me:$LINENO: checking for $ac_word" >&5
1489 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1490 if test "${ac_cv_prog_RANLIB+set}" = set; then
1491 echo $ECHO_N "(cached) $ECHO_C" >&6
1492 else
1493 if test -n "$RANLIB"; then
1494 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1495 else
1496 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1497 for as_dir in $PATH
1498 do
1499 IFS=$as_save_IFS
1500 test -z "$as_dir" && as_dir=.
1501 for ac_exec_ext in '' $ac_executable_extensions; do
1502 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1503 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
1504 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1505 break 2
1506 fi
1507 done
1508 done
1509
1510 fi
1511 fi
1512 RANLIB=$ac_cv_prog_RANLIB
1513 if test -n "$RANLIB"; then
1514 echo "$as_me:$LINENO: result: $RANLIB" >&5
1515 echo "${ECHO_T}$RANLIB" >&6
1516 else
1517 echo "$as_me:$LINENO: result: no" >&5
1518 echo "${ECHO_T}no" >&6
1519 fi
1520
1521 fi
1522 if test -z "$ac_cv_prog_RANLIB"; then
1523 ac_ct_RANLIB=$RANLIB
1524 # Extract the first word of "ranlib", so it can be a program name with args.
1525 set dummy ranlib; ac_word=$2
1526 echo "$as_me:$LINENO: checking for $ac_word" >&5
1527 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1528 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
1529 echo $ECHO_N "(cached) $ECHO_C" >&6
1530 else
1531 if test -n "$ac_ct_RANLIB"; then
1532 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
1533 else
1534 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1535 for as_dir in $PATH
1536 do
1537 IFS=$as_save_IFS
1538 test -z "$as_dir" && as_dir=.
1539 for ac_exec_ext in '' $ac_executable_extensions; do
1540 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1541 ac_cv_prog_ac_ct_RANLIB="ranlib"
1542 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1543 break 2
1544 fi
1545 done
1546 done
1547
1548 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
1549 fi
1550 fi
1551 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
1552 if test -n "$ac_ct_RANLIB"; then
1553 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
1554 echo "${ECHO_T}$ac_ct_RANLIB" >&6
1555 else
1556 echo "$as_me:$LINENO: result: no" >&5
1557 echo "${ECHO_T}no" >&6
1558 fi
1559
1560 RANLIB=$ac_ct_RANLIB
1561 else
1562 RANLIB="$ac_cv_prog_RANLIB"
1563 fi
1564
1565 echo "$as_me:$LINENO: checking whether ln -s works" >&5
1566 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
1567 LN_S=$as_ln_s
1568 if test "$LN_S" = "ln -s"; then
1569 echo "$as_me:$LINENO: result: yes" >&5
1570 echo "${ECHO_T}yes" >&6
1571 else
1572 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
1573 echo "${ECHO_T}no, using $LN_S" >&6
1574 fi
1575
1576 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1577 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1578 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
1579 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1580 echo $ECHO_N "(cached) $ECHO_C" >&6
1581 else
1582 cat >conftest.make <<\_ACEOF
1583 all:
1584 @echo 'ac_maketemp="$(MAKE)"'
1585 _ACEOF
1586 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1587 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1588 if test -n "$ac_maketemp"; then
1589 eval ac_cv_prog_make_${ac_make}_set=yes
1590 else
1591 eval ac_cv_prog_make_${ac_make}_set=no
1592 fi
1593 rm -f conftest.make
1594 fi
1595 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1596 echo "$as_me:$LINENO: result: yes" >&5
1597 echo "${ECHO_T}yes" >&6
1598 SET_MAKE=
1599 else
1600 echo "$as_me:$LINENO: result: no" >&5
1601 echo "${ECHO_T}no" >&6
1602 SET_MAKE="MAKE=${MAKE-make}"
1603 fi
1604
1605 # Find a good install program. We prefer a C program (faster),
1606 # so one script is as good as another. But avoid the broken or
1607 # incompatible versions:
1608 # SysV /etc/install, /usr/sbin/install
1609 # SunOS /usr/etc/install
1610 # IRIX /sbin/install
1611 # AIX /bin/install
1612 # AmigaOS /C/install, which installs bootblocks on floppy discs
1613 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1614 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1615 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1616 # OS/2's system install, which has a completely different semantic
1617 # ./install, which can be erroneously created by make from ./install.sh.
1618 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1619 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1620 if test -z "$INSTALL"; then
1621 if test "${ac_cv_path_install+set}" = set; then
1622 echo $ECHO_N "(cached) $ECHO_C" >&6
1623 else
1624 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1625 for as_dir in $PATH
1626 do
1627 IFS=$as_save_IFS
1628 test -z "$as_dir" && as_dir=.
1629 # Account for people who put trailing slashes in PATH elements.
1630 case $as_dir/ in
1631 ./ | .// | /cC/* | \
1632 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1633 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1634 /usr/ucb/* ) ;;
1635 *)
1636 # OSF1 and SCO ODT 3.0 have their own names for install.
1637 # Don't use installbsd from OSF since it installs stuff as root
1638 # by default.
1639 for ac_prog in ginstall scoinst install; do
1640 for ac_exec_ext in '' $ac_executable_extensions; do
1641 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1642 if test $ac_prog = install &&
1643 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1644 # AIX install. It has an incompatible calling convention.
1645 :
1646 elif test $ac_prog = install &&
1647 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1648 # program-specific install script used by HP pwplus--don't use.
1649 :
1650 else
1651 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1652 break 3
1653 fi
1654 fi
1655 done
1656 done
1657 ;;
1658 esac
1659 done
1660
1661
1662 fi
1663 if test "${ac_cv_path_install+set}" = set; then
1664 INSTALL=$ac_cv_path_install
1665 else
1666 # As a last resort, use the slow shell script. We don't cache a
1667 # path for INSTALL within a source directory, because that will
1668 # break other packages using the cache if that directory is
1669 # removed, or if the path is relative.
1670 INSTALL=$ac_install_sh
1671 fi
1672 fi
1673 echo "$as_me:$LINENO: result: $INSTALL" >&5
1674 echo "${ECHO_T}$INSTALL" >&6
1675
1676 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1677 # It thinks the first close brace ends the variable substitution.
1678 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1679
1680 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1681
1682 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1683
1684
1685 case "X$INSTALL" in
1686 X/*)
1687 ;;
1688 *)
1689 INSTALL="$ascpwd/$INSTALL"
1690 ;;
1691 esac
1692
1693
1694 #--------------------------------------------------------------------
1695 # Get the host type for various checks along the way
1696 #--------------------------------------------------------------------
1697 # Make sure we can run config.sub.
1698 $ac_config_sub sun4 >/dev/null 2>&1 ||
1699 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1700 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1701 { (exit 1); exit 1; }; }
1702
1703 echo "$as_me:$LINENO: checking build system type" >&5
1704 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1705 if test "${ac_cv_build+set}" = set; then
1706 echo $ECHO_N "(cached) $ECHO_C" >&6
1707 else
1708 ac_cv_build_alias=$build_alias
1709 test -z "$ac_cv_build_alias" &&
1710 ac_cv_build_alias=`$ac_config_guess`
1711 test -z "$ac_cv_build_alias" &&
1712 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1713 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1714 { (exit 1); exit 1; }; }
1715 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1716 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1717 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1718 { (exit 1); exit 1; }; }
1719
1720 fi
1721 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1722 echo "${ECHO_T}$ac_cv_build" >&6
1723 build=$ac_cv_build
1724 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1725 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1726 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1727
1728
1729 echo "$as_me:$LINENO: checking host system type" >&5
1730 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1731 if test "${ac_cv_host+set}" = set; then
1732 echo $ECHO_N "(cached) $ECHO_C" >&6
1733 else
1734 ac_cv_host_alias=$host_alias
1735 test -z "$ac_cv_host_alias" &&
1736 ac_cv_host_alias=$ac_cv_build_alias
1737 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1738 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1739 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1740 { (exit 1); exit 1; }; }
1741
1742 fi
1743 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1744 echo "${ECHO_T}$ac_cv_host" >&6
1745 host=$ac_cv_host
1746 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1747 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1748 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1749
1750
1751
1752
1753 #--------------------------------------------------------------------
1754 # Check for the C compiler: set CC and CFLAGS.
1755 # If the user does NOT specify `--enable-gcc' on the configure
1756 # command command line, set CC to either the envar CC or `cc'.
1757 # Call AC_PROG_CC which will use the value of CC (perhaps set
1758 # immediately above) or will check for `gcc' and then for `cc'
1759 # if `gcc' is not found.
1760 #
1761 # If we are using GCC, then assume it groks ANSI. Otherwise,
1762 # try to compile a small program using ANSI constructs with
1763 # CC. If this fails, try to locate each of the following:
1764 # c89 xlc acc
1765 # and if successful, see if it compiles an ANSI C program.
1766 # (Doing this in a loop would be ideal, but configure caches
1767 # the result of AC_CHECK_PROG and uses the cached value for
1768 # all but the first pass through the loop. This is also the
1769 # reason we have to use a different variable asc_cc1, asc_cc2
1770 # for each call to AC_CHECK_PROG.
1771 #
1772 # If we do not find an ANSI C compiler, print a warning and
1773 # use the first value of CC we tried.
1774 #--------------------------------------------------------------------
1775
1776 # Check whether --enable-gcc or --disable-gcc was given.
1777 if test "${enable_gcc+set}" = set; then
1778 enableval="$enable_gcc"
1779 asc_gcc_ok=$enableval
1780 else
1781 asc_gcc_ok=no
1782 fi;
1783 if test ! "$asc_gcc_ok" = "yes"; then
1784 CC=${CC-cc}
1785 fi
1786 asc_orig_cc=$CC
1787
1788 if test "X$asc_gcc_ok" = "Xyes" ; then
1789 asc_ansi_ok=yes
1790 else
1791 echo "$as_me:$LINENO: checking whether $CC understands const, void*, and function prototypes" >&5
1792 echo $ECHO_N "checking whether $CC understands const, void*, and function prototypes... $ECHO_C" >&6
1793 ac_ext=c
1794 ac_cpp='$CPP $CPPFLAGS'
1795 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1796 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1797 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1798 if test -n "$ac_tool_prefix"; then
1799 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1800 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1801 echo "$as_me:$LINENO: checking for $ac_word" >&5
1802 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1803 if test "${ac_cv_prog_CC+set}" = set; then
1804 echo $ECHO_N "(cached) $ECHO_C" >&6
1805 else
1806 if test -n "$CC"; then
1807 ac_cv_prog_CC="$CC" # Let the user override the test.
1808 else
1809 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1810 for as_dir in $PATH
1811 do
1812 IFS=$as_save_IFS
1813 test -z "$as_dir" && as_dir=.
1814 for ac_exec_ext in '' $ac_executable_extensions; do
1815 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1816 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1817 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1818 break 2
1819 fi
1820 done
1821 done
1822
1823 fi
1824 fi
1825 CC=$ac_cv_prog_CC
1826 if test -n "$CC"; then
1827 echo "$as_me:$LINENO: result: $CC" >&5
1828 echo "${ECHO_T}$CC" >&6
1829 else
1830 echo "$as_me:$LINENO: result: no" >&5
1831 echo "${ECHO_T}no" >&6
1832 fi
1833
1834 fi
1835 if test -z "$ac_cv_prog_CC"; then
1836 ac_ct_CC=$CC
1837 # Extract the first word of "gcc", so it can be a program name with args.
1838 set dummy gcc; ac_word=$2
1839 echo "$as_me:$LINENO: checking for $ac_word" >&5
1840 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1841 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1842 echo $ECHO_N "(cached) $ECHO_C" >&6
1843 else
1844 if test -n "$ac_ct_CC"; then
1845 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1846 else
1847 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1848 for as_dir in $PATH
1849 do
1850 IFS=$as_save_IFS
1851 test -z "$as_dir" && as_dir=.
1852 for ac_exec_ext in '' $ac_executable_extensions; do
1853 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1854 ac_cv_prog_ac_ct_CC="gcc"
1855 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1856 break 2
1857 fi
1858 done
1859 done
1860
1861 fi
1862 fi
1863 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1864 if test -n "$ac_ct_CC"; then
1865 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1866 echo "${ECHO_T}$ac_ct_CC" >&6
1867 else
1868 echo "$as_me:$LINENO: result: no" >&5
1869 echo "${ECHO_T}no" >&6
1870 fi
1871
1872 CC=$ac_ct_CC
1873 else
1874 CC="$ac_cv_prog_CC"
1875 fi
1876
1877 if test -z "$CC"; then
1878 if test -n "$ac_tool_prefix"; then
1879 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1880 set dummy ${ac_tool_prefix}cc; ac_word=$2
1881 echo "$as_me:$LINENO: checking for $ac_word" >&5
1882 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1883 if test "${ac_cv_prog_CC+set}" = set; then
1884 echo $ECHO_N "(cached) $ECHO_C" >&6
1885 else
1886 if test -n "$CC"; then
1887 ac_cv_prog_CC="$CC" # Let the user override the test.
1888 else
1889 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1890 for as_dir in $PATH
1891 do
1892 IFS=$as_save_IFS
1893 test -z "$as_dir" && as_dir=.
1894 for ac_exec_ext in '' $ac_executable_extensions; do
1895 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1896 ac_cv_prog_CC="${ac_tool_prefix}cc"
1897 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1898 break 2
1899 fi
1900 done
1901 done
1902
1903 fi
1904 fi
1905 CC=$ac_cv_prog_CC
1906 if test -n "$CC"; then
1907 echo "$as_me:$LINENO: result: $CC" >&5
1908 echo "${ECHO_T}$CC" >&6
1909 else
1910 echo "$as_me:$LINENO: result: no" >&5
1911 echo "${ECHO_T}no" >&6
1912 fi
1913
1914 fi
1915 if test -z "$ac_cv_prog_CC"; then
1916 ac_ct_CC=$CC
1917 # Extract the first word of "cc", so it can be a program name with args.
1918 set dummy cc; ac_word=$2
1919 echo "$as_me:$LINENO: checking for $ac_word" >&5
1920 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1921 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1922 echo $ECHO_N "(cached) $ECHO_C" >&6
1923 else
1924 if test -n "$ac_ct_CC"; then
1925 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1926 else
1927 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1928 for as_dir in $PATH
1929 do
1930 IFS=$as_save_IFS
1931 test -z "$as_dir" && as_dir=.
1932 for ac_exec_ext in '' $ac_executable_extensions; do
1933 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1934 ac_cv_prog_ac_ct_CC="cc"
1935 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1936 break 2
1937 fi
1938 done
1939 done
1940
1941 fi
1942 fi
1943 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1944 if test -n "$ac_ct_CC"; then
1945 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1946 echo "${ECHO_T}$ac_ct_CC" >&6
1947 else
1948 echo "$as_me:$LINENO: result: no" >&5
1949 echo "${ECHO_T}no" >&6
1950 fi
1951
1952 CC=$ac_ct_CC
1953 else
1954 CC="$ac_cv_prog_CC"
1955 fi
1956
1957 fi
1958 if test -z "$CC"; then
1959 # Extract the first word of "cc", so it can be a program name with args.
1960 set dummy cc; ac_word=$2
1961 echo "$as_me:$LINENO: checking for $ac_word" >&5
1962 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1963 if test "${ac_cv_prog_CC+set}" = set; then
1964 echo $ECHO_N "(cached) $ECHO_C" >&6
1965 else
1966 if test -n "$CC"; then
1967 ac_cv_prog_CC="$CC" # Let the user override the test.
1968 else
1969 ac_prog_rejected=no
1970 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1971 for as_dir in $PATH
1972 do
1973 IFS=$as_save_IFS
1974 test -z "$as_dir" && as_dir=.
1975 for ac_exec_ext in '' $ac_executable_extensions; do
1976 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1977 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1978 ac_prog_rejected=yes
1979 continue
1980 fi
1981 ac_cv_prog_CC="cc"
1982 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1983 break 2
1984 fi
1985 done
1986 done
1987
1988 if test $ac_prog_rejected = yes; then
1989 # We found a bogon in the path, so make sure we never use it.
1990 set dummy $ac_cv_prog_CC
1991 shift
1992 if test $# != 0; then
1993 # We chose a different compiler from the bogus one.
1994 # However, it has the same basename, so the bogon will be chosen
1995 # first if we set CC to just the basename; use the full file name.
1996 shift
1997 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1998 fi
1999 fi
2000 fi
2001 fi
2002 CC=$ac_cv_prog_CC
2003 if test -n "$CC"; then
2004 echo "$as_me:$LINENO: result: $CC" >&5
2005 echo "${ECHO_T}$CC" >&6
2006 else
2007 echo "$as_me:$LINENO: result: no" >&5
2008 echo "${ECHO_T}no" >&6
2009 fi
2010
2011 fi
2012 if test -z "$CC"; then
2013 if test -n "$ac_tool_prefix"; then
2014 for ac_prog in cl
2015 do
2016 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2017 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2018 echo "$as_me:$LINENO: checking for $ac_word" >&5
2019 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2020 if test "${ac_cv_prog_CC+set}" = set; then
2021 echo $ECHO_N "(cached) $ECHO_C" >&6
2022 else
2023 if test -n "$CC"; then
2024 ac_cv_prog_CC="$CC" # Let the user override the test.
2025 else
2026 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2027 for as_dir in $PATH
2028 do
2029 IFS=$as_save_IFS
2030 test -z "$as_dir" && as_dir=.
2031 for ac_exec_ext in '' $ac_executable_extensions; do
2032 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2033 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2034 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2035 break 2
2036 fi
2037 done
2038 done
2039
2040 fi
2041 fi
2042 CC=$ac_cv_prog_CC
2043 if test -n "$CC"; then
2044 echo "$as_me:$LINENO: result: $CC" >&5
2045 echo "${ECHO_T}$CC" >&6
2046 else
2047 echo "$as_me:$LINENO: result: no" >&5
2048 echo "${ECHO_T}no" >&6
2049 fi
2050
2051 test -n "$CC" && break
2052 done
2053 fi
2054 if test -z "$CC"; then
2055 ac_ct_CC=$CC
2056 for ac_prog in cl
2057 do
2058 # Extract the first word of "$ac_prog", so it can be a program name with args.
2059 set dummy $ac_prog; ac_word=$2
2060 echo "$as_me:$LINENO: checking for $ac_word" >&5
2061 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2062 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2063 echo $ECHO_N "(cached) $ECHO_C" >&6
2064 else
2065 if test -n "$ac_ct_CC"; then
2066 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2067 else
2068 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2069 for as_dir in $PATH
2070 do
2071 IFS=$as_save_IFS
2072 test -z "$as_dir" && as_dir=.
2073 for ac_exec_ext in '' $ac_executable_extensions; do
2074 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2075 ac_cv_prog_ac_ct_CC="$ac_prog"
2076 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2077 break 2
2078 fi
2079 done
2080 done
2081
2082 fi
2083 fi
2084 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2085 if test -n "$ac_ct_CC"; then
2086 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2087 echo "${ECHO_T}$ac_ct_CC" >&6
2088 else
2089 echo "$as_me:$LINENO: result: no" >&5
2090 echo "${ECHO_T}no" >&6
2091 fi
2092
2093 test -n "$ac_ct_CC" && break
2094 done
2095
2096 CC=$ac_ct_CC
2097 fi
2098
2099 fi
2100
2101
2102 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2103 See \`config.log' for more details." >&5
2104 echo "$as_me: error: no acceptable C compiler found in \$PATH
2105 See \`config.log' for more details." >&2;}
2106 { (exit 1); exit 1; }; }
2107
2108 # Provide some information about the compiler.
2109 echo "$as_me:$LINENO:" \
2110 "checking for C compiler version" >&5
2111 ac_compiler=`set X $ac_compile; echo $2`
2112 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2113 (eval $ac_compiler --version </dev/null >&5) 2>&5
2114 ac_status=$?
2115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2116 (exit $ac_status); }
2117 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2118 (eval $ac_compiler -v </dev/null >&5) 2>&5
2119 ac_status=$?
2120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2121 (exit $ac_status); }
2122 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2123 (eval $ac_compiler -V </dev/null >&5) 2>&5
2124 ac_status=$?
2125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2126 (exit $ac_status); }
2127
2128 cat >conftest.$ac_ext <<_ACEOF
2129 /* confdefs.h. */
2130 _ACEOF
2131 cat confdefs.h >>conftest.$ac_ext
2132 cat >>conftest.$ac_ext <<_ACEOF
2133 /* end confdefs.h. */
2134
2135 int
2136 main ()
2137 {
2138
2139 ;
2140 return 0;
2141 }
2142 _ACEOF
2143 ac_clean_files_save=$ac_clean_files
2144 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2145 # Try to create an executable without -o first, disregard a.out.
2146 # It will help us diagnose broken compilers, and finding out an intuition
2147 # of exeext.
2148 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2149 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2150 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2151 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2152 (eval $ac_link_default) 2>&5
2153 ac_status=$?
2154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2155 (exit $ac_status); }; then
2156 # Find the output, starting from the most likely. This scheme is
2157 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2158 # resort.
2159
2160 # Be careful to initialize this variable, since it used to be cached.
2161 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2162 ac_cv_exeext=
2163 # b.out is created by i960 compilers.
2164 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2165 do
2166 test -f "$ac_file" || continue
2167 case $ac_file in
2168 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2169 ;;
2170 conftest.$ac_ext )
2171 # This is the source file.
2172 ;;
2173 [ab].out )
2174 # We found the default executable, but exeext='' is most
2175 # certainly right.
2176 break;;
2177 *.* )
2178 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2179 # FIXME: I believe we export ac_cv_exeext for Libtool,
2180 # but it would be cool to find out if it's true. Does anybody
2181 # maintain Libtool? --akim.
2182 export ac_cv_exeext
2183 break;;
2184 * )
2185 break;;
2186 esac
2187 done
2188 else
2189 echo "$as_me: failed program was:" >&5
2190 sed 's/^/| /' conftest.$ac_ext >&5
2191
2192 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2193 See \`config.log' for more details." >&5
2194 echo "$as_me: error: C compiler cannot create executables
2195 See \`config.log' for more details." >&2;}
2196 { (exit 77); exit 77; }; }
2197 fi
2198
2199 ac_exeext=$ac_cv_exeext
2200 echo "$as_me:$LINENO: result: $ac_file" >&5
2201 echo "${ECHO_T}$ac_file" >&6
2202
2203 # Check the compiler produces executables we can run. If not, either
2204 # the compiler is broken, or we cross compile.
2205 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2206 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2207 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2208 # If not cross compiling, check that we can run a simple program.
2209 if test "$cross_compiling" != yes; then
2210 if { ac_try='./$ac_file'
2211 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2212 (eval $ac_try) 2>&5
2213 ac_status=$?
2214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2215 (exit $ac_status); }; }; then
2216 cross_compiling=no
2217 else
2218 if test "$cross_compiling" = maybe; then
2219 cross_compiling=yes
2220 else
2221 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2222 If you meant to cross compile, use \`--host'.
2223 See \`config.log' for more details." >&5
2224 echo "$as_me: error: cannot run C compiled programs.
2225 If you meant to cross compile, use \`--host'.
2226 See \`config.log' for more details." >&2;}
2227 { (exit 1); exit 1; }; }
2228 fi
2229 fi
2230 fi
2231 echo "$as_me:$LINENO: result: yes" >&5
2232 echo "${ECHO_T}yes" >&6
2233
2234 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2235 ac_clean_files=$ac_clean_files_save
2236 # Check the compiler produces executables we can run. If not, either
2237 # the compiler is broken, or we cross compile.
2238 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2239 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2240 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2241 echo "${ECHO_T}$cross_compiling" >&6
2242
2243 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2244 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2245 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2246 (eval $ac_link) 2>&5
2247 ac_status=$?
2248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2249 (exit $ac_status); }; then
2250 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2251 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2252 # work properly (i.e., refer to `conftest.exe'), while it won't with
2253 # `rm'.
2254 for ac_file in conftest.exe conftest conftest.*; do
2255 test -f "$ac_file" || continue
2256 case $ac_file in
2257 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2258 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2259 export ac_cv_exeext
2260 break;;
2261 * ) break;;
2262 esac
2263 done
2264 else
2265 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2266 See \`config.log' for more details." >&5
2267 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2268 See \`config.log' for more details." >&2;}
2269 { (exit 1); exit 1; }; }
2270 fi
2271
2272 rm -f conftest$ac_cv_exeext
2273 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2274 echo "${ECHO_T}$ac_cv_exeext" >&6
2275
2276 rm -f conftest.$ac_ext
2277 EXEEXT=$ac_cv_exeext
2278 ac_exeext=$EXEEXT
2279 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2280 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2281 if test "${ac_cv_objext+set}" = set; then
2282 echo $ECHO_N "(cached) $ECHO_C" >&6
2283 else
2284 cat >conftest.$ac_ext <<_ACEOF
2285 /* confdefs.h. */
2286 _ACEOF
2287 cat confdefs.h >>conftest.$ac_ext
2288 cat >>conftest.$ac_ext <<_ACEOF
2289 /* end confdefs.h. */
2290
2291 int
2292 main ()
2293 {
2294
2295 ;
2296 return 0;
2297 }
2298 _ACEOF
2299 rm -f conftest.o conftest.obj
2300 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2301 (eval $ac_compile) 2>&5
2302 ac_status=$?
2303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2304 (exit $ac_status); }; then
2305 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2306 case $ac_file in
2307 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2308 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2309 break;;
2310 esac
2311 done
2312 else
2313 echo "$as_me: failed program was:" >&5
2314 sed 's/^/| /' conftest.$ac_ext >&5
2315
2316 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2317 See \`config.log' for more details." >&5
2318 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2319 See \`config.log' for more details." >&2;}
2320 { (exit 1); exit 1; }; }
2321 fi
2322
2323 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2324 fi
2325 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2326 echo "${ECHO_T}$ac_cv_objext" >&6
2327 OBJEXT=$ac_cv_objext
2328 ac_objext=$OBJEXT
2329 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2330 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2331 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2332 echo $ECHO_N "(cached) $ECHO_C" >&6
2333 else
2334 cat >conftest.$ac_ext <<_ACEOF
2335 /* confdefs.h. */
2336 _ACEOF
2337 cat confdefs.h >>conftest.$ac_ext
2338 cat >>conftest.$ac_ext <<_ACEOF
2339 /* end confdefs.h. */
2340
2341 int
2342 main ()
2343 {
2344 #ifndef __GNUC__
2345 choke me
2346 #endif
2347
2348 ;
2349 return 0;
2350 }
2351 _ACEOF
2352 rm -f conftest.$ac_objext
2353 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2354 (eval $ac_compile) 2>conftest.er1
2355 ac_status=$?
2356 grep -v '^ *+' conftest.er1 >conftest.err
2357 rm -f conftest.er1
2358 cat conftest.err >&5
2359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2360 (exit $ac_status); } &&
2361 { ac_try='test -z "$ac_c_werror_flag"
2362 || test ! -s conftest.err'
2363 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2364 (eval $ac_try) 2>&5
2365 ac_status=$?
2366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2367 (exit $ac_status); }; } &&
2368 { ac_try='test -s conftest.$ac_objext'
2369 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2370 (eval $ac_try) 2>&5
2371 ac_status=$?
2372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2373 (exit $ac_status); }; }; then
2374 ac_compiler_gnu=yes
2375 else
2376 echo "$as_me: failed program was:" >&5
2377 sed 's/^/| /' conftest.$ac_ext >&5
2378
2379 ac_compiler_gnu=no
2380 fi
2381 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2382 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2383
2384 fi
2385 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2386 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2387 GCC=`test $ac_compiler_gnu = yes && echo yes`
2388 ac_test_CFLAGS=${CFLAGS+set}
2389 ac_save_CFLAGS=$CFLAGS
2390 CFLAGS="-g"
2391 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2392 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2393 if test "${ac_cv_prog_cc_g+set}" = set; then
2394 echo $ECHO_N "(cached) $ECHO_C" >&6
2395 else
2396 cat >conftest.$ac_ext <<_ACEOF
2397 /* confdefs.h. */
2398 _ACEOF
2399 cat confdefs.h >>conftest.$ac_ext
2400 cat >>conftest.$ac_ext <<_ACEOF
2401 /* end confdefs.h. */
2402
2403 int
2404 main ()
2405 {
2406
2407 ;
2408 return 0;
2409 }
2410 _ACEOF
2411 rm -f conftest.$ac_objext
2412 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2413 (eval $ac_compile) 2>conftest.er1
2414 ac_status=$?
2415 grep -v '^ *+' conftest.er1 >conftest.err
2416 rm -f conftest.er1
2417 cat conftest.err >&5
2418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2419 (exit $ac_status); } &&
2420 { ac_try='test -z "$ac_c_werror_flag"
2421 || test ! -s conftest.err'
2422 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2423 (eval $ac_try) 2>&5
2424 ac_status=$?
2425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2426 (exit $ac_status); }; } &&
2427 { ac_try='test -s conftest.$ac_objext'
2428 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2429 (eval $ac_try) 2>&5
2430 ac_status=$?
2431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2432 (exit $ac_status); }; }; then
2433 ac_cv_prog_cc_g=yes
2434 else
2435 echo "$as_me: failed program was:" >&5
2436 sed 's/^/| /' conftest.$ac_ext >&5
2437
2438 ac_cv_prog_cc_g=no
2439 fi
2440 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2441 fi
2442 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2443 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2444 if test "$ac_test_CFLAGS" = set; then
2445 CFLAGS=$ac_save_CFLAGS
2446 elif test $ac_cv_prog_cc_g = yes; then
2447 if test "$GCC" = yes; then
2448 CFLAGS="-g -O2"
2449 else
2450 CFLAGS="-g"
2451 fi
2452 else
2453 if test "$GCC" = yes; then
2454 CFLAGS="-O2"
2455 else
2456 CFLAGS=
2457 fi
2458 fi
2459 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2460 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2461 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2462 echo $ECHO_N "(cached) $ECHO_C" >&6
2463 else
2464 ac_cv_prog_cc_stdc=no
2465 ac_save_CC=$CC
2466 cat >conftest.$ac_ext <<_ACEOF
2467 /* confdefs.h. */
2468 _ACEOF
2469 cat confdefs.h >>conftest.$ac_ext
2470 cat >>conftest.$ac_ext <<_ACEOF
2471 /* end confdefs.h. */
2472 #include <stdarg.h>
2473 #include <stdio.h>
2474 #include <sys/types.h>
2475 #include <sys/stat.h>
2476 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2477 struct buf { int x; };
2478 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2479 static char *e (p, i)
2480 char **p;
2481 int i;
2482 {
2483 return p[i];
2484 }
2485 static char *f (char * (*g) (char **, int), char **p, ...)
2486 {
2487 char *s;
2488 va_list v;
2489 va_start (v,p);
2490 s = g (p, va_arg (v,int));
2491 va_end (v);
2492 return s;
2493 }
2494
2495 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2496 function prototypes and stuff, but not '\xHH' hex character constants.
2497 These don't provoke an error unfortunately, instead are silently treated
2498 as 'x'. The following induces an error, until -std1 is added to get
2499 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2500 array size at least. It's necessary to write '\x00'==0 to get something
2501 that's true only with -std1. */
2502 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2503
2504 int test (int i, double x);
2505 struct s1 {int (*f) (int a);};
2506 struct s2 {int (*f) (double a);};
2507 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2508 int argc;
2509 char **argv;
2510 int
2511 main ()
2512 {
2513 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2514 ;
2515 return 0;
2516 }
2517 _ACEOF
2518 # Don't try gcc -ansi; that turns off useful extensions and
2519 # breaks some systems' header files.
2520 # AIX -qlanglvl=ansi
2521 # Ultrix and OSF/1 -std1
2522 # HP-UX 10.20 and later -Ae
2523 # HP-UX older versions -Aa -D_HPUX_SOURCE
2524 # SVR4 -Xc -D__EXTENSIONS__
2525 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2526 do
2527 CC="$ac_save_CC $ac_arg"
2528 rm -f conftest.$ac_objext
2529 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2530 (eval $ac_compile) 2>conftest.er1
2531 ac_status=$?
2532 grep -v '^ *+' conftest.er1 >conftest.err
2533 rm -f conftest.er1
2534 cat conftest.err >&5
2535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2536 (exit $ac_status); } &&
2537 { ac_try='test -z "$ac_c_werror_flag"
2538 || test ! -s conftest.err'
2539 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2540 (eval $ac_try) 2>&5
2541 ac_status=$?
2542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2543 (exit $ac_status); }; } &&
2544 { ac_try='test -s conftest.$ac_objext'
2545 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2546 (eval $ac_try) 2>&5
2547 ac_status=$?
2548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2549 (exit $ac_status); }; }; then
2550 ac_cv_prog_cc_stdc=$ac_arg
2551 break
2552 else
2553 echo "$as_me: failed program was:" >&5
2554 sed 's/^/| /' conftest.$ac_ext >&5
2555
2556 fi
2557 rm -f conftest.err conftest.$ac_objext
2558 done
2559 rm -f conftest.$ac_ext conftest.$ac_objext
2560 CC=$ac_save_CC
2561
2562 fi
2563
2564 case "x$ac_cv_prog_cc_stdc" in
2565 x|xno)
2566 echo "$as_me:$LINENO: result: none needed" >&5
2567 echo "${ECHO_T}none needed" >&6 ;;
2568 *)
2569 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2570 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2571 CC="$CC $ac_cv_prog_cc_stdc" ;;
2572 esac
2573
2574 # Some people use a C++ compiler to compile C. Since we use `exit',
2575 # in C++ we need to declare it. In case someone uses the same compiler
2576 # for both compiling C and C++ we need to have the C++ compiler decide
2577 # the declaration of exit, since it's the most demanding environment.
2578 cat >conftest.$ac_ext <<_ACEOF
2579 #ifndef __cplusplus
2580 choke me
2581 #endif
2582 _ACEOF
2583 rm -f conftest.$ac_objext
2584 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2585 (eval $ac_compile) 2>conftest.er1
2586 ac_status=$?
2587 grep -v '^ *+' conftest.er1 >conftest.err
2588 rm -f conftest.er1
2589 cat conftest.err >&5
2590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2591 (exit $ac_status); } &&
2592 { ac_try='test -z "$ac_c_werror_flag"
2593 || test ! -s conftest.err'
2594 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2595 (eval $ac_try) 2>&5
2596 ac_status=$?
2597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2598 (exit $ac_status); }; } &&
2599 { ac_try='test -s conftest.$ac_objext'
2600 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2601 (eval $ac_try) 2>&5
2602 ac_status=$?
2603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2604 (exit $ac_status); }; }; then
2605 for ac_declaration in \
2606 '' \
2607 'extern "C" void std::exit (int) throw (); using std::exit;' \
2608 'extern "C" void std::exit (int); using std::exit;' \
2609 'extern "C" void exit (int) throw ();' \
2610 'extern "C" void exit (int);' \
2611 'void exit (int);'
2612 do
2613 cat >conftest.$ac_ext <<_ACEOF
2614 /* confdefs.h. */
2615 _ACEOF
2616 cat confdefs.h >>conftest.$ac_ext
2617 cat >>conftest.$ac_ext <<_ACEOF
2618 /* end confdefs.h. */
2619 $ac_declaration
2620 #include <stdlib.h>
2621 int
2622 main ()
2623 {
2624 exit (42);
2625 ;
2626 return 0;
2627 }
2628 _ACEOF
2629 rm -f conftest.$ac_objext
2630 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2631 (eval $ac_compile) 2>conftest.er1
2632 ac_status=$?
2633 grep -v '^ *+' conftest.er1 >conftest.err
2634 rm -f conftest.er1
2635 cat conftest.err >&5
2636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2637 (exit $ac_status); } &&
2638 { ac_try='test -z "$ac_c_werror_flag"
2639 || test ! -s conftest.err'
2640 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2641 (eval $ac_try) 2>&5
2642 ac_status=$?
2643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2644 (exit $ac_status); }; } &&
2645 { ac_try='test -s conftest.$ac_objext'
2646 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2647 (eval $ac_try) 2>&5
2648 ac_status=$?
2649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2650 (exit $ac_status); }; }; then
2651 :
2652 else
2653 echo "$as_me: failed program was:" >&5
2654 sed 's/^/| /' conftest.$ac_ext >&5
2655
2656 continue
2657 fi
2658 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2659 cat >conftest.$ac_ext <<_ACEOF
2660 /* confdefs.h. */
2661 _ACEOF
2662 cat confdefs.h >>conftest.$ac_ext
2663 cat >>conftest.$ac_ext <<_ACEOF
2664 /* end confdefs.h. */
2665 $ac_declaration
2666 int
2667 main ()
2668 {
2669 exit (42);
2670 ;
2671 return 0;
2672 }
2673 _ACEOF
2674 rm -f conftest.$ac_objext
2675 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2676 (eval $ac_compile) 2>conftest.er1
2677 ac_status=$?
2678 grep -v '^ *+' conftest.er1 >conftest.err
2679 rm -f conftest.er1
2680 cat conftest.err >&5
2681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2682 (exit $ac_status); } &&
2683 { ac_try='test -z "$ac_c_werror_flag"
2684 || test ! -s conftest.err'
2685 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2686 (eval $ac_try) 2>&5
2687 ac_status=$?
2688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2689 (exit $ac_status); }; } &&
2690 { ac_try='test -s conftest.$ac_objext'
2691 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2692 (eval $ac_try) 2>&5
2693 ac_status=$?
2694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2695 (exit $ac_status); }; }; then
2696 break
2697 else
2698 echo "$as_me: failed program was:" >&5
2699 sed 's/^/| /' conftest.$ac_ext >&5
2700
2701 fi
2702 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2703 done
2704 rm -f conftest*
2705 if test -n "$ac_declaration"; then
2706 echo '#ifdef __cplusplus' >>confdefs.h
2707 echo $ac_declaration >>confdefs.h
2708 echo '#endif' >>confdefs.h
2709 fi
2710
2711 else
2712 echo "$as_me: failed program was:" >&5
2713 sed 's/^/| /' conftest.$ac_ext >&5
2714
2715 fi
2716 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2717 ac_ext=c
2718 ac_cpp='$CPP $CPPFLAGS'
2719 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2720 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2721 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2722
2723
2724 cat >conftest.$ac_ext <<_ACEOF
2725 /* confdefs.h. */
2726 _ACEOF
2727 cat confdefs.h >>conftest.$ac_ext
2728 cat >>conftest.$ac_ext <<_ACEOF
2729 /* end confdefs.h. */
2730
2731 int
2732 main ()
2733 {
2734
2735 int tstproto(int arg1, char * arg2);
2736 int tstconst(const int arg1, const char *arg2);
2737 int tstvoidp(const int arg1, const void *arg2);
2738 ;
2739 return 0;
2740 }
2741 _ACEOF
2742 rm -f conftest.$ac_objext
2743 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2744 (eval $ac_compile) 2>conftest.er1
2745 ac_status=$?
2746 grep -v '^ *+' conftest.er1 >conftest.err
2747 rm -f conftest.er1
2748 cat conftest.err >&5
2749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2750 (exit $ac_status); } &&
2751 { ac_try='test -z "$ac_c_werror_flag"
2752 || test ! -s conftest.err'
2753 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2754 (eval $ac_try) 2>&5
2755 ac_status=$?
2756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2757 (exit $ac_status); }; } &&
2758 { ac_try='test -s conftest.$ac_objext'
2759 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2760 (eval $ac_try) 2>&5
2761 ac_status=$?
2762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2763 (exit $ac_status); }; }; then
2764 asc_ansi_ok=yes
2765 else
2766 echo "$as_me: failed program was:" >&5
2767 sed 's/^/| /' conftest.$ac_ext >&5
2768
2769 asc_ansi_ok=no
2770 fi
2771 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2772 echo "$as_me:$LINENO: result: $asc_ansi_ok" >&5
2773 echo "${ECHO_T}$asc_ansi_ok" >&6
2774 fi
2775
2776 if test "$asc_ansi_ok" = no ; then
2777 # Extract the first word of "c89", so it can be a program name with args.
2778 set dummy c89; ac_word=$2
2779 echo "$as_me:$LINENO: checking for $ac_word" >&5
2780 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2781 if test "${ac_cv_prog_asc_cc1+set}" = set; then
2782 echo $ECHO_N "(cached) $ECHO_C" >&6
2783 else
2784 if test -n "$asc_cc1"; then
2785 ac_cv_prog_asc_cc1="$asc_cc1" # Let the user override the test.
2786 else
2787 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2788 for as_dir in $PATH
2789 do
2790 IFS=$as_save_IFS
2791 test -z "$as_dir" && as_dir=.
2792 for ac_exec_ext in '' $ac_executable_extensions; do
2793 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2794 ac_cv_prog_asc_cc1="c89"
2795 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2796 break 2
2797 fi
2798 done
2799 done
2800
2801 test -z "$ac_cv_prog_asc_cc1" && ac_cv_prog_asc_cc1="NONE"
2802 fi
2803 fi
2804 asc_cc1=$ac_cv_prog_asc_cc1
2805 if test -n "$asc_cc1"; then
2806 echo "$as_me:$LINENO: result: $asc_cc1" >&5
2807 echo "${ECHO_T}$asc_cc1" >&6
2808 else
2809 echo "$as_me:$LINENO: result: no" >&5
2810 echo "${ECHO_T}no" >&6
2811 fi
2812
2813 if test ! "$asc_cc1" = NONE ; then
2814 CC=$asc_cc1
2815 echo "$as_me:$LINENO: checking whether $CC understands const, void*, and function prototypes" >&5
2816 echo $ECHO_N "checking whether $CC understands const, void*, and function prototypes... $ECHO_C" >&6
2817 cat >conftest.$ac_ext <<_ACEOF
2818 /* confdefs.h. */
2819 _ACEOF
2820 cat confdefs.h >>conftest.$ac_ext
2821 cat >>conftest.$ac_ext <<_ACEOF
2822 /* end confdefs.h. */
2823
2824 int
2825 main ()
2826 {
2827
2828 int tstproto(int arg1, char * arg2);
2829 int tstconst(const int arg1, const char *arg2);
2830 int tstvoidp(const int arg1, const void *arg2);
2831 ;
2832 return 0;
2833 }
2834 _ACEOF
2835 rm -f conftest.$ac_objext
2836 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2837 (eval $ac_compile) 2>conftest.er1
2838 ac_status=$?
2839 grep -v '^ *+' conftest.er1 >conftest.err
2840 rm -f conftest.er1
2841 cat conftest.err >&5
2842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2843 (exit $ac_status); } &&
2844 { ac_try='test -z "$ac_c_werror_flag"
2845 || test ! -s conftest.err'
2846 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2847 (eval $ac_try) 2>&5
2848 ac_status=$?
2849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2850 (exit $ac_status); }; } &&
2851 { ac_try='test -s conftest.$ac_objext'
2852 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2853 (eval $ac_try) 2>&5
2854 ac_status=$?
2855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2856 (exit $ac_status); }; }; then
2857 asc_ansi_ok=yes
2858 else
2859 echo "$as_me: failed program was:" >&5
2860 sed 's/^/| /' conftest.$ac_ext >&5
2861
2862 asc_ansi_ok=no
2863 fi
2864 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2865 echo "$as_me:$LINENO: result: $asc_ansi_ok" >&5
2866 echo "${ECHO_T}$asc_ansi_ok" >&6
2867 fi
2868 fi
2869
2870 if test "$asc_ansi_ok" = no ; then
2871 # Extract the first word of "xlc", so it can be a program name with args.
2872 set dummy xlc; ac_word=$2
2873 echo "$as_me:$LINENO: checking for $ac_word" >&5
2874 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2875 if test "${ac_cv_prog_asc_cc2+set}" = set; then
2876 echo $ECHO_N "(cached) $ECHO_C" >&6
2877 else
2878 if test -n "$asc_cc2"; then
2879 ac_cv_prog_asc_cc2="$asc_cc2" # Let the user override the test.
2880 else
2881 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2882 for as_dir in $PATH
2883 do
2884 IFS=$as_save_IFS
2885 test -z "$as_dir" && as_dir=.
2886 for ac_exec_ext in '' $ac_executable_extensions; do
2887 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2888 ac_cv_prog_asc_cc2="xlc"
2889 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2890 break 2
2891 fi
2892 done
2893 done
2894
2895 test -z "$ac_cv_prog_asc_cc2" && ac_cv_prog_asc_cc2="NONE"
2896 fi
2897 fi
2898 asc_cc2=$ac_cv_prog_asc_cc2
2899 if test -n "$asc_cc2"; then
2900 echo "$as_me:$LINENO: result: $asc_cc2" >&5
2901 echo "${ECHO_T}$asc_cc2" >&6
2902 else
2903 echo "$as_me:$LINENO: result: no" >&5
2904 echo "${ECHO_T}no" >&6
2905 fi
2906
2907 if test ! "$asc_cc2" = NONE ; then
2908 CC=$asc_cc2
2909 echo "$as_me:$LINENO: checking whether $CC understands const, void*, and function prototypes" >&5
2910 echo $ECHO_N "checking whether $CC understands const, void*, and function prototypes... $ECHO_C" >&6
2911 cat >conftest.$ac_ext <<_ACEOF
2912 /* confdefs.h. */
2913 _ACEOF
2914 cat confdefs.h >>conftest.$ac_ext
2915 cat >>conftest.$ac_ext <<_ACEOF
2916 /* end confdefs.h. */
2917
2918 int
2919 main ()
2920 {
2921
2922 int tstproto(int arg1, char * arg2);
2923 int tstconst(const int arg1, const char *arg2);
2924 int tstvoidp(const int arg1, const void *arg2);
2925 ;
2926 return 0;
2927 }
2928 _ACEOF
2929 rm -f conftest.$ac_objext
2930 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2931 (eval $ac_compile) 2>conftest.er1
2932 ac_status=$?
2933 grep -v '^ *+' conftest.er1 >conftest.err
2934 rm -f conftest.er1
2935 cat conftest.err >&5
2936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2937 (exit $ac_status); } &&
2938 { ac_try='test -z "$ac_c_werror_flag"
2939 || test ! -s conftest.err'
2940 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2941 (eval $ac_try) 2>&5
2942 ac_status=$?
2943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2944 (exit $ac_status); }; } &&
2945 { ac_try='test -s conftest.$ac_objext'
2946 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2947 (eval $ac_try) 2>&5
2948 ac_status=$?
2949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2950 (exit $ac_status); }; }; then
2951 asc_ansi_ok=yes
2952 else
2953 echo "$as_me: failed program was:" >&5
2954 sed 's/^/| /' conftest.$ac_ext >&5
2955
2956 asc_ansi_ok=no
2957 fi
2958 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2959 echo "$as_me:$LINENO: result: $asc_ansi_ok" >&5
2960 echo "${ECHO_T}$asc_ansi_ok" >&6
2961 fi
2962 fi
2963
2964 if test "$asc_ansi_ok" = no ; then
2965 # Extract the first word of "acc", so it can be a program name with args.
2966 set dummy acc; ac_word=$2
2967 echo "$as_me:$LINENO: checking for $ac_word" >&5
2968 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2969 if test "${ac_cv_prog_asc_cc3+set}" = set; then
2970 echo $ECHO_N "(cached) $ECHO_C" >&6
2971 else
2972 if test -n "$asc_cc3"; then
2973 ac_cv_prog_asc_cc3="$asc_cc3" # Let the user override the test.
2974 else
2975 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2976 for as_dir in $PATH
2977 do
2978 IFS=$as_save_IFS
2979 test -z "$as_dir" && as_dir=.
2980 for ac_exec_ext in '' $ac_executable_extensions; do
2981 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2982 ac_cv_prog_asc_cc3="acc"
2983 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2984 break 2
2985 fi
2986 done
2987 done
2988
2989 test -z "$ac_cv_prog_asc_cc3" && ac_cv_prog_asc_cc3="NONE"
2990 fi
2991 fi
2992 asc_cc3=$ac_cv_prog_asc_cc3
2993 if test -n "$asc_cc3"; then
2994 echo "$as_me:$LINENO: result: $asc_cc3" >&5
2995 echo "${ECHO_T}$asc_cc3" >&6
2996 else
2997 echo "$as_me:$LINENO: result: no" >&5
2998 echo "${ECHO_T}no" >&6
2999 fi
3000
3001 if test ! "$asc_cc3" = NONE ; then
3002 CC=$asc_cc3
3003 echo "$as_me:$LINENO: checking whether $CC understands const, void*, and function prototypes" >&5
3004 echo $ECHO_N "checking whether $CC understands const, void*, and function prototypes... $ECHO_C" >&6
3005 cat >conftest.$ac_ext <<_ACEOF
3006 /* confdefs.h. */
3007 _ACEOF
3008 cat confdefs.h >>conftest.$ac_ext
3009 cat >>conftest.$ac_ext <<_ACEOF
3010 /* end confdefs.h. */
3011
3012 int
3013 main ()
3014 {
3015
3016 int tstproto(int arg1, char * arg2);
3017 int tstconst(const int arg1, const char *arg2);
3018 int tstvoidp(const int arg1, const void *arg2);
3019 ;
3020 return 0;
3021 }
3022 _ACEOF
3023 rm -f conftest.$ac_objext
3024 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3025 (eval $ac_compile) 2>conftest.er1
3026 ac_status=$?
3027 grep -v '^ *+' conftest.er1 >conftest.err
3028 rm -f conftest.er1
3029 cat conftest.err >&5
3030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3031 (exit $ac_status); } &&
3032 { ac_try='test -z "$ac_c_werror_flag"
3033 || test ! -s conftest.err'
3034 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3035 (eval $ac_try) 2>&5
3036 ac_status=$?
3037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3038 (exit $ac_status); }; } &&
3039 { ac_try='test -s conftest.$ac_objext'
3040 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3041 (eval $ac_try) 2>&5
3042 ac_status=$?
3043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3044 (exit $ac_status); }; }; then
3045 asc_ansi_ok=yes
3046 else
3047 echo "$as_me: failed program was:" >&5
3048 sed 's/^/| /' conftest.$ac_ext >&5
3049
3050 asc_ansi_ok=no
3051 fi
3052 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3053 echo "$as_me:$LINENO: result: $asc_ansi_ok" >&5
3054 echo "${ECHO_T}$asc_ansi_ok" >&6
3055 fi
3056 fi
3057
3058 ac_ext=c
3059 ac_cpp='$CPP $CPPFLAGS'
3060 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3061 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3062 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3063 if test -n "$ac_tool_prefix"; then
3064 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3065 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3066 echo "$as_me:$LINENO: checking for $ac_word" >&5
3067 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3068 if test "${ac_cv_prog_CC+set}" = set; then
3069 echo $ECHO_N "(cached) $ECHO_C" >&6
3070 else
3071 if test -n "$CC"; then
3072 ac_cv_prog_CC="$CC" # Let the user override the test.
3073 else
3074 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3075 for as_dir in $PATH
3076 do
3077 IFS=$as_save_IFS
3078 test -z "$as_dir" && as_dir=.
3079 for ac_exec_ext in '' $ac_executable_extensions; do
3080 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3081 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3082 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3083 break 2
3084 fi
3085 done
3086 done
3087
3088 fi
3089 fi
3090 CC=$ac_cv_prog_CC
3091 if test -n "$CC"; then
3092 echo "$as_me:$LINENO: result: $CC" >&5
3093 echo "${ECHO_T}$CC" >&6
3094 else
3095 echo "$as_me:$LINENO: result: no" >&5
3096 echo "${ECHO_T}no" >&6
3097 fi
3098
3099 fi
3100 if test -z "$ac_cv_prog_CC"; then
3101 ac_ct_CC=$CC
3102 # Extract the first word of "gcc", so it can be a program name with args.
3103 set dummy gcc; ac_word=$2
3104 echo "$as_me:$LINENO: checking for $ac_word" >&5
3105 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3106 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3107 echo $ECHO_N "(cached) $ECHO_C" >&6
3108 else
3109 if test -n "$ac_ct_CC"; then
3110 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3111 else
3112 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3113 for as_dir in $PATH
3114 do
3115 IFS=$as_save_IFS
3116 test -z "$as_dir" && as_dir=.
3117 for ac_exec_ext in '' $ac_executable_extensions; do
3118 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3119 ac_cv_prog_ac_ct_CC="gcc"
3120 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3121 break 2
3122 fi
3123 done
3124 done
3125
3126 fi
3127 fi
3128 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3129 if test -n "$ac_ct_CC"; then
3130 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3131 echo "${ECHO_T}$ac_ct_CC" >&6
3132 else
3133 echo "$as_me:$LINENO: result: no" >&5
3134 echo "${ECHO_T}no" >&6
3135 fi
3136
3137 CC=$ac_ct_CC
3138 else
3139 CC="$ac_cv_prog_CC"
3140 fi
3141
3142 if test -z "$CC"; then
3143 if test -n "$ac_tool_prefix"; then
3144 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3145 set dummy ${ac_tool_prefix}cc; ac_word=$2
3146 echo "$as_me:$LINENO: checking for $ac_word" >&5
3147 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3148 if test "${ac_cv_prog_CC+set}" = set; then
3149 echo $ECHO_N "(cached) $ECHO_C" >&6
3150 else
3151 if test -n "$CC"; then
3152 ac_cv_prog_CC="$CC" # Let the user override the test.
3153 else
3154 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3155 for as_dir in $PATH
3156 do
3157 IFS=$as_save_IFS
3158 test -z "$as_dir" && as_dir=.
3159 for ac_exec_ext in '' $ac_executable_extensions; do
3160 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3161 ac_cv_prog_CC="${ac_tool_prefix}cc"
3162 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3163 break 2
3164 fi
3165 done
3166 done
3167
3168 fi
3169 fi
3170 CC=$ac_cv_prog_CC
3171 if test -n "$CC"; then
3172 echo "$as_me:$LINENO: result: $CC" >&5
3173 echo "${ECHO_T}$CC" >&6
3174 else
3175 echo "$as_me:$LINENO: result: no" >&5
3176 echo "${ECHO_T}no" >&6
3177 fi
3178
3179 fi
3180 if test -z "$ac_cv_prog_CC"; then
3181 ac_ct_CC=$CC
3182 # Extract the first word of "cc", so it can be a program name with args.
3183 set dummy cc; ac_word=$2
3184 echo "$as_me:$LINENO: checking for $ac_word" >&5
3185 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3186 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3187 echo $ECHO_N "(cached) $ECHO_C" >&6
3188 else
3189 if test -n "$ac_ct_CC"; then
3190 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3191 else
3192 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3193 for as_dir in $PATH
3194 do
3195 IFS=$as_save_IFS
3196 test -z "$as_dir" && as_dir=.
3197 for ac_exec_ext in '' $ac_executable_extensions; do
3198 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3199 ac_cv_prog_ac_ct_CC="cc"
3200 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3201 break 2
3202 fi
3203 done
3204 done
3205
3206 fi
3207 fi
3208 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3209 if test -n "$ac_ct_CC"; then
3210 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3211 echo "${ECHO_T}$ac_ct_CC" >&6
3212 else
3213 echo "$as_me:$LINENO: result: no" >&5
3214 echo "${ECHO_T}no" >&6
3215 fi
3216
3217 CC=$ac_ct_CC
3218 else
3219 CC="$ac_cv_prog_CC"
3220 fi
3221
3222 fi
3223 if test -z "$CC"; then
3224 # Extract the first word of "cc", so it can be a program name with args.
3225 set dummy cc; ac_word=$2
3226 echo "$as_me:$LINENO: checking for $ac_word" >&5
3227 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3228 if test "${ac_cv_prog_CC+set}" = set; then
3229 echo $ECHO_N "(cached) $ECHO_C" >&6
3230 else
3231 if test -n "$CC"; then
3232 ac_cv_prog_CC="$CC" # Let the user override the test.
3233 else
3234 ac_prog_rejected=no
3235 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3236 for as_dir in $PATH
3237 do
3238 IFS=$as_save_IFS
3239 test -z "$as_dir" && as_dir=.
3240 for ac_exec_ext in '' $ac_executable_extensions; do
3241 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3242 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3243 ac_prog_rejected=yes
3244 continue
3245 fi
3246 ac_cv_prog_CC="cc"
3247 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3248 break 2
3249 fi
3250 done
3251 done
3252
3253 if test $ac_prog_rejected = yes; then
3254 # We found a bogon in the path, so make sure we never use it.
3255 set dummy $ac_cv_prog_CC
3256 shift
3257 if test $# != 0; then
3258 # We chose a different compiler from the bogus one.
3259 # However, it has the same basename, so the bogon will be chosen
3260 # first if we set CC to just the basename; use the full file name.
3261 shift
3262 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3263 fi
3264 fi
3265 fi
3266 fi
3267 CC=$ac_cv_prog_CC
3268 if test -n "$CC"; then
3269 echo "$as_me:$LINENO: result: $CC" >&5
3270 echo "${ECHO_T}$CC" >&6
3271 else
3272 echo "$as_me:$LINENO: result: no" >&5
3273 echo "${ECHO_T}no" >&6
3274 fi
3275
3276 fi
3277 if test -z "$CC"; then
3278 if test -n "$ac_tool_prefix"; then
3279 for ac_prog in cl
3280 do
3281 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3282 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3283 echo "$as_me:$LINENO: checking for $ac_word" >&5
3284 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3285 if test "${ac_cv_prog_CC+set}" = set; then
3286 echo $ECHO_N "(cached) $ECHO_C" >&6
3287 else
3288 if test -n "$CC"; then
3289 ac_cv_prog_CC="$CC" # Let the user override the test.
3290 else
3291 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3292 for as_dir in $PATH
3293 do
3294 IFS=$as_save_IFS
3295 test -z "$as_dir" && as_dir=.
3296 for ac_exec_ext in '' $ac_executable_extensions; do
3297 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3298 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3299 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3300 break 2
3301 fi
3302 done
3303 done
3304
3305 fi
3306 fi
3307 CC=$ac_cv_prog_CC
3308 if test -n "$CC"; then
3309 echo "$as_me:$LINENO: result: $CC" >&5
3310 echo "${ECHO_T}$CC" >&6
3311 else
3312 echo "$as_me:$LINENO: result: no" >&5
3313 echo "${ECHO_T}no" >&6
3314 fi
3315
3316 test -n "$CC" && break
3317 done
3318 fi
3319 if test -z "$CC"; then
3320 ac_ct_CC=$CC
3321 for ac_prog in cl
3322 do
3323 # Extract the first word of "$ac_prog", so it can be a program name with args.
3324 set dummy $ac_prog; ac_word=$2
3325 echo "$as_me:$LINENO: checking for $ac_word" >&5
3326 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3327 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3328 echo $ECHO_N "(cached) $ECHO_C" >&6
3329 else
3330 if test -n "$ac_ct_CC"; then
3331 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3332 else
3333 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3334 for as_dir in $PATH
3335 do
3336 IFS=$as_save_IFS
3337 test -z "$as_dir" && as_dir=.
3338 for ac_exec_ext in '' $ac_executable_extensions; do
3339 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3340 ac_cv_prog_ac_ct_CC="$ac_prog"
3341 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3342 break 2
3343 fi
3344 done
3345 done
3346
3347 fi
3348 fi
3349 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3350 if test -n "$ac_ct_CC"; then
3351 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3352 echo "${ECHO_T}$ac_ct_CC" >&6
3353 else
3354 echo "$as_me:$LINENO: result: no" >&5
3355 echo "${ECHO_T}no" >&6
3356 fi
3357
3358 test -n "$ac_ct_CC" && break
3359 done
3360
3361 CC=$ac_ct_CC
3362 fi
3363
3364 fi
3365
3366
3367 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3368 See \`config.log' for more details." >&5
3369 echo "$as_me: error: no acceptable C compiler found in \$PATH
3370 See \`config.log' for more details." >&2;}
3371 { (exit 1); exit 1; }; }
3372
3373 # Provide some information about the compiler.
3374 echo "$as_me:$LINENO:" \
3375 "checking for C compiler version" >&5
3376 ac_compiler=`set X $ac_compile; echo $2`
3377 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3378 (eval $ac_compiler --version </dev/null >&5) 2>&5
3379 ac_status=$?
3380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3381 (exit $ac_status); }
3382 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3383 (eval $ac_compiler -v </dev/null >&5) 2>&5
3384 ac_status=$?
3385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3386 (exit $ac_status); }
3387 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3388 (eval $ac_compiler -V </dev/null >&5) 2>&5
3389 ac_status=$?
3390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3391 (exit $ac_status); }
3392
3393 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3394 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
3395 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3396 echo $ECHO_N "(cached) $ECHO_C" >&6
3397 else
3398 cat >conftest.$ac_ext <<_ACEOF
3399 /* confdefs.h. */
3400 _ACEOF
3401 cat confdefs.h >>conftest.$ac_ext
3402 cat >>conftest.$ac_ext <<_ACEOF
3403 /* end confdefs.h. */
3404
3405 int
3406 main ()
3407 {
3408 #ifndef __GNUC__
3409 choke me
3410 #endif
3411
3412 ;
3413 return 0;
3414 }
3415 _ACEOF
3416 rm -f conftest.$ac_objext
3417 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3418 (eval $ac_compile) 2>conftest.er1
3419 ac_status=$?
3420 grep -v '^ *+' conftest.er1 >conftest.err
3421 rm -f conftest.er1
3422 cat conftest.err >&5
3423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3424 (exit $ac_status); } &&
3425 { ac_try='test -z "$ac_c_werror_flag"
3426 || test ! -s conftest.err'
3427 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3428 (eval $ac_try) 2>&5
3429 ac_status=$?
3430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3431 (exit $ac_status); }; } &&
3432 { ac_try='test -s conftest.$ac_objext'
3433 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3434 (eval $ac_try) 2>&5
3435 ac_status=$?
3436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3437 (exit $ac_status); }; }; then
3438 ac_compiler_gnu=yes
3439 else
3440 echo "$as_me: failed program was:" >&5
3441 sed 's/^/| /' conftest.$ac_ext >&5
3442
3443 ac_compiler_gnu=no
3444 fi
3445 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3446 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3447
3448 fi
3449 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3450 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
3451 GCC=`test $ac_compiler_gnu = yes && echo yes`
3452 ac_test_CFLAGS=${CFLAGS+set}
3453 ac_save_CFLAGS=$CFLAGS
3454 CFLAGS="-g"
3455 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3456 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
3457 if test "${ac_cv_prog_cc_g+set}" = set; then
3458 echo $ECHO_N "(cached) $ECHO_C" >&6
3459 else
3460 cat >conftest.$ac_ext <<_ACEOF
3461 /* confdefs.h. */
3462 _ACEOF
3463 cat confdefs.h >>conftest.$ac_ext
3464 cat >>conftest.$ac_ext <<_ACEOF
3465 /* end confdefs.h. */
3466
3467 int
3468 main ()
3469 {
3470
3471 ;
3472 return 0;
3473 }
3474 _ACEOF
3475 rm -f conftest.$ac_objext
3476 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3477 (eval $ac_compile) 2>conftest.er1
3478 ac_status=$?
3479 grep -v '^ *+' conftest.er1 >conftest.err
3480 rm -f conftest.er1
3481 cat conftest.err >&5
3482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3483 (exit $ac_status); } &&
3484 { ac_try='test -z "$ac_c_werror_flag"
3485 || test ! -s conftest.err'
3486 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3487 (eval $ac_try) 2>&5
3488 ac_status=$?
3489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3490 (exit $ac_status); }; } &&
3491 { ac_try='test -s conftest.$ac_objext'
3492 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3493 (eval $ac_try) 2>&5
3494 ac_status=$?
3495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3496 (exit $ac_status); }; }; then
3497 ac_cv_prog_cc_g=yes
3498 else
3499 echo "$as_me: failed program was:" >&5
3500 sed 's/^/| /' conftest.$ac_ext >&5
3501
3502 ac_cv_prog_cc_g=no
3503 fi
3504 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3505 fi
3506 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3507 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
3508 if test "$ac_test_CFLAGS" = set; then
3509 CFLAGS=$ac_save_CFLAGS
3510 elif test $ac_cv_prog_cc_g = yes; then
3511 if test "$GCC" = yes; then
3512 CFLAGS="-g -O2"
3513 else
3514 CFLAGS="-g"
3515 fi
3516 else
3517 if test "$GCC" = yes; then
3518 CFLAGS="-O2"
3519 else
3520 CFLAGS=
3521 fi
3522 fi
3523 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
3524 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
3525 if test "${ac_cv_prog_cc_stdc+set}" = set; then
3526 echo $ECHO_N "(cached) $ECHO_C" >&6
3527 else
3528 ac_cv_prog_cc_stdc=no
3529 ac_save_CC=$CC
3530 cat >conftest.$ac_ext <<_ACEOF
3531 /* confdefs.h. */
3532 _ACEOF
3533 cat confdefs.h >>conftest.$ac_ext
3534 cat >>conftest.$ac_ext <<_ACEOF
3535 /* end confdefs.h. */
3536 #include <stdarg.h>
3537 #include <stdio.h>
3538 #include <sys/types.h>
3539 #include <sys/stat.h>
3540 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3541 struct buf { int x; };
3542 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3543 static char *e (p, i)
3544 char **p;
3545 int i;
3546 {
3547 return p[i];
3548 }
3549 static char *f (char * (*g) (char **, int), char **p, ...)
3550 {
3551 char *s;
3552 va_list v;
3553 va_start (v,p);
3554 s = g (p, va_arg (v,int));
3555 va_end (v);
3556 return s;
3557 }
3558
3559 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3560 function prototypes and stuff, but not '\xHH' hex character constants.
3561 These don't provoke an error unfortunately, instead are silently treated
3562 as 'x'. The following induces an error, until -std1 is added to get
3563 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3564 array size at least. It's necessary to write '\x00'==0 to get something
3565 that's true only with -std1. */
3566 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3567
3568 int test (int i, double x);
3569 struct s1 {int (*f) (int a);};
3570 struct s2 {int (*f) (double a);};
3571 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3572 int argc;
3573 char **argv;
3574 int
3575 main ()
3576 {
3577 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3578 ;
3579 return 0;
3580 }
3581 _ACEOF
3582 # Don't try gcc -ansi; that turns off useful extensions and
3583 # breaks some systems' header files.
3584 # AIX -qlanglvl=ansi
3585 # Ultrix and OSF/1 -std1
3586 # HP-UX 10.20 and later -Ae
3587 # HP-UX older versions -Aa -D_HPUX_SOURCE
3588 # SVR4 -Xc -D__EXTENSIONS__
3589 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3590 do
3591 CC="$ac_save_CC $ac_arg"
3592 rm -f conftest.$ac_objext
3593 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3594 (eval $ac_compile) 2>conftest.er1
3595 ac_status=$?
3596 grep -v '^ *+' conftest.er1 >conftest.err
3597 rm -f conftest.er1
3598 cat conftest.err >&5
3599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3600 (exit $ac_status); } &&
3601 { ac_try='test -z "$ac_c_werror_flag"
3602 || test ! -s conftest.err'
3603 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3604 (eval $ac_try) 2>&5
3605 ac_status=$?
3606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3607 (exit $ac_status); }; } &&
3608 { ac_try='test -s conftest.$ac_objext'
3609 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3610 (eval $ac_try) 2>&5
3611 ac_status=$?
3612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3613 (exit $ac_status); }; }; then
3614 ac_cv_prog_cc_stdc=$ac_arg
3615 break
3616 else
3617 echo "$as_me: failed program was:" >&5
3618 sed 's/^/| /' conftest.$ac_ext >&5
3619
3620 fi
3621 rm -f conftest.err conftest.$ac_objext
3622 done
3623 rm -f conftest.$ac_ext conftest.$ac_objext
3624 CC=$ac_save_CC
3625
3626 fi
3627
3628 case "x$ac_cv_prog_cc_stdc" in
3629 x|xno)
3630 echo "$as_me:$LINENO: result: none needed" >&5
3631 echo "${ECHO_T}none needed" >&6 ;;
3632 *)
3633 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
3634 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
3635 CC="$CC $ac_cv_prog_cc_stdc" ;;
3636 esac
3637
3638 # Some people use a C++ compiler to compile C. Since we use `exit',
3639 # in C++ we need to declare it. In case someone uses the same compiler
3640 # for both compiling C and C++ we need to have the C++ compiler decide
3641 # the declaration of exit, since it's the most demanding environment.
3642 cat >conftest.$ac_ext <<_ACEOF
3643 #ifndef __cplusplus
3644 choke me
3645 #endif
3646 _ACEOF
3647 rm -f conftest.$ac_objext
3648 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3649 (eval $ac_compile) 2>conftest.er1
3650 ac_status=$?
3651 grep -v '^ *+' conftest.er1 >conftest.err
3652 rm -f conftest.er1
3653 cat conftest.err >&5
3654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3655 (exit $ac_status); } &&
3656 { ac_try='test -z "$ac_c_werror_flag"
3657 || test ! -s conftest.err'
3658 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3659 (eval $ac_try) 2>&5
3660 ac_status=$?
3661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3662 (exit $ac_status); }; } &&
3663 { ac_try='test -s conftest.$ac_objext'
3664 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3665 (eval $ac_try) 2>&5
3666 ac_status=$?
3667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3668 (exit $ac_status); }; }; then
3669 for ac_declaration in \
3670 '' \
3671 'extern "C" void std::exit (int) throw (); using std::exit;' \
3672 'extern "C" void std::exit (int); using std::exit;' \
3673 'extern "C" void exit (int) throw ();' \
3674 'extern "C" void exit (int);' \
3675 'void exit (int);'
3676 do
3677 cat >conftest.$ac_ext <<_ACEOF
3678 /* confdefs.h. */
3679 _ACEOF
3680 cat confdefs.h >>conftest.$ac_ext
3681 cat >>conftest.$ac_ext <<_ACEOF
3682 /* end confdefs.h. */
3683 $ac_declaration
3684 #include <stdlib.h>
3685 int
3686 main ()
3687 {
3688 exit (42);
3689 ;
3690 return 0;
3691 }
3692 _ACEOF
3693 rm -f conftest.$ac_objext
3694 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3695 (eval $ac_compile) 2>conftest.er1
3696 ac_status=$?
3697 grep -v '^ *+' conftest.er1 >conftest.err
3698 rm -f conftest.er1
3699 cat conftest.err >&5
3700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3701 (exit $ac_status); } &&
3702 { ac_try='test -z "$ac_c_werror_flag"
3703 || test ! -s conftest.err'
3704 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3705 (eval $ac_try) 2>&5
3706 ac_status=$?
3707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3708 (exit $ac_status); }; } &&
3709 { ac_try='test -s conftest.$ac_objext'
3710 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3711 (eval $ac_try) 2>&5
3712 ac_status=$?
3713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3714 (exit $ac_status); }; }; then
3715 :
3716 else
3717 echo "$as_me: failed program was:" >&5
3718 sed 's/^/| /' conftest.$ac_ext >&5
3719
3720 continue
3721 fi
3722 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3723 cat >conftest.$ac_ext <<_ACEOF
3724 /* confdefs.h. */
3725 _ACEOF
3726 cat confdefs.h >>conftest.$ac_ext
3727 cat >>conftest.$ac_ext <<_ACEOF
3728 /* end confdefs.h. */
3729 $ac_declaration
3730 int
3731 main ()
3732 {
3733 exit (42);
3734 ;
3735 return 0;
3736 }
3737 _ACEOF
3738 rm -f conftest.$ac_objext
3739 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3740 (eval $ac_compile) 2>conftest.er1
3741 ac_status=$?
3742 grep -v '^ *+' conftest.er1 >conftest.err
3743 rm -f conftest.er1
3744 cat conftest.err >&5
3745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3746 (exit $ac_status); } &&
3747 { ac_try='test -z "$ac_c_werror_flag"
3748 || test ! -s conftest.err'
3749 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3750 (eval $ac_try) 2>&5
3751 ac_status=$?
3752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3753 (exit $ac_status); }; } &&
3754 { ac_try='test -s conftest.$ac_objext'
3755 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3756 (eval $ac_try) 2>&5
3757 ac_status=$?
3758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3759 (exit $ac_status); }; }; then
3760 break
3761 else
3762 echo "$as_me: failed program was:" >&5
3763 sed 's/^/| /' conftest.$ac_ext >&5
3764
3765 fi
3766 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3767 done
3768 rm -f conftest*
3769 if test -n "$ac_declaration"; then
3770 echo '#ifdef __cplusplus' >>confdefs.h
3771 echo $ac_declaration >>confdefs.h
3772 echo '#endif' >>confdefs.h
3773 fi
3774
3775 else
3776 echo "$as_me: failed program was:" >&5
3777 sed 's/^/| /' conftest.$ac_ext >&5
3778
3779 fi
3780 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3781 ac_ext=c
3782 ac_cpp='$CPP $CPPFLAGS'
3783 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3784 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3785 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3786
3787
3788 if test "$asc_ansi_ok" = no ; then
3789 CC=$asc_orig_cc
3790 { { echo "$as_me:$LINENO: error: Cannot find an ANSI C compiler. ASCEND will not build
3791 without an ANSI compiler. If you have an ANSI compiler which
3792 configure is not finding, set the CC environment variable to
3793 the full path fo the compiler and rerun configure." >&5
3794 echo "$as_me: error: Cannot find an ANSI C compiler. ASCEND will not build
3795 without an ANSI compiler. If you have an ANSI compiler which
3796 configure is not finding, set the CC environment variable to
3797 the full path fo the compiler and rerun configure." >&2;}
3798 { (exit 1); exit 1; }; }
3799 fi
3800
3801
3802 #--------------------------------------------------------------------
3803 # Do other misc checks with CC and CFLAGS.
3804 #
3805 # Determine how to run the C preprocessor.
3806 #
3807 # If the user specifies --enable-optimization, remove `-g'
3808 # from CFLAGS, add `-O' to CFLAGS, and define `NDEBUG'. If
3809 # we are not building optimized, check for special libraries
3810 # needed for building a debugging binary (currenly only
3811 # /usr/lib/end.o under HPUX).
3812 #
3813 # Check if we're running on AIX; if so, add `-D_ALL_SOURCE'
3814 # to CFLAGS.
3815 #
3816 # Check if we're running on HPUX; if so, add -D_HPUX_SOURCE'
3817 # to CFLAGS unless the C preprocessor goes it for us.
3818 #--------------------------------------------------------------------
3819
3820 ac_ext=c
3821 ac_cpp='$CPP $CPPFLAGS'
3822 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3823 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3824 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3825 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3826 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3827 # On Suns, sometimes $CPP names a directory.
3828 if test -n "$CPP" && test -d "$CPP"; then
3829 CPP=
3830 fi
3831 if test -z "$CPP"; then
3832 if test "${ac_cv_prog_CPP+set}" = set; then
3833 echo $ECHO_N "(cached) $ECHO_C" >&6
3834 else
3835 # Double quotes because CPP needs to be expanded
3836 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3837 do
3838 ac_preproc_ok=false
3839 for ac_c_preproc_warn_flag in '' yes
3840 do
3841 # Use a header file that comes with gcc, so configuring glibc
3842 # with a fresh cross-compiler works.
3843 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3844 # <limits.h> exists even on freestanding compilers.
3845 # On the NeXT, cc -E runs the code through the compiler's parser,
3846 # not just through cpp. "Syntax error" is here to catch this case.
3847 cat >conftest.$ac_ext <<_ACEOF
3848 /* confdefs.h. */
3849 _ACEOF
3850 cat confdefs.h >>conftest.$ac_ext
3851 cat >>conftest.$ac_ext <<_ACEOF
3852 /* end confdefs.h. */
3853 #ifdef __STDC__
3854 # include <limits.h>
3855 #else
3856 # include <assert.h>
3857 #endif
3858 Syntax error
3859 _ACEOF
3860 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3861 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3862 ac_status=$?
3863 grep -v '^ *+' conftest.er1 >conftest.err
3864 rm -f conftest.er1
3865 cat conftest.err >&5
3866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3867 (exit $ac_status); } >/dev/null; then
3868 if test -s conftest.err; then
3869 ac_cpp_err=$ac_c_preproc_warn_flag
3870 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3871 else
3872 ac_cpp_err=
3873 fi
3874 else
3875 ac_cpp_err=yes
3876 fi
3877 if test -z "$ac_cpp_err"; then
3878 :
3879 else
3880 echo "$as_me: failed program was:" >&5
3881 sed 's/^/| /' conftest.$ac_ext >&5
3882
3883 # Broken: fails on valid input.
3884 continue
3885 fi
3886 rm -f conftest.err conftest.$ac_ext
3887
3888 # OK, works on sane cases. Now check whether non-existent headers
3889 # can be detected and how.
3890 cat >conftest.$ac_ext <<_ACEOF
3891 /* confdefs.h. */
3892 _ACEOF
3893 cat confdefs.h >>conftest.$ac_ext
3894 cat >>conftest.$ac_ext <<_ACEOF
3895 /* end confdefs.h. */
3896 #include <ac_nonexistent.h>
3897 _ACEOF
3898 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3899 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3900 ac_status=$?
3901 grep -v '^ *+' conftest.er1 >conftest.err
3902 rm -f conftest.er1
3903 cat conftest.err >&5
3904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3905 (exit $ac_status); } >/dev/null; then
3906 if test -s conftest.err; then
3907 ac_cpp_err=$ac_c_preproc_warn_flag
3908 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3909 else
3910 ac_cpp_err=
3911 fi
3912 else
3913 ac_cpp_err=yes
3914 fi
3915 if test -z "$ac_cpp_err"; then
3916 # Broken: success on invalid input.
3917 continue
3918 else
3919 echo "$as_me: failed program was:" >&5
3920 sed 's/^/| /' conftest.$ac_ext >&5
3921
3922 # Passes both tests.
3923 ac_preproc_ok=:
3924 break
3925 fi
3926 rm -f conftest.err conftest.$ac_ext
3927
3928 done
3929 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3930 rm -f conftest.err conftest.$ac_ext
3931 if $ac_preproc_ok; then
3932 break
3933 fi
3934
3935 done
3936 ac_cv_prog_CPP=$CPP
3937
3938 fi
3939 CPP=$ac_cv_prog_CPP
3940 else
3941 ac_cv_prog_CPP=$CPP
3942 fi
3943 echo "$as_me:$LINENO: result: $CPP" >&5
3944 echo "${ECHO_T}$CPP" >&6
3945 ac_preproc_ok=false
3946 for ac_c_preproc_warn_flag in '' yes
3947 do
3948 # Use a header file that comes with gcc, so configuring glibc
3949 # with a fresh cross-compiler works.
3950 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3951 # <limits.h> exists even on freestanding compilers.
3952 # On the NeXT, cc -E runs the code through the compiler's parser,
3953 # not just through cpp. "Syntax error" is here to catch this case.
3954 cat >conftest.$ac_ext <<_ACEOF
3955 /* confdefs.h. */
3956 _ACEOF
3957 cat confdefs.h >>conftest.$ac_ext
3958 cat >>conftest.$ac_ext <<_ACEOF
3959 /* end confdefs.h. */
3960 #ifdef __STDC__
3961 # include <limits.h>
3962 #else
3963 # include <assert.h>
3964 #endif
3965 Syntax error
3966 _ACEOF
3967 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3968 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3969 ac_status=$?
3970 grep -v '^ *+' conftest.er1 >conftest.err
3971 rm -f conftest.er1
3972 cat conftest.err >&5
3973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3974 (exit $ac_status); } >/dev/null; then
3975 if test -s conftest.err; then
3976 ac_cpp_err=$ac_c_preproc_warn_flag
3977 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3978 else
3979 ac_cpp_err=
3980 fi
3981 else
3982 ac_cpp_err=yes
3983 fi
3984 if test -z "$ac_cpp_err"; then
3985 :
3986 else
3987 echo "$as_me: failed program was:" >&5
3988 sed 's/^/| /' conftest.$ac_ext >&5
3989
3990 # Broken: fails on valid input.
3991 continue
3992 fi
3993 rm -f conftest.err conftest.$ac_ext
3994
3995 # OK, works on sane cases. Now check whether non-existent headers
3996 # can be detected and how.
3997 cat >conftest.$ac_ext <<_ACEOF
3998 /* confdefs.h. */
3999 _ACEOF
4000 cat confdefs.h >>conftest.$ac_ext
4001 cat >>conftest.$ac_ext <<_ACEOF
4002 /* end confdefs.h. */
4003 #include <ac_nonexistent.h>
4004 _ACEOF
4005 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4006 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4007 ac_status=$?
4008 grep -v '^ *+' conftest.er1 >conftest.err
4009 rm -f conftest.er1
4010 cat conftest.err >&5
4011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4012 (exit $ac_status); } >/dev/null; then
4013 if test -s conftest.err; then
4014 ac_cpp_err=$ac_c_preproc_warn_flag
4015 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4016 else
4017 ac_cpp_err=
4018 fi
4019 else
4020 ac_cpp_err=yes
4021 fi
4022 if test -z "$ac_cpp_err"; then
4023 # Broken: success on invalid input.
4024 continue
4025 else
4026 echo "$as_me: failed program was:" >&5
4027 sed 's/^/| /' conftest.$ac_ext >&5
4028
4029 # Passes both tests.
4030 ac_preproc_ok=:
4031 break
4032 fi
4033 rm -f conftest.err conftest.$ac_ext
4034
4035 done
4036 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4037 rm -f conftest.err conftest.$ac_ext
4038 if $ac_preproc_ok; then
4039 :
4040 else
4041 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4042 See \`config.log' for more details." >&5
4043 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4044 See \`config.log' for more details." >&2;}
4045 { (exit 1); exit 1; }; }
4046 fi
4047
4048 ac_ext=c
4049 ac_cpp='$CPP $CPPFLAGS'
4050 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4051 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4052 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4053
4054
4055 # Check whether --enable-optimization or --disable-optimization was given.
4056 if test "${enable_optimization+set}" = set; then
4057 enableval="$enable_optimization"
4058 asc_do_opt="$enableval"
4059 else
4060 asc_do_opt=no
4061 fi;
4062 if test "$asc_do_opt" = yes; then
4063 CFLAGS=`echo "-O $CFLAGS " | sed 's/ -g / /g'`
4064 cat >>confdefs.h <<\_ACEOF
4065 #define NDEBUG 1
4066 _ACEOF
4067
4068 else
4069 # Extract the first word of "end.o", so it can be a program name with args.
4070 set dummy end.o; ac_word=$2
4071 echo "$as_me:$LINENO: checking for $ac_word" >&5
4072 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4073 if test "${ac_cv_path_DEBUG_LIBS+set}" = set; then
4074 echo $ECHO_N "(cached) $ECHO_C" >&6
4075 else
4076 case $DEBUG_LIBS in
4077 [\\/]* | ?:[\\/]*)
4078 ac_cv_path_DEBUG_LIBS="$DEBUG_LIBS" # Let the user override the test with a path.
4079 ;;
4080 *)
4081 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4082 for as_dir in /usr/lib
4083 do
4084 IFS=$as_save_IFS
4085 test -z "$as_dir" && as_dir=.
4086 for ac_exec_ext in '' $ac_executable_extensions; do
4087 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4088 ac_cv_path_DEBUG_LIBS="$as_dir/$ac_word$ac_exec_ext"
4089 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4090 break 2
4091 fi
4092 done
4093 done
4094
4095 ;;
4096 esac
4097 fi
4098 DEBUG_LIBS=$ac_cv_path_DEBUG_LIBS
4099
4100 if test -n "$DEBUG_LIBS"; then
4101 echo "$as_me:$LINENO: result: $DEBUG_LIBS" >&5
4102 echo "${ECHO_T}$DEBUG_LIBS" >&6
4103 else
4104 echo "$as_me:$LINENO: result: no" >&5
4105 echo "${ECHO_T}no" >&6
4106 fi
4107
4108 fi
4109
4110 echo "$as_me:$LINENO: checking for AIX" >&5
4111 echo $ECHO_N "checking for AIX... $ECHO_C" >&6
4112
4113 echo "$as_me:$LINENO: checking for egrep" >&5
4114 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
4115 if test "${ac_cv_prog_egrep+set}" = set; then
4116 echo $ECHO_N "(cached) $ECHO_C" >&6
4117 else
4118 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
4119 then ac_cv_prog_egrep='grep -E'
4120 else ac_cv_prog_egrep='egrep'
4121 fi
4122 fi
4123 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
4124 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
4125 EGREP=$ac_cv_prog_egrep
4126
4127
4128 cat >conftest.$ac_ext <<_ACEOF
4129 /* confdefs.h. */
4130 _ACEOF
4131 cat confdefs.h >>conftest.$ac_ext
4132 cat >>conftest.$ac_ext <<_ACEOF
4133 /* end confdefs.h. */
4134
4135 #ifdef _AIX
4136 yes
4137 #endif
4138
4139 _ACEOF
4140 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4141 $EGREP "yes" >/dev/null 2>&1; then
4142 asc_aix=yes ; cat >>confdefs.h <<\_ACEOF
4143 #define _ALL_SOURCE 1
4144 _ACEOF
4145
4146 else
4147 asc_aix=no
4148 fi
4149 rm -f conftest*
4150
4151 echo "$as_me:$LINENO: result: $asc_aix" >&5
4152 echo "${ECHO_T}$asc_aix" >&6
4153
4154 echo "$as_me:$LINENO: checking whether -D_HPUX_SOURCE is needed" >&5
4155 echo $ECHO_N "checking whether -D_HPUX_SOURCE is needed... $ECHO_C" >&6
4156 cat >conftest.$ac_ext <<_ACEOF
4157 /* confdefs.h. */
4158 _ACEOF
4159 cat confdefs.h >>conftest.$ac_ext
4160 cat >>conftest.$ac_ext <<_ACEOF
4161 /* end confdefs.h. */
4162
4163 #ifdef __hpux
4164 #ifndef _HPUX_SOURCE
4165 yes
4166 #endif
4167 #endif
4168
4169 _ACEOF
4170 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4171 $EGREP "yes" >/dev/null 2>&1; then
4172 asc_hpux=yes ; cat >>confdefs.h <<\_ACEOF
4173 #define _HPUX_SOURCE 1
4174 _ACEOF
4175
4176 else
4177 asc_hpux=no
4178 fi
4179 rm -f conftest*
4180
4181 echo "$as_me:$LINENO: result: $asc_hpux" >&5
4182 echo "${ECHO_T}$asc_hpux" >&6
4183
4184 # Check the size of pointers; if cross compiling, assume 32 bit pointers
4185 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4186 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4187 if test "${ac_cv_header_stdc+set}" = set; then
4188 echo $ECHO_N "(cached) $ECHO_C" >&6
4189 else
4190 cat >conftest.$ac_ext <<_ACEOF
4191 /* confdefs.h. */
4192 _ACEOF
4193 cat confdefs.h >>conftest.$ac_ext
4194 cat >>conftest.$ac_ext <<_ACEOF
4195 /* end confdefs.h. */
4196 #include <stdlib.h>
4197 #include <stdarg.h>
4198 #include <string.h>
4199 #include <float.h>
4200