Debian Codegraph @

modules/i18n/configure

raw
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.72 for i18n 1.0.
4 #
5 # Report bugs to <clisp-list>.
6 #
7 #
8 # Copyright (C) 1992-1996, 1998-2017, 2020-2023 Free Software Foundation,
9 # Inc.
10 #
11 #
12 # This configure script is free software; the Free Software Foundation
13 # gives unlimited permission to copy, distribute and modify it.
14 ## -------------------- ##
15 ## M4sh Initialization. ##
16 ## -------------------- ##
17
18 # Be more Bourne compatible
19 DUALCASE=1; export DUALCASE # for MKS sh
20 if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
21 then :
22 emulate sh
23 NULLCMD=:
24 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
25 # is contrary to our usage. Disable this feature.
26 alias -g '${1+"$@"}'='"$@"'
27 setopt NO_GLOB_SUBST
28 else case e in #(
29 e) case `(set -o) 2>/dev/null` in #(
30 *posix*) :
31 set -o posix ;; #(
32 *) :
33 ;;
34 esac ;;
35 esac
36 fi
37
38
39
40 # Reset variables that may have inherited troublesome values from
41 # the environment.
42
43 # IFS needs to be set, to space, tab, and newline, in precisely that order.
44 # (If _AS_PATH_WALK were called with IFS unset, it would have the
45 # side effect of setting IFS to empty, thus disabling word splitting.)
46 # Quoting is to prevent editors from complaining about space-tab.
47 as_nl='
48 '
49 export as_nl
50 IFS=" "" $as_nl"
51
52 PS1='$ '
53 PS2='> '
54 PS4='+ '
55
56 # Ensure predictable behavior from utilities with locale-dependent output.
57 LC_ALL=C
58 export LC_ALL
59 LANGUAGE=C
60 export LANGUAGE
61
62 # We cannot yet rely on "unset" to work, but we need these variables
63 # to be unset--not just set to an empty or harmless value--now, to
64 # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct
65 # also avoids known problems related to "unset" and subshell syntax
66 # in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
67 for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
68 do eval test \${$as_var+y} \
69 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
70 done
71
72 # Ensure that fds 0, 1, and 2 are open.
73 if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
74 if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
75 if (exec 3>&2) ; then :; else exec 2>/dev/null; fi
76
77 # The user is always right.
78 if ${PATH_SEPARATOR+false} :; then
79 PATH_SEPARATOR=:
80 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
81 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
82 PATH_SEPARATOR=';'
83 }
84 fi
85
86
87 # Find who we are. Look in the path if we contain no directory separator.
88 as_myself=
89 case $0 in #((
90 *[\\/]* ) as_myself=$0 ;;
91 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
92 for as_dir in $PATH
93 do
94 IFS=$as_save_IFS
95 case $as_dir in #(((
96 '') as_dir=./ ;;
97 */) ;;
98 *) as_dir=$as_dir/ ;;
99 esac
100 test -r "$as_dir$0" && as_myself=$as_dir$0 && break
101 done
102 IFS=$as_save_IFS
103
104 ;;
105 esac
106 # We did not find ourselves, most probably we were run as 'sh COMMAND'
107 # in which case we are not to be found in the path.
108 if test "x$as_myself" = x; then
109 as_myself=$0
110 fi
111 if test ! -f "$as_myself"; then
112 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
113 exit 1
114 fi
115
116
117 # Use a proper internal environment variable to ensure we don't fall
118 # into an infinite loop, continuously re-executing ourselves.
119 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
120 _as_can_reexec=no; export _as_can_reexec;
121 # We cannot yet assume a decent shell, so we have to provide a
122 # neutralization value for shells without unset; and this also
123 # works around shells that cannot unset nonexistent variables.
124 # Preserve -v and -x to the replacement shell.
125 BASH_ENV=/dev/null
126 ENV=/dev/null
127 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
128 case $- in # ((((
129 *v*x* | *x*v* ) as_opts=-vx ;;
130 *v* ) as_opts=-v ;;
131 *x* ) as_opts=-x ;;
132 * ) as_opts= ;;
133 esac
134 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
135 # Admittedly, this is quite paranoid, since all the known shells bail
136 # out after a failed 'exec'.
137 printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2
138 exit 255
139 fi
140 # We don't want this to propagate to other subprocesses.
141 { _as_can_reexec=; unset _as_can_reexec;}
142 if test "x$CONFIG_SHELL" = x; then
143 as_bourne_compatible="if test \${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
144 then :
145 emulate sh
146 NULLCMD=:
147 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
148 # is contrary to our usage. Disable this feature.
149 alias -g '\${1+\"\$@\"}'='\"\$@\"'
150 setopt NO_GLOB_SUBST
151 else case e in #(
152 e) case \`(set -o) 2>/dev/null\` in #(
153 *posix*) :
154 set -o posix ;; #(
155 *) :
156 ;;
157 esac ;;
158 esac
159 fi
160 "
161 as_required="as_fn_return () { (exit \$1); }
162 as_fn_success () { as_fn_return 0; }
163 as_fn_failure () { as_fn_return 1; }
164 as_fn_ret_success () { return 0; }
165 as_fn_ret_failure () { return 1; }
166
167 exitcode=0
168 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
169 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
170 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
171 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
172 if ( set x; as_fn_ret_success y && test x = \"\$1\" )
173 then :
174
175 else case e in #(
176 e) exitcode=1; echo positional parameters were not saved. ;;
177 esac
178 fi
179 test x\$exitcode = x0 || exit 1
180 blah=\$(echo \$(echo blah))
181 test x\"\$blah\" = xblah || exit 1
182 test -x / || exit 1"
183 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
184 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
185 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
186 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1"
187 if (eval "$as_required") 2>/dev/null
188 then :
189 as_have_required=yes
190 else case e in #(
191 e) as_have_required=no ;;
192 esac
193 fi
194 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null
195 then :
196
197 else case e in #(
198 e) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
199 as_found=false
200 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
201 do
202 IFS=$as_save_IFS
203 case $as_dir in #(((
204 '') as_dir=./ ;;
205 */) ;;
206 *) as_dir=$as_dir/ ;;
207 esac
208 as_found=:
209 case $as_dir in #(
210 /*)
211 for as_base in sh bash ksh sh5; do
212 # Try only shells that exist, to save several forks.
213 as_shell=$as_dir$as_base
214 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
215 as_run=a "$as_shell" -c "$as_bourne_compatible""$as_required" 2>/dev/null
216 then :
217 CONFIG_SHELL=$as_shell as_have_required=yes
218 if as_run=a "$as_shell" -c "$as_bourne_compatible""$as_suggested" 2>/dev/null
219 then :
220 break 2
221 fi
222 fi
223 done;;
224 esac
225 as_found=false
226 done
227 IFS=$as_save_IFS
228 if $as_found
229 then :
230
231 else case e in #(
232 e) if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
233 as_run=a "$SHELL" -c "$as_bourne_compatible""$as_required" 2>/dev/null
234 then :
235 CONFIG_SHELL=$SHELL as_have_required=yes
236 fi ;;
237 esac
238 fi
239
240
241 if test "x$CONFIG_SHELL" != x
242 then :
243 export CONFIG_SHELL
244 # We cannot yet assume a decent shell, so we have to provide a
245 # neutralization value for shells without unset; and this also
246 # works around shells that cannot unset nonexistent variables.
247 # Preserve -v and -x to the replacement shell.
248 BASH_ENV=/dev/null
249 ENV=/dev/null
250 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
251 case $- in # ((((
252 *v*x* | *x*v* ) as_opts=-vx ;;
253 *v* ) as_opts=-v ;;
254 *x* ) as_opts=-x ;;
255 * ) as_opts= ;;
256 esac
257 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
258 # Admittedly, this is quite paranoid, since all the known shells bail
259 # out after a failed 'exec'.
260 printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2
261 exit 255
262 fi
263
264 if test x$as_have_required = xno
265 then :
266 printf "%s\n" "$0: This script requires a shell more modern than all"
267 printf "%s\n" "$0: the shells that I found on your system."
268 if test ${ZSH_VERSION+y} ; then
269 printf "%s\n" "$0: In particular, zsh $ZSH_VERSION has bugs and should"
270 printf "%s\n" "$0: be upgraded to zsh 4.3.4 or later."
271 else
272 printf "%s\n" "$0: Please tell [email protected] and clisp-list about
273 $0: your system, including any error possibly output before
274 $0: this message. Then install a modern shell, or manually
275 $0: run the script under such a shell if you do have one."
276 fi
277 exit 1
278 fi ;;
279 esac
280 fi
281 fi
282 SHELL=${CONFIG_SHELL-/bin/sh}
283 export SHELL
284 # Unset more variables known to interfere with behavior of common tools.
285 CLICOLOR_FORCE= GREP_OPTIONS=
286 unset CLICOLOR_FORCE GREP_OPTIONS
287
288 ## --------------------- ##
289 ## M4sh Shell Functions. ##
290 ## --------------------- ##
291 # as_fn_unset VAR
292 # ---------------
293 # Portably unset VAR.
294 as_fn_unset ()
295 {
296 { eval $1=; unset $1;}
297 }
298 as_unset=as_fn_unset
299
300
301 # as_fn_set_status STATUS
302 # -----------------------
303 # Set $? to STATUS, without forking.
304 as_fn_set_status ()
305 {
306 return $1
307 } # as_fn_set_status
308
309 # as_fn_exit STATUS
310 # -----------------
311 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
312 as_fn_exit ()
313 {
314 set +e
315 as_fn_set_status $1
316 exit $1
317 } # as_fn_exit
318
319 # as_fn_mkdir_p
320 # -------------
321 # Create "$as_dir" as a directory, including parents if necessary.
322 as_fn_mkdir_p ()
323 {
324
325 case $as_dir in #(
326 -*) as_dir=./$as_dir;;
327 esac
328 test -d "$as_dir" || eval $as_mkdir_p || {
329 as_dirs=
330 while :; do
331 case $as_dir in #(
332 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
333 *) as_qdir=$as_dir;;
334 esac
335 as_dirs="'$as_qdir' $as_dirs"
336 as_dir=`$as_dirname -- "$as_dir" ||
337 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
338 X"$as_dir" : 'X\(//\)[^/]' \| \
339 X"$as_dir" : 'X\(//\)$' \| \
340 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
341 printf "%s\n" X"$as_dir" |
342 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
343 s//\1/
344 q
345 }
346 /^X\(\/\/\)[^/].*/{
347 s//\1/
348 q
349 }
350 /^X\(\/\/\)$/{
351 s//\1/
352 q
353 }
354 /^X\(\/\).*/{
355 s//\1/
356 q
357 }
358 s/.*/./; q'`
359 test -d "$as_dir" && break
360 done
361 test -z "$as_dirs" || eval "mkdir $as_dirs"
362 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
363
364
365 } # as_fn_mkdir_p
366
367 # as_fn_executable_p FILE
368 # -----------------------
369 # Test if FILE is an executable regular file.
370 as_fn_executable_p ()
371 {
372 test -f "$1" && test -x "$1"
373 } # as_fn_executable_p
374 # as_fn_append VAR VALUE
375 # ----------------------
376 # Append the text in VALUE to the end of the definition contained in VAR. Take
377 # advantage of any shell optimizations that allow amortized linear growth over
378 # repeated appends, instead of the typical quadratic growth present in naive
379 # implementations.
380 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
381 then :
382 eval 'as_fn_append ()
383 {
384 eval $1+=\$2
385 }'
386 else case e in #(
387 e) as_fn_append ()
388 {
389 eval $1=\$$1\$2
390 } ;;
391 esac
392 fi # as_fn_append
393
394 # as_fn_arith ARG...
395 # ------------------
396 # Perform arithmetic evaluation on the ARGs, and store the result in the
397 # global $as_val. Take advantage of shells that can avoid forks. The arguments
398 # must be portable across $(()) and expr.
399 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
400 then :
401 eval 'as_fn_arith ()
402 {
403 as_val=$(( $* ))
404 }'
405 else case e in #(
406 e) as_fn_arith ()
407 {
408 as_val=`expr "$@" || test $? -eq 1`
409 } ;;
410 esac
411 fi # as_fn_arith
412
413
414 # as_fn_error STATUS ERROR [LINENO LOG_FD]
415 # ----------------------------------------
416 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
417 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
418 # script with STATUS, using 1 if that was 0.
419 as_fn_error ()
420 {
421 as_status=$1; test $as_status -eq 0 && as_status=1
422 if test "$4"; then
423 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
424 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
425 fi
426 printf "%s\n" "$as_me: error: $2" >&2
427 as_fn_exit $as_status
428 } # as_fn_error
429
430 if expr a : '\(a\)' >/dev/null 2>&1 &&
431 test "X`expr 00001 : '.*\(...\)'`" = X001; then
432 as_expr=expr
433 else
434 as_expr=false
435 fi
436
437 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
438 as_basename=basename
439 else
440 as_basename=false
441 fi
442
443 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
444 as_dirname=dirname
445 else
446 as_dirname=false
447 fi
448
449 as_me=`$as_basename -- "$0" ||
450 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
451 X"$0" : 'X\(//\)$' \| \
452 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
453 printf "%s\n" X/"$0" |
454 sed '/^.*\/\([^/][^/]*\)\/*$/{
455 s//\1/
456 q
457 }
458 /^X\/\(\/\/\)$/{
459 s//\1/
460 q
461 }
462 /^X\/\(\/\).*/{
463 s//\1/
464 q
465 }
466 s/.*/./; q'`
467
468 # Avoid depending upon Character Ranges.
469 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
470 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
471 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
472 as_cr_digits='0123456789'
473 as_cr_alnum=$as_cr_Letters$as_cr_digits
474
475
476 as_lineno_1=$LINENO as_lineno_1a=$LINENO
477 as_lineno_2=$LINENO as_lineno_2a=$LINENO
478 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
479 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
480 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
481 sed -n '
482 p
483 /[$]LINENO/=
484 ' <$as_myself |
485 sed '
486 t clear
487 :clear
488 s/[$]LINENO.*/&-/
489 t lineno
490 b
491 :lineno
492 N
493 :loop
494 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
495 t loop
496 s/-\n.*//
497 ' >$as_me.lineno &&
498 chmod +x "$as_me.lineno" ||
499 { printf "%s\n" "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
500
501 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
502 # already done that, so ensure we don't try to do so again and fall
503 # in an infinite loop. This has already happened in practice.
504 _as_can_reexec=no; export _as_can_reexec
505 # Don't try to exec as it changes $[0], causing all sort of problems
506 # (the dirname of $[0] is not the place where we might find the
507 # original and so on. Autoconf is especially sensitive to this).
508 . "./$as_me.lineno"
509 # Exit status is that of the last command.
510 exit
511 }
512
513
514 # Determine whether it's possible to make 'echo' print without a newline.
515 # These variables are no longer used directly by Autoconf, but are AC_SUBSTed
516 # for compatibility with existing Makefiles.
517 ECHO_C= ECHO_N= ECHO_T=
518 case `echo -n x` in #(((((
519 -n*)
520 case `echo 'xy\c'` in
521 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
522 xy) ECHO_C='\c';;
523 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
524 ECHO_T=' ';;
525 esac;;
526 *)
527 ECHO_N='-n';;
528 esac
529
530 # For backward compatibility with old third-party macros, we provide
531 # the shell variables $as_echo and $as_echo_n. New code should use
532 # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
533 as_echo='printf %s\n'
534 as_echo_n='printf %s'
535
536 rm -f conf$$ conf$$.exe conf$$.file
537 if test -d conf$$.dir; then
538 rm -f conf$$.dir/conf$$.file
539 else
540 rm -f conf$$.dir
541 mkdir conf$$.dir 2>/dev/null
542 fi
543 if (echo >conf$$.file) 2>/dev/null; then
544 if ln -s conf$$.file conf$$ 2>/dev/null; then
545 as_ln_s='ln -s'
546 # ... but there are two gotchas:
547 # 1) On MSYS, both 'ln -s file dir' and 'ln file dir' fail.
548 # 2) DJGPP < 2.04 has no symlinks; 'ln -s' creates a wrapper executable.
549 # In both cases, we have to default to 'cp -pR'.
550 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
551 as_ln_s='cp -pR'
552 elif ln conf$$.file conf$$ 2>/dev/null; then
553 as_ln_s=ln
554 else
555 as_ln_s='cp -pR'
556 fi
557 else
558 as_ln_s='cp -pR'
559 fi
560 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
561 rmdir conf$$.dir 2>/dev/null
562
563 if mkdir -p . 2>/dev/null; then
564 as_mkdir_p='mkdir -p "$as_dir"'
565 else
566 test -d ./-p && rmdir ./-p
567 as_mkdir_p=false
568 fi
569
570 as_test_x='test -x'
571 as_executable_p=as_fn_executable_p
572
573 # Sed expression to map a string onto a valid CPP name.
574 as_sed_cpp="y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
575 as_tr_cpp="eval sed '$as_sed_cpp'" # deprecated
576
577 # Sed expression to map a string onto a valid variable name.
578 as_sed_sh="y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
579 as_tr_sh="eval sed '$as_sed_sh'" # deprecated
580
581
582 test -n "$DJDIR" || exec 7<&0 </dev/null
583 exec 6>&1
584
585 # Name of the host.
586 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
587 # so uname gets run too.
588 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
589
590 #
591 # Initializations.
592 #
593 ac_default_prefix=/usr/local
594 ac_clean_files=
595 ac_config_libobj_dir=.
596 LIBOBJS=
597 cross_compiling=no
598 subdirs=
599 MFLAGS=
600 MAKEFLAGS=
601
602 # Identity of this package.
603 PACKAGE_NAME='i18n'
604 PACKAGE_TARNAME='i18n'
605 PACKAGE_VERSION='1.0'
606 PACKAGE_STRING='i18n 1.0'
607 PACKAGE_BUGREPORT='clisp-list'
608 PACKAGE_URL=''
609
610 ac_unique_file="i18n.lisp"
611 # Factoring default headers for most tests.
612 ac_includes_default="\
613 #include <stddef.h>
614 #ifdef HAVE_STDIO_H
615 # include <stdio.h>
616 #endif
617 #ifdef HAVE_STDLIB_H
618 # include <stdlib.h>
619 #endif
620 #ifdef HAVE_STRING_H
621 # include <string.h>
622 #endif
623 #ifdef HAVE_INTTYPES_H
624 # include <inttypes.h>
625 #endif
626 #ifdef HAVE_STDINT_H
627 # include <stdint.h>
628 #endif
629 #ifdef HAVE_STRINGS_H
630 # include <strings.h>
631 #endif
632 #ifdef HAVE_SYS_TYPES_H
633 # include <sys/types.h>
634 #endif
635 #ifdef HAVE_SYS_STAT_H
636 # include <sys/stat.h>
637 #endif
638 #ifdef HAVE_UNISTD_H
639 # include <unistd.h>
640 #endif"
641
642 ac_header_c_list=
643 ac_subst_vars='LTLIBOBJS
644 LIBOBJS
645 LN_S
646 LN
647 CPP
648 OBJEXT
649 EXEEXT
650 ac_ct_CC
651 CPPFLAGS
652 LDFLAGS
653 CFLAGS
654 CC
655 CLISP_CPPFLAGS
656 CLISP_CFLAGS
657 CLISP_LIBS
658 CLISP_FILES
659 CLISP_LINKKIT
660 CLISP_LIBDIR
661 CLISP
662 cl_cv_clisp
663 CLISP_DECOLONIZE
664 target_alias
665 host_alias
666 build_alias
667 LIBS
668 ECHO_T
669 ECHO_N
670 ECHO_C
671 DEFS
672 mandir
673 localedir
674 libdir
675 psdir
676 pdfdir
677 dvidir
678 htmldir
679 infodir
680 docdir
681 oldincludedir
682 includedir
683 runstatedir
684 localstatedir
685 sharedstatedir
686 sysconfdir
687 datadir
688 datarootdir
689 libexecdir
690 sbindir
691 bindir
692 program_transform_name
693 prefix
694 exec_prefix
695 PACKAGE_URL
696 PACKAGE_BUGREPORT
697 PACKAGE_STRING
698 PACKAGE_VERSION
699 PACKAGE_TARNAME
700 PACKAGE_NAME
701 PATH_SEPARATOR
702 SHELL
703 am__quote'
704 ac_subst_files=''
705 ac_user_opts='
706 enable_option_checking
707 with_clisp
708 '
709 ac_precious_vars='build_alias
710 host_alias
711 target_alias
712 CC
713 CFLAGS
714 LDFLAGS
715 LIBS
716 CPPFLAGS
717 CPP'
718
719
720 # Initialize some variables set by options.
721 ac_init_help=
722 ac_init_version=false
723 ac_unrecognized_opts=
724 ac_unrecognized_sep=
725 # The variables have the same names as the options, with
726 # dashes changed to underlines.
727 cache_file=/dev/null
728 exec_prefix=NONE
729 no_create=
730 no_recursion=
731 prefix=NONE
732 program_prefix=NONE
733 program_suffix=NONE
734 program_transform_name=s,x,x,
735 silent=
736 site=
737 srcdir=
738 verbose=
739 x_includes=NONE
740 x_libraries=NONE
741
742 # Installation directory options.
743 # These are left unexpanded so users can "make install exec_prefix=/foo"
744 # and all the variables that are supposed to be based on exec_prefix
745 # by default will actually change.
746 # Use braces instead of parens because sh, perl, etc. also accept them.
747 # (The list follows the same order as the GNU Coding Standards.)
748 bindir='${exec_prefix}/bin'
749 sbindir='${exec_prefix}/sbin'
750 libexecdir='${exec_prefix}/libexec'
751 datarootdir='${prefix}/share'
752 datadir='${datarootdir}'
753 sysconfdir='${prefix}/etc'
754 sharedstatedir='${prefix}/com'
755 localstatedir='${prefix}/var'
756 runstatedir='${localstatedir}/run'
757 includedir='${prefix}/include'
758 oldincludedir='/usr/include'
759 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
760 infodir='${datarootdir}/info'
761 htmldir='${docdir}'
762 dvidir='${docdir}'
763 pdfdir='${docdir}'
764 psdir='${docdir}'
765 libdir='${exec_prefix}/lib'
766 localedir='${datarootdir}/locale'
767 mandir='${datarootdir}/man'
768
769 ac_prev=
770 ac_dashdash=
771 for ac_option
772 do
773 # If the previous option needs an argument, assign it.
774 if test -n "$ac_prev"; then
775 eval $ac_prev=\$ac_option
776 ac_prev=
777 continue
778 fi
779
780 case $ac_option in
781 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
782 *=) ac_optarg= ;;
783 *) ac_optarg=yes ;;
784 esac
785
786 case $ac_dashdash$ac_option in
787 --)
788 ac_dashdash=yes ;;
789
790 -bindir | --bindir | --bindi | --bind | --bin | --bi)
791 ac_prev=bindir ;;
792 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
793 bindir=$ac_optarg ;;
794
795 -build | --build | --buil | --bui | --bu)
796 ac_prev=build_alias ;;
797 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
798 build_alias=$ac_optarg ;;
799
800 -cache-file | --cache-file | --cache-fil | --cache-fi \
801 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
802 ac_prev=cache_file ;;
803 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
804 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
805 cache_file=$ac_optarg ;;
806
807 --config-cache | -C)
808 cache_file=config.cache ;;
809
810 -datadir | --datadir | --datadi | --datad)
811 ac_prev=datadir ;;
812 -datadir=* | --datadir=* | --datadi=* | --datad=*)
813 datadir=$ac_optarg ;;
814
815 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
816 | --dataroo | --dataro | --datar)
817 ac_prev=datarootdir ;;
818 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
819 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
820 datarootdir=$ac_optarg ;;
821
822 -disable-* | --disable-*)
823 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
824 # Reject names that are not valid shell variable names.
825 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
826 as_fn_error $? "invalid feature name: '$ac_useropt'"
827 ac_useropt_orig=$ac_useropt
828 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
829 case $ac_user_opts in
830 *"
831 "enable_$ac_useropt"
832 "*) ;;
833 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
834 ac_unrecognized_sep=', ';;
835 esac
836 eval enable_$ac_useropt=no ;;
837
838 -docdir | --docdir | --docdi | --doc | --do)
839 ac_prev=docdir ;;
840 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
841 docdir=$ac_optarg ;;
842
843 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
844 ac_prev=dvidir ;;
845 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
846 dvidir=$ac_optarg ;;
847
848 -enable-* | --enable-*)
849 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
850 # Reject names that are not valid shell variable names.
851 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
852 as_fn_error $? "invalid feature name: '$ac_useropt'"
853 ac_useropt_orig=$ac_useropt
854 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
855 case $ac_user_opts in
856 *"
857 "enable_$ac_useropt"
858 "*) ;;
859 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
860 ac_unrecognized_sep=', ';;
861 esac
862 eval enable_$ac_useropt=\$ac_optarg ;;
863
864 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
865 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
866 | --exec | --exe | --ex)
867 ac_prev=exec_prefix ;;
868 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
869 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
870 | --exec=* | --exe=* | --ex=*)
871 exec_prefix=$ac_optarg ;;
872
873 -gas | --gas | --ga | --g)
874 # Obsolete; use --with-gas.
875 with_gas=yes ;;
876
877 -help | --help | --hel | --he | -h)
878 ac_init_help=long ;;
879 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
880 ac_init_help=recursive ;;
881 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
882 ac_init_help=short ;;
883
884 -host | --host | --hos | --ho)
885 ac_prev=host_alias ;;
886 -host=* | --host=* | --hos=* | --ho=*)
887 host_alias=$ac_optarg ;;
888
889 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
890 ac_prev=htmldir ;;
891 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
892 | --ht=*)
893 htmldir=$ac_optarg ;;
894
895 -includedir | --includedir | --includedi | --included | --include \
896 | --includ | --inclu | --incl | --inc)
897 ac_prev=includedir ;;
898 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
899 | --includ=* | --inclu=* | --incl=* | --inc=*)
900 includedir=$ac_optarg ;;
901
902 -infodir | --infodir | --infodi | --infod | --info | --inf)
903 ac_prev=infodir ;;
904 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
905 infodir=$ac_optarg ;;
906
907 -libdir | --libdir | --libdi | --libd)
908 ac_prev=libdir ;;
909 -libdir=* | --libdir=* | --libdi=* | --libd=*)
910 libdir=$ac_optarg ;;
911
912 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
913 | --libexe | --libex | --libe)
914 ac_prev=libexecdir ;;
915 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
916 | --libexe=* | --libex=* | --libe=*)
917 libexecdir=$ac_optarg ;;
918
919 -localedir | --localedir | --localedi | --localed | --locale)
920 ac_prev=localedir ;;
921 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
922 localedir=$ac_optarg ;;
923
924 -localstatedir | --localstatedir | --localstatedi | --localstated \
925 | --localstate | --localstat | --localsta | --localst | --locals)
926 ac_prev=localstatedir ;;
927 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
928 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
929 localstatedir=$ac_optarg ;;
930
931 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
932 ac_prev=mandir ;;
933 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
934 mandir=$ac_optarg ;;
935
936 -nfp | --nfp | --nf)
937 # Obsolete; use --without-fp.
938 with_fp=no ;;
939
940 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
941 | --no-cr | --no-c | -n)
942 no_create=yes ;;
943
944 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
945 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
946 no_recursion=yes ;;
947
948 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
949 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
950 | --oldin | --oldi | --old | --ol | --o)
951 ac_prev=oldincludedir ;;
952 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
953 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
954 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
955 oldincludedir=$ac_optarg ;;
956
957 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
958 ac_prev=prefix ;;
959 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
960 prefix=$ac_optarg ;;
961
962 -program-prefix | --program-prefix | --program-prefi | --program-pref \
963 | --program-pre | --program-pr | --program-p)
964 ac_prev=program_prefix ;;
965 -program-prefix=* | --program-prefix=* | --program-prefi=* \
966 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
967 program_prefix=$ac_optarg ;;
968
969 -program-suffix | --program-suffix | --program-suffi | --program-suff \
970 | --program-suf | --program-su | --program-s)
971 ac_prev=program_suffix ;;
972 -program-suffix=* | --program-suffix=* | --program-suffi=* \
973 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
974 program_suffix=$ac_optarg ;;
975
976 -program-transform-name | --program-transform-name \
977 | --program-transform-nam | --program-transform-na \
978 | --program-transform-n | --program-transform- \
979 | --program-transform | --program-transfor \
980 | --program-transfo | --program-transf \
981 | --program-trans | --program-tran \
982 | --progr-tra | --program-tr | --program-t)
983 ac_prev=program_transform_name ;;
984 -program-transform-name=* | --program-transform-name=* \
985 | --program-transform-nam=* | --program-transform-na=* \
986 | --program-transform-n=* | --program-transform-=* \
987 | --program-transform=* | --program-transfor=* \
988 | --program-transfo=* | --program-transf=* \
989 | --program-trans=* | --program-tran=* \
990 | --progr-tra=* | --program-tr=* | --program-t=*)
991 program_transform_name=$ac_optarg ;;
992
993 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
994 ac_prev=pdfdir ;;
995 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
996 pdfdir=$ac_optarg ;;
997
998 -psdir | --psdir | --psdi | --psd | --ps)
999 ac_prev=psdir ;;
1000 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1001 psdir=$ac_optarg ;;
1002
1003 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1004 | -silent | --silent | --silen | --sile | --sil)
1005 silent=yes ;;
1006
1007 -runstatedir | --runstatedir | --runstatedi | --runstated \
1008 | --runstate | --runstat | --runsta | --runst | --runs \
1009 | --run | --ru | --r)
1010 ac_prev=runstatedir ;;
1011 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1012 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1013 | --run=* | --ru=* | --r=*)
1014 runstatedir=$ac_optarg ;;
1015
1016 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1017 ac_prev=sbindir ;;
1018 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1019 | --sbi=* | --sb=*)
1020 sbindir=$ac_optarg ;;
1021
1022 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1023 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1024 | --sharedst | --shareds | --shared | --share | --shar \
1025 | --sha | --sh)
1026 ac_prev=sharedstatedir ;;
1027 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1028 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1029 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1030 | --sha=* | --sh=*)
1031 sharedstatedir=$ac_optarg ;;
1032
1033 -site | --site | --sit)
1034 ac_prev=site ;;
1035 -site=* | --site=* | --sit=*)
1036 site=$ac_optarg ;;
1037
1038 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1039 ac_prev=srcdir ;;
1040 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1041 srcdir=$ac_optarg ;;
1042
1043 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1044 | --syscon | --sysco | --sysc | --sys | --sy)
1045 ac_prev=sysconfdir ;;
1046 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1047 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1048 sysconfdir=$ac_optarg ;;
1049
1050 -target | --target | --targe | --targ | --tar | --ta | --t)
1051 ac_prev=target_alias ;;
1052 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1053 target_alias=$ac_optarg ;;
1054
1055 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1056 verbose=yes ;;
1057
1058 -version | --version | --versio | --versi | --vers | -V)
1059 ac_init_version=: ;;
1060
1061 -with-* | --with-*)
1062 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1063 # Reject names that are not valid shell variable names.
1064 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1065 as_fn_error $? "invalid package name: '$ac_useropt'"
1066 ac_useropt_orig=$ac_useropt
1067 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1068 case $ac_user_opts in
1069 *"
1070 "with_$ac_useropt"
1071 "*) ;;
1072 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1073 ac_unrecognized_sep=', ';;
1074 esac
1075 eval with_$ac_useropt=\$ac_optarg ;;
1076
1077 -without-* | --without-*)
1078 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1079 # Reject names that are not valid shell variable names.
1080 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1081 as_fn_error $? "invalid package name: '$ac_useropt'"
1082 ac_useropt_orig=$ac_useropt
1083 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1084 case $ac_user_opts in
1085 *"
1086 "with_$ac_useropt"
1087 "*) ;;
1088 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1089 ac_unrecognized_sep=', ';;
1090 esac
1091 eval with_$ac_useropt=no ;;
1092
1093 --x)
1094 # Obsolete; use --with-x.
1095 with_x=yes ;;
1096
1097 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1098 | --x-incl | --x-inc | --x-in | --x-i)
1099 ac_prev=x_includes ;;
1100 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1101 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1102 x_includes=$ac_optarg ;;
1103
1104 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1105 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1106 ac_prev=x_libraries ;;
1107 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1108 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1109 x_libraries=$ac_optarg ;;
1110
1111 -*) as_fn_error $? "unrecognized option: '$ac_option'
1112 Try '$0 --help' for more information"
1113 ;;
1114
1115 *=*)
1116 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1117 # Reject names that are not valid shell variable names.
1118 case $ac_envvar in #(
1119 '' | [0-9]* | *[!_$as_cr_alnum]* )
1120 as_fn_error $? "invalid variable name: '$ac_envvar'" ;;
1121 esac
1122 eval $ac_envvar=\$ac_optarg
1123 export $ac_envvar ;;
1124
1125 *)
1126 # FIXME: should be removed in autoconf 3.0.
1127 printf "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2
1128 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1129 printf "%s\n" "$as_me: WARNING: invalid host type: $ac_option" >&2
1130 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1131 ;;
1132
1133 esac
1134 done
1135
1136 if test -n "$ac_prev"; then
1137 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1138 as_fn_error $? "missing argument to $ac_option"
1139 fi
1140
1141 if test -n "$ac_unrecognized_opts"; then
1142 case $enable_option_checking in
1143 no) ;;
1144 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1145 *) printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1146 esac
1147 fi
1148
1149 # Check all directory arguments for consistency.
1150 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1151 datadir sysconfdir sharedstatedir localstatedir includedir \
1152 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1153 libdir localedir mandir runstatedir
1154 do
1155 eval ac_val=\$$ac_var
1156 # Remove trailing slashes.
1157 case $ac_val in
1158 */ )
1159 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1160 eval $ac_var=\$ac_val;;
1161 esac
1162 # Be sure to have absolute directory names.
1163 case $ac_val in
1164 [\\/$]* | ?:[\\/]* ) continue;;
1165 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1166 esac
1167 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1168 done
1169
1170 # There might be people who depend on the old broken behavior: '$host'
1171 # used to hold the argument of --host etc.
1172 # FIXME: To remove some day.
1173 build=$build_alias
1174 host=$host_alias
1175 target=$target_alias
1176
1177 # FIXME: To remove some day.
1178 if test "x$host_alias" != x; then
1179 if test "x$build_alias" = x; then
1180 cross_compiling=maybe
1181 elif test "x$build_alias" != "x$host_alias"; then
1182 cross_compiling=yes
1183 fi
1184 fi
1185
1186 ac_tool_prefix=
1187 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1188
1189 test "$silent" = yes && exec 6>/dev/null
1190
1191
1192 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1193 ac_ls_di=`ls -di .` &&
1194 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1195 as_fn_error $? "working directory cannot be determined"
1196 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1197 as_fn_error $? "pwd does not report name of working directory"
1198
1199
1200 # Find the source files, if location was not specified.
1201 if test -z "$srcdir"; then
1202 ac_srcdir_defaulted=yes
1203 # Try the directory containing this script, then the parent directory.
1204 ac_confdir=`$as_dirname -- "$as_myself" ||
1205 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1206 X"$as_myself" : 'X\(//\)[^/]' \| \
1207 X"$as_myself" : 'X\(//\)$' \| \
1208 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1209 printf "%s\n" X"$as_myself" |
1210 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1211 s//\1/
1212 q
1213 }
1214 /^X\(\/\/\)[^/].*/{
1215 s//\1/
1216 q
1217 }
1218 /^X\(\/\/\)$/{
1219 s//\1/
1220 q
1221 }
1222 /^X\(\/\).*/{
1223 s//\1/
1224 q
1225 }
1226 s/.*/./; q'`
1227 srcdir=$ac_confdir
1228 if test ! -r "$srcdir/$ac_unique_file"; then
1229 srcdir=..
1230 fi
1231 else
1232 ac_srcdir_defaulted=no
1233 fi
1234 if test ! -r "$srcdir/$ac_unique_file"; then
1235 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1236 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1237 fi
1238 ac_msg="sources are in $srcdir, but 'cd $srcdir' does not work"
1239 ac_abs_confdir=`(
1240 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1241 pwd)`
1242 # When building in place, set srcdir=.
1243 if test "$ac_abs_confdir" = "$ac_pwd"; then
1244 srcdir=.
1245 fi
1246 # Remove unnecessary trailing slashes from srcdir.
1247 # Double slashes in file names in object file debugging info
1248 # mess up M-x gdb in Emacs.
1249 case $srcdir in
1250 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1251 esac
1252 for ac_var in $ac_precious_vars; do
1253 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1254 eval ac_env_${ac_var}_value=\$${ac_var}
1255 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1256 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1257 done
1258
1259 #
1260 # Report the --help message.
1261 #
1262 if test "$ac_init_help" = "long"; then
1263 # Omit some internal or obsolete options to make the list less imposing.
1264 # This message is too long to be a string in the A/UX 3.1 sh.
1265 cat <<_ACEOF
1266 'configure' configures i18n 1.0 to adapt to many kinds of systems.
1267
1268 Usage: $0 [OPTION]... [VAR=VALUE]...
1269
1270 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1271 VAR=VALUE. See below for descriptions of some of the useful variables.
1272
1273 Defaults for the options are specified in brackets.
1274
1275 Configuration:
1276 -h, --help display this help and exit
1277 --help=short display options specific to this package
1278 --help=recursive display the short help of all the included packages
1279 -V, --version display version information and exit
1280 -q, --quiet, --silent do not print 'checking ...' messages
1281 --cache-file=FILE cache test results in FILE [disabled]
1282 -C, --config-cache alias for '--cache-file=config.cache'
1283 -n, --no-create do not create output files
1284 --srcdir=DIR find the sources in DIR [configure dir or '..']
1285
1286 Installation directories:
1287 --prefix=PREFIX install architecture-independent files in PREFIX
1288 [$ac_default_prefix]
1289 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1290 [PREFIX]
1291
1292 By default, 'make install' will install all the files in
1293 '$ac_default_prefix/bin', '$ac_default_prefix/lib' etc. You can specify
1294 an installation prefix other than '$ac_default_prefix' using '--prefix',
1295 for instance '--prefix=\$HOME'.
1296
1297 For better control, use the options below.
1298
1299 Fine tuning of the installation directories:
1300 --bindir=DIR user executables [EPREFIX/bin]
1301 --sbindir=DIR system admin executables [EPREFIX/sbin]
1302 --libexecdir=DIR program executables [EPREFIX/libexec]
1303 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1304 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1305 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1306 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run]
1307 --libdir=DIR object code libraries [EPREFIX/lib]
1308 --includedir=DIR C header files [PREFIX/include]
1309 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1310 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1311 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1312 --infodir=DIR info documentation [DATAROOTDIR/info]
1313 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1314 --mandir=DIR man documentation [DATAROOTDIR/man]
1315 --docdir=DIR documentation root [DATAROOTDIR/doc/i18n]
1316 --htmldir=DIR html documentation [DOCDIR]
1317 --dvidir=DIR dvi documentation [DOCDIR]
1318 --pdfdir=DIR pdf documentation [DOCDIR]
1319 --psdir=DIR ps documentation [DOCDIR]
1320 _ACEOF
1321
1322 cat <<\_ACEOF
1323 _ACEOF
1324 fi
1325
1326 if test -n "$ac_init_help"; then
1327 case $ac_init_help in
1328 short | recursive ) echo "Configuration of i18n 1.0:";;
1329 esac
1330 cat <<\_ACEOF
1331
1332 Optional Packages:
1333 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1334 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1335 --with-clisp use a specific CLISP installation
1336
1337 Some influential environment variables:
1338 CC C compiler command
1339 CFLAGS C compiler flags
1340 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1341 nonstandard directory <lib dir>
1342 LIBS libraries to pass to the linker, e.g. -l<library>
1343 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1344 you have headers in a nonstandard directory <include dir>
1345 CPP C preprocessor
1346
1347 Use these variables to override the choices made by 'configure' or to help
1348 it to find libraries and programs with nonstandard names/locations.
1349
1350 Report bugs to <clisp-list>.
1351 _ACEOF
1352 ac_status=$?
1353 fi
1354
1355 if test "$ac_init_help" = "recursive"; then
1356 # If there are subdirs, report their specific --help.
1357 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1358 test -d "$ac_dir" ||
1359 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1360 continue
1361 ac_builddir=.
1362
1363 case "$ac_dir" in
1364 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1365 *)
1366 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
1367 # A ".." for each directory in $ac_dir_suffix.
1368 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1369 case $ac_top_builddir_sub in
1370 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1371 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1372 esac ;;
1373 esac
1374 ac_abs_top_builddir=$ac_pwd
1375 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1376 # for backward compatibility:
1377 ac_top_builddir=$ac_top_build_prefix
1378
1379 case $srcdir in
1380 .) # We are building in place.
1381 ac_srcdir=.
1382 ac_top_srcdir=$ac_top_builddir_sub
1383 ac_abs_top_srcdir=$ac_pwd ;;
1384 [\\/]* | ?:[\\/]* ) # Absolute name.
1385 ac_srcdir=$srcdir$ac_dir_suffix;
1386 ac_top_srcdir=$srcdir
1387 ac_abs_top_srcdir=$srcdir ;;
1388 *) # Relative name.
1389 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1390 ac_top_srcdir=$ac_top_build_prefix$srcdir
1391 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1392 esac
1393 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1394
1395 cd "$ac_dir" || { ac_status=$?; continue; }
1396 # Check for configure.gnu first; this name is used for a wrapper for
1397 # Metaconfig's "Configure" on case-insensitive file systems.
1398 if test -f "$ac_srcdir/configure.gnu"; then
1399 echo &&
1400 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1401 elif test -f "$ac_srcdir/configure"; then
1402 echo &&
1403 $SHELL "$ac_srcdir/configure" --help=recursive
1404 else
1405 printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1406 fi || ac_status=$?
1407 cd "$ac_pwd" || { ac_status=$?; break; }
1408 done
1409 fi
1410
1411 test -n "$ac_init_help" && exit $ac_status
1412 if $ac_init_version; then
1413 cat <<\_ACEOF
1414 i18n configure 1.0
1415 generated by GNU Autoconf 2.72
1416
1417 Copyright (C) 2023 Free Software Foundation, Inc.
1418 This configure script is free software; the Free Software Foundation
1419 gives unlimited permission to copy, distribute and modify it.
1420 _ACEOF
1421 exit
1422 fi
1423
1424 ## ------------------------ ##
1425 ## Autoconf initialization. ##
1426 ## ------------------------ ##
1427
1428 # ac_fn_c_try_compile LINENO
1429 # --------------------------
1430 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1431 ac_fn_c_try_compile ()
1432 {
1433 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1434 rm -f conftest.$ac_objext conftest.beam
1435 if { { ac_try="$ac_compile"
1436 case "(($ac_try" in
1437 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1438 *) ac_try_echo=$ac_try;;
1439 esac
1440 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1441 printf "%s\n" "$ac_try_echo"; } >&5
1442 (eval "$ac_compile") 2>conftest.err
1443 ac_status=$?
1444 if test -s conftest.err; then
1445 grep -v '^ *+' conftest.err >conftest.er1
1446 cat conftest.er1 >&5
1447 mv -f conftest.er1 conftest.err
1448 fi
1449 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1450 test $ac_status = 0; } && {
1451 test -z "$ac_c_werror_flag" ||
1452 test ! -s conftest.err
1453 } && test -s conftest.$ac_objext
1454 then :
1455 ac_retval=0
1456 else case e in #(
1457 e) printf "%s\n" "$as_me: failed program was:" >&5
1458 sed 's/^/| /' conftest.$ac_ext >&5
1459
1460 ac_retval=1 ;;
1461 esac
1462 fi
1463 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1464 as_fn_set_status $ac_retval
1465
1466 } # ac_fn_c_try_compile
1467
1468 # ac_fn_c_try_cpp LINENO
1469 # ----------------------
1470 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1471 ac_fn_c_try_cpp ()
1472 {
1473 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1474 if { { ac_try="$ac_cpp conftest.$ac_ext"
1475 case "(($ac_try" in
1476 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1477 *) ac_try_echo=$ac_try;;
1478 esac
1479 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1480 printf "%s\n" "$ac_try_echo"; } >&5
1481 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1482 ac_status=$?
1483 if test -s conftest.err; then
1484 grep -v '^ *+' conftest.err >conftest.er1
1485 cat conftest.er1 >&5
1486 mv -f conftest.er1 conftest.err
1487 fi
1488 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1489 test $ac_status = 0; } > conftest.i && {
1490 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1491 test ! -s conftest.err
1492 }
1493 then :
1494 ac_retval=0
1495 else case e in #(
1496 e) printf "%s\n" "$as_me: failed program was:" >&5
1497 sed 's/^/| /' conftest.$ac_ext >&5
1498
1499 ac_retval=1 ;;
1500 esac
1501 fi
1502 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1503 as_fn_set_status $ac_retval
1504
1505 } # ac_fn_c_try_cpp
1506
1507 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1508 # -------------------------------------------------------
1509 # Tests whether HEADER exists and can be compiled using the include files in
1510 # INCLUDES, setting the cache variable VAR accordingly.
1511 ac_fn_c_check_header_compile ()
1512 {
1513 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1514 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1515 printf %s "checking for $2... " >&6; }
1516 if eval test \${$3+y}
1517 then :
1518 printf %s "(cached) " >&6
1519 else case e in #(
1520 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1521 /* end confdefs.h. */
1522 $4
1523 #include <$2>
1524 _ACEOF
1525 if ac_fn_c_try_compile "$LINENO"
1526 then :
1527 eval "$3=yes"
1528 else case e in #(
1529 e) eval "$3=no" ;;
1530 esac
1531 fi
1532 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
1533 esac
1534 fi
1535 eval ac_res=\$$3
1536 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1537 printf "%s\n" "$ac_res" >&6; }
1538 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1539
1540 } # ac_fn_c_check_header_compile
1541
1542 # ac_fn_c_try_link LINENO
1543 # -----------------------
1544 # Try to link conftest.$ac_ext, and return whether this succeeded.
1545 ac_fn_c_try_link ()
1546 {
1547 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1548 rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext
1549 if { { ac_try="$ac_link"
1550 case "(($ac_try" in
1551 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1552 *) ac_try_echo=$ac_try;;
1553 esac
1554 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1555 printf "%s\n" "$ac_try_echo"; } >&5
1556 (eval "$ac_link") 2>conftest.err
1557 ac_status=$?
1558 if test -s conftest.err; then
1559 grep -v '^ *+' conftest.err >conftest.er1
1560 cat conftest.er1 >&5
1561 mv -f conftest.er1 conftest.err
1562 fi
1563 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1564 test $ac_status = 0; } && {
1565 test -z "$ac_c_werror_flag" ||
1566 test ! -s conftest.err
1567 } && test -s conftest$ac_exeext && {
1568 test "$cross_compiling" = yes ||
1569 test -x conftest$ac_exeext
1570 }
1571 then :
1572 ac_retval=0
1573 else case e in #(
1574 e) printf "%s\n" "$as_me: failed program was:" >&5
1575 sed 's/^/| /' conftest.$ac_ext >&5
1576
1577 ac_retval=1 ;;
1578 esac
1579 fi
1580 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1581 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1582 # interfere with the next link command; also delete a directory that is
1583 # left behind by Apple's compiler. We do this before executing the actions.
1584 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1585 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1586 as_fn_set_status $ac_retval
1587
1588 } # ac_fn_c_try_link
1589
1590 # ac_fn_c_check_func LINENO FUNC VAR
1591 # ----------------------------------
1592 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1593 ac_fn_c_check_func ()
1594 {
1595 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1596 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1597 printf %s "checking for $2... " >&6; }
1598 if eval test \${$3+y}
1599 then :
1600 printf %s "(cached) " >&6
1601 else case e in #(
1602 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1603 /* end confdefs.h. */
1604 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1605 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1606 #define $2 innocuous_$2
1607
1608 /* System header to define __stub macros and hopefully few prototypes,
1609 which can conflict with char $2 (void); below. */
1610
1611 #include <limits.h>
1612 #undef $2
1613
1614 /* Override any GCC internal prototype to avoid an error.
1615 Use char because int might match the return type of a GCC
1616 builtin and then its argument prototype would still apply. */
1617 #ifdef __cplusplus
1618 extern "C"
1619 #endif
1620 char $2 (void);
1621 /* The GNU C library defines this for functions which it implements
1622 to always fail with ENOSYS. Some functions are actually named
1623 something starting with __ and the normal name is an alias. */
1624 #if defined __stub_$2 || defined __stub___$2
1625 choke me
1626 #endif
1627
1628 int
1629 main (void)
1630 {
1631 return $2 ();
1632 ;
1633 return 0;
1634 }
1635 _ACEOF
1636 if ac_fn_c_try_link "$LINENO"
1637 then :
1638 eval "$3=yes"
1639 else case e in #(
1640 e) eval "$3=no" ;;
1641 esac
1642 fi
1643 rm -f core conftest.err conftest.$ac_objext conftest.beam \
1644 conftest$ac_exeext conftest.$ac_ext ;;
1645 esac
1646 fi
1647 eval ac_res=\$$3
1648 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1649 printf "%s\n" "$ac_res" >&6; }
1650 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1651
1652 } # ac_fn_c_check_func
1653
1654 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
1655 # ----------------------------------------------------
1656 # Tries to find if the field MEMBER exists in type AGGR, after including
1657 # INCLUDES, setting cache variable VAR accordingly.
1658 ac_fn_c_check_member ()
1659 {
1660 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1661 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
1662 printf %s "checking for $2.$3... " >&6; }
1663 if eval test \${$4+y}
1664 then :
1665 printf %s "(cached) " >&6
1666 else case e in #(
1667 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1668 /* end confdefs.h. */
1669 $5
1670 int
1671 main (void)
1672 {
1673 static $2 ac_aggr;
1674 if (ac_aggr.$3)
1675 return 0;
1676 ;
1677 return 0;
1678 }
1679 _ACEOF
1680 if ac_fn_c_try_compile "$LINENO"
1681 then :
1682 eval "$4=yes"
1683 else case e in #(
1684 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1685 /* end confdefs.h. */
1686 $5
1687 int
1688 main (void)
1689 {
1690 static $2 ac_aggr;
1691 if (sizeof ac_aggr.$3)
1692 return 0;
1693 ;
1694 return 0;
1695 }
1696 _ACEOF
1697 if ac_fn_c_try_compile "$LINENO"
1698 then :
1699 eval "$4=yes"
1700 else case e in #(
1701 e) eval "$4=no" ;;
1702 esac
1703 fi
1704 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
1705 esac
1706 fi
1707 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
1708 esac
1709 fi
1710 eval ac_res=\$$4
1711 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1712 printf "%s\n" "$ac_res" >&6; }
1713 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1714
1715 } # ac_fn_c_check_member
1716 ac_configure_args_raw=
1717 for ac_arg
1718 do
1719 case $ac_arg in
1720 *\'*)
1721 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1722 esac
1723 as_fn_append ac_configure_args_raw " '$ac_arg'"
1724 done
1725
1726 case $ac_configure_args_raw in
1727 *$as_nl*)
1728 ac_safe_unquote= ;;
1729 *)
1730 ac_unsafe_z='|&;<>()$`\\"*?[ '' ' # This string ends in space, tab.
1731 ac_unsafe_a="$ac_unsafe_z#~"
1732 ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g"
1733 ac_configure_args_raw=` printf "%s\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;;
1734 esac
1735
1736 cat >config.log <<_ACEOF
1737 This file contains any messages produced by compilers while
1738 running configure, to aid debugging if configure makes a mistake.
1739
1740 It was created by i18n $as_me 1.0, which was
1741 generated by GNU Autoconf 2.72. Invocation command line was
1742
1743 $ $0$ac_configure_args_raw
1744
1745 _ACEOF
1746 exec 5>>config.log
1747 {
1748 cat <<_ASUNAME
1749 ## --------- ##
1750 ## Platform. ##
1751 ## --------- ##
1752
1753 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1754 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1755 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1756 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1757 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1758
1759 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1760 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1761
1762 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1763 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1764 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1765 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1766 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1767 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1768 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1769
1770 _ASUNAME
1771
1772 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1773 for as_dir in $PATH
1774 do
1775 IFS=$as_save_IFS
1776 case $as_dir in #(((
1777 '') as_dir=./ ;;
1778 */) ;;
1779 *) as_dir=$as_dir/ ;;
1780 esac
1781 printf "%s\n" "PATH: $as_dir"
1782 done
1783 IFS=$as_save_IFS
1784
1785 } >&5
1786
1787 cat >&5 <<_ACEOF
1788
1789
1790 ## ----------- ##
1791 ## Core tests. ##
1792 ## ----------- ##
1793
1794 _ACEOF
1795
1796
1797 # Keep a trace of the command line.
1798 # Strip out --no-create and --no-recursion so they do not pile up.
1799 # Strip out --silent because we don't want to record it for future runs.
1800 # Also quote any args containing shell meta-characters.
1801 # Make two passes to allow for proper duplicate-argument suppression.
1802 ac_configure_args=
1803 ac_configure_args0=
1804 ac_configure_args1=
1805 ac_must_keep_next=false
1806 for ac_pass in 1 2
1807 do
1808 for ac_arg
1809 do
1810 case $ac_arg in
1811 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1812 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1813 | -silent | --silent | --silen | --sile | --sil)
1814 continue ;;
1815 *\'*)
1816 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1817 esac
1818 case $ac_pass in
1819 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1820 2)
1821 as_fn_append ac_configure_args1 " '$ac_arg'"
1822 if test $ac_must_keep_next = true; then
1823 ac_must_keep_next=false # Got value, back to normal.
1824 else
1825 case $ac_arg in
1826 *=* | --config-cache | -C | -disable-* | --disable-* \
1827 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1828 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1829 | -with-* | --with-* | -without-* | --without-* | --x)
1830 case "$ac_configure_args0 " in
1831 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1832 esac
1833 ;;
1834 -* ) ac_must_keep_next=true ;;
1835 esac
1836 fi
1837 as_fn_append ac_configure_args " '$ac_arg'"
1838 ;;
1839 esac
1840 done
1841 done
1842 { ac_configure_args0=; unset ac_configure_args0;}
1843 { ac_configure_args1=; unset ac_configure_args1;}
1844
1845 # When interrupted or exit'd, cleanup temporary files, and complete
1846 # config.log. We remove comments because anyway the quotes in there
1847 # would cause problems or look ugly.
1848 # WARNING: Use '\'' to represent an apostrophe within the trap.
1849 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1850 trap 'exit_status=$?
1851 # Sanitize IFS.
1852 IFS=" "" $as_nl"
1853 # Save into config.log some information that might help in debugging.
1854 {
1855 echo
1856
1857 printf "%s\n" "## ---------------- ##
1858 ## Cache variables. ##
1859 ## ---------------- ##"
1860 echo
1861 # The following way of writing the cache mishandles newlines in values,
1862 (
1863 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1864 eval ac_val=\$$ac_var
1865 case $ac_val in #(
1866 *${as_nl}*)
1867 case $ac_var in #(
1868 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1869 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1870 esac
1871 case $ac_var in #(
1872 _ | IFS | as_nl) ;; #(
1873 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1874 *) { eval $ac_var=; unset $ac_var;} ;;
1875 esac ;;
1876 esac
1877 done
1878 (set) 2>&1 |
1879 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1880 *${as_nl}ac_space=\ *)
1881 sed -n \
1882 "s/'\''/'\''\\\\'\'''\''/g;
1883 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1884 ;; #(
1885 *)
1886 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1887 ;;
1888 esac |
1889 sort
1890 )
1891 echo
1892
1893 printf "%s\n" "## ----------------- ##
1894 ## Output variables. ##
1895 ## ----------------- ##"
1896 echo
1897 for ac_var in $ac_subst_vars
1898 do
1899 eval ac_val=\$$ac_var
1900 case $ac_val in
1901 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1902 esac
1903 printf "%s\n" "$ac_var='\''$ac_val'\''"
1904 done | sort
1905 echo
1906
1907 if test -n "$ac_subst_files"; then
1908 printf "%s\n" "## ------------------- ##
1909 ## File substitutions. ##
1910 ## ------------------- ##"
1911 echo
1912 for ac_var in $ac_subst_files
1913 do
1914 eval ac_val=\$$ac_var
1915 case $ac_val in
1916 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1917 esac
1918 printf "%s\n" "$ac_var='\''$ac_val'\''"
1919 done | sort
1920 echo
1921 fi
1922
1923 if test -s confdefs.h; then
1924 printf "%s\n" "## ----------- ##
1925 ## confdefs.h. ##
1926 ## ----------- ##"
1927 echo
1928 cat confdefs.h
1929 echo
1930 fi
1931 test "$ac_signal" != 0 &&
1932 printf "%s\n" "$as_me: caught signal $ac_signal"
1933 printf "%s\n" "$as_me: exit $exit_status"
1934 } >&5
1935 rm -f core *.core core.conftest.* &&
1936 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1937 exit $exit_status
1938 ' 0
1939 for ac_signal in 1 2 13 15; do
1940 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
1941 done
1942 ac_signal=0
1943
1944 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1945 rm -f -r conftest* confdefs.h
1946
1947 printf "%s\n" "/* confdefs.h */" > confdefs.h
1948
1949 # Predefined preprocessor variables.
1950
1951 printf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h
1952
1953 printf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h
1954
1955 printf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h
1956
1957 printf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h
1958
1959 printf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h
1960
1961 printf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h
1962
1963
1964 # Let the site file select an alternate cache file if it wants to.
1965 # Prefer an explicitly selected file to automatically selected ones.
1966 if test -n "$CONFIG_SITE"; then
1967 ac_site_files="$CONFIG_SITE"
1968 elif test "x$prefix" != xNONE; then
1969 ac_site_files="$prefix/share/config.site $prefix/etc/config.site"
1970 else
1971 ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1972 fi
1973
1974 for ac_site_file in $ac_site_files
1975 do
1976 case $ac_site_file in #(
1977 */*) :
1978 ;; #(
1979 *) :
1980 ac_site_file=./$ac_site_file ;;
1981 esac
1982 if test -f "$ac_site_file" && test -r "$ac_site_file"; then
1983 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
1984 printf "%s\n" "$as_me: loading site script $ac_site_file" >&6;}
1985 sed 's/^/| /' "$ac_site_file" >&5
1986 . "$ac_site_file" \
1987 || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
1988 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
1989 as_fn_error $? "failed to load site script $ac_site_file
1990 See 'config.log' for more details" "$LINENO" 5; }
1991 fi
1992 done
1993
1994 if test -r "$cache_file"; then
1995 # Some versions of bash will fail to source /dev/null (special files
1996 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
1997 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
1998 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
1999 printf "%s\n" "$as_me: loading cache $cache_file" >&6;}
2000 case $cache_file in
2001 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2002 *) . "./$cache_file";;
2003 esac
2004 fi
2005 else
2006 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2007 printf "%s\n" "$as_me: creating cache $cache_file" >&6;}
2008 >$cache_file
2009 fi
2010
2011
2012 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to remove colons from paths" >&5
2013 printf %s "checking how to remove colons from paths... " >&6; }
2014 if test ${cl_cv_decolonize+y}
2015 then :
2016 printf %s "(cached) " >&6
2017 else case e in #(
2018 e) case `uname -s` in
2019 CYGWIN*)
2020 cl_cv_decolonize='cygpath --unix $x'
2021 ;;
2022 Windows* | MINGW* | MSYS*)
2023 if (type cygpath) > /dev/null 2>&1; then
2024 cl_cv_decolonize='cygpath --unix $x'
2025 else
2026 cl_cv_decolonize="echo \$x | sed -e 's,\\\\,/,g' -e 's,^\\(.\\):,/\1,'"
2027 fi
2028 ;;
2029 *)
2030 cl_cv_decolonize='echo $x'
2031 ;;
2032 esac
2033 ;;
2034 esac
2035 fi
2036 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cl_cv_decolonize" >&5
2037 printf "%s\n" "$cl_cv_decolonize" >&6; }
2038 CLISP_DECOLONIZE=$cl_cv_decolonize
2039
2040
2041
2042
2043 # Check whether --with-clisp was given.
2044 if test ${with_clisp+y}
2045 then :
2046 withval=$with_clisp; cl_use_clisp="$withval"
2047 else case e in #(
2048 e) cl_use_clisp=default ;;
2049 esac
2050 fi
2051
2052 cl_have_clisp=no
2053 if test "$cl_use_clisp" != "no"; then
2054 if test "$cl_use_clisp" = default -o "$cl_use_clisp" = yes; then
2055 # Extract the first word of "clisp", so it can be a program name with args.
2056 set dummy clisp; ac_word=$2
2057 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2058 printf %s "checking for $ac_word... " >&6; }
2059 if test ${ac_cv_path_cl_cv_clisp+y}
2060 then :
2061 printf %s "(cached) " >&6
2062 else case e in #(
2063 e) case $cl_cv_clisp in
2064 [\\/]* | ?:[\\/]*)
2065 ac_cv_path_cl_cv_clisp="$cl_cv_clisp" # Let the user override the test with a path.
2066 ;;
2067 *)
2068 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2069 for as_dir in $PATH
2070 do
2071 IFS=$as_save_IFS
2072 case $as_dir in #(((
2073 '') as_dir=./ ;;
2074 */) ;;
2075 *) as_dir=$as_dir/ ;;
2076 esac
2077 for ac_exec_ext in '' $ac_executable_extensions; do
2078 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2079 ac_cv_path_cl_cv_clisp="$as_dir$ac_word$ac_exec_ext"
2080 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2081 break 2
2082 fi
2083 done
2084 done
2085 IFS=$as_save_IFS
2086
2087 ;;
2088 esac ;;
2089 esac
2090 fi
2091 cl_cv_clisp=$ac_cv_path_cl_cv_clisp
2092 if test -n "$cl_cv_clisp"; then
2093 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cl_cv_clisp" >&5
2094 printf "%s\n" "$cl_cv_clisp" >&6; }
2095 else
2096 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2097 printf "%s\n" "no" >&6; }
2098 fi
2099
2100
2101 else
2102 cl_cv_clisp="$cl_use_clisp"
2103 fi
2104 if test -n "$cl_cv_clisp"; then
2105 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for CLISP version" >&5
2106 printf %s "checking for CLISP version... " >&6; }
2107 if test ${cl_cv_clisp_version+y}
2108 then :
2109 printf %s "(cached) " >&6
2110 else case e in #(
2111 e) if $cl_cv_clisp --version 2>/dev/null | head -n 1 | grep "GNU CLISP" >/dev/null 2>&1; then
2112 cl_cv_clisp_version=`$cl_cv_clisp -q -norc -x '(lisp-implementation-version)' 2>/dev/null | sed -e 's/^"//' -e 's/"$//'`
2113 else
2114 as_fn_error $? "'$cl_cv_clisp' is not a CLISP" "$LINENO" 5
2115 fi
2116 ;;
2117 esac
2118 fi
2119 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cl_cv_clisp_version" >&5
2120 printf "%s\n" "$cl_cv_clisp_version" >&6; }
2121 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for CLISP libdir" >&5
2122 printf %s "checking for CLISP libdir... " >&6; }
2123 if test ${cl_cv_clisp_libdir+y}
2124 then :
2125 printf %s "(cached) " >&6
2126 else case e in #(
2127 e) cl_cv_clisp_libdir=`$cl_cv_clisp -q -norc -x '(namestring *lib-directory*)' 2>/dev/null | sed -e 's/^"//' -e 's/"$//'`
2128 x=$cl_cv_clisp_libdir
2129 cl_cv_clisp_libdir=`eval $cl_cv_decolonize`
2130 # cf src/clisp-link.in:linkkitdir
2131 missing=''
2132 for f in modules.c clisp.h; do
2133 test -r "${cl_cv_clisp_libdir}linkkit/$f" || missing=${missing}' '$f
2134 done
2135 test -n "${missing}" \
2136 && as_fn_error $? "missing ${missing} in '${cl_cv_clisp_libdir}linkkit'" "$LINENO" 5
2137 ;;
2138 esac
2139 fi
2140 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cl_cv_clisp_libdir" >&5
2141 printf "%s\n" "$cl_cv_clisp_libdir" >&6; }
2142 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for CLISP linking set" >&5
2143 printf %s "checking for CLISP linking set... " >&6; }
2144 if test ${cl_cv_clisp_linkset+y}
2145 then :
2146 printf %s "(cached) " >&6
2147 else case e in #(
2148 e) cl_cv_clisp_linkset=`$cl_cv_clisp -q -norc -x '(sys::program-name)' 2>/dev/null | sed -e 's/^"//' -e 's/"$//'`
2149 cl_cv_clisp_linkset=`dirname ${cl_cv_clisp_linkset}`
2150 missing=''
2151 # cf. src/clisp-link.in:check_linkset (we do not need to check for
2152 # lisp.run because cl_cv_clisp_linkset comes from SYS::PROGRAM-NAME)
2153 for f in lisp.a lispinit.mem modules.h modules.o makevars; do
2154 test -r "${cl_cv_clisp_linkset}/$f" || missing=${missing}' '$f
2155 done
2156 test -n "${missing}" \
2157 && as_fn_error $? "missing ${missing} in '${cl_cv_clisp_linkset}'" "$LINENO" 5
2158 ;;
2159 esac
2160 fi
2161 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cl_cv_clisp_linkset" >&5
2162 printf "%s\n" "$cl_cv_clisp_linkset" >&6; }
2163 CLISP=$cl_cv_clisp
2164
2165 CLISP_LIBDIR="${cl_cv_clisp_libdir}"
2166
2167 CLISP_LINKKIT="${cl_cv_clisp_libdir}linkkit"
2168
2169 sed 's/^/CLISP_/' ${cl_cv_clisp_linkset}/makevars > conftestvars
2170 . ./conftestvars
2171 rm -f conftestvars
2172
2173
2174
2175
2176 test -d "$cl_cv_clisp_libdir" -a -d "$cl_cv_clisp_linkset" && cl_have_clisp=yes
2177 fi
2178 fi
2179
2180 # Test code for whether the C compiler supports C89 (global declarations)
2181 ac_c_conftest_c89_globals='
2182 /* Does the compiler advertise C89 conformance?
2183 Do not test the value of __STDC__, because some compilers set it to 0
2184 while being otherwise adequately conformant. */
2185 #if !defined __STDC__
2186 # error "Compiler does not advertise C89 conformance"
2187 #endif
2188
2189 #include <stddef.h>
2190 #include <stdarg.h>
2191 struct stat;
2192 /* Most of the following tests are stolen from RCS 5.7 src/conf.sh. */
2193 struct buf { int x; };
2194 struct buf * (*rcsopen) (struct buf *, struct stat *, int);
2195 static char *e (char **p, int i)
2196 {
2197 return p[i];
2198 }
2199 static char *f (char * (*g) (char **, int), char **p, ...)
2200 {
2201 char *s;
2202 va_list v;
2203 va_start (v,p);
2204 s = g (p, va_arg (v,int));
2205 va_end (v);
2206 return s;
2207 }
2208
2209 /* C89 style stringification. */
2210 #define noexpand_stringify(a) #a
2211 const char *stringified = noexpand_stringify(arbitrary+token=sequence);
2212
2213 /* C89 style token pasting. Exercises some of the corner cases that
2214 e.g. old MSVC gets wrong, but not very hard. */
2215 #define noexpand_concat(a,b) a##b
2216 #define expand_concat(a,b) noexpand_concat(a,b)
2217 extern int vA;
2218 extern int vbee;
2219 #define aye A
2220 #define bee B
2221 int *pvA = &expand_concat(v,aye);
2222 int *pvbee = &noexpand_concat(v,bee);
2223
2224 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2225 function prototypes and stuff, but not \xHH hex character constants.
2226 These do not provoke an error unfortunately, instead are silently treated
2227 as an "x". The following induces an error, until -std is added to get
2228 proper ANSI mode. Curiously \x00 != x always comes out true, for an
2229 array size at least. It is necessary to write \x00 == 0 to get something
2230 that is true only with -std. */
2231 int osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1];
2232
2233 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2234 inside strings and character constants. */
2235 #define FOO(x) '\''x'\''
2236 int xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1];
2237
2238 int test (int i, double x);
2239 struct s1 {int (*f) (int a);};
2240 struct s2 {int (*f) (double a);};
2241 int pairnames (int, char **, int *(*)(struct buf *, struct stat *, int),
2242 int, int);'
2243
2244 # Test code for whether the C compiler supports C89 (body of main).
2245 ac_c_conftest_c89_main='
2246 ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]);
2247 '
2248
2249 # Test code for whether the C compiler supports C99 (global declarations)
2250 ac_c_conftest_c99_globals='
2251 /* Does the compiler advertise C99 conformance? */
2252 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L
2253 # error "Compiler does not advertise C99 conformance"
2254 #endif
2255
2256 // See if C++-style comments work.
2257
2258 #include <stdbool.h>
2259 extern int puts (const char *);
2260 extern int printf (const char *, ...);
2261 extern int dprintf (int, const char *, ...);
2262 extern void *malloc (size_t);
2263 extern void free (void *);
2264
2265 // Check varargs macros. These examples are taken from C99 6.10.3.5.
2266 // dprintf is used instead of fprintf to avoid needing to declare
2267 // FILE and stderr.
2268 #define debug(...) dprintf (2, __VA_ARGS__)
2269 #define showlist(...) puts (#__VA_ARGS__)
2270 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
2271 static void
2272 test_varargs_macros (void)
2273 {
2274 int x = 1234;
2275 int y = 5678;
2276 debug ("Flag");
2277 debug ("X = %d\n", x);
2278 showlist (The first, second, and third items.);
2279 report (x>y, "x is %d but y is %d", x, y);
2280 }
2281
2282 // Check long long types.
2283 #define BIG64 18446744073709551615ull
2284 #define BIG32 4294967295ul
2285 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
2286 #if !BIG_OK
2287 #error "your preprocessor is broken"
2288 #endif
2289 #if BIG_OK
2290 #else
2291 #error "your preprocessor is broken"
2292 #endif
2293 static long long int bignum = -9223372036854775807LL;
2294 static unsigned long long int ubignum = BIG64;
2295
2296 struct incomplete_array
2297 {
2298 int datasize;
2299 double data[];
2300 };
2301
2302 struct named_init {
2303 int number;
2304 const wchar_t *name;
2305 double average;
2306 };
2307
2308 typedef const char *ccp;
2309
2310 static inline int
2311 test_restrict (ccp restrict text)
2312 {
2313 // Iterate through items via the restricted pointer.
2314 // Also check for declarations in for loops.
2315 for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i)
2316 continue;
2317 return 0;
2318 }
2319
2320 // Check varargs and va_copy.
2321 static bool
2322 test_varargs (const char *format, ...)
2323 {
2324 va_list args;
2325 va_start (args, format);
2326 va_list args_copy;
2327 va_copy (args_copy, args);
2328
2329 const char *str = "";
2330 int number = 0;
2331 float fnumber = 0;
2332
2333 while (*format)
2334 {
2335 switch (*format++)
2336 {
2337 case '\''s'\'': // string
2338 str = va_arg (args_copy, const char *);
2339 break;
2340 case '\''d'\'': // int
2341 number = va_arg (args_copy, int);
2342 break;
2343 case '\''f'\'': // float
2344 fnumber = va_arg (args_copy, double);
2345 break;
2346 default:
2347 break;
2348 }
2349 }
2350 va_end (args_copy);
2351 va_end (args);
2352
2353 return *str && number && fnumber;
2354 }
2355 '
2356
2357 # Test code for whether the C compiler supports C99 (body of main).
2358 ac_c_conftest_c99_main='
2359 // Check bool.
2360 _Bool success = false;
2361 success |= (argc != 0);
2362
2363 // Check restrict.
2364 if (test_restrict ("String literal") == 0)
2365 success = true;
2366 char *restrict newvar = "Another string";
2367
2368 // Check varargs.
2369 success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234);
2370 test_varargs_macros ();
2371
2372 // Check flexible array members.
2373 struct incomplete_array *ia =
2374 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
2375 ia->datasize = 10;
2376 for (int i = 0; i < ia->datasize; ++i)
2377 ia->data[i] = i * 1.234;
2378 // Work around memory leak warnings.
2379 free (ia);
2380
2381 // Check named initializers.
2382 struct named_init ni = {
2383 .number = 34,
2384 .name = L"Test wide string",
2385 .average = 543.34343,
2386 };
2387
2388 ni.number = 58;
2389
2390 int dynamic_array[ni.number];
2391 dynamic_array[0] = argv[0][0];
2392 dynamic_array[ni.number - 1] = 543;
2393
2394 // work around unused variable warnings
2395 ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\''
2396 || dynamic_array[ni.number - 1] != 543);
2397 '
2398
2399 # Test code for whether the C compiler supports C11 (global declarations)
2400 ac_c_conftest_c11_globals='
2401 /* Does the compiler advertise C11 conformance? */
2402 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L
2403 # error "Compiler does not advertise C11 conformance"
2404 #endif
2405
2406 // Check _Alignas.
2407 char _Alignas (double) aligned_as_double;
2408 char _Alignas (0) no_special_alignment;
2409 extern char aligned_as_int;
2410 char _Alignas (0) _Alignas (int) aligned_as_int;
2411
2412 // Check _Alignof.
2413 enum
2414 {
2415 int_alignment = _Alignof (int),
2416 int_array_alignment = _Alignof (int[100]),
2417 char_alignment = _Alignof (char)
2418 };
2419 _Static_assert (0 < -_Alignof (int), "_Alignof is signed");
2420
2421 // Check _Noreturn.
2422 int _Noreturn does_not_return (void) { for (;;) continue; }
2423
2424 // Check _Static_assert.
2425 struct test_static_assert
2426 {
2427 int x;
2428 _Static_assert (sizeof (int) <= sizeof (long int),
2429 "_Static_assert does not work in struct");
2430 long int y;
2431 };
2432
2433 // Check UTF-8 literals.
2434 #define u8 syntax error!
2435 char const utf8_literal[] = u8"happens to be ASCII" "another string";
2436
2437 // Check duplicate typedefs.
2438 typedef long *long_ptr;
2439 typedef long int *long_ptr;
2440 typedef long_ptr long_ptr;
2441
2442 // Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1.
2443 struct anonymous
2444 {
2445 union {
2446 struct { int i; int j; };
2447 struct { int k; long int l; } w;
2448 };
2449 int m;
2450 } v1;
2451 '
2452
2453 # Test code for whether the C compiler supports C11 (body of main).
2454 ac_c_conftest_c11_main='
2455 _Static_assert ((offsetof (struct anonymous, i)
2456 == offsetof (struct anonymous, w.k)),
2457 "Anonymous union alignment botch");
2458 v1.i = 2;
2459 v1.w.k = 5;
2460 ok |= v1.i != 5;
2461 '
2462
2463 # Test code for whether the C compiler supports C11 (complete).
2464 ac_c_conftest_c11_program="${ac_c_conftest_c89_globals}
2465 ${ac_c_conftest_c99_globals}
2466 ${ac_c_conftest_c11_globals}
2467
2468 int
2469 main (int argc, char **argv)
2470 {
2471 int ok = 0;
2472 ${ac_c_conftest_c89_main}
2473 ${ac_c_conftest_c99_main}
2474 ${ac_c_conftest_c11_main}
2475 return ok;
2476 }
2477 "
2478
2479 # Test code for whether the C compiler supports C99 (complete).
2480 ac_c_conftest_c99_program="${ac_c_conftest_c89_globals}
2481 ${ac_c_conftest_c99_globals}
2482
2483 int
2484 main (int argc, char **argv)
2485 {
2486 int ok = 0;
2487 ${ac_c_conftest_c89_main}
2488 ${ac_c_conftest_c99_main}
2489 return ok;
2490 }
2491 "
2492
2493 # Test code for whether the C compiler supports C89 (complete).
2494 ac_c_conftest_c89_program="${ac_c_conftest_c89_globals}
2495
2496 int
2497 main (int argc, char **argv)
2498 {
2499 int ok = 0;
2500 ${ac_c_conftest_c89_main}
2501 return ok;
2502 }
2503 "
2504
2505 as_fn_append ac_header_c_list " stdio.h stdio_h HAVE_STDIO_H"
2506 as_fn_append ac_header_c_list " stdlib.h stdlib_h HAVE_STDLIB_H"
2507 as_fn_append ac_header_c_list " string.h string_h HAVE_STRING_H"
2508 as_fn_append ac_header_c_list " inttypes.h inttypes_h HAVE_INTTYPES_H"
2509 as_fn_append ac_header_c_list " stdint.h stdint_h HAVE_STDINT_H"
2510 as_fn_append ac_header_c_list " strings.h strings_h HAVE_STRINGS_H"
2511 as_fn_append ac_header_c_list " sys/stat.h sys_stat_h HAVE_SYS_STAT_H"
2512 as_fn_append ac_header_c_list " sys/types.h sys_types_h HAVE_SYS_TYPES_H"
2513 as_fn_append ac_header_c_list " unistd.h unistd_h HAVE_UNISTD_H"
2514 as_fn_append ac_header_c_list " wchar.h wchar_h HAVE_WCHAR_H"
2515 as_fn_append ac_header_c_list " minix/config.h minix_config_h HAVE_MINIX_CONFIG_H"
2516
2517 # Auxiliary files required by this configure script.
2518 ac_aux_files="compile"
2519
2520 # Locations in which to look for auxiliary files.
2521 ac_aux_dir_candidates="$cl_cv_clisp_libdir/build-aux"
2522
2523 # Search for a directory containing all of the required auxiliary files,
2524 # $ac_aux_files, from the $PATH-style list $ac_aux_dir_candidates.
2525 # If we don't find one directory that contains all the files we need,
2526 # we report the set of missing files from the *first* directory in
2527 # $ac_aux_dir_candidates and give up.
2528 ac_missing_aux_files=""
2529 ac_first_candidate=:
2530 printf "%s\n" "$as_me:${as_lineno-$LINENO}: looking for aux files: $ac_aux_files" >&5
2531 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2532 as_found=false
2533 for as_dir in $ac_aux_dir_candidates
2534 do
2535 IFS=$as_save_IFS
2536 case $as_dir in #(((
2537 '') as_dir=./ ;;
2538 */) ;;
2539 *) as_dir=$as_dir/ ;;
2540 esac
2541 as_found=:
2542
2543 printf "%s\n" "$as_me:${as_lineno-$LINENO}: trying $as_dir" >&5
2544 ac_aux_dir_found=yes
2545 ac_install_sh=
2546 for ac_aux in $ac_aux_files
2547 do
2548 # As a special case, if "install-sh" is required, that requirement
2549 # can be satisfied by any of "install-sh", "install.sh", or "shtool",
2550 # and $ac_install_sh is set appropriately for whichever one is found.
2551 if test x"$ac_aux" = x"install-sh"
2552 then
2553 if test -f "${as_dir}install-sh"; then
2554 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install-sh found" >&5
2555 ac_install_sh="${as_dir}install-sh -c"
2556 elif test -f "${as_dir}install.sh"; then
2557 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install.sh found" >&5
2558 ac_install_sh="${as_dir}install.sh -c"
2559 elif test -f "${as_dir}shtool"; then
2560 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}shtool found" >&5
2561 ac_install_sh="${as_dir}shtool install -c"
2562 else
2563 ac_aux_dir_found=no
2564 if $ac_first_candidate; then
2565 ac_missing_aux_files="${ac_missing_aux_files} install-sh"
2566 else
2567 break
2568 fi
2569 fi
2570 else
2571 if test -f "${as_dir}${ac_aux}"; then
2572 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}${ac_aux} found" >&5
2573 else
2574 ac_aux_dir_found=no
2575 if $ac_first_candidate; then
2576 ac_missing_aux_files="${ac_missing_aux_files} ${ac_aux}"
2577 else
2578 break
2579 fi
2580 fi
2581 fi
2582 done
2583 if test "$ac_aux_dir_found" = yes; then
2584 ac_aux_dir="$as_dir"
2585 break
2586 fi
2587 ac_first_candidate=false
2588
2589 as_found=false
2590 done
2591 IFS=$as_save_IFS
2592 if $as_found
2593 then :
2594
2595 else case e in #(
2596 e) as_fn_error $? "cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5 ;;
2597 esac
2598 fi
2599
2600
2601 # These three variables are undocumented and unsupported,
2602 # and are intended to be withdrawn in a future Autoconf release.
2603 # They can cause serious problems if a builder's source tree is in a directory
2604 # whose full name contains unusual characters.
2605 if test -f "${ac_aux_dir}config.guess"; then
2606 ac_config_guess="$SHELL ${ac_aux_dir}config.guess"
2607 fi
2608 if test -f "${ac_aux_dir}config.sub"; then
2609 ac_config_sub="$SHELL ${ac_aux_dir}config.sub"
2610 fi
2611 if test -f "$ac_aux_dir/configure"; then
2612 ac_configure="$SHELL ${ac_aux_dir}configure"
2613 fi
2614
2615 # Check that the precious variables saved in the cache have kept the same
2616 # value.
2617 ac_cache_corrupted=false
2618 for ac_var in $ac_precious_vars; do
2619 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2620 eval ac_new_set=\$ac_env_${ac_var}_set
2621 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2622 eval ac_new_val=\$ac_env_${ac_var}_value
2623 case $ac_old_set,$ac_new_set in
2624 set,)
2625 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' was set to '$ac_old_val' in the previous run" >&5
2626 printf "%s\n" "$as_me: error: '$ac_var' was set to '$ac_old_val' in the previous run" >&2;}
2627 ac_cache_corrupted=: ;;
2628 ,set)
2629 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' was not set in the previous run" >&5
2630 printf "%s\n" "$as_me: error: '$ac_var' was not set in the previous run" >&2;}
2631 ac_cache_corrupted=: ;;
2632 ,);;
2633 *)
2634 if test "x$ac_old_val" != "x$ac_new_val"; then
2635 # differences in whitespace do not lead to failure.
2636 ac_old_val_w=`echo x $ac_old_val`
2637 ac_new_val_w=`echo x $ac_new_val`
2638 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2639 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' has changed since the previous run:" >&5
2640 printf "%s\n" "$as_me: error: '$ac_var' has changed since the previous run:" >&2;}
2641 ac_cache_corrupted=:
2642 else
2643 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in '$ac_var' since the previous run:" >&5
2644 printf "%s\n" "$as_me: warning: ignoring whitespace changes in '$ac_var' since the previous run:" >&2;}
2645 eval $ac_var=\$ac_old_val
2646 fi
2647 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: former value: '$ac_old_val'" >&5
2648 printf "%s\n" "$as_me: former value: '$ac_old_val'" >&2;}
2649 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: current value: '$ac_new_val'" >&5
2650 printf "%s\n" "$as_me: current value: '$ac_new_val'" >&2;}
2651 fi;;
2652 esac
2653 # Pass precious variables to config.status.
2654 if test "$ac_new_set" = set; then
2655 case $ac_new_val in
2656 *\'*) ac_arg=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2657 *) ac_arg=$ac_var=$ac_new_val ;;
2658 esac
2659 case " $ac_configure_args " in
2660 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2661 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2662 esac
2663 fi
2664 done
2665 if $ac_cache_corrupted; then
2666 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
2667 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
2668 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2669 printf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;}
2670 as_fn_error $? "run '${MAKE-make} distclean' and/or 'rm $cache_file'
2671 and start over" "$LINENO" 5
2672 fi
2673 ## -------------------- ##
2674 ## Main body of script. ##
2675 ## -------------------- ##
2676
2677 ac_ext=c
2678 ac_cpp='$CPP $CPPFLAGS'
2679 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2680 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2681 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2682
2683
2684
2685 ac_config_headers="$ac_config_headers config.h"
2686
2687
2688
2689
2690 case $TERM in
2691 # for the most important terminal types we directly know the sequences
2692 xterm*|vt220*|vt100*)
2693 term_bold=`${AWK:-awk} 'BEGIN { printf("%c%c%c%c", 27, 91, 49, 109); }' </dev/null 2>/dev/null`
2694 term_norm=`${AWK:-awk} 'BEGIN { printf("%c%c%c", 27, 91, 109); }' </dev/null 2>/dev/null`
2695 ;;
2696 # for all others, we try to use a possibly existing `tput' or `tcout' utility
2697 *)
2698 paths=`echo "$PATH" | sed -e 's/:/ /g'`
2699 for tool in tput tcout; do
2700 for dir in $paths; do
2701 if test -r "$dir/$tool"; then
2702 for seq in bold md smso; do # 'smso' is last
2703 bold="`$dir/$tool $seq 2>/dev/null`"
2704 if test -n "$bold"; then
2705 term_bold="$bold"
2706 break
2707 fi
2708 done
2709 if test -n "$term_bold"; then
2710 for seq in sgr0 me rmso reset; do # 'reset' is last
2711 norm="`$dir/$tool $seq 2>/dev/null`"
2712 if test -n "$norm"; then
2713 term_norm="$norm"
2714 break
2715 fi
2716 done
2717 fi
2718 break
2719 fi
2720 done
2721 if test -n "$term_bold" && test -n "$term_norm"; then
2722 break
2723 fi
2724 done
2725 ;;
2726 esac
2727
2728
2729 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${term_bold}** I18N (Common)${term_norm}" >&5
2730 printf "%s\n" "$as_me: ${term_bold}** I18N (Common)${term_norm}" >&6;}
2731
2732
2733
2734
2735
2736
2737
2738 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for CLISP" >&5
2739 printf %s "checking for CLISP... " >&6; }
2740 if test ${cl_cv_have_clisp+y}
2741 then :
2742 printf %s "(cached) " >&6
2743 else case e in #(
2744 e) cl_cv_have_clisp=$cl_have_clisp ;;
2745 esac
2746 fi
2747 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cl_cv_have_clisp" >&5
2748 printf "%s\n" "$cl_cv_have_clisp" >&6; }
2749 required=true
2750 ${required} && test $cl_cv_have_clisp = no && as_fn_error $? "CLISP not found" "$LINENO" 5
2751
2752
2753
2754
2755
2756
2757
2758
2759
2760
2761
2762
2763
2764
2765 # Expand $ac_aux_dir to an absolute path.
2766 am_aux_dir=`cd "$ac_aux_dir" && pwd`
2767
2768 ac_ext=c
2769 ac_cpp='$CPP $CPPFLAGS'
2770 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2771 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2772 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2773 if test -n "$ac_tool_prefix"; then
2774 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2775 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2776 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2777 printf %s "checking for $ac_word... " >&6; }
2778 if test ${ac_cv_prog_CC+y}
2779 then :
2780 printf %s "(cached) " >&6
2781 else case e in #(
2782 e) if test -n "$CC"; then
2783 ac_cv_prog_CC="$CC" # Let the user override the test.
2784 else
2785 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2786 for as_dir in $PATH
2787 do
2788 IFS=$as_save_IFS
2789 case $as_dir in #(((
2790 '') as_dir=./ ;;
2791 */) ;;
2792 *) as_dir=$as_dir/ ;;
2793 esac
2794 for ac_exec_ext in '' $ac_executable_extensions; do
2795 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2796 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2797 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2798 break 2
2799 fi
2800 done
2801 done
2802 IFS=$as_save_IFS
2803
2804 fi ;;
2805 esac
2806 fi
2807 CC=$ac_cv_prog_CC
2808 if test -n "$CC"; then
2809 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2810 printf "%s\n" "$CC" >&6; }
2811 else
2812 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2813 printf "%s\n" "no" >&6; }
2814 fi
2815
2816
2817 fi
2818 if test -z "$ac_cv_prog_CC"; then
2819 ac_ct_CC=$CC
2820 # Extract the first word of "gcc", so it can be a program name with args.
2821 set dummy gcc; ac_word=$2
2822 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2823 printf %s "checking for $ac_word... " >&6; }
2824 if test ${ac_cv_prog_ac_ct_CC+y}
2825 then :
2826 printf %s "(cached) " >&6
2827 else case e in #(
2828 e) if test -n "$ac_ct_CC"; then
2829 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2830 else
2831 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2832 for as_dir in $PATH
2833 do
2834 IFS=$as_save_IFS
2835 case $as_dir in #(((
2836 '') as_dir=./ ;;
2837 */) ;;
2838 *) as_dir=$as_dir/ ;;
2839 esac
2840 for ac_exec_ext in '' $ac_executable_extensions; do
2841 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2842 ac_cv_prog_ac_ct_CC="gcc"
2843 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2844 break 2
2845 fi
2846 done
2847 done
2848 IFS=$as_save_IFS
2849
2850 fi ;;
2851 esac
2852 fi
2853 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2854 if test -n "$ac_ct_CC"; then
2855 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2856 printf "%s\n" "$ac_ct_CC" >&6; }
2857 else
2858 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2859 printf "%s\n" "no" >&6; }
2860 fi
2861
2862 if test "x$ac_ct_CC" = x; then
2863 CC=""
2864 else
2865 case $cross_compiling:$ac_tool_warned in
2866 yes:)
2867 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2868 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2869 ac_tool_warned=yes ;;
2870 esac
2871 CC=$ac_ct_CC
2872 fi
2873 else
2874 CC="$ac_cv_prog_CC"
2875 fi
2876
2877 if test -z "$CC"; then
2878 if test -n "$ac_tool_prefix"; then
2879 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2880 set dummy ${ac_tool_prefix}cc; ac_word=$2
2881 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2882 printf %s "checking for $ac_word... " >&6; }
2883 if test ${ac_cv_prog_CC+y}
2884 then :
2885 printf %s "(cached) " >&6
2886 else case e in #(
2887 e) if test -n "$CC"; then
2888 ac_cv_prog_CC="$CC" # Let the user override the test.
2889 else
2890 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2891 for as_dir in $PATH
2892 do
2893 IFS=$as_save_IFS
2894 case $as_dir in #(((
2895 '') as_dir=./ ;;
2896 */) ;;
2897 *) as_dir=$as_dir/ ;;
2898 esac
2899 for ac_exec_ext in '' $ac_executable_extensions; do
2900 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2901 ac_cv_prog_CC="${ac_tool_prefix}cc"
2902 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2903 break 2
2904 fi
2905 done
2906 done
2907 IFS=$as_save_IFS
2908
2909 fi ;;
2910 esac
2911 fi
2912 CC=$ac_cv_prog_CC
2913 if test -n "$CC"; then
2914 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2915 printf "%s\n" "$CC" >&6; }
2916 else
2917 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2918 printf "%s\n" "no" >&6; }
2919 fi
2920
2921
2922 fi
2923 fi
2924 if test -z "$CC"; then
2925 # Extract the first word of "cc", so it can be a program name with args.
2926 set dummy cc; ac_word=$2
2927 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2928 printf %s "checking for $ac_word... " >&6; }
2929 if test ${ac_cv_prog_CC+y}
2930 then :
2931 printf %s "(cached) " >&6
2932 else case e in #(
2933 e) if test -n "$CC"; then
2934 ac_cv_prog_CC="$CC" # Let the user override the test.
2935 else
2936 ac_prog_rejected=no
2937 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2938 for as_dir in $PATH
2939 do
2940 IFS=$as_save_IFS
2941 case $as_dir in #(((
2942 '') as_dir=./ ;;
2943 */) ;;
2944 *) as_dir=$as_dir/ ;;
2945 esac
2946 for ac_exec_ext in '' $ac_executable_extensions; do
2947 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2948 if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2949 ac_prog_rejected=yes
2950 continue
2951 fi
2952 ac_cv_prog_CC="cc"
2953 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2954 break 2
2955 fi
2956 done
2957 done
2958 IFS=$as_save_IFS
2959
2960 if test $ac_prog_rejected = yes; then
2961 # We found a bogon in the path, so make sure we never use it.
2962 set dummy $ac_cv_prog_CC
2963 shift
2964 if test $# != 0; then
2965 # We chose a different compiler from the bogus one.
2966 # However, it has the same basename, so the bogon will be chosen
2967 # first if we set CC to just the basename; use the full file name.
2968 shift
2969 ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@"
2970 fi
2971 fi
2972 fi ;;
2973 esac
2974 fi
2975 CC=$ac_cv_prog_CC
2976 if test -n "$CC"; then
2977 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2978 printf "%s\n" "$CC" >&6; }
2979 else
2980 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2981 printf "%s\n" "no" >&6; }
2982 fi
2983
2984
2985 fi
2986 if test -z "$CC"; then
2987 if test -n "$ac_tool_prefix"; then
2988 for ac_prog in cl.exe
2989 do
2990 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2991 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2992 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2993 printf %s "checking for $ac_word... " >&6; }
2994 if test ${ac_cv_prog_CC+y}
2995 then :
2996 printf %s "(cached) " >&6
2997 else case e in #(
2998 e) if test -n "$CC"; then
2999 ac_cv_prog_CC="$CC" # Let the user override the test.
3000 else
3001 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3002 for as_dir in $PATH
3003 do
3004 IFS=$as_save_IFS
3005 case $as_dir in #(((
3006 '') as_dir=./ ;;
3007 */) ;;
3008 *) as_dir=$as_dir/ ;;
3009 esac
3010 for ac_exec_ext in '' $ac_executable_extensions; do
3011 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3012 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3013 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3014 break 2
3015 fi
3016 done
3017 done
3018 IFS=$as_save_IFS
3019
3020 fi ;;
3021 esac
3022 fi
3023 CC=$ac_cv_prog_CC
3024 if test -n "$CC"; then
3025 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3026 printf "%s\n" "$CC" >&6; }
3027 else
3028 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3029 printf "%s\n" "no" >&6; }
3030 fi
3031
3032
3033 test -n "$CC" && break
3034 done
3035 fi
3036 if test -z "$CC"; then
3037 ac_ct_CC=$CC
3038 for ac_prog in cl.exe
3039 do
3040 # Extract the first word of "$ac_prog", so it can be a program name with args.
3041 set dummy $ac_prog; ac_word=$2
3042 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3043 printf %s "checking for $ac_word... " >&6; }
3044 if test ${ac_cv_prog_ac_ct_CC+y}
3045 then :
3046 printf %s "(cached) " >&6
3047 else case e in #(
3048 e) if test -n "$ac_ct_CC"; then
3049 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3050 else
3051 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3052 for as_dir in $PATH
3053 do
3054 IFS=$as_save_IFS
3055 case $as_dir in #(((
3056 '') as_dir=./ ;;
3057 */) ;;
3058 *) as_dir=$as_dir/ ;;
3059 esac
3060 for ac_exec_ext in '' $ac_executable_extensions; do
3061 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3062 ac_cv_prog_ac_ct_CC="$ac_prog"
3063 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3064 break 2
3065 fi
3066 done
3067 done
3068 IFS=$as_save_IFS
3069
3070 fi ;;
3071 esac
3072 fi
3073 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3074 if test -n "$ac_ct_CC"; then
3075 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3076 printf "%s\n" "$ac_ct_CC" >&6; }
3077 else
3078 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3079 printf "%s\n" "no" >&6; }
3080 fi
3081
3082
3083 test -n "$ac_ct_CC" && break
3084 done
3085
3086 if test "x$ac_ct_CC" = x; then
3087 CC=""
3088 else
3089 case $cross_compiling:$ac_tool_warned in
3090 yes:)
3091 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3092 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3093 ac_tool_warned=yes ;;
3094 esac
3095 CC=$ac_ct_CC
3096 fi
3097 fi
3098
3099 fi
3100 if test -z "$CC"; then
3101 if test -n "$ac_tool_prefix"; then
3102 # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args.
3103 set dummy ${ac_tool_prefix}clang; ac_word=$2
3104 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3105 printf %s "checking for $ac_word... " >&6; }
3106 if test ${ac_cv_prog_CC+y}
3107 then :
3108 printf %s "(cached) " >&6
3109 else case e in #(
3110 e) if test -n "$CC"; then
3111 ac_cv_prog_CC="$CC" # Let the user override the test.
3112 else
3113 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3114 for as_dir in $PATH
3115 do
3116 IFS=$as_save_IFS
3117 case $as_dir in #(((
3118 '') as_dir=./ ;;
3119 */) ;;
3120 *) as_dir=$as_dir/ ;;
3121 esac
3122 for ac_exec_ext in '' $ac_executable_extensions; do
3123 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3124 ac_cv_prog_CC="${ac_tool_prefix}clang"
3125 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3126 break 2
3127 fi
3128 done
3129 done
3130 IFS=$as_save_IFS
3131
3132 fi ;;
3133 esac
3134 fi
3135 CC=$ac_cv_prog_CC
3136 if test -n "$CC"; then
3137 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3138 printf "%s\n" "$CC" >&6; }
3139 else
3140 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3141 printf "%s\n" "no" >&6; }
3142 fi
3143
3144
3145 fi
3146 if test -z "$ac_cv_prog_CC"; then
3147 ac_ct_CC=$CC
3148 # Extract the first word of "clang", so it can be a program name with args.
3149 set dummy clang; ac_word=$2
3150 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3151 printf %s "checking for $ac_word... " >&6; }
3152 if test ${ac_cv_prog_ac_ct_CC+y}
3153 then :
3154 printf %s "(cached) " >&6
3155 else case e in #(
3156 e) if test -n "$ac_ct_CC"; then
3157 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3158 else
3159 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3160 for as_dir in $PATH
3161 do
3162 IFS=$as_save_IFS
3163 case $as_dir in #(((
3164 '') as_dir=./ ;;
3165 */) ;;
3166 *) as_dir=$as_dir/ ;;
3167 esac
3168 for ac_exec_ext in '' $ac_executable_extensions; do
3169 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3170 ac_cv_prog_ac_ct_CC="clang"
3171 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3172 break 2
3173 fi
3174 done
3175 done
3176 IFS=$as_save_IFS
3177
3178 fi ;;
3179 esac
3180 fi
3181 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3182 if test -n "$ac_ct_CC"; then
3183 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3184 printf "%s\n" "$ac_ct_CC" >&6; }
3185 else
3186 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3187 printf "%s\n" "no" >&6; }
3188 fi
3189
3190 if test "x$ac_ct_CC" = x; then
3191 CC=""
3192 else
3193 case $cross_compiling:$ac_tool_warned in
3194 yes:)
3195 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3196 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3197 ac_tool_warned=yes ;;
3198 esac
3199 CC=$ac_ct_CC
3200 fi
3201 else
3202 CC="$ac_cv_prog_CC"
3203 fi
3204
3205 fi
3206
3207
3208 test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
3209 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
3210 as_fn_error $? "no acceptable C compiler found in \$PATH
3211 See 'config.log' for more details" "$LINENO" 5; }
3212
3213 # Provide some information about the compiler.
3214 printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3215 set X $ac_compile
3216 ac_compiler=$2
3217 for ac_option in --version -v -V -qversion -version; do
3218 { { ac_try="$ac_compiler $ac_option >&5"
3219 case "(($ac_try" in
3220 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3221 *) ac_try_echo=$ac_try;;
3222 esac
3223 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3224 printf "%s\n" "$ac_try_echo"; } >&5
3225 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3226 ac_status=$?
3227 if test -s conftest.err; then
3228 sed '10a\
3229 ... rest of stderr output deleted ...
3230 10q' conftest.err >conftest.er1
3231 cat conftest.er1 >&5
3232 fi
3233 rm -f conftest.er1 conftest.err
3234 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3235 test $ac_status = 0; }
3236 done
3237
3238 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3239 /* end confdefs.h. */
3240
3241 int
3242 main (void)
3243 {
3244
3245 ;
3246 return 0;
3247 }
3248 _ACEOF
3249 ac_clean_files_save=$ac_clean_files
3250 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3251 # Try to create an executable without -o first, disregard a.out.
3252 # It will help us diagnose broken compilers, and finding out an intuition
3253 # of exeext.
3254 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3255 printf %s "checking whether the C compiler works... " >&6; }
3256 ac_link_default=`printf "%s\n" "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3257
3258 # The possible output files:
3259 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3260
3261 ac_rmfiles=
3262 for ac_file in $ac_files
3263 do
3264 case $ac_file in
3265 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3266 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3267 esac
3268 done
3269 rm -f $ac_rmfiles
3270
3271 if { { ac_try="$ac_link_default"
3272 case "(($ac_try" in
3273 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3274 *) ac_try_echo=$ac_try;;
3275 esac
3276 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3277 printf "%s\n" "$ac_try_echo"; } >&5
3278 (eval "$ac_link_default") 2>&5
3279 ac_status=$?
3280 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3281 test $ac_status = 0; }
3282 then :
3283 # Autoconf-2.13 could set the ac_cv_exeext variable to 'no'.
3284 # So ignore a value of 'no', otherwise this would lead to 'EXEEXT = no'
3285 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3286 # so that the user can short-circuit this test for compilers unknown to
3287 # Autoconf.
3288 for ac_file in $ac_files ''
3289 do
3290 test -f "$ac_file" || continue
3291 case $ac_file in
3292 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3293 ;;
3294 [ab].out )
3295 # We found the default executable, but exeext='' is most
3296 # certainly right.
3297 break;;
3298 *.* )
3299 if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no;
3300 then :; else
3301 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3302 fi
3303 # We set ac_cv_exeext here because the later test for it is not
3304 # safe: cross compilers may not add the suffix if given an '-o'
3305 # argument, so we may need to know it at that point already.
3306 # Even if this section looks crufty: it has the advantage of
3307 # actually working.
3308 break;;
3309 * )
3310 break;;
3311 esac
3312 done
3313 test "$ac_cv_exeext" = no && ac_cv_exeext=
3314
3315 else case e in #(
3316 e) ac_file='' ;;
3317 esac
3318 fi
3319 if test -z "$ac_file"
3320 then :
3321 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3322 printf "%s\n" "no" >&6; }
3323 printf "%s\n" "$as_me: failed program was:" >&5
3324 sed 's/^/| /' conftest.$ac_ext >&5
3325
3326 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
3327 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
3328 as_fn_error 77 "C compiler cannot create executables
3329 See 'config.log' for more details" "$LINENO" 5; }
3330 else case e in #(
3331 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3332 printf "%s\n" "yes" >&6; } ;;
3333 esac
3334 fi
3335 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3336 printf %s "checking for C compiler default output file name... " >&6; }
3337 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3338 printf "%s\n" "$ac_file" >&6; }
3339 ac_exeext=$ac_cv_exeext
3340
3341 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3342 ac_clean_files=$ac_clean_files_save
3343 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3344 printf %s "checking for suffix of executables... " >&6; }
3345 if { { ac_try="$ac_link"
3346 case "(($ac_try" in
3347 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3348 *) ac_try_echo=$ac_try;;
3349 esac
3350 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3351 printf "%s\n" "$ac_try_echo"; } >&5
3352 (eval "$ac_link") 2>&5
3353 ac_status=$?
3354 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3355 test $ac_status = 0; }
3356 then :
3357 # If both 'conftest.exe' and 'conftest' are 'present' (well, observable)
3358 # catch 'conftest.exe'. For instance with Cygwin, 'ls conftest' will
3359 # work properly (i.e., refer to 'conftest.exe'), while it won't with
3360 # 'rm'.
3361 for ac_file in conftest.exe conftest conftest.*; do
3362 test -f "$ac_file" || continue
3363 case $ac_file in
3364 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3365 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3366 break;;
3367 * ) break;;
3368 esac
3369 done
3370 else case e in #(
3371 e) { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
3372 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
3373 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3374 See 'config.log' for more details" "$LINENO" 5; } ;;
3375 esac
3376 fi
3377 rm -f conftest conftest$ac_cv_exeext
3378 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3379 printf "%s\n" "$ac_cv_exeext" >&6; }
3380
3381 rm -f conftest.$ac_ext
3382 EXEEXT=$ac_cv_exeext
3383 ac_exeext=$EXEEXT
3384 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3385 /* end confdefs.h. */
3386 #include <stdio.h>
3387 int
3388 main (void)
3389 {
3390 FILE *f = fopen ("conftest.out", "w");
3391 if (!f)
3392 return 1;
3393 return ferror (f) || fclose (f) != 0;
3394
3395 ;
3396 return 0;
3397 }
3398 _ACEOF
3399 ac_clean_files="$ac_clean_files conftest.out"
3400 # Check that the compiler produces executables we can run. If not, either
3401 # the compiler is broken, or we cross compile.
3402 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3403 printf %s "checking whether we are cross compiling... " >&6; }
3404 if test "$cross_compiling" != yes; then
3405 { { ac_try="$ac_link"
3406 case "(($ac_try" in
3407 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3408 *) ac_try_echo=$ac_try;;
3409 esac
3410 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3411 printf "%s\n" "$ac_try_echo"; } >&5
3412 (eval "$ac_link") 2>&5
3413 ac_status=$?
3414 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3415 test $ac_status = 0; }
3416 if { ac_try='./conftest$ac_cv_exeext'
3417 { { case "(($ac_try" in
3418 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3419 *) ac_try_echo=$ac_try;;
3420 esac
3421 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3422 printf "%s\n" "$ac_try_echo"; } >&5
3423 (eval "$ac_try") 2>&5
3424 ac_status=$?
3425 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3426 test $ac_status = 0; }; }; then
3427 cross_compiling=no
3428 else
3429 if test "$cross_compiling" = maybe; then
3430 cross_compiling=yes
3431 else
3432 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
3433 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
3434 as_fn_error 77 "cannot run C compiled programs.
3435 If you meant to cross compile, use '--host'.
3436 See 'config.log' for more details" "$LINENO" 5; }
3437 fi
3438 fi
3439 fi
3440 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3441 printf "%s\n" "$cross_compiling" >&6; }
3442
3443 rm -f conftest.$ac_ext conftest$ac_cv_exeext \
3444 conftest.o conftest.obj conftest.out
3445 ac_clean_files=$ac_clean_files_save
3446 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3447 printf %s "checking for suffix of object files... " >&6; }
3448 if test ${ac_cv_objext+y}
3449 then :
3450 printf %s "(cached) " >&6
3451 else case e in #(
3452 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3453 /* end confdefs.h. */
3454
3455 int
3456 main (void)
3457 {
3458
3459 ;
3460 return 0;
3461 }
3462 _ACEOF
3463 rm -f conftest.o conftest.obj
3464 if { { ac_try="$ac_compile"
3465 case "(($ac_try" in
3466 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3467 *) ac_try_echo=$ac_try;;
3468 esac
3469 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3470 printf "%s\n" "$ac_try_echo"; } >&5
3471 (eval "$ac_compile") 2>&5
3472 ac_status=$?
3473 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3474 test $ac_status = 0; }
3475 then :
3476 for ac_file in conftest.o conftest.obj conftest.*; do
3477 test -f "$ac_file" || continue;
3478 case $ac_file in
3479 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3480 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3481 break;;
3482 esac
3483 done
3484 else case e in #(
3485 e) printf "%s\n" "$as_me: failed program was:" >&5
3486 sed 's/^/| /' conftest.$ac_ext >&5
3487
3488 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
3489 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
3490 as_fn_error $? "cannot compute suffix of object files: cannot compile
3491 See 'config.log' for more details" "$LINENO" 5; } ;;
3492 esac
3493 fi
3494 rm -f conftest.$ac_cv_objext conftest.$ac_ext ;;
3495 esac
3496 fi
3497 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3498 printf "%s\n" "$ac_cv_objext" >&6; }
3499 OBJEXT=$ac_cv_objext
3500 ac_objext=$OBJEXT
3501 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5
3502 printf %s "checking whether the compiler supports GNU C... " >&6; }
3503 if test ${ac_cv_c_compiler_gnu+y}
3504 then :
3505 printf %s "(cached) " >&6
3506 else case e in #(
3507 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3508 /* end confdefs.h. */
3509
3510 int
3511 main (void)
3512 {
3513 #ifndef __GNUC__
3514 choke me
3515 #endif
3516
3517 ;
3518 return 0;
3519 }
3520 _ACEOF
3521 if ac_fn_c_try_compile "$LINENO"
3522 then :
3523 ac_compiler_gnu=yes
3524 else case e in #(
3525 e) ac_compiler_gnu=no ;;
3526 esac
3527 fi
3528 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
3529 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3530 ;;
3531 esac
3532 fi
3533 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3534 printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; }
3535 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3536
3537 if test $ac_compiler_gnu = yes; then
3538 GCC=yes
3539 else
3540 GCC=
3541 fi
3542 ac_test_CFLAGS=${CFLAGS+y}
3543 ac_save_CFLAGS=$CFLAGS
3544 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3545 printf %s "checking whether $CC accepts -g... " >&6; }
3546 if test ${ac_cv_prog_cc_g+y}
3547 then :
3548 printf %s "(cached) " >&6
3549 else case e in #(
3550 e) ac_save_c_werror_flag=$ac_c_werror_flag
3551 ac_c_werror_flag=yes
3552 ac_cv_prog_cc_g=no
3553 CFLAGS="-g"
3554 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3555 /* end confdefs.h. */
3556
3557 int
3558 main (void)
3559 {
3560
3561 ;
3562 return 0;
3563 }
3564 _ACEOF
3565 if ac_fn_c_try_compile "$LINENO"
3566 then :
3567 ac_cv_prog_cc_g=yes
3568 else case e in #(
3569 e) CFLAGS=""
3570 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3571 /* end confdefs.h. */
3572
3573 int
3574 main (void)
3575 {
3576
3577 ;
3578 return 0;
3579 }
3580 _ACEOF
3581 if ac_fn_c_try_compile "$LINENO"
3582 then :
3583
3584 else case e in #(
3585 e) ac_c_werror_flag=$ac_save_c_werror_flag
3586 CFLAGS="-g"
3587 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3588 /* end confdefs.h. */
3589
3590 int
3591 main (void)
3592 {
3593
3594 ;
3595 return 0;
3596 }
3597 _ACEOF
3598 if ac_fn_c_try_compile "$LINENO"
3599 then :
3600 ac_cv_prog_cc_g=yes
3601 fi
3602 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
3603 esac
3604 fi
3605 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
3606 esac
3607 fi
3608 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
3609 ac_c_werror_flag=$ac_save_c_werror_flag ;;
3610 esac
3611 fi
3612 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3613 printf "%s\n" "$ac_cv_prog_cc_g" >&6; }
3614 if test $ac_test_CFLAGS; then
3615 CFLAGS=$ac_save_CFLAGS
3616 elif test $ac_cv_prog_cc_g = yes; then
3617 if test "$GCC" = yes; then
3618 CFLAGS="-g -O2"
3619 else
3620 CFLAGS="-g"
3621 fi
3622 else
3623 if test "$GCC" = yes; then
3624 CFLAGS="-O2"
3625 else
3626 CFLAGS=
3627 fi
3628 fi
3629 ac_prog_cc_stdc=no
3630 if test x$ac_prog_cc_stdc = xno
3631 then :
3632 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5
3633 printf %s "checking for $CC option to enable C11 features... " >&6; }
3634 if test ${ac_cv_prog_cc_c11+y}
3635 then :
3636 printf %s "(cached) " >&6
3637 else case e in #(
3638 e) ac_cv_prog_cc_c11=no
3639 ac_save_CC=$CC
3640 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3641 /* end confdefs.h. */
3642 $ac_c_conftest_c11_program
3643 _ACEOF
3644 for ac_arg in '' -std=gnu11
3645 do
3646 CC="$ac_save_CC $ac_arg"
3647 if ac_fn_c_try_compile "$LINENO"
3648 then :
3649 ac_cv_prog_cc_c11=$ac_arg
3650 fi
3651 rm -f core conftest.err conftest.$ac_objext conftest.beam
3652 test "x$ac_cv_prog_cc_c11" != "xno" && break
3653 done
3654 rm -f conftest.$ac_ext
3655 CC=$ac_save_CC ;;
3656 esac
3657 fi
3658
3659 if test "x$ac_cv_prog_cc_c11" = xno
3660 then :
3661 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3662 printf "%s\n" "unsupported" >&6; }
3663 else case e in #(
3664 e) if test "x$ac_cv_prog_cc_c11" = x
3665 then :
3666 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3667 printf "%s\n" "none needed" >&6; }
3668 else case e in #(
3669 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5
3670 printf "%s\n" "$ac_cv_prog_cc_c11" >&6; }
3671 CC="$CC $ac_cv_prog_cc_c11" ;;
3672 esac
3673 fi
3674 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11
3675 ac_prog_cc_stdc=c11 ;;
3676 esac
3677 fi
3678 fi
3679 if test x$ac_prog_cc_stdc = xno
3680 then :
3681 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5
3682 printf %s "checking for $CC option to enable C99 features... " >&6; }
3683 if test ${ac_cv_prog_cc_c99+y}
3684 then :
3685 printf %s "(cached) " >&6
3686 else case e in #(
3687 e) ac_cv_prog_cc_c99=no
3688 ac_save_CC=$CC
3689 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3690 /* end confdefs.h. */
3691 $ac_c_conftest_c99_program
3692 _ACEOF
3693 for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99=
3694 do
3695 CC="$ac_save_CC $ac_arg"
3696 if ac_fn_c_try_compile "$LINENO"
3697 then :
3698 ac_cv_prog_cc_c99=$ac_arg
3699 fi
3700 rm -f core conftest.err conftest.$ac_objext conftest.beam
3701 test "x$ac_cv_prog_cc_c99" != "xno" && break
3702 done
3703 rm -f conftest.$ac_ext
3704 CC=$ac_save_CC ;;
3705 esac
3706 fi
3707
3708 if test "x$ac_cv_prog_cc_c99" = xno
3709 then :
3710 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3711 printf "%s\n" "unsupported" >&6; }
3712 else case e in #(
3713 e) if test "x$ac_cv_prog_cc_c99" = x
3714 then :
3715 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3716 printf "%s\n" "none needed" >&6; }
3717 else case e in #(
3718 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
3719 printf "%s\n" "$ac_cv_prog_cc_c99" >&6; }
3720 CC="$CC $ac_cv_prog_cc_c99" ;;
3721 esac
3722 fi
3723 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
3724 ac_prog_cc_stdc=c99 ;;
3725 esac
3726 fi
3727 fi
3728 if test x$ac_prog_cc_stdc = xno
3729 then :
3730 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5
3731 printf %s "checking for $CC option to enable C89 features... " >&6; }
3732 if test ${ac_cv_prog_cc_c89+y}
3733 then :
3734 printf %s "(cached) " >&6
3735 else case e in #(
3736 e) ac_cv_prog_cc_c89=no
3737 ac_save_CC=$CC
3738 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3739 /* end confdefs.h. */
3740 $ac_c_conftest_c89_program
3741 _ACEOF
3742 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3743 do
3744 CC="$ac_save_CC $ac_arg"
3745 if ac_fn_c_try_compile "$LINENO"
3746 then :
3747 ac_cv_prog_cc_c89=$ac_arg
3748 fi
3749 rm -f core conftest.err conftest.$ac_objext conftest.beam
3750 test "x$ac_cv_prog_cc_c89" != "xno" && break
3751 done
3752 rm -f conftest.$ac_ext
3753 CC=$ac_save_CC ;;
3754 esac
3755 fi
3756
3757 if test "x$ac_cv_prog_cc_c89" = xno
3758 then :
3759 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3760 printf "%s\n" "unsupported" >&6; }
3761 else case e in #(
3762 e) if test "x$ac_cv_prog_cc_c89" = x
3763 then :
3764 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3765 printf "%s\n" "none needed" >&6; }
3766 else case e in #(
3767 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3768 printf "%s\n" "$ac_cv_prog_cc_c89" >&6; }
3769 CC="$CC $ac_cv_prog_cc_c89" ;;
3770 esac
3771 fi
3772 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
3773 ac_prog_cc_stdc=c89 ;;
3774 esac
3775 fi
3776 fi
3777
3778 ac_ext=c
3779 ac_cpp='$CPP $CPPFLAGS'
3780 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3781 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3782 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3783
3784
3785 ac_ext=c
3786 ac_cpp='$CPP $CPPFLAGS'
3787 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3788 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3789 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3790 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
3791 printf %s "checking whether $CC understands -c and -o together... " >&6; }
3792 if test ${am_cv_prog_cc_c_o+y}
3793 then :
3794 printf %s "(cached) " >&6
3795 else case e in #(
3796 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3797 /* end confdefs.h. */
3798
3799 int
3800 main (void)
3801 {
3802
3803 ;
3804 return 0;
3805 }
3806 _ACEOF
3807 # Make sure it works both with $CC and with simple cc.
3808 # Following AC_PROG_CC_C_O, we do the test twice because some
3809 # compilers refuse to overwrite an existing .o file with -o,
3810 # though they will create one.
3811 am_cv_prog_cc_c_o=yes
3812 for am_i in 1 2; do
3813 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
3814 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
3815 ac_status=$?
3816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3817 (exit $ac_status); } \
3818 && test -f conftest2.$ac_objext; then
3819 : OK
3820 else
3821 am_cv_prog_cc_c_o=no
3822 break
3823 fi
3824 done
3825 rm -f core conftest*
3826 unset am_i ;;
3827 esac
3828 fi
3829 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
3830 printf "%s\n" "$am_cv_prog_cc_c_o" >&6; }
3831 if test "$am_cv_prog_cc_c_o" != yes; then
3832 # Losing compiler, so override with the script.
3833 # FIXME: It is wrong to rewrite CC.
3834 # But if we don't then we get into trouble of one sort or another.
3835 # A longer-term fix would be to have automake use am__CC in this case,
3836 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
3837 CC="$am_aux_dir/compile $CC"
3838 fi
3839 ac_ext=c
3840 ac_cpp='$CPP $CPPFLAGS'
3841 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3842 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3843 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3844
3845
3846
3847 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler is clang" >&5
3848 printf %s "checking whether the compiler is clang... " >&6; }
3849 if test ${gl_cv_compiler_clang+y}
3850 then :
3851 printf %s "(cached) " >&6
3852 else case e in #(
3853 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3854 /* end confdefs.h. */
3855
3856 #ifdef __clang__
3857 barfbarf
3858 #endif
3859
3860 int
3861 main (void)
3862 {
3863
3864 ;
3865 return 0;
3866 }
3867
3868 _ACEOF
3869 if ac_fn_c_try_compile "$LINENO"
3870 then :
3871 gl_cv_compiler_clang=no
3872 else case e in #(
3873 e) gl_cv_compiler_clang=yes ;;
3874 esac
3875 fi
3876 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
3877 ;;
3878 esac
3879 fi
3880 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_compiler_clang" >&5
3881 printf "%s\n" "$gl_cv_compiler_clang" >&6; }
3882
3883
3884 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for compiler option needed when checking for declarations" >&5
3885 printf %s "checking for compiler option needed when checking for declarations... " >&6; }
3886 if test ${gl_cv_compiler_check_decl_option+y}
3887 then :
3888 printf %s "(cached) " >&6
3889 else case e in #(
3890 e) if test $gl_cv_compiler_clang = yes; then
3891 saved_ac_compile="$ac_compile"
3892 ac_compile="$ac_compile -Werror=implicit-function-declaration"
3893 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3894 /* end confdefs.h. */
3895
3896 int
3897 main (void)
3898 {
3899
3900 ;
3901 return 0;
3902 }
3903 _ACEOF
3904 if ac_fn_c_try_compile "$LINENO"
3905 then :
3906 gl_cv_compiler_check_decl_option='-Werror=implicit-function-declaration'
3907 else case e in #(
3908 e) gl_cv_compiler_check_decl_option=none ;;
3909 esac
3910 fi
3911 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
3912 ac_compile="$saved_ac_compile"
3913 else
3914 gl_cv_compiler_check_decl_option=none
3915 fi
3916 ;;
3917 esac
3918 fi
3919 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_compiler_check_decl_option" >&5
3920 printf "%s\n" "$gl_cv_compiler_check_decl_option" >&6; }
3921 if test "x$gl_cv_compiler_check_decl_option" != xnone; then
3922 ac_compile_for_check_decl="$ac_compile $gl_cv_compiler_check_decl_option"
3923 else
3924 ac_compile_for_check_decl="$ac_compile"
3925 fi
3926
3927
3928 ac_ext=c
3929 ac_cpp='$CPP $CPPFLAGS'
3930 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3931 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3932 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3933 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3934 printf %s "checking how to run the C preprocessor... " >&6; }
3935 # On Suns, sometimes $CPP names a directory.
3936 if test -n "$CPP" && test -d "$CPP"; then
3937 CPP=
3938 fi
3939 if test -z "$CPP"; then
3940 if test ${ac_cv_prog_CPP+y}
3941 then :
3942 printf %s "(cached) " >&6
3943 else case e in #(
3944 e) # Double quotes because $CC needs to be expanded
3945 for CPP in "$CC -E" "$CC -E -traditional-cpp" cpp /lib/cpp
3946 do
3947 ac_preproc_ok=false
3948 for ac_c_preproc_warn_flag in '' yes
3949 do
3950 # Use a header file that comes with gcc, so configuring glibc
3951 # with a fresh cross-compiler works.
3952 # On the NeXT, cc -E runs the code through the compiler's parser,
3953 # not just through cpp. "Syntax error" is here to catch this case.
3954 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3955 /* end confdefs.h. */
3956 #include <limits.h>
3957 Syntax error
3958 _ACEOF
3959 if ac_fn_c_try_cpp "$LINENO"
3960 then :
3961
3962 else case e in #(
3963 e) # Broken: fails on valid input.
3964 continue ;;
3965 esac
3966 fi
3967 rm -f conftest.err conftest.i conftest.$ac_ext
3968
3969 # OK, works on sane cases. Now check whether nonexistent headers
3970 # can be detected and how.
3971 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3972 /* end confdefs.h. */
3973 #include <ac_nonexistent.h>
3974 _ACEOF
3975 if ac_fn_c_try_cpp "$LINENO"
3976 then :
3977 # Broken: success on invalid input.
3978 continue
3979 else case e in #(
3980 e) # Passes both tests.
3981 ac_preproc_ok=:
3982 break ;;
3983 esac
3984 fi
3985 rm -f conftest.err conftest.i conftest.$ac_ext
3986
3987 done
3988 # Because of 'break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3989 rm -f conftest.i conftest.err conftest.$ac_ext
3990 if $ac_preproc_ok
3991 then :
3992 break
3993 fi
3994
3995 done
3996 ac_cv_prog_CPP=$CPP
3997 ;;
3998 esac
3999 fi
4000 CPP=$ac_cv_prog_CPP
4001 else
4002 ac_cv_prog_CPP=$CPP
4003 fi
4004 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4005 printf "%s\n" "$CPP" >&6; }
4006 ac_preproc_ok=false
4007 for ac_c_preproc_warn_flag in '' yes
4008 do
4009 # Use a header file that comes with gcc, so configuring glibc
4010 # with a fresh cross-compiler works.
4011 # On the NeXT, cc -E runs the code through the compiler's parser,
4012 # not just through cpp. "Syntax error" is here to catch this case.
4013 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4014 /* end confdefs.h. */
4015 #include <limits.h>
4016 Syntax error
4017 _ACEOF
4018 if ac_fn_c_try_cpp "$LINENO"
4019 then :
4020
4021 else case e in #(
4022 e) # Broken: fails on valid input.
4023 continue ;;
4024 esac
4025 fi
4026 rm -f conftest.err conftest.i conftest.$ac_ext
4027
4028 # OK, works on sane cases. Now check whether nonexistent headers
4029 # can be detected and how.
4030 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4031 /* end confdefs.h. */
4032 #include <ac_nonexistent.h>
4033 _ACEOF
4034 if ac_fn_c_try_cpp "$LINENO"
4035 then :
4036 # Broken: success on invalid input.
4037 continue
4038 else case e in #(
4039 e) # Passes both tests.
4040 ac_preproc_ok=:
4041 break ;;
4042 esac
4043 fi
4044 rm -f conftest.err conftest.i conftest.$ac_ext
4045
4046 done
4047 # Because of 'break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4048 rm -f conftest.i conftest.err conftest.$ac_ext
4049 if $ac_preproc_ok
4050 then :
4051
4052 else case e in #(
4053 e) { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
4054 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
4055 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4056 See 'config.log' for more details" "$LINENO" 5; } ;;
4057 esac
4058 fi
4059
4060 ac_ext=c
4061 ac_cpp='$CPP $CPPFLAGS'
4062 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4063 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4064 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4065
4066
4067 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to make hard links" >&5
4068 printf %s "checking how to make hard links... " >&6; }
4069 if test ${cl_cv_prog_LN+y}
4070 then :
4071 printf %s "(cached) " >&6
4072 else case e in #(
4073 e) rm -f conftestdata conftestfile
4074 echo data > conftestfile
4075 if ln conftestfile conftestdata 2>/dev/null; then
4076 cl_cv_prog_LN=ln
4077 else
4078 cl_cv_prog_LN="cp -p"
4079 fi
4080 rm -f conftestdata conftestfile
4081 ;;
4082 esac
4083 fi
4084 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cl_cv_prog_LN" >&5
4085 printf "%s\n" "$cl_cv_prog_LN" >&6; }
4086 LN="$cl_cv_prog_LN"
4087
4088
4089
4090
4091 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4092 printf %s "checking whether ln -s works... " >&6; }
4093 if test ${cl_cv_prog_LN_S_works+y}
4094 then :
4095 printf %s "(cached) " >&6
4096 else case e in #(
4097 e) rm -f conftestdata
4098 if ln -s X conftestdata 2>/dev/null; then
4099 cl_cv_prog_LN_S_works=yes
4100 else
4101 cl_cv_prog_LN_S_works=no
4102 fi
4103 rm -f conftestdata
4104 ;;
4105 esac
4106 fi
4107 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cl_cv_prog_LN_S_works" >&5
4108 printf "%s\n" "$cl_cv_prog_LN_S_works" >&6; }
4109 if test $cl_cv_prog_LN_S_works = yes; then
4110 LN_S="ln -s"
4111 else
4112 LN_S="$cl_cv_prog_LN"
4113 fi
4114
4115
4116
4117 ac_header= ac_cache=
4118 for ac_item in $ac_header_c_list
4119 do
4120 if test $ac_cache; then
4121 ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default"
4122 if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then
4123 printf "%s\n" "#define $ac_item 1" >> confdefs.h
4124 fi
4125 ac_header= ac_cache=
4126 elif test $ac_header; then
4127 ac_cache=$ac_item
4128 else
4129 ac_header=$ac_item
4130 fi
4131 done
4132
4133
4134
4135
4136
4137
4138
4139
4140 if test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes
4141 then :
4142
4143 printf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h
4144
4145 fi
4146
4147
4148
4149
4150
4151
4152 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4153 printf %s "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4154 if test ${ac_cv_safe_to_define___extensions__+y}
4155 then :
4156 printf %s "(cached) " >&6
4157 else case e in #(
4158 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4159 /* end confdefs.h. */
4160
4161 # define __EXTENSIONS__ 1
4162 $ac_includes_default
4163 int
4164 main (void)
4165 {
4166
4167 ;
4168 return 0;
4169 }
4170 _ACEOF
4171 if ac_fn_c_try_compile "$LINENO"
4172 then :
4173 ac_cv_safe_to_define___extensions__=yes
4174 else case e in #(
4175 e) ac_cv_safe_to_define___extensions__=no ;;
4176 esac
4177 fi
4178 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
4179 esac
4180 fi
4181 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4182 printf "%s\n" "$ac_cv_safe_to_define___extensions__" >&6; }
4183
4184 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether _XOPEN_SOURCE should be defined" >&5
4185 printf %s "checking whether _XOPEN_SOURCE should be defined... " >&6; }
4186 if test ${ac_cv_should_define__xopen_source+y}
4187 then :
4188 printf %s "(cached) " >&6
4189 else case e in #(
4190 e) ac_cv_should_define__xopen_source=no
4191 if test $ac_cv_header_wchar_h = yes
4192 then :
4193 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4194 /* end confdefs.h. */
4195
4196 #include <wchar.h>
4197 mbstate_t x;
4198 int
4199 main (void)
4200 {
4201
4202 ;
4203 return 0;
4204 }
4205 _ACEOF
4206 if ac_fn_c_try_compile "$LINENO"
4207 then :
4208
4209 else case e in #(
4210 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4211 /* end confdefs.h. */
4212
4213 #define _XOPEN_SOURCE 500
4214 #include <wchar.h>
4215 mbstate_t x;
4216 int
4217 main (void)
4218 {
4219
4220 ;
4221 return 0;
4222 }
4223 _ACEOF
4224 if ac_fn_c_try_compile "$LINENO"
4225 then :
4226 ac_cv_should_define__xopen_source=yes
4227 fi
4228 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
4229 esac
4230 fi
4231 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4232 fi ;;
4233 esac
4234 fi
4235 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_should_define__xopen_source" >&5
4236 printf "%s\n" "$ac_cv_should_define__xopen_source" >&6; }
4237
4238 printf "%s\n" "#define _ALL_SOURCE 1" >>confdefs.h
4239
4240 printf "%s\n" "#define _DARWIN_C_SOURCE 1" >>confdefs.h
4241
4242 printf "%s\n" "#define _GNU_SOURCE 1" >>confdefs.h
4243
4244 printf "%s\n" "#define _HPUX_ALT_XOPEN_SOCKET_API 1" >>confdefs.h
4245
4246 printf "%s\n" "#define _NETBSD_SOURCE 1" >>confdefs.h
4247
4248 printf "%s\n" "#define _OPENBSD_SOURCE 1" >>confdefs.h
4249
4250 printf "%s\n" "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
4251
4252 printf "%s\n" "#define __STDC_WANT_IEC_60559_ATTRIBS_EXT__ 1" >>confdefs.h
4253
4254 printf "%s\n" "#define __STDC_WANT_IEC_60559_BFP_EXT__ 1" >>confdefs.h
4255
4256 printf "%s\n" "#define __STDC_WANT_IEC_60559_DFP_EXT__ 1" >>confdefs.h
4257
4258 printf "%s\n" "#define __STDC_WANT_IEC_60559_EXT__ 1" >>confdefs.h
4259
4260 printf "%s\n" "#define __STDC_WANT_IEC_60559_FUNCS_EXT__ 1" >>confdefs.h
4261
4262 printf "%s\n" "#define __STDC_WANT_IEC_60559_TYPES_EXT__ 1" >>confdefs.h
4263
4264 printf "%s\n" "#define __STDC_WANT_LIB_EXT2__ 1" >>confdefs.h
4265
4266 printf "%s\n" "#define __STDC_WANT_MATH_SPEC_FUNCS__ 1" >>confdefs.h
4267
4268 printf "%s\n" "#define _TANDEM_SOURCE 1" >>confdefs.h
4269
4270 if test $ac_cv_header_minix_config_h = yes
4271 then :
4272 MINIX=yes
4273 printf "%s\n" "#define _MINIX 1" >>confdefs.h
4274
4275 printf "%s\n" "#define _POSIX_SOURCE 1" >>confdefs.h
4276
4277 printf "%s\n" "#define _POSIX_1_SOURCE 2" >>confdefs.h
4278
4279 else case e in #(
4280 e) MINIX= ;;
4281 esac
4282 fi
4283 if test $ac_cv_safe_to_define___extensions__ = yes
4284 then :
4285 printf "%s\n" "#define __EXTENSIONS__ 1" >>confdefs.h
4286
4287 fi
4288 if test $ac_cv_should_define__xopen_source = yes
4289 then :
4290 printf "%s\n" "#define _XOPEN_SOURCE 500" >>confdefs.h
4291
4292 fi
4293
4294
4295
4296
4297
4298
4299
4300
4301
4302
4303
4304 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${term_bold}** I18N (locale)${term_norm}" >&5
4305 printf "%s\n" "$as_me: ${term_bold}** I18N (locale)${term_norm}" >&6;}
4306
4307 ac_fn_c_check_func "$LINENO" "localeconv" "ac_cv_func_localeconv"
4308 if test "x$ac_cv_func_localeconv" = xyes
4309 then :
4310 printf "%s\n" "#define HAVE_LOCALECONV 1" >>confdefs.h
4311
4312 fi
4313
4314 ac_fn_c_check_member "$LINENO" "struct lconv" "int_p_cs_precedes" "ac_cv_member_struct_lconv_int_p_cs_precedes" "#include <locale.h>
4315 "
4316 if test "x$ac_cv_member_struct_lconv_int_p_cs_precedes" = xyes
4317 then :
4318
4319 printf "%s\n" "#define HAVE_STRUCT_LCONV_INT_P_CS_PRECEDES 1" >>confdefs.h
4320
4321
4322 fi
4323 ac_fn_c_check_member "$LINENO" "struct lconv" "int_n_cs_precedes" "ac_cv_member_struct_lconv_int_n_cs_precedes" "#include <locale.h>
4324 "
4325 if test "x$ac_cv_member_struct_lconv_int_n_cs_precedes" = xyes
4326 then :
4327
4328 printf "%s\n" "#define HAVE_STRUCT_LCONV_INT_N_CS_PRECEDES 1" >>confdefs.h
4329
4330
4331 fi
4332 ac_fn_c_check_member "$LINENO" "struct lconv" "int_p_sep_by_space" "ac_cv_member_struct_lconv_int_p_sep_by_space" "#include <locale.h>
4333 "
4334 if test "x$ac_cv_member_struct_lconv_int_p_sep_by_space" = xyes
4335 then :
4336
4337 printf "%s\n" "#define HAVE_STRUCT_LCONV_INT_P_SEP_BY_SPACE 1" >>confdefs.h
4338
4339
4340 fi
4341 ac_fn_c_check_member "$LINENO" "struct lconv" "int_n_sep_by_space" "ac_cv_member_struct_lconv_int_n_sep_by_space" "#include <locale.h>
4342 "
4343 if test "x$ac_cv_member_struct_lconv_int_n_sep_by_space" = xyes
4344 then :
4345
4346 printf "%s\n" "#define HAVE_STRUCT_LCONV_INT_N_SEP_BY_SPACE 1" >>confdefs.h
4347
4348
4349 fi
4350 ac_fn_c_check_member "$LINENO" "struct lconv" "int_p_sign_posn" "ac_cv_member_struct_lconv_int_p_sign_posn" "#include <locale.h>
4351 "
4352 if test "x$ac_cv_member_struct_lconv_int_p_sign_posn" = xyes
4353 then :
4354
4355 printf "%s\n" "#define HAVE_STRUCT_LCONV_INT_P_SIGN_POSN 1" >>confdefs.h
4356
4357
4358 fi
4359 ac_fn_c_check_member "$LINENO" "struct lconv" "int_n_sign_posn" "ac_cv_member_struct_lconv_int_n_sign_posn" "#include <locale.h>
4360 "
4361 if test "x$ac_cv_member_struct_lconv_int_n_sign_posn" = xyes
4362 then :
4363
4364 printf "%s\n" "#define HAVE_STRUCT_LCONV_INT_N_SIGN_POSN 1" >>confdefs.h
4365
4366
4367 fi
4368
4369
4370
4371 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${term_bold}** I18N (Output)${term_norm}" >&5
4372 printf "%s\n" "$as_me: ${term_bold}** I18N (Output)${term_norm}" >&6;}
4373
4374 ac_config_files="$ac_config_files Makefile link.sh"
4375
4376 cat >confcache <<\_ACEOF
4377 # This file is a shell script that caches the results of configure
4378 # tests run on this system so they can be shared between configure
4379 # scripts and configure runs, see configure's option --config-cache.
4380 # It is not useful on other systems. If it contains results you don't
4381 # want to keep, you may remove or edit it.
4382 #
4383 # config.status only pays attention to the cache file if you give it
4384 # the --recheck option to rerun configure.
4385 #
4386 # 'ac_cv_env_foo' variables (set or unset) will be overridden when
4387 # loading this file, other *unset* 'ac_cv_foo' will be assigned the
4388 # following values.
4389
4390 _ACEOF
4391
4392 # The following way of writing the cache mishandles newlines in values,
4393 # but we know of no workaround that is simple, portable, and efficient.
4394 # So, we kill variables containing newlines.
4395 # Ultrix sh set writes to stderr and can't be redirected directly,
4396 # and sets the high bit in the cache file unless we assign to the vars.
4397 (
4398 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
4399 eval ac_val=\$$ac_var
4400 case $ac_val in #(
4401 *${as_nl}*)
4402 case $ac_var in #(
4403 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
4404 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
4405 esac
4406 case $ac_var in #(
4407 _ | IFS | as_nl) ;; #(
4408 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
4409 *) { eval $ac_var=; unset $ac_var;} ;;
4410 esac ;;
4411 esac
4412 done
4413
4414 (set) 2>&1 |
4415 case $as_nl`(ac_space=' '; set) 2>&1` in #(
4416 *${as_nl}ac_space=\ *)
4417 # 'set' does not quote correctly, so add quotes: double-quote
4418 # substitution turns \\\\ into \\, and sed turns \\ into \.
4419 sed -n \
4420 "s/'/'\\\\''/g;
4421 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
4422 ;; #(
4423 *)
4424 # 'set' quotes correctly as required by POSIX, so do not add quotes.
4425 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
4426 ;;
4427 esac |
4428 sort
4429 ) |
4430 sed '
4431 /^ac_cv_env_/b end
4432 t clear
4433 :clear
4434 s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/
4435 t end
4436 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
4437 :end' >>confcache
4438 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
4439 if test -w "$cache_file"; then
4440 if test "x$cache_file" != "x/dev/null"; then
4441 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
4442 printf "%s\n" "$as_me: updating cache $cache_file" >&6;}
4443 if test ! -f "$cache_file" || test -h "$cache_file"; then
4444 cat confcache >"$cache_file"
4445 else
4446 case $cache_file in #(
4447 */* | ?:*)
4448 mv -f confcache "$cache_file"$$ &&
4449 mv -f "$cache_file"$$ "$cache_file" ;; #(
4450 *)
4451 mv -f confcache "$cache_file" ;;
4452 esac
4453 fi
4454 fi
4455 else
4456 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
4457 printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;}
4458 fi
4459 fi
4460 rm -f confcache
4461
4462 test "x$prefix" = xNONE && prefix=$ac_default_prefix
4463 # Let make expand exec_prefix.
4464 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
4465
4466 DEFS=-DHAVE_CONFIG_H
4467
4468 ac_libobjs=
4469 ac_ltlibobjs=
4470 U=
4471 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
4472 # 1. Remove the extension, and $U if already installed.
4473 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
4474 ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"`
4475 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
4476 # will be set to the directory where LIBOBJS objects are built.
4477 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
4478 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
4479 done
4480 LIBOBJS=$ac_libobjs
4481
4482 LTLIBOBJS=$ac_ltlibobjs
4483
4484
4485
4486 : "${CONFIG_STATUS=./config.status}"
4487 ac_write_fail=0
4488 ac_clean_files_save=$ac_clean_files
4489 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
4490 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
4491 printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;}
4492 as_write_fail=0
4493 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
4494 #! $SHELL
4495 # Generated by $as_me.
4496 # Run this file to recreate the current configuration.
4497 # Compiler output produced by configure, useful for debugging
4498 # configure, is in config.log if it exists.
4499
4500 debug=false
4501 ac_cs_recheck=false
4502 ac_cs_silent=false
4503
4504 SHELL=\${CONFIG_SHELL-$SHELL}
4505 export SHELL
4506 _ASEOF
4507 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
4508 ## -------------------- ##
4509 ## M4sh Initialization. ##
4510 ## -------------------- ##
4511
4512 # Be more Bourne compatible
4513 DUALCASE=1; export DUALCASE # for MKS sh
4514 if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
4515 then :
4516 emulate sh
4517 NULLCMD=:
4518 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
4519 # is contrary to our usage. Disable this feature.
4520 alias -g '${1+"$@"}'='"$@"'
4521 setopt NO_GLOB_SUBST
4522 else case e in #(
4523 e) case `(set -o) 2>/dev/null` in #(
4524 *posix*) :
4525 set -o posix ;; #(
4526 *) :
4527 ;;
4528 esac ;;
4529 esac
4530 fi
4531
4532
4533
4534 # Reset variables that may have inherited troublesome values from
4535 # the environment.
4536
4537 # IFS needs to be set, to space, tab, and newline, in precisely that order.
4538 # (If _AS_PATH_WALK were called with IFS unset, it would have the
4539 # side effect of setting IFS to empty, thus disabling word splitting.)
4540 # Quoting is to prevent editors from complaining about space-tab.
4541 as_nl='
4542 '
4543 export as_nl
4544 IFS=" "" $as_nl"
4545
4546 PS1='$ '
4547 PS2='> '
4548 PS4='+ '
4549
4550 # Ensure predictable behavior from utilities with locale-dependent output.
4551 LC_ALL=C
4552 export LC_ALL
4553 LANGUAGE=C
4554 export LANGUAGE
4555
4556 # We cannot yet rely on "unset" to work, but we need these variables
4557 # to be unset--not just set to an empty or harmless value--now, to
4558 # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct
4559 # also avoids known problems related to "unset" and subshell syntax
4560 # in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
4561 for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
4562 do eval test \${$as_var+y} \
4563 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
4564 done
4565
4566 # Ensure that fds 0, 1, and 2 are open.
4567 if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
4568 if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
4569 if (exec 3>&2) ; then :; else exec 2>/dev/null; fi
4570
4571 # The user is always right.
4572 if ${PATH_SEPARATOR+false} :; then
4573 PATH_SEPARATOR=:
4574 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
4575 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
4576 PATH_SEPARATOR=';'
4577 }
4578 fi
4579
4580
4581 # Find who we are. Look in the path if we contain no directory separator.
4582 as_myself=
4583 case $0 in #((
4584 *[\\/]* ) as_myself=$0 ;;
4585 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4586 for as_dir in $PATH
4587 do
4588 IFS=$as_save_IFS
4589 case $as_dir in #(((
4590 '') as_dir=./ ;;
4591 */) ;;
4592 *) as_dir=$as_dir/ ;;
4593 esac
4594 test -r "$as_dir$0" && as_myself=$as_dir$0 && break
4595 done
4596 IFS=$as_save_IFS
4597
4598 ;;
4599 esac
4600 # We did not find ourselves, most probably we were run as 'sh COMMAND'
4601 # in which case we are not to be found in the path.
4602 if test "x$as_myself" = x; then
4603 as_myself=$0
4604 fi
4605 if test ! -f "$as_myself"; then
4606 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
4607 exit 1
4608 fi
4609
4610
4611
4612 # as_fn_error STATUS ERROR [LINENO LOG_FD]
4613 # ----------------------------------------
4614 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
4615 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
4616 # script with STATUS, using 1 if that was 0.
4617 as_fn_error ()
4618 {
4619 as_status=$1; test $as_status -eq 0 && as_status=1
4620 if test "$4"; then
4621 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
4622 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
4623 fi
4624 printf "%s\n" "$as_me: error: $2" >&2
4625 as_fn_exit $as_status
4626 } # as_fn_error
4627
4628
4629 # as_fn_set_status STATUS
4630 # -----------------------
4631 # Set $? to STATUS, without forking.
4632 as_fn_set_status ()
4633 {
4634 return $1
4635 } # as_fn_set_status
4636
4637 # as_fn_exit STATUS
4638 # -----------------
4639 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
4640 as_fn_exit ()
4641 {
4642 set +e
4643 as_fn_set_status $1
4644 exit $1
4645 } # as_fn_exit
4646
4647 # as_fn_unset VAR
4648 # ---------------
4649 # Portably unset VAR.
4650 as_fn_unset ()
4651 {
4652 { eval $1=; unset $1;}
4653 }
4654 as_unset=as_fn_unset
4655
4656 # as_fn_append VAR VALUE
4657 # ----------------------
4658 # Append the text in VALUE to the end of the definition contained in VAR. Take
4659 # advantage of any shell optimizations that allow amortized linear growth over
4660 # repeated appends, instead of the typical quadratic growth present in naive
4661 # implementations.
4662 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
4663 then :
4664 eval 'as_fn_append ()
4665 {
4666 eval $1+=\$2
4667 }'
4668 else case e in #(
4669 e) as_fn_append ()
4670 {
4671 eval $1=\$$1\$2
4672 } ;;
4673 esac
4674 fi # as_fn_append
4675
4676 # as_fn_arith ARG...
4677 # ------------------
4678 # Perform arithmetic evaluation on the ARGs, and store the result in the
4679 # global $as_val. Take advantage of shells that can avoid forks. The arguments
4680 # must be portable across $(()) and expr.
4681 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
4682 then :
4683 eval 'as_fn_arith ()
4684 {
4685 as_val=$(( $* ))
4686 }'
4687 else case e in #(
4688 e) as_fn_arith ()
4689 {
4690 as_val=`expr "$@" || test $? -eq 1`
4691 } ;;
4692 esac
4693 fi # as_fn_arith
4694
4695
4696 if expr a : '\(a\)' >/dev/null 2>&1 &&
4697 test "X`expr 00001 : '.*\(...\)'`" = X001; then
4698 as_expr=expr
4699 else
4700 as_expr=false
4701 fi
4702
4703 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
4704 as_basename=basename
4705 else
4706 as_basename=false
4707 fi
4708
4709 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
4710 as_dirname=dirname
4711 else
4712 as_dirname=false
4713 fi
4714
4715 as_me=`$as_basename -- "$0" ||
4716 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
4717 X"$0" : 'X\(//\)$' \| \
4718 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
4719 printf "%s\n" X/"$0" |
4720 sed '/^.*\/\([^/][^/]*\)\/*$/{
4721 s//\1/
4722 q
4723 }
4724 /^X\/\(\/\/\)$/{
4725 s//\1/
4726 q
4727 }
4728 /^X\/\(\/\).*/{
4729 s//\1/
4730 q
4731 }
4732 s/.*/./; q'`
4733
4734 # Avoid depending upon Character Ranges.
4735 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
4736 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
4737 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
4738 as_cr_digits='0123456789'
4739 as_cr_alnum=$as_cr_Letters$as_cr_digits
4740
4741
4742 # Determine whether it's possible to make 'echo' print without a newline.
4743 # These variables are no longer used directly by Autoconf, but are AC_SUBSTed
4744 # for compatibility with existing Makefiles.
4745 ECHO_C= ECHO_N= ECHO_T=
4746 case `echo -n x` in #(((((
4747 -n*)
4748 case `echo 'xy\c'` in
4749 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
4750 xy) ECHO_C='\c';;
4751 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
4752 ECHO_T=' ';;
4753 esac;;
4754 *)
4755 ECHO_N='-n';;
4756 esac
4757
4758 # For backward compatibility with old third-party macros, we provide
4759 # the shell variables $as_echo and $as_echo_n. New code should use
4760 # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
4761 as_echo='printf %s\n'
4762 as_echo_n='printf %s'
4763
4764 rm -f conf$$ conf$$.exe conf$$.file
4765 if test -d conf$$.dir; then
4766 rm -f conf$$.dir/conf$$.file
4767 else
4768 rm -f conf$$.dir
4769 mkdir conf$$.dir 2>/dev/null
4770 fi
4771 if (echo >conf$$.file) 2>/dev/null; then
4772 if ln -s conf$$.file conf$$ 2>/dev/null; then
4773 as_ln_s='ln -s'
4774 # ... but there are two gotchas:
4775 # 1) On MSYS, both 'ln -s file dir' and 'ln file dir' fail.
4776 # 2) DJGPP < 2.04 has no symlinks; 'ln -s' creates a wrapper executable.
4777 # In both cases, we have to default to 'cp -pR'.
4778 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
4779 as_ln_s='cp -pR'
4780 elif ln conf$$.file conf$$ 2>/dev/null; then
4781 as_ln_s=ln
4782 else
4783 as_ln_s='cp -pR'
4784 fi
4785 else
4786 as_ln_s='cp -pR'
4787 fi
4788 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
4789 rmdir conf$$.dir 2>/dev/null
4790
4791
4792 # as_fn_mkdir_p
4793 # -------------
4794 # Create "$as_dir" as a directory, including parents if necessary.
4795 as_fn_mkdir_p ()
4796 {
4797
4798 case $as_dir in #(
4799 -*) as_dir=./$as_dir;;
4800 esac
4801 test -d "$as_dir" || eval $as_mkdir_p || {
4802 as_dirs=
4803 while :; do
4804 case $as_dir in #(
4805 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
4806 *) as_qdir=$as_dir;;
4807 esac
4808 as_dirs="'$as_qdir' $as_dirs"
4809 as_dir=`$as_dirname -- "$as_dir" ||
4810 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
4811 X"$as_dir" : 'X\(//\)[^/]' \| \
4812 X"$as_dir" : 'X\(//\)$' \| \
4813 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
4814 printf "%s\n" X"$as_dir" |
4815 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
4816 s//\1/
4817 q
4818 }
4819 /^X\(\/\/\)[^/].*/{
4820 s//\1/
4821 q
4822 }
4823 /^X\(\/\/\)$/{
4824 s//\1/
4825 q
4826 }
4827 /^X\(\/\).*/{
4828 s//\1/
4829 q
4830 }
4831 s/.*/./; q'`
4832 test -d "$as_dir" && break
4833 done
4834 test -z "$as_dirs" || eval "mkdir $as_dirs"
4835 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
4836
4837
4838 } # as_fn_mkdir_p
4839 if mkdir -p . 2>/dev/null; then
4840 as_mkdir_p='mkdir -p "$as_dir"'
4841 else
4842 test -d ./-p && rmdir ./-p
4843 as_mkdir_p=false
4844 fi
4845
4846
4847 # as_fn_executable_p FILE
4848 # -----------------------
4849 # Test if FILE is an executable regular file.
4850 as_fn_executable_p ()
4851 {
4852 test -f "$1" && test -x "$1"
4853 } # as_fn_executable_p
4854 as_test_x='test -x'
4855 as_executable_p=as_fn_executable_p
4856
4857 # Sed expression to map a string onto a valid CPP name.
4858 as_sed_cpp="y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
4859 as_tr_cpp="eval sed '$as_sed_cpp'" # deprecated
4860
4861 # Sed expression to map a string onto a valid variable name.
4862 as_sed_sh="y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
4863 as_tr_sh="eval sed '$as_sed_sh'" # deprecated
4864
4865
4866 exec 6>&1
4867 ## ----------------------------------- ##
4868 ## Main body of $CONFIG_STATUS script. ##
4869 ## ----------------------------------- ##
4870 _ASEOF
4871 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
4872
4873 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
4874 # Save the log message, to keep $0 and so on meaningful, and to
4875 # report actual input values of CONFIG_FILES etc. instead of their
4876 # values after options handling.
4877 ac_log="
4878 This file was extended by i18n $as_me 1.0, which was
4879 generated by GNU Autoconf 2.72. Invocation command line was
4880
4881 CONFIG_FILES = $CONFIG_FILES
4882 CONFIG_HEADERS = $CONFIG_HEADERS
4883 CONFIG_LINKS = $CONFIG_LINKS
4884 CONFIG_COMMANDS = $CONFIG_COMMANDS
4885 $ $0 $@
4886
4887 on `(hostname || uname -n) 2>/dev/null | sed 1q`
4888 "
4889
4890 _ACEOF
4891
4892 case $ac_config_files in *"
4893 "*) set x $ac_config_files; shift; ac_config_files=$*;;
4894 esac
4895
4896 case $ac_config_headers in *"
4897 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
4898 esac
4899
4900
4901 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
4902 # Files that config.status was made for.
4903 config_files="$ac_config_files"
4904 config_headers="$ac_config_headers"
4905
4906 _ACEOF
4907
4908 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
4909 ac_cs_usage="\
4910 '$as_me' instantiates files and other configuration actions
4911 from templates according to the current configuration. Unless the files
4912 and actions are specified as TAGs, all are instantiated by default.
4913
4914 Usage: $0 [OPTION]... [TAG]...
4915
4916 -h, --help print this help, then exit
4917 -V, --version print version number and configuration settings, then exit
4918 --config print configuration, then exit
4919 -q, --quiet, --silent
4920 do not print progress messages
4921 -d, --debug don't remove temporary files
4922 --recheck update $as_me by reconfiguring in the same conditions
4923 --file=FILE[:TEMPLATE]
4924 instantiate the configuration file FILE
4925 --header=FILE[:TEMPLATE]
4926 instantiate the configuration header FILE
4927
4928 Configuration files:
4929 $config_files
4930
4931 Configuration headers:
4932 $config_headers
4933
4934 Report bugs to <clisp-list>."
4935
4936 _ACEOF
4937 ac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"`
4938 ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"`
4939 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
4940 ac_cs_config='$ac_cs_config_escaped'
4941 ac_cs_version="\\
4942 i18n config.status 1.0
4943 configured by $0, generated by GNU Autoconf 2.72,
4944 with options \\"\$ac_cs_config\\"
4945
4946 Copyright (C) 2023 Free Software Foundation, Inc.
4947 This config.status script is free software; the Free Software Foundation
4948 gives unlimited permission to copy, distribute and modify it."
4949
4950 ac_pwd='$ac_pwd'
4951 srcdir='$srcdir'
4952 test -n "\$AWK" || AWK=awk
4953 _ACEOF
4954
4955 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
4956 # The default lists apply if the user does not specify any file.
4957 ac_need_defaults=:
4958 while test $# != 0
4959 do
4960 case $1 in
4961 --*=?*)
4962 ac_option=`expr "X$1" : 'X\([^=]*\)='`
4963 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
4964 ac_shift=:
4965 ;;
4966 --*=)
4967 ac_option=`expr "X$1" : 'X\([^=]*\)='`
4968 ac_optarg=
4969 ac_shift=:
4970 ;;
4971 *)
4972 ac_option=$1
4973 ac_optarg=$2
4974 ac_shift=shift
4975 ;;
4976 esac
4977
4978 case $ac_option in
4979 # Handling of the options.
4980 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
4981 ac_cs_recheck=: ;;
4982 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
4983 printf "%s\n" "$ac_cs_version"; exit ;;
4984 --config | --confi | --conf | --con | --co | --c )
4985 printf "%s\n" "$ac_cs_config"; exit ;;
4986 --debug | --debu | --deb | --de | --d | -d )
4987 debug=: ;;
4988 --file | --fil | --fi | --f )
4989 $ac_shift
4990 case $ac_optarg in
4991 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
4992 '') as_fn_error $? "missing file argument" ;;
4993 esac
4994 as_fn_append CONFIG_FILES " '$ac_optarg'"
4995 ac_need_defaults=false;;
4996 --header | --heade | --head | --hea )
4997 $ac_shift
4998 case $ac_optarg in
4999 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
5000 esac
5001 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
5002 ac_need_defaults=false;;
5003 --he | --h)
5004 # Conflict between --help and --header
5005 as_fn_error $? "ambiguous option: '$1'
5006 Try '$0 --help' for more information.";;
5007 --help | --hel | -h )
5008 printf "%s\n" "$ac_cs_usage"; exit ;;
5009 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
5010 | -silent | --silent | --silen | --sile | --sil | --si | --s)
5011 ac_cs_silent=: ;;
5012
5013 # This is an error.
5014 -*) as_fn_error $? "unrecognized option: '$1'
5015 Try '$0 --help' for more information." ;;
5016
5017 *) as_fn_append ac_config_targets " $1"
5018 ac_need_defaults=false ;;
5019
5020 esac
5021 shift
5022 done
5023
5024 ac_configure_extra_args=
5025
5026 if $ac_cs_silent; then
5027 exec 6>/dev/null
5028 ac_configure_extra_args="$ac_configure_extra_args --silent"
5029 fi
5030
5031 _ACEOF
5032 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5033 if \$ac_cs_recheck; then
5034 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
5035 shift
5036 \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6
5037 CONFIG_SHELL='$SHELL'
5038 export CONFIG_SHELL
5039 exec "\$@"
5040 fi
5041
5042 _ACEOF
5043 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5044 exec 5>>config.log
5045 {
5046 echo
5047 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
5048 ## Running $as_me. ##
5049 _ASBOX
5050 printf "%s\n" "$ac_log"
5051 } >&5
5052
5053 _ACEOF
5054 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5055 _ACEOF
5056
5057 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5058
5059 # Handling of arguments.
5060 for ac_config_target in $ac_config_targets
5061 do
5062 case $ac_config_target in
5063 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
5064 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
5065 "link.sh") CONFIG_FILES="$CONFIG_FILES link.sh" ;;
5066
5067 *) as_fn_error $? "invalid argument: '$ac_config_target'" "$LINENO" 5;;
5068 esac
5069 done
5070
5071
5072 # If the user did not use the arguments to specify the items to instantiate,
5073 # then the envvar interface is used. Set only those that are not.
5074 # We use the long form for the default assignment because of an extremely
5075 # bizarre bug on SunOS 4.1.3.
5076 if $ac_need_defaults; then
5077 test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files
5078 test ${CONFIG_HEADERS+y} || CONFIG_HEADERS=$config_headers
5079 fi
5080
5081 # Have a temporary directory for convenience. Make it in the build tree
5082 # simply because there is no reason against having it here, and in addition,
5083 # creating and moving files from /tmp can sometimes cause problems.
5084 # Hook for its removal unless debugging.
5085 # Note that there is a small window in which the directory will not be cleaned:
5086 # after its creation but before its name has been assigned to '$tmp'.
5087 $debug ||
5088 {
5089 tmp= ac_tmp=
5090 trap 'exit_status=$?
5091 : "${ac_tmp:=$tmp}"
5092 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
5093 ' 0
5094 trap 'as_fn_exit 1' 1 2 13 15
5095 }
5096 # Create a (secure) tmp directory for tmp files.
5097
5098 {
5099 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
5100 test -d "$tmp"
5101 } ||
5102 {
5103 tmp=./conf$$-$RANDOM
5104 (umask 077 && mkdir "$tmp")
5105 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
5106 ac_tmp=$tmp
5107
5108 # Set up the scripts for CONFIG_FILES section.
5109 # No need to generate them if there are no CONFIG_FILES.
5110 # This happens for instance with './config.status config.h'.
5111 if test -n "$CONFIG_FILES"; then
5112
5113
5114 ac_cr=`echo X | tr X '\015'`
5115 # On cygwin, bash can eat \r inside `` if the user requested igncr.
5116 # But we know of no other shell where ac_cr would be empty at this
5117 # point, so we can use a bashism as a fallback.
5118 if test "x$ac_cr" = x; then
5119 eval ac_cr=\$\'\\r\'
5120 fi
5121 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
5122 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
5123 ac_cs_awk_cr='\\r'
5124 else
5125 ac_cs_awk_cr=$ac_cr
5126 fi
5127
5128 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
5129 _ACEOF
5130
5131
5132 {
5133 echo "cat >conf$$subs.awk <<_ACEOF" &&
5134 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
5135 echo "_ACEOF"
5136 } >conf$$subs.sh ||
5137 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
5138 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
5139 ac_delim='%!_!# '
5140 for ac_last_try in false false false false false :; do
5141 . ./conf$$subs.sh ||
5142 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
5143
5144 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
5145 if test $ac_delim_n = $ac_delim_num; then
5146 break
5147 elif $ac_last_try; then
5148 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
5149 else
5150 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
5151 fi
5152 done
5153 rm -f conf$$subs.sh
5154
5155 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5156 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
5157 _ACEOF
5158 sed -n '
5159 h
5160 s/^/S["/; s/!.*/"]=/
5161 p
5162 g
5163 s/^[^!]*!//
5164 :repl
5165 t repl
5166 s/'"$ac_delim"'$//
5167 t delim
5168 :nl
5169 h
5170 s/\(.\{148\}\)..*/\1/
5171 t more1
5172 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
5173 p
5174 n
5175 b repl
5176 :more1
5177 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
5178 p
5179 g
5180 s/.\{148\}//
5181 t nl
5182 :delim
5183 h
5184 s/\(.\{148\}\)..*/\1/
5185 t more2
5186 s/["\\]/\\&/g; s/^/"/; s/$/"/
5187 p
5188 b
5189 :more2
5190 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
5191 p
5192 g
5193 s/.\{148\}//
5194 t delim
5195 ' <conf$$subs.awk | sed '
5196 /^[^""]/{
5197 N
5198 s/\n//
5199 }
5200 ' >>$CONFIG_STATUS || ac_write_fail=1
5201 rm -f conf$$subs.awk
5202 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5203 _ACAWK
5204 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
5205 for (key in S) S_is_set[key] = 1
5206 FS = ""
5207
5208 }
5209 {
5210 line = $ 0
5211 nfields = split(line, field, "@")
5212 substed = 0
5213 len = length(field[1])
5214 for (i = 2; i < nfields; i++) {
5215 key = field[i]
5216 keylen = length(key)
5217 if (S_is_set[key]) {
5218 value = S[key]
5219 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
5220 len += length(value) + length(field[++i])
5221 substed = 1
5222 } else
5223 len += 1 + keylen
5224 }
5225
5226 print line
5227 }
5228
5229 _ACAWK
5230 _ACEOF
5231 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5232 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
5233 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
5234 else
5235 cat
5236 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
5237 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
5238 _ACEOF
5239
5240 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
5241 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
5242 # trailing colons and then remove the whole line if VPATH becomes empty
5243 # (actually we leave an empty line to preserve line numbers).
5244 if test "x$srcdir" = x.; then
5245 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
5246 h
5247 s///
5248 s/^/:/
5249 s/[ ]*$/:/
5250 s/:\$(srcdir):/:/g
5251 s/:\${srcdir}:/:/g
5252 s/:@srcdir@:/:/g
5253 s/^:*//
5254 s/:*$//
5255 x
5256 s/\(=[ ]*\).*/\1/
5257 G
5258 s/\n//
5259 s/^[^=]*=[ ]*$//
5260 }'
5261 fi
5262
5263 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5264 fi # test -n "$CONFIG_FILES"
5265
5266 # Set up the scripts for CONFIG_HEADERS section.
5267 # No need to generate them if there are no CONFIG_HEADERS.
5268 # This happens for instance with './config.status Makefile'.
5269 if test -n "$CONFIG_HEADERS"; then
5270 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
5271 BEGIN {
5272 _ACEOF
5273
5274 # Transform confdefs.h into an awk script 'defines.awk', embedded as
5275 # here-document in config.status, that substitutes the proper values into
5276 # config.h.in to produce config.h.
5277
5278 # Create a delimiter string that does not exist in confdefs.h, to ease
5279 # handling of long lines.
5280 ac_delim='%!_!# '
5281 for ac_last_try in false false :; do
5282 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
5283 if test -z "$ac_tt"; then
5284 break
5285 elif $ac_last_try; then
5286 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
5287 else
5288 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
5289 fi
5290 done
5291
5292 # For the awk script, D is an array of macro values keyed by name,
5293 # likewise P contains macro parameters if any. Preserve backslash
5294 # newline sequences.
5295
5296 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
5297 sed -n '
5298 s/.\{148\}/&'"$ac_delim"'/g
5299 t rset
5300 :rset
5301 s/^[ ]*#[ ]*define[ ][ ]*/ /
5302 t def
5303 d
5304 :def
5305 s/\\$//
5306 t bsnl
5307 s/["\\]/\\&/g
5308 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
5309 D["\1"]=" \3"/p
5310 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
5311 d
5312 :bsnl
5313 s/["\\]/\\&/g
5314 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
5315 D["\1"]=" \3\\\\\\n"\\/p
5316 t cont
5317 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
5318 t cont
5319 d
5320 :cont
5321 n
5322 s/.\{148\}/&'"$ac_delim"'/g
5323 t clear
5324 :clear
5325 s/\\$//
5326 t bsnlc
5327 s/["\\]/\\&/g; s/^/"/; s/$/"/p
5328 d
5329 :bsnlc
5330 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
5331 b cont
5332 ' <confdefs.h | sed '
5333 s/'"$ac_delim"'/"\\\
5334 "/g' >>$CONFIG_STATUS || ac_write_fail=1
5335
5336 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5337 for (key in D) D_is_set[key] = 1
5338 FS = ""
5339 }
5340 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
5341 line = \$ 0
5342 split(line, arg, " ")
5343 if (arg[1] == "#") {
5344 defundef = arg[2]
5345 mac1 = arg[3]
5346 } else {
5347 defundef = substr(arg[1], 2)
5348 mac1 = arg[2]
5349 }
5350 split(mac1, mac2, "(") #)
5351 macro = mac2[1]
5352 prefix = substr(line, 1, index(line, defundef) - 1)
5353 if (D_is_set[macro]) {
5354 # Preserve the white space surrounding the "#".
5355 print prefix "define", macro P[macro] D[macro]
5356 next
5357 } else {
5358 # Replace #undef with comments. This is necessary, for example,
5359 # in the case of _POSIX_SOURCE, which is predefined and required
5360 # on some systems where configure will not decide to define it.
5361 if (defundef == "undef") {
5362 print "/*", prefix defundef, macro, "*/"
5363 next
5364 }
5365 }
5366 }
5367 { print }
5368 _ACAWK
5369 _ACEOF
5370 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5371 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
5372 fi # test -n "$CONFIG_HEADERS"
5373
5374
5375 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS "
5376 shift
5377 for ac_tag
5378 do
5379 case $ac_tag in
5380 :[FHLC]) ac_mode=$ac_tag; continue;;
5381 esac
5382 case $ac_mode$ac_tag in
5383 :[FHL]*:*);;
5384 :L* | :C*:*) as_fn_error $? "invalid tag '$ac_tag'" "$LINENO" 5;;
5385 :[FH]-) ac_tag=-:-;;
5386 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
5387 esac
5388 ac_save_IFS=$IFS
5389 IFS=:
5390 set x $ac_tag
5391 IFS=$ac_save_IFS
5392 shift
5393 ac_file=$1
5394 shift
5395
5396 case $ac_mode in
5397 :L) ac_source=$1;;
5398 :[FH])
5399 ac_file_inputs=
5400 for ac_f
5401 do
5402 case $ac_f in
5403 -) ac_f="$ac_tmp/stdin";;
5404 *) # Look for the file first in the build tree, then in the source tree
5405 # (if the path is not absolute). The absolute path cannot be DOS-style,
5406 # because $ac_f cannot contain ':'.
5407 test -f "$ac_f" ||
5408 case $ac_f in
5409 [\\/$]*) false;;
5410 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
5411 esac ||
5412 as_fn_error 1 "cannot find input file: '$ac_f'" "$LINENO" 5;;
5413 esac
5414 case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
5415 as_fn_append ac_file_inputs " '$ac_f'"
5416 done
5417
5418 # Let's still pretend it is 'configure' which instantiates (i.e., don't
5419 # use $as_me), people would be surprised to read:
5420 # /* config.h. Generated by config.status. */
5421 configure_input='Generated from '`
5422 printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
5423 `' by configure.'
5424 if test x"$ac_file" != x-; then
5425 configure_input="$ac_file. $configure_input"
5426 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
5427 printf "%s\n" "$as_me: creating $ac_file" >&6;}
5428 fi
5429 # Neutralize special characters interpreted by sed in replacement strings.
5430 case $configure_input in #(
5431 *\&* | *\|* | *\\* )
5432 ac_sed_conf_input=`printf "%s\n" "$configure_input" |
5433 sed 's/[\\\\&|]/\\\\&/g'`;; #(
5434 *) ac_sed_conf_input=$configure_input;;
5435 esac
5436
5437 case $ac_tag in
5438 *:-:* | *:-) cat >"$ac_tmp/stdin" \
5439 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
5440 esac
5441 ;;
5442 esac
5443
5444 ac_dir=`$as_dirname -- "$ac_file" ||
5445 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5446 X"$ac_file" : 'X\(//\)[^/]' \| \
5447 X"$ac_file" : 'X\(//\)$' \| \
5448 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
5449 printf "%s\n" X"$ac_file" |
5450 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
5451 s//\1/
5452 q
5453 }
5454 /^X\(\/\/\)[^/].*/{
5455 s//\1/
5456 q
5457 }
5458 /^X\(\/\/\)$/{
5459 s//\1/
5460 q
5461 }
5462 /^X\(\/\).*/{
5463 s//\1/
5464 q
5465 }
5466 s/.*/./; q'`
5467 as_dir="$ac_dir"; as_fn_mkdir_p
5468 ac_builddir=.
5469
5470 case "$ac_dir" in
5471 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
5472 *)
5473 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
5474 # A ".." for each directory in $ac_dir_suffix.
5475 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
5476 case $ac_top_builddir_sub in
5477 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
5478 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
5479 esac ;;
5480 esac
5481 ac_abs_top_builddir=$ac_pwd
5482 ac_abs_builddir=$ac_pwd$ac_dir_suffix
5483 # for backward compatibility:
5484 ac_top_builddir=$ac_top_build_prefix
5485
5486 case $srcdir in
5487 .) # We are building in place.
5488 ac_srcdir=.
5489 ac_top_srcdir=$ac_top_builddir_sub
5490 ac_abs_top_srcdir=$ac_pwd ;;
5491 [\\/]* | ?:[\\/]* ) # Absolute name.
5492 ac_srcdir=$srcdir$ac_dir_suffix;
5493 ac_top_srcdir=$srcdir
5494 ac_abs_top_srcdir=$srcdir ;;
5495 *) # Relative name.
5496 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
5497 ac_top_srcdir=$ac_top_build_prefix$srcdir
5498 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
5499 esac
5500 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
5501
5502
5503 case $ac_mode in
5504 :F)
5505 #
5506 # CONFIG_FILE
5507 #
5508
5509 _ACEOF
5510
5511 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5512 # If the template does not know about datarootdir, expand it.
5513 # FIXME: This hack should be removed a few years after 2.60.
5514 ac_datarootdir_hack=; ac_datarootdir_seen=
5515 ac_sed_dataroot='
5516 /datarootdir/ {
5517 p
5518 q
5519 }
5520 /@datadir@/p
5521 /@docdir@/p
5522 /@infodir@/p
5523 /@localedir@/p
5524 /@mandir@/p'
5525 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
5526 *datarootdir*) ac_datarootdir_seen=yes;;
5527 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
5528 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
5529 printf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
5530 _ACEOF
5531 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5532 ac_datarootdir_hack='
5533 s&@datadir@&$datadir&g
5534 s&@docdir@&$docdir&g
5535 s&@infodir@&$infodir&g
5536 s&@localedir@&$localedir&g
5537 s&@mandir@&$mandir&g
5538 s&\\\${datarootdir}&$datarootdir&g' ;;
5539 esac
5540 _ACEOF
5541
5542 # Neutralize VPATH when '$srcdir' = '.'.
5543 # Shell code in configure.ac might set extrasub.
5544 # FIXME: do we really want to maintain this feature?
5545 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5546 ac_sed_extra="$ac_vpsub
5547 $extrasub
5548 _ACEOF
5549 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5550 :t
5551 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
5552 s|@configure_input@|$ac_sed_conf_input|;t t
5553 s&@top_builddir@&$ac_top_builddir_sub&;t t
5554 s&@top_build_prefix@&$ac_top_build_prefix&;t t
5555 s&@srcdir@&$ac_srcdir&;t t
5556 s&@abs_srcdir@&$ac_abs_srcdir&;t t
5557 s&@top_srcdir@&$ac_top_srcdir&;t t
5558 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
5559 s&@builddir@&$ac_builddir&;t t
5560 s&@abs_builddir@&$ac_abs_builddir&;t t
5561 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
5562 $ac_datarootdir_hack
5563 "
5564 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
5565 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
5566
5567 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
5568 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
5569 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
5570 "$ac_tmp/out"`; test -z "$ac_out"; } &&
5571 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable 'datarootdir'
5572 which seems to be undefined. Please make sure it is defined" >&5
5573 printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable 'datarootdir'
5574 which seems to be undefined. Please make sure it is defined" >&2;}
5575
5576 rm -f "$ac_tmp/stdin"
5577 case $ac_file in
5578 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
5579 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
5580 esac \
5581 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
5582 ;;
5583 :H)
5584 #
5585 # CONFIG_HEADER
5586 #
5587 if test x"$ac_file" != x-; then
5588 {
5589 printf "%s\n" "/* $configure_input */" >&1 \
5590 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
5591 } >"$ac_tmp/config.h" \
5592 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
5593 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
5594 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
5595 printf "%s\n" "$as_me: $ac_file is unchanged" >&6;}
5596 else
5597 rm -f "$ac_file"
5598 mv "$ac_tmp/config.h" "$ac_file" \
5599 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
5600 fi
5601 else
5602 printf "%s\n" "/* $configure_input */" >&1 \
5603 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
5604 || as_fn_error $? "could not create -" "$LINENO" 5
5605 fi
5606 # Compute "$ac_file"'s index in $config_headers.
5607 _am_arg="$ac_file"
5608 _am_stamp_count=1
5609 for _am_header in $config_headers :; do
5610 case $_am_header in
5611 $_am_arg | $_am_arg:* )
5612 break ;;
5613 * )
5614 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
5615 esac
5616 done
5617 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
5618 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5619 X"$_am_arg" : 'X\(//\)[^/]' \| \
5620 X"$_am_arg" : 'X\(//\)$' \| \
5621 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
5622 printf "%s\n" X"$_am_arg" |
5623 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
5624 s//\1/
5625 q
5626 }
5627 /^X\(\/\/\)[^/].*/{
5628 s//\1/
5629 q
5630 }
5631 /^X\(\/\/\)$/{
5632 s//\1/
5633 q
5634 }
5635 /^X\(\/\).*/{
5636 s//\1/
5637 q
5638 }
5639 s/.*/./; q'`/stamp-h$_am_stamp_count
5640 ;;
5641
5642
5643 esac
5644
5645 done # for ac_tag
5646
5647
5648 as_fn_exit 0
5649 _ACEOF
5650 ac_clean_files=$ac_clean_files_save
5651
5652 test $ac_write_fail = 0 ||
5653 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
5654
5655
5656 # configure is writing to config.log, and then calls config.status.
5657 # config.status does its own redirection, appending to config.log.
5658 # Unfortunately, on DOS this fails, as config.log is still kept open
5659 # by configure, so config.status won't be able to write to it; its
5660 # output is simply discarded. So we exec the FD to /dev/null,
5661 # effectively closing config.log, so it can be properly (re)opened and
5662 # appended to by config.status. When coming back to configure, we
5663 # need to make the FD available again.
5664 if test "$no_create" != yes; then
5665 ac_cs_success=:
5666 ac_config_status_args=
5667 test "$silent" = yes &&
5668 ac_config_status_args="$ac_config_status_args --quiet"
5669 exec 5>/dev/null
5670 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
5671 exec 5>>config.log
5672 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
5673 # would make configure fail if this is the last instruction.
5674 $ac_cs_success || as_fn_exit 1
5675 fi
5676 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
5677 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
5678 printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
5679 fi
5680
5681
5682
5683 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${term_bold}** I18N (Done)${term_norm}" >&5
5684 printf "%s\n" "$as_me: ${term_bold}** I18N (Done)${term_norm}" >&6;}
5685
5686