Debian Codegraph @

configure

raw symbols ◀ ▶
Source reconstructed at patch state 1 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 powerpc*linux*) use=powerpc-linux;;
3046 powerpc-*-darwin*) use=powerpc-macosx;;
3047 *86*darwin*) use=386-macosx;;
3048 i*mingw*|i*msys*) use=mingw;;
3049 *cygwin*)
3050 if $CC -v 2>&1 | fgrep ming > /dev/null ;
3051 then use=mingw
3052 else use=gnuwin95
3053 fi;;
3054 *openbsd*) use=FreeBSD;;
3055 sparc-sun-solaris*) use=solaris;;
3056 i?86-pc-solaris*) use=solaris-i386;;
3057 esac
3058
3059 # Check whether --enable-machine was given.
3060 if test ${enable_machine+y}
3061 then :
3062 enableval=$enable_machine; echo enable_machine=$enableval ; use=$enableval
3063 fi
3064
3065
3066 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: use=$use" >&5
3067 printf "%s\n" "use=$use" >&6; }
3068
3069 def_dlopen="no"
3070 def_statsysbfd="no"
3071 def_custreloc="yes"
3072 def_oldgmp="no"
3073 def_pic="no";
3074 def_static="no";
3075 def_debug="no";
3076 case $use in
3077 *kfreebsd)
3078 ln -snf linux.defs h/$use.defs;;
3079 *gnu)
3080 ln -snf linux.defs h/$use.defs;;
3081 *linux)
3082 ln -snf linux.defs h/$use.defs;
3083 case $use in
3084 ia64*)
3085 def_dlopen="yes" ; def_custreloc="no" ;;
3086 hppa*)
3087 def_pic="yes" ;;
3088 esac;;
3089 esac
3090
3091 # Check whether --enable-widecons was given.
3092 if test ${enable_widecons+y}
3093 then :
3094 enableval=$enable_widecons; if test "$enableval" = "yes" ; then
3095 printf "%s\n" "#define WIDE_CONS 1" >>confdefs.h
3096 fi
3097 fi
3098
3099
3100 # Check whether --enable-safecdr was given.
3101 if test ${enable_safecdr+y}
3102 then :
3103 enableval=$enable_safecdr; if test "$enableval" = "yes" ; then
3104
3105 printf "%s\n" "#define USE_SAFE_CDR 1" >>confdefs.h
3106
3107 # Check whether --enable-safecdrdbg was given.
3108 if test ${enable_safecdrdbg+y}
3109 then :
3110 enableval=$enable_safecdrdbg; if test "$enableval" = "yes" ; then
3111 printf "%s\n" "#define DEBUG_SAFE_CDR 1" >>confdefs.h
3112 fi
3113 fi
3114
3115 fi
3116 fi
3117
3118
3119 # Check whether --enable-prelink was given.
3120 if test ${enable_prelink+y}
3121 then :
3122 enableval=$enable_prelink; if test "$enable_prelink" = "yes" ; then PRELINK_CHECK=t; fi
3123 fi
3124
3125
3126
3127 # Check whether --enable-vssize was given.
3128 if test ${enable_vssize+y}
3129 then :
3130 enableval=$enable_vssize;
3131 printf "%s\n" "#define VSSIZE $enableval" >>confdefs.h
3132
3133 fi
3134
3135 # Check whether --enable-bdssize was given.
3136 if test ${enable_bdssize+y}
3137 then :
3138 enableval=$enable_bdssize;
3139 printf "%s\n" "#define BDSSIZE $enableval" >>confdefs.h
3140
3141 fi
3142
3143 # Check whether --enable-ihssize was given.
3144 if test ${enable_ihssize+y}
3145 then :
3146 enableval=$enable_ihssize;
3147 printf "%s\n" "#define IHSSIZE $enableval" >>confdefs.h
3148
3149 fi
3150
3151 # Check whether --enable-frssize was given.
3152 if test ${enable_frssize+y}
3153 then :
3154 enableval=$enable_frssize;
3155 printf "%s\n" "#define FRSSIZE $enableval" >>confdefs.h
3156
3157 fi
3158
3159
3160 # Check whether --enable-infodir was given.
3161 if test ${enable_infodir+y}
3162 then :
3163 enableval=$enable_infodir; INFO_DIR=$enableval
3164 else $as_nop
3165 INFO_DIR=$prefix/share/info
3166 fi
3167
3168 INFO_DIR=`eval echo $INFO_DIR/`
3169
3170 # Check whether --enable-emacsdir was given.
3171 if test ${enable_emacsdir+y}
3172 then :
3173 enableval=$enable_emacsdir; EMACS_SITE_LISP=$enableval
3174 else $as_nop
3175 EMACS_SITE_LISP=$prefix/share/emacs/site-lisp
3176 fi
3177
3178 EMACS_SITE_LISP=`eval echo $EMACS_SITE_LISP/`
3179
3180 # Check whether --enable-xgcl was given.
3181 if test ${enable_xgcl+y}
3182 then :
3183 enableval=$enable_xgcl;
3184 else $as_nop
3185 enable_xgcl=yes
3186 fi
3187
3188
3189 # Check whether --enable-dlopen was given.
3190 if test ${enable_dlopen+y}
3191 then :
3192 enableval=$enable_dlopen;
3193 else $as_nop
3194 enable_dlopen=$def_dlopen
3195 fi
3196
3197 # Check whether --enable-statsysbfd was given.
3198 if test ${enable_statsysbfd+y}
3199 then :
3200 enableval=$enable_statsysbfd;
3201 else $as_nop
3202 enable_statsysbfd=$def_statsysbfd
3203 fi
3204
3205 # Check whether --enable-dynsysbfd was given.
3206 if test ${enable_dynsysbfd+y}
3207 then :
3208 enableval=$enable_dynsysbfd;
3209 else $as_nop
3210 enable_dynsysbfd=no
3211 fi
3212
3213 # Check whether --enable-custreloc was given.
3214 if test ${enable_custreloc+y}
3215 then :
3216 enableval=$enable_custreloc;
3217 else $as_nop
3218 enable_custreloc=$def_custreloc
3219 fi
3220
3221
3222 # Check whether --enable-debug was given.
3223 if test ${enable_debug+y}
3224 then :
3225 enableval=$enable_debug;
3226 else $as_nop
3227 enable_debug=$def_debug
3228 fi
3229
3230 # Check whether --enable-static was given.
3231 if test ${enable_static+y}
3232 then :
3233 enableval=$enable_static;
3234 else $as_nop
3235 enable_static=$def_static
3236 fi
3237
3238 # Check whether --enable-pic was given.
3239 if test ${enable_pic+y}
3240 then :
3241 enableval=$enable_pic;
3242 else $as_nop
3243 enable_pic=$def_pic
3244 fi
3245
3246
3247 load_opt=0
3248 if test "$enable_dlopen" = "yes" ; then
3249 load_opt=1
3250 fi
3251 if test "$enable_statsysbfd" = "yes" ; then
3252 case $load_opt in
3253 0) load_opt=1;;
3254 1) load_opt=2;;
3255 esac
3256 fi
3257 if test "$enable_dynsysbfd" = "yes" ; then
3258 case $load_opt in
3259 0) load_opt=1;;
3260 1) load_opt=2;;
3261 2) load_opt=3;;
3262 esac
3263 fi
3264 if test "$enable_custreloc" = "yes" ; then
3265 case $load_opt in
3266 0) load_opt=1;;
3267 1) load_opt=2;;
3268 2) load_opt=3;;
3269 3) load_opt=4;;
3270 4) load_opt=5;;
3271 esac
3272 fi
3273
3274 if test "$load_opt" != "1" ; then
3275 echo "Exactly one loader option must be chosen: dlopen=$enable_dlopen statsysbfd=$enable_statsysbfd dynsysbfd=$enable_dynsysbfd custreloc=$enable_custreloc"
3276 as_fn_error $? "loader option failure" "$LINENO" 5
3277 fi
3278
3279
3280 #
3281 # System programs
3282 #
3283
3284 # We set the default CFLAGS below, and don't want the autoconf default
3285 # CM 20040106
3286 if test "$CFLAGS" = "" ; then
3287 CFLAGS=" "
3288 fi
3289 if test "$LDFLAGS" = "" ; then
3290 LDFLAGS=" "
3291 fi
3292
3293
3294
3295
3296
3297
3298
3299
3300
3301
3302 ac_ext=c
3303 ac_cpp='$CPP $CPPFLAGS'
3304 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3305 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3306 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3307 if test -n "$ac_tool_prefix"; then
3308 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3309 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3310 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3311 printf %s "checking for $ac_word... " >&6; }
3312 if test ${ac_cv_prog_CC+y}
3313 then :
3314 printf %s "(cached) " >&6
3315 else $as_nop
3316 if test -n "$CC"; then
3317 ac_cv_prog_CC="$CC" # Let the user override the test.
3318 else
3319 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3320 for as_dir in $PATH
3321 do
3322 IFS=$as_save_IFS
3323 case $as_dir in #(((
3324 '') as_dir=./ ;;
3325 */) ;;
3326 *) as_dir=$as_dir/ ;;
3327 esac
3328 for ac_exec_ext in '' $ac_executable_extensions; do
3329 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3330 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3331 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3332 break 2
3333 fi
3334 done
3335 done
3336 IFS=$as_save_IFS
3337
3338 fi
3339 fi
3340 CC=$ac_cv_prog_CC
3341 if test -n "$CC"; then
3342 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3343 printf "%s\n" "$CC" >&6; }
3344 else
3345 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3346 printf "%s\n" "no" >&6; }
3347 fi
3348
3349
3350 fi
3351 if test -z "$ac_cv_prog_CC"; then
3352 ac_ct_CC=$CC
3353 # Extract the first word of "gcc", so it can be a program name with args.
3354 set dummy gcc; ac_word=$2
3355 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3356 printf %s "checking for $ac_word... " >&6; }
3357 if test ${ac_cv_prog_ac_ct_CC+y}
3358 then :
3359 printf %s "(cached) " >&6
3360 else $as_nop
3361 if test -n "$ac_ct_CC"; then
3362 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3363 else
3364 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3365 for as_dir in $PATH
3366 do
3367 IFS=$as_save_IFS
3368 case $as_dir in #(((
3369 '') as_dir=./ ;;
3370 */) ;;
3371 *) as_dir=$as_dir/ ;;
3372 esac
3373 for ac_exec_ext in '' $ac_executable_extensions; do
3374 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3375 ac_cv_prog_ac_ct_CC="gcc"
3376 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3377 break 2
3378 fi
3379 done
3380 done
3381 IFS=$as_save_IFS
3382
3383 fi
3384 fi
3385 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3386 if test -n "$ac_ct_CC"; then
3387 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3388 printf "%s\n" "$ac_ct_CC" >&6; }
3389 else
3390 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3391 printf "%s\n" "no" >&6; }
3392 fi
3393
3394 if test "x$ac_ct_CC" = x; then
3395 CC=""
3396 else
3397 case $cross_compiling:$ac_tool_warned in
3398 yes:)
3399 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3400 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3401 ac_tool_warned=yes ;;
3402 esac
3403 CC=$ac_ct_CC
3404 fi
3405 else
3406 CC="$ac_cv_prog_CC"
3407 fi
3408
3409 if test -z "$CC"; then
3410 if test -n "$ac_tool_prefix"; then
3411 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3412 set dummy ${ac_tool_prefix}cc; ac_word=$2
3413 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3414 printf %s "checking for $ac_word... " >&6; }
3415 if test ${ac_cv_prog_CC+y}
3416 then :
3417 printf %s "(cached) " >&6
3418 else $as_nop
3419 if test -n "$CC"; then
3420 ac_cv_prog_CC="$CC" # Let the user override the test.
3421 else
3422 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3423 for as_dir in $PATH
3424 do
3425 IFS=$as_save_IFS
3426 case $as_dir in #(((
3427 '') as_dir=./ ;;
3428 */) ;;
3429 *) as_dir=$as_dir/ ;;
3430 esac
3431 for ac_exec_ext in '' $ac_executable_extensions; do
3432 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3433 ac_cv_prog_CC="${ac_tool_prefix}cc"
3434 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3435 break 2
3436 fi
3437 done
3438 done
3439 IFS=$as_save_IFS
3440
3441 fi
3442 fi
3443 CC=$ac_cv_prog_CC
3444 if test -n "$CC"; then
3445 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3446 printf "%s\n" "$CC" >&6; }
3447 else
3448 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3449 printf "%s\n" "no" >&6; }
3450 fi
3451
3452
3453 fi
3454 fi
3455 if test -z "$CC"; then
3456 # Extract the first word of "cc", so it can be a program name with args.
3457 set dummy cc; ac_word=$2
3458 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3459 printf %s "checking for $ac_word... " >&6; }
3460 if test ${ac_cv_prog_CC+y}
3461 then :
3462 printf %s "(cached) " >&6
3463 else $as_nop
3464 if test -n "$CC"; then
3465 ac_cv_prog_CC="$CC" # Let the user override the test.
3466 else
3467 ac_prog_rejected=no
3468 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3469 for as_dir in $PATH
3470 do
3471 IFS=$as_save_IFS
3472 case $as_dir in #(((
3473 '') as_dir=./ ;;
3474 */) ;;
3475 *) as_dir=$as_dir/ ;;
3476 esac
3477 for ac_exec_ext in '' $ac_executable_extensions; do
3478 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3479 if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3480 ac_prog_rejected=yes
3481 continue
3482 fi
3483 ac_cv_prog_CC="cc"
3484 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3485 break 2
3486 fi
3487 done
3488 done
3489 IFS=$as_save_IFS
3490
3491 if test $ac_prog_rejected = yes; then
3492 # We found a bogon in the path, so make sure we never use it.
3493 set dummy $ac_cv_prog_CC
3494 shift
3495 if test $# != 0; then
3496 # We chose a different compiler from the bogus one.
3497 # However, it has the same basename, so the bogon will be chosen
3498 # first if we set CC to just the basename; use the full file name.
3499 shift
3500 ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@"
3501 fi
3502 fi
3503 fi
3504 fi
3505 CC=$ac_cv_prog_CC
3506 if test -n "$CC"; then
3507 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3508 printf "%s\n" "$CC" >&6; }
3509 else
3510 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3511 printf "%s\n" "no" >&6; }
3512 fi
3513
3514
3515 fi
3516 if test -z "$CC"; then
3517 if test -n "$ac_tool_prefix"; then
3518 for ac_prog in cl.exe
3519 do
3520 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3521 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3522 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3523 printf %s "checking for $ac_word... " >&6; }
3524 if test ${ac_cv_prog_CC+y}
3525 then :
3526 printf %s "(cached) " >&6
3527 else $as_nop
3528 if test -n "$CC"; then
3529 ac_cv_prog_CC="$CC" # Let the user override the test.
3530 else
3531 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3532 for as_dir in $PATH
3533 do
3534 IFS=$as_save_IFS
3535 case $as_dir in #(((
3536 '') as_dir=./ ;;
3537 */) ;;
3538 *) as_dir=$as_dir/ ;;
3539 esac
3540 for ac_exec_ext in '' $ac_executable_extensions; do
3541 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3542 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3543 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3544 break 2
3545 fi
3546 done
3547 done
3548 IFS=$as_save_IFS
3549
3550 fi
3551 fi
3552 CC=$ac_cv_prog_CC
3553 if test -n "$CC"; then
3554 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3555 printf "%s\n" "$CC" >&6; }
3556 else
3557 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3558 printf "%s\n" "no" >&6; }
3559 fi
3560
3561
3562 test -n "$CC" && break
3563 done
3564 fi
3565 if test -z "$CC"; then
3566 ac_ct_CC=$CC
3567 for ac_prog in cl.exe
3568 do
3569 # Extract the first word of "$ac_prog", so it can be a program name with args.
3570 set dummy $ac_prog; ac_word=$2
3571 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3572 printf %s "checking for $ac_word... " >&6; }
3573 if test ${ac_cv_prog_ac_ct_CC+y}
3574 then :
3575 printf %s "(cached) " >&6
3576 else $as_nop
3577 if test -n "$ac_ct_CC"; then
3578 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3579 else
3580 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3581 for as_dir in $PATH
3582 do
3583 IFS=$as_save_IFS
3584 case $as_dir in #(((
3585 '') as_dir=./ ;;
3586 */) ;;
3587 *) as_dir=$as_dir/ ;;
3588 esac
3589 for ac_exec_ext in '' $ac_executable_extensions; do
3590 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3591 ac_cv_prog_ac_ct_CC="$ac_prog"
3592 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3593 break 2
3594 fi
3595 done
3596 done
3597 IFS=$as_save_IFS
3598
3599 fi
3600 fi
3601 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3602 if test -n "$ac_ct_CC"; then
3603 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3604 printf "%s\n" "$ac_ct_CC" >&6; }
3605 else
3606 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3607 printf "%s\n" "no" >&6; }
3608 fi
3609
3610
3611 test -n "$ac_ct_CC" && break
3612 done
3613
3614 if test "x$ac_ct_CC" = x; then
3615 CC=""
3616 else
3617 case $cross_compiling:$ac_tool_warned in
3618 yes:)
3619 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3620 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3621 ac_tool_warned=yes ;;
3622 esac
3623 CC=$ac_ct_CC
3624 fi
3625 fi
3626
3627 fi
3628 if test -z "$CC"; then
3629 if test -n "$ac_tool_prefix"; then
3630 # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args.
3631 set dummy ${ac_tool_prefix}clang; ac_word=$2
3632 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3633 printf %s "checking for $ac_word... " >&6; }
3634 if test ${ac_cv_prog_CC+y}
3635 then :
3636 printf %s "(cached) " >&6
3637 else $as_nop
3638 if test -n "$CC"; then
3639 ac_cv_prog_CC="$CC" # Let the user override the test.
3640 else
3641 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3642 for as_dir in $PATH
3643 do
3644 IFS=$as_save_IFS
3645 case $as_dir in #(((
3646 '') as_dir=./ ;;
3647 */) ;;
3648 *) as_dir=$as_dir/ ;;
3649 esac
3650 for ac_exec_ext in '' $ac_executable_extensions; do
3651 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3652 ac_cv_prog_CC="${ac_tool_prefix}clang"
3653 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3654 break 2
3655 fi
3656 done
3657 done
3658 IFS=$as_save_IFS
3659
3660 fi
3661 fi
3662 CC=$ac_cv_prog_CC
3663 if test -n "$CC"; then
3664 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3665 printf "%s\n" "$CC" >&6; }
3666 else
3667 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3668 printf "%s\n" "no" >&6; }
3669 fi
3670
3671
3672 fi
3673 if test -z "$ac_cv_prog_CC"; then
3674 ac_ct_CC=$CC
3675 # Extract the first word of "clang", so it can be a program name with args.
3676 set dummy clang; ac_word=$2
3677 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3678 printf %s "checking for $ac_word... " >&6; }
3679 if test ${ac_cv_prog_ac_ct_CC+y}
3680 then :
3681 printf %s "(cached) " >&6
3682 else $as_nop
3683 if test -n "$ac_ct_CC"; then
3684 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3685 else
3686 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3687 for as_dir in $PATH
3688 do
3689 IFS=$as_save_IFS
3690 case $as_dir in #(((
3691 '') as_dir=./ ;;
3692 */) ;;
3693 *) as_dir=$as_dir/ ;;
3694 esac
3695 for ac_exec_ext in '' $ac_executable_extensions; do
3696 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3697 ac_cv_prog_ac_ct_CC="clang"
3698 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3699 break 2
3700 fi
3701 done
3702 done
3703 IFS=$as_save_IFS
3704
3705 fi
3706 fi
3707 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3708 if test -n "$ac_ct_CC"; then
3709 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3710 printf "%s\n" "$ac_ct_CC" >&6; }
3711 else
3712 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3713 printf "%s\n" "no" >&6; }
3714 fi
3715
3716 if test "x$ac_ct_CC" = x; then
3717 CC=""
3718 else
3719 case $cross_compiling:$ac_tool_warned in
3720 yes:)
3721 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3722 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3723 ac_tool_warned=yes ;;
3724 esac
3725 CC=$ac_ct_CC
3726 fi
3727 else
3728 CC="$ac_cv_prog_CC"
3729 fi
3730
3731 fi
3732
3733
3734 test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3735 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3736 as_fn_error $? "no acceptable C compiler found in \$PATH
3737 See \`config.log' for more details" "$LINENO" 5; }
3738
3739 # Provide some information about the compiler.
3740 printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3741 set X $ac_compile
3742 ac_compiler=$2
3743 for ac_option in --version -v -V -qversion -version; do
3744 { { ac_try="$ac_compiler $ac_option >&5"
3745 case "(($ac_try" in
3746 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3747 *) ac_try_echo=$ac_try;;
3748 esac
3749 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3750 printf "%s\n" "$ac_try_echo"; } >&5
3751 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3752 ac_status=$?
3753 if test -s conftest.err; then
3754 sed '10a\
3755 ... rest of stderr output deleted ...
3756 10q' conftest.err >conftest.er1
3757 cat conftest.er1 >&5
3758 fi
3759 rm -f conftest.er1 conftest.err
3760 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3761 test $ac_status = 0; }
3762 done
3763
3764 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3765 /* end confdefs.h. */
3766
3767 int
3768 main (void)
3769 {
3770
3771 ;
3772 return 0;
3773 }
3774 _ACEOF
3775 ac_clean_files_save=$ac_clean_files
3776 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3777 # Try to create an executable without -o first, disregard a.out.
3778 # It will help us diagnose broken compilers, and finding out an intuition
3779 # of exeext.
3780 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3781 printf %s "checking whether the C compiler works... " >&6; }
3782 ac_link_default=`printf "%s\n" "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3783
3784 # The possible output files:
3785 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3786
3787 ac_rmfiles=
3788 for ac_file in $ac_files
3789 do
3790 case $ac_file in
3791 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3792 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3793 esac
3794 done
3795 rm -f $ac_rmfiles
3796
3797 if { { ac_try="$ac_link_default"
3798 case "(($ac_try" in
3799 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3800 *) ac_try_echo=$ac_try;;
3801 esac
3802 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3803 printf "%s\n" "$ac_try_echo"; } >&5
3804 (eval "$ac_link_default") 2>&5
3805 ac_status=$?
3806 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3807 test $ac_status = 0; }
3808 then :
3809 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3810 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3811 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3812 # so that the user can short-circuit this test for compilers unknown to
3813 # Autoconf.
3814 for ac_file in $ac_files ''
3815 do
3816 test -f "$ac_file" || continue
3817 case $ac_file in
3818 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3819 ;;
3820 [ab].out )
3821 # We found the default executable, but exeext='' is most
3822 # certainly right.
3823 break;;
3824 *.* )
3825 if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no;
3826 then :; else
3827 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3828 fi
3829 # We set ac_cv_exeext here because the later test for it is not
3830 # safe: cross compilers may not add the suffix if given an `-o'
3831 # argument, so we may need to know it at that point already.
3832 # Even if this section looks crufty: it has the advantage of
3833 # actually working.
3834 break;;
3835 * )
3836 break;;
3837 esac
3838 done
3839 test "$ac_cv_exeext" = no && ac_cv_exeext=
3840
3841 else $as_nop
3842 ac_file=''
3843 fi
3844 if test -z "$ac_file"
3845 then :
3846 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3847 printf "%s\n" "no" >&6; }
3848 printf "%s\n" "$as_me: failed program was:" >&5
3849 sed 's/^/| /' conftest.$ac_ext >&5
3850
3851 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3852 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3853 as_fn_error 77 "C compiler cannot create executables
3854 See \`config.log' for more details" "$LINENO" 5; }
3855 else $as_nop
3856 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3857 printf "%s\n" "yes" >&6; }
3858 fi
3859 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3860 printf %s "checking for C compiler default output file name... " >&6; }
3861 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3862 printf "%s\n" "$ac_file" >&6; }
3863 ac_exeext=$ac_cv_exeext
3864
3865 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3866 ac_clean_files=$ac_clean_files_save
3867 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3868 printf %s "checking for suffix of executables... " >&6; }
3869 if { { ac_try="$ac_link"
3870 case "(($ac_try" in
3871 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3872 *) ac_try_echo=$ac_try;;
3873 esac
3874 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3875 printf "%s\n" "$ac_try_echo"; } >&5
3876 (eval "$ac_link") 2>&5
3877 ac_status=$?
3878 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3879 test $ac_status = 0; }
3880 then :
3881 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3882 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3883 # work properly (i.e., refer to `conftest.exe'), while it won't with
3884 # `rm'.
3885 for ac_file in conftest.exe conftest conftest.*; do
3886 test -f "$ac_file" || continue
3887 case $ac_file in
3888 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3889 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3890 break;;
3891 * ) break;;
3892 esac
3893 done
3894 else $as_nop
3895 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3896 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3897 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3898 See \`config.log' for more details" "$LINENO" 5; }
3899 fi
3900 rm -f conftest conftest$ac_cv_exeext
3901 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3902 printf "%s\n" "$ac_cv_exeext" >&6; }
3903
3904 rm -f conftest.$ac_ext
3905 EXEEXT=$ac_cv_exeext
3906 ac_exeext=$EXEEXT
3907 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3908 /* end confdefs.h. */
3909 #include <stdio.h>
3910 int
3911 main (void)
3912 {
3913 FILE *f = fopen ("conftest.out", "w");
3914 return ferror (f) || fclose (f) != 0;
3915
3916 ;
3917 return 0;
3918 }
3919 _ACEOF
3920 ac_clean_files="$ac_clean_files conftest.out"
3921 # Check that the compiler produces executables we can run. If not, either
3922 # the compiler is broken, or we cross compile.
3923 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3924 printf %s "checking whether we are cross compiling... " >&6; }
3925 if test "$cross_compiling" != yes; then
3926 { { ac_try="$ac_link"
3927 case "(($ac_try" in
3928 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3929 *) ac_try_echo=$ac_try;;
3930 esac
3931 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3932 printf "%s\n" "$ac_try_echo"; } >&5
3933 (eval "$ac_link") 2>&5
3934 ac_status=$?
3935 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3936 test $ac_status = 0; }
3937 if { ac_try='./conftest$ac_cv_exeext'
3938 { { case "(($ac_try" in
3939 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3940 *) ac_try_echo=$ac_try;;
3941 esac
3942 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3943 printf "%s\n" "$ac_try_echo"; } >&5
3944 (eval "$ac_try") 2>&5
3945 ac_status=$?
3946 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3947 test $ac_status = 0; }; }; then
3948 cross_compiling=no
3949 else
3950 if test "$cross_compiling" = maybe; then
3951 cross_compiling=yes
3952 else
3953 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3954 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3955 as_fn_error 77 "cannot run C compiled programs.
3956 If you meant to cross compile, use \`--host'.
3957 See \`config.log' for more details" "$LINENO" 5; }
3958 fi
3959 fi
3960 fi
3961 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3962 printf "%s\n" "$cross_compiling" >&6; }
3963
3964 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3965 ac_clean_files=$ac_clean_files_save
3966 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3967 printf %s "checking for suffix of object files... " >&6; }
3968 if test ${ac_cv_objext+y}
3969 then :
3970 printf %s "(cached) " >&6
3971 else $as_nop
3972 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3973 /* end confdefs.h. */
3974
3975 int
3976 main (void)
3977 {
3978
3979 ;
3980 return 0;
3981 }
3982 _ACEOF
3983 rm -f conftest.o conftest.obj
3984 if { { ac_try="$ac_compile"
3985 case "(($ac_try" in
3986 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3987 *) ac_try_echo=$ac_try;;
3988 esac
3989 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3990 printf "%s\n" "$ac_try_echo"; } >&5
3991 (eval "$ac_compile") 2>&5
3992 ac_status=$?
3993 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3994 test $ac_status = 0; }
3995 then :
3996 for ac_file in conftest.o conftest.obj conftest.*; do
3997 test -f "$ac_file" || continue;
3998 case $ac_file in
3999 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4000 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4001 break;;
4002 esac
4003 done
4004 else $as_nop
4005 printf "%s\n" "$as_me: failed program was:" >&5
4006 sed 's/^/| /' conftest.$ac_ext >&5
4007
4008 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4009 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
4010 as_fn_error $? "cannot compute suffix of object files: cannot compile
4011 See \`config.log' for more details" "$LINENO" 5; }
4012 fi
4013 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4014 fi
4015 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4016 printf "%s\n" "$ac_cv_objext" >&6; }
4017 OBJEXT=$ac_cv_objext
4018 ac_objext=$OBJEXT
4019 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5
4020 printf %s "checking whether the compiler supports GNU C... " >&6; }
4021 if test ${ac_cv_c_compiler_gnu+y}
4022 then :
4023 printf %s "(cached) " >&6
4024 else $as_nop
4025 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4026 /* end confdefs.h. */
4027
4028 int
4029 main (void)
4030 {
4031 #ifndef __GNUC__
4032 choke me
4033 #endif
4034
4035 ;
4036 return 0;
4037 }
4038 _ACEOF
4039 if ac_fn_c_try_compile "$LINENO"
4040 then :
4041 ac_compiler_gnu=yes
4042 else $as_nop
4043 ac_compiler_gnu=no
4044 fi
4045 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4046 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4047
4048 fi
4049 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4050 printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; }
4051 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4052
4053 if test $ac_compiler_gnu = yes; then
4054 GCC=yes
4055 else
4056 GCC=
4057 fi
4058 ac_test_CFLAGS=${CFLAGS+y}
4059 ac_save_CFLAGS=$CFLAGS
4060 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4061 printf %s "checking whether $CC accepts -g... " >&6; }
4062 if test ${ac_cv_prog_cc_g+y}
4063 then :
4064 printf %s "(cached) " >&6
4065 else $as_nop
4066 ac_save_c_werror_flag=$ac_c_werror_flag
4067 ac_c_werror_flag=yes
4068 ac_cv_prog_cc_g=no
4069 CFLAGS="-g"
4070 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4071 /* end confdefs.h. */
4072
4073 int
4074 main (void)
4075 {
4076
4077 ;
4078 return 0;
4079 }
4080 _ACEOF
4081 if ac_fn_c_try_compile "$LINENO"
4082 then :
4083 ac_cv_prog_cc_g=yes
4084 else $as_nop
4085 CFLAGS=""
4086 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4087 /* end confdefs.h. */
4088
4089 int
4090 main (void)
4091 {
4092
4093 ;
4094 return 0;
4095 }
4096 _ACEOF
4097 if ac_fn_c_try_compile "$LINENO"
4098 then :
4099
4100 else $as_nop
4101 ac_c_werror_flag=$ac_save_c_werror_flag
4102 CFLAGS="-g"
4103 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4104 /* end confdefs.h. */
4105
4106 int
4107 main (void)
4108 {
4109
4110 ;
4111 return 0;
4112 }
4113 _ACEOF
4114 if ac_fn_c_try_compile "$LINENO"
4115 then :
4116 ac_cv_prog_cc_g=yes
4117 fi
4118 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4119 fi
4120 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4121 fi
4122 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4123 ac_c_werror_flag=$ac_save_c_werror_flag
4124 fi
4125 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4126 printf "%s\n" "$ac_cv_prog_cc_g" >&6; }
4127 if test $ac_test_CFLAGS; then
4128 CFLAGS=$ac_save_CFLAGS
4129 elif test $ac_cv_prog_cc_g = yes; then
4130 if test "$GCC" = yes; then
4131 CFLAGS="-g -O2"
4132 else
4133 CFLAGS="-g"
4134 fi
4135 else
4136 if test "$GCC" = yes; then
4137 CFLAGS="-O2"
4138 else
4139 CFLAGS=
4140 fi
4141 fi
4142 ac_prog_cc_stdc=no
4143 if test x$ac_prog_cc_stdc = xno
4144 then :
4145 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5
4146 printf %s "checking for $CC option to enable C11 features... " >&6; }
4147 if test ${ac_cv_prog_cc_c11+y}
4148 then :
4149 printf %s "(cached) " >&6
4150 else $as_nop
4151 ac_cv_prog_cc_c11=no
4152 ac_save_CC=$CC
4153 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4154 /* end confdefs.h. */
4155 $ac_c_conftest_c11_program
4156 _ACEOF
4157 for ac_arg in '' -std=gnu11
4158 do
4159 CC="$ac_save_CC $ac_arg"
4160 if ac_fn_c_try_compile "$LINENO"
4161 then :
4162 ac_cv_prog_cc_c11=$ac_arg
4163 fi
4164 rm -f core conftest.err conftest.$ac_objext conftest.beam
4165 test "x$ac_cv_prog_cc_c11" != "xno" && break
4166 done
4167 rm -f conftest.$ac_ext
4168 CC=$ac_save_CC
4169 fi
4170
4171 if test "x$ac_cv_prog_cc_c11" = xno
4172 then :
4173 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4174 printf "%s\n" "unsupported" >&6; }
4175 else $as_nop
4176 if test "x$ac_cv_prog_cc_c11" = x
4177 then :
4178 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4179 printf "%s\n" "none needed" >&6; }
4180 else $as_nop
4181 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5
4182 printf "%s\n" "$ac_cv_prog_cc_c11" >&6; }
4183 CC="$CC $ac_cv_prog_cc_c11"
4184 fi
4185 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11
4186 ac_prog_cc_stdc=c11
4187 fi
4188 fi
4189 if test x$ac_prog_cc_stdc = xno
4190 then :
4191 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5
4192 printf %s "checking for $CC option to enable C99 features... " >&6; }
4193 if test ${ac_cv_prog_cc_c99+y}
4194 then :
4195 printf %s "(cached) " >&6
4196 else $as_nop
4197 ac_cv_prog_cc_c99=no
4198 ac_save_CC=$CC
4199 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4200 /* end confdefs.h. */
4201 $ac_c_conftest_c99_program
4202 _ACEOF
4203 for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99=
4204 do
4205 CC="$ac_save_CC $ac_arg"
4206 if ac_fn_c_try_compile "$LINENO"
4207 then :
4208 ac_cv_prog_cc_c99=$ac_arg
4209 fi
4210 rm -f core conftest.err conftest.$ac_objext conftest.beam
4211 test "x$ac_cv_prog_cc_c99" != "xno" && break
4212 done
4213 rm -f conftest.$ac_ext
4214 CC=$ac_save_CC
4215 fi
4216
4217 if test "x$ac_cv_prog_cc_c99" = xno
4218 then :
4219 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4220 printf "%s\n" "unsupported" >&6; }
4221 else $as_nop
4222 if test "x$ac_cv_prog_cc_c99" = x
4223 then :
4224 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4225 printf "%s\n" "none needed" >&6; }
4226 else $as_nop
4227 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
4228 printf "%s\n" "$ac_cv_prog_cc_c99" >&6; }
4229 CC="$CC $ac_cv_prog_cc_c99"
4230 fi
4231 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
4232 ac_prog_cc_stdc=c99
4233 fi
4234 fi
4235 if test x$ac_prog_cc_stdc = xno
4236 then :
4237 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5
4238 printf %s "checking for $CC option to enable C89 features... " >&6; }
4239 if test ${ac_cv_prog_cc_c89+y}
4240 then :
4241 printf %s "(cached) " >&6
4242 else $as_nop
4243 ac_cv_prog_cc_c89=no
4244 ac_save_CC=$CC
4245 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4246 /* end confdefs.h. */
4247 $ac_c_conftest_c89_program
4248 _ACEOF
4249 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4250 do
4251 CC="$ac_save_CC $ac_arg"
4252 if ac_fn_c_try_compile "$LINENO"
4253 then :
4254 ac_cv_prog_cc_c89=$ac_arg
4255 fi
4256 rm -f core conftest.err conftest.$ac_objext conftest.beam
4257 test "x$ac_cv_prog_cc_c89" != "xno" && break
4258 done
4259 rm -f conftest.$ac_ext
4260 CC=$ac_save_CC
4261 fi
4262
4263 if test "x$ac_cv_prog_cc_c89" = xno
4264 then :
4265 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4266 printf "%s\n" "unsupported" >&6; }
4267 else $as_nop
4268 if test "x$ac_cv_prog_cc_c89" = x
4269 then :
4270 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4271 printf "%s\n" "none needed" >&6; }
4272 else $as_nop
4273 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4274 printf "%s\n" "$ac_cv_prog_cc_c89" >&6; }
4275 CC="$CC $ac_cv_prog_cc_c89"
4276 fi
4277 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
4278 ac_prog_cc_stdc=c89
4279 fi
4280 fi
4281
4282 ac_ext=c
4283 ac_cpp='$CPP $CPPFLAGS'
4284 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4285 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4286 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4287
4288 ac_ext=c
4289 ac_cpp='$CPP $CPPFLAGS'
4290 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4291 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4292 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4293 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4294 printf %s "checking how to run the C preprocessor... " >&6; }
4295 # On Suns, sometimes $CPP names a directory.
4296 if test -n "$CPP" && test -d "$CPP"; then
4297 CPP=
4298 fi
4299 if test -z "$CPP"; then
4300 if test ${ac_cv_prog_CPP+y}
4301 then :
4302 printf %s "(cached) " >&6
4303 else $as_nop
4304 # Double quotes because $CC needs to be expanded
4305 for CPP in "$CC -E" "$CC -E -traditional-cpp" cpp /lib/cpp
4306 do
4307 ac_preproc_ok=false
4308 for ac_c_preproc_warn_flag in '' yes
4309 do
4310 # Use a header file that comes with gcc, so configuring glibc
4311 # with a fresh cross-compiler works.
4312 # On the NeXT, cc -E runs the code through the compiler's parser,
4313 # not just through cpp. "Syntax error" is here to catch this case.
4314 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4315 /* end confdefs.h. */
4316 #include <limits.h>
4317 Syntax error
4318 _ACEOF
4319 if ac_fn_c_try_cpp "$LINENO"
4320 then :
4321
4322 else $as_nop
4323 # Broken: fails on valid input.
4324 continue
4325 fi
4326 rm -f conftest.err conftest.i conftest.$ac_ext
4327
4328 # OK, works on sane cases. Now check whether nonexistent headers
4329 # can be detected and how.
4330 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4331 /* end confdefs.h. */
4332 #include <ac_nonexistent.h>
4333 _ACEOF
4334 if ac_fn_c_try_cpp "$LINENO"
4335 then :
4336 # Broken: success on invalid input.
4337 continue
4338 else $as_nop
4339 # Passes both tests.
4340 ac_preproc_ok=:
4341 break
4342 fi
4343 rm -f conftest.err conftest.i conftest.$ac_ext
4344
4345 done
4346 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4347 rm -f conftest.i conftest.err conftest.$ac_ext
4348 if $ac_preproc_ok
4349 then :
4350 break
4351 fi
4352
4353 done
4354 ac_cv_prog_CPP=$CPP
4355
4356 fi
4357 CPP=$ac_cv_prog_CPP
4358 else
4359 ac_cv_prog_CPP=$CPP
4360 fi
4361 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4362 printf "%s\n" "$CPP" >&6; }
4363 ac_preproc_ok=false
4364 for ac_c_preproc_warn_flag in '' yes
4365 do
4366 # Use a header file that comes with gcc, so configuring glibc
4367 # with a fresh cross-compiler works.
4368 # On the NeXT, cc -E runs the code through the compiler's parser,
4369 # not just through cpp. "Syntax error" is here to catch this case.
4370 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4371 /* end confdefs.h. */
4372 #include <limits.h>
4373 Syntax error
4374 _ACEOF
4375 if ac_fn_c_try_cpp "$LINENO"
4376 then :
4377
4378 else $as_nop
4379 # Broken: fails on valid input.
4380 continue
4381 fi
4382 rm -f conftest.err conftest.i conftest.$ac_ext
4383
4384 # OK, works on sane cases. Now check whether nonexistent headers
4385 # can be detected and how.
4386 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4387 /* end confdefs.h. */
4388 #include <ac_nonexistent.h>
4389 _ACEOF
4390 if ac_fn_c_try_cpp "$LINENO"
4391 then :
4392 # Broken: success on invalid input.
4393 continue
4394 else $as_nop
4395 # Passes both tests.
4396 ac_preproc_ok=:
4397 break
4398 fi
4399 rm -f conftest.err conftest.i conftest.$ac_ext
4400
4401 done
4402 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4403 rm -f conftest.i conftest.err conftest.$ac_ext
4404 if $ac_preproc_ok
4405 then :
4406
4407 else $as_nop
4408 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4409 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
4410 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4411 See \`config.log' for more details" "$LINENO" 5; }
4412 fi
4413
4414 ac_ext=c
4415 ac_cpp='$CPP $CPPFLAGS'
4416 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4417 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4418 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4419
4420
4421
4422 add_arg_to_cflags() {
4423
4424 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for CFLAG $1" >&5
4425 printf %s "checking for CFLAG $1... " >&6; }
4426 CFLAGS_ORI=$CFLAGS
4427 CFLAGS="$CFLAGS -Werror $1 `echo $1|sed 's,-Wno-,-W,1'`"
4428
4429 if test "$cross_compiling" = yes
4430 then :
4431 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4432 printf "%s\n" "no" >&6; }
4433 else $as_nop
4434 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4435 /* end confdefs.h. */
4436
4437 int
4438 main (void)
4439 {
4440
4441 ;
4442 return 0;
4443 }
4444 _ACEOF
4445 if ac_fn_c_try_run "$LINENO"
4446 then :
4447 CFLAGS="$CFLAGS_ORI $1";{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4448 printf "%s\n" "yes" >&6; };return 0
4449 else $as_nop
4450 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4451 printf "%s\n" "no" >&6; }
4452 fi
4453 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4454 conftest.$ac_objext conftest.beam conftest.$ac_ext
4455 fi
4456
4457 CFLAGS=$CFLAGS_ORI
4458 return 1
4459
4460 }
4461
4462 assert_arg_to_cflags() {
4463 if ! add_arg_to_cflags "$1" ; then { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: cannot add $1 to CFLAGS" >&5
4464 printf "%s\n" "cannot add $1 to CFLAGS" >&6; }; exit 1 ; fi
4465 return 0
4466 }
4467
4468 add_args_to_cflags() {
4469
4470 while test "$#" -ge 1 ; do
4471 add_arg_to_cflags $1
4472 shift
4473 done
4474 }
4475
4476 add_arg_to_ldflags() {
4477
4478 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for LDFLAG $1" >&5
4479 printf %s "checking for LDFLAG $1... " >&6; }
4480 LDFLAGS_ORI=$LDFLAGS
4481 LDFLAGS="$LDFLAGS -Werror $1"
4482 if test "$cross_compiling" = yes
4483 then :
4484 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4485 printf "%s\n" "no" >&6; }
4486 else $as_nop
4487 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4488 /* end confdefs.h. */
4489
4490 int
4491 main (void)
4492 {
4493
4494 ;
4495 return 0;
4496 }
4497 _ACEOF
4498 if ac_fn_c_try_run "$LINENO"
4499 then :
4500 LDFLAGS="$LDFLAGS_ORI $1";{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4501 printf "%s\n" "yes" >&6; };return 0
4502 else $as_nop
4503 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4504 printf "%s\n" "no" >&6; }
4505 fi
4506 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4507 conftest.$ac_objext conftest.beam conftest.$ac_ext
4508 fi
4509
4510 LDFLAGS=$LDFLAGS_ORI
4511 return 1
4512
4513 }
4514
4515 assert_arg_to_ldflags() {
4516 if ! add_arg_to_ldflags $1 ; then { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: cannot add $1 to LDFLAGS" >&5
4517 printf "%s\n" "cannot add $1 to LDFLAGS" >&6; }; exit 1 ; fi
4518 return 0
4519 }
4520
4521 add_args_to_ldflags() {
4522
4523 while test "$#" -ge 1 ; do
4524 add_arg_to_ldflags $1
4525 shift
4526 done
4527 }
4528
4529 remove_arg_from_ldflags() {
4530
4531 NEW_LDFLAGS=""
4532 for i in $LDFLAGS; do
4533 if ! test "$i" = "$1" ; then
4534 NEW_LDFLAGS="$NEW_LDFLAGS $i"
4535 else
4536 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: removing $1 from LDFLAGS" >&5
4537 printf "%s\n" "removing $1 from LDFLAGS" >&6; }
4538 fi
4539 done
4540 LDFLAGS=$NEW_LDFLAGS
4541
4542 return 0
4543
4544 }
4545
4546 add_args_to_cflags -fsigned-char -pipe -fcommon \
4547 -fno-builtin-malloc -fno-builtin-free \
4548 -fno-PIE -fno-pie -fno-PIC -fno-pic \
4549 -Wall \
4550 -Wno-builtin-requires-header -Wno-empty-body -Wno-self-assign \
4551 -Wno-unused-but-set-variable
4552
4553 add_args_to_ldflags -no-pie # -Wl,-z,lazy
4554
4555 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for inline semantics" >&5
4556 printf %s "checking for inline semantics... " >&6; }
4557 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4558 /* end confdefs.h. */
4559
4560 inline int foo(int i) {return i;}
4561
4562 int
4563 bar(int i) {return foo(i);}
4564
4565 _ACEOF
4566 if ac_fn_c_try_compile "$LINENO"
4567 then :
4568 if `nm conftest.o |grep foo |awk '{if (NF==3) exit(-1)}'` ; then
4569 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: new" >&5
4570 printf "%s\n" "new" >&6; }
4571 else
4572 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4573 /* end confdefs.h. */
4574
4575 extern inline int foo(int i) {return i;}
4576
4577 int
4578 bar(int i) {return foo(i);}
4579
4580 _ACEOF
4581 if ac_fn_c_try_compile "$LINENO"
4582 then :
4583 if `nm conftest.o |grep foo |awk '{if (NF==3) exit(-1)}'` ; then
4584 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: old" >&5
4585 printf "%s\n" "old" >&6; }
4586
4587 printf "%s\n" "#define OLD_INLINE 1" >>confdefs.h
4588
4589 else
4590 as_fn_error $? "need working inline semantics" "$LINENO" 5
4591 fi
4592 else $as_nop
4593 as_fn_error $? "need to probe inline semantics" "$LINENO" 5
4594 fi
4595 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4596 fi
4597 else $as_nop
4598 as_fn_error $? "need to probe inline semantics" "$LINENO" 5
4599 fi
4600 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4601
4602 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for clang" >&5
4603 printf %s "checking for clang... " >&6; }
4604 if test "$cross_compiling" = yes
4605 then :
4606 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4607 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
4608 as_fn_error $? "cannot run test program while cross compiling
4609 See \`config.log' for more details" "$LINENO" 5; }
4610 else $as_nop
4611 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4612 /* end confdefs.h. */
4613
4614 #ifdef __clang__
4615 #define RET 0
4616 #else
4617 #define RET 1
4618 #endif
4619
4620 int
4621 main (void)
4622 {
4623
4624 return RET;
4625
4626 ;
4627 return 0;
4628 }
4629 _ACEOF
4630 if ac_fn_c_try_run "$LINENO"
4631 then :
4632 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4633 printf "%s\n" "yes" >&6; }
4634 clang="yes"
4635 remove_arg_from_ldflags -pie
4636
4637 printf "%s\n" "#define CLANG 1" >>confdefs.h
4638
4639 else $as_nop
4640 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4641 printf "%s\n" "no" >&6; }
4642 fi
4643 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4644 conftest.$ac_objext conftest.beam conftest.$ac_ext
4645 fi
4646
4647
4648 case $use in
4649 *mingw*)
4650 assert_arg_to_cflags -fno-zero-initialized-in-bss
4651 assert_arg_to_cflags -mms-bitfields
4652 for i in makedefc windows/gcl.iss windows/sysdir.bat windows/install.lsp h/gclincl.h; do
4653 cat $i.in | sed 's,^\r\n$,\r\n,g' >tmp && mv tmp $i.in;
4654 done
4655 OLD_LDFLAGS=$LDFLAGS
4656 assert_arg_to_ldflags -pg
4657 GPL_FLAG="-pg"
4658 LDFLAGS=$OLD_LDFLAGS;;
4659 *gnuwin*)
4660 assert_arg_to_cflags -fno-zero-initialized-in-bss
4661 assert_arg_to_cflags -mms-bitfields
4662 assert_arg_to_ldflags -Wl,--stack,8000000
4663 OLD_LDFLAGS=$LDFLAGS
4664 assert_arg_to_ldflags -pg
4665 GPL_FLAG="-pg"
4666 LDFLAGS=$OLD_LDFLAGS;;
4667 386-macosx)
4668 # assert_arg_to_cflags -Wno-error=implicit-function-declaration
4669 add_arg_to_cflags -Wno-incomplete-setjmp-declaration
4670 assert_arg_to_ldflags -Wl,-no_pie
4671 if test "$build_cpu" = "x86_64" ; then
4672 assert_arg_to_cflags -m64
4673 assert_arg_to_ldflags -m64
4674 assert_arg_to_ldflags -Wl,-headerpad,72
4675 else
4676 assert_arg_to_cflags -m32
4677 assert_arg_to_ldflags -m32
4678 assert_arg_to_ldflags -Wl,-headerpad,56
4679 fi;;
4680 FreeBSD) assert_arg_to_ldflags -Z;;
4681 esac
4682
4683 if test "$enable_static" = "yes" ; then
4684 assert_arg_to_ldflags -static
4685 assert_arg_to_ldflags -Wl,-zmuldefs
4686
4687 printf "%s\n" "#define STATIC_LINKING 1" >>confdefs.h
4688
4689 fi
4690
4691 TO3FLAGS=""
4692 TO2FLAGS=""
4693
4694 case "$use" in
4695 *mingw*)
4696 TFPFLAG="";;
4697 m68k*)#FIXME gcc 4.x bug workaround
4698 TFPFLAG="";;
4699 *)
4700 TFPFLAG="-fomit-frame-pointer";;
4701 esac
4702
4703 for ac_prog in gawk nawk awk
4704 do
4705 # Extract the first word of "$ac_prog", so it can be a program name with args.
4706 set dummy $ac_prog; ac_word=$2
4707 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4708 printf %s "checking for $ac_word... " >&6; }
4709 if test ${ac_cv_prog_AWK+y}
4710 then :
4711 printf %s "(cached) " >&6
4712 else $as_nop
4713 if test -n "$AWK"; then
4714 ac_cv_prog_AWK="$AWK" # Let the user override the test.
4715 else
4716 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4717 for as_dir in $PATH
4718 do
4719 IFS=$as_save_IFS
4720 case $as_dir in #(((
4721 '') as_dir=./ ;;
4722 */) ;;
4723 *) as_dir=$as_dir/ ;;
4724 esac
4725 for ac_exec_ext in '' $ac_executable_extensions; do
4726 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4727 ac_cv_prog_AWK="$ac_prog"
4728 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4729 break 2
4730 fi
4731 done
4732 done
4733 IFS=$as_save_IFS
4734
4735 fi
4736 fi
4737 AWK=$ac_cv_prog_AWK
4738 if test -n "$AWK"; then
4739 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
4740 printf "%s\n" "$AWK" >&6; }
4741 else
4742 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4743 printf "%s\n" "no" >&6; }
4744 fi
4745
4746
4747 test -n "$AWK" && break
4748 done
4749
4750 GCL_CC_ARGS=`echo $CC | ${AWK} '{$1="";print}'`
4751 GCL_CC="`basename $CC` $GCL_CC_ARGS"
4752 if echo $GCL_CC |grep gcc |grep -q win; then
4753 GCL_CC=gcc
4754 fi
4755
4756
4757 # Check whether --enable-gprof was given.
4758 if test ${enable_gprof+y}
4759 then :
4760 enableval=$enable_gprof; if test "$enableval" = "yes" ; then
4761 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking working gprof" >&5
4762 printf %s "checking working gprof... " >&6; }
4763 case $use in
4764 powerpc*) if test "$host_cpu" = "powerpc64le" ; then enableval="no"; fi;;
4765 s390*) enableval="no";;#mcount smashes float args in make_shortfloat 20180313
4766 sh4*) enableval="no";;
4767 m68k*) enableval="no";;
4768 ia64*) enableval="no";;
4769 hppa*) enableval="no";;
4770 # 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
4771 aarch64*) enableval="no";;#unreproducible buildd bug 20170824
4772 *gnu) enableval="no";;
4773 esac
4774 GP_FLAG=""
4775 if test "$enableval" != "yes" ; then
4776 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
4777 printf "%s\n" "disabled" >&6; }
4778 else
4779 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ok" >&5
4780 printf "%s\n" "ok" >&6; }
4781 OLD_CFLAGS=$CFLAGS # Do not run configure tests with -pg
4782 assert_arg_to_cflags -pg
4783 GP_FLAG="-pg"
4784 CFLAGS=$OLD_CFLAGS
4785 TFPFLAG=""
4786
4787 printf "%s\n" "#define GCL_GPROF 1" >>confdefs.h
4788
4789 fi
4790 fi
4791 fi
4792
4793
4794 if test "$enable_debug" = "yes" ; then
4795 assert_arg_to_cflags -g
4796 # for subconfigurations
4797 CFLAGS="$CFLAGS -g"
4798 else
4799 TO3FLAGS="-O3 $TFPFLAG"
4800 TO2FLAGS="-O"
4801 fi
4802
4803 # gcc on ppc cannot compile our new_init.c with full opts --CM
4804 TONIFLAGS=""
4805 case $use in
4806 powerpc*macosx) assert_arg_to_cflags -mlongcall;;
4807 *linux)
4808 case $use in
4809 alpha*)
4810 assert_arg_to_cflags -mieee
4811 # if test "$enable_debug" != "yes" ; then TO3FLAGS="-O0" ; fi #FIXME needed asof gcc 4.8.1
4812 ;;
4813 aarch64*)
4814 TLIBS="$TLIBS -lgcc_s";;
4815 hppa*)
4816 assert_arg_to_cflags -mlong-calls
4817 TLIBS="$TLIBS -lgcc_s" # workaround hppa __moddi3 local func symbols with default linker flags
4818 if test "$enable_debug" != "yes" ; then TO3FLAGS="-O2" ; TFPFLAG=""; fi #FIXME needed asof gcc 4.8.1
4819 ;;
4820 mips*)
4821 case $canonical in
4822 mips64*linux*)
4823 # assert_arg_to_cflags -mxgot
4824 assert_arg_to_ldflags -Wl,-z,now;;
4825 esac
4826 ;;
4827 ia64*)
4828 if test "$enable_debug" != "yes" ; then TO3FLAGS="-O" ; fi #FIXME needed asof gcc 4.8.1
4829 ;;
4830 arm*)
4831
4832 printf "%s\n" "#define SET_STACK_POINTER \"mov %%sp,%0\\n\\t\"" >>confdefs.h
4833
4834 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to set stack pointer" >&5
4835 printf %s "checking how to set stack pointer... " >&6; }
4836 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: done" >&5
4837 printf "%s\n" "done" >&6; }
4838 assert_arg_to_cflags -fdollars-in-identifiers
4839 assert_arg_to_cflags -g #?
4840 ;;
4841 powerpc*)
4842 assert_arg_to_cflags -mlongcall
4843 if test "$host_cpu" != "powerpc64le" ; then assert_arg_to_cflags -mno-pltseq; fi
4844 ;;
4845 esac;;
4846 esac
4847 if test "$enable_pic" = "yes" ; then
4848 assert_arg_to_cflags -fPIC
4849 fi
4850
4851
4852 FDEBUG=`echo $CFLAGS | tr ' ' '\012' |grep "^\-g$"|tr '\012' ' '`
4853 #CFLAGS=`echo $CFLAGS | tr ' ' '\012' |grep -v "^\-g$"`
4854 FOMITF=`echo $CFLAGS | tr ' ' '\012' |grep "^\-fomit-frame-pointer$"|tr '\012' ' '`
4855 CFLAGS=`echo $CFLAGS | tr ' ' '\012' |grep -v "^\-fomit-frame-pointer$"|tr '\012' ' '`
4856 FOOPT3=`echo $CFLAGS | tr ' ' '\012' |grep "^\-O3$"|tr '\012' ' '`
4857 CFLAGS=`echo $CFLAGS | tr ' ' '\012' |grep -v "^\-O3$"|tr '\012' ' '`
4858 FOOPT2=`echo $CFLAGS | tr ' ' '\012' |grep "^\-O2$"|tr '\012' ' '`
4859 CFLAGS=`echo $CFLAGS | tr ' ' '\012' |grep -v "^\-O2$"|tr '\012' ' '`
4860 FOOPT1=`echo $CFLAGS | tr ' ' '\012' |grep "^\-O1$"|tr '\012' ' '`
4861 TMPF=`echo $CFLAGS | tr ' ' '\012' |grep "^\-O$"|tr '\012' ' '`
4862 FOOPT1="$FOOPT1$TMPF"
4863 CFLAGS=`echo $CFLAGS | tr ' ' '\012' |grep -v "^\-O1$"|grep -v "^\-O$"|tr '\012' ' '`
4864 FOOPT0=`echo $CFLAGS | tr ' ' '\012' |grep "^\-O0$"|tr '\012' ' '`
4865 CFLAGS=`echo $CFLAGS | tr ' ' '\012' |grep -v "^\-O0$"|tr '\012' ' '`
4866
4867 if test "$FOOPT0" != "" ; then
4868 TO3FLAGS=`echo $TO3FLAGS | sed 's,\-O[123 ],-O0 ,g' | sed 's,\-O$,-O0 ,g'`
4869 TO2FLAGS=`echo $TO2FLAGS | sed 's,\-O[123 ],-O0 ,g' | sed 's,\-O$,-O0 ,g'`
4870 else
4871 if test "$FOOPT1" != "" ; then
4872 TO3FLAGS=`echo $TO3FLAGS | sed 's,\-O[2-3],-O1,g'`
4873 TO2FLAGS=`echo $TO2FLAGS | sed 's,\-O[2-3],-O1,g'`
4874 else
4875 if test "$FOOPT2" != "" ; then
4876 TO3FLAGS=`echo "$TO3FLAGS" | sed 's,\-O3,-O2,g'`
4877 TO2FLAGS=`echo "$TO2FLAGS" | sed 's,\-O3,-O2,g'`
4878 fi
4879 fi
4880 fi
4881
4882 if test "$FDEBUG" != "" ; then
4883 TO3FLAGS=`echo $TO3FLAGS | sed 's,\-fomit-frame-pointer,,g'`
4884 TO2FLAGS=`echo $TO2FLAGS | sed 's,\-fomit-frame-pointer,,g'`
4885 fi
4886
4887 if test "$FOMITF" != "" ; then
4888 TO3FLAGS="$TO3FLAGS $FOMITF"
4889 fi
4890
4891 # Step 1: set the variable "system" to hold the name and version number
4892 # for the system. This can usually be done via the "uname" command, but
4893 # there are a few systems, like Next, where this doesn't work.
4894
4895 for ac_prog in makeinfo
4896 do
4897 # Extract the first word of "$ac_prog", so it can be a program name with args.
4898 set dummy $ac_prog; ac_word=$2
4899 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4900 printf %s "checking for $ac_word... " >&6; }
4901 if test ${ac_cv_prog_MAKEINFO+y}
4902 then :
4903 printf %s "(cached) " >&6
4904 else $as_nop
4905 if test -n "$MAKEINFO"; then
4906 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
4907 else
4908 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4909 for as_dir in $PATH
4910 do
4911 IFS=$as_save_IFS
4912 case $as_dir in #(((
4913 '') as_dir=./ ;;
4914 */) ;;
4915 *) as_dir=$as_dir/ ;;
4916 esac
4917 for ac_exec_ext in '' $ac_executable_extensions; do
4918 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4919 ac_cv_prog_MAKEINFO="$ac_prog"
4920 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4921 break 2
4922 fi
4923 done
4924 done
4925 IFS=$as_save_IFS
4926
4927 fi
4928 fi
4929 MAKEINFO=$ac_cv_prog_MAKEINFO
4930 if test -n "$MAKEINFO"; then
4931 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
4932 printf "%s\n" "$MAKEINFO" >&6; }
4933 else
4934 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4935 printf "%s\n" "no" >&6; }
4936 fi
4937
4938
4939 test -n "$MAKEINFO" && break
4940 done
4941 test -n "$MAKEINFO" || MAKEINFO=""false""
4942
4943
4944
4945 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking system version (for dynamic loading)" >&5
4946 printf %s "checking system version (for dynamic loading)... " >&6; }
4947 if machine=`uname -m` ; then true; else machine=unknown ; fi
4948
4949 if test -f /usr/lib/NextStep/software_version; then
4950 system=NEXTSTEP-`${AWK} '/3/,/3/' /usr/lib/NextStep/software_version`
4951 else
4952 system=`uname -s`-`uname -r`
4953 if test "$?" -ne 0 ; then
4954 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unknown (cannot find uname command)" >&5
4955 printf "%s\n" "unknown (cannot find uname command)" >&6; }
4956 system=unknown
4957 else
4958 # Special check for weird MP-RAS system (uname returns weird
4959 # results, and the version is kept in special file).
4960
4961 if test -r /etc/.relid -a "X`uname -n`" = "X`uname -s`" ; then
4962 system="MP-RAS-`${AWK} '{print $3}' '/etc/.relid'`"
4963 fi
4964 if test "`uname -s`" = "AIX" ; then
4965 system=AIX-`uname -v`.`uname -r`
4966 fi
4967 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $system" >&5
4968 printf "%s\n" "$system" >&6; }
4969 fi
4970 fi
4971
4972 case $use in
4973 *macosx)
4974 ac_header= ac_cache=
4975 for ac_item in $ac_header_c_list
4976 do
4977 if test $ac_cache; then
4978 ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default"
4979 if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then
4980 printf "%s\n" "#define $ac_item 1" >> confdefs.h
4981 fi
4982 ac_header= ac_cache=
4983 elif test $ac_header; then
4984 ac_cache=$ac_item
4985 else
4986 ac_header=$ac_item
4987 fi
4988 done
4989
4990
4991
4992
4993
4994
4995
4996
4997 if test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes
4998 then :
4999
5000 printf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h
5001
5002 fi
5003 for ac_header in malloc/malloc.h
5004 do :
5005 ac_fn_c_check_header_compile "$LINENO" "malloc/malloc.h" "ac_cv_header_malloc_malloc_h" "$ac_includes_default"
5006 if test "x$ac_cv_header_malloc_malloc_h" = xyes
5007 then :
5008 printf "%s\n" "#define HAVE_MALLOC_MALLOC_H 1" >>confdefs.h
5009
5010 else $as_nop
5011 as_fn_error $? "need malloc.h on macosx" "$LINENO" 5
5012 fi
5013
5014 done
5015 ac_fn_c_check_member "$LINENO" "struct _malloc_zone_t" "memalign" "ac_cv_member_struct__malloc_zone_t_memalign" "
5016 #include <malloc/malloc.h>
5017
5018 "
5019 if test "x$ac_cv_member_struct__malloc_zone_t_memalign" = xyes
5020 then :
5021
5022 printf "%s\n" "#define HAVE_MALLOC_ZONE_MEMALIGN 1" >>confdefs.h
5023
5024 fi
5025
5026
5027 ;;
5028 esac
5029
5030 for ac_header in setjmp.h
5031 do :
5032 ac_fn_c_check_header_compile "$LINENO" "setjmp.h" "ac_cv_header_setjmp_h" "$ac_includes_default"
5033 if test "x$ac_cv_header_setjmp_h" = xyes
5034 then :
5035 printf "%s\n" "#define HAVE_SETJMP_H 1" >>confdefs.h
5036 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking sizeof jmp_buf" >&5
5037 printf %s "checking sizeof jmp_buf... " >&6; }
5038 if test "$cross_compiling" = yes
5039 then :
5040 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5041 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
5042 as_fn_error $? "cannot run test program while cross compiling
5043 See \`config.log' for more details" "$LINENO" 5; }
5044 else $as_nop
5045 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5046 /* end confdefs.h. */
5047
5048 #include <stdio.h>
5049 #include <setjmp.h>
5050
5051 int
5052 main (void)
5053 {
5054
5055 FILE *fp=fopen("conftest1","w");
5056 fprintf(fp,"%lu\n",sizeof(jmp_buf));
5057 fclose(fp);
5058
5059 ;
5060 return 0;
5061 }
5062 _ACEOF
5063 if ac_fn_c_try_run "$LINENO"
5064 then :
5065 sizeof_jmp_buf=`cat conftest1`
5066 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $sizeof_jmp_buf" >&5
5067 printf "%s\n" "$sizeof_jmp_buf" >&6; }
5068
5069 printf "%s\n" "#define SIZEOF_JMP_BUF $sizeof_jmp_buf" >>confdefs.h
5070
5071 else $as_nop
5072 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5073 printf "%s\n" "no" >&6; }
5074 fi
5075 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5076 conftest.$ac_objext conftest.beam conftest.$ac_ext
5077 fi
5078
5079 fi
5080
5081 done
5082
5083 # sysconf
5084 for ac_header in unistd.h
5085 do :
5086 ac_fn_c_check_header_compile "$LINENO" "unistd.h" "ac_cv_header_unistd_h" "$ac_includes_default"
5087 if test "x$ac_cv_header_unistd_h" = xyes
5088 then :
5089 printf "%s\n" "#define HAVE_UNISTD_H 1" >>confdefs.h
5090 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sysconf in -lc" >&5
5091 printf %s "checking for sysconf in -lc... " >&6; }
5092 if test ${ac_cv_lib_c_sysconf+y}
5093 then :
5094 printf %s "(cached) " >&6
5095 else $as_nop
5096 ac_check_lib_save_LIBS=$LIBS
5097 LIBS="-lc $LIBS"
5098 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5099 /* end confdefs.h. */
5100
5101 /* Override any GCC internal prototype to avoid an error.
5102 Use char because int might match the return type of a GCC
5103 builtin and then its argument prototype would still apply. */
5104 char sysconf ();
5105 int
5106 main (void)
5107 {
5108 return sysconf ();
5109 ;
5110 return 0;
5111 }
5112 _ACEOF
5113 if ac_fn_c_try_link "$LINENO"
5114 then :
5115 ac_cv_lib_c_sysconf=yes
5116 else $as_nop
5117 ac_cv_lib_c_sysconf=no
5118 fi
5119 rm -f core conftest.err conftest.$ac_objext conftest.beam \
5120 conftest$ac_exeext conftest.$ac_ext
5121 LIBS=$ac_check_lib_save_LIBS
5122 fi
5123 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_sysconf" >&5
5124 printf "%s\n" "$ac_cv_lib_c_sysconf" >&6; }
5125 if test "x$ac_cv_lib_c_sysconf" = xyes
5126 then :
5127 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking _SC_CLK_TCK" >&5
5128 printf %s "checking _SC_CLK_TCK... " >&6; }
5129 hz=0
5130 if test "$cross_compiling" = yes
5131 then :
5132 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5133 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
5134 as_fn_error $? "cannot run test program while cross compiling
5135 See \`config.log' for more details" "$LINENO" 5; }
5136 else $as_nop
5137 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5138 /* end confdefs.h. */
5139
5140 #include <unistd.h>
5141 #include <stdio.h>
5142
5143 int
5144 main (void)
5145 {
5146
5147 FILE *fp=fopen("conftest1","w");
5148 fprintf(fp,"%lu\n",sysconf(_SC_CLK_TCK));
5149 fclose(fp);
5150
5151 ;
5152 return 0;
5153 }
5154 _ACEOF
5155 if ac_fn_c_try_run "$LINENO"
5156 then :
5157
5158 fi
5159 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5160 conftest.$ac_objext conftest.beam conftest.$ac_ext
5161 fi
5162
5163 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hz" >&5
5164 printf "%s\n" "$hz" >&6; }
5165 fi
5166
5167 fi
5168
5169 done
5170
5171
5172 rm -f makedefsafter
5173
5174 # Check whether --enable-dynsysgmp was given.
5175 if test ${enable_dynsysgmp+y}
5176 then :
5177 enableval=$enable_dynsysgmp;
5178 fi
5179
5180
5181 if test "$enable_dynsysgmp" != "no" ; then
5182 for ac_header in gmp.h
5183 do :
5184 ac_fn_c_check_header_compile "$LINENO" "gmp.h" "ac_cv_header_gmp_h" "$ac_includes_default"
5185 if test "x$ac_cv_header_gmp_h" = xyes
5186 then :
5187 printf "%s\n" "#define HAVE_GMP_H 1" >>confdefs.h
5188 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for __gmpz_init in -lgmp" >&5
5189 printf %s "checking for __gmpz_init in -lgmp... " >&6; }
5190 if test ${ac_cv_lib_gmp___gmpz_init+y}
5191 then :
5192 printf %s "(cached) " >&6
5193 else $as_nop
5194 ac_check_lib_save_LIBS=$LIBS
5195 LIBS="-lgmp $LIBS"
5196 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5197 /* end confdefs.h. */
5198
5199 /* Override any GCC internal prototype to avoid an error.
5200 Use char because int might match the return type of a GCC
5201 builtin and then its argument prototype would still apply. */
5202 char __gmpz_init ();
5203 int
5204 main (void)
5205 {
5206 return __gmpz_init ();
5207 ;
5208 return 0;
5209 }
5210 _ACEOF
5211 if ac_fn_c_try_link "$LINENO"
5212 then :
5213 ac_cv_lib_gmp___gmpz_init=yes
5214 else $as_nop
5215 ac_cv_lib_gmp___gmpz_init=no
5216 fi
5217 rm -f core conftest.err conftest.$ac_objext conftest.beam \
5218 conftest$ac_exeext conftest.$ac_ext
5219 LIBS=$ac_check_lib_save_LIBS
5220 fi
5221 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gmp___gmpz_init" >&5
5222 printf "%s\n" "$ac_cv_lib_gmp___gmpz_init" >&6; }
5223 if test "x$ac_cv_lib_gmp___gmpz_init" = xyes
5224 then :
5225 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for external gmp version" >&5
5226 printf %s "checking for external gmp version... " >&6; }
5227 if test "$cross_compiling" = yes
5228 then :
5229 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5230 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
5231 as_fn_error $? "cannot run test program while cross compiling
5232 See \`config.log' for more details" "$LINENO" 5; }
5233 else $as_nop
5234 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5235 /* end confdefs.h. */
5236
5237 #include <gmp.h>
5238
5239 int
5240 main (void)
5241 {
5242
5243 #if __GNU_MP_VERSION > 3
5244 return 0;
5245 #else
5246 return -1;
5247 #endif
5248
5249 ;
5250 return 0;
5251 }
5252 _ACEOF
5253 if ac_fn_c_try_run "$LINENO"
5254 then :
5255 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: good" >&5
5256 printf "%s\n" "good" >&6; }
5257 TLIBS="$TLIBS -lgmp"
5258 echo "#include \"gmp.h\"" >foo.c
5259 echo "int main() {return 0;}" >>foo.c
5260 MP_INCLUDE=`cpp foo.c | $AWK '/(\/|\\\\)gmp.h/ {if (!i) print $3;i=1}' | tr -d '"'`
5261 rm -f foo.c
5262 fi
5263 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5264 conftest.$ac_objext conftest.beam conftest.$ac_ext
5265 fi
5266
5267 fi
5268
5269 fi
5270
5271 done
5272
5273 if test "$MP_INCLUDE" = "" ; then
5274 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Cannot use dynamic gmp lib" >&5
5275 printf "%s\n" "Cannot use dynamic gmp lib" >&6; }
5276 fi
5277
5278 fi
5279
5280
5281 if test "$MP_INCLUDE" = "" ; then
5282
5283 GMPDIR=gmp4
5284 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking doing configure in gmp directory" >&5
5285 printf %s "checking doing configure in gmp directory... " >&6; }
5286 echo
5287 echo "#"
5288 echo "#"
5289 echo "# -------------------"
5290 echo "# Subconfigure of GMP"
5291 echo "#"
5292 echo "#"
5293
5294 if test "$use_common_binary" = "yes"; then
5295 cd $GMPDIR && ./configure --build=$host && cd ..
5296 else
5297 cd $GMPDIR && ./configure --host=$host --build=$build && cd ..
5298 fi
5299 #MY_SUBDIRS="$MY_SUBDIRS $GMPDIR"
5300
5301 echo "#"
5302 echo "#"
5303 echo "#"
5304 echo "# Subconfigure of GMP done"
5305 echo "# ------------------------"
5306 echo "#"
5307
5308 if test "$MP_INCLUDE" = "" ; then
5309 cp $GMPDIR/gmp.h h/gmp.h
5310 MP_INCLUDE=h/gmp.h
5311 MPFILES=gmp_all
5312 fi
5313 fi
5314
5315 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for leading underscore in object symbols" >&5
5316 printf %s "checking for leading underscore in object symbols... " >&6; }
5317 cat>foo.c <<EOFF
5318 #include <math.h>
5319 #include <stdio.h>
5320 int main() {FILE *f;double d=0.0;getc(f);d=cos(d);return 0;}
5321 EOFF
5322 $CC -c foo.c -o foo.o
5323 if nm foo.o |grep " U " | grep "_cos" >/dev/null || nm foo.o |grep " U " | grep " _getc" >/dev/null ; then
5324 LEADING_UNDERSCORE=1
5325
5326 printf "%s\n" "#define LEADING_UNDERSCORE 1" >>confdefs.h
5327
5328 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: \"yes\"" >&5
5329 printf "%s\n" "\"yes\"" >&6; }
5330 else
5331 LEADING_UNDERSCORE=""
5332 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: \"no\"" >&5
5333 printf "%s\n" "\"no\"" >&6; }
5334 fi
5335
5336
5337 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking \"for GNU ld option -Map\"" >&5
5338 printf %s "checking \"for GNU ld option -Map\"... " >&6; }
5339 touch map
5340 $CC -o foo -Wl,-Map map foo.o >/dev/null 2>&1
5341 if test `cat map | wc -l` != "0" ; then
5342 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: \"yes\"" >&5
5343 printf "%s\n" "\"yes\"" >&6; }
5344
5345 printf "%s\n" "#define HAVE_GNU_LD 1" >>confdefs.h
5346
5347 GNU_LD=1
5348 else
5349 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: \"no\"" >&5
5350 printf "%s\n" "\"no\"" >&6; }
5351 GNU_LD=
5352 fi
5353 rm -f foo.c foo.o foo map
5354
5355 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for size of gmp limbs" >&5
5356 printf %s "checking for size of gmp limbs... " >&6; }
5357 if test "$cross_compiling" = yes
5358 then :
5359 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5360 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
5361 as_fn_error $? "cannot run test program while cross compiling
5362 See \`config.log' for more details" "$LINENO" 5; }
5363 else $as_nop
5364 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5365 /* end confdefs.h. */
5366
5367 #include <stdio.h>
5368 #include "$MP_INCLUDE"
5369
5370 int
5371 main (void)
5372 {
5373
5374 FILE *fp=fopen("conftest1","w");
5375 fprintf(fp,"%u",sizeof(mp_limb_t));
5376 fclose(fp);
5377
5378 ;
5379 return 0;
5380 }
5381 _ACEOF
5382 if ac_fn_c_try_run "$LINENO"
5383 then :
5384 mpsize=`cat conftest1`
5385 else $as_nop
5386 as_fn_error $? "Cannot determine mpsize" "$LINENO" 5
5387 fi
5388 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5389 conftest.$ac_objext conftest.beam conftest.$ac_ext
5390 fi
5391
5392
5393 printf "%s\n" "#define MP_LIMB_BYTES $mpsize" >>confdefs.h
5394
5395 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $mpsize" >&5
5396 printf "%s\n" "$mpsize" >&6; }
5397
5398 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking _SHORT_LIMB" >&5
5399 printf %s "checking _SHORT_LIMB... " >&6; }
5400 if test "$cross_compiling" = yes
5401 then :
5402 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5403 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
5404 as_fn_error $? "cannot run test program while cross compiling
5405 See \`config.log' for more details" "$LINENO" 5; }
5406 else $as_nop
5407 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5408 /* end confdefs.h. */
5409
5410 #include <stdio.h>
5411 #include "$MP_INCLUDE"
5412
5413 int
5414 main (void)
5415 {
5416
5417 #ifdef _SHORT_LIMB
5418 return 0;
5419 #else
5420 return 1;
5421 #endif
5422
5423 ;
5424 return 0;
5425 }
5426 _ACEOF
5427 if ac_fn_c_try_run "$LINENO"
5428 then :
5429
5430 printf "%s\n" "#define __SHORT_LIMB 1" >>confdefs.h
5431 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5432 printf "%s\n" "yes" >&6; }
5433 else $as_nop
5434 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5435 printf "%s\n" "no" >&6; }
5436 fi
5437 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5438 conftest.$ac_objext conftest.beam conftest.$ac_ext
5439 fi
5440
5441
5442 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking _LONG_LONG_LIMB" >&5
5443 printf %s "checking _LONG_LONG_LIMB... " >&6; }
5444 if test "$cross_compiling" = yes
5445 then :
5446 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5447 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
5448 as_fn_error $? "cannot run test program while cross compiling
5449 See \`config.log' for more details" "$LINENO" 5; }
5450 else $as_nop
5451 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5452 /* end confdefs.h. */
5453
5454 #include <stdio.h>
5455 #include "$MP_INCLUDE"
5456
5457 int
5458 main (void)
5459 {
5460
5461 #ifdef _LONG_LONG_LIMB
5462 return 0;
5463 #else
5464 return 1;
5465 #endif
5466
5467 ;
5468 return 0;
5469 }
5470 _ACEOF
5471 if ac_fn_c_try_run "$LINENO"
5472 then :
5473
5474 printf "%s\n" "#define __LONG_LONG_LIMB 1" >>confdefs.h
5475 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5476 printf "%s\n" "yes" >&6; }
5477 else $as_nop
5478 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5479 printf "%s\n" "no" >&6; }
5480 fi
5481 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5482 conftest.$ac_objext conftest.beam conftest.$ac_ext
5483 fi
5484
5485
5486 GMP=1
5487
5488 printf "%s\n" "#define GMP 1" >>confdefs.h
5489
5490
5491
5492 echo > makedefsafter
5493 echo "MPFILES=$MPFILES" >> makedefsafter
5494 echo "PATCHED_SYMBOLS=$PATCHED_SYMBOLS" >> makedefsafter
5495 echo >> makedefsafter
5496
5497
5498
5499 #
5500 # X windows
5501 #
5502
5503 if test "$enable_xgcl" = "yes" ; then
5504
5505
5506 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for X" >&5
5507 printf %s "checking for X... " >&6; }
5508
5509
5510 # Check whether --with-x was given.
5511 if test ${with_x+y}
5512 then :
5513 withval=$with_x;
5514 fi
5515
5516 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
5517 if test "x$with_x" = xno; then
5518 # The user explicitly disabled X.
5519 have_x=disabled
5520 else
5521 case $x_includes,$x_libraries in #(
5522 *\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5;; #(
5523 *,NONE | NONE,*) if test ${ac_cv_have_x+y}
5524 then :
5525 printf %s "(cached) " >&6
5526 else $as_nop
5527 # One or both of the vars are not set, and there is no cached value.
5528 ac_x_includes=no
5529 ac_x_libraries=no
5530 # Do we need to do anything special at all?
5531 ac_save_LIBS=$LIBS
5532 LIBS="-lX11 $LIBS"
5533 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5534 /* end confdefs.h. */
5535 #include <X11/Xlib.h>
5536 int
5537 main (void)
5538 {
5539 XrmInitialize ()
5540 ;
5541 return 0;
5542 }
5543 _ACEOF
5544 if ac_fn_c_try_link "$LINENO"
5545 then :
5546 # We can compile and link X programs with no special options.
5547 ac_x_includes=
5548 ac_x_libraries=
5549 fi
5550 rm -f core conftest.err conftest.$ac_objext conftest.beam \
5551 conftest$ac_exeext conftest.$ac_ext
5552 LIBS="$ac_save_LIBS"
5553 # If that didn't work, only try xmkmf and file system searches
5554 # for native compilation.
5555 if test x"$ac_x_includes" = xno && test "$cross_compiling" = no
5556 then :
5557 rm -f -r conftest.dir
5558 if mkdir conftest.dir; then
5559 cd conftest.dir
5560 cat >Imakefile <<'_ACEOF'
5561 incroot:
5562 @echo incroot='${INCROOT}'
5563 usrlibdir:
5564 @echo usrlibdir='${USRLIBDIR}'
5565 libdir:
5566 @echo libdir='${LIBDIR}'
5567 _ACEOF
5568 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
5569 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
5570 for ac_var in incroot usrlibdir libdir; do
5571 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
5572 done
5573 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
5574 for ac_extension in a so sl dylib la dll; do
5575 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
5576 test -f "$ac_im_libdir/libX11.$ac_extension"; then
5577 ac_im_usrlibdir=$ac_im_libdir; break
5578 fi
5579 done
5580 # Screen out bogus values from the imake configuration. They are
5581 # bogus both because they are the default anyway, and because
5582 # using them would break gcc on systems where it needs fixed includes.
5583 case $ac_im_incroot in
5584 /usr/include) ac_x_includes= ;;
5585 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
5586 esac
5587 case $ac_im_usrlibdir in
5588 /usr/lib | /usr/lib64 | /lib | /lib64) ;;
5589 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
5590 esac
5591 fi
5592 cd ..
5593 rm -f -r conftest.dir
5594 fi
5595
5596 # Standard set of common directories for X headers.
5597 # Check X11 before X11Rn because it is often a symlink to the current release.
5598 ac_x_header_dirs='
5599 /usr/X11/include
5600 /usr/X11R7/include
5601 /usr/X11R6/include
5602 /usr/X11R5/include
5603 /usr/X11R4/include
5604
5605 /usr/include/X11
5606 /usr/include/X11R7
5607 /usr/include/X11R6
5608 /usr/include/X11R5
5609 /usr/include/X11R4
5610
5611 /usr/local/X11/include
5612 /usr/local/X11R7/include
5613 /usr/local/X11R6/include
5614 /usr/local/X11R5/include
5615 /usr/local/X11R4/include
5616
5617 /usr/local/include/X11
5618 /usr/local/include/X11R7
5619 /usr/local/include/X11R6
5620 /usr/local/include/X11R5
5621 /usr/local/include/X11R4
5622
5623 /opt/X11/include
5624
5625 /usr/X386/include
5626 /usr/x386/include
5627 /usr/XFree86/include/X11
5628
5629 /usr/include
5630 /usr/local/include
5631 /usr/unsupported/include
5632 /usr/athena/include
5633 /usr/local/x11r5/include
5634 /usr/lpp/Xamples/include
5635
5636 /usr/openwin/include
5637 /usr/openwin/share/include'
5638
5639 if test "$ac_x_includes" = no; then
5640 # Guess where to find include files, by looking for Xlib.h.
5641 # First, try using that file with no special directory specified.
5642 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5643 /* end confdefs.h. */
5644 #include <X11/Xlib.h>
5645 _ACEOF
5646 if ac_fn_c_try_cpp "$LINENO"
5647 then :
5648 # We can compile using X headers with no special include directory.
5649 ac_x_includes=
5650 else $as_nop
5651 for ac_dir in $ac_x_header_dirs; do
5652 if test -r "$ac_dir/X11/Xlib.h"; then
5653 ac_x_includes=$ac_dir
5654 break
5655 fi
5656 done
5657 fi
5658 rm -f conftest.err conftest.i conftest.$ac_ext
5659 fi # $ac_x_includes = no
5660
5661 if test "$ac_x_libraries" = no; then
5662 # Check for the libraries.
5663 # See if we find them without any special options.
5664 # Don't add to $LIBS permanently.
5665 ac_save_LIBS=$LIBS
5666 LIBS="-lX11 $LIBS"
5667 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5668 /* end confdefs.h. */
5669 #include <X11/Xlib.h>
5670 int
5671 main (void)
5672 {
5673 XrmInitialize ()
5674 ;
5675 return 0;
5676 }
5677 _ACEOF
5678 if ac_fn_c_try_link "$LINENO"
5679 then :
5680 LIBS=$ac_save_LIBS
5681 # We can link X programs with no special library path.
5682 ac_x_libraries=
5683 else $as_nop
5684 LIBS=$ac_save_LIBS
5685 for ac_dir in `printf "%s\n" "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
5686 do
5687 # Don't even attempt the hair of trying to link an X program!
5688 for ac_extension in a so sl dylib la dll; do
5689 if test -r "$ac_dir/libX11.$ac_extension"; then
5690 ac_x_libraries=$ac_dir
5691 break 2
5692 fi
5693 done
5694 done
5695 fi
5696 rm -f core conftest.err conftest.$ac_objext conftest.beam \
5697 conftest$ac_exeext conftest.$ac_ext
5698 fi # $ac_x_libraries = no
5699
5700 fi
5701 # Record the results.
5702 case $ac_x_includes,$ac_x_libraries in #(
5703 no,* | *,no | *\'*) :
5704 # Didn't find X, or a directory has "'" in its name.
5705 ac_cv_have_x="have_x=no" ;; #(
5706 *) :
5707 # Record where we found X for the cache.
5708 ac_cv_have_x="have_x=yes\
5709 ac_x_includes='$ac_x_includes'\
5710 ac_x_libraries='$ac_x_libraries'" ;;
5711 esac
5712 fi
5713 ;; #(
5714 *) have_x=yes;;
5715 esac
5716 eval "$ac_cv_have_x"
5717 fi # $with_x != no
5718
5719 if test "$have_x" != yes; then
5720 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
5721 printf "%s\n" "$have_x" >&6; }
5722 no_x=yes
5723 else
5724 # If each of the values was on the command line, it overrides each guess.
5725 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
5726 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
5727 # Update the cache value to reflect the command line values.
5728 ac_cv_have_x="have_x=yes\
5729 ac_x_includes='$x_includes'\
5730 ac_x_libraries='$x_libraries'"
5731 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
5732 printf "%s\n" "libraries $x_libraries, headers $x_includes" >&6; }
5733 fi
5734
5735
5736 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for main in -lX11" >&5
5737 printf %s "checking for main in -lX11... " >&6; }
5738 if test ${ac_cv_lib_X11_main+y}
5739 then :
5740 printf %s "(cached) " >&6
5741 else $as_nop
5742 ac_check_lib_save_LIBS=$LIBS
5743 LIBS="-lX11 $LIBS"
5744 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5745 /* end confdefs.h. */
5746
5747
5748 int
5749 main (void)
5750 {
5751 return main ();
5752 ;
5753 return 0;
5754 }
5755 _ACEOF
5756 if ac_fn_c_try_link "$LINENO"
5757 then :
5758 ac_cv_lib_X11_main=yes
5759 else $as_nop
5760 ac_cv_lib_X11_main=no
5761 fi
5762 rm -f core conftest.err conftest.$ac_objext conftest.beam \
5763 conftest$ac_exeext conftest.$ac_ext
5764 LIBS=$ac_check_lib_save_LIBS
5765 fi
5766 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_X11_main" >&5
5767 printf "%s\n" "$ac_cv_lib_X11_main" >&6; }
5768 if test "x$ac_cv_lib_X11_main" = xyes
5769 then :
5770 X_LIBS="$X_LIBS -lX11"
5771 printf "%s\n" "#define HAVE_XGCL 1" >>confdefs.h
5772
5773 else $as_nop
5774 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: missing x libraries -- cannot compile xgcl" >&5
5775 printf "%s\n" "missing x libraries -- cannot compile xgcl" >&6; }
5776 fi
5777
5778
5779 fi
5780
5781
5782
5783
5784
5785 #
5786 # Dynamic loading
5787 #
5788
5789 if test "$enable_dlopen" = "yes" ; then
5790
5791 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
5792 printf %s "checking for dlopen in -ldl... " >&6; }
5793 if test ${ac_cv_lib_dl_dlopen+y}
5794 then :
5795 printf %s "(cached) " >&6
5796 else $as_nop
5797 ac_check_lib_save_LIBS=$LIBS
5798 LIBS="-ldl $LIBS"
5799 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5800 /* end confdefs.h. */
5801
5802 /* Override any GCC internal prototype to avoid an error.
5803 Use char because int might match the return type of a GCC
5804 builtin and then its argument prototype would still apply. */
5805 char dlopen ();
5806 int
5807 main (void)
5808 {
5809 return dlopen ();
5810 ;
5811 return 0;
5812 }
5813 _ACEOF
5814 if ac_fn_c_try_link "$LINENO"
5815 then :
5816 ac_cv_lib_dl_dlopen=yes
5817 else $as_nop
5818 ac_cv_lib_dl_dlopen=no
5819 fi
5820 rm -f core conftest.err conftest.$ac_objext conftest.beam \
5821 conftest$ac_exeext conftest.$ac_ext
5822 LIBS=$ac_check_lib_save_LIBS
5823 fi
5824 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
5825 printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; }
5826 if test "x$ac_cv_lib_dl_dlopen" = xyes
5827 then :
5828 printf "%s\n" "#define HAVE_LIBDL 1" >>confdefs.h
5829
5830 LIBS="-ldl $LIBS"
5831
5832 else $as_nop
5833 as_fn_error $? "Cannot find dlopen" "$LINENO" 5
5834 fi
5835
5836
5837 TLIBS="$TLIBS -ldl -rdynamic"
5838 assert_arg_to_cflags -fPIC
5839
5840 printf "%s\n" "#define USE_DLOPEN 1" >>confdefs.h
5841
5842
5843 fi
5844
5845 if test "$enable_statsysbfd" = "yes" || test "$enable_dynsysbfd" = "yes" ; then
5846 for ac_header in bfd.h
5847 do :
5848 ac_fn_c_check_header_compile "$LINENO" "bfd.h" "ac_cv_header_bfd_h" "$ac_includes_default"
5849 if test "x$ac_cv_header_bfd_h" = xyes
5850 then :
5851 printf "%s\n" "#define HAVE_BFD_H 1" >>confdefs.h
5852 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for bfd_init in -lbfd" >&5
5853 printf %s "checking for bfd_init in -lbfd... " >&6; }
5854 if test ${ac_cv_lib_bfd_bfd_init+y}
5855 then :
5856 printf %s "(cached) " >&6
5857 else $as_nop
5858 ac_check_lib_save_LIBS=$LIBS
5859 LIBS="-lbfd -liberty $LIBS"
5860 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5861 /* end confdefs.h. */
5862
5863 /* Override any GCC internal prototype to avoid an error.
5864 Use char because int might match the return type of a GCC
5865 builtin and then its argument prototype would still apply. */
5866 char bfd_init ();
5867 int
5868 main (void)
5869 {
5870 return bfd_init ();
5871 ;
5872 return 0;
5873 }
5874 _ACEOF
5875 if ac_fn_c_try_link "$LINENO"
5876 then :
5877 ac_cv_lib_bfd_bfd_init=yes
5878 else $as_nop
5879 ac_cv_lib_bfd_bfd_init=no
5880 fi
5881 rm -f core conftest.err conftest.$ac_objext conftest.beam \
5882 conftest$ac_exeext conftest.$ac_ext
5883 LIBS=$ac_check_lib_save_LIBS
5884 fi
5885 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bfd_bfd_init" >&5
5886 printf "%s\n" "$ac_cv_lib_bfd_bfd_init" >&6; }
5887 if test "x$ac_cv_lib_bfd_bfd_init" = xyes
5888 then :
5889 #
5890 # Old binutils appear to need CONST defined to const
5891 #
5892 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking need to define CONST for bfd" >&5
5893 printf %s "checking need to define CONST for bfd... " >&6; }
5894 if test "$cross_compiling" = yes
5895 then :
5896 as_fn_error $? "cannot use bfd" "$LINENO" 5
5897 else $as_nop
5898 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5899 /* end confdefs.h. */
5900
5901 #define IN_GCC
5902 #include <bfd.h>
5903
5904 int
5905 main (void)
5906 {
5907
5908 symbol_info t;
5909
5910 ;
5911 return 0;
5912 }
5913 _ACEOF
5914 if ac_fn_c_try_run "$LINENO"
5915 then :
5916 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5917 printf "%s\n" "no" >&6; }
5918 else $as_nop
5919 if test "$cross_compiling" = yes
5920 then :
5921 as_fn_error $? "cannot use bfd" "$LINENO" 5
5922 else $as_nop
5923 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5924 /* end confdefs.h. */
5925
5926 #define CONST const
5927 #define IN_GCC
5928 #include <bfd.h>
5929
5930 int
5931 main (void)
5932 {
5933
5934 symbol_info t;
5935
5936 ;
5937 return 0;
5938 }
5939 _ACEOF
5940 if ac_fn_c_try_run "$LINENO"
5941 then :
5942 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5943 printf "%s\n" "yes" >&6; }
5944
5945 printf "%s\n" "#define NEED_CONST 1" >>confdefs.h
5946
5947 else $as_nop
5948 as_fn_error $? "cannot use bfd" "$LINENO" 5
5949 fi
5950 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5951 conftest.$ac_objext conftest.beam conftest.$ac_ext
5952 fi
5953
5954 fi
5955 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5956 conftest.$ac_objext conftest.beam conftest.$ac_ext
5957 fi
5958
5959
5960 fi
5961
5962 fi
5963
5964 done
5965
5966
5967 printf "%s\n" "#define HAVE_LIBBFD 1" >>confdefs.h
5968
5969
5970 #
5971 # BFD boolean syntax
5972 #
5973
5974 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for useable bfd_boolean" >&5
5975 printf %s "checking for useable bfd_boolean... " >&6; }
5976 if test "$cross_compiling" = yes
5977 then :
5978 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5979 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
5980 as_fn_error $? "cannot run test program while cross compiling
5981 See \`config.log' for more details" "$LINENO" 5; }
5982 else $as_nop
5983 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5984 /* end confdefs.h. */
5985
5986 #define IN_GCC
5987 #include <bfd.h>
5988 bfd_boolean foo() {return FALSE;}
5989
5990 int
5991 main (void)
5992 {
5993
5994 ;
5995 return 0;
5996 }
5997 _ACEOF
5998 if ac_fn_c_try_run "$LINENO"
5999 then :
6000 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6001 printf "%s\n" "yes" >&6; }
6002
6003 printf "%s\n" "#define HAVE_BFD_BOOLEAN 1" >>confdefs.h
6004
6005 else $as_nop
6006 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6007 printf "%s\n" "no" >&6; }
6008 fi
6009 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6010 conftest.$ac_objext conftest.beam conftest.$ac_ext
6011 fi
6012
6013
6014 #
6015 # bfd_link_info.output_bfd minimal configure change check
6016 #
6017
6018 ac_fn_c_check_member "$LINENO" "struct bfd_link_info" "output_bfd" "ac_cv_member_struct_bfd_link_info_output_bfd" "
6019 #include <bfd.h>
6020 #include <bfdlink.h>
6021
6022 "
6023 if test "x$ac_cv_member_struct_bfd_link_info_output_bfd" = xyes
6024 then :
6025
6026 printf "%s\n" "#define HAVE_OUTPUT_BFD 1" >>confdefs.h
6027
6028 fi
6029
6030
6031
6032 #
6033 # FIXME: Need to workaround mingw before this point -- CM
6034 #
6035 if test "$enable_statsysbfd" = "yes" && ! $CC -v 2>&1 | fgrep ming > /dev/null ; then
6036 echo 'int main() {bfd_init();bfd_openr("/dev/null",0);return 0;}' >foo.c
6037 MP=`$CC -Wl,-M -static -o foo foo.c -lbfd -liberty -ldl 2>&1 | grep -v : | tr '()' '\012\012' | $AWK '{print $NF}' | sort | uniq`
6038 rm -f foo.c foo
6039 if echo $MP | tr ' ' '\012' | grep libbfd.a >/dev/null; then
6040 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 ? \"/\" : \"\")}'`"
6041 else
6042 as_fn_error $? "cannot locate external libbfd.a" "$LINENO" 5
6043 fi
6044 if echo $MP | tr ' ' '\012' | grep libiberty.a >/dev/null ; then
6045 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 ? \"/\" : \"\")}'`"
6046 else
6047 as_fn_error $? "cannot locate external libiberty.a" "$LINENO" 5
6048 fi
6049 BUILD_BFD=copy_bfd
6050 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for inflate in -lz" >&5
6051 printf %s "checking for inflate in -lz... " >&6; }
6052 if test ${ac_cv_lib_z_inflate+y}
6053 then :
6054 printf %s "(cached) " >&6
6055 else $as_nop
6056 ac_check_lib_save_LIBS=$LIBS
6057 LIBS="-lz $LIBS"
6058 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6059 /* end confdefs.h. */
6060
6061 /* Override any GCC internal prototype to avoid an error.
6062 Use char because int might match the return type of a GCC
6063 builtin and then its argument prototype would still apply. */
6064 char inflate ();
6065 int
6066 main (void)
6067 {
6068 return inflate ();
6069 ;
6070 return 0;
6071 }
6072 _ACEOF
6073 if ac_fn_c_try_link "$LINENO"
6074 then :
6075 ac_cv_lib_z_inflate=yes
6076 else $as_nop
6077 ac_cv_lib_z_inflate=no
6078 fi
6079 rm -f core conftest.err conftest.$ac_objext conftest.beam \
6080 conftest$ac_exeext conftest.$ac_ext
6081 LIBS=$ac_check_lib_save_LIBS
6082 fi
6083 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_inflate" >&5
6084 printf "%s\n" "$ac_cv_lib_z_inflate" >&6; }
6085 if test "x$ac_cv_lib_z_inflate" = xyes
6086 then :
6087 TLIBS="$TLIBS -lz"
6088 else $as_nop
6089 as_fn_error $? "Need zlib for bfd linking" "$LINENO" 5
6090 fi
6091
6092 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlsym in -ldl" >&5
6093 printf %s "checking for dlsym in -ldl... " >&6; }
6094 if test ${ac_cv_lib_dl_dlsym+y}
6095 then :
6096 printf %s "(cached) " >&6
6097 else $as_nop
6098 ac_check_lib_save_LIBS=$LIBS
6099 LIBS="-ldl $LIBS"
6100 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6101 /* end confdefs.h. */
6102
6103 /* Override any GCC internal prototype to avoid an error.
6104 Use char because int might match the return type of a GCC
6105 builtin and then its argument prototype would still apply. */
6106 char dlsym ();
6107 int
6108 main (void)
6109 {
6110 return dlsym ();
6111 ;
6112 return 0;
6113 }
6114 _ACEOF
6115 if ac_fn_c_try_link "$LINENO"
6116 then :
6117 ac_cv_lib_dl_dlsym=yes
6118 else $as_nop
6119 ac_cv_lib_dl_dlsym=no
6120 fi
6121 rm -f core conftest.err conftest.$ac_objext conftest.beam \
6122 conftest$ac_exeext conftest.$ac_ext
6123 LIBS=$ac_check_lib_save_LIBS
6124 fi
6125 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlsym" >&5
6126 printf "%s\n" "$ac_cv_lib_dl_dlsym" >&6; }
6127 if test "x$ac_cv_lib_dl_dlsym" = xyes
6128 then :
6129 TLIBS="$TLIBS -ldl"
6130 else $as_nop
6131 as_fn_error $? "Need libdl for bfd linking" "$LINENO" 5
6132 fi
6133
6134
6135
6136
6137
6138 else
6139 TLIBS="$TLIBS -lbfd -liberty -ldl"
6140 fi
6141 fi
6142
6143 # Check whether --enable-xdr was given.
6144 if test ${enable_xdr+y}
6145 then :
6146 enableval=$enable_xdr;
6147 fi
6148
6149
6150 if test "$enable_xdr" != "no" ; then
6151 XDR_LIB=""
6152 ac_fn_c_check_func "$LINENO" "xdr_double" "ac_cv_func_xdr_double"
6153 if test "x$ac_cv_func_xdr_double" = xyes
6154 then :
6155 XDR_LIB=" "
6156 else $as_nop
6157 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for xdr_double in -ltirpc" >&5
6158 printf %s "checking for xdr_double in -ltirpc... " >&6; }
6159 if test ${ac_cv_lib_tirpc_xdr_double+y}
6160 then :
6161 printf %s "(cached) " >&6
6162 else $as_nop
6163 ac_check_lib_save_LIBS=$LIBS
6164 LIBS="-ltirpc $LIBS"
6165 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6166 /* end confdefs.h. */
6167
6168 /* Override any GCC internal prototype to avoid an error.
6169 Use char because int might match the return type of a GCC
6170 builtin and then its argument prototype would still apply. */
6171 char xdr_double ();
6172 int
6173 main (void)
6174 {
6175 return xdr_double ();
6176 ;
6177 return 0;
6178 }
6179 _ACEOF
6180 if ac_fn_c_try_link "$LINENO"
6181 then :
6182 ac_cv_lib_tirpc_xdr_double=yes
6183 else $as_nop
6184 ac_cv_lib_tirpc_xdr_double=no
6185 fi
6186 rm -f core conftest.err conftest.$ac_objext conftest.beam \
6187 conftest$ac_exeext conftest.$ac_ext
6188 LIBS=$ac_check_lib_save_LIBS
6189 fi
6190 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tirpc_xdr_double" >&5
6191 printf "%s\n" "$ac_cv_lib_tirpc_xdr_double" >&6; }
6192 if test "x$ac_cv_lib_tirpc_xdr_double" = xyes
6193 then :
6194 XDR_LIB=tirpc
6195 else $as_nop
6196 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for xdr_double in -lgssrpc" >&5
6197 printf %s "checking for xdr_double in -lgssrpc... " >&6; }
6198 if test ${ac_cv_lib_gssrpc_xdr_double+y}
6199 then :
6200 printf %s "(cached) " >&6
6201 else $as_nop
6202 ac_check_lib_save_LIBS=$LIBS
6203 LIBS="-lgssrpc $LIBS"
6204 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6205 /* end confdefs.h. */
6206
6207 /* Override any GCC internal prototype to avoid an error.
6208 Use char because int might match the return type of a GCC
6209 builtin and then its argument prototype would still apply. */
6210 char xdr_double ();
6211 int
6212 main (void)
6213 {
6214 return xdr_double ();
6215 ;
6216 return 0;
6217 }
6218 _ACEOF
6219 if ac_fn_c_try_link "$LINENO"
6220 then :
6221 ac_cv_lib_gssrpc_xdr_double=yes
6222 else $as_nop
6223 ac_cv_lib_gssrpc_xdr_double=no
6224 fi
6225 rm -f core conftest.err conftest.$ac_objext conftest.beam \
6226 conftest$ac_exeext conftest.$ac_ext
6227 LIBS=$ac_check_lib_save_LIBS
6228 fi
6229 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gssrpc_xdr_double" >&5
6230 printf "%s\n" "$ac_cv_lib_gssrpc_xdr_double" >&6; }
6231 if test "x$ac_cv_lib_gssrpc_xdr_double" = xyes
6232 then :
6233 XDR_LIB=gssrpc
6234 else $as_nop
6235 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for xdr_double in -lrpc" >&5
6236 printf %s "checking for xdr_double in -lrpc... " >&6; }
6237 if test ${ac_cv_lib_rpc_xdr_double+y}
6238 then :
6239 printf %s "(cached) " >&6
6240 else $as_nop
6241 ac_check_lib_save_LIBS=$LIBS
6242 LIBS="-lrpc $LIBS"
6243 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6244 /* end confdefs.h. */
6245
6246 /* Override any GCC internal prototype to avoid an error.
6247 Use char because int might match the return type of a GCC
6248 builtin and then its argument prototype would still apply. */
6249 char xdr_double ();
6250 int
6251 main (void)
6252 {
6253 return xdr_double ();
6254 ;
6255 return 0;
6256 }
6257 _ACEOF
6258 if ac_fn_c_try_link "$LINENO"
6259 then :
6260 ac_cv_lib_rpc_xdr_double=yes
6261 else $as_nop
6262 ac_cv_lib_rpc_xdr_double=no
6263 fi
6264 rm -f core conftest.err conftest.$ac_objext conftest.beam \
6265 conftest$ac_exeext conftest.$ac_ext
6266 LIBS=$ac_check_lib_save_LIBS
6267 fi
6268 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rpc_xdr_double" >&5
6269 printf "%s\n" "$ac_cv_lib_rpc_xdr_double" >&6; }
6270 if test "x$ac_cv_lib_rpc_xdr_double" = xyes
6271 then :
6272 XDR_LIB=rpc
6273 else $as_nop
6274 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for xdr_double in -loncrpc" >&5
6275 printf %s "checking for xdr_double in -loncrpc... " >&6; }
6276 if test ${ac_cv_lib_oncrpc_xdr_double+y}
6277 then :
6278 printf %s "(cached) " >&6
6279 else $as_nop
6280 ac_check_lib_save_LIBS=$LIBS
6281 LIBS="-loncrpc $LIBS"
6282 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6283 /* end confdefs.h. */
6284
6285 /* Override any GCC internal prototype to avoid an error.
6286 Use char because int might match the return type of a GCC
6287 builtin and then its argument prototype would still apply. */
6288 char xdr_double ();
6289 int
6290 main (void)
6291 {
6292 return xdr_double ();
6293 ;
6294 return 0;
6295 }
6296 _ACEOF
6297 if ac_fn_c_try_link "$LINENO"
6298 then :
6299 ac_cv_lib_oncrpc_xdr_double=yes
6300 else $as_nop
6301 ac_cv_lib_oncrpc_xdr_double=no
6302 fi
6303 rm -f core conftest.err conftest.$ac_objext conftest.beam \
6304 conftest$ac_exeext conftest.$ac_ext
6305 LIBS=$ac_check_lib_save_LIBS
6306 fi
6307 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_oncrpc_xdr_double" >&5
6308 printf "%s\n" "$ac_cv_lib_oncrpc_xdr_double" >&6; }
6309 if test "x$ac_cv_lib_oncrpc_xdr_double" = xyes
6310 then :
6311 XDR_LIB=oncrpc
6312 fi
6313
6314 fi
6315
6316 fi
6317
6318 fi
6319
6320 fi
6321
6322
6323 if test "$XDR_LIB" != ""; then
6324
6325 printf "%s\n" "#define HAVE_XDR 1" >>confdefs.h
6326
6327 if test "$XDR_LIB" != " "; then
6328 TLIBS="$TLIBS -l$XDR_LIB"
6329 add_arg_to_cflags -I/usr/include/$XDR_LIB
6330 fi
6331 fi
6332 fi
6333
6334
6335 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking __builtin_clzl" >&5
6336 printf %s "checking __builtin_clzl... " >&6; }
6337 if test "$cross_compiling" = yes
6338 then :
6339 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6340 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
6341 as_fn_error $? "cannot run test program while cross compiling
6342 See \`config.log' for more details" "$LINENO" 5; }
6343 else $as_nop
6344 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6345 /* end confdefs.h. */
6346
6347 #include <stdio.h>
6348 #include <unistd.h>
6349
6350 int
6351 main (void)
6352 {
6353
6354 unsigned long u;
6355 long j;
6356 if (__builtin_clzl(0)!=sizeof(long)*8)
6357 return -1;
6358 for (u=1,j=sizeof(long)*8-1;j>=0;j--,u<<=1)
6359 if (__builtin_clzl(u)!=j)
6360 return -1;
6361
6362 ;
6363 return 0;
6364 }
6365 _ACEOF
6366 if ac_fn_c_try_run "$LINENO"
6367 then :
6368 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6369 printf "%s\n" "yes" >&6; }
6370
6371 printf "%s\n" "#define HAVE_CLZL 1" >>confdefs.h
6372
6373 else $as_nop
6374 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6375 printf "%s\n" "no" >&6; }
6376 fi
6377 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6378 conftest.$ac_objext conftest.beam conftest.$ac_ext
6379 fi
6380
6381
6382 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking __builtin_ctzl" >&5
6383 printf %s "checking __builtin_ctzl... " >&6; }
6384 if test "$cross_compiling" = yes
6385 then :
6386 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6387 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
6388 as_fn_error $? "cannot run test program while cross compiling
6389 See \`config.log' for more details" "$LINENO" 5; }
6390 else $as_nop
6391 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6392 /* end confdefs.h. */
6393
6394 #include <stdio.h>
6395 #include <unistd.h>
6396
6397 int
6398 main (void)
6399 {
6400
6401 unsigned long u;
6402 long j;
6403 if (__builtin_ctzl(0)!=sizeof(long)*8)
6404 return -1;
6405 for (u=1,j=0;j<sizeof(long)*8-1;j++,u<<=1)
6406 if (__builtin_ctzl(u)!=j)
6407 return -1;
6408
6409 ;
6410 return 0;
6411 }
6412 _ACEOF
6413 if ac_fn_c_try_run "$LINENO"
6414 then :
6415 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6416 printf "%s\n" "yes" >&6; }
6417
6418 printf "%s\n" "#define HAVE_CTZL 1" >>confdefs.h
6419
6420 else $as_nop
6421 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6422 printf "%s\n" "no" >&6; }
6423 fi
6424 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6425 conftest.$ac_objext conftest.beam conftest.$ac_ext
6426 fi
6427
6428
6429
6430 case $use in
6431 sh4*) ;; #FIXME, these exceptions needed as of gcc 4.7
6432 hppa*) ;; #FIXME
6433 powerpc*) ;; #FIXME
6434 alpha*) ;; #FIXME
6435 ia64*) ;; #FIXME
6436 *)
6437 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking __builtin___clear_cache" >&5
6438 printf %s "checking __builtin___clear_cache... " >&6; }
6439 if test "$cross_compiling" = yes
6440 then :
6441 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6442 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
6443 as_fn_error $? "cannot run test program while cross compiling
6444 See \`config.log' for more details" "$LINENO" 5; }
6445 else $as_nop
6446 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6447 /* end confdefs.h. */
6448
6449 int
6450 main (void)
6451 {
6452
6453 void *v,*ve;
6454 __builtin___clear_cache(v,ve);
6455
6456 ;
6457 return 0;
6458 }
6459 _ACEOF
6460 if ac_fn_c_try_run "$LINENO"
6461 then :
6462
6463 printf "%s\n" "#define HAVE_BUILTIN_CLEAR_CACHE 1" >>confdefs.h
6464
6465 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6466 printf "%s\n" "yes" >&6; }
6467 else $as_nop
6468 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6469 printf "%s\n" "no" >&6; }
6470 fi
6471 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6472 conftest.$ac_objext conftest.beam conftest.$ac_ext
6473 fi
6474 ;;
6475 esac
6476
6477 #AC_CONFIG_SUBDIRS($MY_SUBDIRS)
6478
6479 # Find where Data begins. This is used by the storage allocation
6480 # mechanism, in the PAGE macro. This offset is subtracted from
6481 # addresses, in calculating a page for an address in the heap.
6482
6483 # The cast to long int works around a bug in the HP C Compiler
6484 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6485 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6486 # This bug is HP SR number 8606223364.
6487 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
6488 printf %s "checking size of long... " >&6; }
6489 if test ${ac_cv_sizeof_long+y}
6490 then :
6491 printf %s "(cached) " >&6
6492 else $as_nop
6493 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"
6494 then :
6495
6496 else $as_nop
6497 if test "$ac_cv_type_long" = yes; then
6498 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6499 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
6500 as_fn_error 77 "cannot compute sizeof (long)
6501 See \`config.log' for more details" "$LINENO" 5; }
6502 else
6503 ac_cv_sizeof_long=0
6504 fi
6505 fi
6506
6507 fi
6508 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
6509 printf "%s\n" "$ac_cv_sizeof_long" >&6; }
6510
6511
6512
6513 printf "%s\n" "#define SIZEOF_LONG $ac_cv_sizeof_long" >>confdefs.h
6514
6515
6516
6517 if test "$ac_cv_sizeof_long" = "4" ; then
6518 assert_arg_to_cflags "-D_TIME_BITS=64 -D_FILE_OFFSET_BITS=64"
6519 fi
6520
6521 ac_fn_c_check_header_compile "$LINENO" "time.h" "ac_cv_header_time_h" "$ac_includes_default"
6522 if test "x$ac_cv_header_time_h" = xyes
6523 then :
6524 printf "%s\n" "#define HAVE_TIME_H 1" >>confdefs.h
6525
6526 fi
6527 ac_fn_c_check_header_compile "$LINENO" "sys/time.h" "ac_cv_header_sys_time_h" "$ac_includes_default"
6528 if test "x$ac_cv_header_sys_time_h" = xyes
6529 then :
6530 printf "%s\n" "#define HAVE_SYS_TIME_H 1" >>confdefs.h
6531
6532 fi
6533
6534
6535 # The cast to long int works around a bug in the HP C Compiler
6536 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6537 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6538 # This bug is HP SR number 8606223364.
6539 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of time_t" >&5
6540 printf %s "checking size of time_t... " >&6; }
6541 if test ${ac_cv_sizeof_time_t+y}
6542 then :
6543 printf %s "(cached) " >&6
6544 else $as_nop
6545 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (time_t))" "ac_cv_sizeof_time_t" "#include <time.h>
6546 "
6547 then :
6548
6549 else $as_nop
6550 if test "$ac_cv_type_time_t" = yes; then
6551 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6552 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
6553 as_fn_error 77 "cannot compute sizeof (time_t)
6554 See \`config.log' for more details" "$LINENO" 5; }
6555 else
6556 ac_cv_sizeof_time_t=0
6557 fi
6558 fi
6559
6560 fi
6561 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_time_t" >&5
6562 printf "%s\n" "$ac_cv_sizeof_time_t" >&6; }
6563
6564
6565
6566 printf "%s\n" "#define SIZEOF_TIME_T $ac_cv_sizeof_time_t" >>confdefs.h
6567
6568
6569 if test "$use" != "mingw" ; then
6570 if test "$ac_cv_sizeof_time_t" != "8" ; then
6571 as_fn_error $? "Cannot define a 64 bit time_t" "$LINENO" 5
6572 fi
6573 fi
6574
6575
6576
6577 #### Memory areas and alignment
6578
6579 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for byte order" >&5
6580 printf %s "checking for byte order... " >&6; }
6581 if test "$cross_compiling" = yes
6582 then :
6583 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6584 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
6585 as_fn_error $? "cannot run test program while cross compiling
6586 See \`config.log' for more details" "$LINENO" 5; }
6587 else $as_nop
6588 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6589 /* end confdefs.h. */
6590
6591 int
6592 main (void)
6593 {
6594
6595 /* Are we little or big endian? Adapted from Harbison&Steele. */
6596 union {long l;char c[sizeof(long)];} u;
6597 u.l = 1;
6598 return u.c[sizeof(long)-1] ? 1 : 0;
6599
6600 ;
6601 return 0;
6602 }
6603 _ACEOF
6604 if ac_fn_c_try_run "$LINENO"
6605 then :
6606
6607 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: little" >&5
6608 printf "%s\n" "little" >&6; }
6609 else $as_nop
6610 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: big" >&5
6611 printf "%s\n" "big" >&6; }
6612
6613 printf "%s\n" "#define WORDS_BIGENDIAN 1" >>confdefs.h
6614
6615 fi
6616 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6617 conftest.$ac_objext conftest.beam conftest.$ac_ext
6618 fi
6619
6620
6621
6622
6623 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for word order" >&5
6624 printf %s "checking for word order... " >&6; }
6625 if test "$cross_compiling" = yes
6626 then :
6627 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6628 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
6629 as_fn_error $? "cannot run test program while cross compiling
6630 See \`config.log' for more details" "$LINENO" 5; }
6631 else $as_nop
6632 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6633 /* end confdefs.h. */
6634
6635 int
6636 main (void)
6637 {
6638
6639 /* Are we little or big endian? Adapted from Harbison&Steele. */
6640 union {double d;int l[sizeof(double)/sizeof(int)];} u;
6641 u.d = 1.0;
6642 return u.l[sizeof(double)/sizeof(int)-1] ? 0 : 1;
6643
6644 ;
6645 return 0;
6646 }
6647 _ACEOF
6648 if ac_fn_c_try_run "$LINENO"
6649 then :
6650 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: little" >&5
6651 printf "%s\n" "little" >&6; }
6652 else $as_nop
6653 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: big" >&5
6654 printf "%s\n" "big" >&6; }
6655
6656 printf "%s\n" "#define DOUBLE_BIGENDIAN 1" >>confdefs.h
6657
6658 fi
6659 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6660 conftest.$ac_objext conftest.beam conftest.$ac_ext
6661 fi
6662
6663
6664
6665 # pagewidth
6666 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pagewidth" >&5
6667 printf %s "checking for pagewidth... " >&6; }
6668 case $use in
6669 mips*) min_pagewidth=14;;
6670 *) min_pagewidth=12;;
6671 esac
6672 if test "$cross_compiling" = yes
6673 then :
6674 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6675 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
6676 as_fn_error $? "cannot run test program while cross compiling
6677 See \`config.log' for more details" "$LINENO" 5; }
6678 else $as_nop
6679 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6680 /* end confdefs.h. */
6681
6682 #include <stdio.h>
6683 #include <unistd.h>
6684 #ifdef __CYGWIN__
6685 #define getpagesize() 4096
6686 #endif
6687
6688 int
6689 main (void)
6690 {
6691
6692 size_t i=getpagesize(),j;
6693 FILE *fp=fopen("conftest1","w");
6694 for (j=0;i>>=1;j++);
6695 j=j<$min_pagewidth ? $min_pagewidth : j;
6696 fprintf(fp,"%u",j);
6697
6698 ;
6699 return 0;
6700 }
6701 _ACEOF
6702 if ac_fn_c_try_run "$LINENO"
6703 then :
6704 PAGEWIDTH=`cat conftest1`
6705 else $as_nop
6706 PAGEWIDTH=0
6707 fi
6708 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6709 conftest.$ac_objext conftest.beam conftest.$ac_ext
6710 fi
6711
6712 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PAGEWIDTH" >&5
6713 printf "%s\n" "$PAGEWIDTH" >&6; }
6714
6715 printf "%s\n" "#define PAGEWIDTH $PAGEWIDTH" >>confdefs.h
6716
6717
6718
6719 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for required object alignment" >&5
6720 printf %s "checking for required object alignment... " >&6; }
6721 if test "$cross_compiling" = yes
6722 then :
6723 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6724 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
6725 as_fn_error $? "cannot run test program while cross compiling
6726 See \`config.log' for more details" "$LINENO" 5; }
6727 else $as_nop
6728 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6729 /* end confdefs.h. */
6730
6731 #include <stdio.h>
6732 #include <stdlib.h>
6733 #define EXTER
6734 #define INLINE
6735 #include "$MP_INCLUDE"
6736 #include "./h/enum.h"
6737 #define OBJ_ALIGN
6738 #include "./h/type.h"
6739 #include "./h/lu.h"
6740 #include "./h/object.h"
6741
6742 int
6743 main (void)
6744 {
6745
6746 unsigned long i;
6747 FILE *fp=fopen("conftest1","w");
6748 for (i=1;i && NOT_OBJECT_ALIGNED(i); i<<=1);
6749 if (!i) return -1;
6750 fprintf(fp,"%lu",i);
6751 fclose(fp);
6752 return 0;
6753
6754 ;
6755 return 0;
6756 }
6757 _ACEOF
6758 if ac_fn_c_try_run "$LINENO"
6759 then :
6760 obj_align=`cat conftest1`
6761 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $obj_align" >&5
6762 printf "%s\n" "$obj_align" >&6; }
6763
6764 printf "%s\n" "#define OBJ_ALIGNMENT $obj_align" >>confdefs.h
6765
6766 else $as_nop
6767 as_fn_error $? "Cannot find object alignent" "$LINENO" 5
6768 fi
6769 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6770 conftest.$ac_objext conftest.beam conftest.$ac_ext
6771 fi
6772
6773
6774 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C extension variable alignment" >&5
6775 printf %s "checking for C extension variable alignment... " >&6; }
6776 if test "$cross_compiling" = yes
6777 then :
6778 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6779 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
6780 as_fn_error $? "cannot run test program while cross compiling
6781 See \`config.log' for more details" "$LINENO" 5; }
6782 else $as_nop
6783 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6784 /* end confdefs.h. */
6785
6786 int
6787 main (void)
6788 {
6789
6790 char *v __attribute__ ((aligned ($obj_align)));
6791
6792 ;
6793 return 0;
6794 }
6795 _ACEOF
6796 if ac_fn_c_try_run "$LINENO"
6797 then :
6798 obj_align="__attribute__ ((aligned ($obj_align)))"
6799 else $as_nop
6800 as_fn_error $? "Need alignment attributes" "$LINENO" 5
6801 fi
6802 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6803 conftest.$ac_objext conftest.beam conftest.$ac_ext
6804 fi
6805
6806 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $obj_align" >&5
6807 printf "%s\n" "$obj_align" >&6; }
6808
6809 printf "%s\n" "#define OBJ_ALIGN $obj_align" >>confdefs.h
6810
6811
6812 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C extension noreturn function attribute" >&5
6813 printf %s "checking for C extension noreturn function attribute... " >&6; }
6814 if test "$cross_compiling" = yes
6815 then :
6816 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6817 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
6818 as_fn_error $? "cannot run test program while cross compiling
6819 See \`config.log' for more details" "$LINENO" 5; }
6820 else $as_nop
6821 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6822 /* end confdefs.h. */
6823
6824 int
6825 main (void)
6826 {
6827
6828 extern int v() __attribute__ ((noreturn));
6829
6830 ;
6831 return 0;
6832 }
6833 _ACEOF
6834 if ac_fn_c_try_run "$LINENO"
6835 then :
6836 no_return="__attribute__ ((noreturn))"
6837 else $as_nop
6838 no_return=
6839 fi
6840 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6841 conftest.$ac_objext conftest.beam conftest.$ac_ext
6842 fi
6843
6844 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $no_return" >&5
6845 printf "%s\n" "$no_return" >&6; }
6846
6847 printf "%s\n" "#define NO_RETURN $no_return" >>confdefs.h
6848
6849
6850 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking sizeof struct contblock" >&5
6851 printf %s "checking sizeof struct contblock... " >&6; }
6852
6853 if test "$cross_compiling" = yes
6854 then :
6855 as_fn_error $? "Cannot find sizeof struct contblock" "$LINENO" 5
6856 else $as_nop
6857 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6858 /* end confdefs.h. */
6859
6860 #include <stdio.h>
6861 #include <stdlib.h>
6862 #define EXTER
6863 #define INLINE
6864 #include "$MP_INCLUDE"
6865 #include "h/enum.h"
6866 #include "h/type.h"
6867 #include "h/lu.h"
6868 #include "h/object.h"
6869
6870 int
6871 main (void)
6872 {
6873
6874 FILE *f=fopen("conftest1","w");
6875 fprintf(f,"%u",sizeof(struct contblock));
6876 fclose(f);
6877
6878 ;
6879 return 0;
6880 }
6881 _ACEOF
6882 if ac_fn_c_try_run "$LINENO"
6883 then :
6884 sizeof_contblock=`cat conftest1`
6885 else $as_nop
6886 as_fn_error $? "Cannot find sizeof struct contblock" "$LINENO" 5
6887 fi
6888 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6889 conftest.$ac_objext conftest.beam conftest.$ac_ext
6890 fi
6891
6892
6893 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $sizeof_contblock" >&5
6894 printf "%s\n" "$sizeof_contblock" >&6; }
6895
6896 printf "%s\n" "#define SIZEOF_CONTBLOCK $sizeof_contblock" >>confdefs.h
6897
6898
6899 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sbrk" >&5
6900 printf %s "checking for sbrk... " >&6; }
6901 HAVE_SBRK=""
6902 if test "$cross_compiling" = yes
6903 then :
6904 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no: WARNING you must be able to emulate sbrk: as on mingw or macosx" >&5
6905 printf "%s\n" "no: WARNING you must be able to emulate sbrk: as on mingw or macosx" >&6; }
6906 else $as_nop
6907 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6908 /* end confdefs.h. */
6909
6910 #include <unistd.h>
6911 #include <stdio.h>
6912
6913 int
6914 main (void)
6915 {
6916
6917 FILE *f;
6918 if (!(f=fopen("conftest1","w")))
6919 return -1;
6920 fprintf(f,"%p",sbrk(0));
6921
6922 ;
6923 return 0;
6924 }
6925 _ACEOF
6926 if ac_fn_c_try_run "$LINENO"
6927 then :
6928 HAVE_SBRK=1;{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6929 printf "%s\n" "yes" >&6; }
6930 else $as_nop
6931 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no: WARNING you must be able to emulate sbrk: as on mingw or macosx" >&5
6932 printf "%s\n" "no: WARNING you must be able to emulate sbrk: as on mingw or macosx" >&6; }
6933 fi
6934 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6935 conftest.$ac_objext conftest.beam conftest.$ac_ext
6936 fi
6937
6938
6939 if test "$use" = "386-macosx" ; then
6940 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: emulating sbrk for mac" >&5
6941 printf "%s\n" "emulating sbrk for mac" >&6; };
6942 HAVE_SBRK=0
6943 fi
6944
6945 if test "$HAVE_SBRK" = "1" ; then
6946
6947 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ADDR_NO_RANDOMIZE constant" >&5
6948 printf %s "checking for ADDR_NO_RANDOMIZE constant... " >&6; }
6949 if test "$cross_compiling" = yes
6950 then :
6951 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6952 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
6953 as_fn_error $? "cannot run test program while cross compiling
6954 See \`config.log' for more details" "$LINENO" 5; }
6955 else $as_nop
6956 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6957 /* end confdefs.h. */
6958
6959 #include <sys/personality.h>
6960 #include <stdio.h>
6961
6962 int
6963 main (void)
6964 {
6965
6966 FILE *f;
6967 if (!(f=fopen("conftest1","w"))) return -1;
6968 fprintf(f,"%x",ADDR_NO_RANDOMIZE);
6969
6970 ;
6971 return 0;
6972 }
6973 _ACEOF
6974 if ac_fn_c_try_run "$LINENO"
6975 then :
6976 ADDR_NO_RANDOMIZE=`cat conftest1`
6977 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes $ADDR_NO_RANDOMIZE" >&5
6978 printf "%s\n" "yes $ADDR_NO_RANDOMIZE" >&6; }
6979 else $as_nop
6980 ADDR_NO_RANDOMIZE=0
6981 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no assuming 0x40000" >&5
6982 printf "%s\n" "no assuming 0x40000" >&6; }
6983
6984 printf "%s\n" "#define ADDR_NO_RANDOMIZE 0x40000" >>confdefs.h
6985
6986 fi
6987 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6988 conftest.$ac_objext conftest.beam conftest.$ac_ext
6989 fi
6990
6991
6992 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ADDR_COMPAT_LAYOUT constant" >&5
6993 printf %s "checking for ADDR_COMPAT_LAYOUT constant... " >&6; }
6994 if test "$cross_compiling" = yes
6995 then :
6996 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6997 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
6998 as_fn_error $? "cannot run test program while cross compiling
6999 See \`config.log' for more details" "$LINENO" 5; }
7000 else $as_nop
7001 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7002 /* end confdefs.h. */
7003
7004 #include <sys/personality.h>
7005 #include <stdio.h>
7006
7007 int
7008 main (void)
7009 {
7010
7011 FILE *f;
7012 if (!(f=fopen("conftest1","w"))) return -1;
7013 fprintf(f,"%x",ADDR_COMPAT_LAYOUT);
7014
7015 ;
7016 return 0;
7017 }
7018 _ACEOF
7019 if ac_fn_c_try_run "$LINENO"
7020 then :
7021 ADDR_COMPAT_LAYOUT=`cat conftest1`
7022 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes $ADDR_COMPAT_LAYOUT" >&5
7023 printf "%s\n" "yes $ADDR_COMPAT_LAYOUT" >&6; }
7024 else $as_nop
7025 ADDR_COMPAT_LAYOUT=0
7026 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7027 printf "%s\n" "no" >&6; }
7028
7029 printf "%s\n" "#define ADDR_COMPAT_LAYOUT 0" >>confdefs.h
7030
7031 fi
7032 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7033 conftest.$ac_objext conftest.beam conftest.$ac_ext
7034 fi
7035
7036
7037 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ADDR_LIMIT_3GB constant" >&5
7038 printf %s "checking for ADDR_LIMIT_3GB constant... " >&6; }
7039 if test "$cross_compiling" = yes
7040 then :
7041 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7042 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
7043 as_fn_error $? "cannot run test program while cross compiling
7044 See \`config.log' for more details" "$LINENO" 5; }
7045 else $as_nop
7046 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7047 /* end confdefs.h. */
7048
7049 #include <sys/personality.h>
7050 #include <stdio.h>
7051
7052 int
7053 main (void)
7054 {
7055
7056 FILE *f;
7057 if (!(f=fopen("conftest1","w"))) return -1;
7058 fprintf(f,"%x",ADDR_LIMIT_3GB);
7059
7060 ;
7061 return 0;
7062 }
7063 _ACEOF
7064 if ac_fn_c_try_run "$LINENO"
7065 then :
7066 ADDR_LIMIT_3GB=`cat conftest1`
7067 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes $ADDR_LIMIT_3GB" >&5
7068 printf "%s\n" "yes $ADDR_LIMIT_3GB" >&6; }
7069 else $as_nop
7070 ADDR_LIMIT_3GB=0
7071 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7072 printf "%s\n" "no" >&6; }
7073
7074 printf "%s\n" "#define ADDR_LIMIT_3GB 0" >>confdefs.h
7075
7076 fi
7077 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7078 conftest.$ac_objext conftest.beam conftest.$ac_ext
7079 fi
7080
7081
7082 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for personality(ADDR_NO_RANDOMIZE) support" >&5
7083 printf %s "checking for personality(ADDR_NO_RANDOMIZE) support... " >&6; }
7084 if test "$cross_compiling" = yes
7085 then :
7086 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7087 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
7088 as_fn_error $? "cannot run test program while cross compiling
7089 See \`config.log' for more details" "$LINENO" 5; }
7090 else $as_nop
7091 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7092 /* end confdefs.h. */
7093
7094 #include "h/unrandomize_headers.h"
7095 int main(int argc,char *argv[],char *envp[]) {
7096 #include "h/unrandomize.h"
7097 return 0;
7098 }
7099
7100 _ACEOF
7101 if ac_fn_c_try_run "$LINENO"
7102 then :
7103 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7104 printf "%s\n" "yes" >&6; }
7105
7106 printf "%s\n" "#define CAN_UNRANDOMIZE_SBRK 1" >>confdefs.h
7107
7108 else $as_nop
7109 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7110 printf "%s\n" "no" >&6; }
7111 fi
7112 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7113 conftest.$ac_objext conftest.beam conftest.$ac_ext
7114 fi
7115
7116
7117 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking that sbrk is (now) non-random" >&5
7118 printf %s "checking that sbrk is (now) non-random... " >&6; }
7119 SBRK=0
7120 if test "$cross_compiling" = yes
7121 then :
7122 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7123 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
7124 as_fn_error $? "cannot run test program while cross compiling
7125 See \`config.log' for more details" "$LINENO" 5; }
7126 else $as_nop
7127 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7128 /* end confdefs.h. */
7129
7130 #include "h/unrandomize_headers.h"
7131 int main(int argc,char * argv[],char * envp[]) {
7132 FILE *f;
7133 #ifdef CAN_UNRANDOMIZE_SBRK
7134 #include "h/unrandomize.h"
7135 #endif
7136 if (!(f=fopen("conftest1","w")))
7137 return -1;
7138 fprintf(f,"%p",sbrk(0));
7139 return 0;
7140 }
7141
7142 _ACEOF
7143 if ac_fn_c_try_run "$LINENO"
7144 then :
7145 SBRK=`cat conftest1`
7146 fi
7147 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7148 conftest.$ac_objext conftest.beam conftest.$ac_ext
7149 fi
7150
7151 if test "$SBRK" = "0" ; then
7152 as_fn_error $? "cannot trap sbrk" "$LINENO" 5
7153 fi
7154
7155 SBRK1=0
7156 if test "$cross_compiling" = yes
7157 then :
7158 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7159 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
7160 as_fn_error $? "cannot run test program while cross compiling
7161 See \`config.log' for more details" "$LINENO" 5; }
7162 else $as_nop
7163 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7164 /* end confdefs.h. */
7165
7166 #include "h/unrandomize_headers.h"
7167 int main(int argc,char * argv[],char * envp[]) {
7168 FILE *f;
7169 #ifdef CAN_UNRANDOMIZE_SBRK
7170 #include "h/unrandomize.h"
7171 #endif
7172 if (!(f=fopen("conftest1","w"))) return -1;
7173 fprintf(f,"%p",sbrk(0));
7174 return 0;
7175 }
7176
7177 _ACEOF
7178 if ac_fn_c_try_run "$LINENO"
7179 then :
7180 SBRK1=`cat conftest1`
7181 fi
7182 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7183 conftest.$ac_objext conftest.beam conftest.$ac_ext
7184 fi
7185
7186 if test "$SBRK1" = "0" ; then
7187 as_fn_error $? "cannot trap sbrk" "$LINENO" 5
7188 fi
7189 if test "$SBRK" = "$SBRK1" ; then
7190 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7191 printf "%s\n" "yes" >&6; }
7192 else
7193 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7194 printf "%s\n" "no" >&6; }
7195 echo "Cannot build with randomized sbrk. Your options:"
7196 echo " - upgrade to a kernel/libc that knows about personality(ADDR_NO_RANDOMIZE)"
7197 echo " - recompile your kernel with CONFIG_COMPAT_BRK (if it has that option)"
7198 echo " - run sysctl kernel.randomize_va_space=0 before using gcl"
7199 as_fn_error $? "exiting" "$LINENO" 5
7200 fi
7201 fi
7202
7203 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking CSTACK_DIRECTION" >&5
7204 printf %s "checking CSTACK_DIRECTION... " >&6; }
7205 if test "$cross_compiling" = yes
7206 then :
7207 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7208 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
7209 as_fn_error $? "cannot run test program while cross compiling
7210 See \`config.log' for more details" "$LINENO" 5; }
7211 else $as_nop
7212 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7213 /* end confdefs.h. */
7214
7215 #include "h/unrandomize_headers.h"
7216 int main(int argc,char **argv,char **envp) {
7217 FILE *fp = fopen("conftest1","w");
7218 #ifdef CAN_UNRANDOMIZE_SBRK
7219 #include "h/unrandomize.h"
7220 #endif
7221 fprintf(fp,"%d",(alloca(sizeof(void *))>alloca(sizeof(void *))) ? -1 : 1);
7222 fclose(fp);
7223 return 0;
7224 }
7225 _ACEOF
7226 if ac_fn_c_try_run "$LINENO"
7227 then :
7228 cstack_direction=`cat conftest1`
7229 else $as_nop
7230 cstack_direction=0
7231 fi
7232 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7233 conftest.$ac_objext conftest.beam conftest.$ac_ext
7234 fi
7235
7236
7237 printf "%s\n" "#define CSTACK_DIRECTION $cstack_direction" >>confdefs.h
7238
7239 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cstack_direction" >&5
7240 printf "%s\n" "$cstack_direction" >&6; }
7241
7242 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking finding CSTACK_ALIGNMENT" >&5
7243 printf %s "checking finding CSTACK_ALIGNMENT... " >&6; }
7244 if test "$cross_compiling" = yes
7245 then :
7246 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7247 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
7248 as_fn_error $? "cannot run test program while cross compiling
7249 See \`config.log' for more details" "$LINENO" 5; }
7250 else $as_nop
7251 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7252 /* end confdefs.h. */
7253
7254 #include "h/unrandomize_headers.h"
7255 int main(int argc,char **argv,char **envp) {
7256 void *b,*c;
7257 FILE *fp = fopen("conftest1","w");
7258 long n;
7259 #ifdef CAN_UNRANDOMIZE_SBRK
7260 #include "h/unrandomize.h"
7261 #endif
7262 b=alloca(sizeof(b));
7263 c=alloca(sizeof(c));
7264 n=b>c ? b-c : c-b;
7265 n=n>sizeof(c) ? n : 1;
7266 fprintf(fp,"%ld",n);
7267 fclose(fp);
7268 return 0;
7269 }
7270 _ACEOF
7271 if ac_fn_c_try_run "$LINENO"
7272 then :
7273 cstack_alignment=`cat conftest1`
7274 else $as_nop
7275 cstack_alignment=0
7276 fi
7277 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7278 conftest.$ac_objext conftest.beam conftest.$ac_ext
7279 fi
7280
7281
7282 printf "%s\n" "#define CSTACK_ALIGNMENT $cstack_alignment" >>confdefs.h
7283
7284 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cstack_alignment" >&5
7285 printf "%s\n" "$cstack_alignment" >&6; }
7286
7287 # Check whether --enable-cstackmax was given.
7288 if test ${enable_cstackmax+y}
7289 then :
7290 enableval=$enable_cstackmax; if test "$enableval" != "" ; then
7291 printf "%s\n" "#define CSTACKMAX $enableval" >>confdefs.h
7292 fi
7293 fi
7294
7295
7296
7297 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking CSTACK_ADDRESS" >&5
7298 printf %s "checking CSTACK_ADDRESS... " >&6; }
7299 if test "$cross_compiling" = yes
7300 then :
7301 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7302 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
7303 as_fn_error $? "cannot run test program while cross compiling
7304 See \`config.log' for more details" "$LINENO" 5; }
7305 else $as_nop
7306 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7307 /* end confdefs.h. */
7308
7309 #include "h/unrandomize_headers.h"
7310 int
7311 main(int argc,char **argv,char **envp) {
7312 FILE *fp = fopen("conftest1","w");
7313 unsigned long i,j;
7314
7315 #ifdef CAN_UNRANDOMIZE_SBRK
7316 #include "h/unrandomize.h"
7317 #endif
7318 j=1;
7319 j<<=$PAGEWIDTH;
7320 j<<=16;
7321 i=(unsigned long)alloca(sizeof(void *));
7322 if ($cstack_direction==1) i-=j;
7323 j--;
7324 i+=j;
7325 i&=~j;
7326 fprintf(fp,"0x%lx",i-1);
7327 fclose(fp);
7328 return 0;
7329 }
7330 _ACEOF
7331 if ac_fn_c_try_run "$LINENO"
7332 then :
7333 cstack_address=`cat conftest1`
7334 else $as_nop
7335 cstack_address=0
7336 fi
7337 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7338 conftest.$ac_objext conftest.beam conftest.$ac_ext
7339 fi
7340
7341
7342 printf "%s\n" "#define CSTACK_ADDRESS $cstack_address" >>confdefs.h
7343
7344 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cstack_address" >&5
7345 printf "%s\n" "$cstack_address" >&6; }
7346
7347 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking cstack bits" >&5
7348 printf %s "checking cstack bits... " >&6; }
7349 if test "$cross_compiling" = yes
7350 then :
7351 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7352 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
7353 as_fn_error $? "cannot run test program while cross compiling
7354 See \`config.log' for more details" "$LINENO" 5; }
7355 else $as_nop
7356 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7357 /* end confdefs.h. */
7358
7359 #include "h/unrandomize_headers.h"
7360 int
7361 main(int argc,char **argv,char **envp) {
7362 void *v ;
7363 FILE *fp = fopen("conftest1","w");
7364 long i,j;
7365
7366 #ifdef CAN_UNRANDOMIZE_SBRK
7367 #include "h/unrandomize.h"
7368 #endif
7369 j=1;
7370 j<<=$PAGEWIDTH;
7371 j<<=16;
7372 i=(long)&v;
7373 if ($cstack_direction==1) i-=j;
7374 j--;
7375 i+=j;
7376 i&=~j;
7377 for (j=0;(i>>j)!=(i>>(sizeof(long)*8-1));j++);
7378 fprintf(fp,"%ld",j);
7379 fclose(fp);
7380 return 0;
7381 }
7382 _ACEOF
7383 if ac_fn_c_try_run "$LINENO"
7384 then :
7385 cstack_bits=`cat conftest1`
7386 else $as_nop
7387 cstack_bits=0
7388 fi
7389 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7390 conftest.$ac_objext conftest.beam conftest.$ac_ext
7391 fi
7392
7393
7394 printf "%s\n" "#define CSTACK_BITS $cstack_bits" >>confdefs.h
7395
7396 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cstack_bits" >&5
7397 printf "%s\n" "$cstack_bits" >&6; }
7398
7399 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking NEG_CSTACK_ADDRESS" >&5
7400 printf %s "checking NEG_CSTACK_ADDRESS... " >&6; }
7401 if test "$cross_compiling" = yes
7402 then :
7403 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7404 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
7405 as_fn_error $? "cannot run test program while cross compiling
7406 See \`config.log' for more details" "$LINENO" 5; }
7407 else $as_nop
7408 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7409 /* end confdefs.h. */
7410
7411 #include "h/unrandomize_headers.h"
7412 int
7413 main(int argc,char **argv,char **envp) {
7414 #ifdef CAN_UNRANDOMIZE_SBRK
7415 #include "h/unrandomize.h"
7416 #endif
7417 return (long)$cstack_address<0 ? 0 : -1;
7418 }
7419 _ACEOF
7420 if ac_fn_c_try_run "$LINENO"
7421 then :
7422 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7423 printf "%s\n" "yes" >&6; }
7424 neg_cstack_address=1
7425
7426 printf "%s\n" "#define NEG_CSTACK_ADDRESS 1" >>confdefs.h
7427
7428 else $as_nop
7429 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7430 printf "%s\n" "no" >&6; }
7431 neg_cstack_address=0
7432 fi
7433 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7434 conftest.$ac_objext conftest.beam conftest.$ac_ext
7435 fi
7436
7437
7438 # Check whether --enable-immfix was given.
7439 if test ${enable_immfix+y}
7440 then :
7441 enableval=$enable_immfix;
7442 fi
7443
7444
7445 # Check whether --enable-fastimmfix was given.
7446 if test ${enable_fastimmfix+y}
7447 then :
7448 enableval=$enable_fastimmfix;
7449 else $as_nop
7450 enable_fastimmfix=64
7451 fi
7452
7453
7454
7455 if test "$use" != "386-gnu" ; then #hurd can push .data below C stack, but sbrk(0) remains above, foiling unexec
7456
7457 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking finding default linker script" >&5
7458 printf %s "checking finding default linker script... " >&6; }
7459 touch unixport/gcl.script
7460 echo "int main() {return 0;}" >foo.c
7461 $CC $LDFLAGS -Wl,--verbose foo.c -o foo 2>&1 | \
7462 $AWK '/==================================================/ {i=1-i;next} {if (i) print}' >gcl.script
7463 rm -rf foo.c foo
7464
7465 if test "`cat gcl.script | wc -l`" != "0" ; then
7466 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: got it" >&5
7467 printf "%s\n" "got it" >&6; }
7468
7469 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking output_arch" >&5
7470 printf %s "checking output_arch... " >&6; }
7471 output_arch=`cat gcl.script |grep OUTPUT_ARCH|head -n 1|sed 's,.*(\(.*\)).*,\1,1'|cut -f1 -d:`;
7472 if test "$output_arch" != "" ; then
7473
7474 printf "%s\n" "#define OUTPUT_ARCH bfd_arch_${output_arch}" >>confdefs.h
7475
7476 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: bfd_arch_${output_arch}" >&5
7477 printf "%s\n" "bfd_arch_${output_arch}" >&6; }
7478 else
7479 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: not found" >&5
7480 printf "%s\n" "not found" >&6; }
7481 fi
7482
7483 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: trying to adjust text start" >&5
7484 printf "%s\n" "$as_me: trying to adjust text start" >&6;}
7485 cp gcl.script gcl.script.def
7486
7487 n=-1;
7488 k=0;
7489 lim=`$AWK 'END {printf("%d\n",m*8-2)}' m=$ac_cv_sizeof_long`;
7490 max=0;
7491 min=$lim;
7492 while test $n -lt $lim ; do
7493 j=`$AWK 'END {for (i=j=0;j<=n;j++) i=i ? i*2 : 1;printf("%x\n",3*i)}' n=$n </dev/null`
7494 cat gcl.script.def | $AWK '/SIZEOF_HEADERS/ {gsub("0x[0-9]*","0x" j,$0);} {print}' j=$j >gcl.script
7495 # diff -u gcl.script.def gcl.script
7496 echo "int main() {return 0;}" >foo.c
7497 if ( $CC $LDFLAGS -Wl,-T gcl.script foo.c -o foo && ./foo ) >/dev/null 2>&1 ; then
7498 if test $n -lt $min ; then min=$n; fi;
7499 if test $n -gt $max; then max=$n; fi;
7500 elif test $max -gt 0 ; then
7501 break;
7502 fi;
7503 n=`$AWK 'END {print n+1}' n=$n </dev/null`
7504 done
7505
7506 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: min log text start $min" >&5
7507 printf "%s\n" "$as_me: min log text start $min" >&6;}
7508 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: max log text start $max" >&5
7509 printf "%s\n" "$as_me: max log text start $max" >&6;}
7510
7511 if test $neg_cstack_address -eq 1 ; then #FIXME test this
7512 if test $cstack_bits -lt $max ; then
7513 max=$cstack_bits;
7514 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: max log text start reduced to $max considering c stack address" >&5
7515 printf "%s\n" "$as_me: max log text start reduced to $max considering c stack address" >&6;}
7516 fi
7517 fi
7518
7519 j=-1;
7520 low_shft="";
7521 if test $min -le $max ; then
7522 if test $max -ge $enable_fastimmfix && test "$enable_immfix" != "no" ; then
7523 j=`$AWK 'END {for (i=j=0;j<=n;j++) i=i ? i*2 : 1;printf("%x\n",3*i)}' n=$max </dev/null`
7524 low_shft=`$AWK 'END {print n+1}' n=$max </dev/null`;
7525 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: raising log text to $j for a $max bit wide low immfix table" >&5
7526 printf "%s\n" "$as_me: raising log text to $j for a $max bit wide low immfix table" >&6;}
7527 else
7528 j=`$AWK 'END {for (i=j=0;j<=n;j++) i=i ? i*2 : 1;printf("%x\n",3*i)}' n=$min </dev/null`
7529 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: lowering log text to $j to maximize data area" >&5
7530 printf "%s\n" "$as_me: lowering log text to $j to maximize data area" >&6;}
7531 fi
7532 fi
7533
7534 if test "$low_shft" != "" ; then
7535
7536 printf "%s\n" "#define LOW_SHFT $low_shft" >>confdefs.h
7537
7538
7539 printf "%s\n" "#define OBJNULL (object)0x$j" >>confdefs.h
7540
7541 else
7542
7543 printf "%s\n" "#define OBJNULL NULL" >>confdefs.h
7544
7545 fi
7546
7547 # echo $j;
7548 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking our linker script" >&5
7549 printf %s "checking our linker script... " >&6; }
7550 if test "$j" -ne "-1" ; then
7551 cat gcl.script.def | $AWK '/SIZEOF_HEADERS/ {gsub("0x[0-9]*","0x" j,$0);} {print}' j=$j >gcl.script
7552 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: done" >&5
7553 printf "%s\n" "done" >&6; }
7554 rm -f gcl.script.def
7555 assert_arg_to_ldflags -Wl,-T,gcl.script
7556 cp gcl.script unixport
7557 else
7558 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none found or not needed" >&5
7559 printf "%s\n" "none found or not needed" >&6; }
7560 rm -f gcl.script gcl.script.def
7561 fi
7562 rm -rf foo.c foo
7563 else
7564
7565 printf "%s\n" "#define OBJNULL NULL" >>confdefs.h
7566
7567 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: not found" >&5
7568 printf "%s\n" "not found" >&6; }
7569 fi
7570
7571 else
7572
7573
7574 printf "%s\n" "#define OBJNULL NULL" >>confdefs.h
7575
7576
7577 fi
7578
7579 mem_top=0
7580 mem_range=0
7581 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking mem top" >&5
7582 printf %s "checking mem top... " >&6; }
7583 if test "$cross_compiling" = yes
7584 then :
7585 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7586 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
7587 as_fn_error $? "cannot run test program while cross compiling
7588 See \`config.log' for more details" "$LINENO" 5; }
7589 else $as_nop
7590 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7591 /* end confdefs.h. */
7592
7593 #include <stdio.h>
7594
7595 int
7596 main (void)
7597 {
7598
7599 unsigned long i,j,k,l;
7600 FILE *fp = fopen("conftest1","w");
7601
7602 for (i=2,k=1;i;k=i,i<<=1);
7603 l=$cstack_address;
7604 l=$cstack_direction==1 ? (l<k ? k-1 : -1) : l;
7605 for (i=j=k;j && i<l;j>>=1,i|=j);
7606 if (j<(k>>3)) i=0;
7607 j=1;
7608 j<<=$PAGEWIDTH;
7609 j<<=4;
7610 j--;
7611 i+=j;
7612 i&=~j;
7613 fprintf(fp,"0x%lx",i);
7614 fclose(fp);
7615 return 0;
7616
7617 ;
7618 return 0;
7619 }
7620 _ACEOF
7621 if ac_fn_c_try_run "$LINENO"
7622 then :
7623 mem_top=`cat conftest1`
7624 else $as_nop
7625 mem_top="0x0"
7626 fi
7627 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7628 conftest.$ac_objext conftest.beam conftest.$ac_ext
7629 fi
7630
7631 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $mem_top" >&5
7632 printf "%s\n" "$mem_top" >&6; }
7633
7634 if test "$mem_top" != "0x0" ; then
7635 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking finding upper mem half range" >&5
7636 printf %s "checking finding upper mem half range... " >&6; }
7637 if test "$cross_compiling" = yes
7638 then :
7639 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7640 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
7641 as_fn_error $? "cannot run test program while cross compiling
7642 See \`config.log' for more details" "$LINENO" 5; }
7643 else $as_nop
7644 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7645 /* end confdefs.h. */
7646
7647 #include <stdio.h>
7648
7649 int
7650 main (void)
7651 {
7652
7653 unsigned long j;
7654 FILE *fp = fopen("conftest1","w");
7655
7656 for (j=1;j && !(j& $mem_top);j<<=1);
7657 fprintf(fp,"0x%lx",j>>1);
7658 fclose(fp);
7659 return 0;
7660
7661 ;
7662 return 0;
7663 }
7664 _ACEOF
7665 if ac_fn_c_try_run "$LINENO"
7666 then :
7667 mem_range=`cat conftest1`
7668 else $as_nop
7669 mem_range="0x0"
7670 fi
7671 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7672 conftest.$ac_objext conftest.beam conftest.$ac_ext
7673 fi
7674
7675 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $mem_range" >&5
7676 printf "%s\n" "$mem_range" >&6; }
7677 if test "$mem_range" != "0x0" ; then
7678
7679 printf "%s\n" "#define MEM_TOP $mem_top" >>confdefs.h
7680
7681
7682 printf "%s\n" "#define MEM_RANGE $mem_range" >>confdefs.h
7683
7684 fi
7685 fi
7686
7687 if test "$enable_immfix" != "no" ; then
7688 if test "$mem_top" != "0x0" ; then
7689 if test "$mem_range" != "0x0" ; then
7690
7691 printf "%s\n" "#define IM_FIX_BASE ${mem_top}UL" >>confdefs.h
7692
7693
7694 printf "%s\n" "#define IM_FIX_LIM ${mem_range}UL" >>confdefs.h
7695
7696 fi
7697 fi
7698 fi
7699
7700 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking sizeof long long int" >&5
7701 printf %s "checking sizeof long long int... " >&6; }
7702 if test "$cross_compiling" = yes
7703 then :
7704 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7705 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
7706 as_fn_error $? "cannot run test program while cross compiling
7707 See \`config.log' for more details" "$LINENO" 5; }
7708 else $as_nop
7709 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7710 /* end confdefs.h. */
7711
7712 #include <stdio.h>
7713
7714 int
7715 main (void)
7716 {
7717
7718 if (sizeof(long long int) == 2*sizeof(long)) return 0;
7719 return 1;
7720
7721 ;
7722 return 0;
7723 }
7724 _ACEOF
7725 if ac_fn_c_try_run "$LINENO"
7726 then :
7727
7728 printf "%s\n" "#define HAVE_LONG_LONG 1" >>confdefs.h
7729 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7730 printf "%s\n" "yes" >&6; }
7731 else $as_nop
7732 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7733 printf "%s\n" "no" >&6; }
7734 fi
7735 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7736 conftest.$ac_objext conftest.beam conftest.$ac_ext
7737 fi
7738
7739
7740
7741
7742 for ac_header in dirent.h
7743 do :
7744 ac_fn_c_check_header_compile "$LINENO" "dirent.h" "ac_cv_header_dirent_h" "$ac_includes_default"
7745 if test "x$ac_cv_header_dirent_h" = xyes
7746 then :
7747 printf "%s\n" "#define HAVE_DIRENT_H 1" >>confdefs.h
7748 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for d_type" >&5
7749 printf %s "checking for d_type... " >&6; }
7750 if test "$cross_compiling" = yes
7751 then :
7752 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7753 printf "%s\n" "no" >&6; }
7754 else $as_nop
7755 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7756 /* end confdefs.h. */
7757
7758 #include <dirent.h>
7759 #include <string.h>
7760
7761 int
7762 main (void)
7763 {
7764
7765 struct dirent *d;
7766 DIR *r=opendir("./");
7767 for (;(d=readdir(r)) && strcmp("configure",d->d_name););
7768 return d && d->d_type==DT_REG ? 0 : -1;
7769
7770 ;
7771 return 0;
7772 }
7773 _ACEOF
7774 if ac_fn_c_try_run "$LINENO"
7775 then :
7776 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7777 printf "%s\n" "yes" >&6; }
7778 printf "%s\n" "#define HAVE_D_TYPE 1" >>confdefs.h
7779
7780 else $as_nop
7781 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7782 printf "%s\n" "no" >&6; }
7783 fi
7784 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7785 conftest.$ac_objext conftest.beam conftest.$ac_ext
7786 fi
7787
7788 fi
7789
7790 done
7791
7792 # ansi lisp
7793 SYSTEM=ansi_gcl
7794 CLSTANDARD=ANSI
7795 # Check whether --enable-ansi was given.
7796 if test ${enable_ansi+y}
7797 then :
7798 enableval=$enable_ansi; if test "$enable_ansi" = "no" ; then
7799 SYSTEM=gcl
7800 CLSTANDARD=CLtL1
7801 else
7802
7803 printf "%s\n" "#define ANSI_COMMON_LISP 1" >>confdefs.h
7804
7805 fi
7806 else $as_nop
7807
7808 printf "%s\n" "#define ANSI_COMMON_LISP 1" >>confdefs.h
7809
7810 fi
7811
7812
7813 FLISP="saved_$SYSTEM"
7814
7815
7816
7817
7818 # Maximum number of pages
7819
7820
7821
7822 # Check if Posix compliant getcwd exists, if not we'll use getwd.
7823 ac_fn_c_check_func "$LINENO" "getcwd" "ac_cv_func_getcwd"
7824 if test "x$ac_cv_func_getcwd" = xyes
7825 then :
7826 printf "%s\n" "#define HAVE_GETCWD 1" >>confdefs.h
7827
7828 fi
7829
7830 ac_fn_c_check_func "$LINENO" "getwd" "ac_cv_func_getwd"
7831 if test "x$ac_cv_func_getwd" = xyes
7832 then :
7833 printf "%s\n" "#define HAVE_GETWD 1" >>confdefs.h
7834
7835 fi
7836
7837 ac_fn_c_check_func "$LINENO" "uname" "ac_cv_func_uname"
7838 if test "x$ac_cv_func_uname" = xyes
7839 then :
7840
7841 else $as_nop
7842
7843 printf "%s\n" "#define NO_UNAME 1" >>confdefs.h
7844
7845 fi
7846
7847 ac_fn_c_check_func "$LINENO" "gettimeofday" "ac_cv_func_gettimeofday"
7848 if test "x$ac_cv_func_gettimeofday" = xyes
7849 then :
7850
7851 else $as_nop
7852 printf "%s\n" "#define NO_GETTOD 1" >>confdefs.h
7853
7854 fi
7855
7856
7857
7858 ac_fn_c_check_header_compile "$LINENO" "sys/ioctl.h" "ac_cv_header_sys_ioctl_h" "$ac_includes_default"
7859 if test "x$ac_cv_header_sys_ioctl_h" = xyes
7860 then :
7861 printf "%s\n" "#define HAVE_SYS_IOCTL_H 1" >>confdefs.h
7862
7863 fi
7864
7865
7866 # OpenBSD has elf_abi.h instead of elf.h
7867 ac_fn_c_check_header_compile "$LINENO" "elf.h" "ac_cv_header_elf_h" "$ac_includes_default"
7868 if test "x$ac_cv_header_elf_h" = xyes
7869 then :
7870 printf "%s\n" "#define HAVE_ELF_H 1" >>confdefs.h
7871
7872 fi
7873 ac_fn_c_check_header_compile "$LINENO" "elf_abi.h" "ac_cv_header_elf_abi_h" "$ac_includes_default"
7874 if test "x$ac_cv_header_elf_abi_h" = xyes
7875 then :
7876 printf "%s\n" "#define HAVE_ELF_ABI_H 1" >>confdefs.h
7877
7878 fi
7879
7880
7881 ac_fn_c_check_header_compile "$LINENO" "sys/sockio.h" "ac_cv_header_sys_sockio_h" "$ac_includes_default"
7882 if test "x$ac_cv_header_sys_sockio_h" = xyes
7883 then :
7884 printf "%s\n" "#define HAVE_SYS_SOCKIO_H 1" >>confdefs.h
7885
7886 fi
7887
7888
7889
7890 #--------------------------------------------------------------------
7891 # The code below deals with several issues related to gettimeofday:
7892 # 1. Some systems don't provide a gettimeofday function at all
7893 # (set NO_GETTOD if this is the case).
7894 # 2. SGI systems don't use the BSD form of the gettimeofday function,
7895 # but they have a BSDgettimeofday function that can be used instead.
7896 # 3. See if gettimeofday is declared in the <sys/time.h> header file.
7897 # if not, set the GETTOD_NOT_DECLARED flag so that tclPort.h can
7898 # declare it.
7899 #--------------------------------------------------------------------
7900
7901 ac_fn_c_check_func "$LINENO" "BSDgettimeofday" "ac_cv_func_BSDgettimeofday"
7902 if test "x$ac_cv_func_BSDgettimeofday" = xyes
7903 then :
7904
7905 printf "%s\n" "#define HAVE_BSDGETTIMEOFDAY 1" >>confdefs.h
7906
7907 else $as_nop
7908 ac_fn_c_check_func "$LINENO" "gettimeofday" "ac_cv_func_gettimeofday"
7909 if test "x$ac_cv_func_gettimeofday" = xyes
7910 then :
7911
7912 else $as_nop
7913
7914 printf "%s\n" "#define NO_GETTOD 1" >>confdefs.h
7915
7916 fi
7917
7918 fi
7919
7920
7921 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
7922 printf %s "checking for grep that handles long lines and -e... " >&6; }
7923 if test ${ac_cv_path_GREP+y}
7924 then :
7925 printf %s "(cached) " >&6
7926 else $as_nop
7927 if test -z "$GREP"; then
7928 ac_path_GREP_found=false
7929 # Loop through the user's path and test for each of PROGNAME-LIST
7930 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7931 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
7932 do
7933 IFS=$as_save_IFS
7934 case $as_dir in #(((
7935 '') as_dir=./ ;;
7936 */) ;;
7937 *) as_dir=$as_dir/ ;;
7938 esac
7939 for ac_prog in grep ggrep
7940 do
7941 for ac_exec_ext in '' $ac_executable_extensions; do
7942 ac_path_GREP="$as_dir$ac_prog$ac_exec_ext"
7943 as_fn_executable_p "$ac_path_GREP" || continue
7944 # Check for GNU ac_path_GREP and select it if it is found.
7945 # Check for GNU $ac_path_GREP
7946 case `"$ac_path_GREP" --version 2>&1` in
7947 *GNU*)
7948 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
7949 *)
7950 ac_count=0
7951 printf %s 0123456789 >"conftest.in"
7952 while :
7953 do
7954 cat "conftest.in" "conftest.in" >"conftest.tmp"
7955 mv "conftest.tmp" "conftest.in"
7956 cp "conftest.in" "conftest.nl"
7957 printf "%s\n" 'GREP' >> "conftest.nl"
7958 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
7959 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7960 as_fn_arith $ac_count + 1 && ac_count=$as_val
7961 if test $ac_count -gt ${ac_path_GREP_max-0}; then
7962 # Best one so far, save it but keep looking for a better one
7963 ac_cv_path_GREP="$ac_path_GREP"
7964 ac_path_GREP_max=$ac_count
7965 fi
7966 # 10*(2^10) chars as input seems more than enough
7967 test $ac_count -gt 10 && break
7968 done
7969 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7970 esac
7971
7972 $ac_path_GREP_found && break 3
7973 done
7974 done
7975 done
7976 IFS=$as_save_IFS
7977 if test -z "$ac_cv_path_GREP"; then
7978 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
7979 fi
7980 else
7981 ac_cv_path_GREP=$GREP
7982 fi
7983
7984 fi
7985 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
7986 printf "%s\n" "$ac_cv_path_GREP" >&6; }
7987 GREP="$ac_cv_path_GREP"
7988
7989
7990 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
7991 printf %s "checking for egrep... " >&6; }
7992 if test ${ac_cv_path_EGREP+y}
7993 then :
7994 printf %s "(cached) " >&6
7995 else $as_nop
7996 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
7997 then ac_cv_path_EGREP="$GREP -E"
7998 else
7999 if test -z "$EGREP"; then
8000 ac_path_EGREP_found=false
8001 # Loop through the user's path and test for each of PROGNAME-LIST
8002 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8003 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
8004 do
8005 IFS=$as_save_IFS
8006 case $as_dir in #(((
8007 '') as_dir=./ ;;
8008 */) ;;
8009 *) as_dir=$as_dir/ ;;
8010 esac
8011 for ac_prog in egrep
8012 do
8013 for ac_exec_ext in '' $ac_executable_extensions; do
8014 ac_path_EGREP="$as_dir$ac_prog$ac_exec_ext"
8015 as_fn_executable_p "$ac_path_EGREP" || continue
8016 # Check for GNU ac_path_EGREP and select it if it is found.
8017 # Check for GNU $ac_path_EGREP
8018 case `"$ac_path_EGREP" --version 2>&1` in
8019 *GNU*)
8020 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
8021 *)
8022 ac_count=0
8023 printf %s 0123456789 >"conftest.in"
8024 while :
8025 do
8026 cat "conftest.in" "conftest.in" >"conftest.tmp"
8027 mv "conftest.tmp" "conftest.in"
8028 cp "conftest.in" "conftest.nl"
8029 printf "%s\n" 'EGREP' >> "conftest.nl"
8030 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
8031 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
8032 as_fn_arith $ac_count + 1 && ac_count=$as_val
8033 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
8034 # Best one so far, save it but keep looking for a better one
8035 ac_cv_path_EGREP="$ac_path_EGREP"
8036 ac_path_EGREP_max=$ac_count
8037 fi
8038 # 10*(2^10) chars as input seems more than enough
8039 test $ac_count -gt 10 && break
8040 done
8041 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
8042 esac
8043
8044 $ac_path_EGREP_found && break 3
8045 done
8046 done
8047 done
8048 IFS=$as_save_IFS
8049 if test -z "$ac_cv_path_EGREP"; then
8050 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
8051 fi
8052 else
8053 ac_cv_path_EGREP=$EGREP
8054 fi
8055
8056 fi
8057 fi
8058 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
8059 printf "%s\n" "$ac_cv_path_EGREP" >&6; }
8060 EGREP="$ac_cv_path_EGREP"
8061
8062
8063 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8064 /* end confdefs.h. */
8065 #include <sys/time.h>
8066
8067 _ACEOF
8068 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8069 $EGREP "gettimeofday" >/dev/null 2>&1
8070 then :
8071 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for gettimeofday declaration" >&5
8072 printf %s "checking for gettimeofday declaration... " >&6; }
8073 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: present" >&5
8074 printf "%s\n" "present" >&6; }
8075 else $as_nop
8076 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for gettimeofday declaration" >&5
8077 printf %s "checking for gettimeofday declaration... " >&6; }
8078 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: missing" >&5
8079 printf "%s\n" "missing" >&6; }
8080
8081 printf "%s\n" "#define GETTOD_NOT_DECLARED 1" >>confdefs.h
8082
8083 fi
8084 rm -rf conftest*
8085
8086
8087
8088 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sin in -lm" >&5
8089 printf %s "checking for sin in -lm... " >&6; }
8090 if test ${ac_cv_lib_m_sin+y}
8091 then :
8092 printf %s "(cached) " >&6
8093 else $as_nop
8094 ac_check_lib_save_LIBS=$LIBS
8095 LIBS="-lm $LIBS"
8096 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8097 /* end confdefs.h. */
8098
8099 /* Override any GCC internal prototype to avoid an error.
8100 Use char because int might match the return type of a GCC
8101 builtin and then its argument prototype would still apply. */
8102 char sin ();
8103 int
8104 main (void)
8105 {
8106 return sin ();
8107 ;
8108 return 0;
8109 }
8110 _ACEOF
8111 if ac_fn_c_try_link "$LINENO"
8112 then :
8113 ac_cv_lib_m_sin=yes
8114 else $as_nop
8115 ac_cv_lib_m_sin=no
8116 fi
8117 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8118 conftest$ac_exeext conftest.$ac_ext
8119 LIBS=$ac_check_lib_save_LIBS
8120 fi
8121 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_sin" >&5
8122 printf "%s\n" "$ac_cv_lib_m_sin" >&6; }
8123 if test "x$ac_cv_lib_m_sin" = xyes
8124 then :
8125 LIBS="${LIBS} -lm"
8126 else $as_nop
8127 true
8128 fi
8129
8130 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for main in -lmingwex" >&5
8131 printf %s "checking for main in -lmingwex... " >&6; }
8132 if test ${ac_cv_lib_mingwex_main+y}
8133 then :
8134 printf %s "(cached) " >&6
8135 else $as_nop
8136 ac_check_lib_save_LIBS=$LIBS
8137 LIBS="-lmingwex $LIBS"
8138 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8139 /* end confdefs.h. */
8140
8141
8142 int
8143 main (void)
8144 {
8145 return main ();
8146 ;
8147 return 0;
8148 }
8149 _ACEOF
8150 if ac_fn_c_try_link "$LINENO"
8151 then :
8152 ac_cv_lib_mingwex_main=yes
8153 else $as_nop
8154 ac_cv_lib_mingwex_main=no
8155 fi
8156 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8157 conftest$ac_exeext conftest.$ac_ext
8158 LIBS=$ac_check_lib_save_LIBS
8159 fi
8160 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mingwex_main" >&5
8161 printf "%s\n" "$ac_cv_lib_mingwex_main" >&6; }
8162 if test "x$ac_cv_lib_mingwex_main" = xyes
8163 then :
8164 LIBS="${LIBS} -lmingwex"
8165 else $as_nop
8166 true
8167 fi
8168
8169
8170 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for buggy maximum sscanf length" >&5
8171 printf %s "checking for buggy maximum sscanf length... " >&6; }
8172 if test "$cross_compiling" = yes
8173 then :
8174 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8175 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
8176 as_fn_error $? "cannot run test program while cross compiling
8177 See \`config.log' for more details" "$LINENO" 5; }
8178 else $as_nop
8179 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8180 /* end confdefs.h. */
8181
8182 #include <stdio.h>
8183
8184 int
8185 main (void)
8186 {
8187
8188 char *s= "2.7182818284590452353602874713526624977572470936999595749669676277240766303535475945713821785251664274274663919320030599218174135966290435729003342952605956307381323286279434907632338298807531952510190115738341879307021540891499348841675092447614606680822648001684774118537423454424371075390777449920695517027618386062613313845830007520449338265602976067371132007093287091274437470472306969772093101416928368190255151086574637721112523897844250569536967707854499699679468644549059879316368892300987931277361782154249992295763514822082698951936680331825288693984964651058209392398294887933203625094431173012381970684161404";
8189 int n, m;
8190 double f;
8191 char *endptr;
8192 FILE *fp=fopen("conftest1","w");
8193
8194 n=sscanf(s,"%lf%n",&f,&m);
8195 fprintf(fp,"%d",m);
8196 fclose(fp);
8197 return s[m];
8198
8199 ;
8200 return 0;
8201 }
8202 _ACEOF
8203 if ac_fn_c_try_run "$LINENO"
8204 then :
8205 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none" >&5
8206 printf "%s\n" "none" >&6; }
8207 else $as_nop
8208 buggy_maximum_sscanf_length=`cat conftest1`
8209 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $buggy_maximum_sscanf_length" >&5
8210 printf "%s\n" "$buggy_maximum_sscanf_length" >&6; }
8211
8212 printf "%s\n" "#define BUGGY_MAXIMUM_SSCANF_LENGTH $buggy_maximum_sscanf_length" >>confdefs.h
8213
8214 fi
8215 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8216 conftest.$ac_objext conftest.beam conftest.$ac_ext
8217 fi
8218
8219
8220
8221 EXTRA_LOBJS=
8222 # Check whether --enable-japi was given.
8223 if test ${enable_japi+y}
8224 then :
8225 enableval=$enable_japi; if test "$enable_japi" = "yes" ; then
8226 for ac_header in japi.h
8227 do :
8228 ac_fn_c_check_header_compile "$LINENO" "japi.h" "ac_cv_header_japi_h" "$ac_includes_default"
8229 if test "x$ac_cv_header_japi_h" = xyes
8230 then :
8231 printf "%s\n" "#define HAVE_JAPI_H 1" >>confdefs.h
8232 printf "%s\n" "#define HAVE_JAPI_H 1" >>confdefs.h
8233
8234 EXTRA_LOBJS="${EXTRA_LOBJS} gcl_japi.o"
8235 LIBS="${LIBS} -ljapi -lwsock32"
8236 fi
8237
8238 done
8239 fi
8240 fi
8241
8242
8243 # Should really find a way to check for prototypes, but this
8244 # basically works for now. CM
8245 #
8246 for ac_header in math.h
8247 do :
8248 ac_fn_c_check_header_compile "$LINENO" "math.h" "ac_cv_header_math_h" "$ac_includes_default"
8249 if test "x$ac_cv_header_math_h" = xyes
8250 then :
8251 printf "%s\n" "#define HAVE_MATH_H 1" >>confdefs.h
8252
8253 printf "%s\n" "#define HAVE_MATH_H 1" >>confdefs.h
8254
8255 fi
8256
8257 done
8258 for ac_header in complex.h
8259 do :
8260 ac_fn_c_check_header_compile "$LINENO" "complex.h" "ac_cv_header_complex_h" "$ac_includes_default"
8261 if test "x$ac_cv_header_complex_h" = xyes
8262 then :
8263 printf "%s\n" "#define HAVE_COMPLEX_H 1" >>confdefs.h
8264
8265 printf "%s\n" "#define HAVE_COMPLEX_H 1" >>confdefs.h
8266
8267 fi
8268
8269 done
8270
8271 #
8272 # For DBL_MAX et. al. on (only) certain Linux arches, apparently CM
8273 #
8274 for ac_header in values.h
8275 do :
8276 ac_fn_c_check_header_compile "$LINENO" "values.h" "ac_cv_header_values_h" "$ac_includes_default"
8277 if test "x$ac_cv_header_values_h" = xyes
8278 then :
8279 printf "%s\n" "#define HAVE_VALUES_H 1" >>confdefs.h
8280
8281 printf "%s\n" "#define HAVE_VALUES_H 1" >>confdefs.h
8282
8283 fi
8284
8285 done
8286
8287 #
8288 # Sparc solaris keeps this in float.h, rework either/or with values.h later
8289 #
8290 for ac_header in float.h
8291 do :
8292 ac_fn_c_check_header_compile "$LINENO" "float.h" "ac_cv_header_float_h" "$ac_includes_default"
8293 if test "x$ac_cv_header_float_h" = xyes
8294 then :
8295 printf "%s\n" "#define HAVE_FLOAT_H 1" >>confdefs.h
8296
8297 printf "%s\n" "#define HAVE_FLOAT_H 1" >>confdefs.h
8298
8299 fi
8300
8301 done
8302
8303 #
8304 # The second alternative is for solaris. This needs to be
8305 # a more comprehensive later, i.e. checking that the fpclass
8306 # test makes sense. CM
8307 #
8308 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for isnormal" >&5
8309 printf %s "checking for isnormal... " >&6; }
8310 if test "$cross_compiling" = yes
8311 then :
8312 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8313 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
8314 as_fn_error $? "cannot run test program while cross compiling
8315 See \`config.log' for more details" "$LINENO" 5; }
8316 else $as_nop
8317 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8318 /* end confdefs.h. */
8319
8320 #define _GNU_SOURCE
8321 #include <math.h>
8322
8323 int
8324 main (void)
8325 {
8326
8327 float f;
8328 return isnormal(f) || !isnormal(f) ? 0 : 1;
8329
8330 ;
8331 return 0;
8332 }
8333 _ACEOF
8334 if ac_fn_c_try_run "$LINENO"
8335 then :
8336
8337 printf "%s\n" "#define HAVE_ISNORMAL 1" >>confdefs.h
8338 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8339 printf "%s\n" "yes" >&6; }
8340 else $as_nop
8341 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for fpclass of ieeefp.h" >&5
8342 printf %s "checking for fpclass of ieeefp.h... " >&6; }
8343 if test "$cross_compiling" = yes
8344 then :
8345 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8346 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
8347 as_fn_error $? "cannot run test program while cross compiling
8348 See \`config.log' for more details" "$LINENO" 5; }
8349 else $as_nop
8350 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8351 /* end confdefs.h. */
8352
8353 #include <ieeefp.h>
8354
8355 int
8356 main (void)
8357 {
8358
8359 float f;
8360 return fpclass(f)>=FP_NZERO || fpclass(f)<FP_NZERO ? 0 : 1;
8361
8362 ;
8363 return 0;
8364 }
8365 _ACEOF
8366 if ac_fn_c_try_run "$LINENO"
8367 then :
8368
8369 printf "%s\n" "#define HAVE_IEEEFP 1" >>confdefs.h
8370 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8371 printf "%s\n" "yes" >&6; }
8372 else $as_nop
8373 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8374 printf "%s\n" "no" >&6; }
8375 fi
8376 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8377 conftest.$ac_objext conftest.beam conftest.$ac_ext
8378 fi
8379
8380 fi
8381 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8382 conftest.$ac_objext conftest.beam conftest.$ac_ext
8383 fi
8384
8385
8386 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for isfinite" >&5
8387 printf %s "checking for isfinite... " >&6; }
8388 if test "$cross_compiling" = yes
8389 then :
8390 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8391 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
8392 as_fn_error $? "cannot run test program while cross compiling
8393 See \`config.log' for more details" "$LINENO" 5; }
8394 else $as_nop
8395 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8396 /* end confdefs.h. */
8397
8398 #define _GNU_SOURCE
8399 #include <math.h>
8400
8401 int
8402 main (void)
8403 {
8404
8405 float f;
8406 return isfinite(f) || !isfinite(f) ? 0 : 1;
8407
8408 ;
8409 return 0;
8410 }
8411 _ACEOF
8412 if ac_fn_c_try_run "$LINENO"
8413 then :
8414
8415 printf "%s\n" "#define HAVE_ISFINITE 1" >>confdefs.h
8416 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8417 printf "%s\n" "yes" >&6; }
8418 else $as_nop
8419 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for finite()" >&5
8420 printf %s "checking for finite()... " >&6; }
8421 if test "$cross_compiling" = yes
8422 then :
8423 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8424 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
8425 as_fn_error $? "cannot run test program while cross compiling
8426 See \`config.log' for more details" "$LINENO" 5; }
8427 else $as_nop
8428 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8429 /* end confdefs.h. */
8430
8431 #include <math.h>
8432 #include <ieeefp.h>
8433
8434 int
8435 main (void)
8436 {
8437
8438 float f;
8439 return finite(f) || !finite(f) ? 0 : 1;
8440
8441 ;
8442 return 0;
8443 }
8444 _ACEOF
8445 if ac_fn_c_try_run "$LINENO"
8446 then :
8447
8448 printf "%s\n" "#define HAVE_FINITE 1" >>confdefs.h
8449 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8450 printf "%s\n" "yes" >&6; }
8451 else $as_nop
8452 as_fn_error $? "no" "$LINENO" 5
8453 fi
8454 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8455 conftest.$ac_objext conftest.beam conftest.$ac_ext
8456 fi
8457
8458 fi
8459 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8460 conftest.$ac_objext conftest.beam conftest.$ac_ext
8461 fi
8462
8463
8464 #--------------------------------------------------------------------
8465 # Check for the existence of the -lsocket and -lnsl libraries.
8466 # The order here is important, so that they end up in the right
8467 # order in the command line generated by make. Here are some
8468 # special considerations:
8469 # 1. Use "connect" and "accept" to check for -lsocket, and
8470 # "gethostbyname" to check for -lnsl.
8471 # 2. Use each function name only once: can't redo a check because
8472 # autoconf caches the results of the last check and won't redo it.
8473 # 3. Use -lnsl and -lsocket only if they supply procedures that
8474 # aren't already present in the normal libraries. This is because
8475 # IRIX 5.2 has libraries, but they aren't needed and they're
8476 # bogus: they goof up name resolution if used.
8477 # 4. On some SVR4 systems, can't use -lsocket without -lnsl too.
8478 # To get around this problem, check for both libraries together
8479 # if -lsocket doesn't work by itself.
8480 #--------------------------------------------------------------------
8481 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sockets" >&5
8482 printf %s "checking for sockets... " >&6; }
8483 tcl_checkBoth=0
8484 ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect"
8485 if test "x$ac_cv_func_connect" = xyes
8486 then :
8487 tcl_checkSocket=0
8488 else $as_nop
8489 tcl_checkSocket=1
8490 fi
8491
8492 if test "$tcl_checkSocket" = 1; then
8493 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for main in -lsocket" >&5
8494 printf %s "checking for main in -lsocket... " >&6; }
8495 if test ${ac_cv_lib_socket_main+y}
8496 then :
8497 printf %s "(cached) " >&6
8498 else $as_nop
8499 ac_check_lib_save_LIBS=$LIBS
8500 LIBS="-lsocket $LIBS"
8501 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8502 /* end confdefs.h. */
8503
8504
8505 int
8506 main (void)
8507 {
8508 return main ();
8509 ;
8510 return 0;
8511 }
8512 _ACEOF
8513 if ac_fn_c_try_link "$LINENO"
8514 then :
8515 ac_cv_lib_socket_main=yes
8516 else $as_nop
8517 ac_cv_lib_socket_main=no
8518 fi
8519 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8520 conftest$ac_exeext conftest.$ac_ext
8521 LIBS=$ac_check_lib_save_LIBS
8522 fi
8523 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_main" >&5
8524 printf "%s\n" "$ac_cv_lib_socket_main" >&6; }
8525 if test "x$ac_cv_lib_socket_main" = xyes
8526 then :
8527 TLIBS="$TLIBS -lsocket"
8528 else $as_nop
8529 tcl_checkBoth=1
8530 fi
8531
8532 fi
8533
8534
8535 if test "$tcl_checkBoth" = 1; then
8536 tk_oldLibs=$TLIBS
8537 TLIBS="$TLIBS -lsocket -lnsl"
8538 ac_fn_c_check_func "$LINENO" "accept" "ac_cv_func_accept"
8539 if test "x$ac_cv_func_accept" = xyes
8540 then :
8541 tcl_checkNsl=0
8542 else $as_nop
8543 TLIBS=$tk_oldLibs
8544 fi
8545
8546 fi
8547 ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
8548 if test "x$ac_cv_func_gethostbyname" = xyes
8549 then :
8550
8551 else $as_nop
8552 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for main in -lnsl" >&5
8553 printf %s "checking for main in -lnsl... " >&6; }
8554 if test ${ac_cv_lib_nsl_main+y}
8555 then :
8556 printf %s "(cached) " >&6
8557 else $as_nop
8558 ac_check_lib_save_LIBS=$LIBS
8559 LIBS="-lnsl $LIBS"
8560 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8561 /* end confdefs.h. */
8562
8563
8564 int
8565 main (void)
8566 {
8567 return main ();
8568 ;
8569 return 0;
8570 }
8571 _ACEOF
8572 if ac_fn_c_try_link "$LINENO"
8573 then :
8574 ac_cv_lib_nsl_main=yes
8575 else $as_nop
8576 ac_cv_lib_nsl_main=no
8577 fi
8578 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8579 conftest$ac_exeext conftest.$ac_ext
8580 LIBS=$ac_check_lib_save_LIBS
8581 fi
8582 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_main" >&5
8583 printf "%s\n" "$ac_cv_lib_nsl_main" >&6; }
8584 if test "x$ac_cv_lib_nsl_main" = xyes
8585 then :
8586 TLIBS="$TLIBS -lnsl"
8587 fi
8588
8589 fi
8590
8591
8592 # readline
8593 # Check whether --enable-readline was given.
8594 if test ${enable_readline+y}
8595 then :
8596 enableval=$enable_readline;
8597 fi
8598
8599
8600 if test "$use" = "mingw" ; then
8601 enable_readline=no
8602 fi
8603
8604 if test "$enable_readline" != "no" ; then
8605 for ac_header in readline/readline.h
8606 do :
8607 ac_fn_c_check_header_compile "$LINENO" "readline/readline.h" "ac_cv_header_readline_readline_h" "#include <stdio.h>
8608
8609 "
8610 if test "x$ac_cv_header_readline_readline_h" = xyes
8611 then :
8612 printf "%s\n" "#define HAVE_READLINE_READLINE_H 1" >>confdefs.h
8613 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for rl_initialize in -lreadline" >&5
8614 printf %s "checking for rl_initialize in -lreadline... " >&6; }
8615 if test ${ac_cv_lib_readline_rl_initialize+y}
8616 then :
8617 printf %s "(cached) " >&6
8618 else $as_nop
8619 ac_check_lib_save_LIBS=$LIBS
8620 LIBS="-lreadline $LIBS"
8621 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8622 /* end confdefs.h. */
8623
8624 /* Override any GCC internal prototype to avoid an error.
8625 Use char because int might match the return type of a GCC
8626 builtin and then its argument prototype would still apply. */
8627 char rl_initialize ();
8628 int
8629 main (void)
8630 {
8631 return rl_initialize ();
8632 ;
8633 return 0;
8634 }
8635 _ACEOF
8636 if ac_fn_c_try_link "$LINENO"
8637 then :
8638 ac_cv_lib_readline_rl_initialize=yes
8639 else $as_nop
8640 ac_cv_lib_readline_rl_initialize=no
8641 fi
8642 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8643 conftest$ac_exeext conftest.$ac_ext
8644 LIBS=$ac_check_lib_save_LIBS
8645 fi
8646 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_readline_rl_initialize" >&5
8647 printf "%s\n" "$ac_cv_lib_readline_rl_initialize" >&6; }
8648 if test "x$ac_cv_lib_readline_rl_initialize" = xyes
8649 then :
8650
8651 printf "%s\n" "#define USE_READLINE 1" >>confdefs.h
8652
8653 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for el_getc in -lreadline" >&5
8654 printf %s "checking for el_getc in -lreadline... " >&6; }
8655 if test ${ac_cv_lib_readline_el_getc+y}
8656 then :
8657 printf %s "(cached) " >&6
8658 else $as_nop
8659 ac_check_lib_save_LIBS=$LIBS
8660 LIBS="-lreadline $LIBS"
8661 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8662 /* end confdefs.h. */
8663
8664 /* Override any GCC internal prototype to avoid an error.
8665 Use char because int might match the return type of a GCC
8666 builtin and then its argument prototype would still apply. */
8667 char el_getc ();
8668 int
8669 main (void)
8670 {
8671 return el_getc ();
8672 ;
8673 return 0;
8674 }
8675 _ACEOF
8676 if ac_fn_c_try_link "$LINENO"
8677 then :
8678 ac_cv_lib_readline_el_getc=yes
8679 else $as_nop
8680 ac_cv_lib_readline_el_getc=no
8681 fi
8682 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8683 conftest$ac_exeext conftest.$ac_ext
8684 LIBS=$ac_check_lib_save_LIBS
8685 fi
8686 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_readline_el_getc" >&5
8687 printf "%s\n" "$ac_cv_lib_readline_el_getc" >&6; }
8688 if test "x$ac_cv_lib_readline_el_getc" = xyes
8689 then :
8690
8691 printf "%s\n" "#define READLINE_IS_EDITLINE 1" >>confdefs.h
8692
8693 fi
8694
8695 # These tests discover differences between readline 4.1 and 4.3
8696 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for rl_completion_matches in -lreadline" >&5
8697 printf %s "checking for rl_completion_matches in -lreadline... " >&6; }
8698 if test ${ac_cv_lib_readline_rl_completion_matches+y}
8699 then :
8700 printf %s "(cached) " >&6
8701 else $as_nop
8702 ac_check_lib_save_LIBS=$LIBS
8703 LIBS="-lreadline $LIBS"
8704 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8705 /* end confdefs.h. */
8706
8707 /* Override any GCC internal prototype to avoid an error.
8708 Use char because int might match the return type of a GCC
8709 builtin and then its argument prototype would still apply. */
8710 char rl_completion_matches ();
8711 int
8712 main (void)
8713 {
8714 return rl_completion_matches ();
8715 ;
8716 return 0;
8717 }
8718 _ACEOF
8719 if ac_fn_c_try_link "$LINENO"
8720 then :
8721 ac_cv_lib_readline_rl_completion_matches=yes
8722 else $as_nop
8723 ac_cv_lib_readline_rl_completion_matches=no
8724 fi
8725 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8726 conftest$ac_exeext conftest.$ac_ext
8727 LIBS=$ac_check_lib_save_LIBS
8728 fi
8729 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_readline_rl_completion_matches" >&5
8730 printf "%s\n" "$ac_cv_lib_readline_rl_completion_matches" >&6; }
8731 if test "x$ac_cv_lib_readline_rl_completion_matches" = xyes
8732 then :
8733
8734 printf "%s\n" "#define HAVE_DECL_RL_COMPLETION_MATCHES 1" >>confdefs.h
8735
8736
8737 printf "%s\n" "#define HAVE_RL_COMPENTRY_FUNC_T 1" >>confdefs.h
8738
8739 fi
8740
8741 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking RL_COMPLETION_ENTRY_FUNCTION_TYPE_FUNCTION" >&5
8742 printf %s "checking RL_COMPLETION_ENTRY_FUNCTION_TYPE_FUNCTION... " >&6; }
8743 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8744 /* end confdefs.h. */
8745
8746 #include <stdio.h>
8747 #include <readline/readline.h>
8748 extern Function *rl_completion_entry_function __attribute__((weak));
8749
8750 int
8751 main (void)
8752 {
8753
8754 ;
8755 return 0;
8756 }
8757 _ACEOF
8758 if ac_fn_c_try_compile "$LINENO"
8759 then :
8760
8761 printf "%s\n" "#define RL_COMPLETION_ENTRY_FUNCTION_TYPE_FUNCTION 1" >>confdefs.h
8762
8763 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8764 printf "%s\n" "yes" >&6; }
8765 else $as_nop
8766 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8767 printf "%s\n" "no" >&6; }
8768 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking RL_COMPLETION_ENTRY_FUNCTION_TYPE_RL_COMPENTRY_FUNC_T" >&5
8769 printf %s "checking RL_COMPLETION_ENTRY_FUNCTION_TYPE_RL_COMPENTRY_FUNC_T... " >&6; }
8770 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8771 /* end confdefs.h. */
8772
8773 #include <stdio.h>
8774 #include <readline/readline.h>
8775 extern rl_compentry_func_t *rl_completion_entry_function __attribute__((weak));
8776
8777 int
8778 main (void)
8779 {
8780
8781 ;
8782 return 0;
8783 }
8784 _ACEOF
8785 if ac_fn_c_try_compile "$LINENO"
8786 then :
8787
8788 printf "%s\n" "#define RL_COMPLETION_ENTRY_FUNCTION_TYPE_RL_COMPENTRY_FUNC_T 1" >>confdefs.h
8789
8790 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8791 printf "%s\n" "yes" >&6; }
8792 else $as_nop
8793 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8794 printf "%s\n" "no" >&6; }
8795 as_fn_error $? "Unknown rl_completion_entry_function return type" "$LINENO" 5
8796 fi
8797 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8798 fi
8799 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8800
8801 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking RL_READLINE_NAME_TYPE_CHAR" >&5
8802 printf %s "checking RL_READLINE_NAME_TYPE_CHAR... " >&6; }
8803 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8804 /* end confdefs.h. */
8805
8806 #include <stdio.h>
8807 #include <readline/readline.h>
8808 extern char *rl_readline_name __attribute__((weak));
8809
8810 int
8811 main (void)
8812 {
8813
8814 ;
8815 return 0;
8816 }
8817 _ACEOF
8818 if ac_fn_c_try_compile "$LINENO"
8819 then :
8820
8821 printf "%s\n" "#define RL_READLINE_NAME_TYPE_CHAR 1" >>confdefs.h
8822
8823 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8824 printf "%s\n" "yes" >&6; }
8825 else $as_nop
8826 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8827 printf "%s\n" "no" >&6; }
8828 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking RL_READLINE_NAME_TYPE_CONST_CHAR" >&5
8829 printf %s "checking RL_READLINE_NAME_TYPE_CONST_CHAR... " >&6; }
8830 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8831 /* end confdefs.h. */
8832
8833 #include <stdio.h>
8834 #include <readline/readline.h>
8835 extern const char *rl_readline_name __attribute__((weak));
8836
8837 int
8838 main (void)
8839 {
8840
8841 ;
8842 return 0;
8843 }
8844 _ACEOF
8845 if ac_fn_c_try_compile "$LINENO"
8846 then :
8847
8848 printf "%s\n" "#define RL_READLINE_NAME_TYPE_CONST_CHAR 1" >>confdefs.h
8849
8850 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8851 printf "%s\n" "yes" >&6; }
8852 else $as_nop
8853 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8854 printf "%s\n" "no" >&6; }
8855 as_fn_error $? "Unknown rl_readline_name return type" "$LINENO" 5
8856 fi
8857 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8858 fi
8859 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8860 TLIBS="$TLIBS -lreadline" #some machines don't link this, e.g. Slackware
8861 RL_OBJS=gcl_readline.o
8862 fi
8863
8864 fi
8865
8866 done
8867 fi
8868
8869
8870
8871
8872 # sockets
8873
8874 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking For network code for nsocket.c" >&5
8875 printf %s "checking For network code for nsocket.c... " >&6; }
8876 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8877 /* end confdefs.h. */
8878
8879 #include <sys/time.h>
8880 #include <sys/types.h>
8881 #include <unistd.h>
8882
8883 #include <errno.h>
8884 #include <fcntl.h>
8885 #include <stdio.h>
8886
8887 /************* for the sockets ******************/
8888 #include <sys/socket.h> /* struct sockaddr, SOCK_STREAM, ... */
8889 #ifndef NO_UNAME
8890 # include <sys/utsname.h> /* uname system call. */
8891 #endif
8892 #include <netinet/in.h> /* struct in_addr, struct sockaddr_in */
8893 #include <arpa/inet.h> /* inet_ntoa() */
8894 #include <netdb.h> /* gethostbyname() */
8895
8896 int
8897 main (void)
8898 {
8899
8900 connect(0,(struct sockaddr *)0,0);
8901 gethostbyname("jil");
8902 socket(AF_INET, SOCK_STREAM, 0);
8903
8904 ;
8905 return 0;
8906 }
8907 _ACEOF
8908 if ac_fn_c_try_link "$LINENO"
8909 then :
8910
8911 printf "%s\n" "#define HAVE_NSOCKET 1" >>confdefs.h
8912
8913 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8914 printf "%s\n" "yes" >&6; }
8915 else $as_nop
8916 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8917 printf "%s\n" "no" >&6; }
8918 fi
8919 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8920 conftest$ac_exeext conftest.$ac_ext
8921
8922
8923 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking check for listen using fcntl" >&5
8924 printf %s "checking check for listen using fcntl... " >&6; }
8925 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8926 /* end confdefs.h. */
8927
8928 #include <stdio.h>
8929 #include <fcntl.h>
8930
8931 int
8932 main (void)
8933 {
8934
8935 FILE *fp=fopen("configure.in","r");
8936 int orig;
8937 orig = fcntl(fileno(fp), F_GETFL);
8938 if (! (orig & O_NONBLOCK )) return 0;
8939
8940 ;
8941 return 0;
8942 }
8943 _ACEOF
8944 if ac_fn_c_try_compile "$LINENO"
8945 then :
8946
8947 printf "%s\n" "#define LISTEN_USE_FCNTL 1" >>confdefs.h
8948
8949 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8950 printf "%s\n" "yes" >&6; }
8951 else $as_nop
8952 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8953 printf "%s\n" "no" >&6; }
8954 fi
8955 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8956
8957
8958 ac_fn_c_check_func "$LINENO" "profil" "ac_cv_func_profil"
8959 if test "x$ac_cv_func_profil" = xyes
8960 then :
8961
8962 else $as_nop
8963
8964 printf "%s\n" "#define NO_PROFILE 1" >>confdefs.h
8965
8966 fi
8967
8968
8969 ac_fn_c_check_func "$LINENO" "setenv" "ac_cv_func_setenv"
8970 if test "x$ac_cv_func_setenv" = xyes
8971 then :
8972
8973 printf "%s\n" "#define HAVE_SETENV 1" >>confdefs.h
8974
8975 else $as_nop
8976 no_setenv=1
8977 fi
8978
8979
8980 if test "$no_setenv" = "1" ; then
8981 ac_fn_c_check_func "$LINENO" "putenv" "ac_cv_func_putenv"
8982 if test "x$ac_cv_func_putenv" = xyes
8983 then :
8984
8985 printf "%s\n" "#define HAVE_PUTENV 1" >>confdefs.h
8986
8987 fi
8988
8989
8990 fi
8991
8992 ac_fn_c_check_func "$LINENO" "_cleanup" "ac_cv_func__cleanup"
8993 if test "x$ac_cv_func__cleanup" = xyes
8994 then :
8995
8996 printf "%s\n" "#define USE_CLEANUP 1" >>confdefs.h
8997
8998 fi
8999
9000
9001 gcl_ok=no
9002
9003 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking FIONBIO vs. O_NONBLOCK for nonblocking I/O" >&5
9004 printf %s "checking FIONBIO vs. O_NONBLOCK for nonblocking I/O... " >&6; }
9005
9006 case $system in
9007 OSF*)
9008
9009 printf "%s\n" "#define USE_FIONBIO 1" >>confdefs.h
9010
9011 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: FIONBIO" >&5
9012 printf "%s\n" "FIONBIO" >&6; }
9013 ;;
9014 SunOS-4*)
9015
9016 printf "%s\n" "#define USE_FIONBIO 1" >>confdefs.h
9017
9018 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: FIONBIO" >&5
9019 printf "%s\n" "FIONBIO" >&6; }
9020 ;;
9021 ULTRIX-4.*)
9022
9023 printf "%s\n" "#define USE_FIONBIO 1" >>confdefs.h
9024
9025 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: FIONBIO" >&5
9026 printf "%s\n" "FIONBIO" >&6; }
9027 ;;
9028 *)
9029 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: O_NONBLOCK" >&5
9030 printf "%s\n" "O_NONBLOCK" >&6; }
9031 ;;
9032 esac
9033
9034
9035 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking check for SV_ONSTACK" >&5
9036 printf %s "checking check for SV_ONSTACK... " >&6; }
9037 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9038 /* end confdefs.h. */
9039
9040 #include <signal.h>
9041 int joe=SV_ONSTACK;
9042
9043 int
9044 main (void)
9045 {
9046
9047 ;
9048 return 0;
9049 }
9050 _ACEOF
9051 if ac_fn_c_try_compile "$LINENO"
9052 then :
9053
9054 printf "%s\n" "#define HAVE_SV_ONSTACK 1" >>confdefs.h
9055
9056
9057 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9058 printf "%s\n" "yes" >&6; }
9059 else $as_nop
9060 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9061 printf "%s\n" "no" >&6; }
9062 fi
9063 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9064
9065 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking check for SIGSYS" >&5
9066 printf %s "checking check for SIGSYS... " >&6; }
9067 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9068 /* end confdefs.h. */
9069
9070 #include <signal.h>
9071 int joe=SIGSYS;
9072
9073 int
9074 main (void)
9075 {
9076
9077 ;
9078 return 0;
9079 }
9080 _ACEOF
9081 if ac_fn_c_try_compile "$LINENO"
9082 then :
9083
9084 printf "%s\n" "#define HAVE_SIGSYS 1" >>confdefs.h
9085
9086
9087 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9088 printf "%s\n" "yes" >&6; }
9089 else $as_nop
9090 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9091 printf "%s\n" "no" >&6; }
9092 fi
9093 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9094
9095
9096 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking check for SIGEMT" >&5
9097 printf %s "checking check for SIGEMT... " >&6; }
9098 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9099 /* end confdefs.h. */
9100
9101 #include <signal.h>
9102 int joe=SIGEMT;
9103
9104 int
9105 main (void)
9106 {
9107
9108 ;
9109 return 0;
9110 }
9111 _ACEOF
9112 if ac_fn_c_try_compile "$LINENO"
9113 then :
9114
9115 printf "%s\n" "#define HAVE_SIGEMT 1" >>confdefs.h
9116
9117
9118 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9119 printf "%s\n" "yes" >&6; }
9120 else $as_nop
9121 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9122 printf "%s\n" "no" >&6; }
9123 fi
9124 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9125
9126 ac_fn_c_check_func "$LINENO" "sigaltstack" "ac_cv_func_sigaltstack"
9127 if test "x$ac_cv_func_sigaltstack" = xyes
9128 then :
9129 printf "%s\n" "#define HAVE_SIGALTSTACK 1" >>confdefs.h
9130
9131 fi
9132
9133 ac_fn_c_check_func "$LINENO" "feenableexcept" "ac_cv_func_feenableexcept"
9134 if test "x$ac_cv_func_feenableexcept" = xyes
9135 then :
9136 printf "%s\n" "#define HAVE_FEENABLEEXCEPT 1" >>confdefs.h
9137
9138 fi
9139
9140
9141 for ac_header in dis-asm.h
9142 do :
9143 ac_fn_c_check_header_compile "$LINENO" "dis-asm.h" "ac_cv_header_dis_asm_h" "$ac_includes_default"
9144 if test "x$ac_cv_header_dis_asm_h" = xyes
9145 then :
9146 printf "%s\n" "#define HAVE_DIS_ASM_H 1" >>confdefs.h
9147 MLIBS=$LIBS
9148 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for init_disassemble_info in -lopcodes" >&5
9149 printf %s "checking for init_disassemble_info in -lopcodes... " >&6; }
9150 if test ${ac_cv_lib_opcodes_init_disassemble_info+y}
9151 then :
9152 printf %s "(cached) " >&6
9153 else $as_nop
9154 ac_check_lib_save_LIBS=$LIBS
9155 LIBS="-lopcodes $LIBS"
9156 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9157 /* end confdefs.h. */
9158
9159 /* Override any GCC internal prototype to avoid an error.
9160 Use char because int might match the return type of a GCC
9161 builtin and then its argument prototype would still apply. */
9162 char init_disassemble_info ();
9163 int
9164 main (void)
9165 {
9166 return init_disassemble_info ();
9167 ;
9168 return 0;
9169 }
9170 _ACEOF
9171 if ac_fn_c_try_link "$LINENO"
9172 then :
9173 ac_cv_lib_opcodes_init_disassemble_info=yes
9174 else $as_nop
9175 ac_cv_lib_opcodes_init_disassemble_info=no
9176 fi
9177 rm -f core conftest.err conftest.$ac_objext conftest.beam \
9178 conftest$ac_exeext conftest.$ac_ext
9179 LIBS=$ac_check_lib_save_LIBS
9180 fi
9181 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_opcodes_init_disassemble_info" >&5
9182 printf "%s\n" "$ac_cv_lib_opcodes_init_disassemble_info" >&6; }
9183 if test "x$ac_cv_lib_opcodes_init_disassemble_info" = xyes
9184 then :
9185 printf "%s\n" "#define HAVE_LIBOPCODES 1" >>confdefs.h
9186
9187 LIBS="-lopcodes $LIBS"
9188
9189 fi
9190
9191 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
9192 printf %s "checking for dlopen in -ldl... " >&6; }
9193 if test ${ac_cv_lib_dl_dlopen+y}
9194 then :
9195 printf %s "(cached) " >&6
9196 else $as_nop
9197 ac_check_lib_save_LIBS=$LIBS
9198 LIBS="-ldl $LIBS"
9199 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9200 /* end confdefs.h. */
9201
9202 /* Override any GCC internal prototype to avoid an error.
9203 Use char because int might match the return type of a GCC
9204 builtin and then its argument prototype would still apply. */
9205 char dlopen ();
9206 int
9207 main (void)
9208 {
9209 return dlopen ();
9210 ;
9211 return 0;
9212 }
9213 _ACEOF
9214 if ac_fn_c_try_link "$LINENO"
9215 then :
9216 ac_cv_lib_dl_dlopen=yes
9217 else $as_nop
9218 ac_cv_lib_dl_dlopen=no
9219 fi
9220 rm -f core conftest.err conftest.$ac_objext conftest.beam \
9221 conftest$ac_exeext conftest.$ac_ext
9222 LIBS=$ac_check_lib_save_LIBS
9223 fi
9224 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
9225 printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; }
9226 if test "x$ac_cv_lib_dl_dlopen" = xyes
9227 then :
9228 #opcodes changes too quickly to link directly
9229 LIBS="$MLIBS -ldl"
9230 fi
9231
9232 fi
9233
9234 done
9235
9236 #if test $use = "386-linux" ; then
9237 ac_fn_c_check_header_compile "$LINENO" "asm/sigcontext.h" "ac_cv_header_asm_sigcontext_h" "$ac_includes_default"
9238 if test "x$ac_cv_header_asm_sigcontext_h" = xyes
9239 then :
9240 printf "%s\n" "#define HAVE_ASM_SIGCONTEXT_H 1" >>confdefs.h
9241
9242 fi
9243
9244 ac_fn_c_check_header_compile "$LINENO" "asm/signal.h" "ac_cv_header_asm_signal_h" "$ac_includes_default"
9245 if test "x$ac_cv_header_asm_signal_h" = xyes
9246 then :
9247 printf "%s\n" "#define HAVE_ASM_SIGNAL_H 1" >>confdefs.h
9248
9249 fi
9250
9251 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sigcontext..." >&5
9252 printf %s "checking for sigcontext...... " >&6; }
9253 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9254 /* end confdefs.h. */
9255
9256 #include <signal.h>
9257
9258 int
9259 main (void)
9260 {
9261
9262 struct sigcontext foo;
9263
9264 ;
9265 return 0;
9266 }
9267 _ACEOF
9268 if ac_fn_c_try_compile "$LINENO"
9269 then :
9270
9271 printf "%s\n" "#define SIGNAL_H_HAS_SIGCONTEXT 1" >>confdefs.h
9272
9273 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: sigcontext of signal.h" >&5
9274 printf "%s\n" "sigcontext of signal.h" >&6; }
9275 else $as_nop
9276 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: sigcontext NOT of signal.h" >&5
9277 printf "%s\n" "sigcontext NOT of signal.h" >&6; }
9278 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sigcontext..." >&5
9279 printf %s "checking for sigcontext...... " >&6; }
9280 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9281 /* end confdefs.h. */
9282
9283 #include <signal.h>
9284 #ifdef HAVE_ASM_SIGCONTEXT_H
9285 #include <asm/sigcontext.h>
9286 #endif
9287 #ifdef HAVE_ASM_SIGNAL_H
9288 #include <asm/signal.h>
9289 #endif
9290
9291 int
9292 main (void)
9293 {
9294
9295 struct sigcontext foo;
9296
9297 ;
9298 return 0;
9299 }
9300 _ACEOF
9301 if ac_fn_c_try_compile "$LINENO"
9302 then :
9303
9304 printf "%s\n" "#define HAVE_SIGCONTEXT 1" >>confdefs.h
9305
9306 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: sigcontext asm files" >&5
9307 printf "%s\n" "sigcontext asm files" >&6; }
9308 else $as_nop
9309 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no sigcontext found" >&5
9310 printf "%s\n" "no sigcontext found" >&6; }
9311 fi
9312 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9313 fi
9314 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9315
9316 # Extract the first word of "emacs", so it can be a program name with args.
9317 set dummy emacs; ac_word=$2
9318 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9319 printf %s "checking for $ac_word... " >&6; }
9320 if test ${ac_cv_path_EMACS+y}
9321 then :
9322 printf %s "(cached) " >&6
9323 else $as_nop
9324 case $EMACS in
9325 [\\/]* | ?:[\\/]*)
9326 ac_cv_path_EMACS="$EMACS" # Let the user override the test with a path.
9327 ;;
9328 *)
9329 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9330 for as_dir in $PATH
9331 do
9332 IFS=$as_save_IFS
9333 case $as_dir in #(((
9334 '') as_dir=./ ;;
9335 */) ;;
9336 *) as_dir=$as_dir/ ;;
9337 esac
9338 for ac_exec_ext in '' $ac_executable_extensions; do
9339 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9340 ac_cv_path_EMACS="$as_dir$ac_word$ac_exec_ext"
9341 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9342 break 2
9343 fi
9344 done
9345 done
9346 IFS=$as_save_IFS
9347
9348 ;;
9349 esac
9350 fi
9351 EMACS=$ac_cv_path_EMACS
9352 if test -n "$EMACS"; then
9353 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $EMACS" >&5
9354 printf "%s\n" "$EMACS" >&6; }
9355 else
9356 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9357 printf "%s\n" "no" >&6; }
9358 fi
9359
9360
9361
9362
9363 # check for where the emacs site lisp directory is.
9364 rm -f conftest.el
9365 cat >> conftest.el <<EOF
9366 (let ((ans ".") (tem load-path) cur)
9367 (while (setq cur (car tem))
9368 (setq tem (cdr tem))
9369 (cond ((and (string-match "site-lisp/?$" cur) (file-directory-p cur))
9370 (setq ans cur)
9371 (if (string-match "-0-9.+$" cur) nil
9372 (setq tem nil)))))
9373 (message ans))
9374 EOF
9375
9376 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking emacs site lisp directory" >&5
9377 printf %s "checking emacs site lisp directory... " >&6; }
9378 if [ "$EMACS_SITE_LISP" = "unknown" ] ; then
9379 if [ "$EMACS" != "" ] ; then
9380 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`
9381 else
9382 EMACS_SITE_LISP=""
9383 fi
9384 fi
9385 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $EMACS_SITE_LISP" >&5
9386 printf "%s\n" "$EMACS_SITE_LISP" >&6; }
9387
9388
9389 # check for where the emacs site lisp default.el is
9390 rm -f conftest.el
9391 cat >> conftest.el <<EOF
9392 (let ((ans "./default.el") file (tem load-path))
9393 (while tem
9394 (cond ((file-exists-p
9395 (setq file (expand-file-name "/default.el" (car tem))))
9396 (setq tem nil) (setq ans file)))
9397 (setq tem (cdr tem)))
9398 (message ans))
9399 EOF
9400
9401 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking emacs default.el" >&5
9402 printf %s "checking emacs default.el... " >&6; }
9403 if [ "$EMACS" != "" ] ; then
9404 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`
9405 else
9406 EMACS_DEFAULT_EL=""
9407 fi
9408 if test -f "${EMACS_DEFAULT_EL}" ; then true;else
9409 if test -d $EMACS_SITE_LISP ; then
9410 EMACS_DEFAULT_EL=${EMACS_SITE_LISP}/default.el
9411 fi
9412 fi
9413 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $EMACS_DEFAULT_EL" >&5
9414 printf "%s\n" "$EMACS_DEFAULT_EL" >&6; }
9415
9416
9417
9418
9419 # check for where the emacs site lisp info/dir is
9420 rm -f conftest.el
9421 cat >> conftest.el <<EOF
9422 (let ((ans "") file (tem Info-default-directory-list))
9423 (while tem
9424 (cond ((file-exists-p (setq file (expand-file-name "dir" (car tem))))
9425 (setq ans (file-name-as-directory (car tem)))
9426 (setq tem nil) ))
9427 (setq tem (cdr tem)))
9428 (message ans))
9429 EOF
9430
9431 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking emacs info/dir" >&5
9432 printf %s "checking emacs info/dir... " >&6; }
9433 if test "$use" = "mingw" ; then
9434 INFO_DIR=\$\(prefix\)/lib/gcl-$VERSION/info/
9435 else
9436 if [ "$EMACS" != "" ] && [ "$INFO_DIR" = "unknown" ] ; then
9437 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`
9438 fi
9439 fi
9440
9441 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $INFO_DIR" >&5
9442 printf "%s\n" "$INFO_DIR" >&6; }
9443
9444
9445 # Check whether --enable-tcltk was given.
9446 if test ${enable_tcltk+y}
9447 then :
9448 enableval=$enable_tcltk;
9449 fi
9450
9451 # Check whether --enable-tkconfig was given.
9452 if test ${enable_tkconfig+y}
9453 then :
9454 enableval=$enable_tkconfig; TK_CONFIG_PREFIX=$enableval
9455 else $as_nop
9456 TK_CONFIG_PREFIX=unknown
9457 fi
9458
9459 # Check whether --enable-tclconfig was given.
9460 if test ${enable_tclconfig+y}
9461 then :
9462 enableval=$enable_tclconfig; TCL_CONFIG_PREFIX=$enableval
9463 else $as_nop
9464 TCL_CONFIG_PREFIX=unknown
9465 fi
9466
9467
9468 if test "$enable_tcltk" != "no" ; then
9469
9470 if test -d "${TCL_CONFIG_PREFIX}" ; then true ; else
9471
9472 # Extract the first word of "tclsh", so it can be a program name with args.
9473 set dummy tclsh; ac_word=$2
9474 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9475 printf %s "checking for $ac_word... " >&6; }
9476 if test ${ac_cv_prog_TCLSH+y}
9477 then :
9478 printf %s "(cached) " >&6
9479 else $as_nop
9480 if test -n "$TCLSH"; then
9481 ac_cv_prog_TCLSH="$TCLSH" # Let the user override the test.
9482 else
9483 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9484 for as_dir in $PATH
9485 do
9486 IFS=$as_save_IFS
9487 case $as_dir in #(((
9488 '') as_dir=./ ;;
9489 */) ;;
9490 *) as_dir=$as_dir/ ;;
9491 esac
9492 for ac_exec_ext in '' $ac_executable_extensions; do
9493 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9494 ac_cv_prog_TCLSH="tclsh"
9495 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9496 break 2
9497 fi
9498 done
9499 done
9500 IFS=$as_save_IFS
9501
9502 test -z "$ac_cv_prog_TCLSH" && ac_cv_prog_TCLSH="${TCLSH}"
9503 fi
9504 fi
9505 TCLSH=$ac_cv_prog_TCLSH
9506 if test -n "$TCLSH"; then
9507 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $TCLSH" >&5
9508 printf "%s\n" "$TCLSH" >&6; }
9509 else
9510 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9511 printf "%s\n" "no" >&6; }
9512 fi
9513
9514
9515
9516 if test "${TCLSH}" = "" ; then true ; else
9517
9518 rm -f conftest.tcl
9519 cat >> conftest.tcl <<EOF
9520
9521 puts [set tcl_version]
9522
9523 EOF
9524
9525 TCL_VERSION=`${TCLSH} < conftest.tcl`
9526 fi
9527
9528 if test -x /usr/lib/tcl$TCL_VERSION/tclConfig.sh ; then
9529 TCL_CONFIG_PREFIX=/usr/lib/tcl$TCL_VERSION
9530 fi
9531
9532 fi
9533
9534 if test -f ${TCL_CONFIG_PREFIX}/tclConfig.sh ; then . ${TCL_CONFIG_PREFIX}/tclConfig.sh ; fi
9535
9536 if test -d "${TK_CONFIG_PREFIX}" ; then true ; else
9537 if test -f ${TCL_CONFIG_PREFIX}/tkConfig.sh ; then
9538 TK_CONFIG_PREFIX=${TCL_CONFIG_PREFIX}
9539 else
9540 if test -x `echo $TCL_CONFIG_PREFIX | sed 's,tcl,tk,g'`/tkConfig.sh ; then
9541 TK_CONFIG_PREFIX=`echo $TCL_CONFIG_PREFIX | sed 's,tcl,tk,g'`
9542 fi
9543 fi
9544 fi
9545
9546 if test -f ${TK_CONFIG_PREFIX}/tkConfig.sh ; then . ${TK_CONFIG_PREFIX}/tkConfig.sh ; fi
9547
9548 if test -d ${TCL_CONFIG_PREFIX}/tcl${TCL_VERSION} ; then
9549 TCL_LIBRARY=${TCL_CONFIG_PREFIX}/tcl${TCL_VERSION}
9550 else
9551 if test -d ${TCL_CONFIG_PREFIX}/../tcl${TCL_VERSION} ; then
9552 TCL_LIBRARY=${TCL_CONFIG_PREFIX}/../tcl${TCL_VERSION}
9553 fi
9554 fi
9555
9556 if test -d ${TK_CONFIG_PREFIX}/tk${TK_VERSION} ; then
9557 TK_LIBRARY=${TK_CONFIG_PREFIX}/tk${TK_VERSION}
9558 else
9559 if test -d ${TK_CONFIG_PREFIX}/../tk${TK_VERSION} ; then
9560 TK_LIBRARY=${TK_CONFIG_PREFIX}/../tk${TK_VERSION}
9561 fi
9562 fi
9563
9564 if test -f ${TCL_CONFIG_PREFIX}/../include/tcl.h ; then
9565 TCL_INCLUDE=-I${TCL_CONFIG_PREFIX}/../include
9566 else
9567 if test -f /usr/include/tcl${TCL_VERSION}/tcl.h ; then
9568 TCL_INCLUDE=-I/usr/include/tcl${TCL_VERSION}
9569 fi
9570 fi
9571
9572 if test -f ${TK_CONFIG_PREFIX}/../include/tk.h ; then
9573 TK_INCLUDE=-I${TK_CONFIG_PREFIX}/../include
9574 else
9575 if test -f /usr/include/tcl${TCL_VERSION}/tk.h ; then
9576 TK_INCLUDE=-I/usr/include/tcl${TCL_VERSION}
9577 fi
9578 fi
9579
9580 TCL_VERSION_DOT_FREE=`echo ${TCL_VERSION} | tr -d .`
9581 if test -f ${TK_CONFIG_PREFIX}/../bin/tcl${TCL_VERSION_DOT_FREE}.dll ; then
9582 TCL_LIBS="-L${TK_CONFIG_PREFIX}/../bin -ltk${TCL_VERSION_DOT_FREE} -ltcl${TCL_VERSION_DOT_FREE}"
9583 TCL_STUB_LIBS="-L${TK_CONFIG_PREFIX}/lib -ltkstub${TCL_VERSION_DOT_FREE} -ltclstub${TCL_VERSION_DOT_FREE}"
9584 else
9585 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for main in -llieee" >&5
9586 printf %s "checking for main in -llieee... " >&6; }
9587 if test ${ac_cv_lib_lieee_main+y}
9588 then :
9589 printf %s "(cached) " >&6
9590 else $as_nop
9591 ac_check_lib_save_LIBS=$LIBS
9592 LIBS="-llieee $LIBS"
9593 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9594 /* end confdefs.h. */
9595
9596
9597 int
9598 main (void)
9599 {
9600 return main ();
9601 ;
9602 return 0;
9603 }
9604 _ACEOF
9605 if ac_fn_c_try_link "$LINENO"
9606 then :
9607 ac_cv_lib_lieee_main=yes
9608 else $as_nop
9609 ac_cv_lib_lieee_main=no
9610 fi
9611 rm -f core conftest.err conftest.$ac_objext conftest.beam \
9612 conftest$ac_exeext conftest.$ac_ext
9613 LIBS=$ac_check_lib_save_LIBS
9614 fi
9615 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lieee_main" >&5
9616 printf "%s\n" "$ac_cv_lib_lieee_main" >&6; }
9617 if test "x$ac_cv_lib_lieee_main" = xyes
9618 then :
9619 have_ieee=1
9620 else $as_nop
9621 have_ieee=0
9622 fi
9623
9624 if test "$have_ieee" = "0" ; then
9625 TCL_LIBS=`echo ${TCL_LIBS} | sed -e "s:-lieee::g" `
9626 fi
9627 TCL_STUB_LIBS=""
9628 fi
9629
9630 fi
9631
9632
9633
9634
9635
9636
9637
9638
9639
9640
9641
9642
9643
9644
9645
9646
9647
9648
9649
9650
9651
9652 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for tcl/tk" >&5
9653 printf %s "checking for tcl/tk... " >&6; }
9654 if test -d "${TK_CONFIG_PREFIX}" ; then
9655 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: using TK_VERSION=${TK_VERSION} of ${TK_CONFIG_PREFIX}" >&5
9656 printf "%s\n" "using TK_VERSION=${TK_VERSION} of ${TK_CONFIG_PREFIX}" >&6; }
9657 else
9658 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: not found" >&5
9659 printf "%s\n" "not found" >&6; }
9660 fi
9661
9662 # Check whether --enable-notify was given.
9663 if test ${enable_notify+y}
9664 then :
9665 enableval=$enable_notify; NOTIFY=$enable_notify
9666
9667 fi
9668
9669
9670
9671 # for sgbc the mprotect capabilities.
9672
9673 # the time handling for unixtime, add timezone
9674 for ac_header in sys/mman.h
9675 do :
9676 ac_fn_c_check_header_compile "$LINENO" "sys/mman.h" "ac_cv_header_sys_mman_h" "$ac_includes_default"
9677 if test "x$ac_cv_header_sys_mman_h" = xyes
9678 then :
9679 printf "%s\n" "#define HAVE_SYS_MMAN_H 1" >>confdefs.h
9680 ac_fn_c_check_func "$LINENO" "mprotect" "ac_cv_func_mprotect"
9681 if test "x$ac_cv_func_mprotect" = xyes
9682 then :
9683 printf "%s\n" "#define HAVE_MPROTECT 1" >>confdefs.h
9684
9685 fi
9686
9687 fi
9688
9689 done
9690 ac_fn_c_check_header_compile "$LINENO" "alloca.h" "ac_cv_header_alloca_h" "$ac_includes_default"
9691 if test "x$ac_cv_header_alloca_h" = xyes
9692 then :
9693 printf "%s\n" "#define HAVE_ALLOCA_H 1" >>confdefs.h
9694
9695 fi
9696
9697 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
9698 if test "x$ac_cv_type_size_t" = xyes
9699 then :
9700
9701 else $as_nop
9702
9703 printf "%s\n" "#define size_t unsigned int" >>confdefs.h
9704
9705 fi
9706
9707 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
9708 # for constant arguments. Useless!
9709 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
9710 printf %s "checking for working alloca.h... " >&6; }
9711 if test ${ac_cv_working_alloca_h+y}
9712 then :
9713 printf %s "(cached) " >&6
9714 else $as_nop
9715 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9716 /* end confdefs.h. */
9717 #include <alloca.h>
9718 int
9719 main (void)
9720 {
9721 char *p = (char *) alloca (2 * sizeof (int));
9722 if (p) return 0;
9723 ;
9724 return 0;
9725 }
9726 _ACEOF
9727 if ac_fn_c_try_link "$LINENO"
9728 then :
9729 ac_cv_working_alloca_h=yes
9730 else $as_nop
9731 ac_cv_working_alloca_h=no
9732 fi
9733 rm -f core conftest.err conftest.$ac_objext conftest.beam \
9734 conftest$ac_exeext conftest.$ac_ext
9735 fi
9736 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
9737 printf "%s\n" "$ac_cv_working_alloca_h" >&6; }
9738 if test $ac_cv_working_alloca_h = yes; then
9739
9740 printf "%s\n" "#define HAVE_ALLOCA_H 1" >>confdefs.h
9741
9742 fi
9743
9744 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
9745 printf %s "checking for alloca... " >&6; }
9746 if test ${ac_cv_func_alloca_works+y}
9747 then :
9748 printf %s "(cached) " >&6
9749 else $as_nop
9750 if test $ac_cv_working_alloca_h = yes; then
9751 ac_cv_func_alloca_works=yes
9752 else
9753 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9754 /* end confdefs.h. */
9755 #include <stdlib.h>
9756 #include <stddef.h>
9757 #ifndef alloca
9758 # ifdef __GNUC__
9759 # define alloca __builtin_alloca
9760 # elif defined _MSC_VER
9761 # include <malloc.h>
9762 # define alloca _alloca
9763 # else
9764 # ifdef __cplusplus
9765 extern "C"
9766 # endif
9767 void *alloca (size_t);
9768 # endif
9769 #endif
9770
9771 int
9772 main (void)
9773 {
9774 char *p = (char *) alloca (1);
9775 if (p) return 0;
9776 ;
9777 return 0;
9778 }
9779 _ACEOF
9780 if ac_fn_c_try_link "$LINENO"
9781 then :
9782 ac_cv_func_alloca_works=yes
9783 else $as_nop
9784 ac_cv_func_alloca_works=no
9785 fi
9786 rm -f core conftest.err conftest.$ac_objext conftest.beam \
9787 conftest$ac_exeext conftest.$ac_ext
9788 fi
9789 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
9790 printf "%s\n" "$ac_cv_func_alloca_works" >&6; }
9791 fi
9792
9793 if test $ac_cv_func_alloca_works = yes; then
9794
9795 printf "%s\n" "#define HAVE_ALLOCA 1" >>confdefs.h
9796
9797 else
9798 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
9799 # that cause trouble. Some versions do not even contain alloca or
9800 # contain a buggy version. If you still want to use their alloca,
9801 # use ar to extract alloca.o from them instead of compiling alloca.c.
9802
9803 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
9804
9805 printf "%s\n" "#define C_ALLOCA 1" >>confdefs.h
9806
9807
9808 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
9809 printf %s "checking stack direction for C alloca... " >&6; }
9810 if test ${ac_cv_c_stack_direction+y}
9811 then :
9812 printf %s "(cached) " >&6
9813 else $as_nop
9814 if test "$cross_compiling" = yes
9815 then :
9816 ac_cv_c_stack_direction=0
9817 else $as_nop
9818 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9819 /* end confdefs.h. */
9820 $ac_includes_default
9821 int
9822 find_stack_direction (int *addr, int depth)
9823 {
9824 int dir, dummy = 0;
9825 if (! addr)
9826 addr = &dummy;
9827 *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1;
9828 dir = depth ? find_stack_direction (addr, depth - 1) : 0;
9829 return dir + dummy;
9830 }
9831
9832 int
9833 main (int argc, char **argv)
9834 {
9835 return find_stack_direction (0, argc + !argv + 20) < 0;
9836 }
9837 _ACEOF
9838 if ac_fn_c_try_run "$LINENO"
9839 then :
9840 ac_cv_c_stack_direction=1
9841 else $as_nop
9842 ac_cv_c_stack_direction=-1
9843 fi
9844 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9845 conftest.$ac_objext conftest.beam conftest.$ac_ext
9846 fi
9847
9848 fi
9849 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
9850 printf "%s\n" "$ac_cv_c_stack_direction" >&6; }
9851 printf "%s\n" "#define STACK_DIRECTION $ac_cv_c_stack_direction" >>confdefs.h
9852
9853
9854 fi
9855
9856
9857
9858 LDFLAGS="`echo $GPL_FLAG $LDFLAGS | sed 's,gcl.script,../unixport/gcl.script,g'`"
9859
9860 LIBS="$X_PRE_LIBS $X_LIBS $X_EXTRA_LIBS $LIBS $TLIBS"
9861
9862 CFLAGS="$CFLAGS $GP_FLAG"
9863 FINAL_CFLAGS="$CFLAGS $CPPFLAGS $X_CFLAGS"
9864
9865 # Work around bug with gcc on ppc -- CM
9866 NIFLAGS="$CFLAGS $CPPFLAGS $TONIFLAGS -I\$(GCLDIR)/o"
9867
9868 CFLAGS="$CFLAGS $CPPFLAGS $TO3FLAGS -I\$(GCLDIR)/o"
9869
9870 O3FLAGS=$TO3FLAGS
9871
9872 O2FLAGS=$TO2FLAGS
9873
9874
9875
9876
9877
9878 if test -f h/$use.defs ; then
9879
9880
9881 ac_config_files="$ac_config_files makedefc windows/gcl.iss windows/sysdir.bat windows/install.lsp"
9882
9883 cat >confcache <<\_ACEOF
9884 # This file is a shell script that caches the results of configure
9885 # tests run on this system so they can be shared between configure
9886 # scripts and configure runs, see configure's option --config-cache.
9887 # It is not useful on other systems. If it contains results you don't
9888 # want to keep, you may remove or edit it.
9889 #
9890 # config.status only pays attention to the cache file if you give it
9891 # the --recheck option to rerun configure.
9892 #
9893 # `ac_cv_env_foo' variables (set or unset) will be overridden when
9894 # loading this file, other *unset* `ac_cv_foo' will be assigned the
9895 # following values.
9896
9897 _ACEOF
9898
9899 # The following way of writing the cache mishandles newlines in values,
9900 # but we know of no workaround that is simple, portable, and efficient.
9901 # So, we kill variables containing newlines.
9902 # Ultrix sh set writes to stderr and can't be redirected directly,
9903 # and sets the high bit in the cache file unless we assign to the vars.
9904 (
9905 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
9906 eval ac_val=\$$ac_var
9907 case $ac_val in #(
9908 *${as_nl}*)
9909 case $ac_var in #(
9910 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
9911 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
9912 esac
9913 case $ac_var in #(
9914 _ | IFS | as_nl) ;; #(
9915 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
9916 *) { eval $ac_var=; unset $ac_var;} ;;
9917 esac ;;
9918 esac
9919 done
9920
9921 (set) 2>&1 |
9922 case $as_nl`(ac_space=' '; set) 2>&1` in #(
9923 *${as_nl}ac_space=\ *)
9924 # `set' does not quote correctly, so add quotes: double-quote
9925 # substitution turns \\\\ into \\, and sed turns \\ into \.
9926 sed -n \
9927 "s/'/'\\\\''/g;
9928 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
9929 ;; #(
9930 *)
9931 # `set' quotes correctly as required by POSIX, so do not add quotes.
9932 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
9933 ;;
9934 esac |
9935 sort
9936 ) |
9937 sed '
9938 /^ac_cv_env_/b end
9939 t clear
9940 :clear
9941 s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/
9942 t end
9943 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
9944 :end' >>confcache
9945 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
9946 if test -w "$cache_file"; then
9947 if test "x$cache_file" != "x/dev/null"; then
9948 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
9949 printf "%s\n" "$as_me: updating cache $cache_file" >&6;}
9950 if test ! -f "$cache_file" || test -h "$cache_file"; then
9951 cat confcache >"$cache_file"
9952 else
9953 case $cache_file in #(
9954 */* | ?:*)
9955 mv -f confcache "$cache_file"$$ &&
9956 mv -f "$cache_file"$$ "$cache_file" ;; #(
9957 *)
9958 mv -f confcache "$cache_file" ;;
9959 esac
9960 fi
9961 fi
9962 else
9963 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
9964 printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;}
9965 fi
9966 fi
9967 rm -f confcache
9968
9969 test "x$prefix" = xNONE && prefix=$ac_default_prefix
9970 # Let make expand exec_prefix.
9971 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
9972
9973 DEFS=-DHAVE_CONFIG_H
9974
9975 ac_libobjs=
9976 ac_ltlibobjs=
9977 U=
9978 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
9979 # 1. Remove the extension, and $U if already installed.
9980 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
9981 ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"`
9982 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
9983 # will be set to the directory where LIBOBJS objects are built.
9984 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
9985 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
9986 done
9987 LIBOBJS=$ac_libobjs
9988
9989 LTLIBOBJS=$ac_ltlibobjs
9990
9991
9992
9993 : "${CONFIG_STATUS=./config.status}"
9994 ac_write_fail=0
9995 ac_clean_files_save=$ac_clean_files
9996 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
9997 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
9998 printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;}
9999 as_write_fail=0
10000 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
10001 #! $SHELL
10002 # Generated by $as_me.
10003 # Run this file to recreate the current configuration.
10004 # Compiler output produced by configure, useful for debugging
10005 # configure, is in config.log if it exists.
10006
10007 debug=false
10008 ac_cs_recheck=false
10009 ac_cs_silent=false
10010
10011 SHELL=\${CONFIG_SHELL-$SHELL}
10012 export SHELL
10013 _ASEOF
10014 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
10015 ## -------------------- ##
10016 ## M4sh Initialization. ##
10017 ## -------------------- ##
10018
10019 # Be more Bourne compatible
10020 DUALCASE=1; export DUALCASE # for MKS sh
10021 as_nop=:
10022 if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
10023 then :
10024 emulate sh
10025 NULLCMD=:
10026 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
10027 # is contrary to our usage. Disable this feature.
10028 alias -g '${1+"$@"}'='"$@"'
10029 setopt NO_GLOB_SUBST
10030 else $as_nop
10031 case `(set -o) 2>/dev/null` in #(
10032 *posix*) :
10033 set -o posix ;; #(
10034 *) :
10035 ;;
10036 esac
10037 fi
10038
10039
10040
10041 # Reset variables that may have inherited troublesome values from
10042 # the environment.
10043
10044 # IFS needs to be set, to space, tab, and newline, in precisely that order.
10045 # (If _AS_PATH_WALK were called with IFS unset, it would have the
10046 # side effect of setting IFS to empty, thus disabling word splitting.)
10047 # Quoting is to prevent editors from complaining about space-tab.
10048 as_nl='
10049 '
10050 export as_nl
10051 IFS=" "" $as_nl"
10052
10053 PS1='$ '
10054 PS2='> '
10055 PS4='+ '
10056
10057 # Ensure predictable behavior from utilities with locale-dependent output.
10058 LC_ALL=C
10059 export LC_ALL
10060 LANGUAGE=C
10061 export LANGUAGE
10062
10063 # We cannot yet rely on "unset" to work, but we need these variables
10064 # to be unset--not just set to an empty or harmless value--now, to
10065 # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct
10066 # also avoids known problems related to "unset" and subshell syntax
10067 # in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
10068 for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
10069 do eval test \${$as_var+y} \
10070 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
10071 done
10072
10073 # Ensure that fds 0, 1, and 2 are open.
10074 if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
10075 if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
10076 if (exec 3>&2) ; then :; else exec 2>/dev/null; fi
10077
10078 # The user is always right.
10079 if ${PATH_SEPARATOR+false} :; then
10080 PATH_SEPARATOR=:
10081 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
10082 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
10083 PATH_SEPARATOR=';'
10084 }
10085 fi
10086
10087
10088 # Find who we are. Look in the path if we contain no directory separator.
10089 as_myself=
10090 case $0 in #((
10091 *[\\/]* ) as_myself=$0 ;;
10092 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10093 for as_dir in $PATH
10094 do
10095 IFS=$as_save_IFS
10096 case $as_dir in #(((
10097 '') as_dir=./ ;;
10098 */) ;;
10099 *) as_dir=$as_dir/ ;;
10100 esac
10101 test -r "$as_dir$0" && as_myself=$as_dir$0 && break
10102 done
10103 IFS=$as_save_IFS
10104
10105 ;;
10106 esac
10107 # We did not find ourselves, most probably we were run as `sh COMMAND'
10108 # in which case we are not to be found in the path.
10109 if test "x$as_myself" = x; then
10110 as_myself=$0
10111 fi
10112 if test ! -f "$as_myself"; then
10113 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
10114 exit 1
10115 fi
10116
10117
10118
10119 # as_fn_error STATUS ERROR [LINENO LOG_FD]
10120 # ----------------------------------------
10121 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
10122 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
10123 # script with STATUS, using 1 if that was 0.
10124 as_fn_error ()
10125 {
10126 as_status=$1; test $as_status -eq 0 && as_status=1
10127 if test "$4"; then
10128 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
10129 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
10130 fi
10131 printf "%s\n" "$as_me: error: $2" >&2
10132 as_fn_exit $as_status
10133 } # as_fn_error
10134
10135
10136
10137 # as_fn_set_status STATUS
10138 # -----------------------
10139 # Set $? to STATUS, without forking.
10140 as_fn_set_status ()
10141 {
10142 return $1
10143 } # as_fn_set_status
10144
10145 # as_fn_exit STATUS
10146 # -----------------
10147 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
10148 as_fn_exit ()
10149 {
10150 set +e
10151 as_fn_set_status $1
10152 exit $1
10153 } # as_fn_exit
10154
10155 # as_fn_unset VAR
10156 # ---------------
10157 # Portably unset VAR.
10158 as_fn_unset ()
10159 {
10160 { eval $1=; unset $1;}
10161 }
10162 as_unset=as_fn_unset
10163
10164 # as_fn_append VAR VALUE
10165 # ----------------------
10166 # Append the text in VALUE to the end of the definition contained in VAR. Take
10167 # advantage of any shell optimizations that allow amortized linear growth over
10168 # repeated appends, instead of the typical quadratic growth present in naive
10169 # implementations.
10170 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
10171 then :
10172 eval 'as_fn_append ()
10173 {
10174 eval $1+=\$2
10175 }'
10176 else $as_nop
10177 as_fn_append ()
10178 {
10179 eval $1=\$$1\$2
10180 }
10181 fi # as_fn_append
10182
10183 # as_fn_arith ARG...
10184 # ------------------
10185 # Perform arithmetic evaluation on the ARGs, and store the result in the
10186 # global $as_val. Take advantage of shells that can avoid forks. The arguments
10187 # must be portable across $(()) and expr.
10188 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
10189 then :
10190 eval 'as_fn_arith ()
10191 {
10192 as_val=$(( $* ))
10193 }'
10194 else $as_nop
10195 as_fn_arith ()
10196 {
10197 as_val=`expr "$@" || test $? -eq 1`
10198 }
10199 fi # as_fn_arith
10200
10201
10202 if expr a : '\(a\)' >/dev/null 2>&1 &&
10203 test "X`expr 00001 : '.*\(...\)'`" = X001; then
10204 as_expr=expr
10205 else
10206 as_expr=false
10207 fi
10208
10209 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
10210 as_basename=basename
10211 else
10212 as_basename=false
10213 fi
10214
10215 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
10216 as_dirname=dirname
10217 else
10218 as_dirname=false
10219 fi
10220
10221 as_me=`$as_basename -- "$0" ||
10222 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
10223 X"$0" : 'X\(//\)$' \| \
10224 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
10225 printf "%s\n" X/"$0" |
10226 sed '/^.*\/\([^/][^/]*\)\/*$/{
10227 s//\1/
10228 q
10229 }
10230 /^X\/\(\/\/\)$/{
10231 s//\1/
10232 q
10233 }
10234 /^X\/\(\/\).*/{
10235 s//\1/
10236 q
10237 }
10238 s/.*/./; q'`
10239
10240 # Avoid depending upon Character Ranges.
10241 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
10242 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
10243 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
10244 as_cr_digits='0123456789'
10245 as_cr_alnum=$as_cr_Letters$as_cr_digits
10246
10247
10248 # Determine whether it's possible to make 'echo' print without a newline.
10249 # These variables are no longer used directly by Autoconf, but are AC_SUBSTed
10250 # for compatibility with existing Makefiles.
10251 ECHO_C= ECHO_N= ECHO_T=
10252 case `echo -n x` in #(((((
10253 -n*)
10254 case `echo 'xy\c'` in
10255 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
10256 xy) ECHO_C='\c';;
10257 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
10258 ECHO_T=' ';;
10259 esac;;
10260 *)
10261 ECHO_N='-n';;
10262 esac
10263
10264 # For backward compatibility with old third-party macros, we provide
10265 # the shell variables $as_echo and $as_echo_n. New code should use
10266 # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
10267 as_echo='printf %s\n'
10268 as_echo_n='printf %s'
10269
10270 rm -f conf$$ conf$$.exe conf$$.file
10271 if test -d conf$$.dir; then
10272 rm -f conf$$.dir/conf$$.file
10273 else
10274 rm -f conf$$.dir
10275 mkdir conf$$.dir 2>/dev/null
10276 fi
10277 if (echo >conf$$.file) 2>/dev/null; then
10278 if ln -s conf$$.file conf$$ 2>/dev/null; then
10279 as_ln_s='ln -s'
10280 # ... but there are two gotchas:
10281 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
10282 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
10283 # In both cases, we have to default to `cp -pR'.
10284 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
10285 as_ln_s='cp -pR'
10286 elif ln conf$$.file conf$$ 2>/dev/null; then
10287 as_ln_s=ln
10288 else
10289 as_ln_s='cp -pR'
10290 fi
10291 else
10292 as_ln_s='cp -pR'
10293 fi
10294 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
10295 rmdir conf$$.dir 2>/dev/null
10296
10297
10298 # as_fn_mkdir_p
10299 # -------------
10300 # Create "$as_dir" as a directory, including parents if necessary.
10301 as_fn_mkdir_p ()
10302 {
10303
10304 case $as_dir in #(
10305 -*) as_dir=./$as_dir;;
10306 esac
10307 test -d "$as_dir" || eval $as_mkdir_p || {
10308 as_dirs=
10309 while :; do
10310 case $as_dir in #(
10311 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
10312 *) as_qdir=$as_dir;;
10313 esac
10314 as_dirs="'$as_qdir' $as_dirs"
10315 as_dir=`$as_dirname -- "$as_dir" ||
10316 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10317 X"$as_dir" : 'X\(//\)[^/]' \| \
10318 X"$as_dir" : 'X\(//\)$' \| \
10319 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
10320 printf "%s\n" X"$as_dir" |
10321 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
10322 s//\1/
10323 q
10324 }
10325 /^X\(\/\/\)[^/].*/{
10326 s//\1/
10327 q
10328 }
10329 /^X\(\/\/\)$/{
10330 s//\1/
10331 q
10332 }
10333 /^X\(\/\).*/{
10334 s//\1/
10335 q
10336 }
10337 s/.*/./; q'`
10338 test -d "$as_dir" && break
10339 done
10340 test -z "$as_dirs" || eval "mkdir $as_dirs"
10341 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
10342
10343
10344 } # as_fn_mkdir_p
10345 if mkdir -p . 2>/dev/null; then
10346 as_mkdir_p='mkdir -p "$as_dir"'
10347 else
10348 test -d ./-p && rmdir ./-p
10349 as_mkdir_p=false
10350 fi
10351
10352
10353 # as_fn_executable_p FILE
10354 # -----------------------
10355 # Test if FILE is an executable regular file.
10356 as_fn_executable_p ()
10357 {
10358 test -f "$1" && test -x "$1"
10359 } # as_fn_executable_p
10360 as_test_x='test -x'
10361 as_executable_p=as_fn_executable_p
10362
10363 # Sed expression to map a string onto a valid CPP name.
10364 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
10365
10366 # Sed expression to map a string onto a valid variable name.
10367 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
10368
10369
10370 exec 6>&1
10371 ## ----------------------------------- ##
10372 ## Main body of $CONFIG_STATUS script. ##
10373 ## ----------------------------------- ##
10374 _ASEOF
10375 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
10376
10377 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10378 # Save the log message, to keep $0 and so on meaningful, and to
10379 # report actual input values of CONFIG_FILES etc. instead of their
10380 # values after options handling.
10381 ac_log="
10382 This file was extended by $as_me, which was
10383 generated by GNU Autoconf 2.71. Invocation command line was
10384
10385 CONFIG_FILES = $CONFIG_FILES
10386 CONFIG_HEADERS = $CONFIG_HEADERS
10387 CONFIG_LINKS = $CONFIG_LINKS
10388 CONFIG_COMMANDS = $CONFIG_COMMANDS
10389 $ $0 $@
10390
10391 on `(hostname || uname -n) 2>/dev/null | sed 1q`
10392 "
10393
10394 _ACEOF
10395
10396 case $ac_config_files in *"
10397 "*) set x $ac_config_files; shift; ac_config_files=$*;;
10398 esac
10399
10400 case $ac_config_headers in *"
10401 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
10402 esac
10403
10404
10405 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10406 # Files that config.status was made for.
10407 config_files="$ac_config_files"
10408 config_headers="$ac_config_headers"
10409
10410 _ACEOF
10411
10412 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10413 ac_cs_usage="\
10414 \`$as_me' instantiates files and other configuration actions
10415 from templates according to the current configuration. Unless the files
10416 and actions are specified as TAGs, all are instantiated by default.
10417
10418 Usage: $0 [OPTION]... [TAG]...
10419
10420 -h, --help print this help, then exit
10421 -V, --version print version number and configuration settings, then exit
10422 --config print configuration, then exit
10423 -q, --quiet, --silent
10424 do not print progress messages
10425 -d, --debug don't remove temporary files
10426 --recheck update $as_me by reconfiguring in the same conditions
10427 --file=FILE[:TEMPLATE]
10428 instantiate the configuration file FILE
10429 --header=FILE[:TEMPLATE]
10430 instantiate the configuration header FILE
10431
10432 Configuration files:
10433 $config_files
10434
10435 Configuration headers:
10436 $config_headers
10437
10438 Report bugs to the package provider."
10439
10440 _ACEOF
10441 ac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"`
10442 ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"`
10443 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10444 ac_cs_config='$ac_cs_config_escaped'
10445 ac_cs_version="\\
10446 config.status
10447 configured by $0, generated by GNU Autoconf 2.71,
10448 with options \\"\$ac_cs_config\\"
10449
10450 Copyright (C) 2021 Free Software Foundation, Inc.
10451 This config.status script is free software; the Free Software Foundation
10452 gives unlimited permission to copy, distribute and modify it."
10453
10454 ac_pwd='$ac_pwd'
10455 srcdir='$srcdir'
10456 test -n "\$AWK" || AWK=awk
10457 _ACEOF
10458
10459 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10460 # The default lists apply if the user does not specify any file.
10461 ac_need_defaults=:
10462 while test $# != 0
10463 do
10464 case $1 in
10465 --*=?*)
10466 ac_option=`expr "X$1" : 'X\([^=]*\)='`
10467 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
10468 ac_shift=:
10469 ;;
10470 --*=)
10471 ac_option=`expr "X$1" : 'X\([^=]*\)='`
10472 ac_optarg=
10473 ac_shift=:
10474 ;;
10475 *)
10476 ac_option=$1
10477 ac_optarg=$2
10478 ac_shift=shift
10479 ;;
10480 esac
10481
10482 case $ac_option in
10483 # Handling of the options.
10484 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
10485 ac_cs_recheck=: ;;
10486 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
10487 printf "%s\n" "$ac_cs_version"; exit ;;
10488 --config | --confi | --conf | --con | --co | --c )
10489 printf "%s\n" "$ac_cs_config"; exit ;;
10490 --debug | --debu | --deb | --de | --d | -d )
10491 debug=: ;;
10492 --file | --fil | --fi | --f )
10493 $ac_shift
10494 case $ac_optarg in
10495 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
10496 '') as_fn_error $? "missing file argument" ;;
10497 esac
10498 as_fn_append CONFIG_FILES " '$ac_optarg'"
10499 ac_need_defaults=false;;
10500 --header | --heade | --head | --hea )
10501 $ac_shift
10502 case $ac_optarg in
10503 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
10504 esac
10505 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
10506 ac_need_defaults=false;;
10507 --he | --h)
10508 # Conflict between --help and --header
10509 as_fn_error $? "ambiguous option: \`$1'
10510 Try \`$0 --help' for more information.";;
10511 --help | --hel | -h )
10512 printf "%s\n" "$ac_cs_usage"; exit ;;
10513 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
10514 | -silent | --silent | --silen | --sile | --sil | --si | --s)
10515 ac_cs_silent=: ;;
10516
10517 # This is an error.
10518 -*) as_fn_error $? "unrecognized option: \`$1'
10519 Try \`$0 --help' for more information." ;;
10520
10521 *) as_fn_append ac_config_targets " $1"
10522 ac_need_defaults=false ;;
10523
10524 esac
10525 shift
10526 done
10527
10528 ac_configure_extra_args=
10529
10530 if $ac_cs_silent; then
10531 exec 6>/dev/null
10532 ac_configure_extra_args="$ac_configure_extra_args --silent"
10533 fi
10534
10535 _ACEOF
10536 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10537 if \$ac_cs_recheck; then
10538 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
10539 shift
10540 \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6
10541 CONFIG_SHELL='$SHELL'
10542 export CONFIG_SHELL
10543 exec "\$@"
10544 fi
10545
10546 _ACEOF
10547 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10548 exec 5>>config.log
10549 {
10550 echo
10551 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
10552 ## Running $as_me. ##
10553 _ASBOX
10554 printf "%s\n" "$ac_log"
10555 } >&5
10556
10557 _ACEOF
10558 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10559 _ACEOF
10560
10561 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10562
10563 # Handling of arguments.
10564 for ac_config_target in $ac_config_targets
10565 do
10566 case $ac_config_target in
10567 "h/gclincl.h") CONFIG_HEADERS="$CONFIG_HEADERS h/gclincl.h" ;;
10568 "makedefc") CONFIG_FILES="$CONFIG_FILES makedefc" ;;
10569 "windows/gcl.iss") CONFIG_FILES="$CONFIG_FILES windows/gcl.iss" ;;
10570 "windows/sysdir.bat") CONFIG_FILES="$CONFIG_FILES windows/sysdir.bat" ;;
10571 "windows/install.lsp") CONFIG_FILES="$CONFIG_FILES windows/install.lsp" ;;
10572
10573 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
10574 esac
10575 done
10576
10577
10578 # If the user did not use the arguments to specify the items to instantiate,
10579 # then the envvar interface is used. Set only those that are not.
10580 # We use the long form for the default assignment because of an extremely
10581 # bizarre bug on SunOS 4.1.3.
10582 if $ac_need_defaults; then
10583 test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files
10584 test ${CONFIG_HEADERS+y} || CONFIG_HEADERS=$config_headers
10585 fi
10586
10587 # Have a temporary directory for convenience. Make it in the build tree
10588 # simply because there is no reason against having it here, and in addition,
10589 # creating and moving files from /tmp can sometimes cause problems.
10590 # Hook for its removal unless debugging.
10591 # Note that there is a small window in which the directory will not be cleaned:
10592 # after its creation but before its name has been assigned to `$tmp'.
10593 $debug ||
10594 {
10595 tmp= ac_tmp=
10596 trap 'exit_status=$?
10597 : "${ac_tmp:=$tmp}"
10598 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
10599 ' 0
10600 trap 'as_fn_exit 1' 1 2 13 15
10601 }
10602 # Create a (secure) tmp directory for tmp files.
10603
10604 {
10605 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
10606 test -d "$tmp"
10607 } ||
10608 {
10609 tmp=./conf$$-$RANDOM
10610 (umask 077 && mkdir "$tmp")
10611 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
10612 ac_tmp=$tmp
10613
10614 # Set up the scripts for CONFIG_FILES section.
10615 # No need to generate them if there are no CONFIG_FILES.
10616 # This happens for instance with `./config.status config.h'.
10617 if test -n "$CONFIG_FILES"; then
10618
10619
10620 ac_cr=`echo X | tr X '\015'`
10621 # On cygwin, bash can eat \r inside `` if the user requested igncr.
10622 # But we know of no other shell where ac_cr would be empty at this
10623 # point, so we can use a bashism as a fallback.
10624 if test "x$ac_cr" = x; then
10625 eval ac_cr=\$\'\\r\'
10626 fi
10627 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
10628 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
10629 ac_cs_awk_cr='\\r'
10630 else
10631 ac_cs_awk_cr=$ac_cr
10632 fi
10633
10634 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
10635 _ACEOF
10636
10637
10638 {
10639 echo "cat >conf$$subs.awk <<_ACEOF" &&
10640 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
10641 echo "_ACEOF"
10642 } >conf$$subs.sh ||
10643 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
10644 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
10645 ac_delim='%!_!# '
10646 for ac_last_try in false false false false false :; do
10647 . ./conf$$subs.sh ||
10648 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
10649
10650 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
10651 if test $ac_delim_n = $ac_delim_num; then
10652 break
10653 elif $ac_last_try; then
10654 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
10655 else
10656 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
10657 fi
10658 done
10659 rm -f conf$$subs.sh
10660
10661 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10662 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
10663 _ACEOF
10664 sed -n '
10665 h
10666 s/^/S["/; s/!.*/"]=/
10667 p
10668 g
10669 s/^[^!]*!//
10670 :repl
10671 t repl
10672 s/'"$ac_delim"'$//
10673 t delim
10674 :nl
10675 h
10676 s/\(.\{148\}\)..*/\1/
10677 t more1
10678 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
10679 p
10680 n
10681 b repl
10682 :more1
10683 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
10684 p
10685 g
10686 s/.\{148\}//
10687 t nl
10688 :delim
10689 h
10690 s/\(.\{148\}\)..*/\1/
10691 t more2
10692 s/["\\]/\\&/g; s/^/"/; s/$/"/
10693 p
10694 b
10695 :more2
10696 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
10697 p
10698 g
10699 s/.\{148\}//
10700 t delim
10701 ' <conf$$subs.awk | sed '
10702 /^[^""]/{
10703 N
10704 s/\n//
10705 }
10706 ' >>$CONFIG_STATUS || ac_write_fail=1
10707 rm -f conf$$subs.awk
10708 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10709 _ACAWK
10710 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
10711 for (key in S) S_is_set[key] = 1
10712 FS = ""
10713
10714 }
10715 {
10716 line = $ 0
10717 nfields = split(line, field, "@")
10718 substed = 0
10719 len = length(field[1])
10720 for (i = 2; i < nfields; i++) {
10721 key = field[i]
10722 keylen = length(key)
10723 if (S_is_set[key]) {
10724 value = S[key]
10725 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
10726 len += length(value) + length(field[++i])
10727 substed = 1
10728 } else
10729 len += 1 + keylen
10730 }
10731
10732 print line
10733 }
10734
10735 _ACAWK
10736 _ACEOF
10737 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10738 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
10739 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
10740 else
10741 cat
10742 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
10743 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
10744 _ACEOF
10745
10746 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
10747 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
10748 # trailing colons and then remove the whole line if VPATH becomes empty
10749 # (actually we leave an empty line to preserve line numbers).
10750 if test "x$srcdir" = x.; then
10751 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
10752 h
10753 s///
10754 s/^/:/
10755 s/[ ]*$/:/
10756 s/:\$(srcdir):/:/g
10757 s/:\${srcdir}:/:/g
10758 s/:@srcdir@:/:/g
10759 s/^:*//
10760 s/:*$//
10761 x
10762 s/\(=[ ]*\).*/\1/
10763 G
10764 s/\n//
10765 s/^[^=]*=[ ]*$//
10766 }'
10767 fi
10768
10769 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10770 fi # test -n "$CONFIG_FILES"
10771
10772 # Set up the scripts for CONFIG_HEADERS section.
10773 # No need to generate them if there are no CONFIG_HEADERS.
10774 # This happens for instance with `./config.status Makefile'.
10775 if test -n "$CONFIG_HEADERS"; then
10776 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
10777 BEGIN {
10778 _ACEOF
10779
10780 # Transform confdefs.h into an awk script `defines.awk', embedded as
10781 # here-document in config.status, that substitutes the proper values into
10782 # config.h.in to produce config.h.
10783
10784 # Create a delimiter string that does not exist in confdefs.h, to ease
10785 # handling of long lines.
10786 ac_delim='%!_!# '
10787 for ac_last_try in false false :; do
10788 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
10789 if test -z "$ac_tt"; then
10790 break
10791 elif $ac_last_try; then
10792 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
10793 else
10794 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
10795 fi
10796 done
10797
10798 # For the awk script, D is an array of macro values keyed by name,
10799 # likewise P contains macro parameters if any. Preserve backslash
10800 # newline sequences.
10801
10802 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
10803 sed -n '
10804 s/.\{148\}/&'"$ac_delim"'/g
10805 t rset
10806 :rset
10807 s/^[ ]*#[ ]*define[ ][ ]*/ /
10808 t def
10809 d
10810 :def
10811 s/\\$//
10812 t bsnl
10813 s/["\\]/\\&/g
10814 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
10815 D["\1"]=" \3"/p
10816 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
10817 d
10818 :bsnl
10819 s/["\\]/\\&/g
10820 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
10821 D["\1"]=" \3\\\\\\n"\\/p
10822 t cont
10823 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
10824 t cont
10825 d
10826 :cont
10827 n
10828 s/.\{148\}/&'"$ac_delim"'/g
10829 t clear
10830 :clear
10831 s/\\$//
10832 t bsnlc
10833 s/["\\]/\\&/g; s/^/"/; s/$/"/p
10834 d
10835 :bsnlc
10836 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
10837 b cont
10838 ' <confdefs.h | sed '
10839 s/'"$ac_delim"'/"\\\
10840 "/g' >>$CONFIG_STATUS || ac_write_fail=1
10841
10842 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10843 for (key in D) D_is_set[key] = 1
10844 FS = ""
10845 }
10846 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
10847 line = \$ 0
10848 split(line, arg, " ")
10849 if (arg[1] == "#") {
10850 defundef = arg[2]
10851 mac1 = arg[3]
10852 } else {
10853 defundef = substr(arg[1], 2)
10854 mac1 = arg[2]
10855 }
10856 split(mac1, mac2, "(") #)
10857 macro = mac2[1]
10858 prefix = substr(line, 1, index(line, defundef) - 1)
10859 if (D_is_set[macro]) {
10860 # Preserve the white space surrounding the "#".
10861 print prefix "define", macro P[macro] D[macro]
10862 next
10863 } else {
10864 # Replace #undef with comments. This is necessary, for example,
10865 # in the case of _POSIX_SOURCE, which is predefined and required
10866 # on some systems where configure will not decide to define it.
10867 if (defundef == "undef") {
10868 print "/*", prefix defundef, macro, "*/"
10869 next
10870 }
10871 }
10872 }
10873 { print }
10874 _ACAWK
10875 _ACEOF
10876 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10877 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
10878 fi # test -n "$CONFIG_HEADERS"
10879
10880
10881 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS "
10882 shift
10883 for ac_tag
10884 do
10885 case $ac_tag in
10886 :[FHLC]) ac_mode=$ac_tag; continue;;
10887 esac
10888 case $ac_mode$ac_tag in
10889 :[FHL]*:*);;
10890 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
10891 :[FH]-) ac_tag=-:-;;
10892 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
10893 esac
10894 ac_save_IFS=$IFS
10895 IFS=:
10896 set x $ac_tag
10897 IFS=$ac_save_IFS
10898 shift
10899 ac_file=$1
10900 shift
10901
10902 case $ac_mode in
10903 :L) ac_source=$1;;
10904 :[FH])
10905 ac_file_inputs=
10906 for ac_f
10907 do
10908 case $ac_f in
10909 -) ac_f="$ac_tmp/stdin";;
10910 *) # Look for the file first in the build tree, then in the source tree
10911 # (if the path is not absolute). The absolute path cannot be DOS-style,
10912 # because $ac_f cannot contain `:'.
10913 test -f "$ac_f" ||
10914 case $ac_f in
10915 [\\/$]*) false;;
10916 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
10917 esac ||
10918 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
10919 esac
10920 case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
10921 as_fn_append ac_file_inputs " '$ac_f'"
10922 done
10923
10924 # Let's still pretend it is `configure' which instantiates (i.e., don't
10925 # use $as_me), people would be surprised to read:
10926 # /* config.h. Generated by config.status. */
10927 configure_input='Generated from '`
10928 printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
10929 `' by configure.'
10930 if test x"$ac_file" != x-; then
10931 configure_input="$ac_file. $configure_input"
10932 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
10933 printf "%s\n" "$as_me: creating $ac_file" >&6;}
10934 fi
10935 # Neutralize special characters interpreted by sed in replacement strings.
10936 case $configure_input in #(
10937 *\&* | *\|* | *\\* )
10938 ac_sed_conf_input=`printf "%s\n" "$configure_input" |
10939 sed 's/[\\\\&|]/\\\\&/g'`;; #(
10940 *) ac_sed_conf_input=$configure_input;;
10941 esac
10942
10943 case $ac_tag in
10944 *:-:* | *:-) cat >"$ac_tmp/stdin" \
10945 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
10946 esac
10947 ;;
10948 esac
10949
10950 ac_dir=`$as_dirname -- "$ac_file" ||
10951 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10952 X"$ac_file" : 'X\(//\)[^/]' \| \
10953 X"$ac_file" : 'X\(//\)$' \| \
10954 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
10955 printf "%s\n" X"$ac_file" |
10956 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
10957 s//\1/
10958 q
10959 }
10960 /^X\(\/\/\)[^/].*/{
10961 s//\1/
10962 q
10963 }
10964 /^X\(\/\/\)$/{
10965 s//\1/
10966 q
10967 }
10968 /^X\(\/\).*/{
10969 s//\1/
10970 q
10971 }
10972 s/.*/./; q'`
10973 as_dir="$ac_dir"; as_fn_mkdir_p
10974 ac_builddir=.
10975
10976 case "$ac_dir" in
10977 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
10978 *)
10979 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
10980 # A ".." for each directory in $ac_dir_suffix.
10981 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
10982 case $ac_top_builddir_sub in
10983 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
10984 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
10985 esac ;;
10986 esac
10987 ac_abs_top_builddir=$ac_pwd
10988 ac_abs_builddir=$ac_pwd$ac_dir_suffix
10989 # for backward compatibility:
10990 ac_top_builddir=$ac_top_build_prefix
10991
10992 case $srcdir in
10993 .) # We are building in place.
10994 ac_srcdir=.
10995 ac_top_srcdir=$ac_top_builddir_sub
10996 ac_abs_top_srcdir=$ac_pwd ;;
10997 [\\/]* | ?:[\\/]* ) # Absolute name.
10998 ac_srcdir=$srcdir$ac_dir_suffix;
10999 ac_top_srcdir=$srcdir
11000 ac_abs_top_srcdir=$srcdir ;;
11001 *) # Relative name.
11002 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
11003 ac_top_srcdir=$ac_top_build_prefix$srcdir
11004 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
11005 esac
11006 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
11007
11008
11009 case $ac_mode in
11010 :F)
11011 #
11012 # CONFIG_FILE
11013 #
11014
11015 _ACEOF
11016
11017 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11018 # If the template does not know about datarootdir, expand it.
11019 # FIXME: This hack should be removed a few years after 2.60.
11020 ac_datarootdir_hack=; ac_datarootdir_seen=
11021 ac_sed_dataroot='
11022 /datarootdir/ {
11023 p
11024 q
11025 }
11026 /@datadir@/p
11027 /@docdir@/p
11028 /@infodir@/p
11029 /@localedir@/p
11030 /@mandir@/p'
11031 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
11032 *datarootdir*) ac_datarootdir_seen=yes;;
11033 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
11034 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
11035 printf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
11036 _ACEOF
11037 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11038 ac_datarootdir_hack='
11039 s&@datadir@&$datadir&g
11040 s&@docdir@&$docdir&g
11041 s&@infodir@&$infodir&g
11042 s&@localedir@&$localedir&g
11043 s&@mandir@&$mandir&g
11044 s&\\\${datarootdir}&$datarootdir&g' ;;
11045 esac
11046 _ACEOF
11047
11048 # Neutralize VPATH when `$srcdir' = `.'.
11049 # Shell code in configure.ac might set extrasub.
11050 # FIXME: do we really want to maintain this feature?
11051 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11052 ac_sed_extra="$ac_vpsub
11053 $extrasub
11054 _ACEOF
11055 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11056 :t
11057 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
11058 s|@configure_input@|$ac_sed_conf_input|;t t
11059 s&@top_builddir@&$ac_top_builddir_sub&;t t
11060 s&@top_build_prefix@&$ac_top_build_prefix&;t t
11061 s&@srcdir@&$ac_srcdir&;t t
11062 s&@abs_srcdir@&$ac_abs_srcdir&;t t
11063 s&@top_srcdir@&$ac_top_srcdir&;t t
11064 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
11065 s&@builddir@&$ac_builddir&;t t
11066 s&@abs_builddir@&$ac_abs_builddir&;t t
11067 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
11068 $ac_datarootdir_hack
11069 "
11070 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
11071 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
11072
11073 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
11074 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
11075 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
11076 "$ac_tmp/out"`; test -z "$ac_out"; } &&
11077 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
11078 which seems to be undefined. Please make sure it is defined" >&5
11079 printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
11080 which seems to be undefined. Please make sure it is defined" >&2;}
11081
11082 rm -f "$ac_tmp/stdin"
11083 case $ac_file in
11084 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
11085 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
11086 esac \
11087 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
11088 ;;
11089 :H)
11090 #
11091 # CONFIG_HEADER
11092 #
11093 if test x"$ac_file" != x-; then
11094 {
11095 printf "%s\n" "/* $configure_input */" >&1 \
11096 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
11097 } >"$ac_tmp/config.h" \
11098 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
11099 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
11100 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
11101 printf "%s\n" "$as_me: $ac_file is unchanged" >&6;}
11102 else
11103 rm -f "$ac_file"
11104 mv "$ac_tmp/config.h" "$ac_file" \
11105 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
11106 fi
11107 else
11108 printf "%s\n" "/* $configure_input */" >&1 \
11109 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
11110 || as_fn_error $? "could not create -" "$LINENO" 5
11111 fi
11112 ;;
11113
11114
11115 esac
11116
11117 done # for ac_tag
11118
11119
11120 as_fn_exit 0
11121 _ACEOF
11122 ac_clean_files=$ac_clean_files_save
11123
11124 test $ac_write_fail = 0 ||
11125 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
11126
11127
11128 # configure is writing to config.log, and then calls config.status.
11129 # config.status does its own redirection, appending to config.log.
11130 # Unfortunately, on DOS this fails, as config.log is still kept open
11131 # by configure, so config.status won't be able to write to it; its
11132 # output is simply discarded. So we exec the FD to /dev/null,
11133 # effectively closing config.log, so it can be properly (re)opened and
11134 # appended to by config.status. When coming back to configure, we
11135 # need to make the FD available again.
11136 if test "$no_create" != yes; then
11137 ac_cs_success=:
11138 ac_config_status_args=
11139 test "$silent" = yes &&
11140 ac_config_status_args="$ac_config_status_args --quiet"
11141 exec 5>/dev/null
11142 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
11143 exec 5>>config.log
11144 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
11145 # would make configure fail if this is the last instruction.
11146 $ac_cs_success || as_fn_exit 1
11147 fi
11148 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
11149 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
11150 printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
11151 fi
11152
11153 echo makedefc
11154 cat makedefc
11155
11156 echo add-defs1 $use
11157 CC=$CC ./add-defs1 $use
11158
11159 else
11160 echo "Unable to guess machine type"
11161 echo use configure --enable-machine=XXX, for XXX such that h/XXX.defs exists, ie in h/*.defs
11162 fi
11163