Debian Codegraph @

configure

raw
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.72 for less 1.
4 #
5 #
6 # Copyright (C) 1992-1996, 1998-2017, 2020-2023 Free Software Foundation,
7 # Inc.
8 #
9 #
10 # This configure script is free software; the Free Software Foundation
11 # gives unlimited permission to copy, distribute and modify it.
12 ## -------------------- ##
13 ## M4sh Initialization. ##
14 ## -------------------- ##
15
16 # Be more Bourne compatible
17 DUALCASE=1; export DUALCASE # for MKS sh
18 if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
19 then :
20 emulate sh
21 NULLCMD=:
22 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23 # is contrary to our usage. Disable this feature.
24 alias -g '${1+"$@"}'='"$@"'
25 setopt NO_GLOB_SUBST
26 else case e in #(
27 e) case `(set -o) 2>/dev/null` in #(
28 *posix*) :
29 set -o posix ;; #(
30 *) :
31 ;;
32 esac ;;
33 esac
34 fi
35
36
37
38 # Reset variables that may have inherited troublesome values from
39 # the environment.
40
41 # IFS needs to be set, to space, tab, and newline, in precisely that order.
42 # (If _AS_PATH_WALK were called with IFS unset, it would have the
43 # side effect of setting IFS to empty, thus disabling word splitting.)
44 # Quoting is to prevent editors from complaining about space-tab.
45 as_nl='
46 '
47 export as_nl
48 IFS=" "" $as_nl"
49
50 PS1='$ '
51 PS2='> '
52 PS4='+ '
53
54 # Ensure predictable behavior from utilities with locale-dependent output.
55 LC_ALL=C
56 export LC_ALL
57 LANGUAGE=C
58 export LANGUAGE
59
60 # We cannot yet rely on "unset" to work, but we need these variables
61 # to be unset--not just set to an empty or harmless value--now, to
62 # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct
63 # also avoids known problems related to "unset" and subshell syntax
64 # in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
65 for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
66 do eval test \${$as_var+y} \
67 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
68 done
69
70 # Ensure that fds 0, 1, and 2 are open.
71 if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
72 if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
73 if (exec 3>&2) ; then :; else exec 2>/dev/null; fi
74
75 # The user is always right.
76 if ${PATH_SEPARATOR+false} :; then
77 PATH_SEPARATOR=:
78 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
79 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
80 PATH_SEPARATOR=';'
81 }
82 fi
83
84
85 # Find who we are. Look in the path if we contain no directory separator.
86 as_myself=
87 case $0 in #((
88 *[\\/]* ) as_myself=$0 ;;
89 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
90 for as_dir in $PATH
91 do
92 IFS=$as_save_IFS
93 case $as_dir in #(((
94 '') as_dir=./ ;;
95 */) ;;
96 *) as_dir=$as_dir/ ;;
97 esac
98 test -r "$as_dir$0" && as_myself=$as_dir$0 && break
99 done
100 IFS=$as_save_IFS
101
102 ;;
103 esac
104 # We did not find ourselves, most probably we were run as 'sh COMMAND'
105 # in which case we are not to be found in the path.
106 if test "x$as_myself" = x; then
107 as_myself=$0
108 fi
109 if test ! -f "$as_myself"; then
110 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
111 exit 1
112 fi
113
114
115 # Use a proper internal environment variable to ensure we don't fall
116 # into an infinite loop, continuously re-executing ourselves.
117 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
118 _as_can_reexec=no; export _as_can_reexec;
119 # We cannot yet assume a decent shell, so we have to provide a
120 # neutralization value for shells without unset; and this also
121 # works around shells that cannot unset nonexistent variables.
122 # Preserve -v and -x to the replacement shell.
123 BASH_ENV=/dev/null
124 ENV=/dev/null
125 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
126 case $- in # ((((
127 *v*x* | *x*v* ) as_opts=-vx ;;
128 *v* ) as_opts=-v ;;
129 *x* ) as_opts=-x ;;
130 * ) as_opts= ;;
131 esac
132 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
133 # Admittedly, this is quite paranoid, since all the known shells bail
134 # out after a failed 'exec'.
135 printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2
136 exit 255
137 fi
138 # We don't want this to propagate to other subprocesses.
139 { _as_can_reexec=; unset _as_can_reexec;}
140 if test "x$CONFIG_SHELL" = x; then
141 as_bourne_compatible="if test \${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
142 then :
143 emulate sh
144 NULLCMD=:
145 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
146 # is contrary to our usage. Disable this feature.
147 alias -g '\${1+\"\$@\"}'='\"\$@\"'
148 setopt NO_GLOB_SUBST
149 else case e in #(
150 e) case \`(set -o) 2>/dev/null\` in #(
151 *posix*) :
152 set -o posix ;; #(
153 *) :
154 ;;
155 esac ;;
156 esac
157 fi
158 "
159 as_required="as_fn_return () { (exit \$1); }
160 as_fn_success () { as_fn_return 0; }
161 as_fn_failure () { as_fn_return 1; }
162 as_fn_ret_success () { return 0; }
163 as_fn_ret_failure () { return 1; }
164
165 exitcode=0
166 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
167 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
168 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
169 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
170 if ( set x; as_fn_ret_success y && test x = \"\$1\" )
171 then :
172
173 else case e in #(
174 e) exitcode=1; echo positional parameters were not saved. ;;
175 esac
176 fi
177 test x\$exitcode = x0 || exit 1
178 blah=\$(echo \$(echo blah))
179 test x\"\$blah\" = xblah || exit 1
180 test -x / || exit 1"
181 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
182 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
183 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
184 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1"
185 if (eval "$as_required") 2>/dev/null
186 then :
187 as_have_required=yes
188 else case e in #(
189 e) as_have_required=no ;;
190 esac
191 fi
192 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null
193 then :
194
195 else case e in #(
196 e) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
197 as_found=false
198 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
199 do
200 IFS=$as_save_IFS
201 case $as_dir in #(((
202 '') as_dir=./ ;;
203 */) ;;
204 *) as_dir=$as_dir/ ;;
205 esac
206 as_found=:
207 case $as_dir in #(
208 /*)
209 for as_base in sh bash ksh sh5; do
210 # Try only shells that exist, to save several forks.
211 as_shell=$as_dir$as_base
212 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
213 as_run=a "$as_shell" -c "$as_bourne_compatible""$as_required" 2>/dev/null
214 then :
215 CONFIG_SHELL=$as_shell as_have_required=yes
216 if as_run=a "$as_shell" -c "$as_bourne_compatible""$as_suggested" 2>/dev/null
217 then :
218 break 2
219 fi
220 fi
221 done;;
222 esac
223 as_found=false
224 done
225 IFS=$as_save_IFS
226 if $as_found
227 then :
228
229 else case e in #(
230 e) if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
231 as_run=a "$SHELL" -c "$as_bourne_compatible""$as_required" 2>/dev/null
232 then :
233 CONFIG_SHELL=$SHELL as_have_required=yes
234 fi ;;
235 esac
236 fi
237
238
239 if test "x$CONFIG_SHELL" != x
240 then :
241 export CONFIG_SHELL
242 # We cannot yet assume a decent shell, so we have to provide a
243 # neutralization value for shells without unset; and this also
244 # works around shells that cannot unset nonexistent variables.
245 # Preserve -v and -x to the replacement shell.
246 BASH_ENV=/dev/null
247 ENV=/dev/null
248 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
249 case $- in # ((((
250 *v*x* | *x*v* ) as_opts=-vx ;;
251 *v* ) as_opts=-v ;;
252 *x* ) as_opts=-x ;;
253 * ) as_opts= ;;
254 esac
255 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
256 # Admittedly, this is quite paranoid, since all the known shells bail
257 # out after a failed 'exec'.
258 printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2
259 exit 255
260 fi
261
262 if test x$as_have_required = xno
263 then :
264 printf "%s\n" "$0: This script requires a shell more modern than all"
265 printf "%s\n" "$0: the shells that I found on your system."
266 if test ${ZSH_VERSION+y} ; then
267 printf "%s\n" "$0: In particular, zsh $ZSH_VERSION has bugs and should"
268 printf "%s\n" "$0: be upgraded to zsh 4.3.4 or later."
269 else
270 printf "%s\n" "$0: Please tell [email protected] about your system,
271 $0: including any error possibly output before this
272 $0: message. Then install a modern shell, or manually run
273 $0: the script under such a shell if you do have one."
274 fi
275 exit 1
276 fi ;;
277 esac
278 fi
279 fi
280 SHELL=${CONFIG_SHELL-/bin/sh}
281 export SHELL
282 # Unset more variables known to interfere with behavior of common tools.
283 CLICOLOR_FORCE= GREP_OPTIONS=
284 unset CLICOLOR_FORCE GREP_OPTIONS
285
286 ## --------------------- ##
287 ## M4sh Shell Functions. ##
288 ## --------------------- ##
289 # as_fn_unset VAR
290 # ---------------
291 # Portably unset VAR.
292 as_fn_unset ()
293 {
294 { eval $1=; unset $1;}
295 }
296 as_unset=as_fn_unset
297
298
299 # as_fn_set_status STATUS
300 # -----------------------
301 # Set $? to STATUS, without forking.
302 as_fn_set_status ()
303 {
304 return $1
305 } # as_fn_set_status
306
307 # as_fn_exit STATUS
308 # -----------------
309 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
310 as_fn_exit ()
311 {
312 set +e
313 as_fn_set_status $1
314 exit $1
315 } # as_fn_exit
316
317 # as_fn_mkdir_p
318 # -------------
319 # Create "$as_dir" as a directory, including parents if necessary.
320 as_fn_mkdir_p ()
321 {
322
323 case $as_dir in #(
324 -*) as_dir=./$as_dir;;
325 esac
326 test -d "$as_dir" || eval $as_mkdir_p || {
327 as_dirs=
328 while :; do
329 case $as_dir in #(
330 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
331 *) as_qdir=$as_dir;;
332 esac
333 as_dirs="'$as_qdir' $as_dirs"
334 as_dir=`$as_dirname -- "$as_dir" ||
335 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
336 X"$as_dir" : 'X\(//\)[^/]' \| \
337 X"$as_dir" : 'X\(//\)$' \| \
338 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
339 printf "%s\n" X"$as_dir" |
340 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
341 s//\1/
342 q
343 }
344 /^X\(\/\/\)[^/].*/{
345 s//\1/
346 q
347 }
348 /^X\(\/\/\)$/{
349 s//\1/
350 q
351 }
352 /^X\(\/\).*/{
353 s//\1/
354 q
355 }
356 s/.*/./; q'`
357 test -d "$as_dir" && break
358 done
359 test -z "$as_dirs" || eval "mkdir $as_dirs"
360 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
361
362
363 } # as_fn_mkdir_p
364
365 # as_fn_executable_p FILE
366 # -----------------------
367 # Test if FILE is an executable regular file.
368 as_fn_executable_p ()
369 {
370 test -f "$1" && test -x "$1"
371 } # as_fn_executable_p
372 # as_fn_append VAR VALUE
373 # ----------------------
374 # Append the text in VALUE to the end of the definition contained in VAR. Take
375 # advantage of any shell optimizations that allow amortized linear growth over
376 # repeated appends, instead of the typical quadratic growth present in naive
377 # implementations.
378 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
379 then :
380 eval 'as_fn_append ()
381 {
382 eval $1+=\$2
383 }'
384 else case e in #(
385 e) as_fn_append ()
386 {
387 eval $1=\$$1\$2
388 } ;;
389 esac
390 fi # as_fn_append
391
392 # as_fn_arith ARG...
393 # ------------------
394 # Perform arithmetic evaluation on the ARGs, and store the result in the
395 # global $as_val. Take advantage of shells that can avoid forks. The arguments
396 # must be portable across $(()) and expr.
397 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
398 then :
399 eval 'as_fn_arith ()
400 {
401 as_val=$(( $* ))
402 }'
403 else case e in #(
404 e) as_fn_arith ()
405 {
406 as_val=`expr "$@" || test $? -eq 1`
407 } ;;
408 esac
409 fi # as_fn_arith
410
411
412 # as_fn_error STATUS ERROR [LINENO LOG_FD]
413 # ----------------------------------------
414 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
415 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
416 # script with STATUS, using 1 if that was 0.
417 as_fn_error ()
418 {
419 as_status=$1; test $as_status -eq 0 && as_status=1
420 if test "$4"; then
421 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
422 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
423 fi
424 printf "%s\n" "$as_me: error: $2" >&2
425 as_fn_exit $as_status
426 } # as_fn_error
427
428 if expr a : '\(a\)' >/dev/null 2>&1 &&
429 test "X`expr 00001 : '.*\(...\)'`" = X001; then
430 as_expr=expr
431 else
432 as_expr=false
433 fi
434
435 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
436 as_basename=basename
437 else
438 as_basename=false
439 fi
440
441 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
442 as_dirname=dirname
443 else
444 as_dirname=false
445 fi
446
447 as_me=`$as_basename -- "$0" ||
448 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
449 X"$0" : 'X\(//\)$' \| \
450 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
451 printf "%s\n" X/"$0" |
452 sed '/^.*\/\([^/][^/]*\)\/*$/{
453 s//\1/
454 q
455 }
456 /^X\/\(\/\/\)$/{
457 s//\1/
458 q
459 }
460 /^X\/\(\/\).*/{
461 s//\1/
462 q
463 }
464 s/.*/./; q'`
465
466 # Avoid depending upon Character Ranges.
467 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
468 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
469 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
470 as_cr_digits='0123456789'
471 as_cr_alnum=$as_cr_Letters$as_cr_digits
472
473
474 as_lineno_1=$LINENO as_lineno_1a=$LINENO
475 as_lineno_2=$LINENO as_lineno_2a=$LINENO
476 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
477 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
478 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
479 sed -n '
480 p
481 /[$]LINENO/=
482 ' <$as_myself |
483 sed '
484 t clear
485 :clear
486 s/[$]LINENO.*/&-/
487 t lineno
488 b
489 :lineno
490 N
491 :loop
492 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
493 t loop
494 s/-\n.*//
495 ' >$as_me.lineno &&
496 chmod +x "$as_me.lineno" ||
497 { printf "%s\n" "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
498
499 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
500 # already done that, so ensure we don't try to do so again and fall
501 # in an infinite loop. This has already happened in practice.
502 _as_can_reexec=no; export _as_can_reexec
503 # Don't try to exec as it changes $[0], causing all sort of problems
504 # (the dirname of $[0] is not the place where we might find the
505 # original and so on. Autoconf is especially sensitive to this).
506 . "./$as_me.lineno"
507 # Exit status is that of the last command.
508 exit
509 }
510
511
512 # Determine whether it's possible to make 'echo' print without a newline.
513 # These variables are no longer used directly by Autoconf, but are AC_SUBSTed
514 # for compatibility with existing Makefiles.
515 ECHO_C= ECHO_N= ECHO_T=
516 case `echo -n x` in #(((((
517 -n*)
518 case `echo 'xy\c'` in
519 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
520 xy) ECHO_C='\c';;
521 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
522 ECHO_T=' ';;
523 esac;;
524 *)
525 ECHO_N='-n';;
526 esac
527
528 # For backward compatibility with old third-party macros, we provide
529 # the shell variables $as_echo and $as_echo_n. New code should use
530 # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
531 as_echo='printf %s\n'
532 as_echo_n='printf %s'
533
534 rm -f conf$$ conf$$.exe conf$$.file
535 if test -d conf$$.dir; then
536 rm -f conf$$.dir/conf$$.file
537 else
538 rm -f conf$$.dir
539 mkdir conf$$.dir 2>/dev/null
540 fi
541 if (echo >conf$$.file) 2>/dev/null; then
542 if ln -s conf$$.file conf$$ 2>/dev/null; then
543 as_ln_s='ln -s'
544 # ... but there are two gotchas:
545 # 1) On MSYS, both 'ln -s file dir' and 'ln file dir' fail.
546 # 2) DJGPP < 2.04 has no symlinks; 'ln -s' creates a wrapper executable.
547 # In both cases, we have to default to 'cp -pR'.
548 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
549 as_ln_s='cp -pR'
550 elif ln conf$$.file conf$$ 2>/dev/null; then
551 as_ln_s=ln
552 else
553 as_ln_s='cp -pR'
554 fi
555 else
556 as_ln_s='cp -pR'
557 fi
558 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
559 rmdir conf$$.dir 2>/dev/null
560
561 if mkdir -p . 2>/dev/null; then
562 as_mkdir_p='mkdir -p "$as_dir"'
563 else
564 test -d ./-p && rmdir ./-p
565 as_mkdir_p=false
566 fi
567
568 as_test_x='test -x'
569 as_executable_p=as_fn_executable_p
570
571 # Sed expression to map a string onto a valid CPP name.
572 as_sed_cpp="y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
573 as_tr_cpp="eval sed '$as_sed_cpp'" # deprecated
574
575 # Sed expression to map a string onto a valid variable name.
576 as_sed_sh="y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
577 as_tr_sh="eval sed '$as_sed_sh'" # deprecated
578
579
580 test -n "$DJDIR" || exec 7<&0 </dev/null
581 exec 6>&1
582
583 # Name of the host.
584 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
585 # so uname gets run too.
586 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
587
588 #
589 # Initializations.
590 #
591 ac_default_prefix=/usr/local
592 ac_clean_files=
593 ac_config_libobj_dir=.
594 LIBOBJS=
595 cross_compiling=no
596 subdirs=
597 MFLAGS=
598 MAKEFLAGS=
599
600 # Identity of this package.
601 PACKAGE_NAME='less'
602 PACKAGE_TARNAME='less'
603 PACKAGE_VERSION='1'
604 PACKAGE_STRING='less 1'
605 PACKAGE_BUGREPORT=''
606 PACKAGE_URL=''
607
608 ac_unique_file="forwback.c"
609 # Factoring default headers for most tests.
610 ac_includes_default="\
611 #include <stddef.h>
612 #ifdef HAVE_STDIO_H
613 # include <stdio.h>
614 #endif
615 #ifdef HAVE_STDLIB_H
616 # include <stdlib.h>
617 #endif
618 #ifdef HAVE_STRING_H
619 # include <string.h>
620 #endif
621 #ifdef HAVE_INTTYPES_H
622 # include <inttypes.h>
623 #endif
624 #ifdef HAVE_STDINT_H
625 # include <stdint.h>
626 #endif
627 #ifdef HAVE_STRINGS_H
628 # include <strings.h>
629 #endif
630 #ifdef HAVE_SYS_TYPES_H
631 # include <sys/types.h>
632 #endif
633 #ifdef HAVE_SYS_STAT_H
634 # include <sys/stat.h>
635 #endif
636 #ifdef HAVE_UNISTD_H
637 # include <unistd.h>
638 #endif"
639
640 ac_header_c_list=
641 enable_year2038=no
642 ac_subst_vars='LTLIBOBJS
643 LIBOBJS
644 REGEX_O
645 SECURE_COMPILE
646 INSTALL_DATA
647 INSTALL_SCRIPT
648 INSTALL_PROGRAM
649 OBJEXT
650 EXEEXT
651 ac_ct_CC
652 CPPFLAGS
653 LDFLAGS
654 CFLAGS
655 CC
656 target_alias
657 host_alias
658 build_alias
659 LIBS
660 ECHO_T
661 ECHO_N
662 ECHO_C
663 DEFS
664 mandir
665 localedir
666 libdir
667 psdir
668 pdfdir
669 dvidir
670 htmldir
671 infodir
672 docdir
673 oldincludedir
674 includedir
675 runstatedir
676 localstatedir
677 sharedstatedir
678 sysconfdir
679 datadir
680 datarootdir
681 libexecdir
682 sbindir
683 bindir
684 program_transform_name
685 prefix
686 exec_prefix
687 PACKAGE_URL
688 PACKAGE_BUGREPORT
689 PACKAGE_STRING
690 PACKAGE_VERSION
691 PACKAGE_TARNAME
692 PACKAGE_NAME
693 PATH_SEPARATOR
694 SHELL'
695 ac_subst_files=''
696 ac_user_opts='
697 enable_option_checking
698 enable_largefile
699 with_secure
700 with_regex
701 with_editor
702 enable_year2038
703 '
704 ac_precious_vars='build_alias
705 host_alias
706 target_alias
707 CC
708 CFLAGS
709 LDFLAGS
710 LIBS
711 CPPFLAGS'
712
713
714 # Initialize some variables set by options.
715 ac_init_help=
716 ac_init_version=false
717 ac_unrecognized_opts=
718 ac_unrecognized_sep=
719 # The variables have the same names as the options, with
720 # dashes changed to underlines.
721 cache_file=/dev/null
722 exec_prefix=NONE
723 no_create=
724 no_recursion=
725 prefix=NONE
726 program_prefix=NONE
727 program_suffix=NONE
728 program_transform_name=s,x,x,
729 silent=
730 site=
731 srcdir=
732 verbose=
733 x_includes=NONE
734 x_libraries=NONE
735
736 # Installation directory options.
737 # These are left unexpanded so users can "make install exec_prefix=/foo"
738 # and all the variables that are supposed to be based on exec_prefix
739 # by default will actually change.
740 # Use braces instead of parens because sh, perl, etc. also accept them.
741 # (The list follows the same order as the GNU Coding Standards.)
742 bindir='${exec_prefix}/bin'
743 sbindir='${exec_prefix}/sbin'
744 libexecdir='${exec_prefix}/libexec'
745 datarootdir='${prefix}/share'
746 datadir='${datarootdir}'
747 sysconfdir='${prefix}/etc'
748 sharedstatedir='${prefix}/com'
749 localstatedir='${prefix}/var'
750 runstatedir='${localstatedir}/run'
751 includedir='${prefix}/include'
752 oldincludedir='/usr/include'
753 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
754 infodir='${datarootdir}/info'
755 htmldir='${docdir}'
756 dvidir='${docdir}'
757 pdfdir='${docdir}'
758 psdir='${docdir}'
759 libdir='${exec_prefix}/lib'
760 localedir='${datarootdir}/locale'
761 mandir='${datarootdir}/man'
762
763 ac_prev=
764 ac_dashdash=
765 for ac_option
766 do
767 # If the previous option needs an argument, assign it.
768 if test -n "$ac_prev"; then
769 eval $ac_prev=\$ac_option
770 ac_prev=
771 continue
772 fi
773
774 case $ac_option in
775 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
776 *=) ac_optarg= ;;
777 *) ac_optarg=yes ;;
778 esac
779
780 case $ac_dashdash$ac_option in
781 --)
782 ac_dashdash=yes ;;
783
784 -bindir | --bindir | --bindi | --bind | --bin | --bi)
785 ac_prev=bindir ;;
786 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
787 bindir=$ac_optarg ;;
788
789 -build | --build | --buil | --bui | --bu)
790 ac_prev=build_alias ;;
791 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
792 build_alias=$ac_optarg ;;
793
794 -cache-file | --cache-file | --cache-fil | --cache-fi \
795 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
796 ac_prev=cache_file ;;
797 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
798 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
799 cache_file=$ac_optarg ;;
800
801 --config-cache | -C)
802 cache_file=config.cache ;;
803
804 -datadir | --datadir | --datadi | --datad)
805 ac_prev=datadir ;;
806 -datadir=* | --datadir=* | --datadi=* | --datad=*)
807 datadir=$ac_optarg ;;
808
809 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
810 | --dataroo | --dataro | --datar)
811 ac_prev=datarootdir ;;
812 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
813 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
814 datarootdir=$ac_optarg ;;
815
816 -disable-* | --disable-*)
817 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
818 # Reject names that are not valid shell variable names.
819 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
820 as_fn_error $? "invalid feature name: '$ac_useropt'"
821 ac_useropt_orig=$ac_useropt
822 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
823 case $ac_user_opts in
824 *"
825 "enable_$ac_useropt"
826 "*) ;;
827 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
828 ac_unrecognized_sep=', ';;
829 esac
830 eval enable_$ac_useropt=no ;;
831
832 -docdir | --docdir | --docdi | --doc | --do)
833 ac_prev=docdir ;;
834 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
835 docdir=$ac_optarg ;;
836
837 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
838 ac_prev=dvidir ;;
839 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
840 dvidir=$ac_optarg ;;
841
842 -enable-* | --enable-*)
843 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
844 # Reject names that are not valid shell variable names.
845 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
846 as_fn_error $? "invalid feature name: '$ac_useropt'"
847 ac_useropt_orig=$ac_useropt
848 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
849 case $ac_user_opts in
850 *"
851 "enable_$ac_useropt"
852 "*) ;;
853 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
854 ac_unrecognized_sep=', ';;
855 esac
856 eval enable_$ac_useropt=\$ac_optarg ;;
857
858 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
859 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
860 | --exec | --exe | --ex)
861 ac_prev=exec_prefix ;;
862 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
863 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
864 | --exec=* | --exe=* | --ex=*)
865 exec_prefix=$ac_optarg ;;
866
867 -gas | --gas | --ga | --g)
868 # Obsolete; use --with-gas.
869 with_gas=yes ;;
870
871 -help | --help | --hel | --he | -h)
872 ac_init_help=long ;;
873 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
874 ac_init_help=recursive ;;
875 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
876 ac_init_help=short ;;
877
878 -host | --host | --hos | --ho)
879 ac_prev=host_alias ;;
880 -host=* | --host=* | --hos=* | --ho=*)
881 host_alias=$ac_optarg ;;
882
883 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
884 ac_prev=htmldir ;;
885 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
886 | --ht=*)
887 htmldir=$ac_optarg ;;
888
889 -includedir | --includedir | --includedi | --included | --include \
890 | --includ | --inclu | --incl | --inc)
891 ac_prev=includedir ;;
892 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
893 | --includ=* | --inclu=* | --incl=* | --inc=*)
894 includedir=$ac_optarg ;;
895
896 -infodir | --infodir | --infodi | --infod | --info | --inf)
897 ac_prev=infodir ;;
898 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
899 infodir=$ac_optarg ;;
900
901 -libdir | --libdir | --libdi | --libd)
902 ac_prev=libdir ;;
903 -libdir=* | --libdir=* | --libdi=* | --libd=*)
904 libdir=$ac_optarg ;;
905
906 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
907 | --libexe | --libex | --libe)
908 ac_prev=libexecdir ;;
909 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
910 | --libexe=* | --libex=* | --libe=*)
911 libexecdir=$ac_optarg ;;
912
913 -localedir | --localedir | --localedi | --localed | --locale)
914 ac_prev=localedir ;;
915 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
916 localedir=$ac_optarg ;;
917
918 -localstatedir | --localstatedir | --localstatedi | --localstated \
919 | --localstate | --localstat | --localsta | --localst | --locals)
920 ac_prev=localstatedir ;;
921 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
922 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
923 localstatedir=$ac_optarg ;;
924
925 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
926 ac_prev=mandir ;;
927 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
928 mandir=$ac_optarg ;;
929
930 -nfp | --nfp | --nf)
931 # Obsolete; use --without-fp.
932 with_fp=no ;;
933
934 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
935 | --no-cr | --no-c | -n)
936 no_create=yes ;;
937
938 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
939 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
940 no_recursion=yes ;;
941
942 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
943 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
944 | --oldin | --oldi | --old | --ol | --o)
945 ac_prev=oldincludedir ;;
946 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
947 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
948 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
949 oldincludedir=$ac_optarg ;;
950
951 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
952 ac_prev=prefix ;;
953 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
954 prefix=$ac_optarg ;;
955
956 -program-prefix | --program-prefix | --program-prefi | --program-pref \
957 | --program-pre | --program-pr | --program-p)
958 ac_prev=program_prefix ;;
959 -program-prefix=* | --program-prefix=* | --program-prefi=* \
960 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
961 program_prefix=$ac_optarg ;;
962
963 -program-suffix | --program-suffix | --program-suffi | --program-suff \
964 | --program-suf | --program-su | --program-s)
965 ac_prev=program_suffix ;;
966 -program-suffix=* | --program-suffix=* | --program-suffi=* \
967 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
968 program_suffix=$ac_optarg ;;
969
970 -program-transform-name | --program-transform-name \
971 | --program-transform-nam | --program-transform-na \
972 | --program-transform-n | --program-transform- \
973 | --program-transform | --program-transfor \
974 | --program-transfo | --program-transf \
975 | --program-trans | --program-tran \
976 | --progr-tra | --program-tr | --program-t)
977 ac_prev=program_transform_name ;;
978 -program-transform-name=* | --program-transform-name=* \
979 | --program-transform-nam=* | --program-transform-na=* \
980 | --program-transform-n=* | --program-transform-=* \
981 | --program-transform=* | --program-transfor=* \
982 | --program-transfo=* | --program-transf=* \
983 | --program-trans=* | --program-tran=* \
984 | --progr-tra=* | --program-tr=* | --program-t=*)
985 program_transform_name=$ac_optarg ;;
986
987 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
988 ac_prev=pdfdir ;;
989 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
990 pdfdir=$ac_optarg ;;
991
992 -psdir | --psdir | --psdi | --psd | --ps)
993 ac_prev=psdir ;;
994 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
995 psdir=$ac_optarg ;;
996
997 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
998 | -silent | --silent | --silen | --sile | --sil)
999 silent=yes ;;
1000
1001 -runstatedir | --runstatedir | --runstatedi | --runstated \
1002 | --runstate | --runstat | --runsta | --runst | --runs \
1003 | --run | --ru | --r)
1004 ac_prev=runstatedir ;;
1005 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1006 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1007 | --run=* | --ru=* | --r=*)
1008 runstatedir=$ac_optarg ;;
1009
1010 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1011 ac_prev=sbindir ;;
1012 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1013 | --sbi=* | --sb=*)
1014 sbindir=$ac_optarg ;;
1015
1016 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1017 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1018 | --sharedst | --shareds | --shared | --share | --shar \
1019 | --sha | --sh)
1020 ac_prev=sharedstatedir ;;
1021 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1022 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1023 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1024 | --sha=* | --sh=*)
1025 sharedstatedir=$ac_optarg ;;
1026
1027 -site | --site | --sit)
1028 ac_prev=site ;;
1029 -site=* | --site=* | --sit=*)
1030 site=$ac_optarg ;;
1031
1032 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1033 ac_prev=srcdir ;;
1034 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1035 srcdir=$ac_optarg ;;
1036
1037 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1038 | --syscon | --sysco | --sysc | --sys | --sy)
1039 ac_prev=sysconfdir ;;
1040 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1041 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1042 sysconfdir=$ac_optarg ;;
1043
1044 -target | --target | --targe | --targ | --tar | --ta | --t)
1045 ac_prev=target_alias ;;
1046 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1047 target_alias=$ac_optarg ;;
1048
1049 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1050 verbose=yes ;;
1051
1052 -version | --version | --versio | --versi | --vers | -V)
1053 ac_init_version=: ;;
1054
1055 -with-* | --with-*)
1056 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1057 # Reject names that are not valid shell variable names.
1058 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1059 as_fn_error $? "invalid package name: '$ac_useropt'"
1060 ac_useropt_orig=$ac_useropt
1061 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1062 case $ac_user_opts in
1063 *"
1064 "with_$ac_useropt"
1065 "*) ;;
1066 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1067 ac_unrecognized_sep=', ';;
1068 esac
1069 eval with_$ac_useropt=\$ac_optarg ;;
1070
1071 -without-* | --without-*)
1072 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1073 # Reject names that are not valid shell variable names.
1074 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1075 as_fn_error $? "invalid package name: '$ac_useropt'"
1076 ac_useropt_orig=$ac_useropt
1077 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1078 case $ac_user_opts in
1079 *"
1080 "with_$ac_useropt"
1081 "*) ;;
1082 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1083 ac_unrecognized_sep=', ';;
1084 esac
1085 eval with_$ac_useropt=no ;;
1086
1087 --x)
1088 # Obsolete; use --with-x.
1089 with_x=yes ;;
1090
1091 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1092 | --x-incl | --x-inc | --x-in | --x-i)
1093 ac_prev=x_includes ;;
1094 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1095 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1096 x_includes=$ac_optarg ;;
1097
1098 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1099 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1100 ac_prev=x_libraries ;;
1101 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1102 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1103 x_libraries=$ac_optarg ;;
1104
1105 -*) as_fn_error $? "unrecognized option: '$ac_option'
1106 Try '$0 --help' for more information"
1107 ;;
1108
1109 *=*)
1110 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1111 # Reject names that are not valid shell variable names.
1112 case $ac_envvar in #(
1113 '' | [0-9]* | *[!_$as_cr_alnum]* )
1114 as_fn_error $? "invalid variable name: '$ac_envvar'" ;;
1115 esac
1116 eval $ac_envvar=\$ac_optarg
1117 export $ac_envvar ;;
1118
1119 *)
1120 # FIXME: should be removed in autoconf 3.0.
1121 printf "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2
1122 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1123 printf "%s\n" "$as_me: WARNING: invalid host type: $ac_option" >&2
1124 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1125 ;;
1126
1127 esac
1128 done
1129
1130 if test -n "$ac_prev"; then
1131 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1132 as_fn_error $? "missing argument to $ac_option"
1133 fi
1134
1135 if test -n "$ac_unrecognized_opts"; then
1136 case $enable_option_checking in
1137 no) ;;
1138 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1139 *) printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1140 esac
1141 fi
1142
1143 # Check all directory arguments for consistency.
1144 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1145 datadir sysconfdir sharedstatedir localstatedir includedir \
1146 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1147 libdir localedir mandir runstatedir
1148 do
1149 eval ac_val=\$$ac_var
1150 # Remove trailing slashes.
1151 case $ac_val in
1152 */ )
1153 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1154 eval $ac_var=\$ac_val;;
1155 esac
1156 # Be sure to have absolute directory names.
1157 case $ac_val in
1158 [\\/$]* | ?:[\\/]* ) continue;;
1159 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1160 esac
1161 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1162 done
1163
1164 # There might be people who depend on the old broken behavior: '$host'
1165 # used to hold the argument of --host etc.
1166 # FIXME: To remove some day.
1167 build=$build_alias
1168 host=$host_alias
1169 target=$target_alias
1170
1171 # FIXME: To remove some day.
1172 if test "x$host_alias" != x; then
1173 if test "x$build_alias" = x; then
1174 cross_compiling=maybe
1175 elif test "x$build_alias" != "x$host_alias"; then
1176 cross_compiling=yes
1177 fi
1178 fi
1179
1180 ac_tool_prefix=
1181 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1182
1183 test "$silent" = yes && exec 6>/dev/null
1184
1185
1186 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1187 ac_ls_di=`ls -di .` &&
1188 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1189 as_fn_error $? "working directory cannot be determined"
1190 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1191 as_fn_error $? "pwd does not report name of working directory"
1192
1193
1194 # Find the source files, if location was not specified.
1195 if test -z "$srcdir"; then
1196 ac_srcdir_defaulted=yes
1197 # Try the directory containing this script, then the parent directory.
1198 ac_confdir=`$as_dirname -- "$as_myself" ||
1199 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1200 X"$as_myself" : 'X\(//\)[^/]' \| \
1201 X"$as_myself" : 'X\(//\)$' \| \
1202 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1203 printf "%s\n" X"$as_myself" |
1204 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1205 s//\1/
1206 q
1207 }
1208 /^X\(\/\/\)[^/].*/{
1209 s//\1/
1210 q
1211 }
1212 /^X\(\/\/\)$/{
1213 s//\1/
1214 q
1215 }
1216 /^X\(\/\).*/{
1217 s//\1/
1218 q
1219 }
1220 s/.*/./; q'`
1221 srcdir=$ac_confdir
1222 if test ! -r "$srcdir/$ac_unique_file"; then
1223 srcdir=..
1224 fi
1225 else
1226 ac_srcdir_defaulted=no
1227 fi
1228 if test ! -r "$srcdir/$ac_unique_file"; then
1229 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1230 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1231 fi
1232 ac_msg="sources are in $srcdir, but 'cd $srcdir' does not work"
1233 ac_abs_confdir=`(
1234 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1235 pwd)`
1236 # When building in place, set srcdir=.
1237 if test "$ac_abs_confdir" = "$ac_pwd"; then
1238 srcdir=.
1239 fi
1240 # Remove unnecessary trailing slashes from srcdir.
1241 # Double slashes in file names in object file debugging info
1242 # mess up M-x gdb in Emacs.
1243 case $srcdir in
1244 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1245 esac
1246 for ac_var in $ac_precious_vars; do
1247 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1248 eval ac_env_${ac_var}_value=\$${ac_var}
1249 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1250 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1251 done
1252
1253 #
1254 # Report the --help message.
1255 #
1256 if test "$ac_init_help" = "long"; then
1257 # Omit some internal or obsolete options to make the list less imposing.
1258 # This message is too long to be a string in the A/UX 3.1 sh.
1259 cat <<_ACEOF
1260 'configure' configures less 1 to adapt to many kinds of systems.
1261
1262 Usage: $0 [OPTION]... [VAR=VALUE]...
1263
1264 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1265 VAR=VALUE. See below for descriptions of some of the useful variables.
1266
1267 Defaults for the options are specified in brackets.
1268
1269 Configuration:
1270 -h, --help display this help and exit
1271 --help=short display options specific to this package
1272 --help=recursive display the short help of all the included packages
1273 -V, --version display version information and exit
1274 -q, --quiet, --silent do not print 'checking ...' messages
1275 --cache-file=FILE cache test results in FILE [disabled]
1276 -C, --config-cache alias for '--cache-file=config.cache'
1277 -n, --no-create do not create output files
1278 --srcdir=DIR find the sources in DIR [configure dir or '..']
1279
1280 Installation directories:
1281 --prefix=PREFIX install architecture-independent files in PREFIX
1282 [$ac_default_prefix]
1283 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1284 [PREFIX]
1285
1286 By default, 'make install' will install all the files in
1287 '$ac_default_prefix/bin', '$ac_default_prefix/lib' etc. You can specify
1288 an installation prefix other than '$ac_default_prefix' using '--prefix',
1289 for instance '--prefix=\$HOME'.
1290
1291 For better control, use the options below.
1292
1293 Fine tuning of the installation directories:
1294 --bindir=DIR user executables [EPREFIX/bin]
1295 --sbindir=DIR system admin executables [EPREFIX/sbin]
1296 --libexecdir=DIR program executables [EPREFIX/libexec]
1297 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1298 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1299 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1300 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run]
1301 --libdir=DIR object code libraries [EPREFIX/lib]
1302 --includedir=DIR C header files [PREFIX/include]
1303 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1304 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1305 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1306 --infodir=DIR info documentation [DATAROOTDIR/info]
1307 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1308 --mandir=DIR man documentation [DATAROOTDIR/man]
1309 --docdir=DIR documentation root [DATAROOTDIR/doc/less]
1310 --htmldir=DIR html documentation [DOCDIR]
1311 --dvidir=DIR dvi documentation [DOCDIR]
1312 --pdfdir=DIR pdf documentation [DOCDIR]
1313 --psdir=DIR ps documentation [DOCDIR]
1314 _ACEOF
1315
1316 cat <<\_ACEOF
1317 _ACEOF
1318 fi
1319
1320 if test -n "$ac_init_help"; then
1321 case $ac_init_help in
1322 short | recursive ) echo "Configuration of less 1:";;
1323 esac
1324 cat <<\_ACEOF
1325
1326 Optional Features:
1327 --disable-option-checking ignore unrecognized --enable/--with options
1328 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1329 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1330 --disable-largefile omit support for large files
1331 --enable-year2038 support timestamps after 2038
1332
1333 Optional Packages:
1334 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1335 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1336 --with-secure Compile in secure mode
1337 --with-regex=LIB select regular expression library (LIB is one of auto,none,gnu,pcre,pcre2,posix,regcmp,re_comp,regcomp,regcomp-local) [auto]
1338 --with-editor=PROGRAM use PROGRAM as the default editor [vi]
1339
1340 Some influential environment variables:
1341 CC C compiler command
1342 CFLAGS C compiler flags
1343 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1344 nonstandard directory <lib dir>
1345 LIBS libraries to pass to the linker, e.g. -l<library>
1346 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1347 you have headers in a nonstandard directory <include dir>
1348
1349 Use these variables to override the choices made by 'configure' or to help
1350 it to find libraries and programs with nonstandard names/locations.
1351
1352 Report bugs to the package provider.
1353 _ACEOF
1354 ac_status=$?
1355 fi
1356
1357 if test "$ac_init_help" = "recursive"; then
1358 # If there are subdirs, report their specific --help.
1359 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1360 test -d "$ac_dir" ||
1361 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1362 continue
1363 ac_builddir=.
1364
1365 case "$ac_dir" in
1366 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1367 *)
1368 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
1369 # A ".." for each directory in $ac_dir_suffix.
1370 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1371 case $ac_top_builddir_sub in
1372 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1373 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1374 esac ;;
1375 esac
1376 ac_abs_top_builddir=$ac_pwd
1377 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1378 # for backward compatibility:
1379 ac_top_builddir=$ac_top_build_prefix
1380
1381 case $srcdir in
1382 .) # We are building in place.
1383 ac_srcdir=.
1384 ac_top_srcdir=$ac_top_builddir_sub
1385 ac_abs_top_srcdir=$ac_pwd ;;
1386 [\\/]* | ?:[\\/]* ) # Absolute name.
1387 ac_srcdir=$srcdir$ac_dir_suffix;
1388 ac_top_srcdir=$srcdir
1389 ac_abs_top_srcdir=$srcdir ;;
1390 *) # Relative name.
1391 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1392 ac_top_srcdir=$ac_top_build_prefix$srcdir
1393 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1394 esac
1395 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1396
1397 cd "$ac_dir" || { ac_status=$?; continue; }
1398 # Check for configure.gnu first; this name is used for a wrapper for
1399 # Metaconfig's "Configure" on case-insensitive file systems.
1400 if test -f "$ac_srcdir/configure.gnu"; then
1401 echo &&
1402 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1403 elif test -f "$ac_srcdir/configure"; then
1404 echo &&
1405 $SHELL "$ac_srcdir/configure" --help=recursive
1406 else
1407 printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1408 fi || ac_status=$?
1409 cd "$ac_pwd" || { ac_status=$?; break; }
1410 done
1411 fi
1412
1413 test -n "$ac_init_help" && exit $ac_status
1414 if $ac_init_version; then
1415 cat <<\_ACEOF
1416 less configure 1
1417 generated by GNU Autoconf 2.72
1418
1419 Copyright (C) 2023 Free Software Foundation, Inc.
1420 This configure script is free software; the Free Software Foundation
1421 gives unlimited permission to copy, distribute and modify it.
1422 _ACEOF
1423 exit
1424 fi
1425
1426 ## ------------------------ ##
1427 ## Autoconf initialization. ##
1428 ## ------------------------ ##
1429
1430 # ac_fn_c_try_compile LINENO
1431 # --------------------------
1432 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1433 ac_fn_c_try_compile ()
1434 {
1435 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1436 rm -f conftest.$ac_objext conftest.beam
1437 if { { ac_try="$ac_compile"
1438 case "(($ac_try" in
1439 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1440 *) ac_try_echo=$ac_try;;
1441 esac
1442 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1443 printf "%s\n" "$ac_try_echo"; } >&5
1444 (eval "$ac_compile") 2>conftest.err
1445 ac_status=$?
1446 if test -s conftest.err; then
1447 grep -v '^ *+' conftest.err >conftest.er1
1448 cat conftest.er1 >&5
1449 mv -f conftest.er1 conftest.err
1450 fi
1451 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1452 test $ac_status = 0; } && {
1453 test -z "$ac_c_werror_flag" ||
1454 test ! -s conftest.err
1455 } && test -s conftest.$ac_objext
1456 then :
1457 ac_retval=0
1458 else case e in #(
1459 e) printf "%s\n" "$as_me: failed program was:" >&5
1460 sed 's/^/| /' conftest.$ac_ext >&5
1461
1462 ac_retval=1 ;;
1463 esac
1464 fi
1465 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1466 as_fn_set_status $ac_retval
1467
1468 } # ac_fn_c_try_compile
1469
1470 # ac_fn_c_try_link LINENO
1471 # -----------------------
1472 # Try to link conftest.$ac_ext, and return whether this succeeded.
1473 ac_fn_c_try_link ()
1474 {
1475 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1476 rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext
1477 if { { ac_try="$ac_link"
1478 case "(($ac_try" in
1479 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1480 *) ac_try_echo=$ac_try;;
1481 esac
1482 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1483 printf "%s\n" "$ac_try_echo"; } >&5
1484 (eval "$ac_link") 2>conftest.err
1485 ac_status=$?
1486 if test -s conftest.err; then
1487 grep -v '^ *+' conftest.err >conftest.er1
1488 cat conftest.er1 >&5
1489 mv -f conftest.er1 conftest.err
1490 fi
1491 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1492 test $ac_status = 0; } && {
1493 test -z "$ac_c_werror_flag" ||
1494 test ! -s conftest.err
1495 } && test -s conftest$ac_exeext && {
1496 test "$cross_compiling" = yes ||
1497 test -x conftest$ac_exeext
1498 }
1499 then :
1500 ac_retval=0
1501 else case e in #(
1502 e) printf "%s\n" "$as_me: failed program was:" >&5
1503 sed 's/^/| /' conftest.$ac_ext >&5
1504
1505 ac_retval=1 ;;
1506 esac
1507 fi
1508 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1509 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1510 # interfere with the next link command; also delete a directory that is
1511 # left behind by Apple's compiler. We do this before executing the actions.
1512 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1513 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1514 as_fn_set_status $ac_retval
1515
1516 } # ac_fn_c_try_link
1517
1518 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1519 # -------------------------------------------------------
1520 # Tests whether HEADER exists and can be compiled using the include files in
1521 # INCLUDES, setting the cache variable VAR accordingly.
1522 ac_fn_c_check_header_compile ()
1523 {
1524 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1525 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1526 printf %s "checking for $2... " >&6; }
1527 if eval test \${$3+y}
1528 then :
1529 printf %s "(cached) " >&6
1530 else case e in #(
1531 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1532 /* end confdefs.h. */
1533 $4
1534 #include <$2>
1535 _ACEOF
1536 if ac_fn_c_try_compile "$LINENO"
1537 then :
1538 eval "$3=yes"
1539 else case e in #(
1540 e) eval "$3=no" ;;
1541 esac
1542 fi
1543 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
1544 esac
1545 fi
1546 eval ac_res=\$$3
1547 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1548 printf "%s\n" "$ac_res" >&6; }
1549 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1550
1551 } # ac_fn_c_check_header_compile
1552
1553 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1554 # -------------------------------------------
1555 # Tests whether TYPE exists after having included INCLUDES, setting cache
1556 # variable VAR accordingly.
1557 ac_fn_c_check_type ()
1558 {
1559 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1560 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1561 printf %s "checking for $2... " >&6; }
1562 if eval test \${$3+y}
1563 then :
1564 printf %s "(cached) " >&6
1565 else case e in #(
1566 e) eval "$3=no"
1567 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1568 /* end confdefs.h. */
1569 $4
1570 int
1571 main (void)
1572 {
1573 if (sizeof ($2))
1574 return 0;
1575 ;
1576 return 0;
1577 }
1578 _ACEOF
1579 if ac_fn_c_try_compile "$LINENO"
1580 then :
1581 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1582 /* end confdefs.h. */
1583 $4
1584 int
1585 main (void)
1586 {
1587 if (sizeof (($2)))
1588 return 0;
1589 ;
1590 return 0;
1591 }
1592 _ACEOF
1593 if ac_fn_c_try_compile "$LINENO"
1594 then :
1595
1596 else case e in #(
1597 e) eval "$3=yes" ;;
1598 esac
1599 fi
1600 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1601 fi
1602 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
1603 esac
1604 fi
1605 eval ac_res=\$$3
1606 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1607 printf "%s\n" "$ac_res" >&6; }
1608 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1609
1610 } # ac_fn_c_check_type
1611
1612 # ac_fn_c_check_func LINENO FUNC VAR
1613 # ----------------------------------
1614 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1615 ac_fn_c_check_func ()
1616 {
1617 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1618 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1619 printf %s "checking for $2... " >&6; }
1620 if eval test \${$3+y}
1621 then :
1622 printf %s "(cached) " >&6
1623 else case e in #(
1624 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1625 /* end confdefs.h. */
1626 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1627 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1628 #define $2 innocuous_$2
1629
1630 /* System header to define __stub macros and hopefully few prototypes,
1631 which can conflict with char $2 (void); below. */
1632
1633 #include <limits.h>
1634 #undef $2
1635
1636 /* Override any GCC internal prototype to avoid an error.
1637 Use char because int might match the return type of a GCC
1638 builtin and then its argument prototype would still apply. */
1639 #ifdef __cplusplus
1640 extern "C"
1641 #endif
1642 char $2 (void);
1643 /* The GNU C library defines this for functions which it implements
1644 to always fail with ENOSYS. Some functions are actually named
1645 something starting with __ and the normal name is an alias. */
1646 #if defined __stub_$2 || defined __stub___$2
1647 choke me
1648 #endif
1649
1650 int
1651 main (void)
1652 {
1653 return $2 ();
1654 ;
1655 return 0;
1656 }
1657 _ACEOF
1658 if ac_fn_c_try_link "$LINENO"
1659 then :
1660 eval "$3=yes"
1661 else case e in #(
1662 e) eval "$3=no" ;;
1663 esac
1664 fi
1665 rm -f core conftest.err conftest.$ac_objext conftest.beam \
1666 conftest$ac_exeext conftest.$ac_ext ;;
1667 esac
1668 fi
1669 eval ac_res=\$$3
1670 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1671 printf "%s\n" "$ac_res" >&6; }
1672 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1673
1674 } # ac_fn_c_check_func
1675
1676 # ac_fn_c_try_run LINENO
1677 # ----------------------
1678 # Try to run conftest.$ac_ext, and return whether this succeeded. Assumes that
1679 # executables *can* be run.
1680 ac_fn_c_try_run ()
1681 {
1682 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1683 if { { ac_try="$ac_link"
1684 case "(($ac_try" in
1685 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1686 *) ac_try_echo=$ac_try;;
1687 esac
1688 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1689 printf "%s\n" "$ac_try_echo"; } >&5
1690 (eval "$ac_link") 2>&5
1691 ac_status=$?
1692 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1693 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1694 { { case "(($ac_try" in
1695 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1696 *) ac_try_echo=$ac_try;;
1697 esac
1698 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1699 printf "%s\n" "$ac_try_echo"; } >&5
1700 (eval "$ac_try") 2>&5
1701 ac_status=$?
1702 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1703 test $ac_status = 0; }; }
1704 then :
1705 ac_retval=0
1706 else case e in #(
1707 e) printf "%s\n" "$as_me: program exited with status $ac_status" >&5
1708 printf "%s\n" "$as_me: failed program was:" >&5
1709 sed 's/^/| /' conftest.$ac_ext >&5
1710
1711 ac_retval=$ac_status ;;
1712 esac
1713 fi
1714 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1715 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1716 as_fn_set_status $ac_retval
1717
1718 } # ac_fn_c_try_run
1719 ac_configure_args_raw=
1720 for ac_arg
1721 do
1722 case $ac_arg in
1723 *\'*)
1724 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1725 esac
1726 as_fn_append ac_configure_args_raw " '$ac_arg'"
1727 done
1728
1729 case $ac_configure_args_raw in
1730 *$as_nl*)
1731 ac_safe_unquote= ;;
1732 *)
1733 ac_unsafe_z='|&;<>()$`\\"*?[ '' ' # This string ends in space, tab.
1734 ac_unsafe_a="$ac_unsafe_z#~"
1735 ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g"
1736 ac_configure_args_raw=` printf "%s\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;;
1737 esac
1738
1739 cat >config.log <<_ACEOF
1740 This file contains any messages produced by compilers while
1741 running configure, to aid debugging if configure makes a mistake.
1742
1743 It was created by less $as_me 1, which was
1744 generated by GNU Autoconf 2.72. Invocation command line was
1745
1746 $ $0$ac_configure_args_raw
1747
1748 _ACEOF
1749 exec 5>>config.log
1750 {
1751 cat <<_ASUNAME
1752 ## --------- ##
1753 ## Platform. ##
1754 ## --------- ##
1755
1756 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1757 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1758 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1759 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1760 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1761
1762 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1763 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1764
1765 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1766 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1767 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1768 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1769 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1770 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1771 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1772
1773 _ASUNAME
1774
1775 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1776 for as_dir in $PATH
1777 do
1778 IFS=$as_save_IFS
1779 case $as_dir in #(((
1780 '') as_dir=./ ;;
1781 */) ;;
1782 *) as_dir=$as_dir/ ;;
1783 esac
1784 printf "%s\n" "PATH: $as_dir"
1785 done
1786 IFS=$as_save_IFS
1787
1788 } >&5
1789
1790 cat >&5 <<_ACEOF
1791
1792
1793 ## ----------- ##
1794 ## Core tests. ##
1795 ## ----------- ##
1796
1797 _ACEOF
1798
1799
1800 # Keep a trace of the command line.
1801 # Strip out --no-create and --no-recursion so they do not pile up.
1802 # Strip out --silent because we don't want to record it for future runs.
1803 # Also quote any args containing shell meta-characters.
1804 # Make two passes to allow for proper duplicate-argument suppression.
1805 ac_configure_args=
1806 ac_configure_args0=
1807 ac_configure_args1=
1808 ac_must_keep_next=false
1809 for ac_pass in 1 2
1810 do
1811 for ac_arg
1812 do
1813 case $ac_arg in
1814 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1815 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1816 | -silent | --silent | --silen | --sile | --sil)
1817 continue ;;
1818 *\'*)
1819 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1820 esac
1821 case $ac_pass in
1822 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1823 2)
1824 as_fn_append ac_configure_args1 " '$ac_arg'"
1825 if test $ac_must_keep_next = true; then
1826 ac_must_keep_next=false # Got value, back to normal.
1827 else
1828 case $ac_arg in
1829 *=* | --config-cache | -C | -disable-* | --disable-* \
1830 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1831 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1832 | -with-* | --with-* | -without-* | --without-* | --x)
1833 case "$ac_configure_args0 " in
1834 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1835 esac
1836 ;;
1837 -* ) ac_must_keep_next=true ;;
1838 esac
1839 fi
1840 as_fn_append ac_configure_args " '$ac_arg'"
1841 ;;
1842 esac
1843 done
1844 done
1845 { ac_configure_args0=; unset ac_configure_args0;}
1846 { ac_configure_args1=; unset ac_configure_args1;}
1847
1848 # When interrupted or exit'd, cleanup temporary files, and complete
1849 # config.log. We remove comments because anyway the quotes in there
1850 # would cause problems or look ugly.
1851 # WARNING: Use '\'' to represent an apostrophe within the trap.
1852 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1853 trap 'exit_status=$?
1854 # Sanitize IFS.
1855 IFS=" "" $as_nl"
1856 # Save into config.log some information that might help in debugging.
1857 {
1858 echo
1859
1860 printf "%s\n" "## ---------------- ##
1861 ## Cache variables. ##
1862 ## ---------------- ##"
1863 echo
1864 # The following way of writing the cache mishandles newlines in values,
1865 (
1866 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1867 eval ac_val=\$$ac_var
1868 case $ac_val in #(
1869 *${as_nl}*)
1870 case $ac_var in #(
1871 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1872 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1873 esac
1874 case $ac_var in #(
1875 _ | IFS | as_nl) ;; #(
1876 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1877 *) { eval $ac_var=; unset $ac_var;} ;;
1878 esac ;;
1879 esac
1880 done
1881 (set) 2>&1 |
1882 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1883 *${as_nl}ac_space=\ *)
1884 sed -n \
1885 "s/'\''/'\''\\\\'\'''\''/g;
1886 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1887 ;; #(
1888 *)
1889 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1890 ;;
1891 esac |
1892 sort
1893 )
1894 echo
1895
1896 printf "%s\n" "## ----------------- ##
1897 ## Output variables. ##
1898 ## ----------------- ##"
1899 echo
1900 for ac_var in $ac_subst_vars
1901 do
1902 eval ac_val=\$$ac_var
1903 case $ac_val in
1904 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1905 esac
1906 printf "%s\n" "$ac_var='\''$ac_val'\''"
1907 done | sort
1908 echo
1909
1910 if test -n "$ac_subst_files"; then
1911 printf "%s\n" "## ------------------- ##
1912 ## File substitutions. ##
1913 ## ------------------- ##"
1914 echo
1915 for ac_var in $ac_subst_files
1916 do
1917 eval ac_val=\$$ac_var
1918 case $ac_val in
1919 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1920 esac
1921 printf "%s\n" "$ac_var='\''$ac_val'\''"
1922 done | sort
1923 echo
1924 fi
1925
1926 if test -s confdefs.h; then
1927 printf "%s\n" "## ----------- ##
1928 ## confdefs.h. ##
1929 ## ----------- ##"
1930 echo
1931 cat confdefs.h
1932 echo
1933 fi
1934 test "$ac_signal" != 0 &&
1935 printf "%s\n" "$as_me: caught signal $ac_signal"
1936 printf "%s\n" "$as_me: exit $exit_status"
1937 } >&5
1938 rm -f core *.core core.conftest.* &&
1939 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1940 exit $exit_status
1941 ' 0
1942 for ac_signal in 1 2 13 15; do
1943 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
1944 done
1945 ac_signal=0
1946
1947 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1948 rm -f -r conftest* confdefs.h
1949
1950 printf "%s\n" "/* confdefs.h */" > confdefs.h
1951
1952 # Predefined preprocessor variables.
1953
1954 printf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h
1955
1956 printf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h
1957
1958 printf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h
1959
1960 printf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h
1961
1962 printf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h
1963
1964 printf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h
1965
1966
1967 # Let the site file select an alternate cache file if it wants to.
1968 # Prefer an explicitly selected file to automatically selected ones.
1969 if test -n "$CONFIG_SITE"; then
1970 ac_site_files="$CONFIG_SITE"
1971 elif test "x$prefix" != xNONE; then
1972 ac_site_files="$prefix/share/config.site $prefix/etc/config.site"
1973 else
1974 ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1975 fi
1976
1977 for ac_site_file in $ac_site_files
1978 do
1979 case $ac_site_file in #(
1980 */*) :
1981 ;; #(
1982 *) :
1983 ac_site_file=./$ac_site_file ;;
1984 esac
1985 if test -f "$ac_site_file" && test -r "$ac_site_file"; then
1986 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
1987 printf "%s\n" "$as_me: loading site script $ac_site_file" >&6;}
1988 sed 's/^/| /' "$ac_site_file" >&5
1989 . "$ac_site_file" \
1990 || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
1991 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
1992 as_fn_error $? "failed to load site script $ac_site_file
1993 See 'config.log' for more details" "$LINENO" 5; }
1994 fi
1995 done
1996
1997 if test -r "$cache_file"; then
1998 # Some versions of bash will fail to source /dev/null (special files
1999 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2000 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2001 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2002 printf "%s\n" "$as_me: loading cache $cache_file" >&6;}
2003 case $cache_file in
2004 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2005 *) . "./$cache_file";;
2006 esac
2007 fi
2008 else
2009 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2010 printf "%s\n" "$as_me: creating cache $cache_file" >&6;}
2011 >$cache_file
2012 fi
2013
2014 # Test code for whether the C compiler supports C89 (global declarations)
2015 ac_c_conftest_c89_globals='
2016 /* Does the compiler advertise C89 conformance?
2017 Do not test the value of __STDC__, because some compilers set it to 0
2018 while being otherwise adequately conformant. */
2019 #if !defined __STDC__
2020 # error "Compiler does not advertise C89 conformance"
2021 #endif
2022
2023 #include <stddef.h>
2024 #include <stdarg.h>
2025 struct stat;
2026 /* Most of the following tests are stolen from RCS 5.7 src/conf.sh. */
2027 struct buf { int x; };
2028 struct buf * (*rcsopen) (struct buf *, struct stat *, int);
2029 static char *e (char **p, int i)
2030 {
2031 return p[i];
2032 }
2033 static char *f (char * (*g) (char **, int), char **p, ...)
2034 {
2035 char *s;
2036 va_list v;
2037 va_start (v,p);
2038 s = g (p, va_arg (v,int));
2039 va_end (v);
2040 return s;
2041 }
2042
2043 /* C89 style stringification. */
2044 #define noexpand_stringify(a) #a
2045 const char *stringified = noexpand_stringify(arbitrary+token=sequence);
2046
2047 /* C89 style token pasting. Exercises some of the corner cases that
2048 e.g. old MSVC gets wrong, but not very hard. */
2049 #define noexpand_concat(a,b) a##b
2050 #define expand_concat(a,b) noexpand_concat(a,b)
2051 extern int vA;
2052 extern int vbee;
2053 #define aye A
2054 #define bee B
2055 int *pvA = &expand_concat(v,aye);
2056 int *pvbee = &noexpand_concat(v,bee);
2057
2058 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2059 function prototypes and stuff, but not \xHH hex character constants.
2060 These do not provoke an error unfortunately, instead are silently treated
2061 as an "x". The following induces an error, until -std is added to get
2062 proper ANSI mode. Curiously \x00 != x always comes out true, for an
2063 array size at least. It is necessary to write \x00 == 0 to get something
2064 that is true only with -std. */
2065 int osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1];
2066
2067 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2068 inside strings and character constants. */
2069 #define FOO(x) '\''x'\''
2070 int xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1];
2071
2072 int test (int i, double x);
2073 struct s1 {int (*f) (int a);};
2074 struct s2 {int (*f) (double a);};
2075 int pairnames (int, char **, int *(*)(struct buf *, struct stat *, int),
2076 int, int);'
2077
2078 # Test code for whether the C compiler supports C89 (body of main).
2079 ac_c_conftest_c89_main='
2080 ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]);
2081 '
2082
2083 # Test code for whether the C compiler supports C99 (global declarations)
2084 ac_c_conftest_c99_globals='
2085 /* Does the compiler advertise C99 conformance? */
2086 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L
2087 # error "Compiler does not advertise C99 conformance"
2088 #endif
2089
2090 // See if C++-style comments work.
2091
2092 #include <stdbool.h>
2093 extern int puts (const char *);
2094 extern int printf (const char *, ...);
2095 extern int dprintf (int, const char *, ...);
2096 extern void *malloc (size_t);
2097 extern void free (void *);
2098
2099 // Check varargs macros. These examples are taken from C99 6.10.3.5.
2100 // dprintf is used instead of fprintf to avoid needing to declare
2101 // FILE and stderr.
2102 #define debug(...) dprintf (2, __VA_ARGS__)
2103 #define showlist(...) puts (#__VA_ARGS__)
2104 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
2105 static void
2106 test_varargs_macros (void)
2107 {
2108 int x = 1234;
2109 int y = 5678;
2110 debug ("Flag");
2111 debug ("X = %d\n", x);
2112 showlist (The first, second, and third items.);
2113 report (x>y, "x is %d but y is %d", x, y);
2114 }
2115
2116 // Check long long types.
2117 #define BIG64 18446744073709551615ull
2118 #define BIG32 4294967295ul
2119 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
2120 #if !BIG_OK
2121 #error "your preprocessor is broken"
2122 #endif
2123 #if BIG_OK
2124 #else
2125 #error "your preprocessor is broken"
2126 #endif
2127 static long long int bignum = -9223372036854775807LL;
2128 static unsigned long long int ubignum = BIG64;
2129
2130 struct incomplete_array
2131 {
2132 int datasize;
2133 double data[];
2134 };
2135
2136 struct named_init {
2137 int number;
2138 const wchar_t *name;
2139 double average;
2140 };
2141
2142 typedef const char *ccp;
2143
2144 static inline int
2145 test_restrict (ccp restrict text)
2146 {
2147 // Iterate through items via the restricted pointer.
2148 // Also check for declarations in for loops.
2149 for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i)
2150 continue;
2151 return 0;
2152 }
2153
2154 // Check varargs and va_copy.
2155 static bool
2156 test_varargs (const char *format, ...)
2157 {
2158 va_list args;
2159 va_start (args, format);
2160 va_list args_copy;
2161 va_copy (args_copy, args);
2162
2163 const char *str = "";
2164 int number = 0;
2165 float fnumber = 0;
2166
2167 while (*format)
2168 {
2169 switch (*format++)
2170 {
2171 case '\''s'\'': // string
2172 str = va_arg (args_copy, const char *);
2173 break;
2174 case '\''d'\'': // int
2175 number = va_arg (args_copy, int);
2176 break;
2177 case '\''f'\'': // float
2178 fnumber = va_arg (args_copy, double);
2179 break;
2180 default:
2181 break;
2182 }
2183 }
2184 va_end (args_copy);
2185 va_end (args);
2186
2187 return *str && number && fnumber;
2188 }
2189 '
2190
2191 # Test code for whether the C compiler supports C99 (body of main).
2192 ac_c_conftest_c99_main='
2193 // Check bool.
2194 _Bool success = false;
2195 success |= (argc != 0);
2196
2197 // Check restrict.
2198 if (test_restrict ("String literal") == 0)
2199 success = true;
2200 char *restrict newvar = "Another string";
2201
2202 // Check varargs.
2203 success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234);
2204 test_varargs_macros ();
2205
2206 // Check flexible array members.
2207 struct incomplete_array *ia =
2208 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
2209 ia->datasize = 10;
2210 for (int i = 0; i < ia->datasize; ++i)
2211 ia->data[i] = i * 1.234;
2212 // Work around memory leak warnings.
2213 free (ia);
2214
2215 // Check named initializers.
2216 struct named_init ni = {
2217 .number = 34,
2218 .name = L"Test wide string",
2219 .average = 543.34343,
2220 };
2221
2222 ni.number = 58;
2223
2224 int dynamic_array[ni.number];
2225 dynamic_array[0] = argv[0][0];
2226 dynamic_array[ni.number - 1] = 543;
2227
2228 // work around unused variable warnings
2229 ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\''
2230 || dynamic_array[ni.number - 1] != 543);
2231 '
2232
2233 # Test code for whether the C compiler supports C11 (global declarations)
2234 ac_c_conftest_c11_globals='
2235 /* Does the compiler advertise C11 conformance? */
2236 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L
2237 # error "Compiler does not advertise C11 conformance"
2238 #endif
2239
2240 // Check _Alignas.
2241 char _Alignas (double) aligned_as_double;
2242 char _Alignas (0) no_special_alignment;
2243 extern char aligned_as_int;
2244 char _Alignas (0) _Alignas (int) aligned_as_int;
2245
2246 // Check _Alignof.
2247 enum
2248 {
2249 int_alignment = _Alignof (int),
2250 int_array_alignment = _Alignof (int[100]),
2251 char_alignment = _Alignof (char)
2252 };
2253 _Static_assert (0 < -_Alignof (int), "_Alignof is signed");
2254
2255 // Check _Noreturn.
2256 int _Noreturn does_not_return (void) { for (;;) continue; }
2257
2258 // Check _Static_assert.
2259 struct test_static_assert
2260 {
2261 int x;
2262 _Static_assert (sizeof (int) <= sizeof (long int),
2263 "_Static_assert does not work in struct");
2264 long int y;
2265 };
2266
2267 // Check UTF-8 literals.
2268 #define u8 syntax error!
2269 char const utf8_literal[] = u8"happens to be ASCII" "another string";
2270
2271 // Check duplicate typedefs.
2272 typedef long *long_ptr;
2273 typedef long int *long_ptr;
2274 typedef long_ptr long_ptr;
2275
2276 // Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1.
2277 struct anonymous
2278 {
2279 union {
2280 struct { int i; int j; };
2281 struct { int k; long int l; } w;
2282 };
2283 int m;
2284 } v1;
2285 '
2286
2287 # Test code for whether the C compiler supports C11 (body of main).
2288 ac_c_conftest_c11_main='
2289 _Static_assert ((offsetof (struct anonymous, i)
2290 == offsetof (struct anonymous, w.k)),
2291 "Anonymous union alignment botch");
2292 v1.i = 2;
2293 v1.w.k = 5;
2294 ok |= v1.i != 5;
2295 '
2296
2297 # Test code for whether the C compiler supports C11 (complete).
2298 ac_c_conftest_c11_program="${ac_c_conftest_c89_globals}
2299 ${ac_c_conftest_c99_globals}
2300 ${ac_c_conftest_c11_globals}
2301
2302 int
2303 main (int argc, char **argv)
2304 {
2305 int ok = 0;
2306 ${ac_c_conftest_c89_main}
2307 ${ac_c_conftest_c99_main}
2308 ${ac_c_conftest_c11_main}
2309 return ok;
2310 }
2311 "
2312
2313 # Test code for whether the C compiler supports C99 (complete).
2314 ac_c_conftest_c99_program="${ac_c_conftest_c89_globals}
2315 ${ac_c_conftest_c99_globals}
2316
2317 int
2318 main (int argc, char **argv)
2319 {
2320 int ok = 0;
2321 ${ac_c_conftest_c89_main}
2322 ${ac_c_conftest_c99_main}
2323 return ok;
2324 }
2325 "
2326
2327 # Test code for whether the C compiler supports C89 (complete).
2328 ac_c_conftest_c89_program="${ac_c_conftest_c89_globals}
2329
2330 int
2331 main (int argc, char **argv)
2332 {
2333 int ok = 0;
2334 ${ac_c_conftest_c89_main}
2335 return ok;
2336 }
2337 "
2338
2339 as_fn_append ac_header_c_list " stdio.h stdio_h HAVE_STDIO_H"
2340 as_fn_append ac_header_c_list " stdlib.h stdlib_h HAVE_STDLIB_H"
2341 as_fn_append ac_header_c_list " string.h string_h HAVE_STRING_H"
2342 as_fn_append ac_header_c_list " inttypes.h inttypes_h HAVE_INTTYPES_H"
2343 as_fn_append ac_header_c_list " stdint.h stdint_h HAVE_STDINT_H"
2344 as_fn_append ac_header_c_list " strings.h strings_h HAVE_STRINGS_H"
2345 as_fn_append ac_header_c_list " sys/stat.h sys_stat_h HAVE_SYS_STAT_H"
2346 as_fn_append ac_header_c_list " sys/types.h sys_types_h HAVE_SYS_TYPES_H"
2347 as_fn_append ac_header_c_list " unistd.h unistd_h HAVE_UNISTD_H"
2348 as_fn_append ac_header_c_list " ctype.h ctype_h HAVE_CTYPE_H"
2349 as_fn_append ac_header_c_list " errno.h errno_h HAVE_ERRNO_H"
2350 as_fn_append ac_header_c_list " fcntl.h fcntl_h HAVE_FCNTL_H"
2351 as_fn_append ac_header_c_list " limits.h limits_h HAVE_LIMITS_H"
2352 as_fn_append ac_header_c_list " stdckdint.h stdckdint_h HAVE_STDCKDINT_H"
2353 as_fn_append ac_header_c_list " termcap.h termcap_h HAVE_TERMCAP_H"
2354 as_fn_append ac_header_c_list " ncurses/termcap.h ncurses_termcap_h HAVE_NCURSES_TERMCAP_H"
2355 as_fn_append ac_header_c_list " ncursesw/termcap.h ncursesw_termcap_h HAVE_NCURSESW_TERMCAP_H"
2356 as_fn_append ac_header_c_list " termio.h termio_h HAVE_TERMIO_H"
2357 as_fn_append ac_header_c_list " termios.h termios_h HAVE_TERMIOS_H"
2358 as_fn_append ac_header_c_list " time.h time_h HAVE_TIME_H"
2359 as_fn_append ac_header_c_list " values.h values_h HAVE_VALUES_H"
2360 as_fn_append ac_header_c_list " linux/magic.h linux_magic_h HAVE_LINUX_MAGIC_H"
2361 as_fn_append ac_header_c_list " sys/ioctl.h sys_ioctl_h HAVE_SYS_IOCTL_H"
2362 as_fn_append ac_header_c_list " sys/stream.h sys_stream_h HAVE_SYS_STREAM_H"
2363 as_fn_append ac_header_c_list " sys/wait.h sys_wait_h HAVE_SYS_WAIT_H"
2364 as_fn_append ac_header_c_list " wctype.h wctype_h HAVE_WCTYPE_H"
2365
2366 # Auxiliary files required by this configure script.
2367 ac_aux_files="install-sh"
2368
2369 # Locations in which to look for auxiliary files.
2370 ac_aux_dir_candidates="${srcdir}${PATH_SEPARATOR}${srcdir}/..${PATH_SEPARATOR}${srcdir}/../.."
2371
2372 # Search for a directory containing all of the required auxiliary files,
2373 # $ac_aux_files, from the $PATH-style list $ac_aux_dir_candidates.
2374 # If we don't find one directory that contains all the files we need,
2375 # we report the set of missing files from the *first* directory in
2376 # $ac_aux_dir_candidates and give up.
2377 ac_missing_aux_files=""
2378 ac_first_candidate=:
2379 printf "%s\n" "$as_me:${as_lineno-$LINENO}: looking for aux files: $ac_aux_files" >&5
2380 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2381 as_found=false
2382 for as_dir in $ac_aux_dir_candidates
2383 do
2384 IFS=$as_save_IFS
2385 case $as_dir in #(((
2386 '') as_dir=./ ;;
2387 */) ;;
2388 *) as_dir=$as_dir/ ;;
2389 esac
2390 as_found=:
2391
2392 printf "%s\n" "$as_me:${as_lineno-$LINENO}: trying $as_dir" >&5
2393 ac_aux_dir_found=yes
2394 ac_install_sh=
2395 for ac_aux in $ac_aux_files
2396 do
2397 # As a special case, if "install-sh" is required, that requirement
2398 # can be satisfied by any of "install-sh", "install.sh", or "shtool",
2399 # and $ac_install_sh is set appropriately for whichever one is found.
2400 if test x"$ac_aux" = x"install-sh"
2401 then
2402 if test -f "${as_dir}install-sh"; then
2403 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install-sh found" >&5
2404 ac_install_sh="${as_dir}install-sh -c"
2405 elif test -f "${as_dir}install.sh"; then
2406 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install.sh found" >&5
2407 ac_install_sh="${as_dir}install.sh -c"
2408 elif test -f "${as_dir}shtool"; then
2409 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}shtool found" >&5
2410 ac_install_sh="${as_dir}shtool install -c"
2411 else
2412 ac_aux_dir_found=no
2413 if $ac_first_candidate; then
2414 ac_missing_aux_files="${ac_missing_aux_files} install-sh"
2415 else
2416 break
2417 fi
2418 fi
2419 else
2420 if test -f "${as_dir}${ac_aux}"; then
2421 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}${ac_aux} found" >&5
2422 else
2423 ac_aux_dir_found=no
2424 if $ac_first_candidate; then
2425 ac_missing_aux_files="${ac_missing_aux_files} ${ac_aux}"
2426 else
2427 break
2428 fi
2429 fi
2430 fi
2431 done
2432 if test "$ac_aux_dir_found" = yes; then
2433 ac_aux_dir="$as_dir"
2434 break
2435 fi
2436 ac_first_candidate=false
2437
2438 as_found=false
2439 done
2440 IFS=$as_save_IFS
2441 if $as_found
2442 then :
2443
2444 else case e in #(
2445 e) as_fn_error $? "cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5 ;;
2446 esac
2447 fi
2448
2449
2450 # These three variables are undocumented and unsupported,
2451 # and are intended to be withdrawn in a future Autoconf release.
2452 # They can cause serious problems if a builder's source tree is in a directory
2453 # whose full name contains unusual characters.
2454 if test -f "${ac_aux_dir}config.guess"; then
2455 ac_config_guess="$SHELL ${ac_aux_dir}config.guess"
2456 fi
2457 if test -f "${ac_aux_dir}config.sub"; then
2458 ac_config_sub="$SHELL ${ac_aux_dir}config.sub"
2459 fi
2460 if test -f "$ac_aux_dir/configure"; then
2461 ac_configure="$SHELL ${ac_aux_dir}configure"
2462 fi
2463
2464 # Check that the precious variables saved in the cache have kept the same
2465 # value.
2466 ac_cache_corrupted=false
2467 for ac_var in $ac_precious_vars; do
2468 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2469 eval ac_new_set=\$ac_env_${ac_var}_set
2470 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2471 eval ac_new_val=\$ac_env_${ac_var}_value
2472 case $ac_old_set,$ac_new_set in
2473 set,)
2474 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' was set to '$ac_old_val' in the previous run" >&5
2475 printf "%s\n" "$as_me: error: '$ac_var' was set to '$ac_old_val' in the previous run" >&2;}
2476 ac_cache_corrupted=: ;;
2477 ,set)
2478 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' was not set in the previous run" >&5
2479 printf "%s\n" "$as_me: error: '$ac_var' was not set in the previous run" >&2;}
2480 ac_cache_corrupted=: ;;
2481 ,);;
2482 *)
2483 if test "x$ac_old_val" != "x$ac_new_val"; then
2484 # differences in whitespace do not lead to failure.
2485 ac_old_val_w=`echo x $ac_old_val`
2486 ac_new_val_w=`echo x $ac_new_val`
2487 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2488 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' has changed since the previous run:" >&5
2489 printf "%s\n" "$as_me: error: '$ac_var' has changed since the previous run:" >&2;}
2490 ac_cache_corrupted=:
2491 else
2492 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in '$ac_var' since the previous run:" >&5
2493 printf "%s\n" "$as_me: warning: ignoring whitespace changes in '$ac_var' since the previous run:" >&2;}
2494 eval $ac_var=\$ac_old_val
2495 fi
2496 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: former value: '$ac_old_val'" >&5
2497 printf "%s\n" "$as_me: former value: '$ac_old_val'" >&2;}
2498 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: current value: '$ac_new_val'" >&5
2499 printf "%s\n" "$as_me: current value: '$ac_new_val'" >&2;}
2500 fi;;
2501 esac
2502 # Pass precious variables to config.status.
2503 if test "$ac_new_set" = set; then
2504 case $ac_new_val in
2505 *\'*) ac_arg=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2506 *) ac_arg=$ac_var=$ac_new_val ;;
2507 esac
2508 case " $ac_configure_args " in
2509 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2510 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2511 esac
2512 fi
2513 done
2514 if $ac_cache_corrupted; then
2515 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
2516 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
2517 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2518 printf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;}
2519 as_fn_error $? "run '${MAKE-make} distclean' and/or 'rm $cache_file'
2520 and start over" "$LINENO" 5
2521 fi
2522 ## -------------------- ##
2523 ## Main body of script. ##
2524 ## -------------------- ##
2525
2526 ac_ext=c
2527 ac_cpp='$CPP $CPPFLAGS'
2528 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2529 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2530 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2531
2532
2533
2534 ac_config_headers="$ac_config_headers defines.h"
2535
2536
2537 # Checks for programs.
2538
2539
2540
2541
2542
2543
2544
2545
2546
2547 ac_ext=c
2548 ac_cpp='$CPP $CPPFLAGS'
2549 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2550 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2551 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2552 if test -n "$ac_tool_prefix"; then
2553 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2554 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2555 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2556 printf %s "checking for $ac_word... " >&6; }
2557 if test ${ac_cv_prog_CC+y}
2558 then :
2559 printf %s "(cached) " >&6
2560 else case e in #(
2561 e) if test -n "$CC"; then
2562 ac_cv_prog_CC="$CC" # Let the user override the test.
2563 else
2564 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2565 for as_dir in $PATH
2566 do
2567 IFS=$as_save_IFS
2568 case $as_dir in #(((
2569 '') as_dir=./ ;;
2570 */) ;;
2571 *) as_dir=$as_dir/ ;;
2572 esac
2573 for ac_exec_ext in '' $ac_executable_extensions; do
2574 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2575 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2576 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2577 break 2
2578 fi
2579 done
2580 done
2581 IFS=$as_save_IFS
2582
2583 fi ;;
2584 esac
2585 fi
2586 CC=$ac_cv_prog_CC
2587 if test -n "$CC"; then
2588 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2589 printf "%s\n" "$CC" >&6; }
2590 else
2591 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2592 printf "%s\n" "no" >&6; }
2593 fi
2594
2595
2596 fi
2597 if test -z "$ac_cv_prog_CC"; then
2598 ac_ct_CC=$CC
2599 # Extract the first word of "gcc", so it can be a program name with args.
2600 set dummy gcc; ac_word=$2
2601 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2602 printf %s "checking for $ac_word... " >&6; }
2603 if test ${ac_cv_prog_ac_ct_CC+y}
2604 then :
2605 printf %s "(cached) " >&6
2606 else case e in #(
2607 e) if test -n "$ac_ct_CC"; then
2608 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2609 else
2610 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2611 for as_dir in $PATH
2612 do
2613 IFS=$as_save_IFS
2614 case $as_dir in #(((
2615 '') as_dir=./ ;;
2616 */) ;;
2617 *) as_dir=$as_dir/ ;;
2618 esac
2619 for ac_exec_ext in '' $ac_executable_extensions; do
2620 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2621 ac_cv_prog_ac_ct_CC="gcc"
2622 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2623 break 2
2624 fi
2625 done
2626 done
2627 IFS=$as_save_IFS
2628
2629 fi ;;
2630 esac
2631 fi
2632 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2633 if test -n "$ac_ct_CC"; then
2634 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2635 printf "%s\n" "$ac_ct_CC" >&6; }
2636 else
2637 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2638 printf "%s\n" "no" >&6; }
2639 fi
2640
2641 if test "x$ac_ct_CC" = x; then
2642 CC=""
2643 else
2644 case $cross_compiling:$ac_tool_warned in
2645 yes:)
2646 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2647 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2648 ac_tool_warned=yes ;;
2649 esac
2650 CC=$ac_ct_CC
2651 fi
2652 else
2653 CC="$ac_cv_prog_CC"
2654 fi
2655
2656 if test -z "$CC"; then
2657 if test -n "$ac_tool_prefix"; then
2658 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2659 set dummy ${ac_tool_prefix}cc; ac_word=$2
2660 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2661 printf %s "checking for $ac_word... " >&6; }
2662 if test ${ac_cv_prog_CC+y}
2663 then :
2664 printf %s "(cached) " >&6
2665 else case e in #(
2666 e) if test -n "$CC"; then
2667 ac_cv_prog_CC="$CC" # Let the user override the test.
2668 else
2669 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2670 for as_dir in $PATH
2671 do
2672 IFS=$as_save_IFS
2673 case $as_dir in #(((
2674 '') as_dir=./ ;;
2675 */) ;;
2676 *) as_dir=$as_dir/ ;;
2677 esac
2678 for ac_exec_ext in '' $ac_executable_extensions; do
2679 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2680 ac_cv_prog_CC="${ac_tool_prefix}cc"
2681 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2682 break 2
2683 fi
2684 done
2685 done
2686 IFS=$as_save_IFS
2687
2688 fi ;;
2689 esac
2690 fi
2691 CC=$ac_cv_prog_CC
2692 if test -n "$CC"; then
2693 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2694 printf "%s\n" "$CC" >&6; }
2695 else
2696 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2697 printf "%s\n" "no" >&6; }
2698 fi
2699
2700
2701 fi
2702 fi
2703 if test -z "$CC"; then
2704 # Extract the first word of "cc", so it can be a program name with args.
2705 set dummy cc; ac_word=$2
2706 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2707 printf %s "checking for $ac_word... " >&6; }
2708 if test ${ac_cv_prog_CC+y}
2709 then :
2710 printf %s "(cached) " >&6
2711 else case e in #(
2712 e) if test -n "$CC"; then
2713 ac_cv_prog_CC="$CC" # Let the user override the test.
2714 else
2715 ac_prog_rejected=no
2716 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2717 for as_dir in $PATH
2718 do
2719 IFS=$as_save_IFS
2720 case $as_dir in #(((
2721 '') as_dir=./ ;;
2722 */) ;;
2723 *) as_dir=$as_dir/ ;;
2724 esac
2725 for ac_exec_ext in '' $ac_executable_extensions; do
2726 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2727 if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2728 ac_prog_rejected=yes
2729 continue
2730 fi
2731 ac_cv_prog_CC="cc"
2732 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2733 break 2
2734 fi
2735 done
2736 done
2737 IFS=$as_save_IFS
2738
2739 if test $ac_prog_rejected = yes; then
2740 # We found a bogon in the path, so make sure we never use it.
2741 set dummy $ac_cv_prog_CC
2742 shift
2743 if test $# != 0; then
2744 # We chose a different compiler from the bogus one.
2745 # However, it has the same basename, so the bogon will be chosen
2746 # first if we set CC to just the basename; use the full file name.
2747 shift
2748 ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@"
2749 fi
2750 fi
2751 fi ;;
2752 esac
2753 fi
2754 CC=$ac_cv_prog_CC
2755 if test -n "$CC"; then
2756 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2757 printf "%s\n" "$CC" >&6; }
2758 else
2759 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2760 printf "%s\n" "no" >&6; }
2761 fi
2762
2763
2764 fi
2765 if test -z "$CC"; then
2766 if test -n "$ac_tool_prefix"; then
2767 for ac_prog in cl.exe
2768 do
2769 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2770 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2771 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2772 printf %s "checking for $ac_word... " >&6; }
2773 if test ${ac_cv_prog_CC+y}
2774 then :
2775 printf %s "(cached) " >&6
2776 else case e in #(
2777 e) if test -n "$CC"; then
2778 ac_cv_prog_CC="$CC" # Let the user override the test.
2779 else
2780 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2781 for as_dir in $PATH
2782 do
2783 IFS=$as_save_IFS
2784 case $as_dir in #(((
2785 '') as_dir=./ ;;
2786 */) ;;
2787 *) as_dir=$as_dir/ ;;
2788 esac
2789 for ac_exec_ext in '' $ac_executable_extensions; do
2790 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2791 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2792 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2793 break 2
2794 fi
2795 done
2796 done
2797 IFS=$as_save_IFS
2798
2799 fi ;;
2800 esac
2801 fi
2802 CC=$ac_cv_prog_CC
2803 if test -n "$CC"; then
2804 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2805 printf "%s\n" "$CC" >&6; }
2806 else
2807 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2808 printf "%s\n" "no" >&6; }
2809 fi
2810
2811
2812 test -n "$CC" && break
2813 done
2814 fi
2815 if test -z "$CC"; then
2816 ac_ct_CC=$CC
2817 for ac_prog in cl.exe
2818 do
2819 # Extract the first word of "$ac_prog", so it can be a program name with args.
2820 set dummy $ac_prog; ac_word=$2
2821 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2822 printf %s "checking for $ac_word... " >&6; }
2823 if test ${ac_cv_prog_ac_ct_CC+y}
2824 then :
2825 printf %s "(cached) " >&6
2826 else case e in #(
2827 e) if test -n "$ac_ct_CC"; then
2828 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2829 else
2830 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2831 for as_dir in $PATH
2832 do
2833 IFS=$as_save_IFS
2834 case $as_dir in #(((
2835 '') as_dir=./ ;;
2836 */) ;;
2837 *) as_dir=$as_dir/ ;;
2838 esac
2839 for ac_exec_ext in '' $ac_executable_extensions; do
2840 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2841 ac_cv_prog_ac_ct_CC="$ac_prog"
2842 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2843 break 2
2844 fi
2845 done
2846 done
2847 IFS=$as_save_IFS
2848
2849 fi ;;
2850 esac
2851 fi
2852 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2853 if test -n "$ac_ct_CC"; then
2854 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2855 printf "%s\n" "$ac_ct_CC" >&6; }
2856 else
2857 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2858 printf "%s\n" "no" >&6; }
2859 fi
2860
2861
2862 test -n "$ac_ct_CC" && break
2863 done
2864
2865 if test "x$ac_ct_CC" = x; then
2866 CC=""
2867 else
2868 case $cross_compiling:$ac_tool_warned in
2869 yes:)
2870 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2871 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2872 ac_tool_warned=yes ;;
2873 esac
2874 CC=$ac_ct_CC
2875 fi
2876 fi
2877
2878 fi
2879 if test -z "$CC"; then
2880 if test -n "$ac_tool_prefix"; then
2881 # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args.
2882 set dummy ${ac_tool_prefix}clang; ac_word=$2
2883 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2884 printf %s "checking for $ac_word... " >&6; }
2885 if test ${ac_cv_prog_CC+y}
2886 then :
2887 printf %s "(cached) " >&6
2888 else case e in #(
2889 e) if test -n "$CC"; then
2890 ac_cv_prog_CC="$CC" # Let the user override the test.
2891 else
2892 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2893 for as_dir in $PATH
2894 do
2895 IFS=$as_save_IFS
2896 case $as_dir in #(((
2897 '') as_dir=./ ;;
2898 */) ;;
2899 *) as_dir=$as_dir/ ;;
2900 esac
2901 for ac_exec_ext in '' $ac_executable_extensions; do
2902 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2903 ac_cv_prog_CC="${ac_tool_prefix}clang"
2904 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2905 break 2
2906 fi
2907 done
2908 done
2909 IFS=$as_save_IFS
2910
2911 fi ;;
2912 esac
2913 fi
2914 CC=$ac_cv_prog_CC
2915 if test -n "$CC"; then
2916 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2917 printf "%s\n" "$CC" >&6; }
2918 else
2919 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2920 printf "%s\n" "no" >&6; }
2921 fi
2922
2923
2924 fi
2925 if test -z "$ac_cv_prog_CC"; then
2926 ac_ct_CC=$CC
2927 # Extract the first word of "clang", so it can be a program name with args.
2928 set dummy clang; ac_word=$2
2929 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2930 printf %s "checking for $ac_word... " >&6; }
2931 if test ${ac_cv_prog_ac_ct_CC+y}
2932 then :
2933 printf %s "(cached) " >&6
2934 else case e in #(
2935 e) if test -n "$ac_ct_CC"; then
2936 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2937 else
2938 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2939 for as_dir in $PATH
2940 do
2941 IFS=$as_save_IFS
2942 case $as_dir in #(((
2943 '') as_dir=./ ;;
2944 */) ;;
2945 *) as_dir=$as_dir/ ;;
2946 esac
2947 for ac_exec_ext in '' $ac_executable_extensions; do
2948 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2949 ac_cv_prog_ac_ct_CC="clang"
2950 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2951 break 2
2952 fi
2953 done
2954 done
2955 IFS=$as_save_IFS
2956
2957 fi ;;
2958 esac
2959 fi
2960 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2961 if test -n "$ac_ct_CC"; then
2962 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2963 printf "%s\n" "$ac_ct_CC" >&6; }
2964 else
2965 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2966 printf "%s\n" "no" >&6; }
2967 fi
2968
2969 if test "x$ac_ct_CC" = x; then
2970 CC=""
2971 else
2972 case $cross_compiling:$ac_tool_warned in
2973 yes:)
2974 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2975 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2976 ac_tool_warned=yes ;;
2977 esac
2978 CC=$ac_ct_CC
2979 fi
2980 else
2981 CC="$ac_cv_prog_CC"
2982 fi
2983
2984 fi
2985
2986
2987 test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
2988 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
2989 as_fn_error $? "no acceptable C compiler found in \$PATH
2990 See 'config.log' for more details" "$LINENO" 5; }
2991
2992 # Provide some information about the compiler.
2993 printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2994 set X $ac_compile
2995 ac_compiler=$2
2996 for ac_option in --version -v -V -qversion -version; do
2997 { { ac_try="$ac_compiler $ac_option >&5"
2998 case "(($ac_try" in
2999 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3000 *) ac_try_echo=$ac_try;;
3001 esac
3002 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3003 printf "%s\n" "$ac_try_echo"; } >&5
3004 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3005 ac_status=$?
3006 if test -s conftest.err; then
3007 sed '10a\
3008 ... rest of stderr output deleted ...
3009 10q' conftest.err >conftest.er1
3010 cat conftest.er1 >&5
3011 fi
3012 rm -f conftest.er1 conftest.err
3013 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3014 test $ac_status = 0; }
3015 done
3016
3017 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3018 /* end confdefs.h. */
3019
3020 int
3021 main (void)
3022 {
3023
3024 ;
3025 return 0;
3026 }
3027 _ACEOF
3028 ac_clean_files_save=$ac_clean_files
3029 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3030 # Try to create an executable without -o first, disregard a.out.
3031 # It will help us diagnose broken compilers, and finding out an intuition
3032 # of exeext.
3033 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3034 printf %s "checking whether the C compiler works... " >&6; }
3035 ac_link_default=`printf "%s\n" "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3036
3037 # The possible output files:
3038 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3039
3040 ac_rmfiles=
3041 for ac_file in $ac_files
3042 do
3043 case $ac_file in
3044 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3045 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3046 esac
3047 done
3048 rm -f $ac_rmfiles
3049
3050 if { { ac_try="$ac_link_default"
3051 case "(($ac_try" in
3052 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3053 *) ac_try_echo=$ac_try;;
3054 esac
3055 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3056 printf "%s\n" "$ac_try_echo"; } >&5
3057 (eval "$ac_link_default") 2>&5
3058 ac_status=$?
3059 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3060 test $ac_status = 0; }
3061 then :
3062 # Autoconf-2.13 could set the ac_cv_exeext variable to 'no'.
3063 # So ignore a value of 'no', otherwise this would lead to 'EXEEXT = no'
3064 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3065 # so that the user can short-circuit this test for compilers unknown to
3066 # Autoconf.
3067 for ac_file in $ac_files ''
3068 do
3069 test -f "$ac_file" || continue
3070 case $ac_file in
3071 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3072 ;;
3073 [ab].out )
3074 # We found the default executable, but exeext='' is most
3075 # certainly right.
3076 break;;
3077 *.* )
3078 if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no;
3079 then :; else
3080 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3081 fi
3082 # We set ac_cv_exeext here because the later test for it is not
3083 # safe: cross compilers may not add the suffix if given an '-o'
3084 # argument, so we may need to know it at that point already.
3085 # Even if this section looks crufty: it has the advantage of
3086 # actually working.
3087 break;;
3088 * )
3089 break;;
3090 esac
3091 done
3092 test "$ac_cv_exeext" = no && ac_cv_exeext=
3093
3094 else case e in #(
3095 e) ac_file='' ;;
3096 esac
3097 fi
3098 if test -z "$ac_file"
3099 then :
3100 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3101 printf "%s\n" "no" >&6; }
3102 printf "%s\n" "$as_me: failed program was:" >&5
3103 sed 's/^/| /' conftest.$ac_ext >&5
3104
3105 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
3106 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
3107 as_fn_error 77 "C compiler cannot create executables
3108 See 'config.log' for more details" "$LINENO" 5; }
3109 else case e in #(
3110 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3111 printf "%s\n" "yes" >&6; } ;;
3112 esac
3113 fi
3114 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3115 printf %s "checking for C compiler default output file name... " >&6; }
3116 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3117 printf "%s\n" "$ac_file" >&6; }
3118 ac_exeext=$ac_cv_exeext
3119
3120 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3121 ac_clean_files=$ac_clean_files_save
3122 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3123 printf %s "checking for suffix of executables... " >&6; }
3124 if { { ac_try="$ac_link"
3125 case "(($ac_try" in
3126 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3127 *) ac_try_echo=$ac_try;;
3128 esac
3129 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3130 printf "%s\n" "$ac_try_echo"; } >&5
3131 (eval "$ac_link") 2>&5
3132 ac_status=$?
3133 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3134 test $ac_status = 0; }
3135 then :
3136 # If both 'conftest.exe' and 'conftest' are 'present' (well, observable)
3137 # catch 'conftest.exe'. For instance with Cygwin, 'ls conftest' will
3138 # work properly (i.e., refer to 'conftest.exe'), while it won't with
3139 # 'rm'.
3140 for ac_file in conftest.exe conftest conftest.*; do
3141 test -f "$ac_file" || continue
3142 case $ac_file in
3143 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3144 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3145 break;;
3146 * ) break;;
3147 esac
3148 done
3149 else case e in #(
3150 e) { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
3151 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
3152 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3153 See 'config.log' for more details" "$LINENO" 5; } ;;
3154 esac
3155 fi
3156 rm -f conftest conftest$ac_cv_exeext
3157 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3158 printf "%s\n" "$ac_cv_exeext" >&6; }
3159
3160 rm -f conftest.$ac_ext
3161 EXEEXT=$ac_cv_exeext
3162 ac_exeext=$EXEEXT
3163 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3164 /* end confdefs.h. */
3165 #include <stdio.h>
3166 int
3167 main (void)
3168 {
3169 FILE *f = fopen ("conftest.out", "w");
3170 if (!f)
3171 return 1;
3172 return ferror (f) || fclose (f) != 0;
3173
3174 ;
3175 return 0;
3176 }
3177 _ACEOF
3178 ac_clean_files="$ac_clean_files conftest.out"
3179 # Check that the compiler produces executables we can run. If not, either
3180 # the compiler is broken, or we cross compile.
3181 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3182 printf %s "checking whether we are cross compiling... " >&6; }
3183 if test "$cross_compiling" != yes; then
3184 { { ac_try="$ac_link"
3185 case "(($ac_try" in
3186 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3187 *) ac_try_echo=$ac_try;;
3188 esac
3189 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3190 printf "%s\n" "$ac_try_echo"; } >&5
3191 (eval "$ac_link") 2>&5
3192 ac_status=$?
3193 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3194 test $ac_status = 0; }
3195 if { ac_try='./conftest$ac_cv_exeext'
3196 { { case "(($ac_try" in
3197 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3198 *) ac_try_echo=$ac_try;;
3199 esac
3200 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3201 printf "%s\n" "$ac_try_echo"; } >&5
3202 (eval "$ac_try") 2>&5
3203 ac_status=$?
3204 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3205 test $ac_status = 0; }; }; then
3206 cross_compiling=no
3207 else
3208 if test "$cross_compiling" = maybe; then
3209 cross_compiling=yes
3210 else
3211 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
3212 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
3213 as_fn_error 77 "cannot run C compiled programs.
3214 If you meant to cross compile, use '--host'.
3215 See 'config.log' for more details" "$LINENO" 5; }
3216 fi
3217 fi
3218 fi
3219 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3220 printf "%s\n" "$cross_compiling" >&6; }
3221
3222 rm -f conftest.$ac_ext conftest$ac_cv_exeext \
3223 conftest.o conftest.obj conftest.out
3224 ac_clean_files=$ac_clean_files_save
3225 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3226 printf %s "checking for suffix of object files... " >&6; }
3227 if test ${ac_cv_objext+y}
3228 then :
3229 printf %s "(cached) " >&6
3230 else case e in #(
3231 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3232 /* end confdefs.h. */
3233
3234 int
3235 main (void)
3236 {
3237
3238 ;
3239 return 0;
3240 }
3241 _ACEOF
3242 rm -f conftest.o conftest.obj
3243 if { { ac_try="$ac_compile"
3244 case "(($ac_try" in
3245 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3246 *) ac_try_echo=$ac_try;;
3247 esac
3248 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3249 printf "%s\n" "$ac_try_echo"; } >&5
3250 (eval "$ac_compile") 2>&5
3251 ac_status=$?
3252 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3253 test $ac_status = 0; }
3254 then :
3255 for ac_file in conftest.o conftest.obj conftest.*; do
3256 test -f "$ac_file" || continue;
3257 case $ac_file in
3258 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3259 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3260 break;;
3261 esac
3262 done
3263 else case e in #(
3264 e) printf "%s\n" "$as_me: failed program was:" >&5
3265 sed 's/^/| /' conftest.$ac_ext >&5
3266
3267 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
3268 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
3269 as_fn_error $? "cannot compute suffix of object files: cannot compile
3270 See 'config.log' for more details" "$LINENO" 5; } ;;
3271 esac
3272 fi
3273 rm -f conftest.$ac_cv_objext conftest.$ac_ext ;;
3274 esac
3275 fi
3276 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3277 printf "%s\n" "$ac_cv_objext" >&6; }
3278 OBJEXT=$ac_cv_objext
3279 ac_objext=$OBJEXT
3280 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5
3281 printf %s "checking whether the compiler supports GNU C... " >&6; }
3282 if test ${ac_cv_c_compiler_gnu+y}
3283 then :
3284 printf %s "(cached) " >&6
3285 else case e in #(
3286 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3287 /* end confdefs.h. */
3288
3289 int
3290 main (void)
3291 {
3292 #ifndef __GNUC__
3293 choke me
3294 #endif
3295
3296 ;
3297 return 0;
3298 }
3299 _ACEOF
3300 if ac_fn_c_try_compile "$LINENO"
3301 then :
3302 ac_compiler_gnu=yes
3303 else case e in #(
3304 e) ac_compiler_gnu=no ;;
3305 esac
3306 fi
3307 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
3308 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3309 ;;
3310 esac
3311 fi
3312 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3313 printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; }
3314 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3315
3316 if test $ac_compiler_gnu = yes; then
3317 GCC=yes
3318 else
3319 GCC=
3320 fi
3321 ac_test_CFLAGS=${CFLAGS+y}
3322 ac_save_CFLAGS=$CFLAGS
3323 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3324 printf %s "checking whether $CC accepts -g... " >&6; }
3325 if test ${ac_cv_prog_cc_g+y}
3326 then :
3327 printf %s "(cached) " >&6
3328 else case e in #(
3329 e) ac_save_c_werror_flag=$ac_c_werror_flag
3330 ac_c_werror_flag=yes
3331 ac_cv_prog_cc_g=no
3332 CFLAGS="-g"
3333 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3334 /* end confdefs.h. */
3335
3336 int
3337 main (void)
3338 {
3339
3340 ;
3341 return 0;
3342 }
3343 _ACEOF
3344 if ac_fn_c_try_compile "$LINENO"
3345 then :
3346 ac_cv_prog_cc_g=yes
3347 else case e in #(
3348 e) CFLAGS=""
3349 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3350 /* end confdefs.h. */
3351
3352 int
3353 main (void)
3354 {
3355
3356 ;
3357 return 0;
3358 }
3359 _ACEOF
3360 if ac_fn_c_try_compile "$LINENO"
3361 then :
3362
3363 else case e in #(
3364 e) ac_c_werror_flag=$ac_save_c_werror_flag
3365 CFLAGS="-g"
3366 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3367 /* end confdefs.h. */
3368
3369 int
3370 main (void)
3371 {
3372
3373 ;
3374 return 0;
3375 }
3376 _ACEOF
3377 if ac_fn_c_try_compile "$LINENO"
3378 then :
3379 ac_cv_prog_cc_g=yes
3380 fi
3381 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
3382 esac
3383 fi
3384 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
3385 esac
3386 fi
3387 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
3388 ac_c_werror_flag=$ac_save_c_werror_flag ;;
3389 esac
3390 fi
3391 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3392 printf "%s\n" "$ac_cv_prog_cc_g" >&6; }
3393 if test $ac_test_CFLAGS; then
3394 CFLAGS=$ac_save_CFLAGS
3395 elif test $ac_cv_prog_cc_g = yes; then
3396 if test "$GCC" = yes; then
3397 CFLAGS="-g -O2"
3398 else
3399 CFLAGS="-g"
3400 fi
3401 else
3402 if test "$GCC" = yes; then
3403 CFLAGS="-O2"
3404 else
3405 CFLAGS=
3406 fi
3407 fi
3408 ac_prog_cc_stdc=no
3409 if test x$ac_prog_cc_stdc = xno
3410 then :
3411 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5
3412 printf %s "checking for $CC option to enable C11 features... " >&6; }
3413 if test ${ac_cv_prog_cc_c11+y}
3414 then :
3415 printf %s "(cached) " >&6
3416 else case e in #(
3417 e) ac_cv_prog_cc_c11=no
3418 ac_save_CC=$CC
3419 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3420 /* end confdefs.h. */
3421 $ac_c_conftest_c11_program
3422 _ACEOF
3423 for ac_arg in '' -std=gnu11
3424 do
3425 CC="$ac_save_CC $ac_arg"
3426 if ac_fn_c_try_compile "$LINENO"
3427 then :
3428 ac_cv_prog_cc_c11=$ac_arg
3429 fi
3430 rm -f core conftest.err conftest.$ac_objext conftest.beam
3431 test "x$ac_cv_prog_cc_c11" != "xno" && break
3432 done
3433 rm -f conftest.$ac_ext
3434 CC=$ac_save_CC ;;
3435 esac
3436 fi
3437
3438 if test "x$ac_cv_prog_cc_c11" = xno
3439 then :
3440 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3441 printf "%s\n" "unsupported" >&6; }
3442 else case e in #(
3443 e) if test "x$ac_cv_prog_cc_c11" = x
3444 then :
3445 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3446 printf "%s\n" "none needed" >&6; }
3447 else case e in #(
3448 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5
3449 printf "%s\n" "$ac_cv_prog_cc_c11" >&6; }
3450 CC="$CC $ac_cv_prog_cc_c11" ;;
3451 esac
3452 fi
3453 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11
3454 ac_prog_cc_stdc=c11 ;;
3455 esac
3456 fi
3457 fi
3458 if test x$ac_prog_cc_stdc = xno
3459 then :
3460 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5
3461 printf %s "checking for $CC option to enable C99 features... " >&6; }
3462 if test ${ac_cv_prog_cc_c99+y}
3463 then :
3464 printf %s "(cached) " >&6
3465 else case e in #(
3466 e) ac_cv_prog_cc_c99=no
3467 ac_save_CC=$CC
3468 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3469 /* end confdefs.h. */
3470 $ac_c_conftest_c99_program
3471 _ACEOF
3472 for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99=
3473 do
3474 CC="$ac_save_CC $ac_arg"
3475 if ac_fn_c_try_compile "$LINENO"
3476 then :
3477 ac_cv_prog_cc_c99=$ac_arg
3478 fi
3479 rm -f core conftest.err conftest.$ac_objext conftest.beam
3480 test "x$ac_cv_prog_cc_c99" != "xno" && break
3481 done
3482 rm -f conftest.$ac_ext
3483 CC=$ac_save_CC ;;
3484 esac
3485 fi
3486
3487 if test "x$ac_cv_prog_cc_c99" = xno
3488 then :
3489 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3490 printf "%s\n" "unsupported" >&6; }
3491 else case e in #(
3492 e) if test "x$ac_cv_prog_cc_c99" = x
3493 then :
3494 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3495 printf "%s\n" "none needed" >&6; }
3496 else case e in #(
3497 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
3498 printf "%s\n" "$ac_cv_prog_cc_c99" >&6; }
3499 CC="$CC $ac_cv_prog_cc_c99" ;;
3500 esac
3501 fi
3502 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
3503 ac_prog_cc_stdc=c99 ;;
3504 esac
3505 fi
3506 fi
3507 if test x$ac_prog_cc_stdc = xno
3508 then :
3509 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5
3510 printf %s "checking for $CC option to enable C89 features... " >&6; }
3511 if test ${ac_cv_prog_cc_c89+y}
3512 then :
3513 printf %s "(cached) " >&6
3514 else case e in #(
3515 e) ac_cv_prog_cc_c89=no
3516 ac_save_CC=$CC
3517 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3518 /* end confdefs.h. */
3519 $ac_c_conftest_c89_program
3520 _ACEOF
3521 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3522 do
3523 CC="$ac_save_CC $ac_arg"
3524 if ac_fn_c_try_compile "$LINENO"
3525 then :
3526 ac_cv_prog_cc_c89=$ac_arg
3527 fi
3528 rm -f core conftest.err conftest.$ac_objext conftest.beam
3529 test "x$ac_cv_prog_cc_c89" != "xno" && break
3530 done
3531 rm -f conftest.$ac_ext
3532 CC=$ac_save_CC ;;
3533 esac
3534 fi
3535
3536 if test "x$ac_cv_prog_cc_c89" = xno
3537 then :
3538 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3539 printf "%s\n" "unsupported" >&6; }
3540 else case e in #(
3541 e) if test "x$ac_cv_prog_cc_c89" = x
3542 then :
3543 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3544 printf "%s\n" "none needed" >&6; }
3545 else case e in #(
3546 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3547 printf "%s\n" "$ac_cv_prog_cc_c89" >&6; }
3548 CC="$CC $ac_cv_prog_cc_c89" ;;
3549 esac
3550 fi
3551 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
3552 ac_prog_cc_stdc=c89 ;;
3553 esac
3554 fi
3555 fi
3556
3557 ac_ext=c
3558 ac_cpp='$CPP $CPPFLAGS'
3559 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3560 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3561 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3562
3563
3564 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing strerror" >&5
3565 printf %s "checking for library containing strerror... " >&6; }
3566 if test ${ac_cv_search_strerror+y}
3567 then :
3568 printf %s "(cached) " >&6
3569 else case e in #(
3570 e) ac_func_search_save_LIBS=$LIBS
3571 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3572 /* end confdefs.h. */
3573
3574 /* Override any GCC internal prototype to avoid an error.
3575 Use char because int might match the return type of a GCC
3576 builtin and then its argument prototype would still apply.
3577 The 'extern "C"' is for builds by C++ compilers;
3578 although this is not generally supported in C code supporting it here
3579 has little cost and some practical benefit (sr 110532). */
3580 #ifdef __cplusplus
3581 extern "C"
3582 #endif
3583 char strerror (void);
3584 int
3585 main (void)
3586 {
3587 return strerror ();
3588 ;
3589 return 0;
3590 }
3591 _ACEOF
3592 for ac_lib in '' cposix
3593 do
3594 if test -z "$ac_lib"; then
3595 ac_res="none required"
3596 else
3597 ac_res=-l$ac_lib
3598 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
3599 fi
3600 if ac_fn_c_try_link "$LINENO"
3601 then :
3602 ac_cv_search_strerror=$ac_res
3603 fi
3604 rm -f core conftest.err conftest.$ac_objext conftest.beam \
3605 conftest$ac_exeext
3606 if test ${ac_cv_search_strerror+y}
3607 then :
3608 break
3609 fi
3610 done
3611 if test ${ac_cv_search_strerror+y}
3612 then :
3613
3614 else case e in #(
3615 e) ac_cv_search_strerror=no ;;
3616 esac
3617 fi
3618 rm conftest.$ac_ext
3619 LIBS=$ac_func_search_save_LIBS ;;
3620 esac
3621 fi
3622 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_strerror" >&5
3623 printf "%s\n" "$ac_cv_search_strerror" >&6; }
3624 ac_res=$ac_cv_search_strerror
3625 if test "$ac_res" != no
3626 then :
3627 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
3628
3629 fi
3630
3631
3632
3633
3634 # Find a good install program. We prefer a C program (faster),
3635 # so one script is as good as another. But avoid the broken or
3636 # incompatible versions:
3637 # SysV /etc/install, /usr/sbin/install
3638 # SunOS /usr/etc/install
3639 # IRIX /sbin/install
3640 # AIX /bin/install
3641 # AmigaOS /C/install, which installs bootblocks on floppy discs
3642 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3643 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3644 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3645 # OS/2's system install, which has a completely different semantic
3646 # ./install, which can be erroneously created by make from ./install.sh.
3647 # Reject install programs that cannot install multiple files.
3648 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3649 printf %s "checking for a BSD-compatible install... " >&6; }
3650 if test -z "$INSTALL"; then
3651 if test ${ac_cv_path_install+y}
3652 then :
3653 printf %s "(cached) " >&6
3654 else case e in #(
3655 e) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3656 for as_dir in $PATH
3657 do
3658 IFS=$as_save_IFS
3659 case $as_dir in #(((
3660 '') as_dir=./ ;;
3661 */) ;;
3662 *) as_dir=$as_dir/ ;;
3663 esac
3664 # Account for fact that we put trailing slashes in our PATH walk.
3665 case $as_dir in #((
3666 ./ | /[cC]/* | \
3667 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3668 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
3669 /usr/ucb/* ) ;;
3670 *)
3671 # OSF1 and SCO ODT 3.0 have their own names for install.
3672 # Don't use installbsd from OSF since it installs stuff as root
3673 # by default.
3674 for ac_prog in ginstall scoinst install; do
3675 for ac_exec_ext in '' $ac_executable_extensions; do
3676 if as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext"; then
3677 if test $ac_prog = install &&
3678 grep dspmsg "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3679 # AIX install. It has an incompatible calling convention.
3680 :
3681 elif test $ac_prog = install &&
3682 grep pwplus "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3683 # program-specific install script used by HP pwplus--don't use.
3684 :
3685 else
3686 rm -rf conftest.one conftest.two conftest.dir
3687 echo one > conftest.one
3688 echo two > conftest.two
3689 mkdir conftest.dir
3690 if "$as_dir$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir/" &&
3691 test -s conftest.one && test -s conftest.two &&
3692 test -s conftest.dir/conftest.one &&
3693 test -s conftest.dir/conftest.two
3694 then
3695 ac_cv_path_install="$as_dir$ac_prog$ac_exec_ext -c"
3696 break 3
3697 fi
3698 fi
3699 fi
3700 done
3701 done
3702 ;;
3703 esac
3704
3705 done
3706 IFS=$as_save_IFS
3707
3708 rm -rf conftest.one conftest.two conftest.dir
3709 ;;
3710 esac
3711 fi
3712 if test ${ac_cv_path_install+y}; then
3713 INSTALL=$ac_cv_path_install
3714 else
3715 # As a last resort, use the slow shell script. Don't cache a
3716 # value for INSTALL within a source directory, because that will
3717 # break other packages using the cache if that directory is
3718 # removed, or if the value is a relative name.
3719 INSTALL=$ac_install_sh
3720 fi
3721 fi
3722 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3723 printf "%s\n" "$INSTALL" >&6; }
3724
3725 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3726 # It thinks the first close brace ends the variable substitution.
3727 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3728
3729 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3730
3731 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3732
3733
3734 # Checks for compilation model.
3735 # Check whether --enable-largefile was given.
3736 if test ${enable_largefile+y}
3737 then :
3738 enableval=$enable_largefile;
3739 fi
3740 if test "$enable_largefile,$enable_year2038" != no,no
3741 then :
3742 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable large file support" >&5
3743 printf %s "checking for $CC option to enable large file support... " >&6; }
3744 if test ${ac_cv_sys_largefile_opts+y}
3745 then :
3746 printf %s "(cached) " >&6
3747 else case e in #(
3748 e) ac_save_CC="$CC"
3749 ac_opt_found=no
3750 for ac_opt in "none needed" "-D_FILE_OFFSET_BITS=64" "-D_LARGE_FILES=1" "-n32"; do
3751 if test x"$ac_opt" != x"none needed"
3752 then :
3753 CC="$ac_save_CC $ac_opt"
3754 fi
3755 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3756 /* end confdefs.h. */
3757 #include <sys/types.h>
3758 #ifndef FTYPE
3759 # define FTYPE off_t
3760 #endif
3761 /* Check that FTYPE can represent 2**63 - 1 correctly.
3762 We can't simply define LARGE_FTYPE to be 9223372036854775807,
3763 since some C++ compilers masquerading as C compilers
3764 incorrectly reject 9223372036854775807. */
3765 #define LARGE_FTYPE (((FTYPE) 1 << 31 << 31) - 1 + ((FTYPE) 1 << 31 << 31))
3766 int FTYPE_is_large[(LARGE_FTYPE % 2147483629 == 721
3767 && LARGE_FTYPE % 2147483647 == 1)
3768 ? 1 : -1];
3769 int
3770 main (void)
3771 {
3772
3773 ;
3774 return 0;
3775 }
3776 _ACEOF
3777 if ac_fn_c_try_compile "$LINENO"
3778 then :
3779 if test x"$ac_opt" = x"none needed"
3780 then :
3781 # GNU/Linux s390x and alpha need _FILE_OFFSET_BITS=64 for wide ino_t.
3782 CC="$CC -DFTYPE=ino_t"
3783 if ac_fn_c_try_compile "$LINENO"
3784 then :
3785
3786 else case e in #(
3787 e) CC="$CC -D_FILE_OFFSET_BITS=64"
3788 if ac_fn_c_try_compile "$LINENO"
3789 then :
3790 ac_opt='-D_FILE_OFFSET_BITS=64'
3791 fi
3792 rm -f core conftest.err conftest.$ac_objext conftest.beam ;;
3793 esac
3794 fi
3795 rm -f core conftest.err conftest.$ac_objext conftest.beam
3796 fi
3797 ac_cv_sys_largefile_opts=$ac_opt
3798 ac_opt_found=yes
3799 fi
3800 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
3801 test $ac_opt_found = no || break
3802 done
3803 CC="$ac_save_CC"
3804
3805 test $ac_opt_found = yes || ac_cv_sys_largefile_opts="support not detected" ;;
3806 esac
3807 fi
3808 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_opts" >&5
3809 printf "%s\n" "$ac_cv_sys_largefile_opts" >&6; }
3810
3811 ac_have_largefile=yes
3812 case $ac_cv_sys_largefile_opts in #(
3813 "none needed") :
3814 ;; #(
3815 "supported through gnulib") :
3816 ;; #(
3817 "support not detected") :
3818 ac_have_largefile=no ;; #(
3819 "-D_FILE_OFFSET_BITS=64") :
3820
3821 printf "%s\n" "#define _FILE_OFFSET_BITS 64" >>confdefs.h
3822 ;; #(
3823 "-D_LARGE_FILES=1") :
3824
3825 printf "%s\n" "#define _LARGE_FILES 1" >>confdefs.h
3826 ;; #(
3827 "-n32") :
3828 CC="$CC -n32" ;; #(
3829 *) :
3830 as_fn_error $? "internal error: bad value for \$ac_cv_sys_largefile_opts" "$LINENO" 5 ;;
3831 esac
3832
3833 if test "$enable_year2038" != no
3834 then :
3835 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option for timestamps after 2038" >&5
3836 printf %s "checking for $CC option for timestamps after 2038... " >&6; }
3837 if test ${ac_cv_sys_year2038_opts+y}
3838 then :
3839 printf %s "(cached) " >&6
3840 else case e in #(
3841 e) ac_save_CPPFLAGS="$CPPFLAGS"
3842 ac_opt_found=no
3843 for ac_opt in "none needed" "-D_TIME_BITS=64" "-D__MINGW_USE_VC2005_COMPAT" "-U_USE_32_BIT_TIME_T -D__MINGW_USE_VC2005_COMPAT"; do
3844 if test x"$ac_opt" != x"none needed"
3845 then :
3846 CPPFLAGS="$ac_save_CPPFLAGS $ac_opt"
3847 fi
3848 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3849 /* end confdefs.h. */
3850
3851 #include <time.h>
3852 /* Check that time_t can represent 2**32 - 1 correctly. */
3853 #define LARGE_TIME_T \\
3854 ((time_t) (((time_t) 1 << 30) - 1 + 3 * ((time_t) 1 << 30)))
3855 int verify_time_t_range[(LARGE_TIME_T / 65537 == 65535
3856 && LARGE_TIME_T % 65537 == 0)
3857 ? 1 : -1];
3858
3859 int
3860 main (void)
3861 {
3862
3863 ;
3864 return 0;
3865 }
3866 _ACEOF
3867 if ac_fn_c_try_compile "$LINENO"
3868 then :
3869 ac_cv_sys_year2038_opts="$ac_opt"
3870 ac_opt_found=yes
3871 fi
3872 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
3873 test $ac_opt_found = no || break
3874 done
3875 CPPFLAGS="$ac_save_CPPFLAGS"
3876 test $ac_opt_found = yes || ac_cv_sys_year2038_opts="support not detected" ;;
3877 esac
3878 fi
3879 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_year2038_opts" >&5
3880 printf "%s\n" "$ac_cv_sys_year2038_opts" >&6; }
3881
3882 ac_have_year2038=yes
3883 case $ac_cv_sys_year2038_opts in #(
3884 "none needed") :
3885 ;; #(
3886 "support not detected") :
3887 ac_have_year2038=no ;; #(
3888 "-D_TIME_BITS=64") :
3889
3890 printf "%s\n" "#define _TIME_BITS 64" >>confdefs.h
3891 ;; #(
3892 "-D__MINGW_USE_VC2005_COMPAT") :
3893
3894 printf "%s\n" "#define __MINGW_USE_VC2005_COMPAT 1" >>confdefs.h
3895 ;; #(
3896 "-U_USE_32_BIT_TIME_T"*) :
3897 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
3898 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
3899 as_fn_error $? "the 'time_t' type is currently forced to be 32-bit. It
3900 will stop working after mid-January 2038. Remove
3901 _USE_32BIT_TIME_T from the compiler flags.
3902 See 'config.log' for more details" "$LINENO" 5; } ;; #(
3903 *) :
3904 as_fn_error $? "internal error: bad value for \$ac_cv_sys_year2038_opts" "$LINENO" 5 ;;
3905 esac
3906
3907 fi
3908
3909 fi
3910
3911 # Checks for general libraries.
3912 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for tgoto in -ltinfo" >&5
3913 printf %s "checking for tgoto in -ltinfo... " >&6; }
3914 if test ${ac_cv_lib_tinfo_tgoto+y}
3915 then :
3916 printf %s "(cached) " >&6
3917 else case e in #(
3918 e) ac_check_lib_save_LIBS=$LIBS
3919 LIBS="-ltinfo $LIBS"
3920 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3921 /* end confdefs.h. */
3922
3923 /* Override any GCC internal prototype to avoid an error.
3924 Use char because int might match the return type of a GCC
3925 builtin and then its argument prototype would still apply.
3926 The 'extern "C"' is for builds by C++ compilers;
3927 although this is not generally supported in C code supporting it here
3928 has little cost and some practical benefit (sr 110532). */
3929 #ifdef __cplusplus
3930 extern "C"
3931 #endif
3932 char tgoto (void);
3933 int
3934 main (void)
3935 {
3936 return tgoto ();
3937 ;
3938 return 0;
3939 }
3940 _ACEOF
3941 if ac_fn_c_try_link "$LINENO"
3942 then :
3943 ac_cv_lib_tinfo_tgoto=yes
3944 else case e in #(
3945 e) ac_cv_lib_tinfo_tgoto=no ;;
3946 esac
3947 fi
3948 rm -f core conftest.err conftest.$ac_objext conftest.beam \
3949 conftest$ac_exeext conftest.$ac_ext
3950 LIBS=$ac_check_lib_save_LIBS ;;
3951 esac
3952 fi
3953 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tinfo_tgoto" >&5
3954 printf "%s\n" "$ac_cv_lib_tinfo_tgoto" >&6; }
3955 if test "x$ac_cv_lib_tinfo_tgoto" = xyes
3956 then :
3957 have_tinfo=yes
3958 else case e in #(
3959 e) have_tinfo=no ;;
3960 esac
3961 fi
3962
3963 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for tgoto in -ltinfow" >&5
3964 printf %s "checking for tgoto in -ltinfow... " >&6; }
3965 if test ${ac_cv_lib_tinfow_tgoto+y}
3966 then :
3967 printf %s "(cached) " >&6
3968 else case e in #(
3969 e) ac_check_lib_save_LIBS=$LIBS
3970 LIBS="-ltinfow $LIBS"
3971 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3972 /* end confdefs.h. */
3973
3974 /* Override any GCC internal prototype to avoid an error.
3975 Use char because int might match the return type of a GCC
3976 builtin and then its argument prototype would still apply.
3977 The 'extern "C"' is for builds by C++ compilers;
3978 although this is not generally supported in C code supporting it here
3979 has little cost and some practical benefit (sr 110532). */
3980 #ifdef __cplusplus
3981 extern "C"
3982 #endif
3983 char tgoto (void);
3984 int
3985 main (void)
3986 {
3987 return tgoto ();
3988 ;
3989 return 0;
3990 }
3991 _ACEOF
3992 if ac_fn_c_try_link "$LINENO"
3993 then :
3994 ac_cv_lib_tinfow_tgoto=yes
3995 else case e in #(
3996 e) ac_cv_lib_tinfow_tgoto=no ;;
3997 esac
3998 fi
3999 rm -f core conftest.err conftest.$ac_objext conftest.beam \
4000 conftest$ac_exeext conftest.$ac_ext
4001 LIBS=$ac_check_lib_save_LIBS ;;
4002 esac
4003 fi
4004 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tinfow_tgoto" >&5
4005 printf "%s\n" "$ac_cv_lib_tinfow_tgoto" >&6; }
4006 if test "x$ac_cv_lib_tinfow_tgoto" = xyes
4007 then :
4008 have_tinfow=yes
4009 else case e in #(
4010 e) have_tinfow=no ;;
4011 esac
4012 fi
4013
4014 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for initscr in -lxcurses" >&5
4015 printf %s "checking for initscr in -lxcurses... " >&6; }
4016 if test ${ac_cv_lib_xcurses_initscr+y}
4017 then :
4018 printf %s "(cached) " >&6
4019 else case e in #(
4020 e) ac_check_lib_save_LIBS=$LIBS
4021 LIBS="-lxcurses $LIBS"
4022 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4023 /* end confdefs.h. */
4024
4025 /* Override any GCC internal prototype to avoid an error.
4026 Use char because int might match the return type of a GCC
4027 builtin and then its argument prototype would still apply.
4028 The 'extern "C"' is for builds by C++ compilers;
4029 although this is not generally supported in C code supporting it here
4030 has little cost and some practical benefit (sr 110532). */
4031 #ifdef __cplusplus
4032 extern "C"
4033 #endif
4034 char initscr (void);
4035 int
4036 main (void)
4037 {
4038 return initscr ();
4039 ;
4040 return 0;
4041 }
4042 _ACEOF
4043 if ac_fn_c_try_link "$LINENO"
4044 then :
4045 ac_cv_lib_xcurses_initscr=yes
4046 else case e in #(
4047 e) ac_cv_lib_xcurses_initscr=no ;;
4048 esac
4049 fi
4050 rm -f core conftest.err conftest.$ac_objext conftest.beam \
4051 conftest$ac_exeext conftest.$ac_ext
4052 LIBS=$ac_check_lib_save_LIBS ;;
4053 esac
4054 fi
4055 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xcurses_initscr" >&5
4056 printf "%s\n" "$ac_cv_lib_xcurses_initscr" >&6; }
4057 if test "x$ac_cv_lib_xcurses_initscr" = xyes
4058 then :
4059 have_xcurses=yes
4060 else case e in #(
4061 e) have_xcurses=no ;;
4062 esac
4063 fi
4064
4065 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for initscr in -lncursesw" >&5
4066 printf %s "checking for initscr in -lncursesw... " >&6; }
4067 if test ${ac_cv_lib_ncursesw_initscr+y}
4068 then :
4069 printf %s "(cached) " >&6
4070 else case e in #(
4071 e) ac_check_lib_save_LIBS=$LIBS
4072 LIBS="-lncursesw $LIBS"
4073 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4074 /* end confdefs.h. */
4075
4076 /* Override any GCC internal prototype to avoid an error.
4077 Use char because int might match the return type of a GCC
4078 builtin and then its argument prototype would still apply.
4079 The 'extern "C"' is for builds by C++ compilers;
4080 although this is not generally supported in C code supporting it here
4081 has little cost and some practical benefit (sr 110532). */
4082 #ifdef __cplusplus
4083 extern "C"
4084 #endif
4085 char initscr (void);
4086 int
4087 main (void)
4088 {
4089 return initscr ();
4090 ;
4091 return 0;
4092 }
4093 _ACEOF
4094 if ac_fn_c_try_link "$LINENO"
4095 then :
4096 ac_cv_lib_ncursesw_initscr=yes
4097 else case e in #(
4098 e) ac_cv_lib_ncursesw_initscr=no ;;
4099 esac
4100 fi
4101 rm -f core conftest.err conftest.$ac_objext conftest.beam \
4102 conftest$ac_exeext conftest.$ac_ext
4103 LIBS=$ac_check_lib_save_LIBS ;;
4104 esac
4105 fi
4106 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ncursesw_initscr" >&5
4107 printf "%s\n" "$ac_cv_lib_ncursesw_initscr" >&6; }
4108 if test "x$ac_cv_lib_ncursesw_initscr" = xyes
4109 then :
4110 have_ncursesw=yes
4111 else case e in #(
4112 e) have_ncursesw=no ;;
4113 esac
4114 fi
4115
4116 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for initscr in -lncurses" >&5
4117 printf %s "checking for initscr in -lncurses... " >&6; }
4118 if test ${ac_cv_lib_ncurses_initscr+y}
4119 then :
4120 printf %s "(cached) " >&6
4121 else case e in #(
4122 e) ac_check_lib_save_LIBS=$LIBS
4123 LIBS="-lncurses $LIBS"
4124 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4125 /* end confdefs.h. */
4126
4127 /* Override any GCC internal prototype to avoid an error.
4128 Use char because int might match the return type of a GCC
4129 builtin and then its argument prototype would still apply.
4130 The 'extern "C"' is for builds by C++ compilers;
4131 although this is not generally supported in C code supporting it here
4132 has little cost and some practical benefit (sr 110532). */
4133 #ifdef __cplusplus
4134 extern "C"
4135 #endif
4136 char initscr (void);
4137 int
4138 main (void)
4139 {
4140 return initscr ();
4141 ;
4142 return 0;
4143 }
4144 _ACEOF
4145 if ac_fn_c_try_link "$LINENO"
4146 then :
4147 ac_cv_lib_ncurses_initscr=yes
4148 else case e in #(
4149 e) ac_cv_lib_ncurses_initscr=no ;;
4150 esac
4151 fi
4152 rm -f core conftest.err conftest.$ac_objext conftest.beam \
4153 conftest$ac_exeext conftest.$ac_ext
4154 LIBS=$ac_check_lib_save_LIBS ;;
4155 esac
4156 fi
4157 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ncurses_initscr" >&5
4158 printf "%s\n" "$ac_cv_lib_ncurses_initscr" >&6; }
4159 if test "x$ac_cv_lib_ncurses_initscr" = xyes
4160 then :
4161 have_ncurses=yes
4162 else case e in #(
4163 e) have_ncurses=no ;;
4164 esac
4165 fi
4166
4167 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for initscr in -lcurses" >&5
4168 printf %s "checking for initscr in -lcurses... " >&6; }
4169 if test ${ac_cv_lib_curses_initscr+y}
4170 then :
4171 printf %s "(cached) " >&6
4172 else case e in #(
4173 e) ac_check_lib_save_LIBS=$LIBS
4174 LIBS="-lcurses $LIBS"
4175 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4176 /* end confdefs.h. */
4177
4178 /* Override any GCC internal prototype to avoid an error.
4179 Use char because int might match the return type of a GCC
4180 builtin and then its argument prototype would still apply.
4181 The 'extern "C"' is for builds by C++ compilers;
4182 although this is not generally supported in C code supporting it here
4183 has little cost and some practical benefit (sr 110532). */
4184 #ifdef __cplusplus
4185 extern "C"
4186 #endif
4187 char initscr (void);
4188 int
4189 main (void)
4190 {
4191 return initscr ();
4192 ;
4193 return 0;
4194 }
4195 _ACEOF
4196 if ac_fn_c_try_link "$LINENO"
4197 then :
4198 ac_cv_lib_curses_initscr=yes
4199 else case e in #(
4200 e) ac_cv_lib_curses_initscr=no ;;
4201 esac
4202 fi
4203 rm -f core conftest.err conftest.$ac_objext conftest.beam \
4204 conftest$ac_exeext conftest.$ac_ext
4205 LIBS=$ac_check_lib_save_LIBS ;;
4206 esac
4207 fi
4208 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_curses_initscr" >&5
4209 printf "%s\n" "$ac_cv_lib_curses_initscr" >&6; }
4210 if test "x$ac_cv_lib_curses_initscr" = xyes
4211 then :
4212 have_curses=yes
4213 else case e in #(
4214 e) have_curses=no ;;
4215 esac
4216 fi
4217
4218 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for tgetent in -ltermcap" >&5
4219 printf %s "checking for tgetent in -ltermcap... " >&6; }
4220 if test ${ac_cv_lib_termcap_tgetent+y}
4221 then :
4222 printf %s "(cached) " >&6
4223 else case e in #(
4224 e) ac_check_lib_save_LIBS=$LIBS
4225 LIBS="-ltermcap $LIBS"
4226 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4227 /* end confdefs.h. */
4228
4229 /* Override any GCC internal prototype to avoid an error.
4230 Use char because int might match the return type of a GCC
4231 builtin and then its argument prototype would still apply.
4232 The 'extern "C"' is for builds by C++ compilers;
4233 although this is not generally supported in C code supporting it here
4234 has little cost and some practical benefit (sr 110532). */
4235 #ifdef __cplusplus
4236 extern "C"
4237 #endif
4238 char tgetent (void);
4239 int
4240 main (void)
4241 {
4242 return tgetent ();
4243 ;
4244 return 0;
4245 }
4246 _ACEOF
4247 if ac_fn_c_try_link "$LINENO"
4248 then :
4249 ac_cv_lib_termcap_tgetent=yes
4250 else case e in #(
4251 e) ac_cv_lib_termcap_tgetent=no ;;
4252 esac
4253 fi
4254 rm -f core conftest.err conftest.$ac_objext conftest.beam \
4255 conftest$ac_exeext conftest.$ac_ext
4256 LIBS=$ac_check_lib_save_LIBS ;;
4257 esac
4258 fi
4259 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_termcap_tgetent" >&5
4260 printf "%s\n" "$ac_cv_lib_termcap_tgetent" >&6; }
4261 if test "x$ac_cv_lib_termcap_tgetent" = xyes
4262 then :
4263 have_termcap=yes
4264 else case e in #(
4265 e) have_termcap=no ;;
4266 esac
4267 fi
4268
4269 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for tgetent in -ltermlib" >&5
4270 printf %s "checking for tgetent in -ltermlib... " >&6; }
4271 if test ${ac_cv_lib_termlib_tgetent+y}
4272 then :
4273 printf %s "(cached) " >&6
4274 else case e in #(
4275 e) ac_check_lib_save_LIBS=$LIBS
4276 LIBS="-ltermlib $LIBS"
4277 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4278 /* end confdefs.h. */
4279
4280 /* Override any GCC internal prototype to avoid an error.
4281 Use char because int might match the return type of a GCC
4282 builtin and then its argument prototype would still apply.
4283 The 'extern "C"' is for builds by C++ compilers;
4284 although this is not generally supported in C code supporting it here
4285 has little cost and some practical benefit (sr 110532). */
4286 #ifdef __cplusplus
4287 extern "C"
4288 #endif
4289 char tgetent (void);
4290 int
4291 main (void)
4292 {
4293 return tgetent ();
4294 ;
4295 return 0;
4296 }
4297 _ACEOF
4298 if ac_fn_c_try_link "$LINENO"
4299 then :
4300 ac_cv_lib_termlib_tgetent=yes
4301 else case e in #(
4302 e) ac_cv_lib_termlib_tgetent=no ;;
4303 esac
4304 fi
4305 rm -f core conftest.err conftest.$ac_objext conftest.beam \
4306 conftest$ac_exeext conftest.$ac_ext
4307 LIBS=$ac_check_lib_save_LIBS ;;
4308 esac
4309 fi
4310 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_termlib_tgetent" >&5
4311 printf "%s\n" "$ac_cv_lib_termlib_tgetent" >&6; }
4312 if test "x$ac_cv_lib_termlib_tgetent" = xyes
4313 then :
4314 have_termlib=yes
4315 else case e in #(
4316 e) have_termlib=no ;;
4317 esac
4318 fi
4319
4320 # Regular expressions (regcmp) are in -lgen on Solaris 2, (but in libc
4321 # at least on Solaris 10 (2.10)) and in -lintl on SCO Unix.
4322 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing regcmp" >&5
4323 printf %s "checking for library containing regcmp... " >&6; }
4324 if test ${ac_cv_search_regcmp+y}
4325 then :
4326 printf %s "(cached) " >&6
4327 else case e in #(
4328 e) ac_func_search_save_LIBS=$LIBS
4329 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4330 /* end confdefs.h. */
4331
4332 /* Override any GCC internal prototype to avoid an error.
4333 Use char because int might match the return type of a GCC
4334 builtin and then its argument prototype would still apply.
4335 The 'extern "C"' is for builds by C++ compilers;
4336 although this is not generally supported in C code supporting it here
4337 has little cost and some practical benefit (sr 110532). */
4338 #ifdef __cplusplus
4339 extern "C"
4340 #endif
4341 char regcmp (void);
4342 int
4343 main (void)
4344 {
4345 return regcmp ();
4346 ;
4347 return 0;
4348 }
4349 _ACEOF
4350 for ac_lib in '' gen intl PW
4351 do
4352 if test -z "$ac_lib"; then
4353 ac_res="none required"
4354 else
4355 ac_res=-l$ac_lib
4356 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
4357 fi
4358 if ac_fn_c_try_link "$LINENO"
4359 then :
4360 ac_cv_search_regcmp=$ac_res
4361 fi
4362 rm -f core conftest.err conftest.$ac_objext conftest.beam \
4363 conftest$ac_exeext
4364 if test ${ac_cv_search_regcmp+y}
4365 then :
4366 break
4367 fi
4368 done
4369 if test ${ac_cv_search_regcmp+y}
4370 then :
4371
4372 else case e in #(
4373 e) ac_cv_search_regcmp=no ;;
4374 esac
4375 fi
4376 rm conftest.$ac_ext
4377 LIBS=$ac_func_search_save_LIBS ;;
4378 esac
4379 fi
4380 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_regcmp" >&5
4381 printf "%s\n" "$ac_cv_search_regcmp" >&6; }
4382 ac_res=$ac_cv_search_regcmp
4383 if test "$ac_res" != no
4384 then :
4385 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
4386
4387 fi
4388
4389
4390 # Checks for header files.
4391 ac_header= ac_cache=
4392 for ac_item in $ac_header_c_list
4393 do
4394 if test $ac_cache; then
4395 ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default"
4396 if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then
4397 printf "%s\n" "#define $ac_item 1" >> confdefs.h
4398 fi
4399 ac_header= ac_cache=
4400 elif test $ac_header; then
4401 ac_cache=$ac_item
4402 else
4403 ac_header=$ac_item
4404 fi
4405 done
4406
4407
4408
4409
4410
4411
4412
4413
4414 if test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes
4415 then :
4416
4417 printf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h
4418
4419 fi
4420
4421
4422
4423
4424
4425
4426
4427
4428
4429
4430
4431
4432
4433
4434
4435
4436
4437
4438
4439 # Checks for typedefs, structures, and compiler characteristics.
4440 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5
4441 printf %s "checking whether stat file-mode macros are broken... " >&6; }
4442 if test ${ac_cv_header_stat_broken+y}
4443 then :
4444 printf %s "(cached) " >&6
4445 else case e in #(
4446 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4447 /* end confdefs.h. */
4448 #include <sys/types.h>
4449 #include <sys/stat.h>
4450
4451 #if defined S_ISBLK && defined S_IFDIR
4452 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
4453 #endif
4454
4455 #if defined S_ISBLK && defined S_IFCHR
4456 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
4457 #endif
4458
4459 #if defined S_ISLNK && defined S_IFREG
4460 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
4461 #endif
4462
4463 #if defined S_ISSOCK && defined S_IFREG
4464 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
4465 #endif
4466
4467 _ACEOF
4468 if ac_fn_c_try_compile "$LINENO"
4469 then :
4470 ac_cv_header_stat_broken=no
4471 else case e in #(
4472 e) ac_cv_header_stat_broken=yes ;;
4473 esac
4474 fi
4475 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
4476 esac
4477 fi
4478 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5
4479 printf "%s\n" "$ac_cv_header_stat_broken" >&6; }
4480 if test $ac_cv_header_stat_broken = yes; then
4481
4482 printf "%s\n" "#define STAT_MACROS_BROKEN 1" >>confdefs.h
4483
4484 fi
4485
4486 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
4487 printf %s "checking for an ANSI C-conforming const... " >&6; }
4488 if test ${ac_cv_c_const+y}
4489 then :
4490 printf %s "(cached) " >&6
4491 else case e in #(
4492 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4493 /* end confdefs.h. */
4494
4495 int
4496 main (void)
4497 {
4498
4499 #ifndef __cplusplus
4500 /* Ultrix mips cc rejects this sort of thing. */
4501 typedef int charset[2];
4502 const charset cs = { 0, 0 };
4503 /* SunOS 4.1.1 cc rejects this. */
4504 char const *const *pcpcc;
4505 char **ppc;
4506 /* NEC SVR4.0.2 mips cc rejects this. */
4507 struct point {int x, y;};
4508 static struct point const zero = {0,0};
4509 /* IBM XL C 1.02.0.0 rejects this.
4510 It does not let you subtract one const X* pointer from another in
4511 an arm of an if-expression whose if-part is not a constant
4512 expression */
4513 const char *g = "string";
4514 pcpcc = &g + (g ? g-g : 0);
4515 /* HPUX 7.0 cc rejects these. */
4516 ++pcpcc;
4517 ppc = (char**) pcpcc;
4518 pcpcc = (char const *const *) ppc;
4519 { /* SCO 3.2v4 cc rejects this sort of thing. */
4520 char tx;
4521 char *t = &tx;
4522 char const *s = 0 ? (char *) 0 : (char const *) 0;
4523
4524 *t++ = 0;
4525 if (s) return 0;
4526 }
4527 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
4528 int x[] = {25, 17};
4529 const int *foo = &x[0];
4530 ++foo;
4531 }
4532 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
4533 typedef const int *iptr;
4534 iptr p = 0;
4535 ++p;
4536 }
4537 { /* IBM XL C 1.02.0.0 rejects this sort of thing, saying
4538 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
4539 struct s { int j; const int *ap[3]; } bx;
4540 struct s *b = &bx; b->j = 5;
4541 }
4542 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
4543 const int foo = 10;
4544 if (!foo) return 0;
4545 }
4546 return !cs[0] && !zero.x;
4547 #endif
4548
4549 ;
4550 return 0;
4551 }
4552 _ACEOF
4553 if ac_fn_c_try_compile "$LINENO"
4554 then :
4555 ac_cv_c_const=yes
4556 else case e in #(
4557 e) ac_cv_c_const=no ;;
4558 esac
4559 fi
4560 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
4561 esac
4562 fi
4563 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
4564 printf "%s\n" "$ac_cv_c_const" >&6; }
4565 if test $ac_cv_c_const = no; then
4566
4567 printf "%s\n" "#define const /**/" >>confdefs.h
4568
4569 fi
4570
4571 ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
4572 if test "x$ac_cv_type_off_t" = xyes
4573 then :
4574
4575 else case e in #(
4576 e)
4577 printf "%s\n" "#define off_t long int" >>confdefs.h
4578 ;;
4579 esac
4580 fi
4581
4582 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
4583 if test "x$ac_cv_type_size_t" = xyes
4584 then :
4585
4586 else case e in #(
4587 e)
4588 printf "%s\n" "#define size_t unsigned int" >>confdefs.h
4589 ;;
4590 esac
4591 fi
4592
4593
4594 # Checks for terminal libraries
4595 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for working terminal libraries" >&5
4596 printf %s "checking for working terminal libraries... " >&6; }
4597 TERMLIBS=
4598 include_termcap_h=
4599 if test "x$ac_cv_header_termcap_h" = xyes; then include_termcap_h="#include <termcap.h>"; elif test "x$ac_cv_header_ncurses_termcap_h" = xyes; then include_termcap_h="#include <ncurses/termcap.h>"; elif test "x$ac_cv_header_ncursesw_termcap_h" = xyes; then include_termcap_h="#include <ncursesw/termcap.h>"; fi
4600
4601 # Check for systems where curses is broken.
4602 curses_broken=0
4603 if test x`uname -s` = "xHP-UX" >/dev/null 2>&1; then
4604 if test x`uname -r` = "xB.11.00" >/dev/null 2>&1; then
4605 curses_broken=1
4606 fi
4607 if test x`uname -r` = "xB.11.11" >/dev/null 2>&1; then
4608 curses_broken=1
4609 fi
4610 fi
4611
4612 if test $curses_broken = 0; then
4613
4614 # -- Try tinfow.
4615 if test "x$TERMLIBS" = x; then
4616 if test $have_tinfow = yes; then
4617 TERMLIBS="-ltinfow"
4618 SAVE_LIBS=$LIBS
4619 LIBS="$LIBS $TERMLIBS"
4620 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4621 /* end confdefs.h. */
4622 $include_termcap_h
4623 int
4624 main (void)
4625 {
4626 tgetent(0,0); tgetflag(0); tgetnum(0); tgetstr(0,0);
4627 ;
4628 return 0;
4629 }
4630 _ACEOF
4631 if ac_fn_c_try_link "$LINENO"
4632 then :
4633 termok=yes
4634 else case e in #(
4635 e) termok=no ;;
4636 esac
4637 fi
4638 rm -f core conftest.err conftest.$ac_objext conftest.beam \
4639 conftest$ac_exeext conftest.$ac_ext
4640 LIBS=$SAVE_LIBS
4641 if test $termok = no; then TERMLIBS=""; fi
4642 fi
4643 fi
4644
4645 # -- Try tinfo.
4646 if test "x$TERMLIBS" = x; then
4647 if test $have_tinfo = yes; then
4648 TERMLIBS="-ltinfo"
4649 SAVE_LIBS=$LIBS
4650 LIBS="$LIBS $TERMLIBS"
4651 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4652 /* end confdefs.h. */
4653 $include_termcap_h
4654 int
4655 main (void)
4656 {
4657 tgetent(0,0); tgetflag(0); tgetnum(0); tgetstr(0,0);
4658 ;
4659 return 0;
4660 }
4661 _ACEOF
4662 if ac_fn_c_try_link "$LINENO"
4663 then :
4664 termok=yes
4665 else case e in #(
4666 e) termok=no ;;
4667 esac
4668 fi
4669 rm -f core conftest.err conftest.$ac_objext conftest.beam \
4670 conftest$ac_exeext conftest.$ac_ext
4671 LIBS=$SAVE_LIBS
4672 if test $termok = no; then TERMLIBS=""; fi
4673 fi
4674 fi
4675
4676 # -- Try xcurses.
4677 if test "x$TERMLIBS" = x; then
4678 if test $have_xcurses = yes; then
4679 TERMLIBS="-lxcurses"
4680 SAVE_LIBS=$LIBS
4681 LIBS="$LIBS $TERMLIBS"
4682 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4683 /* end confdefs.h. */
4684 $include_termcap_h
4685 int
4686 main (void)
4687 {
4688 tgetent(0,0); tgetflag(0); tgetnum(0); tgetstr(0,0);
4689 ;
4690 return 0;
4691 }
4692 _ACEOF
4693 if ac_fn_c_try_link "$LINENO"
4694 then :
4695 termok=yes
4696 else case e in #(
4697 e) termok=no ;;
4698 esac
4699 fi
4700 rm -f core conftest.err conftest.$ac_objext conftest.beam \
4701 conftest$ac_exeext conftest.$ac_ext
4702 LIBS=$SAVE_LIBS
4703 if test $termok = no; then TERMLIBS=""; fi
4704 fi
4705 fi
4706
4707 # -- Try ncursesw.
4708 if test "x$TERMLIBS" = x; then
4709 if test $have_ncursesw = yes; then
4710 TERMLIBS="-lncursesw"
4711 SAVE_LIBS=$LIBS
4712 LIBS="$LIBS $TERMLIBS"
4713 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4714 /* end confdefs.h. */
4715 $include_termcap_h
4716 int
4717 main (void)
4718 {
4719 tgetent(0,0); tgetflag(0); tgetnum(0); tgetstr(0,0);
4720 ;
4721 return 0;
4722 }
4723 _ACEOF
4724 if ac_fn_c_try_link "$LINENO"
4725 then :
4726 termok=yes
4727 else case e in #(
4728 e) termok=no ;;
4729 esac
4730 fi
4731 rm -f core conftest.err conftest.$ac_objext conftest.beam \
4732 conftest$ac_exeext conftest.$ac_ext
4733 LIBS=$SAVE_LIBS
4734 if test $termok = no; then TERMLIBS=""; fi
4735 fi
4736 fi
4737
4738 # -- Try ncurses.
4739 if test "x$TERMLIBS" = x; then
4740 if test $have_ncurses = yes; then
4741 TERMLIBS="-lncurses"
4742 SAVE_LIBS=$LIBS
4743 LIBS="$LIBS $TERMLIBS"
4744 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4745 /* end confdefs.h. */
4746 $include_termcap_h
4747 int
4748 main (void)
4749 {
4750 tgetent(0,0); tgetflag(0); tgetnum(0); tgetstr(0,0);
4751 ;
4752 return 0;
4753 }
4754 _ACEOF
4755 if ac_fn_c_try_link "$LINENO"
4756 then :
4757 termok=yes
4758 else case e in #(
4759 e) termok=no ;;
4760 esac
4761 fi
4762 rm -f core conftest.err conftest.$ac_objext conftest.beam \
4763 conftest$ac_exeext conftest.$ac_ext
4764 LIBS=$SAVE_LIBS
4765 if test $termok = no; then TERMLIBS=""; fi
4766 fi
4767 fi
4768
4769 # -- Try curses.
4770 if test "x$TERMLIBS" = x; then
4771 if test $have_curses = yes; then
4772 TERMLIBS="-lcurses"
4773 SAVE_LIBS=$LIBS
4774 LIBS="$LIBS $TERMLIBS"
4775 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4776 /* end confdefs.h. */
4777 $include_termcap_h
4778 int
4779 main (void)
4780 {
4781 tgetent(0,0); tgetflag(0); tgetnum(0); tgetstr(0,0);
4782 ;
4783 return 0;
4784 }
4785 _ACEOF
4786 if ac_fn_c_try_link "$LINENO"
4787 then :
4788 termok=yes
4789 else case e in #(
4790 e) termok=no ;;
4791 esac
4792 fi
4793 rm -f core conftest.err conftest.$ac_objext conftest.beam \
4794 conftest$ac_exeext conftest.$ac_ext
4795 LIBS=$SAVE_LIBS
4796 if test $termok = no; then TERMLIBS=""; fi
4797 fi
4798 fi
4799
4800 # -- Try curses & termcap.
4801 if test "x$TERMLIBS" = x; then
4802 if test $have_curses = yes; then
4803 if test $have_termcap = yes; then
4804 TERMLIBS="-lcurses -ltermcap"
4805 SAVE_LIBS=$LIBS
4806 LIBS="$LIBS $TERMLIBS"
4807 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4808 /* end confdefs.h. */
4809 $include_termcap_h
4810 int
4811 main (void)
4812 {
4813 tgetent(0,0); tgetflag(0); tgetnum(0); tgetstr(0,0);
4814 ;
4815 return 0;
4816 }
4817 _ACEOF
4818 if ac_fn_c_try_link "$LINENO"
4819 then :
4820 termok=yes
4821 else case e in #(
4822 e) termok=no ;;
4823 esac
4824 fi
4825 rm -f core conftest.err conftest.$ac_objext conftest.beam \
4826 conftest$ac_exeext conftest.$ac_ext
4827 LIBS=$SAVE_LIBS
4828 if test $termok = no; then TERMLIBS=""; fi
4829 fi
4830 fi
4831 fi
4832 fi
4833
4834 # -- Try termcap.
4835 if test "x$TERMLIBS" = x; then
4836 if test $have_termcap = yes; then
4837 TERMLIBS="-ltermcap"
4838 SAVE_LIBS=$LIBS
4839 LIBS="$LIBS $TERMLIBS"
4840 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4841 /* end confdefs.h. */
4842 $include_termcap_h
4843 int
4844 main (void)
4845 {
4846 tgetent(0,0); tgetflag(0); tgetnum(0); tgetstr(0,0);
4847 ;
4848 return 0;
4849 }
4850 _ACEOF
4851 if ac_fn_c_try_link "$LINENO"
4852 then :
4853 termok=yes
4854 else case e in #(
4855 e) termok=no ;;
4856 esac
4857 fi
4858 rm -f core conftest.err conftest.$ac_objext conftest.beam \
4859 conftest$ac_exeext conftest.$ac_ext
4860 LIBS=$SAVE_LIBS
4861 if test $termok = no; then TERMLIBS=""; fi
4862 fi
4863 fi
4864
4865 # -- Try termlib.
4866 if test "x$TERMLIBS" = x; then
4867 if test $have_termlib = yes; then
4868 TERMLIBS="-lcurses -ltermlib"
4869 SAVE_LIBS=$LIBS
4870 LIBS="$LIBS $TERMLIBS"
4871 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4872 /* end confdefs.h. */
4873 $include_termcap_h
4874 int
4875 main (void)
4876 {
4877 tgetent(0,0); tgetflag(0); tgetnum(0); tgetstr(0,0);
4878 ;
4879 return 0;
4880 }
4881 _ACEOF
4882 if ac_fn_c_try_link "$LINENO"
4883 then :
4884 termok=yes
4885 else case e in #(
4886 e) termok=no ;;
4887 esac
4888 fi
4889 rm -f core conftest.err conftest.$ac_objext conftest.beam \
4890 conftest$ac_exeext conftest.$ac_ext
4891 LIBS=$SAVE_LIBS
4892 if test $termok = no; then TERMLIBS=""; fi
4893 fi
4894 fi
4895
4896 if test "x$TERMLIBS" = x; then
4897 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Cannot find terminal libraries - configure failed" >&5
4898 printf "%s\n" "Cannot find terminal libraries - configure failed" >&6; }
4899 exit 1
4900 fi
4901 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: using $TERMLIBS" >&5
4902 printf "%s\n" "using $TERMLIBS" >&6; }
4903 LIBS="$LIBS $TERMLIBS"
4904
4905 # Autoheader templates for symbols defined later by AC_DEFINE.
4906
4907
4908
4909
4910
4911
4912
4913
4914
4915
4916
4917
4918
4919
4920
4921
4922
4923
4924
4925
4926
4927
4928
4929
4930
4931
4932
4933
4934
4935 # Checks for identifiers.
4936 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for void" >&5
4937 printf %s "checking for void... " >&6; }
4938 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4939 /* end confdefs.h. */
4940
4941 int
4942 main (void)
4943 {
4944 void *foo = 0;
4945 ;
4946 return 0;
4947 }
4948 _ACEOF
4949 if ac_fn_c_try_compile "$LINENO"
4950 then :
4951 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4952 printf "%s\n" "yes" >&6; }; printf "%s\n" "#define HAVE_VOID 1" >>confdefs.h
4953
4954 else case e in #(
4955 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4956 printf "%s\n" "no" >&6; } ;;
4957 esac
4958 fi
4959 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4960 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for const" >&5
4961 printf %s "checking for const... " >&6; }
4962 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4963 /* end confdefs.h. */
4964
4965 int
4966 main (void)
4967 {
4968 const int foo = 0;
4969 ;
4970 return 0;
4971 }
4972 _ACEOF
4973 if ac_fn_c_try_compile "$LINENO"
4974 then :
4975 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4976 printf "%s\n" "yes" >&6; }; printf "%s\n" "#define HAVE_CONST 1" >>confdefs.h
4977
4978 else case e in #(
4979 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4980 printf "%s\n" "no" >&6; } ;;
4981 esac
4982 fi
4983 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4984 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for time_t" >&5
4985 printf %s "checking for time_t... " >&6; }
4986 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4987 /* end confdefs.h. */
4988 #include <time.h>
4989 int
4990 main (void)
4991 {
4992 time_t t = 0;
4993 ;
4994 return 0;
4995 }
4996 _ACEOF
4997 if ac_fn_c_try_compile "$LINENO"
4998 then :
4999 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5000 printf "%s\n" "yes" >&6; }; printf "%s\n" "#define HAVE_TIME_T 1" >>confdefs.h
5001
5002 else case e in #(
5003 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5004 printf "%s\n" "no" >&6; } ;;
5005 esac
5006 fi
5007 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5008 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for st_ino in struct stat" >&5
5009 printf %s "checking for st_ino in struct stat... " >&6; }
5010 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5011 /* end confdefs.h. */
5012 #include <sys/types.h>
5013 #include <sys/stat.h>
5014 int
5015 main (void)
5016 {
5017 struct stat s; dev_t dev = s.st_dev; ino_t ino = s.st_ino;
5018 ;
5019 return 0;
5020 }
5021 _ACEOF
5022 if ac_fn_c_try_compile "$LINENO"
5023 then :
5024 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5025 printf "%s\n" "yes" >&6; }; printf "%s\n" "#define HAVE_STAT_INO 1" >>confdefs.h
5026
5027 else case e in #(
5028 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5029 printf "%s\n" "no" >&6; } ;;
5030 esac
5031 fi
5032 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5033
5034 # Checks for ANSI function prototypes.
5035 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ANSI function prototypes" >&5
5036 printf %s "checking for ANSI function prototypes... " >&6; }
5037 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5038 /* end confdefs.h. */
5039
5040 int
5041 main (void)
5042 {
5043 int f(int a) { return a; }
5044 ;
5045 return 0;
5046 }
5047 _ACEOF
5048 if ac_fn_c_try_compile "$LINENO"
5049 then :
5050 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5051 printf "%s\n" "yes" >&6; }; printf "%s\n" "#define HAVE_ANSI_PROTOS 1" >>confdefs.h
5052
5053 else case e in #(
5054 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5055 printf "%s\n" "no" >&6; } ;;
5056 esac
5057 fi
5058 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5059
5060 # Checks for library functions.
5061 ac_fn_c_check_func "$LINENO" "fchmod" "ac_cv_func_fchmod"
5062 if test "x$ac_cv_func_fchmod" = xyes
5063 then :
5064 printf "%s\n" "#define HAVE_FCHMOD 1" >>confdefs.h
5065
5066 fi
5067 ac_fn_c_check_func "$LINENO" "fsync" "ac_cv_func_fsync"
5068 if test "x$ac_cv_func_fsync" = xyes
5069 then :
5070 printf "%s\n" "#define HAVE_FSYNC 1" >>confdefs.h
5071
5072 fi
5073 ac_fn_c_check_func "$LINENO" "nanosleep" "ac_cv_func_nanosleep"
5074 if test "x$ac_cv_func_nanosleep" = xyes
5075 then :
5076 printf "%s\n" "#define HAVE_NANOSLEEP 1" >>confdefs.h
5077
5078 fi
5079 ac_fn_c_check_func "$LINENO" "poll" "ac_cv_func_poll"
5080 if test "x$ac_cv_func_poll" = xyes
5081 then :
5082 printf "%s\n" "#define HAVE_POLL 1" >>confdefs.h
5083
5084 fi
5085 ac_fn_c_check_func "$LINENO" "popen" "ac_cv_func_popen"
5086 if test "x$ac_cv_func_popen" = xyes
5087 then :
5088 printf "%s\n" "#define HAVE_POPEN 1" >>confdefs.h
5089
5090 fi
5091 ac_fn_c_check_func "$LINENO" "realpath" "ac_cv_func_realpath"
5092 if test "x$ac_cv_func_realpath" = xyes
5093 then :
5094 printf "%s\n" "#define HAVE_REALPATH 1" >>confdefs.h
5095
5096 fi
5097 ac_fn_c_check_func "$LINENO" "_setjmp" "ac_cv_func__setjmp"
5098 if test "x$ac_cv_func__setjmp" = xyes
5099 then :
5100 printf "%s\n" "#define HAVE__SETJMP 1" >>confdefs.h
5101
5102 fi
5103 ac_fn_c_check_func "$LINENO" "sigprocmask" "ac_cv_func_sigprocmask"
5104 if test "x$ac_cv_func_sigprocmask" = xyes
5105 then :
5106 printf "%s\n" "#define HAVE_SIGPROCMASK 1" >>confdefs.h
5107
5108 fi
5109 ac_fn_c_check_func "$LINENO" "sigsetmask" "ac_cv_func_sigsetmask"
5110 if test "x$ac_cv_func_sigsetmask" = xyes
5111 then :
5112 printf "%s\n" "#define HAVE_SIGSETMASK 1" >>confdefs.h
5113
5114 fi
5115 ac_fn_c_check_func "$LINENO" "snprintf" "ac_cv_func_snprintf"
5116 if test "x$ac_cv_func_snprintf" = xyes
5117 then :
5118 printf "%s\n" "#define HAVE_SNPRINTF 1" >>confdefs.h
5119
5120 fi
5121 ac_fn_c_check_func "$LINENO" "stat" "ac_cv_func_stat"
5122 if test "x$ac_cv_func_stat" = xyes
5123 then :
5124 printf "%s\n" "#define HAVE_STAT 1" >>confdefs.h
5125
5126 fi
5127 ac_fn_c_check_func "$LINENO" "strsignal" "ac_cv_func_strsignal"
5128 if test "x$ac_cv_func_strsignal" = xyes
5129 then :
5130 printf "%s\n" "#define HAVE_STRSIGNAL 1" >>confdefs.h
5131
5132 fi
5133 ac_fn_c_check_func "$LINENO" "system" "ac_cv_func_system"
5134 if test "x$ac_cv_func_system" = xyes
5135 then :
5136 printf "%s\n" "#define HAVE_SYSTEM 1" >>confdefs.h
5137
5138 fi
5139 ac_fn_c_check_func "$LINENO" "ttyname" "ac_cv_func_ttyname"
5140 if test "x$ac_cv_func_ttyname" = xyes
5141 then :
5142 printf "%s\n" "#define HAVE_TTYNAME 1" >>confdefs.h
5143
5144 fi
5145 ac_fn_c_check_func "$LINENO" "usleep" "ac_cv_func_usleep"
5146 if test "x$ac_cv_func_usleep" = xyes
5147 then :
5148 printf "%s\n" "#define HAVE_USLEEP 1" >>confdefs.h
5149
5150 fi
5151
5152
5153 # AC_CHECK_FUNCS may not work for inline functions, so test these separately.
5154 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for memcpy" >&5
5155 printf %s "checking for memcpy... " >&6; }
5156 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5157 /* end confdefs.h. */
5158
5159 #if HAVE_STRING_H
5160 #include <string.h>
5161 #endif
5162 int
5163 main (void)
5164 {
5165 memcpy(0,0,0);
5166 ;
5167 return 0;
5168 }
5169 _ACEOF
5170 if ac_fn_c_try_link "$LINENO"
5171 then :
5172 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5173 printf "%s\n" "yes" >&6; }; printf "%s\n" "#define HAVE_MEMCPY 1" >>confdefs.h
5174
5175 else case e in #(
5176 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5177 printf "%s\n" "no" >&6; } ;;
5178 esac
5179 fi
5180 rm -f core conftest.err conftest.$ac_objext conftest.beam \
5181 conftest$ac_exeext conftest.$ac_ext
5182
5183 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for strchr" >&5
5184 printf %s "checking for strchr... " >&6; }
5185 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5186 /* end confdefs.h. */
5187
5188 #if HAVE_STRING_H
5189 #include <string.h>
5190 #endif
5191 int
5192 main (void)
5193 {
5194 strchr("x",'x');
5195 ;
5196 return 0;
5197 }
5198 _ACEOF
5199 if ac_fn_c_try_link "$LINENO"
5200 then :
5201 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5202 printf "%s\n" "yes" >&6; }; printf "%s\n" "#define HAVE_STRCHR 1" >>confdefs.h
5203
5204 else case e in #(
5205 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5206 printf "%s\n" "no" >&6; } ;;
5207 esac
5208 fi
5209 rm -f core conftest.err conftest.$ac_objext conftest.beam \
5210 conftest$ac_exeext conftest.$ac_ext
5211
5212 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for strstr" >&5
5213 printf %s "checking for strstr... " >&6; }
5214 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5215 /* end confdefs.h. */
5216
5217 #if HAVE_STRING_H
5218 #include <string.h>
5219 #endif
5220 int
5221 main (void)
5222 {
5223 strstr("x","x");
5224 ;
5225 return 0;
5226 }
5227 _ACEOF
5228 if ac_fn_c_try_link "$LINENO"
5229 then :
5230 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5231 printf "%s\n" "yes" >&6; }; printf "%s\n" "#define HAVE_STRSTR 1" >>confdefs.h
5232
5233 else case e in #(
5234 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5235 printf "%s\n" "no" >&6; } ;;
5236 esac
5237 fi
5238 rm -f core conftest.err conftest.$ac_objext conftest.beam \
5239 conftest$ac_exeext conftest.$ac_ext
5240
5241 # Some systems have termios.h but not the corresponding functions.
5242 ac_fn_c_check_func "$LINENO" "tcgetattr" "ac_cv_func_tcgetattr"
5243 if test "x$ac_cv_func_tcgetattr" = xyes
5244 then :
5245 printf "%s\n" "#define HAVE_TERMIOS_FUNCS 1" >>confdefs.h
5246
5247 fi
5248
5249
5250 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for fileno" >&5
5251 printf %s "checking for fileno... " >&6; }
5252 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5253 /* end confdefs.h. */
5254
5255 #if HAVE_STDIO_H
5256 #include <stdio.h>
5257 #endif
5258 int
5259 main (void)
5260 {
5261 static int x; x = fileno(stdin);
5262 ;
5263 return 0;
5264 }
5265 _ACEOF
5266 if ac_fn_c_try_link "$LINENO"
5267 then :
5268 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5269 printf "%s\n" "yes" >&6; }; printf "%s\n" "#define HAVE_FILENO 1" >>confdefs.h
5270
5271 else case e in #(
5272 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5273 printf "%s\n" "no" >&6; } ;;
5274 esac
5275 fi
5276 rm -f core conftest.err conftest.$ac_objext conftest.beam \
5277 conftest$ac_exeext conftest.$ac_ext
5278
5279 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for strerror" >&5
5280 printf %s "checking for strerror... " >&6; }
5281 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5282 /* end confdefs.h. */
5283
5284 #if HAVE_STDIO_H
5285 #include <stdio.h>
5286 #endif
5287 #if HAVE_STRING_H
5288 #include <string.h>
5289 #endif
5290 #if HAVE_ERRNO_H
5291 #include <errno.h>
5292 #endif
5293 int
5294 main (void)
5295 {
5296 static char *x; x = strerror(0);
5297 ;
5298 return 0;
5299 }
5300 _ACEOF
5301 if ac_fn_c_try_link "$LINENO"
5302 then :
5303 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5304 printf "%s\n" "yes" >&6; }; printf "%s\n" "#define HAVE_STRERROR 1" >>confdefs.h
5305
5306 else case e in #(
5307 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5308 printf "%s\n" "no" >&6; } ;;
5309 esac
5310 fi
5311 rm -f core conftest.err conftest.$ac_objext conftest.beam \
5312 conftest$ac_exeext conftest.$ac_ext
5313
5314 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sys_errlist" >&5
5315 printf %s "checking for sys_errlist... " >&6; }
5316 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5317 /* end confdefs.h. */
5318
5319 int
5320 main (void)
5321 {
5322 extern char *sys_errlist[]; static char **x; x = sys_errlist;
5323 ;
5324 return 0;
5325 }
5326 _ACEOF
5327 if ac_fn_c_try_link "$LINENO"
5328 then :
5329 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5330 printf "%s\n" "yes" >&6; }; printf "%s\n" "#define HAVE_SYS_ERRLIST 1" >>confdefs.h
5331
5332 else case e in #(
5333 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5334 printf "%s\n" "no" >&6; } ;;
5335 esac
5336 fi
5337 rm -f core conftest.err conftest.$ac_objext conftest.beam \
5338 conftest$ac_exeext conftest.$ac_ext
5339
5340 ac_fn_c_check_type "$LINENO" "sigset_t" "ac_cv_type_sigset_t" "#include <signal.h>
5341 "
5342 if test "x$ac_cv_type_sigset_t" = xyes
5343 then :
5344
5345 printf "%s\n" "#define HAVE_SIGSET_T 1" >>confdefs.h
5346
5347
5348 fi
5349
5350
5351 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sigemptyset" >&5
5352 printf %s "checking for sigemptyset... " >&6; }
5353 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5354 /* end confdefs.h. */
5355
5356 #include <signal.h>
5357
5358 int
5359 main (void)
5360 {
5361 sigset_t s; sigemptyset(&s);
5362 ;
5363 return 0;
5364 }
5365 _ACEOF
5366 if ac_fn_c_try_link "$LINENO"
5367 then :
5368 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5369 printf "%s\n" "yes" >&6; }; printf "%s\n" "#define HAVE_SIGEMPTYSET 1" >>confdefs.h
5370
5371 else case e in #(
5372 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5373 printf "%s\n" "no" >&6; } ;;
5374 esac
5375 fi
5376 rm -f core conftest.err conftest.$ac_objext conftest.beam \
5377 conftest$ac_exeext conftest.$ac_ext
5378
5379 have_errno=no
5380 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for errno" >&5
5381 printf %s "checking for errno... " >&6; }
5382 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5383 /* end confdefs.h. */
5384
5385 #if HAVE_ERRNO_H
5386 #include <errno.h>
5387 #endif
5388 int
5389 main (void)
5390 {
5391 static int x; x = errno;
5392 ;
5393 return 0;
5394 }
5395 _ACEOF
5396 if ac_fn_c_try_link "$LINENO"
5397 then :
5398 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes - in errno.h" >&5
5399 printf "%s\n" "yes - in errno.h" >&6; }; printf "%s\n" "#define HAVE_ERRNO 1" >>confdefs.h
5400 have_errno=yes
5401 fi
5402 rm -f core conftest.err conftest.$ac_objext conftest.beam \
5403 conftest$ac_exeext conftest.$ac_ext
5404 if test $have_errno = no; then
5405 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5406 /* end confdefs.h. */
5407
5408 #if HAVE_ERRNO_H
5409 #include <errno.h>
5410 #endif
5411 int
5412 main (void)
5413 {
5414 extern int errno; static int x; x = errno;
5415 ;
5416 return 0;
5417 }
5418 _ACEOF
5419 if ac_fn_c_try_link "$LINENO"
5420 then :
5421 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes - must define" >&5
5422 printf "%s\n" "yes - must define" >&6; }; printf "%s\n" "#define HAVE_ERRNO 1" >>confdefs.h
5423 printf "%s\n" "#define MUST_DEFINE_ERRNO 1" >>confdefs.h
5424
5425 else case e in #(
5426 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5427 printf "%s\n" "no" >&6; } ;;
5428 esac
5429 fi
5430 rm -f core conftest.err conftest.$ac_objext conftest.beam \
5431 conftest$ac_exeext conftest.$ac_ext
5432 fi
5433
5434 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for locale" >&5
5435 printf %s "checking for locale... " >&6; }
5436 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5437 /* end confdefs.h. */
5438 #include <locale.h>
5439 #include <ctype.h>
5440 #include <langinfo.h>
5441 int
5442 main (void)
5443 {
5444 setlocale(LC_CTYPE,""); isprint(0); iscntrl(0);
5445 ;
5446 return 0;
5447 }
5448 _ACEOF
5449 if ac_fn_c_try_link "$LINENO"
5450 then :
5451 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5452 printf "%s\n" "yes" >&6; }; printf "%s\n" "#define HAVE_LOCALE 1" >>confdefs.h
5453
5454 else case e in #(
5455 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5456 printf "%s\n" "no" >&6; } ;;
5457 esac
5458 fi
5459 rm -f core conftest.err conftest.$ac_objext conftest.beam \
5460 conftest$ac_exeext conftest.$ac_ext
5461
5462 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ctype functions" >&5
5463 printf %s "checking for ctype functions... " >&6; }
5464 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5465 /* end confdefs.h. */
5466
5467 #if HAVE_CTYPE_H
5468 #include <ctype.h>
5469 #endif
5470 int
5471 main (void)
5472 {
5473 static int x; x = isupper(x); x = tolower(x); x = toupper(x);
5474 ;
5475 return 0;
5476 }
5477 _ACEOF
5478 if ac_fn_c_try_link "$LINENO"
5479 then :
5480 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5481 printf "%s\n" "yes" >&6; }; printf "%s\n" "#define HAVE_UPPER_LOWER 1" >>confdefs.h
5482
5483 else case e in #(
5484 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5485 printf "%s\n" "no" >&6; } ;;
5486 esac
5487 fi
5488 rm -f core conftest.err conftest.$ac_objext conftest.beam \
5489 conftest$ac_exeext conftest.$ac_ext
5490
5491 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for wctype functions" >&5
5492 printf %s "checking for wctype functions... " >&6; }
5493 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5494 /* end confdefs.h. */
5495 #include <wctype.h>
5496 int
5497 main (void)
5498 {
5499 iswlower(0); iswupper(0); towlower(0); towupper(0);
5500 ;
5501 return 0;
5502 }
5503 _ACEOF
5504 if ac_fn_c_try_link "$LINENO"
5505 then :
5506 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5507 printf "%s\n" "yes" >&6; }; printf "%s\n" "#define HAVE_WCTYPE 1" >>confdefs.h
5508
5509 else case e in #(
5510 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5511 printf "%s\n" "no" >&6; } ;;
5512 esac
5513 fi
5514 rm -f core conftest.err conftest.$ac_objext conftest.beam \
5515 conftest$ac_exeext conftest.$ac_ext
5516
5517 # Checks for external variable ospeed in the termcap library.
5518 have_ospeed=no
5519 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking termcap for ospeed" >&5
5520 printf %s "checking termcap for ospeed... " >&6; }
5521 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5522 /* end confdefs.h. */
5523
5524 #include <sys/types.h>
5525 #if HAVE_TERMIOS_H
5526 #include <termios.h>
5527 #endif
5528 #if HAVE_TERMCAP_H
5529 #include <termcap.h>
5530 #endif
5531 int
5532 main (void)
5533 {
5534 ospeed = 0;
5535 ;
5536 return 0;
5537 }
5538 _ACEOF
5539 if ac_fn_c_try_link "$LINENO"
5540 then :
5541 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes - in termcap.h" >&5
5542 printf "%s\n" "yes - in termcap.h" >&6; }; printf "%s\n" "#define HAVE_OSPEED 1" >>confdefs.h
5543 have_ospeed=yes
5544 fi
5545 rm -f core conftest.err conftest.$ac_objext conftest.beam \
5546 conftest$ac_exeext conftest.$ac_ext
5547 if test $have_ospeed = no; then
5548 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5549 /* end confdefs.h. */
5550
5551 int
5552 main (void)
5553 {
5554 extern short ospeed; ospeed = 0;
5555 ;
5556 return 0;
5557 }
5558 _ACEOF
5559 if ac_fn_c_try_link "$LINENO"
5560 then :
5561 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes - must define" >&5
5562 printf "%s\n" "yes - must define" >&6; }; printf "%s\n" "#define HAVE_OSPEED 1" >>confdefs.h
5563 printf "%s\n" "#define MUST_DEFINE_OSPEED 1" >>confdefs.h
5564
5565 else case e in #(
5566 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5567 printf "%s\n" "no" >&6; } ;;
5568 esac
5569 fi
5570 rm -f core conftest.err conftest.$ac_objext conftest.beam \
5571 conftest$ac_exeext conftest.$ac_ext
5572 fi
5573
5574 # Compile in secure mode?
5575
5576 # Check whether --with-secure was given.
5577 if test ${with_secure+y}
5578 then :
5579 withval=$with_secure; printf "%s\n" "#define SECURE_COMPILE 1" >>confdefs.h
5580
5581 SECURE_COMPILE=1
5582
5583 else case e in #(
5584 e) printf "%s\n" "#define SECURE_COMPILE 0" >>confdefs.h
5585
5586 SECURE_COMPILE=0
5587 ;;
5588 esac
5589 fi
5590
5591
5592 # Checks for regular expression functions.
5593 have_regex=no
5594 have_posix_regex=unknown
5595 supported_regex=""
5596
5597 # Select a regular expression library.
5598 WANT_REGEX=auto
5599
5600 # Check whether --with-regex was given.
5601 if test ${with_regex+y}
5602 then :
5603 withval=$with_regex; WANT_REGEX="$withval"
5604 fi
5605
5606
5607 if test $have_regex = no; then
5608 if test $WANT_REGEX = auto -o $WANT_REGEX = posix; then
5609 # Some versions of Solaris have a regcomp() function, but it doesn't work!
5610 # So we run a test program. If we're cross-compiling, do it the old way.
5611 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for POSIX regcomp" >&5
5612 printf %s "checking for POSIX regcomp... " >&6; }
5613 if test "$cross_compiling" = yes
5614 then :
5615 have_posix_regex=unknown
5616 else case e in #(
5617 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5618 /* end confdefs.h. */
5619
5620 #include <sys/types.h>
5621 #include <regex.h>
5622 int main() { regex_t r; regmatch_t rm; char *text = "xabcy";
5623 if (regcomp(&r, "abc", 0)) return (1);
5624 if (regexec(&r, text, 1, &rm, 0)) return (1);
5625 #ifndef __WATCOMC__
5626 if (rm.rm_so != 1) return (1); /* check for correct offset */
5627 #else
5628 if (rm.rm_sp != text + 1) return (1); /* check for correct offset */
5629 #endif
5630 return (0); }
5631 _ACEOF
5632 if ac_fn_c_try_run "$LINENO"
5633 then :
5634 have_posix_regex=yes
5635 else case e in #(
5636 e) have_posix_regex=no ;;
5637 esac
5638 fi
5639 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5640 conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
5641 esac
5642 fi
5643
5644 if test $have_posix_regex = yes; then
5645 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5646 printf "%s\n" "yes" >&6; }
5647 printf "%s\n" "#define HAVE_POSIX_REGCOMP 1" >>confdefs.h
5648 supported_regex="$supported_regex posix"
5649 have_regex=yes
5650 elif test $have_posix_regex = unknown; then
5651 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5652 /* end confdefs.h. */
5653
5654 #include <sys/types.h>
5655 #include <regex.h>
5656 int
5657 main (void)
5658 {
5659 regex_t *r; regfree(r);
5660 ;
5661 return 0;
5662 }
5663 _ACEOF
5664 if ac_fn_c_try_link "$LINENO"
5665 then :
5666 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5667 printf "%s\n" "yes" >&6; }
5668 printf "%s\n" "#define HAVE_POSIX_REGCOMP 1" >>confdefs.h
5669 have_regex=yes; supported_regex="$supported_regex posix"
5670 fi
5671 rm -f core conftest.err conftest.$ac_objext conftest.beam \
5672 conftest$ac_exeext conftest.$ac_ext
5673 else
5674 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5675 printf "%s\n" "no" >&6; }
5676 fi
5677 fi
5678 fi
5679
5680 if test $have_regex = no; then
5681 if test $WANT_REGEX = auto -o $WANT_REGEX = pcre2; then
5682 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pcre2_compile_8 in -lpcre2-8" >&5
5683 printf %s "checking for pcre2_compile_8 in -lpcre2-8... " >&6; }
5684 if test ${ac_cv_lib_pcre2_8_pcre2_compile_8+y}
5685 then :
5686 printf %s "(cached) " >&6
5687 else case e in #(
5688 e) ac_check_lib_save_LIBS=$LIBS
5689 LIBS="-lpcre2-8 $LIBS"
5690 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5691 /* end confdefs.h. */
5692
5693 /* Override any GCC internal prototype to avoid an error.
5694 Use char because int might match the return type of a GCC
5695 builtin and then its argument prototype would still apply.
5696 The 'extern "C"' is for builds by C++ compilers;
5697 although this is not generally supported in C code supporting it here
5698 has little cost and some practical benefit (sr 110532). */
5699 #ifdef __cplusplus
5700 extern "C"
5701 #endif
5702 char pcre2_compile_8 (void);
5703 int
5704 main (void)
5705 {
5706 return pcre2_compile_8 ();
5707 ;
5708 return 0;
5709 }
5710 _ACEOF
5711 if ac_fn_c_try_link "$LINENO"
5712 then :
5713 ac_cv_lib_pcre2_8_pcre2_compile_8=yes
5714 else case e in #(
5715 e) ac_cv_lib_pcre2_8_pcre2_compile_8=no ;;
5716 esac
5717 fi
5718 rm -f core conftest.err conftest.$ac_objext conftest.beam \
5719 conftest$ac_exeext conftest.$ac_ext
5720 LIBS=$ac_check_lib_save_LIBS ;;
5721 esac
5722 fi
5723 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pcre2_8_pcre2_compile_8" >&5
5724 printf "%s\n" "$ac_cv_lib_pcre2_8_pcre2_compile_8" >&6; }
5725 if test "x$ac_cv_lib_pcre2_8_pcre2_compile_8" = xyes
5726 then :
5727 printf "%s\n" "#define HAVE_PCRE2 1" >>confdefs.h
5728 LIBS="$LIBS -lpcre2-8" have_regex=yes; supported_regex="$supported_regex pcre2"
5729 fi
5730
5731 fi
5732 fi
5733
5734 if test $have_regex = no; then
5735 if test $WANT_REGEX = auto -o $WANT_REGEX = pcre; then
5736 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pcre_compile in -lpcre" >&5
5737 printf %s "checking for pcre_compile in -lpcre... " >&6; }
5738 if test ${ac_cv_lib_pcre_pcre_compile+y}
5739 then :
5740 printf %s "(cached) " >&6
5741 else case e in #(
5742 e) ac_check_lib_save_LIBS=$LIBS
5743 LIBS="-lpcre $LIBS"
5744 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5745 /* end confdefs.h. */
5746
5747 /* Override any GCC internal prototype to avoid an error.
5748 Use char because int might match the return type of a GCC
5749 builtin and then its argument prototype would still apply.
5750 The 'extern "C"' is for builds by C++ compilers;
5751 although this is not generally supported in C code supporting it here
5752 has little cost and some practical benefit (sr 110532). */
5753 #ifdef __cplusplus
5754 extern "C"
5755 #endif
5756 char pcre_compile (void);
5757 int
5758 main (void)
5759 {
5760 return pcre_compile ();
5761 ;
5762 return 0;
5763 }
5764 _ACEOF
5765 if ac_fn_c_try_link "$LINENO"
5766 then :
5767 ac_cv_lib_pcre_pcre_compile=yes
5768 else case e in #(
5769 e) ac_cv_lib_pcre_pcre_compile=no ;;
5770 esac
5771 fi
5772 rm -f core conftest.err conftest.$ac_objext conftest.beam \
5773 conftest$ac_exeext conftest.$ac_ext
5774 LIBS=$ac_check_lib_save_LIBS ;;
5775 esac
5776 fi
5777 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pcre_pcre_compile" >&5
5778 printf "%s\n" "$ac_cv_lib_pcre_pcre_compile" >&6; }
5779 if test "x$ac_cv_lib_pcre_pcre_compile" = xyes
5780 then :
5781 printf "%s\n" "#define HAVE_PCRE 1" >>confdefs.h
5782 LIBS="$LIBS -lpcre" have_regex=yes; supported_regex="$supported_regex pcre"
5783 fi
5784
5785 fi
5786 fi
5787
5788 if test $have_regex = no; then
5789 if test $WANT_REGEX = auto -o $WANT_REGEX = gnu; then
5790 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for re_compile_pattern in -lc" >&5
5791 printf %s "checking for re_compile_pattern in -lc... " >&6; }
5792 if test ${ac_cv_lib_c_re_compile_pattern+y}
5793 then :
5794 printf %s "(cached) " >&6
5795 else case e in #(
5796 e) ac_check_lib_save_LIBS=$LIBS
5797 LIBS="-lc $LIBS"
5798 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5799 /* end confdefs.h. */
5800
5801 /* Override any GCC internal prototype to avoid an error.
5802 Use char because int might match the return type of a GCC
5803 builtin and then its argument prototype would still apply.
5804 The 'extern "C"' is for builds by C++ compilers;
5805 although this is not generally supported in C code supporting it here
5806 has little cost and some practical benefit (sr 110532). */
5807 #ifdef __cplusplus
5808 extern "C"
5809 #endif
5810 char re_compile_pattern (void);
5811 int
5812 main (void)
5813 {
5814 return re_compile_pattern ();
5815 ;
5816 return 0;
5817 }
5818 _ACEOF
5819 if ac_fn_c_try_link "$LINENO"
5820 then :
5821 ac_cv_lib_c_re_compile_pattern=yes
5822 else case e in #(
5823 e) ac_cv_lib_c_re_compile_pattern=no ;;
5824 esac
5825 fi
5826 rm -f core conftest.err conftest.$ac_objext conftest.beam \
5827 conftest$ac_exeext conftest.$ac_ext
5828 LIBS=$ac_check_lib_save_LIBS ;;
5829 esac
5830 fi
5831 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_re_compile_pattern" >&5
5832 printf "%s\n" "$ac_cv_lib_c_re_compile_pattern" >&6; }
5833 if test "x$ac_cv_lib_c_re_compile_pattern" = xyes
5834 then :
5835 printf "%s\n" "#define HAVE_GNU_REGEX 1" >>confdefs.h
5836 have_regex=yes; supported_regex="$supported_regex gnu"
5837 fi
5838
5839 fi
5840 fi
5841
5842 if test $have_regex = no; then
5843 if test $WANT_REGEX = auto -o $WANT_REGEX = regcmp; then
5844 ac_fn_c_check_func "$LINENO" "regcmp" "ac_cv_func_regcmp"
5845 if test "x$ac_cv_func_regcmp" = xyes
5846 then :
5847 printf "%s\n" "#define HAVE_REGCMP 1" >>confdefs.h
5848 have_regex=yes; supported_regex="$supported_regex regcmp"
5849 fi
5850
5851 fi
5852 fi
5853
5854 if test $have_regex = no; then
5855 if test $WANT_REGEX = auto -o $WANT_REGEX = regcomp; then
5856 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for V8 regcomp" >&5
5857 printf %s "checking for V8 regcomp... " >&6; }
5858 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5859 /* end confdefs.h. */
5860
5861 #include "regexp.h"
5862 int
5863 main (void)
5864 {
5865 regcomp("");
5866 ;
5867 return 0;
5868 }
5869 _ACEOF
5870 if ac_fn_c_try_link "$LINENO"
5871 then :
5872 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5873 printf "%s\n" "yes" >&6; }; printf "%s\n" "#define HAVE_V8_REGCOMP 1" >>confdefs.h
5874 have_regex=yes; supported_regex="$supported_regex regcomp"
5875 else case e in #(
5876 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5877 printf "%s\n" "no" >&6; } ;;
5878 esac
5879 fi
5880 rm -f core conftest.err conftest.$ac_objext conftest.beam \
5881 conftest$ac_exeext conftest.$ac_ext
5882 fi
5883 fi
5884
5885 if test $have_regex = no && test -f ${srcdir}/regexp.c; then
5886 if test $WANT_REGEX = auto -o $WANT_REGEX = regcomp-local; then
5887 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: using V8 regcomp -- local source" >&5
5888 printf "%s\n" "using V8 regcomp -- local source" >&6; }; printf "%s\n" "#define HAVE_V8_REGCOMP 1" >>confdefs.h
5889
5890 supported_regex="$supported_regex regcomp-local"
5891 printf "%s\n" "#define HAVE_REGEXEC2 1" >>confdefs.h
5892 REGEX_O='regexp.$(O)' have_regex=yes
5893 fi
5894 fi
5895
5896 if test $have_regex = no; then
5897 if test $WANT_REGEX = auto -o $WANT_REGEX = re_comp; then
5898 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for re_comp" >&5
5899 printf %s "checking for re_comp... " >&6; }
5900 ac_fn_c_check_func "$LINENO" "re_comp" "ac_cv_func_re_comp"
5901 if test "x$ac_cv_func_re_comp" = xyes
5902 then :
5903 printf "%s\n" "#define HAVE_RE_COMP 1" >>confdefs.h
5904 have_regex=yes; supported_regex="$supported_regex re_comp"
5905 fi
5906
5907 fi
5908 fi
5909
5910 if test $have_regex = no; then
5911 if test $WANT_REGEX = auto -o $WANT_REGEX = none; then
5912 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: using no regex" >&5
5913 printf "%s\n" "using no regex" >&6; }
5914 else
5915 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cannot find regular expression library" >&5
5916 printf "%s\n" "$as_me: WARNING: cannot find regular expression library" >&2;}
5917 fi
5918 printf "%s\n" "#define NO_REGEX 1" >>confdefs.h
5919 supported_regex="$supported_regex none"
5920 fi
5921
5922 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: regular expression library: $supported_regex" >&5
5923 printf "%s\n" "regular expression library: $supported_regex" >&6; }
5924
5925
5926 # Check whether --with-editor was given.
5927 if test ${with_editor+y}
5928 then :
5929 withval=$with_editor; printf "%s\n" "#define EDIT_PGM \"$withval\"" >>confdefs.h
5930
5931 else case e in #(
5932 e) printf "%s\n" "#define EDIT_PGM \"vi\"" >>confdefs.h
5933 ;;
5934 esac
5935 fi
5936
5937
5938
5939
5940 ac_config_files="$ac_config_files Makefile"
5941
5942 cat >confcache <<\_ACEOF
5943 # This file is a shell script that caches the results of configure
5944 # tests run on this system so they can be shared between configure
5945 # scripts and configure runs, see configure's option --config-cache.
5946 # It is not useful on other systems. If it contains results you don't
5947 # want to keep, you may remove or edit it.
5948 #
5949 # config.status only pays attention to the cache file if you give it
5950 # the --recheck option to rerun configure.
5951 #
5952 # 'ac_cv_env_foo' variables (set or unset) will be overridden when
5953 # loading this file, other *unset* 'ac_cv_foo' will be assigned the
5954 # following values.
5955
5956 _ACEOF
5957
5958 # The following way of writing the cache mishandles newlines in values,
5959 # but we know of no workaround that is simple, portable, and efficient.
5960 # So, we kill variables containing newlines.
5961 # Ultrix sh set writes to stderr and can't be redirected directly,
5962 # and sets the high bit in the cache file unless we assign to the vars.
5963 (
5964 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
5965 eval ac_val=\$$ac_var
5966 case $ac_val in #(
5967 *${as_nl}*)
5968 case $ac_var in #(
5969 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
5970 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
5971 esac
5972 case $ac_var in #(
5973 _ | IFS | as_nl) ;; #(
5974 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
5975 *) { eval $ac_var=; unset $ac_var;} ;;
5976 esac ;;
5977 esac
5978 done
5979
5980 (set) 2>&1 |
5981 case $as_nl`(ac_space=' '; set) 2>&1` in #(
5982 *${as_nl}ac_space=\ *)
5983 # 'set' does not quote correctly, so add quotes: double-quote
5984 # substitution turns \\\\ into \\, and sed turns \\ into \.
5985 sed -n \
5986 "s/'/'\\\\''/g;
5987 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
5988 ;; #(
5989 *)
5990 # 'set' quotes correctly as required by POSIX, so do not add quotes.
5991 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
5992 ;;
5993 esac |
5994 sort
5995 ) |
5996 sed '
5997 /^ac_cv_env_/b end
5998 t clear
5999 :clear
6000 s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/
6001 t end
6002 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
6003 :end' >>confcache
6004 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
6005 if test -w "$cache_file"; then
6006 if test "x$cache_file" != "x/dev/null"; then
6007 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
6008 printf "%s\n" "$as_me: updating cache $cache_file" >&6;}
6009 if test ! -f "$cache_file" || test -h "$cache_file"; then
6010 cat confcache >"$cache_file"
6011 else
6012 case $cache_file in #(
6013 */* | ?:*)
6014 mv -f confcache "$cache_file"$$ &&
6015 mv -f "$cache_file"$$ "$cache_file" ;; #(
6016 *)
6017 mv -f confcache "$cache_file" ;;
6018 esac
6019 fi
6020 fi
6021 else
6022 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
6023 printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;}
6024 fi
6025 fi
6026 rm -f confcache
6027
6028 test "x$prefix" = xNONE && prefix=$ac_default_prefix
6029 # Let make expand exec_prefix.
6030 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
6031
6032 DEFS=-DHAVE_CONFIG_H
6033
6034 ac_libobjs=
6035 ac_ltlibobjs=
6036 U=
6037 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
6038 # 1. Remove the extension, and $U if already installed.
6039 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
6040 ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"`
6041 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
6042 # will be set to the directory where LIBOBJS objects are built.
6043 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
6044 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
6045 done
6046 LIBOBJS=$ac_libobjs
6047
6048 LTLIBOBJS=$ac_ltlibobjs
6049
6050
6051 # Check whether --enable-year2038 was given.
6052 if test ${enable_year2038+y}
6053 then :
6054 enableval=$enable_year2038;
6055 fi
6056
6057
6058 : "${CONFIG_STATUS=./config.status}"
6059 ac_write_fail=0
6060 ac_clean_files_save=$ac_clean_files
6061 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
6062 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
6063 printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;}
6064 as_write_fail=0
6065 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
6066 #! $SHELL
6067 # Generated by $as_me.
6068 # Run this file to recreate the current configuration.
6069 # Compiler output produced by configure, useful for debugging
6070 # configure, is in config.log if it exists.
6071
6072 debug=false
6073 ac_cs_recheck=false
6074 ac_cs_silent=false
6075
6076 SHELL=\${CONFIG_SHELL-$SHELL}
6077 export SHELL
6078 _ASEOF
6079 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
6080 ## -------------------- ##
6081 ## M4sh Initialization. ##
6082 ## -------------------- ##
6083
6084 # Be more Bourne compatible
6085 DUALCASE=1; export DUALCASE # for MKS sh
6086 if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
6087 then :
6088 emulate sh
6089 NULLCMD=:
6090 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
6091 # is contrary to our usage. Disable this feature.
6092 alias -g '${1+"$@"}'='"$@"'
6093 setopt NO_GLOB_SUBST
6094 else case e in #(
6095 e) case `(set -o) 2>/dev/null` in #(
6096 *posix*) :
6097 set -o posix ;; #(
6098 *) :
6099 ;;
6100 esac ;;
6101 esac
6102 fi
6103
6104
6105
6106 # Reset variables that may have inherited troublesome values from
6107 # the environment.
6108
6109 # IFS needs to be set, to space, tab, and newline, in precisely that order.
6110 # (If _AS_PATH_WALK were called with IFS unset, it would have the
6111 # side effect of setting IFS to empty, thus disabling word splitting.)
6112 # Quoting is to prevent editors from complaining about space-tab.
6113 as_nl='
6114 '
6115 export as_nl
6116 IFS=" "" $as_nl"
6117
6118 PS1='$ '
6119 PS2='> '
6120 PS4='+ '
6121
6122 # Ensure predictable behavior from utilities with locale-dependent output.
6123 LC_ALL=C
6124 export LC_ALL
6125 LANGUAGE=C
6126 export LANGUAGE
6127
6128 # We cannot yet rely on "unset" to work, but we need these variables
6129 # to be unset--not just set to an empty or harmless value--now, to
6130 # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct
6131 # also avoids known problems related to "unset" and subshell syntax
6132 # in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
6133 for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
6134 do eval test \${$as_var+y} \
6135 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
6136 done
6137
6138 # Ensure that fds 0, 1, and 2 are open.
6139 if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
6140 if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
6141 if (exec 3>&2) ; then :; else exec 2>/dev/null; fi
6142
6143 # The user is always right.
6144 if ${PATH_SEPARATOR+false} :; then
6145 PATH_SEPARATOR=:
6146 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
6147 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
6148 PATH_SEPARATOR=';'
6149 }
6150 fi
6151
6152
6153 # Find who we are. Look in the path if we contain no directory separator.
6154 as_myself=
6155 case $0 in #((
6156 *[\\/]* ) as_myself=$0 ;;
6157 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6158 for as_dir in $PATH
6159 do
6160 IFS=$as_save_IFS
6161 case $as_dir in #(((
6162 '') as_dir=./ ;;
6163 */) ;;
6164 *) as_dir=$as_dir/ ;;
6165 esac
6166 test -r "$as_dir$0" && as_myself=$as_dir$0 && break
6167 done
6168 IFS=$as_save_IFS
6169
6170 ;;
6171 esac
6172 # We did not find ourselves, most probably we were run as 'sh COMMAND'
6173 # in which case we are not to be found in the path.
6174 if test "x$as_myself" = x; then
6175 as_myself=$0
6176 fi
6177 if test ! -f "$as_myself"; then
6178 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
6179 exit 1
6180 fi
6181
6182
6183
6184 # as_fn_error STATUS ERROR [LINENO LOG_FD]
6185 # ----------------------------------------
6186 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
6187 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
6188 # script with STATUS, using 1 if that was 0.
6189 as_fn_error ()
6190 {
6191 as_status=$1; test $as_status -eq 0 && as_status=1
6192 if test "$4"; then
6193 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
6194 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
6195 fi
6196 printf "%s\n" "$as_me: error: $2" >&2
6197 as_fn_exit $as_status
6198 } # as_fn_error
6199
6200
6201 # as_fn_set_status STATUS
6202 # -----------------------
6203 # Set $? to STATUS, without forking.
6204 as_fn_set_status ()
6205 {
6206 return $1
6207 } # as_fn_set_status
6208
6209 # as_fn_exit STATUS
6210 # -----------------
6211 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
6212 as_fn_exit ()
6213 {
6214 set +e
6215 as_fn_set_status $1
6216 exit $1
6217 } # as_fn_exit
6218
6219 # as_fn_unset VAR
6220 # ---------------
6221 # Portably unset VAR.
6222 as_fn_unset ()
6223 {
6224 { eval $1=; unset $1;}
6225 }
6226 as_unset=as_fn_unset
6227
6228 # as_fn_append VAR VALUE
6229 # ----------------------
6230 # Append the text in VALUE to the end of the definition contained in VAR. Take
6231 # advantage of any shell optimizations that allow amortized linear growth over
6232 # repeated appends, instead of the typical quadratic growth present in naive
6233 # implementations.
6234 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
6235 then :
6236 eval 'as_fn_append ()
6237 {
6238 eval $1+=\$2
6239 }'
6240 else case e in #(
6241 e) as_fn_append ()
6242 {
6243 eval $1=\$$1\$2
6244 } ;;
6245 esac
6246 fi # as_fn_append
6247
6248 # as_fn_arith ARG...
6249 # ------------------
6250 # Perform arithmetic evaluation on the ARGs, and store the result in the
6251 # global $as_val. Take advantage of shells that can avoid forks. The arguments
6252 # must be portable across $(()) and expr.
6253 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
6254 then :
6255 eval 'as_fn_arith ()
6256 {
6257 as_val=$(( $* ))
6258 }'
6259 else case e in #(
6260 e) as_fn_arith ()
6261 {
6262 as_val=`expr "$@" || test $? -eq 1`
6263 } ;;
6264 esac
6265 fi # as_fn_arith
6266
6267
6268 if expr a : '\(a\)' >/dev/null 2>&1 &&
6269 test "X`expr 00001 : '.*\(...\)'`" = X001; then
6270 as_expr=expr
6271 else
6272 as_expr=false
6273 fi
6274
6275 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
6276 as_basename=basename
6277 else
6278 as_basename=false
6279 fi
6280
6281 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
6282 as_dirname=dirname
6283 else
6284 as_dirname=false
6285 fi
6286
6287 as_me=`$as_basename -- "$0" ||
6288 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
6289 X"$0" : 'X\(//\)$' \| \
6290 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
6291 printf "%s\n" X/"$0" |
6292 sed '/^.*\/\([^/][^/]*\)\/*$/{
6293 s//\1/
6294 q
6295 }
6296 /^X\/\(\/\/\)$/{
6297 s//\1/
6298 q
6299 }
6300 /^X\/\(\/\).*/{
6301 s//\1/
6302 q
6303 }
6304 s/.*/./; q'`
6305
6306 # Avoid depending upon Character Ranges.
6307 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
6308 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
6309 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
6310 as_cr_digits='0123456789'
6311 as_cr_alnum=$as_cr_Letters$as_cr_digits
6312
6313
6314 # Determine whether it's possible to make 'echo' print without a newline.
6315 # These variables are no longer used directly by Autoconf, but are AC_SUBSTed
6316 # for compatibility with existing Makefiles.
6317 ECHO_C= ECHO_N= ECHO_T=
6318 case `echo -n x` in #(((((
6319 -n*)
6320 case `echo 'xy\c'` in
6321 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
6322 xy) ECHO_C='\c';;
6323 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
6324 ECHO_T=' ';;
6325 esac;;
6326 *)
6327 ECHO_N='-n';;
6328 esac
6329
6330 # For backward compatibility with old third-party macros, we provide
6331 # the shell variables $as_echo and $as_echo_n. New code should use
6332 # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
6333 as_echo='printf %s\n'
6334 as_echo_n='printf %s'
6335
6336 rm -f conf$$ conf$$.exe conf$$.file
6337 if test -d conf$$.dir; then
6338 rm -f conf$$.dir/conf$$.file
6339 else
6340 rm -f conf$$.dir
6341 mkdir conf$$.dir 2>/dev/null
6342 fi
6343 if (echo >conf$$.file) 2>/dev/null; then
6344 if ln -s conf$$.file conf$$ 2>/dev/null; then
6345 as_ln_s='ln -s'
6346 # ... but there are two gotchas:
6347 # 1) On MSYS, both 'ln -s file dir' and 'ln file dir' fail.
6348 # 2) DJGPP < 2.04 has no symlinks; 'ln -s' creates a wrapper executable.
6349 # In both cases, we have to default to 'cp -pR'.
6350 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
6351 as_ln_s='cp -pR'
6352 elif ln conf$$.file conf$$ 2>/dev/null; then
6353 as_ln_s=ln
6354 else
6355 as_ln_s='cp -pR'
6356 fi
6357 else
6358 as_ln_s='cp -pR'
6359 fi
6360 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
6361 rmdir conf$$.dir 2>/dev/null
6362
6363
6364 # as_fn_mkdir_p
6365 # -------------
6366 # Create "$as_dir" as a directory, including parents if necessary.
6367 as_fn_mkdir_p ()
6368 {
6369
6370 case $as_dir in #(
6371 -*) as_dir=./$as_dir;;
6372 esac
6373 test -d "$as_dir" || eval $as_mkdir_p || {
6374 as_dirs=
6375 while :; do
6376 case $as_dir in #(
6377 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
6378 *) as_qdir=$as_dir;;
6379 esac
6380 as_dirs="'$as_qdir' $as_dirs"
6381 as_dir=`$as_dirname -- "$as_dir" ||
6382 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6383 X"$as_dir" : 'X\(//\)[^/]' \| \
6384 X"$as_dir" : 'X\(//\)$' \| \
6385 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
6386 printf "%s\n" X"$as_dir" |
6387 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
6388 s//\1/
6389 q
6390 }
6391 /^X\(\/\/\)[^/].*/{
6392 s//\1/
6393 q
6394 }
6395 /^X\(\/\/\)$/{
6396 s//\1/
6397 q
6398 }
6399 /^X\(\/\).*/{
6400 s//\1/
6401 q
6402 }
6403 s/.*/./; q'`
6404 test -d "$as_dir" && break
6405 done
6406 test -z "$as_dirs" || eval "mkdir $as_dirs"
6407 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
6408
6409
6410 } # as_fn_mkdir_p
6411 if mkdir -p . 2>/dev/null; then
6412 as_mkdir_p='mkdir -p "$as_dir"'
6413 else
6414 test -d ./-p && rmdir ./-p
6415 as_mkdir_p=false
6416 fi
6417
6418
6419 # as_fn_executable_p FILE
6420 # -----------------------
6421 # Test if FILE is an executable regular file.
6422 as_fn_executable_p ()
6423 {
6424 test -f "$1" && test -x "$1"
6425 } # as_fn_executable_p
6426 as_test_x='test -x'
6427 as_executable_p=as_fn_executable_p
6428
6429 # Sed expression to map a string onto a valid CPP name.
6430 as_sed_cpp="y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
6431 as_tr_cpp="eval sed '$as_sed_cpp'" # deprecated
6432
6433 # Sed expression to map a string onto a valid variable name.
6434 as_sed_sh="y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
6435 as_tr_sh="eval sed '$as_sed_sh'" # deprecated
6436
6437
6438 exec 6>&1
6439 ## ----------------------------------- ##
6440 ## Main body of $CONFIG_STATUS script. ##
6441 ## ----------------------------------- ##
6442 _ASEOF
6443 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
6444
6445 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6446 # Save the log message, to keep $0 and so on meaningful, and to
6447 # report actual input values of CONFIG_FILES etc. instead of their
6448 # values after options handling.
6449 ac_log="
6450 This file was extended by less $as_me 1, which was
6451 generated by GNU Autoconf 2.72. Invocation command line was
6452
6453 CONFIG_FILES = $CONFIG_FILES
6454 CONFIG_HEADERS = $CONFIG_HEADERS
6455 CONFIG_LINKS = $CONFIG_LINKS
6456 CONFIG_COMMANDS = $CONFIG_COMMANDS
6457 $ $0 $@
6458
6459 on `(hostname || uname -n) 2>/dev/null | sed 1q`
6460 "
6461
6462 _ACEOF
6463
6464 case $ac_config_files in *"
6465 "*) set x $ac_config_files; shift; ac_config_files=$*;;
6466 esac
6467
6468 case $ac_config_headers in *"
6469 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
6470 esac
6471
6472
6473 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6474 # Files that config.status was made for.
6475 config_files="$ac_config_files"
6476 config_headers="$ac_config_headers"
6477
6478 _ACEOF
6479
6480 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6481 ac_cs_usage="\
6482 '$as_me' instantiates files and other configuration actions
6483 from templates according to the current configuration. Unless the files
6484 and actions are specified as TAGs, all are instantiated by default.
6485
6486 Usage: $0 [OPTION]... [TAG]...
6487
6488 -h, --help print this help, then exit
6489 -V, --version print version number and configuration settings, then exit
6490 --config print configuration, then exit
6491 -q, --quiet, --silent
6492 do not print progress messages
6493 -d, --debug don't remove temporary files
6494 --recheck update $as_me by reconfiguring in the same conditions
6495 --file=FILE[:TEMPLATE]
6496 instantiate the configuration file FILE
6497 --header=FILE[:TEMPLATE]
6498 instantiate the configuration header FILE
6499
6500 Configuration files:
6501 $config_files
6502
6503 Configuration headers:
6504 $config_headers
6505
6506 Report bugs to the package provider."
6507
6508 _ACEOF
6509 ac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"`
6510 ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"`
6511 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6512 ac_cs_config='$ac_cs_config_escaped'
6513 ac_cs_version="\\
6514 less config.status 1
6515 configured by $0, generated by GNU Autoconf 2.72,
6516 with options \\"\$ac_cs_config\\"
6517
6518 Copyright (C) 2023 Free Software Foundation, Inc.
6519 This config.status script is free software; the Free Software Foundation
6520 gives unlimited permission to copy, distribute and modify it."
6521
6522 ac_pwd='$ac_pwd'
6523 srcdir='$srcdir'
6524 INSTALL='$INSTALL'
6525 test -n "\$AWK" || AWK=awk
6526 _ACEOF
6527
6528 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6529 # The default lists apply if the user does not specify any file.
6530 ac_need_defaults=:
6531 while test $# != 0
6532 do
6533 case $1 in
6534 --*=?*)
6535 ac_option=`expr "X$1" : 'X\([^=]*\)='`
6536 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
6537 ac_shift=:
6538 ;;
6539 --*=)
6540 ac_option=`expr "X$1" : 'X\([^=]*\)='`
6541 ac_optarg=
6542 ac_shift=:
6543 ;;
6544 *)
6545 ac_option=$1
6546 ac_optarg=$2
6547 ac_shift=shift
6548 ;;
6549 esac
6550
6551 case $ac_option in
6552 # Handling of the options.
6553 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
6554 ac_cs_recheck=: ;;
6555 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
6556 printf "%s\n" "$ac_cs_version"; exit ;;
6557 --config | --confi | --conf | --con | --co | --c )
6558 printf "%s\n" "$ac_cs_config"; exit ;;
6559 --debug | --debu | --deb | --de | --d | -d )
6560 debug=: ;;
6561 --file | --fil | --fi | --f )
6562 $ac_shift
6563 case $ac_optarg in
6564 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
6565 '') as_fn_error $? "missing file argument" ;;
6566 esac
6567 as_fn_append CONFIG_FILES " '$ac_optarg'"
6568 ac_need_defaults=false;;
6569 --header | --heade | --head | --hea )
6570 $ac_shift
6571 case $ac_optarg in
6572 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
6573 esac
6574 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
6575 ac_need_defaults=false;;
6576 --he | --h)
6577 # Conflict between --help and --header
6578 as_fn_error $? "ambiguous option: '$1'
6579 Try '$0 --help' for more information.";;
6580 --help | --hel | -h )
6581 printf "%s\n" "$ac_cs_usage"; exit ;;
6582 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
6583 | -silent | --silent | --silen | --sile | --sil | --si | --s)
6584 ac_cs_silent=: ;;
6585
6586 # This is an error.
6587 -*) as_fn_error $? "unrecognized option: '$1'
6588 Try '$0 --help' for more information." ;;
6589
6590 *) as_fn_append ac_config_targets " $1"
6591 ac_need_defaults=false ;;
6592
6593 esac
6594 shift
6595 done
6596
6597 ac_configure_extra_args=
6598
6599 if $ac_cs_silent; then
6600 exec 6>/dev/null
6601 ac_configure_extra_args="$ac_configure_extra_args --silent"
6602 fi
6603
6604 _ACEOF
6605 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6606 if \$ac_cs_recheck; then
6607 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
6608 shift
6609 \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6
6610 CONFIG_SHELL='$SHELL'
6611 export CONFIG_SHELL
6612 exec "\$@"
6613 fi
6614
6615 _ACEOF
6616 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6617 exec 5>>config.log
6618 {
6619 echo
6620 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
6621 ## Running $as_me. ##
6622 _ASBOX
6623 printf "%s\n" "$ac_log"
6624 } >&5
6625
6626 _ACEOF
6627 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6628 _ACEOF
6629
6630 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6631
6632 # Handling of arguments.
6633 for ac_config_target in $ac_config_targets
6634 do
6635 case $ac_config_target in
6636 "defines.h") CONFIG_HEADERS="$CONFIG_HEADERS defines.h" ;;
6637 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
6638
6639 *) as_fn_error $? "invalid argument: '$ac_config_target'" "$LINENO" 5;;
6640 esac
6641 done
6642
6643
6644 # If the user did not use the arguments to specify the items to instantiate,
6645 # then the envvar interface is used. Set only those that are not.
6646 # We use the long form for the default assignment because of an extremely
6647 # bizarre bug on SunOS 4.1.3.
6648 if $ac_need_defaults; then
6649 test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files
6650 test ${CONFIG_HEADERS+y} || CONFIG_HEADERS=$config_headers
6651 fi
6652
6653 # Have a temporary directory for convenience. Make it in the build tree
6654 # simply because there is no reason against having it here, and in addition,
6655 # creating and moving files from /tmp can sometimes cause problems.
6656 # Hook for its removal unless debugging.
6657 # Note that there is a small window in which the directory will not be cleaned:
6658 # after its creation but before its name has been assigned to '$tmp'.
6659 $debug ||
6660 {
6661 tmp= ac_tmp=
6662 trap 'exit_status=$?
6663 : "${ac_tmp:=$tmp}"
6664 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
6665 ' 0
6666 trap 'as_fn_exit 1' 1 2 13 15
6667 }
6668 # Create a (secure) tmp directory for tmp files.
6669
6670 {
6671 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
6672 test -d "$tmp"
6673 } ||
6674 {
6675 tmp=./conf$$-$RANDOM
6676 (umask 077 && mkdir "$tmp")
6677 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
6678 ac_tmp=$tmp
6679
6680 # Set up the scripts for CONFIG_FILES section.
6681 # No need to generate them if there are no CONFIG_FILES.
6682 # This happens for instance with './config.status config.h'.
6683 if test -n "$CONFIG_FILES"; then
6684
6685
6686 ac_cr=`echo X | tr X '\015'`
6687 # On cygwin, bash can eat \r inside `` if the user requested igncr.
6688 # But we know of no other shell where ac_cr would be empty at this
6689 # point, so we can use a bashism as a fallback.
6690 if test "x$ac_cr" = x; then
6691 eval ac_cr=\$\'\\r\'
6692 fi
6693 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
6694 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
6695 ac_cs_awk_cr='\\r'
6696 else
6697 ac_cs_awk_cr=$ac_cr
6698 fi
6699
6700 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
6701 _ACEOF
6702
6703
6704 {
6705 echo "cat >conf$$subs.awk <<_ACEOF" &&
6706 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
6707 echo "_ACEOF"
6708 } >conf$$subs.sh ||
6709 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
6710 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
6711 ac_delim='%!_!# '
6712 for ac_last_try in false false false false false :; do
6713 . ./conf$$subs.sh ||
6714 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
6715
6716 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
6717 if test $ac_delim_n = $ac_delim_num; then
6718 break
6719 elif $ac_last_try; then
6720 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
6721 else
6722 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
6723 fi
6724 done
6725 rm -f conf$$subs.sh
6726
6727 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6728 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
6729 _ACEOF
6730 sed -n '
6731 h
6732 s/^/S["/; s/!.*/"]=/
6733 p
6734 g
6735 s/^[^!]*!//
6736 :repl
6737 t repl
6738 s/'"$ac_delim"'$//
6739 t delim
6740 :nl
6741 h
6742 s/\(.\{148\}\)..*/\1/
6743 t more1
6744 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
6745 p
6746 n
6747 b repl
6748 :more1
6749 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
6750 p
6751 g
6752 s/.\{148\}//
6753 t nl
6754 :delim
6755 h
6756 s/\(.\{148\}\)..*/\1/
6757 t more2
6758 s/["\\]/\\&/g; s/^/"/; s/$/"/
6759 p
6760 b
6761 :more2
6762 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
6763 p
6764 g
6765 s/.\{148\}//
6766 t delim
6767 ' <conf$$subs.awk | sed '
6768 /^[^""]/{
6769 N
6770 s/\n//
6771 }
6772 ' >>$CONFIG_STATUS || ac_write_fail=1
6773 rm -f conf$$subs.awk
6774 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6775 _ACAWK
6776 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
6777 for (key in S) S_is_set[key] = 1
6778 FS = ""
6779
6780 }
6781 {
6782 line = $ 0
6783 nfields = split(line, field, "@")
6784 substed = 0
6785 len = length(field[1])
6786 for (i = 2; i < nfields; i++) {
6787 key = field[i]
6788 keylen = length(key)
6789 if (S_is_set[key]) {
6790 value = S[key]
6791 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
6792 len += length(value) + length(field[++i])
6793 substed = 1
6794 } else
6795 len += 1 + keylen
6796 }
6797
6798 print line
6799 }
6800
6801 _ACAWK
6802 _ACEOF
6803 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6804 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
6805 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
6806 else
6807 cat
6808 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
6809 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
6810 _ACEOF
6811
6812 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
6813 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
6814 # trailing colons and then remove the whole line if VPATH becomes empty
6815 # (actually we leave an empty line to preserve line numbers).
6816 if test "x$srcdir" = x.; then
6817 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
6818 h
6819 s///
6820 s/^/:/
6821 s/[ ]*$/:/
6822 s/:\$(srcdir):/:/g
6823 s/:\${srcdir}:/:/g
6824 s/:@srcdir@:/:/g
6825 s/^:*//
6826 s/:*$//
6827 x
6828 s/\(=[ ]*\).*/\1/
6829 G
6830 s/\n//
6831 s/^[^=]*=[ ]*$//
6832 }'
6833 fi
6834
6835 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6836 fi # test -n "$CONFIG_FILES"
6837
6838 # Set up the scripts for CONFIG_HEADERS section.
6839 # No need to generate them if there are no CONFIG_HEADERS.
6840 # This happens for instance with './config.status Makefile'.
6841 if test -n "$CONFIG_HEADERS"; then
6842 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
6843 BEGIN {
6844 _ACEOF
6845
6846 # Transform confdefs.h into an awk script 'defines.awk', embedded as
6847 # here-document in config.status, that substitutes the proper values into
6848 # config.h.in to produce config.h.
6849
6850 # Create a delimiter string that does not exist in confdefs.h, to ease
6851 # handling of long lines.
6852 ac_delim='%!_!# '
6853 for ac_last_try in false false :; do
6854 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
6855 if test -z "$ac_tt"; then
6856 break
6857 elif $ac_last_try; then
6858 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
6859 else
6860 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
6861 fi
6862 done
6863
6864 # For the awk script, D is an array of macro values keyed by name,
6865 # likewise P contains macro parameters if any. Preserve backslash
6866 # newline sequences.
6867
6868 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
6869 sed -n '
6870 s/.\{148\}/&'"$ac_delim"'/g
6871 t rset
6872 :rset
6873 s/^[ ]*#[ ]*define[ ][ ]*/ /
6874 t def
6875 d
6876 :def
6877 s/\\$//
6878 t bsnl
6879 s/["\\]/\\&/g
6880 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
6881 D["\1"]=" \3"/p
6882 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
6883 d
6884 :bsnl
6885 s/["\\]/\\&/g
6886 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
6887 D["\1"]=" \3\\\\\\n"\\/p
6888 t cont
6889 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
6890 t cont
6891 d
6892 :cont
6893 n
6894 s/.\{148\}/&'"$ac_delim"'/g
6895 t clear
6896 :clear
6897 s/\\$//
6898 t bsnlc
6899 s/["\\]/\\&/g; s/^/"/; s/$/"/p
6900 d
6901 :bsnlc
6902 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
6903 b cont
6904 ' <confdefs.h | sed '
6905 s/'"$ac_delim"'/"\\\
6906 "/g' >>$CONFIG_STATUS || ac_write_fail=1
6907
6908 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6909 for (key in D) D_is_set[key] = 1
6910 FS = ""
6911 }
6912 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
6913 line = \$ 0
6914 split(line, arg, " ")
6915 if (arg[1] == "#") {
6916 defundef = arg[2]
6917 mac1 = arg[3]
6918 } else {
6919 defundef = substr(arg[1], 2)
6920 mac1 = arg[2]
6921 }
6922 split(mac1, mac2, "(") #)
6923 macro = mac2[1]
6924 prefix = substr(line, 1, index(line, defundef) - 1)
6925 if (D_is_set[macro]) {
6926 # Preserve the white space surrounding the "#".
6927 print prefix "define", macro P[macro] D[macro]
6928 next
6929 } else {
6930 # Replace #undef with comments. This is necessary, for example,
6931 # in the case of _POSIX_SOURCE, which is predefined and required
6932 # on some systems where configure will not decide to define it.
6933 if (defundef == "undef") {
6934 print "/*", prefix defundef, macro, "*/"
6935 next
6936 }
6937 }
6938 }
6939 { print }
6940 _ACAWK
6941 _ACEOF
6942 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6943 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
6944 fi # test -n "$CONFIG_HEADERS"
6945
6946
6947 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS "
6948 shift
6949 for ac_tag
6950 do
6951 case $ac_tag in
6952 :[FHLC]) ac_mode=$ac_tag; continue;;
6953 esac
6954 case $ac_mode$ac_tag in
6955 :[FHL]*:*);;
6956 :L* | :C*:*) as_fn_error $? "invalid tag '$ac_tag'" "$LINENO" 5;;
6957 :[FH]-) ac_tag=-:-;;
6958 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
6959 esac
6960 ac_save_IFS=$IFS
6961 IFS=:
6962 set x $ac_tag
6963 IFS=$ac_save_IFS
6964 shift
6965 ac_file=$1
6966 shift
6967
6968 case $ac_mode in
6969 :L) ac_source=$1;;
6970 :[FH])
6971 ac_file_inputs=
6972 for ac_f
6973 do
6974 case $ac_f in
6975 -) ac_f="$ac_tmp/stdin";;
6976 *) # Look for the file first in the build tree, then in the source tree
6977 # (if the path is not absolute). The absolute path cannot be DOS-style,
6978 # because $ac_f cannot contain ':'.
6979 test -f "$ac_f" ||
6980 case $ac_f in
6981 [\\/$]*) false;;
6982 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
6983 esac ||
6984 as_fn_error 1 "cannot find input file: '$ac_f'" "$LINENO" 5;;
6985 esac
6986 case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
6987 as_fn_append ac_file_inputs " '$ac_f'"
6988 done
6989
6990 # Let's still pretend it is 'configure' which instantiates (i.e., don't
6991 # use $as_me), people would be surprised to read:
6992 # /* config.h. Generated by config.status. */
6993 configure_input='Generated from '`
6994 printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
6995 `' by configure.'
6996 if test x"$ac_file" != x-; then
6997 configure_input="$ac_file. $configure_input"
6998 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
6999 printf "%s\n" "$as_me: creating $ac_file" >&6;}
7000 fi
7001 # Neutralize special characters interpreted by sed in replacement strings.
7002 case $configure_input in #(
7003 *\&* | *\|* | *\\* )
7004 ac_sed_conf_input=`printf "%s\n" "$configure_input" |
7005 sed 's/[\\\\&|]/\\\\&/g'`;; #(
7006 *) ac_sed_conf_input=$configure_input;;
7007 esac
7008
7009 case $ac_tag in
7010 *:-:* | *:-) cat >"$ac_tmp/stdin" \
7011 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
7012 esac
7013 ;;
7014 esac
7015
7016 ac_dir=`$as_dirname -- "$ac_file" ||
7017 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7018 X"$ac_file" : 'X\(//\)[^/]' \| \
7019 X"$ac_file" : 'X\(//\)$' \| \
7020 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
7021 printf "%s\n" X"$ac_file" |
7022 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
7023 s//\1/
7024 q
7025 }
7026 /^X\(\/\/\)[^/].*/{
7027 s//\1/
7028 q
7029 }
7030 /^X\(\/\/\)$/{
7031 s//\1/
7032 q
7033 }
7034 /^X\(\/\).*/{
7035 s//\1/
7036 q
7037 }
7038 s/.*/./; q'`
7039 as_dir="$ac_dir"; as_fn_mkdir_p
7040 ac_builddir=.
7041
7042 case "$ac_dir" in
7043 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
7044 *)
7045 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
7046 # A ".." for each directory in $ac_dir_suffix.
7047 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
7048 case $ac_top_builddir_sub in
7049 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
7050 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
7051 esac ;;
7052 esac
7053 ac_abs_top_builddir=$ac_pwd
7054 ac_abs_builddir=$ac_pwd$ac_dir_suffix
7055 # for backward compatibility:
7056 ac_top_builddir=$ac_top_build_prefix
7057
7058 case $srcdir in
7059 .) # We are building in place.
7060 ac_srcdir=.
7061 ac_top_srcdir=$ac_top_builddir_sub
7062 ac_abs_top_srcdir=$ac_pwd ;;
7063 [\\/]* | ?:[\\/]* ) # Absolute name.
7064 ac_srcdir=$srcdir$ac_dir_suffix;
7065 ac_top_srcdir=$srcdir
7066 ac_abs_top_srcdir=$srcdir ;;
7067 *) # Relative name.
7068 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
7069 ac_top_srcdir=$ac_top_build_prefix$srcdir
7070 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
7071 esac
7072 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
7073
7074
7075 case $ac_mode in
7076 :F)
7077 #
7078 # CONFIG_FILE
7079 #
7080
7081 case $INSTALL in
7082 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
7083 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
7084 esac
7085 _ACEOF
7086
7087 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7088 # If the template does not know about datarootdir, expand it.
7089 # FIXME: This hack should be removed a few years after 2.60.
7090 ac_datarootdir_hack=; ac_datarootdir_seen=
7091 ac_sed_dataroot='
7092 /datarootdir/ {
7093 p
7094 q
7095 }
7096 /@datadir@/p
7097 /@docdir@/p
7098 /@infodir@/p
7099 /@localedir@/p
7100 /@mandir@/p'
7101 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
7102 *datarootdir*) ac_datarootdir_seen=yes;;
7103 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
7104 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
7105 printf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
7106 _ACEOF
7107 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7108 ac_datarootdir_hack='
7109 s&@datadir@&$datadir&g
7110 s&@docdir@&$docdir&g
7111 s&@infodir@&$infodir&g
7112 s&@localedir@&$localedir&g
7113 s&@mandir@&$mandir&g
7114 s&\\\${datarootdir}&$datarootdir&g' ;;
7115 esac
7116 _ACEOF
7117
7118 # Neutralize VPATH when '$srcdir' = '.'.
7119 # Shell code in configure.ac might set extrasub.
7120 # FIXME: do we really want to maintain this feature?
7121 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7122 ac_sed_extra="$ac_vpsub
7123 $extrasub
7124 _ACEOF
7125 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7126 :t
7127 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
7128 s|@configure_input@|$ac_sed_conf_input|;t t
7129 s&@top_builddir@&$ac_top_builddir_sub&;t t
7130 s&@top_build_prefix@&$ac_top_build_prefix&;t t
7131 s&@srcdir@&$ac_srcdir&;t t
7132 s&@abs_srcdir@&$ac_abs_srcdir&;t t
7133 s&@top_srcdir@&$ac_top_srcdir&;t t
7134 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
7135 s&@builddir@&$ac_builddir&;t t
7136 s&@abs_builddir@&$ac_abs_builddir&;t t
7137 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
7138 s&@INSTALL@&$ac_INSTALL&;t t
7139 $ac_datarootdir_hack
7140 "
7141 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
7142 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
7143
7144 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
7145 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
7146 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
7147 "$ac_tmp/out"`; test -z "$ac_out"; } &&
7148 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable 'datarootdir'
7149 which seems to be undefined. Please make sure it is defined" >&5
7150 printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable 'datarootdir'
7151 which seems to be undefined. Please make sure it is defined" >&2;}
7152
7153 rm -f "$ac_tmp/stdin"
7154 case $ac_file in
7155 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
7156 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
7157 esac \
7158 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
7159 ;;
7160 :H)
7161 #
7162 # CONFIG_HEADER
7163 #
7164 if test x"$ac_file" != x-; then
7165 {
7166 printf "%s\n" "/* $configure_input */" >&1 \
7167 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
7168 } >"$ac_tmp/config.h" \
7169 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
7170 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
7171 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
7172 printf "%s\n" "$as_me: $ac_file is unchanged" >&6;}
7173 else
7174 rm -f "$ac_file"
7175 mv "$ac_tmp/config.h" "$ac_file" \
7176 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
7177 fi
7178 else
7179 printf "%s\n" "/* $configure_input */" >&1 \
7180 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
7181 || as_fn_error $? "could not create -" "$LINENO" 5
7182 fi
7183 ;;
7184
7185
7186 esac
7187
7188 done # for ac_tag
7189
7190
7191 as_fn_exit 0
7192 _ACEOF
7193 ac_clean_files=$ac_clean_files_save
7194
7195 test $ac_write_fail = 0 ||
7196 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
7197
7198
7199 # configure is writing to config.log, and then calls config.status.
7200 # config.status does its own redirection, appending to config.log.
7201 # Unfortunately, on DOS this fails, as config.log is still kept open
7202 # by configure, so config.status won't be able to write to it; its
7203 # output is simply discarded. So we exec the FD to /dev/null,
7204 # effectively closing config.log, so it can be properly (re)opened and
7205 # appended to by config.status. When coming back to configure, we
7206 # need to make the FD available again.
7207 if test "$no_create" != yes; then
7208 ac_cs_success=:
7209 ac_config_status_args=
7210 test "$silent" = yes &&
7211 ac_config_status_args="$ac_config_status_args --quiet"
7212 exec 5>/dev/null
7213 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
7214 exec 5>>config.log
7215 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
7216 # would make configure fail if this is the last instruction.
7217 $ac_cs_success || as_fn_exit 1
7218 fi
7219 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
7220 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
7221 printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
7222 fi
7223
7224