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

Contents of /trunk/base/autotools/configure

Parent Directory Parent Directory | Revision Log Revision Log


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