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