Debian Codegraph @

configure

raw symbols ◀ ▶
Source reconstructed at patch state 3 of 5 — not the installed (fully patched) source.
5 Debian patches touch this file
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.71.
4 #
5 #
6 # Copyright (C) 1992-1996, 1998-2017, 2020-2021 Free Software Foundation,
7 # Inc.
8 #
9 #
10 # This configure script is free software; the Free Software Foundation
11 # gives unlimited permission to copy, distribute and modify it.
12 ## -------------------- ##
13 ## M4sh Initialization. ##
14 ## -------------------- ##
15
16 # Be more Bourne compatible
17 DUALCASE=1; export DUALCASE # for MKS sh
18 as_nop=:
19 if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
20 then :
21 emulate sh
22 NULLCMD=:
23 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
24 # is contrary to our usage. Disable this feature.
25 alias -g '${1+"$@"}'='"$@"'
26 setopt NO_GLOB_SUBST
27 else $as_nop
28 case `(set -o) 2>/dev/null` in #(
29 *posix*) :
30 set -o posix ;; #(
31 *) :
32 ;;
33 esac
34 fi
35
36
37
38 # Reset variables that may have inherited troublesome values from
39 # the environment.
40
41 # IFS needs to be set, to space, tab, and newline, in precisely that order.
42 # (If _AS_PATH_WALK were called with IFS unset, it would have the
43 # side effect of setting IFS to empty, thus disabling word splitting.)
44 # Quoting is to prevent editors from complaining about space-tab.
45 as_nl='
46 '
47 export as_nl
48 IFS=" "" $as_nl"
49
50 PS1='$ '
51 PS2='> '
52 PS4='+ '
53
54 # Ensure predictable behavior from utilities with locale-dependent output.
55 LC_ALL=C
56 export LC_ALL
57 LANGUAGE=C
58 export LANGUAGE
59
60 # We cannot yet rely on "unset" to work, but we need these variables
61 # to be unset--not just set to an empty or harmless value--now, to
62 # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct
63 # also avoids known problems related to "unset" and subshell syntax
64 # in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
65 for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
66 do eval test \${$as_var+y} \
67 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
68 done
69
70 # Ensure that fds 0, 1, and 2 are open.
71 if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
72 if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
73 if (exec 3>&2) ; then :; else exec 2>/dev/null; fi
74
75 # The user is always right.
76 if ${PATH_SEPARATOR+false} :; then
77 PATH_SEPARATOR=:
78 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
79 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
80 PATH_SEPARATOR=';'
81 }
82 fi
83
84
85 # Find who we are. Look in the path if we contain no directory separator.
86 as_myself=
87 case $0 in #((
88 *[\\/]* ) as_myself=$0 ;;
89 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
90 for as_dir in $PATH
91 do
92 IFS=$as_save_IFS
93 case $as_dir in #(((
94 '') as_dir=./ ;;
95 */) ;;
96 *) as_dir=$as_dir/ ;;
97 esac
98 test -r "$as_dir$0" && as_myself=$as_dir$0 && break
99 done
100 IFS=$as_save_IFS
101
102 ;;
103 esac
104 # We did not find ourselves, most probably we were run as `sh COMMAND'
105 # in which case we are not to be found in the path.
106 if test "x$as_myself" = x; then
107 as_myself=$0
108 fi
109 if test ! -f "$as_myself"; then
110 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
111 exit 1
112 fi
113
114
115 # Use a proper internal environment variable to ensure we don't fall
116 # into an infinite loop, continuously re-executing ourselves.
117 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
118 _as_can_reexec=no; export _as_can_reexec;
119 # We cannot yet assume a decent shell, so we have to provide a
120 # neutralization value for shells without unset; and this also
121 # works around shells that cannot unset nonexistent variables.
122 # Preserve -v and -x to the replacement shell.
123 BASH_ENV=/dev/null
124 ENV=/dev/null
125 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
126 case $- in # ((((
127 *v*x* | *x*v* ) as_opts=-vx ;;
128 *v* ) as_opts=-v ;;
129 *x* ) as_opts=-x ;;
130 * ) as_opts= ;;
131 esac
132 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
133 # Admittedly, this is quite paranoid, since all the known shells bail
134 # out after a failed `exec'.
135 printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2
136 exit 255
137 fi
138 # We don't want this to propagate to other subprocesses.
139 { _as_can_reexec=; unset _as_can_reexec;}
140 if test "x$CONFIG_SHELL" = x; then
141 as_bourne_compatible="as_nop=:
142 if test \${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
143 then :
144 emulate sh
145 NULLCMD=:
146 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
147 # is contrary to our usage. Disable this feature.
148 alias -g '\${1+\"\$@\"}'='\"\$@\"'
149 setopt NO_GLOB_SUBST
150 else \$as_nop
151 case \`(set -o) 2>/dev/null\` in #(
152 *posix*) :
153 set -o posix ;; #(
154 *) :
155 ;;
156 esac
157 fi
158 "
159 as_required="as_fn_return () { (exit \$1); }
160 as_fn_success () { as_fn_return 0; }
161 as_fn_failure () { as_fn_return 1; }
162 as_fn_ret_success () { return 0; }
163 as_fn_ret_failure () { return 1; }
164
165 exitcode=0
166 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
167 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
168 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
169 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
170 if ( set x; as_fn_ret_success y && test x = \"\$1\" )
171 then :
172
173 else \$as_nop
174 exitcode=1; echo positional parameters were not saved.
175 fi
176 test x\$exitcode = x0 || exit 1
177 blah=\$(echo \$(echo blah))
178 test x\"\$blah\" = xblah || exit 1
179 test -x / || exit 1"
180 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
181 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
182 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
183 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
184 test \$(( 1 + 1 )) = 2 || exit 1"
185 if (eval "$as_required") 2>/dev/null
186 then :
187 as_have_required=yes
188 else $as_nop
189 as_have_required=no
190 fi
191 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null
192 then :
193
194 else $as_nop
195 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
196 as_found=false
197 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
198 do
199 IFS=$as_save_IFS
200 case $as_dir in #(((
201 '') as_dir=./ ;;
202 */) ;;
203 *) as_dir=$as_dir/ ;;
204 esac
205 as_found=:
206 case $as_dir in #(
207 /*)
208 for as_base in sh bash ksh sh5; do
209 # Try only shells that exist, to save several forks.
210 as_shell=$as_dir$as_base
211 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
212 as_run=a "$as_shell" -c "$as_bourne_compatible""$as_required" 2>/dev/null
213 then :
214 CONFIG_SHELL=$as_shell as_have_required=yes
215 if as_run=a "$as_shell" -c "$as_bourne_compatible""$as_suggested" 2>/dev/null
216 then :
217 break 2
218 fi
219 fi
220 done;;
221 esac
222 as_found=false
223 done
224 IFS=$as_save_IFS
225 if $as_found
226 then :
227
228 else $as_nop
229 if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
230 as_run=a "$SHELL" -c "$as_bourne_compatible""$as_required" 2>/dev/null
231 then :
232 CONFIG_SHELL=$SHELL as_have_required=yes
233 fi
234 fi
235
236
237 if test "x$CONFIG_SHELL" != x
238 then :
239 export CONFIG_SHELL
240 # We cannot yet assume a decent shell, so we have to provide a
241 # neutralization value for shells without unset; and this also
242 # works around shells that cannot unset nonexistent variables.
243 # Preserve -v and -x to the replacement shell.
244 BASH_ENV=/dev/null
245 ENV=/dev/null
246 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
247 case $- in # ((((
248 *v*x* | *x*v* ) as_opts=-vx ;;
249 *v* ) as_opts=-v ;;
250 *x* ) as_opts=-x ;;
251 * ) as_opts= ;;
252 esac
253 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
254 # Admittedly, this is quite paranoid, since all the known shells bail
255 # out after a failed `exec'.
256 printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2
257 exit 255
258 fi
259
260 if test x$as_have_required = xno
261 then :
262 printf "%s\n" "$0: This script requires a shell more modern than all"
263 printf "%s\n" "$0: the shells that I found on your system."
264 if test ${ZSH_VERSION+y} ; then
265 printf "%s\n" "$0: In particular, zsh $ZSH_VERSION has bugs and should"
266 printf "%s\n" "$0: be upgraded to zsh 4.3.4 or later."
267 else
268 printf "%s\n" "$0: Please tell [email protected] about your system,
269 $0: including any error possibly output before this
270 $0: message. Then install a modern shell, or manually run
271 $0: the script under such a shell if you do have one."
272 fi
273 exit 1
274 fi
275 fi
276 fi
277 SHELL=${CONFIG_SHELL-/bin/sh}
278 export SHELL
279 # Unset more variables known to interfere with behavior of common tools.
280 CLICOLOR_FORCE= GREP_OPTIONS=
281 unset CLICOLOR_FORCE GREP_OPTIONS
282
283 ## --------------------- ##
284 ## M4sh Shell Functions. ##
285 ## --------------------- ##
286 # as_fn_unset VAR
287 # ---------------
288 # Portably unset VAR.
289 as_fn_unset ()
290 {
291 { eval $1=; unset $1;}
292 }
293 as_unset=as_fn_unset
294
295
296 # as_fn_set_status STATUS
297 # -----------------------
298 # Set $? to STATUS, without forking.
299 as_fn_set_status ()
300 {
301 return $1
302 } # as_fn_set_status
303
304 # as_fn_exit STATUS
305 # -----------------
306 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
307 as_fn_exit ()
308 {
309 set +e
310 as_fn_set_status $1
311 exit $1
312 } # as_fn_exit
313 # as_fn_nop
314 # ---------
315 # Do nothing but, unlike ":", preserve the value of $?.
316 as_fn_nop ()
317 {
318 return $?
319 }
320 as_nop=as_fn_nop
321
322 # as_fn_mkdir_p
323 # -------------
324 # Create "$as_dir" as a directory, including parents if necessary.
325 as_fn_mkdir_p ()
326 {
327
328 case $as_dir in #(
329 -*) as_dir=./$as_dir;;
330 esac
331 test -d "$as_dir" || eval $as_mkdir_p || {
332 as_dirs=
333 while :; do
334 case $as_dir in #(
335 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
336 *) as_qdir=$as_dir;;
337 esac
338 as_dirs="'$as_qdir' $as_dirs"
339 as_dir=`$as_dirname -- "$as_dir" ||
340 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
341 X"$as_dir" : 'X\(//\)[^/]' \| \
342 X"$as_dir" : 'X\(//\)$' \| \
343 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
344 printf "%s\n" X"$as_dir" |
345 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
346 s//\1/
347 q
348 }
349 /^X\(\/\/\)[^/].*/{
350 s//\1/
351 q
352 }
353 /^X\(\/\/\)$/{
354 s//\1/
355 q
356 }
357 /^X\(\/\).*/{
358 s//\1/
359 q
360 }
361 s/.*/./; q'`
362 test -d "$as_dir" && break
363 done
364 test -z "$as_dirs" || eval "mkdir $as_dirs"
365 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
366
367
368 } # as_fn_mkdir_p
369
370 # as_fn_executable_p FILE
371 # -----------------------
372 # Test if FILE is an executable regular file.
373 as_fn_executable_p ()
374 {
375 test -f "$1" && test -x "$1"
376 } # as_fn_executable_p
377 # as_fn_append VAR VALUE
378 # ----------------------
379 # Append the text in VALUE to the end of the definition contained in VAR. Take
380 # advantage of any shell optimizations that allow amortized linear growth over
381 # repeated appends, instead of the typical quadratic growth present in naive
382 # implementations.
383 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
384 then :
385 eval 'as_fn_append ()
386 {
387 eval $1+=\$2
388 }'
389 else $as_nop
390 as_fn_append ()
391 {
392 eval $1=\$$1\$2
393 }
394 fi # as_fn_append
395
396 # as_fn_arith ARG...
397 # ------------------
398 # Perform arithmetic evaluation on the ARGs, and store the result in the
399 # global $as_val. Take advantage of shells that can avoid forks. The arguments
400 # must be portable across $(()) and expr.
401 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
402 then :
403 eval 'as_fn_arith ()
404 {
405 as_val=$(( $* ))
406 }'
407 else $as_nop
408 as_fn_arith ()
409 {
410 as_val=`expr "$@" || test $? -eq 1`
411 }
412 fi # as_fn_arith
413
414 # as_fn_nop
415 # ---------
416 # Do nothing but, unlike ":", preserve the value of $?.
417 as_fn_nop ()
418 {
419 return $?
420 }
421 as_nop=as_fn_nop
422
423 # as_fn_error STATUS ERROR [LINENO LOG_FD]
424 # ----------------------------------------
425 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
426 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
427 # script with STATUS, using 1 if that was 0.
428 as_fn_error ()
429 {
430 as_status=$1; test $as_status -eq 0 && as_status=1
431 if test "$4"; then
432 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
433 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
434 fi
435 printf "%s\n" "$as_me: error: $2" >&2
436 as_fn_exit $as_status
437 } # as_fn_error
438
439 if expr a : '\(a\)' >/dev/null 2>&1 &&
440 test "X`expr 00001 : '.*\(...\)'`" = X001; then
441 as_expr=expr
442 else
443 as_expr=false
444 fi
445
446 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
447 as_basename=basename
448 else
449 as_basename=false
450 fi
451
452 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
453 as_dirname=dirname
454 else
455 as_dirname=false
456 fi
457
458 as_me=`$as_basename -- "$0" ||
459 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
460 X"$0" : 'X\(//\)$' \| \
461 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
462 printf "%s\n" X/"$0" |
463 sed '/^.*\/\([^/][^/]*\)\/*$/{
464 s//\1/
465 q
466 }
467 /^X\/\(\/\/\)$/{
468 s//\1/
469 q
470 }
471 /^X\/\(\/\).*/{
472 s//\1/
473 q
474 }
475 s/.*/./; q'`
476
477 # Avoid depending upon Character Ranges.
478 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
479 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
480 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
481 as_cr_digits='0123456789'
482 as_cr_alnum=$as_cr_Letters$as_cr_digits
483
484
485 as_lineno_1=$LINENO as_lineno_1a=$LINENO
486 as_lineno_2=$LINENO as_lineno_2a=$LINENO
487 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
488 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
489 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
490 sed -n '
491 p
492 /[$]LINENO/=
493 ' <$as_myself |
494 sed '
495 s/[$]LINENO.*/&-/
496 t lineno
497 b
498 :lineno
499 N
500 :loop
501 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
502 t loop
503 s/-\n.*//
504 ' >$as_me.lineno &&
505 chmod +x "$as_me.lineno" ||
506 { printf "%s\n" "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
507
508 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
509 # already done that, so ensure we don't try to do so again and fall
510 # in an infinite loop. This has already happened in practice.
511 _as_can_reexec=no; export _as_can_reexec
512 # Don't try to exec as it changes $[0], causing all sort of problems
513 # (the dirname of $[0] is not the place where we might find the
514 # original and so on. Autoconf is especially sensitive to this).
515 . "./$as_me.lineno"
516 # Exit status is that of the last command.
517 exit
518 }
519
520
521 # Determine whether it's possible to make 'echo' print without a newline.
522 # These variables are no longer used directly by Autoconf, but are AC_SUBSTed
523 # for compatibility with existing Makefiles.
524 ECHO_C= ECHO_N= ECHO_T=
525 case `echo -n x` in #(((((
526 -n*)
527 case `echo 'xy\c'` in
528 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
529 xy) ECHO_C='\c';;
530 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
531 ECHO_T=' ';;
532 esac;;
533 *)
534 ECHO_N='-n';;
535 esac
536
537 # For backward compatibility with old third-party macros, we provide
538 # the shell variables $as_echo and $as_echo_n. New code should use
539 # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
540 as_echo='printf %s\n'
541 as_echo_n='printf %s'
542
543
544 rm -f conf$$ conf$$.exe conf$$.file
545 if test -d conf$$.dir; then
546 rm -f conf$$.dir/conf$$.file
547 else
548 rm -f conf$$.dir
549 mkdir conf$$.dir 2>/dev/null
550 fi
551 if (echo >conf$$.file) 2>/dev/null; then
552 if ln -s conf$$.file conf$$ 2>/dev/null; then
553 as_ln_s='ln -s'
554 # ... but there are two gotchas:
555 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
556 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
557 # In both cases, we have to default to `cp -pR'.
558 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
559 as_ln_s='cp -pR'
560 elif ln conf$$.file conf$$ 2>/dev/null; then
561 as_ln_s=ln
562 else
563 as_ln_s='cp -pR'
564 fi
565 else
566 as_ln_s='cp -pR'
567 fi
568 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
569 rmdir conf$$.dir 2>/dev/null
570
571 if mkdir -p . 2>/dev/null; then
572 as_mkdir_p='mkdir -p "$as_dir"'
573 else
574 test -d ./-p && rmdir ./-p
575 as_mkdir_p=false
576 fi
577
578 as_test_x='test -x'
579 as_executable_p=as_fn_executable_p
580
581 # Sed expression to map a string onto a valid CPP name.
582 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
583
584 # Sed expression to map a string onto a valid variable name.
585 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
586
587
588 test -n "$DJDIR" || exec 7<&0 </dev/null
589 exec 6>&1
590
591 # Name of the host.
592 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
593 # so uname gets run too.
594 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
595
596 #
597 # Initializations.
598 #
599 ac_default_prefix=/usr/local
600 ac_clean_files=
601 ac_config_libobj_dir=.
602 LIBOBJS=
603 cross_compiling=no
604 subdirs=
605 MFLAGS=
606 MAKEFLAGS=
607
608 # Identity of this package.
609 PACKAGE_NAME=''
610 PACKAGE_TARNAME=''
611 PACKAGE_VERSION=''
612 PACKAGE_STRING=''
613 PACKAGE_BUGREPORT=''
614 PACKAGE_URL=''
615
616 # Factoring default headers for most tests.
617 ac_includes_default="\
618 #include <stddef.h>
619 #ifdef HAVE_STDIO_H
620 # include <stdio.h>
621 #endif
622 #ifdef HAVE_STDLIB_H
623 # include <stdlib.h>
624 #endif
625 #ifdef HAVE_STRING_H
626 # include <string.h>
627 #endif
628 #ifdef HAVE_INTTYPES_H
629 # include <inttypes.h>
630 #endif
631 #ifdef HAVE_STDINT_H
632 # include <stdint.h>
633 #endif
634 #ifdef HAVE_STRINGS_H
635 # include <strings.h>
636 #endif
637 #ifdef HAVE_SYS_TYPES_H
638 # include <sys/types.h>
639 #endif
640 #ifdef HAVE_SYS_STAT_H
641 # include <sys/stat.h>
642 #endif
643 #ifdef HAVE_UNISTD_H
644 # include <unistd.h>
645 #endif"
646
647 ac_header_c_list=
648 ac_subst_vars='LTLIBOBJS
649 LIBOBJS
650 use
651 GNU_LD
652 LEADING_UNDERSCORE
653 EXTRA_LOBJS
654 O2FLAGS
655 O3FLAGS
656 NIFLAGS
657 FINAL_CFLAGS
658 ALLOCA
659 NOTIFY
660 TCL_LIBS
661 TCL_DL_LIBS
662 TCL_LIB_SPEC
663 TK_XLIBSW
664 TK_BUILD_LIB_SPEC
665 TK_LIB_SPEC
666 TCL_INCLUDE
667 TK_INCLUDE
668 TK_XINCLUDES
669 TCL_LIBRARY
670 TK_LIBRARY
671 TK_CONFIG_PREFIX
672 TCLSH
673 INFO_DIR
674 EMACS_DEFAULT_EL
675 EMACS_SITE_LISP
676 EMACS
677 HAVE_SIGEMT
678 HAVE_SIGSYS
679 HAVE_SV_ONSTACK
680 USE_CLEANUP
681 HAVE_PUTENV
682 HAVE_SETENV
683 NO_PROFILE
684 RL_LIB
685 RL_OBJS
686 EGREP
687 GREP
688 CLSTANDARD
689 SYSTEM
690 FLISP
691 HAVE_LONG_LONG
692 PAGEWIDTH
693 DOUBLE_BIGENDIAN
694 WORDS_BIGENDIAN
695 LIBIBERTY
696 LIBBFD
697 BUILD_BFD
698 HAVE_OUTPUT_BFD
699 X_CFLAGS
700 X_LIBS
701 XMKMF
702 GMPDIR
703 GMP
704 HAVE_MALLOC_ZONE_MEMALIGN
705 MAKEINFO
706 GCL_CC
707 AWK
708 CPP
709 OBJEXT
710 EXEEXT
711 ac_ct_CC
712 CPPFLAGS
713 LDFLAGS
714 CFLAGS
715 CC
716 PRELINK_CHECK
717 host_os
718 host_vendor
719 host_cpu
720 host
721 build_os
722 build_vendor
723 build_cpu
724 build
725 VERSION
726 target_alias
727 host_alias
728 build_alias
729 LIBS
730 ECHO_T
731 ECHO_N
732 ECHO_C
733 DEFS
734 mandir
735 localedir
736 libdir
737 psdir
738 pdfdir
739 dvidir
740 htmldir
741 infodir
742 docdir
743 oldincludedir
744 includedir
745 runstatedir
746 localstatedir
747 sharedstatedir
748 sysconfdir
749 datadir
750 datarootdir
751 libexecdir
752 sbindir
753 bindir
754 program_transform_name
755 prefix
756 exec_prefix
757 PACKAGE_URL
758 PACKAGE_BUGREPORT
759 PACKAGE_STRING
760 PACKAGE_VERSION
761 PACKAGE_TARNAME
762 PACKAGE_NAME
763 PATH_SEPARATOR
764 SHELL'
765 ac_subst_files=''
766 ac_user_opts='
767 enable_option_checking
768 enable_machine
769 enable_widecons
770 enable_safecdr
771 enable_safecdrdbg
772 enable_prelink
773 enable_vssize
774 enable_bdssize
775 enable_ihssize
776 enable_frssize
777 enable_infodir
778 enable_emacsdir
779 enable_xgcl
780 enable_dlopen
781 enable_statsysbfd
782 enable_dynsysbfd
783 enable_custreloc
784 enable_debug
785 enable_static
786 enable_pic
787 enable_gprof
788 enable_dynsysgmp
789 with_x
790 enable_xdr
791 enable_cstackmax
792 enable_immfix
793 enable_fastimmfix
794 enable_ansi
795 enable_japi
796 enable_readline
797 enable_tcltk
798 enable_tkconfig
799 enable_tclconfig
800 enable_notify
801 '
802 ac_precious_vars='build_alias
803 host_alias
804 target_alias
805 CC
806 CFLAGS
807 LDFLAGS
808 LIBS
809 CPPFLAGS
810 CPP
811 XMKMF'
812
813
814 # Initialize some variables set by options.
815 ac_init_help=
816 ac_init_version=false
817 ac_unrecognized_opts=
818 ac_unrecognized_sep=
819 # The variables have the same names as the options, with
820 # dashes changed to underlines.
821 cache_file=/dev/null
822 exec_prefix=NONE
823 no_create=
824 no_recursion=
825 prefix=NONE
826 program_prefix=NONE
827 program_suffix=NONE
828 program_transform_name=s,x,x,
829 silent=
830 site=
831 srcdir=
832 verbose=
833 x_includes=NONE
834 x_libraries=NONE
835
836 # Installation directory options.
837 # These are left unexpanded so users can "make install exec_prefix=/foo"
838 # and all the variables that are supposed to be based on exec_prefix
839 # by default will actually change.
840 # Use braces instead of parens because sh, perl, etc. also accept them.
841 # (The list follows the same order as the GNU Coding Standards.)
842 bindir='${exec_prefix}/bin'
843 sbindir='${exec_prefix}/sbin'
844 libexecdir='${exec_prefix}/libexec'
845 datarootdir='${prefix}/share'
846 datadir='${datarootdir}'
847 sysconfdir='${prefix}/etc'
848 sharedstatedir='${prefix}/com'
849 localstatedir='${prefix}/var'
850 runstatedir='${localstatedir}/run'
851 includedir='${prefix}/include'
852 oldincludedir='/usr/include'
853 docdir='${datarootdir}/doc/${PACKAGE}'
854 infodir='${datarootdir}/info'
855 htmldir='${docdir}'
856 dvidir='${docdir}'
857 pdfdir='${docdir}'
858 psdir='${docdir}'
859 libdir='${exec_prefix}/lib'
860 localedir='${datarootdir}/locale'
861 mandir='${datarootdir}/man'
862
863 ac_prev=
864 ac_dashdash=
865 for ac_option
866 do
867 # If the previous option needs an argument, assign it.
868 if test -n "$ac_prev"; then
869 eval $ac_prev=\$ac_option
870 ac_prev=
871 continue
872 fi
873
874 case $ac_option in
875 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
876 *=) ac_optarg= ;;
877 *) ac_optarg=yes ;;
878 esac
879
880 case $ac_dashdash$ac_option in
881 --)
882 ac_dashdash=yes ;;
883
884 -bindir | --bindir | --bindi | --bind | --bin | --bi)
885 ac_prev=bindir ;;
886 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
887 bindir=$ac_optarg ;;
888
889 -build | --build | --buil | --bui | --bu)
890 ac_prev=build_alias ;;
891 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
892 build_alias=$ac_optarg ;;
893
894 -cache-file | --cache-file | --cache-fil | --cache-fi \
895 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
896 ac_prev=cache_file ;;
897 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
898 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
899 cache_file=$ac_optarg ;;
900
901 --config-cache | -C)
902 cache_file=config.cache ;;
903
904 -datadir | --datadir | --datadi | --datad)
905 ac_prev=datadir ;;
906 -datadir=* | --datadir=* | --datadi=* | --datad=*)
907 datadir=$ac_optarg ;;
908
909 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
910 | --dataroo | --dataro | --datar)
911 ac_prev=datarootdir ;;
912 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
913 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
914 datarootdir=$ac_optarg ;;
915
916 -disable-* | --disable-*)
917 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
918 # Reject names that are not valid shell variable names.
919 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
920 as_fn_error $? "invalid feature name: \`$ac_useropt'"
921 ac_useropt_orig=$ac_useropt
922 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
923 case $ac_user_opts in
924 *"
925 "enable_$ac_useropt"
926 "*) ;;
927 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
928 ac_unrecognized_sep=', ';;
929 esac
930 eval enable_$ac_useropt=no ;;
931
932 -docdir | --docdir | --docdi | --doc | --do)
933 ac_prev=docdir ;;
934 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
935 docdir=$ac_optarg ;;
936
937 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
938 ac_prev=dvidir ;;
939 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
940 dvidir=$ac_optarg ;;
941
942 -enable-* | --enable-*)
943 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
944 # Reject names that are not valid shell variable names.
945 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
946 as_fn_error $? "invalid feature name: \`$ac_useropt'"
947 ac_useropt_orig=$ac_useropt
948 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
949 case $ac_user_opts in
950 *"
951 "enable_$ac_useropt"
952 "*) ;;
953 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
954 ac_unrecognized_sep=', ';;
955 esac
956 eval enable_$ac_useropt=\$ac_optarg ;;
957
958 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
959 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
960 | --exec | --exe | --ex)
961 ac_prev=exec_prefix ;;
962 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
963 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
964 | --exec=* | --exe=* | --ex=*)
965 exec_prefix=$ac_optarg ;;
966
967 -gas | --gas | --ga | --g)
968 # Obsolete; use --with-gas.
969 with_gas=yes ;;
970
971 -help | --help | --hel | --he | -h)
972 ac_init_help=long ;;
973 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
974 ac_init_help=recursive ;;
975 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
976 ac_init_help=short ;;
977
978 -host | --host | --hos | --ho)
979 ac_prev=host_alias ;;
980 -host=* | --host=* | --hos=* | --ho=*)
981 host_alias=$ac_optarg ;;
982
983 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
984 ac_prev=htmldir ;;
985 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
986 | --ht=*)
987 htmldir=$ac_optarg ;;
988
989 -includedir | --includedir | --includedi | --included | --include \
990 | --includ | --inclu | --incl | --inc)
991 ac_prev=includedir ;;
992 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
993 | --includ=* | --inclu=* | --incl=* | --inc=*)
994 includedir=$ac_optarg ;;
995
996 -infodir | --infodir | --infodi | --infod | --info | --inf)
997 ac_prev=infodir ;;
998 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
999 infodir=$ac_optarg ;;
1000
1001 -libdir | --libdir | --libdi | --libd)
1002 ac_prev=libdir ;;
1003 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1004 libdir=$ac_optarg ;;
1005
1006 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1007 | --libexe | --libex | --libe)
1008 ac_prev=libexecdir ;;
1009 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1010 | --libexe=* | --libex=* | --libe=*)
1011 libexecdir=$ac_optarg ;;
1012
1013 -localedir | --localedir | --localedi | --localed | --locale)
1014 ac_prev=localedir ;;
1015 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1016 localedir=$ac_optarg ;;
1017
1018 -localstatedir | --localstatedir | --localstatedi | --localstated \
1019 | --localstate | --localstat | --localsta | --localst | --locals)
1020 ac_prev=localstatedir ;;
1021 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1022 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1023 localstatedir=$ac_optarg ;;
1024
1025 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1026 ac_prev=mandir ;;
1027 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1028 mandir=$ac_optarg ;;
1029
1030 -nfp | --nfp | --nf)
1031 # Obsolete; use --without-fp.
1032 with_fp=no ;;
1033
1034 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1035 | --no-cr | --no-c | -n)
1036 no_create=yes ;;
1037
1038 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1039 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1040 no_recursion=yes ;;
1041
1042 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1043 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1044 | --oldin | --oldi | --old | --ol | --o)
1045 ac_prev=oldincludedir ;;
1046 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1047 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1048 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1049 oldincludedir=$ac_optarg ;;
1050
1051 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1052 ac_prev=prefix ;;
1053 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1054 prefix=$ac_optarg ;;
1055
1056 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1057 | --program-pre | --program-pr | --program-p)
1058 ac_prev=program_prefix ;;
1059 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1060 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1061 program_prefix=$ac_optarg ;;
1062
1063 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1064 | --program-suf | --program-su | --program-s)
1065 ac_prev=program_suffix ;;
1066 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1067 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1068 program_suffix=$ac_optarg ;;
1069
1070 -program-transform-name | --program-transform-name \
1071 | --program-transform-nam | --program-transform-na \
1072 | --program-transform-n | --program-transform- \
1073 | --program-transform | --program-transfor \
1074 | --program-transfo | --program-transf \
1075 | --program-trans | --program-tran \
1076 | --progr-tra | --program-tr | --program-t)
1077 ac_prev=program_transform_name ;;
1078 -program-transform-name=* | --program-transform-name=* \
1079 | --program-transform-nam=* | --program-transform-na=* \
1080 | --program-transform-n=* | --program-transform-=* \
1081 | --program-transform=* | --program-transfor=* \
1082 | --program-transfo=* | --program-transf=* \
1083 | --program-trans=* | --program-tran=* \
1084 | --progr-tra=* | --program-tr=* | --program-t=*)
1085 program_transform_name=$ac_optarg ;;
1086
1087 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1088 ac_prev=pdfdir ;;
1089 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1090 pdfdir=$ac_optarg ;;
1091
1092 -psdir | --psdir | --psdi | --psd | --ps)
1093 ac_prev=psdir ;;
1094 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1095 psdir=$ac_optarg ;;
1096
1097 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1098 | -silent | --silent | --silen | --sile | --sil)
1099 silent=yes ;;
1100
1101 -runstatedir | --runstatedir | --runstatedi | --runstated \
1102 | --runstate | --runstat | --runsta | --runst | --runs \
1103 | --run | --ru | --r)
1104 ac_prev=runstatedir ;;
1105 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1106 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1107 | --run=* | --ru=* | --r=*)
1108 runstatedir=$ac_optarg ;;
1109
1110 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1111 ac_prev=sbindir ;;
1112 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1113 | --sbi=* | --sb=*)
1114 sbindir=$ac_optarg ;;
1115
1116 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1117 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1118 | --sharedst | --shareds | --shared | --share | --shar \
1119 | --sha | --sh)
1120 ac_prev=sharedstatedir ;;
1121 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1122 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1123 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1124 | --sha=* | --sh=*)
1125 sharedstatedir=$ac_optarg ;;
1126
1127 -site | --site | --sit)
1128 ac_prev=site ;;
1129 -site=* | --site=* | --sit=*)
1130 site=$ac_optarg ;;
1131
1132 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1133 ac_prev=srcdir ;;
1134 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1135 srcdir=$ac_optarg ;;
1136
1137 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1138 | --syscon | --sysco | --sysc | --sys | --sy)
1139 ac_prev=sysconfdir ;;
1140 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1141 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1142 sysconfdir=$ac_optarg ;;
1143
1144 -target | --target | --targe | --targ | --tar | --ta | --t)
1145 ac_prev=target_alias ;;
1146 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1147 target_alias=$ac_optarg ;;
1148
1149 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1150 verbose=yes ;;
1151
1152 -version | --version | --versio | --versi | --vers | -V)
1153 ac_init_version=: ;;
1154
1155 -with-* | --with-*)
1156 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1157 # Reject names that are not valid shell variable names.
1158 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1159 as_fn_error $? "invalid package name: \`$ac_useropt'"
1160 ac_useropt_orig=$ac_useropt
1161 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1162 case $ac_user_opts in
1163 *"
1164 "with_$ac_useropt"
1165 "*) ;;
1166 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1167 ac_unrecognized_sep=', ';;
1168 esac
1169 eval with_$ac_useropt=\$ac_optarg ;;
1170
1171 -without-* | --without-*)
1172 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1173 # Reject names that are not valid shell variable names.
1174 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1175 as_fn_error $? "invalid package name: \`$ac_useropt'"
1176 ac_useropt_orig=$ac_useropt
1177 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1178 case $ac_user_opts in
1179 *"
1180 "with_$ac_useropt"
1181 "*) ;;
1182 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1183 ac_unrecognized_sep=', ';;
1184 esac
1185 eval with_$ac_useropt=no ;;
1186
1187 --x)
1188 # Obsolete; use --with-x.
1189 with_x=yes ;;
1190
1191 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1192 | --x-incl | --x-inc | --x-in | --x-i)
1193 ac_prev=x_includes ;;
1194 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1195 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1196 x_includes=$ac_optarg ;;
1197
1198 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1199 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1200 ac_prev=x_libraries ;;
1201 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1202 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1203 x_libraries=$ac_optarg ;;
1204
1205 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1206 Try \`$0 --help' for more information"
1207 ;;
1208
1209 *=*)
1210 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1211 # Reject names that are not valid shell variable names.
1212 case $ac_envvar in #(
1213 '' | [0-9]* | *[!_$as_cr_alnum]* )
1214 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1215 esac
1216 eval $ac_envvar=\$ac_optarg
1217 export $ac_envvar ;;
1218
1219 *)
1220 # FIXME: should be removed in autoconf 3.0.
1221 printf "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2
1222 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1223 printf "%s\n" "$as_me: WARNING: invalid host type: $ac_option" >&2
1224 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1225 ;;
1226
1227 esac
1228 done
1229
1230 if test -n "$ac_prev"; then
1231 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1232 as_fn_error $? "missing argument to $ac_option"
1233 fi
1234
1235 if test -n "$ac_unrecognized_opts"; then
1236 case $enable_option_checking in
1237 no) ;;
1238 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1239 *) printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1240 esac
1241 fi
1242
1243 # Check all directory arguments for consistency.
1244 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1245 datadir sysconfdir sharedstatedir localstatedir includedir \
1246 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1247 libdir localedir mandir runstatedir
1248 do
1249 eval ac_val=\$$ac_var
1250 # Remove trailing slashes.
1251 case $ac_val in
1252 */ )
1253 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1254 eval $ac_var=\$ac_val;;
1255 esac
1256 # Be sure to have absolute directory names.
1257 case $ac_val in
1258 [\\/$]* | ?:[\\/]* ) continue;;
1259 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1260 esac
1261 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1262 done
1263
1264 # There might be people who depend on the old broken behavior: `$host'
1265 # used to hold the argument of --host etc.
1266 # FIXME: To remove some day.
1267 build=$build_alias
1268 host=$host_alias
1269 target=$target_alias
1270
1271 # FIXME: To remove some day.
1272 if test "x$host_alias" != x; then
1273 if test "x$build_alias" = x; then
1274 cross_compiling=maybe
1275 elif test "x$build_alias" != "x$host_alias"; then
1276 cross_compiling=yes
1277 fi
1278 fi
1279
1280 ac_tool_prefix=
1281 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1282
1283 test "$silent" = yes && exec 6>/dev/null
1284
1285
1286 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1287 ac_ls_di=`ls -di .` &&
1288 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1289 as_fn_error $? "working directory cannot be determined"
1290 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1291 as_fn_error $? "pwd does not report name of working directory"
1292
1293
1294 # Find the source files, if location was not specified.
1295 if test -z "$srcdir"; then
1296 ac_srcdir_defaulted=yes
1297 # Try the directory containing this script, then the parent directory.
1298 ac_confdir=`$as_dirname -- "$as_myself" ||
1299 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1300 X"$as_myself" : 'X\(//\)[^/]' \| \
1301 X"$as_myself" : 'X\(//\)$' \| \
1302 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1303 printf "%s\n" X"$as_myself" |
1304 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1305 s//\1/
1306 q
1307 }
1308 /^X\(\/\/\)[^/].*/{
1309 s//\1/
1310 q
1311 }
1312 /^X\(\/\/\)$/{
1313 s//\1/
1314 q
1315 }
1316 /^X\(\/\).*/{
1317 s//\1/
1318 q
1319 }
1320 s/.*/./; q'`
1321 srcdir=$ac_confdir
1322 if test ! -r "$srcdir/$ac_unique_file"; then
1323 srcdir=..
1324 fi
1325 else
1326 ac_srcdir_defaulted=no
1327 fi
1328 if test ! -r "$srcdir/$ac_unique_file"; then
1329 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1330 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1331 fi
1332 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1333 ac_abs_confdir=`(
1334 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1335 pwd)`
1336 # When building in place, set srcdir=.
1337 if test "$ac_abs_confdir" = "$ac_pwd"; then
1338 srcdir=.
1339 fi
1340 # Remove unnecessary trailing slashes from srcdir.
1341 # Double slashes in file names in object file debugging info
1342 # mess up M-x gdb in Emacs.
1343 case $srcdir in
1344 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1345 esac
1346 for ac_var in $ac_precious_vars; do
1347 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1348 eval ac_env_${ac_var}_value=\$${ac_var}
1349 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1350 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1351 done
1352
1353 #
1354 # Report the --help message.
1355 #
1356 if test "$ac_init_help" = "long"; then
1357 # Omit some internal or obsolete options to make the list less imposing.
1358 # This message is too long to be a string in the A/UX 3.1 sh.
1359 cat <<_ACEOF
1360 \`configure' configures this package to adapt to many kinds of systems.
1361
1362 Usage: $0 [OPTION]... [VAR=VALUE]...
1363
1364 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1365 VAR=VALUE. See below for descriptions of some of the useful variables.
1366
1367 Defaults for the options are specified in brackets.
1368
1369 Configuration:
1370 -h, --help display this help and exit
1371 --help=short display options specific to this package
1372 --help=recursive display the short help of all the included packages
1373 -V, --version display version information and exit
1374 -q, --quiet, --silent do not print \`checking ...' messages
1375 --cache-file=FILE cache test results in FILE [disabled]
1376 -C, --config-cache alias for \`--cache-file=config.cache'
1377 -n, --no-create do not create output files
1378 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1379
1380 Installation directories:
1381 --prefix=PREFIX install architecture-independent files in PREFIX
1382 [$ac_default_prefix]
1383 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1384 [PREFIX]
1385
1386 By default, \`make install' will install all the files in
1387 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1388 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1389 for instance \`--prefix=\$HOME'.
1390
1391 For better control, use the options below.
1392
1393 Fine tuning of the installation directories:
1394 --bindir=DIR user executables [EPREFIX/bin]
1395 --sbindir=DIR system admin executables [EPREFIX/sbin]
1396 --libexecdir=DIR program executables [EPREFIX/libexec]
1397 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1398 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1399 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1400 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run]
1401 --libdir=DIR object code libraries [EPREFIX/lib]
1402 --includedir=DIR C header files [PREFIX/include]
1403 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1404 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1405 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1406 --infodir=DIR info documentation [DATAROOTDIR/info]
1407 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1408 --mandir=DIR man documentation [DATAROOTDIR/man]
1409 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1410 --htmldir=DIR html documentation [DOCDIR]
1411 --dvidir=DIR dvi documentation [DOCDIR]
1412 --pdfdir=DIR pdf documentation [DOCDIR]
1413 --psdir=DIR ps documentation [DOCDIR]
1414 _ACEOF
1415
1416 cat <<\_ACEOF
1417
1418 X features:
1419 --x-includes=DIR X include files are in DIR
1420 --x-libraries=DIR X library files are in DIR
1421
1422 System types:
1423 --build=BUILD configure for building on BUILD [guessed]
1424 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1425 _ACEOF
1426 fi
1427
1428 if test -n "$ac_init_help"; then
1429
1430 cat <<\_ACEOF
1431
1432 Optional Features:
1433 --disable-option-checking ignore unrecognized --enable/--with options
1434 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1435 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1436 --enable-machine=XXXX will force the use of one of the definitions in h/XXXX.defs
1437 --enable-widecons will use a three word cons with simplified typing
1438 --enable-safecdr will protect cdr from immfix and speed up type processing
1439 --enable-safecdrdbg will debug safecdr code
1440 --enable-prelink will insist that the produced images may be prelinked
1441 --enable-vssize=XXXX will compile in a value stack of size XXX
1442 --enable-bdssize=XXXX will compile in a binding stack of size XXX
1443 --enable-ihssize=XXXX will compile in a invocation history stack of size XXX
1444 --enable-frssize=XXXX will compile in a frame stack of size XXX
1445 --enable-infodir=XXXX will force the use of a INFO_DIR=XXXXX as place to look for info
1446 --enable-emacsdir=XXXX will manually specify the location for elisp files
1447 --enable-xgcl=yes will compile in support for XGCL
1448 --enable-dlopen uses dlopen for loading objects, which can then not be retained in saved images
1449 --enable-statsysbfd uses a static system bfd library for loading and relocating object files
1450 --enable-dynsysbfd uses a dynamic shared system bfd library for loading and relocating object files
1451 --enable-custreloc uses custom gcl code if available for loading and relocationing object files
1452 --enable-debug builds gcl with -g in CFLAGS to enable running under gdb
1453 --enable-static will link your GCL against static as opposed to shared system libraries
1454 --enable-pic builds gcl with -fPIC in CFLAGS
1455 --enable-gprof builds gcl with -pg in CFLAGS to enable profiling with gprof
1456 --enable-dynsysgmp will link against the system libgmp3 overriding certain functions with patched versions from the local source
1457 --enable-xdr=yes will compile in support for XDR
1458 --enable-cstackmax=xxxx will ensure that the cstack begins below xxxx or fail
1459 --enable-immfix will enable an immediate fixnum table above the C stack
1460 --enable-fastimmfix=XXXX will reject low immediate fixnums unless 2^XXX can be attained
1461 --enable-ansi builds a large gcl aiming for ansi compliance
1462 --enable-japi=yes will compile in support for the JAPI graphical interface if present on your system
1463 --enable-readline enables command line completion via the readline library
1464 --enable-tcltk will try to build gcl-tk
1465 --enable-tkconfig=XXXX will force the use of a TK_CONFIG_PREFIX=XXXXX as place to look for tkConfig.sh and tclConfig.sh
1466 --enable-tclconfig=XXXX will force the use of a TCL_CONFIG_PREFIX=XXXXX as place to look for tclConfig.sh and tclConfig.sh
1467 --enable-notify=no will disable the automatic notification of gcl maintainers of successful builds/problems
1468
1469 Optional Packages:
1470 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1471 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1472 --with-x use the X Window System
1473
1474 Some influential environment variables:
1475 CC C compiler command
1476 CFLAGS C compiler flags
1477 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1478 nonstandard directory <lib dir>
1479 LIBS libraries to pass to the linker, e.g. -l<library>
1480 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1481 you have headers in a nonstandard directory <include dir>
1482 CPP C preprocessor
1483 XMKMF Path to xmkmf, Makefile generator for X Window System
1484
1485 Use these variables to override the choices made by `configure' or to help
1486 it to find libraries and programs with nonstandard names/locations.
1487
1488 Report bugs to the package provider.
1489 _ACEOF
1490 ac_status=$?
1491 fi
1492
1493 if test "$ac_init_help" = "recursive"; then
1494 # If there are subdirs, report their specific --help.
1495 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1496 test -d "$ac_dir" ||
1497 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1498 continue
1499 ac_builddir=.
1500
1501 case "$ac_dir" in
1502 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1503 *)
1504 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
1505 # A ".." for each directory in $ac_dir_suffix.
1506 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1507 case $ac_top_builddir_sub in
1508 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1509 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1510 esac ;;
1511 esac
1512 ac_abs_top_builddir=$ac_pwd
1513 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1514 # for backward compatibility:
1515 ac_top_builddir=$ac_top_build_prefix
1516
1517 case $srcdir in
1518 .) # We are building in place.
1519 ac_srcdir=.
1520 ac_top_srcdir=$ac_top_builddir_sub
1521 ac_abs_top_srcdir=$ac_pwd ;;
1522 [\\/]* | ?:[\\/]* ) # Absolute name.
1523 ac_srcdir=$srcdir$ac_dir_suffix;
1524 ac_top_srcdir=$srcdir
1525 ac_abs_top_srcdir=$srcdir ;;
1526 *) # Relative name.
1527 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1528 ac_top_srcdir=$ac_top_build_prefix$srcdir
1529 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1530 esac
1531 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1532
1533 cd "$ac_dir" || { ac_status=$?; continue; }
1534 # Check for configure.gnu first; this name is used for a wrapper for
1535 # Metaconfig's "Configure" on case-insensitive file systems.
1536 if test -f "$ac_srcdir/configure.gnu"; then
1537 echo &&
1538 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1539 elif test -f "$ac_srcdir/configure"; then
1540 echo &&
1541 $SHELL "$ac_srcdir/configure" --help=recursive
1542 else
1543 printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1544 fi || ac_status=$?
1545 cd "$ac_pwd" || { ac_status=$?; break; }
1546 done
1547 fi
1548
1549 test -n "$ac_init_help" && exit $ac_status
1550 if $ac_init_version; then
1551 cat <<\_ACEOF
1552 configure
1553 generated by GNU Autoconf 2.71
1554
1555 Copyright (C) 2021 Free Software Foundation, Inc.
1556 This configure script is free software; the Free Software Foundation
1557 gives unlimited permission to copy, distribute and modify it.
1558 _ACEOF
1559 exit
1560 fi
1561
1562 ## ------------------------ ##
1563 ## Autoconf initialization. ##
1564 ## ------------------------ ##
1565
1566 # ac_fn_c_try_compile LINENO
1567 # --------------------------
1568 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1569 ac_fn_c_try_compile ()
1570 {
1571 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1572 rm -f conftest.$ac_objext conftest.beam
1573 if { { ac_try="$ac_compile"
1574 case "(($ac_try" in
1575 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1576 *) ac_try_echo=$ac_try;;
1577 esac
1578 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1579 printf "%s\n" "$ac_try_echo"; } >&5
1580 (eval "$ac_compile") 2>conftest.err
1581 ac_status=$?
1582 if test -s conftest.err; then
1583 grep -v '^ *+' conftest.err >conftest.er1
1584 cat conftest.er1 >&5
1585 mv -f conftest.er1 conftest.err
1586 fi
1587 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1588 test $ac_status = 0; } && {
1589 test -z "$ac_c_werror_flag" ||
1590 test ! -s conftest.err
1591 } && test -s conftest.$ac_objext
1592 then :
1593 ac_retval=0
1594 else $as_nop
1595 printf "%s\n" "$as_me: failed program was:" >&5
1596 sed 's/^/| /' conftest.$ac_ext >&5
1597
1598 ac_retval=1
1599 fi
1600 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1601 as_fn_set_status $ac_retval
1602
1603 } # ac_fn_c_try_compile
1604
1605 # ac_fn_c_try_cpp LINENO
1606 # ----------------------
1607 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1608 ac_fn_c_try_cpp ()
1609 {
1610 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1611 if { { ac_try="$ac_cpp conftest.$ac_ext"
1612 case "(($ac_try" in
1613 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1614 *) ac_try_echo=$ac_try;;
1615 esac
1616 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1617 printf "%s\n" "$ac_try_echo"; } >&5
1618 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1619 ac_status=$?
1620 if test -s conftest.err; then
1621 grep -v '^ *+' conftest.err >conftest.er1
1622 cat conftest.er1 >&5
1623 mv -f conftest.er1 conftest.err
1624 fi
1625 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1626 test $ac_status = 0; } > conftest.i && {
1627 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1628 test ! -s conftest.err
1629 }
1630 then :
1631 ac_retval=0
1632 else $as_nop
1633 printf "%s\n" "$as_me: failed program was:" >&5
1634 sed 's/^/| /' conftest.$ac_ext >&5
1635
1636 ac_retval=1
1637 fi
1638 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1639 as_fn_set_status $ac_retval
1640
1641 } # ac_fn_c_try_cpp
1642
1643 # ac_fn_c_try_run LINENO
1644 # ----------------------
1645 # Try to run conftest.$ac_ext, and return whether this succeeded. Assumes that
1646 # executables *can* be run.
1647 ac_fn_c_try_run ()
1648 {
1649 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1650 if { { ac_try="$ac_link"
1651 case "(($ac_try" in
1652 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1653 *) ac_try_echo=$ac_try;;
1654 esac
1655 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1656 printf "%s\n" "$ac_try_echo"; } >&5
1657 (eval "$ac_link") 2>&5
1658 ac_status=$?
1659 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1660 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1661 { { case "(($ac_try" in
1662 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1663 *) ac_try_echo=$ac_try;;
1664 esac
1665 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1666 printf "%s\n" "$ac_try_echo"; } >&5
1667 (eval "$ac_try") 2>&5
1668 ac_status=$?
1669 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1670 test $ac_status = 0; }; }
1671 then :
1672 ac_retval=0
1673 else $as_nop
1674 printf "%s\n" "$as_me: program exited with status $ac_status" >&5
1675 printf "%s\n" "$as_me: failed program was:" >&5
1676 sed 's/^/| /' conftest.$ac_ext >&5
1677
1678 ac_retval=$ac_status
1679 fi
1680 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1681 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1682 as_fn_set_status $ac_retval
1683
1684 } # ac_fn_c_try_run
1685
1686 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1687 # -------------------------------------------------------
1688 # Tests whether HEADER exists and can be compiled using the include files in
1689 # INCLUDES, setting the cache variable VAR accordingly.
1690 ac_fn_c_check_header_compile ()
1691 {
1692 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1693 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1694 printf %s "checking for $2... " >&6; }
1695 if eval test \${$3+y}
1696 then :
1697 printf %s "(cached) " >&6
1698 else $as_nop
1699 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1700 /* end confdefs.h. */
1701 $4
1702 #include <$2>
1703 _ACEOF
1704 if ac_fn_c_try_compile "$LINENO"
1705 then :
1706 eval "$3=yes"
1707 else $as_nop
1708 eval "$3=no"
1709 fi
1710 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1711 fi
1712 eval ac_res=\$$3
1713 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1714 printf "%s\n" "$ac_res" >&6; }
1715 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1716
1717 } # ac_fn_c_check_header_compile
1718
1719 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
1720 # ----------------------------------------------------
1721 # Tries to find if the field MEMBER exists in type AGGR, after including
1722 # INCLUDES, setting cache variable VAR accordingly.
1723 ac_fn_c_check_member ()
1724 {
1725 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1726 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
1727 printf %s "checking for $2.$3... " >&6; }
1728 if eval test \${$4+y}
1729 then :
1730 printf %s "(cached) " >&6
1731 else $as_nop
1732 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1733 /* end confdefs.h. */
1734 $5
1735 int
1736 main (void)
1737 {
1738 static $2 ac_aggr;
1739 if (ac_aggr.$3)
1740 return 0;
1741 ;
1742 return 0;
1743 }
1744 _ACEOF
1745 if ac_fn_c_try_compile "$LINENO"
1746 then :
1747 eval "$4=yes"
1748 else $as_nop
1749 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1750 /* end confdefs.h. */
1751 $5
1752 int
1753 main (void)
1754 {
1755 static $2 ac_aggr;
1756 if (sizeof ac_aggr.$3)
1757 return 0;
1758 ;
1759 return 0;
1760 }
1761 _ACEOF
1762 if ac_fn_c_try_compile "$LINENO"
1763 then :
1764 eval "$4=yes"
1765 else $as_nop
1766 eval "$4=no"
1767 fi
1768 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1769 fi
1770 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1771 fi
1772 eval ac_res=\$$4
1773 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1774 printf "%s\n" "$ac_res" >&6; }
1775 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1776
1777 } # ac_fn_c_check_member
1778
1779 # ac_fn_c_try_link LINENO
1780 # -----------------------
1781 # Try to link conftest.$ac_ext, and return whether this succeeded.
1782 ac_fn_c_try_link ()
1783 {
1784 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1785 rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext
1786 if { { ac_try="$ac_link"
1787 case "(($ac_try" in
1788 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1789 *) ac_try_echo=$ac_try;;
1790 esac
1791 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1792 printf "%s\n" "$ac_try_echo"; } >&5
1793 (eval "$ac_link") 2>conftest.err
1794 ac_status=$?
1795 if test -s conftest.err; then
1796 grep -v '^ *+' conftest.err >conftest.er1
1797 cat conftest.er1 >&5
1798 mv -f conftest.er1 conftest.err
1799 fi
1800 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1801 test $ac_status = 0; } && {
1802 test -z "$ac_c_werror_flag" ||
1803 test ! -s conftest.err
1804 } && test -s conftest$ac_exeext && {
1805 test "$cross_compiling" = yes ||
1806 test -x conftest$ac_exeext
1807 }
1808 then :
1809 ac_retval=0
1810 else $as_nop
1811 printf "%s\n" "$as_me: failed program was:" >&5
1812 sed 's/^/| /' conftest.$ac_ext >&5
1813
1814 ac_retval=1
1815 fi
1816 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1817 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1818 # interfere with the next link command; also delete a directory that is
1819 # left behind by Apple's compiler. We do this before executing the actions.
1820 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1821 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1822 as_fn_set_status $ac_retval
1823
1824 } # ac_fn_c_try_link
1825
1826 # ac_fn_c_check_func LINENO FUNC VAR
1827 # ----------------------------------
1828 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1829 ac_fn_c_check_func ()
1830 {
1831 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1832 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1833 printf %s "checking for $2... " >&6; }
1834 if eval test \${$3+y}
1835 then :
1836 printf %s "(cached) " >&6
1837 else $as_nop
1838 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1839 /* end confdefs.h. */
1840 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1841 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1842 #define $2 innocuous_$2
1843
1844 /* System header to define __stub macros and hopefully few prototypes,
1845 which can conflict with char $2 (); below. */
1846
1847 #include <limits.h>
1848 #undef $2
1849
1850 /* Override any GCC internal prototype to avoid an error.
1851 Use char because int might match the return type of a GCC
1852 builtin and then its argument prototype would still apply. */
1853 #ifdef __cplusplus
1854 extern "C"
1855 #endif
1856 char $2 ();
1857 /* The GNU C library defines this for functions which it implements
1858 to always fail with ENOSYS. Some functions are actually named
1859 something starting with __ and the normal name is an alias. */
1860 #if defined __stub_$2 || defined __stub___$2
1861 choke me
1862 #endif
1863
1864 int
1865 main (void)
1866 {
1867 return $2 ();
1868 ;
1869 return 0;
1870 }
1871 _ACEOF
1872 if ac_fn_c_try_link "$LINENO"
1873 then :
1874 eval "$3=yes"
1875 else $as_nop
1876 eval "$3=no"
1877 fi
1878 rm -f core conftest.err conftest.$ac_objext conftest.beam \
1879 conftest$ac_exeext conftest.$ac_ext
1880 fi
1881 eval ac_res=\$$3
1882 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1883 printf "%s\n" "$ac_res" >&6; }
1884 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1885
1886 } # ac_fn_c_check_func
1887
1888 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
1889 # --------------------------------------------
1890 # Tries to find the compile-time value of EXPR in a program that includes
1891 # INCLUDES, setting VAR accordingly. Returns whether the value could be
1892 # computed
1893 ac_fn_c_compute_int ()
1894 {
1895 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1896 if test "$cross_compiling" = yes; then
1897 # Depending upon the size, compute the lo and hi bounds.
1898 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1899 /* end confdefs.h. */
1900 $4
1901 int
1902 main (void)
1903 {
1904 static int test_array [1 - 2 * !(($2) >= 0)];
1905 test_array [0] = 0;
1906 return test_array [0];
1907
1908 ;
1909 return 0;
1910 }
1911 _ACEOF
1912 if ac_fn_c_try_compile "$LINENO"
1913 then :
1914 ac_lo=0 ac_mid=0
1915 while :; do
1916 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1917 /* end confdefs.h. */
1918 $4
1919 int
1920 main (void)
1921 {
1922 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
1923 test_array [0] = 0;
1924 return test_array [0];
1925
1926 ;
1927 return 0;
1928 }
1929 _ACEOF
1930 if ac_fn_c_try_compile "$LINENO"
1931 then :
1932 ac_hi=$ac_mid; break
1933 else $as_nop
1934 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
1935 if test $ac_lo -le $ac_mid; then
1936 ac_lo= ac_hi=
1937 break
1938 fi
1939 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
1940 fi
1941 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1942 done
1943 else $as_nop
1944 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1945 /* end confdefs.h. */
1946 $4
1947 int
1948 main (void)
1949 {
1950 static int test_array [1 - 2 * !(($2) < 0)];
1951 test_array [0] = 0;
1952 return test_array [0];
1953
1954 ;
1955 return 0;
1956 }
1957 _ACEOF
1958 if ac_fn_c_try_compile "$LINENO"
1959 then :
1960 ac_hi=-1 ac_mid=-1
1961 while :; do
1962 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1963 /* end confdefs.h. */
1964 $4
1965 int
1966 main (void)
1967 {
1968 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
1969 test_array [0] = 0;
1970 return test_array [0];
1971
1972 ;
1973 return 0;
1974 }
1975 _ACEOF
1976 if ac_fn_c_try_compile "$LINENO"
1977 then :
1978 ac_lo=$ac_mid; break
1979 else $as_nop
1980 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
1981 if test $ac_mid -le $ac_hi; then
1982 ac_lo= ac_hi=
1983 break
1984 fi
1985 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
1986 fi
1987 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1988 done
1989 else $as_nop
1990 ac_lo= ac_hi=
1991 fi
1992 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1993 fi
1994 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1995 # Binary search between lo and hi bounds.
1996 while test "x$ac_lo" != "x$ac_hi"; do
1997 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
1998 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1999 /* end confdefs.h. */
2000 $4
2001 int
2002 main (void)
2003 {
2004 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2005 test_array [0] = 0;
2006 return test_array [0];
2007
2008 ;
2009 return 0;
2010 }
2011 _ACEOF
2012 if ac_fn_c_try_compile "$LINENO"
2013 then :
2014 ac_hi=$ac_mid
2015 else $as_nop
2016 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2017 fi
2018 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2019 done
2020 case $ac_lo in #((
2021 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2022 '') ac_retval=1 ;;
2023 esac
2024 else
2025 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2026 /* end confdefs.h. */
2027 $4
2028 static long int longval (void) { return $2; }
2029 static unsigned long int ulongval (void) { return $2; }
2030 #include <stdio.h>
2031 #include <stdlib.h>
2032 int
2033 main (void)
2034 {
2035
2036 FILE *f = fopen ("conftest.val", "w");
2037 if (! f)
2038 return 1;
2039 if (($2) < 0)
2040 {
2041 long int i = longval ();
2042 if (i != ($2))
2043 return 1;
2044 fprintf (f, "%ld", i);
2045 }
2046 else
2047 {
2048 unsigned long int i = ulongval ();
2049 if (i != ($2))
2050 return 1;
2051 fprintf (f, "%lu", i);
2052 }
2053 /* Do not output a trailing newline, as this causes \r\n confusion
2054 on some platforms. */
2055 return ferror (f) || fclose (f) != 0;
2056
2057 ;
2058 return 0;
2059 }
2060 _ACEOF
2061 if ac_fn_c_try_run "$LINENO"
2062 then :
2063 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2064 else $as_nop
2065 ac_retval=1
2066 fi
2067 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2068 conftest.$ac_objext conftest.beam conftest.$ac_ext
2069 rm -f conftest.val
2070
2071 fi
2072 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2073 as_fn_set_status $ac_retval
2074
2075 } # ac_fn_c_compute_int
2076
2077 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2078 # -------------------------------------------
2079 # Tests whether TYPE exists after having included INCLUDES, setting cache
2080 # variable VAR accordingly.
2081 ac_fn_c_check_type ()
2082 {
2083 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2084 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2085 printf %s "checking for $2... " >&6; }
2086 if eval test \${$3+y}
2087 then :
2088 printf %s "(cached) " >&6
2089 else $as_nop
2090 eval "$3=no"
2091 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2092 /* end confdefs.h. */
2093 $4
2094 int
2095 main (void)
2096 {
2097 if (sizeof ($2))
2098 return 0;
2099 ;
2100 return 0;
2101 }
2102 _ACEOF
2103 if ac_fn_c_try_compile "$LINENO"
2104 then :
2105 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2106 /* end confdefs.h. */
2107 $4
2108 int
2109 main (void)
2110 {
2111 if (sizeof (($2)))
2112 return 0;
2113 ;
2114 return 0;
2115 }
2116 _ACEOF
2117 if ac_fn_c_try_compile "$LINENO"
2118 then :
2119
2120 else $as_nop
2121 eval "$3=yes"
2122 fi
2123 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2124 fi
2125 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2126 fi
2127 eval ac_res=\$$3
2128 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2129 printf "%s\n" "$ac_res" >&6; }
2130 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2131
2132 } # ac_fn_c_check_type
2133 ac_configure_args_raw=
2134 for ac_arg
2135 do
2136 case $ac_arg in
2137 *\'*)
2138 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2139 esac
2140 as_fn_append ac_configure_args_raw " '$ac_arg'"
2141 done
2142
2143 case $ac_configure_args_raw in
2144 *$as_nl*)
2145 ac_safe_unquote= ;;
2146 *)
2147 ac_unsafe_z='|&;<>()$`\\"*?[ '' ' # This string ends in space, tab.
2148 ac_unsafe_a="$ac_unsafe_z#~"
2149 ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g"
2150 ac_configure_args_raw=` printf "%s\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;;
2151 esac
2152
2153 cat >config.log <<_ACEOF
2154 This file contains any messages produced by compilers while
2155 running configure, to aid debugging if configure makes a mistake.
2156
2157 It was created by $as_me, which was
2158 generated by GNU Autoconf 2.71. Invocation command line was
2159
2160 $ $0$ac_configure_args_raw
2161
2162 _ACEOF
2163 exec 5>>config.log
2164 {
2165 cat <<_ASUNAME
2166 ## --------- ##
2167 ## Platform. ##
2168 ## --------- ##
2169
2170 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2171 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2172 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2173 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2174 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2175
2176 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2177 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2178
2179 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2180 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2181 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2182 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2183 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2184 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2185 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2186
2187 _ASUNAME
2188
2189 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2190 for as_dir in $PATH
2191 do
2192 IFS=$as_save_IFS
2193 case $as_dir in #(((
2194 '') as_dir=./ ;;
2195 */) ;;
2196 *) as_dir=$as_dir/ ;;
2197 esac
2198 printf "%s\n" "PATH: $as_dir"
2199 done
2200 IFS=$as_save_IFS
2201
2202 } >&5
2203
2204 cat >&5 <<_ACEOF
2205
2206
2207 ## ----------- ##
2208 ## Core tests. ##
2209 ## ----------- ##
2210
2211 _ACEOF
2212
2213
2214 # Keep a trace of the command line.
2215 # Strip out --no-create and --no-recursion so they do not pile up.
2216 # Strip out --silent because we don't want to record it for future runs.
2217 # Also quote any args containing shell meta-characters.
2218 # Make two passes to allow for proper duplicate-argument suppression.
2219 ac_configure_args=
2220 ac_configure_args0=
2221 ac_configure_args1=
2222 ac_must_keep_next=false
2223 for ac_pass in 1 2
2224 do
2225 for ac_arg
2226 do
2227 case $ac_arg in
2228 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2229 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2230 | -silent | --silent | --silen | --sile | --sil)
2231 continue ;;
2232 *\'*)
2233 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2234 esac
2235 case $ac_pass in
2236 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2237 2)
2238 as_fn_append ac_configure_args1 " '$ac_arg'"
2239 if test $ac_must_keep_next = true; then
2240 ac_must_keep_next=false # Got value, back to normal.
2241 else
2242 case $ac_arg in
2243 *=* | --config-cache | -C | -disable-* | --disable-* \
2244 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2245 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2246 | -with-* | --with-* | -without-* | --without-* | --x)
2247 case "$ac_configure_args0 " in
2248 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2249 esac
2250 ;;
2251 -* ) ac_must_keep_next=true ;;
2252 esac
2253 fi
2254 as_fn_append ac_configure_args " '$ac_arg'"
2255 ;;
2256 esac
2257 done
2258 done
2259 { ac_configure_args0=; unset ac_configure_args0;}
2260 { ac_configure_args1=; unset ac_configure_args1;}
2261
2262 # When interrupted or exit'd, cleanup temporary files, and complete
2263 # config.log. We remove comments because anyway the quotes in there
2264 # would cause problems or look ugly.
2265 # WARNING: Use '\'' to represent an apostrophe within the trap.
2266 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2267 trap 'exit_status=$?
2268 # Sanitize IFS.
2269 IFS=" "" $as_nl"
2270 # Save into config.log some information that might help in debugging.
2271 {
2272 echo
2273
2274 printf "%s\n" "## ---------------- ##
2275 ## Cache variables. ##
2276 ## ---------------- ##"
2277 echo
2278 # The following way of writing the cache mishandles newlines in values,
2279 (
2280 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2281 eval ac_val=\$$ac_var
2282 case $ac_val in #(
2283 *${as_nl}*)
2284 case $ac_var in #(
2285 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2286 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2287 esac
2288 case $ac_var in #(
2289 _ | IFS | as_nl) ;; #(
2290 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2291 *) { eval $ac_var=; unset $ac_var;} ;;
2292 esac ;;
2293 esac
2294 done
2295 (set) 2>&1 |
2296 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2297 *${as_nl}ac_space=\ *)
2298 sed -n \
2299 "s/'\''/'\''\\\\'\'''\''/g;
2300 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2301 ;; #(
2302 *)
2303 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2304 ;;
2305 esac |
2306 sort
2307 )
2308 echo
2309
2310 printf "%s\n" "## ----------------- ##
2311 ## Output variables. ##
2312 ## ----------------- ##"
2313 echo
2314 for ac_var in $ac_subst_vars
2315 do
2316 eval ac_val=\$$ac_var
2317 case $ac_val in
2318 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2319 esac
2320 printf "%s\n" "$ac_var='\''$ac_val'\''"
2321 done | sort
2322 echo
2323
2324 if test -n "$ac_subst_files"; then
2325 printf "%s\n" "## ------------------- ##
2326 ## File substitutions. ##
2327 ## ------------------- ##"
2328 echo
2329 for ac_var in $ac_subst_files
2330 do
2331 eval ac_val=\$$ac_var
2332 case $ac_val in
2333 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2334 esac
2335 printf "%s\n" "$ac_var='\''$ac_val'\''"
2336 done | sort
2337 echo
2338 fi
2339
2340 if test -s confdefs.h; then
2341 printf "%s\n" "## ----------- ##
2342 ## confdefs.h. ##
2343 ## ----------- ##"
2344 echo
2345 cat confdefs.h
2346 echo
2347 fi
2348 test "$ac_signal" != 0 &&
2349 printf "%s\n" "$as_me: caught signal $ac_signal"
2350 printf "%s\n" "$as_me: exit $exit_status"
2351 } >&5
2352 rm -f core *.core core.conftest.* &&
2353 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2354 exit $exit_status
2355 ' 0
2356 for ac_signal in 1 2 13 15; do
2357 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2358 done
2359 ac_signal=0
2360
2361 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2362 rm -f -r conftest* confdefs.h
2363
2364 printf "%s\n" "/* confdefs.h */" > confdefs.h
2365
2366 # Predefined preprocessor variables.
2367
2368 printf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h
2369
2370 printf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h
2371
2372 printf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h
2373
2374 printf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h
2375
2376 printf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h
2377
2378 printf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h
2379
2380
2381 # Let the site file select an alternate cache file if it wants to.
2382 # Prefer an explicitly selected file to automatically selected ones.
2383 if test -n "$CONFIG_SITE"; then
2384 ac_site_files="$CONFIG_SITE"
2385 elif test "x$prefix" != xNONE; then
2386 ac_site_files="$prefix/share/config.site $prefix/etc/config.site"
2387 else
2388 ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
2389 fi
2390
2391 for ac_site_file in $ac_site_files
2392 do
2393 case $ac_site_file in #(
2394 */*) :
2395 ;; #(
2396 *) :
2397 ac_site_file=./$ac_site_file ;;
2398 esac
2399 if test -f "$ac_site_file" && test -r "$ac_site_file"; then
2400 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2401 printf "%s\n" "$as_me: loading site script $ac_site_file" >&6;}
2402 sed 's/^/| /' "$ac_site_file" >&5
2403 . "$ac_site_file" \
2404 || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2405 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
2406 as_fn_error $? "failed to load site script $ac_site_file
2407 See \`config.log' for more details" "$LINENO" 5; }
2408 fi
2409 done
2410
2411 if test -r "$cache_file"; then
2412 # Some versions of bash will fail to source /dev/null (special files
2413 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2414 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2415 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2416 printf "%s\n" "$as_me: loading cache $cache_file" >&6;}
2417 case $cache_file in
2418 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2419 *) . "./$cache_file";;
2420 esac
2421 fi
2422 else
2423 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2424 printf "%s\n" "$as_me: creating cache $cache_file" >&6;}
2425 >$cache_file
2426 fi
2427
2428 # Test code for whether the C compiler supports C89 (global declarations)
2429 ac_c_conftest_c89_globals='
2430 /* Does the compiler advertise C89 conformance?
2431 Do not test the value of __STDC__, because some compilers set it to 0
2432 while being otherwise adequately conformant. */
2433 #if !defined __STDC__
2434 # error "Compiler does not advertise C89 conformance"
2435 #endif
2436
2437 #include <stddef.h>
2438 #include <stdarg.h>
2439 struct stat;
2440 /* Most of the following tests are stolen from RCS 5.7 src/conf.sh. */
2441 struct buf { int x; };
2442 struct buf * (*rcsopen) (struct buf *, struct stat *, int);
2443 static char *e (p, i)
2444 char **p;
2445 int i;
2446 {
2447 return p[i];
2448 }
2449 static char *f (char * (*g) (char **, int), char **p, ...)
2450 {
2451 char *s;
2452 va_list v;
2453 va_start (v,p);
2454 s = g (p, va_arg (v,int));
2455 va_end (v);
2456 return s;
2457 }
2458
2459 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2460 function prototypes and stuff, but not \xHH hex character constants.
2461 These do not provoke an error unfortunately, instead are silently treated
2462 as an "x". The following induces an error, until -std is added to get
2463 proper ANSI mode. Curiously \x00 != x always comes out true, for an
2464 array size at least. It is necessary to write \x00 == 0 to get something
2465 that is true only with -std. */
2466 int osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1];
2467
2468 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2469 inside strings and character constants. */
2470 #define FOO(x) '\''x'\''
2471 int xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1];
2472
2473 int test (int i, double x);
2474 struct s1 {int (*f) (int a);};
2475 struct s2 {int (*f) (double a);};
2476 int pairnames (int, char **, int *(*)(struct buf *, struct stat *, int),
2477 int, int);'
2478
2479 # Test code for whether the C compiler supports C89 (body of main).
2480 ac_c_conftest_c89_main='
2481 ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]);
2482 '
2483
2484 # Test code for whether the C compiler supports C99 (global declarations)
2485 ac_c_conftest_c99_globals='
2486 // Does the compiler advertise C99 conformance?
2487 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L
2488 # error "Compiler does not advertise C99 conformance"
2489 #endif
2490
2491 #include <stdbool.h>
2492 extern int puts (const char *);
2493 extern int printf (const char *, ...);
2494 extern int dprintf (int, const char *, ...);
2495 extern void *malloc (size_t);
2496
2497 // Check varargs macros. These examples are taken from C99 6.10.3.5.
2498 // dprintf is used instead of fprintf to avoid needing to declare
2499 // FILE and stderr.
2500 #define debug(...) dprintf (2, __VA_ARGS__)
2501 #define showlist(...) puts (#__VA_ARGS__)
2502 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
2503 static void
2504 test_varargs_macros (void)
2505 {
2506 int x = 1234;
2507 int y = 5678;
2508 debug ("Flag");
2509 debug ("X = %d\n", x);
2510 showlist (The first, second, and third items.);
2511 report (x>y, "x is %d but y is %d", x, y);
2512 }
2513
2514 // Check long long types.
2515 #define BIG64 18446744073709551615ull
2516 #define BIG32 4294967295ul
2517 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
2518 #if !BIG_OK
2519 #error "your preprocessor is broken"
2520 #endif
2521 #if BIG_OK
2522 #else
2523 #error "your preprocessor is broken"
2524 #endif
2525 static long long int bignum = -9223372036854775807LL;
2526 static unsigned long long int ubignum = BIG64;
2527
2528 struct incomplete_array
2529 {
2530 int datasize;
2531 double data[];
2532 };
2533
2534 struct named_init {
2535 int number;
2536 const wchar_t *name;
2537 double average;
2538 };
2539
2540 typedef const char *ccp;
2541
2542 static inline int
2543 test_restrict (ccp restrict text)
2544 {
2545 // See if C++-style comments work.
2546 // Iterate through items via the restricted pointer.
2547 // Also check for declarations in for loops.
2548 for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i)
2549 continue;
2550 return 0;
2551 }
2552
2553 // Check varargs and va_copy.
2554 static bool
2555 test_varargs (const char *format, ...)
2556 {
2557 va_list args;
2558 va_start (args, format);
2559 va_list args_copy;
2560 va_copy (args_copy, args);
2561
2562 const char *str = "";
2563 int number = 0;
2564 float fnumber = 0;
2565
2566 while (*format)
2567 {
2568 switch (*format++)
2569 {
2570 case '\''s'\'': // string
2571 str = va_arg (args_copy, const char *);
2572 break;
2573 case '\''d'\'': // int
2574 number = va_arg (args_copy, int);
2575 break;
2576 case '\''f'\'': // float
2577 fnumber = va_arg (args_copy, double);
2578 break;
2579 default:
2580 break;
2581 }
2582 }
2583 va_end (args_copy);
2584 va_end (args);
2585
2586 return *str && number && fnumber;
2587 }
2588 '
2589
2590 # Test code for whether the C compiler supports C99 (body of main).
2591 ac_c_conftest_c99_main='
2592 // Check bool.
2593 _Bool success = false;
2594 success |= (argc != 0);
2595
2596 // Check restrict.
2597 if (test_restrict ("String literal") == 0)
2598 success = true;
2599 char *restrict newvar = "Another string";
2600
2601 // Check varargs.
2602 success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234);
2603 test_varargs_macros ();
2604
2605 // Check flexible array members.
2606 struct incomplete_array *ia =
2607 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
2608 ia->datasize = 10;
2609 for (int i = 0; i < ia->datasize; ++i)
2610 ia->data[i] = i * 1.234;
2611
2612 // Check named initializers.
2613 struct named_init ni = {
2614 .number = 34,
2615 .name = L"Test wide string",
2616 .average = 543.34343,
2617 };
2618
2619 ni.number = 58;
2620
2621 int dynamic_array[ni.number];
2622 dynamic_array[0] = argv[0][0];
2623 dynamic_array[ni.number - 1] = 543;
2624
2625 // work around unused variable warnings
2626 ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\''
2627 || dynamic_array[ni.number - 1] != 543);
2628 '
2629
2630 # Test code for whether the C compiler supports C11 (global declarations)
2631 ac_c_conftest_c11_globals='
2632 // Does the compiler advertise C11 conformance?
2633 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L
2634 # error "Compiler does not advertise C11 conformance"
2635 #endif
2636
2637 // Check _Alignas.
2638 char _Alignas (double) aligned_as_double;
2639 char _Alignas (0) no_special_alignment;
2640 extern char aligned_as_int;
2641 char _Alignas (0) _Alignas (int) aligned_as_int;
2642
2643 // Check _Alignof.
2644 enum
2645 {
2646 int_alignment = _Alignof (int),
2647 int_array_alignment = _Alignof (int[100]),
2648 char_alignment = _Alignof (char)
2649 };
2650 _Static_assert (0 < -_Alignof (int), "_Alignof is signed");
2651
2652 // Check _Noreturn.
2653 int _Noreturn does_not_return (void) { for (;;) continue; }
2654
2655 // Check _Static_assert.
2656 struct test_static_assert
2657 {
2658 int x;
2659 _Static_assert (sizeof (int) <= sizeof (long int),
2660 "_Static_assert does not work in struct");
2661 long int y;
2662 };
2663
2664 // Check UTF-8 literals.
2665 #define u8 syntax error!
2666 char const utf8_literal[] = u8"happens to be ASCII" "another string";
2667
2668 // Check duplicate typedefs.
2669 typedef long *long_ptr;
2670 typedef long int *long_ptr;
2671 typedef long_ptr long_ptr;
2672
2673 // Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1.
2674 struct anonymous
2675 {
2676 union {
2677 struct { int i; int j; };
2678 struct { int k; long int l; } w;
2679 };
2680 int m;
2681 } v1;
2682 '
2683
2684 # Test code for whether the C compiler supports C11 (body of main).
2685 ac_c_conftest_c11_main='
2686 _Static_assert ((offsetof (struct anonymous, i)
2687 == offsetof (struct anonymous, w.k)),
2688 "Anonymous union alignment botch");
2689 v1.i = 2;
2690 v1.w.k = 5;
2691 ok |= v1.i != 5;
2692 '
2693
2694 # Test code for whether the C compiler supports C11 (complete).
2695 ac_c_conftest_c11_program="${ac_c_conftest_c89_globals}
2696 ${ac_c_conftest_c99_globals}
2697 ${ac_c_conftest_c11_globals}
2698
2699 int
2700 main (int argc, char **argv)
2701 {
2702 int ok = 0;
2703 ${ac_c_conftest_c89_main}
2704 ${ac_c_conftest_c99_main}
2705 ${ac_c_conftest_c11_main}
2706 return ok;
2707 }
2708 "
2709
2710 # Test code for whether the C compiler supports C99 (complete).
2711 ac_c_conftest_c99_program="${ac_c_conftest_c89_globals}
2712 ${ac_c_conftest_c99_globals}
2713
2714 int
2715 main (int argc, char **argv)
2716 {
2717 int ok = 0;
2718 ${ac_c_conftest_c89_main}
2719 ${ac_c_conftest_c99_main}
2720 return ok;
2721 }
2722 "
2723
2724 # Test code for whether the C compiler supports C89 (complete).
2725 ac_c_conftest_c89_program="${ac_c_conftest_c89_globals}
2726
2727 int
2728 main (int argc, char **argv)
2729 {
2730 int ok = 0;
2731 ${ac_c_conftest_c89_main}
2732 return ok;
2733 }
2734 "
2735
2736 as_fn_append ac_header_c_list " stdio.h stdio_h HAVE_STDIO_H"
2737 as_fn_append ac_header_c_list " stdlib.h stdlib_h HAVE_STDLIB_H"
2738 as_fn_append ac_header_c_list " string.h string_h HAVE_STRING_H"
2739 as_fn_append ac_header_c_list " inttypes.h inttypes_h HAVE_INTTYPES_H"
2740 as_fn_append ac_header_c_list " stdint.h stdint_h HAVE_STDINT_H"
2741 as_fn_append ac_header_c_list " strings.h strings_h HAVE_STRINGS_H"
2742 as_fn_append ac_header_c_list " sys/stat.h sys_stat_h HAVE_SYS_STAT_H"
2743 as_fn_append ac_header_c_list " sys/types.h sys_types_h HAVE_SYS_TYPES_H"
2744 as_fn_append ac_header_c_list " unistd.h unistd_h HAVE_UNISTD_H"
2745
2746 # Auxiliary files required by this configure script.
2747 ac_aux_files="config.guess config.sub"
2748
2749 # Locations in which to look for auxiliary files.
2750 ac_aux_dir_candidates="${srcdir}${PATH_SEPARATOR}${srcdir}/..${PATH_SEPARATOR}${srcdir}/../.."
2751
2752 # Search for a directory containing all of the required auxiliary files,
2753 # $ac_aux_files, from the $PATH-style list $ac_aux_dir_candidates.
2754 # If we don't find one directory that contains all the files we need,
2755 # we report the set of missing files from the *first* directory in
2756 # $ac_aux_dir_candidates and give up.
2757 ac_missing_aux_files=""
2758 ac_first_candidate=:
2759 printf "%s\n" "$as_me:${as_lineno-$LINENO}: looking for aux files: $ac_aux_files" >&5
2760 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2761 as_found=false
2762 for as_dir in $ac_aux_dir_candidates
2763 do
2764 IFS=$as_save_IFS
2765 case $as_dir in #(((
2766 '') as_dir=./ ;;
2767 */) ;;
2768 *) as_dir=$as_dir/ ;;
2769 esac
2770 as_found=:
2771
2772 printf "%s\n" "$as_me:${as_lineno-$LINENO}: trying $as_dir" >&5
2773 ac_aux_dir_found=yes
2774 ac_install_sh=
2775 for ac_aux in $ac_aux_files
2776 do
2777 # As a special case, if "install-sh" is required, that requirement
2778 # can be satisfied by any of "install-sh", "install.sh", or "shtool",
2779 # and $ac_install_sh is set appropriately for whichever one is found.
2780 if test x"$ac_aux" = x"install-sh"
2781 then
2782 if test -f "${as_dir}install-sh"; then
2783 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install-sh found" >&5
2784 ac_install_sh="${as_dir}install-sh -c"
2785 elif test -f "${as_dir}install.sh"; then
2786 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install.sh found" >&5
2787 ac_install_sh="${as_dir}install.sh -c"
2788 elif test -f "${as_dir}shtool"; then
2789 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}shtool found" >&5
2790 ac_install_sh="${as_dir}shtool install -c"
2791 else
2792 ac_aux_dir_found=no
2793 if $ac_first_candidate; then
2794 ac_missing_aux_files="${ac_missing_aux_files} install-sh"
2795 else
2796 break
2797 fi
2798 fi
2799 else
2800 if test -f "${as_dir}${ac_aux}"; then
2801 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}${ac_aux} found" >&5
2802 else
2803 ac_aux_dir_found=no
2804 if $ac_first_candidate; then
2805 ac_missing_aux_files="${ac_missing_aux_files} ${ac_aux}"
2806 else
2807 break
2808 fi
2809 fi
2810 fi
2811 done
2812 if test "$ac_aux_dir_found" = yes; then
2813 ac_aux_dir="$as_dir"
2814 break
2815 fi
2816 ac_first_candidate=false
2817
2818 as_found=false
2819 done
2820 IFS=$as_save_IFS
2821 if $as_found
2822 then :
2823
2824 else $as_nop
2825 as_fn_error $? "cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5
2826 fi
2827
2828
2829 # These three variables are undocumented and unsupported,
2830 # and are intended to be withdrawn in a future Autoconf release.
2831 # They can cause serious problems if a builder's source tree is in a directory
2832 # whose full name contains unusual characters.
2833 if test -f "${ac_aux_dir}config.guess"; then
2834 ac_config_guess="$SHELL ${ac_aux_dir}config.guess"
2835 fi
2836 if test -f "${ac_aux_dir}config.sub"; then
2837 ac_config_sub="$SHELL ${ac_aux_dir}config.sub"
2838 fi
2839 if test -f "$ac_aux_dir/configure"; then
2840 ac_configure="$SHELL ${ac_aux_dir}configure"
2841 fi
2842
2843 # Check that the precious variables saved in the cache have kept the same
2844 # value.
2845 ac_cache_corrupted=false
2846 for ac_var in $ac_precious_vars; do
2847 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2848 eval ac_new_set=\$ac_env_${ac_var}_set
2849 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2850 eval ac_new_val=\$ac_env_${ac_var}_value
2851 case $ac_old_set,$ac_new_set in
2852 set,)
2853 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2854 printf "%s\n" "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2855 ac_cache_corrupted=: ;;
2856 ,set)
2857 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2858 printf "%s\n" "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2859 ac_cache_corrupted=: ;;
2860 ,);;
2861 *)
2862 if test "x$ac_old_val" != "x$ac_new_val"; then
2863 # differences in whitespace do not lead to failure.
2864 ac_old_val_w=`echo x $ac_old_val`
2865 ac_new_val_w=`echo x $ac_new_val`
2866 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2867 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2868 printf "%s\n" "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2869 ac_cache_corrupted=:
2870 else
2871 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2872 printf "%s\n" "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2873 eval $ac_var=\$ac_old_val
2874 fi
2875 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2876 printf "%s\n" "$as_me: former value: \`$ac_old_val'" >&2;}
2877 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2878 printf "%s\n" "$as_me: current value: \`$ac_new_val'" >&2;}
2879 fi;;
2880 esac
2881 # Pass precious variables to config.status.
2882 if test "$ac_new_set" = set; then
2883 case $ac_new_val in
2884 *\'*) ac_arg=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2885 *) ac_arg=$ac_var=$ac_new_val ;;
2886 esac
2887 case " $ac_configure_args " in
2888 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2889 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2890 esac
2891 fi
2892 done
2893 if $ac_cache_corrupted; then
2894 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2895 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
2896 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2897 printf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;}
2898 as_fn_error $? "run \`${MAKE-make} distclean' and/or \`rm $cache_file'
2899 and start over" "$LINENO" 5
2900 fi
2901 ## -------------------- ##
2902 ## Main body of script. ##
2903 ## -------------------- ##
2904
2905 ac_ext=c
2906 ac_cpp='$CPP $CPPFLAGS'
2907 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2908 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2909 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2910
2911
2912
2913 ac_config_headers="$ac_config_headers h/gclincl.h"
2914
2915
2916 VERSION=`cat majvers`.`cat minvers`
2917
2918
2919
2920 #
2921 # Host information
2922 #
2923
2924
2925
2926
2927
2928 # Make sure we can run config.sub.
2929 $SHELL "${ac_aux_dir}config.sub" sun4 >/dev/null 2>&1 ||
2930 as_fn_error $? "cannot run $SHELL ${ac_aux_dir}config.sub" "$LINENO" 5
2931
2932 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2933 printf %s "checking build system type... " >&6; }
2934 if test ${ac_cv_build+y}
2935 then :
2936 printf %s "(cached) " >&6
2937 else $as_nop
2938 ac_build_alias=$build_alias
2939 test "x$ac_build_alias" = x &&
2940 ac_build_alias=`$SHELL "${ac_aux_dir}config.guess"`
2941 test "x$ac_build_alias" = x &&
2942 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2943 ac_cv_build=`$SHELL "${ac_aux_dir}config.sub" $ac_build_alias` ||
2944 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $ac_build_alias failed" "$LINENO" 5
2945
2946 fi
2947 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2948 printf "%s\n" "$ac_cv_build" >&6; }
2949 case $ac_cv_build in
2950 *-*-*) ;;
2951 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2952 esac
2953 build=$ac_cv_build
2954 ac_save_IFS=$IFS; IFS='-'
2955 set x $ac_cv_build
2956 shift
2957 build_cpu=$1
2958 build_vendor=$2
2959 shift; shift
2960 # Remember, the first character of IFS is used to create $*,
2961 # except with old shells:
2962 build_os=$*
2963 IFS=$ac_save_IFS
2964 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2965
2966
2967 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2968 printf %s "checking host system type... " >&6; }
2969 if test ${ac_cv_host+y}
2970 then :
2971 printf %s "(cached) " >&6
2972 else $as_nop
2973 if test "x$host_alias" = x; then
2974 ac_cv_host=$ac_cv_build
2975 else
2976 ac_cv_host=`$SHELL "${ac_aux_dir}config.sub" $host_alias` ||
2977 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $host_alias failed" "$LINENO" 5
2978 fi
2979
2980 fi
2981 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2982 printf "%s\n" "$ac_cv_host" >&6; }
2983 case $ac_cv_host in
2984 *-*-*) ;;
2985 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2986 esac
2987 host=$ac_cv_host
2988 ac_save_IFS=$IFS; IFS='-'
2989 set x $ac_cv_host
2990 shift
2991 host_cpu=$1
2992 host_vendor=$2
2993 shift; shift
2994 # Remember, the first character of IFS is used to create $*,
2995 # except with old shells:
2996 host_os=$*
2997 IFS=$ac_save_IFS
2998 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2999
3000
3001 canonical=$host
3002 my_host_kernel=`echo $host_os | awk '{j=split($1,A,"-");print A[1]}'`
3003 my_host_system=`echo $host_os | awk '{j=split($1,A,"-");if (j>=2) print A[2]}'`
3004
3005 cat >>confdefs.h <<_ACEOF
3006 #define HOST_CPU "`echo $host_cpu | awk '{print toupper($0)}'`"
3007 _ACEOF
3008
3009
3010 cat >>confdefs.h <<_ACEOF
3011 #define HOST_KERNEL "`echo $my_host_kernel | awk '{print toupper($0)}'`"
3012 _ACEOF
3013
3014 if test "$my_host_system" != "" ; then
3015
3016 cat >>confdefs.h <<_ACEOF
3017 #define HOST_SYSTEM "`echo $my_host_system | awk '{print toupper($0)}'`"
3018 _ACEOF
3019
3020 fi
3021 ## host=CPU-COMPANY-SYSTEM
3022 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: host=$host" >&5
3023 printf "%s\n" "host=$host" >&6; }
3024
3025 use=unknown
3026 case $canonical in
3027 sh4*linux*) use=sh4-linux;;
3028 *x86_64*linux*) use=amd64-linux;;
3029 *x86_64*kfreebsd*) use=amd64-kfreebsd;;
3030 *86*linux*) use=386-linux;;
3031 *riscv64*linux*) use=riscv64-linux;;
3032 *86*kfreebsd*) use=386-kfreebsd;;
3033 *86*gnu*) use=386-gnu;;
3034 m68k*linux*) use=m68k-linux;;
3035 alpha*linux*) use=alpha-linux;;
3036 mips*linux*) use=mips-linux;;
3037 mipsel*linux*) use=mipsel-linux;;
3038 sparc*linux*) use=sparc-linux;;
3039 aarch64*linux*) use=aarch64-linux;;
3040 arm*linux*hf) use=armhf-linux;;
3041 arm*linux*) use=arm-linux;;
3042 s390*linux*) use=s390-linux;;
3043 ia64*linux*) use=ia64-linux;;
3044 hppa*linux*) use=hppa-linux;;
3045 loongarch64*linux*) use=loongarch64-linux;;
3046 powerpc*linux*) use=powerpc-linux;;
3047 powerpc-*-darwin*) use=powerpc-macosx;;
3048 *86*darwin*) use=386-macosx;;
3049 i*mingw*|i*msys*) use=mingw;;
3050 *cygwin*)
3051 if $CC -v 2>&1 | fgrep ming > /dev/null ;
3052 then use=mingw
3053 else use=gnuwin95
3054 fi;;
3055 *openbsd*) use=FreeBSD;;
3056 sparc-sun-solaris*) use=solaris;;
3057 i?86-pc-solaris*) use=solaris-i386;;
3058 esac
3059
3060 # Check whether --enable-machine was given.
3061 if test ${enable_machine+y}
3062 then :
3063 enableval=$enable_machine; echo enable_machine=$enableval ; use=$enableval
3064 fi
3065
3066
3067 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: use=$use" >&5
3068 printf "%s\n" "use=$use" >&6; }
3069
3070 def_dlopen="no"
3071 def_statsysbfd="no"
3072 def_custreloc="yes"
3073 def_oldgmp="no"
3074 def_pic="no";
3075 def_static="no";
3076 def_debug="no";
3077 case $use in
3078 *kfreebsd)
3079 ln -snf linux.defs h/$use.defs;;
3080 *gnu)
3081 ln -snf linux.defs h/$use.defs;;
3082 *linux)
3083 ln -snf linux.defs h/$use.defs;
3084 case $use in
3085 ia64*)
3086 def_dlopen="yes" ; def_custreloc="no" ;;
3087 hppa*)
3088 def_pic="yes" ;;
3089 esac;;
3090 esac
3091
3092 # Check whether --enable-widecons was given.
3093 if test ${enable_widecons+y}
3094 then :
3095 enableval=$enable_widecons; if test "$enableval" = "yes" ; then
3096 printf "%s\n" "#define WIDE_CONS 1" >>confdefs.h
3097 fi
3098 fi
3099
3100
3101 # Check whether --enable-safecdr was given.
3102 if test ${enable_safecdr+y}
3103 then :
3104 enableval=$enable_safecdr; if test "$enableval" = "yes" ; then
3105
3106 printf "%s\n" "#define USE_SAFE_CDR 1" >>confdefs.h
3107
3108 # Check whether --enable-safecdrdbg was given.
3109 if test ${enable_safecdrdbg+y}
3110 then :
3111 enableval=$enable_safecdrdbg; if test "$enableval" = "yes" ; then
3112 printf "%s\n" "#define DEBUG_SAFE_CDR 1" >>confdefs.h
3113 fi
3114 fi
3115
3116 fi
3117 fi
3118
3119
3120 # Check whether --enable-prelink was given.
3121 if test ${enable_prelink+y}
3122 then :
3123 enableval=$enable_prelink; if test "$enable_prelink" = "yes" ; then PRELINK_CHECK=t; fi
3124 fi
3125
3126
3127
3128 # Check whether --enable-vssize was given.
3129 if test ${enable_vssize+y}
3130 then :
3131 enableval=$enable_vssize;
3132 printf "%s\n" "#define VSSIZE $enableval" >>confdefs.h
3133
3134 fi
3135
3136 # Check whether --enable-bdssize was given.
3137 if test ${enable_bdssize+y}
3138 then :
3139 enableval=$enable_bdssize;
3140 printf "%s\n" "#define BDSSIZE $enableval" >>confdefs.h
3141
3142 fi
3143
3144 # Check whether --enable-ihssize was given.
3145 if test ${enable_ihssize+y}
3146 then :
3147 enableval=$enable_ihssize;
3148 printf "%s\n" "#define IHSSIZE $enableval" >>confdefs.h
3149
3150 fi
3151
3152 # Check whether --enable-frssize was given.
3153 if test ${enable_frssize+y}
3154 then :
3155 enableval=$enable_frssize;
3156 printf "%s\n" "#define FRSSIZE $enableval" >>confdefs.h
3157
3158 fi
3159
3160
3161 # Check whether --enable-infodir was given.
3162 if test ${enable_infodir+y}
3163 then :
3164 enableval=$enable_infodir; INFO_DIR=$enableval
3165 else $as_nop
3166 INFO_DIR=$prefix/share/info
3167 fi
3168
3169 INFO_DIR=`eval echo $INFO_DIR/`
3170
3171 # Check whether --enable-emacsdir was given.
3172 if test ${enable_emacsdir+y}
3173 then :
3174 enableval=$enable_emacsdir; EMACS_SITE_LISP=$enableval
3175 else $as_nop
3176 EMACS_SITE_LISP=$prefix/share/emacs/site-lisp
3177 fi
3178
3179 EMACS_SITE_LISP=`eval echo $EMACS_SITE_LISP/`
3180
3181 # Check whether --enable-xgcl was given.
3182 if test ${enable_xgcl+y}
3183 then :
3184 enableval=$enable_xgcl;
3185 else $as_nop
3186 enable_xgcl=yes
3187 fi
3188
3189
3190 # Check whether --enable-dlopen was given.
3191 if test ${enable_dlopen+y}
3192 then :
3193 enableval=$enable_dlopen;
3194 else $as_nop
3195 enable_dlopen=$def_dlopen
3196 fi
3197
3198 # Check whether --enable-statsysbfd was given.
3199 if test ${enable_statsysbfd+y}
3200 then :
3201 enableval=$enable_statsysbfd;
3202 else $as_nop
3203 enable_statsysbfd=$def_statsysbfd
3204 fi
3205
3206 # Check whether --enable-dynsysbfd was given.
3207 if test ${enable_dynsysbfd+y}
3208 then :
3209 enableval=$enable_dynsysbfd;
3210 else $as_nop
3211 enable_dynsysbfd=no
3212 fi
3213
3214 # Check whether --enable-custreloc was given.
3215 if test ${enable_custreloc+y}
3216 then :
3217 enableval=$enable_custreloc;
3218 else $as_nop
3219 enable_custreloc=$def_custreloc
3220 fi
3221
3222
3223 # Check whether --enable-debug was given.
3224 if test ${enable_debug+y}
3225 then :
3226 enableval=$enable_debug;
3227 else $as_nop
3228 enable_debug=$def_debug
3229 fi
3230
3231 # Check whether --enable-static was given.
3232 if test ${enable_static+y}
3233 then :
3234 enableval=$enable_static;
3235 else $as_nop
3236 enable_static=$def_static
3237 fi
3238
3239 # Check whether --enable-pic was given.
3240 if test ${enable_pic+y}
3241 then :
3242 enableval=$enable_pic;
3243 else $as_nop
3244 enable_pic=$def_pic
3245 fi
3246
3247
3248 load_opt=0
3249 if test "$enable_dlopen" = "yes" ; then
3250 load_opt=1
3251 fi
3252 if test "$enable_statsysbfd" = "yes" ; then
3253 case $load_opt in
3254 0) load_opt=1;;
3255 1) load_opt=2;;
3256 esac
3257 fi
3258 if test "$enable_dynsysbfd" = "yes" ; then
3259 case $load_opt in
3260 0) load_opt=1;;
3261 1) load_opt=2;;
3262 2) load_opt=3;;
3263 esac
3264 fi
3265 if test "$enable_custreloc" = "yes" ; then
3266 case $load_opt in
3267 0) load_opt=1;;
3268 1) load_opt=2;;
3269 2) load_opt=3;;
3270 3) load_opt=4;;
3271 4) load_opt=5;;
3272 esac
3273 fi
3274
3275 if test "$load_opt" != "1" ; then
3276 echo "Exactly one loader option must be chosen: dlopen=$enable_dlopen statsysbfd=$enable_statsysbfd dynsysbfd=$enable_dynsysbfd custreloc=$enable_custreloc"
3277 as_fn_error $? "loader option failure" "$LINENO" 5
3278 fi
3279
3280
3281 #
3282 # System programs
3283 #
3284
3285 # We set the default CFLAGS below, and don't want the autoconf default
3286 # CM 20040106
3287 if test "$CFLAGS" = "" ; then
3288 CFLAGS=" "
3289 fi
3290 if test "$LDFLAGS" = "" ; then
3291 LDFLAGS=" "
3292 fi
3293
3294
3295
3296
3297
3298
3299
3300
3301
3302
3303 ac_ext=c
3304 ac_cpp='$CPP $CPPFLAGS'
3305 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3306 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3307 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3308 if test -n "$ac_tool_prefix"; then
3309 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3310 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3311 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3312 printf %s "checking for $ac_word... " >&6; }
3313 if test ${ac_cv_prog_CC+y}
3314 then :
3315 printf %s "(cached) " >&6
3316 else $as_nop
3317 if test -n "$CC"; then
3318 ac_cv_prog_CC="$CC" # Let the user override the test.
3319 else
3320 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3321 for as_dir in $PATH
3322 do
3323 IFS=$as_save_IFS
3324 case $as_dir in #(((
3325 '') as_dir=./ ;;
3326 */) ;;
3327 *) as_dir=$as_dir/ ;;
3328 esac
3329 for ac_exec_ext in '' $ac_executable_extensions; do
3330 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3331 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3332 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3333 break 2
3334 fi
3335 done
3336 done
3337 IFS=$as_save_IFS
3338
3339 fi
3340 fi
3341 CC=$ac_cv_prog_CC
3342 if test -n "$CC"; then
3343 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3344 printf "%s\n" "$CC" >&6; }
3345 else
3346 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3347 printf "%s\n" "no" >&6; }
3348 fi
3349
3350
3351 fi
3352 if test -z "$ac_cv_prog_CC"; then
3353 ac_ct_CC=$CC
3354 # Extract the first word of "gcc", so it can be a program name with args.
3355 set dummy gcc; ac_word=$2
3356 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3357 printf %s "checking for $ac_word... " >&6; }
3358 if test ${ac_cv_prog_ac_ct_CC+y}
3359 then :
3360 printf %s "(cached) " >&6
3361 else $as_nop
3362 if test -n "$ac_ct_CC"; then
3363 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3364 else
3365 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3366 for as_dir in $PATH
3367 do
3368 IFS=$as_save_IFS
3369 case $as_dir in #(((
3370 '') as_dir=./ ;;
3371 */) ;;
3372 *) as_dir=$as_dir/ ;;
3373 esac
3374 for ac_exec_ext in '' $ac_executable_extensions; do
3375 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3376 ac_cv_prog_ac_ct_CC="gcc"
3377 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3378 break 2
3379 fi
3380 done
3381 done
3382 IFS=$as_save_IFS
3383
3384 fi
3385 fi
3386 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3387 if test -n "$ac_ct_CC"; then
3388 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3389 printf "%s\n" "$ac_ct_CC" >&6; }
3390 else
3391 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3392 printf "%s\n" "no" >&6; }
3393 fi
3394
3395 if test "x$ac_ct_CC" = x; then
3396 CC=""
3397 else
3398 case $cross_compiling:$ac_tool_warned in
3399 yes:)
3400 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3401 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3402 ac_tool_warned=yes ;;
3403 esac
3404 CC=$ac_ct_CC
3405 fi
3406 else
3407 CC="$ac_cv_prog_CC"
3408 fi
3409
3410 if test -z "$CC"; then
3411 if test -n "$ac_tool_prefix"; then
3412 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3413 set dummy ${ac_tool_prefix}cc; ac_word=$2
3414 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3415 printf %s "checking for $ac_word... " >&6; }
3416 if test ${ac_cv_prog_CC+y}
3417 then :
3418 printf %s "(cached) " >&6
3419 else $as_nop
3420 if test -n "$CC"; then
3421 ac_cv_prog_CC="$CC" # Let the user override the test.
3422 else
3423 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3424 for as_dir in $PATH
3425 do
3426 IFS=$as_save_IFS
3427 case $as_dir in #(((
3428 '') as_dir=./ ;;
3429 */) ;;
3430 *) as_dir=$as_dir/ ;;
3431 esac
3432 for ac_exec_ext in '' $ac_executable_extensions; do
3433 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3434 ac_cv_prog_CC="${ac_tool_prefix}cc"
3435 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3436 break 2
3437 fi
3438 done
3439 done
3440 IFS=$as_save_IFS
3441
3442 fi
3443 fi
3444 CC=$ac_cv_prog_CC
3445 if test -n "$CC"; then
3446 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3447 printf "%s\n" "$CC" >&6; }
3448 else
3449 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3450 printf "%s\n" "no" >&6; }
3451 fi
3452
3453
3454 fi
3455 fi
3456 if test -z "$CC"; then
3457 # Extract the first word of "cc", so it can be a program name with args.
3458 set dummy cc; ac_word=$2
3459 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3460 printf %s "checking for $ac_word... " >&6; }
3461 if test ${ac_cv_prog_CC+y}
3462 then :
3463 printf %s "(cached) " >&6
3464 else $as_nop
3465 if test -n "$CC"; then
3466 ac_cv_prog_CC="$CC" # Let the user override the test.
3467 else
3468 ac_prog_rejected=no
3469 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3470 for as_dir in $PATH
3471 do
3472 IFS=$as_save_IFS
3473 case $as_dir in #(((
3474 '') as_dir=./ ;;
3475 */) ;;
3476 *) as_dir=$as_dir/ ;;
3477 esac
3478 for ac_exec_ext in '' $ac_executable_extensions; do
3479 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3480 if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3481 ac_prog_rejected=yes
3482 continue
3483 fi
3484 ac_cv_prog_CC="cc"
3485 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3486 break 2
3487 fi
3488 done
3489 done
3490 IFS=$as_save_IFS
3491
3492 if test $ac_prog_rejected = yes; then
3493 # We found a bogon in the path, so make sure we never use it.
3494 set dummy $ac_cv_prog_CC
3495 shift
3496 if test $# != 0; then
3497 # We chose a different compiler from the bogus one.
3498 # However, it has the same basename, so the bogon will be chosen
3499 # first if we set CC to just the basename; use the full file name.
3500 shift
3501 ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@"
3502 fi
3503 fi
3504 fi
3505 fi
3506 CC=$ac_cv_prog_CC
3507 if test -n "$CC"; then
3508 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3509 printf "%s\n" "$CC" >&6; }
3510 else
3511 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3512 printf "%s\n" "no" >&6; }
3513 fi
3514
3515
3516 fi
3517 if test -z "$CC"; then
3518 if test -n "$ac_tool_prefix"; then
3519 for ac_prog in cl.exe
3520 do
3521 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3522 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3523 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3524 printf %s "checking for $ac_word... " >&6; }
3525 if test ${ac_cv_prog_CC+y}
3526 then :
3527 printf %s "(cached) " >&6
3528 else $as_nop
3529 if test -n "$CC"; then
3530 ac_cv_prog_CC="$CC" # Let the user override the test.
3531 else
3532 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3533 for as_dir in $PATH
3534 do
3535 IFS=$as_save_IFS
3536 case $as_dir in #(((
3537 '') as_dir=./ ;;
3538 */) ;;
3539 *) as_dir=$as_dir/ ;;
3540 esac
3541 for ac_exec_ext in '' $ac_executable_extensions; do
3542 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3543 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3544 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3545 break 2
3546 fi
3547 done
3548 done
3549 IFS=$as_save_IFS
3550
3551 fi
3552 fi
3553 CC=$ac_cv_prog_CC
3554 if test -n "$CC"; then
3555 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3556 printf "%s\n" "$CC" >&6; }
3557 else
3558 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3559 printf "%s\n" "no" >&6; }
3560 fi
3561
3562
3563 test -n "$CC" && break
3564 done
3565 fi
3566 if test -z "$CC"; then
3567 ac_ct_CC=$CC
3568 for ac_prog in cl.exe
3569 do
3570 # Extract the first word of "$ac_prog", so it can be a program name with args.
3571 set dummy $ac_prog; ac_word=$2
3572 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3573 printf %s "checking for $ac_word... " >&6; }
3574 if test ${ac_cv_prog_ac_ct_CC+y}
3575 then :
3576 printf %s "(cached) " >&6
3577 else $as_nop
3578 if test -n "$ac_ct_CC"; then
3579 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3580 else
3581 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3582 for as_dir in $PATH
3583 do
3584 IFS=$as_save_IFS
3585 case $as_dir in #(((
3586 '') as_dir=./ ;;
3587 */) ;;
3588 *) as_dir=$as_dir/ ;;
3589 esac
3590 for ac_exec_ext in '' $ac_executable_extensions; do
3591 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3592 ac_cv_prog_ac_ct_CC="$ac_prog"
3593 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3594 break 2
3595 fi
3596 done
3597 done
3598 IFS=$as_save_IFS
3599
3600 fi
3601 fi
3602 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3603 if test -n "$ac_ct_CC"; then
3604 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3605 printf "%s\n" "$ac_ct_CC" >&6; }
3606 else
3607 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3608 printf "%s\n" "no" >&6; }
3609 fi
3610
3611
3612 test -n "$ac_ct_CC" && break
3613 done
3614
3615 if test "x$ac_ct_CC" = x; then
3616 CC=""
3617 else
3618 case $cross_compiling:$ac_tool_warned in
3619 yes:)
3620 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3621 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3622 ac_tool_warned=yes ;;
3623 esac
3624 CC=$ac_ct_CC
3625 fi
3626 fi
3627
3628 fi
3629 if test -z "$CC"; then
3630 if test -n "$ac_tool_prefix"; then
3631 # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args.
3632 set dummy ${ac_tool_prefix}clang; ac_word=$2
3633 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3634 printf %s "checking for $ac_word... " >&6; }
3635 if test ${ac_cv_prog_CC+y}
3636 then :
3637 printf %s "(cached) " >&6
3638 else $as_nop
3639 if test -n "$CC"; then
3640 ac_cv_prog_CC="$CC" # Let the user override the test.
3641 else
3642 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3643 for as_dir in $PATH
3644 do
3645 IFS=$as_save_IFS
3646 case $as_dir in #(((
3647 '') as_dir=./ ;;
3648 */) ;;
3649 *) as_dir=$as_dir/ ;;
3650 esac
3651 for ac_exec_ext in '' $ac_executable_extensions; do
3652 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3653 ac_cv_prog_CC="${ac_tool_prefix}clang"
3654 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3655 break 2
3656 fi
3657 done
3658 done
3659 IFS=$as_save_IFS
3660
3661 fi
3662 fi
3663 CC=$ac_cv_prog_CC
3664 if test -n "$CC"; then
3665 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3666 printf "%s\n" "$CC" >&6; }
3667 else
3668 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3669 printf "%s\n" "no" >&6; }
3670 fi
3671
3672
3673 fi
3674 if test -z "$ac_cv_prog_CC"; then
3675 ac_ct_CC=$CC
3676 # Extract the first word of "clang", so it can be a program name with args.
3677 set dummy clang; ac_word=$2
3678 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3679 printf %s "checking for $ac_word... " >&6; }
3680 if test ${ac_cv_prog_ac_ct_CC+y}
3681 then :
3682 printf %s "(cached) " >&6
3683 else $as_nop
3684 if test -n "$ac_ct_CC"; then
3685 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3686 else
3687 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3688 for as_dir in $PATH
3689 do
3690 IFS=$as_save_IFS
3691 case $as_dir in #(((
3692 '') as_dir=./ ;;
3693 */) ;;
3694 *) as_dir=$as_dir/ ;;
3695 esac
3696 for ac_exec_ext in '' $ac_executable_extensions; do
3697 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3698 ac_cv_prog_ac_ct_CC="clang"
3699 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3700 break 2
3701 fi
3702 done
3703 done
3704 IFS=$as_save_IFS
3705
3706 fi
3707 fi
3708 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3709 if test -n "$ac_ct_CC"; then
3710 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3711 printf "%s\n" "$ac_ct_CC" >&6; }
3712 else
3713 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3714 printf "%s\n" "no" >&6; }
3715 fi
3716
3717 if test "x$ac_ct_CC" = x; then
3718 CC=""
3719 else
3720 case $cross_compiling:$ac_tool_warned in
3721 yes:)
3722 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3723 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3724 ac_tool_warned=yes ;;
3725 esac
3726 CC=$ac_ct_CC
3727 fi
3728 else
3729 CC="$ac_cv_prog_CC"
3730 fi
3731
3732 fi
3733
3734
3735 test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3736 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3737 as_fn_error $? "no acceptable C compiler found in \$PATH
3738 See \`config.log' for more details" "$LINENO" 5; }
3739
3740 # Provide some information about the compiler.
3741 printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3742 set X $ac_compile
3743 ac_compiler=$2
3744 for ac_option in --version -v -V -qversion -version; do
3745 { { ac_try="$ac_compiler $ac_option >&5"
3746 case "(($ac_try" in
3747 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3748 *) ac_try_echo=$ac_try;;
3749 esac
3750 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3751 printf "%s\n" "$ac_try_echo"; } >&5
3752 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3753 ac_status=$?
3754 if test -s conftest.err; then
3755 sed '10a\
3756 ... rest of stderr output deleted ...
3757 10q' conftest.err >conftest.er1
3758 cat conftest.er1 >&5
3759 fi
3760 rm -f conftest.er1 conftest.err
3761 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3762 test $ac_status = 0; }
3763 done
3764
3765 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3766 /* end confdefs.h. */
3767
3768 int
3769 main (void)
3770 {
3771
3772 ;
3773 return 0;
3774 }
3775 _ACEOF
3776 ac_clean_files_save=$ac_clean_files
3777 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3778 # Try to create an executable without -o first, disregard a.out.
3779 # It will help us diagnose broken compilers, and finding out an intuition
3780 # of exeext.
3781 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3782 printf %s "checking whether the C compiler works... " >&6; }
3783 ac_link_default=`printf "%s\n" "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3784
3785 # The possible output files:
3786 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3787
3788 ac_rmfiles=
3789 for ac_file in $ac_files
3790 do
3791 case $ac_file in
3792 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3793 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3794 esac
3795 done
3796 rm -f $ac_rmfiles
3797
3798 if { { ac_try="$ac_link_default"
3799 case "(($ac_try" in
3800 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3801 *) ac_try_echo=$ac_try;;
3802 esac
3803 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3804 printf "%s\n" "$ac_try_echo"; } >&5
3805 (eval "$ac_link_default") 2>&5
3806 ac_status=$?
3807 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3808 test $ac_status = 0; }
3809 then :
3810 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3811 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3812 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3813 # so that the user can short-circuit this test for compilers unknown to
3814 # Autoconf.
3815 for ac_file in $ac_files ''
3816 do
3817 test -f "$ac_file" || continue
3818 case $ac_file in
3819 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3820 ;;
3821 [ab].out )
3822 # We found the default executable, but exeext='' is most
3823 # certainly right.
3824 break;;
3825 *.* )
3826 if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no;
3827 then :; else
3828 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3829 fi
3830 # We set ac_cv_exeext here because the later test for it is not
3831 # safe: cross compilers may not add the suffix if given an `-o'
3832 # argument, so we may need to know it at that point already.
3833 # Even if this section looks crufty: it has the advantage of
3834 # actually working.
3835 break;;
3836 * )
3837 break;;
3838 esac
3839 done
3840 test "$ac_cv_exeext" = no && ac_cv_exeext=
3841
3842 else $as_nop
3843 ac_file=''
3844 fi
3845 if test -z "$ac_file"
3846 then :
3847 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3848 printf "%s\n" "no" >&6; }
3849 printf "%s\n" "$as_me: failed program was:" >&5
3850 sed 's/^/| /' conftest.$ac_ext >&5
3851
3852 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3853 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3854 as_fn_error 77 "C compiler cannot create executables
3855 See \`config.log' for more details" "$LINENO" 5; }
3856 else $as_nop
3857 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3858 printf "%s\n" "yes" >&6; }
3859 fi
3860 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3861 printf %s "checking for C compiler default output file name... " >&6; }
3862 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3863 printf "%s\n" "$ac_file" >&6; }
3864 ac_exeext=$ac_cv_exeext
3865
3866 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3867 ac_clean_files=$ac_clean_files_save
3868 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3869 printf %s "checking for suffix of executables... " >&6; }
3870 if { { ac_try="$ac_link"
3871 case "(($ac_try" in
3872 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3873 *) ac_try_echo=$ac_try;;
3874 esac
3875 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3876 printf "%s\n" "$ac_try_echo"; } >&5
3877 (eval "$ac_link") 2>&5
3878 ac_status=$?
3879 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3880 test $ac_status = 0; }
3881 then :
3882 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3883 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3884 # work properly (i.e., refer to `conftest.exe'), while it won't with
3885 # `rm'.
3886 for ac_file in conftest.exe conftest conftest.*; do
3887 test -f "$ac_file" || continue
3888 case $ac_file in
3889 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3890 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3891 break;;
3892 * ) break;;
3893 esac
3894 done
3895 else $as_nop
3896 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3897 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3898 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3899 See \`config.log' for more details" "$LINENO" 5; }
3900 fi
3901 rm -f conftest conftest$ac_cv_exeext
3902 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3903 printf "%s\n" "$ac_cv_exeext" >&6; }
3904
3905 rm -f conftest.$ac_ext
3906 EXEEXT=$ac_cv_exeext
3907 ac_exeext=$EXEEXT
3908 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3909 /* end confdefs.h. */
3910 #include <stdio.h>
3911 int
3912 main (void)
3913 {
3914 FILE *f = fopen ("conftest.out", "w");
3915 return ferror (f) || fclose (f) != 0;
3916
3917 ;
3918 return 0;
3919 }
3920 _ACEOF
3921 ac_clean_files="$ac_clean_files conftest.out"
3922 # Check that the compiler produces executables we can run. If not, either
3923 # the compiler is broken, or we cross compile.
3924 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3925 printf %s "checking whether we are cross compiling... " >&6; }
3926 if test "$cross_compiling" != yes; then
3927 { { ac_try="$ac_link"
3928 case "(($ac_try" in
3929 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3930 *) ac_try_echo=$ac_try;;
3931 esac
3932 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3933 printf "%s\n" "$ac_try_echo"; } >&5
3934 (eval "$ac_link") 2>&5
3935 ac_status=$?
3936 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3937 test $ac_status = 0; }
3938 if { ac_try='./conftest$ac_cv_exeext'
3939 { { case "(($ac_try" in
3940 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3941 *) ac_try_echo=$ac_try;;
3942 esac
3943 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3944 printf "%s\n" "$ac_try_echo"; } >&5
3945 (eval "$ac_try") 2>&5
3946 ac_status=$?
3947 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3948 test $ac_status = 0; }; }; then
3949 cross_compiling=no
3950 else
3951 if test "$cross_compiling" = maybe; then
3952 cross_compiling=yes
3953 else
3954 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3955 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3956 as_fn_error 77 "cannot run C compiled programs.
3957 If you meant to cross compile, use \`--host'.
3958 See \`config.log' for more details" "$LINENO" 5; }
3959 fi
3960 fi
3961 fi
3962 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3963 printf "%s\n" "$cross_compiling" >&6; }
3964
3965 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3966 ac_clean_files=$ac_clean_files_save
3967 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3968 printf %s "checking for suffix of object files... " >&6; }
3969 if test ${ac_cv_objext+y}
3970 then :
3971 printf %s "(cached) " >&6
3972 else $as_nop
3973 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3974 /* end confdefs.h. */
3975
3976 int
3977 main (void)
3978 {
3979
3980 ;
3981 return 0;
3982 }
3983 _ACEOF
3984 rm -f conftest.o conftest.obj
3985 if { { ac_try="$ac_compile"
3986 case "(($ac_try" in
3987 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3988 *) ac_try_echo=$ac_try;;
3989 esac
3990 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3991 printf "%s\n" "$ac_try_echo"; } >&5
3992 (eval "$ac_compile") 2>&5
3993 ac_status=$?
3994 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3995 test $ac_status = 0; }
3996 then :
3997 for ac_file in conftest.o conftest.obj conftest.*; do
3998 test -f "$ac_file" || continue;
3999 case $ac_file in
4000 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4001 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4002 break;;
4003 esac
4004 done
4005 else $as_nop
4006 printf "%s\n" "$as_me: failed program was:" >&5
4007 sed 's/^/| /' conftest.$ac_ext >&5
4008
4009 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4010 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
4011 as_fn_error $? "cannot compute suffix of object files: cannot compile
4012 See \`config.log' for more details" "$LINENO" 5; }
4013 fi
4014 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4015 fi
4016 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4017 printf "%s\n" "$ac_cv_objext" >&6; }
4018 OBJEXT=$ac_cv_objext
4019 ac_objext=$OBJEXT
4020 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5
4021 printf %s "checking whether the compiler supports GNU C... " >&6; }
4022 if test ${ac_cv_c_compiler_gnu+y}
4023 then :
4024 printf %s "(cached) " >&6
4025 else $as_nop
4026 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4027 /* end confdefs.h. */
4028
4029 int
4030 main (void)
4031 {
4032 #ifndef __GNUC__
4033 choke me
4034 #endif
4035
4036 ;
4037 return 0;
4038 }
4039 _ACEOF
4040 if ac_fn_c_try_compile "$LINENO"
4041 then :
4042 ac_compiler_gnu=yes
4043 else $as_nop
4044 ac_compiler_gnu=no
4045 fi
4046 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4047 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4048
4049 fi
4050 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4051 printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; }
4052 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4053
4054 if test $ac_compiler_gnu = yes; then
4055 GCC=yes
4056 else
4057 GCC=
4058 fi
4059 ac_test_CFLAGS=${CFLAGS+y}
4060 ac_save_CFLAGS=$CFLAGS
4061 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4062 printf %s "checking whether $CC accepts -g... " >&6; }
4063 if test ${ac_cv_prog_cc_g+y}
4064 then :
4065 printf %s "(cached) " >&6
4066 else $as_nop
4067 ac_save_c_werror_flag=$ac_c_werror_flag
4068 ac_c_werror_flag=yes
4069 ac_cv_prog_cc_g=no
4070 CFLAGS="-g"
4071 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4072 /* end confdefs.h. */
4073
4074 int
4075 main (void)
4076 {
4077
4078 ;
4079 return 0;
4080 }
4081 _ACEOF
4082 if ac_fn_c_try_compile "$LINENO"
4083 then :
4084 ac_cv_prog_cc_g=yes
4085 else $as_nop
4086 CFLAGS=""
4087 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4088 /* end confdefs.h. */
4089
4090 int
4091 main (void)
4092 {
4093
4094 ;
4095 return 0;
4096 }
4097 _ACEOF
4098 if ac_fn_c_try_compile "$LINENO"
4099 then :
4100
4101 else $as_nop
4102 ac_c_werror_flag=$ac_save_c_werror_flag
4103 CFLAGS="-g"
4104 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4105 /* end confdefs.h. */
4106
4107 int
4108 main (void)
4109 {
4110
4111 ;
4112 return 0;
4113 }
4114 _ACEOF
4115 if ac_fn_c_try_compile "$LINENO"
4116 then :
4117 ac_cv_prog_cc_g=yes
4118 fi
4119 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4120 fi
4121 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4122 fi
4123 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4124 ac_c_werror_flag=$ac_save_c_werror_flag
4125 fi
4126 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4127 printf "%s\n" "$ac_cv_prog_cc_g" >&6; }
4128 if test $ac_test_CFLAGS; then
4129 CFLAGS=$ac_save_CFLAGS
4130 elif test $ac_cv_prog_cc_g = yes; then
4131 if test "$GCC" = yes; then
4132 CFLAGS="-g -O2"
4133 else
4134 CFLAGS="-g"
4135 fi
4136 else
4137 if test "$GCC" = yes; then
4138 CFLAGS="-O2"
4139 else
4140 CFLAGS=
4141 fi
4142 fi
4143 ac_prog_cc_stdc=no
4144 if test x$ac_prog_cc_stdc = xno
4145 then :
4146 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5
4147 printf %s "checking for $CC option to enable C11 features... " >&6; }
4148 if test ${ac_cv_prog_cc_c11+y}
4149 then :
4150 printf %s "(cached) " >&6
4151 else $as_nop
4152 ac_cv_prog_cc_c11=no
4153 ac_save_CC=$CC
4154 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4155 /* end confdefs.h. */
4156 $ac_c_conftest_c11_program
4157 _ACEOF
4158 for ac_arg in '' -std=gnu11
4159 do
4160 CC="$ac_save_CC $ac_arg"
4161 if ac_fn_c_try_compile "$LINENO"
4162 then :
4163 ac_cv_prog_cc_c11=$ac_arg
4164 fi
4165 rm -f core conftest.err conftest.$ac_objext conftest.beam
4166 test "x$ac_cv_prog_cc_c11" != "xno" && break
4167 done
4168 rm -f conftest.$ac_ext
4169 CC=$ac_save_CC
4170 fi
4171
4172 if test "x$ac_cv_prog_cc_c11" = xno
4173 then :
4174 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4175 printf "%s\n" "unsupported" >&6; }
4176 else $as_nop
4177 if test "x$ac_cv_prog_cc_c11" = x
4178 then :
4179 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4180 printf "%s\n" "none needed" >&6; }
4181 else $as_nop
4182 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5
4183 printf "%s\n" "$ac_cv_prog_cc_c11" >&6; }
4184 CC="$CC $ac_cv_prog_cc_c11"
4185 fi
4186 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11
4187 ac_prog_cc_stdc=c11
4188 fi
4189 fi
4190 if test x$ac_prog_cc_stdc = xno
4191 then :
4192 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5
4193 printf %s "checking for $CC option to enable C99 features... " >&6; }
4194 if test ${ac_cv_prog_cc_c99+y}
4195 then :
4196 printf %s "(cached) " >&6
4197 else $as_nop
4198 ac_cv_prog_cc_c99=no
4199 ac_save_CC=$CC
4200 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4201 /* end confdefs.h. */
4202 $ac_c_conftest_c99_program
4203 _ACEOF
4204 for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99=
4205 do
4206 CC="$ac_save_CC $ac_arg"
4207 if ac_fn_c_try_compile "$LINENO"
4208 then :
4209 ac_cv_prog_cc_c99=$ac_arg
4210 fi
4211 rm -f core conftest.err conftest.$ac_objext conftest.beam
4212 test "x$ac_cv_prog_cc_c99" != "xno" && break
4213 done
4214 rm -f conftest.$ac_ext
4215 CC=$ac_save_CC
4216 fi
4217
4218 if test "x$ac_cv_prog_cc_c99" = xno
4219 then :
4220 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4221 printf "%s\n" "unsupported" >&6; }
4222 else $as_nop
4223 if test "x$ac_cv_prog_cc_c99" = x
4224 then :
4225 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4226 printf "%s\n" "none needed" >&6; }
4227 else $as_nop
4228 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
4229 printf "%s\n" "$ac_cv_prog_cc_c99" >&6; }
4230 CC="$CC $ac_cv_prog_cc_c99"
4231 fi
4232 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
4233 ac_prog_cc_stdc=c99
4234 fi
4235 fi
4236 if test x$ac_prog_cc_stdc = xno
4237 then :
4238 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5
4239 printf %s "checking for $CC option to enable C89 features... " >&6; }
4240 if test ${ac_cv_prog_cc_c89+y}
4241 then :
4242 printf %s "(cached) " >&6
4243 else $as_nop
4244 ac_cv_prog_cc_c89=no
4245 ac_save_CC=$CC
4246 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4247 /* end confdefs.h. */
4248 $ac_c_conftest_c89_program
4249 _ACEOF
4250 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4251 do
4252 CC="$ac_save_CC $ac_arg"
4253 if ac_fn_c_try_compile "$LINENO"
4254 then :
4255 ac_cv_prog_cc_c89=$ac_arg
4256 fi
4257 rm -f core conftest.err conftest.$ac_objext conftest.beam
4258 test "x$ac_cv_prog_cc_c89" != "xno" && break
4259 done
4260 rm -f conftest.$ac_ext
4261 CC=$ac_save_CC
4262 fi
4263
4264 if test "x$ac_cv_prog_cc_c89" = xno
4265 then :
4266 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4267 printf "%s\n" "unsupported" >&6; }
4268 else $as_nop
4269 if test "x$ac_cv_prog_cc_c89" = x
4270 then :
4271 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4272 printf "%s\n" "none needed" >&6; }
4273 else $as_nop
4274 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4275 printf "%s\n" "$ac_cv_prog_cc_c89" >&6; }
4276 CC="$CC $ac_cv_prog_cc_c89"
4277 fi
4278 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
4279 ac_prog_cc_stdc=c89
4280 fi
4281 fi
4282
4283 ac_ext=c
4284 ac_cpp='$CPP $CPPFLAGS'
4285 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4286 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4287 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4288
4289 ac_ext=c
4290 ac_cpp='$CPP $CPPFLAGS'
4291 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4292 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4293 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4294 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4295 printf %s "checking how to run the C preprocessor... " >&6; }
4296 # On Suns, sometimes $CPP names a directory.
4297 if test -n "$CPP" && test -d "$CPP"; then
4298 CPP=
4299 fi
4300 if test -z "$CPP"; then
4301 if test ${ac_cv_prog_CPP+y}
4302 then :
4303 printf %s "(cached) " >&6
4304 else $as_nop
4305 # Double quotes because $CC needs to be expanded
4306 for CPP in "$CC -E" "$CC -E -traditional-cpp" cpp /lib/cpp
4307 do
4308 ac_preproc_ok=false
4309 for ac_c_preproc_warn_flag in '' yes
4310 do
4311 # Use a header file that comes with gcc, so configuring glibc
4312 # with a fresh cross-compiler works.
4313 # On the NeXT, cc -E runs the code through the compiler's parser,
4314 # not just through cpp. "Syntax error" is here to catch this case.
4315 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4316 /* end confdefs.h. */
4317 #include <limits.h>
4318 Syntax error
4319 _ACEOF
4320 if ac_fn_c_try_cpp "$LINENO"
4321 then :
4322
4323 else $as_nop
4324 # Broken: fails on valid input.
4325 continue
4326 fi
4327 rm -f conftest.err conftest.i conftest.$ac_ext
4328
4329 # OK, works on sane cases. Now check whether nonexistent headers
4330 # can be detected and how.
4331 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4332 /* end confdefs.h. */
4333 #include <ac_nonexistent.h>
4334 _ACEOF
4335 if ac_fn_c_try_cpp "$LINENO"
4336 then :
4337 # Broken: success on invalid input.
4338 continue
4339 else $as_nop
4340 # Passes both tests.
4341 ac_preproc_ok=:
4342 break
4343 fi
4344 rm -f conftest.err conftest.i conftest.$ac_ext
4345
4346 done
4347 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4348 rm -f conftest.i conftest.err conftest.$ac_ext
4349 if $ac_preproc_ok
4350 then :
4351 break
4352 fi
4353
4354 done
4355 ac_cv_prog_CPP=$CPP
4356
4357 fi
4358 CPP=$ac_cv_prog_CPP
4359 else
4360 ac_cv_prog_CPP=$CPP
4361 fi
4362 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4363 printf "%s\n" "$CPP" >&6; }
4364 ac_preproc_ok=false
4365 for ac_c_preproc_warn_flag in '' yes
4366 do
4367 # Use a header file that comes with gcc, so configuring glibc
4368 # with a fresh cross-compiler works.
4369 # On the NeXT, cc -E runs the code through the compiler's parser,
4370 # not just through cpp. "Syntax error" is here to catch this case.
4371 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4372 /* end confdefs.h. */
4373 #include <limits.h>
4374 Syntax error
4375 _ACEOF
4376 if ac_fn_c_try_cpp "$LINENO"
4377 then :
4378
4379 else $as_nop
4380 # Broken: fails on valid input.
4381 continue
4382 fi
4383 rm -f conftest.err conftest.i conftest.$ac_ext
4384
4385 # OK, works on sane cases. Now check whether nonexistent headers
4386 # can be detected and how.
4387 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4388 /* end confdefs.h. */
4389 #include <ac_nonexistent.h>
4390 _ACEOF
4391 if ac_fn_c_try_cpp "$LINENO"
4392 then :
4393 # Broken: success on invalid input.
4394 continue
4395 else $as_nop
4396 # Passes both tests.
4397 ac_preproc_ok=:
4398 break
4399 fi
4400 rm -f conftest.err conftest.i conftest.$ac_ext
4401
4402 done
4403 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4404 rm -f conftest.i conftest.err conftest.$ac_ext
4405 if $ac_preproc_ok
4406 then :
4407
4408 else $as_nop
4409 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4410 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
4411 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4412 See \`config.log' for more details" "$LINENO" 5; }
4413 fi
4414
4415 ac_ext=c
4416 ac_cpp='$CPP $CPPFLAGS'
4417 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4418 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4419 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4420
4421
4422
4423 add_arg_to_cflags() {
4424
4425 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for CFLAG $1" >&5
4426 printf %s "checking for CFLAG $1... " >&6; }
4427 CFLAGS_ORI=$CFLAGS
4428 CFLAGS="$CFLAGS -Werror $1 `echo $1|sed 's,-Wno-,-W,1'`"
4429
4430 if test "$cross_compiling" = yes
4431 then :
4432 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4433 printf "%s\n" "no" >&6; }
4434 else $as_nop
4435 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4436 /* end confdefs.h. */
4437
4438 int
4439 main (void)
4440 {
4441
4442 ;
4443 return 0;
4444 }
4445 _ACEOF
4446 if ac_fn_c_try_run "$LINENO"
4447 then :
4448 CFLAGS="$CFLAGS_ORI $1";{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4449 printf "%s\n" "yes" >&6; };return 0
4450 else $as_nop
4451 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4452 printf "%s\n" "no" >&6; }
4453 fi
4454 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4455 conftest.$ac_objext conftest.beam conftest.$ac_ext
4456 fi
4457
4458 CFLAGS=$CFLAGS_ORI
4459 return 1
4460
4461 }
4462
4463 assert_arg_to_cflags() {
4464 if ! add_arg_to_cflags "$1" ; then { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: cannot add $1 to CFLAGS" >&5
4465 printf "%s\n" "cannot add $1 to CFLAGS" >&6; }; exit 1 ; fi
4466 return 0
4467 }
4468
4469 add_args_to_cflags() {
4470
4471 while test "$#" -ge 1 ; do
4472 add_arg_to_cflags $1
4473 shift
4474 done
4475 }
4476
4477 add_arg_to_ldflags() {
4478
4479 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for LDFLAG $1" >&5
4480 printf %s "checking for LDFLAG $1... " >&6; }
4481 LDFLAGS_ORI=$LDFLAGS
4482 LDFLAGS="$LDFLAGS -Werror $1"
4483 if test "$cross_compiling" = yes
4484 then :
4485 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4486 printf "%s\n" "no" >&6; }
4487 else $as_nop
4488 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4489 /* end confdefs.h. */
4490
4491 int
4492 main (void)
4493 {
4494
4495 ;
4496 return 0;
4497 }
4498 _ACEOF
4499 if ac_fn_c_try_run "$LINENO"
4500 then :
4501 LDFLAGS="$LDFLAGS_ORI $1";{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4502 printf "%s\n" "yes" >&6; };return 0
4503 else $as_nop
4504 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4505 printf "%s\n" "no" >&6; }
4506 fi
4507 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4508 conftest.$ac_objext conftest.beam conftest.$ac_ext
4509 fi
4510
4511 LDFLAGS=$LDFLAGS_ORI
4512 return 1
4513
4514 }
4515
4516 assert_arg_to_ldflags() {
4517 if ! add_arg_to_ldflags $1 ; then { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: cannot add $1 to LDFLAGS" >&5
4518 printf "%s\n" "cannot add $1 to LDFLAGS" >&6; }; exit 1 ; fi
4519 return 0
4520 }
4521
4522 add_args_to_ldflags() {
4523
4524 while test "$#" -ge 1 ; do
4525 add_arg_to_ldflags $1
4526 shift
4527 done
4528 }
4529
4530 remove_arg_from_ldflags() {
4531
4532 NEW_LDFLAGS=""
4533 for i in $LDFLAGS; do
4534 if ! test "$i" = "$1" ; then
4535 NEW_LDFLAGS="$NEW_LDFLAGS $i"
4536 else
4537 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: removing $1 from LDFLAGS" >&5
4538 printf "%s\n" "removing $1 from LDFLAGS" >&6; }
4539 fi
4540 done
4541 LDFLAGS=$NEW_LDFLAGS
4542
4543 return 0
4544
4545 }
4546
4547 add_args_to_cflags -fsigned-char -pipe -fcommon \
4548 -fno-builtin-malloc -fno-builtin-free \
4549 -fno-PIE -fno-pie -fno-PIC -fno-pic \
4550 -Wall \
4551 -Wno-builtin-requires-header -Wno-empty-body -Wno-self-assign \
4552 -Wno-unused-but-set-variable
4553
4554 add_args_to_ldflags -no-pie # -Wl,-z,lazy
4555
4556 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for inline semantics" >&5
4557 printf %s "checking for inline semantics... " >&6; }
4558 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4559 /* end confdefs.h. */
4560
4561 inline int foo(int i) {return i;}
4562
4563 int
4564 bar(int i) {return foo(i);}
4565
4566 _ACEOF
4567 if ac_fn_c_try_compile "$LINENO"
4568 then :
4569 if `nm conftest.o |grep foo |awk '{if (NF==3) exit(-1)}'` ; then
4570 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: new" >&5
4571 printf "%s\n" "new" >&6; }
4572 else
4573 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4574 /* end confdefs.h. */
4575
4576 extern inline int foo(int i) {return i;}
4577
4578 int
4579 bar(int i) {return foo(i);}
4580
4581 _ACEOF
4582 if ac_fn_c_try_compile "$LINENO"
4583 then :
4584 if `nm conftest.o |grep foo |awk '{if (NF==3) exit(-1)}'` ; then
4585 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: old" >&5
4586 printf "%s\n" "old" >&6; }
4587
4588 printf "%s\n" "#define OLD_INLINE 1" >>confdefs.h
4589
4590 else
4591 as_fn_error $? "need working inline semantics" "$LINENO" 5
4592 fi
4593 else $as_nop
4594 as_fn_error $? "need to probe inline semantics" "$LINENO" 5
4595 fi
4596 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4597 fi
4598 else $as_nop
4599 as_fn_error $? "need to probe inline semantics" "$LINENO" 5
4600 fi
4601 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4602
4603 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for clang" >&5
4604 printf %s "checking for clang... " >&6; }
4605 if test "$cross_compiling" = yes
4606 then :
4607 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4608 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
4609 as_fn_error $? "cannot run test program while cross compiling
4610 See \`config.log' for more details" "$LINENO" 5; }
4611 else $as_nop
4612 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4613 /* end confdefs.h. */
4614
4615 #ifdef __clang__
4616 #define RET 0
4617 #else
4618 #define RET 1
4619 #endif
4620
4621 int
4622 main (void)
4623 {
4624
4625 return RET;
4626
4627 ;
4628 return 0;
4629 }
4630 _ACEOF
4631 if ac_fn_c_try_run "$LINENO"
4632 then :
4633 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4634 printf "%s\n" "yes" >&6; }
4635 clang="yes"
4636 remove_arg_from_ldflags -pie
4637
4638 printf "%s\n" "#define CLANG 1" >>confdefs.h
4639
4640 else $as_nop
4641 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4642 printf "%s\n" "no" >&6; }
4643 fi
4644 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4645 conftest.$ac_objext conftest.beam conftest.$ac_ext
4646 fi
4647
4648
4649 case $use in
4650 *mingw*)
4651 assert_arg_to_cflags -fno-zero-initialized-in-bss
4652 assert_arg_to_cflags -mms-bitfields
4653 for i in makedefc windows/gcl.iss windows/sysdir.bat windows/install.lsp h/gclincl.h; do
4654 cat $i.in | sed 's,^\r\n$,\r\n,g' >tmp && mv tmp $i.in;
4655 done
4656 OLD_LDFLAGS=$LDFLAGS
4657 assert_arg_to_ldflags -pg
4658 GPL_FLAG="-pg"
4659 LDFLAGS=$OLD_LDFLAGS;;
4660 *gnuwin*)
4661 assert_arg_to_cflags -fno-zero-initialized-in-bss
4662 assert_arg_to_cflags -mms-bitfields
4663 assert_arg_to_ldflags -Wl,--stack,8000000
4664 OLD_LDFLAGS=$LDFLAGS
4665 assert_arg_to_ldflags -pg
4666 GPL_FLAG="-pg"
4667 LDFLAGS=$OLD_LDFLAGS;;
4668 loongarch64-linux)
4669 add_arg_to_cflags -mno-relax
4670 add_arg_to_cflags -Wa,-mno-relax;;
4671 386-macosx)
4672 # assert_arg_to_cflags -Wno-error=implicit-function-declaration
4673 add_arg_to_cflags -Wno-incomplete-setjmp-declaration
4674 assert_arg_to_ldflags -Wl,-no_pie
4675 if test "$build_cpu" = "x86_64" ; then
4676 assert_arg_to_cflags -m64
4677 assert_arg_to_ldflags -m64
4678 assert_arg_to_ldflags -Wl,-headerpad,72
4679 else
4680 assert_arg_to_cflags -m32
4681 assert_arg_to_ldflags -m32
4682 assert_arg_to_ldflags -Wl,-headerpad,56
4683 fi;;
4684 FreeBSD) assert_arg_to_ldflags -Z;;
4685 esac
4686
4687 if test "$enable_static" = "yes" ; then
4688 assert_arg_to_ldflags -static
4689 assert_arg_to_ldflags -Wl,-zmuldefs
4690
4691 printf "%s\n" "#define STATIC_LINKING 1" >>confdefs.h
4692
4693 fi
4694
4695 TO3FLAGS=""
4696 TO2FLAGS=""
4697
4698 case "$use" in
4699 *mingw*)
4700 TFPFLAG="";;
4701 m68k*)#FIXME gcc 4.x bug workaround
4702 TFPFLAG="";;
4703 *)
4704 TFPFLAG="-fomit-frame-pointer";;
4705 esac
4706
4707 for ac_prog in gawk nawk awk
4708 do
4709 # Extract the first word of "$ac_prog", so it can be a program name with args.
4710 set dummy $ac_prog; ac_word=$2
4711 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4712 printf %s "checking for $ac_word... " >&6; }
4713 if test ${ac_cv_prog_AWK+y}
4714 then :
4715 printf %s "(cached) " >&6
4716 else $as_nop
4717 if test -n "$AWK"; then
4718 ac_cv_prog_AWK="$AWK" # Let the user override the test.
4719 else
4720 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4721 for as_dir in $PATH
4722 do
4723 IFS=$as_save_IFS
4724 case $as_dir in #(((
4725 '') as_dir=./ ;;
4726 */) ;;
4727 *) as_dir=$as_dir/ ;;
4728 esac
4729 for ac_exec_ext in '' $ac_executable_extensions; do
4730 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4731 ac_cv_prog_AWK="$ac_prog"
4732 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4733 break 2
4734 fi
4735 done
4736 done
4737 IFS=$as_save_IFS
4738
4739 fi
4740 fi
4741 AWK=$ac_cv_prog_AWK
4742 if test -n "$AWK"; then
4743 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
4744 printf "%s\n" "$AWK" >&6; }
4745 else
4746 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4747 printf "%s\n" "no" >&6; }
4748 fi
4749
4750
4751 test -n "$AWK" && break
4752 done
4753
4754 GCL_CC_ARGS=`echo $CC | ${AWK} '{$1="";print}'`
4755 GCL_CC="`basename $CC` $GCL_CC_ARGS"
4756 if echo $GCL_CC |grep gcc |grep -q win; then
4757 GCL_CC=gcc
4758 fi
4759
4760
4761 # Check whether --enable-gprof was given.
4762 if test ${enable_gprof+y}
4763 then :
4764 enableval=$enable_gprof; if test "$enableval" = "yes" ; then
4765 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking working gprof" >&5
4766 printf %s "checking working gprof... " >&6; }
4767 case $use in
4768 powerpc*) if test "$host_cpu" = "powerpc64le" ; then enableval="no"; fi;;
4769 s390*) enableval="no";;#mcount smashes float args in make_shortfloat 20180313
4770 sh4*) enableval="no";;
4771 m68k*) enableval="no";;
4772 ia64*) enableval="no";;
4773 hppa*) enableval="no";;
4774 # arm*) if echo $canonical |grep -q hf$; then enableval="no"; fi;;#FIXME CALL and JUMP24 veneers needed for thumb 20190201 #FIXME mcount compiled as a 24/22 bit reloc even with -mlong-calls, marginally accessible
4775 aarch64*) enableval="no";;#unreproducible buildd bug 20170824
4776 *gnu) enableval="no";;
4777 esac
4778 GP_FLAG=""
4779 if test "$enableval" != "yes" ; then
4780 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
4781 printf "%s\n" "disabled" >&6; }
4782 else
4783 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ok" >&5
4784 printf "%s\n" "ok" >&6; }
4785 OLD_CFLAGS=$CFLAGS # Do not run configure tests with -pg
4786 assert_arg_to_cflags -pg
4787 GP_FLAG="-pg"
4788 CFLAGS=$OLD_CFLAGS
4789 TFPFLAG=""
4790
4791 printf "%s\n" "#define GCL_GPROF 1" >>confdefs.h
4792
4793 fi
4794 fi
4795 fi
4796
4797
4798 if test "$enable_debug" = "yes" ; then
4799 assert_arg_to_cflags -g
4800 # for subconfigurations
4801 CFLAGS="$CFLAGS -g"
4802 else
4803 TO3FLAGS="-O3 $TFPFLAG"
4804 TO2FLAGS="-O"
4805 fi
4806
4807 # gcc on ppc cannot compile our new_init.c with full opts --CM
4808 TONIFLAGS=""
4809 case $use in
4810 powerpc*macosx) assert_arg_to_cflags -mlongcall;;
4811 *linux)
4812 case $use in
4813 alpha*)
4814 assert_arg_to_cflags -mieee
4815 # if test "$enable_debug" != "yes" ; then TO3FLAGS="-O0" ; fi #FIXME needed asof gcc 4.8.1
4816 ;;
4817 aarch64*)
4818 TLIBS="$TLIBS -lgcc_s";;
4819 hppa*)
4820 assert_arg_to_cflags -mlong-calls
4821 TLIBS="$TLIBS -lgcc_s" # workaround hppa __moddi3 local func symbols with default linker flags
4822 if test "$enable_debug" != "yes" ; then TO3FLAGS="-O2" ; TFPFLAG=""; fi #FIXME needed asof gcc 4.8.1
4823 ;;
4824 mips*)
4825 case $canonical in
4826 mips64*linux*)
4827 # assert_arg_to_cflags -mxgot
4828 assert_arg_to_ldflags -Wl,-z,now;;
4829 esac
4830 ;;
4831 ia64*)
4832 if test "$enable_debug" != "yes" ; then TO3FLAGS="-O" ; fi #FIXME needed asof gcc 4.8.1
4833 ;;
4834 arm*)
4835
4836 printf "%s\n" "#define SET_STACK_POINTER \"mov %%sp,%0\\n\\t\"" >>confdefs.h
4837
4838 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to set stack pointer" >&5
4839 printf %s "checking how to set stack pointer... " >&6; }
4840 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: done" >&5
4841 printf "%s\n" "done" >&6; }
4842 assert_arg_to_cflags -fdollars-in-identifiers
4843 assert_arg_to_cflags -g #?
4844 ;;
4845 powerpc*)
4846 assert_arg_to_cflags -mlongcall
4847 if test "$host_cpu" != "powerpc64le" ; then assert_arg_to_cflags -mno-pltseq; fi
4848 ;;
4849 esac;;
4850 esac
4851 if test "$enable_pic" = "yes" ; then
4852 assert_arg_to_cflags -fPIC
4853 fi
4854
4855
4856 FDEBUG=`echo $CFLAGS | tr ' ' '\012' |grep "^\-g$"|tr '\012' ' '`
4857 #CFLAGS=`echo $CFLAGS | tr ' ' '\012' |grep -v "^\-g$"`
4858 FOMITF=`echo $CFLAGS | tr ' ' '\012' |grep "^\-fomit-frame-pointer$"|tr '\012' ' '`
4859 CFLAGS=`echo $CFLAGS | tr ' ' '\012' |grep -v "^\-fomit-frame-pointer$"|tr '\012' ' '`
4860 FOOPT3=`echo $CFLAGS | tr ' ' '\012' |grep "^\-O3$"|tr '\012' ' '`
4861 CFLAGS=`echo $CFLAGS | tr ' ' '\012' |grep -v "^\-O3$"|tr '\012' ' '`
4862 FOOPT2=`echo $CFLAGS | tr ' ' '\012' |grep "^\-O2$"|tr '\012' ' '`
4863 CFLAGS=`echo $CFLAGS | tr ' ' '\012' |grep -v "^\-O2$"|tr '\012' ' '`
4864 FOOPT1=`echo $CFLAGS | tr ' ' '\012' |grep "^\-O1$"|tr '\012' ' '`
4865 TMPF=`echo $CFLAGS | tr ' ' '\012' |grep "^\-O$"|tr '\012' ' '`
4866 FOOPT1="$FOOPT1$TMPF"
4867 CFLAGS=`echo $CFLAGS | tr ' ' '\012' |grep -v "^\-O1$"|grep -v "^\-O$"|tr '\012' ' '`
4868 FOOPT0=`echo $CFLAGS | tr ' ' '\012' |grep "^\-O0$"|tr '\012' ' '`
4869 CFLAGS=`echo $CFLAGS | tr ' ' '\012' |grep -v "^\-O0$"|tr '\012' ' '`
4870
4871 if test "$FOOPT0" != "" ; then
4872 TO3FLAGS=`echo $TO3FLAGS | sed 's,\-O[123 ],-O0 ,g' | sed 's,\-O$,-O0 ,g'`
4873 TO2FLAGS=`echo $TO2FLAGS | sed 's,\-O[123 ],-O0 ,g' | sed 's,\-O$,-O0 ,g'`
4874 else
4875 if test "$FOOPT1" != "" ; then
4876 TO3FLAGS=`echo $TO3FLAGS | sed 's,\-O[2-3],-O1,g'`
4877 TO2FLAGS=`echo $TO2FLAGS | sed 's,\-O[2-3],-O1,g'`
4878 else
4879 if test "$FOOPT2" != "" ; then
4880 TO3FLAGS=`echo "$TO3FLAGS" | sed 's,\-O3,-O2,g'`
4881 TO2FLAGS=`echo "$TO2FLAGS" | sed 's,\-O3,-O2,g'`
4882 fi
4883 fi
4884 fi
4885
4886 if test "$FDEBUG" != "" ; then
4887 TO3FLAGS=`echo $TO3FLAGS | sed 's,\-fomit-frame-pointer,,g'`
4888 TO2FLAGS=`echo $TO2FLAGS | sed 's,\-fomit-frame-pointer,,g'`
4889 fi
4890
4891 if test "$FOMITF" != "" ; then
4892 TO3FLAGS="$TO3FLAGS $FOMITF"
4893 fi
4894
4895 # Step 1: set the variable "system" to hold the name and version number
4896 # for the system. This can usually be done via the "uname" command, but
4897 # there are a few systems, like Next, where this doesn't work.
4898
4899 for ac_prog in makeinfo
4900 do
4901 # Extract the first word of "$ac_prog", so it can be a program name with args.
4902 set dummy $ac_prog; ac_word=$2
4903 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4904 printf %s "checking for $ac_word... " >&6; }
4905 if test ${ac_cv_prog_MAKEINFO+y}
4906 then :
4907 printf %s "(cached) " >&6
4908 else $as_nop
4909 if test -n "$MAKEINFO"; then
4910 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
4911 else
4912 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4913 for as_dir in $PATH
4914 do
4915 IFS=$as_save_IFS
4916 case $as_dir in #(((
4917 '') as_dir=./ ;;
4918 */) ;;
4919 *) as_dir=$as_dir/ ;;
4920 esac
4921 for ac_exec_ext in '' $ac_executable_extensions; do
4922 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4923 ac_cv_prog_MAKEINFO="$ac_prog"
4924 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4925 break 2
4926 fi
4927 done
4928 done
4929 IFS=$as_save_IFS
4930
4931 fi
4932 fi
4933 MAKEINFO=$ac_cv_prog_MAKEINFO
4934 if test -n "$MAKEINFO"; then
4935 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
4936 printf "%s\n" "$MAKEINFO" >&6; }
4937 else
4938 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4939 printf "%s\n" "no" >&6; }
4940 fi
4941
4942
4943 test -n "$MAKEINFO" && break
4944 done
4945 test -n "$MAKEINFO" || MAKEINFO=""false""
4946
4947
4948
4949 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking system version (for dynamic loading)" >&5
4950 printf %s "checking system version (for dynamic loading)... " >&6; }
4951 if machine=`uname -m` ; then true; else machine=unknown ; fi
4952
4953 if test -f /usr/lib/NextStep/software_version; then
4954 system=NEXTSTEP-`${AWK} '/3/,/3/' /usr/lib/NextStep/software_version`
4955 else
4956 system=`uname -s`-`uname -r`
4957 if test "$?" -ne 0 ; then
4958 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unknown (cannot find uname command)" >&5
4959 printf "%s\n" "unknown (cannot find uname command)" >&6; }
4960 system=unknown
4961 else
4962 # Special check for weird MP-RAS system (uname returns weird
4963 # results, and the version is kept in special file).
4964
4965 if test -r /etc/.relid -a "X`uname -n`" = "X`uname -s`" ; then
4966 system="MP-RAS-`${AWK} '{print $3}' '/etc/.relid'`"
4967 fi
4968 if test "`uname -s`" = "AIX" ; then
4969 system=AIX-`uname -v`.`uname -r`
4970 fi
4971 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $system" >&5
4972 printf "%s\n" "$system" >&6; }
4973 fi
4974 fi
4975
4976 case $use in
4977 *macosx)
4978 ac_header= ac_cache=
4979 for ac_item in $ac_header_c_list
4980 do
4981 if test $ac_cache; then
4982 ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default"
4983 if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then
4984 printf "%s\n" "#define $ac_item 1" >> confdefs.h
4985 fi
4986 ac_header= ac_cache=
4987 elif test $ac_header; then
4988 ac_cache=$ac_item
4989 else
4990 ac_header=$ac_item
4991 fi
4992 done
4993
4994
4995
4996
4997
4998
4999
5000
5001 if test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes
5002 then :
5003
5004 printf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h
5005
5006 fi
5007 for ac_header in malloc/malloc.h
5008 do :
5009 ac_fn_c_check_header_compile "$LINENO" "malloc/malloc.h" "ac_cv_header_malloc_malloc_h" "$ac_includes_default"
5010 if test "x$ac_cv_header_malloc_malloc_h" = xyes
5011 then :
5012 printf "%s\n" "#define HAVE_MALLOC_MALLOC_H 1" >>confdefs.h
5013
5014 else $as_nop
5015 as_fn_error $? "need malloc.h on macosx" "$LINENO" 5
5016 fi
5017
5018 done
5019 ac_fn_c_check_member "$LINENO" "struct _malloc_zone_t" "memalign" "ac_cv_member_struct__malloc_zone_t_memalign" "
5020 #include <malloc/malloc.h>
5021
5022 "
5023 if test "x$ac_cv_member_struct__malloc_zone_t_memalign" = xyes
5024 then :
5025
5026 printf "%s\n" "#define HAVE_MALLOC_ZONE_MEMALIGN 1" >>confdefs.h
5027
5028 fi
5029
5030
5031 ;;
5032 esac
5033
5034 for ac_header in setjmp.h
5035 do :
5036 ac_fn_c_check_header_compile "$LINENO" "setjmp.h" "ac_cv_header_setjmp_h" "$ac_includes_default"
5037 if test "x$ac_cv_header_setjmp_h" = xyes
5038 then :
5039 printf "%s\n" "#define HAVE_SETJMP_H 1" >>confdefs.h
5040 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking sizeof jmp_buf" >&5
5041 printf %s "checking sizeof jmp_buf... " >&6; }
5042 if test "$cross_compiling" = yes
5043 then :
5044 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5045 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
5046 as_fn_error $? "cannot run test program while cross compiling
5047 See \`config.log' for more details" "$LINENO" 5; }
5048 else $as_nop
5049 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5050 /* end confdefs.h. */
5051
5052 #include <stdio.h>
5053 #include <setjmp.h>
5054
5055 int
5056 main (void)
5057 {
5058
5059 FILE *fp=fopen("conftest1","w");
5060 fprintf(fp,"%lu\n",sizeof(jmp_buf));
5061 fclose(fp);
5062
5063 ;
5064 return 0;
5065 }
5066 _ACEOF
5067 if ac_fn_c_try_run "$LINENO"
5068 then :
5069 sizeof_jmp_buf=`cat conftest1`
5070 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $sizeof_jmp_buf" >&5
5071 printf "%s\n" "$sizeof_jmp_buf" >&6; }
5072
5073 printf "%s\n" "#define SIZEOF_JMP_BUF $sizeof_jmp_buf" >>confdefs.h
5074
5075 else $as_nop
5076 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5077 printf "%s\n" "no" >&6; }
5078 fi
5079 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5080 conftest.$ac_objext conftest.beam conftest.$ac_ext
5081 fi
5082
5083 fi
5084
5085 done
5086
5087 # sysconf
5088 for ac_header in unistd.h
5089 do :
5090 ac_fn_c_check_header_compile "$LINENO" "unistd.h" "ac_cv_header_unistd_h" "$ac_includes_default"
5091 if test "x$ac_cv_header_unistd_h" = xyes
5092 then :
5093 printf "%s\n" "#define HAVE_UNISTD_H 1" >>confdefs.h
5094 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sysconf in -lc" >&5
5095 printf %s "checking for sysconf in -lc... " >&6; }
5096 if test ${ac_cv_lib_c_sysconf+y}
5097 then :
5098 printf %s "(cached) " >&6
5099 else $as_nop
5100 ac_check_lib_save_LIBS=$LIBS
5101 LIBS="-lc $LIBS"
5102 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5103 /* end confdefs.h. */
5104
5105 /* Override any GCC internal prototype to avoid an error.
5106 Use char because int might match the return type of a GCC
5107 builtin and then its argument prototype would still apply. */
5108 char sysconf ();
5109 int
5110 main (void)
5111 {
5112 return sysconf ();
5113 ;
5114 return 0;
5115 }
5116 _ACEOF
5117 if ac_fn_c_try_link "$LINENO"
5118 then :
5119 ac_cv_lib_c_sysconf=yes
5120 else $as_nop
5121 ac_cv_lib_c_sysconf=no
5122 fi
5123 rm -f core conftest.err conftest.$ac_objext conftest.beam \
5124 conftest$ac_exeext conftest.$ac_ext
5125 LIBS=$ac_check_lib_save_LIBS
5126 fi
5127 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_sysconf" >&5
5128 printf "%s\n" "$ac_cv_lib_c_sysconf" >&6; }
5129 if test "x$ac_cv_lib_c_sysconf" = xyes
5130 then :
5131 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking _SC_CLK_TCK" >&5
5132 printf %s "checking _SC_CLK_TCK... " >&6; }
5133 hz=0
5134 if test "$cross_compiling" = yes
5135 then :
5136 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5137 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
5138 as_fn_error $? "cannot run test program while cross compiling
5139 See \`config.log' for more details" "$LINENO" 5; }
5140 else $as_nop
5141 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5142 /* end confdefs.h. */
5143
5144 #include <unistd.h>
5145 #include <stdio.h>
5146
5147 int
5148 main (void)
5149 {
5150
5151 FILE *fp=fopen("conftest1","w");
5152 fprintf(fp,"%lu\n",sysconf(_SC_CLK_TCK));
5153 fclose(fp);
5154
5155 ;
5156 return 0;
5157 }
5158 _ACEOF
5159 if ac_fn_c_try_run "$LINENO"
5160 then :
5161
5162 fi
5163 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5164 conftest.$ac_objext conftest.beam conftest.$ac_ext
5165 fi
5166
5167 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hz" >&5
5168 printf "%s\n" "$hz" >&6; }
5169 fi
5170
5171 fi
5172
5173 done
5174
5175
5176 rm -f makedefsafter
5177
5178 # Check whether --enable-dynsysgmp was given.
5179 if test ${enable_dynsysgmp+y}
5180 then :
5181 enableval=$enable_dynsysgmp;
5182 fi
5183
5184
5185 if test "$enable_dynsysgmp" != "no" ; then
5186 for ac_header in gmp.h
5187 do :
5188 ac_fn_c_check_header_compile "$LINENO" "gmp.h" "ac_cv_header_gmp_h" "$ac_includes_default"
5189 if test "x$ac_cv_header_gmp_h" = xyes
5190 then :
5191 printf "%s\n" "#define HAVE_GMP_H 1" >>confdefs.h
5192 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for __gmpz_init in -lgmp" >&5
5193 printf %s "checking for __gmpz_init in -lgmp... " >&6; }
5194 if test ${ac_cv_lib_gmp___gmpz_init+y}
5195 then :
5196 printf %s "(cached) " >&6
5197 else $as_nop
5198 ac_check_lib_save_LIBS=$LIBS
5199 LIBS="-lgmp $LIBS"
5200 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5201 /* end confdefs.h. */
5202
5203 /* Override any GCC internal prototype to avoid an error.
5204 Use char because int might match the return type of a GCC
5205 builtin and then its argument prototype would still apply. */
5206 char __gmpz_init ();
5207 int
5208 main (void)
5209 {
5210 return __gmpz_init ();
5211 ;
5212 return 0;
5213 }
5214 _ACEOF
5215 if ac_fn_c_try_link "$LINENO"
5216 then :
5217 ac_cv_lib_gmp___gmpz_init=yes
5218 else $as_nop
5219 ac_cv_lib_gmp___gmpz_init=no
5220 fi
5221 rm -f core conftest.err conftest.$ac_objext conftest.beam \
5222 conftest$ac_exeext conftest.$ac_ext
5223 LIBS=$ac_check_lib_save_LIBS
5224 fi
5225 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gmp___gmpz_init" >&5
5226 printf "%s\n" "$ac_cv_lib_gmp___gmpz_init" >&6; }
5227 if test "x$ac_cv_lib_gmp___gmpz_init" = xyes
5228 then :
5229 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for external gmp version" >&5
5230 printf %s "checking for external gmp version... " >&6; }
5231 if test "$cross_compiling" = yes
5232 then :
5233 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5234 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
5235 as_fn_error $? "cannot run test program while cross compiling
5236 See \`config.log' for more details" "$LINENO" 5; }
5237 else $as_nop
5238 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5239 /* end confdefs.h. */
5240
5241 #include <gmp.h>
5242
5243 int
5244 main (void)
5245 {
5246
5247 #if __GNU_MP_VERSION > 3
5248 return 0;
5249 #else
5250 return -1;
5251 #endif
5252
5253 ;
5254 return 0;
5255 }
5256 _ACEOF
5257 if ac_fn_c_try_run "$LINENO"
5258 then :
5259 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: good" >&5
5260 printf "%s\n" "good" >&6; }
5261 TLIBS="$TLIBS -lgmp"
5262 echo "#include \"gmp.h\"" >foo.c
5263 echo "int main() {return 0;}" >>foo.c
5264 MP_INCLUDE=`cpp foo.c | $AWK '/(\/|\\\\)gmp.h/ {if (!i) print $3;i=1}' | tr -d '"'`
5265 rm -f foo.c
5266 fi
5267 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5268 conftest.$ac_objext conftest.beam conftest.$ac_ext
5269 fi
5270
5271 fi
5272
5273 fi
5274
5275 done
5276
5277 if test "$MP_INCLUDE" = "" ; then
5278 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Cannot use dynamic gmp lib" >&5
5279 printf "%s\n" "Cannot use dynamic gmp lib" >&6; }
5280 fi
5281
5282 fi
5283
5284
5285 if test "$MP_INCLUDE" = "" ; then
5286
5287 GMPDIR=gmp4
5288 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking doing configure in gmp directory" >&5
5289 printf %s "checking doing configure in gmp directory... " >&6; }
5290 echo
5291 echo "#"
5292 echo "#"
5293 echo "# -------------------"
5294 echo "# Subconfigure of GMP"
5295 echo "#"
5296 echo "#"
5297
5298 if test "$use_common_binary" = "yes"; then
5299 cd $GMPDIR && ./configure --build=$host && cd ..
5300 else
5301 cd $GMPDIR && ./configure --host=$host --build=$build && cd ..
5302 fi
5303 #MY_SUBDIRS="$MY_SUBDIRS $GMPDIR"
5304
5305 echo "#"
5306 echo "#"
5307 echo "#"
5308 echo "# Subconfigure of GMP done"
5309 echo "# ------------------------"
5310 echo "#"
5311
5312 if test "$MP_INCLUDE" = "" ; then
5313 cp $GMPDIR/gmp.h h/gmp.h
5314 MP_INCLUDE=h/gmp.h
5315 MPFILES=gmp_all
5316 fi
5317 fi
5318
5319 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for leading underscore in object symbols" >&5
5320 printf %s "checking for leading underscore in object symbols... " >&6; }
5321 cat>foo.c <<EOFF
5322 #include <math.h>
5323 #include <stdio.h>
5324 int main() {FILE *f;double d=0.0;getc(f);d=cos(d);return 0;}
5325 EOFF
5326 $CC -c foo.c -o foo.o
5327 if nm foo.o |grep " U " | grep "_cos" >/dev/null || nm foo.o |grep " U " | grep " _getc" >/dev/null ; then
5328 LEADING_UNDERSCORE=1
5329
5330 printf "%s\n" "#define LEADING_UNDERSCORE 1" >>confdefs.h
5331
5332 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: \"yes\"" >&5
5333 printf "%s\n" "\"yes\"" >&6; }
5334 else
5335 LEADING_UNDERSCORE=""
5336 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: \"no\"" >&5
5337 printf "%s\n" "\"no\"" >&6; }
5338 fi
5339
5340
5341 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking \"for GNU ld option -Map\"" >&5
5342 printf %s "checking \"for GNU ld option -Map\"... " >&6; }
5343 touch map
5344 $CC -o foo -Wl,-Map map foo.o >/dev/null 2>&1
5345 if test `cat map | wc -l` != "0" ; then
5346 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: \"yes\"" >&5
5347 printf "%s\n" "\"yes\"" >&6; }
5348
5349 printf "%s\n" "#define HAVE_GNU_LD 1" >>confdefs.h
5350
5351 GNU_LD=1
5352 else
5353 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: \"no\"" >&5
5354 printf "%s\n" "\"no\"" >&6; }
5355 GNU_LD=
5356 fi
5357 rm -f foo.c foo.o foo map
5358
5359 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for size of gmp limbs" >&5
5360 printf %s "checking for size of gmp limbs... " >&6; }
5361 if test "$cross_compiling" = yes
5362 then :
5363 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5364 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
5365 as_fn_error $? "cannot run test program while cross compiling
5366 See \`config.log' for more details" "$LINENO" 5; }
5367 else $as_nop
5368 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5369 /* end confdefs.h. */
5370
5371 #include <stdio.h>
5372 #include "$MP_INCLUDE"
5373
5374 int
5375 main (void)
5376 {
5377
5378 FILE *fp=fopen("conftest1","w");
5379 fprintf(fp,"%u",sizeof(mp_limb_t));
5380 fclose(fp);
5381
5382 ;
5383 return 0;
5384 }
5385 _ACEOF
5386 if ac_fn_c_try_run "$LINENO"
5387 then :
5388 mpsize=`cat conftest1`
5389 else $as_nop
5390 as_fn_error $? "Cannot determine mpsize" "$LINENO" 5
5391 fi
5392 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5393 conftest.$ac_objext conftest.beam conftest.$ac_ext
5394 fi
5395
5396
5397 printf "%s\n" "#define MP_LIMB_BYTES $mpsize" >>confdefs.h
5398
5399 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $mpsize" >&5
5400 printf "%s\n" "$mpsize" >&6; }
5401
5402 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking _SHORT_LIMB" >&5
5403 printf %s "checking _SHORT_LIMB... " >&6; }
5404 if test "$cross_compiling" = yes
5405 then :
5406 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5407 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
5408 as_fn_error $? "cannot run test program while cross compiling
5409 See \`config.log' for more details" "$LINENO" 5; }
5410 else $as_nop
5411 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5412 /* end confdefs.h. */
5413
5414 #include <stdio.h>
5415 #include "$MP_INCLUDE"
5416
5417 int
5418 main (void)
5419 {
5420
5421 #ifdef _SHORT_LIMB
5422 return 0;
5423 #else
5424 return 1;
5425 #endif
5426
5427 ;
5428 return 0;
5429 }
5430 _ACEOF
5431 if ac_fn_c_try_run "$LINENO"
5432 then :
5433
5434 printf "%s\n" "#define __SHORT_LIMB 1" >>confdefs.h
5435 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5436 printf "%s\n" "yes" >&6; }
5437 else $as_nop
5438 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5439 printf "%s\n" "no" >&6; }
5440 fi
5441 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5442 conftest.$ac_objext conftest.beam conftest.$ac_ext
5443 fi
5444
5445
5446 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking _LONG_LONG_LIMB" >&5
5447 printf %s "checking _LONG_LONG_LIMB... " >&6; }
5448 if test "$cross_compiling" = yes
5449 then :
5450 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5451 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
5452 as_fn_error $? "cannot run test program while cross compiling
5453 See \`config.log' for more details" "$LINENO" 5; }
5454 else $as_nop
5455 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5456 /* end confdefs.h. */
5457
5458 #include <stdio.h>
5459 #include "$MP_INCLUDE"
5460
5461 int
5462 main (void)
5463 {
5464
5465 #ifdef _LONG_LONG_LIMB
5466 return 0;
5467 #else
5468 return 1;
5469 #endif
5470
5471 ;
5472 return 0;
5473 }
5474 _ACEOF
5475 if ac_fn_c_try_run "$LINENO"
5476 then :
5477
5478 printf "%s\n" "#define __LONG_LONG_LIMB 1" >>confdefs.h
5479 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5480 printf "%s\n" "yes" >&6; }
5481 else $as_nop
5482 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5483 printf "%s\n" "no" >&6; }
5484 fi
5485 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5486 conftest.$ac_objext conftest.beam conftest.$ac_ext
5487 fi
5488
5489
5490 GMP=1
5491
5492 printf "%s\n" "#define GMP 1" >>confdefs.h
5493
5494
5495
5496 echo > makedefsafter
5497 echo "MPFILES=$MPFILES" >> makedefsafter
5498 echo "PATCHED_SYMBOLS=$PATCHED_SYMBOLS" >> makedefsafter
5499 echo >> makedefsafter
5500
5501
5502
5503 #
5504 # X windows
5505 #
5506
5507 if test "$enable_xgcl" = "yes" ; then
5508
5509
5510 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for X" >&5
5511 printf %s "checking for X... " >&6; }
5512
5513
5514 # Check whether --with-x was given.
5515 if test ${with_x+y}
5516 then :
5517 withval=$with_x;
5518 fi
5519
5520 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
5521 if test "x$with_x" = xno; then
5522 # The user explicitly disabled X.
5523 have_x=disabled
5524 else
5525 case $x_includes,$x_libraries in #(
5526 *\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5;; #(
5527 *,NONE | NONE,*) if test ${ac_cv_have_x+y}
5528 then :
5529 printf %s "(cached) " >&6
5530 else $as_nop
5531 # One or both of the vars are not set, and there is no cached value.
5532 ac_x_includes=no
5533 ac_x_libraries=no
5534 # Do we need to do anything special at all?
5535 ac_save_LIBS=$LIBS
5536 LIBS="-lX11 $LIBS"
5537 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5538 /* end confdefs.h. */
5539 #include <X11/Xlib.h>
5540 int
5541 main (void)
5542 {
5543 XrmInitialize ()
5544 ;
5545 return 0;
5546 }
5547 _ACEOF
5548 if ac_fn_c_try_link "$LINENO"
5549 then :
5550 # We can compile and link X programs with no special options.
5551 ac_x_includes=
5552 ac_x_libraries=
5553 fi
5554 rm -f core conftest.err conftest.$ac_objext conftest.beam \
5555 conftest$ac_exeext conftest.$ac_ext
5556 LIBS="$ac_save_LIBS"
5557 # If that didn't work, only try xmkmf and file system searches
5558 # for native compilation.
5559 if test x"$ac_x_includes" = xno && test "$cross_compiling" = no
5560 then :
5561 rm -f -r conftest.dir
5562 if mkdir conftest.dir; then
5563 cd conftest.dir
5564 cat >Imakefile <<'_ACEOF'
5565 incroot:
5566 @echo incroot='${INCROOT}'
5567 usrlibdir:
5568 @echo usrlibdir='${USRLIBDIR}'
5569 libdir:
5570 @echo libdir='${LIBDIR}'
5571 _ACEOF
5572 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
5573 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
5574 for ac_var in incroot usrlibdir libdir; do
5575 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
5576 done
5577 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
5578 for ac_extension in a so sl dylib la dll; do
5579 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
5580 test -f "$ac_im_libdir/libX11.$ac_extension"; then
5581 ac_im_usrlibdir=$ac_im_libdir; break
5582 fi
5583 done
5584 # Screen out bogus values from the imake configuration. They are
5585 # bogus both because they are the default anyway, and because
5586 # using them would break gcc on systems where it needs fixed includes.
5587 case $ac_im_incroot in
5588 /usr/include) ac_x_includes= ;;
5589 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
5590 esac
5591 case $ac_im_usrlibdir in
5592 /usr/lib | /usr/lib64 | /lib | /lib64) ;;
5593 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
5594 esac
5595 fi
5596 cd ..
5597 rm -f -r conftest.dir
5598 fi
5599
5600 # Standard set of common directories for X headers.
5601 # Check X11 before X11Rn because it is often a symlink to the current release.
5602 ac_x_header_dirs='
5603 /usr/X11/include
5604 /usr/X11R7/include
5605 /usr/X11R6/include
5606 /usr/X11R5/include
5607 /usr/X11R4/include
5608
5609 /usr/include/X11
5610 /usr/include/X11R7
5611 /usr/include/X11R6
5612 /usr/include/X11R5
5613 /usr/include/X11R4
5614
5615 /usr/local/X11/include
5616 /usr/local/X11R7/include
5617 /usr/local/X11R6/include
5618 /usr/local/X11R5/include
5619 /usr/local/X11R4/include
5620
5621 /usr/local/include/X11
5622 /usr/local/include/X11R7
5623 /usr/local/include/X11R6
5624 /usr/local/include/X11R5
5625 /usr/local/include/X11R4
5626
5627 /opt/X11/include
5628
5629 /usr/X386/include
5630 /usr/x386/include
5631 /usr/XFree86/include/X11
5632
5633 /usr/include
5634 /usr/local/include
5635 /usr/unsupported/include
5636 /usr/athena/include
5637 /usr/local/x11r5/include
5638 /usr/lpp/Xamples/include
5639
5640 /usr/openwin/include
5641 /usr/openwin/share/include'
5642
5643 if test "$ac_x_includes" = no; then
5644 # Guess where to find include files, by looking for Xlib.h.
5645 # First, try using that file with no special directory specified.
5646 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5647 /* end confdefs.h. */
5648 #include <X11/Xlib.h>
5649 _ACEOF
5650 if ac_fn_c_try_cpp "$LINENO"
5651 then :
5652 # We can compile using X headers with no special include directory.
5653 ac_x_includes=
5654 else $as_nop
5655 for ac_dir in $ac_x_header_dirs; do
5656 if test -r "$ac_dir/X11/Xlib.h"; then
5657 ac_x_includes=$ac_dir
5658 break
5659 fi
5660 done
5661 fi
5662 rm -f conftest.err conftest.i conftest.$ac_ext
5663 fi # $ac_x_includes = no
5664
5665 if test "$ac_x_libraries" = no; then
5666 # Check for the libraries.
5667 # See if we find them without any special options.
5668 # Don't add to $LIBS permanently.
5669 ac_save_LIBS=$LIBS
5670 LIBS="-lX11 $LIBS"
5671 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5672 /* end confdefs.h. */
5673 #include <X11/Xlib.h>
5674 int
5675 main (void)
5676 {
5677 XrmInitialize ()
5678 ;
5679 return 0;
5680 }
5681 _ACEOF
5682 if ac_fn_c_try_link "$LINENO"
5683 then :
5684 LIBS=$ac_save_LIBS
5685 # We can link X programs with no special library path.
5686 ac_x_libraries=
5687 else $as_nop
5688 LIBS=$ac_save_LIBS
5689 for ac_dir in `printf "%s\n" "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
5690 do
5691 # Don't even attempt the hair of trying to link an X program!
5692 for ac_extension in a so sl dylib la dll; do
5693 if test -r "$ac_dir/libX11.$ac_extension"; then
5694 ac_x_libraries=$ac_dir
5695 break 2
5696 fi
5697 done
5698 done
5699 fi
5700 rm -f core conftest.err conftest.$ac_objext conftest.beam \
5701 conftest$ac_exeext conftest.$ac_ext
5702 fi # $ac_x_libraries = no
5703
5704 fi
5705 # Record the results.
5706 case $ac_x_includes,$ac_x_libraries in #(
5707 no,* | *,no | *\'*) :
5708 # Didn't find X, or a directory has "'" in its name.
5709 ac_cv_have_x="have_x=no" ;; #(
5710 *) :
5711 # Record where we found X for the cache.
5712 ac_cv_have_x="have_x=yes\
5713 ac_x_includes='$ac_x_includes'\
5714 ac_x_libraries='$ac_x_libraries'" ;;
5715 esac
5716 fi
5717 ;; #(
5718 *) have_x=yes;;
5719 esac
5720 eval "$ac_cv_have_x"
5721 fi # $with_x != no
5722
5723 if test "$have_x" != yes; then
5724 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
5725 printf "%s\n" "$have_x" >&6; }
5726 no_x=yes
5727 else
5728 # If each of the values was on the command line, it overrides each guess.
5729 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
5730 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
5731 # Update the cache value to reflect the command line values.
5732 ac_cv_have_x="have_x=yes\
5733 ac_x_includes='$x_includes'\
5734 ac_x_libraries='$x_libraries'"
5735 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
5736 printf "%s\n" "libraries $x_libraries, headers $x_includes" >&6; }
5737 fi
5738
5739
5740 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for main in -lX11" >&5
5741 printf %s "checking for main in -lX11... " >&6; }
5742 if test ${ac_cv_lib_X11_main+y}
5743 then :
5744 printf %s "(cached) " >&6
5745 else $as_nop
5746 ac_check_lib_save_LIBS=$LIBS
5747 LIBS="-lX11 $LIBS"
5748 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5749 /* end confdefs.h. */
5750
5751
5752 int
5753 main (void)
5754 {
5755 return main ();
5756 ;
5757 return 0;
5758 }
5759 _ACEOF
5760 if ac_fn_c_try_link "$LINENO"
5761 then :
5762 ac_cv_lib_X11_main=yes
5763 else $as_nop
5764 ac_cv_lib_X11_main=no
5765 fi
5766 rm -f core conftest.err conftest.$ac_objext conftest.beam \
5767 conftest$ac_exeext conftest.$ac_ext
5768 LIBS=$ac_check_lib_save_LIBS
5769 fi
5770 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_X11_main" >&5
5771 printf "%s\n" "$ac_cv_lib_X11_main" >&6; }
5772 if test "x$ac_cv_lib_X11_main" = xyes
5773 then :
5774 X_LIBS="$X_LIBS -lX11"
5775 printf "%s\n" "#define HAVE_XGCL 1" >>confdefs.h
5776
5777 else $as_nop
5778 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: missing x libraries -- cannot compile xgcl" >&5
5779 printf "%s\n" "missing x libraries -- cannot compile xgcl" >&6; }
5780 fi
5781
5782
5783 fi
5784
5785
5786
5787
5788
5789 #
5790 # Dynamic loading
5791 #
5792
5793 if test "$enable_dlopen" = "yes" ; then
5794
5795 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
5796 printf %s "checking for dlopen in -ldl... " >&6; }
5797 if test ${ac_cv_lib_dl_dlopen+y}
5798 then :
5799 printf %s "(cached) " >&6
5800 else $as_nop
5801 ac_check_lib_save_LIBS=$LIBS
5802 LIBS="-ldl $LIBS"
5803 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5804 /* end confdefs.h. */
5805
5806 /* Override any GCC internal prototype to avoid an error.
5807 Use char because int might match the return type of a GCC
5808 builtin and then its argument prototype would still apply. */
5809 char dlopen ();
5810 int
5811 main (void)
5812 {
5813 return dlopen ();
5814 ;
5815 return 0;
5816 }
5817 _ACEOF
5818 if ac_fn_c_try_link "$LINENO"
5819 then :
5820 ac_cv_lib_dl_dlopen=yes
5821 else $as_nop
5822 ac_cv_lib_dl_dlopen=no
5823 fi
5824 rm -f core conftest.err conftest.$ac_objext conftest.beam \
5825 conftest$ac_exeext conftest.$ac_ext
5826 LIBS=$ac_check_lib_save_LIBS
5827 fi
5828 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
5829 printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; }
5830 if test "x$ac_cv_lib_dl_dlopen" = xyes
5831 then :
5832 printf "%s\n" "#define HAVE_LIBDL 1" >>confdefs.h
5833
5834 LIBS="-ldl $LIBS"
5835
5836 else $as_nop
5837 as_fn_error $? "Cannot find dlopen" "$LINENO" 5
5838 fi
5839
5840
5841 TLIBS="$TLIBS -ldl -rdynamic"
5842 assert_arg_to_cflags -fPIC
5843
5844 printf "%s\n" "#define USE_DLOPEN 1" >>confdefs.h
5845
5846
5847 fi
5848
5849 if test "$enable_statsysbfd" = "yes" || test "$enable_dynsysbfd" = "yes" ; then
5850 for ac_header in bfd.h
5851 do :
5852 ac_fn_c_check_header_compile "$LINENO" "bfd.h" "ac_cv_header_bfd_h" "$ac_includes_default"
5853 if test "x$ac_cv_header_bfd_h" = xyes
5854 then :
5855 printf "%s\n" "#define HAVE_BFD_H 1" >>confdefs.h
5856 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for bfd_init in -lbfd" >&5
5857 printf %s "checking for bfd_init in -lbfd... " >&6; }
5858 if test ${ac_cv_lib_bfd_bfd_init+y}
5859 then :
5860 printf %s "(cached) " >&6
5861 else $as_nop
5862 ac_check_lib_save_LIBS=$LIBS
5863 LIBS="-lbfd -liberty $LIBS"
5864 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5865 /* end confdefs.h. */
5866
5867 /* Override any GCC internal prototype to avoid an error.
5868 Use char because int might match the return type of a GCC
5869 builtin and then its argument prototype would still apply. */
5870 char bfd_init ();
5871 int
5872 main (void)
5873 {
5874 return bfd_init ();
5875 ;
5876 return 0;
5877 }
5878 _ACEOF
5879 if ac_fn_c_try_link "$LINENO"
5880 then :
5881 ac_cv_lib_bfd_bfd_init=yes
5882 else $as_nop
5883 ac_cv_lib_bfd_bfd_init=no
5884 fi
5885 rm -f core conftest.err conftest.$ac_objext conftest.beam \
5886 conftest$ac_exeext conftest.$ac_ext
5887 LIBS=$ac_check_lib_save_LIBS
5888 fi
5889 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bfd_bfd_init" >&5
5890 printf "%s\n" "$ac_cv_lib_bfd_bfd_init" >&6; }
5891 if test "x$ac_cv_lib_bfd_bfd_init" = xyes
5892 then :
5893 #
5894 # Old binutils appear to need CONST defined to const
5895 #
5896 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking need to define CONST for bfd" >&5
5897 printf %s "checking need to define CONST for bfd... " >&6; }
5898 if test "$cross_compiling" = yes
5899 then :
5900 as_fn_error $? "cannot use bfd" "$LINENO" 5
5901 else $as_nop
5902 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5903 /* end confdefs.h. */
5904
5905 #define IN_GCC
5906 #include <bfd.h>
5907
5908 int
5909 main (void)
5910 {
5911
5912 symbol_info t;
5913
5914 ;
5915 return 0;
5916 }
5917 _ACEOF
5918 if ac_fn_c_try_run "$LINENO"
5919 then :
5920 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5921 printf "%s\n" "no" >&6; }
5922 else $as_nop
5923 if test "$cross_compiling" = yes
5924 then :
5925 as_fn_error $? "cannot use bfd" "$LINENO" 5
5926 else $as_nop
5927 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5928 /* end confdefs.h. */
5929
5930 #define CONST const
5931 #define IN_GCC
5932 #include <bfd.h>
5933
5934 int
5935 main (void)
5936 {
5937
5938 symbol_info t;
5939
5940 ;
5941 return 0;
5942 }
5943 _ACEOF
5944 if ac_fn_c_try_run "$LINENO"
5945 then :
5946 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5947 printf "%s\n" "yes" >&6; }
5948
5949 printf "%s\n" "#define NEED_CONST 1" >>confdefs.h
5950
5951 else $as_nop
5952 as_fn_error $? "cannot use bfd" "$LINENO" 5
5953 fi
5954 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5955 conftest.$ac_objext conftest.beam conftest.$ac_ext
5956 fi
5957
5958 fi
5959 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5960 conftest.$ac_objext conftest.beam conftest.$ac_ext
5961 fi
5962
5963
5964 fi
5965
5966 fi
5967
5968 done
5969
5970
5971 printf "%s\n" "#define HAVE_LIBBFD 1" >>confdefs.h
5972
5973
5974 #
5975 # BFD boolean syntax
5976 #
5977
5978 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for useable bfd_boolean" >&5
5979 printf %s "checking for useable bfd_boolean... " >&6; }
5980 if test "$cross_compiling" = yes
5981 then :
5982 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5983 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
5984 as_fn_error $? "cannot run test program while cross compiling
5985 See \`config.log' for more details" "$LINENO" 5; }
5986 else $as_nop
5987 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5988 /* end confdefs.h. */
5989
5990 #define IN_GCC
5991 #include <bfd.h>
5992 bfd_boolean foo() {return FALSE;}
5993
5994 int
5995 main (void)
5996 {
5997
5998 ;
5999 return 0;
6000 }
6001 _ACEOF
6002 if ac_fn_c_try_run "$LINENO"
6003 then :
6004 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6005 printf "%s\n" "yes" >&6; }
6006
6007 printf "%s\n" "#define HAVE_BFD_BOOLEAN 1" >>confdefs.h
6008
6009 else $as_nop
6010 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6011 printf "%s\n" "no" >&6; }
6012 fi
6013 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6014 conftest.$ac_objext conftest.beam conftest.$ac_ext
6015 fi
6016
6017
6018 #
6019 # bfd_link_info.output_bfd minimal configure change check
6020 #
6021
6022 ac_fn_c_check_member "$LINENO" "struct bfd_link_info" "output_bfd" "ac_cv_member_struct_bfd_link_info_output_bfd" "
6023 #include <bfd.h>
6024 #include <bfdlink.h>
6025
6026 "
6027 if test "x$ac_cv_member_struct_bfd_link_info_output_bfd" = xyes
6028 then :
6029
6030 printf "%s\n" "#define HAVE_OUTPUT_BFD 1" >>confdefs.h
6031
6032 fi
6033
6034
6035
6036 #
6037 # FIXME: Need to workaround mingw before this point -- CM
6038 #
6039 if test "$enable_statsysbfd" = "yes" && ! $CC -v 2>&1 | fgrep ming > /dev/null ; then
6040 echo 'int main() {bfd_init();bfd_openr("/dev/null",0);return 0;}' >foo.c
6041 MP=`$CC -Wl,-M -static -o foo foo.c -lbfd -liberty -ldl 2>&1 | grep -v : | tr '()' '\012\012' | $AWK '{print $NF}' | sort | uniq`
6042 rm -f foo.c foo
6043 if echo $MP | tr ' ' '\012' | grep libbfd.a >/dev/null; then
6044 LIBBFD="`echo $MP | tr ' ' '\012' | grep libbfd.a | $AWK '{i=split($1,A,\"/\");for (j=1;j<=i;j++) if (j>1 && A[j]==\"..\") {j--;i-=2;for (k=j;k<=i;k++) A[k]=A[k+2];j--;}} END {for (j=1;j<=i;j++) printf(\"%s%s\",A[j],j!=i ? \"/\" : \"\")}'`"
6045 else
6046 as_fn_error $? "cannot locate external libbfd.a" "$LINENO" 5
6047 fi
6048 if echo $MP | tr ' ' '\012' | grep libiberty.a >/dev/null ; then
6049 LIBIBERTY="`echo $MP | tr ' ' '\012' | grep libiberty.a | $AWK '{i=split($1,A,\"/\");for (j=1;j<=i;j++) if (j>1 && A[j]==\"..\") {j--;i-=2;for (k=j;k<=i;k++) A[k]=A[k+2];j--;}} END {for (j=1;j<=i;j++) printf(\"%s%s\",A[j],j!=i ? \"/\" : \"\")}'`"
6050 else
6051 as_fn_error $? "cannot locate external libiberty.a" "$LINENO" 5
6052 fi
6053 BUILD_BFD=copy_bfd
6054 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for inflate in -lz" >&5
6055 printf %s "checking for inflate in -lz... " >&6; }
6056 if test ${ac_cv_lib_z_inflate+y}
6057 then :
6058 printf %s "(cached) " >&6
6059 else $as_nop
6060 ac_check_lib_save_LIBS=$LIBS
6061 LIBS="-lz $LIBS"
6062 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6063 /* end confdefs.h. */
6064
6065 /* Override any GCC internal prototype to avoid an error.
6066 Use char because int might match the return type of a GCC
6067 builtin and then its argument prototype would still apply. */
6068 char inflate ();
6069 int
6070 main (void)
6071 {
6072 return inflate ();
6073 ;
6074 return 0;
6075 }
6076 _ACEOF
6077 if ac_fn_c_try_link "$LINENO"
6078 then :
6079 ac_cv_lib_z_inflate=yes
6080 else $as_nop
6081 ac_cv_lib_z_inflate=no
6082 fi
6083 rm -f core conftest.err conftest.$ac_objext conftest.beam \
6084 conftest$ac_exeext conftest.$ac_ext
6085 LIBS=$ac_check_lib_save_LIBS
6086 fi
6087 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_inflate" >&5
6088 printf "%s\n" "$ac_cv_lib_z_inflate" >&6; }
6089 if test "x$ac_cv_lib_z_inflate" = xyes
6090 then :
6091 TLIBS="$TLIBS -lz"
6092 else $as_nop
6093 as_fn_error $? "Need zlib for bfd linking" "$LINENO" 5
6094 fi
6095
6096 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlsym in -ldl" >&5
6097 printf %s "checking for dlsym in -ldl... " >&6; }
6098 if test ${ac_cv_lib_dl_dlsym+y}
6099 then :
6100 printf %s "(cached) " >&6
6101 else $as_nop
6102 ac_check_lib_save_LIBS=$LIBS
6103 LIBS="-ldl $LIBS"
6104 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6105 /* end confdefs.h. */
6106
6107 /* Override any GCC internal prototype to avoid an error.
6108 Use char because int might match the return type of a GCC
6109 builtin and then its argument prototype would still apply. */
6110 char dlsym ();
6111 int
6112 main (void)
6113 {
6114 return dlsym ();
6115 ;
6116 return 0;
6117 }
6118 _ACEOF
6119 if ac_fn_c_try_link "$LINENO"
6120 then :
6121 ac_cv_lib_dl_dlsym=yes
6122 else $as_nop
6123 ac_cv_lib_dl_dlsym=no
6124 fi
6125 rm -f core conftest.err conftest.$ac_objext conftest.beam \
6126 conftest$ac_exeext conftest.$ac_ext
6127 LIBS=$ac_check_lib_save_LIBS
6128 fi
6129 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlsym" >&5
6130 printf "%s\n" "$ac_cv_lib_dl_dlsym" >&6; }
6131 if test "x$ac_cv_lib_dl_dlsym" = xyes
6132 then :
6133 TLIBS="$TLIBS -ldl"
6134 else $as_nop
6135 as_fn_error $? "Need libdl for bfd linking" "$LINENO" 5
6136 fi
6137
6138
6139
6140
6141
6142 else
6143 TLIBS="$TLIBS -lbfd -liberty -ldl"
6144 fi
6145 fi
6146
6147 # Check whether --enable-xdr was given.
6148 if test ${enable_xdr+y}
6149 then :
6150 enableval=$enable_xdr;
6151 fi
6152
6153
6154 if test "$enable_xdr" != "no" ; then
6155 XDR_LIB=""
6156 ac_fn_c_check_func "$LINENO" "xdr_double" "ac_cv_func_xdr_double"
6157 if test "x$ac_cv_func_xdr_double" = xyes
6158 then :
6159 XDR_LIB=" "
6160 else $as_nop
6161 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for xdr_double in -ltirpc" >&5
6162 printf %s "checking for xdr_double in -ltirpc... " >&6; }
6163 if test ${ac_cv_lib_tirpc_xdr_double+y}
6164 then :
6165 printf %s "(cached) " >&6
6166 else $as_nop
6167 ac_check_lib_save_LIBS=$LIBS
6168 LIBS="-ltirpc $LIBS"
6169 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6170 /* end confdefs.h. */
6171
6172 /* Override any GCC internal prototype to avoid an error.
6173 Use char because int might match the return type of a GCC
6174 builtin and then its argument prototype would still apply. */
6175 char xdr_double ();
6176 int
6177 main (void)
6178 {
6179 return xdr_double ();
6180 ;
6181 return 0;
6182 }
6183 _ACEOF
6184 if ac_fn_c_try_link "$LINENO"
6185 then :
6186 ac_cv_lib_tirpc_xdr_double=yes
6187 else $as_nop
6188 ac_cv_lib_tirpc_xdr_double=no
6189 fi
6190 rm -f core conftest.err conftest.$ac_objext conftest.beam \
6191 conftest$ac_exeext conftest.$ac_ext
6192 LIBS=$ac_check_lib_save_LIBS
6193 fi
6194 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tirpc_xdr_double" >&5
6195 printf "%s\n" "$ac_cv_lib_tirpc_xdr_double" >&6; }
6196 if test "x$ac_cv_lib_tirpc_xdr_double" = xyes
6197 then :
6198 XDR_LIB=tirpc
6199 else $as_nop
6200 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for xdr_double in -lgssrpc" >&5
6201 printf %s "checking for xdr_double in -lgssrpc... " >&6; }
6202 if test ${ac_cv_lib_gssrpc_xdr_double+y}
6203 then :
6204 printf %s "(cached) " >&6
6205 else $as_nop
6206 ac_check_lib_save_LIBS=$LIBS
6207 LIBS="-lgssrpc $LIBS"
6208 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6209 /* end confdefs.h. */
6210
6211 /* Override any GCC internal prototype to avoid an error.
6212 Use char because int might match the return type of a GCC
6213 builtin and then its argument prototype would still apply. */
6214 char xdr_double ();
6215 int
6216 main (void)
6217 {
6218 return xdr_double ();
6219 ;
6220 return 0;
6221 }
6222 _ACEOF
6223 if ac_fn_c_try_link "$LINENO"
6224 then :
6225 ac_cv_lib_gssrpc_xdr_double=yes
6226 else $as_nop
6227 ac_cv_lib_gssrpc_xdr_double=no
6228 fi
6229 rm -f core conftest.err conftest.$ac_objext conftest.beam \
6230 conftest$ac_exeext conftest.$ac_ext
6231 LIBS=$ac_check_lib_save_LIBS
6232 fi
6233 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gssrpc_xdr_double" >&5
6234 printf "%s\n" "$ac_cv_lib_gssrpc_xdr_double" >&6; }
6235 if test "x$ac_cv_lib_gssrpc_xdr_double" = xyes
6236 then :
6237 XDR_LIB=gssrpc
6238 else $as_nop
6239 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for xdr_double in -lrpc" >&5
6240 printf %s "checking for xdr_double in -lrpc... " >&6; }
6241 if test ${ac_cv_lib_rpc_xdr_double+y}
6242 then :
6243 printf %s "(cached) " >&6
6244 else $as_nop
6245 ac_check_lib_save_LIBS=$LIBS
6246 LIBS="-lrpc $LIBS"
6247 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6248 /* end confdefs.h. */
6249
6250 /* Override any GCC internal prototype to avoid an error.
6251 Use char because int might match the return type of a GCC
6252 builtin and then its argument prototype would still apply. */
6253 char xdr_double ();
6254 int
6255 main (void)
6256 {
6257 return xdr_double ();
6258 ;
6259 return 0;
6260 }
6261 _ACEOF
6262 if ac_fn_c_try_link "$LINENO"
6263 then :
6264 ac_cv_lib_rpc_xdr_double=yes
6265 else $as_nop
6266 ac_cv_lib_rpc_xdr_double=no
6267 fi
6268 rm -f core conftest.err conftest.$ac_objext conftest.beam \
6269 conftest$ac_exeext conftest.$ac_ext
6270 LIBS=$ac_check_lib_save_LIBS
6271 fi
6272 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rpc_xdr_double" >&5
6273 printf "%s\n" "$ac_cv_lib_rpc_xdr_double" >&6; }
6274 if test "x$ac_cv_lib_rpc_xdr_double" = xyes
6275 then :
6276 XDR_LIB=rpc
6277 else $as_nop
6278 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for xdr_double in -loncrpc" >&5
6279 printf %s "checking for xdr_double in -loncrpc... " >&6; }
6280 if test ${ac_cv_lib_oncrpc_xdr_double+y}
6281 then :
6282 printf %s "(cached) " >&6
6283 else $as_nop
6284 ac_check_lib_save_LIBS=$LIBS
6285 LIBS="-loncrpc $LIBS"
6286 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6287 /* end confdefs.h. */
6288
6289 /* Override any GCC internal prototype to avoid an error.
6290 Use char because int might match the return type of a GCC
6291 builtin and then its argument prototype would still apply. */
6292 char xdr_double ();
6293 int
6294 main (void)
6295 {
6296 return xdr_double ();
6297 ;
6298 return 0;
6299 }
6300 _ACEOF
6301 if ac_fn_c_try_link "$LINENO"
6302 then :
6303 ac_cv_lib_oncrpc_xdr_double=yes
6304 else $as_nop
6305 ac_cv_lib_oncrpc_xdr_double=no
6306 fi
6307 rm -f core conftest.err conftest.$ac_objext conftest.beam \
6308 conftest$ac_exeext conftest.$ac_ext
6309 LIBS=$ac_check_lib_save_LIBS
6310 fi
6311 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_oncrpc_xdr_double" >&5
6312 printf "%s\n" "$ac_cv_lib_oncrpc_xdr_double" >&6; }
6313 if test "x$ac_cv_lib_oncrpc_xdr_double" = xyes
6314 then :
6315 XDR_LIB=oncrpc
6316 fi
6317
6318 fi
6319
6320 fi
6321
6322 fi
6323
6324 fi
6325
6326
6327 if test "$XDR_LIB" != ""; then
6328
6329 printf "%s\n" "#define HAVE_XDR 1" >>confdefs.h
6330
6331 if test "$XDR_LIB" != " "; then
6332 TLIBS="$TLIBS -l$XDR_LIB"
6333 add_arg_to_cflags -I/usr/include/$XDR_LIB
6334 fi
6335 fi
6336 fi
6337
6338
6339 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking __builtin_clzl" >&5
6340 printf %s "checking __builtin_clzl... " >&6; }
6341 if test "$cross_compiling" = yes
6342 then :
6343 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6344 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
6345 as_fn_error $? "cannot run test program while cross compiling
6346 See \`config.log' for more details" "$LINENO" 5; }
6347 else $as_nop
6348 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6349 /* end confdefs.h. */
6350
6351 #include <stdio.h>
6352 #include <unistd.h>
6353
6354 int
6355 main (void)
6356 {
6357
6358 unsigned long u;
6359 long j;
6360 if (__builtin_clzl(0)!=sizeof(long)*8)
6361 return -1;
6362 for (u=1,j=sizeof(long)*8-1;j>=0;j--,u<<=1)
6363 if (__builtin_clzl(u)!=j)
6364 return -1;
6365
6366 ;
6367 return 0;
6368 }
6369 _ACEOF
6370 if ac_fn_c_try_run "$LINENO"
6371 then :
6372 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6373 printf "%s\n" "yes" >&6; }
6374
6375 printf "%s\n" "#define HAVE_CLZL 1" >>confdefs.h
6376
6377 else $as_nop
6378 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6379 printf "%s\n" "no" >&6; }
6380 fi
6381 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6382 conftest.$ac_objext conftest.beam conftest.$ac_ext
6383 fi
6384
6385
6386 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking __builtin_ctzl" >&5
6387 printf %s "checking __builtin_ctzl... " >&6; }
6388 if test "$cross_compiling" = yes
6389 then :
6390 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6391 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
6392 as_fn_error $? "cannot run test program while cross compiling
6393 See \`config.log' for more details" "$LINENO" 5; }
6394 else $as_nop
6395 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6396 /* end confdefs.h. */
6397
6398 #include <stdio.h>
6399 #include <unistd.h>
6400
6401 int
6402 main (void)
6403 {
6404
6405 unsigned long u;
6406 long j;
6407 if (__builtin_ctzl(0)!=sizeof(long)*8)
6408 return -1;
6409 for (u=1,j=0;j<sizeof(long)*8-1;j++,u<<=1)
6410 if (__builtin_ctzl(u)!=j)
6411 return -1;
6412
6413 ;
6414 return 0;
6415 }
6416 _ACEOF
6417 if ac_fn_c_try_run "$LINENO"
6418 then :
6419 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6420 printf "%s\n" "yes" >&6; }
6421
6422 printf "%s\n" "#define HAVE_CTZL 1" >>confdefs.h
6423
6424 else $as_nop
6425 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6426 printf "%s\n" "no" >&6; }
6427 fi
6428 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6429 conftest.$ac_objext conftest.beam conftest.$ac_ext
6430 fi
6431
6432
6433
6434 case $use in
6435 sh4*) ;; #FIXME, these exceptions needed as of gcc 4.7
6436 hppa*) ;; #FIXME
6437 powerpc*) ;; #FIXME
6438 alpha*) ;; #FIXME
6439 ia64*) ;; #FIXME
6440 *)
6441 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking __builtin___clear_cache" >&5
6442 printf %s "checking __builtin___clear_cache... " >&6; }
6443 if test "$cross_compiling" = yes
6444 then :
6445 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6446 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
6447 as_fn_error $? "cannot run test program while cross compiling
6448 See \`config.log' for more details" "$LINENO" 5; }
6449 else $as_nop
6450 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6451 /* end confdefs.h. */
6452
6453 int
6454 main (void)
6455 {
6456
6457 void *v,*ve;
6458 __builtin___clear_cache(v,ve);
6459
6460 ;
6461 return 0;
6462 }
6463 _ACEOF
6464 if ac_fn_c_try_run "$LINENO"
6465 then :
6466
6467 printf "%s\n" "#define HAVE_BUILTIN_CLEAR_CACHE 1" >>confdefs.h
6468
6469 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6470 printf "%s\n" "yes" >&6; }
6471 else $as_nop
6472 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6473 printf "%s\n" "no" >&6; }
6474 fi
6475 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6476 conftest.$ac_objext conftest.beam conftest.$ac_ext
6477 fi
6478 ;;
6479 esac
6480
6481 #AC_CONFIG_SUBDIRS($MY_SUBDIRS)
6482
6483 # Find where Data begins. This is used by the storage allocation
6484 # mechanism, in the PAGE macro. This offset is subtracted from
6485 # addresses, in calculating a page for an address in the heap.
6486
6487 # The cast to long int works around a bug in the HP C Compiler
6488 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6489 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6490 # This bug is HP SR number 8606223364.
6491 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
6492 printf %s "checking size of long... " >&6; }
6493 if test ${ac_cv_sizeof_long+y}
6494 then :
6495 printf %s "(cached) " >&6
6496 else $as_nop
6497 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"
6498 then :
6499
6500 else $as_nop
6501 if test "$ac_cv_type_long" = yes; then
6502 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6503 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
6504 as_fn_error 77 "cannot compute sizeof (long)
6505 See \`config.log' for more details" "$LINENO" 5; }
6506 else
6507 ac_cv_sizeof_long=0
6508 fi
6509 fi
6510
6511 fi
6512 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
6513 printf "%s\n" "$ac_cv_sizeof_long" >&6; }
6514
6515
6516
6517 printf "%s\n" "#define SIZEOF_LONG $ac_cv_sizeof_long" >>confdefs.h
6518
6519
6520
6521 if test "$ac_cv_sizeof_long" = "4" ; then
6522 assert_arg_to_cflags "-D_TIME_BITS=64 -D_FILE_OFFSET_BITS=64"
6523 fi
6524
6525 ac_fn_c_check_header_compile "$LINENO" "time.h" "ac_cv_header_time_h" "$ac_includes_default"
6526 if test "x$ac_cv_header_time_h" = xyes
6527 then :
6528 printf "%s\n" "#define HAVE_TIME_H 1" >>confdefs.h
6529
6530 fi
6531 ac_fn_c_check_header_compile "$LINENO" "sys/time.h" "ac_cv_header_sys_time_h" "$ac_includes_default"
6532 if test "x$ac_cv_header_sys_time_h" = xyes
6533 then :
6534 printf "%s\n" "#define HAVE_SYS_TIME_H 1" >>confdefs.h
6535
6536 fi
6537
6538
6539 # The cast to long int works around a bug in the HP C Compiler
6540 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6541 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6542 # This bug is HP SR number 8606223364.
6543 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of time_t" >&5
6544 printf %s "checking size of time_t... " >&6; }
6545 if test ${ac_cv_sizeof_time_t+y}
6546 then :
6547 printf %s "(cached) " >&6
6548 else $as_nop
6549 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (time_t))" "ac_cv_sizeof_time_t" "#include <time.h>
6550 "
6551 then :
6552
6553 else $as_nop
6554 if test "$ac_cv_type_time_t" = yes; then
6555 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6556 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
6557 as_fn_error 77 "cannot compute sizeof (time_t)
6558 See \`config.log' for more details" "$LINENO" 5; }
6559 else
6560 ac_cv_sizeof_time_t=0
6561 fi
6562 fi
6563
6564 fi
6565 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_time_t" >&5
6566 printf "%s\n" "$ac_cv_sizeof_time_t" >&6; }
6567
6568
6569
6570 printf "%s\n" "#define SIZEOF_TIME_T $ac_cv_sizeof_time_t" >>confdefs.h
6571
6572
6573 if test "$use" != "mingw" ; then
6574 if test "$ac_cv_sizeof_time_t" != "8" ; then
6575 as_fn_error $? "Cannot define a 64 bit time_t" "$LINENO" 5
6576 fi
6577 fi
6578
6579
6580
6581 #### Memory areas and alignment
6582
6583 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for byte order" >&5
6584 printf %s "checking for byte order... " >&6; }
6585 if test "$cross_compiling" = yes
6586 then :
6587 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6588 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
6589 as_fn_error $? "cannot run test program while cross compiling
6590 See \`config.log' for more details" "$LINENO" 5; }
6591 else $as_nop
6592 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6593 /* end confdefs.h. */
6594
6595 int
6596 main (void)
6597 {
6598
6599 /* Are we little or big endian? Adapted from Harbison&Steele. */
6600 union {long l;char c[sizeof(long)];} u;
6601 u.l = 1;
6602 return u.c[sizeof(long)-1] ? 1 : 0;
6603
6604 ;
6605 return 0;
6606 }
6607 _ACEOF
6608 if ac_fn_c_try_run "$LINENO"
6609 then :
6610
6611 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: little" >&5
6612 printf "%s\n" "little" >&6; }
6613 else $as_nop
6614 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: big" >&5
6615 printf "%s\n" "big" >&6; }
6616
6617 printf "%s\n" "#define WORDS_BIGENDIAN 1" >>confdefs.h
6618
6619 fi
6620 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6621 conftest.$ac_objext conftest.beam conftest.$ac_ext
6622 fi
6623
6624
6625
6626
6627 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for word order" >&5
6628 printf %s "checking for word order... " >&6; }
6629 if test "$cross_compiling" = yes
6630 then :
6631 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6632 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
6633 as_fn_error $? "cannot run test program while cross compiling
6634 See \`config.log' for more details" "$LINENO" 5; }
6635 else $as_nop
6636 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6637 /* end confdefs.h. */
6638
6639 int
6640 main (void)
6641 {
6642
6643 /* Are we little or big endian? Adapted from Harbison&Steele. */
6644 union {double d;int l[sizeof(double)/sizeof(int)];} u;
6645 u.d = 1.0;
6646 return u.l[sizeof(double)/sizeof(int)-1] ? 0 : 1;
6647
6648 ;
6649 return 0;
6650 }
6651 _ACEOF
6652 if ac_fn_c_try_run "$LINENO"
6653 then :
6654 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: little" >&5
6655 printf "%s\n" "little" >&6; }
6656 else $as_nop
6657 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: big" >&5
6658 printf "%s\n" "big" >&6; }
6659
6660 printf "%s\n" "#define DOUBLE_BIGENDIAN 1" >>confdefs.h
6661
6662 fi
6663 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6664 conftest.$ac_objext conftest.beam conftest.$ac_ext
6665 fi
6666
6667
6668
6669 # pagewidth
6670 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pagewidth" >&5
6671 printf %s "checking for pagewidth... " >&6; }
6672 case $use in
6673 mips*) min_pagewidth=14;;
6674 *) min_pagewidth=12;;
6675 esac
6676 if test "$cross_compiling" = yes
6677 then :
6678 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6679 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
6680 as_fn_error $? "cannot run test program while cross compiling
6681 See \`config.log' for more details" "$LINENO" 5; }
6682 else $as_nop
6683 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6684 /* end confdefs.h. */
6685
6686 #include <stdio.h>
6687 #include <unistd.h>
6688 #ifdef __CYGWIN__
6689 #define getpagesize() 4096
6690 #endif
6691
6692 int
6693 main (void)
6694 {
6695
6696 size_t i=getpagesize(),j;
6697 FILE *fp=fopen("conftest1","w");
6698 for (j=0;i>>=1;j++);
6699 j=j<$min_pagewidth ? $min_pagewidth : j;
6700 fprintf(fp,"%u",j);
6701
6702 ;
6703 return 0;
6704 }
6705 _ACEOF
6706 if ac_fn_c_try_run "$LINENO"
6707 then :
6708 PAGEWIDTH=`cat conftest1`
6709 else $as_nop
6710 PAGEWIDTH=0
6711 fi
6712 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6713 conftest.$ac_objext conftest.beam conftest.$ac_ext
6714 fi
6715
6716 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PAGEWIDTH" >&5
6717 printf "%s\n" "$PAGEWIDTH" >&6; }
6718
6719 printf "%s\n" "#define PAGEWIDTH $PAGEWIDTH" >>confdefs.h
6720
6721
6722
6723 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for required object alignment" >&5
6724 printf %s "checking for required object alignment... " >&6; }
6725 if test "$cross_compiling" = yes
6726 then :
6727 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6728 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
6729 as_fn_error $? "cannot run test program while cross compiling
6730 See \`config.log' for more details" "$LINENO" 5; }
6731 else $as_nop
6732 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6733 /* end confdefs.h. */
6734
6735 #include <stdio.h>
6736 #include <stdlib.h>
6737 #define EXTER
6738 #define INLINE
6739 #include "$MP_INCLUDE"
6740 #include "./h/enum.h"
6741 #define OBJ_ALIGN
6742 #include "./h/type.h"
6743 #include "./h/lu.h"
6744 #include "./h/object.h"
6745
6746 int
6747 main (void)
6748 {
6749
6750 unsigned long i;
6751 FILE *fp=fopen("conftest1","w");
6752 for (i=1;i && NOT_OBJECT_ALIGNED(i); i<<=1);
6753 if (!i) return -1;
6754 fprintf(fp,"%lu",i);
6755 fclose(fp);
6756 return 0;
6757
6758 ;
6759 return 0;
6760 }
6761 _ACEOF
6762 if ac_fn_c_try_run "$LINENO"
6763 then :
6764 obj_align=`cat conftest1`
6765 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $obj_align" >&5
6766 printf "%s\n" "$obj_align" >&6; }
6767
6768 printf "%s\n" "#define OBJ_ALIGNMENT $obj_align" >>confdefs.h
6769
6770 else $as_nop
6771 as_fn_error $? "Cannot find object alignent" "$LINENO" 5
6772 fi
6773 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6774 conftest.$ac_objext conftest.beam conftest.$ac_ext
6775 fi
6776
6777
6778 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C extension variable alignment" >&5
6779 printf %s "checking for C extension variable alignment... " >&6; }
6780 if test "$cross_compiling" = yes
6781 then :
6782 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6783 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
6784 as_fn_error $? "cannot run test program while cross compiling
6785 See \`config.log' for more details" "$LINENO" 5; }
6786 else $as_nop
6787 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6788 /* end confdefs.h. */
6789
6790 int
6791 main (void)
6792 {
6793
6794 char *v __attribute__ ((aligned ($obj_align)));
6795
6796 ;
6797 return 0;
6798 }
6799 _ACEOF
6800 if ac_fn_c_try_run "$LINENO"
6801 then :
6802 obj_align="__attribute__ ((aligned ($obj_align)))"
6803 else $as_nop
6804 as_fn_error $? "Need alignment attributes" "$LINENO" 5
6805 fi
6806 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6807 conftest.$ac_objext conftest.beam conftest.$ac_ext
6808 fi
6809
6810 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $obj_align" >&5
6811 printf "%s\n" "$obj_align" >&6; }
6812
6813 printf "%s\n" "#define OBJ_ALIGN $obj_align" >>confdefs.h
6814
6815
6816 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C extension noreturn function attribute" >&5
6817 printf %s "checking for C extension noreturn function attribute... " >&6; }
6818 if test "$cross_compiling" = yes
6819 then :
6820 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6821 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
6822 as_fn_error $? "cannot run test program while cross compiling
6823 See \`config.log' for more details" "$LINENO" 5; }
6824 else $as_nop
6825 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6826 /* end confdefs.h. */
6827
6828 int
6829 main (void)
6830 {
6831
6832 extern int v() __attribute__ ((noreturn));
6833
6834 ;
6835 return 0;
6836 }
6837 _ACEOF
6838 if ac_fn_c_try_run "$LINENO"
6839 then :
6840 no_return="__attribute__ ((noreturn))"
6841 else $as_nop
6842 no_return=
6843 fi
6844 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6845 conftest.$ac_objext conftest.beam conftest.$ac_ext
6846 fi
6847
6848 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $no_return" >&5
6849 printf "%s\n" "$no_return" >&6; }
6850
6851 printf "%s\n" "#define NO_RETURN $no_return" >>confdefs.h
6852
6853
6854 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking sizeof struct contblock" >&5
6855 printf %s "checking sizeof struct contblock... " >&6; }
6856
6857 if test "$cross_compiling" = yes
6858 then :
6859 as_fn_error $? "Cannot find sizeof struct contblock" "$LINENO" 5
6860 else $as_nop
6861 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6862 /* end confdefs.h. */
6863
6864 #include <stdio.h>
6865 #include <stdlib.h>
6866 #define EXTER
6867 #define INLINE
6868 #include "$MP_INCLUDE"
6869 #include "h/enum.h"
6870 #include "h/type.h"
6871 #include "h/lu.h"
6872 #include "h/object.h"
6873
6874 int
6875 main (void)
6876 {
6877
6878 FILE *f=fopen("conftest1","w");
6879 fprintf(f,"%u",sizeof(struct contblock));
6880 fclose(f);
6881
6882 ;
6883 return 0;
6884 }
6885 _ACEOF
6886 if ac_fn_c_try_run "$LINENO"
6887 then :
6888 sizeof_contblock=`cat conftest1`
6889 else $as_nop
6890 as_fn_error $? "Cannot find sizeof struct contblock" "$LINENO" 5
6891 fi
6892 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6893 conftest.$ac_objext conftest.beam conftest.$ac_ext
6894 fi
6895
6896
6897 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $sizeof_contblock" >&5
6898 printf "%s\n" "$sizeof_contblock" >&6; }
6899
6900 printf "%s\n" "#define SIZEOF_CONTBLOCK $sizeof_contblock" >>confdefs.h
6901
6902
6903 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sbrk" >&5
6904 printf %s "checking for sbrk... " >&6; }
6905 HAVE_SBRK=""
6906 if test "$cross_compiling" = yes
6907 then :
6908 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no: WARNING you must be able to emulate sbrk: as on mingw or macosx" >&5
6909 printf "%s\n" "no: WARNING you must be able to emulate sbrk: as on mingw or macosx" >&6; }
6910 else $as_nop
6911 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6912 /* end confdefs.h. */
6913
6914 #include <unistd.h>
6915 #include <stdio.h>
6916
6917 int
6918 main (void)
6919 {
6920
6921 FILE *f;
6922 if (!(f=fopen("conftest1","w")))
6923 return -1;
6924 fprintf(f,"%p",sbrk(0));
6925
6926 ;
6927 return 0;
6928 }
6929 _ACEOF
6930 if ac_fn_c_try_run "$LINENO"
6931 then :
6932 HAVE_SBRK=1;{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6933 printf "%s\n" "yes" >&6; }
6934 else $as_nop
6935 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no: WARNING you must be able to emulate sbrk: as on mingw or macosx" >&5
6936 printf "%s\n" "no: WARNING you must be able to emulate sbrk: as on mingw or macosx" >&6; }
6937 fi
6938 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6939 conftest.$ac_objext conftest.beam conftest.$ac_ext
6940 fi
6941
6942
6943 if test "$use" = "386-macosx" ; then
6944 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: emulating sbrk for mac" >&5
6945 printf "%s\n" "emulating sbrk for mac" >&6; };
6946 HAVE_SBRK=0
6947 fi
6948
6949 if test "$HAVE_SBRK" = "1" ; then
6950
6951 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ADDR_NO_RANDOMIZE constant" >&5
6952 printf %s "checking for ADDR_NO_RANDOMIZE constant... " >&6; }
6953 if test "$cross_compiling" = yes
6954 then :
6955 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6956 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
6957 as_fn_error $? "cannot run test program while cross compiling
6958 See \`config.log' for more details" "$LINENO" 5; }
6959 else $as_nop
6960 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6961 /* end confdefs.h. */
6962
6963 #include <sys/personality.h>
6964 #include <stdio.h>
6965
6966 int
6967 main (void)
6968 {
6969
6970 FILE *f;
6971 if (!(f=fopen("conftest1","w"))) return -1;
6972 fprintf(f,"%x",ADDR_NO_RANDOMIZE);
6973
6974 ;
6975 return 0;
6976 }
6977 _ACEOF
6978 if ac_fn_c_try_run "$LINENO"
6979 then :
6980 ADDR_NO_RANDOMIZE=`cat conftest1`
6981 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes $ADDR_NO_RANDOMIZE" >&5
6982 printf "%s\n" "yes $ADDR_NO_RANDOMIZE" >&6; }
6983 else $as_nop
6984 ADDR_NO_RANDOMIZE=0
6985 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no assuming 0x40000" >&5
6986 printf "%s\n" "no assuming 0x40000" >&6; }
6987
6988 printf "%s\n" "#define ADDR_NO_RANDOMIZE 0x40000" >>confdefs.h
6989
6990 fi
6991 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6992 conftest.$ac_objext conftest.beam conftest.$ac_ext
6993 fi
6994
6995
6996 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ADDR_COMPAT_LAYOUT constant" >&5
6997 printf %s "checking for ADDR_COMPAT_LAYOUT constant... " >&6; }
6998 if test "$cross_compiling" = yes
6999 then :
7000 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7001 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
7002 as_fn_error $? "cannot run test program while cross compiling
7003 See \`config.log' for more details" "$LINENO" 5; }
7004 else $as_nop
7005 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7006 /* end confdefs.h. */
7007
7008 #include <sys/personality.h>
7009 #include <stdio.h>
7010
7011 int
7012 main (void)
7013 {
7014
7015 FILE *f;
7016 if (!(f=fopen("conftest1","w"))) return -1;
7017 fprintf(f,"%x",ADDR_COMPAT_LAYOUT);
7018
7019 ;
7020 return 0;
7021 }
7022 _ACEOF
7023 if ac_fn_c_try_run "$LINENO"
7024 then :
7025 ADDR_COMPAT_LAYOUT=`cat conftest1`
7026 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes $ADDR_COMPAT_LAYOUT" >&5
7027 printf "%s\n" "yes $ADDR_COMPAT_LAYOUT" >&6; }
7028 else $as_nop
7029 ADDR_COMPAT_LAYOUT=0
7030 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7031 printf "%s\n" "no" >&6; }
7032
7033 printf "%s\n" "#define ADDR_COMPAT_LAYOUT 0" >>confdefs.h
7034
7035 fi
7036 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7037 conftest.$ac_objext conftest.beam conftest.$ac_ext
7038 fi
7039
7040
7041 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ADDR_LIMIT_3GB constant" >&5
7042 printf %s "checking for ADDR_LIMIT_3GB constant... " >&6; }
7043 if test "$cross_compiling" = yes
7044 then :
7045 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7046 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
7047 as_fn_error $? "cannot run test program while cross compiling
7048 See \`config.log' for more details" "$LINENO" 5; }
7049 else $as_nop
7050 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7051 /* end confdefs.h. */
7052
7053 #include <sys/personality.h>
7054 #include <stdio.h>
7055
7056 int
7057 main (void)
7058 {
7059
7060 FILE *f;
7061 if (!(f=fopen("conftest1","w"))) return -1;
7062 fprintf(f,"%x",ADDR_LIMIT_3GB);
7063
7064 ;
7065 return 0;
7066 }
7067 _ACEOF
7068 if ac_fn_c_try_run "$LINENO"
7069 then :
7070 ADDR_LIMIT_3GB=`cat conftest1`
7071 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes $ADDR_LIMIT_3GB" >&5
7072 printf "%s\n" "yes $ADDR_LIMIT_3GB" >&6; }
7073 else $as_nop
7074 ADDR_LIMIT_3GB=0
7075 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7076 printf "%s\n" "no" >&6; }
7077
7078 printf "%s\n" "#define ADDR_LIMIT_3GB 0" >>confdefs.h
7079
7080 fi
7081 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7082 conftest.$ac_objext conftest.beam conftest.$ac_ext
7083 fi
7084
7085
7086 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for personality(ADDR_NO_RANDOMIZE) support" >&5
7087 printf %s "checking for personality(ADDR_NO_RANDOMIZE) support... " >&6; }
7088 if test "$cross_compiling" = yes
7089 then :
7090 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7091 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
7092 as_fn_error $? "cannot run test program while cross compiling
7093 See \`config.log' for more details" "$LINENO" 5; }
7094 else $as_nop
7095 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7096 /* end confdefs.h. */
7097
7098 #include "h/unrandomize_headers.h"
7099 int main(int argc,char *argv[],char *envp[]) {
7100 #include "h/unrandomize.h"
7101 return 0;
7102 }
7103
7104 _ACEOF
7105 if ac_fn_c_try_run "$LINENO"
7106 then :
7107 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7108 printf "%s\n" "yes" >&6; }
7109
7110 printf "%s\n" "#define CAN_UNRANDOMIZE_SBRK 1" >>confdefs.h
7111
7112 else $as_nop
7113 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7114 printf "%s\n" "no" >&6; }
7115 fi
7116 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7117 conftest.$ac_objext conftest.beam conftest.$ac_ext
7118 fi
7119
7120
7121 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking that sbrk is (now) non-random" >&5
7122 printf %s "checking that sbrk is (now) non-random... " >&6; }
7123 SBRK=0
7124 if test "$cross_compiling" = yes
7125 then :
7126 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7127 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
7128 as_fn_error $? "cannot run test program while cross compiling
7129 See \`config.log' for more details" "$LINENO" 5; }
7130 else $as_nop
7131 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7132 /* end confdefs.h. */
7133
7134 #include "h/unrandomize_headers.h"
7135 int main(int argc,char * argv[],char * envp[]) {
7136 FILE *f;
7137 #ifdef CAN_UNRANDOMIZE_SBRK
7138 #include "h/unrandomize.h"
7139 #endif
7140 if (!(f=fopen("conftest1","w")))
7141 return -1;
7142 fprintf(f,"%p",sbrk(0));
7143 return 0;
7144 }
7145
7146 _ACEOF
7147 if ac_fn_c_try_run "$LINENO"
7148 then :
7149 SBRK=`cat conftest1`
7150 fi
7151 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7152 conftest.$ac_objext conftest.beam conftest.$ac_ext
7153 fi
7154
7155 if test "$SBRK" = "0" ; then
7156 as_fn_error $? "cannot trap sbrk" "$LINENO" 5
7157 fi
7158
7159 SBRK1=0
7160 if test "$cross_compiling" = yes
7161 then :
7162 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7163 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
7164 as_fn_error $? "cannot run test program while cross compiling
7165 See \`config.log' for more details" "$LINENO" 5; }
7166 else $as_nop
7167 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7168 /* end confdefs.h. */
7169
7170 #include "h/unrandomize_headers.h"
7171 int main(int argc,char * argv[],char * envp[]) {
7172 FILE *f;
7173 #ifdef CAN_UNRANDOMIZE_SBRK
7174 #include "h/unrandomize.h"
7175 #endif
7176 if (!(f=fopen("conftest1","w"))) return -1;
7177 fprintf(f,"%p",sbrk(0));
7178 return 0;
7179 }
7180
7181 _ACEOF
7182 if ac_fn_c_try_run "$LINENO"
7183 then :
7184 SBRK1=`cat conftest1`
7185 fi
7186 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7187 conftest.$ac_objext conftest.beam conftest.$ac_ext
7188 fi
7189
7190 if test "$SBRK1" = "0" ; then
7191 as_fn_error $? "cannot trap sbrk" "$LINENO" 5
7192 fi
7193 if test "$SBRK" = "$SBRK1" ; then
7194 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7195 printf "%s\n" "yes" >&6; }
7196 else
7197 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7198 printf "%s\n" "no" >&6; }
7199 echo "Cannot build with randomized sbrk. Your options:"
7200 echo " - upgrade to a kernel/libc that knows about personality(ADDR_NO_RANDOMIZE)"
7201 echo " - recompile your kernel with CONFIG_COMPAT_BRK (if it has that option)"
7202 echo " - run sysctl kernel.randomize_va_space=0 before using gcl"
7203 as_fn_error $? "exiting" "$LINENO" 5
7204 fi
7205 fi
7206
7207 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking CSTACK_DIRECTION" >&5
7208 printf %s "checking CSTACK_DIRECTION... " >&6; }
7209 if test "$cross_compiling" = yes
7210 then :
7211 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7212 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
7213 as_fn_error $? "cannot run test program while cross compiling
7214 See \`config.log' for more details" "$LINENO" 5; }
7215 else $as_nop
7216 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7217 /* end confdefs.h. */
7218
7219 #include "h/unrandomize_headers.h"
7220 int main(int argc,char **argv,char **envp) {
7221 FILE *fp = fopen("conftest1","w");
7222 #ifdef CAN_UNRANDOMIZE_SBRK
7223 #include "h/unrandomize.h"
7224 #endif
7225 fprintf(fp,"%d",(alloca(sizeof(void *))>alloca(sizeof(void *))) ? -1 : 1);
7226 fclose(fp);
7227 return 0;
7228 }
7229 _ACEOF
7230 if ac_fn_c_try_run "$LINENO"
7231 then :
7232 cstack_direction=`cat conftest1`
7233 else $as_nop
7234 cstack_direction=0
7235 fi
7236 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7237 conftest.$ac_objext conftest.beam conftest.$ac_ext
7238 fi
7239
7240
7241 printf "%s\n" "#define CSTACK_DIRECTION $cstack_direction" >>confdefs.h
7242
7243 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cstack_direction" >&5
7244 printf "%s\n" "$cstack_direction" >&6; }
7245
7246 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking finding CSTACK_ALIGNMENT" >&5
7247 printf %s "checking finding CSTACK_ALIGNMENT... " >&6; }
7248 if test "$cross_compiling" = yes
7249 then :
7250 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7251 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
7252 as_fn_error $? "cannot run test program while cross compiling
7253 See \`config.log' for more details" "$LINENO" 5; }
7254 else $as_nop
7255 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7256 /* end confdefs.h. */
7257
7258 #include "h/unrandomize_headers.h"
7259 int main(int argc,char **argv,char **envp) {
7260 void *b,*c;
7261 FILE *fp = fopen("conftest1","w");
7262 long n;
7263 #ifdef CAN_UNRANDOMIZE_SBRK
7264 #include "h/unrandomize.h"
7265 #endif
7266 b=alloca(sizeof(b));
7267 c=alloca(sizeof(c));
7268 n=b>c ? b-c : c-b;
7269 n=n>sizeof(c) ? n : 1;
7270 fprintf(fp,"%ld",n);
7271 fclose(fp);
7272 return 0;
7273 }
7274 _ACEOF
7275 if ac_fn_c_try_run "$LINENO"
7276 then :
7277 cstack_alignment=`cat conftest1`
7278 else $as_nop
7279 cstack_alignment=0
7280 fi
7281 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7282 conftest.$ac_objext conftest.beam conftest.$ac_ext
7283 fi
7284
7285
7286 printf "%s\n" "#define CSTACK_ALIGNMENT $cstack_alignment" >>confdefs.h
7287
7288 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cstack_alignment" >&5
7289 printf "%s\n" "$cstack_alignment" >&6; }
7290
7291 # Check whether --enable-cstackmax was given.
7292 if test ${enable_cstackmax+y}
7293 then :
7294 enableval=$enable_cstackmax; if test "$enableval" != "" ; then
7295 printf "%s\n" "#define CSTACKMAX $enableval" >>confdefs.h
7296 fi
7297 fi
7298
7299
7300
7301 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking CSTACK_ADDRESS" >&5
7302 printf %s "checking CSTACK_ADDRESS... " >&6; }
7303 if test "$cross_compiling" = yes
7304 then :
7305 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7306 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
7307 as_fn_error $? "cannot run test program while cross compiling
7308 See \`config.log' for more details" "$LINENO" 5; }
7309 else $as_nop
7310 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7311 /* end confdefs.h. */
7312
7313 #include "h/unrandomize_headers.h"
7314 int
7315 main(int argc,char **argv,char **envp) {
7316 FILE *fp = fopen("conftest1","w");
7317 unsigned long i,j;
7318
7319 #ifdef CAN_UNRANDOMIZE_SBRK
7320 #include "h/unrandomize.h"
7321 #endif
7322 j=1;
7323 j<<=$PAGEWIDTH;
7324 j<<=16;
7325 i=(unsigned long)alloca(sizeof(void *));
7326 if ($cstack_direction==1) i-=j;
7327 j--;
7328 i+=j;
7329 i&=~j;
7330 fprintf(fp,"0x%lx",i-1);
7331 fclose(fp);
7332 return 0;
7333 }
7334 _ACEOF
7335 if ac_fn_c_try_run "$LINENO"
7336 then :
7337 cstack_address=`cat conftest1`
7338 else $as_nop
7339 cstack_address=0
7340 fi
7341 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7342 conftest.$ac_objext conftest.beam conftest.$ac_ext
7343 fi
7344
7345
7346 printf "%s\n" "#define CSTACK_ADDRESS $cstack_address" >>confdefs.h
7347
7348 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cstack_address" >&5
7349 printf "%s\n" "$cstack_address" >&6; }
7350
7351 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking cstack bits" >&5
7352 printf %s "checking cstack bits... " >&6; }
7353 if test "$cross_compiling" = yes
7354 then :
7355 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7356 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
7357 as_fn_error $? "cannot run test program while cross compiling
7358 See \`config.log' for more details" "$LINENO" 5; }
7359 else $as_nop
7360 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7361 /* end confdefs.h. */
7362
7363 #include "h/unrandomize_headers.h"
7364 int
7365 main(int argc,char **argv,char **envp) {
7366 void *v ;
7367 FILE *fp = fopen("conftest1","w");
7368 long i,j;
7369
7370 #ifdef CAN_UNRANDOMIZE_SBRK
7371 #include "h/unrandomize.h"
7372 #endif
7373 j=1;
7374 j<<=$PAGEWIDTH;
7375 j<<=16;
7376 i=(long)&v;
7377 if ($cstack_direction==1) i-=j;
7378 j--;
7379 i+=j;
7380 i&=~j;
7381 for (j=0;(i>>j)!=(i>>(sizeof(long)*8-1));j++);
7382 fprintf(fp,"%ld",j);
7383 fclose(fp);
7384 return 0;
7385 }
7386 _ACEOF
7387 if ac_fn_c_try_run "$LINENO"
7388 then :
7389 cstack_bits=`cat conftest1`
7390 else $as_nop
7391 cstack_bits=0
7392 fi
7393 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7394 conftest.$ac_objext conftest.beam conftest.$ac_ext
7395 fi
7396
7397
7398 printf "%s\n" "#define CSTACK_BITS $cstack_bits" >>confdefs.h
7399
7400 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cstack_bits" >&5
7401 printf "%s\n" "$cstack_bits" >&6; }
7402
7403 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking NEG_CSTACK_ADDRESS" >&5
7404 printf %s "checking NEG_CSTACK_ADDRESS... " >&6; }
7405 if test "$cross_compiling" = yes
7406 then :
7407 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7408 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
7409 as_fn_error $? "cannot run test program while cross compiling
7410 See \`config.log' for more details" "$LINENO" 5; }
7411 else $as_nop
7412 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7413 /* end confdefs.h. */
7414
7415 #include "h/unrandomize_headers.h"
7416 int
7417 main(int argc,char **argv,char **envp) {
7418 #ifdef CAN_UNRANDOMIZE_SBRK
7419 #include "h/unrandomize.h"
7420 #endif
7421 return (long)$cstack_address<0 ? 0 : -1;
7422 }
7423 _ACEOF
7424 if ac_fn_c_try_run "$LINENO"
7425 then :
7426 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7427 printf "%s\n" "yes" >&6; }
7428 neg_cstack_address=1
7429
7430 printf "%s\n" "#define NEG_CSTACK_ADDRESS 1" >>confdefs.h
7431
7432 else $as_nop
7433 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7434 printf "%s\n" "no" >&6; }
7435 neg_cstack_address=0
7436 fi
7437 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7438 conftest.$ac_objext conftest.beam conftest.$ac_ext
7439 fi
7440
7441
7442 # Check whether --enable-immfix was given.
7443 if test ${enable_immfix+y}
7444 then :
7445 enableval=$enable_immfix;
7446 fi
7447
7448
7449 # Check whether --enable-fastimmfix was given.
7450 if test ${enable_fastimmfix+y}
7451 then :
7452 enableval=$enable_fastimmfix;
7453 else $as_nop
7454 enable_fastimmfix=64
7455 fi
7456
7457
7458
7459 if test "$use" != "386-gnu" ; then #hurd can push .data below C stack, but sbrk(0) remains above, foiling unexec
7460
7461 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking finding default linker script" >&5
7462 printf %s "checking finding default linker script... " >&6; }
7463 touch unixport/gcl.script
7464 echo "int main() {return 0;}" >foo.c
7465 $CC $LDFLAGS -Wl,--verbose foo.c -o foo 2>&1 | \
7466 $AWK '/==================================================/ {i=1-i;next} {if (i) print}' >gcl.script
7467 rm -rf foo.c foo
7468
7469 if test "`cat gcl.script | wc -l`" != "0" ; then
7470 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: got it" >&5
7471 printf "%s\n" "got it" >&6; }
7472
7473 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking output_arch" >&5
7474 printf %s "checking output_arch... " >&6; }
7475 output_arch=`cat gcl.script |grep OUTPUT_ARCH|head -n 1|sed 's,.*(\(.*\)).*,\1,1'|cut -f1 -d:`;
7476 if test "$output_arch" != "" ; then
7477
7478 printf "%s\n" "#define OUTPUT_ARCH bfd_arch_${output_arch}" >>confdefs.h
7479
7480 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: bfd_arch_${output_arch}" >&5
7481 printf "%s\n" "bfd_arch_${output_arch}" >&6; }
7482 else
7483 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: not found" >&5
7484 printf "%s\n" "not found" >&6; }
7485 fi
7486
7487 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: trying to adjust text start" >&5
7488 printf "%s\n" "$as_me: trying to adjust text start" >&6;}
7489 cp gcl.script gcl.script.def
7490
7491 n=-1;
7492 k=0;
7493 lim=`$AWK 'END {printf("%d\n",m*8-2)}' m=$ac_cv_sizeof_long`;
7494 max=0;
7495 min=$lim;
7496 while test $n -lt $lim ; do
7497 j=`$AWK 'END {for (i=j=0;j<=n;j++) i=i ? i*2 : 1;printf("%x\n",3*i)}' n=$n </dev/null`
7498 cat gcl.script.def | $AWK '/SIZEOF_HEADERS/ {gsub("0x[0-9]*","0x" j,$0);} {print}' j=$j >gcl.script
7499 # diff -u gcl.script.def gcl.script
7500 echo "int main() {return 0;}" >foo.c
7501 if ( $CC $LDFLAGS -Wl,-T gcl.script foo.c -o foo && ./foo >/dev/null 2<&1 ) >/dev/null 2>&1 ; then
7502 if test $n -lt $min ; then min=$n; fi;
7503 if test $n -gt $max; then max=$n; fi;
7504 elif test $max -gt 0 ; then
7505 # Workaround for false island of acceptability on riscv64, 20240716
7506 if test `$AWK 'END {print n-m}' m=$min n=$max </dev/null` -gt 2 ; then
7507 break;
7508 else
7509 min=$lim
7510 max=0;
7511 fi
7512 fi;
7513 n=`$AWK 'END {print n+1}' n=$n </dev/null`
7514 done
7515
7516 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: min log text start $min" >&5
7517 printf "%s\n" "$as_me: min log text start $min" >&6;}
7518 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: max log text start $max" >&5
7519 printf "%s\n" "$as_me: max log text start $max" >&6;}
7520
7521 if test $neg_cstack_address -eq 1 ; then #FIXME test this
7522 if test $cstack_bits -lt $max ; then
7523 max=$cstack_bits;
7524 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: max log text start reduced to $max considering c stack address" >&5
7525 printf "%s\n" "$as_me: max log text start reduced to $max considering c stack address" >&6;}
7526 fi
7527 fi
7528
7529 j=-1;
7530 low_shft="";
7531 if test $min -le $max ; then
7532 if test $max -ge $enable_fastimmfix && test "$enable_immfix" != "no" ; then
7533 j=`$AWK 'END {for (i=j=0;j<=n;j++) i=i ? i*2 : 1;printf("%x\n",3*i)}' n=$max </dev/null`
7534 low_shft=`$AWK 'END {print n+1}' n=$max </dev/null`;
7535 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: raising log text to 0x$j for a $max bit wide low immfix table" >&5
7536 printf "%s\n" "$as_me: raising log text to 0x$j for a $max bit wide low immfix table" >&6;}
7537 else
7538 j=`$AWK 'END {for (i=j=0;j<=n;j++) i=i ? i*2 : 1;printf("%x\n",3*i)}' n=$min </dev/null`
7539 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: lowering log text to 0x$j to maximize data area" >&5
7540 printf "%s\n" "$as_me: lowering log text to 0x$j to maximize data area" >&6;}
7541 fi
7542 fi
7543
7544 if test "$low_shft" != "" ; then
7545
7546 printf "%s\n" "#define LOW_SHFT $low_shft" >>confdefs.h
7547
7548
7549 printf "%s\n" "#define OBJNULL (object)0x$j" >>confdefs.h
7550
7551 else
7552
7553 printf "%s\n" "#define OBJNULL NULL" >>confdefs.h
7554
7555 fi
7556
7557 # echo $j;
7558 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking our linker script" >&5
7559 printf %s "checking our linker script... " >&6; }
7560 if test "$j" != "-1" ; then
7561 cat gcl.script.def | $AWK '/SIZEOF_HEADERS/ {gsub("0x[0-9]*","0x" j,$0);} {print}' j=$j >gcl.script
7562 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: done" >&5
7563 printf "%s\n" "done" >&6; }
7564 rm -f gcl.script.def
7565 assert_arg_to_ldflags -Wl,-T,gcl.script
7566 cp gcl.script unixport
7567 else
7568 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none found or not needed" >&5
7569 printf "%s\n" "none found or not needed" >&6; }
7570 rm -f gcl.script gcl.script.def
7571 fi
7572 rm -rf foo.c foo
7573 else
7574
7575 printf "%s\n" "#define OBJNULL NULL" >>confdefs.h
7576
7577 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: not found" >&5
7578 printf "%s\n" "not found" >&6; }
7579 fi
7580
7581 else
7582
7583
7584 printf "%s\n" "#define OBJNULL NULL" >>confdefs.h
7585
7586
7587 fi
7588
7589 mem_top=0
7590 mem_range=0
7591 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking mem top" >&5
7592 printf %s "checking mem top... " >&6; }
7593 if test "$cross_compiling" = yes
7594 then :
7595 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7596 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
7597 as_fn_error $? "cannot run test program while cross compiling
7598 See \`config.log' for more details" "$LINENO" 5; }
7599 else $as_nop
7600 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7601 /* end confdefs.h. */
7602
7603 #include <stdio.h>
7604
7605 int
7606 main (void)
7607 {
7608
7609 unsigned long i,j,k,l;
7610 FILE *fp = fopen("conftest1","w");
7611
7612 for (i=2,k=1;i;k=i,i<<=1);
7613 l=$cstack_address;
7614 l=$cstack_direction==1 ? (l<k ? k-1 : -1) : l;
7615 for (i=j=k;j && i<l;j>>=1,i|=j);
7616 if (j<(k>>3)) i=0;
7617 j=1;
7618 j<<=$PAGEWIDTH;
7619 j<<=4;
7620 j--;
7621 i+=j;
7622 i&=~j;
7623 fprintf(fp,"0x%lx",i);
7624 fclose(fp);
7625 return 0;
7626
7627 ;
7628 return 0;
7629 }
7630 _ACEOF
7631 if ac_fn_c_try_run "$LINENO"
7632 then :
7633 mem_top=`cat conftest1`
7634 else $as_nop
7635 mem_top="0x0"
7636 fi
7637 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7638 conftest.$ac_objext conftest.beam conftest.$ac_ext
7639 fi
7640
7641 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $mem_top" >&5
7642 printf "%s\n" "$mem_top" >&6; }
7643
7644 if test "$mem_top" != "0x0" ; then
7645 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking finding upper mem half range" >&5
7646 printf %s "checking finding upper mem half range... " >&6; }
7647 if test "$cross_compiling" = yes
7648 then :
7649 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7650 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
7651 as_fn_error $? "cannot run test program while cross compiling
7652 See \`config.log' for more details" "$LINENO" 5; }
7653 else $as_nop
7654 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7655 /* end confdefs.h. */
7656
7657 #include <stdio.h>
7658
7659 int
7660 main (void)
7661 {
7662
7663 unsigned long j;
7664 FILE *fp = fopen("conftest1","w");
7665
7666 for (j=1;j && !(j& $mem_top);j<<=1);
7667 fprintf(fp,"0x%lx",j>>1);
7668 fclose(fp);
7669 return 0;
7670
7671 ;
7672 return 0;
7673 }
7674 _ACEOF
7675 if ac_fn_c_try_run "$LINENO"
7676 then :
7677 mem_range=`cat conftest1`
7678 else $as_nop
7679 mem_range="0x0"
7680 fi
7681 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7682 conftest.$ac_objext conftest.beam conftest.$ac_ext
7683 fi
7684
7685 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $mem_range" >&5
7686 printf "%s\n" "$mem_range" >&6; }
7687 if test "$mem_range" != "0x0" ; then
7688
7689 printf "%s\n" "#define MEM_TOP $mem_top" >>confdefs.h
7690
7691
7692 printf "%s\n" "#define MEM_RANGE $mem_range" >>confdefs.h
7693
7694 fi
7695 fi
7696
7697 if test "$enable_immfix" != "no" ; then
7698 if test "$mem_top" != "0x0" ; then
7699 if test "$mem_range" != "0x0" ; then
7700
7701 printf "%s\n" "#define IM_FIX_BASE ${mem_top}UL" >>confdefs.h
7702
7703
7704 printf "%s\n" "#define IM_FIX_LIM ${mem_range}UL" >>confdefs.h
7705
7706 fi
7707 fi
7708 fi
7709
7710 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking sizeof long long int" >&5
7711 printf %s "checking sizeof long long int... " >&6; }
7712 if test "$cross_compiling" = yes
7713 then :
7714 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7715 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
7716 as_fn_error $? "cannot run test program while cross compiling
7717 See \`config.log' for more details" "$LINENO" 5; }
7718 else $as_nop
7719 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7720 /* end confdefs.h. */
7721
7722 #include <stdio.h>
7723
7724 int
7725 main (void)
7726 {
7727
7728 if (sizeof(long long int) == 2*sizeof(long)) return 0;
7729 return 1;
7730
7731 ;
7732 return 0;
7733 }
7734 _ACEOF
7735 if ac_fn_c_try_run "$LINENO"
7736 then :
7737
7738 printf "%s\n" "#define HAVE_LONG_LONG 1" >>confdefs.h
7739 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7740 printf "%s\n" "yes" >&6; }
7741 else $as_nop
7742 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7743 printf "%s\n" "no" >&6; }
7744 fi
7745 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7746 conftest.$ac_objext conftest.beam conftest.$ac_ext
7747 fi
7748
7749
7750
7751
7752 for ac_header in dirent.h
7753 do :
7754 ac_fn_c_check_header_compile "$LINENO" "dirent.h" "ac_cv_header_dirent_h" "$ac_includes_default"
7755 if test "x$ac_cv_header_dirent_h" = xyes
7756 then :
7757 printf "%s\n" "#define HAVE_DIRENT_H 1" >>confdefs.h
7758 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for d_type" >&5
7759 printf %s "checking for d_type... " >&6; }
7760 if test "$cross_compiling" = yes
7761 then :
7762 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7763 printf "%s\n" "no" >&6; }
7764 else $as_nop
7765 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7766 /* end confdefs.h. */
7767
7768 #include <dirent.h>
7769 #include <string.h>
7770
7771 int
7772 main (void)
7773 {
7774
7775 struct dirent *d;
7776 DIR *r=opendir("./");
7777 for (;(d=readdir(r)) && strcmp("configure",d->d_name););
7778 return d && d->d_type==DT_REG ? 0 : -1;
7779
7780 ;
7781 return 0;
7782 }
7783 _ACEOF
7784 if ac_fn_c_try_run "$LINENO"
7785 then :
7786 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7787 printf "%s\n" "yes" >&6; }
7788 printf "%s\n" "#define HAVE_D_TYPE 1" >>confdefs.h
7789
7790 else $as_nop
7791 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7792 printf "%s\n" "no" >&6; }
7793 fi
7794 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7795 conftest.$ac_objext conftest.beam conftest.$ac_ext
7796 fi
7797
7798 fi
7799
7800 done
7801
7802 # ansi lisp
7803 SYSTEM=ansi_gcl
7804 CLSTANDARD=ANSI
7805 # Check whether --enable-ansi was given.
7806 if test ${enable_ansi+y}
7807 then :
7808 enableval=$enable_ansi; if test "$enable_ansi" = "no" ; then
7809 SYSTEM=gcl
7810 CLSTANDARD=CLtL1
7811 else
7812
7813 printf "%s\n" "#define ANSI_COMMON_LISP 1" >>confdefs.h
7814
7815 fi
7816 else $as_nop
7817
7818 printf "%s\n" "#define ANSI_COMMON_LISP 1" >>confdefs.h
7819
7820 fi
7821
7822
7823 FLISP="saved_$SYSTEM"
7824
7825
7826
7827
7828 # Maximum number of pages
7829
7830
7831
7832 # Check if Posix compliant getcwd exists, if not we'll use getwd.
7833 ac_fn_c_check_func "$LINENO" "getcwd" "ac_cv_func_getcwd"
7834 if test "x$ac_cv_func_getcwd" = xyes
7835 then :
7836 printf "%s\n" "#define HAVE_GETCWD 1" >>confdefs.h
7837
7838 fi
7839
7840 ac_fn_c_check_func "$LINENO" "getwd" "ac_cv_func_getwd"
7841 if test "x$ac_cv_func_getwd" = xyes
7842 then :
7843 printf "%s\n" "#define HAVE_GETWD 1" >>confdefs.h
7844
7845 fi
7846
7847 ac_fn_c_check_func "$LINENO" "uname" "ac_cv_func_uname"
7848 if test "x$ac_cv_func_uname" = xyes
7849 then :
7850
7851 else $as_nop
7852
7853 printf "%s\n" "#define NO_UNAME 1" >>confdefs.h
7854
7855 fi
7856
7857 ac_fn_c_check_func "$LINENO" "gettimeofday" "ac_cv_func_gettimeofday"
7858 if test "x$ac_cv_func_gettimeofday" = xyes
7859 then :
7860
7861 else $as_nop
7862 printf "%s\n" "#define NO_GETTOD 1" >>confdefs.h
7863
7864 fi
7865
7866
7867
7868 ac_fn_c_check_header_compile "$LINENO" "sys/ioctl.h" "ac_cv_header_sys_ioctl_h" "$ac_includes_default"
7869 if test "x$ac_cv_header_sys_ioctl_h" = xyes
7870 then :
7871 printf "%s\n" "#define HAVE_SYS_IOCTL_H 1" >>confdefs.h
7872
7873 fi
7874
7875
7876 # OpenBSD has elf_abi.h instead of elf.h
7877 ac_fn_c_check_header_compile "$LINENO" "elf.h" "ac_cv_header_elf_h" "$ac_includes_default"
7878 if test "x$ac_cv_header_elf_h" = xyes
7879 then :
7880 printf "%s\n" "#define HAVE_ELF_H 1" >>confdefs.h
7881
7882 fi
7883 ac_fn_c_check_header_compile "$LINENO" "elf_abi.h" "ac_cv_header_elf_abi_h" "$ac_includes_default"
7884 if test "x$ac_cv_header_elf_abi_h" = xyes
7885 then :
7886 printf "%s\n" "#define HAVE_ELF_ABI_H 1" >>confdefs.h
7887
7888 fi
7889
7890
7891 ac_fn_c_check_header_compile "$LINENO" "sys/sockio.h" "ac_cv_header_sys_sockio_h" "$ac_includes_default"
7892 if test "x$ac_cv_header_sys_sockio_h" = xyes
7893 then :
7894 printf "%s\n" "#define HAVE_SYS_SOCKIO_H 1" >>confdefs.h
7895
7896 fi
7897
7898
7899
7900 #--------------------------------------------------------------------
7901 # The code below deals with several issues related to gettimeofday:
7902 # 1. Some systems don't provide a gettimeofday function at all
7903 # (set NO_GETTOD if this is the case).
7904 # 2. SGI systems don't use the BSD form of the gettimeofday function,
7905 # but they have a BSDgettimeofday function that can be used instead.
7906 # 3. See if gettimeofday is declared in the <sys/time.h> header file.
7907 # if not, set the GETTOD_NOT_DECLARED flag so that tclPort.h can
7908 # declare it.
7909 #--------------------------------------------------------------------
7910
7911 ac_fn_c_check_func "$LINENO" "BSDgettimeofday" "ac_cv_func_BSDgettimeofday"
7912 if test "x$ac_cv_func_BSDgettimeofday" = xyes
7913 then :
7914
7915 printf "%s\n" "#define HAVE_BSDGETTIMEOFDAY 1" >>confdefs.h
7916
7917 else $as_nop
7918 ac_fn_c_check_func "$LINENO" "gettimeofday" "ac_cv_func_gettimeofday"
7919 if test "x$ac_cv_func_gettimeofday" = xyes
7920 then :
7921
7922 else $as_nop
7923
7924 printf "%s\n" "#define NO_GETTOD 1" >>confdefs.h
7925
7926 fi
7927
7928 fi
7929
7930
7931 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
7932 printf %s "checking for grep that handles long lines and -e... " >&6; }
7933 if test ${ac_cv_path_GREP+y}
7934 then :
7935 printf %s "(cached) " >&6
7936 else $as_nop
7937 if test -z "$GREP"; then
7938 ac_path_GREP_found=false
7939 # Loop through the user's path and test for each of PROGNAME-LIST
7940 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7941 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
7942 do
7943 IFS=$as_save_IFS
7944 case $as_dir in #(((
7945 '') as_dir=./ ;;
7946 */) ;;
7947 *) as_dir=$as_dir/ ;;
7948 esac
7949 for ac_prog in grep ggrep
7950 do
7951 for ac_exec_ext in '' $ac_executable_extensions; do
7952 ac_path_GREP="$as_dir$ac_prog$ac_exec_ext"
7953 as_fn_executable_p "$ac_path_GREP" || continue
7954 # Check for GNU ac_path_GREP and select it if it is found.
7955 # Check for GNU $ac_path_GREP
7956 case `"$ac_path_GREP" --version 2>&1` in
7957 *GNU*)
7958 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
7959 *)
7960 ac_count=0
7961 printf %s 0123456789 >"conftest.in"
7962 while :
7963 do
7964 cat "conftest.in" "conftest.in" >"conftest.tmp"
7965 mv "conftest.tmp" "conftest.in"
7966 cp "conftest.in" "conftest.nl"
7967 printf "%s\n" 'GREP' >> "conftest.nl"
7968 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
7969 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7970 as_fn_arith $ac_count + 1 && ac_count=$as_val
7971 if test $ac_count -gt ${ac_path_GREP_max-0}; then
7972 # Best one so far, save it but keep looking for a better one
7973 ac_cv_path_GREP="$ac_path_GREP"
7974 ac_path_GREP_max=$ac_count
7975 fi
7976 # 10*(2^10) chars as input seems more than enough
7977 test $ac_count -gt 10 && break
7978 done
7979 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7980 esac
7981
7982 $ac_path_GREP_found && break 3
7983 done
7984 done
7985 done
7986 IFS=$as_save_IFS
7987 if test -z "$ac_cv_path_GREP"; then
7988 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
7989 fi
7990 else
7991 ac_cv_path_GREP=$GREP
7992 fi
7993
7994 fi
7995 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
7996 printf "%s\n" "$ac_cv_path_GREP" >&6; }
7997 GREP="$ac_cv_path_GREP"
7998
7999
8000 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
8001 printf %s "checking for egrep... " >&6; }
8002 if test ${ac_cv_path_EGREP+y}
8003 then :
8004 printf %s "(cached) " >&6
8005 else $as_nop
8006 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
8007 then ac_cv_path_EGREP="$GREP -E"
8008 else
8009 if test -z "$EGREP"; then
8010 ac_path_EGREP_found=false
8011 # Loop through the user's path and test for each of PROGNAME-LIST
8012 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8013 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
8014 do
8015 IFS=$as_save_IFS
8016 case $as_dir in #(((
8017 '') as_dir=./ ;;
8018 */) ;;
8019 *) as_dir=$as_dir/ ;;
8020 esac
8021 for ac_prog in egrep
8022 do
8023 for ac_exec_ext in '' $ac_executable_extensions; do
8024 ac_path_EGREP="$as_dir$ac_prog$ac_exec_ext"
8025 as_fn_executable_p "$ac_path_EGREP" || continue
8026 # Check for GNU ac_path_EGREP and select it if it is found.
8027 # Check for GNU $ac_path_EGREP
8028 case `"$ac_path_EGREP" --version 2>&1` in
8029 *GNU*)
8030 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
8031 *)
8032 ac_count=0
8033 printf %s 0123456789 >"conftest.in"
8034 while :
8035 do
8036 cat "conftest.in" "conftest.in" >"conftest.tmp"
8037 mv "conftest.tmp" "conftest.in"
8038 cp "conftest.in" "conftest.nl"
8039 printf "%s\n" 'EGREP' >> "conftest.nl"
8040 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
8041 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
8042 as_fn_arith $ac_count + 1 && ac_count=$as_val
8043 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
8044 # Best one so far, save it but keep looking for a better one
8045 ac_cv_path_EGREP="$ac_path_EGREP"
8046 ac_path_EGREP_max=$ac_count
8047 fi
8048 # 10*(2^10) chars as input seems more than enough
8049 test $ac_count -gt 10 && break
8050 done
8051 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
8052 esac
8053
8054 $ac_path_EGREP_found && break 3
8055 done
8056 done
8057 done
8058 IFS=$as_save_IFS
8059 if test -z "$ac_cv_path_EGREP"; then
8060 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
8061 fi
8062 else
8063 ac_cv_path_EGREP=$EGREP
8064 fi
8065
8066 fi
8067 fi
8068 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
8069 printf "%s\n" "$ac_cv_path_EGREP" >&6; }
8070 EGREP="$ac_cv_path_EGREP"
8071
8072
8073 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8074 /* end confdefs.h. */
8075 #include <sys/time.h>
8076
8077 _ACEOF
8078 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8079 $EGREP "gettimeofday" >/dev/null 2>&1
8080 then :
8081 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for gettimeofday declaration" >&5
8082 printf %s "checking for gettimeofday declaration... " >&6; }
8083 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: present" >&5
8084 printf "%s\n" "present" >&6; }
8085 else $as_nop
8086 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for gettimeofday declaration" >&5
8087 printf %s "checking for gettimeofday declaration... " >&6; }
8088 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: missing" >&5
8089 printf "%s\n" "missing" >&6; }
8090
8091 printf "%s\n" "#define GETTOD_NOT_DECLARED 1" >>confdefs.h
8092
8093 fi
8094 rm -rf conftest*
8095
8096
8097
8098 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sin in -lm" >&5
8099 printf %s "checking for sin in -lm... " >&6; }
8100 if test ${ac_cv_lib_m_sin+y}
8101 then :
8102 printf %s "(cached) " >&6
8103 else $as_nop
8104 ac_check_lib_save_LIBS=$LIBS
8105 LIBS="-lm $LIBS"
8106 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8107 /* end confdefs.h. */
8108
8109 /* Override any GCC internal prototype to avoid an error.
8110 Use char because int might match the return type of a GCC
8111 builtin and then its argument prototype would still apply. */
8112 char sin ();
8113 int
8114 main (void)
8115 {
8116 return sin ();
8117 ;
8118 return 0;
8119 }
8120 _ACEOF
8121 if ac_fn_c_try_link "$LINENO"
8122 then :
8123 ac_cv_lib_m_sin=yes
8124 else $as_nop
8125 ac_cv_lib_m_sin=no
8126 fi
8127 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8128 conftest$ac_exeext conftest.$ac_ext
8129 LIBS=$ac_check_lib_save_LIBS
8130 fi
8131 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_sin" >&5
8132 printf "%s\n" "$ac_cv_lib_m_sin" >&6; }
8133 if test "x$ac_cv_lib_m_sin" = xyes
8134 then :
8135 LIBS="${LIBS} -lm"
8136 else $as_nop
8137 true
8138 fi
8139
8140 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for main in -lmingwex" >&5
8141 printf %s "checking for main in -lmingwex... " >&6; }
8142 if test ${ac_cv_lib_mingwex_main+y}
8143 then :
8144 printf %s "(cached) " >&6
8145 else $as_nop
8146 ac_check_lib_save_LIBS=$LIBS
8147 LIBS="-lmingwex $LIBS"
8148 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8149 /* end confdefs.h. */
8150
8151
8152 int
8153 main (void)
8154 {
8155 return main ();
8156 ;
8157 return 0;
8158 }
8159 _ACEOF
8160 if ac_fn_c_try_link "$LINENO"
8161 then :
8162 ac_cv_lib_mingwex_main=yes
8163 else $as_nop
8164 ac_cv_lib_mingwex_main=no
8165 fi
8166 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8167 conftest$ac_exeext conftest.$ac_ext
8168 LIBS=$ac_check_lib_save_LIBS
8169 fi
8170 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mingwex_main" >&5
8171 printf "%s\n" "$ac_cv_lib_mingwex_main" >&6; }
8172 if test "x$ac_cv_lib_mingwex_main" = xyes
8173 then :
8174 LIBS="${LIBS} -lmingwex"
8175 else $as_nop
8176 true
8177 fi
8178
8179
8180 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for buggy maximum sscanf length" >&5
8181 printf %s "checking for buggy maximum sscanf length... " >&6; }
8182 if test "$cross_compiling" = yes
8183 then :
8184 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8185 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
8186 as_fn_error $? "cannot run test program while cross compiling
8187 See \`config.log' for more details" "$LINENO" 5; }
8188 else $as_nop
8189 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8190 /* end confdefs.h. */
8191
8192 #include <stdio.h>
8193
8194 int
8195 main (void)
8196 {
8197
8198 char *s= "2.7182818284590452353602874713526624977572470936999595749669676277240766303535475945713821785251664274274663919320030599218174135966290435729003342952605956307381323286279434907632338298807531952510190115738341879307021540891499348841675092447614606680822648001684774118537423454424371075390777449920695517027618386062613313845830007520449338265602976067371132007093287091274437470472306969772093101416928368190255151086574637721112523897844250569536967707854499699679468644549059879316368892300987931277361782154249992295763514822082698951936680331825288693984964651058209392398294887933203625094431173012381970684161404";
8199 int n, m;
8200 double f;
8201 char *endptr;
8202 FILE *fp=fopen("conftest1","w");
8203
8204 n=sscanf(s,"%lf%n",&f,&m);
8205 fprintf(fp,"%d",m);
8206 fclose(fp);
8207 return s[m];
8208
8209 ;
8210 return 0;
8211 }
8212 _ACEOF
8213 if ac_fn_c_try_run "$LINENO"
8214 then :
8215 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none" >&5
8216 printf "%s\n" "none" >&6; }
8217 else $as_nop
8218 buggy_maximum_sscanf_length=`cat conftest1`
8219 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $buggy_maximum_sscanf_length" >&5
8220 printf "%s\n" "$buggy_maximum_sscanf_length" >&6; }
8221
8222 printf "%s\n" "#define BUGGY_MAXIMUM_SSCANF_LENGTH $buggy_maximum_sscanf_length" >>confdefs.h
8223
8224 fi
8225 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8226 conftest.$ac_objext conftest.beam conftest.$ac_ext
8227 fi
8228
8229
8230
8231 EXTRA_LOBJS=
8232 # Check whether --enable-japi was given.
8233 if test ${enable_japi+y}
8234 then :
8235 enableval=$enable_japi; if test "$enable_japi" = "yes" ; then
8236 for ac_header in japi.h
8237 do :
8238 ac_fn_c_check_header_compile "$LINENO" "japi.h" "ac_cv_header_japi_h" "$ac_includes_default"
8239 if test "x$ac_cv_header_japi_h" = xyes
8240 then :
8241 printf "%s\n" "#define HAVE_JAPI_H 1" >>confdefs.h
8242 printf "%s\n" "#define HAVE_JAPI_H 1" >>confdefs.h
8243
8244 EXTRA_LOBJS="${EXTRA_LOBJS} gcl_japi.o"
8245 LIBS="${LIBS} -ljapi -lwsock32"
8246 fi
8247
8248 done
8249 fi
8250 fi
8251
8252
8253 # Should really find a way to check for prototypes, but this
8254 # basically works for now. CM
8255 #
8256 for ac_header in math.h
8257 do :
8258 ac_fn_c_check_header_compile "$LINENO" "math.h" "ac_cv_header_math_h" "$ac_includes_default"
8259 if test "x$ac_cv_header_math_h" = xyes
8260 then :
8261 printf "%s\n" "#define HAVE_MATH_H 1" >>confdefs.h
8262
8263 printf "%s\n" "#define HAVE_MATH_H 1" >>confdefs.h
8264
8265 fi
8266
8267 done
8268 for ac_header in complex.h
8269 do :
8270 ac_fn_c_check_header_compile "$LINENO" "complex.h" "ac_cv_header_complex_h" "$ac_includes_default"
8271 if test "x$ac_cv_header_complex_h" = xyes
8272 then :
8273 printf "%s\n" "#define HAVE_COMPLEX_H 1" >>confdefs.h
8274
8275 printf "%s\n" "#define HAVE_COMPLEX_H 1" >>confdefs.h
8276
8277 fi
8278
8279 done
8280
8281 #
8282 # For DBL_MAX et. al. on (only) certain Linux arches, apparently CM
8283 #
8284 for ac_header in values.h
8285 do :
8286 ac_fn_c_check_header_compile "$LINENO" "values.h" "ac_cv_header_values_h" "$ac_includes_default"
8287 if test "x$ac_cv_header_values_h" = xyes
8288 then :
8289 printf "%s\n" "#define HAVE_VALUES_H 1" >>confdefs.h
8290
8291 printf "%s\n" "#define HAVE_VALUES_H 1" >>confdefs.h
8292
8293 fi
8294
8295 done
8296
8297 #
8298 # Sparc solaris keeps this in float.h, rework either/or with values.h later
8299 #
8300 for ac_header in float.h
8301 do :
8302 ac_fn_c_check_header_compile "$LINENO" "float.h" "ac_cv_header_float_h" "$ac_includes_default"
8303 if test "x$ac_cv_header_float_h" = xyes
8304 then :
8305 printf "%s\n" "#define HAVE_FLOAT_H 1" >>confdefs.h
8306
8307 printf "%s\n" "#define HAVE_FLOAT_H 1" >>confdefs.h
8308
8309 fi
8310
8311 done
8312
8313 #
8314 # The second alternative is for solaris. This needs to be
8315 # a more comprehensive later, i.e. checking that the fpclass
8316 # test makes sense. CM
8317 #
8318 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for isnormal" >&5
8319 printf %s "checking for isnormal... " >&6; }
8320 if test "$cross_compiling" = yes
8321 then :
8322 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8323 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
8324 as_fn_error $? "cannot run test program while cross compiling
8325 See \`config.log' for more details" "$LINENO" 5; }
8326 else $as_nop
8327 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8328 /* end confdefs.h. */
8329
8330 #define _GNU_SOURCE
8331 #include <math.h>
8332
8333 int
8334 main (void)
8335 {
8336
8337 float f;
8338 return isnormal(f) || !isnormal(f) ? 0 : 1;
8339
8340 ;
8341 return 0;
8342 }
8343 _ACEOF
8344 if ac_fn_c_try_run "$LINENO"
8345 then :
8346
8347 printf "%s\n" "#define HAVE_ISNORMAL 1" >>confdefs.h
8348 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8349 printf "%s\n" "yes" >&6; }
8350 else $as_nop
8351 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for fpclass of ieeefp.h" >&5
8352 printf %s "checking for fpclass of ieeefp.h... " >&6; }
8353 if test "$cross_compiling" = yes
8354 then :
8355 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8356 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
8357 as_fn_error $? "cannot run test program while cross compiling
8358 See \`config.log' for more details" "$LINENO" 5; }
8359 else $as_nop
8360 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8361 /* end confdefs.h. */
8362
8363 #include <ieeefp.h>
8364
8365 int
8366 main (void)
8367 {
8368
8369 float f;
8370 return fpclass(f)>=FP_NZERO || fpclass(f)<FP_NZERO ? 0 : 1;
8371
8372 ;
8373 return 0;
8374 }
8375 _ACEOF
8376 if ac_fn_c_try_run "$LINENO"
8377 then :
8378
8379 printf "%s\n" "#define HAVE_IEEEFP 1" >>confdefs.h
8380 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8381 printf "%s\n" "yes" >&6; }
8382 else $as_nop
8383 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8384 printf "%s\n" "no" >&6; }
8385 fi
8386 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8387 conftest.$ac_objext conftest.beam conftest.$ac_ext
8388 fi
8389
8390 fi
8391 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8392 conftest.$ac_objext conftest.beam conftest.$ac_ext
8393 fi
8394
8395
8396 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for isfinite" >&5
8397 printf %s "checking for isfinite... " >&6; }
8398 if test "$cross_compiling" = yes
8399 then :
8400 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8401 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
8402 as_fn_error $? "cannot run test program while cross compiling
8403 See \`config.log' for more details" "$LINENO" 5; }
8404 else $as_nop
8405 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8406 /* end confdefs.h. */
8407
8408 #define _GNU_SOURCE
8409 #include <math.h>
8410
8411 int
8412 main (void)
8413 {
8414
8415 float f;
8416 return isfinite(f) || !isfinite(f) ? 0 : 1;
8417
8418 ;
8419 return 0;
8420 }
8421 _ACEOF
8422 if ac_fn_c_try_run "$LINENO"
8423 then :
8424
8425 printf "%s\n" "#define HAVE_ISFINITE 1" >>confdefs.h
8426 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8427 printf "%s\n" "yes" >&6; }
8428 else $as_nop
8429 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for finite()" >&5
8430 printf %s "checking for finite()... " >&6; }
8431 if test "$cross_compiling" = yes
8432 then :
8433 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8434 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
8435 as_fn_error $? "cannot run test program while cross compiling
8436 See \`config.log' for more details" "$LINENO" 5; }
8437 else $as_nop
8438 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8439 /* end confdefs.h. */
8440
8441 #include <math.h>
8442 #include <ieeefp.h>
8443
8444 int
8445 main (void)
8446 {
8447
8448 float f;
8449 return finite(f) || !finite(f) ? 0 : 1;
8450
8451 ;
8452 return 0;
8453 }
8454 _ACEOF
8455 if ac_fn_c_try_run "$LINENO"
8456 then :
8457
8458 printf "%s\n" "#define HAVE_FINITE 1" >>confdefs.h
8459 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8460 printf "%s\n" "yes" >&6; }
8461 else $as_nop
8462 as_fn_error $? "no" "$LINENO" 5
8463 fi
8464 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8465 conftest.$ac_objext conftest.beam conftest.$ac_ext
8466 fi
8467
8468 fi
8469 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8470 conftest.$ac_objext conftest.beam conftest.$ac_ext
8471 fi
8472
8473
8474 #--------------------------------------------------------------------
8475 # Check for the existence of the -lsocket and -lnsl libraries.
8476 # The order here is important, so that they end up in the right
8477 # order in the command line generated by make. Here are some
8478 # special considerations:
8479 # 1. Use "connect" and "accept" to check for -lsocket, and
8480 # "gethostbyname" to check for -lnsl.
8481 # 2. Use each function name only once: can't redo a check because
8482 # autoconf caches the results of the last check and won't redo it.
8483 # 3. Use -lnsl and -lsocket only if they supply procedures that
8484 # aren't already present in the normal libraries. This is because
8485 # IRIX 5.2 has libraries, but they aren't needed and they're
8486 # bogus: they goof up name resolution if used.
8487 # 4. On some SVR4 systems, can't use -lsocket without -lnsl too.
8488 # To get around this problem, check for both libraries together
8489 # if -lsocket doesn't work by itself.
8490 #--------------------------------------------------------------------
8491 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sockets" >&5
8492 printf %s "checking for sockets... " >&6; }
8493 tcl_checkBoth=0
8494 ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect"
8495 if test "x$ac_cv_func_connect" = xyes
8496 then :
8497 tcl_checkSocket=0
8498 else $as_nop
8499 tcl_checkSocket=1
8500 fi
8501
8502 if test "$tcl_checkSocket" = 1; then
8503 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for main in -lsocket" >&5
8504 printf %s "checking for main in -lsocket... " >&6; }
8505 if test ${ac_cv_lib_socket_main+y}
8506 then :
8507 printf %s "(cached) " >&6
8508 else $as_nop
8509 ac_check_lib_save_LIBS=$LIBS
8510 LIBS="-lsocket $LIBS"
8511 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8512 /* end confdefs.h. */
8513
8514
8515 int
8516 main (void)
8517 {
8518 return main ();
8519 ;
8520 return 0;
8521 }
8522 _ACEOF
8523 if ac_fn_c_try_link "$LINENO"
8524 then :
8525 ac_cv_lib_socket_main=yes
8526 else $as_nop
8527 ac_cv_lib_socket_main=no
8528 fi
8529 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8530 conftest$ac_exeext conftest.$ac_ext
8531 LIBS=$ac_check_lib_save_LIBS
8532 fi
8533 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_main" >&5
8534 printf "%s\n" "$ac_cv_lib_socket_main" >&6; }
8535 if test "x$ac_cv_lib_socket_main" = xyes
8536 then :
8537 TLIBS="$TLIBS -lsocket"
8538 else $as_nop
8539 tcl_checkBoth=1
8540 fi
8541
8542 fi
8543
8544
8545 if test "$tcl_checkBoth" = 1; then
8546 tk_oldLibs=$TLIBS
8547 TLIBS="$TLIBS -lsocket -lnsl"
8548 ac_fn_c_check_func "$LINENO" "accept" "ac_cv_func_accept"
8549 if test "x$ac_cv_func_accept" = xyes
8550 then :
8551 tcl_checkNsl=0
8552 else $as_nop
8553 TLIBS=$tk_oldLibs
8554 fi
8555
8556 fi
8557 ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
8558 if test "x$ac_cv_func_gethostbyname" = xyes
8559 then :
8560
8561 else $as_nop
8562 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for main in -lnsl" >&5
8563 printf %s "checking for main in -lnsl... " >&6; }
8564 if test ${ac_cv_lib_nsl_main+y}
8565 then :
8566 printf %s "(cached) " >&6
8567 else $as_nop
8568 ac_check_lib_save_LIBS=$LIBS
8569 LIBS="-lnsl $LIBS"
8570 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8571 /* end confdefs.h. */
8572
8573
8574 int
8575 main (void)
8576 {
8577 return main ();
8578 ;
8579 return 0;
8580 }
8581 _ACEOF
8582 if ac_fn_c_try_link "$LINENO"
8583 then :
8584 ac_cv_lib_nsl_main=yes
8585 else $as_nop
8586 ac_cv_lib_nsl_main=no
8587 fi
8588 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8589 conftest$ac_exeext conftest.$ac_ext
8590 LIBS=$ac_check_lib_save_LIBS
8591 fi
8592 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_main" >&5
8593 printf "%s\n" "$ac_cv_lib_nsl_main" >&6; }
8594 if test "x$ac_cv_lib_nsl_main" = xyes
8595 then :
8596 TLIBS="$TLIBS -lnsl"
8597 fi
8598
8599 fi
8600
8601
8602 # readline
8603 # Check whether --enable-readline was given.
8604 if test ${enable_readline+y}
8605 then :
8606 enableval=$enable_readline;
8607 fi
8608
8609
8610 if test "$use" = "mingw" ; then
8611 enable_readline=no
8612 fi
8613
8614 if test "$enable_readline" != "no" ; then
8615 for ac_header in readline/readline.h
8616 do :
8617 ac_fn_c_check_header_compile "$LINENO" "readline/readline.h" "ac_cv_header_readline_readline_h" "#include <stdio.h>
8618
8619 "
8620 if test "x$ac_cv_header_readline_readline_h" = xyes
8621 then :
8622 printf "%s\n" "#define HAVE_READLINE_READLINE_H 1" >>confdefs.h
8623 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for rl_initialize in -lreadline" >&5
8624 printf %s "checking for rl_initialize in -lreadline... " >&6; }
8625 if test ${ac_cv_lib_readline_rl_initialize+y}
8626 then :
8627 printf %s "(cached) " >&6
8628 else $as_nop
8629 ac_check_lib_save_LIBS=$LIBS
8630 LIBS="-lreadline $LIBS"
8631 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8632 /* end confdefs.h. */
8633
8634 /* Override any GCC internal prototype to avoid an error.
8635 Use char because int might match the return type of a GCC
8636 builtin and then its argument prototype would still apply. */
8637 char rl_initialize ();
8638 int
8639 main (void)
8640 {
8641 return rl_initialize ();
8642 ;
8643 return 0;
8644 }
8645 _ACEOF
8646 if ac_fn_c_try_link "$LINENO"
8647 then :
8648 ac_cv_lib_readline_rl_initialize=yes
8649 else $as_nop
8650 ac_cv_lib_readline_rl_initialize=no
8651 fi
8652 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8653 conftest$ac_exeext conftest.$ac_ext
8654 LIBS=$ac_check_lib_save_LIBS
8655 fi
8656 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_readline_rl_initialize" >&5
8657 printf "%s\n" "$ac_cv_lib_readline_rl_initialize" >&6; }
8658 if test "x$ac_cv_lib_readline_rl_initialize" = xyes
8659 then :
8660
8661 printf "%s\n" "#define USE_READLINE 1" >>confdefs.h
8662
8663 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for el_getc in -lreadline" >&5
8664 printf %s "checking for el_getc in -lreadline... " >&6; }
8665 if test ${ac_cv_lib_readline_el_getc+y}
8666 then :
8667 printf %s "(cached) " >&6
8668 else $as_nop
8669 ac_check_lib_save_LIBS=$LIBS
8670 LIBS="-lreadline $LIBS"
8671 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8672 /* end confdefs.h. */
8673
8674 /* Override any GCC internal prototype to avoid an error.
8675 Use char because int might match the return type of a GCC
8676 builtin and then its argument prototype would still apply. */
8677 char el_getc ();
8678 int
8679 main (void)
8680 {
8681 return el_getc ();
8682 ;
8683 return 0;
8684 }
8685 _ACEOF
8686 if ac_fn_c_try_link "$LINENO"
8687 then :
8688 ac_cv_lib_readline_el_getc=yes
8689 else $as_nop
8690 ac_cv_lib_readline_el_getc=no
8691 fi
8692 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8693 conftest$ac_exeext conftest.$ac_ext
8694 LIBS=$ac_check_lib_save_LIBS
8695 fi
8696 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_readline_el_getc" >&5
8697 printf "%s\n" "$ac_cv_lib_readline_el_getc" >&6; }
8698 if test "x$ac_cv_lib_readline_el_getc" = xyes
8699 then :
8700
8701 printf "%s\n" "#define READLINE_IS_EDITLINE 1" >>confdefs.h
8702
8703 fi
8704
8705 # These tests discover differences between readline 4.1 and 4.3
8706 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for rl_completion_matches in -lreadline" >&5
8707 printf %s "checking for rl_completion_matches in -lreadline... " >&6; }
8708 if test ${ac_cv_lib_readline_rl_completion_matches+y}
8709 then :
8710 printf %s "(cached) " >&6
8711 else $as_nop
8712 ac_check_lib_save_LIBS=$LIBS
8713 LIBS="-lreadline $LIBS"
8714 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8715 /* end confdefs.h. */
8716
8717 /* Override any GCC internal prototype to avoid an error.
8718 Use char because int might match the return type of a GCC
8719 builtin and then its argument prototype would still apply. */
8720 char rl_completion_matches ();
8721 int
8722 main (void)
8723 {
8724 return rl_completion_matches ();
8725 ;
8726 return 0;
8727 }
8728 _ACEOF
8729 if ac_fn_c_try_link "$LINENO"
8730 then :
8731 ac_cv_lib_readline_rl_completion_matches=yes
8732 else $as_nop
8733 ac_cv_lib_readline_rl_completion_matches=no
8734 fi
8735 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8736 conftest$ac_exeext conftest.$ac_ext
8737 LIBS=$ac_check_lib_save_LIBS
8738 fi
8739 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_readline_rl_completion_matches" >&5
8740 printf "%s\n" "$ac_cv_lib_readline_rl_completion_matches" >&6; }
8741 if test "x$ac_cv_lib_readline_rl_completion_matches" = xyes
8742 then :
8743
8744 printf "%s\n" "#define HAVE_DECL_RL_COMPLETION_MATCHES 1" >>confdefs.h
8745
8746
8747 printf "%s\n" "#define HAVE_RL_COMPENTRY_FUNC_T 1" >>confdefs.h
8748
8749 fi
8750
8751 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking RL_COMPLETION_ENTRY_FUNCTION_TYPE_FUNCTION" >&5
8752 printf %s "checking RL_COMPLETION_ENTRY_FUNCTION_TYPE_FUNCTION... " >&6; }
8753 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8754 /* end confdefs.h. */
8755
8756 #include <stdio.h>
8757 #include <readline/readline.h>
8758 extern Function *rl_completion_entry_function __attribute__((weak));
8759
8760 int
8761 main (void)
8762 {
8763
8764 ;
8765 return 0;
8766 }
8767 _ACEOF
8768 if ac_fn_c_try_compile "$LINENO"
8769 then :
8770
8771 printf "%s\n" "#define RL_COMPLETION_ENTRY_FUNCTION_TYPE_FUNCTION 1" >>confdefs.h
8772
8773 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8774 printf "%s\n" "yes" >&6; }
8775 else $as_nop
8776 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8777 printf "%s\n" "no" >&6; }
8778 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking RL_COMPLETION_ENTRY_FUNCTION_TYPE_RL_COMPENTRY_FUNC_T" >&5
8779 printf %s "checking RL_COMPLETION_ENTRY_FUNCTION_TYPE_RL_COMPENTRY_FUNC_T... " >&6; }
8780 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8781 /* end confdefs.h. */
8782
8783 #include <stdio.h>
8784 #include <readline/readline.h>
8785 extern rl_compentry_func_t *rl_completion_entry_function __attribute__((weak));
8786
8787 int
8788 main (void)
8789 {
8790
8791 ;
8792 return 0;
8793 }
8794 _ACEOF
8795 if ac_fn_c_try_compile "$LINENO"
8796 then :
8797
8798 printf "%s\n" "#define RL_COMPLETION_ENTRY_FUNCTION_TYPE_RL_COMPENTRY_FUNC_T 1" >>confdefs.h
8799
8800 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8801 printf "%s\n" "yes" >&6; }
8802 else $as_nop
8803 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8804 printf "%s\n" "no" >&6; }
8805 as_fn_error $? "Unknown rl_completion_entry_function return type" "$LINENO" 5
8806 fi
8807 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8808 fi
8809 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8810
8811 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking RL_READLINE_NAME_TYPE_CHAR" >&5
8812 printf %s "checking RL_READLINE_NAME_TYPE_CHAR... " >&6; }
8813 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8814 /* end confdefs.h. */
8815
8816 #include <stdio.h>
8817 #include <readline/readline.h>
8818 extern char *rl_readline_name __attribute__((weak));
8819
8820 int
8821 main (void)
8822 {
8823
8824 ;
8825 return 0;
8826 }
8827 _ACEOF
8828 if ac_fn_c_try_compile "$LINENO"
8829 then :
8830
8831 printf "%s\n" "#define RL_READLINE_NAME_TYPE_CHAR 1" >>confdefs.h
8832
8833 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8834 printf "%s\n" "yes" >&6; }
8835 else $as_nop
8836 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8837 printf "%s\n" "no" >&6; }
8838 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking RL_READLINE_NAME_TYPE_CONST_CHAR" >&5
8839 printf %s "checking RL_READLINE_NAME_TYPE_CONST_CHAR... " >&6; }
8840 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8841 /* end confdefs.h. */
8842
8843 #include <stdio.h>
8844 #include <readline/readline.h>
8845 extern const char *rl_readline_name __attribute__((weak));
8846
8847 int
8848 main (void)
8849 {
8850
8851 ;
8852 return 0;
8853 }
8854 _ACEOF
8855 if ac_fn_c_try_compile "$LINENO"
8856 then :
8857
8858 printf "%s\n" "#define RL_READLINE_NAME_TYPE_CONST_CHAR 1" >>confdefs.h
8859
8860 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8861 printf "%s\n" "yes" >&6; }
8862 else $as_nop
8863 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8864 printf "%s\n" "no" >&6; }
8865 as_fn_error $? "Unknown rl_readline_name return type" "$LINENO" 5
8866 fi
8867 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8868 fi
8869 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8870 TLIBS="$TLIBS -lreadline" #some machines don't link this, e.g. Slackware
8871 RL_OBJS=gcl_readline.o
8872 fi
8873
8874 fi
8875
8876 done
8877 fi
8878
8879
8880
8881
8882 # sockets
8883
8884 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking For network code for nsocket.c" >&5
8885 printf %s "checking For network code for nsocket.c... " >&6; }
8886 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8887 /* end confdefs.h. */
8888
8889 #include <sys/time.h>
8890 #include <sys/types.h>
8891 #include <unistd.h>
8892
8893 #include <errno.h>
8894 #include <fcntl.h>
8895 #include <stdio.h>
8896
8897 /************* for the sockets ******************/
8898 #include <sys/socket.h> /* struct sockaddr, SOCK_STREAM, ... */
8899 #ifndef NO_UNAME
8900 # include <sys/utsname.h> /* uname system call. */
8901 #endif
8902 #include <netinet/in.h> /* struct in_addr, struct sockaddr_in */
8903 #include <arpa/inet.h> /* inet_ntoa() */
8904 #include <netdb.h> /* gethostbyname() */
8905
8906 int
8907 main (void)
8908 {
8909
8910 connect(0,(struct sockaddr *)0,0);
8911 gethostbyname("jil");
8912 socket(AF_INET, SOCK_STREAM, 0);
8913
8914 ;
8915 return 0;
8916 }
8917 _ACEOF
8918 if ac_fn_c_try_link "$LINENO"
8919 then :
8920
8921 printf "%s\n" "#define HAVE_NSOCKET 1" >>confdefs.h
8922
8923 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8924 printf "%s\n" "yes" >&6; }
8925 else $as_nop
8926 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8927 printf "%s\n" "no" >&6; }
8928 fi
8929 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8930 conftest$ac_exeext conftest.$ac_ext
8931
8932
8933 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking check for listen using fcntl" >&5
8934 printf %s "checking check for listen using fcntl... " >&6; }
8935 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8936 /* end confdefs.h. */
8937
8938 #include <stdio.h>
8939 #include <fcntl.h>
8940
8941 int
8942 main (void)
8943 {
8944
8945 FILE *fp=fopen("configure.in","r");
8946 int orig;
8947 orig = fcntl(fileno(fp), F_GETFL);
8948 if (! (orig & O_NONBLOCK )) return 0;
8949
8950 ;
8951 return 0;
8952 }
8953 _ACEOF
8954 if ac_fn_c_try_compile "$LINENO"
8955 then :
8956
8957 printf "%s\n" "#define LISTEN_USE_FCNTL 1" >>confdefs.h
8958
8959 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8960 printf "%s\n" "yes" >&6; }
8961 else $as_nop
8962 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8963 printf "%s\n" "no" >&6; }
8964 fi
8965 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8966
8967
8968 ac_fn_c_check_func "$LINENO" "profil" "ac_cv_func_profil"
8969 if test "x$ac_cv_func_profil" = xyes
8970 then :
8971
8972 else $as_nop
8973
8974 printf "%s\n" "#define NO_PROFILE 1" >>confdefs.h
8975
8976 fi
8977
8978
8979 ac_fn_c_check_func "$LINENO" "setenv" "ac_cv_func_setenv"
8980 if test "x$ac_cv_func_setenv" = xyes
8981 then :
8982
8983 printf "%s\n" "#define HAVE_SETENV 1" >>confdefs.h
8984
8985 else $as_nop
8986 no_setenv=1
8987 fi
8988
8989
8990 if test "$no_setenv" = "1" ; then
8991 ac_fn_c_check_func "$LINENO" "putenv" "ac_cv_func_putenv"
8992 if test "x$ac_cv_func_putenv" = xyes
8993 then :
8994
8995 printf "%s\n" "#define HAVE_PUTENV 1" >>confdefs.h
8996
8997 fi
8998
8999
9000 fi
9001
9002 ac_fn_c_check_func "$LINENO" "_cleanup" "ac_cv_func__cleanup"
9003 if test "x$ac_cv_func__cleanup" = xyes
9004 then :
9005
9006 printf "%s\n" "#define USE_CLEANUP 1" >>confdefs.h
9007
9008 fi
9009
9010
9011 gcl_ok=no
9012
9013 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking FIONBIO vs. O_NONBLOCK for nonblocking I/O" >&5
9014 printf %s "checking FIONBIO vs. O_NONBLOCK for nonblocking I/O... " >&6; }
9015
9016 case $system in
9017 OSF*)
9018
9019 printf "%s\n" "#define USE_FIONBIO 1" >>confdefs.h
9020
9021 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: FIONBIO" >&5
9022 printf "%s\n" "FIONBIO" >&6; }
9023 ;;
9024 SunOS-4*)
9025
9026 printf "%s\n" "#define USE_FIONBIO 1" >>confdefs.h
9027
9028 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: FIONBIO" >&5
9029 printf "%s\n" "FIONBIO" >&6; }
9030 ;;
9031 ULTRIX-4.*)
9032
9033 printf "%s\n" "#define USE_FIONBIO 1" >>confdefs.h
9034
9035 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: FIONBIO" >&5
9036 printf "%s\n" "FIONBIO" >&6; }
9037 ;;
9038 *)
9039 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: O_NONBLOCK" >&5
9040 printf "%s\n" "O_NONBLOCK" >&6; }
9041 ;;
9042 esac
9043
9044
9045 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking check for SV_ONSTACK" >&5
9046 printf %s "checking check for SV_ONSTACK... " >&6; }
9047 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9048 /* end confdefs.h. */
9049
9050 #include <signal.h>
9051 int joe=SV_ONSTACK;
9052
9053 int
9054 main (void)
9055 {
9056
9057 ;
9058 return 0;
9059 }
9060 _ACEOF
9061 if ac_fn_c_try_compile "$LINENO"
9062 then :
9063
9064 printf "%s\n" "#define HAVE_SV_ONSTACK 1" >>confdefs.h
9065
9066
9067 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9068 printf "%s\n" "yes" >&6; }
9069 else $as_nop
9070 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9071 printf "%s\n" "no" >&6; }
9072 fi
9073 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9074
9075 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking check for SIGSYS" >&5
9076 printf %s "checking check for SIGSYS... " >&6; }
9077 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9078 /* end confdefs.h. */
9079
9080 #include <signal.h>
9081 int joe=SIGSYS;
9082
9083 int
9084 main (void)
9085 {
9086
9087 ;
9088 return 0;
9089 }
9090 _ACEOF
9091 if ac_fn_c_try_compile "$LINENO"
9092 then :
9093
9094 printf "%s\n" "#define HAVE_SIGSYS 1" >>confdefs.h
9095
9096
9097 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9098 printf "%s\n" "yes" >&6; }
9099 else $as_nop
9100 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9101 printf "%s\n" "no" >&6; }
9102 fi
9103 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9104
9105
9106 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking check for SIGEMT" >&5
9107 printf %s "checking check for SIGEMT... " >&6; }
9108 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9109 /* end confdefs.h. */
9110
9111 #include <signal.h>
9112 int joe=SIGEMT;
9113
9114 int
9115 main (void)
9116 {
9117
9118 ;
9119 return 0;
9120 }
9121 _ACEOF
9122 if ac_fn_c_try_compile "$LINENO"
9123 then :
9124
9125 printf "%s\n" "#define HAVE_SIGEMT 1" >>confdefs.h
9126
9127
9128 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9129 printf "%s\n" "yes" >&6; }
9130 else $as_nop
9131 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9132 printf "%s\n" "no" >&6; }
9133 fi
9134 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9135
9136 ac_fn_c_check_func "$LINENO" "sigaltstack" "ac_cv_func_sigaltstack"
9137 if test "x$ac_cv_func_sigaltstack" = xyes
9138 then :
9139 printf "%s\n" "#define HAVE_SIGALTSTACK 1" >>confdefs.h
9140
9141 fi
9142
9143 ac_fn_c_check_func "$LINENO" "feenableexcept" "ac_cv_func_feenableexcept"
9144 if test "x$ac_cv_func_feenableexcept" = xyes
9145 then :
9146 printf "%s\n" "#define HAVE_FEENABLEEXCEPT 1" >>confdefs.h
9147
9148 fi
9149
9150
9151 for ac_header in dis-asm.h
9152 do :
9153 ac_fn_c_check_header_compile "$LINENO" "dis-asm.h" "ac_cv_header_dis_asm_h" "$ac_includes_default"
9154 if test "x$ac_cv_header_dis_asm_h" = xyes
9155 then :
9156 printf "%s\n" "#define HAVE_DIS_ASM_H 1" >>confdefs.h
9157 MLIBS=$LIBS
9158 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for init_disassemble_info in -lopcodes" >&5
9159 printf %s "checking for init_disassemble_info in -lopcodes... " >&6; }
9160 if test ${ac_cv_lib_opcodes_init_disassemble_info+y}
9161 then :
9162 printf %s "(cached) " >&6
9163 else $as_nop
9164 ac_check_lib_save_LIBS=$LIBS
9165 LIBS="-lopcodes $LIBS"
9166 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9167 /* end confdefs.h. */
9168
9169 /* Override any GCC internal prototype to avoid an error.
9170 Use char because int might match the return type of a GCC
9171 builtin and then its argument prototype would still apply. */
9172 char init_disassemble_info ();
9173 int
9174 main (void)
9175 {
9176 return init_disassemble_info ();
9177 ;
9178 return 0;
9179 }
9180 _ACEOF
9181 if ac_fn_c_try_link "$LINENO"
9182 then :
9183 ac_cv_lib_opcodes_init_disassemble_info=yes
9184 else $as_nop
9185 ac_cv_lib_opcodes_init_disassemble_info=no
9186 fi
9187 rm -f core conftest.err conftest.$ac_objext conftest.beam \
9188 conftest$ac_exeext conftest.$ac_ext
9189 LIBS=$ac_check_lib_save_LIBS
9190 fi
9191 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_opcodes_init_disassemble_info" >&5
9192 printf "%s\n" "$ac_cv_lib_opcodes_init_disassemble_info" >&6; }
9193 if test "x$ac_cv_lib_opcodes_init_disassemble_info" = xyes
9194 then :
9195 printf "%s\n" "#define HAVE_LIBOPCODES 1" >>confdefs.h
9196
9197 LIBS="-lopcodes $LIBS"
9198
9199 fi
9200
9201 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
9202 printf %s "checking for dlopen in -ldl... " >&6; }
9203 if test ${ac_cv_lib_dl_dlopen+y}
9204 then :
9205 printf %s "(cached) " >&6
9206 else $as_nop
9207 ac_check_lib_save_LIBS=$LIBS
9208 LIBS="-ldl $LIBS"
9209 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9210 /* end confdefs.h. */
9211
9212 /* Override any GCC internal prototype to avoid an error.
9213 Use char because int might match the return type of a GCC
9214 builtin and then its argument prototype would still apply. */
9215 char dlopen ();
9216 int
9217 main (void)
9218 {
9219 return dlopen ();
9220 ;
9221 return 0;
9222 }
9223 _ACEOF
9224 if ac_fn_c_try_link "$LINENO"
9225 then :
9226 ac_cv_lib_dl_dlopen=yes
9227 else $as_nop
9228 ac_cv_lib_dl_dlopen=no
9229 fi
9230 rm -f core conftest.err conftest.$ac_objext conftest.beam \
9231 conftest$ac_exeext conftest.$ac_ext
9232 LIBS=$ac_check_lib_save_LIBS
9233 fi
9234 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
9235 printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; }
9236 if test "x$ac_cv_lib_dl_dlopen" = xyes
9237 then :
9238 #opcodes changes too quickly to link directly
9239 LIBS="$MLIBS -ldl"
9240 fi
9241
9242 fi
9243
9244 done
9245
9246 #if test $use = "386-linux" ; then
9247 ac_fn_c_check_header_compile "$LINENO" "asm/sigcontext.h" "ac_cv_header_asm_sigcontext_h" "$ac_includes_default"
9248 if test "x$ac_cv_header_asm_sigcontext_h" = xyes
9249 then :
9250 printf "%s\n" "#define HAVE_ASM_SIGCONTEXT_H 1" >>confdefs.h
9251
9252 fi
9253
9254 ac_fn_c_check_header_compile "$LINENO" "asm/signal.h" "ac_cv_header_asm_signal_h" "$ac_includes_default"
9255 if test "x$ac_cv_header_asm_signal_h" = xyes
9256 then :
9257 printf "%s\n" "#define HAVE_ASM_SIGNAL_H 1" >>confdefs.h
9258
9259 fi
9260
9261 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sigcontext..." >&5
9262 printf %s "checking for sigcontext...... " >&6; }
9263 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9264 /* end confdefs.h. */
9265
9266 #include <signal.h>
9267
9268 int
9269 main (void)
9270 {
9271
9272 struct sigcontext foo;
9273
9274 ;
9275 return 0;
9276 }
9277 _ACEOF
9278 if ac_fn_c_try_compile "$LINENO"
9279 then :
9280
9281 printf "%s\n" "#define SIGNAL_H_HAS_SIGCONTEXT 1" >>confdefs.h
9282
9283 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: sigcontext of signal.h" >&5
9284 printf "%s\n" "sigcontext of signal.h" >&6; }
9285 else $as_nop
9286 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: sigcontext NOT of signal.h" >&5
9287 printf "%s\n" "sigcontext NOT of signal.h" >&6; }
9288 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sigcontext..." >&5
9289 printf %s "checking for sigcontext...... " >&6; }
9290 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9291 /* end confdefs.h. */
9292
9293 #include <signal.h>
9294 #ifdef HAVE_ASM_SIGCONTEXT_H
9295 #include <asm/sigcontext.h>
9296 #endif
9297 #ifdef HAVE_ASM_SIGNAL_H
9298 #include <asm/signal.h>
9299 #endif
9300
9301 int
9302 main (void)
9303 {
9304
9305 struct sigcontext foo;
9306
9307 ;
9308 return 0;
9309 }
9310 _ACEOF
9311 if ac_fn_c_try_compile "$LINENO"
9312 then :
9313
9314 printf "%s\n" "#define HAVE_SIGCONTEXT 1" >>confdefs.h
9315
9316 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: sigcontext asm files" >&5
9317 printf "%s\n" "sigcontext asm files" >&6; }
9318 else $as_nop
9319 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no sigcontext found" >&5
9320 printf "%s\n" "no sigcontext found" >&6; }
9321 fi
9322 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9323 fi
9324 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9325
9326 # Extract the first word of "emacs", so it can be a program name with args.
9327 set dummy emacs; ac_word=$2
9328 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9329 printf %s "checking for $ac_word... " >&6; }
9330 if test ${ac_cv_path_EMACS+y}
9331 then :
9332 printf %s "(cached) " >&6
9333 else $as_nop
9334 case $EMACS in
9335 [\\/]* | ?:[\\/]*)
9336 ac_cv_path_EMACS="$EMACS" # Let the user override the test with a path.
9337 ;;
9338 *)
9339 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9340 for as_dir in $PATH
9341 do
9342 IFS=$as_save_IFS
9343 case $as_dir in #(((
9344 '') as_dir=./ ;;
9345 */) ;;
9346 *) as_dir=$as_dir/ ;;
9347 esac
9348 for ac_exec_ext in '' $ac_executable_extensions; do
9349 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9350 ac_cv_path_EMACS="$as_dir$ac_word$ac_exec_ext"
9351 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9352 break 2
9353 fi
9354 done
9355 done
9356 IFS=$as_save_IFS
9357
9358 ;;
9359 esac
9360 fi
9361 EMACS=$ac_cv_path_EMACS
9362 if test -n "$EMACS"; then
9363 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $EMACS" >&5
9364 printf "%s\n" "$EMACS" >&6; }
9365 else
9366 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9367 printf "%s\n" "no" >&6; }
9368 fi
9369
9370
9371
9372
9373 # check for where the emacs site lisp directory is.
9374 rm -f conftest.el
9375 cat >> conftest.el <<EOF
9376 (let ((ans ".") (tem load-path) cur)
9377 (while (setq cur (car tem))
9378 (setq tem (cdr tem))
9379 (cond ((and (string-match "site-lisp/?$" cur) (file-directory-p cur))
9380 (setq ans cur)
9381 (if (string-match "-0-9.+$" cur) nil
9382 (setq tem nil)))))
9383 (message ans))
9384 EOF
9385
9386 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking emacs site lisp directory" >&5
9387 printf %s "checking emacs site lisp directory... " >&6; }
9388 if [ "$EMACS_SITE_LISP" = "unknown" ] ; then
9389 if [ "$EMACS" != "" ] ; then
9390 EMACS_SITE_LISP=`$EMACS -q -batch --no-site-file -l conftest.el 2>&1 | sed -e /Loading/d | sed -e /load/d |sed -e /Warning:/d`
9391 else
9392 EMACS_SITE_LISP=""
9393 fi
9394 fi
9395 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $EMACS_SITE_LISP" >&5
9396 printf "%s\n" "$EMACS_SITE_LISP" >&6; }
9397
9398
9399 # check for where the emacs site lisp default.el is
9400 rm -f conftest.el
9401 cat >> conftest.el <<EOF
9402 (let ((ans "./default.el") file (tem load-path))
9403 (while tem
9404 (cond ((file-exists-p
9405 (setq file (expand-file-name "/default.el" (car tem))))
9406 (setq tem nil) (setq ans file)))
9407 (setq tem (cdr tem)))
9408 (message ans))
9409 EOF
9410
9411 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking emacs default.el" >&5
9412 printf %s "checking emacs default.el... " >&6; }
9413 if [ "$EMACS" != "" ] ; then
9414 EMACS_DEFAULT_EL=`$EMACS -q -batch --no-site-file -l conftest.el 2>&1 | sed -e /Loading/d | sed -e /load/d |sed -e /Warning:/d`
9415 else
9416 EMACS_DEFAULT_EL=""
9417 fi
9418 if test -f "${EMACS_DEFAULT_EL}" ; then true;else
9419 if test -d $EMACS_SITE_LISP ; then
9420 EMACS_DEFAULT_EL=${EMACS_SITE_LISP}/default.el
9421 fi
9422 fi
9423 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $EMACS_DEFAULT_EL" >&5
9424 printf "%s\n" "$EMACS_DEFAULT_EL" >&6; }
9425
9426
9427
9428
9429 # check for where the emacs site lisp info/dir is
9430 rm -f conftest.el
9431 cat >> conftest.el <<EOF
9432 (let ((ans "") file (tem Info-default-directory-list))
9433 (while tem
9434 (cond ((file-exists-p (setq file (expand-file-name "dir" (car tem))))
9435 (setq ans (file-name-as-directory (car tem)))
9436 (setq tem nil) ))
9437 (setq tem (cdr tem)))
9438 (message ans))
9439 EOF
9440
9441 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking emacs info/dir" >&5
9442 printf %s "checking emacs info/dir... " >&6; }
9443 if test "$use" = "mingw" ; then
9444 INFO_DIR=\$\(prefix\)/lib/gcl-$VERSION/info/
9445 else
9446 if [ "$EMACS" != "" ] && [ "$INFO_DIR" = "unknown" ] ; then
9447 INFO_DIR=`$EMACS -q -batch --no-site-file -l conftest.el 2>&1 | sed -e /Loading/d | sed -e /load/d |sed -e /Warning:/d`
9448 fi
9449 fi
9450
9451 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $INFO_DIR" >&5
9452 printf "%s\n" "$INFO_DIR" >&6; }
9453
9454
9455 # Check whether --enable-tcltk was given.
9456 if test ${enable_tcltk+y}
9457 then :
9458 enableval=$enable_tcltk;
9459 fi
9460
9461 # Check whether --enable-tkconfig was given.
9462 if test ${enable_tkconfig+y}
9463 then :
9464 enableval=$enable_tkconfig; TK_CONFIG_PREFIX=$enableval
9465 else $as_nop
9466 TK_CONFIG_PREFIX=unknown
9467 fi
9468
9469 # Check whether --enable-tclconfig was given.
9470 if test ${enable_tclconfig+y}
9471 then :
9472 enableval=$enable_tclconfig; TCL_CONFIG_PREFIX=$enableval
9473 else $as_nop
9474 TCL_CONFIG_PREFIX=unknown
9475 fi
9476
9477
9478 if test "$enable_tcltk" != "no" ; then
9479
9480 if test -d "${TCL_CONFIG_PREFIX}" ; then true ; else
9481
9482 # Extract the first word of "tclsh", so it can be a program name with args.
9483 set dummy tclsh; ac_word=$2
9484 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9485 printf %s "checking for $ac_word... " >&6; }
9486 if test ${ac_cv_prog_TCLSH+y}
9487 then :
9488 printf %s "(cached) " >&6
9489 else $as_nop
9490 if test -n "$TCLSH"; then
9491 ac_cv_prog_TCLSH="$TCLSH" # Let the user override the test.
9492 else
9493 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9494 for as_dir in $PATH
9495 do
9496 IFS=$as_save_IFS
9497 case $as_dir in #(((
9498 '') as_dir=./ ;;
9499 */) ;;
9500 *) as_dir=$as_dir/ ;;
9501 esac
9502 for ac_exec_ext in '' $ac_executable_extensions; do
9503 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9504 ac_cv_prog_TCLSH="tclsh"
9505 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9506 break 2
9507 fi
9508 done
9509 done
9510 IFS=$as_save_IFS
9511
9512 test -z "$ac_cv_prog_TCLSH" && ac_cv_prog_TCLSH="${TCLSH}"
9513 fi
9514 fi
9515 TCLSH=$ac_cv_prog_TCLSH
9516 if test -n "$TCLSH"; then
9517 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $TCLSH" >&5
9518 printf "%s\n" "$TCLSH" >&6; }
9519 else
9520 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9521 printf "%s\n" "no" >&6; }
9522 fi
9523
9524
9525
9526 if test "${TCLSH}" = "" ; then true ; else
9527
9528 rm -f conftest.tcl
9529 cat >> conftest.tcl <<EOF
9530
9531 puts [set tcl_version]
9532
9533 EOF
9534
9535 TCL_VERSION=`${TCLSH} < conftest.tcl`
9536 fi
9537
9538 if test -x /usr/lib/tcl$TCL_VERSION/tclConfig.sh ; then
9539 TCL_CONFIG_PREFIX=/usr/lib/tcl$TCL_VERSION
9540 fi
9541
9542 fi
9543
9544 if test -f ${TCL_CONFIG_PREFIX}/tclConfig.sh ; then . ${TCL_CONFIG_PREFIX}/tclConfig.sh ; fi
9545
9546 if test -d "${TK_CONFIG_PREFIX}" ; then true ; else
9547 if test -f ${TCL_CONFIG_PREFIX}/tkConfig.sh ; then
9548 TK_CONFIG_PREFIX=${TCL_CONFIG_PREFIX}
9549 else
9550 if test -x `echo $TCL_CONFIG_PREFIX | sed 's,tcl,tk,g'`/tkConfig.sh ; then
9551 TK_CONFIG_PREFIX=`echo $TCL_CONFIG_PREFIX | sed 's,tcl,tk,g'`
9552 fi
9553 fi
9554 fi
9555
9556 if test -f ${TK_CONFIG_PREFIX}/tkConfig.sh ; then . ${TK_CONFIG_PREFIX}/tkConfig.sh ; fi
9557
9558 if test -d ${TCL_CONFIG_PREFIX}/tcl${TCL_VERSION} ; then
9559 TCL_LIBRARY=${TCL_CONFIG_PREFIX}/tcl${TCL_VERSION}
9560 else
9561 if test -d ${TCL_CONFIG_PREFIX}/../tcl${TCL_VERSION} ; then
9562 TCL_LIBRARY=${TCL_CONFIG_PREFIX}/../tcl${TCL_VERSION}
9563 fi
9564 fi
9565
9566 if test -d ${TK_CONFIG_PREFIX}/tk${TK_VERSION} ; then
9567 TK_LIBRARY=${TK_CONFIG_PREFIX}/tk${TK_VERSION}
9568 else
9569 if test -d ${TK_CONFIG_PREFIX}/../tk${TK_VERSION} ; then
9570 TK_LIBRARY=${TK_CONFIG_PREFIX}/../tk${TK_VERSION}
9571 fi
9572 fi
9573
9574 if test -f ${TCL_CONFIG_PREFIX}/../include/tcl.h ; then
9575 TCL_INCLUDE=-I${TCL_CONFIG_PREFIX}/../include
9576 else
9577 if test -f /usr/include/tcl${TCL_VERSION}/tcl.h ; then
9578 TCL_INCLUDE=-I/usr/include/tcl${TCL_VERSION}
9579 fi
9580 fi
9581
9582 if test -f ${TK_CONFIG_PREFIX}/../include/tk.h ; then
9583 TK_INCLUDE=-I${TK_CONFIG_PREFIX}/../include
9584 else
9585 if test -f /usr/include/tcl${TCL_VERSION}/tk.h ; then
9586 TK_INCLUDE=-I/usr/include/tcl${TCL_VERSION}
9587 fi
9588 fi
9589
9590 TCL_VERSION_DOT_FREE=`echo ${TCL_VERSION} | tr -d .`
9591 if test -f ${TK_CONFIG_PREFIX}/../bin/tcl${TCL_VERSION_DOT_FREE}.dll ; then
9592 TCL_LIBS="-L${TK_CONFIG_PREFIX}/../bin -ltk${TCL_VERSION_DOT_FREE} -ltcl${TCL_VERSION_DOT_FREE}"
9593 TCL_STUB_LIBS="-L${TK_CONFIG_PREFIX}/lib -ltkstub${TCL_VERSION_DOT_FREE} -ltclstub${TCL_VERSION_DOT_FREE}"
9594 else
9595 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for main in -llieee" >&5
9596 printf %s "checking for main in -llieee... " >&6; }
9597 if test ${ac_cv_lib_lieee_main+y}
9598 then :
9599 printf %s "(cached) " >&6
9600 else $as_nop
9601 ac_check_lib_save_LIBS=$LIBS
9602 LIBS="-llieee $LIBS"
9603 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9604 /* end confdefs.h. */
9605
9606
9607 int
9608 main (void)
9609 {
9610 return main ();
9611 ;
9612 return 0;
9613 }
9614 _ACEOF
9615 if ac_fn_c_try_link "$LINENO"
9616 then :
9617 ac_cv_lib_lieee_main=yes
9618 else $as_nop
9619 ac_cv_lib_lieee_main=no
9620 fi
9621 rm -f core conftest.err conftest.$ac_objext conftest.beam \
9622 conftest$ac_exeext conftest.$ac_ext
9623 LIBS=$ac_check_lib_save_LIBS
9624 fi
9625 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lieee_main" >&5
9626 printf "%s\n" "$ac_cv_lib_lieee_main" >&6; }
9627 if test "x$ac_cv_lib_lieee_main" = xyes
9628 then :
9629 have_ieee=1
9630 else $as_nop
9631 have_ieee=0
9632 fi
9633
9634 if test "$have_ieee" = "0" ; then
9635 TCL_LIBS=`echo ${TCL_LIBS} | sed -e "s:-lieee::g" `
9636 fi
9637 TCL_STUB_LIBS=""
9638 fi
9639
9640 fi
9641
9642
9643
9644
9645
9646
9647
9648
9649
9650
9651
9652
9653
9654
9655
9656
9657
9658
9659
9660
9661
9662 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for tcl/tk" >&5
9663 printf %s "checking for tcl/tk... " >&6; }
9664 if test -d "${TK_CONFIG_PREFIX}" ; then
9665 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: using TK_VERSION=${TK_VERSION} of ${TK_CONFIG_PREFIX}" >&5
9666 printf "%s\n" "using TK_VERSION=${TK_VERSION} of ${TK_CONFIG_PREFIX}" >&6; }
9667 else
9668 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: not found" >&5
9669 printf "%s\n" "not found" >&6; }
9670 fi
9671
9672 # Check whether --enable-notify was given.
9673 if test ${enable_notify+y}
9674 then :
9675 enableval=$enable_notify; NOTIFY=$enable_notify
9676
9677 fi
9678
9679
9680
9681 # for sgbc the mprotect capabilities.
9682
9683 # the time handling for unixtime, add timezone
9684 for ac_header in sys/mman.h
9685 do :
9686 ac_fn_c_check_header_compile "$LINENO" "sys/mman.h" "ac_cv_header_sys_mman_h" "$ac_includes_default"
9687 if test "x$ac_cv_header_sys_mman_h" = xyes
9688 then :
9689 printf "%s\n" "#define HAVE_SYS_MMAN_H 1" >>confdefs.h
9690 ac_fn_c_check_func "$LINENO" "mprotect" "ac_cv_func_mprotect"
9691 if test "x$ac_cv_func_mprotect" = xyes
9692 then :
9693 printf "%s\n" "#define HAVE_MPROTECT 1" >>confdefs.h
9694
9695 fi
9696
9697 fi
9698
9699 done
9700 ac_fn_c_check_header_compile "$LINENO" "alloca.h" "ac_cv_header_alloca_h" "$ac_includes_default"
9701 if test "x$ac_cv_header_alloca_h" = xyes
9702 then :
9703 printf "%s\n" "#define HAVE_ALLOCA_H 1" >>confdefs.h
9704
9705 fi
9706
9707 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
9708 if test "x$ac_cv_type_size_t" = xyes
9709 then :
9710
9711 else $as_nop
9712
9713 printf "%s\n" "#define size_t unsigned int" >>confdefs.h
9714
9715 fi
9716
9717 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
9718 # for constant arguments. Useless!
9719 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
9720 printf %s "checking for working alloca.h... " >&6; }
9721 if test ${ac_cv_working_alloca_h+y}
9722 then :
9723 printf %s "(cached) " >&6
9724 else $as_nop
9725 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9726 /* end confdefs.h. */
9727 #include <alloca.h>
9728 int
9729 main (void)
9730 {
9731 char *p = (char *) alloca (2 * sizeof (int));
9732 if (p) return 0;
9733 ;
9734 return 0;
9735 }
9736 _ACEOF
9737 if ac_fn_c_try_link "$LINENO"
9738 then :
9739 ac_cv_working_alloca_h=yes
9740 else $as_nop
9741 ac_cv_working_alloca_h=no
9742 fi
9743 rm -f core conftest.err conftest.$ac_objext conftest.beam \
9744 conftest$ac_exeext conftest.$ac_ext
9745 fi
9746 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
9747 printf "%s\n" "$ac_cv_working_alloca_h" >&6; }
9748 if test $ac_cv_working_alloca_h = yes; then
9749
9750 printf "%s\n" "#define HAVE_ALLOCA_H 1" >>confdefs.h
9751
9752 fi
9753
9754 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
9755 printf %s "checking for alloca... " >&6; }
9756 if test ${ac_cv_func_alloca_works+y}
9757 then :
9758 printf %s "(cached) " >&6
9759 else $as_nop
9760 if test $ac_cv_working_alloca_h = yes; then
9761 ac_cv_func_alloca_works=yes
9762 else
9763 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9764 /* end confdefs.h. */
9765 #include <stdlib.h>
9766 #include <stddef.h>
9767 #ifndef alloca
9768 # ifdef __GNUC__
9769 # define alloca __builtin_alloca
9770 # elif defined _MSC_VER
9771 # include <malloc.h>
9772 # define alloca _alloca
9773 # else
9774 # ifdef __cplusplus
9775 extern "C"
9776 # endif
9777 void *alloca (size_t);
9778 # endif
9779 #endif
9780
9781 int
9782 main (void)
9783 {
9784 char *p = (char *) alloca (1);
9785 if (p) return 0;
9786 ;
9787 return 0;
9788 }
9789 _ACEOF
9790 if ac_fn_c_try_link "$LINENO"
9791 then :
9792 ac_cv_func_alloca_works=yes
9793 else $as_nop
9794 ac_cv_func_alloca_works=no
9795 fi
9796 rm -f core conftest.err conftest.$ac_objext conftest.beam \
9797 conftest$ac_exeext conftest.$ac_ext
9798 fi
9799 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
9800 printf "%s\n" "$ac_cv_func_alloca_works" >&6; }
9801 fi
9802
9803 if test $ac_cv_func_alloca_works = yes; then
9804
9805 printf "%s\n" "#define HAVE_ALLOCA 1" >>confdefs.h
9806
9807 else
9808 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
9809 # that cause trouble. Some versions do not even contain alloca or
9810 # contain a buggy version. If you still want to use their alloca,
9811 # use ar to extract alloca.o from them instead of compiling alloca.c.
9812
9813 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
9814
9815 printf "%s\n" "#define C_ALLOCA 1" >>confdefs.h
9816
9817
9818 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
9819 printf %s "checking stack direction for C alloca... " >&6; }
9820 if test ${ac_cv_c_stack_direction+y}
9821 then :
9822 printf %s "(cached) " >&6
9823 else $as_nop
9824 if test "$cross_compiling" = yes
9825 then :
9826 ac_cv_c_stack_direction=0
9827 else $as_nop
9828 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9829 /* end confdefs.h. */
9830 $ac_includes_default
9831 int
9832 find_stack_direction (int *addr, int depth)
9833 {
9834 int dir, dummy = 0;
9835 if (! addr)
9836 addr = &dummy;
9837 *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1;
9838 dir = depth ? find_stack_direction (addr, depth - 1) : 0;
9839 return dir + dummy;
9840 }
9841
9842 int
9843 main (int argc, char **argv)
9844 {
9845 return find_stack_direction (0, argc + !argv + 20) < 0;
9846 }
9847 _ACEOF
9848 if ac_fn_c_try_run "$LINENO"
9849 then :
9850 ac_cv_c_stack_direction=1
9851 else $as_nop
9852 ac_cv_c_stack_direction=-1
9853 fi
9854 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9855 conftest.$ac_objext conftest.beam conftest.$ac_ext
9856 fi
9857
9858 fi
9859 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
9860 printf "%s\n" "$ac_cv_c_stack_direction" >&6; }
9861 printf "%s\n" "#define STACK_DIRECTION $ac_cv_c_stack_direction" >>confdefs.h
9862
9863
9864 fi
9865
9866
9867
9868 LDFLAGS="`echo $GPL_FLAG $LDFLAGS | sed 's,gcl.script,../unixport/gcl.script,g'`"
9869
9870 LIBS="$X_PRE_LIBS $X_LIBS $X_EXTRA_LIBS $LIBS $TLIBS"
9871
9872 CFLAGS="$CFLAGS $GP_FLAG"
9873 FINAL_CFLAGS="$CFLAGS $CPPFLAGS $X_CFLAGS"
9874
9875 # Work around bug with gcc on ppc -- CM
9876 NIFLAGS="$CFLAGS $CPPFLAGS $TONIFLAGS -I\$(GCLDIR)/o"
9877
9878 CFLAGS="$CFLAGS $CPPFLAGS $TO3FLAGS -I\$(GCLDIR)/o"
9879
9880 O3FLAGS=$TO3FLAGS
9881
9882 O2FLAGS=$TO2FLAGS
9883
9884
9885
9886
9887
9888 if test -f h/$use.defs ; then
9889
9890
9891 ac_config_files="$ac_config_files makedefc windows/gcl.iss windows/sysdir.bat windows/install.lsp"
9892
9893 cat >confcache <<\_ACEOF
9894 # This file is a shell script that caches the results of configure
9895 # tests run on this system so they can be shared between configure
9896 # scripts and configure runs, see configure's option --config-cache.
9897 # It is not useful on other systems. If it contains results you don't
9898 # want to keep, you may remove or edit it.
9899 #
9900 # config.status only pays attention to the cache file if you give it
9901 # the --recheck option to rerun configure.
9902 #
9903 # `ac_cv_env_foo' variables (set or unset) will be overridden when
9904 # loading this file, other *unset* `ac_cv_foo' will be assigned the
9905 # following values.
9906
9907 _ACEOF
9908
9909 # The following way of writing the cache mishandles newlines in values,
9910 # but we know of no workaround that is simple, portable, and efficient.
9911 # So, we kill variables containing newlines.
9912 # Ultrix sh set writes to stderr and can't be redirected directly,
9913 # and sets the high bit in the cache file unless we assign to the vars.
9914 (
9915 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
9916 eval ac_val=\$$ac_var
9917 case $ac_val in #(
9918 *${as_nl}*)
9919 case $ac_var in #(
9920 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
9921 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
9922 esac
9923 case $ac_var in #(
9924 _ | IFS | as_nl) ;; #(
9925 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
9926 *) { eval $ac_var=; unset $ac_var;} ;;
9927 esac ;;
9928 esac
9929 done
9930
9931 (set) 2>&1 |
9932 case $as_nl`(ac_space=' '; set) 2>&1` in #(
9933 *${as_nl}ac_space=\ *)
9934 # `set' does not quote correctly, so add quotes: double-quote
9935 # substitution turns \\\\ into \\, and sed turns \\ into \.
9936 sed -n \
9937 "s/'/'\\\\''/g;
9938 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
9939 ;; #(
9940 *)
9941 # `set' quotes correctly as required by POSIX, so do not add quotes.
9942 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
9943 ;;
9944 esac |
9945 sort
9946 ) |
9947 sed '
9948 /^ac_cv_env_/b end
9949 t clear
9950 :clear
9951 s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/
9952 t end
9953 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
9954 :end' >>confcache
9955 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
9956 if test -w "$cache_file"; then
9957 if test "x$cache_file" != "x/dev/null"; then
9958 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
9959 printf "%s\n" "$as_me: updating cache $cache_file" >&6;}
9960 if test ! -f "$cache_file" || test -h "$cache_file"; then
9961 cat confcache >"$cache_file"
9962 else
9963 case $cache_file in #(
9964 */* | ?:*)
9965 mv -f confcache "$cache_file"$$ &&
9966 mv -f "$cache_file"$$ "$cache_file" ;; #(
9967 *)
9968 mv -f confcache "$cache_file" ;;
9969 esac
9970 fi
9971 fi
9972 else
9973 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
9974 printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;}
9975 fi
9976 fi
9977 rm -f confcache
9978
9979 test "x$prefix" = xNONE && prefix=$ac_default_prefix
9980 # Let make expand exec_prefix.
9981 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
9982
9983 DEFS=-DHAVE_CONFIG_H
9984
9985 ac_libobjs=
9986 ac_ltlibobjs=
9987 U=
9988 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
9989 # 1. Remove the extension, and $U if already installed.
9990 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
9991 ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"`
9992 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
9993 # will be set to the directory where LIBOBJS objects are built.
9994 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
9995 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
9996 done
9997 LIBOBJS=$ac_libobjs
9998
9999 LTLIBOBJS=$ac_ltlibobjs
10000
10001
10002
10003 : "${CONFIG_STATUS=./config.status}"
10004 ac_write_fail=0
10005 ac_clean_files_save=$ac_clean_files
10006 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
10007 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
10008 printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;}
10009 as_write_fail=0
10010 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
10011 #! $SHELL
10012 # Generated by $as_me.
10013 # Run this file to recreate the current configuration.
10014 # Compiler output produced by configure, useful for debugging
10015 # configure, is in config.log if it exists.
10016
10017 debug=false
10018 ac_cs_recheck=false
10019 ac_cs_silent=false
10020
10021 SHELL=\${CONFIG_SHELL-$SHELL}
10022 export SHELL
10023 _ASEOF
10024 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
10025 ## -------------------- ##
10026 ## M4sh Initialization. ##
10027 ## -------------------- ##
10028
10029 # Be more Bourne compatible
10030 DUALCASE=1; export DUALCASE # for MKS sh
10031 as_nop=:
10032 if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
10033 then :
10034 emulate sh
10035 NULLCMD=:
10036 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
10037 # is contrary to our usage. Disable this feature.
10038 alias -g '${1+"$@"}'='"$@"'
10039 setopt NO_GLOB_SUBST
10040 else $as_nop
10041 case `(set -o) 2>/dev/null` in #(
10042 *posix*) :
10043 set -o posix ;; #(
10044 *) :
10045 ;;
10046 esac
10047 fi
10048
10049
10050
10051 # Reset variables that may have inherited troublesome values from
10052 # the environment.
10053
10054 # IFS needs to be set, to space, tab, and newline, in precisely that order.
10055 # (If _AS_PATH_WALK were called with IFS unset, it would have the
10056 # side effect of setting IFS to empty, thus disabling word splitting.)
10057 # Quoting is to prevent editors from complaining about space-tab.
10058 as_nl='
10059 '
10060 export as_nl
10061 IFS=" "" $as_nl"
10062
10063 PS1='$ '
10064 PS2='> '
10065 PS4='+ '
10066
10067 # Ensure predictable behavior from utilities with locale-dependent output.
10068 LC_ALL=C
10069 export LC_ALL
10070 LANGUAGE=C
10071 export LANGUAGE
10072
10073 # We cannot yet rely on "unset" to work, but we need these variables
10074 # to be unset--not just set to an empty or harmless value--now, to
10075 # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct
10076 # also avoids known problems related to "unset" and subshell syntax
10077 # in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
10078 for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
10079 do eval test \${$as_var+y} \
10080 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
10081 done
10082
10083 # Ensure that fds 0, 1, and 2 are open.
10084 if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
10085 if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
10086 if (exec 3>&2) ; then :; else exec 2>/dev/null; fi
10087
10088 # The user is always right.
10089 if ${PATH_SEPARATOR+false} :; then
10090 PATH_SEPARATOR=:
10091 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
10092 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
10093 PATH_SEPARATOR=';'
10094 }
10095 fi
10096
10097
10098 # Find who we are. Look in the path if we contain no directory separator.
10099 as_myself=
10100 case $0 in #((
10101 *[\\/]* ) as_myself=$0 ;;
10102 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10103 for as_dir in $PATH
10104 do
10105 IFS=$as_save_IFS
10106 case $as_dir in #(((
10107 '') as_dir=./ ;;
10108 */) ;;
10109 *) as_dir=$as_dir/ ;;
10110 esac
10111 test -r "$as_dir$0" && as_myself=$as_dir$0 && break
10112 done
10113 IFS=$as_save_IFS
10114
10115 ;;
10116 esac
10117 # We did not find ourselves, most probably we were run as `sh COMMAND'
10118 # in which case we are not to be found in the path.
10119 if test "x$as_myself" = x; then
10120 as_myself=$0
10121 fi
10122 if test ! -f "$as_myself"; then
10123 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
10124 exit 1
10125 fi
10126
10127
10128
10129 # as_fn_error STATUS ERROR [LINENO LOG_FD]
10130 # ----------------------------------------
10131 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
10132 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
10133 # script with STATUS, using 1 if that was 0.
10134 as_fn_error ()
10135 {
10136 as_status=$1; test $as_status -eq 0 && as_status=1
10137 if test "$4"; then
10138 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
10139 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
10140 fi
10141 printf "%s\n" "$as_me: error: $2" >&2
10142 as_fn_exit $as_status
10143 } # as_fn_error
10144
10145
10146
10147 # as_fn_set_status STATUS
10148 # -----------------------
10149 # Set $? to STATUS, without forking.
10150 as_fn_set_status ()
10151 {
10152 return $1
10153 } # as_fn_set_status
10154
10155 # as_fn_exit STATUS
10156 # -----------------
10157 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
10158 as_fn_exit ()
10159 {
10160 set +e
10161 as_fn_set_status $1
10162 exit $1
10163 } # as_fn_exit
10164
10165 # as_fn_unset VAR
10166 # ---------------
10167 # Portably unset VAR.
10168 as_fn_unset ()
10169 {
10170 { eval $1=; unset $1;}
10171 }
10172 as_unset=as_fn_unset
10173
10174 # as_fn_append VAR VALUE
10175 # ----------------------
10176 # Append the text in VALUE to the end of the definition contained in VAR. Take
10177 # advantage of any shell optimizations that allow amortized linear growth over
10178 # repeated appends, instead of the typical quadratic growth present in naive
10179 # implementations.
10180 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
10181 then :
10182 eval 'as_fn_append ()
10183 {
10184 eval $1+=\$2
10185 }'
10186 else $as_nop
10187 as_fn_append ()
10188 {
10189 eval $1=\$$1\$2
10190 }
10191 fi # as_fn_append
10192
10193 # as_fn_arith ARG...
10194 # ------------------
10195 # Perform arithmetic evaluation on the ARGs, and store the result in the
10196 # global $as_val. Take advantage of shells that can avoid forks. The arguments
10197 # must be portable across $(()) and expr.
10198 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
10199 then :
10200 eval 'as_fn_arith ()
10201 {
10202 as_val=$(( $* ))
10203 }'
10204 else $as_nop
10205 as_fn_arith ()
10206 {
10207 as_val=`expr "$@" || test $? -eq 1`
10208 }
10209 fi # as_fn_arith
10210
10211
10212 if expr a : '\(a\)' >/dev/null 2>&1 &&
10213 test "X`expr 00001 : '.*\(...\)'`" = X001; then
10214 as_expr=expr
10215 else
10216 as_expr=false
10217 fi
10218
10219 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
10220 as_basename=basename
10221 else
10222 as_basename=false
10223 fi
10224
10225 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
10226 as_dirname=dirname
10227 else
10228 as_dirname=false
10229 fi
10230
10231 as_me=`$as_basename -- "$0" ||
10232 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
10233 X"$0" : 'X\(//\)$' \| \
10234 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
10235 printf "%s\n" X/"$0" |
10236 sed '/^.*\/\([^/][^/]*\)\/*$/{
10237 s//\1/
10238 q
10239 }
10240 /^X\/\(\/\/\)$/{
10241 s//\1/
10242 q
10243 }
10244 /^X\/\(\/\).*/{
10245 s//\1/
10246 q
10247 }
10248 s/.*/./; q'`
10249
10250 # Avoid depending upon Character Ranges.
10251 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
10252 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
10253 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
10254 as_cr_digits='0123456789'
10255 as_cr_alnum=$as_cr_Letters$as_cr_digits
10256
10257
10258 # Determine whether it's possible to make 'echo' print without a newline.
10259 # These variables are no longer used directly by Autoconf, but are AC_SUBSTed
10260 # for compatibility with existing Makefiles.
10261 ECHO_C= ECHO_N= ECHO_T=
10262 case `echo -n x` in #(((((
10263 -n*)
10264 case `echo 'xy\c'` in
10265 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
10266 xy) ECHO_C='\c';;
10267 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
10268 ECHO_T=' ';;
10269 esac;;
10270 *)
10271 ECHO_N='-n';;
10272 esac
10273
10274 # For backward compatibility with old third-party macros, we provide
10275 # the shell variables $as_echo and $as_echo_n. New code should use
10276 # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
10277 as_echo='printf %s\n'
10278 as_echo_n='printf %s'
10279
10280 rm -f conf$$ conf$$.exe conf$$.file
10281 if test -d conf$$.dir; then
10282 rm -f conf$$.dir/conf$$.file
10283 else
10284 rm -f conf$$.dir
10285 mkdir conf$$.dir 2>/dev/null
10286 fi
10287 if (echo >conf$$.file) 2>/dev/null; then
10288 if ln -s conf$$.file conf$$ 2>/dev/null; then
10289 as_ln_s='ln -s'
10290 # ... but there are two gotchas:
10291 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
10292 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
10293 # In both cases, we have to default to `cp -pR'.
10294 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
10295 as_ln_s='cp -pR'
10296 elif ln conf$$.file conf$$ 2>/dev/null; then
10297 as_ln_s=ln
10298 else
10299 as_ln_s='cp -pR'
10300 fi
10301 else
10302 as_ln_s='cp -pR'
10303 fi
10304 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
10305 rmdir conf$$.dir 2>/dev/null
10306
10307
10308 # as_fn_mkdir_p
10309 # -------------
10310 # Create "$as_dir" as a directory, including parents if necessary.
10311 as_fn_mkdir_p ()
10312 {
10313
10314 case $as_dir in #(
10315 -*) as_dir=./$as_dir;;
10316 esac
10317 test -d "$as_dir" || eval $as_mkdir_p || {
10318 as_dirs=
10319 while :; do
10320 case $as_dir in #(
10321 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
10322 *) as_qdir=$as_dir;;
10323 esac
10324 as_dirs="'$as_qdir' $as_dirs"
10325 as_dir=`$as_dirname -- "$as_dir" ||
10326 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10327 X"$as_dir" : 'X\(//\)[^/]' \| \
10328 X"$as_dir" : 'X\(//\)$' \| \
10329 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
10330 printf "%s\n" X"$as_dir" |
10331 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
10332 s//\1/
10333 q
10334 }
10335 /^X\(\/\/\)[^/].*/{
10336 s//\1/
10337 q
10338 }
10339 /^X\(\/\/\)$/{
10340 s//\1/
10341 q
10342 }
10343 /^X\(\/\).*/{
10344 s//\1/
10345 q
10346 }
10347 s/.*/./; q'`
10348 test -d "$as_dir" && break
10349 done
10350 test -z "$as_dirs" || eval "mkdir $as_dirs"
10351 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
10352
10353
10354 } # as_fn_mkdir_p
10355 if mkdir -p . 2>/dev/null; then
10356 as_mkdir_p='mkdir -p "$as_dir"'
10357 else
10358 test -d ./-p && rmdir ./-p
10359 as_mkdir_p=false
10360 fi
10361
10362
10363 # as_fn_executable_p FILE
10364 # -----------------------
10365 # Test if FILE is an executable regular file.
10366 as_fn_executable_p ()
10367 {
10368 test -f "$1" && test -x "$1"
10369 } # as_fn_executable_p
10370 as_test_x='test -x'
10371 as_executable_p=as_fn_executable_p
10372
10373 # Sed expression to map a string onto a valid CPP name.
10374 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
10375
10376 # Sed expression to map a string onto a valid variable name.
10377 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
10378
10379
10380 exec 6>&1
10381 ## ----------------------------------- ##
10382 ## Main body of $CONFIG_STATUS script. ##
10383 ## ----------------------------------- ##
10384 _ASEOF
10385 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
10386
10387 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10388 # Save the log message, to keep $0 and so on meaningful, and to
10389 # report actual input values of CONFIG_FILES etc. instead of their
10390 # values after options handling.
10391 ac_log="
10392 This file was extended by $as_me, which was
10393 generated by GNU Autoconf 2.71. Invocation command line was
10394
10395 CONFIG_FILES = $CONFIG_FILES
10396 CONFIG_HEADERS = $CONFIG_HEADERS
10397 CONFIG_LINKS = $CONFIG_LINKS
10398 CONFIG_COMMANDS = $CONFIG_COMMANDS
10399 $ $0 $@
10400
10401 on `(hostname || uname -n) 2>/dev/null | sed 1q`
10402 "
10403
10404 _ACEOF
10405
10406 case $ac_config_files in *"
10407 "*) set x $ac_config_files; shift; ac_config_files=$*;;
10408 esac
10409
10410 case $ac_config_headers in *"
10411 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
10412 esac
10413
10414
10415 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10416 # Files that config.status was made for.
10417 config_files="$ac_config_files"
10418 config_headers="$ac_config_headers"
10419
10420 _ACEOF
10421
10422 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10423 ac_cs_usage="\
10424 \`$as_me' instantiates files and other configuration actions
10425 from templates according to the current configuration. Unless the files
10426 and actions are specified as TAGs, all are instantiated by default.
10427
10428 Usage: $0 [OPTION]... [TAG]...
10429
10430 -h, --help print this help, then exit
10431 -V, --version print version number and configuration settings, then exit
10432 --config print configuration, then exit
10433 -q, --quiet, --silent
10434 do not print progress messages
10435 -d, --debug don't remove temporary files
10436 --recheck update $as_me by reconfiguring in the same conditions
10437 --file=FILE[:TEMPLATE]
10438 instantiate the configuration file FILE
10439 --header=FILE[:TEMPLATE]
10440 instantiate the configuration header FILE
10441
10442 Configuration files:
10443 $config_files
10444
10445 Configuration headers:
10446 $config_headers
10447
10448 Report bugs to the package provider."
10449
10450 _ACEOF
10451 ac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"`
10452 ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"`
10453 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10454 ac_cs_config='$ac_cs_config_escaped'
10455 ac_cs_version="\\
10456 config.status
10457 configured by $0, generated by GNU Autoconf 2.71,
10458 with options \\"\$ac_cs_config\\"
10459
10460 Copyright (C) 2021 Free Software Foundation, Inc.
10461 This config.status script is free software; the Free Software Foundation
10462 gives unlimited permission to copy, distribute and modify it."
10463
10464 ac_pwd='$ac_pwd'
10465 srcdir='$srcdir'
10466 test -n "\$AWK" || AWK=awk
10467 _ACEOF
10468
10469 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10470 # The default lists apply if the user does not specify any file.
10471 ac_need_defaults=:
10472 while test $# != 0
10473 do
10474 case $1 in
10475 --*=?*)
10476 ac_option=`expr "X$1" : 'X\([^=]*\)='`
10477 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
10478 ac_shift=:
10479 ;;
10480 --*=)
10481 ac_option=`expr "X$1" : 'X\([^=]*\)='`
10482 ac_optarg=
10483 ac_shift=:
10484 ;;
10485 *)
10486 ac_option=$1
10487 ac_optarg=$2
10488 ac_shift=shift
10489 ;;
10490 esac
10491
10492 case $ac_option in
10493 # Handling of the options.
10494 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
10495 ac_cs_recheck=: ;;
10496 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
10497 printf "%s\n" "$ac_cs_version"; exit ;;
10498 --config | --confi | --conf | --con | --co | --c )
10499 printf "%s\n" "$ac_cs_config"; exit ;;
10500 --debug | --debu | --deb | --de | --d | -d )
10501 debug=: ;;
10502 --file | --fil | --fi | --f )
10503 $ac_shift
10504 case $ac_optarg in
10505 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
10506 '') as_fn_error $? "missing file argument" ;;
10507 esac
10508 as_fn_append CONFIG_FILES " '$ac_optarg'"
10509 ac_need_defaults=false;;
10510 --header | --heade | --head | --hea )
10511 $ac_shift
10512 case $ac_optarg in
10513 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
10514 esac
10515 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
10516 ac_need_defaults=false;;
10517 --he | --h)
10518 # Conflict between --help and --header
10519 as_fn_error $? "ambiguous option: \`$1'
10520 Try \`$0 --help' for more information.";;
10521 --help | --hel | -h )
10522 printf "%s\n" "$ac_cs_usage"; exit ;;
10523 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
10524 | -silent | --silent | --silen | --sile | --sil | --si | --s)
10525 ac_cs_silent=: ;;
10526
10527 # This is an error.
10528 -*) as_fn_error $? "unrecognized option: \`$1'
10529 Try \`$0 --help' for more information." ;;
10530
10531 *) as_fn_append ac_config_targets " $1"
10532 ac_need_defaults=false ;;
10533
10534 esac
10535 shift
10536 done
10537
10538 ac_configure_extra_args=
10539
10540 if $ac_cs_silent; then
10541 exec 6>/dev/null
10542 ac_configure_extra_args="$ac_configure_extra_args --silent"
10543 fi
10544
10545 _ACEOF
10546 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10547 if \$ac_cs_recheck; then
10548 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
10549 shift
10550 \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6
10551 CONFIG_SHELL='$SHELL'
10552 export CONFIG_SHELL
10553 exec "\$@"
10554 fi
10555
10556 _ACEOF
10557 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10558 exec 5>>config.log
10559 {
10560 echo
10561 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
10562 ## Running $as_me. ##
10563 _ASBOX
10564 printf "%s\n" "$ac_log"
10565 } >&5
10566
10567 _ACEOF
10568 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10569 _ACEOF
10570
10571 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10572
10573 # Handling of arguments.
10574 for ac_config_target in $ac_config_targets
10575 do
10576 case $ac_config_target in
10577 "h/gclincl.h") CONFIG_HEADERS="$CONFIG_HEADERS h/gclincl.h" ;;
10578 "makedefc") CONFIG_FILES="$CONFIG_FILES makedefc" ;;
10579 "windows/gcl.iss") CONFIG_FILES="$CONFIG_FILES windows/gcl.iss" ;;
10580 "windows/sysdir.bat") CONFIG_FILES="$CONFIG_FILES windows/sysdir.bat" ;;
10581 "windows/install.lsp") CONFIG_FILES="$CONFIG_FILES windows/install.lsp" ;;
10582
10583 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
10584 esac
10585 done
10586
10587
10588 # If the user did not use the arguments to specify the items to instantiate,
10589 # then the envvar interface is used. Set only those that are not.
10590 # We use the long form for the default assignment because of an extremely
10591 # bizarre bug on SunOS 4.1.3.
10592 if $ac_need_defaults; then
10593 test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files
10594 test ${CONFIG_HEADERS+y} || CONFIG_HEADERS=$config_headers
10595 fi
10596
10597 # Have a temporary directory for convenience. Make it in the build tree
10598 # simply because there is no reason against having it here, and in addition,
10599 # creating and moving files from /tmp can sometimes cause problems.
10600 # Hook for its removal unless debugging.
10601 # Note that there is a small window in which the directory will not be cleaned:
10602 # after its creation but before its name has been assigned to `$tmp'.
10603 $debug ||
10604 {
10605 tmp= ac_tmp=
10606 trap 'exit_status=$?
10607 : "${ac_tmp:=$tmp}"
10608 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
10609 ' 0
10610 trap 'as_fn_exit 1' 1 2 13 15
10611 }
10612 # Create a (secure) tmp directory for tmp files.
10613
10614 {
10615 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
10616 test -d "$tmp"
10617 } ||
10618 {
10619 tmp=./conf$$-$RANDOM
10620 (umask 077 && mkdir "$tmp")
10621 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
10622 ac_tmp=$tmp
10623
10624 # Set up the scripts for CONFIG_FILES section.
10625 # No need to generate them if there are no CONFIG_FILES.
10626 # This happens for instance with `./config.status config.h'.
10627 if test -n "$CONFIG_FILES"; then
10628
10629
10630 ac_cr=`echo X | tr X '\015'`
10631 # On cygwin, bash can eat \r inside `` if the user requested igncr.
10632 # But we know of no other shell where ac_cr would be empty at this
10633 # point, so we can use a bashism as a fallback.
10634 if test "x$ac_cr" = x; then
10635 eval ac_cr=\$\'\\r\'
10636 fi
10637 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
10638 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
10639 ac_cs_awk_cr='\\r'
10640 else
10641 ac_cs_awk_cr=$ac_cr
10642 fi
10643
10644 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
10645 _ACEOF
10646
10647
10648 {
10649 echo "cat >conf$$subs.awk <<_ACEOF" &&
10650 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
10651 echo "_ACEOF"
10652 } >conf$$subs.sh ||
10653 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
10654 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
10655 ac_delim='%!_!# '
10656 for ac_last_try in false false false false false :; do
10657 . ./conf$$subs.sh ||
10658 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
10659
10660 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
10661 if test $ac_delim_n = $ac_delim_num; then
10662 break
10663 elif $ac_last_try; then
10664 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
10665 else
10666 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
10667 fi
10668 done
10669 rm -f conf$$subs.sh
10670
10671 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10672 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
10673 _ACEOF
10674 sed -n '
10675 h
10676 s/^/S["/; s/!.*/"]=/
10677 p
10678 g
10679 s/^[^!]*!//
10680 :repl
10681 t repl
10682 s/'"$ac_delim"'$//
10683 t delim
10684 :nl
10685 h
10686 s/\(.\{148\}\)..*/\1/
10687 t more1
10688 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
10689 p
10690 n
10691 b repl
10692 :more1
10693 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
10694 p
10695 g
10696 s/.\{148\}//
10697 t nl
10698 :delim
10699 h
10700 s/\(.\{148\}\)..*/\1/
10701 t more2
10702 s/["\\]/\\&/g; s/^/"/; s/$/"/
10703 p
10704 b
10705 :more2
10706 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
10707 p
10708 g
10709 s/.\{148\}//
10710 t delim
10711 ' <conf$$subs.awk | sed '
10712 /^[^""]/{
10713 N
10714 s/\n//
10715 }
10716 ' >>$CONFIG_STATUS || ac_write_fail=1
10717 rm -f conf$$subs.awk
10718 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10719 _ACAWK
10720 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
10721 for (key in S) S_is_set[key] = 1
10722 FS = ""
10723
10724 }
10725 {
10726 line = $ 0
10727 nfields = split(line, field, "@")
10728 substed = 0
10729 len = length(field[1])
10730 for (i = 2; i < nfields; i++) {
10731 key = field[i]
10732 keylen = length(key)
10733 if (S_is_set[key]) {
10734 value = S[key]
10735 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
10736 len += length(value) + length(field[++i])
10737 substed = 1
10738 } else
10739 len += 1 + keylen
10740 }
10741
10742 print line
10743 }
10744
10745 _ACAWK
10746 _ACEOF
10747 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10748 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
10749 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
10750 else
10751 cat
10752 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
10753 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
10754 _ACEOF
10755
10756 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
10757 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
10758 # trailing colons and then remove the whole line if VPATH becomes empty
10759 # (actually we leave an empty line to preserve line numbers).
10760 if test "x$srcdir" = x.; then
10761 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
10762 h
10763 s///
10764 s/^/:/
10765 s/[ ]*$/:/
10766 s/:\$(srcdir):/:/g
10767 s/:\${srcdir}:/:/g
10768 s/:@srcdir@:/:/g
10769 s/^:*//
10770 s/:*$//
10771 x
10772 s/\(=[ ]*\).*/\1/
10773 G
10774 s/\n//
10775 s/^[^=]*=[ ]*$//
10776 }'
10777 fi
10778
10779 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10780 fi # test -n "$CONFIG_FILES"
10781
10782 # Set up the scripts for CONFIG_HEADERS section.
10783 # No need to generate them if there are no CONFIG_HEADERS.
10784 # This happens for instance with `./config.status Makefile'.
10785 if test -n "$CONFIG_HEADERS"; then
10786 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
10787 BEGIN {
10788 _ACEOF
10789
10790 # Transform confdefs.h into an awk script `defines.awk', embedded as
10791 # here-document in config.status, that substitutes the proper values into
10792 # config.h.in to produce config.h.
10793
10794 # Create a delimiter string that does not exist in confdefs.h, to ease
10795 # handling of long lines.
10796 ac_delim='%!_!# '
10797 for ac_last_try in false false :; do
10798 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
10799 if test -z "$ac_tt"; then
10800 break
10801 elif $ac_last_try; then
10802 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
10803 else
10804 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
10805 fi
10806 done
10807
10808 # For the awk script, D is an array of macro values keyed by name,
10809 # likewise P contains macro parameters if any. Preserve backslash
10810 # newline sequences.
10811
10812 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
10813 sed -n '
10814 s/.\{148\}/&'"$ac_delim"'/g
10815 t rset
10816 :rset
10817 s/^[ ]*#[ ]*define[ ][ ]*/ /
10818 t def
10819 d
10820 :def
10821 s/\\$//
10822 t bsnl
10823 s/["\\]/\\&/g
10824 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
10825 D["\1"]=" \3"/p
10826 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
10827 d
10828 :bsnl
10829 s/["\\]/\\&/g
10830 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
10831 D["\1"]=" \3\\\\\\n"\\/p
10832 t cont
10833 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
10834 t cont
10835 d
10836 :cont
10837 n
10838 s/.\{148\}/&'"$ac_delim"'/g
10839 t clear
10840 :clear
10841 s/\\$//
10842 t bsnlc
10843 s/["\\]/\\&/g; s/^/"/; s/$/"/p
10844 d
10845 :bsnlc
10846 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
10847 b cont
10848 ' <confdefs.h | sed '
10849 s/'"$ac_delim"'/"\\\
10850 "/g' >>$CONFIG_STATUS || ac_write_fail=1
10851
10852 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10853 for (key in D) D_is_set[key] = 1
10854 FS = ""
10855 }
10856 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
10857 line = \$ 0
10858 split(line, arg, " ")
10859 if (arg[1] == "#") {
10860 defundef = arg[2]
10861 mac1 = arg[3]
10862 } else {
10863 defundef = substr(arg[1], 2)
10864 mac1 = arg[2]
10865 }
10866 split(mac1, mac2, "(") #)
10867 macro = mac2[1]
10868 prefix = substr(line, 1, index(line, defundef) - 1)
10869 if (D_is_set[macro]) {
10870 # Preserve the white space surrounding the "#".
10871 print prefix "define", macro P[macro] D[macro]
10872 next
10873 } else {
10874 # Replace #undef with comments. This is necessary, for example,
10875 # in the case of _POSIX_SOURCE, which is predefined and required
10876 # on some systems where configure will not decide to define it.
10877 if (defundef == "undef") {
10878 print "/*", prefix defundef, macro, "*/"
10879 next
10880 }
10881 }
10882 }
10883 { print }
10884 _ACAWK
10885 _ACEOF
10886 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10887 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
10888 fi # test -n "$CONFIG_HEADERS"
10889
10890
10891 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS "
10892 shift
10893 for ac_tag
10894 do
10895 case $ac_tag in
10896 :[FHLC]) ac_mode=$ac_tag; continue;;
10897 esac
10898 case $ac_mode$ac_tag in
10899 :[FHL]*:*);;
10900 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
10901 :[FH]-) ac_tag=-:-;;
10902 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
10903 esac
10904 ac_save_IFS=$IFS
10905 IFS=:
10906 set x $ac_tag
10907 IFS=$ac_save_IFS
10908 shift
10909 ac_file=$1
10910 shift
10911
10912 case $ac_mode in
10913 :L) ac_source=$1;;
10914 :[FH])
10915 ac_file_inputs=
10916 for ac_f
10917 do
10918 case $ac_f in
10919 -) ac_f="$ac_tmp/stdin";;
10920 *) # Look for the file first in the build tree, then in the source tree
10921 # (if the path is not absolute). The absolute path cannot be DOS-style,
10922 # because $ac_f cannot contain `:'.
10923 test -f "$ac_f" ||
10924 case $ac_f in
10925 [\\/$]*) false;;
10926 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
10927 esac ||
10928 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
10929 esac
10930 case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
10931 as_fn_append ac_file_inputs " '$ac_f'"
10932 done
10933
10934 # Let's still pretend it is `configure' which instantiates (i.e., don't
10935 # use $as_me), people would be surprised to read:
10936 # /* config.h. Generated by config.status. */
10937 configure_input='Generated from '`
10938 printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
10939 `' by configure.'
10940 if test x"$ac_file" != x-; then
10941 configure_input="$ac_file. $configure_input"
10942 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
10943 printf "%s\n" "$as_me: creating $ac_file" >&6;}
10944 fi
10945 # Neutralize special characters interpreted by sed in replacement strings.
10946 case $configure_input in #(
10947 *\&* | *\|* | *\\* )
10948 ac_sed_conf_input=`printf "%s\n" "$configure_input" |
10949 sed 's/[\\\\&|]/\\\\&/g'`;; #(
10950 *) ac_sed_conf_input=$configure_input;;
10951 esac
10952
10953 case $ac_tag in
10954 *:-:* | *:-) cat >"$ac_tmp/stdin" \
10955 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
10956 esac
10957 ;;
10958 esac
10959
10960 ac_dir=`$as_dirname -- "$ac_file" ||
10961 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10962 X"$ac_file" : 'X\(//\)[^/]' \| \
10963 X"$ac_file" : 'X\(//\)$' \| \
10964 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
10965 printf "%s\n" X"$ac_file" |
10966 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
10967 s//\1/
10968 q
10969 }
10970 /^X\(\/\/\)[^/].*/{
10971 s//\1/
10972 q
10973 }
10974 /^X\(\/\/\)$/{
10975 s//\1/
10976 q
10977 }
10978 /^X\(\/\).*/{
10979 s//\1/
10980 q
10981 }
10982 s/.*/./; q'`
10983 as_dir="$ac_dir"; as_fn_mkdir_p
10984 ac_builddir=.
10985
10986 case "$ac_dir" in
10987 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
10988 *)
10989 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
10990 # A ".." for each directory in $ac_dir_suffix.
10991 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
10992 case $ac_top_builddir_sub in
10993 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
10994 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
10995 esac ;;
10996 esac
10997 ac_abs_top_builddir=$ac_pwd
10998 ac_abs_builddir=$ac_pwd$ac_dir_suffix
10999 # for backward compatibility:
11000 ac_top_builddir=$ac_top_build_prefix
11001
11002 case $srcdir in
11003 .) # We are building in place.
11004 ac_srcdir=.
11005 ac_top_srcdir=$ac_top_builddir_sub
11006 ac_abs_top_srcdir=$ac_pwd ;;
11007 [\\/]* | ?:[\\/]* ) # Absolute name.
11008 ac_srcdir=$srcdir$ac_dir_suffix;
11009 ac_top_srcdir=$srcdir
11010 ac_abs_top_srcdir=$srcdir ;;
11011 *) # Relative name.
11012 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
11013 ac_top_srcdir=$ac_top_build_prefix$srcdir
11014 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
11015 esac
11016 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
11017
11018
11019 case $ac_mode in
11020 :F)
11021 #
11022 # CONFIG_FILE
11023 #
11024
11025 _ACEOF
11026
11027 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11028 # If the template does not know about datarootdir, expand it.
11029 # FIXME: This hack should be removed a few years after 2.60.
11030 ac_datarootdir_hack=; ac_datarootdir_seen=
11031 ac_sed_dataroot='
11032 /datarootdir/ {
11033 p
11034 q
11035 }
11036 /@datadir@/p
11037 /@docdir@/p
11038 /@infodir@/p
11039 /@localedir@/p
11040 /@mandir@/p'
11041 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
11042 *datarootdir*) ac_datarootdir_seen=yes;;
11043 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
11044 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
11045 printf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
11046 _ACEOF
11047 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11048 ac_datarootdir_hack='
11049 s&@datadir@&$datadir&g
11050 s&@docdir@&$docdir&g
11051 s&@infodir@&$infodir&g
11052 s&@localedir@&$localedir&g
11053 s&@mandir@&$mandir&g
11054 s&\\\${datarootdir}&$datarootdir&g' ;;
11055 esac
11056 _ACEOF
11057
11058 # Neutralize VPATH when `$srcdir' = `.'.
11059 # Shell code in configure.ac might set extrasub.
11060 # FIXME: do we really want to maintain this feature?
11061 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11062 ac_sed_extra="$ac_vpsub
11063 $extrasub
11064 _ACEOF
11065 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11066 :t
11067 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
11068 s|@configure_input@|$ac_sed_conf_input|;t t
11069 s&@top_builddir@&$ac_top_builddir_sub&;t t
11070 s&@top_build_prefix@&$ac_top_build_prefix&;t t
11071 s&@srcdir@&$ac_srcdir&;t t
11072 s&@abs_srcdir@&$ac_abs_srcdir&;t t
11073 s&@top_srcdir@&$ac_top_srcdir&;t t
11074 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
11075 s&@builddir@&$ac_builddir&;t t
11076 s&@abs_builddir@&$ac_abs_builddir&;t t
11077 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
11078 $ac_datarootdir_hack
11079 "
11080 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
11081 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
11082
11083 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
11084 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
11085 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
11086 "$ac_tmp/out"`; test -z "$ac_out"; } &&
11087 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
11088 which seems to be undefined. Please make sure it is defined" >&5
11089 printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
11090 which seems to be undefined. Please make sure it is defined" >&2;}
11091
11092 rm -f "$ac_tmp/stdin"
11093 case $ac_file in
11094 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
11095 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
11096 esac \
11097 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
11098 ;;
11099 :H)
11100 #
11101 # CONFIG_HEADER
11102 #
11103 if test x"$ac_file" != x-; then
11104 {
11105 printf "%s\n" "/* $configure_input */" >&1 \
11106 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
11107 } >"$ac_tmp/config.h" \
11108 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
11109 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
11110 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
11111 printf "%s\n" "$as_me: $ac_file is unchanged" >&6;}
11112 else
11113 rm -f "$ac_file"
11114 mv "$ac_tmp/config.h" "$ac_file" \
11115 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
11116 fi
11117 else
11118 printf "%s\n" "/* $configure_input */" >&1 \
11119 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
11120 || as_fn_error $? "could not create -" "$LINENO" 5
11121 fi
11122 ;;
11123
11124
11125 esac
11126
11127 done # for ac_tag
11128
11129
11130 as_fn_exit 0
11131 _ACEOF
11132 ac_clean_files=$ac_clean_files_save
11133
11134 test $ac_write_fail = 0 ||
11135 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
11136
11137
11138 # configure is writing to config.log, and then calls config.status.
11139 # config.status does its own redirection, appending to config.log.
11140 # Unfortunately, on DOS this fails, as config.log is still kept open
11141 # by configure, so config.status won't be able to write to it; its
11142 # output is simply discarded. So we exec the FD to /dev/null,
11143 # effectively closing config.log, so it can be properly (re)opened and
11144 # appended to by config.status. When coming back to configure, we
11145 # need to make the FD available again.
11146 if test "$no_create" != yes; then
11147 ac_cs_success=:
11148 ac_config_status_args=
11149 test "$silent" = yes &&
11150 ac_config_status_args="$ac_config_status_args --quiet"
11151 exec 5>/dev/null
11152 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
11153 exec 5>>config.log
11154 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
11155 # would make configure fail if this is the last instruction.
11156 $ac_cs_success || as_fn_exit 1
11157 fi
11158 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
11159 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
11160 printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
11161 fi
11162
11163 echo makedefc
11164 cat makedefc
11165
11166 echo add-defs1 $use
11167 CC=$CC ./add-defs1 $use
11168
11169 else
11170 echo "Unable to guess machine type"
11171 echo use configure --enable-machine=XXX, for XXX such that h/XXX.defs exists, ie in h/*.defs
11172 fi
11173