blob: 256f170f55f715ebee646700d2df9a45983bd6c7 [file] [log] [blame]
Alistair Delvabeaee832021-02-24 11:27:23 -08001#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.69.
4#
5#
6# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
7#
8#
9# This configure script is free software; the Free Software Foundation
10# gives unlimited permission to copy, distribute and modify it.
11## -------------------- ##
12## M4sh Initialization. ##
13## -------------------- ##
14
15# Be more Bourne compatible
16DUALCASE=1; export DUALCASE # for MKS sh
17if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
18 emulate sh
19 NULLCMD=:
20 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
23 setopt NO_GLOB_SUBST
24else
25 case `(set -o) 2>/dev/null` in #(
26 *posix*) :
27 set -o posix ;; #(
28 *) :
29 ;;
30esac
31fi
32
33
34as_nl='
35'
36export as_nl
37# Printing a long string crashes Solaris 7 /usr/bin/printf.
38as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
39as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
40as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
41# Prefer a ksh shell builtin over an external printf program on Solaris,
42# but without wasting forks for bash or zsh.
43if test -z "$BASH_VERSION$ZSH_VERSION" \
44 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
45 as_echo='print -r --'
46 as_echo_n='print -rn --'
47elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
48 as_echo='printf %s\n'
49 as_echo_n='printf %s'
50else
51 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
53 as_echo_n='/usr/ucb/echo -n'
54 else
55 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
56 as_echo_n_body='eval
57 arg=$1;
58 case $arg in #(
59 *"$as_nl"*)
60 expr "X$arg" : "X\\(.*\\)$as_nl";
61 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
62 esac;
63 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
64 '
65 export as_echo_n_body
66 as_echo_n='sh -c $as_echo_n_body as_echo'
67 fi
68 export as_echo_body
69 as_echo='sh -c $as_echo_body as_echo'
70fi
71
72# The user is always right.
73if test "${PATH_SEPARATOR+set}" != set; then
74 PATH_SEPARATOR=:
75 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
77 PATH_SEPARATOR=';'
78 }
79fi
80
81
82# IFS
83# We need space, tab and new line, in precisely that order. Quoting is
84# there to prevent editors from complaining about space-tab.
85# (If _AS_PATH_WALK were called with IFS unset, it would disable word
86# splitting by setting IFS to empty value.)
87IFS=" "" $as_nl"
88
89# Find who we are. Look in the path if we contain no directory separator.
90as_myself=
91case $0 in #((
92 *[\\/]* ) as_myself=$0 ;;
93 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
94for as_dir in $PATH
95do
96 IFS=$as_save_IFS
97 test -z "$as_dir" && as_dir=.
98 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
99 done
100IFS=$as_save_IFS
101
102 ;;
103esac
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.
106if test "x$as_myself" = x; then
107 as_myself=$0
108fi
109if test ! -f "$as_myself"; then
110 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
111 exit 1
112fi
113
114# Unset variables that we do not need and which cause bugs (e.g. in
115# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
116# suppresses any "Segmentation fault" message there. '((' could
117# trigger a bug in pdksh 5.2.14.
118for as_var in BASH_ENV ENV MAIL MAILPATH
119do eval test x\${$as_var+set} = xset \
120 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
121done
122PS1='$ '
123PS2='> '
124PS4='+ '
125
126# NLS nuisances.
127LC_ALL=C
128export LC_ALL
129LANGUAGE=C
130export LANGUAGE
131
132# CDPATH.
133(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
134
135# Use a proper internal environment variable to ensure we don't fall
136 # into an infinite loop, continuously re-executing ourselves.
137 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
138 _as_can_reexec=no; export _as_can_reexec;
139 # We cannot yet assume a decent shell, so we have to provide a
140# neutralization value for shells without unset; and this also
141# works around shells that cannot unset nonexistent variables.
142# Preserve -v and -x to the replacement shell.
143BASH_ENV=/dev/null
144ENV=/dev/null
145(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
146case $- in # ((((
147 *v*x* | *x*v* ) as_opts=-vx ;;
148 *v* ) as_opts=-v ;;
149 *x* ) as_opts=-x ;;
150 * ) as_opts= ;;
151esac
152exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
153# Admittedly, this is quite paranoid, since all the known shells bail
154# out after a failed `exec'.
155$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
156as_fn_exit 255
157 fi
158 # We don't want this to propagate to other subprocesses.
159 { _as_can_reexec=; unset _as_can_reexec;}
160if test "x$CONFIG_SHELL" = x; then
161 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
162 emulate sh
163 NULLCMD=:
164 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
165 # is contrary to our usage. Disable this feature.
166 alias -g '\${1+\"\$@\"}'='\"\$@\"'
167 setopt NO_GLOB_SUBST
168else
169 case \`(set -o) 2>/dev/null\` in #(
170 *posix*) :
171 set -o posix ;; #(
172 *) :
173 ;;
174esac
175fi
176"
177 as_required="as_fn_return () { (exit \$1); }
178as_fn_success () { as_fn_return 0; }
179as_fn_failure () { as_fn_return 1; }
180as_fn_ret_success () { return 0; }
181as_fn_ret_failure () { return 1; }
182
183exitcode=0
184as_fn_success || { exitcode=1; echo as_fn_success failed.; }
185as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
186as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
187as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
188if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
189
190else
191 exitcode=1; echo positional parameters were not saved.
192fi
193test x\$exitcode = x0 || exit 1
194test -x / || exit 1"
195 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
196 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
197 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
198 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
199test \$(( 1 + 1 )) = 2 || exit 1"
200 if (eval "$as_required") 2>/dev/null; then :
201 as_have_required=yes
202else
203 as_have_required=no
204fi
205 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
206
207else
208 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
209as_found=false
210for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
211do
212 IFS=$as_save_IFS
213 test -z "$as_dir" && as_dir=.
214 as_found=:
215 case $as_dir in #(
216 /*)
217 for as_base in sh bash ksh sh5; do
218 # Try only shells that exist, to save several forks.
219 as_shell=$as_dir/$as_base
220 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
221 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
222 CONFIG_SHELL=$as_shell as_have_required=yes
223 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
224 break 2
225fi
226fi
227 done;;
228 esac
229 as_found=false
230done
231$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
232 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
233 CONFIG_SHELL=$SHELL as_have_required=yes
234fi; }
235IFS=$as_save_IFS
236
237
238 if test "x$CONFIG_SHELL" != x; then :
239 export CONFIG_SHELL
240 # We cannot yet assume a decent shell, so we have to provide a
241# neutralization value for shells without unset; and this also
242# works around shells that cannot unset nonexistent variables.
243# Preserve -v and -x to the replacement shell.
244BASH_ENV=/dev/null
245ENV=/dev/null
246(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
247case $- in # ((((
248 *v*x* | *x*v* ) as_opts=-vx ;;
249 *v* ) as_opts=-v ;;
250 *x* ) as_opts=-x ;;
251 * ) as_opts= ;;
252esac
253exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
254# Admittedly, this is quite paranoid, since all the known shells bail
255# out after a failed `exec'.
256$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
257exit 255
258fi
259
260 if test x$as_have_required = xno; then :
261 $as_echo "$0: This script requires a shell more modern than all"
262 $as_echo "$0: the shells that I found on your system."
263 if test x${ZSH_VERSION+set} = xset ; then
264 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
265 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
266 else
267 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
268$0: including any error possibly output before this
269$0: message. Then install a modern shell, or manually run
270$0: the script under such a shell if you do have one."
271 fi
272 exit 1
273fi
274fi
275fi
276SHELL=${CONFIG_SHELL-/bin/sh}
277export SHELL
278# Unset more variables known to interfere with behavior of common tools.
279CLICOLOR_FORCE= GREP_OPTIONS=
280unset CLICOLOR_FORCE GREP_OPTIONS
281
282## --------------------- ##
283## M4sh Shell Functions. ##
284## --------------------- ##
285# as_fn_unset VAR
286# ---------------
287# Portably unset VAR.
288as_fn_unset ()
289{
290 { eval $1=; unset $1;}
291}
292as_unset=as_fn_unset
293
294# as_fn_set_status STATUS
295# -----------------------
296# Set $? to STATUS, without forking.
297as_fn_set_status ()
298{
299 return $1
300} # as_fn_set_status
301
302# as_fn_exit STATUS
303# -----------------
304# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
305as_fn_exit ()
306{
307 set +e
308 as_fn_set_status $1
309 exit $1
310} # as_fn_exit
311
312# as_fn_mkdir_p
313# -------------
314# Create "$as_dir" as a directory, including parents if necessary.
315as_fn_mkdir_p ()
316{
317
318 case $as_dir in #(
319 -*) as_dir=./$as_dir;;
320 esac
321 test -d "$as_dir" || eval $as_mkdir_p || {
322 as_dirs=
323 while :; do
324 case $as_dir in #(
325 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
326 *) as_qdir=$as_dir;;
327 esac
328 as_dirs="'$as_qdir' $as_dirs"
329 as_dir=`$as_dirname -- "$as_dir" ||
330$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
331 X"$as_dir" : 'X\(//\)[^/]' \| \
332 X"$as_dir" : 'X\(//\)$' \| \
333 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
334$as_echo X"$as_dir" |
335 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
336 s//\1/
337 q
338 }
339 /^X\(\/\/\)[^/].*/{
340 s//\1/
341 q
342 }
343 /^X\(\/\/\)$/{
344 s//\1/
345 q
346 }
347 /^X\(\/\).*/{
348 s//\1/
349 q
350 }
351 s/.*/./; q'`
352 test -d "$as_dir" && break
353 done
354 test -z "$as_dirs" || eval "mkdir $as_dirs"
355 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
356
357
358} # as_fn_mkdir_p
359
360# as_fn_executable_p FILE
361# -----------------------
362# Test if FILE is an executable regular file.
363as_fn_executable_p ()
364{
365 test -f "$1" && test -x "$1"
366} # as_fn_executable_p
367# as_fn_append VAR VALUE
368# ----------------------
369# Append the text in VALUE to the end of the definition contained in VAR. Take
370# advantage of any shell optimizations that allow amortized linear growth over
371# repeated appends, instead of the typical quadratic growth present in naive
372# implementations.
373if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
374 eval 'as_fn_append ()
375 {
376 eval $1+=\$2
377 }'
378else
379 as_fn_append ()
380 {
381 eval $1=\$$1\$2
382 }
383fi # as_fn_append
384
385# as_fn_arith ARG...
386# ------------------
387# Perform arithmetic evaluation on the ARGs, and store the result in the
388# global $as_val. Take advantage of shells that can avoid forks. The arguments
389# must be portable across $(()) and expr.
390if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
391 eval 'as_fn_arith ()
392 {
393 as_val=$(( $* ))
394 }'
395else
396 as_fn_arith ()
397 {
398 as_val=`expr "$@" || test $? -eq 1`
399 }
400fi # as_fn_arith
401
402
403# as_fn_error STATUS ERROR [LINENO LOG_FD]
404# ----------------------------------------
405# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
406# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
407# script with STATUS, using 1 if that was 0.
408as_fn_error ()
409{
410 as_status=$1; test $as_status -eq 0 && as_status=1
411 if test "$4"; then
412 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
413 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
414 fi
415 $as_echo "$as_me: error: $2" >&2
416 as_fn_exit $as_status
417} # as_fn_error
418
419if expr a : '\(a\)' >/dev/null 2>&1 &&
420 test "X`expr 00001 : '.*\(...\)'`" = X001; then
421 as_expr=expr
422else
423 as_expr=false
424fi
425
426if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
427 as_basename=basename
428else
429 as_basename=false
430fi
431
432if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
433 as_dirname=dirname
434else
435 as_dirname=false
436fi
437
438as_me=`$as_basename -- "$0" ||
439$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
440 X"$0" : 'X\(//\)$' \| \
441 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
442$as_echo X/"$0" |
443 sed '/^.*\/\([^/][^/]*\)\/*$/{
444 s//\1/
445 q
446 }
447 /^X\/\(\/\/\)$/{
448 s//\1/
449 q
450 }
451 /^X\/\(\/\).*/{
452 s//\1/
453 q
454 }
455 s/.*/./; q'`
456
457# Avoid depending upon Character Ranges.
458as_cr_letters='abcdefghijklmnopqrstuvwxyz'
459as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
460as_cr_Letters=$as_cr_letters$as_cr_LETTERS
461as_cr_digits='0123456789'
462as_cr_alnum=$as_cr_Letters$as_cr_digits
463
464
465 as_lineno_1=$LINENO as_lineno_1a=$LINENO
466 as_lineno_2=$LINENO as_lineno_2a=$LINENO
467 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
468 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
469 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
470 sed -n '
471 p
472 /[$]LINENO/=
473 ' <$as_myself |
474 sed '
475 s/[$]LINENO.*/&-/
476 t lineno
477 b
478 :lineno
479 N
480 :loop
481 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
482 t loop
483 s/-\n.*//
484 ' >$as_me.lineno &&
485 chmod +x "$as_me.lineno" ||
486 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
487
488 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
489 # already done that, so ensure we don't try to do so again and fall
490 # in an infinite loop. This has already happened in practice.
491 _as_can_reexec=no; export _as_can_reexec
492 # Don't try to exec as it changes $[0], causing all sort of problems
493 # (the dirname of $[0] is not the place where we might find the
494 # original and so on. Autoconf is especially sensitive to this).
495 . "./$as_me.lineno"
496 # Exit status is that of the last command.
497 exit
498}
499
500ECHO_C= ECHO_N= ECHO_T=
501case `echo -n x` in #(((((
502-n*)
503 case `echo 'xy\c'` in
504 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
505 xy) ECHO_C='\c';;
506 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
507 ECHO_T=' ';;
508 esac;;
509*)
510 ECHO_N='-n';;
511esac
512
513rm -f conf$$ conf$$.exe conf$$.file
514if test -d conf$$.dir; then
515 rm -f conf$$.dir/conf$$.file
516else
517 rm -f conf$$.dir
518 mkdir conf$$.dir 2>/dev/null
519fi
520if (echo >conf$$.file) 2>/dev/null; then
521 if ln -s conf$$.file conf$$ 2>/dev/null; then
522 as_ln_s='ln -s'
523 # ... but there are two gotchas:
524 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
525 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
526 # In both cases, we have to default to `cp -pR'.
527 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
528 as_ln_s='cp -pR'
529 elif ln conf$$.file conf$$ 2>/dev/null; then
530 as_ln_s=ln
531 else
532 as_ln_s='cp -pR'
533 fi
534else
535 as_ln_s='cp -pR'
536fi
537rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
538rmdir conf$$.dir 2>/dev/null
539
540if mkdir -p . 2>/dev/null; then
541 as_mkdir_p='mkdir -p "$as_dir"'
542else
543 test -d ./-p && rmdir ./-p
544 as_mkdir_p=false
545fi
546
547as_test_x='test -x'
548as_executable_p=as_fn_executable_p
549
550# Sed expression to map a string onto a valid CPP name.
551as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
552
553# Sed expression to map a string onto a valid variable name.
554as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
555
556
557test -n "$DJDIR" || exec 7<&0 </dev/null
558exec 6>&1
559
560# Name of the host.
561# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
562# so uname gets run too.
563ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
564
565#
566# Initializations.
567#
568ac_default_prefix=/usr/local
569ac_clean_files=
570ac_config_libobj_dir=.
571LIBOBJS=
572cross_compiling=no
573subdirs=
574MFLAGS=
575MAKEFLAGS=
576
577# Identity of this package.
578PACKAGE_NAME=
579PACKAGE_TARNAME=
580PACKAGE_VERSION=
581PACKAGE_STRING=
582PACKAGE_BUGREPORT=
583PACKAGE_URL=
584
585ac_unique_file="buffer.c"
586# Factoring default headers for most tests.
587ac_includes_default="\
588#include <stdio.h>
589#ifdef HAVE_SYS_TYPES_H
590# include <sys/types.h>
591#endif
592#ifdef HAVE_SYS_STAT_H
593# include <sys/stat.h>
594#endif
595#ifdef STDC_HEADERS
596# include <stdlib.h>
597# include <stddef.h>
598#else
599# ifdef HAVE_STDLIB_H
600# include <stdlib.h>
601# endif
602#endif
603#ifdef HAVE_STRING_H
604# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
605# include <memory.h>
606# endif
607# include <string.h>
608#endif
609#ifdef HAVE_STRINGS_H
610# include <strings.h>
611#endif
612#ifdef HAVE_INTTYPES_H
613# include <inttypes.h>
614#endif
615#ifdef HAVE_STDINT_H
616# include <stdint.h>
617#endif
618#ifdef HAVE_UNISTD_H
619# include <unistd.h>
620#endif"
621
622ac_subst_vars='LTLIBOBJS
623LIBOBJS
624HOST_ID
625SHLIB
626MACHDEPLIBS
627extralibdir
628extraincludedir
Yi Kong39bbd962022-01-09 19:41:38 +0800629FLOPPYD_IO_OBJ
630FLOPPYD_IO_SRC
Alistair Delvabeaee832021-02-24 11:27:23 -0800631BINFLOPPYD
632FLOPPYD
Yi Kong39bbd962022-01-09 19:41:38 +0800633FLOPPYD_LIBS
Alistair Delvabeaee832021-02-24 11:27:23 -0800634X_EXTRA_LIBS
635X_LIBS
636X_PRE_LIBS
637X_CFLAGS
638XMKMF
Yi Kong39bbd962022-01-09 19:41:38 +0800639XDF_IO_OBJ
640XDF_IO_SRC
Alistair Delvabeaee832021-02-24 11:27:23 -0800641target_os
642target_vendor
643target_cpu
644target
645host_os
646host_vendor
647host_cpu
648host
649build_os
650build_vendor
651build_cpu
652build
653INSTALL_INFO
654LN_S
655INSTALL_DATA
656INSTALL_SCRIPT
657INSTALL_PROGRAM
658EGREP
659GREP
660CPP
661OBJEXT
662EXEEXT
663ac_ct_CC
664CPPFLAGS
665LDFLAGS
666CFLAGS
667CC
668target_alias
669host_alias
670build_alias
671LIBS
672ECHO_T
673ECHO_N
674ECHO_C
675DEFS
676mandir
677localedir
678libdir
679psdir
680pdfdir
681dvidir
682htmldir
683infodir
684docdir
685oldincludedir
686includedir
687runstatedir
688localstatedir
689sharedstatedir
690sysconfdir
691datadir
692datarootdir
693libexecdir
694sbindir
695bindir
696program_transform_name
697prefix
698exec_prefix
699PACKAGE_URL
700PACKAGE_BUGREPORT
701PACKAGE_STRING
702PACKAGE_VERSION
703PACKAGE_TARNAME
704PACKAGE_NAME
705PATH_SEPARATOR
706SHELL'
707ac_subst_files=''
708ac_user_opts='
709enable_option_checking
710enable_xdf
711enable_vold
712enable_new_vold
713enable_debug
714enable_raw_term
715enable_largefile
716with_x
717enable_floppyd
718'
719 ac_precious_vars='build_alias
720host_alias
721target_alias
722CC
723CFLAGS
724LDFLAGS
725LIBS
726CPPFLAGS
727CPP
728XMKMF'
729
730
731# Initialize some variables set by options.
732ac_init_help=
733ac_init_version=false
734ac_unrecognized_opts=
735ac_unrecognized_sep=
736# The variables have the same names as the options, with
737# dashes changed to underlines.
738cache_file=/dev/null
739exec_prefix=NONE
740no_create=
741no_recursion=
742prefix=NONE
743program_prefix=NONE
744program_suffix=NONE
745program_transform_name=s,x,x,
746silent=
747site=
748srcdir=
749verbose=
750x_includes=NONE
751x_libraries=NONE
752
753# Installation directory options.
754# These are left unexpanded so users can "make install exec_prefix=/foo"
755# and all the variables that are supposed to be based on exec_prefix
756# by default will actually change.
757# Use braces instead of parens because sh, perl, etc. also accept them.
758# (The list follows the same order as the GNU Coding Standards.)
759bindir='${exec_prefix}/bin'
760sbindir='${exec_prefix}/sbin'
761libexecdir='${exec_prefix}/libexec'
762datarootdir='${prefix}/share'
763datadir='${datarootdir}'
764sysconfdir='${prefix}/etc'
765sharedstatedir='${prefix}/com'
766localstatedir='${prefix}/var'
767runstatedir='${localstatedir}/run'
768includedir='${prefix}/include'
769oldincludedir='/usr/include'
770docdir='${datarootdir}/doc/${PACKAGE}'
771infodir='${datarootdir}/info'
772htmldir='${docdir}'
773dvidir='${docdir}'
774pdfdir='${docdir}'
775psdir='${docdir}'
776libdir='${exec_prefix}/lib'
777localedir='${datarootdir}/locale'
778mandir='${datarootdir}/man'
779
780ac_prev=
781ac_dashdash=
782for ac_option
783do
784 # If the previous option needs an argument, assign it.
785 if test -n "$ac_prev"; then
786 eval $ac_prev=\$ac_option
787 ac_prev=
788 continue
789 fi
790
791 case $ac_option in
792 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
793 *=) ac_optarg= ;;
794 *) ac_optarg=yes ;;
795 esac
796
797 # Accept the important Cygnus configure options, so we can diagnose typos.
798
799 case $ac_dashdash$ac_option in
800 --)
801 ac_dashdash=yes ;;
802
803 -bindir | --bindir | --bindi | --bind | --bin | --bi)
804 ac_prev=bindir ;;
805 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
806 bindir=$ac_optarg ;;
807
808 -build | --build | --buil | --bui | --bu)
809 ac_prev=build_alias ;;
810 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
811 build_alias=$ac_optarg ;;
812
813 -cache-file | --cache-file | --cache-fil | --cache-fi \
814 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
815 ac_prev=cache_file ;;
816 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
817 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
818 cache_file=$ac_optarg ;;
819
820 --config-cache | -C)
821 cache_file=config.cache ;;
822
823 -datadir | --datadir | --datadi | --datad)
824 ac_prev=datadir ;;
825 -datadir=* | --datadir=* | --datadi=* | --datad=*)
826 datadir=$ac_optarg ;;
827
828 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
829 | --dataroo | --dataro | --datar)
830 ac_prev=datarootdir ;;
831 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
832 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
833 datarootdir=$ac_optarg ;;
834
835 -disable-* | --disable-*)
836 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
837 # Reject names that are not valid shell variable names.
838 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
839 as_fn_error $? "invalid feature name: $ac_useropt"
840 ac_useropt_orig=$ac_useropt
841 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
842 case $ac_user_opts in
843 *"
844"enable_$ac_useropt"
845"*) ;;
846 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
847 ac_unrecognized_sep=', ';;
848 esac
849 eval enable_$ac_useropt=no ;;
850
851 -docdir | --docdir | --docdi | --doc | --do)
852 ac_prev=docdir ;;
853 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
854 docdir=$ac_optarg ;;
855
856 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
857 ac_prev=dvidir ;;
858 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
859 dvidir=$ac_optarg ;;
860
861 -enable-* | --enable-*)
862 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
863 # Reject names that are not valid shell variable names.
864 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
865 as_fn_error $? "invalid feature name: $ac_useropt"
866 ac_useropt_orig=$ac_useropt
867 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
868 case $ac_user_opts in
869 *"
870"enable_$ac_useropt"
871"*) ;;
872 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
873 ac_unrecognized_sep=', ';;
874 esac
875 eval enable_$ac_useropt=\$ac_optarg ;;
876
877 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
878 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
879 | --exec | --exe | --ex)
880 ac_prev=exec_prefix ;;
881 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
882 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
883 | --exec=* | --exe=* | --ex=*)
884 exec_prefix=$ac_optarg ;;
885
886 -gas | --gas | --ga | --g)
887 # Obsolete; use --with-gas.
888 with_gas=yes ;;
889
890 -help | --help | --hel | --he | -h)
891 ac_init_help=long ;;
892 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
893 ac_init_help=recursive ;;
894 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
895 ac_init_help=short ;;
896
897 -host | --host | --hos | --ho)
898 ac_prev=host_alias ;;
899 -host=* | --host=* | --hos=* | --ho=*)
900 host_alias=$ac_optarg ;;
901
902 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
903 ac_prev=htmldir ;;
904 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
905 | --ht=*)
906 htmldir=$ac_optarg ;;
907
908 -includedir | --includedir | --includedi | --included | --include \
909 | --includ | --inclu | --incl | --inc)
910 ac_prev=includedir ;;
911 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
912 | --includ=* | --inclu=* | --incl=* | --inc=*)
913 includedir=$ac_optarg ;;
914
915 -infodir | --infodir | --infodi | --infod | --info | --inf)
916 ac_prev=infodir ;;
917 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
918 infodir=$ac_optarg ;;
919
920 -libdir | --libdir | --libdi | --libd)
921 ac_prev=libdir ;;
922 -libdir=* | --libdir=* | --libdi=* | --libd=*)
923 libdir=$ac_optarg ;;
924
925 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
926 | --libexe | --libex | --libe)
927 ac_prev=libexecdir ;;
928 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
929 | --libexe=* | --libex=* | --libe=*)
930 libexecdir=$ac_optarg ;;
931
932 -localedir | --localedir | --localedi | --localed | --locale)
933 ac_prev=localedir ;;
934 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
935 localedir=$ac_optarg ;;
936
937 -localstatedir | --localstatedir | --localstatedi | --localstated \
938 | --localstate | --localstat | --localsta | --localst | --locals)
939 ac_prev=localstatedir ;;
940 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
941 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
942 localstatedir=$ac_optarg ;;
943
944 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
945 ac_prev=mandir ;;
946 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
947 mandir=$ac_optarg ;;
948
949 -nfp | --nfp | --nf)
950 # Obsolete; use --without-fp.
951 with_fp=no ;;
952
953 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
954 | --no-cr | --no-c | -n)
955 no_create=yes ;;
956
957 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
958 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
959 no_recursion=yes ;;
960
961 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
962 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
963 | --oldin | --oldi | --old | --ol | --o)
964 ac_prev=oldincludedir ;;
965 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
966 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
967 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
968 oldincludedir=$ac_optarg ;;
969
970 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
971 ac_prev=prefix ;;
972 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
973 prefix=$ac_optarg ;;
974
975 -program-prefix | --program-prefix | --program-prefi | --program-pref \
976 | --program-pre | --program-pr | --program-p)
977 ac_prev=program_prefix ;;
978 -program-prefix=* | --program-prefix=* | --program-prefi=* \
979 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
980 program_prefix=$ac_optarg ;;
981
982 -program-suffix | --program-suffix | --program-suffi | --program-suff \
983 | --program-suf | --program-su | --program-s)
984 ac_prev=program_suffix ;;
985 -program-suffix=* | --program-suffix=* | --program-suffi=* \
986 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
987 program_suffix=$ac_optarg ;;
988
989 -program-transform-name | --program-transform-name \
990 | --program-transform-nam | --program-transform-na \
991 | --program-transform-n | --program-transform- \
992 | --program-transform | --program-transfor \
993 | --program-transfo | --program-transf \
994 | --program-trans | --program-tran \
995 | --progr-tra | --program-tr | --program-t)
996 ac_prev=program_transform_name ;;
997 -program-transform-name=* | --program-transform-name=* \
998 | --program-transform-nam=* | --program-transform-na=* \
999 | --program-transform-n=* | --program-transform-=* \
1000 | --program-transform=* | --program-transfor=* \
1001 | --program-transfo=* | --program-transf=* \
1002 | --program-trans=* | --program-tran=* \
1003 | --progr-tra=* | --program-tr=* | --program-t=*)
1004 program_transform_name=$ac_optarg ;;
1005
1006 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1007 ac_prev=pdfdir ;;
1008 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1009 pdfdir=$ac_optarg ;;
1010
1011 -psdir | --psdir | --psdi | --psd | --ps)
1012 ac_prev=psdir ;;
1013 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1014 psdir=$ac_optarg ;;
1015
1016 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1017 | -silent | --silent | --silen | --sile | --sil)
1018 silent=yes ;;
1019
1020 -runstatedir | --runstatedir | --runstatedi | --runstated \
1021 | --runstate | --runstat | --runsta | --runst | --runs \
1022 | --run | --ru | --r)
1023 ac_prev=runstatedir ;;
1024 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1025 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1026 | --run=* | --ru=* | --r=*)
1027 runstatedir=$ac_optarg ;;
1028
1029 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1030 ac_prev=sbindir ;;
1031 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1032 | --sbi=* | --sb=*)
1033 sbindir=$ac_optarg ;;
1034
1035 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1036 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1037 | --sharedst | --shareds | --shared | --share | --shar \
1038 | --sha | --sh)
1039 ac_prev=sharedstatedir ;;
1040 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1041 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1042 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1043 | --sha=* | --sh=*)
1044 sharedstatedir=$ac_optarg ;;
1045
1046 -site | --site | --sit)
1047 ac_prev=site ;;
1048 -site=* | --site=* | --sit=*)
1049 site=$ac_optarg ;;
1050
1051 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1052 ac_prev=srcdir ;;
1053 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1054 srcdir=$ac_optarg ;;
1055
1056 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1057 | --syscon | --sysco | --sysc | --sys | --sy)
1058 ac_prev=sysconfdir ;;
1059 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1060 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1061 sysconfdir=$ac_optarg ;;
1062
1063 -target | --target | --targe | --targ | --tar | --ta | --t)
1064 ac_prev=target_alias ;;
1065 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1066 target_alias=$ac_optarg ;;
1067
1068 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1069 verbose=yes ;;
1070
1071 -version | --version | --versio | --versi | --vers | -V)
1072 ac_init_version=: ;;
1073
1074 -with-* | --with-*)
1075 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1076 # Reject names that are not valid shell variable names.
1077 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1078 as_fn_error $? "invalid package name: $ac_useropt"
1079 ac_useropt_orig=$ac_useropt
1080 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1081 case $ac_user_opts in
1082 *"
1083"with_$ac_useropt"
1084"*) ;;
1085 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1086 ac_unrecognized_sep=', ';;
1087 esac
1088 eval with_$ac_useropt=\$ac_optarg ;;
1089
1090 -without-* | --without-*)
1091 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1092 # Reject names that are not valid shell variable names.
1093 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1094 as_fn_error $? "invalid package name: $ac_useropt"
1095 ac_useropt_orig=$ac_useropt
1096 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1097 case $ac_user_opts in
1098 *"
1099"with_$ac_useropt"
1100"*) ;;
1101 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1102 ac_unrecognized_sep=', ';;
1103 esac
1104 eval with_$ac_useropt=no ;;
1105
1106 --x)
1107 # Obsolete; use --with-x.
1108 with_x=yes ;;
1109
1110 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1111 | --x-incl | --x-inc | --x-in | --x-i)
1112 ac_prev=x_includes ;;
1113 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1114 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1115 x_includes=$ac_optarg ;;
1116
1117 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1118 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1119 ac_prev=x_libraries ;;
1120 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1121 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1122 x_libraries=$ac_optarg ;;
1123
1124 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1125Try \`$0 --help' for more information"
1126 ;;
1127
1128 *=*)
1129 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1130 # Reject names that are not valid shell variable names.
1131 case $ac_envvar in #(
1132 '' | [0-9]* | *[!_$as_cr_alnum]* )
1133 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1134 esac
1135 eval $ac_envvar=\$ac_optarg
1136 export $ac_envvar ;;
1137
1138 *)
1139 # FIXME: should be removed in autoconf 3.0.
1140 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1141 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1142 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1143 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1144 ;;
1145
1146 esac
1147done
1148
1149if test -n "$ac_prev"; then
1150 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1151 as_fn_error $? "missing argument to $ac_option"
1152fi
1153
1154if test -n "$ac_unrecognized_opts"; then
1155 case $enable_option_checking in
1156 no) ;;
1157 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1158 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1159 esac
1160fi
1161
1162# Check all directory arguments for consistency.
1163for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1164 datadir sysconfdir sharedstatedir localstatedir includedir \
1165 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1166 libdir localedir mandir runstatedir
1167do
1168 eval ac_val=\$$ac_var
1169 # Remove trailing slashes.
1170 case $ac_val in
1171 */ )
1172 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1173 eval $ac_var=\$ac_val;;
1174 esac
1175 # Be sure to have absolute directory names.
1176 case $ac_val in
1177 [\\/$]* | ?:[\\/]* ) continue;;
1178 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1179 esac
1180 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1181done
1182
1183# There might be people who depend on the old broken behavior: `$host'
1184# used to hold the argument of --host etc.
1185# FIXME: To remove some day.
1186build=$build_alias
1187host=$host_alias
1188target=$target_alias
1189
1190# FIXME: To remove some day.
1191if test "x$host_alias" != x; then
1192 if test "x$build_alias" = x; then
1193 cross_compiling=maybe
1194 elif test "x$build_alias" != "x$host_alias"; then
1195 cross_compiling=yes
1196 fi
1197fi
1198
1199ac_tool_prefix=
1200test -n "$host_alias" && ac_tool_prefix=$host_alias-
1201
1202test "$silent" = yes && exec 6>/dev/null
1203
1204
1205ac_pwd=`pwd` && test -n "$ac_pwd" &&
1206ac_ls_di=`ls -di .` &&
1207ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1208 as_fn_error $? "working directory cannot be determined"
1209test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1210 as_fn_error $? "pwd does not report name of working directory"
1211
1212
1213# Find the source files, if location was not specified.
1214if test -z "$srcdir"; then
1215 ac_srcdir_defaulted=yes
1216 # Try the directory containing this script, then the parent directory.
1217 ac_confdir=`$as_dirname -- "$as_myself" ||
1218$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1219 X"$as_myself" : 'X\(//\)[^/]' \| \
1220 X"$as_myself" : 'X\(//\)$' \| \
1221 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1222$as_echo X"$as_myself" |
1223 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1224 s//\1/
1225 q
1226 }
1227 /^X\(\/\/\)[^/].*/{
1228 s//\1/
1229 q
1230 }
1231 /^X\(\/\/\)$/{
1232 s//\1/
1233 q
1234 }
1235 /^X\(\/\).*/{
1236 s//\1/
1237 q
1238 }
1239 s/.*/./; q'`
1240 srcdir=$ac_confdir
1241 if test ! -r "$srcdir/$ac_unique_file"; then
1242 srcdir=..
1243 fi
1244else
1245 ac_srcdir_defaulted=no
1246fi
1247if test ! -r "$srcdir/$ac_unique_file"; then
1248 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1249 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1250fi
1251ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1252ac_abs_confdir=`(
1253 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1254 pwd)`
1255# When building in place, set srcdir=.
1256if test "$ac_abs_confdir" = "$ac_pwd"; then
1257 srcdir=.
1258fi
1259# Remove unnecessary trailing slashes from srcdir.
1260# Double slashes in file names in object file debugging info
1261# mess up M-x gdb in Emacs.
1262case $srcdir in
1263*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1264esac
1265for ac_var in $ac_precious_vars; do
1266 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1267 eval ac_env_${ac_var}_value=\$${ac_var}
1268 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1269 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1270done
1271
1272#
1273# Report the --help message.
1274#
1275if test "$ac_init_help" = "long"; then
1276 # Omit some internal or obsolete options to make the list less imposing.
1277 # This message is too long to be a string in the A/UX 3.1 sh.
1278 cat <<_ACEOF
1279\`configure' configures this package to adapt to many kinds of systems.
1280
1281Usage: $0 [OPTION]... [VAR=VALUE]...
1282
1283To assign environment variables (e.g., CC, CFLAGS...), specify them as
1284VAR=VALUE. See below for descriptions of some of the useful variables.
1285
1286Defaults for the options are specified in brackets.
1287
1288Configuration:
1289 -h, --help display this help and exit
1290 --help=short display options specific to this package
1291 --help=recursive display the short help of all the included packages
1292 -V, --version display version information and exit
1293 -q, --quiet, --silent do not print \`checking ...' messages
1294 --cache-file=FILE cache test results in FILE [disabled]
1295 -C, --config-cache alias for \`--cache-file=config.cache'
1296 -n, --no-create do not create output files
1297 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1298
1299Installation directories:
1300 --prefix=PREFIX install architecture-independent files in PREFIX
1301 [$ac_default_prefix]
1302 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1303 [PREFIX]
1304
1305By default, \`make install' will install all the files in
1306\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1307an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1308for instance \`--prefix=\$HOME'.
1309
1310For better control, use the options below.
1311
1312Fine tuning of the installation directories:
1313 --bindir=DIR user executables [EPREFIX/bin]
1314 --sbindir=DIR system admin executables [EPREFIX/sbin]
1315 --libexecdir=DIR program executables [EPREFIX/libexec]
1316 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1317 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1318 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1319 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run]
1320 --libdir=DIR object code libraries [EPREFIX/lib]
1321 --includedir=DIR C header files [PREFIX/include]
1322 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1323 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1324 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1325 --infodir=DIR info documentation [DATAROOTDIR/info]
1326 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1327 --mandir=DIR man documentation [DATAROOTDIR/man]
1328 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1329 --htmldir=DIR html documentation [DOCDIR]
1330 --dvidir=DIR dvi documentation [DOCDIR]
1331 --pdfdir=DIR pdf documentation [DOCDIR]
1332 --psdir=DIR ps documentation [DOCDIR]
1333_ACEOF
1334
1335 cat <<\_ACEOF
1336
1337X features:
1338 --x-includes=DIR X include files are in DIR
1339 --x-libraries=DIR X library files are in DIR
1340
1341System types:
1342 --build=BUILD configure for building on BUILD [guessed]
1343 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1344 --target=TARGET configure for building compilers for TARGET [HOST]
1345_ACEOF
1346fi
1347
1348if test -n "$ac_init_help"; then
1349
1350 cat <<\_ACEOF
1351
1352Optional Features:
1353 --disable-option-checking ignore unrecognized --enable/--with options
1354 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1355 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1356 --enable-xdf support for OS/2 extended density format disks
1357 --enable-vold compatibility with Solaris' vold
1358 --enable-new-vold compatibility with Solaris' vold, new version
1359 --enable-debug debugging messages
1360 --enable-raw-term raw terminal (readkey behaviour, default)
1361 --disable-largefile omit support for large files
1362 --enable-floppyd floppy daemon support
1363
1364Optional Packages:
1365 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1366 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1367 --with-x use the X Window System
1368
1369Some influential environment variables:
1370 CC C compiler command
1371 CFLAGS C compiler flags
1372 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1373 nonstandard directory <lib dir>
1374 LIBS libraries to pass to the linker, e.g. -l<library>
1375 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1376 you have headers in a nonstandard directory <include dir>
1377 CPP C preprocessor
1378 XMKMF Path to xmkmf, Makefile generator for X Window System
1379
1380Use these variables to override the choices made by `configure' or to help
1381it to find libraries and programs with nonstandard names/locations.
1382
1383Report bugs to the package provider.
1384_ACEOF
1385ac_status=$?
1386fi
1387
1388if test "$ac_init_help" = "recursive"; then
1389 # If there are subdirs, report their specific --help.
1390 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1391 test -d "$ac_dir" ||
1392 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1393 continue
1394 ac_builddir=.
1395
1396case "$ac_dir" in
1397.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1398*)
1399 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1400 # A ".." for each directory in $ac_dir_suffix.
1401 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1402 case $ac_top_builddir_sub in
1403 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1404 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1405 esac ;;
1406esac
1407ac_abs_top_builddir=$ac_pwd
1408ac_abs_builddir=$ac_pwd$ac_dir_suffix
1409# for backward compatibility:
1410ac_top_builddir=$ac_top_build_prefix
1411
1412case $srcdir in
1413 .) # We are building in place.
1414 ac_srcdir=.
1415 ac_top_srcdir=$ac_top_builddir_sub
1416 ac_abs_top_srcdir=$ac_pwd ;;
1417 [\\/]* | ?:[\\/]* ) # Absolute name.
1418 ac_srcdir=$srcdir$ac_dir_suffix;
1419 ac_top_srcdir=$srcdir
1420 ac_abs_top_srcdir=$srcdir ;;
1421 *) # Relative name.
1422 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1423 ac_top_srcdir=$ac_top_build_prefix$srcdir
1424 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1425esac
1426ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1427
1428 cd "$ac_dir" || { ac_status=$?; continue; }
1429 # Check for guested configure.
1430 if test -f "$ac_srcdir/configure.gnu"; then
1431 echo &&
1432 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1433 elif test -f "$ac_srcdir/configure"; then
1434 echo &&
1435 $SHELL "$ac_srcdir/configure" --help=recursive
1436 else
1437 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1438 fi || ac_status=$?
1439 cd "$ac_pwd" || { ac_status=$?; break; }
1440 done
1441fi
1442
1443test -n "$ac_init_help" && exit $ac_status
1444if $ac_init_version; then
1445 cat <<\_ACEOF
1446configure
1447generated by GNU Autoconf 2.69
1448
1449Copyright (C) 2012 Free Software Foundation, Inc.
1450This configure script is free software; the Free Software Foundation
1451gives unlimited permission to copy, distribute and modify it.
1452_ACEOF
1453 exit
1454fi
1455
1456## ------------------------ ##
1457## Autoconf initialization. ##
1458## ------------------------ ##
1459
1460# ac_fn_c_try_compile LINENO
1461# --------------------------
1462# Try to compile conftest.$ac_ext, and return whether this succeeded.
1463ac_fn_c_try_compile ()
1464{
1465 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1466 rm -f conftest.$ac_objext
1467 if { { ac_try="$ac_compile"
1468case "(($ac_try" in
1469 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1470 *) ac_try_echo=$ac_try;;
1471esac
1472eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1473$as_echo "$ac_try_echo"; } >&5
1474 (eval "$ac_compile") 2>conftest.err
1475 ac_status=$?
1476 if test -s conftest.err; then
1477 grep -v '^ *+' conftest.err >conftest.er1
1478 cat conftest.er1 >&5
1479 mv -f conftest.er1 conftest.err
1480 fi
1481 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1482 test $ac_status = 0; } && {
1483 test -z "$ac_c_werror_flag" ||
1484 test ! -s conftest.err
1485 } && test -s conftest.$ac_objext; then :
1486 ac_retval=0
1487else
1488 $as_echo "$as_me: failed program was:" >&5
1489sed 's/^/| /' conftest.$ac_ext >&5
1490
1491 ac_retval=1
1492fi
1493 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1494 as_fn_set_status $ac_retval
1495
1496} # ac_fn_c_try_compile
1497
1498# ac_fn_c_try_cpp LINENO
1499# ----------------------
1500# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1501ac_fn_c_try_cpp ()
1502{
1503 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1504 if { { ac_try="$ac_cpp conftest.$ac_ext"
1505case "(($ac_try" in
1506 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1507 *) ac_try_echo=$ac_try;;
1508esac
1509eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1510$as_echo "$ac_try_echo"; } >&5
1511 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1512 ac_status=$?
1513 if test -s conftest.err; then
1514 grep -v '^ *+' conftest.err >conftest.er1
1515 cat conftest.er1 >&5
1516 mv -f conftest.er1 conftest.err
1517 fi
1518 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1519 test $ac_status = 0; } > conftest.i && {
1520 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1521 test ! -s conftest.err
1522 }; then :
1523 ac_retval=0
1524else
1525 $as_echo "$as_me: failed program was:" >&5
1526sed 's/^/| /' conftest.$ac_ext >&5
1527
1528 ac_retval=1
1529fi
1530 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1531 as_fn_set_status $ac_retval
1532
1533} # ac_fn_c_try_cpp
1534
1535# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1536# -------------------------------------------------------
1537# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1538# the include files in INCLUDES and setting the cache variable VAR
1539# accordingly.
1540ac_fn_c_check_header_mongrel ()
1541{
1542 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1543 if eval \${$3+:} false; then :
1544 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1545$as_echo_n "checking for $2... " >&6; }
1546if eval \${$3+:} false; then :
1547 $as_echo_n "(cached) " >&6
1548fi
1549eval ac_res=\$$3
1550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1551$as_echo "$ac_res" >&6; }
1552else
1553 # Is the header compilable?
1554{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1555$as_echo_n "checking $2 usability... " >&6; }
1556cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1557/* end confdefs.h. */
1558$4
1559#include <$2>
1560_ACEOF
1561if ac_fn_c_try_compile "$LINENO"; then :
1562 ac_header_compiler=yes
1563else
1564 ac_header_compiler=no
1565fi
1566rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1567{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1568$as_echo "$ac_header_compiler" >&6; }
1569
1570# Is the header present?
1571{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1572$as_echo_n "checking $2 presence... " >&6; }
1573cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1574/* end confdefs.h. */
1575#include <$2>
1576_ACEOF
1577if ac_fn_c_try_cpp "$LINENO"; then :
1578 ac_header_preproc=yes
1579else
1580 ac_header_preproc=no
1581fi
1582rm -f conftest.err conftest.i conftest.$ac_ext
1583{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1584$as_echo "$ac_header_preproc" >&6; }
1585
1586# So? What about this header?
1587case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1588 yes:no: )
1589 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1590$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1591 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1592$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1593 ;;
1594 no:yes:* )
1595 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1596$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1597 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1598$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1599 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1600$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1601 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1602$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1603 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1604$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1605 ;;
1606esac
1607 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1608$as_echo_n "checking for $2... " >&6; }
1609if eval \${$3+:} false; then :
1610 $as_echo_n "(cached) " >&6
1611else
1612 eval "$3=\$ac_header_compiler"
1613fi
1614eval ac_res=\$$3
1615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1616$as_echo "$ac_res" >&6; }
1617fi
1618 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1619
1620} # ac_fn_c_check_header_mongrel
1621
1622# ac_fn_c_try_run LINENO
1623# ----------------------
1624# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1625# that executables *can* be run.
1626ac_fn_c_try_run ()
1627{
1628 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1629 if { { ac_try="$ac_link"
1630case "(($ac_try" in
1631 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1632 *) ac_try_echo=$ac_try;;
1633esac
1634eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1635$as_echo "$ac_try_echo"; } >&5
1636 (eval "$ac_link") 2>&5
1637 ac_status=$?
1638 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1639 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1640 { { case "(($ac_try" in
1641 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1642 *) ac_try_echo=$ac_try;;
1643esac
1644eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1645$as_echo "$ac_try_echo"; } >&5
1646 (eval "$ac_try") 2>&5
1647 ac_status=$?
1648 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1649 test $ac_status = 0; }; }; then :
1650 ac_retval=0
1651else
1652 $as_echo "$as_me: program exited with status $ac_status" >&5
1653 $as_echo "$as_me: failed program was:" >&5
1654sed 's/^/| /' conftest.$ac_ext >&5
1655
1656 ac_retval=$ac_status
1657fi
1658 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1659 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1660 as_fn_set_status $ac_retval
1661
1662} # ac_fn_c_try_run
1663
1664# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1665# -------------------------------------------------------
1666# Tests whether HEADER exists and can be compiled using the include files in
1667# INCLUDES, setting the cache variable VAR accordingly.
1668ac_fn_c_check_header_compile ()
1669{
1670 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1671 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1672$as_echo_n "checking for $2... " >&6; }
1673if eval \${$3+:} false; then :
1674 $as_echo_n "(cached) " >&6
1675else
1676 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1677/* end confdefs.h. */
1678$4
1679#include <$2>
1680_ACEOF
1681if ac_fn_c_try_compile "$LINENO"; then :
1682 eval "$3=yes"
1683else
1684 eval "$3=no"
1685fi
1686rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1687fi
1688eval ac_res=\$$3
1689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1690$as_echo "$ac_res" >&6; }
1691 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1692
1693} # ac_fn_c_check_header_compile
1694
1695# ac_fn_c_try_link LINENO
1696# -----------------------
1697# Try to link conftest.$ac_ext, and return whether this succeeded.
1698ac_fn_c_try_link ()
1699{
1700 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1701 rm -f conftest.$ac_objext conftest$ac_exeext
1702 if { { ac_try="$ac_link"
1703case "(($ac_try" in
1704 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1705 *) ac_try_echo=$ac_try;;
1706esac
1707eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1708$as_echo "$ac_try_echo"; } >&5
1709 (eval "$ac_link") 2>conftest.err
1710 ac_status=$?
1711 if test -s conftest.err; then
1712 grep -v '^ *+' conftest.err >conftest.er1
1713 cat conftest.er1 >&5
1714 mv -f conftest.er1 conftest.err
1715 fi
1716 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1717 test $ac_status = 0; } && {
1718 test -z "$ac_c_werror_flag" ||
1719 test ! -s conftest.err
1720 } && test -s conftest$ac_exeext && {
1721 test "$cross_compiling" = yes ||
1722 test -x conftest$ac_exeext
1723 }; then :
1724 ac_retval=0
1725else
1726 $as_echo "$as_me: failed program was:" >&5
1727sed 's/^/| /' conftest.$ac_ext >&5
1728
1729 ac_retval=1
1730fi
1731 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1732 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1733 # interfere with the next link command; also delete a directory that is
1734 # left behind by Apple's compiler. We do this before executing the actions.
1735 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1736 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1737 as_fn_set_status $ac_retval
1738
1739} # ac_fn_c_try_link
1740
Yi Kong39bbd962022-01-09 19:41:38 +08001741# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1742# -------------------------------------------
1743# Tests whether TYPE exists after having included INCLUDES, setting cache
1744# variable VAR accordingly.
1745ac_fn_c_check_type ()
1746{
1747 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1749$as_echo_n "checking for $2... " >&6; }
1750if eval \${$3+:} false; then :
1751 $as_echo_n "(cached) " >&6
1752else
1753 eval "$3=no"
1754 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1755/* end confdefs.h. */
1756$4
1757int
1758main ()
1759{
1760if (sizeof ($2))
1761 return 0;
1762 ;
1763 return 0;
1764}
1765_ACEOF
1766if ac_fn_c_try_compile "$LINENO"; then :
1767 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1768/* end confdefs.h. */
1769$4
1770int
1771main ()
1772{
1773if (sizeof (($2)))
1774 return 0;
1775 ;
1776 return 0;
1777}
1778_ACEOF
1779if ac_fn_c_try_compile "$LINENO"; then :
1780
1781else
1782 eval "$3=yes"
1783fi
1784rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1785fi
1786rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1787fi
1788eval ac_res=\$$3
1789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1790$as_echo "$ac_res" >&6; }
1791 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1792
1793} # ac_fn_c_check_type
1794
Alistair Delvabeaee832021-02-24 11:27:23 -08001795# ac_fn_c_find_intX_t LINENO BITS VAR
1796# -----------------------------------
1797# Finds a signed integer type with width BITS, setting cache variable VAR
1798# accordingly.
1799ac_fn_c_find_intX_t ()
1800{
1801 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1802 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int$2_t" >&5
1803$as_echo_n "checking for int$2_t... " >&6; }
1804if eval \${$3+:} false; then :
1805 $as_echo_n "(cached) " >&6
1806else
1807 eval "$3=no"
1808 # Order is important - never check a type that is potentially smaller
1809 # than half of the expected target width.
1810 for ac_type in int$2_t 'int' 'long int' \
1811 'long long int' 'short int' 'signed char'; do
1812 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1813/* end confdefs.h. */
1814$ac_includes_default
1815 enum { N = $2 / 2 - 1 };
1816int
1817main ()
1818{
1819static int test_array [1 - 2 * !(0 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1))];
1820test_array [0] = 0;
1821return test_array [0];
1822
1823 ;
1824 return 0;
1825}
1826_ACEOF
1827if ac_fn_c_try_compile "$LINENO"; then :
1828 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1829/* end confdefs.h. */
1830$ac_includes_default
1831 enum { N = $2 / 2 - 1 };
1832int
1833main ()
1834{
1835static int test_array [1 - 2 * !(($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1)
1836 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 2))];
1837test_array [0] = 0;
1838return test_array [0];
1839
1840 ;
1841 return 0;
1842}
1843_ACEOF
1844if ac_fn_c_try_compile "$LINENO"; then :
1845
1846else
1847 case $ac_type in #(
1848 int$2_t) :
1849 eval "$3=yes" ;; #(
1850 *) :
1851 eval "$3=\$ac_type" ;;
1852esac
1853fi
1854rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1855fi
1856rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1857 if eval test \"x\$"$3"\" = x"no"; then :
1858
1859else
1860 break
1861fi
1862 done
1863fi
1864eval ac_res=\$$3
1865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1866$as_echo "$ac_res" >&6; }
1867 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1868
1869} # ac_fn_c_find_intX_t
1870
1871# ac_fn_c_find_uintX_t LINENO BITS VAR
1872# ------------------------------------
1873# Finds an unsigned integer type with width BITS, setting cache variable VAR
1874# accordingly.
1875ac_fn_c_find_uintX_t ()
1876{
1877 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint$2_t" >&5
1879$as_echo_n "checking for uint$2_t... " >&6; }
1880if eval \${$3+:} false; then :
1881 $as_echo_n "(cached) " >&6
1882else
1883 eval "$3=no"
1884 # Order is important - never check a type that is potentially smaller
1885 # than half of the expected target width.
1886 for ac_type in uint$2_t 'unsigned int' 'unsigned long int' \
1887 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
1888 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1889/* end confdefs.h. */
1890$ac_includes_default
1891int
1892main ()
1893{
1894static int test_array [1 - 2 * !((($ac_type) -1 >> ($2 / 2 - 1)) >> ($2 / 2 - 1) == 3)];
1895test_array [0] = 0;
1896return test_array [0];
1897
1898 ;
1899 return 0;
1900}
1901_ACEOF
1902if ac_fn_c_try_compile "$LINENO"; then :
1903 case $ac_type in #(
1904 uint$2_t) :
1905 eval "$3=yes" ;; #(
1906 *) :
1907 eval "$3=\$ac_type" ;;
1908esac
1909fi
1910rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1911 if eval test \"x\$"$3"\" = x"no"; then :
1912
1913else
1914 break
1915fi
1916 done
1917fi
1918eval ac_res=\$$3
1919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1920$as_echo "$ac_res" >&6; }
1921 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1922
1923} # ac_fn_c_find_uintX_t
1924
Alistair Delvabeaee832021-02-24 11:27:23 -08001925# ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
1926# --------------------------------------------
1927# Tries to find the compile-time value of EXPR in a program that includes
1928# INCLUDES, setting VAR accordingly. Returns whether the value could be
1929# computed
1930ac_fn_c_compute_int ()
1931{
1932 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1933 if test "$cross_compiling" = yes; then
1934 # Depending upon the size, compute the lo and hi bounds.
1935cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1936/* end confdefs.h. */
1937$4
1938int
1939main ()
1940{
1941static int test_array [1 - 2 * !(($2) >= 0)];
1942test_array [0] = 0;
1943return test_array [0];
1944
1945 ;
1946 return 0;
1947}
1948_ACEOF
1949if ac_fn_c_try_compile "$LINENO"; then :
1950 ac_lo=0 ac_mid=0
1951 while :; do
1952 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1953/* end confdefs.h. */
1954$4
1955int
1956main ()
1957{
1958static int test_array [1 - 2 * !(($2) <= $ac_mid)];
1959test_array [0] = 0;
1960return test_array [0];
1961
1962 ;
1963 return 0;
1964}
1965_ACEOF
1966if ac_fn_c_try_compile "$LINENO"; then :
1967 ac_hi=$ac_mid; break
1968else
1969 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
1970 if test $ac_lo -le $ac_mid; then
1971 ac_lo= ac_hi=
1972 break
1973 fi
1974 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
1975fi
1976rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1977 done
1978else
1979 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1980/* end confdefs.h. */
1981$4
1982int
1983main ()
1984{
1985static int test_array [1 - 2 * !(($2) < 0)];
1986test_array [0] = 0;
1987return test_array [0];
1988
1989 ;
1990 return 0;
1991}
1992_ACEOF
1993if ac_fn_c_try_compile "$LINENO"; then :
1994 ac_hi=-1 ac_mid=-1
1995 while :; do
1996 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1997/* end confdefs.h. */
1998$4
1999int
2000main ()
2001{
2002static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2003test_array [0] = 0;
2004return test_array [0];
2005
2006 ;
2007 return 0;
2008}
2009_ACEOF
2010if ac_fn_c_try_compile "$LINENO"; then :
2011 ac_lo=$ac_mid; break
2012else
2013 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2014 if test $ac_mid -le $ac_hi; then
2015 ac_lo= ac_hi=
2016 break
2017 fi
2018 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2019fi
2020rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2021 done
2022else
2023 ac_lo= ac_hi=
2024fi
2025rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2026fi
2027rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2028# Binary search between lo and hi bounds.
2029while test "x$ac_lo" != "x$ac_hi"; do
2030 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2031 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2032/* end confdefs.h. */
2033$4
2034int
2035main ()
2036{
2037static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2038test_array [0] = 0;
2039return test_array [0];
2040
2041 ;
2042 return 0;
2043}
2044_ACEOF
2045if ac_fn_c_try_compile "$LINENO"; then :
2046 ac_hi=$ac_mid
2047else
2048 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2049fi
2050rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2051done
2052case $ac_lo in #((
2053?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2054'') ac_retval=1 ;;
2055esac
2056 else
2057 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2058/* end confdefs.h. */
2059$4
2060static long int longval () { return $2; }
2061static unsigned long int ulongval () { return $2; }
2062#include <stdio.h>
2063#include <stdlib.h>
2064int
2065main ()
2066{
2067
2068 FILE *f = fopen ("conftest.val", "w");
2069 if (! f)
2070 return 1;
2071 if (($2) < 0)
2072 {
2073 long int i = longval ();
2074 if (i != ($2))
2075 return 1;
2076 fprintf (f, "%ld", i);
2077 }
2078 else
2079 {
2080 unsigned long int i = ulongval ();
2081 if (i != ($2))
2082 return 1;
2083 fprintf (f, "%lu", i);
2084 }
2085 /* Do not output a trailing newline, as this causes \r\n confusion
2086 on some platforms. */
2087 return ferror (f) || fclose (f) != 0;
2088
2089 ;
2090 return 0;
2091}
2092_ACEOF
2093if ac_fn_c_try_run "$LINENO"; then :
2094 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2095else
2096 ac_retval=1
2097fi
2098rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2099 conftest.$ac_objext conftest.beam conftest.$ac_ext
2100rm -f conftest.val
2101
2102 fi
2103 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2104 as_fn_set_status $ac_retval
2105
2106} # ac_fn_c_compute_int
2107
2108# ac_fn_c_check_func LINENO FUNC VAR
2109# ----------------------------------
2110# Tests whether FUNC exists, setting the cache variable VAR accordingly
2111ac_fn_c_check_func ()
2112{
2113 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2114 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2115$as_echo_n "checking for $2... " >&6; }
2116if eval \${$3+:} false; then :
2117 $as_echo_n "(cached) " >&6
2118else
2119 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2120/* end confdefs.h. */
2121/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2122 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2123#define $2 innocuous_$2
2124
2125/* System header to define __stub macros and hopefully few prototypes,
2126 which can conflict with char $2 (); below.
2127 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2128 <limits.h> exists even on freestanding compilers. */
2129
2130#ifdef __STDC__
2131# include <limits.h>
2132#else
2133# include <assert.h>
2134#endif
2135
2136#undef $2
2137
2138/* Override any GCC internal prototype to avoid an error.
2139 Use char because int might match the return type of a GCC
2140 builtin and then its argument prototype would still apply. */
2141#ifdef __cplusplus
2142extern "C"
2143#endif
2144char $2 ();
2145/* The GNU C library defines this for functions which it implements
2146 to always fail with ENOSYS. Some functions are actually named
2147 something starting with __ and the normal name is an alias. */
2148#if defined __stub_$2 || defined __stub___$2
2149choke me
2150#endif
2151
2152int
2153main ()
2154{
2155return $2 ();
2156 ;
2157 return 0;
2158}
2159_ACEOF
2160if ac_fn_c_try_link "$LINENO"; then :
2161 eval "$3=yes"
2162else
2163 eval "$3=no"
2164fi
2165rm -f core conftest.err conftest.$ac_objext \
2166 conftest$ac_exeext conftest.$ac_ext
2167fi
2168eval ac_res=\$$3
2169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2170$as_echo "$ac_res" >&6; }
2171 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2172
2173} # ac_fn_c_check_func
2174cat >config.log <<_ACEOF
2175This file contains any messages produced by compilers while
2176running configure, to aid debugging if configure makes a mistake.
2177
2178It was created by $as_me, which was
2179generated by GNU Autoconf 2.69. Invocation command line was
2180
2181 $ $0 $@
2182
2183_ACEOF
2184exec 5>>config.log
2185{
2186cat <<_ASUNAME
2187## --------- ##
2188## Platform. ##
2189## --------- ##
2190
2191hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2192uname -m = `(uname -m) 2>/dev/null || echo unknown`
2193uname -r = `(uname -r) 2>/dev/null || echo unknown`
2194uname -s = `(uname -s) 2>/dev/null || echo unknown`
2195uname -v = `(uname -v) 2>/dev/null || echo unknown`
2196
2197/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2198/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2199
2200/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2201/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2202/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2203/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2204/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2205/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2206/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2207
2208_ASUNAME
2209
2210as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2211for as_dir in $PATH
2212do
2213 IFS=$as_save_IFS
2214 test -z "$as_dir" && as_dir=.
2215 $as_echo "PATH: $as_dir"
2216 done
2217IFS=$as_save_IFS
2218
2219} >&5
2220
2221cat >&5 <<_ACEOF
2222
2223
2224## ----------- ##
2225## Core tests. ##
2226## ----------- ##
2227
2228_ACEOF
2229
2230
2231# Keep a trace of the command line.
2232# Strip out --no-create and --no-recursion so they do not pile up.
2233# Strip out --silent because we don't want to record it for future runs.
2234# Also quote any args containing shell meta-characters.
2235# Make two passes to allow for proper duplicate-argument suppression.
2236ac_configure_args=
2237ac_configure_args0=
2238ac_configure_args1=
2239ac_must_keep_next=false
2240for ac_pass in 1 2
2241do
2242 for ac_arg
2243 do
2244 case $ac_arg in
2245 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2246 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2247 | -silent | --silent | --silen | --sile | --sil)
2248 continue ;;
2249 *\'*)
2250 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2251 esac
2252 case $ac_pass in
2253 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2254 2)
2255 as_fn_append ac_configure_args1 " '$ac_arg'"
2256 if test $ac_must_keep_next = true; then
2257 ac_must_keep_next=false # Got value, back to normal.
2258 else
2259 case $ac_arg in
2260 *=* | --config-cache | -C | -disable-* | --disable-* \
2261 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2262 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2263 | -with-* | --with-* | -without-* | --without-* | --x)
2264 case "$ac_configure_args0 " in
2265 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2266 esac
2267 ;;
2268 -* ) ac_must_keep_next=true ;;
2269 esac
2270 fi
2271 as_fn_append ac_configure_args " '$ac_arg'"
2272 ;;
2273 esac
2274 done
2275done
2276{ ac_configure_args0=; unset ac_configure_args0;}
2277{ ac_configure_args1=; unset ac_configure_args1;}
2278
2279# When interrupted or exit'd, cleanup temporary files, and complete
2280# config.log. We remove comments because anyway the quotes in there
2281# would cause problems or look ugly.
2282# WARNING: Use '\'' to represent an apostrophe within the trap.
2283# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2284trap 'exit_status=$?
2285 # Save into config.log some information that might help in debugging.
2286 {
2287 echo
2288
2289 $as_echo "## ---------------- ##
2290## Cache variables. ##
2291## ---------------- ##"
2292 echo
2293 # The following way of writing the cache mishandles newlines in values,
2294(
2295 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2296 eval ac_val=\$$ac_var
2297 case $ac_val in #(
2298 *${as_nl}*)
2299 case $ac_var in #(
2300 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2301$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2302 esac
2303 case $ac_var in #(
2304 _ | IFS | as_nl) ;; #(
2305 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2306 *) { eval $ac_var=; unset $ac_var;} ;;
2307 esac ;;
2308 esac
2309 done
2310 (set) 2>&1 |
2311 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2312 *${as_nl}ac_space=\ *)
2313 sed -n \
2314 "s/'\''/'\''\\\\'\'''\''/g;
2315 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2316 ;; #(
2317 *)
2318 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2319 ;;
2320 esac |
2321 sort
2322)
2323 echo
2324
2325 $as_echo "## ----------------- ##
2326## Output variables. ##
2327## ----------------- ##"
2328 echo
2329 for ac_var in $ac_subst_vars
2330 do
2331 eval ac_val=\$$ac_var
2332 case $ac_val in
2333 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2334 esac
2335 $as_echo "$ac_var='\''$ac_val'\''"
2336 done | sort
2337 echo
2338
2339 if test -n "$ac_subst_files"; then
2340 $as_echo "## ------------------- ##
2341## File substitutions. ##
2342## ------------------- ##"
2343 echo
2344 for ac_var in $ac_subst_files
2345 do
2346 eval ac_val=\$$ac_var
2347 case $ac_val in
2348 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2349 esac
2350 $as_echo "$ac_var='\''$ac_val'\''"
2351 done | sort
2352 echo
2353 fi
2354
2355 if test -s confdefs.h; then
2356 $as_echo "## ----------- ##
2357## confdefs.h. ##
2358## ----------- ##"
2359 echo
2360 cat confdefs.h
2361 echo
2362 fi
2363 test "$ac_signal" != 0 &&
2364 $as_echo "$as_me: caught signal $ac_signal"
2365 $as_echo "$as_me: exit $exit_status"
2366 } >&5
2367 rm -f core *.core core.conftest.* &&
2368 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2369 exit $exit_status
2370' 0
2371for ac_signal in 1 2 13 15; do
2372 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2373done
2374ac_signal=0
2375
2376# confdefs.h avoids OS command line length limits that DEFS can exceed.
2377rm -f -r conftest* confdefs.h
2378
2379$as_echo "/* confdefs.h */" > confdefs.h
2380
2381# Predefined preprocessor variables.
2382
2383cat >>confdefs.h <<_ACEOF
2384#define PACKAGE_NAME "$PACKAGE_NAME"
2385_ACEOF
2386
2387cat >>confdefs.h <<_ACEOF
2388#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2389_ACEOF
2390
2391cat >>confdefs.h <<_ACEOF
2392#define PACKAGE_VERSION "$PACKAGE_VERSION"
2393_ACEOF
2394
2395cat >>confdefs.h <<_ACEOF
2396#define PACKAGE_STRING "$PACKAGE_STRING"
2397_ACEOF
2398
2399cat >>confdefs.h <<_ACEOF
2400#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2401_ACEOF
2402
2403cat >>confdefs.h <<_ACEOF
2404#define PACKAGE_URL "$PACKAGE_URL"
2405_ACEOF
2406
2407
2408# Let the site file select an alternate cache file if it wants to.
2409# Prefer an explicitly selected file to automatically selected ones.
2410ac_site_file1=NONE
2411ac_site_file2=NONE
2412if test -n "$CONFIG_SITE"; then
2413 # We do not want a PATH search for config.site.
2414 case $CONFIG_SITE in #((
2415 -*) ac_site_file1=./$CONFIG_SITE;;
2416 */*) ac_site_file1=$CONFIG_SITE;;
2417 *) ac_site_file1=./$CONFIG_SITE;;
2418 esac
2419elif test "x$prefix" != xNONE; then
2420 ac_site_file1=$prefix/share/config.site
2421 ac_site_file2=$prefix/etc/config.site
2422else
2423 ac_site_file1=$ac_default_prefix/share/config.site
2424 ac_site_file2=$ac_default_prefix/etc/config.site
2425fi
2426for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2427do
2428 test "x$ac_site_file" = xNONE && continue
2429 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2430 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2431$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2432 sed 's/^/| /' "$ac_site_file" >&5
2433 . "$ac_site_file" \
2434 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2435$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2436as_fn_error $? "failed to load site script $ac_site_file
2437See \`config.log' for more details" "$LINENO" 5; }
2438 fi
2439done
2440
2441if test -r "$cache_file"; then
2442 # Some versions of bash will fail to source /dev/null (special files
2443 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2444 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2445 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2446$as_echo "$as_me: loading cache $cache_file" >&6;}
2447 case $cache_file in
2448 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2449 *) . "./$cache_file";;
2450 esac
2451 fi
2452else
2453 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2454$as_echo "$as_me: creating cache $cache_file" >&6;}
2455 >$cache_file
2456fi
2457
2458# Check that the precious variables saved in the cache have kept the same
2459# value.
2460ac_cache_corrupted=false
2461for ac_var in $ac_precious_vars; do
2462 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2463 eval ac_new_set=\$ac_env_${ac_var}_set
2464 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2465 eval ac_new_val=\$ac_env_${ac_var}_value
2466 case $ac_old_set,$ac_new_set in
2467 set,)
2468 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2469$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2470 ac_cache_corrupted=: ;;
2471 ,set)
2472 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2473$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2474 ac_cache_corrupted=: ;;
2475 ,);;
2476 *)
2477 if test "x$ac_old_val" != "x$ac_new_val"; then
2478 # differences in whitespace do not lead to failure.
2479 ac_old_val_w=`echo x $ac_old_val`
2480 ac_new_val_w=`echo x $ac_new_val`
2481 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2482 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2483$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2484 ac_cache_corrupted=:
2485 else
2486 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2487$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2488 eval $ac_var=\$ac_old_val
2489 fi
2490 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2491$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2492 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2493$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2494 fi;;
2495 esac
2496 # Pass precious variables to config.status.
2497 if test "$ac_new_set" = set; then
2498 case $ac_new_val in
2499 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2500 *) ac_arg=$ac_var=$ac_new_val ;;
2501 esac
2502 case " $ac_configure_args " in
2503 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2504 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2505 esac
2506 fi
2507done
2508if $ac_cache_corrupted; then
2509 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2510$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2511 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2512$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2513 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2514fi
2515## -------------------- ##
2516## Main body of script. ##
2517## -------------------- ##
2518
2519ac_ext=c
2520ac_cpp='$CPP $CPPFLAGS'
2521ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2522ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2523ac_compiler_gnu=$ac_cv_c_compiler_gnu
2524
2525
Yi Kong39bbd962022-01-09 19:41:38 +08002526# ===========================================================================
2527# https://www.gnu.org/software/autoconf-archive/ax_lib_socket_nsl.html
2528# ===========================================================================
2529#
2530# SYNOPSIS
2531#
2532# AX_LIB_SOCKET_NSL
2533#
2534# DESCRIPTION
2535#
2536# This macro figures out what libraries are required on this platform to
2537# link sockets programs.
2538#
2539# The common cases are not to need any extra libraries, or to need
2540# -lsocket and -lnsl. We need to avoid linking with libnsl unless we need
2541# it, though, since on some OSes where it isn't necessary it will totally
2542# break networking. Unisys also includes gethostbyname() in libsocket but
2543# needs libnsl for socket().
2544#
2545# LICENSE
2546#
2547# Copyright (c) 2008 Russ Allbery <rra@stanford.edu>
2548# Copyright (c) 2008 Stepan Kasal <kasal@ucw.cz>
2549# Copyright (c) 2008 Warren Young <warren@etr-usa.com>
2550#
2551# Copying and distribution of this file, with or without modification, are
2552# permitted in any medium without royalty provided the copyright notice
2553# and this notice are preserved. This file is offered as-is, without any
2554# warranty.
2555
2556#serial 7
2557
2558# This is what autoupdate's m4 run will expand. It fires
2559# the warning (with _au_warn_XXX), outputs it into the
2560# updated configure.ac (with AC_DIAGNOSE), and then outputs
2561# the replacement expansion.
2562
2563
2564# This is an auxiliary macro that is also run when
2565# autoupdate runs m4. It simply calls m4_warning, but
2566# we need a wrapper so that each warning is emitted only
2567# once. We break the quoting in m4_warning's argument in
2568# order to expand this macro's arguments, not AU_DEFUN's.
2569
2570
2571# Finally, this is the expansion that is picked up by
2572# autoconf. It tells the user to run autoupdate, and
2573# then outputs the replacement expansion. We do not care
2574# about autoupdate's warning because that contains
2575# information on what to do *after* running autoupdate.
2576
2577
Alistair Delvabeaee832021-02-24 11:27:23 -08002578
2579ac_config_headers="$ac_config_headers config.h"
2580
2581
2582ac_ext=c
2583ac_cpp='$CPP $CPPFLAGS'
2584ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2585ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2586ac_compiler_gnu=$ac_cv_c_compiler_gnu
2587if test -n "$ac_tool_prefix"; then
2588 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2589set dummy ${ac_tool_prefix}gcc; ac_word=$2
2590{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2591$as_echo_n "checking for $ac_word... " >&6; }
2592if ${ac_cv_prog_CC+:} false; then :
2593 $as_echo_n "(cached) " >&6
2594else
2595 if test -n "$CC"; then
2596 ac_cv_prog_CC="$CC" # Let the user override the test.
2597else
2598as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2599for as_dir in $PATH
2600do
2601 IFS=$as_save_IFS
2602 test -z "$as_dir" && as_dir=.
2603 for ac_exec_ext in '' $ac_executable_extensions; do
2604 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2605 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2606 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2607 break 2
2608 fi
2609done
2610 done
2611IFS=$as_save_IFS
2612
2613fi
2614fi
2615CC=$ac_cv_prog_CC
2616if test -n "$CC"; then
2617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2618$as_echo "$CC" >&6; }
2619else
2620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2621$as_echo "no" >&6; }
2622fi
2623
2624
2625fi
2626if test -z "$ac_cv_prog_CC"; then
2627 ac_ct_CC=$CC
2628 # Extract the first word of "gcc", so it can be a program name with args.
2629set dummy gcc; ac_word=$2
2630{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2631$as_echo_n "checking for $ac_word... " >&6; }
2632if ${ac_cv_prog_ac_ct_CC+:} false; then :
2633 $as_echo_n "(cached) " >&6
2634else
2635 if test -n "$ac_ct_CC"; then
2636 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2637else
2638as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2639for as_dir in $PATH
2640do
2641 IFS=$as_save_IFS
2642 test -z "$as_dir" && as_dir=.
2643 for ac_exec_ext in '' $ac_executable_extensions; do
2644 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2645 ac_cv_prog_ac_ct_CC="gcc"
2646 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2647 break 2
2648 fi
2649done
2650 done
2651IFS=$as_save_IFS
2652
2653fi
2654fi
2655ac_ct_CC=$ac_cv_prog_ac_ct_CC
2656if test -n "$ac_ct_CC"; then
2657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2658$as_echo "$ac_ct_CC" >&6; }
2659else
2660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2661$as_echo "no" >&6; }
2662fi
2663
2664 if test "x$ac_ct_CC" = x; then
2665 CC=""
2666 else
2667 case $cross_compiling:$ac_tool_warned in
2668yes:)
2669{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2670$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2671ac_tool_warned=yes ;;
2672esac
2673 CC=$ac_ct_CC
2674 fi
2675else
2676 CC="$ac_cv_prog_CC"
2677fi
2678
2679if test -z "$CC"; then
2680 if test -n "$ac_tool_prefix"; then
2681 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2682set dummy ${ac_tool_prefix}cc; ac_word=$2
2683{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2684$as_echo_n "checking for $ac_word... " >&6; }
2685if ${ac_cv_prog_CC+:} false; then :
2686 $as_echo_n "(cached) " >&6
2687else
2688 if test -n "$CC"; then
2689 ac_cv_prog_CC="$CC" # Let the user override the test.
2690else
2691as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2692for as_dir in $PATH
2693do
2694 IFS=$as_save_IFS
2695 test -z "$as_dir" && as_dir=.
2696 for ac_exec_ext in '' $ac_executable_extensions; do
2697 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2698 ac_cv_prog_CC="${ac_tool_prefix}cc"
2699 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2700 break 2
2701 fi
2702done
2703 done
2704IFS=$as_save_IFS
2705
2706fi
2707fi
2708CC=$ac_cv_prog_CC
2709if test -n "$CC"; then
2710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2711$as_echo "$CC" >&6; }
2712else
2713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2714$as_echo "no" >&6; }
2715fi
2716
2717
2718 fi
2719fi
2720if test -z "$CC"; then
2721 # Extract the first word of "cc", so it can be a program name with args.
2722set dummy cc; ac_word=$2
2723{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2724$as_echo_n "checking for $ac_word... " >&6; }
2725if ${ac_cv_prog_CC+:} false; then :
2726 $as_echo_n "(cached) " >&6
2727else
2728 if test -n "$CC"; then
2729 ac_cv_prog_CC="$CC" # Let the user override the test.
2730else
2731 ac_prog_rejected=no
2732as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2733for as_dir in $PATH
2734do
2735 IFS=$as_save_IFS
2736 test -z "$as_dir" && as_dir=.
2737 for ac_exec_ext in '' $ac_executable_extensions; do
2738 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2739 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2740 ac_prog_rejected=yes
2741 continue
2742 fi
2743 ac_cv_prog_CC="cc"
2744 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2745 break 2
2746 fi
2747done
2748 done
2749IFS=$as_save_IFS
2750
2751if test $ac_prog_rejected = yes; then
2752 # We found a bogon in the path, so make sure we never use it.
2753 set dummy $ac_cv_prog_CC
2754 shift
2755 if test $# != 0; then
2756 # We chose a different compiler from the bogus one.
2757 # However, it has the same basename, so the bogon will be chosen
2758 # first if we set CC to just the basename; use the full file name.
2759 shift
2760 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2761 fi
2762fi
2763fi
2764fi
2765CC=$ac_cv_prog_CC
2766if test -n "$CC"; then
2767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2768$as_echo "$CC" >&6; }
2769else
2770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2771$as_echo "no" >&6; }
2772fi
2773
2774
2775fi
2776if test -z "$CC"; then
2777 if test -n "$ac_tool_prefix"; then
2778 for ac_prog in cl.exe
2779 do
2780 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2781set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2782{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2783$as_echo_n "checking for $ac_word... " >&6; }
2784if ${ac_cv_prog_CC+:} false; then :
2785 $as_echo_n "(cached) " >&6
2786else
2787 if test -n "$CC"; then
2788 ac_cv_prog_CC="$CC" # Let the user override the test.
2789else
2790as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2791for as_dir in $PATH
2792do
2793 IFS=$as_save_IFS
2794 test -z "$as_dir" && as_dir=.
2795 for ac_exec_ext in '' $ac_executable_extensions; do
2796 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2797 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2798 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2799 break 2
2800 fi
2801done
2802 done
2803IFS=$as_save_IFS
2804
2805fi
2806fi
2807CC=$ac_cv_prog_CC
2808if test -n "$CC"; then
2809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2810$as_echo "$CC" >&6; }
2811else
2812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2813$as_echo "no" >&6; }
2814fi
2815
2816
2817 test -n "$CC" && break
2818 done
2819fi
2820if test -z "$CC"; then
2821 ac_ct_CC=$CC
2822 for ac_prog in cl.exe
2823do
2824 # Extract the first word of "$ac_prog", so it can be a program name with args.
2825set dummy $ac_prog; ac_word=$2
2826{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2827$as_echo_n "checking for $ac_word... " >&6; }
2828if ${ac_cv_prog_ac_ct_CC+:} false; then :
2829 $as_echo_n "(cached) " >&6
2830else
2831 if test -n "$ac_ct_CC"; then
2832 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2833else
2834as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2835for as_dir in $PATH
2836do
2837 IFS=$as_save_IFS
2838 test -z "$as_dir" && as_dir=.
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 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2843 break 2
2844 fi
2845done
2846 done
2847IFS=$as_save_IFS
2848
2849fi
2850fi
2851ac_ct_CC=$ac_cv_prog_ac_ct_CC
2852if test -n "$ac_ct_CC"; then
2853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2854$as_echo "$ac_ct_CC" >&6; }
2855else
2856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2857$as_echo "no" >&6; }
2858fi
2859
2860
2861 test -n "$ac_ct_CC" && break
2862done
2863
2864 if test "x$ac_ct_CC" = x; then
2865 CC=""
2866 else
2867 case $cross_compiling:$ac_tool_warned in
2868yes:)
2869{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2870$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2871ac_tool_warned=yes ;;
2872esac
2873 CC=$ac_ct_CC
2874 fi
2875fi
2876
2877fi
2878
2879
2880test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2881$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2882as_fn_error $? "no acceptable C compiler found in \$PATH
2883See \`config.log' for more details" "$LINENO" 5; }
2884
2885# Provide some information about the compiler.
2886$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2887set X $ac_compile
2888ac_compiler=$2
2889for ac_option in --version -v -V -qversion; do
2890 { { ac_try="$ac_compiler $ac_option >&5"
2891case "(($ac_try" in
2892 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2893 *) ac_try_echo=$ac_try;;
2894esac
2895eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2896$as_echo "$ac_try_echo"; } >&5
2897 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2898 ac_status=$?
2899 if test -s conftest.err; then
2900 sed '10a\
2901... rest of stderr output deleted ...
2902 10q' conftest.err >conftest.er1
2903 cat conftest.er1 >&5
2904 fi
2905 rm -f conftest.er1 conftest.err
2906 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2907 test $ac_status = 0; }
2908done
2909
2910cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2911/* end confdefs.h. */
2912
2913int
2914main ()
2915{
2916
2917 ;
2918 return 0;
2919}
2920_ACEOF
2921ac_clean_files_save=$ac_clean_files
2922ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
2923# Try to create an executable without -o first, disregard a.out.
2924# It will help us diagnose broken compilers, and finding out an intuition
2925# of exeext.
2926{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
2927$as_echo_n "checking whether the C compiler works... " >&6; }
2928ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2929
2930# The possible output files:
2931ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2932
2933ac_rmfiles=
2934for ac_file in $ac_files
2935do
2936 case $ac_file in
2937 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2938 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2939 esac
2940done
2941rm -f $ac_rmfiles
2942
2943if { { ac_try="$ac_link_default"
2944case "(($ac_try" in
2945 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2946 *) ac_try_echo=$ac_try;;
2947esac
2948eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2949$as_echo "$ac_try_echo"; } >&5
2950 (eval "$ac_link_default") 2>&5
2951 ac_status=$?
2952 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2953 test $ac_status = 0; }; then :
2954 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2955# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2956# in a Makefile. We should not override ac_cv_exeext if it was cached,
2957# so that the user can short-circuit this test for compilers unknown to
2958# Autoconf.
2959for ac_file in $ac_files ''
2960do
2961 test -f "$ac_file" || continue
2962 case $ac_file in
2963 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
2964 ;;
2965 [ab].out )
2966 # We found the default executable, but exeext='' is most
2967 # certainly right.
2968 break;;
2969 *.* )
2970 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2971 then :; else
2972 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2973 fi
2974 # We set ac_cv_exeext here because the later test for it is not
2975 # safe: cross compilers may not add the suffix if given an `-o'
2976 # argument, so we may need to know it at that point already.
2977 # Even if this section looks crufty: it has the advantage of
2978 # actually working.
2979 break;;
2980 * )
2981 break;;
2982 esac
2983done
2984test "$ac_cv_exeext" = no && ac_cv_exeext=
2985
2986else
2987 ac_file=''
2988fi
2989if test -z "$ac_file"; then :
2990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2991$as_echo "no" >&6; }
2992$as_echo "$as_me: failed program was:" >&5
2993sed 's/^/| /' conftest.$ac_ext >&5
2994
2995{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2996$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2997as_fn_error 77 "C compiler cannot create executables
2998See \`config.log' for more details" "$LINENO" 5; }
2999else
3000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3001$as_echo "yes" >&6; }
3002fi
3003{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3004$as_echo_n "checking for C compiler default output file name... " >&6; }
3005{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3006$as_echo "$ac_file" >&6; }
3007ac_exeext=$ac_cv_exeext
3008
3009rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3010ac_clean_files=$ac_clean_files_save
3011{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3012$as_echo_n "checking for suffix of executables... " >&6; }
3013if { { ac_try="$ac_link"
3014case "(($ac_try" in
3015 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3016 *) ac_try_echo=$ac_try;;
3017esac
3018eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3019$as_echo "$ac_try_echo"; } >&5
3020 (eval "$ac_link") 2>&5
3021 ac_status=$?
3022 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3023 test $ac_status = 0; }; then :
3024 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3025# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3026# work properly (i.e., refer to `conftest.exe'), while it won't with
3027# `rm'.
3028for ac_file in conftest.exe conftest conftest.*; do
3029 test -f "$ac_file" || continue
3030 case $ac_file in
3031 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3032 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3033 break;;
3034 * ) break;;
3035 esac
3036done
3037else
3038 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3039$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3040as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3041See \`config.log' for more details" "$LINENO" 5; }
3042fi
3043rm -f conftest conftest$ac_cv_exeext
3044{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3045$as_echo "$ac_cv_exeext" >&6; }
3046
3047rm -f conftest.$ac_ext
3048EXEEXT=$ac_cv_exeext
3049ac_exeext=$EXEEXT
3050cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3051/* end confdefs.h. */
3052#include <stdio.h>
3053int
3054main ()
3055{
3056FILE *f = fopen ("conftest.out", "w");
3057 return ferror (f) || fclose (f) != 0;
3058
3059 ;
3060 return 0;
3061}
3062_ACEOF
3063ac_clean_files="$ac_clean_files conftest.out"
3064# Check that the compiler produces executables we can run. If not, either
3065# the compiler is broken, or we cross compile.
3066{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3067$as_echo_n "checking whether we are cross compiling... " >&6; }
3068if test "$cross_compiling" != yes; then
3069 { { ac_try="$ac_link"
3070case "(($ac_try" in
3071 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3072 *) ac_try_echo=$ac_try;;
3073esac
3074eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3075$as_echo "$ac_try_echo"; } >&5
3076 (eval "$ac_link") 2>&5
3077 ac_status=$?
3078 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3079 test $ac_status = 0; }
3080 if { ac_try='./conftest$ac_cv_exeext'
3081 { { case "(($ac_try" in
3082 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3083 *) ac_try_echo=$ac_try;;
3084esac
3085eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3086$as_echo "$ac_try_echo"; } >&5
3087 (eval "$ac_try") 2>&5
3088 ac_status=$?
3089 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3090 test $ac_status = 0; }; }; then
3091 cross_compiling=no
3092 else
3093 if test "$cross_compiling" = maybe; then
3094 cross_compiling=yes
3095 else
3096 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3097$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3098as_fn_error $? "cannot run C compiled programs.
3099If you meant to cross compile, use \`--host'.
3100See \`config.log' for more details" "$LINENO" 5; }
3101 fi
3102 fi
3103fi
3104{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3105$as_echo "$cross_compiling" >&6; }
3106
3107rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3108ac_clean_files=$ac_clean_files_save
3109{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3110$as_echo_n "checking for suffix of object files... " >&6; }
3111if ${ac_cv_objext+:} false; then :
3112 $as_echo_n "(cached) " >&6
3113else
3114 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3115/* end confdefs.h. */
3116
3117int
3118main ()
3119{
3120
3121 ;
3122 return 0;
3123}
3124_ACEOF
3125rm -f conftest.o conftest.obj
3126if { { ac_try="$ac_compile"
3127case "(($ac_try" in
3128 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3129 *) ac_try_echo=$ac_try;;
3130esac
3131eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3132$as_echo "$ac_try_echo"; } >&5
3133 (eval "$ac_compile") 2>&5
3134 ac_status=$?
3135 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3136 test $ac_status = 0; }; then :
3137 for ac_file in conftest.o conftest.obj conftest.*; do
3138 test -f "$ac_file" || continue;
3139 case $ac_file in
3140 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3141 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3142 break;;
3143 esac
3144done
3145else
3146 $as_echo "$as_me: failed program was:" >&5
3147sed 's/^/| /' conftest.$ac_ext >&5
3148
3149{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3150$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3151as_fn_error $? "cannot compute suffix of object files: cannot compile
3152See \`config.log' for more details" "$LINENO" 5; }
3153fi
3154rm -f conftest.$ac_cv_objext conftest.$ac_ext
3155fi
3156{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3157$as_echo "$ac_cv_objext" >&6; }
3158OBJEXT=$ac_cv_objext
3159ac_objext=$OBJEXT
3160{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3161$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3162if ${ac_cv_c_compiler_gnu+:} false; then :
3163 $as_echo_n "(cached) " >&6
3164else
3165 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3166/* end confdefs.h. */
3167
3168int
3169main ()
3170{
3171#ifndef __GNUC__
3172 choke me
3173#endif
3174
3175 ;
3176 return 0;
3177}
3178_ACEOF
3179if ac_fn_c_try_compile "$LINENO"; then :
3180 ac_compiler_gnu=yes
3181else
3182 ac_compiler_gnu=no
3183fi
3184rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3185ac_cv_c_compiler_gnu=$ac_compiler_gnu
3186
3187fi
3188{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3189$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3190if test $ac_compiler_gnu = yes; then
3191 GCC=yes
3192else
3193 GCC=
3194fi
3195ac_test_CFLAGS=${CFLAGS+set}
3196ac_save_CFLAGS=$CFLAGS
3197{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3198$as_echo_n "checking whether $CC accepts -g... " >&6; }
3199if ${ac_cv_prog_cc_g+:} false; then :
3200 $as_echo_n "(cached) " >&6
3201else
3202 ac_save_c_werror_flag=$ac_c_werror_flag
3203 ac_c_werror_flag=yes
3204 ac_cv_prog_cc_g=no
3205 CFLAGS="-g"
3206 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3207/* end confdefs.h. */
3208
3209int
3210main ()
3211{
3212
3213 ;
3214 return 0;
3215}
3216_ACEOF
3217if ac_fn_c_try_compile "$LINENO"; then :
3218 ac_cv_prog_cc_g=yes
3219else
3220 CFLAGS=""
3221 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3222/* end confdefs.h. */
3223
3224int
3225main ()
3226{
3227
3228 ;
3229 return 0;
3230}
3231_ACEOF
3232if ac_fn_c_try_compile "$LINENO"; then :
3233
3234else
3235 ac_c_werror_flag=$ac_save_c_werror_flag
3236 CFLAGS="-g"
3237 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3238/* end confdefs.h. */
3239
3240int
3241main ()
3242{
3243
3244 ;
3245 return 0;
3246}
3247_ACEOF
3248if ac_fn_c_try_compile "$LINENO"; then :
3249 ac_cv_prog_cc_g=yes
3250fi
3251rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3252fi
3253rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3254fi
3255rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3256 ac_c_werror_flag=$ac_save_c_werror_flag
3257fi
3258{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3259$as_echo "$ac_cv_prog_cc_g" >&6; }
3260if test "$ac_test_CFLAGS" = set; then
3261 CFLAGS=$ac_save_CFLAGS
3262elif test $ac_cv_prog_cc_g = yes; then
3263 if test "$GCC" = yes; then
3264 CFLAGS="-g -O2"
3265 else
3266 CFLAGS="-g"
3267 fi
3268else
3269 if test "$GCC" = yes; then
3270 CFLAGS="-O2"
3271 else
3272 CFLAGS=
3273 fi
3274fi
3275{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3276$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3277if ${ac_cv_prog_cc_c89+:} false; then :
3278 $as_echo_n "(cached) " >&6
3279else
3280 ac_cv_prog_cc_c89=no
3281ac_save_CC=$CC
3282cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3283/* end confdefs.h. */
3284#include <stdarg.h>
3285#include <stdio.h>
3286struct stat;
3287/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3288struct buf { int x; };
3289FILE * (*rcsopen) (struct buf *, struct stat *, int);
3290static char *e (p, i)
3291 char **p;
3292 int i;
3293{
3294 return p[i];
3295}
3296static char *f (char * (*g) (char **, int), char **p, ...)
3297{
3298 char *s;
3299 va_list v;
3300 va_start (v,p);
3301 s = g (p, va_arg (v,int));
3302 va_end (v);
3303 return s;
3304}
3305
3306/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3307 function prototypes and stuff, but not '\xHH' hex character constants.
3308 These don't provoke an error unfortunately, instead are silently treated
3309 as 'x'. The following induces an error, until -std is added to get
3310 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3311 array size at least. It's necessary to write '\x00'==0 to get something
3312 that's true only with -std. */
3313int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3314
3315/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3316 inside strings and character constants. */
3317#define FOO(x) 'x'
3318int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3319
3320int test (int i, double x);
3321struct s1 {int (*f) (int a);};
3322struct s2 {int (*f) (double a);};
3323int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3324int argc;
3325char **argv;
3326int
3327main ()
3328{
3329return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3330 ;
3331 return 0;
3332}
3333_ACEOF
3334for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3335 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3336do
3337 CC="$ac_save_CC $ac_arg"
3338 if ac_fn_c_try_compile "$LINENO"; then :
3339 ac_cv_prog_cc_c89=$ac_arg
3340fi
3341rm -f core conftest.err conftest.$ac_objext
3342 test "x$ac_cv_prog_cc_c89" != "xno" && break
3343done
3344rm -f conftest.$ac_ext
3345CC=$ac_save_CC
3346
3347fi
3348# AC_CACHE_VAL
3349case "x$ac_cv_prog_cc_c89" in
3350 x)
3351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3352$as_echo "none needed" >&6; } ;;
3353 xno)
3354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3355$as_echo "unsupported" >&6; } ;;
3356 *)
3357 CC="$CC $ac_cv_prog_cc_c89"
3358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3359$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3360esac
3361if test "x$ac_cv_prog_cc_c89" != xno; then :
3362
3363fi
3364
3365ac_ext=c
3366ac_cpp='$CPP $CPPFLAGS'
3367ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3368ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3369ac_compiler_gnu=$ac_cv_c_compiler_gnu
3370
3371
3372ac_ext=c
3373ac_cpp='$CPP $CPPFLAGS'
3374ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3375ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3376ac_compiler_gnu=$ac_cv_c_compiler_gnu
3377{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3378$as_echo_n "checking how to run the C preprocessor... " >&6; }
3379# On Suns, sometimes $CPP names a directory.
3380if test -n "$CPP" && test -d "$CPP"; then
3381 CPP=
3382fi
3383if test -z "$CPP"; then
3384 if ${ac_cv_prog_CPP+:} false; then :
3385 $as_echo_n "(cached) " >&6
3386else
3387 # Double quotes because CPP needs to be expanded
3388 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3389 do
3390 ac_preproc_ok=false
3391for ac_c_preproc_warn_flag in '' yes
3392do
3393 # Use a header file that comes with gcc, so configuring glibc
3394 # with a fresh cross-compiler works.
3395 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3396 # <limits.h> exists even on freestanding compilers.
3397 # On the NeXT, cc -E runs the code through the compiler's parser,
3398 # not just through cpp. "Syntax error" is here to catch this case.
3399 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3400/* end confdefs.h. */
3401#ifdef __STDC__
3402# include <limits.h>
3403#else
3404# include <assert.h>
3405#endif
3406 Syntax error
3407_ACEOF
3408if ac_fn_c_try_cpp "$LINENO"; then :
3409
3410else
3411 # Broken: fails on valid input.
3412continue
3413fi
3414rm -f conftest.err conftest.i conftest.$ac_ext
3415
3416 # OK, works on sane cases. Now check whether nonexistent headers
3417 # can be detected and how.
3418 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3419/* end confdefs.h. */
3420#include <ac_nonexistent.h>
3421_ACEOF
3422if ac_fn_c_try_cpp "$LINENO"; then :
3423 # Broken: success on invalid input.
3424continue
3425else
3426 # Passes both tests.
3427ac_preproc_ok=:
3428break
3429fi
3430rm -f conftest.err conftest.i conftest.$ac_ext
3431
3432done
3433# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3434rm -f conftest.i conftest.err conftest.$ac_ext
3435if $ac_preproc_ok; then :
3436 break
3437fi
3438
3439 done
3440 ac_cv_prog_CPP=$CPP
3441
3442fi
3443 CPP=$ac_cv_prog_CPP
3444else
3445 ac_cv_prog_CPP=$CPP
3446fi
3447{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3448$as_echo "$CPP" >&6; }
3449ac_preproc_ok=false
3450for ac_c_preproc_warn_flag in '' yes
3451do
3452 # Use a header file that comes with gcc, so configuring glibc
3453 # with a fresh cross-compiler works.
3454 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3455 # <limits.h> exists even on freestanding compilers.
3456 # On the NeXT, cc -E runs the code through the compiler's parser,
3457 # not just through cpp. "Syntax error" is here to catch this case.
3458 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3459/* end confdefs.h. */
3460#ifdef __STDC__
3461# include <limits.h>
3462#else
3463# include <assert.h>
3464#endif
3465 Syntax error
3466_ACEOF
3467if ac_fn_c_try_cpp "$LINENO"; then :
3468
3469else
3470 # Broken: fails on valid input.
3471continue
3472fi
3473rm -f conftest.err conftest.i conftest.$ac_ext
3474
3475 # OK, works on sane cases. Now check whether nonexistent headers
3476 # can be detected and how.
3477 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3478/* end confdefs.h. */
3479#include <ac_nonexistent.h>
3480_ACEOF
3481if ac_fn_c_try_cpp "$LINENO"; then :
3482 # Broken: success on invalid input.
3483continue
3484else
3485 # Passes both tests.
3486ac_preproc_ok=:
3487break
3488fi
3489rm -f conftest.err conftest.i conftest.$ac_ext
3490
3491done
3492# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3493rm -f conftest.i conftest.err conftest.$ac_ext
3494if $ac_preproc_ok; then :
3495
3496else
3497 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3498$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3499as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
3500See \`config.log' for more details" "$LINENO" 5; }
3501fi
3502
3503ac_ext=c
3504ac_cpp='$CPP $CPPFLAGS'
3505ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3506ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3507ac_compiler_gnu=$ac_cv_c_compiler_gnu
3508
3509
3510{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3511$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3512if ${ac_cv_path_GREP+:} false; then :
3513 $as_echo_n "(cached) " >&6
3514else
3515 if test -z "$GREP"; then
3516 ac_path_GREP_found=false
3517 # Loop through the user's path and test for each of PROGNAME-LIST
3518 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3519for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3520do
3521 IFS=$as_save_IFS
3522 test -z "$as_dir" && as_dir=.
3523 for ac_prog in grep ggrep; do
3524 for ac_exec_ext in '' $ac_executable_extensions; do
3525 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3526 as_fn_executable_p "$ac_path_GREP" || continue
3527# Check for GNU ac_path_GREP and select it if it is found.
3528 # Check for GNU $ac_path_GREP
3529case `"$ac_path_GREP" --version 2>&1` in
3530*GNU*)
3531 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3532*)
3533 ac_count=0
3534 $as_echo_n 0123456789 >"conftest.in"
3535 while :
3536 do
3537 cat "conftest.in" "conftest.in" >"conftest.tmp"
3538 mv "conftest.tmp" "conftest.in"
3539 cp "conftest.in" "conftest.nl"
3540 $as_echo 'GREP' >> "conftest.nl"
3541 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3542 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3543 as_fn_arith $ac_count + 1 && ac_count=$as_val
3544 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3545 # Best one so far, save it but keep looking for a better one
3546 ac_cv_path_GREP="$ac_path_GREP"
3547 ac_path_GREP_max=$ac_count
3548 fi
3549 # 10*(2^10) chars as input seems more than enough
3550 test $ac_count -gt 10 && break
3551 done
3552 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3553esac
3554
3555 $ac_path_GREP_found && break 3
3556 done
3557 done
3558 done
3559IFS=$as_save_IFS
3560 if test -z "$ac_cv_path_GREP"; then
3561 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3562 fi
3563else
3564 ac_cv_path_GREP=$GREP
3565fi
3566
3567fi
3568{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3569$as_echo "$ac_cv_path_GREP" >&6; }
3570 GREP="$ac_cv_path_GREP"
3571
3572
3573{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3574$as_echo_n "checking for egrep... " >&6; }
3575if ${ac_cv_path_EGREP+:} false; then :
3576 $as_echo_n "(cached) " >&6
3577else
3578 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3579 then ac_cv_path_EGREP="$GREP -E"
3580 else
3581 if test -z "$EGREP"; then
3582 ac_path_EGREP_found=false
3583 # Loop through the user's path and test for each of PROGNAME-LIST
3584 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3585for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3586do
3587 IFS=$as_save_IFS
3588 test -z "$as_dir" && as_dir=.
3589 for ac_prog in egrep; do
3590 for ac_exec_ext in '' $ac_executable_extensions; do
3591 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3592 as_fn_executable_p "$ac_path_EGREP" || continue
3593# Check for GNU ac_path_EGREP and select it if it is found.
3594 # Check for GNU $ac_path_EGREP
3595case `"$ac_path_EGREP" --version 2>&1` in
3596*GNU*)
3597 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3598*)
3599 ac_count=0
3600 $as_echo_n 0123456789 >"conftest.in"
3601 while :
3602 do
3603 cat "conftest.in" "conftest.in" >"conftest.tmp"
3604 mv "conftest.tmp" "conftest.in"
3605 cp "conftest.in" "conftest.nl"
3606 $as_echo 'EGREP' >> "conftest.nl"
3607 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3608 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3609 as_fn_arith $ac_count + 1 && ac_count=$as_val
3610 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3611 # Best one so far, save it but keep looking for a better one
3612 ac_cv_path_EGREP="$ac_path_EGREP"
3613 ac_path_EGREP_max=$ac_count
3614 fi
3615 # 10*(2^10) chars as input seems more than enough
3616 test $ac_count -gt 10 && break
3617 done
3618 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3619esac
3620
3621 $ac_path_EGREP_found && break 3
3622 done
3623 done
3624 done
3625IFS=$as_save_IFS
3626 if test -z "$ac_cv_path_EGREP"; then
3627 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3628 fi
3629else
3630 ac_cv_path_EGREP=$EGREP
3631fi
3632
3633 fi
3634fi
3635{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
3636$as_echo "$ac_cv_path_EGREP" >&6; }
3637 EGREP="$ac_cv_path_EGREP"
3638
3639
3640if test $ac_cv_c_compiler_gnu = yes; then
3641 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC needs -traditional" >&5
3642$as_echo_n "checking whether $CC needs -traditional... " >&6; }
3643if ${ac_cv_prog_gcc_traditional+:} false; then :
3644 $as_echo_n "(cached) " >&6
3645else
3646 ac_pattern="Autoconf.*'x'"
3647 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3648/* end confdefs.h. */
3649#include <sgtty.h>
3650Autoconf TIOCGETP
3651_ACEOF
3652if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3653 $EGREP "$ac_pattern" >/dev/null 2>&1; then :
3654 ac_cv_prog_gcc_traditional=yes
3655else
3656 ac_cv_prog_gcc_traditional=no
3657fi
3658rm -f conftest*
3659
3660
3661 if test $ac_cv_prog_gcc_traditional = no; then
3662 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3663/* end confdefs.h. */
3664#include <termio.h>
3665Autoconf TCGETA
3666_ACEOF
3667if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3668 $EGREP "$ac_pattern" >/dev/null 2>&1; then :
3669 ac_cv_prog_gcc_traditional=yes
3670fi
3671rm -f conftest*
3672
3673 fi
3674fi
3675{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_gcc_traditional" >&5
3676$as_echo "$ac_cv_prog_gcc_traditional" >&6; }
3677 if test $ac_cv_prog_gcc_traditional = yes; then
3678 CC="$CC -traditional"
3679 fi
3680fi
3681
3682ac_aux_dir=
3683for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
3684 if test -f "$ac_dir/install-sh"; then
3685 ac_aux_dir=$ac_dir
3686 ac_install_sh="$ac_aux_dir/install-sh -c"
3687 break
3688 elif test -f "$ac_dir/install.sh"; then
3689 ac_aux_dir=$ac_dir
3690 ac_install_sh="$ac_aux_dir/install.sh -c"
3691 break
3692 elif test -f "$ac_dir/shtool"; then
3693 ac_aux_dir=$ac_dir
3694 ac_install_sh="$ac_aux_dir/shtool install -c"
3695 break
3696 fi
3697done
3698if test -z "$ac_aux_dir"; then
3699 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
3700fi
3701
3702# These three variables are undocumented and unsupported,
3703# and are intended to be withdrawn in a future Autoconf release.
3704# They can cause serious problems if a builder's source tree is in a directory
3705# whose full name contains unusual characters.
3706ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3707ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3708ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3709
3710
3711# Find a good install program. We prefer a C program (faster),
3712# so one script is as good as another. But avoid the broken or
3713# incompatible versions:
3714# SysV /etc/install, /usr/sbin/install
3715# SunOS /usr/etc/install
3716# IRIX /sbin/install
3717# AIX /bin/install
3718# AmigaOS /C/install, which installs bootblocks on floppy discs
3719# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3720# AFS /usr/afsws/bin/install, which mishandles nonexistent args
3721# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3722# OS/2's system install, which has a completely different semantic
3723# ./install, which can be erroneously created by make from ./install.sh.
3724# Reject install programs that cannot install multiple files.
3725{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3726$as_echo_n "checking for a BSD-compatible install... " >&6; }
3727if test -z "$INSTALL"; then
3728if ${ac_cv_path_install+:} false; then :
3729 $as_echo_n "(cached) " >&6
3730else
3731 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3732for as_dir in $PATH
3733do
3734 IFS=$as_save_IFS
3735 test -z "$as_dir" && as_dir=.
3736 # Account for people who put trailing slashes in PATH elements.
3737case $as_dir/ in #((
3738 ./ | .// | /[cC]/* | \
3739 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3740 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
3741 /usr/ucb/* ) ;;
3742 *)
3743 # OSF1 and SCO ODT 3.0 have their own names for install.
3744 # Don't use installbsd from OSF since it installs stuff as root
3745 # by default.
3746 for ac_prog in ginstall scoinst install; do
3747 for ac_exec_ext in '' $ac_executable_extensions; do
3748 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3749 if test $ac_prog = install &&
3750 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3751 # AIX install. It has an incompatible calling convention.
3752 :
3753 elif test $ac_prog = install &&
3754 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3755 # program-specific install script used by HP pwplus--don't use.
3756 :
3757 else
3758 rm -rf conftest.one conftest.two conftest.dir
3759 echo one > conftest.one
3760 echo two > conftest.two
3761 mkdir conftest.dir
3762 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3763 test -s conftest.one && test -s conftest.two &&
3764 test -s conftest.dir/conftest.one &&
3765 test -s conftest.dir/conftest.two
3766 then
3767 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3768 break 3
3769 fi
3770 fi
3771 fi
3772 done
3773 done
3774 ;;
3775esac
3776
3777 done
3778IFS=$as_save_IFS
3779
3780rm -rf conftest.one conftest.two conftest.dir
3781
3782fi
3783 if test "${ac_cv_path_install+set}" = set; then
3784 INSTALL=$ac_cv_path_install
3785 else
3786 # As a last resort, use the slow shell script. Don't cache a
3787 # value for INSTALL within a source directory, because that will
3788 # break other packages using the cache if that directory is
3789 # removed, or if the value is a relative name.
3790 INSTALL=$ac_install_sh
3791 fi
3792fi
3793{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3794$as_echo "$INSTALL" >&6; }
3795
3796# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3797# It thinks the first close brace ends the variable substitution.
3798test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3799
3800test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3801
3802test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3803
3804{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
3805$as_echo_n "checking whether ln -s works... " >&6; }
3806LN_S=$as_ln_s
3807if test "$LN_S" = "ln -s"; then
3808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3809$as_echo "yes" >&6; }
3810else
3811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
3812$as_echo "no, using $LN_S" >&6; }
3813fi
3814
3815
3816# Extract the first word of "install-info", so it can be a program name with args.
3817set dummy install-info; ac_word=$2
3818{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3819$as_echo_n "checking for $ac_word... " >&6; }
3820if ${ac_cv_path_INSTALL_INFO+:} false; then :
3821 $as_echo_n "(cached) " >&6
3822else
3823 case $INSTALL_INFO in
3824 [\\/]* | ?:[\\/]*)
3825 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
3826 ;;
3827 *)
3828 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3829for as_dir in $PATH
3830do
3831 IFS=$as_save_IFS
3832 test -z "$as_dir" && as_dir=.
3833 for ac_exec_ext in '' $ac_executable_extensions; do
3834 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3835 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext"
3836 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3837 break 2
3838 fi
3839done
3840 done
3841IFS=$as_save_IFS
3842
3843 test -z "$ac_cv_path_INSTALL_INFO" && ac_cv_path_INSTALL_INFO=""""
3844 ;;
3845esac
3846fi
3847INSTALL_INFO=$ac_cv_path_INSTALL_INFO
3848if test -n "$INSTALL_INFO"; then
3849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL_INFO" >&5
3850$as_echo "$INSTALL_INFO" >&6; }
3851else
3852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3853$as_echo "no" >&6; }
3854fi
3855
3856
3857
3858{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
3859$as_echo_n "checking for ANSI C header files... " >&6; }
3860if ${ac_cv_header_stdc+:} false; then :
3861 $as_echo_n "(cached) " >&6
3862else
3863 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3864/* end confdefs.h. */
3865#include <stdlib.h>
3866#include <stdarg.h>
3867#include <string.h>
3868#include <float.h>
3869
3870int
3871main ()
3872{
3873
3874 ;
3875 return 0;
3876}
3877_ACEOF
3878if ac_fn_c_try_compile "$LINENO"; then :
3879 ac_cv_header_stdc=yes
3880else
3881 ac_cv_header_stdc=no
3882fi
3883rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3884
3885if test $ac_cv_header_stdc = yes; then
3886 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3887 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3888/* end confdefs.h. */
3889#include <string.h>
3890
3891_ACEOF
3892if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3893 $EGREP "memchr" >/dev/null 2>&1; then :
3894
3895else
3896 ac_cv_header_stdc=no
3897fi
3898rm -f conftest*
3899
3900fi
3901
3902if test $ac_cv_header_stdc = yes; then
3903 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3904 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3905/* end confdefs.h. */
3906#include <stdlib.h>
3907
3908_ACEOF
3909if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3910 $EGREP "free" >/dev/null 2>&1; then :
3911
3912else
3913 ac_cv_header_stdc=no
3914fi
3915rm -f conftest*
3916
3917fi
3918
3919if test $ac_cv_header_stdc = yes; then
3920 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3921 if test "$cross_compiling" = yes; then :
3922 :
3923else
3924 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3925/* end confdefs.h. */
3926#include <ctype.h>
3927#include <stdlib.h>
3928#if ((' ' & 0x0FF) == 0x020)
3929# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3930# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3931#else
3932# define ISLOWER(c) \
3933 (('a' <= (c) && (c) <= 'i') \
3934 || ('j' <= (c) && (c) <= 'r') \
3935 || ('s' <= (c) && (c) <= 'z'))
3936# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3937#endif
3938
3939#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3940int
3941main ()
3942{
3943 int i;
3944 for (i = 0; i < 256; i++)
3945 if (XOR (islower (i), ISLOWER (i))
3946 || toupper (i) != TOUPPER (i))
3947 return 2;
3948 return 0;
3949}
3950_ACEOF
3951if ac_fn_c_try_run "$LINENO"; then :
3952
3953else
3954 ac_cv_header_stdc=no
3955fi
3956rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
3957 conftest.$ac_objext conftest.beam conftest.$ac_ext
3958fi
3959
3960fi
3961fi
3962{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
3963$as_echo "$ac_cv_header_stdc" >&6; }
3964if test $ac_cv_header_stdc = yes; then
3965
3966$as_echo "#define STDC_HEADERS 1" >>confdefs.h
3967
3968fi
3969
3970# On IRIX 5.3, sys/types and inttypes.h are conflicting.
3971for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3972 inttypes.h stdint.h unistd.h
3973do :
3974 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
3975ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
3976"
3977if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
3978 cat >>confdefs.h <<_ACEOF
3979#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
3980_ACEOF
3981
3982fi
3983
3984done
3985
3986
3987
3988 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
3989if test "x$ac_cv_header_minix_config_h" = xyes; then :
3990 MINIX=yes
3991else
3992 MINIX=
3993fi
3994
3995
3996 if test "$MINIX" = yes; then
3997
3998$as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
3999
4000
4001$as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
4002
4003
4004$as_echo "#define _MINIX 1" >>confdefs.h
4005
4006 fi
4007
4008
4009 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4010$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4011if ${ac_cv_safe_to_define___extensions__+:} false; then :
4012 $as_echo_n "(cached) " >&6
4013else
4014 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4015/* end confdefs.h. */
4016
4017# define __EXTENSIONS__ 1
4018 $ac_includes_default
4019int
4020main ()
4021{
4022
4023 ;
4024 return 0;
4025}
4026_ACEOF
4027if ac_fn_c_try_compile "$LINENO"; then :
4028 ac_cv_safe_to_define___extensions__=yes
4029else
4030 ac_cv_safe_to_define___extensions__=no
4031fi
4032rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4033fi
4034{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4035$as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4036 test $ac_cv_safe_to_define___extensions__ = yes &&
4037 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
4038
4039 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
4040
4041 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
4042
4043 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
4044
4045 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
4046
4047
4048# Make sure we can run config.sub.
4049$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4050 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4051
4052{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4053$as_echo_n "checking build system type... " >&6; }
4054if ${ac_cv_build+:} false; then :
4055 $as_echo_n "(cached) " >&6
4056else
4057 ac_build_alias=$build_alias
4058test "x$ac_build_alias" = x &&
4059 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4060test "x$ac_build_alias" = x &&
4061 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4062ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4063 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4064
4065fi
4066{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4067$as_echo "$ac_cv_build" >&6; }
4068case $ac_cv_build in
4069*-*-*) ;;
4070*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4071esac
4072build=$ac_cv_build
4073ac_save_IFS=$IFS; IFS='-'
4074set x $ac_cv_build
4075shift
4076build_cpu=$1
4077build_vendor=$2
4078shift; shift
4079# Remember, the first character of IFS is used to create $*,
4080# except with old shells:
4081build_os=$*
4082IFS=$ac_save_IFS
4083case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4084
4085
4086{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4087$as_echo_n "checking host system type... " >&6; }
4088if ${ac_cv_host+:} false; then :
4089 $as_echo_n "(cached) " >&6
4090else
4091 if test "x$host_alias" = x; then
4092 ac_cv_host=$ac_cv_build
4093else
4094 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4095 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4096fi
4097
4098fi
4099{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4100$as_echo "$ac_cv_host" >&6; }
4101case $ac_cv_host in
4102*-*-*) ;;
4103*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4104esac
4105host=$ac_cv_host
4106ac_save_IFS=$IFS; IFS='-'
4107set x $ac_cv_host
4108shift
4109host_cpu=$1
4110host_vendor=$2
4111shift; shift
4112# Remember, the first character of IFS is used to create $*,
4113# except with old shells:
4114host_os=$*
4115IFS=$ac_save_IFS
4116case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4117
4118
4119{ $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
4120$as_echo_n "checking target system type... " >&6; }
4121if ${ac_cv_target+:} false; then :
4122 $as_echo_n "(cached) " >&6
4123else
4124 if test "x$target_alias" = x; then
4125 ac_cv_target=$ac_cv_host
4126else
4127 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
4128 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
4129fi
4130
4131fi
4132{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
4133$as_echo "$ac_cv_target" >&6; }
4134case $ac_cv_target in
4135*-*-*) ;;
4136*) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
4137esac
4138target=$ac_cv_target
4139ac_save_IFS=$IFS; IFS='-'
4140set x $ac_cv_target
4141shift
4142target_cpu=$1
4143target_vendor=$2
4144shift; shift
4145# Remember, the first character of IFS is used to create $*,
4146# except with old shells:
4147target_os=$*
4148IFS=$ac_save_IFS
4149case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
4150
4151
4152# The aliases save the names the user supplied, while $host etc.
4153# will get canonicalized.
4154test -n "$target_alias" &&
4155 test "$program_prefix$program_suffix$program_transform_name" = \
4156 NONENONEs,x,x, &&
4157 program_prefix=${target_alias}-
4158
4159
4160{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
4161$as_echo_n "checking for an ANSI C-conforming const... " >&6; }
4162if ${ac_cv_c_const+:} false; then :
4163 $as_echo_n "(cached) " >&6
4164else
4165 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4166/* end confdefs.h. */
4167
4168int
4169main ()
4170{
4171
4172#ifndef __cplusplus
4173 /* Ultrix mips cc rejects this sort of thing. */
4174 typedef int charset[2];
4175 const charset cs = { 0, 0 };
4176 /* SunOS 4.1.1 cc rejects this. */
4177 char const *const *pcpcc;
4178 char **ppc;
4179 /* NEC SVR4.0.2 mips cc rejects this. */
4180 struct point {int x, y;};
4181 static struct point const zero = {0,0};
4182 /* AIX XL C 1.02.0.0 rejects this.
4183 It does not let you subtract one const X* pointer from another in
4184 an arm of an if-expression whose if-part is not a constant
4185 expression */
4186 const char *g = "string";
4187 pcpcc = &g + (g ? g-g : 0);
4188 /* HPUX 7.0 cc rejects these. */
4189 ++pcpcc;
4190 ppc = (char**) pcpcc;
4191 pcpcc = (char const *const *) ppc;
4192 { /* SCO 3.2v4 cc rejects this sort of thing. */
4193 char tx;
4194 char *t = &tx;
4195 char const *s = 0 ? (char *) 0 : (char const *) 0;
4196
4197 *t++ = 0;
4198 if (s) return 0;
4199 }
4200 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
4201 int x[] = {25, 17};
4202 const int *foo = &x[0];
4203 ++foo;
4204 }
4205 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
4206 typedef const int *iptr;
4207 iptr p = 0;
4208 ++p;
4209 }
4210 { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
4211 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
4212 struct s { int j; const int *ap[3]; } bx;
4213 struct s *b = &bx; b->j = 5;
4214 }
4215 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
4216 const int foo = 10;
4217 if (!foo) return 0;
4218 }
4219 return !cs[0] && !zero.x;
4220#endif
4221
4222 ;
4223 return 0;
4224}
4225_ACEOF
4226if ac_fn_c_try_compile "$LINENO"; then :
4227 ac_cv_c_const=yes
4228else
4229 ac_cv_c_const=no
4230fi
4231rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4232fi
4233{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
4234$as_echo "$ac_cv_c_const" >&6; }
4235if test $ac_cv_c_const = no; then
4236
4237$as_echo "#define const /**/" >>confdefs.h
4238
4239fi
4240
4241{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
4242$as_echo_n "checking for inline... " >&6; }
4243if ${ac_cv_c_inline+:} false; then :
4244 $as_echo_n "(cached) " >&6
4245else
4246 ac_cv_c_inline=no
4247for ac_kw in inline __inline__ __inline; do
4248 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4249/* end confdefs.h. */
4250#ifndef __cplusplus
4251typedef int foo_t;
4252static $ac_kw foo_t static_foo () {return 0; }
4253$ac_kw foo_t foo () {return 0; }
4254#endif
4255
4256_ACEOF
4257if ac_fn_c_try_compile "$LINENO"; then :
4258 ac_cv_c_inline=$ac_kw
4259fi
4260rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4261 test "$ac_cv_c_inline" != no && break
4262done
4263
4264fi
4265{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
4266$as_echo "$ac_cv_c_inline" >&6; }
4267
4268case $ac_cv_c_inline in
4269 inline | yes) ;;
4270 *)
4271 case $ac_cv_c_inline in
4272 no) ac_val=;;
4273 *) ac_val=$ac_cv_c_inline;;
4274 esac
4275 cat >>confdefs.h <<_ACEOF
4276#ifndef __cplusplus
4277#define inline $ac_val
4278#endif
4279_ACEOF
4280 ;;
4281esac
4282
4283
4284# Check whether --enable-xdf was given.
4285if test "${enable_xdf+set}" = set; then :
4286 enableval=$enable_xdf; if test x$enableval = xyes; then
4287
4288$as_echo "#define USE_XDF 1" >>confdefs.h
4289
Yi Kong39bbd962022-01-09 19:41:38 +08004290 XDF_IO_SRC=xdf_io.c
4291 XDF_IO_OBJ=xdf_io.o
Alistair Delvabeaee832021-02-24 11:27:23 -08004292fi
4293else
4294
4295$as_echo "#define USE_XDF 1" >>confdefs.h
4296
Yi Kong39bbd962022-01-09 19:41:38 +08004297XDF_IO_SRC=xdf_io.c
4298XDF_IO_OBJ=xdf_io.o
4299
4300
Alistair Delvabeaee832021-02-24 11:27:23 -08004301fi
4302
4303
4304
Yi Kong39bbd962022-01-09 19:41:38 +08004305
Alistair Delvabeaee832021-02-24 11:27:23 -08004306# Check whether --enable-vold was given.
4307if test "${enable_vold+set}" = set; then :
4308 enableval=$enable_vold; if test x$enableval = xyes; then
4309
4310$as_echo "#define USING_VOLD 1" >>confdefs.h
4311
4312fi
4313fi
4314
4315
4316
4317# Check whether --enable-new-vold was given.
4318if test "${enable_new_vold+set}" = set; then :
4319 enableval=$enable_new_vold; newVold=x$enableval
4320if test x$enableval = xyes; then
4321
4322$as_echo "#define USING_NEW_VOLD 1" >>confdefs.h
4323
4324fi
4325fi
4326
4327
4328
4329# Check whether --enable-debug was given.
4330if test "${enable_debug+set}" = set; then :
4331 enableval=$enable_debug; if test x$enableval = xyes; then
4332
4333$as_echo "#define DEBUG 1" >>confdefs.h
4334
4335fi
4336fi
4337
4338
4339
4340# Check whether --enable-raw_term was given.
4341if test "${enable_raw_term+set}" = set; then :
4342 enableval=$enable_raw_term; if test x$enableval = xyes; then
4343
4344$as_echo "#define USE_RAWTERM 1" >>confdefs.h
4345
4346fi
4347else
4348
4349$as_echo "#define USE_RAWTERM 1" >>confdefs.h
4350
4351fi
4352
4353
4354
4355
4356{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for getpwnam in -lsun" >&5
4357$as_echo_n "checking for getpwnam in -lsun... " >&6; }
4358if ${ac_cv_lib_sun_getpwnam+:} false; then :
4359 $as_echo_n "(cached) " >&6
4360else
4361 ac_check_lib_save_LIBS=$LIBS
4362LIBS="-lsun $LIBS"
4363cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4364/* end confdefs.h. */
4365
4366/* Override any GCC internal prototype to avoid an error.
4367 Use char because int might match the return type of a GCC
4368 builtin and then its argument prototype would still apply. */
4369#ifdef __cplusplus
4370extern "C"
4371#endif
4372char getpwnam ();
4373int
4374main ()
4375{
4376return getpwnam ();
4377 ;
4378 return 0;
4379}
4380_ACEOF
4381if ac_fn_c_try_link "$LINENO"; then :
4382 ac_cv_lib_sun_getpwnam=yes
4383else
4384 ac_cv_lib_sun_getpwnam=no
4385fi
4386rm -f core conftest.err conftest.$ac_objext \
4387 conftest$ac_exeext conftest.$ac_ext
4388LIBS=$ac_check_lib_save_LIBS
4389fi
4390{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sun_getpwnam" >&5
4391$as_echo "$ac_cv_lib_sun_getpwnam" >&6; }
4392if test "x$ac_cv_lib_sun_getpwnam" = xyes; then :
4393 cat >>confdefs.h <<_ACEOF
4394#define HAVE_LIBSUN 1
4395_ACEOF
4396
4397 LIBS="-lsun $LIBS"
4398
4399fi
4400
4401{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for cam_open_device in -lcam" >&5
4402$as_echo_n "checking for cam_open_device in -lcam... " >&6; }
4403if ${ac_cv_lib_cam_cam_open_device+:} false; then :
4404 $as_echo_n "(cached) " >&6
4405else
4406 ac_check_lib_save_LIBS=$LIBS
4407LIBS="-lcam $LIBS"
4408cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4409/* end confdefs.h. */
4410
4411/* Override any GCC internal prototype to avoid an error.
4412 Use char because int might match the return type of a GCC
4413 builtin and then its argument prototype would still apply. */
4414#ifdef __cplusplus
4415extern "C"
4416#endif
4417char cam_open_device ();
4418int
4419main ()
4420{
4421return cam_open_device ();
4422 ;
4423 return 0;
4424}
4425_ACEOF
4426if ac_fn_c_try_link "$LINENO"; then :
4427 ac_cv_lib_cam_cam_open_device=yes
4428else
4429 ac_cv_lib_cam_cam_open_device=no
4430fi
4431rm -f core conftest.err conftest.$ac_objext \
4432 conftest$ac_exeext conftest.$ac_ext
4433LIBS=$ac_check_lib_save_LIBS
4434fi
4435{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cam_cam_open_device" >&5
4436$as_echo "$ac_cv_lib_cam_cam_open_device" >&6; }
4437if test "x$ac_cv_lib_cam_cam_open_device" = xyes; then :
4438 cat >>confdefs.h <<_ACEOF
4439#define HAVE_LIBCAM 1
4440_ACEOF
4441
4442 LIBS="-lcam $LIBS"
4443
4444fi
4445
4446{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv in -liconv" >&5
4447$as_echo_n "checking for iconv in -liconv... " >&6; }
4448if ${ac_cv_lib_iconv_iconv+:} false; then :
4449 $as_echo_n "(cached) " >&6
4450else
4451 ac_check_lib_save_LIBS=$LIBS
4452LIBS="-liconv $LIBS"
4453cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4454/* end confdefs.h. */
4455
4456/* Override any GCC internal prototype to avoid an error.
4457 Use char because int might match the return type of a GCC
4458 builtin and then its argument prototype would still apply. */
4459#ifdef __cplusplus
4460extern "C"
4461#endif
4462char iconv ();
4463int
4464main ()
4465{
4466return iconv ();
4467 ;
4468 return 0;
4469}
4470_ACEOF
4471if ac_fn_c_try_link "$LINENO"; then :
4472 ac_cv_lib_iconv_iconv=yes
4473else
4474 ac_cv_lib_iconv_iconv=no
4475fi
4476rm -f core conftest.err conftest.$ac_objext \
4477 conftest$ac_exeext conftest.$ac_ext
4478LIBS=$ac_check_lib_save_LIBS
4479fi
4480{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_iconv_iconv" >&5
4481$as_echo "$ac_cv_lib_iconv_iconv" >&6; }
4482if test "x$ac_cv_lib_iconv_iconv" = xyes; then :
4483 cat >>confdefs.h <<_ACEOF
4484#define HAVE_LIBICONV 1
4485_ACEOF
4486
4487 LIBS="-liconv $LIBS"
4488
4489fi
4490
4491
Yi Kong39bbd962022-01-09 19:41:38 +08004492{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lsocket" >&5
4493$as_echo_n "checking for main in -lsocket... " >&6; }
4494if ${ac_cv_lib_socket_main+:} false; then :
4495 $as_echo_n "(cached) " >&6
4496else
4497 ac_check_lib_save_LIBS=$LIBS
4498LIBS="-lsocket $LIBS"
4499cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4500/* end confdefs.h. */
4501
4502
4503int
4504main ()
4505{
4506return main ();
4507 ;
4508 return 0;
4509}
4510_ACEOF
4511if ac_fn_c_try_link "$LINENO"; then :
4512 ac_cv_lib_socket_main=yes
4513else
4514 ac_cv_lib_socket_main=no
4515fi
4516rm -f core conftest.err conftest.$ac_objext \
4517 conftest$ac_exeext conftest.$ac_ext
4518LIBS=$ac_check_lib_save_LIBS
4519fi
4520{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_main" >&5
4521$as_echo "$ac_cv_lib_socket_main" >&6; }
4522if test "x$ac_cv_lib_socket_main" = xyes; then :
4523 cat >>confdefs.h <<_ACEOF
4524#define HAVE_LIBSOCKET 1
4525_ACEOF
4526
4527 LIBS="-lsocket $LIBS"
4528
4529fi
4530
4531
4532 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing gethostbyname" >&5
4533$as_echo_n "checking for library containing gethostbyname... " >&6; }
4534if ${ac_cv_search_gethostbyname+:} false; then :
4535 $as_echo_n "(cached) " >&6
4536else
4537 ac_func_search_save_LIBS=$LIBS
4538cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4539/* end confdefs.h. */
4540
4541/* Override any GCC internal prototype to avoid an error.
4542 Use char because int might match the return type of a GCC
4543 builtin and then its argument prototype would still apply. */
4544#ifdef __cplusplus
4545extern "C"
4546#endif
4547char gethostbyname ();
4548int
4549main ()
4550{
4551return gethostbyname ();
4552 ;
4553 return 0;
4554}
4555_ACEOF
4556for ac_lib in '' nsl; do
4557 if test -z "$ac_lib"; then
4558 ac_res="none required"
4559 else
4560 ac_res=-l$ac_lib
4561 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
4562 fi
4563 if ac_fn_c_try_link "$LINENO"; then :
4564 ac_cv_search_gethostbyname=$ac_res
4565fi
4566rm -f core conftest.err conftest.$ac_objext \
4567 conftest$ac_exeext
4568 if ${ac_cv_search_gethostbyname+:} false; then :
4569 break
4570fi
4571done
4572if ${ac_cv_search_gethostbyname+:} false; then :
4573
4574else
4575 ac_cv_search_gethostbyname=no
4576fi
4577rm conftest.$ac_ext
4578LIBS=$ac_func_search_save_LIBS
4579fi
4580{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gethostbyname" >&5
4581$as_echo "$ac_cv_search_gethostbyname" >&6; }
4582ac_res=$ac_cv_search_gethostbyname
4583if test "$ac_res" != no; then :
4584 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
4585
4586fi
4587
4588 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing socket" >&5
4589$as_echo_n "checking for library containing socket... " >&6; }
4590if ${ac_cv_search_socket+:} false; then :
4591 $as_echo_n "(cached) " >&6
4592else
4593 ac_func_search_save_LIBS=$LIBS
4594cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4595/* end confdefs.h. */
4596
4597/* Override any GCC internal prototype to avoid an error.
4598 Use char because int might match the return type of a GCC
4599 builtin and then its argument prototype would still apply. */
4600#ifdef __cplusplus
4601extern "C"
4602#endif
4603char socket ();
4604int
4605main ()
4606{
4607return socket ();
4608 ;
4609 return 0;
4610}
4611_ACEOF
4612for ac_lib in '' socket; do
4613 if test -z "$ac_lib"; then
4614 ac_res="none required"
4615 else
4616 ac_res=-l$ac_lib
4617 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
4618 fi
4619 if ac_fn_c_try_link "$LINENO"; then :
4620 ac_cv_search_socket=$ac_res
4621fi
4622rm -f core conftest.err conftest.$ac_objext \
4623 conftest$ac_exeext
4624 if ${ac_cv_search_socket+:} false; then :
4625 break
4626fi
4627done
4628if ${ac_cv_search_socket+:} false; then :
4629
4630else
4631 ac_cv_search_socket=no
4632fi
4633rm conftest.$ac_ext
4634LIBS=$ac_func_search_save_LIBS
4635fi
4636{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socket" >&5
4637$as_echo "$ac_cv_search_socket" >&6; }
4638ac_res=$ac_cv_search_socket
4639if test "$ac_res" != no; then :
4640 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
4641
4642else
4643
4644 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -lsocket" >&5
4645$as_echo_n "checking for socket in -lsocket... " >&6; }
4646if ${ac_cv_lib_socket_socket+:} false; then :
4647 $as_echo_n "(cached) " >&6
4648else
4649 ac_check_lib_save_LIBS=$LIBS
4650LIBS="-lsocket -lnsl $LIBS"
4651cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4652/* end confdefs.h. */
4653
4654/* Override any GCC internal prototype to avoid an error.
4655 Use char because int might match the return type of a GCC
4656 builtin and then its argument prototype would still apply. */
4657#ifdef __cplusplus
4658extern "C"
4659#endif
4660char socket ();
4661int
4662main ()
4663{
4664return socket ();
4665 ;
4666 return 0;
4667}
4668_ACEOF
4669if ac_fn_c_try_link "$LINENO"; then :
4670 ac_cv_lib_socket_socket=yes
4671else
4672 ac_cv_lib_socket_socket=no
4673fi
4674rm -f core conftest.err conftest.$ac_objext \
4675 conftest$ac_exeext conftest.$ac_ext
4676LIBS=$ac_check_lib_save_LIBS
4677fi
4678{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_socket" >&5
4679$as_echo "$ac_cv_lib_socket_socket" >&6; }
4680if test "x$ac_cv_lib_socket_socket" = xyes; then :
4681 LIBS="-lsocket -lnsl $LIBS"
4682fi
4683
4684fi
4685
4686
4687{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lbsd" >&5
4688$as_echo_n "checking for main in -lbsd... " >&6; }
4689if ${ac_cv_lib_bsd_main+:} false; then :
4690 $as_echo_n "(cached) " >&6
4691else
4692 ac_check_lib_save_LIBS=$LIBS
4693LIBS="-lbsd $LIBS"
4694cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4695/* end confdefs.h. */
4696
4697
4698int
4699main ()
4700{
4701return main ();
4702 ;
4703 return 0;
4704}
4705_ACEOF
4706if ac_fn_c_try_link "$LINENO"; then :
4707 ac_cv_lib_bsd_main=yes
4708else
4709 ac_cv_lib_bsd_main=no
4710fi
4711rm -f core conftest.err conftest.$ac_objext \
4712 conftest$ac_exeext conftest.$ac_ext
4713LIBS=$ac_check_lib_save_LIBS
4714fi
4715{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_main" >&5
4716$as_echo "$ac_cv_lib_bsd_main" >&6; }
4717if test "x$ac_cv_lib_bsd_main" = xyes; then :
4718 cat >>confdefs.h <<_ACEOF
4719#define HAVE_LIBBSD 1
4720_ACEOF
4721
4722 LIBS="-lbsd $LIBS"
4723
4724fi
4725
4726
Alistair Delvabeaee832021-02-24 11:27:23 -08004727{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4728$as_echo_n "checking for ANSI C header files... " >&6; }
4729if ${ac_cv_header_stdc+:} false; then :
4730 $as_echo_n "(cached) " >&6
4731else
4732 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4733/* end confdefs.h. */
4734#include <stdlib.h>
4735#include <stdarg.h>
4736#include <string.h>
4737#include <float.h>
4738
4739int
4740main ()
4741{
4742
4743 ;
4744 return 0;
4745}
4746_ACEOF
4747if ac_fn_c_try_compile "$LINENO"; then :
4748 ac_cv_header_stdc=yes
4749else
4750 ac_cv_header_stdc=no
4751fi
4752rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4753
4754if test $ac_cv_header_stdc = yes; then
4755 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4756 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4757/* end confdefs.h. */
4758#include <string.h>
4759
4760_ACEOF
4761if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4762 $EGREP "memchr" >/dev/null 2>&1; then :
4763
4764else
4765 ac_cv_header_stdc=no
4766fi
4767rm -f conftest*
4768
4769fi
4770
4771if test $ac_cv_header_stdc = yes; then
4772 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4773 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4774/* end confdefs.h. */
4775#include <stdlib.h>
4776
4777_ACEOF
4778if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4779 $EGREP "free" >/dev/null 2>&1; then :
4780
4781else
4782 ac_cv_header_stdc=no
4783fi
4784rm -f conftest*
4785
4786fi
4787
4788if test $ac_cv_header_stdc = yes; then
4789 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4790 if test "$cross_compiling" = yes; then :
4791 :
4792else
4793 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4794/* end confdefs.h. */
4795#include <ctype.h>
4796#include <stdlib.h>
4797#if ((' ' & 0x0FF) == 0x020)
4798# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4799# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4800#else
4801# define ISLOWER(c) \
4802 (('a' <= (c) && (c) <= 'i') \
4803 || ('j' <= (c) && (c) <= 'r') \
4804 || ('s' <= (c) && (c) <= 'z'))
4805# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4806#endif
4807
4808#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4809int
4810main ()
4811{
4812 int i;
4813 for (i = 0; i < 256; i++)
4814 if (XOR (islower (i), ISLOWER (i))
4815 || toupper (i) != TOUPPER (i))
4816 return 2;
4817 return 0;
4818}
4819_ACEOF
4820if ac_fn_c_try_run "$LINENO"; then :
4821
4822else
4823 ac_cv_header_stdc=no
4824fi
4825rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4826 conftest.$ac_objext conftest.beam conftest.$ac_ext
4827fi
4828
4829fi
4830fi
4831{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4832$as_echo "$ac_cv_header_stdc" >&6; }
4833if test $ac_cv_header_stdc = yes; then
4834
4835$as_echo "#define STDC_HEADERS 1" >>confdefs.h
4836
4837fi
4838
4839{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
4840$as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
4841if ${ac_cv_header_sys_wait_h+:} false; then :
4842 $as_echo_n "(cached) " >&6
4843else
4844 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4845/* end confdefs.h. */
4846#include <sys/types.h>
4847#include <sys/wait.h>
4848#ifndef WEXITSTATUS
4849# define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
4850#endif
4851#ifndef WIFEXITED
4852# define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
4853#endif
4854
4855int
4856main ()
4857{
4858 int s;
4859 wait (&s);
4860 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
4861 ;
4862 return 0;
4863}
4864_ACEOF
4865if ac_fn_c_try_compile "$LINENO"; then :
4866 ac_cv_header_sys_wait_h=yes
4867else
4868 ac_cv_header_sys_wait_h=no
4869fi
4870rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4871fi
4872{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
4873$as_echo "$ac_cv_header_sys_wait_h" >&6; }
4874if test $ac_cv_header_sys_wait_h = yes; then
4875
4876$as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
4877
4878fi
4879
Yi Kong39bbd962022-01-09 19:41:38 +08004880{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to C99" >&5
4881$as_echo_n "checking for stdbool.h that conforms to C99... " >&6; }
4882if ${ac_cv_header_stdbool_h+:} false; then :
4883 $as_echo_n "(cached) " >&6
4884else
4885 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4886/* end confdefs.h. */
4887
4888 #include <stdbool.h>
4889 #ifndef bool
4890 "error: bool is not defined"
4891 #endif
4892 #ifndef false
4893 "error: false is not defined"
4894 #endif
4895 #if false
4896 "error: false is not 0"
4897 #endif
4898 #ifndef true
4899 "error: true is not defined"
4900 #endif
4901 #if true != 1
4902 "error: true is not 1"
4903 #endif
4904 #ifndef __bool_true_false_are_defined
4905 "error: __bool_true_false_are_defined is not defined"
4906 #endif
4907
4908 struct s { _Bool s: 1; _Bool t; } s;
4909
4910 char a[true == 1 ? 1 : -1];
4911 char b[false == 0 ? 1 : -1];
4912 char c[__bool_true_false_are_defined == 1 ? 1 : -1];
4913 char d[(bool) 0.5 == true ? 1 : -1];
4914 /* See body of main program for 'e'. */
4915 char f[(_Bool) 0.0 == false ? 1 : -1];
4916 char g[true];
4917 char h[sizeof (_Bool)];
4918 char i[sizeof s.t];
4919 enum { j = false, k = true, l = false * true, m = true * 256 };
4920 /* The following fails for
4921 HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */
4922 _Bool n[m];
4923 char o[sizeof n == m * sizeof n[0] ? 1 : -1];
4924 char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
4925 /* Catch a bug in an HP-UX C compiler. See
4926 http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
4927 http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
4928 */
4929 _Bool q = true;
4930 _Bool *pq = &q;
4931
4932int
4933main ()
4934{
4935
4936 bool e = &s;
4937 *pq |= q;
4938 *pq |= ! q;
4939 /* Refer to every declared value, to avoid compiler optimizations. */
4940 return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
4941 + !m + !n + !o + !p + !q + !pq);
4942
4943 ;
4944 return 0;
4945}
4946_ACEOF
4947if ac_fn_c_try_compile "$LINENO"; then :
4948 ac_cv_header_stdbool_h=yes
4949else
4950 ac_cv_header_stdbool_h=no
4951fi
4952rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4953fi
4954{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdbool_h" >&5
4955$as_echo "$ac_cv_header_stdbool_h" >&6; }
4956 ac_fn_c_check_type "$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default"
4957if test "x$ac_cv_type__Bool" = xyes; then :
4958
4959cat >>confdefs.h <<_ACEOF
4960#define HAVE__BOOL 1
4961_ACEOF
4962
4963
4964fi
4965
4966
4967if test $ac_cv_header_stdbool_h = yes; then
4968
4969$as_echo "#define HAVE_STDBOOL_H 1" >>confdefs.h
4970
4971fi
4972
4973for ac_header in getopt.h stdarg.h stdlib.h unistd.h linux/unistd.h \
Alistair Delvabeaee832021-02-24 11:27:23 -08004974libc.h fcntl.h limits.h sys/file.h sys/ioctl.h sys/time.h strings.h string.h \
4975sys/param.h memory.h malloc.h io.h signal.h sys/signal.h utime.h sgtty.h \
4976sys/floppy.h mntent.h sys/sysmacros.h netinet/in.h netinet/tcp.h assert.h \
4977iconv.h wctype.h wchar.h locale.h xlocale.h linux/fs.h
4978do :
4979 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4980ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
4981if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4982 cat >>confdefs.h <<_ACEOF
4983#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4984_ACEOF
4985
4986fi
4987
4988done
4989
4990for ac_header in termio.h sys/termio.h
4991do :
4992 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4993ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
4994if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4995 cat >>confdefs.h <<_ACEOF
4996#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4997_ACEOF
4998 break
4999fi
5000
5001done
5002
5003for ac_header in termios.h sys/termios.h
5004do :
5005 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5006ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
5007if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
5008 cat >>confdefs.h <<_ACEOF
5009#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5010_ACEOF
5011 break
5012fi
5013
5014done
5015
5016
Yi Kong39bbd962022-01-09 19:41:38 +08005017for ac_header in sys/fdio.h
5018do :
5019 ac_fn_c_check_header_mongrel "$LINENO" "sys/fdio.h" "ac_cv_header_sys_fdio_h" "$ac_includes_default"
5020if test "x$ac_cv_header_sys_fdio_h" = xyes; then :
5021 cat >>confdefs.h <<_ACEOF
5022#define HAVE_SYS_FDIO_H 1
5023_ACEOF
5024
5025fi
5026
5027done
5028
5029for ac_header in sys/socket.h arpa/inet.h netdb.h
5030do :
5031 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5032ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
5033if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
5034 cat >>confdefs.h <<_ACEOF
5035#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5036_ACEOF
5037
5038fi
5039
5040done
5041
5042
Alistair Delvabeaee832021-02-24 11:27:23 -08005043# Check whether --enable-largefile was given.
5044if test "${enable_largefile+set}" = set; then :
5045 enableval=$enable_largefile;
5046fi
5047
5048if test "$enable_largefile" != no; then
5049
5050 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
5051$as_echo_n "checking for special C compiler options needed for large files... " >&6; }
5052if ${ac_cv_sys_largefile_CC+:} false; then :
5053 $as_echo_n "(cached) " >&6
5054else
5055 ac_cv_sys_largefile_CC=no
5056 if test "$GCC" != yes; then
5057 ac_save_CC=$CC
5058 while :; do
5059 # IRIX 6.2 and later do not support large files by default,
5060 # so use the C compiler's -n32 option if that helps.
5061 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5062/* end confdefs.h. */
5063#include <sys/types.h>
5064 /* Check that off_t can represent 2**63 - 1 correctly.
5065 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5066 since some C++ compilers masquerading as C compilers
5067 incorrectly reject 9223372036854775807. */
5068#define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
5069 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5070 && LARGE_OFF_T % 2147483647 == 1)
5071 ? 1 : -1];
5072int
5073main ()
5074{
5075
5076 ;
5077 return 0;
5078}
5079_ACEOF
5080 if ac_fn_c_try_compile "$LINENO"; then :
5081 break
5082fi
5083rm -f core conftest.err conftest.$ac_objext
5084 CC="$CC -n32"
5085 if ac_fn_c_try_compile "$LINENO"; then :
5086 ac_cv_sys_largefile_CC=' -n32'; break
5087fi
5088rm -f core conftest.err conftest.$ac_objext
5089 break
5090 done
5091 CC=$ac_save_CC
5092 rm -f conftest.$ac_ext
5093 fi
5094fi
5095{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
5096$as_echo "$ac_cv_sys_largefile_CC" >&6; }
5097 if test "$ac_cv_sys_largefile_CC" != no; then
5098 CC=$CC$ac_cv_sys_largefile_CC
5099 fi
5100
5101 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
5102$as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
5103if ${ac_cv_sys_file_offset_bits+:} false; then :
5104 $as_echo_n "(cached) " >&6
5105else
5106 while :; do
5107 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5108/* end confdefs.h. */
5109#include <sys/types.h>
5110 /* Check that off_t can represent 2**63 - 1 correctly.
5111 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5112 since some C++ compilers masquerading as C compilers
5113 incorrectly reject 9223372036854775807. */
5114#define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
5115 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5116 && LARGE_OFF_T % 2147483647 == 1)
5117 ? 1 : -1];
5118int
5119main ()
5120{
5121
5122 ;
5123 return 0;
5124}
5125_ACEOF
5126if ac_fn_c_try_compile "$LINENO"; then :
5127 ac_cv_sys_file_offset_bits=no; break
5128fi
5129rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5130 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5131/* end confdefs.h. */
5132#define _FILE_OFFSET_BITS 64
5133#include <sys/types.h>
5134 /* Check that off_t can represent 2**63 - 1 correctly.
5135 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5136 since some C++ compilers masquerading as C compilers
5137 incorrectly reject 9223372036854775807. */
5138#define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
5139 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5140 && LARGE_OFF_T % 2147483647 == 1)
5141 ? 1 : -1];
5142int
5143main ()
5144{
5145
5146 ;
5147 return 0;
5148}
5149_ACEOF
5150if ac_fn_c_try_compile "$LINENO"; then :
5151 ac_cv_sys_file_offset_bits=64; break
5152fi
5153rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5154 ac_cv_sys_file_offset_bits=unknown
5155 break
5156done
5157fi
5158{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
5159$as_echo "$ac_cv_sys_file_offset_bits" >&6; }
5160case $ac_cv_sys_file_offset_bits in #(
5161 no | unknown) ;;
5162 *)
5163cat >>confdefs.h <<_ACEOF
5164#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
5165_ACEOF
5166;;
5167esac
5168rm -rf conftest*
5169 if test $ac_cv_sys_file_offset_bits = unknown; then
5170 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
5171$as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
5172if ${ac_cv_sys_large_files+:} false; then :
5173 $as_echo_n "(cached) " >&6
5174else
5175 while :; do
5176 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5177/* end confdefs.h. */
5178#include <sys/types.h>
5179 /* Check that off_t can represent 2**63 - 1 correctly.
5180 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5181 since some C++ compilers masquerading as C compilers
5182 incorrectly reject 9223372036854775807. */
5183#define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
5184 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5185 && LARGE_OFF_T % 2147483647 == 1)
5186 ? 1 : -1];
5187int
5188main ()
5189{
5190
5191 ;
5192 return 0;
5193}
5194_ACEOF
5195if ac_fn_c_try_compile "$LINENO"; then :
5196 ac_cv_sys_large_files=no; break
5197fi
5198rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5199 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5200/* end confdefs.h. */
5201#define _LARGE_FILES 1
5202#include <sys/types.h>
5203 /* Check that off_t can represent 2**63 - 1 correctly.
5204 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5205 since some C++ compilers masquerading as C compilers
5206 incorrectly reject 9223372036854775807. */
5207#define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
5208 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5209 && LARGE_OFF_T % 2147483647 == 1)
5210 ? 1 : -1];
5211int
5212main ()
5213{
5214
5215 ;
5216 return 0;
5217}
5218_ACEOF
5219if ac_fn_c_try_compile "$LINENO"; then :
5220 ac_cv_sys_large_files=1; break
5221fi
5222rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5223 ac_cv_sys_large_files=unknown
5224 break
5225done
5226fi
5227{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
5228$as_echo "$ac_cv_sys_large_files" >&6; }
5229case $ac_cv_sys_large_files in #(
5230 no | unknown) ;;
5231 *)
5232cat >>confdefs.h <<_ACEOF
5233#define _LARGE_FILES $ac_cv_sys_large_files
5234_ACEOF
5235;;
5236esac
5237rm -rf conftest*
5238 fi
5239
5240
5241fi
5242
5243ac_fn_c_find_intX_t "$LINENO" "8" "ac_cv_c_int8_t"
5244case $ac_cv_c_int8_t in #(
5245 no|yes) ;; #(
5246 *)
5247
5248cat >>confdefs.h <<_ACEOF
5249#define int8_t $ac_cv_c_int8_t
5250_ACEOF
5251;;
5252esac
5253
5254ac_fn_c_find_intX_t "$LINENO" "16" "ac_cv_c_int16_t"
5255case $ac_cv_c_int16_t in #(
5256 no|yes) ;; #(
5257 *)
5258
5259cat >>confdefs.h <<_ACEOF
5260#define int16_t $ac_cv_c_int16_t
5261_ACEOF
5262;;
5263esac
5264
5265ac_fn_c_find_intX_t "$LINENO" "32" "ac_cv_c_int32_t"
5266case $ac_cv_c_int32_t in #(
5267 no|yes) ;; #(
5268 *)
5269
5270cat >>confdefs.h <<_ACEOF
5271#define int32_t $ac_cv_c_int32_t
5272_ACEOF
5273;;
5274esac
5275
5276ac_fn_c_find_uintX_t "$LINENO" "8" "ac_cv_c_uint8_t"
5277case $ac_cv_c_uint8_t in #(
5278 no|yes) ;; #(
5279 *)
5280
5281$as_echo "#define _UINT8_T 1" >>confdefs.h
5282
5283
5284cat >>confdefs.h <<_ACEOF
5285#define uint8_t $ac_cv_c_uint8_t
5286_ACEOF
5287;;
5288 esac
5289
5290ac_fn_c_find_uintX_t "$LINENO" "16" "ac_cv_c_uint16_t"
5291case $ac_cv_c_uint16_t in #(
5292 no|yes) ;; #(
5293 *)
5294
5295
5296cat >>confdefs.h <<_ACEOF
5297#define uint16_t $ac_cv_c_uint16_t
5298_ACEOF
5299;;
5300 esac
5301
5302ac_fn_c_find_uintX_t "$LINENO" "32" "ac_cv_c_uint32_t"
5303case $ac_cv_c_uint32_t in #(
5304 no|yes) ;; #(
5305 *)
5306
5307$as_echo "#define _UINT32_T 1" >>confdefs.h
5308
5309
5310cat >>confdefs.h <<_ACEOF
5311#define uint32_t $ac_cv_c_uint32_t
5312_ACEOF
5313;;
5314 esac
5315
5316ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
5317if test "x$ac_cv_type_ssize_t" = xyes; then :
5318
5319else
5320
5321cat >>confdefs.h <<_ACEOF
5322#define ssize_t int
5323_ACEOF
5324
5325fi
5326
5327ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
5328if test "x$ac_cv_type_size_t" = xyes; then :
5329
5330else
5331
5332cat >>confdefs.h <<_ACEOF
5333#define size_t unsigned int
5334_ACEOF
5335
5336fi
5337
5338ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
5339if test "x$ac_cv_type_off_t" = xyes; then :
5340
5341else
5342
5343cat >>confdefs.h <<_ACEOF
5344#define off_t long int
5345_ACEOF
5346
5347fi
5348
5349{ $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
5350$as_echo_n "checking return type of signal handlers... " >&6; }
5351if ${ac_cv_type_signal+:} false; then :
5352 $as_echo_n "(cached) " >&6
5353else
5354 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5355/* end confdefs.h. */
5356#include <sys/types.h>
5357#include <signal.h>
5358
5359int
5360main ()
5361{
5362return *(signal (0, 0)) (0) == 1;
5363 ;
5364 return 0;
5365}
5366_ACEOF
5367if ac_fn_c_try_compile "$LINENO"; then :
5368 ac_cv_type_signal=int
5369else
5370 ac_cv_type_signal=void
5371fi
5372rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5373fi
5374{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
5375$as_echo "$ac_cv_type_signal" >&6; }
5376
5377cat >>confdefs.h <<_ACEOF
5378#define RETSIGTYPE $ac_cv_type_signal
5379_ACEOF
5380
5381
5382{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
5383$as_echo_n "checking for uid_t in sys/types.h... " >&6; }
5384if ${ac_cv_type_uid_t+:} false; then :
5385 $as_echo_n "(cached) " >&6
5386else
5387 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5388/* end confdefs.h. */
5389#include <sys/types.h>
5390
5391_ACEOF
5392if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5393 $EGREP "uid_t" >/dev/null 2>&1; then :
5394 ac_cv_type_uid_t=yes
5395else
5396 ac_cv_type_uid_t=no
5397fi
5398rm -f conftest*
5399
5400fi
5401{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
5402$as_echo "$ac_cv_type_uid_t" >&6; }
5403if test $ac_cv_type_uid_t = no; then
5404
5405$as_echo "#define uid_t int" >>confdefs.h
5406
5407
5408$as_echo "#define gid_t int" >>confdefs.h
5409
5410fi
5411
5412
5413ac_fn_c_check_type "$LINENO" "caddr_t" "ac_cv_type_caddr_t" "$ac_includes_default"
5414if test "x$ac_cv_type_caddr_t" = xyes; then :
5415
5416cat >>confdefs.h <<_ACEOF
5417#define HAVE_CADDR_T 1
5418_ACEOF
5419
5420
5421fi
5422
Yi Kong39bbd962022-01-09 19:41:38 +08005423ac_fn_c_check_type "$LINENO" "long long" "ac_cv_type_long_long" "$ac_includes_default"
5424if test "x$ac_cv_type_long_long" = xyes; then :
5425
5426cat >>confdefs.h <<_ACEOF
5427#define HAVE_LONG_LONG 1
5428_ACEOF
5429
5430
5431fi
5432
Alistair Delvabeaee832021-02-24 11:27:23 -08005433# The cast to long int works around a bug in the HP C Compiler
5434# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5435# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5436# This bug is HP SR number 8606223364.
5437{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of size_t" >&5
5438$as_echo_n "checking size of size_t... " >&6; }
5439if ${ac_cv_sizeof_size_t+:} false; then :
5440 $as_echo_n "(cached) " >&6
5441else
5442 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (size_t))" "ac_cv_sizeof_size_t" "$ac_includes_default"; then :
5443
5444else
5445 if test "$ac_cv_type_size_t" = yes; then
5446 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5447$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5448as_fn_error 77 "cannot compute sizeof (size_t)
5449See \`config.log' for more details" "$LINENO" 5; }
5450 else
5451 ac_cv_sizeof_size_t=0
5452 fi
5453fi
5454
5455fi
5456{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_size_t" >&5
5457$as_echo "$ac_cv_sizeof_size_t" >&6; }
5458
5459
5460
5461cat >>confdefs.h <<_ACEOF
5462#define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
5463_ACEOF
5464
5465
5466# The cast to long int works around a bug in the HP C Compiler
5467# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5468# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5469# This bug is HP SR number 8606223364.
Yi Kong39bbd962022-01-09 19:41:38 +08005470{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of off_t" >&5
5471$as_echo_n "checking size of off_t... " >&6; }
5472if ${ac_cv_sizeof_off_t+:} false; then :
5473 $as_echo_n "(cached) " >&6
5474else
5475 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (off_t))" "ac_cv_sizeof_off_t" "$ac_includes_default"; then :
5476
5477else
5478 if test "$ac_cv_type_off_t" = yes; then
5479 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5480$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5481as_fn_error 77 "cannot compute sizeof (off_t)
5482See \`config.log' for more details" "$LINENO" 5; }
5483 else
5484 ac_cv_sizeof_off_t=0
5485 fi
5486fi
5487
5488fi
5489{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_off_t" >&5
5490$as_echo "$ac_cv_sizeof_off_t" >&6; }
5491
5492
5493
5494cat >>confdefs.h <<_ACEOF
5495#define SIZEOF_OFF_T $ac_cv_sizeof_off_t
5496_ACEOF
5497
5498
5499# The cast to long int works around a bug in the HP C Compiler
5500# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5501# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5502# This bug is HP SR number 8606223364.
Alistair Delvabeaee832021-02-24 11:27:23 -08005503{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of time_t" >&5
5504$as_echo_n "checking size of time_t... " >&6; }
5505if ${ac_cv_sizeof_time_t+:} false; then :
5506 $as_echo_n "(cached) " >&6
5507else
5508 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (time_t))" "ac_cv_sizeof_time_t" "$ac_includes_default"; then :
5509
5510else
5511 if test "$ac_cv_type_time_t" = yes; then
5512 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5513$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5514as_fn_error 77 "cannot compute sizeof (time_t)
5515See \`config.log' for more details" "$LINENO" 5; }
5516 else
5517 ac_cv_sizeof_time_t=0
5518 fi
5519fi
5520
5521fi
5522{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_time_t" >&5
5523$as_echo "$ac_cv_sizeof_time_t" >&6; }
5524
5525
5526
5527cat >>confdefs.h <<_ACEOF
5528#define SIZEOF_TIME_T $ac_cv_sizeof_time_t
5529_ACEOF
5530
5531
5532# The cast to long int works around a bug in the HP C Compiler
5533# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5534# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5535# This bug is HP SR number 8606223364.
5536{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
5537$as_echo_n "checking size of long... " >&6; }
5538if ${ac_cv_sizeof_long+:} false; then :
5539 $as_echo_n "(cached) " >&6
5540else
5541 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
5542
5543else
5544 if test "$ac_cv_type_long" = yes; then
5545 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5546$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5547as_fn_error 77 "cannot compute sizeof (long)
5548See \`config.log' for more details" "$LINENO" 5; }
5549 else
5550 ac_cv_sizeof_long=0
5551 fi
5552fi
5553
5554fi
5555{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
5556$as_echo "$ac_cv_sizeof_long" >&6; }
5557
5558
5559
5560cat >>confdefs.h <<_ACEOF
5561#define SIZEOF_LONG $ac_cv_sizeof_long
5562_ACEOF
5563
5564
Alistair Delvabeaee832021-02-24 11:27:23 -08005565
Yi Kong39bbd962022-01-09 19:41:38 +08005566seek_function=
5567
5568if test $ac_cv_sizeof_off_t -ge 8 ; then
5569 seek_function=lseek
Alistair Delvabeaee832021-02-24 11:27:23 -08005570fi
5571
Yi Kong39bbd962022-01-09 19:41:38 +08005572if test X$seek_function = X ; then
Alistair Delvabeaee832021-02-24 11:27:23 -08005573
Yi Kong39bbd962022-01-09 19:41:38 +08005574$as_echo "#define _LARGEFILE64_SOURCE 1" >>confdefs.h
Alistair Delvabeaee832021-02-24 11:27:23 -08005575
Yi Kong39bbd962022-01-09 19:41:38 +08005576 ac_fn_c_check_type "$LINENO" "off64_t" "ac_cv_type_off64_t" "$ac_includes_default"
5577if test "x$ac_cv_type_off64_t" = xyes; then :
Alistair Delvabeaee832021-02-24 11:27:23 -08005578
5579cat >>confdefs.h <<_ACEOF
Yi Kong39bbd962022-01-09 19:41:38 +08005580#define HAVE_OFF64_T 1
Alistair Delvabeaee832021-02-24 11:27:23 -08005581_ACEOF
5582
Yi Kong39bbd962022-01-09 19:41:38 +08005583 for ac_func in lseek64
5584do :
5585 ac_fn_c_check_func "$LINENO" "lseek64" "ac_cv_func_lseek64"
5586if test "x$ac_cv_func_lseek64" = xyes; then :
5587 cat >>confdefs.h <<_ACEOF
5588#define HAVE_LSEEK64 1
Alistair Delvabeaee832021-02-24 11:27:23 -08005589_ACEOF
Yi Kong39bbd962022-01-09 19:41:38 +08005590 seek_function=lseek64
Alistair Delvabeaee832021-02-24 11:27:23 -08005591fi
Yi Kong39bbd962022-01-09 19:41:38 +08005592done
Alistair Delvabeaee832021-02-24 11:27:23 -08005593
Alistair Delvabeaee832021-02-24 11:27:23 -08005594
5595fi
5596
Yi Kong39bbd962022-01-09 19:41:38 +08005597 for ac_func in stat64
5598do :
5599 ac_fn_c_check_func "$LINENO" "stat64" "ac_cv_func_stat64"
5600if test "x$ac_cv_func_stat64" = xyes; then :
5601 cat >>confdefs.h <<_ACEOF
5602#define HAVE_STAT64 1
5603_ACEOF
5604
5605fi
5606done
5607
5608 if test X$seek_function = Xlseek64 ; then
5609 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether lseek64 declared in unistd.h" >&5
Alistair Delvabeaee832021-02-24 11:27:23 -08005610$as_echo_n "checking whether lseek64 declared in unistd.h... " >&6; }
Yi Kong39bbd962022-01-09 19:41:38 +08005611 if ${mtools_cv_have_lseek64_prototype+:} false; then :
Alistair Delvabeaee832021-02-24 11:27:23 -08005612 $as_echo_n "(cached) " >&6
5613else
5614 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5615/* end confdefs.h. */
5616
Yi Kong39bbd962022-01-09 19:41:38 +08005617 #define _LARGEFILE64_SOURCE
5618 #include <sys/types.h>
5619 #include <unistd.h>
Alistair Delvabeaee832021-02-24 11:27:23 -08005620
5621int
5622main ()
5623{
5624extern int lseek64(int);
5625 ;
5626 return 0;
5627}
5628_ACEOF
5629if ac_fn_c_try_compile "$LINENO"; then :
5630 mtools_cv_have_lseek64_prototype=no
5631else
5632 mtools_cv_have_lseek64_prototype=yes
5633fi
5634rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5635fi
5636
Yi Kong39bbd962022-01-09 19:41:38 +08005637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $mtools_cv_have_lseek64_prototype" >&5
Alistair Delvabeaee832021-02-24 11:27:23 -08005638$as_echo "$mtools_cv_have_lseek64_prototype" >&6; }
Yi Kong39bbd962022-01-09 19:41:38 +08005639 if test "$mtools_cv_have_lseek64_prototype" = yes; then
Alistair Delvabeaee832021-02-24 11:27:23 -08005640
5641$as_echo "#define HAVE_LSEEK64_PROTOTYPE 1" >>confdefs.h
5642
Yi Kong39bbd962022-01-09 19:41:38 +08005643 fi
5644 fi
Alistair Delvabeaee832021-02-24 11:27:23 -08005645fi
5646
Yi Kong39bbd962022-01-09 19:41:38 +08005647if test X$seek_function = X ; then
5648
5649$as_echo "#define _LARGEFILE_SOURCE 1" >>confdefs.h
5650
5651 ac_fn_c_check_type "$LINENO" "loff_t" "ac_cv_type_loff_t" "$ac_includes_default"
5652if test "x$ac_cv_type_loff_t" = xyes; then :
5653
5654cat >>confdefs.h <<_ACEOF
5655#define HAVE_LOFF_T 1
5656_ACEOF
5657
5658 for ac_func in llseek
5659do :
5660 ac_fn_c_check_func "$LINENO" "llseek" "ac_cv_func_llseek"
5661if test "x$ac_cv_func_llseek" = xyes; then :
5662 cat >>confdefs.h <<_ACEOF
5663#define HAVE_LLSEEK 1
5664_ACEOF
5665 seek_function=llseek
5666fi
5667done
5668
5669
5670fi
5671ac_fn_c_check_type "$LINENO" "offset_t" "ac_cv_type_offset_t" "$ac_includes_default"
5672if test "x$ac_cv_type_offset_t" = xyes; then :
5673
5674cat >>confdefs.h <<_ACEOF
5675#define HAVE_OFFSET_T 1
5676_ACEOF
5677
5678 for ac_func in llseek
5679do :
5680 ac_fn_c_check_func "$LINENO" "llseek" "ac_cv_func_llseek"
5681if test "x$ac_cv_func_llseek" = xyes; then :
5682 cat >>confdefs.h <<_ACEOF
5683#define HAVE_LLSEEK 1
5684_ACEOF
5685 seek_function=llseek
5686fi
5687done
5688
5689
5690fi
5691ac_fn_c_check_type "$LINENO" "long long" "ac_cv_type_long_long" "$ac_includes_default"
5692if test "x$ac_cv_type_long_long" = xyes; then :
5693
5694cat >>confdefs.h <<_ACEOF
5695#define HAVE_LONG_LONG 1
5696_ACEOF
5697
5698 for ac_func in llseek
5699do :
5700 ac_fn_c_check_func "$LINENO" "llseek" "ac_cv_func_llseek"
5701if test "x$ac_cv_func_llseek" = xyes; then :
5702 cat >>confdefs.h <<_ACEOF
5703#define HAVE_LLSEEK 1
5704_ACEOF
5705 seek_function=llseek
5706fi
5707done
5708
5709
5710fi
5711
5712
5713 if test X$seek_function = Xllseek ; then
5714 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether llseek declared in unistd.h" >&5
5715$as_echo_n "checking whether llseek declared in unistd.h... " >&6; }
5716 if ${mtools_cv_have_llseek_prototype+:} false; then :
5717 $as_echo_n "(cached) " >&6
5718else
5719 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5720/* end confdefs.h. */
5721
5722 #define _LARGEFILE_SOURCE
5723 #define _LARGEFILE64_SOURCE
5724 #include <sys/types.h>
5725 #include <unistd.h>
5726
5727int
5728main ()
5729{
5730extern int llseek(int);
5731 ;
5732 return 0;
5733}
5734_ACEOF
5735if ac_fn_c_try_compile "$LINENO"; then :
5736 mtools_cv_have_llseek_prototype=no
5737else
5738 mtools_cv_have_llseek_prototype=yes
5739fi
5740rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5741fi
5742
5743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $mtools_cv_have_llseek_prototype" >&5
5744$as_echo "$mtools_cv_have_llseek_prototype" >&6; }
5745 if test "$mtools_cv_have_llseek_prototype" = yes; then
5746
5747$as_echo "#define HAVE_LLSEEK_PROTOTYPE 1" >>confdefs.h
5748
5749 fi
5750 fi
5751fi
Alistair Delvabeaee832021-02-24 11:27:23 -08005752
5753for ac_func in htons
5754do :
5755 ac_fn_c_check_func "$LINENO" "htons" "ac_cv_func_htons"
5756if test "x$ac_cv_func_htons" = xyes; then :
5757 cat >>confdefs.h <<_ACEOF
5758#define HAVE_HTONS 1
5759_ACEOF
5760
5761fi
5762done
5763
5764
5765
5766{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
5767$as_echo_n "checking for an ANSI C-conforming const... " >&6; }
5768if ${ac_cv_c_const+:} false; then :
5769 $as_echo_n "(cached) " >&6
5770else
5771 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5772/* end confdefs.h. */
5773
5774int
5775main ()
5776{
5777
5778#ifndef __cplusplus
5779 /* Ultrix mips cc rejects this sort of thing. */
5780 typedef int charset[2];
5781 const charset cs = { 0, 0 };
5782 /* SunOS 4.1.1 cc rejects this. */
5783 char const *const *pcpcc;
5784 char **ppc;
5785 /* NEC SVR4.0.2 mips cc rejects this. */
5786 struct point {int x, y;};
5787 static struct point const zero = {0,0};
5788 /* AIX XL C 1.02.0.0 rejects this.
5789 It does not let you subtract one const X* pointer from another in
5790 an arm of an if-expression whose if-part is not a constant
5791 expression */
5792 const char *g = "string";
5793 pcpcc = &g + (g ? g-g : 0);
5794 /* HPUX 7.0 cc rejects these. */
5795 ++pcpcc;
5796 ppc = (char**) pcpcc;
5797 pcpcc = (char const *const *) ppc;
5798 { /* SCO 3.2v4 cc rejects this sort of thing. */
5799 char tx;
5800 char *t = &tx;
5801 char const *s = 0 ? (char *) 0 : (char const *) 0;
5802
5803 *t++ = 0;
5804 if (s) return 0;
5805 }
5806 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
5807 int x[] = {25, 17};
5808 const int *foo = &x[0];
5809 ++foo;
5810 }
5811 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
5812 typedef const int *iptr;
5813 iptr p = 0;
5814 ++p;
5815 }
5816 { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
5817 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
5818 struct s { int j; const int *ap[3]; } bx;
5819 struct s *b = &bx; b->j = 5;
5820 }
5821 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
5822 const int foo = 10;
5823 if (!foo) return 0;
5824 }
5825 return !cs[0] && !zero.x;
5826#endif
5827
5828 ;
5829 return 0;
5830}
5831_ACEOF
5832if ac_fn_c_try_compile "$LINENO"; then :
5833 ac_cv_c_const=yes
5834else
5835 ac_cv_c_const=no
5836fi
5837rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5838fi
5839{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
5840$as_echo "$ac_cv_c_const" >&6; }
5841if test $ac_cv_c_const = no; then
5842
5843$as_echo "#define const /**/" >>confdefs.h
5844
5845fi
5846
5847{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
5848$as_echo_n "checking for inline... " >&6; }
5849if ${ac_cv_c_inline+:} false; then :
5850 $as_echo_n "(cached) " >&6
5851else
5852 ac_cv_c_inline=no
5853for ac_kw in inline __inline__ __inline; do
5854 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5855/* end confdefs.h. */
5856#ifndef __cplusplus
5857typedef int foo_t;
5858static $ac_kw foo_t static_foo () {return 0; }
5859$ac_kw foo_t foo () {return 0; }
5860#endif
5861
5862_ACEOF
5863if ac_fn_c_try_compile "$LINENO"; then :
5864 ac_cv_c_inline=$ac_kw
5865fi
5866rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5867 test "$ac_cv_c_inline" != no && break
5868done
5869
5870fi
5871{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
5872$as_echo "$ac_cv_c_inline" >&6; }
5873
5874case $ac_cv_c_inline in
5875 inline | yes) ;;
5876 *)
5877 case $ac_cv_c_inline in
5878 no) ac_val=;;
5879 *) ac_val=$ac_cv_c_inline;;
5880 esac
5881 cat >>confdefs.h <<_ACEOF
5882#ifndef __cplusplus
5883#define inline $ac_val
5884#endif
5885_ACEOF
5886 ;;
5887esac
5888
5889ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
5890if test "x$ac_cv_type_size_t" = xyes; then :
5891
5892else
5893
5894cat >>confdefs.h <<_ACEOF
5895#define size_t unsigned int
5896_ACEOF
5897
5898fi
5899
5900{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
5901$as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
5902if ${ac_cv_header_time+:} false; then :
5903 $as_echo_n "(cached) " >&6
5904else
5905 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5906/* end confdefs.h. */
5907#include <sys/types.h>
5908#include <sys/time.h>
5909#include <time.h>
5910
5911int
5912main ()
5913{
5914if ((struct tm *) 0)
5915return 0;
5916 ;
5917 return 0;
5918}
5919_ACEOF
5920if ac_fn_c_try_compile "$LINENO"; then :
5921 ac_cv_header_time=yes
5922else
5923 ac_cv_header_time=no
5924fi
5925rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5926fi
5927{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
5928$as_echo "$ac_cv_header_time" >&6; }
5929if test $ac_cv_header_time = yes; then
5930
5931$as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
5932
5933fi
5934
5935{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
5936$as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
5937if ${ac_cv_struct_tm+:} false; then :
5938 $as_echo_n "(cached) " >&6
5939else
5940 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5941/* end confdefs.h. */
5942#include <sys/types.h>
5943#include <time.h>
5944
5945int
5946main ()
5947{
5948struct tm tm;
5949 int *p = &tm.tm_sec;
5950 return !p;
5951 ;
5952 return 0;
5953}
5954_ACEOF
5955if ac_fn_c_try_compile "$LINENO"; then :
5956 ac_cv_struct_tm=time.h
5957else
5958 ac_cv_struct_tm=sys/time.h
5959fi
5960rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5961fi
5962{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
5963$as_echo "$ac_cv_struct_tm" >&6; }
5964if test $ac_cv_struct_tm = sys/time.h; then
5965
5966$as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
5967
5968fi
5969
5970
5971
5972{ $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
5973$as_echo_n "checking return type of signal handlers... " >&6; }
5974if ${ac_cv_type_signal+:} false; then :
5975 $as_echo_n "(cached) " >&6
5976else
5977 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5978/* end confdefs.h. */
5979#include <sys/types.h>
5980#include <signal.h>
5981
5982int
5983main ()
5984{
5985return *(signal (0, 0)) (0) == 1;
5986 ;
5987 return 0;
5988}
5989_ACEOF
5990if ac_fn_c_try_compile "$LINENO"; then :
5991 ac_cv_type_signal=int
5992else
5993 ac_cv_type_signal=void
5994fi
5995rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5996fi
5997{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
5998$as_echo "$ac_cv_type_signal" >&6; }
5999
6000cat >>confdefs.h <<_ACEOF
6001#define RETSIGTYPE $ac_cv_type_signal
6002_ACEOF
6003
6004
6005for ac_func in strerror random srandom strchr strrchr lockf flock \
6006strcasecmp strncasecmp strnlen atexit on_exit getpass memmove \
6007strdup strndup strcspn strspn strtoul strtol strtoll strtoi strtoui \
6008memcpy strpbrk memset setenv seteuid setresuid setpgrp \
Yi Kong39bbd962022-01-09 19:41:38 +08006009tcsetattr tcflush basename fchdir media_oldaliases \
6010snprintf setlocale toupper_l strncasecmp_l \
Alistair Delvabeaee832021-02-24 11:27:23 -08006011wcsdup wcscasecmp wcsnlen putwc \
6012getuserid getgroupid \
6013alarm sigaction usleep
6014do :
6015 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
6016ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
6017if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
6018 cat >>confdefs.h <<_ACEOF
6019#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
6020_ACEOF
6021
6022fi
6023done
6024
6025
6026
Alistair Delvabeaee832021-02-24 11:27:23 -08006027for ac_func in utimes utime
6028do :
6029 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
6030ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
6031if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
6032 cat >>confdefs.h <<_ACEOF
6033#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
6034_ACEOF
6035 break
6036fi
6037done
6038
6039for ac_func in tzset gettimeofday
6040do :
6041 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
6042ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
6043if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
6044 cat >>confdefs.h <<_ACEOF
6045#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
6046_ACEOF
6047
6048fi
6049done
6050
6051
6052
6053{ $as_echo "$as_me:${as_lineno-$LINENO}: checking declaration of sys_errlist" >&5
6054$as_echo_n "checking declaration of sys_errlist... " >&6; }
6055if ${cf_cv_dcl_sys_errlist+:} false; then :
6056 $as_echo_n "(cached) " >&6
6057else
6058
6059 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6060/* end confdefs.h. */
6061
6062#include <stdio.h>
6063#include <sys/types.h>
6064#include <errno.h>
6065int
6066main ()
6067{
6068char *c = (char *) *sys_errlist
6069 ;
6070 return 0;
6071}
6072_ACEOF
6073if ac_fn_c_try_compile "$LINENO"; then :
6074 cf_cv_dcl_sys_errlist=yes
6075else
6076 cf_cv_dcl_sys_errlist=no
6077fi
6078rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6079fi
6080
6081{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cf_cv_dcl_sys_errlist" >&5
6082$as_echo "$cf_cv_dcl_sys_errlist" >&6; }
6083test $cf_cv_dcl_sys_errlist = no ||
6084$as_echo "#define DECL_SYS_ERRLIST 1" >>confdefs.h
6085
6086
6087
6088
6089host_os0=`echo $host_os | sed 's/-/_/g'`
6090host_os1=`echo $host_os0 | sed 's/\./_/g'`
6091host_os2=`echo $host_os0 | sed 's/^\([^.]*\)\..*$/\1/g'`
6092host_os3=`echo $host_os2 | sed 's/^\([^0-9]*\)[0-9]*$/\1/g'`
6093host_cpu1=`echo $host_cpu | sed 's/\./_/g'`
6094host_vendor1=`echo $host_vendor | sed 's/\./_/g'`
6095HOST_ID="-DCPU_$host_cpu1 -DVENDOR_$host_vendor1 -DOS_$host_os1"
6096if [ $host_os1 != $host_os2 ] ; then
6097 HOST_ID="$HOST_ID -DOS_$host_os2"
6098fi
6099if [ $host_os1 != $host_os3 ] && [ $host_os2 != $host_os3 ] ; then
6100 HOST_ID="$HOST_ID -DOS_$host_os3"
6101fi
6102
6103my_host_os=`echo $host_os1 $host_os2 $host_os3 | sort -u`
6104objs=`echo $srcdir/*.c | sed 's/\.c$/.o/' `
6105if [ "X$GCC" = "Xyes" ] ; then
6106 Wall=-Wall
6107 if [ "$host_os3" = sunos ] ; then
6108 Wall=""
6109 fi
6110 if [ "$host_os3" = ultrix ] ; then
6111 Wall=""
6112 fi
6113 if [ "$host_os3" = linux ] ; then
6114 CFLAGS="$CFLAGS -fno-strength-reduce"
6115 fi
6116 if [ "$host_os3" = aux ] ; then
6117 CFLAGS="$CFLAGS -ZP"
6118 MACHDEPLIBS="-lposix -UTIL"
6119 fi
6120 case "${host}" in
6121 arm*-*-linux) CFLAGS="$CFLAGS -mstructure-size-boundary=8";;
6122 esac
6123 CFLAGS="$CFLAGS $Wall"
6124else
6125 if [ $host_os3 = hpux ] ; then
6126 CPPFLAGS="$CPPFLAGS -Ae"
6127 fi
6128
6129 if [ $host_os3 = xenix ] ; then
6130 CFLAGS="$CFLAGS -M2e"
6131 fi
6132fi
6133
6134if [ $host_os3 = hpux ] ; then
6135 LDFLAGS="$LDFLAGS -z"
6136fi
6137
6138if [ $host_os3 = xenix ] ; then
6139 LDFLAGS="$LDFLAGS -M2e -i -f 5000"
6140fi
6141
6142if [ $host_os2 = sysv4 ] ; then
6143 SHLIB="-lc -L/usr/ucblib -lucb"
6144else
6145 SHLIB=""
6146fi
6147
6148if [ $host_os3 = isc ] ; then
6149 CFLAGS="$CFLAGS -D_SYSV3"
6150 SHLIB="-lc_s"
6151fi
6152
6153if [ $host_os3 = solaris -a x$newVold = xxyes ] ; then
6154 SHLIB="$SHLIB -s -lvolmgt"
6155fi
6156
6157if [ $host_os3 = nextstep ] ; then
6158 CFLAGS="$CFLAGS -DBSD"
6159 SHLIB=""
6160fi
6161
6162if [ -d /usr/5lib ] ; then
6163 extralibdir=-L/usr/5lib
6164fi
6165
6166
6167
6168{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
6169$as_echo_n "checking for X... " >&6; }
6170
6171
6172# Check whether --with-x was given.
6173if test "${with_x+set}" = set; then :
6174 withval=$with_x;
6175fi
6176
6177# $have_x is `yes', `no', `disabled', or empty when we do not yet know.
6178if test "x$with_x" = xno; then
6179 # The user explicitly disabled X.
6180 have_x=disabled
6181else
6182 case $x_includes,$x_libraries in #(
6183 *\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5;; #(
6184 *,NONE | NONE,*) if ${ac_cv_have_x+:} false; then :
6185 $as_echo_n "(cached) " >&6
6186else
6187 # One or both of the vars are not set, and there is no cached value.
6188ac_x_includes=no ac_x_libraries=no
6189rm -f -r conftest.dir
6190if mkdir conftest.dir; then
6191 cd conftest.dir
6192 cat >Imakefile <<'_ACEOF'
6193incroot:
6194 @echo incroot='${INCROOT}'
6195usrlibdir:
6196 @echo usrlibdir='${USRLIBDIR}'
6197libdir:
6198 @echo libdir='${LIBDIR}'
6199_ACEOF
6200 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
6201 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
6202 for ac_var in incroot usrlibdir libdir; do
6203 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
6204 done
6205 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
6206 for ac_extension in a so sl dylib la dll; do
6207 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
6208 test -f "$ac_im_libdir/libX11.$ac_extension"; then
6209 ac_im_usrlibdir=$ac_im_libdir; break
6210 fi
6211 done
6212 # Screen out bogus values from the imake configuration. They are
6213 # bogus both because they are the default anyway, and because
6214 # using them would break gcc on systems where it needs fixed includes.
6215 case $ac_im_incroot in
6216 /usr/include) ac_x_includes= ;;
6217 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
6218 esac
6219 case $ac_im_usrlibdir in
6220 /usr/lib | /usr/lib64 | /lib | /lib64) ;;
6221 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
6222 esac
6223 fi
6224 cd ..
6225 rm -f -r conftest.dir
6226fi
6227
6228# Standard set of common directories for X headers.
6229# Check X11 before X11Rn because it is often a symlink to the current release.
6230ac_x_header_dirs='
6231/usr/X11/include
6232/usr/X11R7/include
6233/usr/X11R6/include
6234/usr/X11R5/include
6235/usr/X11R4/include
6236
6237/usr/include/X11
6238/usr/include/X11R7
6239/usr/include/X11R6
6240/usr/include/X11R5
6241/usr/include/X11R4
6242
6243/usr/local/X11/include
6244/usr/local/X11R7/include
6245/usr/local/X11R6/include
6246/usr/local/X11R5/include
6247/usr/local/X11R4/include
6248
6249/usr/local/include/X11
6250/usr/local/include/X11R7
6251/usr/local/include/X11R6
6252/usr/local/include/X11R5
6253/usr/local/include/X11R4
6254
6255/usr/X386/include
6256/usr/x386/include
6257/usr/XFree86/include/X11
6258
6259/usr/include
6260/usr/local/include
6261/usr/unsupported/include
6262/usr/athena/include
6263/usr/local/x11r5/include
6264/usr/lpp/Xamples/include
6265
6266/usr/openwin/include
6267/usr/openwin/share/include'
6268
6269if test "$ac_x_includes" = no; then
6270 # Guess where to find include files, by looking for Xlib.h.
6271 # First, try using that file with no special directory specified.
6272 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6273/* end confdefs.h. */
6274#include <X11/Xlib.h>
6275_ACEOF
6276if ac_fn_c_try_cpp "$LINENO"; then :
6277 # We can compile using X headers with no special include directory.
6278ac_x_includes=
6279else
6280 for ac_dir in $ac_x_header_dirs; do
6281 if test -r "$ac_dir/X11/Xlib.h"; then
6282 ac_x_includes=$ac_dir
6283 break
6284 fi
6285done
6286fi
6287rm -f conftest.err conftest.i conftest.$ac_ext
6288fi # $ac_x_includes = no
6289
6290if test "$ac_x_libraries" = no; then
6291 # Check for the libraries.
6292 # See if we find them without any special options.
6293 # Don't add to $LIBS permanently.
6294 ac_save_LIBS=$LIBS
6295 LIBS="-lX11 $LIBS"
6296 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6297/* end confdefs.h. */
6298#include <X11/Xlib.h>
6299int
6300main ()
6301{
6302XrmInitialize ()
6303 ;
6304 return 0;
6305}
6306_ACEOF
6307if ac_fn_c_try_link "$LINENO"; then :
6308 LIBS=$ac_save_LIBS
6309# We can link X programs with no special library path.
6310ac_x_libraries=
6311else
6312 LIBS=$ac_save_LIBS
6313for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
6314do
6315 # Don't even attempt the hair of trying to link an X program!
6316 for ac_extension in a so sl dylib la dll; do
6317 if test -r "$ac_dir/libX11.$ac_extension"; then
6318 ac_x_libraries=$ac_dir
6319 break 2
6320 fi
6321 done
6322done
6323fi
6324rm -f core conftest.err conftest.$ac_objext \
6325 conftest$ac_exeext conftest.$ac_ext
6326fi # $ac_x_libraries = no
6327
6328case $ac_x_includes,$ac_x_libraries in #(
6329 no,* | *,no | *\'*)
6330 # Didn't find X, or a directory has "'" in its name.
6331 ac_cv_have_x="have_x=no";; #(
6332 *)
6333 # Record where we found X for the cache.
6334 ac_cv_have_x="have_x=yes\
6335 ac_x_includes='$ac_x_includes'\
6336 ac_x_libraries='$ac_x_libraries'"
6337esac
6338fi
6339;; #(
6340 *) have_x=yes;;
6341 esac
6342 eval "$ac_cv_have_x"
6343fi # $with_x != no
6344
6345if test "$have_x" != yes; then
6346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
6347$as_echo "$have_x" >&6; }
6348 no_x=yes
6349else
6350 # If each of the values was on the command line, it overrides each guess.
6351 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
6352 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
6353 # Update the cache value to reflect the command line values.
6354 ac_cv_have_x="have_x=yes\
6355 ac_x_includes='$x_includes'\
6356 ac_x_libraries='$x_libraries'"
6357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
6358$as_echo "libraries $x_libraries, headers $x_includes" >&6; }
6359fi
6360
6361if test "$no_x" = yes; then
6362 # Not all programs may use this symbol, but it does not hurt to define it.
6363
6364$as_echo "#define X_DISPLAY_MISSING 1" >>confdefs.h
6365
6366 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
6367else
6368 if test -n "$x_includes"; then
6369 X_CFLAGS="$X_CFLAGS -I$x_includes"
6370 fi
6371
6372 # It would also be nice to do this for all -L options, not just this one.
6373 if test -n "$x_libraries"; then
6374 X_LIBS="$X_LIBS -L$x_libraries"
6375 # For Solaris; some versions of Sun CC require a space after -R and
6376 # others require no space. Words are not sufficient . . . .
6377 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -R must be followed by a space" >&5
6378$as_echo_n "checking whether -R must be followed by a space... " >&6; }
6379 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
6380 ac_xsave_c_werror_flag=$ac_c_werror_flag
6381 ac_c_werror_flag=yes
6382 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6383/* end confdefs.h. */
6384
6385int
6386main ()
6387{
6388
6389 ;
6390 return 0;
6391}
6392_ACEOF
6393if ac_fn_c_try_link "$LINENO"; then :
6394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6395$as_echo "no" >&6; }
6396 X_LIBS="$X_LIBS -R$x_libraries"
6397else
6398 LIBS="$ac_xsave_LIBS -R $x_libraries"
6399 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6400/* end confdefs.h. */
6401
6402int
6403main ()
6404{
6405
6406 ;
6407 return 0;
6408}
6409_ACEOF
6410if ac_fn_c_try_link "$LINENO"; then :
6411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6412$as_echo "yes" >&6; }
6413 X_LIBS="$X_LIBS -R $x_libraries"
6414else
6415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: neither works" >&5
6416$as_echo "neither works" >&6; }
6417fi
6418rm -f core conftest.err conftest.$ac_objext \
6419 conftest$ac_exeext conftest.$ac_ext
6420fi
6421rm -f core conftest.err conftest.$ac_objext \
6422 conftest$ac_exeext conftest.$ac_ext
6423 ac_c_werror_flag=$ac_xsave_c_werror_flag
6424 LIBS=$ac_xsave_LIBS
6425 fi
6426
6427 # Check for system-dependent libraries X programs must link with.
6428 # Do this before checking for the system-independent R6 libraries
6429 # (-lICE), since we may need -lsocket or whatever for X linking.
6430
6431 if test "$ISC" = yes; then
6432 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
6433 else
6434 # Martyn Johnson says this is needed for Ultrix, if the X
6435 # libraries were built with DECnet support. And Karl Berry says
6436 # the Alpha needs dnet_stub (dnet does not exist).
6437 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
6438 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6439/* end confdefs.h. */
6440
6441/* Override any GCC internal prototype to avoid an error.
6442 Use char because int might match the return type of a GCC
6443 builtin and then its argument prototype would still apply. */
6444#ifdef __cplusplus
6445extern "C"
6446#endif
6447char XOpenDisplay ();
6448int
6449main ()
6450{
6451return XOpenDisplay ();
6452 ;
6453 return 0;
6454}
6455_ACEOF
6456if ac_fn_c_try_link "$LINENO"; then :
6457
6458else
6459 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5
6460$as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
6461if ${ac_cv_lib_dnet_dnet_ntoa+:} false; then :
6462 $as_echo_n "(cached) " >&6
6463else
6464 ac_check_lib_save_LIBS=$LIBS
6465LIBS="-ldnet $LIBS"
6466cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6467/* end confdefs.h. */
6468
6469/* Override any GCC internal prototype to avoid an error.
6470 Use char because int might match the return type of a GCC
6471 builtin and then its argument prototype would still apply. */
6472#ifdef __cplusplus
6473extern "C"
6474#endif
6475char dnet_ntoa ();
6476int
6477main ()
6478{
6479return dnet_ntoa ();
6480 ;
6481 return 0;
6482}
6483_ACEOF
6484if ac_fn_c_try_link "$LINENO"; then :
6485 ac_cv_lib_dnet_dnet_ntoa=yes
6486else
6487 ac_cv_lib_dnet_dnet_ntoa=no
6488fi
6489rm -f core conftest.err conftest.$ac_objext \
6490 conftest$ac_exeext conftest.$ac_ext
6491LIBS=$ac_check_lib_save_LIBS
6492fi
6493{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
6494$as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
6495if test "x$ac_cv_lib_dnet_dnet_ntoa" = xyes; then :
6496 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
6497fi
6498
6499 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
6500 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet_stub" >&5
6501$as_echo_n "checking for dnet_ntoa in -ldnet_stub... " >&6; }
6502if ${ac_cv_lib_dnet_stub_dnet_ntoa+:} false; then :
6503 $as_echo_n "(cached) " >&6
6504else
6505 ac_check_lib_save_LIBS=$LIBS
6506LIBS="-ldnet_stub $LIBS"
6507cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6508/* end confdefs.h. */
6509
6510/* Override any GCC internal prototype to avoid an error.
6511 Use char because int might match the return type of a GCC
6512 builtin and then its argument prototype would still apply. */
6513#ifdef __cplusplus
6514extern "C"
6515#endif
6516char dnet_ntoa ();
6517int
6518main ()
6519{
6520return dnet_ntoa ();
6521 ;
6522 return 0;
6523}
6524_ACEOF
6525if ac_fn_c_try_link "$LINENO"; then :
6526 ac_cv_lib_dnet_stub_dnet_ntoa=yes
6527else
6528 ac_cv_lib_dnet_stub_dnet_ntoa=no
6529fi
6530rm -f core conftest.err conftest.$ac_objext \
6531 conftest$ac_exeext conftest.$ac_ext
6532LIBS=$ac_check_lib_save_LIBS
6533fi
6534{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
6535$as_echo "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
6536if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = xyes; then :
6537 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
6538fi
6539
6540 fi
6541fi
6542rm -f core conftest.err conftest.$ac_objext \
6543 conftest$ac_exeext conftest.$ac_ext
6544 LIBS="$ac_xsave_LIBS"
6545
6546 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
6547 # to get the SysV transport functions.
6548 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
6549 # needs -lnsl.
6550 # The nsl library prevents programs from opening the X display
6551 # on Irix 5.2, according to T.E. Dickey.
6552 # The functions gethostbyname, getservbyname, and inet_addr are
6553 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
6554 ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
6555if test "x$ac_cv_func_gethostbyname" = xyes; then :
6556
6557fi
6558
6559 if test $ac_cv_func_gethostbyname = no; then
6560 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
6561$as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
6562if ${ac_cv_lib_nsl_gethostbyname+:} false; then :
6563 $as_echo_n "(cached) " >&6
6564else
6565 ac_check_lib_save_LIBS=$LIBS
6566LIBS="-lnsl $LIBS"
6567cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6568/* end confdefs.h. */
6569
6570/* Override any GCC internal prototype to avoid an error.
6571 Use char because int might match the return type of a GCC
6572 builtin and then its argument prototype would still apply. */
6573#ifdef __cplusplus
6574extern "C"
6575#endif
6576char gethostbyname ();
6577int
6578main ()
6579{
6580return gethostbyname ();
6581 ;
6582 return 0;
6583}
6584_ACEOF
6585if ac_fn_c_try_link "$LINENO"; then :
6586 ac_cv_lib_nsl_gethostbyname=yes
6587else
6588 ac_cv_lib_nsl_gethostbyname=no
6589fi
6590rm -f core conftest.err conftest.$ac_objext \
6591 conftest$ac_exeext conftest.$ac_ext
6592LIBS=$ac_check_lib_save_LIBS
6593fi
6594{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
6595$as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
6596if test "x$ac_cv_lib_nsl_gethostbyname" = xyes; then :
6597 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
6598fi
6599
6600 if test $ac_cv_lib_nsl_gethostbyname = no; then
6601 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lbsd" >&5
6602$as_echo_n "checking for gethostbyname in -lbsd... " >&6; }
6603if ${ac_cv_lib_bsd_gethostbyname+:} false; then :
6604 $as_echo_n "(cached) " >&6
6605else
6606 ac_check_lib_save_LIBS=$LIBS
6607LIBS="-lbsd $LIBS"
6608cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6609/* end confdefs.h. */
6610
6611/* Override any GCC internal prototype to avoid an error.
6612 Use char because int might match the return type of a GCC
6613 builtin and then its argument prototype would still apply. */
6614#ifdef __cplusplus
6615extern "C"
6616#endif
6617char gethostbyname ();
6618int
6619main ()
6620{
6621return gethostbyname ();
6622 ;
6623 return 0;
6624}
6625_ACEOF
6626if ac_fn_c_try_link "$LINENO"; then :
6627 ac_cv_lib_bsd_gethostbyname=yes
6628else
6629 ac_cv_lib_bsd_gethostbyname=no
6630fi
6631rm -f core conftest.err conftest.$ac_objext \
6632 conftest$ac_exeext conftest.$ac_ext
6633LIBS=$ac_check_lib_save_LIBS
6634fi
6635{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_gethostbyname" >&5
6636$as_echo "$ac_cv_lib_bsd_gethostbyname" >&6; }
6637if test "x$ac_cv_lib_bsd_gethostbyname" = xyes; then :
6638 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
6639fi
6640
6641 fi
6642 fi
6643
6644 # lieder@skyler.mavd.honeywell.com says without -lsocket,
6645 # socket/setsockopt and other routines are undefined under SCO ODT
6646 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
6647 # on later versions), says Simon Leinen: it contains gethostby*
6648 # variants that don't use the name server (or something). -lsocket
6649 # must be given before -lnsl if both are needed. We assume that
6650 # if connect needs -lnsl, so does gethostbyname.
6651 ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect"
6652if test "x$ac_cv_func_connect" = xyes; then :
6653
6654fi
6655
6656 if test $ac_cv_func_connect = no; then
6657 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5
6658$as_echo_n "checking for connect in -lsocket... " >&6; }
6659if ${ac_cv_lib_socket_connect+:} false; then :
6660 $as_echo_n "(cached) " >&6
6661else
6662 ac_check_lib_save_LIBS=$LIBS
6663LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
6664cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6665/* end confdefs.h. */
6666
6667/* Override any GCC internal prototype to avoid an error.
6668 Use char because int might match the return type of a GCC
6669 builtin and then its argument prototype would still apply. */
6670#ifdef __cplusplus
6671extern "C"
6672#endif
6673char connect ();
6674int
6675main ()
6676{
6677return connect ();
6678 ;
6679 return 0;
6680}
6681_ACEOF
6682if ac_fn_c_try_link "$LINENO"; then :
6683 ac_cv_lib_socket_connect=yes
6684else
6685 ac_cv_lib_socket_connect=no
6686fi
6687rm -f core conftest.err conftest.$ac_objext \
6688 conftest$ac_exeext conftest.$ac_ext
6689LIBS=$ac_check_lib_save_LIBS
6690fi
6691{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5
6692$as_echo "$ac_cv_lib_socket_connect" >&6; }
6693if test "x$ac_cv_lib_socket_connect" = xyes; then :
6694 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
6695fi
6696
6697 fi
6698
6699 # Guillermo Gomez says -lposix is necessary on A/UX.
6700 ac_fn_c_check_func "$LINENO" "remove" "ac_cv_func_remove"
6701if test "x$ac_cv_func_remove" = xyes; then :
6702
6703fi
6704
6705 if test $ac_cv_func_remove = no; then
6706 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for remove in -lposix" >&5
6707$as_echo_n "checking for remove in -lposix... " >&6; }
6708if ${ac_cv_lib_posix_remove+:} false; then :
6709 $as_echo_n "(cached) " >&6
6710else
6711 ac_check_lib_save_LIBS=$LIBS
6712LIBS="-lposix $LIBS"
6713cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6714/* end confdefs.h. */
6715
6716/* Override any GCC internal prototype to avoid an error.
6717 Use char because int might match the return type of a GCC
6718 builtin and then its argument prototype would still apply. */
6719#ifdef __cplusplus
6720extern "C"
6721#endif
6722char remove ();
6723int
6724main ()
6725{
6726return remove ();
6727 ;
6728 return 0;
6729}
6730_ACEOF
6731if ac_fn_c_try_link "$LINENO"; then :
6732 ac_cv_lib_posix_remove=yes
6733else
6734 ac_cv_lib_posix_remove=no
6735fi
6736rm -f core conftest.err conftest.$ac_objext \
6737 conftest$ac_exeext conftest.$ac_ext
6738LIBS=$ac_check_lib_save_LIBS
6739fi
6740{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix_remove" >&5
6741$as_echo "$ac_cv_lib_posix_remove" >&6; }
6742if test "x$ac_cv_lib_posix_remove" = xyes; then :
6743 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
6744fi
6745
6746 fi
6747
6748 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
6749 ac_fn_c_check_func "$LINENO" "shmat" "ac_cv_func_shmat"
6750if test "x$ac_cv_func_shmat" = xyes; then :
6751
6752fi
6753
6754 if test $ac_cv_func_shmat = no; then
6755 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shmat in -lipc" >&5
6756$as_echo_n "checking for shmat in -lipc... " >&6; }
6757if ${ac_cv_lib_ipc_shmat+:} false; then :
6758 $as_echo_n "(cached) " >&6
6759else
6760 ac_check_lib_save_LIBS=$LIBS
6761LIBS="-lipc $LIBS"
6762cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6763/* end confdefs.h. */
6764
6765/* Override any GCC internal prototype to avoid an error.
6766 Use char because int might match the return type of a GCC
6767 builtin and then its argument prototype would still apply. */
6768#ifdef __cplusplus
6769extern "C"
6770#endif
6771char shmat ();
6772int
6773main ()
6774{
6775return shmat ();
6776 ;
6777 return 0;
6778}
6779_ACEOF
6780if ac_fn_c_try_link "$LINENO"; then :
6781 ac_cv_lib_ipc_shmat=yes
6782else
6783 ac_cv_lib_ipc_shmat=no
6784fi
6785rm -f core conftest.err conftest.$ac_objext \
6786 conftest$ac_exeext conftest.$ac_ext
6787LIBS=$ac_check_lib_save_LIBS
6788fi
6789{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ipc_shmat" >&5
6790$as_echo "$ac_cv_lib_ipc_shmat" >&6; }
6791if test "x$ac_cv_lib_ipc_shmat" = xyes; then :
6792 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
6793fi
6794
6795 fi
6796 fi
6797
6798 # Check for libraries that X11R6 Xt/Xaw programs need.
6799 ac_save_LDFLAGS=$LDFLAGS
6800 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
6801 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
6802 # check for ICE first), but we must link in the order -lSM -lICE or
6803 # we get undefined symbols. So assume we have SM if we have ICE.
6804 # These have to be linked with before -lX11, unlike the other
6805 # libraries we check for below, so use a different variable.
6806 # John Interrante, Karl Berry
6807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IceConnectionNumber in -lICE" >&5
6808$as_echo_n "checking for IceConnectionNumber in -lICE... " >&6; }
6809if ${ac_cv_lib_ICE_IceConnectionNumber+:} false; then :
6810 $as_echo_n "(cached) " >&6
6811else
6812 ac_check_lib_save_LIBS=$LIBS
6813LIBS="-lICE $X_EXTRA_LIBS $LIBS"
6814cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6815/* end confdefs.h. */
6816
6817/* Override any GCC internal prototype to avoid an error.
6818 Use char because int might match the return type of a GCC
6819 builtin and then its argument prototype would still apply. */
6820#ifdef __cplusplus
6821extern "C"
6822#endif
6823char IceConnectionNumber ();
6824int
6825main ()
6826{
6827return IceConnectionNumber ();
6828 ;
6829 return 0;
6830}
6831_ACEOF
6832if ac_fn_c_try_link "$LINENO"; then :
6833 ac_cv_lib_ICE_IceConnectionNumber=yes
6834else
6835 ac_cv_lib_ICE_IceConnectionNumber=no
6836fi
6837rm -f core conftest.err conftest.$ac_objext \
6838 conftest$ac_exeext conftest.$ac_ext
6839LIBS=$ac_check_lib_save_LIBS
6840fi
6841{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
6842$as_echo "$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
6843if test "x$ac_cv_lib_ICE_IceConnectionNumber" = xyes; then :
6844 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
6845fi
6846
6847 LDFLAGS=$ac_save_LDFLAGS
6848
6849fi
6850
6851
6852# Check whether --enable-floppyd was given.
6853if test "${enable_floppyd+set}" = set; then :
6854 enableval=$enable_floppyd; if test x$enableval != x; then
6855 use_floppyd=$enableval
6856fi
6857fi
6858
6859
Alistair Delvabeaee832021-02-24 11:27:23 -08006860if test X$use_floppyd = X -a X$no_x = X ; then
6861 use_floppyd="yes"
6862fi
6863
6864if test X$use_floppyd = Xyes; then
6865 if test X$no_x = Xyes ; then
6866 echo "Floppyd needs X support" >&2
6867 echo "To compile without floppyd, use ./configure --disable-floppyd" >&2
6868 exit 1
6869 fi
6870 FLOPPYD="floppyd floppyd_installtest"
6871 BINFLOPPYD="\$(DESTDIR)\$(bindir)/floppyd \$(DESTDIR)\$(bindir)/floppyd_installtest"
Yi Kong39bbd962022-01-09 19:41:38 +08006872 FLOPPYD_IO_SRC=floppyd_io.c
6873 FLOPPYD_IO_OBJ=floppyd_io.o
Alistair Delvabeaee832021-02-24 11:27:23 -08006874
6875$as_echo "#define USE_FLOPPYD 1" >>confdefs.h
6876
6877 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether setpgrp takes no argument" >&5
6878$as_echo_n "checking whether setpgrp takes no argument... " >&6; }
6879if ${ac_cv_func_setpgrp_void+:} false; then :
6880 $as_echo_n "(cached) " >&6
6881else
6882 if test "$cross_compiling" = yes; then :
6883 as_fn_error $? "cannot check setpgrp when cross compiling" "$LINENO" 5
6884else
6885 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6886/* end confdefs.h. */
6887$ac_includes_default
6888int
6889main ()
6890{
6891/* If this system has a BSD-style setpgrp which takes arguments,
6892 setpgrp(1, 1) will fail with ESRCH and return -1, in that case
6893 exit successfully. */
6894 return setpgrp (1,1) != -1;
6895 ;
6896 return 0;
6897}
6898_ACEOF
6899if ac_fn_c_try_run "$LINENO"; then :
6900 ac_cv_func_setpgrp_void=no
6901else
6902 ac_cv_func_setpgrp_void=yes
6903fi
6904rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6905 conftest.$ac_objext conftest.beam conftest.$ac_ext
6906fi
6907
6908fi
6909{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_setpgrp_void" >&5
6910$as_echo "$ac_cv_func_setpgrp_void" >&6; }
6911if test $ac_cv_func_setpgrp_void = yes; then
6912
6913$as_echo "#define SETPGRP_VOID 1" >>confdefs.h
6914
6915fi
6916
Yi Kong39bbd962022-01-09 19:41:38 +08006917
6918 FLOPPYD_LIBS=""
6919 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XOpenDisplay in -lX11" >&5
6920$as_echo_n "checking for XOpenDisplay in -lX11... " >&6; }
6921if ${ac_cv_lib_X11_XOpenDisplay+:} false; then :
6922 $as_echo_n "(cached) " >&6
6923else
6924 ac_check_lib_save_LIBS=$LIBS
6925LIBS="-lX11 $LIBS"
6926cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6927/* end confdefs.h. */
6928
6929/* Override any GCC internal prototype to avoid an error.
6930 Use char because int might match the return type of a GCC
6931 builtin and then its argument prototype would still apply. */
6932#ifdef __cplusplus
6933extern "C"
6934#endif
6935char XOpenDisplay ();
6936int
6937main ()
6938{
6939return XOpenDisplay ();
6940 ;
6941 return 0;
6942}
6943_ACEOF
6944if ac_fn_c_try_link "$LINENO"; then :
6945 ac_cv_lib_X11_XOpenDisplay=yes
6946else
6947 ac_cv_lib_X11_XOpenDisplay=no
6948fi
6949rm -f core conftest.err conftest.$ac_objext \
6950 conftest$ac_exeext conftest.$ac_ext
6951LIBS=$ac_check_lib_save_LIBS
6952fi
6953{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_X11_XOpenDisplay" >&5
6954$as_echo "$ac_cv_lib_X11_XOpenDisplay" >&6; }
6955if test "x$ac_cv_lib_X11_XOpenDisplay" = xyes; then :
6956 FLOPPYD_LIBS="-lX11 $FLOPPYD_LIBS"
6957fi
6958
6959 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XauFileName in -lXau" >&5
6960$as_echo_n "checking for XauFileName in -lXau... " >&6; }
6961if ${ac_cv_lib_Xau_XauFileName+:} false; then :
6962 $as_echo_n "(cached) " >&6
6963else
6964 ac_check_lib_save_LIBS=$LIBS
6965LIBS="-lXau $LIBS"
6966cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6967/* end confdefs.h. */
6968
6969/* Override any GCC internal prototype to avoid an error.
6970 Use char because int might match the return type of a GCC
6971 builtin and then its argument prototype would still apply. */
6972#ifdef __cplusplus
6973extern "C"
6974#endif
6975char XauFileName ();
6976int
6977main ()
6978{
6979return XauFileName ();
6980 ;
6981 return 0;
6982}
6983_ACEOF
6984if ac_fn_c_try_link "$LINENO"; then :
6985 ac_cv_lib_Xau_XauFileName=yes
6986else
6987 ac_cv_lib_Xau_XauFileName=no
6988fi
6989rm -f core conftest.err conftest.$ac_objext \
6990 conftest$ac_exeext conftest.$ac_ext
6991LIBS=$ac_check_lib_save_LIBS
6992fi
6993{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xau_XauFileName" >&5
6994$as_echo "$ac_cv_lib_Xau_XauFileName" >&6; }
6995if test "x$ac_cv_lib_Xau_XauFileName" = xyes; then :
6996 FLOPPYD_LIBS="-lXau $FLOPPYD_LIBS"
6997fi
6998
Alistair Delvabeaee832021-02-24 11:27:23 -08006999else
7000 FLOPPYD=
7001 BINFLOPPYD=
Yi Kong39bbd962022-01-09 19:41:38 +08007002 FLOPPYD_IO_SRC=
7003 FLOPPYD_IO_OBJ=
7004 FLOPPYD_LIBS=
Alistair Delvabeaee832021-02-24 11:27:23 -08007005fi
7006
7007
7008
7009
7010
7011
7012
7013
7014
7015
Yi Kong39bbd962022-01-09 19:41:38 +08007016
7017
7018
7019
7020
Alistair Delvabeaee832021-02-24 11:27:23 -08007021ac_config_files="$ac_config_files Makefile"
7022
7023cat >confcache <<\_ACEOF
7024# This file is a shell script that caches the results of configure
7025# tests run on this system so they can be shared between configure
7026# scripts and configure runs, see configure's option --config-cache.
7027# It is not useful on other systems. If it contains results you don't
7028# want to keep, you may remove or edit it.
7029#
7030# config.status only pays attention to the cache file if you give it
7031# the --recheck option to rerun configure.
7032#
7033# `ac_cv_env_foo' variables (set or unset) will be overridden when
7034# loading this file, other *unset* `ac_cv_foo' will be assigned the
7035# following values.
7036
7037_ACEOF
7038
7039# The following way of writing the cache mishandles newlines in values,
7040# but we know of no workaround that is simple, portable, and efficient.
7041# So, we kill variables containing newlines.
7042# Ultrix sh set writes to stderr and can't be redirected directly,
7043# and sets the high bit in the cache file unless we assign to the vars.
7044(
7045 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
7046 eval ac_val=\$$ac_var
7047 case $ac_val in #(
7048 *${as_nl}*)
7049 case $ac_var in #(
7050 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
7051$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
7052 esac
7053 case $ac_var in #(
7054 _ | IFS | as_nl) ;; #(
7055 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
7056 *) { eval $ac_var=; unset $ac_var;} ;;
7057 esac ;;
7058 esac
7059 done
7060
7061 (set) 2>&1 |
7062 case $as_nl`(ac_space=' '; set) 2>&1` in #(
7063 *${as_nl}ac_space=\ *)
7064 # `set' does not quote correctly, so add quotes: double-quote
7065 # substitution turns \\\\ into \\, and sed turns \\ into \.
7066 sed -n \
7067 "s/'/'\\\\''/g;
7068 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
7069 ;; #(
7070 *)
7071 # `set' quotes correctly as required by POSIX, so do not add quotes.
7072 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
7073 ;;
7074 esac |
7075 sort
7076) |
7077 sed '
7078 /^ac_cv_env_/b end
7079 t clear
7080 :clear
7081 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
7082 t end
7083 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
7084 :end' >>confcache
7085if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
7086 if test -w "$cache_file"; then
7087 if test "x$cache_file" != "x/dev/null"; then
7088 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
7089$as_echo "$as_me: updating cache $cache_file" >&6;}
7090 if test ! -f "$cache_file" || test -h "$cache_file"; then
7091 cat confcache >"$cache_file"
7092 else
7093 case $cache_file in #(
7094 */* | ?:*)
7095 mv -f confcache "$cache_file"$$ &&
7096 mv -f "$cache_file"$$ "$cache_file" ;; #(
7097 *)
7098 mv -f confcache "$cache_file" ;;
7099 esac
7100 fi
7101 fi
7102 else
7103 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
7104$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
7105 fi
7106fi
7107rm -f confcache
7108
7109test "x$prefix" = xNONE && prefix=$ac_default_prefix
7110# Let make expand exec_prefix.
7111test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
7112
7113DEFS=-DHAVE_CONFIG_H
7114
7115ac_libobjs=
7116ac_ltlibobjs=
7117U=
7118for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
7119 # 1. Remove the extension, and $U if already installed.
7120 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
7121 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
7122 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
7123 # will be set to the directory where LIBOBJS objects are built.
7124 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
7125 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
7126done
7127LIBOBJS=$ac_libobjs
7128
7129LTLIBOBJS=$ac_ltlibobjs
7130
7131
7132
7133: "${CONFIG_STATUS=./config.status}"
7134ac_write_fail=0
7135ac_clean_files_save=$ac_clean_files
7136ac_clean_files="$ac_clean_files $CONFIG_STATUS"
7137{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
7138$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
7139as_write_fail=0
7140cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
7141#! $SHELL
7142# Generated by $as_me.
7143# Run this file to recreate the current configuration.
7144# Compiler output produced by configure, useful for debugging
7145# configure, is in config.log if it exists.
7146
7147debug=false
7148ac_cs_recheck=false
7149ac_cs_silent=false
7150
7151SHELL=\${CONFIG_SHELL-$SHELL}
7152export SHELL
7153_ASEOF
7154cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
7155## -------------------- ##
7156## M4sh Initialization. ##
7157## -------------------- ##
7158
7159# Be more Bourne compatible
7160DUALCASE=1; export DUALCASE # for MKS sh
7161if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
7162 emulate sh
7163 NULLCMD=:
7164 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
7165 # is contrary to our usage. Disable this feature.
7166 alias -g '${1+"$@"}'='"$@"'
7167 setopt NO_GLOB_SUBST
7168else
7169 case `(set -o) 2>/dev/null` in #(
7170 *posix*) :
7171 set -o posix ;; #(
7172 *) :
7173 ;;
7174esac
7175fi
7176
7177
7178as_nl='
7179'
7180export as_nl
7181# Printing a long string crashes Solaris 7 /usr/bin/printf.
7182as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
7183as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
7184as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
7185# Prefer a ksh shell builtin over an external printf program on Solaris,
7186# but without wasting forks for bash or zsh.
7187if test -z "$BASH_VERSION$ZSH_VERSION" \
7188 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
7189 as_echo='print -r --'
7190 as_echo_n='print -rn --'
7191elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
7192 as_echo='printf %s\n'
7193 as_echo_n='printf %s'
7194else
7195 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
7196 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
7197 as_echo_n='/usr/ucb/echo -n'
7198 else
7199 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
7200 as_echo_n_body='eval
7201 arg=$1;
7202 case $arg in #(
7203 *"$as_nl"*)
7204 expr "X$arg" : "X\\(.*\\)$as_nl";
7205 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
7206 esac;
7207 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
7208 '
7209 export as_echo_n_body
7210 as_echo_n='sh -c $as_echo_n_body as_echo'
7211 fi
7212 export as_echo_body
7213 as_echo='sh -c $as_echo_body as_echo'
7214fi
7215
7216# The user is always right.
7217if test "${PATH_SEPARATOR+set}" != set; then
7218 PATH_SEPARATOR=:
7219 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
7220 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
7221 PATH_SEPARATOR=';'
7222 }
7223fi
7224
7225
7226# IFS
7227# We need space, tab and new line, in precisely that order. Quoting is
7228# there to prevent editors from complaining about space-tab.
7229# (If _AS_PATH_WALK were called with IFS unset, it would disable word
7230# splitting by setting IFS to empty value.)
7231IFS=" "" $as_nl"
7232
7233# Find who we are. Look in the path if we contain no directory separator.
7234as_myself=
7235case $0 in #((
7236 *[\\/]* ) as_myself=$0 ;;
7237 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7238for as_dir in $PATH
7239do
7240 IFS=$as_save_IFS
7241 test -z "$as_dir" && as_dir=.
7242 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
7243 done
7244IFS=$as_save_IFS
7245
7246 ;;
7247esac
7248# We did not find ourselves, most probably we were run as `sh COMMAND'
7249# in which case we are not to be found in the path.
7250if test "x$as_myself" = x; then
7251 as_myself=$0
7252fi
7253if test ! -f "$as_myself"; then
7254 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
7255 exit 1
7256fi
7257
7258# Unset variables that we do not need and which cause bugs (e.g. in
7259# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
7260# suppresses any "Segmentation fault" message there. '((' could
7261# trigger a bug in pdksh 5.2.14.
7262for as_var in BASH_ENV ENV MAIL MAILPATH
7263do eval test x\${$as_var+set} = xset \
7264 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
7265done
7266PS1='$ '
7267PS2='> '
7268PS4='+ '
7269
7270# NLS nuisances.
7271LC_ALL=C
7272export LC_ALL
7273LANGUAGE=C
7274export LANGUAGE
7275
7276# CDPATH.
7277(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
7278
7279
7280# as_fn_error STATUS ERROR [LINENO LOG_FD]
7281# ----------------------------------------
7282# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
7283# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
7284# script with STATUS, using 1 if that was 0.
7285as_fn_error ()
7286{
7287 as_status=$1; test $as_status -eq 0 && as_status=1
7288 if test "$4"; then
7289 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
7290 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
7291 fi
7292 $as_echo "$as_me: error: $2" >&2
7293 as_fn_exit $as_status
7294} # as_fn_error
7295
7296
7297# as_fn_set_status STATUS
7298# -----------------------
7299# Set $? to STATUS, without forking.
7300as_fn_set_status ()
7301{
7302 return $1
7303} # as_fn_set_status
7304
7305# as_fn_exit STATUS
7306# -----------------
7307# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
7308as_fn_exit ()
7309{
7310 set +e
7311 as_fn_set_status $1
7312 exit $1
7313} # as_fn_exit
7314
7315# as_fn_unset VAR
7316# ---------------
7317# Portably unset VAR.
7318as_fn_unset ()
7319{
7320 { eval $1=; unset $1;}
7321}
7322as_unset=as_fn_unset
7323# as_fn_append VAR VALUE
7324# ----------------------
7325# Append the text in VALUE to the end of the definition contained in VAR. Take
7326# advantage of any shell optimizations that allow amortized linear growth over
7327# repeated appends, instead of the typical quadratic growth present in naive
7328# implementations.
7329if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
7330 eval 'as_fn_append ()
7331 {
7332 eval $1+=\$2
7333 }'
7334else
7335 as_fn_append ()
7336 {
7337 eval $1=\$$1\$2
7338 }
7339fi # as_fn_append
7340
7341# as_fn_arith ARG...
7342# ------------------
7343# Perform arithmetic evaluation on the ARGs, and store the result in the
7344# global $as_val. Take advantage of shells that can avoid forks. The arguments
7345# must be portable across $(()) and expr.
7346if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
7347 eval 'as_fn_arith ()
7348 {
7349 as_val=$(( $* ))
7350 }'
7351else
7352 as_fn_arith ()
7353 {
7354 as_val=`expr "$@" || test $? -eq 1`
7355 }
7356fi # as_fn_arith
7357
7358
7359if expr a : '\(a\)' >/dev/null 2>&1 &&
7360 test "X`expr 00001 : '.*\(...\)'`" = X001; then
7361 as_expr=expr
7362else
7363 as_expr=false
7364fi
7365
7366if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
7367 as_basename=basename
7368else
7369 as_basename=false
7370fi
7371
7372if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
7373 as_dirname=dirname
7374else
7375 as_dirname=false
7376fi
7377
7378as_me=`$as_basename -- "$0" ||
7379$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
7380 X"$0" : 'X\(//\)$' \| \
7381 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
7382$as_echo X/"$0" |
7383 sed '/^.*\/\([^/][^/]*\)\/*$/{
7384 s//\1/
7385 q
7386 }
7387 /^X\/\(\/\/\)$/{
7388 s//\1/
7389 q
7390 }
7391 /^X\/\(\/\).*/{
7392 s//\1/
7393 q
7394 }
7395 s/.*/./; q'`
7396
7397# Avoid depending upon Character Ranges.
7398as_cr_letters='abcdefghijklmnopqrstuvwxyz'
7399as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
7400as_cr_Letters=$as_cr_letters$as_cr_LETTERS
7401as_cr_digits='0123456789'
7402as_cr_alnum=$as_cr_Letters$as_cr_digits
7403
7404ECHO_C= ECHO_N= ECHO_T=
7405case `echo -n x` in #(((((
7406-n*)
7407 case `echo 'xy\c'` in
7408 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
7409 xy) ECHO_C='\c';;
7410 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
7411 ECHO_T=' ';;
7412 esac;;
7413*)
7414 ECHO_N='-n';;
7415esac
7416
7417rm -f conf$$ conf$$.exe conf$$.file
7418if test -d conf$$.dir; then
7419 rm -f conf$$.dir/conf$$.file
7420else
7421 rm -f conf$$.dir
7422 mkdir conf$$.dir 2>/dev/null
7423fi
7424if (echo >conf$$.file) 2>/dev/null; then
7425 if ln -s conf$$.file conf$$ 2>/dev/null; then
7426 as_ln_s='ln -s'
7427 # ... but there are two gotchas:
7428 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
7429 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
7430 # In both cases, we have to default to `cp -pR'.
7431 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
7432 as_ln_s='cp -pR'
7433 elif ln conf$$.file conf$$ 2>/dev/null; then
7434 as_ln_s=ln
7435 else
7436 as_ln_s='cp -pR'
7437 fi
7438else
7439 as_ln_s='cp -pR'
7440fi
7441rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
7442rmdir conf$$.dir 2>/dev/null
7443
7444
7445# as_fn_mkdir_p
7446# -------------
7447# Create "$as_dir" as a directory, including parents if necessary.
7448as_fn_mkdir_p ()
7449{
7450
7451 case $as_dir in #(
7452 -*) as_dir=./$as_dir;;
7453 esac
7454 test -d "$as_dir" || eval $as_mkdir_p || {
7455 as_dirs=
7456 while :; do
7457 case $as_dir in #(
7458 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
7459 *) as_qdir=$as_dir;;
7460 esac
7461 as_dirs="'$as_qdir' $as_dirs"
7462 as_dir=`$as_dirname -- "$as_dir" ||
7463$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7464 X"$as_dir" : 'X\(//\)[^/]' \| \
7465 X"$as_dir" : 'X\(//\)$' \| \
7466 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
7467$as_echo X"$as_dir" |
7468 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
7469 s//\1/
7470 q
7471 }
7472 /^X\(\/\/\)[^/].*/{
7473 s//\1/
7474 q
7475 }
7476 /^X\(\/\/\)$/{
7477 s//\1/
7478 q
7479 }
7480 /^X\(\/\).*/{
7481 s//\1/
7482 q
7483 }
7484 s/.*/./; q'`
7485 test -d "$as_dir" && break
7486 done
7487 test -z "$as_dirs" || eval "mkdir $as_dirs"
7488 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
7489
7490
7491} # as_fn_mkdir_p
7492if mkdir -p . 2>/dev/null; then
7493 as_mkdir_p='mkdir -p "$as_dir"'
7494else
7495 test -d ./-p && rmdir ./-p
7496 as_mkdir_p=false
7497fi
7498
7499
7500# as_fn_executable_p FILE
7501# -----------------------
7502# Test if FILE is an executable regular file.
7503as_fn_executable_p ()
7504{
7505 test -f "$1" && test -x "$1"
7506} # as_fn_executable_p
7507as_test_x='test -x'
7508as_executable_p=as_fn_executable_p
7509
7510# Sed expression to map a string onto a valid CPP name.
7511as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
7512
7513# Sed expression to map a string onto a valid variable name.
7514as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
7515
7516
7517exec 6>&1
7518## ----------------------------------- ##
7519## Main body of $CONFIG_STATUS script. ##
7520## ----------------------------------- ##
7521_ASEOF
7522test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
7523
7524cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7525# Save the log message, to keep $0 and so on meaningful, and to
7526# report actual input values of CONFIG_FILES etc. instead of their
7527# values after options handling.
7528ac_log="
7529This file was extended by $as_me, which was
7530generated by GNU Autoconf 2.69. Invocation command line was
7531
7532 CONFIG_FILES = $CONFIG_FILES
7533 CONFIG_HEADERS = $CONFIG_HEADERS
7534 CONFIG_LINKS = $CONFIG_LINKS
7535 CONFIG_COMMANDS = $CONFIG_COMMANDS
7536 $ $0 $@
7537
7538on `(hostname || uname -n) 2>/dev/null | sed 1q`
7539"
7540
7541_ACEOF
7542
7543case $ac_config_files in *"
7544"*) set x $ac_config_files; shift; ac_config_files=$*;;
7545esac
7546
7547case $ac_config_headers in *"
7548"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
7549esac
7550
7551
7552cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7553# Files that config.status was made for.
7554config_files="$ac_config_files"
7555config_headers="$ac_config_headers"
7556
7557_ACEOF
7558
7559cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7560ac_cs_usage="\
7561\`$as_me' instantiates files and other configuration actions
7562from templates according to the current configuration. Unless the files
7563and actions are specified as TAGs, all are instantiated by default.
7564
7565Usage: $0 [OPTION]... [TAG]...
7566
7567 -h, --help print this help, then exit
7568 -V, --version print version number and configuration settings, then exit
7569 --config print configuration, then exit
7570 -q, --quiet, --silent
7571 do not print progress messages
7572 -d, --debug don't remove temporary files
7573 --recheck update $as_me by reconfiguring in the same conditions
7574 --file=FILE[:TEMPLATE]
7575 instantiate the configuration file FILE
7576 --header=FILE[:TEMPLATE]
7577 instantiate the configuration header FILE
7578
7579Configuration files:
7580$config_files
7581
7582Configuration headers:
7583$config_headers
7584
7585Report bugs to the package provider."
7586
7587_ACEOF
7588cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7589ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
7590ac_cs_version="\\
7591config.status
7592configured by $0, generated by GNU Autoconf 2.69,
7593 with options \\"\$ac_cs_config\\"
7594
7595Copyright (C) 2012 Free Software Foundation, Inc.
7596This config.status script is free software; the Free Software Foundation
7597gives unlimited permission to copy, distribute and modify it."
7598
7599ac_pwd='$ac_pwd'
7600srcdir='$srcdir'
7601INSTALL='$INSTALL'
7602test -n "\$AWK" || AWK=awk
7603_ACEOF
7604
7605cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7606# The default lists apply if the user does not specify any file.
7607ac_need_defaults=:
7608while test $# != 0
7609do
7610 case $1 in
7611 --*=?*)
7612 ac_option=`expr "X$1" : 'X\([^=]*\)='`
7613 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
7614 ac_shift=:
7615 ;;
7616 --*=)
7617 ac_option=`expr "X$1" : 'X\([^=]*\)='`
7618 ac_optarg=
7619 ac_shift=:
7620 ;;
7621 *)
7622 ac_option=$1
7623 ac_optarg=$2
7624 ac_shift=shift
7625 ;;
7626 esac
7627
7628 case $ac_option in
7629 # Handling of the options.
7630 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
7631 ac_cs_recheck=: ;;
7632 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
7633 $as_echo "$ac_cs_version"; exit ;;
7634 --config | --confi | --conf | --con | --co | --c )
7635 $as_echo "$ac_cs_config"; exit ;;
7636 --debug | --debu | --deb | --de | --d | -d )
7637 debug=: ;;
7638 --file | --fil | --fi | --f )
7639 $ac_shift
7640 case $ac_optarg in
7641 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
7642 '') as_fn_error $? "missing file argument" ;;
7643 esac
7644 as_fn_append CONFIG_FILES " '$ac_optarg'"
7645 ac_need_defaults=false;;
7646 --header | --heade | --head | --hea )
7647 $ac_shift
7648 case $ac_optarg in
7649 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
7650 esac
7651 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
7652 ac_need_defaults=false;;
7653 --he | --h)
7654 # Conflict between --help and --header
7655 as_fn_error $? "ambiguous option: \`$1'
7656Try \`$0 --help' for more information.";;
7657 --help | --hel | -h )
7658 $as_echo "$ac_cs_usage"; exit ;;
7659 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
7660 | -silent | --silent | --silen | --sile | --sil | --si | --s)
7661 ac_cs_silent=: ;;
7662
7663 # This is an error.
7664 -*) as_fn_error $? "unrecognized option: \`$1'
7665Try \`$0 --help' for more information." ;;
7666
7667 *) as_fn_append ac_config_targets " $1"
7668 ac_need_defaults=false ;;
7669
7670 esac
7671 shift
7672done
7673
7674ac_configure_extra_args=
7675
7676if $ac_cs_silent; then
7677 exec 6>/dev/null
7678 ac_configure_extra_args="$ac_configure_extra_args --silent"
7679fi
7680
7681_ACEOF
7682cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7683if \$ac_cs_recheck; then
7684 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
7685 shift
7686 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
7687 CONFIG_SHELL='$SHELL'
7688 export CONFIG_SHELL
7689 exec "\$@"
7690fi
7691
7692_ACEOF
7693cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7694exec 5>>config.log
7695{
7696 echo
7697 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
7698## Running $as_me. ##
7699_ASBOX
7700 $as_echo "$ac_log"
7701} >&5
7702
7703_ACEOF
7704cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7705_ACEOF
7706
7707cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7708
7709# Handling of arguments.
7710for ac_config_target in $ac_config_targets
7711do
7712 case $ac_config_target in
7713 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
7714 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
7715
7716 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
7717 esac
7718done
7719
7720
7721# If the user did not use the arguments to specify the items to instantiate,
7722# then the envvar interface is used. Set only those that are not.
7723# We use the long form for the default assignment because of an extremely
7724# bizarre bug on SunOS 4.1.3.
7725if $ac_need_defaults; then
7726 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
7727 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
7728fi
7729
7730# Have a temporary directory for convenience. Make it in the build tree
7731# simply because there is no reason against having it here, and in addition,
7732# creating and moving files from /tmp can sometimes cause problems.
7733# Hook for its removal unless debugging.
7734# Note that there is a small window in which the directory will not be cleaned:
7735# after its creation but before its name has been assigned to `$tmp'.
7736$debug ||
7737{
7738 tmp= ac_tmp=
7739 trap 'exit_status=$?
7740 : "${ac_tmp:=$tmp}"
7741 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
7742' 0
7743 trap 'as_fn_exit 1' 1 2 13 15
7744}
7745# Create a (secure) tmp directory for tmp files.
7746
7747{
7748 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
7749 test -d "$tmp"
7750} ||
7751{
7752 tmp=./conf$$-$RANDOM
7753 (umask 077 && mkdir "$tmp")
7754} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
7755ac_tmp=$tmp
7756
7757# Set up the scripts for CONFIG_FILES section.
7758# No need to generate them if there are no CONFIG_FILES.
7759# This happens for instance with `./config.status config.h'.
7760if test -n "$CONFIG_FILES"; then
7761
7762
7763ac_cr=`echo X | tr X '\015'`
7764# On cygwin, bash can eat \r inside `` if the user requested igncr.
7765# But we know of no other shell where ac_cr would be empty at this
7766# point, so we can use a bashism as a fallback.
7767if test "x$ac_cr" = x; then
7768 eval ac_cr=\$\'\\r\'
7769fi
7770ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
7771if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
7772 ac_cs_awk_cr='\\r'
7773else
7774 ac_cs_awk_cr=$ac_cr
7775fi
7776
7777echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
7778_ACEOF
7779
7780
7781{
7782 echo "cat >conf$$subs.awk <<_ACEOF" &&
7783 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
7784 echo "_ACEOF"
7785} >conf$$subs.sh ||
7786 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
7787ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
7788ac_delim='%!_!# '
7789for ac_last_try in false false false false false :; do
7790 . ./conf$$subs.sh ||
7791 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
7792
7793 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
7794 if test $ac_delim_n = $ac_delim_num; then
7795 break
7796 elif $ac_last_try; then
7797 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
7798 else
7799 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
7800 fi
7801done
7802rm -f conf$$subs.sh
7803
7804cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7805cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
7806_ACEOF
7807sed -n '
7808h
7809s/^/S["/; s/!.*/"]=/
7810p
7811g
7812s/^[^!]*!//
7813:repl
7814t repl
7815s/'"$ac_delim"'$//
7816t delim
7817:nl
7818h
7819s/\(.\{148\}\)..*/\1/
7820t more1
7821s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
7822p
7823n
7824b repl
7825:more1
7826s/["\\]/\\&/g; s/^/"/; s/$/"\\/
7827p
7828g
7829s/.\{148\}//
7830t nl
7831:delim
7832h
7833s/\(.\{148\}\)..*/\1/
7834t more2
7835s/["\\]/\\&/g; s/^/"/; s/$/"/
7836p
7837b
7838:more2
7839s/["\\]/\\&/g; s/^/"/; s/$/"\\/
7840p
7841g
7842s/.\{148\}//
7843t delim
7844' <conf$$subs.awk | sed '
7845/^[^""]/{
7846 N
7847 s/\n//
7848}
7849' >>$CONFIG_STATUS || ac_write_fail=1
7850rm -f conf$$subs.awk
7851cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7852_ACAWK
7853cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
7854 for (key in S) S_is_set[key] = 1
7855 FS = ""
7856
7857}
7858{
7859 line = $ 0
7860 nfields = split(line, field, "@")
7861 substed = 0
7862 len = length(field[1])
7863 for (i = 2; i < nfields; i++) {
7864 key = field[i]
7865 keylen = length(key)
7866 if (S_is_set[key]) {
7867 value = S[key]
7868 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
7869 len += length(value) + length(field[++i])
7870 substed = 1
7871 } else
7872 len += 1 + keylen
7873 }
7874
7875 print line
7876}
7877
7878_ACAWK
7879_ACEOF
7880cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7881if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
7882 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
7883else
7884 cat
7885fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
7886 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
7887_ACEOF
7888
7889# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
7890# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
7891# trailing colons and then remove the whole line if VPATH becomes empty
7892# (actually we leave an empty line to preserve line numbers).
7893if test "x$srcdir" = x.; then
7894 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
7895h
7896s///
7897s/^/:/
7898s/[ ]*$/:/
7899s/:\$(srcdir):/:/g
7900s/:\${srcdir}:/:/g
7901s/:@srcdir@:/:/g
7902s/^:*//
7903s/:*$//
7904x
7905s/\(=[ ]*\).*/\1/
7906G
7907s/\n//
7908s/^[^=]*=[ ]*$//
7909}'
7910fi
7911
7912cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7913fi # test -n "$CONFIG_FILES"
7914
7915# Set up the scripts for CONFIG_HEADERS section.
7916# No need to generate them if there are no CONFIG_HEADERS.
7917# This happens for instance with `./config.status Makefile'.
7918if test -n "$CONFIG_HEADERS"; then
7919cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
7920BEGIN {
7921_ACEOF
7922
7923# Transform confdefs.h into an awk script `defines.awk', embedded as
7924# here-document in config.status, that substitutes the proper values into
7925# config.h.in to produce config.h.
7926
7927# Create a delimiter string that does not exist in confdefs.h, to ease
7928# handling of long lines.
7929ac_delim='%!_!# '
7930for ac_last_try in false false :; do
7931 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
7932 if test -z "$ac_tt"; then
7933 break
7934 elif $ac_last_try; then
7935 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
7936 else
7937 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
7938 fi
7939done
7940
7941# For the awk script, D is an array of macro values keyed by name,
7942# likewise P contains macro parameters if any. Preserve backslash
7943# newline sequences.
7944
7945ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
7946sed -n '
7947s/.\{148\}/&'"$ac_delim"'/g
7948t rset
7949:rset
7950s/^[ ]*#[ ]*define[ ][ ]*/ /
7951t def
7952d
7953:def
7954s/\\$//
7955t bsnl
7956s/["\\]/\\&/g
7957s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
7958D["\1"]=" \3"/p
7959s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
7960d
7961:bsnl
7962s/["\\]/\\&/g
7963s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
7964D["\1"]=" \3\\\\\\n"\\/p
7965t cont
7966s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
7967t cont
7968d
7969:cont
7970n
7971s/.\{148\}/&'"$ac_delim"'/g
7972t clear
7973:clear
7974s/\\$//
7975t bsnlc
7976s/["\\]/\\&/g; s/^/"/; s/$/"/p
7977d
7978:bsnlc
7979s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
7980b cont
7981' <confdefs.h | sed '
7982s/'"$ac_delim"'/"\\\
7983"/g' >>$CONFIG_STATUS || ac_write_fail=1
7984
7985cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7986 for (key in D) D_is_set[key] = 1
7987 FS = ""
7988}
7989/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
7990 line = \$ 0
7991 split(line, arg, " ")
7992 if (arg[1] == "#") {
7993 defundef = arg[2]
7994 mac1 = arg[3]
7995 } else {
7996 defundef = substr(arg[1], 2)
7997 mac1 = arg[2]
7998 }
7999 split(mac1, mac2, "(") #)
8000 macro = mac2[1]
8001 prefix = substr(line, 1, index(line, defundef) - 1)
8002 if (D_is_set[macro]) {
8003 # Preserve the white space surrounding the "#".
8004 print prefix "define", macro P[macro] D[macro]
8005 next
8006 } else {
8007 # Replace #undef with comments. This is necessary, for example,
8008 # in the case of _POSIX_SOURCE, which is predefined and required
8009 # on some systems where configure will not decide to define it.
8010 if (defundef == "undef") {
8011 print "/*", prefix defundef, macro, "*/"
8012 next
8013 }
8014 }
8015}
8016{ print }
8017_ACAWK
8018_ACEOF
8019cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8020 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
8021fi # test -n "$CONFIG_HEADERS"
8022
8023
8024eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS "
8025shift
8026for ac_tag
8027do
8028 case $ac_tag in
8029 :[FHLC]) ac_mode=$ac_tag; continue;;
8030 esac
8031 case $ac_mode$ac_tag in
8032 :[FHL]*:*);;
8033 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
8034 :[FH]-) ac_tag=-:-;;
8035 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
8036 esac
8037 ac_save_IFS=$IFS
8038 IFS=:
8039 set x $ac_tag
8040 IFS=$ac_save_IFS
8041 shift
8042 ac_file=$1
8043 shift
8044
8045 case $ac_mode in
8046 :L) ac_source=$1;;
8047 :[FH])
8048 ac_file_inputs=
8049 for ac_f
8050 do
8051 case $ac_f in
8052 -) ac_f="$ac_tmp/stdin";;
8053 *) # Look for the file first in the build tree, then in the source tree
8054 # (if the path is not absolute). The absolute path cannot be DOS-style,
8055 # because $ac_f cannot contain `:'.
8056 test -f "$ac_f" ||
8057 case $ac_f in
8058 [\\/$]*) false;;
8059 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
8060 esac ||
8061 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
8062 esac
8063 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
8064 as_fn_append ac_file_inputs " '$ac_f'"
8065 done
8066
8067 # Let's still pretend it is `configure' which instantiates (i.e., don't
8068 # use $as_me), people would be surprised to read:
8069 # /* config.h. Generated by config.status. */
8070 configure_input='Generated from '`
8071 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
8072 `' by configure.'
8073 if test x"$ac_file" != x-; then
8074 configure_input="$ac_file. $configure_input"
8075 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
8076$as_echo "$as_me: creating $ac_file" >&6;}
8077 fi
8078 # Neutralize special characters interpreted by sed in replacement strings.
8079 case $configure_input in #(
8080 *\&* | *\|* | *\\* )
8081 ac_sed_conf_input=`$as_echo "$configure_input" |
8082 sed 's/[\\\\&|]/\\\\&/g'`;; #(
8083 *) ac_sed_conf_input=$configure_input;;
8084 esac
8085
8086 case $ac_tag in
8087 *:-:* | *:-) cat >"$ac_tmp/stdin" \
8088 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
8089 esac
8090 ;;
8091 esac
8092
8093 ac_dir=`$as_dirname -- "$ac_file" ||
8094$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8095 X"$ac_file" : 'X\(//\)[^/]' \| \
8096 X"$ac_file" : 'X\(//\)$' \| \
8097 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
8098$as_echo X"$ac_file" |
8099 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
8100 s//\1/
8101 q
8102 }
8103 /^X\(\/\/\)[^/].*/{
8104 s//\1/
8105 q
8106 }
8107 /^X\(\/\/\)$/{
8108 s//\1/
8109 q
8110 }
8111 /^X\(\/\).*/{
8112 s//\1/
8113 q
8114 }
8115 s/.*/./; q'`
8116 as_dir="$ac_dir"; as_fn_mkdir_p
8117 ac_builddir=.
8118
8119case "$ac_dir" in
8120.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
8121*)
8122 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
8123 # A ".." for each directory in $ac_dir_suffix.
8124 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
8125 case $ac_top_builddir_sub in
8126 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
8127 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
8128 esac ;;
8129esac
8130ac_abs_top_builddir=$ac_pwd
8131ac_abs_builddir=$ac_pwd$ac_dir_suffix
8132# for backward compatibility:
8133ac_top_builddir=$ac_top_build_prefix
8134
8135case $srcdir in
8136 .) # We are building in place.
8137 ac_srcdir=.
8138 ac_top_srcdir=$ac_top_builddir_sub
8139 ac_abs_top_srcdir=$ac_pwd ;;
8140 [\\/]* | ?:[\\/]* ) # Absolute name.
8141 ac_srcdir=$srcdir$ac_dir_suffix;
8142 ac_top_srcdir=$srcdir
8143 ac_abs_top_srcdir=$srcdir ;;
8144 *) # Relative name.
8145 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
8146 ac_top_srcdir=$ac_top_build_prefix$srcdir
8147 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
8148esac
8149ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
8150
8151
8152 case $ac_mode in
8153 :F)
8154 #
8155 # CONFIG_FILE
8156 #
8157
8158 case $INSTALL in
8159 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
8160 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
8161 esac
8162_ACEOF
8163
8164cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8165# If the template does not know about datarootdir, expand it.
8166# FIXME: This hack should be removed a few years after 2.60.
8167ac_datarootdir_hack=; ac_datarootdir_seen=
8168ac_sed_dataroot='
8169/datarootdir/ {
8170 p
8171 q
8172}
8173/@datadir@/p
8174/@docdir@/p
8175/@infodir@/p
8176/@localedir@/p
8177/@mandir@/p'
8178case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
8179*datarootdir*) ac_datarootdir_seen=yes;;
8180*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
8181 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
8182$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
8183_ACEOF
8184cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8185 ac_datarootdir_hack='
8186 s&@datadir@&$datadir&g
8187 s&@docdir@&$docdir&g
8188 s&@infodir@&$infodir&g
8189 s&@localedir@&$localedir&g
8190 s&@mandir@&$mandir&g
8191 s&\\\${datarootdir}&$datarootdir&g' ;;
8192esac
8193_ACEOF
8194
8195# Neutralize VPATH when `$srcdir' = `.'.
8196# Shell code in configure.ac might set extrasub.
8197# FIXME: do we really want to maintain this feature?
8198cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8199ac_sed_extra="$ac_vpsub
8200$extrasub
8201_ACEOF
8202cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8203:t
8204/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
8205s|@configure_input@|$ac_sed_conf_input|;t t
8206s&@top_builddir@&$ac_top_builddir_sub&;t t
8207s&@top_build_prefix@&$ac_top_build_prefix&;t t
8208s&@srcdir@&$ac_srcdir&;t t
8209s&@abs_srcdir@&$ac_abs_srcdir&;t t
8210s&@top_srcdir@&$ac_top_srcdir&;t t
8211s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
8212s&@builddir@&$ac_builddir&;t t
8213s&@abs_builddir@&$ac_abs_builddir&;t t
8214s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
8215s&@INSTALL@&$ac_INSTALL&;t t
8216$ac_datarootdir_hack
8217"
8218eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
8219 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
8220
8221test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
8222 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
8223 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
8224 "$ac_tmp/out"`; test -z "$ac_out"; } &&
8225 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
8226which seems to be undefined. Please make sure it is defined" >&5
8227$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
8228which seems to be undefined. Please make sure it is defined" >&2;}
8229
8230 rm -f "$ac_tmp/stdin"
8231 case $ac_file in
8232 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
8233 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
8234 esac \
8235 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
8236 ;;
8237 :H)
8238 #
8239 # CONFIG_HEADER
8240 #
8241 if test x"$ac_file" != x-; then
8242 {
8243 $as_echo "/* $configure_input */" \
8244 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
8245 } >"$ac_tmp/config.h" \
8246 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
8247 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
8248 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
8249$as_echo "$as_me: $ac_file is unchanged" >&6;}
8250 else
8251 rm -f "$ac_file"
8252 mv "$ac_tmp/config.h" "$ac_file" \
8253 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
8254 fi
8255 else
8256 $as_echo "/* $configure_input */" \
8257 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
8258 || as_fn_error $? "could not create -" "$LINENO" 5
8259 fi
8260 ;;
8261
8262
8263 esac
8264
8265done # for ac_tag
8266
8267
8268as_fn_exit 0
8269_ACEOF
8270ac_clean_files=$ac_clean_files_save
8271
8272test $ac_write_fail = 0 ||
8273 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
8274
8275
8276# configure is writing to config.log, and then calls config.status.
8277# config.status does its own redirection, appending to config.log.
8278# Unfortunately, on DOS this fails, as config.log is still kept open
8279# by configure, so config.status won't be able to write to it; its
8280# output is simply discarded. So we exec the FD to /dev/null,
8281# effectively closing config.log, so it can be properly (re)opened and
8282# appended to by config.status. When coming back to configure, we
8283# need to make the FD available again.
8284if test "$no_create" != yes; then
8285 ac_cs_success=:
8286 ac_config_status_args=
8287 test "$silent" = yes &&
8288 ac_config_status_args="$ac_config_status_args --quiet"
8289 exec 5>/dev/null
8290 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
8291 exec 5>>config.log
8292 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
8293 # would make configure fail if this is the last instruction.
8294 $ac_cs_success || as_fn_exit 1
8295fi
8296if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
8297 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
8298$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
8299fi
8300