Debian Codegraph @

configure

raw symbols SCIP
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for remake 4.3+dbg-1.6.
4 #
5 # Report bugs to <https://github.com/rocky/remake/issues>.
6 #
7 #
8 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
9 #
10 #
11 # This configure script is free software; the Free Software Foundation
12 # gives unlimited permission to copy, distribute and modify it.
13 ## -------------------- ##
14 ## M4sh Initialization. ##
15 ## -------------------- ##
16
17 # Be more Bourne compatible
18 DUALCASE=1; export DUALCASE # for MKS sh
19 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
20 emulate sh
21 NULLCMD=:
22 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23 # is contrary to our usage. Disable this feature.
24 alias -g '${1+"$@"}'='"$@"'
25 setopt NO_GLOB_SUBST
26 else
27 case `(set -o) 2>/dev/null` in #(
28 *posix*) :
29 set -o posix ;; #(
30 *) :
31 ;;
32 esac
33 fi
34
35
36 as_nl='
37 '
38 export as_nl
39 # Printing a long string crashes Solaris 7 /usr/bin/printf.
40 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43 # Prefer a ksh shell builtin over an external printf program on Solaris,
44 # but without wasting forks for bash or zsh.
45 if test -z "$BASH_VERSION$ZSH_VERSION" \
46 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
47 as_echo='print -r --'
48 as_echo_n='print -rn --'
49 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
50 as_echo='printf %s\n'
51 as_echo_n='printf %s'
52 else
53 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55 as_echo_n='/usr/ucb/echo -n'
56 else
57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
58 as_echo_n_body='eval
59 arg=$1;
60 case $arg in #(
61 *"$as_nl"*)
62 expr "X$arg" : "X\\(.*\\)$as_nl";
63 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
64 esac;
65 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
66 '
67 export as_echo_n_body
68 as_echo_n='sh -c $as_echo_n_body as_echo'
69 fi
70 export as_echo_body
71 as_echo='sh -c $as_echo_body as_echo'
72 fi
73
74 # The user is always right.
75 if test "${PATH_SEPARATOR+set}" != set; then
76 PATH_SEPARATOR=:
77 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
79 PATH_SEPARATOR=';'
80 }
81 fi
82
83
84 # IFS
85 # We need space, tab and new line, in precisely that order. Quoting is
86 # there to prevent editors from complaining about space-tab.
87 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
88 # splitting by setting IFS to empty value.)
89 IFS=" "" $as_nl"
90
91 # Find who we are. Look in the path if we contain no directory separator.
92 as_myself=
93 case $0 in #((
94 *[\\/]* ) as_myself=$0 ;;
95 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
96 for as_dir in $PATH
97 do
98 IFS=$as_save_IFS
99 test -z "$as_dir" && as_dir=.
100 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
101 done
102 IFS=$as_save_IFS
103
104 ;;
105 esac
106 # We did not find ourselves, most probably we were run as `sh COMMAND'
107 # in which case we are not to be found in the path.
108 if test "x$as_myself" = x; then
109 as_myself=$0
110 fi
111 if test ! -f "$as_myself"; then
112 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
113 exit 1
114 fi
115
116 # Unset variables that we do not need and which cause bugs (e.g. in
117 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
118 # suppresses any "Segmentation fault" message there. '((' could
119 # trigger a bug in pdksh 5.2.14.
120 for as_var in BASH_ENV ENV MAIL MAILPATH
121 do eval test x\${$as_var+set} = xset \
122 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
123 done
124 PS1='$ '
125 PS2='> '
126 PS4='+ '
127
128 # NLS nuisances.
129 LC_ALL=C
130 export LC_ALL
131 LANGUAGE=C
132 export LANGUAGE
133
134 # CDPATH.
135 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
136
137 # Use a proper internal environment variable to ensure we don't fall
138 # into an infinite loop, continuously re-executing ourselves.
139 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
140 _as_can_reexec=no; export _as_can_reexec;
141 # We cannot yet assume a decent shell, so we have to provide a
142 # neutralization value for shells without unset; and this also
143 # works around shells that cannot unset nonexistent variables.
144 # Preserve -v and -x to the replacement shell.
145 BASH_ENV=/dev/null
146 ENV=/dev/null
147 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
148 case $- in # ((((
149 *v*x* | *x*v* ) as_opts=-vx ;;
150 *v* ) as_opts=-v ;;
151 *x* ) as_opts=-x ;;
152 * ) as_opts= ;;
153 esac
154 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
155 # Admittedly, this is quite paranoid, since all the known shells bail
156 # out after a failed `exec'.
157 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
158 as_fn_exit 255
159 fi
160 # We don't want this to propagate to other subprocesses.
161 { _as_can_reexec=; unset _as_can_reexec;}
162 if test "x$CONFIG_SHELL" = x; then
163 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
164 emulate sh
165 NULLCMD=:
166 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
167 # is contrary to our usage. Disable this feature.
168 alias -g '\${1+\"\$@\"}'='\"\$@\"'
169 setopt NO_GLOB_SUBST
170 else
171 case \`(set -o) 2>/dev/null\` in #(
172 *posix*) :
173 set -o posix ;; #(
174 *) :
175 ;;
176 esac
177 fi
178 "
179 as_required="as_fn_return () { (exit \$1); }
180 as_fn_success () { as_fn_return 0; }
181 as_fn_failure () { as_fn_return 1; }
182 as_fn_ret_success () { return 0; }
183 as_fn_ret_failure () { return 1; }
184
185 exitcode=0
186 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
187 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
188 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
189 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
190 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
191
192 else
193 exitcode=1; echo positional parameters were not saved.
194 fi
195 test x\$exitcode = x0 || exit 1
196 test -x / || exit 1"
197 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
198 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
199 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
200 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
201 test \$(( 1 + 1 )) = 2 || exit 1"
202 if (eval "$as_required") 2>/dev/null; then :
203 as_have_required=yes
204 else
205 as_have_required=no
206 fi
207 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
208
209 else
210 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
211 as_found=false
212 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
213 do
214 IFS=$as_save_IFS
215 test -z "$as_dir" && as_dir=.
216 as_found=:
217 case $as_dir in #(
218 /*)
219 for as_base in sh bash ksh sh5; do
220 # Try only shells that exist, to save several forks.
221 as_shell=$as_dir/$as_base
222 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
223 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
224 CONFIG_SHELL=$as_shell as_have_required=yes
225 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
226 break 2
227 fi
228 fi
229 done;;
230 esac
231 as_found=false
232 done
233 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
234 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
235 CONFIG_SHELL=$SHELL as_have_required=yes
236 fi; }
237 IFS=$as_save_IFS
238
239
240 if test "x$CONFIG_SHELL" != x; then :
241 export CONFIG_SHELL
242 # We cannot yet assume a decent shell, so we have to provide a
243 # neutralization value for shells without unset; and this also
244 # works around shells that cannot unset nonexistent variables.
245 # Preserve -v and -x to the replacement shell.
246 BASH_ENV=/dev/null
247 ENV=/dev/null
248 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
249 case $- in # ((((
250 *v*x* | *x*v* ) as_opts=-vx ;;
251 *v* ) as_opts=-v ;;
252 *x* ) as_opts=-x ;;
253 * ) as_opts= ;;
254 esac
255 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
256 # Admittedly, this is quite paranoid, since all the known shells bail
257 # out after a failed `exec'.
258 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
259 exit 255
260 fi
261
262 if test x$as_have_required = xno; then :
263 $as_echo "$0: This script requires a shell more modern than all"
264 $as_echo "$0: the shells that I found on your system."
265 if test x${ZSH_VERSION+set} = xset ; then
266 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
267 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
268 else
269 $as_echo "$0: Please tell [email protected] and
270 $0: https://github.com/rocky/remake/issues about your
271 $0: system, including any error possibly output before this
272 $0: message. Then install a modern shell, or manually run
273 $0: the script under such a shell if you do have one."
274 fi
275 exit 1
276 fi
277 fi
278 fi
279 SHELL=${CONFIG_SHELL-/bin/sh}
280 export SHELL
281 # Unset more variables known to interfere with behavior of common tools.
282 CLICOLOR_FORCE= GREP_OPTIONS=
283 unset CLICOLOR_FORCE GREP_OPTIONS
284
285 ## --------------------- ##
286 ## M4sh Shell Functions. ##
287 ## --------------------- ##
288 # as_fn_unset VAR
289 # ---------------
290 # Portably unset VAR.
291 as_fn_unset ()
292 {
293 { eval $1=; unset $1;}
294 }
295 as_unset=as_fn_unset
296
297 # as_fn_set_status STATUS
298 # -----------------------
299 # Set $? to STATUS, without forking.
300 as_fn_set_status ()
301 {
302 return $1
303 } # as_fn_set_status
304
305 # as_fn_exit STATUS
306 # -----------------
307 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
308 as_fn_exit ()
309 {
310 set +e
311 as_fn_set_status $1
312 exit $1
313 } # as_fn_exit
314
315 # as_fn_mkdir_p
316 # -------------
317 # Create "$as_dir" as a directory, including parents if necessary.
318 as_fn_mkdir_p ()
319 {
320
321 case $as_dir in #(
322 -*) as_dir=./$as_dir;;
323 esac
324 test -d "$as_dir" || eval $as_mkdir_p || {
325 as_dirs=
326 while :; do
327 case $as_dir in #(
328 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
329 *) as_qdir=$as_dir;;
330 esac
331 as_dirs="'$as_qdir' $as_dirs"
332 as_dir=`$as_dirname -- "$as_dir" ||
333 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
334 X"$as_dir" : 'X\(//\)[^/]' \| \
335 X"$as_dir" : 'X\(//\)$' \| \
336 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
337 $as_echo X"$as_dir" |
338 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
339 s//\1/
340 q
341 }
342 /^X\(\/\/\)[^/].*/{
343 s//\1/
344 q
345 }
346 /^X\(\/\/\)$/{
347 s//\1/
348 q
349 }
350 /^X\(\/\).*/{
351 s//\1/
352 q
353 }
354 s/.*/./; q'`
355 test -d "$as_dir" && break
356 done
357 test -z "$as_dirs" || eval "mkdir $as_dirs"
358 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
359
360
361 } # as_fn_mkdir_p
362
363 # as_fn_executable_p FILE
364 # -----------------------
365 # Test if FILE is an executable regular file.
366 as_fn_executable_p ()
367 {
368 test -f "$1" && test -x "$1"
369 } # as_fn_executable_p
370 # as_fn_append VAR VALUE
371 # ----------------------
372 # Append the text in VALUE to the end of the definition contained in VAR. Take
373 # advantage of any shell optimizations that allow amortized linear growth over
374 # repeated appends, instead of the typical quadratic growth present in naive
375 # implementations.
376 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
377 eval 'as_fn_append ()
378 {
379 eval $1+=\$2
380 }'
381 else
382 as_fn_append ()
383 {
384 eval $1=\$$1\$2
385 }
386 fi # as_fn_append
387
388 # as_fn_arith ARG...
389 # ------------------
390 # Perform arithmetic evaluation on the ARGs, and store the result in the
391 # global $as_val. Take advantage of shells that can avoid forks. The arguments
392 # must be portable across $(()) and expr.
393 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
394 eval 'as_fn_arith ()
395 {
396 as_val=$(( $* ))
397 }'
398 else
399 as_fn_arith ()
400 {
401 as_val=`expr "$@" || test $? -eq 1`
402 }
403 fi # as_fn_arith
404
405
406 # as_fn_error STATUS ERROR [LINENO LOG_FD]
407 # ----------------------------------------
408 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
409 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
410 # script with STATUS, using 1 if that was 0.
411 as_fn_error ()
412 {
413 as_status=$1; test $as_status -eq 0 && as_status=1
414 if test "$4"; then
415 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
416 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
417 fi
418 $as_echo "$as_me: error: $2" >&2
419 as_fn_exit $as_status
420 } # as_fn_error
421
422 if expr a : '\(a\)' >/dev/null 2>&1 &&
423 test "X`expr 00001 : '.*\(...\)'`" = X001; then
424 as_expr=expr
425 else
426 as_expr=false
427 fi
428
429 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
430 as_basename=basename
431 else
432 as_basename=false
433 fi
434
435 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
436 as_dirname=dirname
437 else
438 as_dirname=false
439 fi
440
441 as_me=`$as_basename -- "$0" ||
442 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
443 X"$0" : 'X\(//\)$' \| \
444 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
445 $as_echo X/"$0" |
446 sed '/^.*\/\([^/][^/]*\)\/*$/{
447 s//\1/
448 q
449 }
450 /^X\/\(\/\/\)$/{
451 s//\1/
452 q
453 }
454 /^X\/\(\/\).*/{
455 s//\1/
456 q
457 }
458 s/.*/./; q'`
459
460 # Avoid depending upon Character Ranges.
461 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
462 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
463 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
464 as_cr_digits='0123456789'
465 as_cr_alnum=$as_cr_Letters$as_cr_digits
466
467
468 as_lineno_1=$LINENO as_lineno_1a=$LINENO
469 as_lineno_2=$LINENO as_lineno_2a=$LINENO
470 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
471 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
472 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
473 sed -n '
474 p
475 /[$]LINENO/=
476 ' <$as_myself |
477 sed '
478 s/[$]LINENO.*/&-/
479 t lineno
480 b
481 :lineno
482 N
483 :loop
484 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
485 t loop
486 s/-\n.*//
487 ' >$as_me.lineno &&
488 chmod +x "$as_me.lineno" ||
489 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
490
491 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
492 # already done that, so ensure we don't try to do so again and fall
493 # in an infinite loop. This has already happened in practice.
494 _as_can_reexec=no; export _as_can_reexec
495 # Don't try to exec as it changes $[0], causing all sort of problems
496 # (the dirname of $[0] is not the place where we might find the
497 # original and so on. Autoconf is especially sensitive to this).
498 . "./$as_me.lineno"
499 # Exit status is that of the last command.
500 exit
501 }
502
503 ECHO_C= ECHO_N= ECHO_T=
504 case `echo -n x` in #(((((
505 -n*)
506 case `echo 'xy\c'` in
507 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
508 xy) ECHO_C='\c';;
509 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
510 ECHO_T=' ';;
511 esac;;
512 *)
513 ECHO_N='-n';;
514 esac
515
516 rm -f conf$$ conf$$.exe conf$$.file
517 if test -d conf$$.dir; then
518 rm -f conf$$.dir/conf$$.file
519 else
520 rm -f conf$$.dir
521 mkdir conf$$.dir 2>/dev/null
522 fi
523 if (echo >conf$$.file) 2>/dev/null; then
524 if ln -s conf$$.file conf$$ 2>/dev/null; then
525 as_ln_s='ln -s'
526 # ... but there are two gotchas:
527 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
528 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
529 # In both cases, we have to default to `cp -pR'.
530 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
531 as_ln_s='cp -pR'
532 elif ln conf$$.file conf$$ 2>/dev/null; then
533 as_ln_s=ln
534 else
535 as_ln_s='cp -pR'
536 fi
537 else
538 as_ln_s='cp -pR'
539 fi
540 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
541 rmdir conf$$.dir 2>/dev/null
542
543 if mkdir -p . 2>/dev/null; then
544 as_mkdir_p='mkdir -p "$as_dir"'
545 else
546 test -d ./-p && rmdir ./-p
547 as_mkdir_p=false
548 fi
549
550 as_test_x='test -x'
551 as_executable_p=as_fn_executable_p
552
553 # Sed expression to map a string onto a valid CPP name.
554 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
555
556 # Sed expression to map a string onto a valid variable name.
557 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
558
559
560 test -n "$DJDIR" || exec 7<&0 </dev/null
561 exec 6>&1
562
563 # Name of the host.
564 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
565 # so uname gets run too.
566 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
567
568 #
569 # Initializations.
570 #
571 ac_default_prefix=/usr/local
572 ac_clean_files=
573 ac_config_libobj_dir=.
574 LIBOBJS=
575 cross_compiling=no
576 subdirs=
577 MFLAGS=
578 MAKEFLAGS=
579
580 # Identity of this package.
581 PACKAGE_NAME='remake'
582 PACKAGE_TARNAME='remake'
583 PACKAGE_VERSION='4.3+dbg-1.6'
584 PACKAGE_STRING='remake 4.3+dbg-1.6'
585 PACKAGE_BUGREPORT='https://github.com/rocky/remake/issues'
586 PACKAGE_URL=''
587
588 ac_unique_file="src/vpath.c"
589 ac_config_libobj_dir=lib
590 # Factoring default headers for most tests.
591 ac_includes_default="\
592 #include <stdio.h>
593 #ifdef HAVE_SYS_TYPES_H
594 # include <sys/types.h>
595 #endif
596 #ifdef HAVE_SYS_STAT_H
597 # include <sys/stat.h>
598 #endif
599 #ifdef STDC_HEADERS
600 # include <stdlib.h>
601 # include <stddef.h>
602 #else
603 # ifdef HAVE_STDLIB_H
604 # include <stdlib.h>
605 # endif
606 #endif
607 #ifdef HAVE_STRING_H
608 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
609 # include <memory.h>
610 # endif
611 # include <string.h>
612 #endif
613 #ifdef HAVE_STRINGS_H
614 # include <strings.h>
615 #endif
616 #ifdef HAVE_INTTYPES_H
617 # include <inttypes.h>
618 #endif
619 #ifdef HAVE_STDINT_H
620 # include <stdint.h>
621 #endif
622 #ifdef HAVE_UNISTD_H
623 # include <unistd.h>
624 #endif"
625
626 ac_func_list=
627 ac_header_list=
628 gt_needs=
629 ac_subst_vars='gltests_LTLIBOBJS
630 gltests_LIBOBJS
631 gl_LTLIBOBJS
632 gl_LIBOBJS
633 am__EXEEXT_FALSE
634 am__EXEEXT_TRUE
635 LTLIBOBJS
636 LIBOBJS
637 AM_CFLAGS
638 MAKE_HOST
639 AM_LDFLAGS
640 USE_CUSTOMS_FALSE
641 USE_CUSTOMS_TRUE
642 REMOTE
643 REMAKE_SOURCE_PATH
644 HAVE_LIBREADLINE
645 MAKE_NAME_UPPER
646 MAKE_NAME
647 HAVE_GUILE_FALSE
648 HAVE_GUILE_TRUE
649 GUILE_LIBS
650 GUILE_CFLAGS
651 PKG_CONFIG_LIBDIR
652 PKG_CONFIG_PATH
653 PKG_CONFIG
654 USE_LOCAL_GLOB_FALSE
655 USE_LOCAL_GLOB_TRUE
656 POSUB
657 INTLLIBS
658 LTLIBICONV
659 LIBICONV
660 INTL_MACOSX_LIBS
661 XGETTEXT_EXTRA_OPTIONS
662 MSGMERGE
663 XGETTEXT_015
664 XGETTEXT
665 GMSGFMT_015
666 MSGFMT_015
667 GMSGFMT
668 MSGFMT
669 GETTEXT_MACRO_VERSION
670 USE_NLS
671 SED
672 GIT2CL
673 RSPEC
674 RUBY
675 PERL
676 LN_S
677 LIBGNU_LTLIBDEPS
678 LIBGNU_LIBDEPS
679 gltests_WITNESS
680 HAVE_UNISTD_H
681 NEXT_AS_FIRST_DIRECTIVE_UNISTD_H
682 NEXT_UNISTD_H
683 WINDOWS_STAT_INODES
684 WINDOWS_64_BIT_OFF_T
685 NEXT_AS_FIRST_DIRECTIVE_SYS_TYPES_H
686 NEXT_SYS_TYPES_H
687 NEXT_AS_FIRST_DIRECTIVE_STRING_H
688 NEXT_STRING_H
689 UNDEFINE_STRTOK_R
690 REPLACE_STRSIGNAL
691 REPLACE_STRERROR_R
692 REPLACE_STRERROR
693 REPLACE_STRTOK_R
694 REPLACE_STRCASESTR
695 REPLACE_STRSTR
696 REPLACE_STRNLEN
697 REPLACE_STRNDUP
698 REPLACE_STRNCAT
699 REPLACE_STRDUP
700 REPLACE_STRCHRNUL
701 REPLACE_STPNCPY
702 REPLACE_MEMMEM
703 REPLACE_MEMCHR
704 HAVE_STRVERSCMP
705 HAVE_DECL_STRSIGNAL
706 HAVE_DECL_STRERROR_R
707 HAVE_DECL_STRTOK_R
708 HAVE_STRCASESTR
709 HAVE_STRSEP
710 HAVE_STRPBRK
711 HAVE_DECL_STRNLEN
712 HAVE_DECL_STRNDUP
713 HAVE_DECL_STRDUP
714 HAVE_STRCHRNUL
715 HAVE_STPNCPY
716 HAVE_STPCPY
717 HAVE_RAWMEMCHR
718 HAVE_DECL_MEMRCHR
719 HAVE_MEMPCPY
720 HAVE_DECL_MEMMEM
721 HAVE_MEMCHR
722 HAVE_FFSLL
723 HAVE_FFSL
724 HAVE_EXPLICIT_BZERO
725 HAVE_MBSLEN
726 GNULIB_STRVERSCMP
727 GNULIB_STRSIGNAL
728 GNULIB_STRERROR_R
729 GNULIB_STRERROR
730 GNULIB_MBSTOK_R
731 GNULIB_MBSSEP
732 GNULIB_MBSSPN
733 GNULIB_MBSPBRK
734 GNULIB_MBSCSPN
735 GNULIB_MBSCASESTR
736 GNULIB_MBSPCASECMP
737 GNULIB_MBSNCASECMP
738 GNULIB_MBSCASECMP
739 GNULIB_MBSSTR
740 GNULIB_MBSRCHR
741 GNULIB_MBSCHR
742 GNULIB_MBSNLEN
743 GNULIB_MBSLEN
744 GNULIB_STRTOK_R
745 GNULIB_STRCASESTR
746 GNULIB_STRSTR
747 GNULIB_STRSEP
748 GNULIB_STRPBRK
749 GNULIB_STRNLEN
750 GNULIB_STRNDUP
751 GNULIB_STRNCAT
752 GNULIB_STRDUP
753 GNULIB_STRCHRNUL
754 GNULIB_STPNCPY
755 GNULIB_STPCPY
756 GNULIB_RAWMEMCHR
757 GNULIB_MEMRCHR
758 GNULIB_MEMPCPY
759 GNULIB_MEMMEM
760 GNULIB_MEMCHR
761 GNULIB_FFSLL
762 GNULIB_FFSL
763 GNULIB_EXPLICIT_BZERO
764 NEXT_AS_FIRST_DIRECTIVE_STDLIB_H
765 NEXT_STDLIB_H
766 NEXT_AS_FIRST_DIRECTIVE_STDIO_H
767 NEXT_STDIO_H
768 REPLACE_VSPRINTF
769 REPLACE_VSNPRINTF
770 REPLACE_VPRINTF
771 REPLACE_VFPRINTF
772 REPLACE_VDPRINTF
773 REPLACE_VASPRINTF
774 REPLACE_TMPFILE
775 REPLACE_STDIO_WRITE_FUNCS
776 REPLACE_STDIO_READ_FUNCS
777 REPLACE_SPRINTF
778 REPLACE_SNPRINTF
779 REPLACE_RENAMEAT
780 REPLACE_RENAME
781 REPLACE_REMOVE
782 REPLACE_PRINTF
783 REPLACE_POPEN
784 REPLACE_PERROR
785 REPLACE_OBSTACK_PRINTF
786 REPLACE_GETLINE
787 REPLACE_GETDELIM
788 REPLACE_FTELLO
789 REPLACE_FTELL
790 REPLACE_FSEEKO
791 REPLACE_FSEEK
792 REPLACE_FREOPEN
793 REPLACE_FPURGE
794 REPLACE_FPRINTF
795 REPLACE_FOPEN
796 REPLACE_FFLUSH
797 REPLACE_FDOPEN
798 REPLACE_FCLOSE
799 REPLACE_DPRINTF
800 HAVE_VDPRINTF
801 HAVE_VASPRINTF
802 HAVE_RENAMEAT
803 HAVE_POPEN
804 HAVE_PCLOSE
805 HAVE_FTELLO
806 HAVE_FSEEKO
807 HAVE_DPRINTF
808 HAVE_DECL_VSNPRINTF
809 HAVE_DECL_SNPRINTF
810 HAVE_DECL_OBSTACK_PRINTF
811 HAVE_DECL_GETLINE
812 HAVE_DECL_GETDELIM
813 HAVE_DECL_FTELLO
814 HAVE_DECL_FSEEKO
815 HAVE_DECL_FPURGE
816 GNULIB_VSPRINTF_POSIX
817 GNULIB_VSNPRINTF
818 GNULIB_VPRINTF_POSIX
819 GNULIB_VPRINTF
820 GNULIB_VFPRINTF_POSIX
821 GNULIB_VFPRINTF
822 GNULIB_VDPRINTF
823 GNULIB_VSCANF
824 GNULIB_VFSCANF
825 GNULIB_VASPRINTF
826 GNULIB_TMPFILE
827 GNULIB_STDIO_H_SIGPIPE
828 GNULIB_STDIO_H_NONBLOCKING
829 GNULIB_SPRINTF_POSIX
830 GNULIB_SNPRINTF
831 GNULIB_SCANF
832 GNULIB_RENAMEAT
833 GNULIB_RENAME
834 GNULIB_REMOVE
835 GNULIB_PUTS
836 GNULIB_PUTCHAR
837 GNULIB_PUTC
838 GNULIB_PRINTF_POSIX
839 GNULIB_PRINTF
840 GNULIB_POPEN
841 GNULIB_PERROR
842 GNULIB_PCLOSE
843 GNULIB_OBSTACK_PRINTF_POSIX
844 GNULIB_OBSTACK_PRINTF
845 GNULIB_GETLINE
846 GNULIB_GETDELIM
847 GNULIB_GETCHAR
848 GNULIB_GETC
849 GNULIB_FWRITE
850 GNULIB_FTELLO
851 GNULIB_FTELL
852 GNULIB_FSEEKO
853 GNULIB_FSEEK
854 GNULIB_FSCANF
855 GNULIB_FREOPEN
856 GNULIB_FREAD
857 GNULIB_FPUTS
858 GNULIB_FPUTC
859 GNULIB_FPURGE
860 GNULIB_FPRINTF_POSIX
861 GNULIB_FPRINTF
862 GNULIB_FOPEN
863 GNULIB_FGETS
864 GNULIB_FGETC
865 GNULIB_FFLUSH
866 GNULIB_FDOPEN
867 GNULIB_FCLOSE
868 GNULIB_DPRINTF
869 GL_GENERATE_STDINT_H_FALSE
870 GL_GENERATE_STDINT_H_TRUE
871 STDINT_H
872 HAVE_SYS_INTTYPES_H
873 HAVE_SYS_BITYPES_H
874 HAVE_C99_STDINT_H
875 WINT_T_SUFFIX
876 WCHAR_T_SUFFIX
877 SIG_ATOMIC_T_SUFFIX
878 SIZE_T_SUFFIX
879 PTRDIFF_T_SUFFIX
880 HAVE_SIGNED_WINT_T
881 HAVE_SIGNED_WCHAR_T
882 HAVE_SIGNED_SIG_ATOMIC_T
883 BITSIZEOF_WINT_T
884 BITSIZEOF_WCHAR_T
885 BITSIZEOF_SIG_ATOMIC_T
886 BITSIZEOF_SIZE_T
887 BITSIZEOF_PTRDIFF_T
888 HAVE_STDINT_H
889 NEXT_AS_FIRST_DIRECTIVE_STDINT_H
890 NEXT_STDINT_H
891 HAVE_SYS_TYPES_H
892 HAVE_INTTYPES_H
893 HAVE_WCHAR_H
894 GNULIB_OVERRIDES_WINT_T
895 NEXT_AS_FIRST_DIRECTIVE_STDDEF_H
896 NEXT_STDDEF_H
897 GL_GENERATE_STDDEF_H_FALSE
898 GL_GENERATE_STDDEF_H_TRUE
899 STDDEF_H
900 HAVE_WCHAR_T
901 HAVE_MAX_ALIGN_T
902 REPLACE_NULL
903 HAVE__BOOL
904 GL_GENERATE_STDBOOL_H_FALSE
905 GL_GENERATE_STDBOOL_H_TRUE
906 STDBOOL_H
907 APPLE_UNIVERSAL_BUILD
908 USE_SYSTEM_GLOB
909 USE_SYSTEM_GLOB_FALSE
910 USE_SYSTEM_GLOB_TRUE
911 GL_GENERATE_LIMITS_H_FALSE
912 GL_GENERATE_LIMITS_H_TRUE
913 LIMITS_H
914 NEXT_AS_FIRST_DIRECTIVE_LIMITS_H
915 NEXT_LIMITS_H
916 HOST_CPU_C_ABI
917 HOST_CPU
918 LTLIBINTL
919 LIBINTL
920 GETLOADAVG_LIBS
921 REPLACE_WCTOMB
922 REPLACE_UNSETENV
923 REPLACE_STRTOLD
924 REPLACE_STRTOD
925 REPLACE_SETSTATE
926 REPLACE_SETENV
927 REPLACE_REALPATH
928 REPLACE_REALLOC
929 REPLACE_RANDOM_R
930 REPLACE_RANDOM
931 REPLACE_QSORT_R
932 REPLACE_PUTENV
933 REPLACE_PTSNAME_R
934 REPLACE_PTSNAME
935 REPLACE_MKSTEMP
936 REPLACE_MBTOWC
937 REPLACE_MALLOC
938 REPLACE_INITSTATE
939 REPLACE_CANONICALIZE_FILE_NAME
940 REPLACE_CALLOC
941 HAVE_DECL_UNSETENV
942 HAVE_UNLOCKPT
943 HAVE_SYS_LOADAVG_H
944 HAVE_STRUCT_RANDOM_DATA
945 HAVE_STRTOULL
946 HAVE_STRTOLL
947 HAVE_STRTOLD
948 HAVE_STRTOD
949 HAVE_DECL_SETSTATE
950 HAVE_SETSTATE
951 HAVE_DECL_SETENV
952 HAVE_SETENV
953 HAVE_SECURE_GETENV
954 HAVE_RPMATCH
955 HAVE_REALPATH
956 HAVE_REALLOCARRAY
957 HAVE_RANDOM_R
958 HAVE_RANDOM_H
959 HAVE_RANDOM
960 HAVE_QSORT_R
961 HAVE_PTSNAME_R
962 HAVE_PTSNAME
963 HAVE_POSIX_OPENPT
964 HAVE_MKSTEMPS
965 HAVE_MKSTEMP
966 HAVE_MKOSTEMPS
967 HAVE_MKOSTEMP
968 HAVE_MKDTEMP
969 HAVE_MBTOWC
970 HAVE_DECL_INITSTATE
971 HAVE_INITSTATE
972 HAVE_GRANTPT
973 HAVE_GETSUBOPT
974 HAVE_DECL_GETLOADAVG
975 HAVE_CANONICALIZE_FILE_NAME
976 HAVE_ATOLL
977 HAVE__EXIT
978 GNULIB_WCTOMB
979 GNULIB_UNSETENV
980 GNULIB_UNLOCKPT
981 GNULIB_SYSTEM_POSIX
982 GNULIB_STRTOULL
983 GNULIB_STRTOLL
984 GNULIB_STRTOLD
985 GNULIB_STRTOD
986 GNULIB_SETENV
987 GNULIB_SECURE_GETENV
988 GNULIB_RPMATCH
989 GNULIB_REALPATH
990 GNULIB_REALLOC_POSIX
991 GNULIB_REALLOCARRAY
992 GNULIB_RANDOM_R
993 GNULIB_RANDOM
994 GNULIB_QSORT_R
995 GNULIB_PUTENV
996 GNULIB_PTSNAME_R
997 GNULIB_PTSNAME
998 GNULIB_POSIX_OPENPT
999 GNULIB_MKSTEMPS
1000 GNULIB_MKSTEMP
1001 GNULIB_MKOSTEMPS
1002 GNULIB_MKOSTEMP
1003 GNULIB_MKDTEMP
1004 GNULIB_MBTOWC
1005 GNULIB_MALLOC_POSIX
1006 GNULIB_GRANTPT
1007 GNULIB_GETSUBOPT
1008 GNULIB_GETLOADAVG
1009 GNULIB_CANONICALIZE_FILE_NAME
1010 GNULIB_CALLOC_POSIX
1011 GNULIB_ATOLL
1012 GNULIB__EXIT
1013 NEXT_AS_FIRST_DIRECTIVE_FCNTL_H
1014 NEXT_FCNTL_H
1015 REPLACE_OPENAT
1016 REPLACE_OPEN
1017 REPLACE_FCNTL
1018 REPLACE_CREAT
1019 HAVE_OPENAT
1020 HAVE_FCNTL
1021 GNULIB_OPENAT
1022 GNULIB_OPEN
1023 GNULIB_NONBLOCKING
1024 GNULIB_FCNTL
1025 GNULIB_CREAT
1026 EOVERFLOW_VALUE
1027 EOVERFLOW_HIDDEN
1028 ENOLINK_VALUE
1029 ENOLINK_HIDDEN
1030 EMULTIHOP_VALUE
1031 EMULTIHOP_HIDDEN
1032 GL_GENERATE_ERRNO_H_FALSE
1033 GL_GENERATE_ERRNO_H_TRUE
1034 ERRNO_H
1035 NEXT_AS_FIRST_DIRECTIVE_ERRNO_H
1036 NEXT_ERRNO_H
1037 PRAGMA_COLUMNS
1038 PRAGMA_SYSTEM_HEADER
1039 INCLUDE_NEXT_AS_FIRST_DIRECTIVE
1040 INCLUDE_NEXT
1041 HAVE_WINSOCK2_H
1042 HAVE_MSVC_INVALID_PARAMETER_HANDLER
1043 HAVE_ALLOCA_H
1044 GL_GENERATE_ALLOCA_H_FALSE
1045 GL_GENERATE_ALLOCA_H_TRUE
1046 ALLOCA_H
1047 ALLOCA
1048 host_os
1049 host_vendor
1050 host_cpu
1051 host
1052 build_os
1053 build_vendor
1054 build_cpu
1055 build
1056 UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS
1057 UNISTD_H_HAVE_WINSOCK2_H
1058 REPLACE_WRITE
1059 REPLACE_USLEEP
1060 REPLACE_UNLINKAT
1061 REPLACE_UNLINK
1062 REPLACE_TTYNAME_R
1063 REPLACE_TRUNCATE
1064 REPLACE_SYMLINKAT
1065 REPLACE_SYMLINK
1066 REPLACE_SLEEP
1067 REPLACE_RMDIR
1068 REPLACE_READLINKAT
1069 REPLACE_READLINK
1070 REPLACE_READ
1071 REPLACE_PWRITE
1072 REPLACE_PREAD
1073 REPLACE_LSEEK
1074 REPLACE_LINKAT
1075 REPLACE_LINK
1076 REPLACE_LCHOWN
1077 REPLACE_ISATTY
1078 REPLACE_GETPASS
1079 REPLACE_GETPAGESIZE
1080 REPLACE_GETGROUPS
1081 REPLACE_GETLOGIN_R
1082 REPLACE_GETDTABLESIZE
1083 REPLACE_GETDOMAINNAME
1084 REPLACE_GETCWD
1085 REPLACE_FTRUNCATE
1086 REPLACE_FCHOWNAT
1087 REPLACE_FACCESSAT
1088 REPLACE_DUP2
1089 REPLACE_DUP
1090 REPLACE_CLOSE
1091 REPLACE_CHOWN
1092 REPLACE_ACCESS
1093 HAVE_SYS_PARAM_H
1094 HAVE_OS_H
1095 HAVE_DECL_TTYNAME_R
1096 HAVE_DECL_TRUNCATE
1097 HAVE_DECL_SETHOSTNAME
1098 HAVE_DECL_GETUSERSHELL
1099 HAVE_DECL_GETPAGESIZE
1100 HAVE_DECL_GETLOGIN_R
1101 HAVE_DECL_GETLOGIN
1102 HAVE_DECL_GETDOMAINNAME
1103 HAVE_DECL_FDATASYNC
1104 HAVE_DECL_FCHDIR
1105 HAVE_DECL_ENVIRON
1106 HAVE_USLEEP
1107 HAVE_UNLINKAT
1108 HAVE_SYMLINKAT
1109 HAVE_SYMLINK
1110 HAVE_SLEEP
1111 HAVE_SETHOSTNAME
1112 HAVE_READLINKAT
1113 HAVE_READLINK
1114 HAVE_PWRITE
1115 HAVE_PREAD
1116 HAVE_PIPE2
1117 HAVE_PIPE
1118 HAVE_LINKAT
1119 HAVE_LINK
1120 HAVE_LCHOWN
1121 HAVE_GROUP_MEMBER
1122 HAVE_GETPASS
1123 HAVE_GETPAGESIZE
1124 HAVE_GETLOGIN
1125 HAVE_GETHOSTNAME
1126 HAVE_GETGROUPS
1127 HAVE_GETDTABLESIZE
1128 HAVE_FTRUNCATE
1129 HAVE_FSYNC
1130 HAVE_FDATASYNC
1131 HAVE_FCHOWNAT
1132 HAVE_FCHDIR
1133 HAVE_FACCESSAT
1134 HAVE_EUIDACCESS
1135 HAVE_DUP3
1136 HAVE_DUP2
1137 HAVE_COPY_FILE_RANGE
1138 HAVE_CHOWN
1139 GNULIB_WRITE
1140 GNULIB_USLEEP
1141 GNULIB_UNLINKAT
1142 GNULIB_UNLINK
1143 GNULIB_UNISTD_H_SIGPIPE
1144 GNULIB_UNISTD_H_NONBLOCKING
1145 GNULIB_TTYNAME_R
1146 GNULIB_TRUNCATE
1147 GNULIB_SYMLINKAT
1148 GNULIB_SYMLINK
1149 GNULIB_SLEEP
1150 GNULIB_SETHOSTNAME
1151 GNULIB_RMDIR
1152 GNULIB_READLINKAT
1153 GNULIB_READLINK
1154 GNULIB_READ
1155 GNULIB_PWRITE
1156 GNULIB_PREAD
1157 GNULIB_PIPE2
1158 GNULIB_PIPE
1159 GNULIB_LSEEK
1160 GNULIB_LINKAT
1161 GNULIB_LINK
1162 GNULIB_LCHOWN
1163 GNULIB_ISATTY
1164 GNULIB_GROUP_MEMBER
1165 GNULIB_GETUSERSHELL
1166 GNULIB_GETPASS
1167 GNULIB_GETPAGESIZE
1168 GNULIB_GETLOGIN_R
1169 GNULIB_GETLOGIN
1170 GNULIB_GETHOSTNAME
1171 GNULIB_GETGROUPS
1172 GNULIB_GETDTABLESIZE
1173 GNULIB_GETDOMAINNAME
1174 GNULIB_GETCWD
1175 GNULIB_FTRUNCATE
1176 GNULIB_FSYNC
1177 GNULIB_FDATASYNC
1178 GNULIB_FCHOWNAT
1179 GNULIB_FCHDIR
1180 GNULIB_FACCESSAT
1181 GNULIB_EUIDACCESS
1182 GNULIB_ENVIRON
1183 GNULIB_DUP3
1184 GNULIB_DUP2
1185 GNULIB_DUP
1186 GNULIB_COPY_FILE_RANGE
1187 GNULIB_CLOSE
1188 GNULIB_CHOWN
1189 GNULIB_CHDIR
1190 GNULIB_ACCESS
1191 GL_COND_LIBTOOL_FALSE
1192 GL_COND_LIBTOOL_TRUE
1193 RANLIB
1194 ARFLAGS
1195 ac_ct_AR
1196 AR
1197 EGREP
1198 GREP
1199 CPP
1200 am__fastdepCC_FALSE
1201 am__fastdepCC_TRUE
1202 CCDEPMODE
1203 am__nodep
1204 AMDEPBACKSLASH
1205 AMDEP_FALSE
1206 AMDEP_TRUE
1207 am__include
1208 DEPDIR
1209 OBJEXT
1210 EXEEXT
1211 ac_ct_CC
1212 CPPFLAGS
1213 LDFLAGS
1214 CFLAGS
1215 CC
1216 AM_BACKSLASH
1217 AM_DEFAULT_VERBOSITY
1218 AM_DEFAULT_V
1219 AM_V
1220 am__untar
1221 am__tar
1222 AMTAR
1223 am__leading_dot
1224 SET_MAKE
1225 AWK
1226 mkdir_p
1227 MKDIR_P
1228 INSTALL_STRIP_PROGRAM
1229 STRIP
1230 install_sh
1231 MAKEINFO
1232 AUTOHEADER
1233 AUTOMAKE
1234 AUTOCONF
1235 ACLOCAL
1236 VERSION
1237 PACKAGE
1238 CYGPATH_W
1239 am__isrc
1240 INSTALL_DATA
1241 INSTALL_SCRIPT
1242 INSTALL_PROGRAM
1243 MAINT
1244 MAINTAINER_MODE_FALSE
1245 MAINTAINER_MODE_TRUE
1246 MAKE_PACKAGE
1247 MAKE_VERSION
1248 target_alias
1249 host_alias
1250 build_alias
1251 LIBS
1252 ECHO_T
1253 ECHO_N
1254 ECHO_C
1255 DEFS
1256 mandir
1257 localedir
1258 libdir
1259 psdir
1260 pdfdir
1261 dvidir
1262 htmldir
1263 infodir
1264 docdir
1265 oldincludedir
1266 includedir
1267 runstatedir
1268 localstatedir
1269 sharedstatedir
1270 sysconfdir
1271 datadir
1272 datarootdir
1273 libexecdir
1274 sbindir
1275 bindir
1276 program_transform_name
1277 prefix
1278 exec_prefix
1279 PACKAGE_URL
1280 PACKAGE_BUGREPORT
1281 PACKAGE_STRING
1282 PACKAGE_VERSION
1283 PACKAGE_TARNAME
1284 PACKAGE_NAME
1285 PATH_SEPARATOR
1286 SHELL
1287 am__quote'
1288 ac_subst_files='MAINT_MAKEFILE'
1289 ac_user_opts='
1290 enable_option_checking
1291 enable_maintainer_mode
1292 enable_silent_rules
1293 enable_dependency_tracking
1294 enable_cross_guesses
1295 enable_nls
1296 with_gnu_ld
1297 enable_rpath
1298 with_libiconv_prefix
1299 with_libintl_prefix
1300 enable_largefile
1301 with_guile
1302 with_make_name
1303 with_default_shell
1304 with_shell_trace
1305 with_customs
1306 enable_case_insensitive_file_system
1307 enable_job_server
1308 enable_load
1309 with_profiler_resolution
1310 enable_posix_spawn
1311 with_dmalloc
1312 '
1313 ac_precious_vars='build_alias
1314 host_alias
1315 target_alias
1316 CC
1317 CFLAGS
1318 LDFLAGS
1319 LIBS
1320 CPPFLAGS
1321 CPP
1322 PKG_CONFIG
1323 PKG_CONFIG_PATH
1324 PKG_CONFIG_LIBDIR
1325 GUILE_CFLAGS
1326 GUILE_LIBS'
1327
1328
1329 # Initialize some variables set by options.
1330 ac_init_help=
1331 ac_init_version=false
1332 ac_unrecognized_opts=
1333 ac_unrecognized_sep=
1334 # The variables have the same names as the options, with
1335 # dashes changed to underlines.
1336 cache_file=/dev/null
1337 exec_prefix=NONE
1338 no_create=
1339 no_recursion=
1340 prefix=NONE
1341 program_prefix=NONE
1342 program_suffix=NONE
1343 program_transform_name=s,x,x,
1344 silent=
1345 site=
1346 srcdir=
1347 verbose=
1348 x_includes=NONE
1349 x_libraries=NONE
1350
1351 # Installation directory options.
1352 # These are left unexpanded so users can "make install exec_prefix=/foo"
1353 # and all the variables that are supposed to be based on exec_prefix
1354 # by default will actually change.
1355 # Use braces instead of parens because sh, perl, etc. also accept them.
1356 # (The list follows the same order as the GNU Coding Standards.)
1357 bindir='${exec_prefix}/bin'
1358 sbindir='${exec_prefix}/sbin'
1359 libexecdir='${exec_prefix}/libexec'
1360 datarootdir='${prefix}/share'
1361 datadir='${datarootdir}'
1362 sysconfdir='${prefix}/etc'
1363 sharedstatedir='${prefix}/com'
1364 localstatedir='${prefix}/var'
1365 runstatedir='${localstatedir}/run'
1366 includedir='${prefix}/include'
1367 oldincludedir='/usr/include'
1368 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1369 infodir='${datarootdir}/info'
1370 htmldir='${docdir}'
1371 dvidir='${docdir}'
1372 pdfdir='${docdir}'
1373 psdir='${docdir}'
1374 libdir='${exec_prefix}/lib'
1375 localedir='${datarootdir}/locale'
1376 mandir='${datarootdir}/man'
1377
1378 ac_prev=
1379 ac_dashdash=
1380 for ac_option
1381 do
1382 # If the previous option needs an argument, assign it.
1383 if test -n "$ac_prev"; then
1384 eval $ac_prev=\$ac_option
1385 ac_prev=
1386 continue
1387 fi
1388
1389 case $ac_option in
1390 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1391 *=) ac_optarg= ;;
1392 *) ac_optarg=yes ;;
1393 esac
1394
1395 # Accept the important Cygnus configure options, so we can diagnose typos.
1396
1397 case $ac_dashdash$ac_option in
1398 --)
1399 ac_dashdash=yes ;;
1400
1401 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1402 ac_prev=bindir ;;
1403 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1404 bindir=$ac_optarg ;;
1405
1406 -build | --build | --buil | --bui | --bu)
1407 ac_prev=build_alias ;;
1408 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1409 build_alias=$ac_optarg ;;
1410
1411 -cache-file | --cache-file | --cache-fil | --cache-fi \
1412 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1413 ac_prev=cache_file ;;
1414 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1415 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1416 cache_file=$ac_optarg ;;
1417
1418 --config-cache | -C)
1419 cache_file=config.cache ;;
1420
1421 -datadir | --datadir | --datadi | --datad)
1422 ac_prev=datadir ;;
1423 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1424 datadir=$ac_optarg ;;
1425
1426 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1427 | --dataroo | --dataro | --datar)
1428 ac_prev=datarootdir ;;
1429 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1430 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1431 datarootdir=$ac_optarg ;;
1432
1433 -disable-* | --disable-*)
1434 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1435 # Reject names that are not valid shell variable names.
1436 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1437 as_fn_error $? "invalid feature name: $ac_useropt"
1438 ac_useropt_orig=$ac_useropt
1439 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1440 case $ac_user_opts in
1441 *"
1442 "enable_$ac_useropt"
1443 "*) ;;
1444 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1445 ac_unrecognized_sep=', ';;
1446 esac
1447 eval enable_$ac_useropt=no ;;
1448
1449 -docdir | --docdir | --docdi | --doc | --do)
1450 ac_prev=docdir ;;
1451 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1452 docdir=$ac_optarg ;;
1453
1454 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1455 ac_prev=dvidir ;;
1456 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1457 dvidir=$ac_optarg ;;
1458
1459 -enable-* | --enable-*)
1460 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1461 # Reject names that are not valid shell variable names.
1462 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1463 as_fn_error $? "invalid feature name: $ac_useropt"
1464 ac_useropt_orig=$ac_useropt
1465 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1466 case $ac_user_opts in
1467 *"
1468 "enable_$ac_useropt"
1469 "*) ;;
1470 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1471 ac_unrecognized_sep=', ';;
1472 esac
1473 eval enable_$ac_useropt=\$ac_optarg ;;
1474
1475 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1476 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1477 | --exec | --exe | --ex)
1478 ac_prev=exec_prefix ;;
1479 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1480 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1481 | --exec=* | --exe=* | --ex=*)
1482 exec_prefix=$ac_optarg ;;
1483
1484 -gas | --gas | --ga | --g)
1485 # Obsolete; use --with-gas.
1486 with_gas=yes ;;
1487
1488 -help | --help | --hel | --he | -h)
1489 ac_init_help=long ;;
1490 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1491 ac_init_help=recursive ;;
1492 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1493 ac_init_help=short ;;
1494
1495 -host | --host | --hos | --ho)
1496 ac_prev=host_alias ;;
1497 -host=* | --host=* | --hos=* | --ho=*)
1498 host_alias=$ac_optarg ;;
1499
1500 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1501 ac_prev=htmldir ;;
1502 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1503 | --ht=*)
1504 htmldir=$ac_optarg ;;
1505
1506 -includedir | --includedir | --includedi | --included | --include \
1507 | --includ | --inclu | --incl | --inc)
1508 ac_prev=includedir ;;
1509 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1510 | --includ=* | --inclu=* | --incl=* | --inc=*)
1511 includedir=$ac_optarg ;;
1512
1513 -infodir | --infodir | --infodi | --infod | --info | --inf)
1514 ac_prev=infodir ;;
1515 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1516 infodir=$ac_optarg ;;
1517
1518 -libdir | --libdir | --libdi | --libd)
1519 ac_prev=libdir ;;
1520 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1521 libdir=$ac_optarg ;;
1522
1523 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1524 | --libexe | --libex | --libe)
1525 ac_prev=libexecdir ;;
1526 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1527 | --libexe=* | --libex=* | --libe=*)
1528 libexecdir=$ac_optarg ;;
1529
1530 -localedir | --localedir | --localedi | --localed | --locale)
1531 ac_prev=localedir ;;
1532 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1533 localedir=$ac_optarg ;;
1534
1535 -localstatedir | --localstatedir | --localstatedi | --localstated \
1536 | --localstate | --localstat | --localsta | --localst | --locals)
1537 ac_prev=localstatedir ;;
1538 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1539 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1540 localstatedir=$ac_optarg ;;
1541
1542 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1543 ac_prev=mandir ;;
1544 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1545 mandir=$ac_optarg ;;
1546
1547 -nfp | --nfp | --nf)
1548 # Obsolete; use --without-fp.
1549 with_fp=no ;;
1550
1551 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1552 | --no-cr | --no-c | -n)
1553 no_create=yes ;;
1554
1555 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1556 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1557 no_recursion=yes ;;
1558
1559 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1560 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1561 | --oldin | --oldi | --old | --ol | --o)
1562 ac_prev=oldincludedir ;;
1563 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1564 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1565 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1566 oldincludedir=$ac_optarg ;;
1567
1568 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1569 ac_prev=prefix ;;
1570 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1571 prefix=$ac_optarg ;;
1572
1573 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1574 | --program-pre | --program-pr | --program-p)
1575 ac_prev=program_prefix ;;
1576 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1577 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1578 program_prefix=$ac_optarg ;;
1579
1580 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1581 | --program-suf | --program-su | --program-s)
1582 ac_prev=program_suffix ;;
1583 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1584 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1585 program_suffix=$ac_optarg ;;
1586
1587 -program-transform-name | --program-transform-name \
1588 | --program-transform-nam | --program-transform-na \
1589 | --program-transform-n | --program-transform- \
1590 | --program-transform | --program-transfor \
1591 | --program-transfo | --program-transf \
1592 | --program-trans | --program-tran \
1593 | --progr-tra | --program-tr | --program-t)
1594 ac_prev=program_transform_name ;;
1595 -program-transform-name=* | --program-transform-name=* \
1596 | --program-transform-nam=* | --program-transform-na=* \
1597 | --program-transform-n=* | --program-transform-=* \
1598 | --program-transform=* | --program-transfor=* \
1599 | --program-transfo=* | --program-transf=* \
1600 | --program-trans=* | --program-tran=* \
1601 | --progr-tra=* | --program-tr=* | --program-t=*)
1602 program_transform_name=$ac_optarg ;;
1603
1604 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1605 ac_prev=pdfdir ;;
1606 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1607 pdfdir=$ac_optarg ;;
1608
1609 -psdir | --psdir | --psdi | --psd | --ps)
1610 ac_prev=psdir ;;
1611 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1612 psdir=$ac_optarg ;;
1613
1614 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1615 | -silent | --silent | --silen | --sile | --sil)
1616 silent=yes ;;
1617
1618 -runstatedir | --runstatedir | --runstatedi | --runstated \
1619 | --runstate | --runstat | --runsta | --runst | --runs \
1620 | --run | --ru | --r)
1621 ac_prev=runstatedir ;;
1622 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1623 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1624 | --run=* | --ru=* | --r=*)
1625 runstatedir=$ac_optarg ;;
1626
1627 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1628 ac_prev=sbindir ;;
1629 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1630 | --sbi=* | --sb=*)
1631 sbindir=$ac_optarg ;;
1632
1633 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1634 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1635 | --sharedst | --shareds | --shared | --share | --shar \
1636 | --sha | --sh)
1637 ac_prev=sharedstatedir ;;
1638 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1639 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1640 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1641 | --sha=* | --sh=*)
1642 sharedstatedir=$ac_optarg ;;
1643
1644 -site | --site | --sit)
1645 ac_prev=site ;;
1646 -site=* | --site=* | --sit=*)
1647 site=$ac_optarg ;;
1648
1649 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1650 ac_prev=srcdir ;;
1651 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1652 srcdir=$ac_optarg ;;
1653
1654 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1655 | --syscon | --sysco | --sysc | --sys | --sy)
1656 ac_prev=sysconfdir ;;
1657 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1658 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1659 sysconfdir=$ac_optarg ;;
1660
1661 -target | --target | --targe | --targ | --tar | --ta | --t)
1662 ac_prev=target_alias ;;
1663 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1664 target_alias=$ac_optarg ;;
1665
1666 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1667 verbose=yes ;;
1668
1669 -version | --version | --versio | --versi | --vers | -V)
1670 ac_init_version=: ;;
1671
1672 -with-* | --with-*)
1673 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1674 # Reject names that are not valid shell variable names.
1675 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1676 as_fn_error $? "invalid package name: $ac_useropt"
1677 ac_useropt_orig=$ac_useropt
1678 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1679 case $ac_user_opts in
1680 *"
1681 "with_$ac_useropt"
1682 "*) ;;
1683 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1684 ac_unrecognized_sep=', ';;
1685 esac
1686 eval with_$ac_useropt=\$ac_optarg ;;
1687
1688 -without-* | --without-*)
1689 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1690 # Reject names that are not valid shell variable names.
1691 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1692 as_fn_error $? "invalid package name: $ac_useropt"
1693 ac_useropt_orig=$ac_useropt
1694 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1695 case $ac_user_opts in
1696 *"
1697 "with_$ac_useropt"
1698 "*) ;;
1699 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1700 ac_unrecognized_sep=', ';;
1701 esac
1702 eval with_$ac_useropt=no ;;
1703
1704 --x)
1705 # Obsolete; use --with-x.
1706 with_x=yes ;;
1707
1708 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1709 | --x-incl | --x-inc | --x-in | --x-i)
1710 ac_prev=x_includes ;;
1711 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1712 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1713 x_includes=$ac_optarg ;;
1714
1715 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1716 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1717 ac_prev=x_libraries ;;
1718 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1719 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1720 x_libraries=$ac_optarg ;;
1721
1722 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1723 Try \`$0 --help' for more information"
1724 ;;
1725
1726 *=*)
1727 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1728 # Reject names that are not valid shell variable names.
1729 case $ac_envvar in #(
1730 '' | [0-9]* | *[!_$as_cr_alnum]* )
1731 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1732 esac
1733 eval $ac_envvar=\$ac_optarg
1734 export $ac_envvar ;;
1735
1736 *)
1737 # FIXME: should be removed in autoconf 3.0.
1738 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1739 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1740 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1741 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1742 ;;
1743
1744 esac
1745 done
1746
1747 if test -n "$ac_prev"; then
1748 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1749 as_fn_error $? "missing argument to $ac_option"
1750 fi
1751
1752 if test -n "$ac_unrecognized_opts"; then
1753 case $enable_option_checking in
1754 no) ;;
1755 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1756 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1757 esac
1758 fi
1759
1760 # Check all directory arguments for consistency.
1761 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1762 datadir sysconfdir sharedstatedir localstatedir includedir \
1763 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1764 libdir localedir mandir runstatedir
1765 do
1766 eval ac_val=\$$ac_var
1767 # Remove trailing slashes.
1768 case $ac_val in
1769 */ )
1770 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1771 eval $ac_var=\$ac_val;;
1772 esac
1773 # Be sure to have absolute directory names.
1774 case $ac_val in
1775 [\\/$]* | ?:[\\/]* ) continue;;
1776 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1777 esac
1778 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1779 done
1780
1781 # There might be people who depend on the old broken behavior: `$host'
1782 # used to hold the argument of --host etc.
1783 # FIXME: To remove some day.
1784 build=$build_alias
1785 host=$host_alias
1786 target=$target_alias
1787
1788 # FIXME: To remove some day.
1789 if test "x$host_alias" != x; then
1790 if test "x$build_alias" = x; then
1791 cross_compiling=maybe
1792 elif test "x$build_alias" != "x$host_alias"; then
1793 cross_compiling=yes
1794 fi
1795 fi
1796
1797 ac_tool_prefix=
1798 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1799
1800 test "$silent" = yes && exec 6>/dev/null
1801
1802
1803 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1804 ac_ls_di=`ls -di .` &&
1805 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1806 as_fn_error $? "working directory cannot be determined"
1807 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1808 as_fn_error $? "pwd does not report name of working directory"
1809
1810
1811 # Find the source files, if location was not specified.
1812 if test -z "$srcdir"; then
1813 ac_srcdir_defaulted=yes
1814 # Try the directory containing this script, then the parent directory.
1815 ac_confdir=`$as_dirname -- "$as_myself" ||
1816 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1817 X"$as_myself" : 'X\(//\)[^/]' \| \
1818 X"$as_myself" : 'X\(//\)$' \| \
1819 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1820 $as_echo X"$as_myself" |
1821 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1822 s//\1/
1823 q
1824 }
1825 /^X\(\/\/\)[^/].*/{
1826 s//\1/
1827 q
1828 }
1829 /^X\(\/\/\)$/{
1830 s//\1/
1831 q
1832 }
1833 /^X\(\/\).*/{
1834 s//\1/
1835 q
1836 }
1837 s/.*/./; q'`
1838 srcdir=$ac_confdir
1839 if test ! -r "$srcdir/$ac_unique_file"; then
1840 srcdir=..
1841 fi
1842 else
1843 ac_srcdir_defaulted=no
1844 fi
1845 if test ! -r "$srcdir/$ac_unique_file"; then
1846 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1847 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1848 fi
1849 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1850 ac_abs_confdir=`(
1851 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1852 pwd)`
1853 # When building in place, set srcdir=.
1854 if test "$ac_abs_confdir" = "$ac_pwd"; then
1855 srcdir=.
1856 fi
1857 # Remove unnecessary trailing slashes from srcdir.
1858 # Double slashes in file names in object file debugging info
1859 # mess up M-x gdb in Emacs.
1860 case $srcdir in
1861 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1862 esac
1863 for ac_var in $ac_precious_vars; do
1864 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1865 eval ac_env_${ac_var}_value=\$${ac_var}
1866 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1867 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1868 done
1869
1870 #
1871 # Report the --help message.
1872 #
1873 if test "$ac_init_help" = "long"; then
1874 # Omit some internal or obsolete options to make the list less imposing.
1875 # This message is too long to be a string in the A/UX 3.1 sh.
1876 cat <<_ACEOF
1877 \`configure' configures remake 4.3+dbg-1.6 to adapt to many kinds of systems.
1878
1879 Usage: $0 [OPTION]... [VAR=VALUE]...
1880
1881 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1882 VAR=VALUE. See below for descriptions of some of the useful variables.
1883
1884 Defaults for the options are specified in brackets.
1885
1886 Configuration:
1887 -h, --help display this help and exit
1888 --help=short display options specific to this package
1889 --help=recursive display the short help of all the included packages
1890 -V, --version display version information and exit
1891 -q, --quiet, --silent do not print \`checking ...' messages
1892 --cache-file=FILE cache test results in FILE [disabled]
1893 -C, --config-cache alias for \`--cache-file=config.cache'
1894 -n, --no-create do not create output files
1895 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1896
1897 Installation directories:
1898 --prefix=PREFIX install architecture-independent files in PREFIX
1899 [$ac_default_prefix]
1900 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1901 [PREFIX]
1902
1903 By default, \`make install' will install all the files in
1904 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1905 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1906 for instance \`--prefix=\$HOME'.
1907
1908 For better control, use the options below.
1909
1910 Fine tuning of the installation directories:
1911 --bindir=DIR user executables [EPREFIX/bin]
1912 --sbindir=DIR system admin executables [EPREFIX/sbin]
1913 --libexecdir=DIR program executables [EPREFIX/libexec]
1914 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1915 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1916 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1917 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run]
1918 --libdir=DIR object code libraries [EPREFIX/lib]
1919 --includedir=DIR C header files [PREFIX/include]
1920 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1921 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1922 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1923 --infodir=DIR info documentation [DATAROOTDIR/info]
1924 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1925 --mandir=DIR man documentation [DATAROOTDIR/man]
1926 --docdir=DIR documentation root [DATAROOTDIR/doc/remake]
1927 --htmldir=DIR html documentation [DOCDIR]
1928 --dvidir=DIR dvi documentation [DOCDIR]
1929 --pdfdir=DIR pdf documentation [DOCDIR]
1930 --psdir=DIR ps documentation [DOCDIR]
1931 _ACEOF
1932
1933 cat <<\_ACEOF
1934
1935 Program names:
1936 --program-prefix=PREFIX prepend PREFIX to installed program names
1937 --program-suffix=SUFFIX append SUFFIX to installed program names
1938 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1939
1940 System types:
1941 --build=BUILD configure for building on BUILD [guessed]
1942 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1943 _ACEOF
1944 fi
1945
1946 if test -n "$ac_init_help"; then
1947 case $ac_init_help in
1948 short | recursive ) echo "Configuration of remake 4.3+dbg-1.6:";;
1949 esac
1950 cat <<\_ACEOF
1951
1952 Optional Features:
1953 --disable-option-checking ignore unrecognized --enable/--with options
1954 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1955 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1956 --enable-maintainer-mode
1957 enable make rules and dependencies not useful (and
1958 sometimes confusing) to the casual installer
1959 --enable-silent-rules less verbose build output (undo: "make V=1")
1960 --disable-silent-rules verbose build output (undo: "make V=0")
1961 --enable-dependency-tracking
1962 do not reject slow dependency extractors
1963 --disable-dependency-tracking
1964 speeds up one-time build
1965 --enable-cross-guesses={conservative|risky}
1966 specify policy for cross-compilation guesses
1967 --disable-nls do not use Native Language Support
1968 --disable-rpath do not hardcode runtime library paths
1969 --disable-largefile omit support for large files
1970 --enable-case-insensitive-file-system
1971 assume file systems are case insensitive
1972 --disable-job-server disallow recursive make communication during -jN
1973 --disable-load disable support for the 'load' operation
1974 --disable-posix-spawn disable support for posix_spawn()
1975
1976 Optional Packages:
1977 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1978 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1979 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1980 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
1981 --without-libiconv-prefix don't search for libiconv in includedir and libdir
1982 --with-libintl-prefix[=DIR] search for libintl in DIR/include and DIR/lib
1983 --without-libintl-prefix don't search for libintl in includedir and libdir
1984 --with-guile Support GNU Guile for embedded scripting
1985 --with-make-name name to use as the program name (default remake)
1986 --with-default-shell program to use for SHELL
1987 --with-shell-trace option to pass to shell to have it trace commands (default -x)
1988 --with-customs=DIR enable remote jobs via Customs--see README.customs
1989 --with-profiler-resolution
1990 require minimum profiler resolution in nanoseconds,
1991 defaults to 1000
1992 --with-dmalloc use dmalloc, as in http://www.dmalloc.com
1993
1994 Some influential environment variables:
1995 CC C compiler command
1996 CFLAGS C compiler flags
1997 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1998 nonstandard directory <lib dir>
1999 LIBS libraries to pass to the linker, e.g. -l<library>
2000 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
2001 you have headers in a nonstandard directory <include dir>
2002 CPP C preprocessor
2003 PKG_CONFIG path to pkg-config utility
2004 PKG_CONFIG_PATH
2005 directories to add to pkg-config's search path
2006 PKG_CONFIG_LIBDIR
2007 path overriding pkg-config's built-in search path
2008 GUILE_CFLAGS
2009 C compiler flags for GUILE, overriding pkg-config
2010 GUILE_LIBS linker flags for GUILE, overriding pkg-config
2011
2012 Use these variables to override the choices made by `configure' or to help
2013 it to find libraries and programs with nonstandard names/locations.
2014
2015 Report bugs to <https://github.com/rocky/remake/issues>.
2016 _ACEOF
2017 ac_status=$?
2018 fi
2019
2020 if test "$ac_init_help" = "recursive"; then
2021 # If there are subdirs, report their specific --help.
2022 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
2023 test -d "$ac_dir" ||
2024 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
2025 continue
2026 ac_builddir=.
2027
2028 case "$ac_dir" in
2029 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
2030 *)
2031 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
2032 # A ".." for each directory in $ac_dir_suffix.
2033 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
2034 case $ac_top_builddir_sub in
2035 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
2036 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
2037 esac ;;
2038 esac
2039 ac_abs_top_builddir=$ac_pwd
2040 ac_abs_builddir=$ac_pwd$ac_dir_suffix
2041 # for backward compatibility:
2042 ac_top_builddir=$ac_top_build_prefix
2043
2044 case $srcdir in
2045 .) # We are building in place.
2046 ac_srcdir=.
2047 ac_top_srcdir=$ac_top_builddir_sub
2048 ac_abs_top_srcdir=$ac_pwd ;;
2049 [\\/]* | ?:[\\/]* ) # Absolute name.
2050 ac_srcdir=$srcdir$ac_dir_suffix;
2051 ac_top_srcdir=$srcdir
2052 ac_abs_top_srcdir=$srcdir ;;
2053 *) # Relative name.
2054 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
2055 ac_top_srcdir=$ac_top_build_prefix$srcdir
2056 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
2057 esac
2058 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
2059
2060 cd "$ac_dir" || { ac_status=$?; continue; }
2061 # Check for guested configure.
2062 if test -f "$ac_srcdir/configure.gnu"; then
2063 echo &&
2064 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
2065 elif test -f "$ac_srcdir/configure"; then
2066 echo &&
2067 $SHELL "$ac_srcdir/configure" --help=recursive
2068 else
2069 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
2070 fi || ac_status=$?
2071 cd "$ac_pwd" || { ac_status=$?; break; }
2072 done
2073 fi
2074
2075 test -n "$ac_init_help" && exit $ac_status
2076 if $ac_init_version; then
2077 cat <<\_ACEOF
2078 remake configure 4.3+dbg-1.6
2079 generated by GNU Autoconf 2.69
2080
2081 Copyright (C) 2012 Free Software Foundation, Inc.
2082 This configure script is free software; the Free Software Foundation
2083 gives unlimited permission to copy, distribute and modify it.
2084 _ACEOF
2085 exit
2086 fi
2087
2088 ## ------------------------ ##
2089 ## Autoconf initialization. ##
2090 ## ------------------------ ##
2091
2092 # ac_fn_c_try_compile LINENO
2093 # --------------------------
2094 # Try to compile conftest.$ac_ext, and return whether this succeeded.
2095 ac_fn_c_try_compile ()
2096 {
2097 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2098 rm -f conftest.$ac_objext
2099 if { { ac_try="$ac_compile"
2100 case "(($ac_try" in
2101 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2102 *) ac_try_echo=$ac_try;;
2103 esac
2104 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2105 $as_echo "$ac_try_echo"; } >&5
2106 (eval "$ac_compile") 2>conftest.err
2107 ac_status=$?
2108 if test -s conftest.err; then
2109 grep -v '^ *+' conftest.err >conftest.er1
2110 cat conftest.er1 >&5
2111 mv -f conftest.er1 conftest.err
2112 fi
2113 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2114 test $ac_status = 0; } && {
2115 test -z "$ac_c_werror_flag" ||
2116 test ! -s conftest.err
2117 } && test -s conftest.$ac_objext; then :
2118 ac_retval=0
2119 else
2120 $as_echo "$as_me: failed program was:" >&5
2121 sed 's/^/| /' conftest.$ac_ext >&5
2122
2123 ac_retval=1
2124 fi
2125 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2126 as_fn_set_status $ac_retval
2127
2128 } # ac_fn_c_try_compile
2129
2130 # ac_fn_c_try_cpp LINENO
2131 # ----------------------
2132 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2133 ac_fn_c_try_cpp ()
2134 {
2135 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2136 if { { ac_try="$ac_cpp conftest.$ac_ext"
2137 case "(($ac_try" in
2138 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2139 *) ac_try_echo=$ac_try;;
2140 esac
2141 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2142 $as_echo "$ac_try_echo"; } >&5
2143 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2144 ac_status=$?
2145 if test -s conftest.err; then
2146 grep -v '^ *+' conftest.err >conftest.er1
2147 cat conftest.er1 >&5
2148 mv -f conftest.er1 conftest.err
2149 fi
2150 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2151 test $ac_status = 0; } > conftest.i && {
2152 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2153 test ! -s conftest.err
2154 }; then :
2155 ac_retval=0
2156 else
2157 $as_echo "$as_me: failed program was:" >&5
2158 sed 's/^/| /' conftest.$ac_ext >&5
2159
2160 ac_retval=1
2161 fi
2162 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2163 as_fn_set_status $ac_retval
2164
2165 } # ac_fn_c_try_cpp
2166
2167 # ac_fn_c_try_run LINENO
2168 # ----------------------
2169 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2170 # that executables *can* be run.
2171 ac_fn_c_try_run ()
2172 {
2173 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2174 if { { ac_try="$ac_link"
2175 case "(($ac_try" in
2176 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2177 *) ac_try_echo=$ac_try;;
2178 esac
2179 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2180 $as_echo "$ac_try_echo"; } >&5
2181 (eval "$ac_link") 2>&5
2182 ac_status=$?
2183 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2184 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2185 { { case "(($ac_try" in
2186 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2187 *) ac_try_echo=$ac_try;;
2188 esac
2189 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2190 $as_echo "$ac_try_echo"; } >&5
2191 (eval "$ac_try") 2>&5
2192 ac_status=$?
2193 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2194 test $ac_status = 0; }; }; then :
2195 ac_retval=0
2196 else
2197 $as_echo "$as_me: program exited with status $ac_status" >&5
2198 $as_echo "$as_me: failed program was:" >&5
2199 sed 's/^/| /' conftest.$ac_ext >&5
2200
2201 ac_retval=$ac_status
2202 fi
2203 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2204 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2205 as_fn_set_status $ac_retval
2206
2207 } # ac_fn_c_try_run
2208
2209 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2210 # -------------------------------------------------------
2211 # Tests whether HEADER exists and can be compiled using the include files in
2212 # INCLUDES, setting the cache variable VAR accordingly.
2213 ac_fn_c_check_header_compile ()
2214 {
2215 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2216 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2217 $as_echo_n "checking for $2... " >&6; }
2218 if eval \${$3+:} false; then :
2219 $as_echo_n "(cached) " >&6
2220 else
2221 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2222 /* end confdefs.h. */
2223 $4
2224 #include <$2>
2225 _ACEOF
2226 if ac_fn_c_try_compile "$LINENO"; then :
2227 eval "$3=yes"
2228 else
2229 eval "$3=no"
2230 fi
2231 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2232 fi
2233 eval ac_res=\$$3
2234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2235 $as_echo "$ac_res" >&6; }
2236 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2237
2238 } # ac_fn_c_check_header_compile
2239
2240 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2241 # -------------------------------------------
2242 # Tests whether TYPE exists after having included INCLUDES, setting cache
2243 # variable VAR accordingly.
2244 ac_fn_c_check_type ()
2245 {
2246 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2248 $as_echo_n "checking for $2... " >&6; }
2249 if eval \${$3+:} false; then :
2250 $as_echo_n "(cached) " >&6
2251 else
2252 eval "$3=no"
2253 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2254 /* end confdefs.h. */
2255 $4
2256 int
2257 main ()
2258 {
2259 if (sizeof ($2))
2260 return 0;
2261 ;
2262 return 0;
2263 }
2264 _ACEOF
2265 if ac_fn_c_try_compile "$LINENO"; then :
2266 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2267 /* end confdefs.h. */
2268 $4
2269 int
2270 main ()
2271 {
2272 if (sizeof (($2)))
2273 return 0;
2274 ;
2275 return 0;
2276 }
2277 _ACEOF
2278 if ac_fn_c_try_compile "$LINENO"; then :
2279
2280 else
2281 eval "$3=yes"
2282 fi
2283 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2284 fi
2285 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2286 fi
2287 eval ac_res=\$$3
2288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2289 $as_echo "$ac_res" >&6; }
2290 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2291
2292 } # ac_fn_c_check_type
2293
2294 # ac_fn_c_try_link LINENO
2295 # -----------------------
2296 # Try to link conftest.$ac_ext, and return whether this succeeded.
2297 ac_fn_c_try_link ()
2298 {
2299 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2300 rm -f conftest.$ac_objext conftest$ac_exeext
2301 if { { ac_try="$ac_link"
2302 case "(($ac_try" in
2303 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2304 *) ac_try_echo=$ac_try;;
2305 esac
2306 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2307 $as_echo "$ac_try_echo"; } >&5
2308 (eval "$ac_link") 2>conftest.err
2309 ac_status=$?
2310 if test -s conftest.err; then
2311 grep -v '^ *+' conftest.err >conftest.er1
2312 cat conftest.er1 >&5
2313 mv -f conftest.er1 conftest.err
2314 fi
2315 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2316 test $ac_status = 0; } && {
2317 test -z "$ac_c_werror_flag" ||
2318 test ! -s conftest.err
2319 } && test -s conftest$ac_exeext && {
2320 test "$cross_compiling" = yes ||
2321 test -x conftest$ac_exeext
2322 }; then :
2323 ac_retval=0
2324 else
2325 $as_echo "$as_me: failed program was:" >&5
2326 sed 's/^/| /' conftest.$ac_ext >&5
2327
2328 ac_retval=1
2329 fi
2330 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2331 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2332 # interfere with the next link command; also delete a directory that is
2333 # left behind by Apple's compiler. We do this before executing the actions.
2334 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2335 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2336 as_fn_set_status $ac_retval
2337
2338 } # ac_fn_c_try_link
2339
2340 # ac_fn_c_check_func LINENO FUNC VAR
2341 # ----------------------------------
2342 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2343 ac_fn_c_check_func ()
2344 {
2345 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2346 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2347 $as_echo_n "checking for $2... " >&6; }
2348 if eval \${$3+:} false; then :
2349 $as_echo_n "(cached) " >&6
2350 else
2351 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2352 /* end confdefs.h. */
2353 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2354 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2355 #define $2 innocuous_$2
2356
2357 /* System header to define __stub macros and hopefully few prototypes,
2358 which can conflict with char $2 (); below.
2359 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2360 <limits.h> exists even on freestanding compilers. */
2361
2362 #ifdef __STDC__
2363 # include <limits.h>
2364 #else
2365 # include <assert.h>
2366 #endif
2367
2368 #undef $2
2369
2370 /* Override any GCC internal prototype to avoid an error.
2371 Use char because int might match the return type of a GCC
2372 builtin and then its argument prototype would still apply. */
2373 #ifdef __cplusplus
2374 extern "C"
2375 #endif
2376 char $2 ();
2377 /* The GNU C library defines this for functions which it implements
2378 to always fail with ENOSYS. Some functions are actually named
2379 something starting with __ and the normal name is an alias. */
2380 #if defined __stub_$2 || defined __stub___$2
2381 choke me
2382 #endif
2383
2384 int
2385 main ()
2386 {
2387 return $2 ();
2388 ;
2389 return 0;
2390 }
2391 _ACEOF
2392 if ac_fn_c_try_link "$LINENO"; then :
2393 eval "$3=yes"
2394 else
2395 eval "$3=no"
2396 fi
2397 rm -f core conftest.err conftest.$ac_objext \
2398 conftest$ac_exeext conftest.$ac_ext
2399 fi
2400 eval ac_res=\$$3
2401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2402 $as_echo "$ac_res" >&6; }
2403 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2404
2405 } # ac_fn_c_check_func
2406
2407 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2408 # -------------------------------------------------------
2409 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2410 # the include files in INCLUDES and setting the cache variable VAR
2411 # accordingly.
2412 ac_fn_c_check_header_mongrel ()
2413 {
2414 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2415 if eval \${$3+:} false; then :
2416 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2417 $as_echo_n "checking for $2... " >&6; }
2418 if eval \${$3+:} false; then :
2419 $as_echo_n "(cached) " >&6
2420 fi
2421 eval ac_res=\$$3
2422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2423 $as_echo "$ac_res" >&6; }
2424 else
2425 # Is the header compilable?
2426 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2427 $as_echo_n "checking $2 usability... " >&6; }
2428 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2429 /* end confdefs.h. */
2430 $4
2431 #include <$2>
2432 _ACEOF
2433 if ac_fn_c_try_compile "$LINENO"; then :
2434 ac_header_compiler=yes
2435 else
2436 ac_header_compiler=no
2437 fi
2438 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2440 $as_echo "$ac_header_compiler" >&6; }
2441
2442 # Is the header present?
2443 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2444 $as_echo_n "checking $2 presence... " >&6; }
2445 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2446 /* end confdefs.h. */
2447 #include <$2>
2448 _ACEOF
2449 if ac_fn_c_try_cpp "$LINENO"; then :
2450 ac_header_preproc=yes
2451 else
2452 ac_header_preproc=no
2453 fi
2454 rm -f conftest.err conftest.i conftest.$ac_ext
2455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2456 $as_echo "$ac_header_preproc" >&6; }
2457
2458 # So? What about this header?
2459 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2460 yes:no: )
2461 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2462 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2463 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2464 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2465 ;;
2466 no:yes:* )
2467 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2468 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2469 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2470 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2471 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2472 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2473 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2474 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2475 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2476 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2477 ( $as_echo "## ----------------------------------------------------- ##
2478 ## Report this to https://github.com/rocky/remake/issues ##
2479 ## ----------------------------------------------------- ##"
2480 ) | sed "s/^/$as_me: WARNING: /" >&2
2481 ;;
2482 esac
2483 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2484 $as_echo_n "checking for $2... " >&6; }
2485 if eval \${$3+:} false; then :
2486 $as_echo_n "(cached) " >&6
2487 else
2488 eval "$3=\$ac_header_compiler"
2489 fi
2490 eval ac_res=\$$3
2491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2492 $as_echo "$ac_res" >&6; }
2493 fi
2494 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2495
2496 } # ac_fn_c_check_header_mongrel
2497
2498 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2499 # --------------------------------------------
2500 # Tries to find the compile-time value of EXPR in a program that includes
2501 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2502 # computed
2503 ac_fn_c_compute_int ()
2504 {
2505 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2506 if test "$cross_compiling" = yes; then
2507 # Depending upon the size, compute the lo and hi bounds.
2508 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2509 /* end confdefs.h. */
2510 $4
2511 int
2512 main ()
2513 {
2514 static int test_array [1 - 2 * !(($2) >= 0)];
2515 test_array [0] = 0;
2516 return test_array [0];
2517
2518 ;
2519 return 0;
2520 }
2521 _ACEOF
2522 if ac_fn_c_try_compile "$LINENO"; then :
2523 ac_lo=0 ac_mid=0
2524 while :; do
2525 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2526 /* end confdefs.h. */
2527 $4
2528 int
2529 main ()
2530 {
2531 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2532 test_array [0] = 0;
2533 return test_array [0];
2534
2535 ;
2536 return 0;
2537 }
2538 _ACEOF
2539 if ac_fn_c_try_compile "$LINENO"; then :
2540 ac_hi=$ac_mid; break
2541 else
2542 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2543 if test $ac_lo -le $ac_mid; then
2544 ac_lo= ac_hi=
2545 break
2546 fi
2547 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2548 fi
2549 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2550 done
2551 else
2552 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2553 /* end confdefs.h. */
2554 $4
2555 int
2556 main ()
2557 {
2558 static int test_array [1 - 2 * !(($2) < 0)];
2559 test_array [0] = 0;
2560 return test_array [0];
2561
2562 ;
2563 return 0;
2564 }
2565 _ACEOF
2566 if ac_fn_c_try_compile "$LINENO"; then :
2567 ac_hi=-1 ac_mid=-1
2568 while :; do
2569 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2570 /* end confdefs.h. */
2571 $4
2572 int
2573 main ()
2574 {
2575 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2576 test_array [0] = 0;
2577 return test_array [0];
2578
2579 ;
2580 return 0;
2581 }
2582 _ACEOF
2583 if ac_fn_c_try_compile "$LINENO"; then :
2584 ac_lo=$ac_mid; break
2585 else
2586 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2587 if test $ac_mid -le $ac_hi; then
2588 ac_lo= ac_hi=
2589 break
2590 fi
2591 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2592 fi
2593 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2594 done
2595 else
2596 ac_lo= ac_hi=
2597 fi
2598 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2599 fi
2600 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2601 # Binary search between lo and hi bounds.
2602 while test "x$ac_lo" != "x$ac_hi"; do
2603 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2604 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2605 /* end confdefs.h. */
2606 $4
2607 int
2608 main ()
2609 {
2610 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2611 test_array [0] = 0;
2612 return test_array [0];
2613
2614 ;
2615 return 0;
2616 }
2617 _ACEOF
2618 if ac_fn_c_try_compile "$LINENO"; then :
2619 ac_hi=$ac_mid
2620 else
2621 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2622 fi
2623 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2624 done
2625 case $ac_lo in #((
2626 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2627 '') ac_retval=1 ;;
2628 esac
2629 else
2630 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2631 /* end confdefs.h. */
2632 $4
2633 static long int longval () { return $2; }
2634 static unsigned long int ulongval () { return $2; }
2635 #include <stdio.h>
2636 #include <stdlib.h>
2637 int
2638 main ()
2639 {
2640
2641 FILE *f = fopen ("conftest.val", "w");
2642 if (! f)
2643 return 1;
2644 if (($2) < 0)
2645 {
2646 long int i = longval ();
2647 if (i != ($2))
2648 return 1;
2649 fprintf (f, "%ld", i);
2650 }
2651 else
2652 {
2653 unsigned long int i = ulongval ();
2654 if (i != ($2))
2655 return 1;
2656 fprintf (f, "%lu", i);
2657 }
2658 /* Do not output a trailing newline, as this causes \r\n confusion
2659 on some platforms. */
2660 return ferror (f) || fclose (f) != 0;
2661
2662 ;
2663 return 0;
2664 }
2665 _ACEOF
2666 if ac_fn_c_try_run "$LINENO"; then :
2667 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2668 else
2669 ac_retval=1
2670 fi
2671 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2672 conftest.$ac_objext conftest.beam conftest.$ac_ext
2673 rm -f conftest.val
2674
2675 fi
2676 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2677 as_fn_set_status $ac_retval
2678
2679 } # ac_fn_c_compute_int
2680
2681 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2682 # ---------------------------------------------
2683 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2684 # accordingly.
2685 ac_fn_c_check_decl ()
2686 {
2687 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2688 as_decl_name=`echo $2|sed 's/ *(.*//'`
2689 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2690 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2691 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2692 if eval \${$3+:} false; then :
2693 $as_echo_n "(cached) " >&6
2694 else
2695 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2696 /* end confdefs.h. */
2697 $4
2698 int
2699 main ()
2700 {
2701 #ifndef $as_decl_name
2702 #ifdef __cplusplus
2703 (void) $as_decl_use;
2704 #else
2705 (void) $as_decl_name;
2706 #endif
2707 #endif
2708
2709 ;
2710 return 0;
2711 }
2712 _ACEOF
2713 if ac_fn_c_try_compile "$LINENO"; then :
2714 eval "$3=yes"
2715 else
2716 eval "$3=no"
2717 fi
2718 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2719 fi
2720 eval ac_res=\$$3
2721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2722 $as_echo "$ac_res" >&6; }
2723 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2724
2725 } # ac_fn_c_check_decl
2726
2727 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2728 # ----------------------------------------------------
2729 # Tries to find if the field MEMBER exists in type AGGR, after including
2730 # INCLUDES, setting cache variable VAR accordingly.
2731 ac_fn_c_check_member ()
2732 {
2733 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2734 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2735 $as_echo_n "checking for $2.$3... " >&6; }
2736 if eval \${$4+:} false; then :
2737 $as_echo_n "(cached) " >&6
2738 else
2739 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2740 /* end confdefs.h. */
2741 $5
2742 int
2743 main ()
2744 {
2745 static $2 ac_aggr;
2746 if (ac_aggr.$3)
2747 return 0;
2748 ;
2749 return 0;
2750 }
2751 _ACEOF
2752 if ac_fn_c_try_compile "$LINENO"; then :
2753 eval "$4=yes"
2754 else
2755 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2756 /* end confdefs.h. */
2757 $5
2758 int
2759 main ()
2760 {
2761 static $2 ac_aggr;
2762 if (sizeof ac_aggr.$3)
2763 return 0;
2764 ;
2765 return 0;
2766 }
2767 _ACEOF
2768 if ac_fn_c_try_compile "$LINENO"; then :
2769 eval "$4=yes"
2770 else
2771 eval "$4=no"
2772 fi
2773 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2774 fi
2775 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2776 fi
2777 eval ac_res=\$$4
2778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2779 $as_echo "$ac_res" >&6; }
2780 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2781
2782 } # ac_fn_c_check_member
2783 cat >config.log <<_ACEOF
2784 This file contains any messages produced by compilers while
2785 running configure, to aid debugging if configure makes a mistake.
2786
2787 It was created by remake $as_me 4.3+dbg-1.6, which was
2788 generated by GNU Autoconf 2.69. Invocation command line was
2789
2790 $ $0 $@
2791
2792 _ACEOF
2793 exec 5>>config.log
2794 {
2795 cat <<_ASUNAME
2796 ## --------- ##
2797 ## Platform. ##
2798 ## --------- ##
2799
2800 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2801 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2802 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2803 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2804 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2805
2806 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2807 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2808
2809 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2810 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2811 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2812 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2813 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2814 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2815 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2816
2817 _ASUNAME
2818
2819 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2820 for as_dir in $PATH
2821 do
2822 IFS=$as_save_IFS
2823 test -z "$as_dir" && as_dir=.
2824 $as_echo "PATH: $as_dir"
2825 done
2826 IFS=$as_save_IFS
2827
2828 } >&5
2829
2830 cat >&5 <<_ACEOF
2831
2832
2833 ## ----------- ##
2834 ## Core tests. ##
2835 ## ----------- ##
2836
2837 _ACEOF
2838
2839
2840 # Keep a trace of the command line.
2841 # Strip out --no-create and --no-recursion so they do not pile up.
2842 # Strip out --silent because we don't want to record it for future runs.
2843 # Also quote any args containing shell meta-characters.
2844 # Make two passes to allow for proper duplicate-argument suppression.
2845 ac_configure_args=
2846 ac_configure_args0=
2847 ac_configure_args1=
2848 ac_must_keep_next=false
2849 for ac_pass in 1 2
2850 do
2851 for ac_arg
2852 do
2853 case $ac_arg in
2854 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2855 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2856 | -silent | --silent | --silen | --sile | --sil)
2857 continue ;;
2858 *\'*)
2859 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2860 esac
2861 case $ac_pass in
2862 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2863 2)
2864 as_fn_append ac_configure_args1 " '$ac_arg'"
2865 if test $ac_must_keep_next = true; then
2866 ac_must_keep_next=false # Got value, back to normal.
2867 else
2868 case $ac_arg in
2869 *=* | --config-cache | -C | -disable-* | --disable-* \
2870 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2871 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2872 | -with-* | --with-* | -without-* | --without-* | --x)
2873 case "$ac_configure_args0 " in
2874 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2875 esac
2876 ;;
2877 -* ) ac_must_keep_next=true ;;
2878 esac
2879 fi
2880 as_fn_append ac_configure_args " '$ac_arg'"
2881 ;;
2882 esac
2883 done
2884 done
2885 { ac_configure_args0=; unset ac_configure_args0;}
2886 { ac_configure_args1=; unset ac_configure_args1;}
2887
2888 # When interrupted or exit'd, cleanup temporary files, and complete
2889 # config.log. We remove comments because anyway the quotes in there
2890 # would cause problems or look ugly.
2891 # WARNING: Use '\'' to represent an apostrophe within the trap.
2892 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2893 trap 'exit_status=$?
2894 # Save into config.log some information that might help in debugging.
2895 {
2896 echo
2897
2898 $as_echo "## ---------------- ##
2899 ## Cache variables. ##
2900 ## ---------------- ##"
2901 echo
2902 # The following way of writing the cache mishandles newlines in values,
2903 (
2904 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2905 eval ac_val=\$$ac_var
2906 case $ac_val in #(
2907 *${as_nl}*)
2908 case $ac_var in #(
2909 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2910 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2911 esac
2912 case $ac_var in #(
2913 _ | IFS | as_nl) ;; #(
2914 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2915 *) { eval $ac_var=; unset $ac_var;} ;;
2916 esac ;;
2917 esac
2918 done
2919 (set) 2>&1 |
2920 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2921 *${as_nl}ac_space=\ *)
2922 sed -n \
2923 "s/'\''/'\''\\\\'\'''\''/g;
2924 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2925 ;; #(
2926 *)
2927 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2928 ;;
2929 esac |
2930 sort
2931 )
2932 echo
2933
2934 $as_echo "## ----------------- ##
2935 ## Output variables. ##
2936 ## ----------------- ##"
2937 echo
2938 for ac_var in $ac_subst_vars
2939 do
2940 eval ac_val=\$$ac_var
2941 case $ac_val in
2942 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2943 esac
2944 $as_echo "$ac_var='\''$ac_val'\''"
2945 done | sort
2946 echo
2947
2948 if test -n "$ac_subst_files"; then
2949 $as_echo "## ------------------- ##
2950 ## File substitutions. ##
2951 ## ------------------- ##"
2952 echo
2953 for ac_var in $ac_subst_files
2954 do
2955 eval ac_val=\$$ac_var
2956 case $ac_val in
2957 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2958 esac
2959 $as_echo "$ac_var='\''$ac_val'\''"
2960 done | sort
2961 echo
2962 fi
2963
2964 if test -s confdefs.h; then
2965 $as_echo "## ----------- ##
2966 ## confdefs.h. ##
2967 ## ----------- ##"
2968 echo
2969 cat confdefs.h
2970 echo
2971 fi
2972 test "$ac_signal" != 0 &&
2973 $as_echo "$as_me: caught signal $ac_signal"
2974 $as_echo "$as_me: exit $exit_status"
2975 } >&5
2976 rm -f core *.core core.conftest.* &&
2977 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2978 exit $exit_status
2979 ' 0
2980 for ac_signal in 1 2 13 15; do
2981 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2982 done
2983 ac_signal=0
2984
2985 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2986 rm -f -r conftest* confdefs.h
2987
2988 $as_echo "/* confdefs.h */" > confdefs.h
2989
2990 # Predefined preprocessor variables.
2991
2992 cat >>confdefs.h <<_ACEOF
2993 #define PACKAGE_NAME "$PACKAGE_NAME"
2994 _ACEOF
2995
2996 cat >>confdefs.h <<_ACEOF
2997 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2998 _ACEOF
2999
3000 cat >>confdefs.h <<_ACEOF
3001 #define PACKAGE_VERSION "$PACKAGE_VERSION"
3002 _ACEOF
3003
3004 cat >>confdefs.h <<_ACEOF
3005 #define PACKAGE_STRING "$PACKAGE_STRING"
3006 _ACEOF
3007
3008 cat >>confdefs.h <<_ACEOF
3009 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
3010 _ACEOF
3011
3012 cat >>confdefs.h <<_ACEOF
3013 #define PACKAGE_URL "$PACKAGE_URL"
3014 _ACEOF
3015
3016
3017 # Let the site file select an alternate cache file if it wants to.
3018 # Prefer an explicitly selected file to automatically selected ones.
3019 ac_site_file1=NONE
3020 ac_site_file2=NONE
3021 if test -n "$CONFIG_SITE"; then
3022 # We do not want a PATH search for config.site.
3023 case $CONFIG_SITE in #((
3024 -*) ac_site_file1=./$CONFIG_SITE;;
3025 */*) ac_site_file1=$CONFIG_SITE;;
3026 *) ac_site_file1=./$CONFIG_SITE;;
3027 esac
3028 elif test "x$prefix" != xNONE; then
3029 ac_site_file1=$prefix/share/config.site
3030 ac_site_file2=$prefix/etc/config.site
3031 else
3032 ac_site_file1=$ac_default_prefix/share/config.site
3033 ac_site_file2=$ac_default_prefix/etc/config.site
3034 fi
3035 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
3036 do
3037 test "x$ac_site_file" = xNONE && continue
3038 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
3039 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
3040 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
3041 sed 's/^/| /' "$ac_site_file" >&5
3042 . "$ac_site_file" \
3043 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3044 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3045 as_fn_error $? "failed to load site script $ac_site_file
3046 See \`config.log' for more details" "$LINENO" 5; }
3047 fi
3048 done
3049
3050 if test -r "$cache_file"; then
3051 # Some versions of bash will fail to source /dev/null (special files
3052 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
3053 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
3054 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
3055 $as_echo "$as_me: loading cache $cache_file" >&6;}
3056 case $cache_file in
3057 [\\/]* | ?:[\\/]* ) . "$cache_file";;
3058 *) . "./$cache_file";;
3059 esac
3060 fi
3061 else
3062 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
3063 $as_echo "$as_me: creating cache $cache_file" >&6;}
3064 >$cache_file
3065 fi
3066
3067 as_fn_append ac_func_list " _set_invalid_parameter_handler"
3068 as_fn_append ac_header_list " sys/socket.h"
3069 as_fn_append ac_func_list " fcntl"
3070 as_fn_append ac_header_list " unistd.h"
3071 as_fn_append ac_func_list " symlink"
3072 as_fn_append ac_func_list " getdtablesize"
3073 as_fn_append ac_header_list " sys/param.h"
3074 as_fn_append ac_func_list " getprogname"
3075 as_fn_append ac_func_list " getexecname"
3076 as_fn_append ac_header_list " limits.h"
3077 as_fn_append ac_header_list " wchar.h"
3078 as_fn_append ac_header_list " stdint.h"
3079 gt_needs="$gt_needs "
3080 # Check that the precious variables saved in the cache have kept the same
3081 # value.
3082 ac_cache_corrupted=false
3083 for ac_var in $ac_precious_vars; do
3084 eval ac_old_set=\$ac_cv_env_${ac_var}_set
3085 eval ac_new_set=\$ac_env_${ac_var}_set
3086 eval ac_old_val=\$ac_cv_env_${ac_var}_value
3087 eval ac_new_val=\$ac_env_${ac_var}_value
3088 case $ac_old_set,$ac_new_set in
3089 set,)
3090 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
3091 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
3092 ac_cache_corrupted=: ;;
3093 ,set)
3094 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
3095 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
3096 ac_cache_corrupted=: ;;
3097 ,);;
3098 *)
3099 if test "x$ac_old_val" != "x$ac_new_val"; then
3100 # differences in whitespace do not lead to failure.
3101 ac_old_val_w=`echo x $ac_old_val`
3102 ac_new_val_w=`echo x $ac_new_val`
3103 if test "$ac_old_val_w" != "$ac_new_val_w"; then
3104 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
3105 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
3106 ac_cache_corrupted=:
3107 else
3108 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
3109 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
3110 eval $ac_var=\$ac_old_val
3111 fi
3112 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
3113 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
3114 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
3115 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
3116 fi;;
3117 esac
3118 # Pass precious variables to config.status.
3119 if test "$ac_new_set" = set; then
3120 case $ac_new_val in
3121 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
3122 *) ac_arg=$ac_var=$ac_new_val ;;
3123 esac
3124 case " $ac_configure_args " in
3125 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
3126 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
3127 esac
3128 fi
3129 done
3130 if $ac_cache_corrupted; then
3131 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3132 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3133 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
3134 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
3135 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
3136 fi
3137 ## -------------------- ##
3138 ## Main body of script. ##
3139 ## -------------------- ##
3140
3141 ac_ext=c
3142 ac_cpp='$CPP $CPPFLAGS'
3143 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3144 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3145 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3146
3147
3148
3149 # These are used in maintMakefile
3150 MAKE_VERSION=4.3
3151 MAKE_PACKAGE=make
3152
3153
3154
3155
3156
3157 # Autoconf setup
3158 ac_aux_dir=
3159 for ac_dir in build-aux "$srcdir"/build-aux; do
3160 if test -f "$ac_dir/install-sh"; then
3161 ac_aux_dir=$ac_dir
3162 ac_install_sh="$ac_aux_dir/install-sh -c"
3163 break
3164 elif test -f "$ac_dir/install.sh"; then
3165 ac_aux_dir=$ac_dir
3166 ac_install_sh="$ac_aux_dir/install.sh -c"
3167 break
3168 elif test -f "$ac_dir/shtool"; then
3169 ac_aux_dir=$ac_dir
3170 ac_install_sh="$ac_aux_dir/shtool install -c"
3171 break
3172 fi
3173 done
3174 if test -z "$ac_aux_dir"; then
3175 as_fn_error $? "cannot find install-sh, install.sh, or shtool in build-aux \"$srcdir\"/build-aux" "$LINENO" 5
3176 fi
3177
3178 # These three variables are undocumented and unsupported,
3179 # and are intended to be withdrawn in a future Autoconf release.
3180 # They can cause serious problems if a builder's source tree is in a directory
3181 # whose full name contains unusual characters.
3182 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3183 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3184 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3185
3186
3187
3188 ac_config_headers="$ac_config_headers src/config.h"
3189
3190
3191
3192 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
3193 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
3194 # Check whether --enable-maintainer-mode was given.
3195 if test "${enable_maintainer_mode+set}" = set; then :
3196 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
3197 else
3198 USE_MAINTAINER_MODE=no
3199 fi
3200
3201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
3202 $as_echo "$USE_MAINTAINER_MODE" >&6; }
3203 if test $USE_MAINTAINER_MODE = yes; then
3204 MAINTAINER_MODE_TRUE=
3205 MAINTAINER_MODE_FALSE='#'
3206 else
3207 MAINTAINER_MODE_TRUE='#'
3208 MAINTAINER_MODE_FALSE=
3209 fi
3210
3211 MAINT=$MAINTAINER_MODE_TRUE
3212
3213
3214
3215
3216
3217
3218
3219
3220 # Automake setup
3221 # We have to enable "foreign" because ChangeLog is auto-generated
3222 # Automake 1.15 and gnulib don't get along: gnulib has some strange error
3223 # in the way it handles getloadavg.c which causes make distcheck to fail.
3224 # http://lists.gnu.org/archive/html/bug-gnulib/2018-06/msg00024.html
3225 #
3226 # We have to enable "info-in-builddir" because future versions of automake
3227 # would place generated .info files in srcdir instead of builddir. Using that
3228 # option everything stays as it is.
3229 # https://www.gnu.org/software/automake/manual/html_node/List-of-Automake-options.html
3230 am__api_version='1.16'
3231
3232 # Find a good install program. We prefer a C program (faster),
3233 # so one script is as good as another. But avoid the broken or
3234 # incompatible versions:
3235 # SysV /etc/install, /usr/sbin/install
3236 # SunOS /usr/etc/install
3237 # IRIX /sbin/install
3238 # AIX /bin/install
3239 # AmigaOS /C/install, which installs bootblocks on floppy discs
3240 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3241 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3242 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3243 # OS/2's system install, which has a completely different semantic
3244 # ./install, which can be erroneously created by make from ./install.sh.
3245 # Reject install programs that cannot install multiple files.
3246 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3247 $as_echo_n "checking for a BSD-compatible install... " >&6; }
3248 if test -z "$INSTALL"; then
3249 if ${ac_cv_path_install+:} false; then :
3250 $as_echo_n "(cached) " >&6
3251 else
3252 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3253 for as_dir in $PATH
3254 do
3255 IFS=$as_save_IFS
3256 test -z "$as_dir" && as_dir=.
3257 # Account for people who put trailing slashes in PATH elements.
3258 case $as_dir/ in #((
3259 ./ | .// | /[cC]/* | \
3260 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3261 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
3262 /usr/ucb/* ) ;;
3263 *)
3264 # OSF1 and SCO ODT 3.0 have their own names for install.
3265 # Don't use installbsd from OSF since it installs stuff as root
3266 # by default.
3267 for ac_prog in ginstall scoinst install; do
3268 for ac_exec_ext in '' $ac_executable_extensions; do
3269 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3270 if test $ac_prog = install &&
3271 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3272 # AIX install. It has an incompatible calling convention.
3273 :
3274 elif test $ac_prog = install &&
3275 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3276 # program-specific install script used by HP pwplus--don't use.
3277 :
3278 else
3279 rm -rf conftest.one conftest.two conftest.dir
3280 echo one > conftest.one
3281 echo two > conftest.two
3282 mkdir conftest.dir
3283 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3284 test -s conftest.one && test -s conftest.two &&
3285 test -s conftest.dir/conftest.one &&
3286 test -s conftest.dir/conftest.two
3287 then
3288 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3289 break 3
3290 fi
3291 fi
3292 fi
3293 done
3294 done
3295 ;;
3296 esac
3297
3298 done
3299 IFS=$as_save_IFS
3300
3301 rm -rf conftest.one conftest.two conftest.dir
3302
3303 fi
3304 if test "${ac_cv_path_install+set}" = set; then
3305 INSTALL=$ac_cv_path_install
3306 else
3307 # As a last resort, use the slow shell script. Don't cache a
3308 # value for INSTALL within a source directory, because that will
3309 # break other packages using the cache if that directory is
3310 # removed, or if the value is a relative name.
3311 INSTALL=$ac_install_sh
3312 fi
3313 fi
3314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3315 $as_echo "$INSTALL" >&6; }
3316
3317 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3318 # It thinks the first close brace ends the variable substitution.
3319 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3320
3321 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3322
3323 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3324
3325 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3326 $as_echo_n "checking whether build environment is sane... " >&6; }
3327 # Reject unsafe characters in $srcdir or the absolute working directory
3328 # name. Accept space and tab only in the latter.
3329 am_lf='
3330 '
3331 case `pwd` in
3332 *[\\\"\#\$\&\'\`$am_lf]*)
3333 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
3334 esac
3335 case $srcdir in
3336 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
3337 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
3338 esac
3339
3340 # Do 'set' in a subshell so we don't clobber the current shell's
3341 # arguments. Must try -L first in case configure is actually a
3342 # symlink; some systems play weird games with the mod time of symlinks
3343 # (eg FreeBSD returns the mod time of the symlink's containing
3344 # directory).
3345 if (
3346 am_has_slept=no
3347 for am_try in 1 2; do
3348 echo "timestamp, slept: $am_has_slept" > conftest.file
3349 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3350 if test "$*" = "X"; then
3351 # -L didn't work.
3352 set X `ls -t "$srcdir/configure" conftest.file`
3353 fi
3354 if test "$*" != "X $srcdir/configure conftest.file" \
3355 && test "$*" != "X conftest.file $srcdir/configure"; then
3356
3357 # If neither matched, then we have a broken ls. This can happen
3358 # if, for instance, CONFIG_SHELL is bash and it inherits a
3359 # broken ls alias from the environment. This has actually
3360 # happened. Such a system could not be considered "sane".
3361 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
3362 alias in your environment" "$LINENO" 5
3363 fi
3364 if test "$2" = conftest.file || test $am_try -eq 2; then
3365 break
3366 fi
3367 # Just in case.
3368 sleep 1
3369 am_has_slept=yes
3370 done
3371 test "$2" = conftest.file
3372 )
3373 then
3374 # Ok.
3375 :
3376 else
3377 as_fn_error $? "newly created file is older than distributed files!
3378 Check your system clock" "$LINENO" 5
3379 fi
3380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3381 $as_echo "yes" >&6; }
3382 # If we didn't sleep, we still need to ensure time stamps of config.status and
3383 # generated files are strictly newer.
3384 am_sleep_pid=
3385 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
3386 ( sleep 1 ) &
3387 am_sleep_pid=$!
3388 fi
3389
3390 rm -f conftest.file
3391
3392 test "$program_prefix" != NONE &&
3393 program_transform_name="s&^&$program_prefix&;$program_transform_name"
3394 # Use a double $ so make ignores it.
3395 test "$program_suffix" != NONE &&
3396 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3397 # Double any \ or $.
3398 # By default was `s,x,x', remove it if useless.
3399 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3400 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3401
3402 # Expand $ac_aux_dir to an absolute path.
3403 am_aux_dir=`cd "$ac_aux_dir" && pwd`
3404
3405 if test x"${MISSING+set}" != xset; then
3406 case $am_aux_dir in
3407 *\ * | *\ *)
3408 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
3409 *)
3410 MISSING="\${SHELL} $am_aux_dir/missing" ;;
3411 esac
3412 fi
3413 # Use eval to expand $SHELL
3414 if eval "$MISSING --is-lightweight"; then
3415 am_missing_run="$MISSING "
3416 else
3417 am_missing_run=
3418 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
3419 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
3420 fi
3421
3422 if test x"${install_sh+set}" != xset; then
3423 case $am_aux_dir in
3424 *\ * | *\ *)
3425 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3426 *)
3427 install_sh="\${SHELL} $am_aux_dir/install-sh"
3428 esac
3429 fi
3430
3431 # Installed binaries are usually stripped using 'strip' when the user
3432 # run "make install-strip". However 'strip' might not be the right
3433 # tool to use in cross-compilation environments, therefore Automake
3434 # will honor the 'STRIP' environment variable to overrule this program.
3435 if test "$cross_compiling" != no; then
3436 if test -n "$ac_tool_prefix"; then
3437 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3438 set dummy ${ac_tool_prefix}strip; ac_word=$2
3439 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3440 $as_echo_n "checking for $ac_word... " >&6; }
3441 if ${ac_cv_prog_STRIP+:} false; then :
3442 $as_echo_n "(cached) " >&6
3443 else
3444 if test -n "$STRIP"; then
3445 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3446 else
3447 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3448 for as_dir in $PATH
3449 do
3450 IFS=$as_save_IFS
3451 test -z "$as_dir" && as_dir=.
3452 for ac_exec_ext in '' $ac_executable_extensions; do
3453 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3454 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3455 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3456 break 2
3457 fi
3458 done
3459 done
3460 IFS=$as_save_IFS
3461
3462 fi
3463 fi
3464 STRIP=$ac_cv_prog_STRIP
3465 if test -n "$STRIP"; then
3466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3467 $as_echo "$STRIP" >&6; }
3468 else
3469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3470 $as_echo "no" >&6; }
3471 fi
3472
3473
3474 fi
3475 if test -z "$ac_cv_prog_STRIP"; then
3476 ac_ct_STRIP=$STRIP
3477 # Extract the first word of "strip", so it can be a program name with args.
3478 set dummy strip; ac_word=$2
3479 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3480 $as_echo_n "checking for $ac_word... " >&6; }
3481 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
3482 $as_echo_n "(cached) " >&6
3483 else
3484 if test -n "$ac_ct_STRIP"; then
3485 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3486 else
3487 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3488 for as_dir in $PATH
3489 do
3490 IFS=$as_save_IFS
3491 test -z "$as_dir" && as_dir=.
3492 for ac_exec_ext in '' $ac_executable_extensions; do
3493 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3494 ac_cv_prog_ac_ct_STRIP="strip"
3495 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3496 break 2
3497 fi
3498 done
3499 done
3500 IFS=$as_save_IFS
3501
3502 fi
3503 fi
3504 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3505 if test -n "$ac_ct_STRIP"; then
3506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3507 $as_echo "$ac_ct_STRIP" >&6; }
3508 else
3509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3510 $as_echo "no" >&6; }
3511 fi
3512
3513 if test "x$ac_ct_STRIP" = x; then
3514 STRIP=":"
3515 else
3516 case $cross_compiling:$ac_tool_warned in
3517 yes:)
3518 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3519 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3520 ac_tool_warned=yes ;;
3521 esac
3522 STRIP=$ac_ct_STRIP
3523 fi
3524 else
3525 STRIP="$ac_cv_prog_STRIP"
3526 fi
3527
3528 fi
3529 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3530
3531 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3532 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3533 if test -z "$MKDIR_P"; then
3534 if ${ac_cv_path_mkdir+:} false; then :
3535 $as_echo_n "(cached) " >&6
3536 else
3537 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3538 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3539 do
3540 IFS=$as_save_IFS
3541 test -z "$as_dir" && as_dir=.
3542 for ac_prog in mkdir gmkdir; do
3543 for ac_exec_ext in '' $ac_executable_extensions; do
3544 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
3545 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3546 'mkdir (GNU coreutils) '* | \
3547 'mkdir (coreutils) '* | \
3548 'mkdir (fileutils) '4.1*)
3549 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3550 break 3;;
3551 esac
3552 done
3553 done
3554 done
3555 IFS=$as_save_IFS
3556
3557 fi
3558
3559 test -d ./--version && rmdir ./--version
3560 if test "${ac_cv_path_mkdir+set}" = set; then
3561 MKDIR_P="$ac_cv_path_mkdir -p"
3562 else
3563 # As a last resort, use the slow shell script. Don't cache a
3564 # value for MKDIR_P within a source directory, because that will
3565 # break other packages using the cache if that directory is
3566 # removed, or if the value is a relative name.
3567 MKDIR_P="$ac_install_sh -d"
3568 fi
3569 fi
3570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3571 $as_echo "$MKDIR_P" >&6; }
3572
3573 for ac_prog in gawk mawk nawk awk
3574 do
3575 # Extract the first word of "$ac_prog", so it can be a program name with args.
3576 set dummy $ac_prog; ac_word=$2
3577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3578 $as_echo_n "checking for $ac_word... " >&6; }
3579 if ${ac_cv_prog_AWK+:} false; then :
3580 $as_echo_n "(cached) " >&6
3581 else
3582 if test -n "$AWK"; then
3583 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3584 else
3585 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3586 for as_dir in $PATH
3587 do
3588 IFS=$as_save_IFS
3589 test -z "$as_dir" && as_dir=.
3590 for ac_exec_ext in '' $ac_executable_extensions; do
3591 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3592 ac_cv_prog_AWK="$ac_prog"
3593 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3594 break 2
3595 fi
3596 done
3597 done
3598 IFS=$as_save_IFS
3599
3600 fi
3601 fi
3602 AWK=$ac_cv_prog_AWK
3603 if test -n "$AWK"; then
3604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3605 $as_echo "$AWK" >&6; }
3606 else
3607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3608 $as_echo "no" >&6; }
3609 fi
3610
3611
3612 test -n "$AWK" && break
3613 done
3614
3615 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3616 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3617 set x ${MAKE-make}
3618 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3619 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
3620 $as_echo_n "(cached) " >&6
3621 else
3622 cat >conftest.make <<\_ACEOF
3623 SHELL = /bin/sh
3624 all:
3625 @echo '@@@%%%=$(MAKE)=@@@%%%'
3626 _ACEOF
3627 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3628 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3629 *@@@%%%=?*=@@@%%%*)
3630 eval ac_cv_prog_make_${ac_make}_set=yes;;
3631 *)
3632 eval ac_cv_prog_make_${ac_make}_set=no;;
3633 esac
3634 rm -f conftest.make
3635 fi
3636 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3638 $as_echo "yes" >&6; }
3639 SET_MAKE=
3640 else
3641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3642 $as_echo "no" >&6; }
3643 SET_MAKE="MAKE=${MAKE-make}"
3644 fi
3645
3646 rm -rf .tst 2>/dev/null
3647 mkdir .tst 2>/dev/null
3648 if test -d .tst; then
3649 am__leading_dot=.
3650 else
3651 am__leading_dot=_
3652 fi
3653 rmdir .tst 2>/dev/null
3654
3655 # Check whether --enable-silent-rules was given.
3656 if test "${enable_silent_rules+set}" = set; then :
3657 enableval=$enable_silent_rules;
3658 fi
3659
3660 case $enable_silent_rules in # (((
3661 yes) AM_DEFAULT_VERBOSITY=0;;
3662 no) AM_DEFAULT_VERBOSITY=1;;
3663 *) AM_DEFAULT_VERBOSITY=1;;
3664 esac
3665 am_make=${MAKE-make}
3666 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3667 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
3668 if ${am_cv_make_support_nested_variables+:} false; then :
3669 $as_echo_n "(cached) " >&6
3670 else
3671 if $as_echo 'TRUE=$(BAR$(V))
3672 BAR0=false
3673 BAR1=true
3674 V=1
3675 am__doit:
3676 @$(TRUE)
3677 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3678 am_cv_make_support_nested_variables=yes
3679 else
3680 am_cv_make_support_nested_variables=no
3681 fi
3682 fi
3683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3684 $as_echo "$am_cv_make_support_nested_variables" >&6; }
3685 if test $am_cv_make_support_nested_variables = yes; then
3686 AM_V='$(V)'
3687 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3688 else
3689 AM_V=$AM_DEFAULT_VERBOSITY
3690 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3691 fi
3692 AM_BACKSLASH='\'
3693
3694 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3695 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3696 # is not polluted with repeated "-I."
3697 am__isrc=' -I$(srcdir)'
3698 # test to see if srcdir already configured
3699 if test -f $srcdir/config.status; then
3700 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3701 fi
3702 fi
3703
3704 # test whether we have cygpath
3705 if test -z "$CYGPATH_W"; then
3706 if (cygpath --version) >/dev/null 2>/dev/null; then
3707 CYGPATH_W='cygpath -w'
3708 else
3709 CYGPATH_W=echo
3710 fi
3711 fi
3712
3713
3714 # Define the identity of the package.
3715 PACKAGE='remake'
3716 VERSION='4.3+dbg-1.6'
3717
3718
3719 cat >>confdefs.h <<_ACEOF
3720 #define PACKAGE "$PACKAGE"
3721 _ACEOF
3722
3723
3724 cat >>confdefs.h <<_ACEOF
3725 #define VERSION "$VERSION"
3726 _ACEOF
3727
3728 # Some tools Automake needs.
3729
3730 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3731
3732
3733 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3734
3735
3736 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3737
3738
3739 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3740
3741
3742 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3743
3744 # For better backward compatibility. To be removed once Automake 1.9.x
3745 # dies out for good. For more background, see:
3746 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3747 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3748 mkdir_p='$(MKDIR_P)'
3749
3750 # We need awk for the "check" target (and possibly the TAP driver). The
3751 # system "awk" is bad on some platforms.
3752 # Always define AMTAR for backward compatibility. Yes, it's still used
3753 # in the wild :-( We should find a proper way to deprecate it ...
3754 AMTAR='$${TAR-tar}'
3755
3756
3757 # We'll loop over all known methods to create a tar archive until one works.
3758 _am_tools='gnutar pax cpio none'
3759
3760 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3761
3762
3763
3764
3765
3766
3767 # POSIX will say in a future version that running "rm -f" with no argument
3768 # is OK; and we want to be able to make that assumption in our Makefile
3769 # recipes. So use an aggressive probe to check that the usage we want is
3770 # actually supported "in the wild" to an acceptable degree.
3771 # See automake bug#10828.
3772 # To make any issue more visible, cause the running configure to be aborted
3773 # by default if the 'rm' program in use doesn't match our expectations; the
3774 # user can still override this though.
3775 if rm -f && rm -fr && rm -rf; then : OK; else
3776 cat >&2 <<'END'
3777 Oops!
3778
3779 Your 'rm' program seems unable to run without file operands specified
3780 on the command line, even when the '-f' option is present. This is contrary
3781 to the behaviour of most rm programs out there, and not conforming with
3782 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
3783
3784 Please tell [email protected] about your system, including the value
3785 of your $PATH and any error possibly output before this message. This
3786 can help us improve future automake versions.
3787
3788 END
3789 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
3790 echo 'Configuration will proceed anyway, since you have set the' >&2
3791 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
3792 echo >&2
3793 else
3794 cat >&2 <<'END'
3795 Aborting the configuration process, to ensure you take notice of the issue.
3796
3797 You can download and install GNU coreutils to get an 'rm' implementation
3798 that behaves properly: <https://www.gnu.org/software/coreutils/>.
3799
3800 If you want to complete the configuration process using your problematic
3801 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3802 to "yes", and re-run configure.
3803
3804 END
3805 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
3806 fi
3807 fi
3808
3809
3810 # Checks for programs.
3811 DEPDIR="${am__leading_dot}deps"
3812
3813 ac_config_commands="$ac_config_commands depfiles"
3814
3815 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5
3816 $as_echo_n "checking whether ${MAKE-make} supports the include directive... " >&6; }
3817 cat > confinc.mk << 'END'
3818 am__doit:
3819 @echo this is the am__doit target >confinc.out
3820 .PHONY: am__doit
3821 END
3822 am__include="#"
3823 am__quote=
3824 # BSD make does it like this.
3825 echo '.include "confinc.mk" # ignored' > confmf.BSD
3826 # Other make implementations (GNU, Solaris 10, AIX) do it like this.
3827 echo 'include confinc.mk # ignored' > confmf.GNU
3828 _am_result=no
3829 for s in GNU BSD; do
3830 { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5
3831 (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5
3832 ac_status=$?
3833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3834 (exit $ac_status); }
3835 case $?:`cat confinc.out 2>/dev/null` in #(
3836 '0:this is the am__doit target') :
3837 case $s in #(
3838 BSD) :
3839 am__include='.include' am__quote='"' ;; #(
3840 *) :
3841 am__include='include' am__quote='' ;;
3842 esac ;; #(
3843 *) :
3844 ;;
3845 esac
3846 if test "$am__include" != "#"; then
3847 _am_result="yes ($s style)"
3848 break
3849 fi
3850 done
3851 rm -f confinc.* confmf.*
3852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5
3853 $as_echo "${_am_result}" >&6; }
3854
3855 # Check whether --enable-dependency-tracking was given.
3856 if test "${enable_dependency_tracking+set}" = set; then :
3857 enableval=$enable_dependency_tracking;
3858 fi
3859
3860 if test "x$enable_dependency_tracking" != xno; then
3861 am_depcomp="$ac_aux_dir/depcomp"
3862 AMDEPBACKSLASH='\'
3863 am__nodep='_no'
3864 fi
3865 if test "x$enable_dependency_tracking" != xno; then
3866 AMDEP_TRUE=
3867 AMDEP_FALSE='#'
3868 else
3869 AMDEP_TRUE='#'
3870 AMDEP_FALSE=
3871 fi
3872
3873
3874 ac_ext=c
3875 ac_cpp='$CPP $CPPFLAGS'
3876 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3877 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3878 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3879 if test -n "$ac_tool_prefix"; then
3880 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3881 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3882 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3883 $as_echo_n "checking for $ac_word... " >&6; }
3884 if ${ac_cv_prog_CC+:} false; then :
3885 $as_echo_n "(cached) " >&6
3886 else
3887 if test -n "$CC"; then
3888 ac_cv_prog_CC="$CC" # Let the user override the test.
3889 else
3890 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3891 for as_dir in $PATH
3892 do
3893 IFS=$as_save_IFS
3894 test -z "$as_dir" && as_dir=.
3895 for ac_exec_ext in '' $ac_executable_extensions; do
3896 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3897 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3898 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3899 break 2
3900 fi
3901 done
3902 done
3903 IFS=$as_save_IFS
3904
3905 fi
3906 fi
3907 CC=$ac_cv_prog_CC
3908 if test -n "$CC"; then
3909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3910 $as_echo "$CC" >&6; }
3911 else
3912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3913 $as_echo "no" >&6; }
3914 fi
3915
3916
3917 fi
3918 if test -z "$ac_cv_prog_CC"; then
3919 ac_ct_CC=$CC
3920 # Extract the first word of "gcc", so it can be a program name with args.
3921 set dummy gcc; ac_word=$2
3922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3923 $as_echo_n "checking for $ac_word... " >&6; }
3924 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3925 $as_echo_n "(cached) " >&6
3926 else
3927 if test -n "$ac_ct_CC"; then
3928 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3929 else
3930 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3931 for as_dir in $PATH
3932 do
3933 IFS=$as_save_IFS
3934 test -z "$as_dir" && as_dir=.
3935 for ac_exec_ext in '' $ac_executable_extensions; do
3936 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3937 ac_cv_prog_ac_ct_CC="gcc"
3938 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3939 break 2
3940 fi
3941 done
3942 done
3943 IFS=$as_save_IFS
3944
3945 fi
3946 fi
3947 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3948 if test -n "$ac_ct_CC"; then
3949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3950 $as_echo "$ac_ct_CC" >&6; }
3951 else
3952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3953 $as_echo "no" >&6; }
3954 fi
3955
3956 if test "x$ac_ct_CC" = x; then
3957 CC=""
3958 else
3959 case $cross_compiling:$ac_tool_warned in
3960 yes:)
3961 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3962 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3963 ac_tool_warned=yes ;;
3964 esac
3965 CC=$ac_ct_CC
3966 fi
3967 else
3968 CC="$ac_cv_prog_CC"
3969 fi
3970
3971 if test -z "$CC"; then
3972 if test -n "$ac_tool_prefix"; then
3973 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3974 set dummy ${ac_tool_prefix}cc; ac_word=$2
3975 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3976 $as_echo_n "checking for $ac_word... " >&6; }
3977 if ${ac_cv_prog_CC+:} false; then :
3978 $as_echo_n "(cached) " >&6
3979 else
3980 if test -n "$CC"; then
3981 ac_cv_prog_CC="$CC" # Let the user override the test.
3982 else
3983 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3984 for as_dir in $PATH
3985 do
3986 IFS=$as_save_IFS
3987 test -z "$as_dir" && as_dir=.
3988 for ac_exec_ext in '' $ac_executable_extensions; do
3989 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3990 ac_cv_prog_CC="${ac_tool_prefix}cc"
3991 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3992 break 2
3993 fi
3994 done
3995 done
3996 IFS=$as_save_IFS
3997
3998 fi
3999 fi
4000 CC=$ac_cv_prog_CC
4001 if test -n "$CC"; then
4002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4003 $as_echo "$CC" >&6; }
4004 else
4005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4006 $as_echo "no" >&6; }
4007 fi
4008
4009
4010 fi
4011 fi
4012 if test -z "$CC"; then
4013 # Extract the first word of "cc", so it can be a program name with args.
4014 set dummy cc; ac_word=$2
4015 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4016 $as_echo_n "checking for $ac_word... " >&6; }
4017 if ${ac_cv_prog_CC+:} false; then :
4018 $as_echo_n "(cached) " >&6
4019 else
4020 if test -n "$CC"; then
4021 ac_cv_prog_CC="$CC" # Let the user override the test.
4022 else
4023 ac_prog_rejected=no
4024 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4025 for as_dir in $PATH
4026 do
4027 IFS=$as_save_IFS
4028 test -z "$as_dir" && as_dir=.
4029 for ac_exec_ext in '' $ac_executable_extensions; do
4030 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4031 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4032 ac_prog_rejected=yes
4033 continue
4034 fi
4035 ac_cv_prog_CC="cc"
4036 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4037 break 2
4038 fi
4039 done
4040 done
4041 IFS=$as_save_IFS
4042
4043 if test $ac_prog_rejected = yes; then
4044 # We found a bogon in the path, so make sure we never use it.
4045 set dummy $ac_cv_prog_CC
4046 shift
4047 if test $# != 0; then
4048 # We chose a different compiler from the bogus one.
4049 # However, it has the same basename, so the bogon will be chosen
4050 # first if we set CC to just the basename; use the full file name.
4051 shift
4052 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4053 fi
4054 fi
4055 fi
4056 fi
4057 CC=$ac_cv_prog_CC
4058 if test -n "$CC"; then
4059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4060 $as_echo "$CC" >&6; }
4061 else
4062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4063 $as_echo "no" >&6; }
4064 fi
4065
4066
4067 fi
4068 if test -z "$CC"; then
4069 if test -n "$ac_tool_prefix"; then
4070 for ac_prog in cl.exe
4071 do
4072 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4073 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4074 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4075 $as_echo_n "checking for $ac_word... " >&6; }
4076 if ${ac_cv_prog_CC+:} false; then :
4077 $as_echo_n "(cached) " >&6
4078 else
4079 if test -n "$CC"; then
4080 ac_cv_prog_CC="$CC" # Let the user override the test.
4081 else
4082 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4083 for as_dir in $PATH
4084 do
4085 IFS=$as_save_IFS
4086 test -z "$as_dir" && as_dir=.
4087 for ac_exec_ext in '' $ac_executable_extensions; do
4088 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4089 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4090 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4091 break 2
4092 fi
4093 done
4094 done
4095 IFS=$as_save_IFS
4096
4097 fi
4098 fi
4099 CC=$ac_cv_prog_CC
4100 if test -n "$CC"; then
4101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4102 $as_echo "$CC" >&6; }
4103 else
4104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4105 $as_echo "no" >&6; }
4106 fi
4107
4108
4109 test -n "$CC" && break
4110 done
4111 fi
4112 if test -z "$CC"; then
4113 ac_ct_CC=$CC
4114 for ac_prog in cl.exe
4115 do
4116 # Extract the first word of "$ac_prog", so it can be a program name with args.
4117 set dummy $ac_prog; ac_word=$2
4118 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4119 $as_echo_n "checking for $ac_word... " >&6; }
4120 if ${ac_cv_prog_ac_ct_CC+:} false; then :
4121 $as_echo_n "(cached) " >&6
4122 else
4123 if test -n "$ac_ct_CC"; then
4124 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4125 else
4126 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4127 for as_dir in $PATH
4128 do
4129 IFS=$as_save_IFS
4130 test -z "$as_dir" && as_dir=.
4131 for ac_exec_ext in '' $ac_executable_extensions; do
4132 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4133 ac_cv_prog_ac_ct_CC="$ac_prog"
4134 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4135 break 2
4136 fi
4137 done
4138 done
4139 IFS=$as_save_IFS
4140
4141 fi
4142 fi
4143 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4144 if test -n "$ac_ct_CC"; then
4145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4146 $as_echo "$ac_ct_CC" >&6; }
4147 else
4148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4149 $as_echo "no" >&6; }
4150 fi
4151
4152
4153 test -n "$ac_ct_CC" && break
4154 done
4155
4156 if test "x$ac_ct_CC" = x; then
4157 CC=""
4158 else
4159 case $cross_compiling:$ac_tool_warned in
4160 yes:)
4161 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4162 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4163 ac_tool_warned=yes ;;
4164 esac
4165 CC=$ac_ct_CC
4166 fi
4167 fi
4168
4169 fi
4170
4171
4172 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4173 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4174 as_fn_error $? "no acceptable C compiler found in \$PATH
4175 See \`config.log' for more details" "$LINENO" 5; }
4176
4177 # Provide some information about the compiler.
4178 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4179 set X $ac_compile
4180 ac_compiler=$2
4181 for ac_option in --version -v -V -qversion; do
4182 { { ac_try="$ac_compiler $ac_option >&5"
4183 case "(($ac_try" in
4184 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4185 *) ac_try_echo=$ac_try;;
4186 esac
4187 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4188 $as_echo "$ac_try_echo"; } >&5
4189 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4190 ac_status=$?
4191 if test -s conftest.err; then
4192 sed '10a\
4193 ... rest of stderr output deleted ...
4194 10q' conftest.err >conftest.er1
4195 cat conftest.er1 >&5
4196 fi
4197 rm -f conftest.er1 conftest.err
4198 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4199 test $ac_status = 0; }
4200 done
4201
4202 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4203 /* end confdefs.h. */
4204
4205 int
4206 main ()
4207 {
4208
4209 ;
4210 return 0;
4211 }
4212 _ACEOF
4213 ac_clean_files_save=$ac_clean_files
4214 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
4215 # Try to create an executable without -o first, disregard a.out.
4216 # It will help us diagnose broken compilers, and finding out an intuition
4217 # of exeext.
4218 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4219 $as_echo_n "checking whether the C compiler works... " >&6; }
4220 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4221
4222 # The possible output files:
4223 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4224
4225 ac_rmfiles=
4226 for ac_file in $ac_files
4227 do
4228 case $ac_file in
4229 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4230 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4231 esac
4232 done
4233 rm -f $ac_rmfiles
4234
4235 if { { ac_try="$ac_link_default"
4236 case "(($ac_try" in
4237 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4238 *) ac_try_echo=$ac_try;;
4239 esac
4240 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4241 $as_echo "$ac_try_echo"; } >&5
4242 (eval "$ac_link_default") 2>&5
4243 ac_status=$?
4244 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4245 test $ac_status = 0; }; then :
4246 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4247 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4248 # in a Makefile. We should not override ac_cv_exeext if it was cached,
4249 # so that the user can short-circuit this test for compilers unknown to
4250 # Autoconf.
4251 for ac_file in $ac_files ''
4252 do
4253 test -f "$ac_file" || continue
4254 case $ac_file in
4255 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4256 ;;
4257 [ab].out )
4258 # We found the default executable, but exeext='' is most
4259 # certainly right.
4260 break;;
4261 *.* )
4262 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
4263 then :; else
4264 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4265 fi
4266 # We set ac_cv_exeext here because the later test for it is not
4267 # safe: cross compilers may not add the suffix if given an `-o'
4268 # argument, so we may need to know it at that point already.
4269 # Even if this section looks crufty: it has the advantage of
4270 # actually working.
4271 break;;
4272 * )
4273 break;;
4274 esac
4275 done
4276 test "$ac_cv_exeext" = no && ac_cv_exeext=
4277
4278 else
4279 ac_file=''
4280 fi
4281 if test -z "$ac_file"; then :
4282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4283 $as_echo "no" >&6; }
4284 $as_echo "$as_me: failed program was:" >&5
4285 sed 's/^/| /' conftest.$ac_ext >&5
4286
4287 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4288 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4289 as_fn_error 77 "C compiler cannot create executables
4290 See \`config.log' for more details" "$LINENO" 5; }
4291 else
4292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4293 $as_echo "yes" >&6; }
4294 fi
4295 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4296 $as_echo_n "checking for C compiler default output file name... " >&6; }
4297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4298 $as_echo "$ac_file" >&6; }
4299 ac_exeext=$ac_cv_exeext
4300
4301 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
4302 ac_clean_files=$ac_clean_files_save
4303 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4304 $as_echo_n "checking for suffix of executables... " >&6; }
4305 if { { ac_try="$ac_link"
4306 case "(($ac_try" in
4307 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4308 *) ac_try_echo=$ac_try;;
4309 esac
4310 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4311 $as_echo "$ac_try_echo"; } >&5
4312 (eval "$ac_link") 2>&5
4313 ac_status=$?
4314 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4315 test $ac_status = 0; }; then :
4316 # If both `conftest.exe' and `conftest' are `present' (well, observable)
4317 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
4318 # work properly (i.e., refer to `conftest.exe'), while it won't with
4319 # `rm'.
4320 for ac_file in conftest.exe conftest conftest.*; do
4321 test -f "$ac_file" || continue
4322 case $ac_file in
4323 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4324 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4325 break;;
4326 * ) break;;
4327 esac
4328 done
4329 else
4330 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4331 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4332 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
4333 See \`config.log' for more details" "$LINENO" 5; }
4334 fi
4335 rm -f conftest conftest$ac_cv_exeext
4336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4337 $as_echo "$ac_cv_exeext" >&6; }
4338
4339 rm -f conftest.$ac_ext
4340 EXEEXT=$ac_cv_exeext
4341 ac_exeext=$EXEEXT
4342 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4343 /* end confdefs.h. */
4344 #include <stdio.h>
4345 int
4346 main ()
4347 {
4348 FILE *f = fopen ("conftest.out", "w");
4349 return ferror (f) || fclose (f) != 0;
4350
4351 ;
4352 return 0;
4353 }
4354 _ACEOF
4355 ac_clean_files="$ac_clean_files conftest.out"
4356 # Check that the compiler produces executables we can run. If not, either
4357 # the compiler is broken, or we cross compile.
4358 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4359 $as_echo_n "checking whether we are cross compiling... " >&6; }
4360 if test "$cross_compiling" != yes; then
4361 { { ac_try="$ac_link"
4362 case "(($ac_try" in
4363 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4364 *) ac_try_echo=$ac_try;;
4365 esac
4366 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4367 $as_echo "$ac_try_echo"; } >&5
4368 (eval "$ac_link") 2>&5
4369 ac_status=$?
4370 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4371 test $ac_status = 0; }
4372 if { ac_try='./conftest$ac_cv_exeext'
4373 { { case "(($ac_try" in
4374 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4375 *) ac_try_echo=$ac_try;;
4376 esac
4377 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4378 $as_echo "$ac_try_echo"; } >&5
4379 (eval "$ac_try") 2>&5
4380 ac_status=$?
4381 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4382 test $ac_status = 0; }; }; then
4383 cross_compiling=no
4384 else
4385 if test "$cross_compiling" = maybe; then
4386 cross_compiling=yes
4387 else
4388 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4389 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4390 as_fn_error $? "cannot run C compiled programs.
4391 If you meant to cross compile, use \`--host'.
4392 See \`config.log' for more details" "$LINENO" 5; }
4393 fi
4394 fi
4395 fi
4396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4397 $as_echo "$cross_compiling" >&6; }
4398
4399 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4400 ac_clean_files=$ac_clean_files_save
4401 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4402 $as_echo_n "checking for suffix of object files... " >&6; }
4403 if ${ac_cv_objext+:} false; then :
4404 $as_echo_n "(cached) " >&6
4405 else
4406 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4407 /* end confdefs.h. */
4408
4409 int
4410 main ()
4411 {
4412
4413 ;
4414 return 0;
4415 }
4416 _ACEOF
4417 rm -f conftest.o conftest.obj
4418 if { { ac_try="$ac_compile"
4419 case "(($ac_try" in
4420 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4421 *) ac_try_echo=$ac_try;;
4422 esac
4423 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4424 $as_echo "$ac_try_echo"; } >&5
4425 (eval "$ac_compile") 2>&5
4426 ac_status=$?
4427 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4428 test $ac_status = 0; }; then :
4429 for ac_file in conftest.o conftest.obj conftest.*; do
4430 test -f "$ac_file" || continue;
4431 case $ac_file in
4432 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4433 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4434 break;;
4435 esac
4436 done
4437 else
4438 $as_echo "$as_me: failed program was:" >&5
4439 sed 's/^/| /' conftest.$ac_ext >&5
4440
4441 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4442 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4443 as_fn_error $? "cannot compute suffix of object files: cannot compile
4444 See \`config.log' for more details" "$LINENO" 5; }
4445 fi
4446 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4447 fi
4448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4449 $as_echo "$ac_cv_objext" >&6; }
4450 OBJEXT=$ac_cv_objext
4451 ac_objext=$OBJEXT
4452 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4453 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4454 if ${ac_cv_c_compiler_gnu+:} false; then :
4455 $as_echo_n "(cached) " >&6
4456 else
4457 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4458 /* end confdefs.h. */
4459
4460 int
4461 main ()
4462 {
4463 #ifndef __GNUC__
4464 choke me
4465 #endif
4466
4467 ;
4468 return 0;
4469 }
4470 _ACEOF
4471 if ac_fn_c_try_compile "$LINENO"; then :
4472 ac_compiler_gnu=yes
4473 else
4474 ac_compiler_gnu=no
4475 fi
4476 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4477 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4478
4479 fi
4480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4481 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4482 if test $ac_compiler_gnu = yes; then
4483 GCC=yes
4484 else
4485 GCC=
4486 fi
4487 ac_test_CFLAGS=${CFLAGS+set}
4488 ac_save_CFLAGS=$CFLAGS
4489 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4490 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4491 if ${ac_cv_prog_cc_g+:} false; then :
4492 $as_echo_n "(cached) " >&6
4493 else
4494 ac_save_c_werror_flag=$ac_c_werror_flag
4495 ac_c_werror_flag=yes
4496 ac_cv_prog_cc_g=no
4497 CFLAGS="-g"
4498 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4499 /* end confdefs.h. */
4500
4501 int
4502 main ()
4503 {
4504
4505 ;
4506 return 0;
4507 }
4508 _ACEOF
4509 if ac_fn_c_try_compile "$LINENO"; then :
4510 ac_cv_prog_cc_g=yes
4511 else
4512 CFLAGS=""
4513 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4514 /* end confdefs.h. */
4515
4516 int
4517 main ()
4518 {
4519
4520 ;
4521 return 0;
4522 }
4523 _ACEOF
4524 if ac_fn_c_try_compile "$LINENO"; then :
4525
4526 else
4527 ac_c_werror_flag=$ac_save_c_werror_flag
4528 CFLAGS="-g"
4529 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4530 /* end confdefs.h. */
4531
4532 int
4533 main ()
4534 {
4535
4536 ;
4537 return 0;
4538 }
4539 _ACEOF
4540 if ac_fn_c_try_compile "$LINENO"; then :
4541 ac_cv_prog_cc_g=yes
4542 fi
4543 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4544 fi
4545 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4546 fi
4547 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4548 ac_c_werror_flag=$ac_save_c_werror_flag
4549 fi
4550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4551 $as_echo "$ac_cv_prog_cc_g" >&6; }
4552 if test "$ac_test_CFLAGS" = set; then
4553 CFLAGS=$ac_save_CFLAGS
4554 elif test $ac_cv_prog_cc_g = yes; then
4555 if test "$GCC" = yes; then
4556 CFLAGS="-g -O2"
4557 else
4558 CFLAGS="-g"
4559 fi
4560 else
4561 if test "$GCC" = yes; then
4562 CFLAGS="-O2"
4563 else
4564 CFLAGS=
4565 fi
4566 fi
4567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4568 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4569 if ${ac_cv_prog_cc_c89+:} false; then :
4570 $as_echo_n "(cached) " >&6
4571 else
4572 ac_cv_prog_cc_c89=no
4573 ac_save_CC=$CC
4574 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4575 /* end confdefs.h. */
4576 #include <stdarg.h>
4577 #include <stdio.h>
4578 struct stat;
4579 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4580 struct buf { int x; };
4581 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4582 static char *e (p, i)
4583 char **p;
4584 int i;
4585 {
4586 return p[i];
4587 }
4588 static char *f (char * (*g) (char **, int), char **p, ...)
4589 {
4590 char *s;
4591 va_list v;
4592 va_start (v,p);
4593 s = g (p, va_arg (v,int));
4594 va_end (v);
4595 return s;
4596 }
4597
4598 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4599 function prototypes and stuff, but not '\xHH' hex character constants.
4600 These don't provoke an error unfortunately, instead are silently treated
4601 as 'x'. The following induces an error, until -std is added to get
4602 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4603 array size at least. It's necessary to write '\x00'==0 to get something
4604 that's true only with -std. */
4605 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4606
4607 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4608 inside strings and character constants. */
4609 #define FOO(x) 'x'
4610 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4611
4612 int test (int i, double x);
4613 struct s1 {int (*f) (int a);};
4614 struct s2 {int (*f) (double a);};
4615 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4616 int argc;
4617 char **argv;
4618 int
4619 main ()
4620 {
4621 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4622 ;
4623 return 0;
4624 }
4625 _ACEOF
4626 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4627 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4628 do
4629 CC="$ac_save_CC $ac_arg"
4630 if ac_fn_c_try_compile "$LINENO"; then :
4631 ac_cv_prog_cc_c89=$ac_arg
4632 fi
4633 rm -f core conftest.err conftest.$ac_objext
4634 test "x$ac_cv_prog_cc_c89" != "xno" && break
4635 done
4636 rm -f conftest.$ac_ext
4637 CC=$ac_save_CC
4638
4639 fi
4640 # AC_CACHE_VAL
4641 case "x$ac_cv_prog_cc_c89" in
4642 x)
4643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4644 $as_echo "none needed" >&6; } ;;
4645 xno)
4646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4647 $as_echo "unsupported" >&6; } ;;
4648 *)
4649 CC="$CC $ac_cv_prog_cc_c89"
4650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4651 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4652 esac
4653 if test "x$ac_cv_prog_cc_c89" != xno; then :
4654
4655 fi
4656
4657 ac_ext=c
4658 ac_cpp='$CPP $CPPFLAGS'
4659 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4660 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4661 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4662
4663 ac_ext=c
4664 ac_cpp='$CPP $CPPFLAGS'
4665 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4666 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4667 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4668 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4669 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
4670 if ${am_cv_prog_cc_c_o+:} false; then :
4671 $as_echo_n "(cached) " >&6
4672 else
4673 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4674 /* end confdefs.h. */
4675
4676 int
4677 main ()
4678 {
4679
4680 ;
4681 return 0;
4682 }
4683 _ACEOF
4684 # Make sure it works both with $CC and with simple cc.
4685 # Following AC_PROG_CC_C_O, we do the test twice because some
4686 # compilers refuse to overwrite an existing .o file with -o,
4687 # though they will create one.
4688 am_cv_prog_cc_c_o=yes
4689 for am_i in 1 2; do
4690 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4691 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4692 ac_status=$?
4693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4694 (exit $ac_status); } \
4695 && test -f conftest2.$ac_objext; then
4696 : OK
4697 else
4698 am_cv_prog_cc_c_o=no
4699 break
4700 fi
4701 done
4702 rm -f core conftest*
4703 unset am_i
4704 fi
4705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4706 $as_echo "$am_cv_prog_cc_c_o" >&6; }
4707 if test "$am_cv_prog_cc_c_o" != yes; then
4708 # Losing compiler, so override with the script.
4709 # FIXME: It is wrong to rewrite CC.
4710 # But if we don't then we get into trouble of one sort or another.
4711 # A longer-term fix would be to have automake use am__CC in this case,
4712 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4713 CC="$am_aux_dir/compile $CC"
4714 fi
4715 ac_ext=c
4716 ac_cpp='$CPP $CPPFLAGS'
4717 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4718 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4719 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4720
4721
4722 depcc="$CC" am_compiler_list=
4723
4724 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4725 $as_echo_n "checking dependency style of $depcc... " >&6; }
4726 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4727 $as_echo_n "(cached) " >&6
4728 else
4729 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4730 # We make a subdir and do the tests there. Otherwise we can end up
4731 # making bogus files that we don't know about and never remove. For
4732 # instance it was reported that on HP-UX the gcc test will end up
4733 # making a dummy file named 'D' -- because '-MD' means "put the output
4734 # in D".
4735 rm -rf conftest.dir
4736 mkdir conftest.dir
4737 # Copy depcomp to subdir because otherwise we won't find it if we're
4738 # using a relative directory.
4739 cp "$am_depcomp" conftest.dir
4740 cd conftest.dir
4741 # We will build objects and dependencies in a subdirectory because
4742 # it helps to detect inapplicable dependency modes. For instance
4743 # both Tru64's cc and ICC support -MD to output dependencies as a
4744 # side effect of compilation, but ICC will put the dependencies in
4745 # the current directory while Tru64 will put them in the object
4746 # directory.
4747 mkdir sub
4748
4749 am_cv_CC_dependencies_compiler_type=none
4750 if test "$am_compiler_list" = ""; then
4751 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4752 fi
4753 am__universal=false
4754 case " $depcc " in #(
4755 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4756 esac
4757
4758 for depmode in $am_compiler_list; do
4759 # Setup a source with many dependencies, because some compilers
4760 # like to wrap large dependency lists on column 80 (with \), and
4761 # we should not choose a depcomp mode which is confused by this.
4762 #
4763 # We need to recreate these files for each test, as the compiler may
4764 # overwrite some of them when testing with obscure command lines.
4765 # This happens at least with the AIX C compiler.
4766 : > sub/conftest.c
4767 for i in 1 2 3 4 5 6; do
4768 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4769 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4770 # Solaris 10 /bin/sh.
4771 echo '/* dummy */' > sub/conftst$i.h
4772 done
4773 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4774
4775 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4776 # mode. It turns out that the SunPro C++ compiler does not properly
4777 # handle '-M -o', and we need to detect this. Also, some Intel
4778 # versions had trouble with output in subdirs.
4779 am__obj=sub/conftest.${OBJEXT-o}
4780 am__minus_obj="-o $am__obj"
4781 case $depmode in
4782 gcc)
4783 # This depmode causes a compiler race in universal mode.
4784 test "$am__universal" = false || continue
4785 ;;
4786 nosideeffect)
4787 # After this tag, mechanisms are not by side-effect, so they'll
4788 # only be used when explicitly requested.
4789 if test "x$enable_dependency_tracking" = xyes; then
4790 continue
4791 else
4792 break
4793 fi
4794 ;;
4795 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4796 # This compiler won't grok '-c -o', but also, the minuso test has
4797 # not run yet. These depmodes are late enough in the game, and
4798 # so weak that their functioning should not be impacted.
4799 am__obj=conftest.${OBJEXT-o}
4800 am__minus_obj=
4801 ;;
4802 none) break ;;
4803 esac
4804 if depmode=$depmode \
4805 source=sub/conftest.c object=$am__obj \
4806 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4807 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4808 >/dev/null 2>conftest.err &&
4809 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4810 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4811 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4812 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4813 # icc doesn't choke on unknown options, it will just issue warnings
4814 # or remarks (even with -Werror). So we grep stderr for any message
4815 # that says an option was ignored or not supported.
4816 # When given -MP, icc 7.0 and 7.1 complain thusly:
4817 # icc: Command line warning: ignoring option '-M'; no argument required
4818 # The diagnosis changed in icc 8.0:
4819 # icc: Command line remark: option '-MP' not supported
4820 if (grep 'ignoring option' conftest.err ||
4821 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4822 am_cv_CC_dependencies_compiler_type=$depmode
4823 break
4824 fi
4825 fi
4826 done
4827
4828 cd ..
4829 rm -rf conftest.dir
4830 else
4831 am_cv_CC_dependencies_compiler_type=none
4832 fi
4833
4834 fi
4835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4836 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4837 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4838
4839 if
4840 test "x$enable_dependency_tracking" != xno \
4841 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4842 am__fastdepCC_TRUE=
4843 am__fastdepCC_FALSE='#'
4844 else
4845 am__fastdepCC_TRUE='#'
4846 am__fastdepCC_FALSE=
4847 fi
4848
4849
4850
4851 ac_ext=c
4852 ac_cpp='$CPP $CPPFLAGS'
4853 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4854 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4855 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4856 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4857 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4858 # On Suns, sometimes $CPP names a directory.
4859 if test -n "$CPP" && test -d "$CPP"; then
4860 CPP=
4861 fi
4862 if test -z "$CPP"; then
4863 if ${ac_cv_prog_CPP+:} false; then :
4864 $as_echo_n "(cached) " >&6
4865 else
4866 # Double quotes because CPP needs to be expanded
4867 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4868 do
4869 ac_preproc_ok=false
4870 for ac_c_preproc_warn_flag in '' yes
4871 do
4872 # Use a header file that comes with gcc, so configuring glibc
4873 # with a fresh cross-compiler works.
4874 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4875 # <limits.h> exists even on freestanding compilers.
4876 # On the NeXT, cc -E runs the code through the compiler's parser,
4877 # not just through cpp. "Syntax error" is here to catch this case.
4878 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4879 /* end confdefs.h. */
4880 #ifdef __STDC__
4881 # include <limits.h>
4882 #else
4883 # include <assert.h>
4884 #endif
4885 Syntax error
4886 _ACEOF
4887 if ac_fn_c_try_cpp "$LINENO"; then :
4888
4889 else
4890 # Broken: fails on valid input.
4891 continue
4892 fi
4893 rm -f conftest.err conftest.i conftest.$ac_ext
4894
4895 # OK, works on sane cases. Now check whether nonexistent headers
4896 # can be detected and how.
4897 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4898 /* end confdefs.h. */
4899 #include <ac_nonexistent.h>
4900 _ACEOF
4901 if ac_fn_c_try_cpp "$LINENO"; then :
4902 # Broken: success on invalid input.
4903 continue
4904 else
4905 # Passes both tests.
4906 ac_preproc_ok=:
4907 break
4908 fi
4909 rm -f conftest.err conftest.i conftest.$ac_ext
4910
4911 done
4912 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4913 rm -f conftest.i conftest.err conftest.$ac_ext
4914 if $ac_preproc_ok; then :
4915 break
4916 fi
4917
4918 done
4919 ac_cv_prog_CPP=$CPP
4920
4921 fi
4922 CPP=$ac_cv_prog_CPP
4923 else
4924 ac_cv_prog_CPP=$CPP
4925 fi
4926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4927 $as_echo "$CPP" >&6; }
4928 ac_preproc_ok=false
4929 for ac_c_preproc_warn_flag in '' yes
4930 do
4931 # Use a header file that comes with gcc, so configuring glibc
4932 # with a fresh cross-compiler works.
4933 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4934 # <limits.h> exists even on freestanding compilers.
4935 # On the NeXT, cc -E runs the code through the compiler's parser,
4936 # not just through cpp. "Syntax error" is here to catch this case.
4937 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4938 /* end confdefs.h. */
4939 #ifdef __STDC__
4940 # include <limits.h>
4941 #else
4942 # include <assert.h>
4943 #endif
4944 Syntax error
4945 _ACEOF
4946 if ac_fn_c_try_cpp "$LINENO"; then :
4947
4948 else
4949 # Broken: fails on valid input.
4950 continue
4951 fi
4952 rm -f conftest.err conftest.i conftest.$ac_ext
4953
4954 # OK, works on sane cases. Now check whether nonexistent headers
4955 # can be detected and how.
4956 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4957 /* end confdefs.h. */
4958 #include <ac_nonexistent.h>
4959 _ACEOF
4960 if ac_fn_c_try_cpp "$LINENO"; then :
4961 # Broken: success on invalid input.
4962 continue
4963 else
4964 # Passes both tests.
4965 ac_preproc_ok=:
4966 break
4967 fi
4968 rm -f conftest.err conftest.i conftest.$ac_ext
4969
4970 done
4971 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4972 rm -f conftest.i conftest.err conftest.$ac_ext
4973 if $ac_preproc_ok; then :
4974
4975 else
4976 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4977 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4978 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4979 See \`config.log' for more details" "$LINENO" 5; }
4980 fi
4981
4982 ac_ext=c
4983 ac_cpp='$CPP $CPPFLAGS'
4984 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4985 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4986 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4987
4988
4989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4990 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4991 if ${ac_cv_path_GREP+:} false; then :
4992 $as_echo_n "(cached) " >&6
4993 else
4994 if test -z "$GREP"; then
4995 ac_path_GREP_found=false
4996 # Loop through the user's path and test for each of PROGNAME-LIST
4997 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4998 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4999 do
5000 IFS=$as_save_IFS
5001 test -z "$as_dir" && as_dir=.
5002 for ac_prog in grep ggrep; do
5003 for ac_exec_ext in '' $ac_executable_extensions; do
5004 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5005 as_fn_executable_p "$ac_path_GREP" || continue
5006 # Check for GNU ac_path_GREP and select it if it is found.
5007 # Check for GNU $ac_path_GREP
5008 case `"$ac_path_GREP" --version 2>&1` in
5009 *GNU*)
5010 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5011 *)
5012 ac_count=0
5013 $as_echo_n 0123456789 >"conftest.in"
5014 while :
5015 do
5016 cat "conftest.in" "conftest.in" >"conftest.tmp"
5017 mv "conftest.tmp" "conftest.in"
5018 cp "conftest.in" "conftest.nl"
5019 $as_echo 'GREP' >> "conftest.nl"
5020 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5021 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5022 as_fn_arith $ac_count + 1 && ac_count=$as_val
5023 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5024 # Best one so far, save it but keep looking for a better one
5025 ac_cv_path_GREP="$ac_path_GREP"
5026 ac_path_GREP_max=$ac_count
5027 fi
5028 # 10*(2^10) chars as input seems more than enough
5029 test $ac_count -gt 10 && break
5030 done
5031 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5032 esac
5033
5034 $ac_path_GREP_found && break 3
5035 done
5036 done
5037 done
5038 IFS=$as_save_IFS
5039 if test -z "$ac_cv_path_GREP"; then
5040 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5041 fi
5042 else
5043 ac_cv_path_GREP=$GREP
5044 fi
5045
5046 fi
5047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5048 $as_echo "$ac_cv_path_GREP" >&6; }
5049 GREP="$ac_cv_path_GREP"
5050
5051
5052 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5053 $as_echo_n "checking for egrep... " >&6; }
5054 if ${ac_cv_path_EGREP+:} false; then :
5055 $as_echo_n "(cached) " >&6
5056 else
5057 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5058 then ac_cv_path_EGREP="$GREP -E"
5059 else
5060 if test -z "$EGREP"; then
5061 ac_path_EGREP_found=false
5062 # Loop through the user's path and test for each of PROGNAME-LIST
5063 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5064 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5065 do
5066 IFS=$as_save_IFS
5067 test -z "$as_dir" && as_dir=.
5068 for ac_prog in egrep; do
5069 for ac_exec_ext in '' $ac_executable_extensions; do
5070 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5071 as_fn_executable_p "$ac_path_EGREP" || continue
5072 # Check for GNU ac_path_EGREP and select it if it is found.
5073 # Check for GNU $ac_path_EGREP
5074 case `"$ac_path_EGREP" --version 2>&1` in
5075 *GNU*)
5076 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5077 *)
5078 ac_count=0
5079 $as_echo_n 0123456789 >"conftest.in"
5080 while :
5081 do
5082 cat "conftest.in" "conftest.in" >"conftest.tmp"
5083 mv "conftest.tmp" "conftest.in"
5084 cp "conftest.in" "conftest.nl"
5085 $as_echo 'EGREP' >> "conftest.nl"
5086 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5087 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5088 as_fn_arith $ac_count + 1 && ac_count=$as_val
5089 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5090 # Best one so far, save it but keep looking for a better one
5091 ac_cv_path_EGREP="$ac_path_EGREP"
5092 ac_path_EGREP_max=$ac_count
5093 fi
5094 # 10*(2^10) chars as input seems more than enough
5095 test $ac_count -gt 10 && break
5096 done
5097 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5098 esac
5099
5100 $ac_path_EGREP_found && break 3
5101 done
5102 done
5103 done
5104 IFS=$as_save_IFS
5105 if test -z "$ac_cv_path_EGREP"; then
5106 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5107 fi
5108 else
5109 ac_cv_path_EGREP=$EGREP
5110 fi
5111
5112 fi
5113 fi
5114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5115 $as_echo "$ac_cv_path_EGREP" >&6; }
5116 EGREP="$ac_cv_path_EGREP"
5117
5118
5119 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5120 $as_echo_n "checking for ANSI C header files... " >&6; }
5121 if ${ac_cv_header_stdc+:} false; then :
5122 $as_echo_n "(cached) " >&6
5123 else
5124 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5125 /* end confdefs.h. */
5126 #include <stdlib.h>
5127 #include <stdarg.h>
5128 #include <string.h>
5129 #include <float.h>
5130
5131 int
5132 main ()
5133 {
5134
5135 ;
5136 return 0;
5137 }
5138 _ACEOF
5139 if ac_fn_c_try_compile "$LINENO"; then :
5140 ac_cv_header_stdc=yes
5141 else
5142 ac_cv_header_stdc=no
5143 fi
5144 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5145
5146 if test $ac_cv_header_stdc = yes; then
5147 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5148 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5149 /* end confdefs.h. */
5150 #include <string.h>
5151
5152 _ACEOF
5153 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5154 $EGREP "memchr" >/dev/null 2>&1; then :
5155
5156 else
5157 ac_cv_header_stdc=no
5158 fi
5159 rm -f conftest*
5160
5161 fi
5162
5163 if test $ac_cv_header_stdc = yes; then
5164 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5165 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5166 /* end confdefs.h. */
5167 #include <stdlib.h>
5168
5169 _ACEOF
5170 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5171 $EGREP "free" >/dev/null 2>&1; then :
5172
5173 else
5174 ac_cv_header_stdc=no
5175 fi
5176 rm -f conftest*
5177
5178 fi
5179
5180 if test $ac_cv_header_stdc = yes; then
5181 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5182 if test "$cross_compiling" = yes; then :
5183 :
5184 else
5185 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5186 /* end confdefs.h. */
5187 #include <ctype.h>
5188 #include <stdlib.h>
5189 #if ((' ' & 0x0FF) == 0x020)
5190 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5191 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5192 #else
5193 # define ISLOWER(c) \
5194 (('a' <= (c) && (c) <= 'i') \
5195 || ('j' <= (c) && (c) <= 'r') \
5196 || ('s' <= (c) && (c) <= 'z'))
5197 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5198 #endif
5199
5200 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5201 int
5202 main ()
5203 {
5204 int i;
5205 for (i = 0; i < 256; i++)
5206 if (XOR (islower (i), ISLOWER (i))
5207 || toupper (i) != TOUPPER (i))
5208 return 2;
5209 return 0;
5210 }
5211 _ACEOF
5212 if ac_fn_c_try_run "$LINENO"; then :
5213
5214 else
5215 ac_cv_header_stdc=no
5216 fi
5217 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5218 conftest.$ac_objext conftest.beam conftest.$ac_ext
5219 fi
5220
5221 fi
5222 fi
5223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5224 $as_echo "$ac_cv_header_stdc" >&6; }
5225 if test $ac_cv_header_stdc = yes; then
5226
5227 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
5228
5229 fi
5230
5231 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5232 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5233 inttypes.h stdint.h unistd.h
5234 do :
5235 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5236 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5237 "
5238 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
5239 cat >>confdefs.h <<_ACEOF
5240 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5241 _ACEOF
5242
5243 fi
5244
5245 done
5246
5247
5248
5249
5250 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
5251 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
5252 if ${ac_cv_safe_to_define___extensions__+:} false; then :
5253 $as_echo_n "(cached) " >&6
5254 else
5255 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5256 /* end confdefs.h. */
5257
5258 # define __EXTENSIONS__ 1
5259 $ac_includes_default
5260 int
5261 main ()
5262 {
5263
5264 ;
5265 return 0;
5266 }
5267 _ACEOF
5268 if ac_fn_c_try_compile "$LINENO"; then :
5269 ac_cv_safe_to_define___extensions__=yes
5270 else
5271 ac_cv_safe_to_define___extensions__=no
5272 fi
5273 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5274 fi
5275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
5276 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
5277 test $ac_cv_safe_to_define___extensions__ = yes &&
5278 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
5279
5280 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
5281
5282 $as_echo "#define _DARWIN_C_SOURCE 1" >>confdefs.h
5283
5284 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
5285
5286 $as_echo "#define _NETBSD_SOURCE 1" >>confdefs.h
5287
5288 $as_echo "#define _OPENBSD_SOURCE 1" >>confdefs.h
5289
5290 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
5291
5292 $as_echo "#define __STDC_WANT_IEC_60559_ATTRIBS_EXT__ 1" >>confdefs.h
5293
5294 $as_echo "#define __STDC_WANT_IEC_60559_BFP_EXT__ 1" >>confdefs.h
5295
5296 $as_echo "#define __STDC_WANT_IEC_60559_DFP_EXT__ 1" >>confdefs.h
5297
5298 $as_echo "#define __STDC_WANT_IEC_60559_FUNCS_EXT__ 1" >>confdefs.h
5299
5300 $as_echo "#define __STDC_WANT_IEC_60559_TYPES_EXT__ 1" >>confdefs.h
5301
5302 $as_echo "#define __STDC_WANT_LIB_EXT2__ 1" >>confdefs.h
5303
5304 $as_echo "#define __STDC_WANT_MATH_SPEC_FUNCS__ 1" >>confdefs.h
5305
5306 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
5307
5308 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether _XOPEN_SOURCE should be defined" >&5
5309 $as_echo_n "checking whether _XOPEN_SOURCE should be defined... " >&6; }
5310 if ${ac_cv_should_define__xopen_source+:} false; then :
5311 $as_echo_n "(cached) " >&6
5312 else
5313 ac_cv_should_define__xopen_source=no
5314 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5315 /* end confdefs.h. */
5316
5317 #include <wchar.h>
5318 mbstate_t x;
5319 int
5320 main ()
5321 {
5322
5323 ;
5324 return 0;
5325 }
5326 _ACEOF
5327 if ac_fn_c_try_compile "$LINENO"; then :
5328
5329 else
5330 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5331 /* end confdefs.h. */
5332
5333 #define _XOPEN_SOURCE 500
5334 #include <wchar.h>
5335 mbstate_t x;
5336 int
5337 main ()
5338 {
5339
5340 ;
5341 return 0;
5342 }
5343 _ACEOF
5344 if ac_fn_c_try_compile "$LINENO"; then :
5345 ac_cv_should_define__xopen_source=yes
5346 fi
5347 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5348 fi
5349 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5350 fi
5351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_should_define__xopen_source" >&5
5352 $as_echo "$ac_cv_should_define__xopen_source" >&6; }
5353 test $ac_cv_should_define__xopen_source = yes &&
5354 $as_echo "#define _XOPEN_SOURCE 500" >>confdefs.h
5355
5356 $as_echo "#define _HPUX_ALT_XOPEN_SOCKET_API 1" >>confdefs.h
5357
5358
5359 ac_ext=c
5360 ac_cpp='$CPP $CPPFLAGS'
5361 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5362 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5363 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5364 if test -n "$ac_tool_prefix"; then
5365 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
5366 set dummy ${ac_tool_prefix}gcc; ac_word=$2
5367 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5368 $as_echo_n "checking for $ac_word... " >&6; }
5369 if ${ac_cv_prog_CC+:} false; then :
5370 $as_echo_n "(cached) " >&6
5371 else
5372 if test -n "$CC"; then
5373 ac_cv_prog_CC="$CC" # Let the user override the test.
5374 else
5375 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5376 for as_dir in $PATH
5377 do
5378 IFS=$as_save_IFS
5379 test -z "$as_dir" && as_dir=.
5380 for ac_exec_ext in '' $ac_executable_extensions; do
5381 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5382 ac_cv_prog_CC="${ac_tool_prefix}gcc"
5383 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5384 break 2
5385 fi
5386 done
5387 done
5388 IFS=$as_save_IFS
5389
5390 fi
5391 fi
5392 CC=$ac_cv_prog_CC
5393 if test -n "$CC"; then
5394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5395 $as_echo "$CC" >&6; }
5396 else
5397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5398 $as_echo "no" >&6; }
5399 fi
5400
5401
5402 fi
5403 if test -z "$ac_cv_prog_CC"; then
5404 ac_ct_CC=$CC
5405 # Extract the first word of "gcc", so it can be a program name with args.
5406 set dummy gcc; ac_word=$2
5407 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5408 $as_echo_n "checking for $ac_word... " >&6; }
5409 if ${ac_cv_prog_ac_ct_CC+:} false; then :
5410 $as_echo_n "(cached) " >&6
5411 else
5412 if test -n "$ac_ct_CC"; then
5413 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5414 else
5415 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5416 for as_dir in $PATH
5417 do
5418 IFS=$as_save_IFS
5419 test -z "$as_dir" && as_dir=.
5420 for ac_exec_ext in '' $ac_executable_extensions; do
5421 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5422 ac_cv_prog_ac_ct_CC="gcc"
5423 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5424 break 2
5425 fi
5426 done
5427 done
5428 IFS=$as_save_IFS
5429
5430 fi
5431 fi
5432 ac_ct_CC=$ac_cv_prog_ac_ct_CC
5433 if test -n "$ac_ct_CC"; then
5434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5435 $as_echo "$ac_ct_CC" >&6; }
5436 else
5437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5438 $as_echo "no" >&6; }
5439 fi
5440
5441 if test "x$ac_ct_CC" = x; then
5442 CC=""
5443 else
5444 case $cross_compiling:$ac_tool_warned in
5445 yes:)
5446 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5447 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5448 ac_tool_warned=yes ;;
5449 esac
5450 CC=$ac_ct_CC
5451 fi
5452 else
5453 CC="$ac_cv_prog_CC"
5454 fi
5455
5456 if test -z "$CC"; then
5457 if test -n "$ac_tool_prefix"; then
5458 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
5459 set dummy ${ac_tool_prefix}cc; ac_word=$2
5460 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5461 $as_echo_n "checking for $ac_word... " >&6; }
5462 if ${ac_cv_prog_CC+:} false; then :
5463 $as_echo_n "(cached) " >&6
5464 else
5465 if test -n "$CC"; then
5466 ac_cv_prog_CC="$CC" # Let the user override the test.
5467 else
5468 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5469 for as_dir in $PATH
5470 do
5471 IFS=$as_save_IFS
5472 test -z "$as_dir" && as_dir=.
5473 for ac_exec_ext in '' $ac_executable_extensions; do
5474 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5475 ac_cv_prog_CC="${ac_tool_prefix}cc"
5476 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5477 break 2
5478 fi
5479 done
5480 done
5481 IFS=$as_save_IFS
5482
5483 fi
5484 fi
5485 CC=$ac_cv_prog_CC
5486 if test -n "$CC"; then
5487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5488 $as_echo "$CC" >&6; }
5489 else
5490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5491 $as_echo "no" >&6; }
5492 fi
5493
5494
5495 fi
5496 fi
5497 if test -z "$CC"; then
5498 # Extract the first word of "cc", so it can be a program name with args.
5499 set dummy cc; ac_word=$2
5500 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5501 $as_echo_n "checking for $ac_word... " >&6; }
5502 if ${ac_cv_prog_CC+:} false; then :
5503 $as_echo_n "(cached) " >&6
5504 else
5505 if test -n "$CC"; then
5506 ac_cv_prog_CC="$CC" # Let the user override the test.
5507 else
5508 ac_prog_rejected=no
5509 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5510 for as_dir in $PATH
5511 do
5512 IFS=$as_save_IFS
5513 test -z "$as_dir" && as_dir=.
5514 for ac_exec_ext in '' $ac_executable_extensions; do
5515 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5516 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
5517 ac_prog_rejected=yes
5518 continue
5519 fi
5520 ac_cv_prog_CC="cc"
5521 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5522 break 2
5523 fi
5524 done
5525 done
5526 IFS=$as_save_IFS
5527
5528 if test $ac_prog_rejected = yes; then
5529 # We found a bogon in the path, so make sure we never use it.
5530 set dummy $ac_cv_prog_CC
5531 shift
5532 if test $# != 0; then
5533 # We chose a different compiler from the bogus one.
5534 # However, it has the same basename, so the bogon will be chosen
5535 # first if we set CC to just the basename; use the full file name.
5536 shift
5537 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
5538 fi
5539 fi
5540 fi
5541 fi
5542 CC=$ac_cv_prog_CC
5543 if test -n "$CC"; then
5544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5545 $as_echo "$CC" >&6; }
5546 else
5547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5548 $as_echo "no" >&6; }
5549 fi
5550
5551
5552 fi
5553 if test -z "$CC"; then
5554 if test -n "$ac_tool_prefix"; then
5555 for ac_prog in cl.exe
5556 do
5557 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5558 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5559 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5560 $as_echo_n "checking for $ac_word... " >&6; }
5561 if ${ac_cv_prog_CC+:} false; then :
5562 $as_echo_n "(cached) " >&6
5563 else
5564 if test -n "$CC"; then
5565 ac_cv_prog_CC="$CC" # Let the user override the test.
5566 else
5567 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5568 for as_dir in $PATH
5569 do
5570 IFS=$as_save_IFS
5571 test -z "$as_dir" && as_dir=.
5572 for ac_exec_ext in '' $ac_executable_extensions; do
5573 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5574 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
5575 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5576 break 2
5577 fi
5578 done
5579 done
5580 IFS=$as_save_IFS
5581
5582 fi
5583 fi
5584 CC=$ac_cv_prog_CC
5585 if test -n "$CC"; then
5586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5587 $as_echo "$CC" >&6; }
5588 else
5589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5590 $as_echo "no" >&6; }
5591 fi
5592
5593
5594 test -n "$CC" && break
5595 done
5596 fi
5597 if test -z "$CC"; then
5598 ac_ct_CC=$CC
5599 for ac_prog in cl.exe
5600 do
5601 # Extract the first word of "$ac_prog", so it can be a program name with args.
5602 set dummy $ac_prog; ac_word=$2
5603 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5604 $as_echo_n "checking for $ac_word... " >&6; }
5605 if ${ac_cv_prog_ac_ct_CC+:} false; then :
5606 $as_echo_n "(cached) " >&6
5607 else
5608 if test -n "$ac_ct_CC"; then
5609 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5610 else
5611 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5612 for as_dir in $PATH
5613 do
5614 IFS=$as_save_IFS
5615 test -z "$as_dir" && as_dir=.
5616 for ac_exec_ext in '' $ac_executable_extensions; do
5617 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5618 ac_cv_prog_ac_ct_CC="$ac_prog"
5619 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5620 break 2
5621 fi
5622 done
5623 done
5624 IFS=$as_save_IFS
5625
5626 fi
5627 fi
5628 ac_ct_CC=$ac_cv_prog_ac_ct_CC
5629 if test -n "$ac_ct_CC"; then
5630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5631 $as_echo "$ac_ct_CC" >&6; }
5632 else
5633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5634 $as_echo "no" >&6; }
5635 fi
5636
5637
5638 test -n "$ac_ct_CC" && break
5639 done
5640
5641 if test "x$ac_ct_CC" = x; then
5642 CC=""
5643 else
5644 case $cross_compiling:$ac_tool_warned in
5645 yes:)
5646 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5647 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5648 ac_tool_warned=yes ;;
5649 esac
5650 CC=$ac_ct_CC
5651 fi
5652 fi
5653
5654 fi
5655
5656
5657 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5658 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5659 as_fn_error $? "no acceptable C compiler found in \$PATH
5660 See \`config.log' for more details" "$LINENO" 5; }
5661
5662 # Provide some information about the compiler.
5663 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
5664 set X $ac_compile
5665 ac_compiler=$2
5666 for ac_option in --version -v -V -qversion; do
5667 { { ac_try="$ac_compiler $ac_option >&5"
5668 case "(($ac_try" in
5669 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5670 *) ac_try_echo=$ac_try;;
5671 esac
5672 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5673 $as_echo "$ac_try_echo"; } >&5
5674 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
5675 ac_status=$?
5676 if test -s conftest.err; then
5677 sed '10a\
5678 ... rest of stderr output deleted ...
5679 10q' conftest.err >conftest.er1
5680 cat conftest.er1 >&5
5681 fi
5682 rm -f conftest.er1 conftest.err
5683 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5684 test $ac_status = 0; }
5685 done
5686
5687 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
5688 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
5689 if ${ac_cv_c_compiler_gnu+:} false; then :
5690 $as_echo_n "(cached) " >&6
5691 else
5692 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5693 /* end confdefs.h. */
5694
5695 int
5696 main ()
5697 {
5698 #ifndef __GNUC__
5699 choke me
5700 #endif
5701
5702 ;
5703 return 0;
5704 }
5705 _ACEOF
5706 if ac_fn_c_try_compile "$LINENO"; then :
5707 ac_compiler_gnu=yes
5708 else
5709 ac_compiler_gnu=no
5710 fi
5711 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5712 ac_cv_c_compiler_gnu=$ac_compiler_gnu
5713
5714 fi
5715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
5716 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
5717 if test $ac_compiler_gnu = yes; then
5718 GCC=yes
5719 else
5720 GCC=
5721 fi
5722 ac_test_CFLAGS=${CFLAGS+set}
5723 ac_save_CFLAGS=$CFLAGS
5724 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
5725 $as_echo_n "checking whether $CC accepts -g... " >&6; }
5726 if ${ac_cv_prog_cc_g+:} false; then :
5727 $as_echo_n "(cached) " >&6
5728 else
5729 ac_save_c_werror_flag=$ac_c_werror_flag
5730 ac_c_werror_flag=yes
5731 ac_cv_prog_cc_g=no
5732 CFLAGS="-g"
5733 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5734 /* end confdefs.h. */
5735
5736 int
5737 main ()
5738 {
5739
5740 ;
5741 return 0;
5742 }
5743 _ACEOF
5744 if ac_fn_c_try_compile "$LINENO"; then :
5745 ac_cv_prog_cc_g=yes
5746 else
5747 CFLAGS=""
5748 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5749 /* end confdefs.h. */
5750
5751 int
5752 main ()
5753 {
5754
5755 ;
5756 return 0;
5757 }
5758 _ACEOF
5759 if ac_fn_c_try_compile "$LINENO"; then :
5760
5761 else
5762 ac_c_werror_flag=$ac_save_c_werror_flag
5763 CFLAGS="-g"
5764 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5765 /* end confdefs.h. */
5766
5767 int
5768 main ()
5769 {
5770
5771 ;
5772 return 0;
5773 }
5774 _ACEOF
5775 if ac_fn_c_try_compile "$LINENO"; then :
5776 ac_cv_prog_cc_g=yes
5777 fi
5778 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5779 fi
5780 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5781 fi
5782 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5783 ac_c_werror_flag=$ac_save_c_werror_flag
5784 fi
5785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
5786 $as_echo "$ac_cv_prog_cc_g" >&6; }
5787 if test "$ac_test_CFLAGS" = set; then
5788 CFLAGS=$ac_save_CFLAGS
5789 elif test $ac_cv_prog_cc_g = yes; then
5790 if test "$GCC" = yes; then
5791 CFLAGS="-g -O2"
5792 else
5793 CFLAGS="-g"
5794 fi
5795 else
5796 if test "$GCC" = yes; then
5797 CFLAGS="-O2"
5798 else
5799 CFLAGS=
5800 fi
5801 fi
5802 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
5803 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
5804 if ${ac_cv_prog_cc_c89+:} false; then :
5805 $as_echo_n "(cached) " >&6
5806 else
5807 ac_cv_prog_cc_c89=no
5808 ac_save_CC=$CC
5809 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5810 /* end confdefs.h. */
5811 #include <stdarg.h>
5812 #include <stdio.h>
5813 struct stat;
5814 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5815 struct buf { int x; };
5816 FILE * (*rcsopen) (struct buf *, struct stat *, int);
5817 static char *e (p, i)
5818 char **p;
5819 int i;
5820 {
5821 return p[i];
5822 }
5823 static char *f (char * (*g) (char **, int), char **p, ...)
5824 {
5825 char *s;
5826 va_list v;
5827 va_start (v,p);
5828 s = g (p, va_arg (v,int));
5829 va_end (v);
5830 return s;
5831 }
5832
5833 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5834 function prototypes and stuff, but not '\xHH' hex character constants.
5835 These don't provoke an error unfortunately, instead are silently treated
5836 as 'x'. The following induces an error, until -std is added to get
5837 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5838 array size at least. It's necessary to write '\x00'==0 to get something
5839 that's true only with -std. */
5840 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5841
5842 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5843 inside strings and character constants. */
5844 #define FOO(x) 'x'
5845 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5846
5847 int test (int i, double x);
5848 struct s1 {int (*f) (int a);};
5849 struct s2 {int (*f) (double a);};
5850 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5851 int argc;
5852 char **argv;
5853 int
5854 main ()
5855 {
5856 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5857 ;
5858 return 0;
5859 }
5860 _ACEOF
5861 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5862 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5863 do
5864 CC="$ac_save_CC $ac_arg"
5865 if ac_fn_c_try_compile "$LINENO"; then :
5866 ac_cv_prog_cc_c89=$ac_arg
5867 fi
5868 rm -f core conftest.err conftest.$ac_objext
5869 test "x$ac_cv_prog_cc_c89" != "xno" && break
5870 done
5871 rm -f conftest.$ac_ext
5872 CC=$ac_save_CC
5873
5874 fi
5875 # AC_CACHE_VAL
5876 case "x$ac_cv_prog_cc_c89" in
5877 x)
5878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5879 $as_echo "none needed" >&6; } ;;
5880 xno)
5881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5882 $as_echo "unsupported" >&6; } ;;
5883 *)
5884 CC="$CC $ac_cv_prog_cc_c89"
5885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
5886 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
5887 esac
5888 if test "x$ac_cv_prog_cc_c89" != xno; then :
5889
5890 fi
5891
5892 ac_ext=c
5893 ac_cpp='$CPP $CPPFLAGS'
5894 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5895 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5896 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5897
5898 ac_ext=c
5899 ac_cpp='$CPP $CPPFLAGS'
5900 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5901 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5902 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5903 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
5904 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
5905 if ${am_cv_prog_cc_c_o+:} false; then :
5906 $as_echo_n "(cached) " >&6
5907 else
5908 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5909 /* end confdefs.h. */
5910
5911 int
5912 main ()
5913 {
5914
5915 ;
5916 return 0;
5917 }
5918 _ACEOF
5919 # Make sure it works both with $CC and with simple cc.
5920 # Following AC_PROG_CC_C_O, we do the test twice because some
5921 # compilers refuse to overwrite an existing .o file with -o,
5922 # though they will create one.
5923 am_cv_prog_cc_c_o=yes
5924 for am_i in 1 2; do
5925 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
5926 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
5927 ac_status=$?
5928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5929 (exit $ac_status); } \
5930 && test -f conftest2.$ac_objext; then
5931 : OK
5932 else
5933 am_cv_prog_cc_c_o=no
5934 break
5935 fi
5936 done
5937 rm -f core conftest*
5938 unset am_i
5939 fi
5940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
5941 $as_echo "$am_cv_prog_cc_c_o" >&6; }
5942 if test "$am_cv_prog_cc_c_o" != yes; then
5943 # Losing compiler, so override with the script.
5944 # FIXME: It is wrong to rewrite CC.
5945 # But if we don't then we get into trouble of one sort or another.
5946 # A longer-term fix would be to have automake use am__CC in this case,
5947 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
5948 CC="$am_aux_dir/compile $CC"
5949 fi
5950 ac_ext=c
5951 ac_cpp='$CPP $CPPFLAGS'
5952 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5953 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5954 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5955
5956
5957 depcc="$CC" am_compiler_list=
5958
5959 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5960 $as_echo_n "checking dependency style of $depcc... " >&6; }
5961 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
5962 $as_echo_n "(cached) " >&6
5963 else
5964 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5965 # We make a subdir and do the tests there. Otherwise we can end up
5966 # making bogus files that we don't know about and never remove. For
5967 # instance it was reported that on HP-UX the gcc test will end up
5968 # making a dummy file named 'D' -- because '-MD' means "put the output
5969 # in D".
5970 rm -rf conftest.dir
5971 mkdir conftest.dir
5972 # Copy depcomp to subdir because otherwise we won't find it if we're
5973 # using a relative directory.
5974 cp "$am_depcomp" conftest.dir
5975 cd conftest.dir
5976 # We will build objects and dependencies in a subdirectory because
5977 # it helps to detect inapplicable dependency modes. For instance
5978 # both Tru64's cc and ICC support -MD to output dependencies as a
5979 # side effect of compilation, but ICC will put the dependencies in
5980 # the current directory while Tru64 will put them in the object
5981 # directory.
5982 mkdir sub
5983
5984 am_cv_CC_dependencies_compiler_type=none
5985 if test "$am_compiler_list" = ""; then
5986 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5987 fi
5988 am__universal=false
5989 case " $depcc " in #(
5990 *\ -arch\ *\ -arch\ *) am__universal=true ;;
5991 esac
5992
5993 for depmode in $am_compiler_list; do
5994 # Setup a source with many dependencies, because some compilers
5995 # like to wrap large dependency lists on column 80 (with \), and
5996 # we should not choose a depcomp mode which is confused by this.
5997 #
5998 # We need to recreate these files for each test, as the compiler may
5999 # overwrite some of them when testing with obscure command lines.
6000 # This happens at least with the AIX C compiler.
6001 : > sub/conftest.c
6002 for i in 1 2 3 4 5 6; do
6003 echo '#include "conftst'$i'.h"' >> sub/conftest.c
6004 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
6005 # Solaris 10 /bin/sh.
6006 echo '/* dummy */' > sub/conftst$i.h
6007 done
6008 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
6009
6010 # We check with '-c' and '-o' for the sake of the "dashmstdout"
6011 # mode. It turns out that the SunPro C++ compiler does not properly
6012 # handle '-M -o', and we need to detect this. Also, some Intel
6013 # versions had trouble with output in subdirs.
6014 am__obj=sub/conftest.${OBJEXT-o}
6015 am__minus_obj="-o $am__obj"
6016 case $depmode in
6017 gcc)
6018 # This depmode causes a compiler race in universal mode.
6019 test "$am__universal" = false || continue
6020 ;;
6021 nosideeffect)
6022 # After this tag, mechanisms are not by side-effect, so they'll
6023 # only be used when explicitly requested.
6024 if test "x$enable_dependency_tracking" = xyes; then
6025 continue
6026 else
6027 break
6028 fi
6029 ;;
6030 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
6031 # This compiler won't grok '-c -o', but also, the minuso test has
6032 # not run yet. These depmodes are late enough in the game, and
6033 # so weak that their functioning should not be impacted.
6034 am__obj=conftest.${OBJEXT-o}
6035 am__minus_obj=
6036 ;;
6037 none) break ;;
6038 esac
6039 if depmode=$depmode \
6040 source=sub/conftest.c object=$am__obj \
6041 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6042 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
6043 >/dev/null 2>conftest.err &&
6044 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
6045 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
6046 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
6047 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
6048 # icc doesn't choke on unknown options, it will just issue warnings
6049 # or remarks (even with -Werror). So we grep stderr for any message
6050 # that says an option was ignored or not supported.
6051 # When given -MP, icc 7.0 and 7.1 complain thusly:
6052 # icc: Command line warning: ignoring option '-M'; no argument required
6053 # The diagnosis changed in icc 8.0:
6054 # icc: Command line remark: option '-MP' not supported
6055 if (grep 'ignoring option' conftest.err ||
6056 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
6057 am_cv_CC_dependencies_compiler_type=$depmode
6058 break
6059 fi
6060 fi
6061 done
6062
6063 cd ..
6064 rm -rf conftest.dir
6065 else
6066 am_cv_CC_dependencies_compiler_type=none
6067 fi
6068
6069 fi
6070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
6071 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
6072 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
6073
6074 if
6075 test "x$enable_dependency_tracking" != xno \
6076 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
6077 am__fastdepCC_TRUE=
6078 am__fastdepCC_FALSE='#'
6079 else
6080 am__fastdepCC_TRUE='#'
6081 am__fastdepCC_FALSE=
6082 fi
6083
6084
6085
6086 # Configure gnulib
6087
6088
6089
6090
6091
6092
6093
6094
6095
6096 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Minix Amsterdam compiler" >&5
6097 $as_echo_n "checking for Minix Amsterdam compiler... " >&6; }
6098 if ${gl_cv_c_amsterdam_compiler+:} false; then :
6099 $as_echo_n "(cached) " >&6
6100 else
6101
6102 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6103 /* end confdefs.h. */
6104
6105 #ifdef __ACK__
6106 Amsterdam
6107 #endif
6108
6109 _ACEOF
6110 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6111 $EGREP "Amsterdam" >/dev/null 2>&1; then :
6112 gl_cv_c_amsterdam_compiler=yes
6113 else
6114 gl_cv_c_amsterdam_compiler=no
6115 fi
6116 rm -f conftest*
6117
6118
6119 fi
6120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_c_amsterdam_compiler" >&5
6121 $as_echo "$gl_cv_c_amsterdam_compiler" >&6; }
6122
6123 if test $gl_cv_c_amsterdam_compiler = yes; then
6124 if test -z "$AR"; then
6125 AR='cc -c.a'
6126 fi
6127 if test -z "$ARFLAGS"; then
6128 ARFLAGS='-o'
6129 fi
6130 else
6131 if test -n "$ac_tool_prefix"; then
6132 for ac_prog in ar lib "link -lib"
6133 do
6134 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6135 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6136 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6137 $as_echo_n "checking for $ac_word... " >&6; }
6138 if ${ac_cv_prog_AR+:} false; then :
6139 $as_echo_n "(cached) " >&6
6140 else
6141 if test -n "$AR"; then
6142 ac_cv_prog_AR="$AR" # Let the user override the test.
6143 else
6144 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6145 for as_dir in $PATH
6146 do
6147 IFS=$as_save_IFS
6148 test -z "$as_dir" && as_dir=.
6149 for ac_exec_ext in '' $ac_executable_extensions; do
6150 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6151 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
6152 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6153 break 2
6154 fi
6155 done
6156 done
6157 IFS=$as_save_IFS
6158
6159 fi
6160 fi
6161 AR=$ac_cv_prog_AR
6162 if test -n "$AR"; then
6163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6164 $as_echo "$AR" >&6; }
6165 else
6166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6167 $as_echo "no" >&6; }
6168 fi
6169
6170
6171 test -n "$AR" && break
6172 done
6173 fi
6174 if test -z "$AR"; then
6175 ac_ct_AR=$AR
6176 for ac_prog in ar lib "link -lib"
6177 do
6178 # Extract the first word of "$ac_prog", so it can be a program name with args.
6179 set dummy $ac_prog; ac_word=$2
6180 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6181 $as_echo_n "checking for $ac_word... " >&6; }
6182 if ${ac_cv_prog_ac_ct_AR+:} false; then :
6183 $as_echo_n "(cached) " >&6
6184 else
6185 if test -n "$ac_ct_AR"; then
6186 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6187 else
6188 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6189 for as_dir in $PATH
6190 do
6191 IFS=$as_save_IFS
6192 test -z "$as_dir" && as_dir=.
6193 for ac_exec_ext in '' $ac_executable_extensions; do
6194 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6195 ac_cv_prog_ac_ct_AR="$ac_prog"
6196 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6197 break 2
6198 fi
6199 done
6200 done
6201 IFS=$as_save_IFS
6202
6203 fi
6204 fi
6205 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6206 if test -n "$ac_ct_AR"; then
6207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6208 $as_echo "$ac_ct_AR" >&6; }
6209 else
6210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6211 $as_echo "no" >&6; }
6212 fi
6213
6214
6215 test -n "$ac_ct_AR" && break
6216 done
6217
6218 if test "x$ac_ct_AR" = x; then
6219 AR="false"
6220 else
6221 case $cross_compiling:$ac_tool_warned in
6222 yes:)
6223 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6224 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6225 ac_tool_warned=yes ;;
6226 esac
6227 AR=$ac_ct_AR
6228 fi
6229 fi
6230
6231 : ${AR=ar}
6232
6233 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the archiver ($AR) interface" >&5
6234 $as_echo_n "checking the archiver ($AR) interface... " >&6; }
6235 if ${am_cv_ar_interface+:} false; then :
6236 $as_echo_n "(cached) " >&6
6237 else
6238 ac_ext=c
6239 ac_cpp='$CPP $CPPFLAGS'
6240 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6241 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6242 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6243
6244 am_cv_ar_interface=ar
6245 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6246 /* end confdefs.h. */
6247 int some_variable = 0;
6248 _ACEOF
6249 if ac_fn_c_try_compile "$LINENO"; then :
6250 am_ar_try='$AR cru libconftest.a conftest.$ac_objext >&5'
6251 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
6252 (eval $am_ar_try) 2>&5
6253 ac_status=$?
6254 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6255 test $ac_status = 0; }
6256 if test "$ac_status" -eq 0; then
6257 am_cv_ar_interface=ar
6258 else
6259 am_ar_try='$AR -NOLOGO -OUT:conftest.lib conftest.$ac_objext >&5'
6260 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
6261 (eval $am_ar_try) 2>&5
6262 ac_status=$?
6263 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6264 test $ac_status = 0; }
6265 if test "$ac_status" -eq 0; then
6266 am_cv_ar_interface=lib
6267 else
6268 am_cv_ar_interface=unknown
6269 fi
6270 fi
6271 rm -f conftest.lib libconftest.a
6272
6273 fi
6274 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6275 ac_ext=c
6276 ac_cpp='$CPP $CPPFLAGS'
6277 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6278 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6279 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6280
6281 fi
6282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_ar_interface" >&5
6283 $as_echo "$am_cv_ar_interface" >&6; }
6284
6285 case $am_cv_ar_interface in
6286 ar)
6287 ;;
6288 lib)
6289 # Microsoft lib, so override with the ar-lib wrapper script.
6290 # FIXME: It is wrong to rewrite AR.
6291 # But if we don't then we get into trouble of one sort or another.
6292 # A longer-term fix would be to have automake use am__AR in this case,
6293 # and then we could set am__AR="$am_aux_dir/ar-lib \$(AR)" or something
6294 # similar.
6295 AR="$am_aux_dir/ar-lib $AR"
6296 ;;
6297 unknown)
6298 as_fn_error $? "could not determine $AR interface" "$LINENO" 5
6299 ;;
6300 esac
6301
6302 fi
6303
6304 if test -n "$ac_tool_prefix"; then
6305 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6306 set dummy ${ac_tool_prefix}ar; ac_word=$2
6307 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6308 $as_echo_n "checking for $ac_word... " >&6; }
6309 if ${ac_cv_prog_AR+:} false; then :
6310 $as_echo_n "(cached) " >&6
6311 else
6312 if test -n "$AR"; then
6313 ac_cv_prog_AR="$AR" # Let the user override the test.
6314 else
6315 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6316 for as_dir in $PATH
6317 do
6318 IFS=$as_save_IFS
6319 test -z "$as_dir" && as_dir=.
6320 for ac_exec_ext in '' $ac_executable_extensions; do
6321 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6322 ac_cv_prog_AR="${ac_tool_prefix}ar"
6323 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6324 break 2
6325 fi
6326 done
6327 done
6328 IFS=$as_save_IFS
6329
6330 fi
6331 fi
6332 AR=$ac_cv_prog_AR
6333 if test -n "$AR"; then
6334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6335 $as_echo "$AR" >&6; }
6336 else
6337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6338 $as_echo "no" >&6; }
6339 fi
6340
6341
6342 fi
6343 if test -z "$ac_cv_prog_AR"; then
6344 ac_ct_AR=$AR
6345 # Extract the first word of "ar", so it can be a program name with args.
6346 set dummy ar; ac_word=$2
6347 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6348 $as_echo_n "checking for $ac_word... " >&6; }
6349 if ${ac_cv_prog_ac_ct_AR+:} false; then :
6350 $as_echo_n "(cached) " >&6
6351 else
6352 if test -n "$ac_ct_AR"; then
6353 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6354 else
6355 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6356 for as_dir in $PATH
6357 do
6358 IFS=$as_save_IFS
6359 test -z "$as_dir" && as_dir=.
6360 for ac_exec_ext in '' $ac_executable_extensions; do
6361 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6362 ac_cv_prog_ac_ct_AR="ar"
6363 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6364 break 2
6365 fi
6366 done
6367 done
6368 IFS=$as_save_IFS
6369
6370 fi
6371 fi
6372 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6373 if test -n "$ac_ct_AR"; then
6374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6375 $as_echo "$ac_ct_AR" >&6; }
6376 else
6377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6378 $as_echo "no" >&6; }
6379 fi
6380
6381 if test "x$ac_ct_AR" = x; then
6382 AR="ar"
6383 else
6384 case $cross_compiling:$ac_tool_warned in
6385 yes:)
6386 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6387 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6388 ac_tool_warned=yes ;;
6389 esac
6390 AR=$ac_ct_AR
6391 fi
6392 else
6393 AR="$ac_cv_prog_AR"
6394 fi
6395
6396 if test -z "$ARFLAGS"; then
6397 ARFLAGS='cr'
6398 fi
6399
6400
6401
6402 if test -z "$RANLIB"; then
6403 if test $gl_cv_c_amsterdam_compiler = yes; then
6404 RANLIB=':'
6405 else
6406 if test -n "$ac_tool_prefix"; then
6407 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6408 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6409 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6410 $as_echo_n "checking for $ac_word... " >&6; }
6411 if ${ac_cv_prog_RANLIB+:} false; then :
6412 $as_echo_n "(cached) " >&6
6413 else
6414 if test -n "$RANLIB"; then
6415 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6416 else
6417 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6418 for as_dir in $PATH
6419 do
6420 IFS=$as_save_IFS
6421 test -z "$as_dir" && as_dir=.
6422 for ac_exec_ext in '' $ac_executable_extensions; do
6423 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6424 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6425 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6426 break 2
6427 fi
6428 done
6429 done
6430 IFS=$as_save_IFS
6431
6432 fi
6433 fi
6434 RANLIB=$ac_cv_prog_RANLIB
6435 if test -n "$RANLIB"; then
6436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6437 $as_echo "$RANLIB" >&6; }
6438 else
6439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6440 $as_echo "no" >&6; }
6441 fi
6442
6443
6444 fi
6445 if test -z "$ac_cv_prog_RANLIB"; then
6446 ac_ct_RANLIB=$RANLIB
6447 # Extract the first word of "ranlib", so it can be a program name with args.
6448 set dummy ranlib; ac_word=$2
6449 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6450 $as_echo_n "checking for $ac_word... " >&6; }
6451 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6452 $as_echo_n "(cached) " >&6
6453 else
6454 if test -n "$ac_ct_RANLIB"; then
6455 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6456 else
6457 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6458 for as_dir in $PATH
6459 do
6460 IFS=$as_save_IFS
6461 test -z "$as_dir" && as_dir=.
6462 for ac_exec_ext in '' $ac_executable_extensions; do
6463 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6464 ac_cv_prog_ac_ct_RANLIB="ranlib"
6465 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6466 break 2
6467 fi
6468 done
6469 done
6470 IFS=$as_save_IFS
6471
6472 fi
6473 fi
6474 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6475 if test -n "$ac_ct_RANLIB"; then
6476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6477 $as_echo "$ac_ct_RANLIB" >&6; }
6478 else
6479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6480 $as_echo "no" >&6; }
6481 fi
6482
6483 if test "x$ac_ct_RANLIB" = x; then
6484 RANLIB=":"
6485 else
6486 case $cross_compiling:$ac_tool_warned in
6487 yes:)
6488 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6489 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6490 ac_tool_warned=yes ;;
6491 esac
6492 RANLIB=$ac_ct_RANLIB
6493 fi
6494 else
6495 RANLIB="$ac_cv_prog_RANLIB"
6496 fi
6497
6498 fi
6499 fi
6500
6501
6502
6503
6504 # Pre-early section.
6505
6506
6507
6508 # Code from module absolute-header:
6509 # Code from module access:
6510 # Code from module alloca:
6511 # Code from module alloca-opt:
6512 # Code from module close:
6513 # Code from module concat-filename:
6514 # Code from module dirname-lgpl:
6515 # Code from module dosname:
6516 # Code from module double-slash-root:
6517 # Code from module dup2:
6518 # Code from module errno:
6519 # Code from module error:
6520 # Code from module exitfail:
6521 # Code from module extensions:
6522 # Code from module extern-inline:
6523 # Code from module fcntl:
6524 # Code from module fcntl-h:
6525 # Code from module fd-hook:
6526 # Code from module fdl:
6527 # Code from module filename:
6528 # Code from module findprog-in:
6529 # Code from module getdtablesize:
6530 # Code from module getloadavg:
6531 # Code from module getprogname:
6532 # Code from module gettext-h:
6533 # Code from module host-cpu-c-abi:
6534 # Code from module include_next:
6535 # Code from module intprops:
6536 # Code from module limits-h:
6537 # Code from module make-glob:
6538 # Code from module malloc-posix:
6539 # Code from module msvc-inval:
6540 # Code from module msvc-nothrow:
6541 # Code from module multiarch:
6542 # Code from module snippet/_Noreturn:
6543 # Code from module snippet/arg-nonnull:
6544 # Code from module snippet/c++defs:
6545 # Code from module snippet/warn-on-use:
6546 # Code from module ssize_t:
6547 # Code from module stdbool:
6548 # Code from module stddef:
6549 # Code from module stdint:
6550 # Code from module stdio:
6551 # Code from module stdlib:
6552 # Code from module stpcpy:
6553 # Code from module strerror:
6554 # Code from module strerror-override:
6555 # Code from module string:
6556 # Code from module sys_types:
6557 # Code from module unistd:
6558 # Code from module verify:
6559 # Code from module xalloc:
6560 # Code from module xalloc-die:
6561 # Code from module xalloc-oversized:
6562 # Code from module xconcat-filename:
6563
6564
6565
6566
6567
6568
6569
6570 # Check whether --enable-cross-guesses was given.
6571 if test "${enable_cross_guesses+set}" = set; then :
6572 enableval=$enable_cross_guesses; if test "x$enableval" != xconservative && test "x$enableval" != xrisky; then
6573 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: invalid argument supplied to --enable-cross-guesses" >&5
6574 $as_echo "$as_me: WARNING: invalid argument supplied to --enable-cross-guesses" >&2;}
6575 enableval=conservative
6576 fi
6577 gl_cross_guesses="$enableval"
6578 else
6579 gl_cross_guesses=conservative
6580 fi
6581
6582 if test $gl_cross_guesses = risky; then
6583 gl_cross_guess_normal="guessing yes"
6584 gl_cross_guess_inverted="guessing no"
6585 else
6586 gl_cross_guess_normal="guessing no"
6587 gl_cross_guess_inverted="guessing yes"
6588 fi
6589 LIBC_FATAL_STDERR_=1
6590 export LIBC_FATAL_STDERR_
6591
6592
6593 GNULIB_ACCESS=0;
6594 GNULIB_CHDIR=0;
6595 GNULIB_CHOWN=0;
6596 GNULIB_CLOSE=0;
6597 GNULIB_COPY_FILE_RANGE=0;
6598 GNULIB_DUP=0;
6599 GNULIB_DUP2=0;
6600 GNULIB_DUP3=0;
6601 GNULIB_ENVIRON=0;
6602 GNULIB_EUIDACCESS=0;
6603 GNULIB_FACCESSAT=0;
6604 GNULIB_FCHDIR=0;
6605 GNULIB_FCHOWNAT=0;
6606 GNULIB_FDATASYNC=0;
6607 GNULIB_FSYNC=0;
6608 GNULIB_FTRUNCATE=0;
6609 GNULIB_GETCWD=0;
6610 GNULIB_GETDOMAINNAME=0;
6611 GNULIB_GETDTABLESIZE=0;
6612 GNULIB_GETGROUPS=0;
6613 GNULIB_GETHOSTNAME=0;
6614 GNULIB_GETLOGIN=0;
6615 GNULIB_GETLOGIN_R=0;
6616 GNULIB_GETPAGESIZE=0;
6617 GNULIB_GETPASS=0;
6618 GNULIB_GETUSERSHELL=0;
6619 GNULIB_GROUP_MEMBER=0;
6620 GNULIB_ISATTY=0;
6621 GNULIB_LCHOWN=0;
6622 GNULIB_LINK=0;
6623 GNULIB_LINKAT=0;
6624 GNULIB_LSEEK=0;
6625 GNULIB_PIPE=0;
6626 GNULIB_PIPE2=0;
6627 GNULIB_PREAD=0;
6628 GNULIB_PWRITE=0;
6629 GNULIB_READ=0;
6630 GNULIB_READLINK=0;
6631 GNULIB_READLINKAT=0;
6632 GNULIB_RMDIR=0;
6633 GNULIB_SETHOSTNAME=0;
6634 GNULIB_SLEEP=0;
6635 GNULIB_SYMLINK=0;
6636 GNULIB_SYMLINKAT=0;
6637 GNULIB_TRUNCATE=0;
6638 GNULIB_TTYNAME_R=0;
6639 GNULIB_UNISTD_H_NONBLOCKING=0;
6640 GNULIB_UNISTD_H_SIGPIPE=0;
6641 GNULIB_UNLINK=0;
6642 GNULIB_UNLINKAT=0;
6643 GNULIB_USLEEP=0;
6644 GNULIB_WRITE=0;
6645 HAVE_CHOWN=1;
6646 HAVE_COPY_FILE_RANGE=1;
6647 HAVE_DUP2=1;
6648 HAVE_DUP3=1;
6649 HAVE_EUIDACCESS=1;
6650 HAVE_FACCESSAT=1;
6651 HAVE_FCHDIR=1;
6652 HAVE_FCHOWNAT=1;
6653 HAVE_FDATASYNC=1;
6654 HAVE_FSYNC=1;
6655 HAVE_FTRUNCATE=1;
6656 HAVE_GETDTABLESIZE=1;
6657 HAVE_GETGROUPS=1;
6658 HAVE_GETHOSTNAME=1;
6659 HAVE_GETLOGIN=1;
6660 HAVE_GETPAGESIZE=1;
6661 HAVE_GETPASS=1;
6662 HAVE_GROUP_MEMBER=1;
6663 HAVE_LCHOWN=1;
6664 HAVE_LINK=1;
6665 HAVE_LINKAT=1;
6666 HAVE_PIPE=1;
6667 HAVE_PIPE2=1;
6668 HAVE_PREAD=1;
6669 HAVE_PWRITE=1;
6670 HAVE_READLINK=1;
6671 HAVE_READLINKAT=1;
6672 HAVE_SETHOSTNAME=1;
6673 HAVE_SLEEP=1;
6674 HAVE_SYMLINK=1;
6675 HAVE_SYMLINKAT=1;
6676 HAVE_UNLINKAT=1;
6677 HAVE_USLEEP=1;
6678 HAVE_DECL_ENVIRON=1;
6679 HAVE_DECL_FCHDIR=1;
6680 HAVE_DECL_FDATASYNC=1;
6681 HAVE_DECL_GETDOMAINNAME=1;
6682 HAVE_DECL_GETLOGIN=1;
6683 HAVE_DECL_GETLOGIN_R=1;
6684 HAVE_DECL_GETPAGESIZE=1;
6685 HAVE_DECL_GETUSERSHELL=1;
6686 HAVE_DECL_SETHOSTNAME=1;
6687 HAVE_DECL_TRUNCATE=1;
6688 HAVE_DECL_TTYNAME_R=1;
6689 HAVE_OS_H=0;
6690 HAVE_SYS_PARAM_H=0;
6691 REPLACE_ACCESS=0;
6692 REPLACE_CHOWN=0;
6693 REPLACE_CLOSE=0;
6694 REPLACE_DUP=0;
6695 REPLACE_DUP2=0;
6696 REPLACE_FACCESSAT=0;
6697 REPLACE_FCHOWNAT=0;
6698 REPLACE_FTRUNCATE=0;
6699 REPLACE_GETCWD=0;
6700 REPLACE_GETDOMAINNAME=0;
6701 REPLACE_GETDTABLESIZE=0;
6702 REPLACE_GETLOGIN_R=0;
6703 REPLACE_GETGROUPS=0;
6704 REPLACE_GETPAGESIZE=0;
6705 REPLACE_GETPASS=0;
6706 REPLACE_ISATTY=0;
6707 REPLACE_LCHOWN=0;
6708 REPLACE_LINK=0;
6709 REPLACE_LINKAT=0;
6710 REPLACE_LSEEK=0;
6711 REPLACE_PREAD=0;
6712 REPLACE_PWRITE=0;
6713 REPLACE_READ=0;
6714 REPLACE_READLINK=0;
6715 REPLACE_READLINKAT=0;
6716 REPLACE_RMDIR=0;
6717 REPLACE_SLEEP=0;
6718 REPLACE_SYMLINK=0;
6719 REPLACE_SYMLINKAT=0;
6720 REPLACE_TRUNCATE=0;
6721 REPLACE_TTYNAME_R=0;
6722 REPLACE_UNLINK=0;
6723 REPLACE_UNLINKAT=0;
6724 REPLACE_USLEEP=0;
6725 REPLACE_WRITE=0;
6726 UNISTD_H_HAVE_WINSOCK2_H=0;
6727 UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS=0;
6728
6729
6730 # Make sure we can run config.sub.
6731 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
6732 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
6733
6734 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
6735 $as_echo_n "checking build system type... " >&6; }
6736 if ${ac_cv_build+:} false; then :
6737 $as_echo_n "(cached) " >&6
6738 else
6739 ac_build_alias=$build_alias
6740 test "x$ac_build_alias" = x &&
6741 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
6742 test "x$ac_build_alias" = x &&
6743 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
6744 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
6745 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
6746
6747 fi
6748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
6749 $as_echo "$ac_cv_build" >&6; }
6750 case $ac_cv_build in
6751 *-*-*) ;;
6752 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
6753 esac
6754 build=$ac_cv_build
6755 ac_save_IFS=$IFS; IFS='-'
6756 set x $ac_cv_build
6757 shift
6758 build_cpu=$1
6759 build_vendor=$2
6760 shift; shift
6761 # Remember, the first character of IFS is used to create $*,
6762 # except with old shells:
6763 build_os=$*
6764 IFS=$ac_save_IFS
6765 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
6766
6767
6768 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
6769 $as_echo_n "checking host system type... " >&6; }
6770 if ${ac_cv_host+:} false; then :
6771 $as_echo_n "(cached) " >&6
6772 else
6773 if test "x$host_alias" = x; then
6774 ac_cv_host=$ac_cv_build
6775 else
6776 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
6777 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
6778 fi
6779
6780 fi
6781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
6782 $as_echo "$ac_cv_host" >&6; }
6783 case $ac_cv_host in
6784 *-*-*) ;;
6785 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
6786 esac
6787 host=$ac_cv_host
6788 ac_save_IFS=$IFS; IFS='-'
6789 set x $ac_cv_host
6790 shift
6791 host_cpu=$1
6792 host_vendor=$2
6793 shift; shift
6794 # Remember, the first character of IFS is used to create $*,
6795 # except with old shells:
6796 host_os=$*
6797 IFS=$ac_save_IFS
6798 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
6799
6800
6801 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
6802 if test "x$ac_cv_type_size_t" = xyes; then :
6803
6804 else
6805
6806 cat >>confdefs.h <<_ACEOF
6807 #define size_t unsigned int
6808 _ACEOF
6809
6810 fi
6811
6812 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
6813 # for constant arguments. Useless!
6814 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
6815 $as_echo_n "checking for working alloca.h... " >&6; }
6816 if ${ac_cv_working_alloca_h+:} false; then :
6817 $as_echo_n "(cached) " >&6
6818 else
6819 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6820 /* end confdefs.h. */
6821 #include <alloca.h>
6822 int
6823 main ()
6824 {
6825 char *p = (char *) alloca (2 * sizeof (int));
6826 if (p) return 0;
6827 ;
6828 return 0;
6829 }
6830 _ACEOF
6831 if ac_fn_c_try_link "$LINENO"; then :
6832 ac_cv_working_alloca_h=yes
6833 else
6834 ac_cv_working_alloca_h=no
6835 fi
6836 rm -f core conftest.err conftest.$ac_objext \
6837 conftest$ac_exeext conftest.$ac_ext
6838 fi
6839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
6840 $as_echo "$ac_cv_working_alloca_h" >&6; }
6841 if test $ac_cv_working_alloca_h = yes; then
6842
6843 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
6844
6845 fi
6846
6847 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
6848 $as_echo_n "checking for alloca... " >&6; }
6849 if ${ac_cv_func_alloca_works+:} false; then :
6850 $as_echo_n "(cached) " >&6
6851 else
6852 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6853 /* end confdefs.h. */
6854 #ifdef __GNUC__
6855 # define alloca __builtin_alloca
6856 #else
6857 # ifdef _MSC_VER
6858 # include <malloc.h>
6859 # define alloca _alloca
6860 # else
6861 # ifdef HAVE_ALLOCA_H
6862 # include <alloca.h>
6863 # else
6864 # ifdef _AIX
6865 #pragma alloca
6866 # else
6867 # ifndef alloca /* predefined by HP cc +Olibcalls */
6868 void *alloca (size_t);
6869 # endif
6870 # endif
6871 # endif
6872 # endif
6873 #endif
6874
6875 int
6876 main ()
6877 {
6878 char *p = (char *) alloca (1);
6879 if (p) return 0;
6880 ;
6881 return 0;
6882 }
6883 _ACEOF
6884 if ac_fn_c_try_link "$LINENO"; then :
6885 ac_cv_func_alloca_works=yes
6886 else
6887 ac_cv_func_alloca_works=no
6888 fi
6889 rm -f core conftest.err conftest.$ac_objext \
6890 conftest$ac_exeext conftest.$ac_ext
6891 fi
6892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
6893 $as_echo "$ac_cv_func_alloca_works" >&6; }
6894
6895 if test $ac_cv_func_alloca_works = yes; then
6896
6897 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
6898
6899 else
6900 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
6901 # that cause trouble. Some versions do not even contain alloca or
6902 # contain a buggy version. If you still want to use their alloca,
6903 # use ar to extract alloca.o from them instead of compiling alloca.c.
6904
6905
6906
6907
6908
6909 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
6910
6911 $as_echo "#define C_ALLOCA 1" >>confdefs.h
6912
6913
6914 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
6915 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
6916 if ${ac_cv_os_cray+:} false; then :
6917 $as_echo_n "(cached) " >&6
6918 else
6919 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6920 /* end confdefs.h. */
6921 #if defined CRAY && ! defined CRAY2
6922 webecray
6923 #else
6924 wenotbecray
6925 #endif
6926
6927 _ACEOF
6928 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6929 $EGREP "webecray" >/dev/null 2>&1; then :
6930 ac_cv_os_cray=yes
6931 else
6932 ac_cv_os_cray=no
6933 fi
6934 rm -f conftest*
6935
6936 fi
6937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
6938 $as_echo "$ac_cv_os_cray" >&6; }
6939 if test $ac_cv_os_cray = yes; then
6940 for ac_func in _getb67 GETB67 getb67; do
6941 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
6942 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
6943 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
6944
6945 cat >>confdefs.h <<_ACEOF
6946 #define CRAY_STACKSEG_END $ac_func
6947 _ACEOF
6948
6949 break
6950 fi
6951
6952 done
6953 fi
6954
6955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
6956 $as_echo_n "checking stack direction for C alloca... " >&6; }
6957 if ${ac_cv_c_stack_direction+:} false; then :
6958 $as_echo_n "(cached) " >&6
6959 else
6960 if test "$cross_compiling" = yes; then :
6961 ac_cv_c_stack_direction=0
6962 else
6963 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6964 /* end confdefs.h. */
6965 $ac_includes_default
6966 int
6967 find_stack_direction (int *addr, int depth)
6968 {
6969 int dir, dummy = 0;
6970 if (! addr)
6971 addr = &dummy;
6972 *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1;
6973 dir = depth ? find_stack_direction (addr, depth - 1) : 0;
6974 return dir + dummy;
6975 }
6976
6977 int
6978 main (int argc, char **argv)
6979 {
6980 return find_stack_direction (0, argc + !argv + 20) < 0;
6981 }
6982 _ACEOF
6983 if ac_fn_c_try_run "$LINENO"; then :
6984 ac_cv_c_stack_direction=1
6985 else
6986 ac_cv_c_stack_direction=-1
6987 fi
6988 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6989 conftest.$ac_objext conftest.beam conftest.$ac_ext
6990 fi
6991
6992 fi
6993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
6994 $as_echo "$ac_cv_c_stack_direction" >&6; }
6995 cat >>confdefs.h <<_ACEOF
6996 #define STACK_DIRECTION $ac_cv_c_stack_direction
6997 _ACEOF
6998
6999
7000 fi
7001
7002
7003
7004
7005 for ac_func in $ac_func_list
7006 do :
7007 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
7008 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
7009 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
7010 cat >>confdefs.h <<_ACEOF
7011 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
7012 _ACEOF
7013
7014 fi
7015 done
7016
7017
7018
7019
7020
7021 if test $ac_cv_func__set_invalid_parameter_handler = yes; then
7022 HAVE_MSVC_INVALID_PARAMETER_HANDLER=1
7023
7024 $as_echo "#define HAVE_MSVC_INVALID_PARAMETER_HANDLER 1" >>confdefs.h
7025
7026 else
7027 HAVE_MSVC_INVALID_PARAMETER_HANDLER=0
7028 fi
7029
7030
7031
7032
7033
7034 for ac_header in $ac_header_list
7035 do :
7036 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7037 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7038 "
7039 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7040 cat >>confdefs.h <<_ACEOF
7041 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7042 _ACEOF
7043
7044 fi
7045
7046 done
7047
7048
7049
7050
7051
7052 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether // is distinct from /" >&5
7053 $as_echo_n "checking whether // is distinct from /... " >&6; }
7054 if ${gl_cv_double_slash_root+:} false; then :
7055 $as_echo_n "(cached) " >&6
7056 else
7057 if test x"$cross_compiling" = xyes ; then
7058 # When cross-compiling, there is no way to tell whether // is special
7059 # short of a list of hosts. However, the only known hosts to date
7060 # that have a distinct // are Apollo DomainOS (too old to port to),
7061 # Cygwin, and z/OS. If anyone knows of another system for which // has
7062 # special semantics and is distinct from /, please report it to
7063 # <[email protected]>.
7064 case $host in
7065 *-cygwin | i370-ibm-openedition)
7066 gl_cv_double_slash_root=yes ;;
7067 *)
7068 # Be optimistic and assume that / and // are the same when we
7069 # don't know.
7070 gl_cv_double_slash_root='unknown, assuming no' ;;
7071 esac
7072 else
7073 set x `ls -di / // 2>/dev/null`
7074 if test "$2" = "$4" && wc //dev/null >/dev/null 2>&1; then
7075 gl_cv_double_slash_root=no
7076 else
7077 gl_cv_double_slash_root=yes
7078 fi
7079 fi
7080 fi
7081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_double_slash_root" >&5
7082 $as_echo "$gl_cv_double_slash_root" >&6; }
7083 if test "$gl_cv_double_slash_root" = yes; then
7084
7085 $as_echo "#define DOUBLE_SLASH_IS_DISTINCT_ROOT 1" >>confdefs.h
7086
7087 fi
7088
7089
7090
7091 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the preprocessor supports include_next" >&5
7092 $as_echo_n "checking whether the preprocessor supports include_next... " >&6; }
7093 if ${gl_cv_have_include_next+:} false; then :
7094 $as_echo_n "(cached) " >&6
7095 else
7096 rm -rf conftestd1a conftestd1b conftestd2
7097 mkdir conftestd1a conftestd1b conftestd2
7098 cat <<EOF > conftestd1a/conftest.h
7099 #define DEFINED_IN_CONFTESTD1
7100 #include_next <conftest.h>
7101 #ifdef DEFINED_IN_CONFTESTD2
7102 int foo;
7103 #else
7104 #error "include_next doesn't work"
7105 #endif
7106 EOF
7107 cat <<EOF > conftestd1b/conftest.h
7108 #define DEFINED_IN_CONFTESTD1
7109 #include <stdio.h>
7110 #include_next <conftest.h>
7111 #ifdef DEFINED_IN_CONFTESTD2
7112 int foo;
7113 #else
7114 #error "include_next doesn't work"
7115 #endif
7116 EOF
7117 cat <<EOF > conftestd2/conftest.h
7118 #ifndef DEFINED_IN_CONFTESTD1
7119 #error "include_next test doesn't work"
7120 #endif
7121 #define DEFINED_IN_CONFTESTD2
7122 EOF
7123 gl_save_CPPFLAGS="$CPPFLAGS"
7124 CPPFLAGS="$gl_save_CPPFLAGS -Iconftestd1b -Iconftestd2"
7125 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7126 /* end confdefs.h. */
7127 #include <conftest.h>
7128 _ACEOF
7129 if ac_fn_c_try_compile "$LINENO"; then :
7130 gl_cv_have_include_next=yes
7131 else
7132 CPPFLAGS="$gl_save_CPPFLAGS -Iconftestd1a -Iconftestd2"
7133 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7134 /* end confdefs.h. */
7135 #include <conftest.h>
7136 _ACEOF
7137 if ac_fn_c_try_compile "$LINENO"; then :
7138 gl_cv_have_include_next=buggy
7139 else
7140 gl_cv_have_include_next=no
7141 fi
7142 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7143
7144 fi
7145 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7146 CPPFLAGS="$gl_save_CPPFLAGS"
7147 rm -rf conftestd1a conftestd1b conftestd2
7148
7149 fi
7150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_have_include_next" >&5
7151 $as_echo "$gl_cv_have_include_next" >&6; }
7152 PRAGMA_SYSTEM_HEADER=
7153 if test $gl_cv_have_include_next = yes; then
7154 INCLUDE_NEXT=include_next
7155 INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include_next
7156 if test -n "$GCC"; then
7157 PRAGMA_SYSTEM_HEADER='#pragma GCC system_header'
7158 fi
7159 else
7160 if test $gl_cv_have_include_next = buggy; then
7161 INCLUDE_NEXT=include
7162 INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include_next
7163 else
7164 INCLUDE_NEXT=include
7165 INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include
7166 fi
7167 fi
7168
7169
7170
7171 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether system header files limit the line length" >&5
7172 $as_echo_n "checking whether system header files limit the line length... " >&6; }
7173 if ${gl_cv_pragma_columns+:} false; then :
7174 $as_echo_n "(cached) " >&6
7175 else
7176 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7177 /* end confdefs.h. */
7178
7179 #ifdef __TANDEM
7180 choke me
7181 #endif
7182
7183 _ACEOF
7184 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7185 $EGREP "choke me" >/dev/null 2>&1; then :
7186 gl_cv_pragma_columns=yes
7187 else
7188 gl_cv_pragma_columns=no
7189 fi
7190 rm -f conftest*
7191
7192
7193 fi
7194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_pragma_columns" >&5
7195 $as_echo "$gl_cv_pragma_columns" >&6; }
7196 if test $gl_cv_pragma_columns = yes; then
7197 PRAGMA_COLUMNS="#pragma COLUMNS 10000"
7198 else
7199 PRAGMA_COLUMNS=
7200 fi
7201
7202
7203
7204
7205 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for complete errno.h" >&5
7206 $as_echo_n "checking for complete errno.h... " >&6; }
7207 if ${gl_cv_header_errno_h_complete+:} false; then :
7208 $as_echo_n "(cached) " >&6
7209 else
7210
7211 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7212 /* end confdefs.h. */
7213
7214 #include <errno.h>
7215 #if !defined ETXTBSY
7216 booboo
7217 #endif
7218 #if !defined ENOMSG
7219 booboo
7220 #endif
7221 #if !defined EIDRM
7222 booboo
7223 #endif
7224 #if !defined ENOLINK
7225 booboo
7226 #endif
7227 #if !defined EPROTO
7228 booboo
7229 #endif
7230 #if !defined EMULTIHOP
7231 booboo
7232 #endif
7233 #if !defined EBADMSG
7234 booboo
7235 #endif
7236 #if !defined EOVERFLOW
7237 booboo
7238 #endif
7239 #if !defined ENOTSUP
7240 booboo
7241 #endif
7242 #if !defined ENETRESET
7243 booboo
7244 #endif
7245 #if !defined ECONNABORTED
7246 booboo
7247 #endif
7248 #if !defined ESTALE
7249 booboo
7250 #endif
7251 #if !defined EDQUOT
7252 booboo
7253 #endif
7254 #if !defined ECANCELED
7255 booboo
7256 #endif
7257 #if !defined EOWNERDEAD
7258 booboo
7259 #endif
7260 #if !defined ENOTRECOVERABLE
7261 booboo
7262 #endif
7263 #if !defined EILSEQ
7264 booboo
7265 #endif
7266
7267 _ACEOF
7268 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7269 $EGREP "booboo" >/dev/null 2>&1; then :
7270 gl_cv_header_errno_h_complete=no
7271 else
7272 gl_cv_header_errno_h_complete=yes
7273 fi
7274 rm -f conftest*
7275
7276
7277 fi
7278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_errno_h_complete" >&5
7279 $as_echo "$gl_cv_header_errno_h_complete" >&6; }
7280 if test $gl_cv_header_errno_h_complete = yes; then
7281 ERRNO_H=''
7282 else
7283
7284
7285
7286
7287
7288
7289
7290
7291 if test $gl_cv_have_include_next = yes; then
7292 gl_cv_next_errno_h='<'errno.h'>'
7293 else
7294 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <errno.h>" >&5
7295 $as_echo_n "checking absolute name of <errno.h>... " >&6; }
7296 if ${gl_cv_next_errno_h+:} false; then :
7297 $as_echo_n "(cached) " >&6
7298 else
7299
7300
7301
7302 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7303 /* end confdefs.h. */
7304 #include <errno.h>
7305 _ACEOF
7306 case "$host_os" in
7307 aix*) gl_absname_cpp="$ac_cpp -C" ;;
7308 *) gl_absname_cpp="$ac_cpp" ;;
7309 esac
7310
7311 case "$host_os" in
7312 mingw*)
7313 gl_dirsep_regex='[/\\]'
7314 ;;
7315 *)
7316 gl_dirsep_regex='\/'
7317 ;;
7318 esac
7319 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
7320 gl_header_literal_regex=`echo 'errno.h' \
7321 | sed -e "$gl_make_literal_regex_sed"`
7322 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
7323 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
7324 s|^/[^/]|//&|
7325 p
7326 q
7327 }'
7328
7329 gl_cv_absolute_errno_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
7330 sed -n "$gl_absolute_header_sed"`
7331
7332 gl_header=$gl_cv_absolute_errno_h
7333 gl_cv_next_errno_h='"'$gl_header'"'
7334
7335
7336 fi
7337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_errno_h" >&5
7338 $as_echo "$gl_cv_next_errno_h" >&6; }
7339 fi
7340 NEXT_ERRNO_H=$gl_cv_next_errno_h
7341
7342 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
7343 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
7344 gl_next_as_first_directive='<'errno.h'>'
7345 else
7346 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
7347 gl_next_as_first_directive=$gl_cv_next_errno_h
7348 fi
7349 NEXT_AS_FIRST_DIRECTIVE_ERRNO_H=$gl_next_as_first_directive
7350
7351
7352
7353
7354 ERRNO_H='errno.h'
7355 fi
7356
7357 if test -n "$ERRNO_H"; then
7358 GL_GENERATE_ERRNO_H_TRUE=
7359 GL_GENERATE_ERRNO_H_FALSE='#'
7360 else
7361 GL_GENERATE_ERRNO_H_TRUE='#'
7362 GL_GENERATE_ERRNO_H_FALSE=
7363 fi
7364
7365
7366 if test -n "$ERRNO_H"; then
7367 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EMULTIHOP value" >&5
7368 $as_echo_n "checking for EMULTIHOP value... " >&6; }
7369 if ${gl_cv_header_errno_h_EMULTIHOP+:} false; then :
7370 $as_echo_n "(cached) " >&6
7371 else
7372
7373 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7374 /* end confdefs.h. */
7375
7376 #include <errno.h>
7377 #ifdef EMULTIHOP
7378 yes
7379 #endif
7380
7381 _ACEOF
7382 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7383 $EGREP "yes" >/dev/null 2>&1; then :
7384 gl_cv_header_errno_h_EMULTIHOP=yes
7385 else
7386 gl_cv_header_errno_h_EMULTIHOP=no
7387 fi
7388 rm -f conftest*
7389
7390 if test $gl_cv_header_errno_h_EMULTIHOP = no; then
7391 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7392 /* end confdefs.h. */
7393
7394 #define _XOPEN_SOURCE_EXTENDED 1
7395 #include <errno.h>
7396 #ifdef EMULTIHOP
7397 yes
7398 #endif
7399
7400 _ACEOF
7401 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7402 $EGREP "yes" >/dev/null 2>&1; then :
7403 gl_cv_header_errno_h_EMULTIHOP=hidden
7404 fi
7405 rm -f conftest*
7406
7407 if test $gl_cv_header_errno_h_EMULTIHOP = hidden; then
7408 if ac_fn_c_compute_int "$LINENO" "EMULTIHOP" "gl_cv_header_errno_h_EMULTIHOP" "
7409 #define _XOPEN_SOURCE_EXTENDED 1
7410 #include <errno.h>
7411 /* The following two lines are a workaround against an autoconf-2.52 bug. */
7412 #include <stdio.h>
7413 #include <stdlib.h>
7414 "; then :
7415
7416 fi
7417
7418 fi
7419 fi
7420
7421 fi
7422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_errno_h_EMULTIHOP" >&5
7423 $as_echo "$gl_cv_header_errno_h_EMULTIHOP" >&6; }
7424 case $gl_cv_header_errno_h_EMULTIHOP in
7425 yes | no)
7426 EMULTIHOP_HIDDEN=0; EMULTIHOP_VALUE=
7427 ;;
7428 *)
7429 EMULTIHOP_HIDDEN=1; EMULTIHOP_VALUE="$gl_cv_header_errno_h_EMULTIHOP"
7430 ;;
7431 esac
7432
7433
7434 fi
7435
7436
7437 if test -n "$ERRNO_H"; then
7438 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ENOLINK value" >&5
7439 $as_echo_n "checking for ENOLINK value... " >&6; }
7440 if ${gl_cv_header_errno_h_ENOLINK+:} false; then :
7441 $as_echo_n "(cached) " >&6
7442 else
7443
7444 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7445 /* end confdefs.h. */
7446
7447 #include <errno.h>
7448 #ifdef ENOLINK
7449 yes
7450 #endif
7451
7452 _ACEOF
7453 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7454 $EGREP "yes" >/dev/null 2>&1; then :
7455 gl_cv_header_errno_h_ENOLINK=yes
7456 else
7457 gl_cv_header_errno_h_ENOLINK=no
7458 fi
7459 rm -f conftest*
7460
7461 if test $gl_cv_header_errno_h_ENOLINK = no; then
7462 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7463 /* end confdefs.h. */
7464
7465 #define _XOPEN_SOURCE_EXTENDED 1
7466 #include <errno.h>
7467 #ifdef ENOLINK
7468 yes
7469 #endif
7470
7471 _ACEOF
7472 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7473 $EGREP "yes" >/dev/null 2>&1; then :
7474 gl_cv_header_errno_h_ENOLINK=hidden
7475 fi
7476 rm -f conftest*
7477
7478 if test $gl_cv_header_errno_h_ENOLINK = hidden; then
7479 if ac_fn_c_compute_int "$LINENO" "ENOLINK" "gl_cv_header_errno_h_ENOLINK" "
7480 #define _XOPEN_SOURCE_EXTENDED 1
7481 #include <errno.h>
7482 /* The following two lines are a workaround against an autoconf-2.52 bug. */
7483 #include <stdio.h>
7484 #include <stdlib.h>
7485 "; then :
7486
7487 fi
7488
7489 fi
7490 fi
7491
7492 fi
7493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_errno_h_ENOLINK" >&5
7494 $as_echo "$gl_cv_header_errno_h_ENOLINK" >&6; }
7495 case $gl_cv_header_errno_h_ENOLINK in
7496 yes | no)
7497 ENOLINK_HIDDEN=0; ENOLINK_VALUE=
7498 ;;
7499 *)
7500 ENOLINK_HIDDEN=1; ENOLINK_VALUE="$gl_cv_header_errno_h_ENOLINK"
7501 ;;
7502 esac
7503
7504
7505 fi
7506
7507
7508 if test -n "$ERRNO_H"; then
7509 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EOVERFLOW value" >&5
7510 $as_echo_n "checking for EOVERFLOW value... " >&6; }
7511 if ${gl_cv_header_errno_h_EOVERFLOW+:} false; then :
7512 $as_echo_n "(cached) " >&6
7513 else
7514
7515 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7516 /* end confdefs.h. */
7517
7518 #include <errno.h>
7519 #ifdef EOVERFLOW
7520 yes
7521 #endif
7522
7523 _ACEOF
7524 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7525 $EGREP "yes" >/dev/null 2>&1; then :
7526 gl_cv_header_errno_h_EOVERFLOW=yes
7527 else
7528 gl_cv_header_errno_h_EOVERFLOW=no
7529 fi
7530 rm -f conftest*
7531
7532 if test $gl_cv_header_errno_h_EOVERFLOW = no; then
7533 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7534 /* end confdefs.h. */
7535
7536 #define _XOPEN_SOURCE_EXTENDED 1
7537 #include <errno.h>
7538 #ifdef EOVERFLOW
7539 yes
7540 #endif
7541
7542 _ACEOF
7543 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7544 $EGREP "yes" >/dev/null 2>&1; then :
7545 gl_cv_header_errno_h_EOVERFLOW=hidden
7546 fi
7547 rm -f conftest*
7548
7549 if test $gl_cv_header_errno_h_EOVERFLOW = hidden; then
7550 if ac_fn_c_compute_int "$LINENO" "EOVERFLOW" "gl_cv_header_errno_h_EOVERFLOW" "
7551 #define _XOPEN_SOURCE_EXTENDED 1
7552 #include <errno.h>
7553 /* The following two lines are a workaround against an autoconf-2.52 bug. */
7554 #include <stdio.h>
7555 #include <stdlib.h>
7556 "; then :
7557
7558 fi
7559
7560 fi
7561 fi
7562
7563 fi
7564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_errno_h_EOVERFLOW" >&5
7565 $as_echo "$gl_cv_header_errno_h_EOVERFLOW" >&6; }
7566 case $gl_cv_header_errno_h_EOVERFLOW in
7567 yes | no)
7568 EOVERFLOW_HIDDEN=0; EOVERFLOW_VALUE=
7569 ;;
7570 *)
7571 EOVERFLOW_HIDDEN=1; EOVERFLOW_VALUE="$gl_cv_header_errno_h_EOVERFLOW"
7572 ;;
7573 esac
7574
7575
7576 fi
7577
7578
7579 ac_fn_c_check_decl "$LINENO" "strerror_r" "ac_cv_have_decl_strerror_r" "$ac_includes_default"
7580 if test "x$ac_cv_have_decl_strerror_r" = xyes; then :
7581 ac_have_decl=1
7582 else
7583 ac_have_decl=0
7584 fi
7585
7586 cat >>confdefs.h <<_ACEOF
7587 #define HAVE_DECL_STRERROR_R $ac_have_decl
7588 _ACEOF
7589
7590 for ac_func in strerror_r
7591 do :
7592 ac_fn_c_check_func "$LINENO" "strerror_r" "ac_cv_func_strerror_r"
7593 if test "x$ac_cv_func_strerror_r" = xyes; then :
7594 cat >>confdefs.h <<_ACEOF
7595 #define HAVE_STRERROR_R 1
7596 _ACEOF
7597
7598 fi
7599 done
7600
7601 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strerror_r returns char *" >&5
7602 $as_echo_n "checking whether strerror_r returns char *... " >&6; }
7603 if ${ac_cv_func_strerror_r_char_p+:} false; then :
7604 $as_echo_n "(cached) " >&6
7605 else
7606
7607 ac_cv_func_strerror_r_char_p=no
7608 if test $ac_cv_have_decl_strerror_r = yes; then
7609 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7610 /* end confdefs.h. */
7611 $ac_includes_default
7612 int
7613 main ()
7614 {
7615
7616 char buf[100];
7617 char x = *strerror_r (0, buf, sizeof buf);
7618 char *p = strerror_r (0, buf, sizeof buf);
7619 return !p || x;
7620
7621 ;
7622 return 0;
7623 }
7624 _ACEOF
7625 if ac_fn_c_try_compile "$LINENO"; then :
7626 ac_cv_func_strerror_r_char_p=yes
7627 fi
7628 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7629 else
7630 # strerror_r is not declared. Choose between
7631 # systems that have relatively inaccessible declarations for the
7632 # function. BeOS and DEC UNIX 4.0 fall in this category, but the
7633 # former has a strerror_r that returns char*, while the latter
7634 # has a strerror_r that returns `int'.
7635 # This test should segfault on the DEC system.
7636 if test "$cross_compiling" = yes; then :
7637 :
7638 else
7639 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7640 /* end confdefs.h. */
7641 $ac_includes_default
7642 extern char *strerror_r ();
7643 int
7644 main ()
7645 {
7646 char buf[100];
7647 char x = *strerror_r (0, buf, sizeof buf);
7648 return ! isalpha (x);
7649 ;
7650 return 0;
7651 }
7652 _ACEOF
7653 if ac_fn_c_try_run "$LINENO"; then :
7654 ac_cv_func_strerror_r_char_p=yes
7655 fi
7656 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7657 conftest.$ac_objext conftest.beam conftest.$ac_ext
7658 fi
7659
7660 fi
7661
7662 fi
7663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strerror_r_char_p" >&5
7664 $as_echo "$ac_cv_func_strerror_r_char_p" >&6; }
7665 if test $ac_cv_func_strerror_r_char_p = yes; then
7666
7667 $as_echo "#define STRERROR_R_CHAR_P 1" >>confdefs.h
7668
7669 fi
7670
7671
7672 XGETTEXT_EXTRA_OPTIONS=
7673
7674
7675
7676
7677
7678 GNULIB_CREAT=0;
7679 GNULIB_FCNTL=0;
7680 GNULIB_NONBLOCKING=0;
7681 GNULIB_OPEN=0;
7682 GNULIB_OPENAT=0;
7683 HAVE_FCNTL=1;
7684 HAVE_OPENAT=1;
7685 REPLACE_CREAT=0;
7686 REPLACE_FCNTL=0;
7687 REPLACE_OPEN=0;
7688 REPLACE_OPENAT=0;
7689
7690
7691
7692
7693
7694
7695
7696
7697
7698
7699
7700
7701 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fcntl.h" >&5
7702 $as_echo_n "checking for working fcntl.h... " >&6; }
7703 if ${gl_cv_header_working_fcntl_h+:} false; then :
7704 $as_echo_n "(cached) " >&6
7705 else
7706 if test "$cross_compiling" = yes; then :
7707 case "$host_os" in
7708 # Guess 'no' on native Windows.
7709 mingw*) gl_cv_header_working_fcntl_h='no' ;;
7710 *) gl_cv_header_working_fcntl_h=cross-compiling ;;
7711 esac
7712
7713 else
7714 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7715 /* end confdefs.h. */
7716 #include <sys/types.h>
7717 #include <sys/stat.h>
7718 #if HAVE_UNISTD_H
7719 # include <unistd.h>
7720 #else /* on Windows with MSVC */
7721 # include <io.h>
7722 # include <stdlib.h>
7723 # defined sleep(n) _sleep ((n) * 1000)
7724 #endif
7725 #include <fcntl.h>
7726 #ifndef O_NOATIME
7727 #define O_NOATIME 0
7728 #endif
7729 #ifndef O_NOFOLLOW
7730 #define O_NOFOLLOW 0
7731 #endif
7732 static int const constants[] =
7733 {
7734 O_CREAT, O_EXCL, O_NOCTTY, O_TRUNC, O_APPEND,
7735 O_NONBLOCK, O_SYNC, O_ACCMODE, O_RDONLY, O_RDWR, O_WRONLY
7736 };
7737
7738 int
7739 main ()
7740 {
7741
7742 int result = !constants;
7743 #if HAVE_SYMLINK
7744 {
7745 static char const sym[] = "conftest.sym";
7746 if (symlink ("/dev/null", sym) != 0)
7747 result |= 2;
7748 else
7749 {
7750 int fd = open (sym, O_WRONLY | O_NOFOLLOW | O_CREAT, 0);
7751 if (fd >= 0)
7752 {
7753 close (fd);
7754 result |= 4;
7755 }
7756 }
7757 if (unlink (sym) != 0 || symlink (".", sym) != 0)
7758 result |= 2;
7759 else
7760 {
7761 int fd = open (sym, O_RDONLY | O_NOFOLLOW);
7762 if (fd >= 0)
7763 {
7764 close (fd);
7765 result |= 4;
7766 }
7767 }
7768 unlink (sym);
7769 }
7770 #endif
7771 {
7772 static char const file[] = "confdefs.h";
7773 int fd = open (file, O_RDONLY | O_NOATIME);
7774 if (fd < 0)
7775 result |= 8;
7776 else
7777 {
7778 struct stat st0;
7779 if (fstat (fd, &st0) != 0)
7780 result |= 16;
7781 else
7782 {
7783 char c;
7784 sleep (1);
7785 if (read (fd, &c, 1) != 1)
7786 result |= 24;
7787 else
7788 {
7789 if (close (fd) != 0)
7790 result |= 32;
7791 else
7792 {
7793 struct stat st1;
7794 if (stat (file, &st1) != 0)
7795 result |= 40;
7796 else
7797 if (st0.st_atime != st1.st_atime)
7798 result |= 64;
7799 }
7800 }
7801 }
7802 }
7803 }
7804 return result;
7805 ;
7806 return 0;
7807 }
7808 _ACEOF
7809 if ac_fn_c_try_run "$LINENO"; then :
7810 gl_cv_header_working_fcntl_h=yes
7811 else
7812 case $? in #(
7813 4) gl_cv_header_working_fcntl_h='no (bad O_NOFOLLOW)';; #(
7814 64) gl_cv_header_working_fcntl_h='no (bad O_NOATIME)';; #(
7815 68) gl_cv_header_working_fcntl_h='no (bad O_NOATIME, O_NOFOLLOW)';; #(
7816 *) gl_cv_header_working_fcntl_h='no';;
7817 esac
7818 fi
7819 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7820 conftest.$ac_objext conftest.beam conftest.$ac_ext
7821 fi
7822
7823
7824 fi
7825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_working_fcntl_h" >&5
7826 $as_echo "$gl_cv_header_working_fcntl_h" >&6; }
7827
7828 case $gl_cv_header_working_fcntl_h in #(
7829 *O_NOATIME* | no | cross-compiling) ac_val=0;; #(
7830 *) ac_val=1;;
7831 esac
7832
7833 cat >>confdefs.h <<_ACEOF
7834 #define HAVE_WORKING_O_NOATIME $ac_val
7835 _ACEOF
7836
7837
7838 case $gl_cv_header_working_fcntl_h in #(
7839 *O_NOFOLLOW* | no | cross-compiling) ac_val=0;; #(
7840 *) ac_val=1;;
7841 esac
7842
7843 cat >>confdefs.h <<_ACEOF
7844 #define HAVE_WORKING_O_NOFOLLOW $ac_val
7845 _ACEOF
7846
7847
7848 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
7849 if test "x$ac_cv_type_pid_t" = xyes; then :
7850
7851 else
7852
7853 cat >>confdefs.h <<_ACEOF
7854 #define pid_t int
7855 _ACEOF
7856
7857 fi
7858
7859 ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
7860 if test "x$ac_cv_type_mode_t" = xyes; then :
7861
7862 else
7863
7864 cat >>confdefs.h <<_ACEOF
7865 #define mode_t int
7866 _ACEOF
7867
7868 fi
7869
7870
7871 ac_fn_c_check_func "$LINENO" "eaccess" "ac_cv_func_eaccess"
7872 if test "x$ac_cv_func_eaccess" = xyes; then :
7873
7874 else
7875
7876 $as_echo "#define eaccess access" >>confdefs.h
7877
7878 fi
7879
7880
7881
7882
7883 ac_fn_c_check_decl "$LINENO" "getdtablesize" "ac_cv_have_decl_getdtablesize" "$ac_includes_default"
7884 if test "x$ac_cv_have_decl_getdtablesize" = xyes; then :
7885 ac_have_decl=1
7886 else
7887 ac_have_decl=0
7888 fi
7889
7890 cat >>confdefs.h <<_ACEOF
7891 #define HAVE_DECL_GETDTABLESIZE $ac_have_decl
7892 _ACEOF
7893
7894
7895 GNULIB__EXIT=0;
7896 GNULIB_ATOLL=0;
7897 GNULIB_CALLOC_POSIX=0;
7898 GNULIB_CANONICALIZE_FILE_NAME=0;
7899 GNULIB_GETLOADAVG=0;
7900 GNULIB_GETSUBOPT=0;
7901 GNULIB_GRANTPT=0;
7902 GNULIB_MALLOC_POSIX=0;
7903 GNULIB_MBTOWC=0;
7904 GNULIB_MKDTEMP=0;
7905 GNULIB_MKOSTEMP=0;
7906 GNULIB_MKOSTEMPS=0;
7907 GNULIB_MKSTEMP=0;
7908 GNULIB_MKSTEMPS=0;
7909 GNULIB_POSIX_OPENPT=0;
7910 GNULIB_PTSNAME=0;
7911 GNULIB_PTSNAME_R=0;
7912 GNULIB_PUTENV=0;
7913 GNULIB_QSORT_R=0;
7914 GNULIB_RANDOM=0;
7915 GNULIB_RANDOM_R=0;
7916 GNULIB_REALLOCARRAY=0;
7917 GNULIB_REALLOC_POSIX=0;
7918 GNULIB_REALPATH=0;
7919 GNULIB_RPMATCH=0;
7920 GNULIB_SECURE_GETENV=0;
7921 GNULIB_SETENV=0;
7922 GNULIB_STRTOD=0;
7923 GNULIB_STRTOLD=0;
7924 GNULIB_STRTOLL=0;
7925 GNULIB_STRTOULL=0;
7926 GNULIB_SYSTEM_POSIX=0;
7927 GNULIB_UNLOCKPT=0;
7928 GNULIB_UNSETENV=0;
7929 GNULIB_WCTOMB=0;
7930 HAVE__EXIT=1;
7931 HAVE_ATOLL=1;
7932 HAVE_CANONICALIZE_FILE_NAME=1;
7933 HAVE_DECL_GETLOADAVG=1;
7934 HAVE_GETSUBOPT=1;
7935 HAVE_GRANTPT=1;
7936 HAVE_INITSTATE=1;
7937 HAVE_DECL_INITSTATE=1;
7938 HAVE_MBTOWC=1;
7939 HAVE_MKDTEMP=1;
7940 HAVE_MKOSTEMP=1;
7941 HAVE_MKOSTEMPS=1;
7942 HAVE_MKSTEMP=1;
7943 HAVE_MKSTEMPS=1;
7944 HAVE_POSIX_OPENPT=1;
7945 HAVE_PTSNAME=1;
7946 HAVE_PTSNAME_R=1;
7947 HAVE_QSORT_R=1;
7948 HAVE_RANDOM=1;
7949 HAVE_RANDOM_H=1;
7950 HAVE_RANDOM_R=1;
7951 HAVE_REALLOCARRAY=1;
7952 HAVE_REALPATH=1;
7953 HAVE_RPMATCH=1;
7954 HAVE_SECURE_GETENV=1;
7955 HAVE_SETENV=1;
7956 HAVE_DECL_SETENV=1;
7957 HAVE_SETSTATE=1;
7958 HAVE_DECL_SETSTATE=1;
7959 HAVE_STRTOD=1;
7960 HAVE_STRTOLD=1;
7961 HAVE_STRTOLL=1;
7962 HAVE_STRTOULL=1;
7963 HAVE_STRUCT_RANDOM_DATA=1;
7964 HAVE_SYS_LOADAVG_H=0;
7965 HAVE_UNLOCKPT=1;
7966 HAVE_DECL_UNSETENV=1;
7967 REPLACE_CALLOC=0;
7968 REPLACE_CANONICALIZE_FILE_NAME=0;
7969 REPLACE_INITSTATE=0;
7970 REPLACE_MALLOC=0;
7971 REPLACE_MBTOWC=0;
7972 REPLACE_MKSTEMP=0;
7973 REPLACE_PTSNAME=0;
7974 REPLACE_PTSNAME_R=0;
7975 REPLACE_PUTENV=0;
7976 REPLACE_QSORT_R=0;
7977 REPLACE_RANDOM=0;
7978 REPLACE_RANDOM_R=0;
7979 REPLACE_REALLOC=0;
7980 REPLACE_REALPATH=0;
7981 REPLACE_SETENV=0;
7982 REPLACE_SETSTATE=0;
7983 REPLACE_STRTOD=0;
7984 REPLACE_STRTOLD=0;
7985 REPLACE_UNSETENV=0;
7986 REPLACE_WCTOMB=0;
7987
7988
7989
7990
7991
7992
7993
7994
7995 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7996 /* end confdefs.h. */
7997
7998 #ifdef _MSC_VER
7999 MicrosoftCompiler
8000 #endif
8001
8002 _ACEOF
8003 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8004 $EGREP "MicrosoftCompiler" >/dev/null 2>&1; then :
8005 gl_asmext='asm'
8006 gl_c_asm_opt='-c -Fa'
8007
8008 else
8009 gl_asmext='s'
8010 gl_c_asm_opt='-S'
8011
8012 fi
8013 rm -f conftest*
8014
8015
8016
8017
8018
8019 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host CPU and C ABI" >&5
8020 $as_echo_n "checking host CPU and C ABI... " >&6; }
8021 if ${gl_cv_host_cpu_c_abi+:} false; then :
8022 $as_echo_n "(cached) " >&6
8023 else
8024 case "$host_cpu" in
8025
8026 i[34567]86 )
8027 gl_cv_host_cpu_c_abi=i386
8028 ;;
8029
8030 x86_64 )
8031 # On x86_64 systems, the C compiler may be generating code in one of
8032 # these ABIs:
8033 # - 64-bit instruction set, 64-bit pointers, 64-bit 'long': x86_64.
8034 # - 64-bit instruction set, 64-bit pointers, 32-bit 'long': x86_64
8035 # with native Windows (mingw, MSVC).
8036 # - 64-bit instruction set, 32-bit pointers, 32-bit 'long': x86_64-x32.
8037 # - 32-bit instruction set, 32-bit pointers, 32-bit 'long': i386.
8038 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8039 /* end confdefs.h. */
8040 #if (defined __x86_64__ || defined __amd64__ \
8041 || defined _M_X64 || defined _M_AMD64)
8042 int ok;
8043 #else
8044 error fail
8045 #endif
8046
8047 _ACEOF
8048 if ac_fn_c_try_compile "$LINENO"; then :
8049 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8050 /* end confdefs.h. */
8051 #if defined __ILP32__ || defined _ILP32
8052 int ok;
8053 #else
8054 error fail
8055 #endif
8056
8057 _ACEOF
8058 if ac_fn_c_try_compile "$LINENO"; then :
8059 gl_cv_host_cpu_c_abi=x86_64-x32
8060 else
8061 gl_cv_host_cpu_c_abi=x86_64
8062 fi
8063 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8064 else
8065 gl_cv_host_cpu_c_abi=i386
8066 fi
8067 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8068 ;;
8069
8070 alphaev[4-8] | alphaev56 | alphapca5[67] | alphaev6[78] )
8071 gl_cv_host_cpu_c_abi=alpha
8072 ;;
8073
8074 arm* | aarch64 )
8075 # Assume arm with EABI.
8076 # On arm64 systems, the C compiler may be generating code in one of
8077 # these ABIs:
8078 # - aarch64 instruction set, 64-bit pointers, 64-bit 'long': arm64.
8079 # - aarch64 instruction set, 32-bit pointers, 32-bit 'long': arm64-ilp32.
8080 # - 32-bit instruction set, 32-bit pointers, 32-bit 'long': arm or armhf.
8081 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8082 /* end confdefs.h. */
8083 #ifdef __aarch64__
8084 int ok;
8085 #else
8086 error fail
8087 #endif
8088
8089 _ACEOF
8090 if ac_fn_c_try_compile "$LINENO"; then :
8091 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8092 /* end confdefs.h. */
8093 #if defined __ILP32__ || defined _ILP32
8094 int ok;
8095 #else
8096 error fail
8097 #endif
8098
8099 _ACEOF
8100 if ac_fn_c_try_compile "$LINENO"; then :
8101 gl_cv_host_cpu_c_abi=arm64-ilp32
8102 else
8103 gl_cv_host_cpu_c_abi=arm64
8104 fi
8105 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8106 else
8107 # Don't distinguish little-endian and big-endian arm, since they
8108 # don't require different machine code for simple operations and
8109 # since the user can distinguish them through the preprocessor
8110 # defines __ARMEL__ vs. __ARMEB__.
8111 # But distinguish arm which passes floating-point arguments and
8112 # return values in integer registers (r0, r1, ...) - this is
8113 # gcc -mfloat-abi=soft or gcc -mfloat-abi=softfp - from arm which
8114 # passes them in float registers (s0, s1, ...) and double registers
8115 # (d0, d1, ...) - this is gcc -mfloat-abi=hard. GCC 4.6 or newer
8116 # sets the preprocessor defines __ARM_PCS (for the first case) and
8117 # __ARM_PCS_VFP (for the second case), but older GCC does not.
8118 echo 'double ddd; void func (double dd) { ddd = dd; }' > conftest.c
8119 # Look for a reference to the register d0 in the .s file.
8120 { ac_try='${CC-cc} $CFLAGS $CPPFLAGS $gl_c_asm_opt conftest.c'
8121 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
8122 (eval $ac_try) 2>&5
8123 ac_status=$?
8124 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8125 test $ac_status = 0; }; } >/dev/null 2>&1
8126 if LC_ALL=C grep 'd0,' conftest.$gl_asmext >/dev/null; then
8127 gl_cv_host_cpu_c_abi=armhf
8128 else
8129 gl_cv_host_cpu_c_abi=arm
8130 fi
8131 rm -f conftest*
8132
8133 fi
8134 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8135 ;;
8136
8137 hppa1.0 | hppa1.1 | hppa2.0* | hppa64 )
8138 # On hppa, the C compiler may be generating 32-bit code or 64-bit
8139 # code. In the latter case, it defines _LP64 and __LP64__.
8140 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8141 /* end confdefs.h. */
8142 #ifdef __LP64__
8143 int ok;
8144 #else
8145 error fail
8146 #endif
8147
8148 _ACEOF
8149 if ac_fn_c_try_compile "$LINENO"; then :
8150 gl_cv_host_cpu_c_abi=hppa64
8151 else
8152 gl_cv_host_cpu_c_abi=hppa
8153 fi
8154 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8155 ;;
8156
8157 ia64* )
8158 # On ia64 on HP-UX, the C compiler may be generating 64-bit code or
8159 # 32-bit code. In the latter case, it defines _ILP32.
8160 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8161 /* end confdefs.h. */
8162 #ifdef _ILP32
8163 int ok;
8164 #else
8165 error fail
8166 #endif
8167
8168 _ACEOF
8169 if ac_fn_c_try_compile "$LINENO"; then :
8170 gl_cv_host_cpu_c_abi=ia64-ilp32
8171 else
8172 gl_cv_host_cpu_c_abi=ia64
8173 fi
8174 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8175 ;;
8176
8177 mips* )
8178 # We should also check for (_MIPS_SZPTR == 64), but gcc keeps this
8179 # at 32.
8180 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8181 /* end confdefs.h. */
8182 #if defined _MIPS_SZLONG && (_MIPS_SZLONG == 64)
8183 int ok;
8184 #else
8185 error fail
8186 #endif
8187
8188 _ACEOF
8189 if ac_fn_c_try_compile "$LINENO"; then :
8190 gl_cv_host_cpu_c_abi=mips64
8191 else
8192 # In the n32 ABI, _ABIN32 is defined, _ABIO32 is not defined (but
8193 # may later get defined by <sgidefs.h>), and _MIPS_SIM == _ABIN32.
8194 # In the 32 ABI, _ABIO32 is defined, _ABIN32 is not defined (but
8195 # may later get defined by <sgidefs.h>), and _MIPS_SIM == _ABIO32.
8196 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8197 /* end confdefs.h. */
8198 #if (_MIPS_SIM == _ABIN32)
8199 int ok;
8200 #else
8201 error fail
8202 #endif
8203
8204 _ACEOF
8205 if ac_fn_c_try_compile "$LINENO"; then :
8206 gl_cv_host_cpu_c_abi=mipsn32
8207 else
8208 gl_cv_host_cpu_c_abi=mips
8209 fi
8210 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8211 fi
8212 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8213 ;;
8214
8215 powerpc* )
8216 # Different ABIs are in use on AIX vs. Mac OS X vs. Linux,*BSD.
8217 # No need to distinguish them here; the caller may distinguish
8218 # them based on the OS.
8219 # On powerpc64 systems, the C compiler may still be generating
8220 # 32-bit code. And on powerpc-ibm-aix systems, the C compiler may
8221 # be generating 64-bit code.
8222 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8223 /* end confdefs.h. */
8224 #if defined __powerpc64__ || defined _ARCH_PPC64
8225 int ok;
8226 #else
8227 error fail
8228 #endif
8229
8230 _ACEOF
8231 if ac_fn_c_try_compile "$LINENO"; then :
8232 # On powerpc64, there are two ABIs on Linux: The AIX compatible
8233 # one and the ELFv2 one. The latter defines _CALL_ELF=2.
8234 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8235 /* end confdefs.h. */
8236 #if defined _CALL_ELF && _CALL_ELF == 2
8237 int ok;
8238 #else
8239 error fail
8240 #endif
8241
8242 _ACEOF
8243 if ac_fn_c_try_compile "$LINENO"; then :
8244 gl_cv_host_cpu_c_abi=powerpc64-elfv2
8245 else
8246 gl_cv_host_cpu_c_abi=powerpc64
8247 fi
8248 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8249
8250 else
8251 gl_cv_host_cpu_c_abi=powerpc
8252 fi
8253 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8254 ;;
8255
8256 rs6000 )
8257 gl_cv_host_cpu_c_abi=powerpc
8258 ;;
8259
8260 riscv32 | riscv64 )
8261 # There are 2 architectures (with variants): rv32* and rv64*.
8262 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8263 /* end confdefs.h. */
8264 #if __riscv_xlen == 64
8265 int ok;
8266 #else
8267 error fail
8268 #endif
8269
8270 _ACEOF
8271 if ac_fn_c_try_compile "$LINENO"; then :
8272 cpu=riscv64
8273 else
8274 cpu=riscv32
8275 fi
8276 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8277 # There are 6 ABIs: ilp32, ilp32f, ilp32d, lp64, lp64f, lp64d.
8278 # Size of 'long' and 'void *':
8279 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8280 /* end confdefs.h. */
8281 #if defined __LP64__
8282 int ok;
8283 #else
8284 error fail
8285 #endif
8286
8287 _ACEOF
8288 if ac_fn_c_try_compile "$LINENO"; then :
8289 main_abi=lp64
8290 else
8291 main_abi=ilp32
8292 fi
8293 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8294 # Float ABIs:
8295 # __riscv_float_abi_double:
8296 # 'float' and 'double' are passed in floating-point registers.
8297 # __riscv_float_abi_single:
8298 # 'float' are passed in floating-point registers.
8299 # __riscv_float_abi_soft:
8300 # No values are passed in floating-point registers.
8301 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8302 /* end confdefs.h. */
8303 #if defined __riscv_float_abi_double
8304 int ok;
8305 #else
8306 error fail
8307 #endif
8308
8309 _ACEOF
8310 if ac_fn_c_try_compile "$LINENO"; then :
8311 float_abi=d
8312 else
8313 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8314 /* end confdefs.h. */
8315 #if defined __riscv_float_abi_single
8316 int ok;
8317 #else
8318 error fail
8319 #endif
8320
8321 _ACEOF
8322 if ac_fn_c_try_compile "$LINENO"; then :
8323 float_abi=f
8324 else
8325 float_abi=''
8326 fi
8327 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8328
8329 fi
8330 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8331 gl_cv_host_cpu_c_abi="${cpu}-${main_abi}${float_abi}"
8332 ;;
8333
8334 s390* )
8335 # On s390x, the C compiler may be generating 64-bit (= s390x) code
8336 # or 31-bit (= s390) code.
8337 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8338 /* end confdefs.h. */
8339 #if defined __LP64__ || defined __s390x__
8340 int ok;
8341 #else
8342 error fail
8343 #endif
8344
8345 _ACEOF
8346 if ac_fn_c_try_compile "$LINENO"; then :
8347 gl_cv_host_cpu_c_abi=s390x
8348 else
8349 gl_cv_host_cpu_c_abi=s390
8350 fi
8351 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8352 ;;
8353
8354 sparc | sparc64 )
8355 # UltraSPARCs running Linux have `uname -m` = "sparc64", but the
8356 # C compiler still generates 32-bit code.
8357 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8358 /* end confdefs.h. */
8359 #if defined __sparcv9 || defined __arch64__
8360 int ok;
8361 #else
8362 error fail
8363 #endif
8364
8365 _ACEOF
8366 if ac_fn_c_try_compile "$LINENO"; then :
8367 gl_cv_host_cpu_c_abi=sparc64
8368 else
8369 gl_cv_host_cpu_c_abi=sparc
8370 fi
8371 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8372 ;;
8373
8374 *)
8375 gl_cv_host_cpu_c_abi="$host_cpu"
8376 ;;
8377 esac
8378
8379 fi
8380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_host_cpu_c_abi" >&5
8381 $as_echo "$gl_cv_host_cpu_c_abi" >&6; }
8382
8383 HOST_CPU=`echo "$gl_cv_host_cpu_c_abi" | sed -e 's/-.*//'`
8384 HOST_CPU_C_ABI="$gl_cv_host_cpu_c_abi"
8385
8386
8387
8388 # This was
8389 # AC_DEFINE_UNQUOTED([__${HOST_CPU}__])
8390 # AC_DEFINE_UNQUOTED([__${HOST_CPU_C_ABI}__])
8391 # earlier, but KAI C++ 3.2d doesn't like this.
8392 sed -e 's/-/_/g' >> confdefs.h <<EOF
8393 #ifndef __${HOST_CPU}__
8394 #define __${HOST_CPU}__ 1
8395 #endif
8396 #ifndef __${HOST_CPU_C_ABI}__
8397 #define __${HOST_CPU_C_ABI}__ 1
8398 #endif
8399 EOF
8400
8401
8402
8403
8404
8405
8406
8407
8408
8409
8410
8411
8412
8413
8414
8415 if test $gl_cv_have_include_next = yes; then
8416 gl_cv_next_limits_h='<'limits.h'>'
8417 else
8418 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <limits.h>" >&5
8419 $as_echo_n "checking absolute name of <limits.h>... " >&6; }
8420 if ${gl_cv_next_limits_h+:} false; then :
8421 $as_echo_n "(cached) " >&6
8422 else
8423
8424 if test $ac_cv_header_limits_h = yes; then
8425
8426
8427
8428
8429 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8430 /* end confdefs.h. */
8431 #include <limits.h>
8432 _ACEOF
8433 case "$host_os" in
8434 aix*) gl_absname_cpp="$ac_cpp -C" ;;
8435 *) gl_absname_cpp="$ac_cpp" ;;
8436 esac
8437
8438 case "$host_os" in
8439 mingw*)
8440 gl_dirsep_regex='[/\\]'
8441 ;;
8442 *)
8443 gl_dirsep_regex='\/'
8444 ;;
8445 esac
8446 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
8447 gl_header_literal_regex=`echo 'limits.h' \
8448 | sed -e "$gl_make_literal_regex_sed"`
8449 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
8450 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
8451 s|^/[^/]|//&|
8452 p
8453 q
8454 }'
8455
8456 gl_cv_absolute_limits_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
8457 sed -n "$gl_absolute_header_sed"`
8458
8459 gl_header=$gl_cv_absolute_limits_h
8460 gl_cv_next_limits_h='"'$gl_header'"'
8461 else
8462 gl_cv_next_limits_h='<'limits.h'>'
8463 fi
8464
8465
8466 fi
8467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_limits_h" >&5
8468 $as_echo "$gl_cv_next_limits_h" >&6; }
8469 fi
8470 NEXT_LIMITS_H=$gl_cv_next_limits_h
8471
8472 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
8473 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
8474 gl_next_as_first_directive='<'limits.h'>'
8475 else
8476 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
8477 gl_next_as_first_directive=$gl_cv_next_limits_h
8478 fi
8479 NEXT_AS_FIRST_DIRECTIVE_LIMITS_H=$gl_next_as_first_directive
8480
8481
8482
8483
8484
8485 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether limits.h has LLONG_MAX, WORD_BIT, ULLONG_WIDTH etc." >&5
8486 $as_echo_n "checking whether limits.h has LLONG_MAX, WORD_BIT, ULLONG_WIDTH etc.... " >&6; }
8487 if ${gl_cv_header_limits_width+:} false; then :
8488 $as_echo_n "(cached) " >&6
8489 else
8490 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8491 /* end confdefs.h. */
8492 #ifndef __STDC_WANT_IEC_60559_BFP_EXT__
8493 #define __STDC_WANT_IEC_60559_BFP_EXT__ 1
8494 #endif
8495 #include <limits.h>
8496 long long llm = LLONG_MAX;
8497 int wb = WORD_BIT;
8498 int ullw = ULLONG_WIDTH;
8499
8500 int
8501 main ()
8502 {
8503
8504 ;
8505 return 0;
8506 }
8507 _ACEOF
8508 if ac_fn_c_try_compile "$LINENO"; then :
8509 gl_cv_header_limits_width=yes
8510 else
8511 gl_cv_header_limits_width=no
8512 fi
8513 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8514 fi
8515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_limits_width" >&5
8516 $as_echo "$gl_cv_header_limits_width" >&6; }
8517 if test "$gl_cv_header_limits_width" = yes; then
8518 LIMITS_H=
8519 else
8520 LIMITS_H=limits.h
8521 fi
8522
8523 if test -n "$LIMITS_H"; then
8524 GL_GENERATE_LIMITS_H_TRUE=
8525 GL_GENERATE_LIMITS_H_FALSE='#'
8526 else
8527 GL_GENERATE_LIMITS_H_TRUE='#'
8528 GL_GENERATE_LIMITS_H_FALSE=
8529 fi
8530
8531
8532
8533 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether malloc, realloc, calloc are POSIX compliant" >&5
8534 $as_echo_n "checking whether malloc, realloc, calloc are POSIX compliant... " >&6; }
8535 if ${gl_cv_func_malloc_posix+:} false; then :
8536 $as_echo_n "(cached) " >&6
8537 else
8538
8539 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8540 /* end confdefs.h. */
8541
8542 int
8543 main ()
8544 {
8545 #if defined _WIN32 && ! defined __CYGWIN__
8546 choke me
8547 #endif
8548
8549 ;
8550 return 0;
8551 }
8552 _ACEOF
8553 if ac_fn_c_try_compile "$LINENO"; then :
8554 gl_cv_func_malloc_posix=yes
8555 else
8556 gl_cv_func_malloc_posix=no
8557 fi
8558 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8559
8560 fi
8561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_malloc_posix" >&5
8562 $as_echo "$gl_cv_func_malloc_posix" >&6; }
8563
8564
8565
8566
8567
8568 gl_cv_c_multiarch=no
8569 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8570 /* end confdefs.h. */
8571 #ifndef __APPLE_CC__
8572 not a universal capable compiler
8573 #endif
8574 typedef int dummy;
8575
8576 _ACEOF
8577 if ac_fn_c_try_compile "$LINENO"; then :
8578
8579 arch=
8580 prev=
8581 for word in ${CC} ${CFLAGS} ${CPPFLAGS} ${LDFLAGS}; do
8582 if test -n "$prev"; then
8583 case $word in
8584 i?86 | x86_64 | ppc | ppc64)
8585 if test -z "$arch" || test "$arch" = "$word"; then
8586 arch="$word"
8587 else
8588 gl_cv_c_multiarch=yes
8589 fi
8590 ;;
8591 esac
8592 prev=
8593 else
8594 if test "x$word" = "x-arch"; then
8595 prev=arch
8596 fi
8597 fi
8598 done
8599
8600 fi
8601 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8602 if test $gl_cv_c_multiarch = yes; then
8603 APPLE_UNIVERSAL_BUILD=1
8604 else
8605 APPLE_UNIVERSAL_BUILD=0
8606 fi
8607
8608
8609 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to C99" >&5
8610 $as_echo_n "checking for stdbool.h that conforms to C99... " >&6; }
8611 if ${ac_cv_header_stdbool_h+:} false; then :
8612 $as_echo_n "(cached) " >&6
8613 else
8614 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8615 /* end confdefs.h. */
8616
8617 #include <stdbool.h>
8618
8619 #ifdef __cplusplus
8620 typedef bool Bool;
8621 #else
8622 typedef _Bool Bool;
8623 #ifndef bool
8624 "error: bool is not defined"
8625 #endif
8626 #ifndef false
8627 "error: false is not defined"
8628 #endif
8629 #if false
8630 "error: false is not 0"
8631 #endif
8632 #ifndef true
8633 "error: true is not defined"
8634 #endif
8635 #if true != 1
8636 "error: true is not 1"
8637 #endif
8638 #endif
8639
8640 #ifndef __bool_true_false_are_defined
8641 "error: __bool_true_false_are_defined is not defined"
8642 #endif
8643
8644 struct s { Bool s: 1; Bool t; bool u: 1; bool v; } s;
8645
8646 char a[true == 1 ? 1 : -1];
8647 char b[false == 0 ? 1 : -1];
8648 char c[__bool_true_false_are_defined == 1 ? 1 : -1];
8649 char d[(bool) 0.5 == true ? 1 : -1];
8650 /* See body of main program for 'e'. */
8651 char f[(Bool) 0.0 == false ? 1 : -1];
8652 char g[true];
8653 char h[sizeof (Bool)];
8654 char i[sizeof s.t];
8655 enum { j = false, k = true, l = false * true, m = true * 256 };
8656 /* The following fails for
8657 HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */
8658 Bool n[m];
8659 char o[sizeof n == m * sizeof n[0] ? 1 : -1];
8660 char p[-1 - (Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
8661 /* Catch a bug in an HP-UX C compiler. See
8662 https://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
8663 https://lists.gnu.org/r/bug-coreutils/2005-11/msg00161.html
8664 */
8665 Bool q = true;
8666 Bool *pq = &q;
8667 bool *qq = &q;
8668
8669 int
8670 main ()
8671 {
8672
8673 bool e = &s;
8674 *pq |= q; *pq |= ! q;
8675 *qq |= q; *qq |= ! q;
8676 /* Refer to every declared value, to avoid compiler optimizations. */
8677 return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
8678 + !m + !n + !o + !p + !q + !pq + !qq);
8679
8680 ;
8681 return 0;
8682 }
8683 _ACEOF
8684 if ac_fn_c_try_compile "$LINENO"; then :
8685 ac_cv_header_stdbool_h=yes
8686 else
8687 ac_cv_header_stdbool_h=no
8688 fi
8689 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8690 fi
8691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdbool_h" >&5
8692 $as_echo "$ac_cv_header_stdbool_h" >&6; }
8693 ac_fn_c_check_type "$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default"
8694 if test "x$ac_cv_type__Bool" = xyes; then :
8695
8696 cat >>confdefs.h <<_ACEOF
8697 #define HAVE__BOOL 1
8698 _ACEOF
8699
8700
8701 fi
8702
8703
8704
8705 REPLACE_NULL=0;
8706 HAVE_MAX_ALIGN_T=1;
8707 HAVE_WCHAR_T=1;
8708
8709
8710 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wchar_t" >&5
8711 $as_echo_n "checking for wchar_t... " >&6; }
8712 if ${gt_cv_c_wchar_t+:} false; then :
8713 $as_echo_n "(cached) " >&6
8714 else
8715 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8716 /* end confdefs.h. */
8717 #include <stddef.h>
8718 wchar_t foo = (wchar_t)'\0';
8719 int
8720 main ()
8721 {
8722
8723 ;
8724 return 0;
8725 }
8726 _ACEOF
8727 if ac_fn_c_try_compile "$LINENO"; then :
8728 gt_cv_c_wchar_t=yes
8729 else
8730 gt_cv_c_wchar_t=no
8731 fi
8732 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8733 fi
8734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wchar_t" >&5
8735 $as_echo "$gt_cv_c_wchar_t" >&6; }
8736 if test $gt_cv_c_wchar_t = yes; then
8737
8738 $as_echo "#define HAVE_WCHAR_T 1" >>confdefs.h
8739
8740 fi
8741
8742
8743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wint_t" >&5
8744 $as_echo_n "checking for wint_t... " >&6; }
8745 if ${gt_cv_c_wint_t+:} false; then :
8746 $as_echo_n "(cached) " >&6
8747 else
8748 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8749 /* end confdefs.h. */
8750
8751 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
8752 <wchar.h>.
8753 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be included
8754 before <wchar.h>. */
8755 #include <stddef.h>
8756 #include <stdio.h>
8757 #include <time.h>
8758 #include <wchar.h>
8759 wint_t foo = (wchar_t)'\0';
8760 int
8761 main ()
8762 {
8763
8764 ;
8765 return 0;
8766 }
8767 _ACEOF
8768 if ac_fn_c_try_compile "$LINENO"; then :
8769 gt_cv_c_wint_t=yes
8770 else
8771 gt_cv_c_wint_t=no
8772 fi
8773 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8774 fi
8775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wint_t" >&5
8776 $as_echo "$gt_cv_c_wint_t" >&6; }
8777 if test $gt_cv_c_wint_t = yes; then
8778
8779 $as_echo "#define HAVE_WINT_T 1" >>confdefs.h
8780
8781
8782 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether wint_t is too small" >&5
8783 $as_echo_n "checking whether wint_t is too small... " >&6; }
8784 if ${gl_cv_type_wint_t_too_small+:} false; then :
8785 $as_echo_n "(cached) " >&6
8786 else
8787 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8788 /* end confdefs.h. */
8789
8790 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
8791 <wchar.h>.
8792 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
8793 included before <wchar.h>. */
8794 #if !(defined __GLIBC__ && !defined __UCLIBC__)
8795 # include <stddef.h>
8796 # include <stdio.h>
8797 # include <time.h>
8798 #endif
8799 #include <wchar.h>
8800 int verify[sizeof (wint_t) < sizeof (int) ? -1 : 1];
8801
8802 int
8803 main ()
8804 {
8805
8806 ;
8807 return 0;
8808 }
8809 _ACEOF
8810 if ac_fn_c_try_compile "$LINENO"; then :
8811 gl_cv_type_wint_t_too_small=no
8812 else
8813 gl_cv_type_wint_t_too_small=yes
8814 fi
8815 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8816 fi
8817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_type_wint_t_too_small" >&5
8818 $as_echo "$gl_cv_type_wint_t_too_small" >&6; }
8819 if test $gl_cv_type_wint_t_too_small = yes; then
8820 GNULIB_OVERRIDES_WINT_T=1
8821 else
8822 GNULIB_OVERRIDES_WINT_T=0
8823 fi
8824 else
8825 GNULIB_OVERRIDES_WINT_T=0
8826 fi
8827
8828
8829
8830
8831
8832
8833
8834
8835
8836
8837
8838
8839 $as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
8840
8841
8842 $as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
8843
8844
8845
8846 if test $ac_cv_header_wchar_h = yes; then
8847 HAVE_WCHAR_H=1
8848 else
8849 HAVE_WCHAR_H=0
8850 fi
8851
8852
8853 if test $ac_cv_header_inttypes_h = yes; then
8854 HAVE_INTTYPES_H=1
8855 else
8856 HAVE_INTTYPES_H=0
8857 fi
8858
8859
8860 if test $ac_cv_header_sys_types_h = yes; then
8861 HAVE_SYS_TYPES_H=1
8862 else
8863 HAVE_SYS_TYPES_H=0
8864 fi
8865
8866
8867
8868
8869
8870
8871
8872
8873
8874
8875
8876 if test $gl_cv_have_include_next = yes; then
8877 gl_cv_next_stdint_h='<'stdint.h'>'
8878 else
8879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdint.h>" >&5
8880 $as_echo_n "checking absolute name of <stdint.h>... " >&6; }
8881 if ${gl_cv_next_stdint_h+:} false; then :
8882 $as_echo_n "(cached) " >&6
8883 else
8884
8885 if test $ac_cv_header_stdint_h = yes; then
8886
8887
8888
8889
8890 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8891 /* end confdefs.h. */
8892 #include <stdint.h>
8893 _ACEOF
8894 case "$host_os" in
8895 aix*) gl_absname_cpp="$ac_cpp -C" ;;
8896 *) gl_absname_cpp="$ac_cpp" ;;
8897 esac
8898
8899 case "$host_os" in
8900 mingw*)
8901 gl_dirsep_regex='[/\\]'
8902 ;;
8903 *)
8904 gl_dirsep_regex='\/'
8905 ;;
8906 esac
8907 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
8908 gl_header_literal_regex=`echo 'stdint.h' \
8909 | sed -e "$gl_make_literal_regex_sed"`
8910 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
8911 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
8912 s|^/[^/]|//&|
8913 p
8914 q
8915 }'
8916
8917 gl_cv_absolute_stdint_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
8918 sed -n "$gl_absolute_header_sed"`
8919
8920 gl_header=$gl_cv_absolute_stdint_h
8921 gl_cv_next_stdint_h='"'$gl_header'"'
8922 else
8923 gl_cv_next_stdint_h='<'stdint.h'>'
8924 fi
8925
8926
8927 fi
8928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdint_h" >&5
8929 $as_echo "$gl_cv_next_stdint_h" >&6; }
8930 fi
8931 NEXT_STDINT_H=$gl_cv_next_stdint_h
8932
8933 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
8934 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
8935 gl_next_as_first_directive='<'stdint.h'>'
8936 else
8937 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
8938 gl_next_as_first_directive=$gl_cv_next_stdint_h
8939 fi
8940 NEXT_AS_FIRST_DIRECTIVE_STDINT_H=$gl_next_as_first_directive
8941
8942
8943
8944
8945 if test $ac_cv_header_stdint_h = yes; then
8946 HAVE_STDINT_H=1
8947 else
8948 HAVE_STDINT_H=0
8949 fi
8950
8951
8952 if test $ac_cv_header_stdint_h = yes; then
8953 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stdint.h conforms to C99" >&5
8954 $as_echo_n "checking whether stdint.h conforms to C99... " >&6; }
8955 if ${gl_cv_header_working_stdint_h+:} false; then :
8956 $as_echo_n "(cached) " >&6
8957 else
8958 gl_cv_header_working_stdint_h=no
8959 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8960 /* end confdefs.h. */
8961
8962
8963 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */
8964 #define __STDC_CONSTANT_MACROS 1
8965 #define __STDC_LIMIT_MACROS 1
8966 #include <stdint.h>
8967 /* Dragonfly defines WCHAR_MIN, WCHAR_MAX only in <wchar.h>. */
8968 #if !(defined WCHAR_MIN && defined WCHAR_MAX)
8969 #error "WCHAR_MIN, WCHAR_MAX not defined in <stdint.h>"
8970 #endif
8971
8972
8973 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
8974 included before <wchar.h>. */
8975 #include <stddef.h>
8976 #include <signal.h>
8977 #if HAVE_WCHAR_H
8978 # include <stdio.h>
8979 # include <time.h>
8980 # include <wchar.h>
8981 #endif
8982
8983
8984 #ifdef INT8_MAX
8985 int8_t a1 = INT8_MAX;
8986 int8_t a1min = INT8_MIN;
8987 #endif
8988 #ifdef INT16_MAX
8989 int16_t a2 = INT16_MAX;
8990 int16_t a2min = INT16_MIN;
8991 #endif
8992 #ifdef INT32_MAX
8993 int32_t a3 = INT32_MAX;
8994 int32_t a3min = INT32_MIN;
8995 #endif
8996 #ifdef INT64_MAX
8997 int64_t a4 = INT64_MAX;
8998 int64_t a4min = INT64_MIN;
8999 #endif
9000 #ifdef UINT8_MAX
9001 uint8_t b1 = UINT8_MAX;
9002 #else
9003 typedef int b1[(unsigned char) -1 != 255 ? 1 : -1];
9004 #endif
9005 #ifdef UINT16_MAX
9006 uint16_t b2 = UINT16_MAX;
9007 #endif
9008 #ifdef UINT32_MAX
9009 uint32_t b3 = UINT32_MAX;
9010 #endif
9011 #ifdef UINT64_MAX
9012 uint64_t b4 = UINT64_MAX;
9013 #endif
9014 int_least8_t c1 = INT8_C (0x7f);
9015 int_least8_t c1max = INT_LEAST8_MAX;
9016 int_least8_t c1min = INT_LEAST8_MIN;
9017 int_least16_t c2 = INT16_C (0x7fff);
9018 int_least16_t c2max = INT_LEAST16_MAX;
9019 int_least16_t c2min = INT_LEAST16_MIN;
9020 int_least32_t c3 = INT32_C (0x7fffffff);
9021 int_least32_t c3max = INT_LEAST32_MAX;
9022 int_least32_t c3min = INT_LEAST32_MIN;
9023 int_least64_t c4 = INT64_C (0x7fffffffffffffff);
9024 int_least64_t c4max = INT_LEAST64_MAX;
9025 int_least64_t c4min = INT_LEAST64_MIN;
9026 uint_least8_t d1 = UINT8_C (0xff);
9027 uint_least8_t d1max = UINT_LEAST8_MAX;
9028 uint_least16_t d2 = UINT16_C (0xffff);
9029 uint_least16_t d2max = UINT_LEAST16_MAX;
9030 uint_least32_t d3 = UINT32_C (0xffffffff);
9031 uint_least32_t d3max = UINT_LEAST32_MAX;
9032 uint_least64_t d4 = UINT64_C (0xffffffffffffffff);
9033 uint_least64_t d4max = UINT_LEAST64_MAX;
9034 int_fast8_t e1 = INT_FAST8_MAX;
9035 int_fast8_t e1min = INT_FAST8_MIN;
9036 int_fast16_t e2 = INT_FAST16_MAX;
9037 int_fast16_t e2min = INT_FAST16_MIN;
9038 int_fast32_t e3 = INT_FAST32_MAX;
9039 int_fast32_t e3min = INT_FAST32_MIN;
9040 int_fast64_t e4 = INT_FAST64_MAX;
9041 int_fast64_t e4min = INT_FAST64_MIN;
9042 uint_fast8_t f1 = UINT_FAST8_MAX;
9043 uint_fast16_t f2 = UINT_FAST16_MAX;
9044 uint_fast32_t f3 = UINT_FAST32_MAX;
9045 uint_fast64_t f4 = UINT_FAST64_MAX;
9046 #ifdef INTPTR_MAX
9047 intptr_t g = INTPTR_MAX;
9048 intptr_t gmin = INTPTR_MIN;
9049 #endif
9050 #ifdef UINTPTR_MAX
9051 uintptr_t h = UINTPTR_MAX;
9052 #endif
9053 intmax_t i = INTMAX_MAX;
9054 uintmax_t j = UINTMAX_MAX;
9055
9056 /* Check that SIZE_MAX has the correct type, if possible. */
9057 #if 201112 <= __STDC_VERSION__
9058 int k = _Generic (SIZE_MAX, size_t: 0);
9059 #elif (2 <= __GNUC__ || defined __IBM__TYPEOF__ \
9060 || (0x5110 <= __SUNPRO_C && !__STDC__))
9061 extern size_t k;
9062 extern __typeof__ (SIZE_MAX) k;
9063 #endif
9064
9065 #include <limits.h> /* for CHAR_BIT */
9066 #define TYPE_MINIMUM(t) \
9067 ((t) ((t) 0 < (t) -1 ? (t) 0 : ~ TYPE_MAXIMUM (t)))
9068 #define TYPE_MAXIMUM(t) \
9069 ((t) ((t) 0 < (t) -1 \
9070 ? (t) -1 \
9071 : ((((t) 1 << (sizeof (t) * CHAR_BIT - 2)) - 1) * 2 + 1)))
9072 struct s {
9073 int check_PTRDIFF:
9074 PTRDIFF_MIN == TYPE_MINIMUM (ptrdiff_t)
9075 && PTRDIFF_MAX == TYPE_MAXIMUM (ptrdiff_t)
9076 ? 1 : -1;
9077 /* Detect bug in FreeBSD 6.0 / ia64. */
9078 int check_SIG_ATOMIC:
9079 SIG_ATOMIC_MIN == TYPE_MINIMUM (sig_atomic_t)
9080 && SIG_ATOMIC_MAX == TYPE_MAXIMUM (sig_atomic_t)
9081 ? 1 : -1;
9082 int check_SIZE: SIZE_MAX == TYPE_MAXIMUM (size_t) ? 1 : -1;
9083 int check_WCHAR:
9084 WCHAR_MIN == TYPE_MINIMUM (wchar_t)
9085 && WCHAR_MAX == TYPE_MAXIMUM (wchar_t)
9086 ? 1 : -1;
9087 /* Detect bug in mingw. */
9088 int check_WINT:
9089 WINT_MIN == TYPE_MINIMUM (wint_t)
9090 && WINT_MAX == TYPE_MAXIMUM (wint_t)
9091 ? 1 : -1;
9092
9093 /* Detect bugs in glibc 2.4 and Solaris 10 stdint.h, among others. */
9094 int check_UINT8_C:
9095 (-1 < UINT8_C (0)) == (-1 < (uint_least8_t) 0) ? 1 : -1;
9096 int check_UINT16_C:
9097 (-1 < UINT16_C (0)) == (-1 < (uint_least16_t) 0) ? 1 : -1;
9098
9099 /* Detect bugs in OpenBSD 3.9 stdint.h. */
9100 #ifdef UINT8_MAX
9101 int check_uint8: (uint8_t) -1 == UINT8_MAX ? 1 : -1;
9102 #endif
9103 #ifdef UINT16_MAX
9104 int check_uint16: (uint16_t) -1 == UINT16_MAX ? 1 : -1;
9105 #endif
9106 #ifdef UINT32_MAX
9107 int check_uint32: (uint32_t) -1 == UINT32_MAX ? 1 : -1;
9108 #endif
9109 #ifdef UINT64_MAX
9110 int check_uint64: (uint64_t) -1 == UINT64_MAX ? 1 : -1;
9111 #endif
9112 int check_uint_least8: (uint_least8_t) -1 == UINT_LEAST8_MAX ? 1 : -1;
9113 int check_uint_least16: (uint_least16_t) -1 == UINT_LEAST16_MAX ? 1 : -1;
9114 int check_uint_least32: (uint_least32_t) -1 == UINT_LEAST32_MAX ? 1 : -1;
9115 int check_uint_least64: (uint_least64_t) -1 == UINT_LEAST64_MAX ? 1 : -1;
9116 int check_uint_fast8: (uint_fast8_t) -1 == UINT_FAST8_MAX ? 1 : -1;
9117 int check_uint_fast16: (uint_fast16_t) -1 == UINT_FAST16_MAX ? 1 : -1;
9118 int check_uint_fast32: (uint_fast32_t) -1 == UINT_FAST32_MAX ? 1 : -1;
9119 int check_uint_fast64: (uint_fast64_t) -1 == UINT_FAST64_MAX ? 1 : -1;
9120 int check_uintptr: (uintptr_t) -1 == UINTPTR_MAX ? 1 : -1;
9121 int check_uintmax: (uintmax_t) -1 == UINTMAX_MAX ? 1 : -1;
9122 int check_size: (size_t) -1 == SIZE_MAX ? 1 : -1;
9123 };
9124
9125 int
9126 main ()
9127 {
9128
9129 ;
9130 return 0;
9131 }
9132 _ACEOF
9133 if ac_fn_c_try_compile "$LINENO"; then :
9134 if test "$cross_compiling" = yes; then :
9135 case "$host_os" in
9136 # Guess yes on native Windows.
9137 mingw*) gl_cv_header_working_stdint_h="guessing yes" ;;
9138 # In general, assume it works.
9139 *) gl_cv_header_working_stdint_h="guessing yes" ;;
9140 esac
9141
9142 else
9143 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9144 /* end confdefs.h. */
9145
9146
9147 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */
9148 #define __STDC_CONSTANT_MACROS 1
9149 #define __STDC_LIMIT_MACROS 1
9150 #include <stdint.h>
9151
9152
9153 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
9154 included before <wchar.h>. */
9155 #include <stddef.h>
9156 #include <signal.h>
9157 #if HAVE_WCHAR_H
9158 # include <stdio.h>
9159 # include <time.h>
9160 # include <wchar.h>
9161 #endif
9162
9163
9164 #include <stdio.h>
9165 #include <string.h>
9166 #define MVAL(macro) MVAL1(macro)
9167 #define MVAL1(expression) #expression
9168 static const char *macro_values[] =
9169 {
9170 #ifdef INT8_MAX
9171 MVAL (INT8_MAX),
9172 #endif
9173 #ifdef INT16_MAX
9174 MVAL (INT16_MAX),
9175 #endif
9176 #ifdef INT32_MAX
9177 MVAL (INT32_MAX),
9178 #endif
9179 #ifdef INT64_MAX
9180 MVAL (INT64_MAX),
9181 #endif
9182 #ifdef UINT8_MAX
9183 MVAL (UINT8_MAX),
9184 #endif
9185 #ifdef UINT16_MAX
9186 MVAL (UINT16_MAX),
9187 #endif
9188 #ifdef UINT32_MAX
9189 MVAL (UINT32_MAX),
9190 #endif
9191 #ifdef UINT64_MAX
9192 MVAL (UINT64_MAX),
9193 #endif
9194 NULL
9195 };
9196
9197 int
9198 main ()
9199 {
9200
9201 const char **mv;
9202 for (mv = macro_values; *mv != NULL; mv++)
9203 {
9204 const char *value = *mv;
9205 /* Test whether it looks like a cast expression. */
9206 if (strncmp (value, "((unsigned int)"/*)*/, 15) == 0
9207 || strncmp (value, "((unsigned short)"/*)*/, 17) == 0
9208 || strncmp (value, "((unsigned char)"/*)*/, 16) == 0
9209 || strncmp (value, "((int)"/*)*/, 6) == 0
9210 || strncmp (value, "((signed short)"/*)*/, 15) == 0
9211 || strncmp (value, "((signed char)"/*)*/, 14) == 0)
9212 return mv - macro_values + 1;
9213 }
9214 return 0;
9215
9216 ;
9217 return 0;
9218 }
9219 _ACEOF
9220 if ac_fn_c_try_run "$LINENO"; then :
9221 gl_cv_header_working_stdint_h=yes
9222 fi
9223 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9224 conftest.$ac_objext conftest.beam conftest.$ac_ext
9225 fi
9226
9227
9228 fi
9229 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9230
9231 fi
9232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_working_stdint_h" >&5
9233 $as_echo "$gl_cv_header_working_stdint_h" >&6; }
9234 fi
9235
9236 HAVE_C99_STDINT_H=0
9237 HAVE_SYS_BITYPES_H=0
9238 HAVE_SYS_INTTYPES_H=0
9239 STDINT_H=stdint.h
9240 case "$gl_cv_header_working_stdint_h" in
9241 *yes)
9242 HAVE_C99_STDINT_H=1
9243 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stdint.h predates C++11" >&5
9244 $as_echo_n "checking whether stdint.h predates C++11... " >&6; }
9245 if ${gl_cv_header_stdint_predates_cxx11_h+:} false; then :
9246 $as_echo_n "(cached) " >&6
9247 else
9248 gl_cv_header_stdint_predates_cxx11_h=yes
9249 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9250 /* end confdefs.h. */
9251
9252
9253 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */
9254 #include <stdint.h>
9255
9256
9257 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
9258 included before <wchar.h>. */
9259 #include <stddef.h>
9260 #include <signal.h>
9261 #if HAVE_WCHAR_H
9262 # include <stdio.h>
9263 # include <time.h>
9264 # include <wchar.h>
9265 #endif
9266
9267
9268 intmax_t im = INTMAX_MAX;
9269 int32_t i32 = INT32_C (0x7fffffff);
9270
9271 int
9272 main ()
9273 {
9274
9275 ;
9276 return 0;
9277 }
9278 _ACEOF
9279 if ac_fn_c_try_compile "$LINENO"; then :
9280 gl_cv_header_stdint_predates_cxx11_h=no
9281 fi
9282 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9283 fi
9284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_stdint_predates_cxx11_h" >&5
9285 $as_echo "$gl_cv_header_stdint_predates_cxx11_h" >&6; }
9286
9287 if test "$gl_cv_header_stdint_predates_cxx11_h" = yes; then
9288
9289 $as_echo "#define __STDC_CONSTANT_MACROS 1" >>confdefs.h
9290
9291
9292 $as_echo "#define __STDC_LIMIT_MACROS 1" >>confdefs.h
9293
9294 fi
9295 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stdint.h has UINTMAX_WIDTH etc." >&5
9296 $as_echo_n "checking whether stdint.h has UINTMAX_WIDTH etc.... " >&6; }
9297 if ${gl_cv_header_stdint_width+:} false; then :
9298 $as_echo_n "(cached) " >&6
9299 else
9300 gl_cv_header_stdint_width=no
9301 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9302 /* end confdefs.h. */
9303
9304 /* Work if build is not clean. */
9305 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1
9306 #ifndef __STDC_WANT_IEC_60559_BFP_EXT__
9307 #define __STDC_WANT_IEC_60559_BFP_EXT__ 1
9308 #endif
9309 #include <stdint.h>
9310
9311 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
9312 included before <wchar.h>. */
9313 #include <stddef.h>
9314 #include <signal.h>
9315 #if HAVE_WCHAR_H
9316 # include <stdio.h>
9317 # include <time.h>
9318 # include <wchar.h>
9319 #endif
9320
9321 int iw = UINTMAX_WIDTH;
9322
9323 int
9324 main ()
9325 {
9326
9327 ;
9328 return 0;
9329 }
9330 _ACEOF
9331 if ac_fn_c_try_compile "$LINENO"; then :
9332 gl_cv_header_stdint_width=yes
9333 fi
9334 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9335 fi
9336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_stdint_width" >&5
9337 $as_echo "$gl_cv_header_stdint_width" >&6; }
9338 if test "$gl_cv_header_stdint_width" = yes; then
9339 STDINT_H=
9340 fi
9341 ;;
9342 *)
9343 for ac_header in sys/inttypes.h sys/bitypes.h
9344 do :
9345 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9346 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
9347 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
9348 cat >>confdefs.h <<_ACEOF
9349 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9350 _ACEOF
9351
9352 fi
9353
9354 done
9355
9356 if test $ac_cv_header_sys_inttypes_h = yes; then
9357 HAVE_SYS_INTTYPES_H=1
9358 fi
9359 if test $ac_cv_header_sys_bitypes_h = yes; then
9360 HAVE_SYS_BITYPES_H=1
9361 fi
9362
9363
9364 if test $APPLE_UNIVERSAL_BUILD = 0; then
9365
9366
9367 for gltype in ptrdiff_t size_t ; do
9368 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bit size of $gltype" >&5
9369 $as_echo_n "checking for bit size of $gltype... " >&6; }
9370 if eval \${gl_cv_bitsizeof_${gltype}+:} false; then :
9371 $as_echo_n "(cached) " >&6
9372 else
9373 if ac_fn_c_compute_int "$LINENO" "sizeof ($gltype) * CHAR_BIT" "result" "
9374 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
9375 included before <wchar.h>. */
9376 #include <stddef.h>
9377 #include <signal.h>
9378 #if HAVE_WCHAR_H
9379 # include <stdio.h>
9380 # include <time.h>
9381 # include <wchar.h>
9382 #endif
9383
9384 #include <limits.h>"; then :
9385
9386 else
9387 result=unknown
9388 fi
9389
9390 eval gl_cv_bitsizeof_${gltype}=\$result
9391
9392 fi
9393 eval ac_res=\$gl_cv_bitsizeof_${gltype}
9394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
9395 $as_echo "$ac_res" >&6; }
9396 eval result=\$gl_cv_bitsizeof_${gltype}
9397 if test $result = unknown; then
9398 result=0
9399 fi
9400 GLTYPE=`echo "$gltype" | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
9401 cat >>confdefs.h <<_ACEOF
9402 #define BITSIZEOF_${GLTYPE} $result
9403 _ACEOF
9404
9405 eval BITSIZEOF_${GLTYPE}=\$result
9406 done
9407
9408
9409 fi
9410
9411
9412 for gltype in sig_atomic_t wchar_t wint_t ; do
9413 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bit size of $gltype" >&5
9414 $as_echo_n "checking for bit size of $gltype... " >&6; }
9415 if eval \${gl_cv_bitsizeof_${gltype}+:} false; then :
9416 $as_echo_n "(cached) " >&6
9417 else
9418 if ac_fn_c_compute_int "$LINENO" "sizeof ($gltype) * CHAR_BIT" "result" "
9419 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
9420 included before <wchar.h>. */
9421 #include <stddef.h>
9422 #include <signal.h>
9423 #if HAVE_WCHAR_H
9424 # include <stdio.h>
9425 # include <time.h>
9426 # include <wchar.h>
9427 #endif
9428
9429 #include <limits.h>"; then :
9430
9431 else
9432 result=unknown
9433 fi
9434
9435 eval gl_cv_bitsizeof_${gltype}=\$result
9436
9437 fi
9438 eval ac_res=\$gl_cv_bitsizeof_${gltype}
9439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
9440 $as_echo "$ac_res" >&6; }
9441 eval result=\$gl_cv_bitsizeof_${gltype}
9442 if test $result = unknown; then
9443 result=0
9444 fi
9445 GLTYPE=`echo "$gltype" | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
9446 cat >>confdefs.h <<_ACEOF
9447 #define BITSIZEOF_${GLTYPE} $result
9448 _ACEOF
9449
9450 eval BITSIZEOF_${GLTYPE}=\$result
9451 done
9452
9453
9454
9455
9456 for gltype in sig_atomic_t wchar_t wint_t ; do
9457 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gltype is signed" >&5
9458 $as_echo_n "checking whether $gltype is signed... " >&6; }
9459 if eval \${gl_cv_type_${gltype}_signed+:} false; then :
9460 $as_echo_n "(cached) " >&6
9461 else
9462 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9463 /* end confdefs.h. */
9464
9465 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
9466 included before <wchar.h>. */
9467 #include <stddef.h>
9468 #include <signal.h>
9469 #if HAVE_WCHAR_H
9470 # include <stdio.h>
9471 # include <time.h>
9472 # include <wchar.h>
9473 #endif
9474
9475 int verify[2 * (($gltype) -1 < ($gltype) 0) - 1];
9476 int
9477 main ()
9478 {
9479
9480 ;
9481 return 0;
9482 }
9483 _ACEOF
9484 if ac_fn_c_try_compile "$LINENO"; then :
9485 result=yes
9486 else
9487 result=no
9488 fi
9489 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9490 eval gl_cv_type_${gltype}_signed=\$result
9491
9492 fi
9493 eval ac_res=\$gl_cv_type_${gltype}_signed
9494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
9495 $as_echo "$ac_res" >&6; }
9496 eval result=\$gl_cv_type_${gltype}_signed
9497 GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
9498 if test "$result" = yes; then
9499 cat >>confdefs.h <<_ACEOF
9500 #define HAVE_SIGNED_${GLTYPE} 1
9501 _ACEOF
9502
9503 eval HAVE_SIGNED_${GLTYPE}=1
9504 else
9505 eval HAVE_SIGNED_${GLTYPE}=0
9506 fi
9507 done
9508
9509
9510 gl_cv_type_ptrdiff_t_signed=yes
9511 gl_cv_type_size_t_signed=no
9512 if test $APPLE_UNIVERSAL_BUILD = 0; then
9513
9514
9515 for gltype in ptrdiff_t size_t ; do
9516 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $gltype integer literal suffix" >&5
9517 $as_echo_n "checking for $gltype integer literal suffix... " >&6; }
9518 if eval \${gl_cv_type_${gltype}_suffix+:} false; then :
9519 $as_echo_n "(cached) " >&6
9520 else
9521 eval gl_cv_type_${gltype}_suffix=no
9522 eval result=\$gl_cv_type_${gltype}_signed
9523 if test "$result" = yes; then
9524 glsufu=
9525 else
9526 glsufu=u
9527 fi
9528 for glsuf in "$glsufu" ${glsufu}l ${glsufu}ll ${glsufu}i64; do
9529 case $glsuf in
9530 '') gltype1='int';;
9531 l) gltype1='long int';;
9532 ll) gltype1='long long int';;
9533 i64) gltype1='__int64';;
9534 u) gltype1='unsigned int';;
9535 ul) gltype1='unsigned long int';;
9536 ull) gltype1='unsigned long long int';;
9537 ui64)gltype1='unsigned __int64';;
9538 esac
9539 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9540 /* end confdefs.h. */
9541
9542 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
9543 included before <wchar.h>. */
9544 #include <stddef.h>
9545 #include <signal.h>
9546 #if HAVE_WCHAR_H
9547 # include <stdio.h>
9548 # include <time.h>
9549 # include <wchar.h>
9550 #endif
9551
9552 extern $gltype foo;
9553 extern $gltype1 foo;
9554 int
9555 main ()
9556 {
9557
9558 ;
9559 return 0;
9560 }
9561 _ACEOF
9562 if ac_fn_c_try_compile "$LINENO"; then :
9563 eval gl_cv_type_${gltype}_suffix=\$glsuf
9564 fi
9565 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9566 eval result=\$gl_cv_type_${gltype}_suffix
9567 test "$result" != no && break
9568 done
9569 fi
9570 eval ac_res=\$gl_cv_type_${gltype}_suffix
9571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
9572 $as_echo "$ac_res" >&6; }
9573 GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
9574 eval result=\$gl_cv_type_${gltype}_suffix
9575 test "$result" = no && result=
9576 eval ${GLTYPE}_SUFFIX=\$result
9577 cat >>confdefs.h <<_ACEOF
9578 #define ${GLTYPE}_SUFFIX $result
9579 _ACEOF
9580
9581 done
9582
9583
9584 fi
9585
9586
9587 for gltype in sig_atomic_t wchar_t wint_t ; do
9588 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $gltype integer literal suffix" >&5
9589 $as_echo_n "checking for $gltype integer literal suffix... " >&6; }
9590 if eval \${gl_cv_type_${gltype}_suffix+:} false; then :
9591 $as_echo_n "(cached) " >&6
9592 else
9593 eval gl_cv_type_${gltype}_suffix=no
9594 eval result=\$gl_cv_type_${gltype}_signed
9595 if test "$result" = yes; then
9596 glsufu=
9597 else
9598 glsufu=u
9599 fi
9600 for glsuf in "$glsufu" ${glsufu}l ${glsufu}ll ${glsufu}i64; do
9601 case $glsuf in
9602 '') gltype1='int';;
9603 l) gltype1='long int';;
9604 ll) gltype1='long long int';;
9605 i64) gltype1='__int64';;
9606 u) gltype1='unsigned int';;
9607 ul) gltype1='unsigned long int';;
9608 ull) gltype1='unsigned long long int';;
9609 ui64)gltype1='unsigned __int64';;
9610 esac
9611 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9612 /* end confdefs.h. */
9613
9614 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
9615 included before <wchar.h>. */
9616 #include <stddef.h>
9617 #include <signal.h>
9618 #if HAVE_WCHAR_H
9619 # include <stdio.h>
9620 # include <time.h>
9621 # include <wchar.h>
9622 #endif
9623
9624 extern $gltype foo;
9625 extern $gltype1 foo;
9626 int
9627 main ()
9628 {
9629
9630 ;
9631 return 0;
9632 }
9633 _ACEOF
9634 if ac_fn_c_try_compile "$LINENO"; then :
9635 eval gl_cv_type_${gltype}_suffix=\$glsuf
9636 fi
9637 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9638 eval result=\$gl_cv_type_${gltype}_suffix
9639 test "$result" != no && break
9640 done
9641 fi
9642 eval ac_res=\$gl_cv_type_${gltype}_suffix
9643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
9644 $as_echo "$ac_res" >&6; }
9645 GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
9646 eval result=\$gl_cv_type_${gltype}_suffix
9647 test "$result" = no && result=
9648 eval ${GLTYPE}_SUFFIX=\$result
9649 cat >>confdefs.h <<_ACEOF
9650 #define ${GLTYPE}_SUFFIX $result
9651 _ACEOF
9652
9653 done
9654
9655
9656
9657 if test $GNULIB_OVERRIDES_WINT_T = 1; then
9658 BITSIZEOF_WINT_T=32
9659 fi
9660
9661 ;;
9662 esac
9663
9664
9665
9666 LIMITS_H='limits.h'
9667 if test -n "$LIMITS_H"; then
9668 GL_GENERATE_LIMITS_H_TRUE=
9669 GL_GENERATE_LIMITS_H_FALSE='#'
9670 else
9671 GL_GENERATE_LIMITS_H_TRUE='#'
9672 GL_GENERATE_LIMITS_H_FALSE=
9673 fi
9674
9675
9676
9677
9678
9679
9680
9681 if test -n "$STDINT_H"; then
9682 GL_GENERATE_STDINT_H_TRUE=
9683 GL_GENERATE_STDINT_H_FALSE='#'
9684 else
9685 GL_GENERATE_STDINT_H_TRUE='#'
9686 GL_GENERATE_STDINT_H_FALSE=
9687 fi
9688
9689
9690
9691 GNULIB_DPRINTF=0;
9692 GNULIB_FCLOSE=0;
9693 GNULIB_FDOPEN=0;
9694 GNULIB_FFLUSH=0;
9695 GNULIB_FGETC=0;
9696 GNULIB_FGETS=0;
9697 GNULIB_FOPEN=0;
9698 GNULIB_FPRINTF=0;
9699 GNULIB_FPRINTF_POSIX=0;
9700 GNULIB_FPURGE=0;
9701 GNULIB_FPUTC=0;
9702 GNULIB_FPUTS=0;
9703 GNULIB_FREAD=0;
9704 GNULIB_FREOPEN=0;
9705 GNULIB_FSCANF=0;
9706 GNULIB_FSEEK=0;
9707 GNULIB_FSEEKO=0;
9708 GNULIB_FTELL=0;
9709 GNULIB_FTELLO=0;
9710 GNULIB_FWRITE=0;
9711 GNULIB_GETC=0;
9712 GNULIB_GETCHAR=0;
9713 GNULIB_GETDELIM=0;
9714 GNULIB_GETLINE=0;
9715 GNULIB_OBSTACK_PRINTF=0;
9716 GNULIB_OBSTACK_PRINTF_POSIX=0;
9717 GNULIB_PCLOSE=0;
9718 GNULIB_PERROR=0;
9719 GNULIB_POPEN=0;
9720 GNULIB_PRINTF=0;
9721 GNULIB_PRINTF_POSIX=0;
9722 GNULIB_PUTC=0;
9723 GNULIB_PUTCHAR=0;
9724 GNULIB_PUTS=0;
9725 GNULIB_REMOVE=0;
9726 GNULIB_RENAME=0;
9727 GNULIB_RENAMEAT=0;
9728 GNULIB_SCANF=0;
9729 GNULIB_SNPRINTF=0;
9730 GNULIB_SPRINTF_POSIX=0;
9731 GNULIB_STDIO_H_NONBLOCKING=0;
9732 GNULIB_STDIO_H_SIGPIPE=0;
9733 GNULIB_TMPFILE=0;
9734 GNULIB_VASPRINTF=0;
9735 GNULIB_VFSCANF=0;
9736 GNULIB_VSCANF=0;
9737 GNULIB_VDPRINTF=0;
9738 GNULIB_VFPRINTF=0;
9739 GNULIB_VFPRINTF_POSIX=0;
9740 GNULIB_VPRINTF=0;
9741 GNULIB_VPRINTF_POSIX=0;
9742 GNULIB_VSNPRINTF=0;
9743 GNULIB_VSPRINTF_POSIX=0;
9744 HAVE_DECL_FPURGE=1;
9745 HAVE_DECL_FSEEKO=1;
9746 HAVE_DECL_FTELLO=1;
9747 HAVE_DECL_GETDELIM=1;
9748 HAVE_DECL_GETLINE=1;
9749 HAVE_DECL_OBSTACK_PRINTF=1;
9750 HAVE_DECL_SNPRINTF=1;
9751 HAVE_DECL_VSNPRINTF=1;
9752 HAVE_DPRINTF=1;
9753 HAVE_FSEEKO=1;
9754 HAVE_FTELLO=1;
9755 HAVE_PCLOSE=1;
9756 HAVE_POPEN=1;
9757 HAVE_RENAMEAT=1;
9758 HAVE_VASPRINTF=1;
9759 HAVE_VDPRINTF=1;
9760 REPLACE_DPRINTF=0;
9761 REPLACE_FCLOSE=0;
9762 REPLACE_FDOPEN=0;
9763 REPLACE_FFLUSH=0;
9764 REPLACE_FOPEN=0;
9765 REPLACE_FPRINTF=0;
9766 REPLACE_FPURGE=0;
9767 REPLACE_FREOPEN=0;
9768 REPLACE_FSEEK=0;
9769 REPLACE_FSEEKO=0;
9770 REPLACE_FTELL=0;
9771 REPLACE_FTELLO=0;
9772 REPLACE_GETDELIM=0;
9773 REPLACE_GETLINE=0;
9774 REPLACE_OBSTACK_PRINTF=0;
9775 REPLACE_PERROR=0;
9776 REPLACE_POPEN=0;
9777 REPLACE_PRINTF=0;
9778 REPLACE_REMOVE=0;
9779 REPLACE_RENAME=0;
9780 REPLACE_RENAMEAT=0;
9781 REPLACE_SNPRINTF=0;
9782 REPLACE_SPRINTF=0;
9783 REPLACE_STDIO_READ_FUNCS=0;
9784 REPLACE_STDIO_WRITE_FUNCS=0;
9785 REPLACE_TMPFILE=0;
9786 REPLACE_VASPRINTF=0;
9787 REPLACE_VDPRINTF=0;
9788 REPLACE_VFPRINTF=0;
9789 REPLACE_VPRINTF=0;
9790 REPLACE_VSNPRINTF=0;
9791 REPLACE_VSPRINTF=0;
9792
9793 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C/C++ restrict keyword" >&5
9794 $as_echo_n "checking for C/C++ restrict keyword... " >&6; }
9795 if ${ac_cv_c_restrict+:} false; then :
9796 $as_echo_n "(cached) " >&6
9797 else
9798 ac_cv_c_restrict=no
9799 # The order here caters to the fact that C++ does not require restrict.
9800 for ac_kw in __restrict __restrict__ _Restrict restrict; do
9801 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9802 /* end confdefs.h. */
9803 typedef int *int_ptr;
9804 int foo (int_ptr $ac_kw ip) { return ip[0]; }
9805 int bar (int [$ac_kw]); /* Catch GCC bug 14050. */
9806 int bar (int ip[$ac_kw]) { return ip[0]; }
9807
9808 int
9809 main ()
9810 {
9811 int s[1];
9812 int *$ac_kw t = s;
9813 t[0] = 0;
9814 return foo (t) + bar (t);
9815
9816 ;
9817 return 0;
9818 }
9819 _ACEOF
9820 if ac_fn_c_try_compile "$LINENO"; then :
9821 ac_cv_c_restrict=$ac_kw
9822 fi
9823 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9824 test "$ac_cv_c_restrict" != no && break
9825 done
9826
9827 fi
9828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_restrict" >&5
9829 $as_echo "$ac_cv_c_restrict" >&6; }
9830
9831 case $ac_cv_c_restrict in
9832 restrict) ;;
9833 no) $as_echo "#define restrict /**/" >>confdefs.h
9834 ;;
9835 *) cat >>confdefs.h <<_ACEOF
9836 #define restrict $ac_cv_c_restrict
9837 _ACEOF
9838 ;;
9839 esac
9840
9841
9842 GNULIB_EXPLICIT_BZERO=0;
9843 GNULIB_FFSL=0;
9844 GNULIB_FFSLL=0;
9845 GNULIB_MEMCHR=0;
9846 GNULIB_MEMMEM=0;
9847 GNULIB_MEMPCPY=0;
9848 GNULIB_MEMRCHR=0;
9849 GNULIB_RAWMEMCHR=0;
9850 GNULIB_STPCPY=0;
9851 GNULIB_STPNCPY=0;
9852 GNULIB_STRCHRNUL=0;
9853 GNULIB_STRDUP=0;
9854 GNULIB_STRNCAT=0;
9855 GNULIB_STRNDUP=0;
9856 GNULIB_STRNLEN=0;
9857 GNULIB_STRPBRK=0;
9858 GNULIB_STRSEP=0;
9859 GNULIB_STRSTR=0;
9860 GNULIB_STRCASESTR=0;
9861 GNULIB_STRTOK_R=0;
9862 GNULIB_MBSLEN=0;
9863 GNULIB_MBSNLEN=0;
9864 GNULIB_MBSCHR=0;
9865 GNULIB_MBSRCHR=0;
9866 GNULIB_MBSSTR=0;
9867 GNULIB_MBSCASECMP=0;
9868 GNULIB_MBSNCASECMP=0;
9869 GNULIB_MBSPCASECMP=0;
9870 GNULIB_MBSCASESTR=0;
9871 GNULIB_MBSCSPN=0;
9872 GNULIB_MBSPBRK=0;
9873 GNULIB_MBSSPN=0;
9874 GNULIB_MBSSEP=0;
9875 GNULIB_MBSTOK_R=0;
9876 GNULIB_STRERROR=0;
9877 GNULIB_STRERROR_R=0;
9878 GNULIB_STRSIGNAL=0;
9879 GNULIB_STRVERSCMP=0;
9880 HAVE_MBSLEN=0;
9881 HAVE_EXPLICIT_BZERO=1;
9882 HAVE_FFSL=1;
9883 HAVE_FFSLL=1;
9884 HAVE_MEMCHR=1;
9885 HAVE_DECL_MEMMEM=1;
9886 HAVE_MEMPCPY=1;
9887 HAVE_DECL_MEMRCHR=1;
9888 HAVE_RAWMEMCHR=1;
9889 HAVE_STPCPY=1;
9890 HAVE_STPNCPY=1;
9891 HAVE_STRCHRNUL=1;
9892 HAVE_DECL_STRDUP=1;
9893 HAVE_DECL_STRNDUP=1;
9894 HAVE_DECL_STRNLEN=1;
9895 HAVE_STRPBRK=1;
9896 HAVE_STRSEP=1;
9897 HAVE_STRCASESTR=1;
9898 HAVE_DECL_STRTOK_R=1;
9899 HAVE_DECL_STRERROR_R=1;
9900 HAVE_DECL_STRSIGNAL=1;
9901 HAVE_STRVERSCMP=1;
9902 REPLACE_MEMCHR=0;
9903 REPLACE_MEMMEM=0;
9904 REPLACE_STPNCPY=0;
9905 REPLACE_STRCHRNUL=0;
9906 REPLACE_STRDUP=0;
9907 REPLACE_STRNCAT=0;
9908 REPLACE_STRNDUP=0;
9909 REPLACE_STRNLEN=0;
9910 REPLACE_STRSTR=0;
9911 REPLACE_STRCASESTR=0;
9912 REPLACE_STRTOK_R=0;
9913 REPLACE_STRERROR=0;
9914 REPLACE_STRERROR_R=0;
9915 REPLACE_STRSIGNAL=0;
9916 UNDEFINE_STRTOK_R=0;
9917
9918
9919 REPLACE_STRERROR_0=0
9920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strerror(0) succeeds" >&5
9921 $as_echo_n "checking whether strerror(0) succeeds... " >&6; }
9922 if ${gl_cv_func_strerror_0_works+:} false; then :
9923 $as_echo_n "(cached) " >&6
9924 else
9925 if test "$cross_compiling" = yes; then :
9926 case "$host_os" in
9927 # Guess yes on glibc systems.
9928 *-gnu* | gnu*) gl_cv_func_strerror_0_works="guessing yes" ;;
9929 # Guess yes on musl systems.
9930 *-musl*) gl_cv_func_strerror_0_works="guessing yes" ;;
9931 # Guess yes on native Windows.
9932 mingw*) gl_cv_func_strerror_0_works="guessing yes" ;;
9933 # If we don't know, obey --enable-cross-guesses.
9934 *) gl_cv_func_strerror_0_works="$gl_cross_guess_normal" ;;
9935 esac
9936
9937 else
9938 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9939 /* end confdefs.h. */
9940 #include <string.h>
9941 #include <errno.h>
9942
9943 int
9944 main ()
9945 {
9946 int result = 0;
9947 char *str;
9948 errno = 0;
9949 str = strerror (0);
9950 if (!*str) result |= 1;
9951 if (errno) result |= 2;
9952 if (strstr (str, "nknown") || strstr (str, "ndefined"))
9953 result |= 4;
9954 return result;
9955 ;
9956 return 0;
9957 }
9958 _ACEOF
9959 if ac_fn_c_try_run "$LINENO"; then :
9960 gl_cv_func_strerror_0_works=yes
9961 else
9962 gl_cv_func_strerror_0_works=no
9963 fi
9964 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9965 conftest.$ac_objext conftest.beam conftest.$ac_ext
9966 fi
9967
9968
9969 fi
9970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_strerror_0_works" >&5
9971 $as_echo "$gl_cv_func_strerror_0_works" >&6; }
9972 case "$gl_cv_func_strerror_0_works" in
9973 *yes) ;;
9974 *)
9975 REPLACE_STRERROR_0=1
9976
9977 $as_echo "#define REPLACE_STRERROR_0 1" >>confdefs.h
9978
9979 ;;
9980 esac
9981
9982
9983
9984
9985
9986
9987
9988
9989
9990
9991
9992
9993 if test $gl_cv_have_include_next = yes; then
9994 gl_cv_next_string_h='<'string.h'>'
9995 else
9996 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <string.h>" >&5
9997 $as_echo_n "checking absolute name of <string.h>... " >&6; }
9998 if ${gl_cv_next_string_h+:} false; then :
9999 $as_echo_n "(cached) " >&6
10000 else
10001
10002
10003
10004 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10005 /* end confdefs.h. */
10006 #include <string.h>
10007 _ACEOF
10008 case "$host_os" in
10009 aix*) gl_absname_cpp="$ac_cpp -C" ;;
10010 *) gl_absname_cpp="$ac_cpp" ;;
10011 esac
10012
10013 case "$host_os" in
10014 mingw*)
10015 gl_dirsep_regex='[/\\]'
10016 ;;
10017 *)
10018 gl_dirsep_regex='\/'
10019 ;;
10020 esac
10021 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
10022 gl_header_literal_regex=`echo 'string.h' \
10023 | sed -e "$gl_make_literal_regex_sed"`
10024 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
10025 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
10026 s|^/[^/]|//&|
10027 p
10028 q
10029 }'
10030
10031 gl_cv_absolute_string_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
10032 sed -n "$gl_absolute_header_sed"`
10033
10034 gl_header=$gl_cv_absolute_string_h
10035 gl_cv_next_string_h='"'$gl_header'"'
10036
10037
10038 fi
10039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_string_h" >&5
10040 $as_echo "$gl_cv_next_string_h" >&6; }
10041 fi
10042 NEXT_STRING_H=$gl_cv_next_string_h
10043
10044 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
10045 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
10046 gl_next_as_first_directive='<'string.h'>'
10047 else
10048 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
10049 gl_next_as_first_directive=$gl_cv_next_string_h
10050 fi
10051 NEXT_AS_FIRST_DIRECTIVE_STRING_H=$gl_next_as_first_directive
10052
10053
10054
10055
10056
10057
10058
10059
10060
10061
10062
10063
10064
10065 WINDOWS_64_BIT_OFF_T=0
10066
10067
10068
10069
10070
10071 $as_echo "#define _USE_STD_STAT 1" >>confdefs.h
10072
10073
10074
10075
10076
10077
10078
10079
10080
10081
10082
10083 if test $gl_cv_have_include_next = yes; then
10084 gl_cv_next_sys_types_h='<'sys/types.h'>'
10085 else
10086 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/types.h>" >&5
10087 $as_echo_n "checking absolute name of <sys/types.h>... " >&6; }
10088 if ${gl_cv_next_sys_types_h+:} false; then :
10089 $as_echo_n "(cached) " >&6
10090 else
10091
10092
10093
10094 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10095 /* end confdefs.h. */
10096 #include <sys/types.h>
10097 _ACEOF
10098 case "$host_os" in
10099 aix*) gl_absname_cpp="$ac_cpp -C" ;;
10100 *) gl_absname_cpp="$ac_cpp" ;;
10101 esac
10102
10103 case "$host_os" in
10104 mingw*)
10105 gl_dirsep_regex='[/\\]'
10106 ;;
10107 *)
10108 gl_dirsep_regex='\/'
10109 ;;
10110 esac
10111 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
10112 gl_header_literal_regex=`echo 'sys/types.h' \
10113 | sed -e "$gl_make_literal_regex_sed"`
10114 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
10115 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
10116 s|^/[^/]|//&|
10117 p
10118 q
10119 }'
10120
10121 gl_cv_absolute_sys_types_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
10122 sed -n "$gl_absolute_header_sed"`
10123
10124 gl_header=$gl_cv_absolute_sys_types_h
10125 gl_cv_next_sys_types_h='"'$gl_header'"'
10126
10127
10128 fi
10129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_types_h" >&5
10130 $as_echo "$gl_cv_next_sys_types_h" >&6; }
10131 fi
10132 NEXT_SYS_TYPES_H=$gl_cv_next_sys_types_h
10133
10134 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
10135 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
10136 gl_next_as_first_directive='<'sys/types.h'>'
10137 else
10138 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
10139 gl_next_as_first_directive=$gl_cv_next_sys_types_h
10140 fi
10141 NEXT_AS_FIRST_DIRECTIVE_SYS_TYPES_H=$gl_next_as_first_directive
10142
10143
10144
10145
10146
10147
10148
10149
10150
10151
10152
10153
10154 WINDOWS_STAT_INODES=0
10155
10156
10157
10158
10159 if false; then
10160 GL_COND_LIBTOOL_TRUE=
10161 GL_COND_LIBTOOL_FALSE='#'
10162 else
10163 GL_COND_LIBTOOL_TRUE='#'
10164 GL_COND_LIBTOOL_FALSE=
10165 fi
10166
10167 gl_cond_libtool=false
10168 gl_libdeps=
10169 gl_ltlibdeps=
10170 gl_m4_base='m4'
10171
10172
10173
10174
10175
10176
10177
10178
10179
10180 gl_source_base='lib'
10181
10182
10183
10184 case "$host_os" in
10185 mingw*) REPLACE_ACCESS=1 ;;
10186 esac
10187
10188 if test $REPLACE_ACCESS = 1; then
10189
10190
10191
10192
10193
10194
10195
10196
10197 gl_LIBOBJS="$gl_LIBOBJS access.$ac_objext"
10198
10199 fi
10200
10201
10202
10203
10204
10205 GNULIB_ACCESS=1
10206
10207
10208
10209
10210
10211 $as_echo "#define GNULIB_TEST_ACCESS 1" >>confdefs.h
10212
10213
10214
10215
10216
10217 if test $ac_cv_func_alloca_works = no; then
10218 :
10219 fi
10220
10221 # Define an additional variable used in the Makefile substitution.
10222 if test $ac_cv_working_alloca_h = yes; then
10223 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca as a compiler built-in" >&5
10224 $as_echo_n "checking for alloca as a compiler built-in... " >&6; }
10225 if ${gl_cv_rpl_alloca+:} false; then :
10226 $as_echo_n "(cached) " >&6
10227 else
10228
10229 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10230 /* end confdefs.h. */
10231
10232 #if defined __GNUC__ || defined _AIX || defined _MSC_VER
10233 Need own alloca
10234 #endif
10235
10236 _ACEOF
10237 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10238 $EGREP "Need own alloca" >/dev/null 2>&1; then :
10239 gl_cv_rpl_alloca=yes
10240 else
10241 gl_cv_rpl_alloca=no
10242 fi
10243 rm -f conftest*
10244
10245
10246 fi
10247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_rpl_alloca" >&5
10248 $as_echo "$gl_cv_rpl_alloca" >&6; }
10249 if test $gl_cv_rpl_alloca = yes; then
10250
10251 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
10252
10253 ALLOCA_H=alloca.h
10254 else
10255 ALLOCA_H=
10256 fi
10257 else
10258 ALLOCA_H=alloca.h
10259 fi
10260
10261 if test -n "$ALLOCA_H"; then
10262 GL_GENERATE_ALLOCA_H_TRUE=
10263 GL_GENERATE_ALLOCA_H_FALSE='#'
10264 else
10265 GL_GENERATE_ALLOCA_H_TRUE='#'
10266 GL_GENERATE_ALLOCA_H_FALSE=
10267 fi
10268
10269
10270 if test $ac_cv_working_alloca_h = yes; then
10271 HAVE_ALLOCA_H=1
10272 else
10273 HAVE_ALLOCA_H=0
10274 fi
10275
10276
10277
10278
10279
10280
10281 if test $HAVE_MSVC_INVALID_PARAMETER_HANDLER = 1; then
10282 REPLACE_CLOSE=1
10283 fi
10284
10285
10286
10287
10288
10289
10290 if test $ac_cv_header_sys_socket_h != yes; then
10291 for ac_header in winsock2.h
10292 do :
10293 ac_fn_c_check_header_mongrel "$LINENO" "winsock2.h" "ac_cv_header_winsock2_h" "$ac_includes_default"
10294 if test "x$ac_cv_header_winsock2_h" = xyes; then :
10295 cat >>confdefs.h <<_ACEOF
10296 #define HAVE_WINSOCK2_H 1
10297 _ACEOF
10298
10299 fi
10300
10301 done
10302
10303 fi
10304 if test "$ac_cv_header_winsock2_h" = yes; then
10305 HAVE_WINSOCK2_H=1
10306 UNISTD_H_HAVE_WINSOCK2_H=1
10307 SYS_IOCTL_H_HAVE_WINSOCK2_H=1
10308 else
10309 HAVE_WINSOCK2_H=0
10310 fi
10311
10312
10313 if test $UNISTD_H_HAVE_WINSOCK2_H = 1; then
10314 REPLACE_CLOSE=1
10315 fi
10316
10317
10318
10319 if test $REPLACE_CLOSE = 1; then
10320
10321
10322
10323
10324
10325
10326
10327
10328 gl_LIBOBJS="$gl_LIBOBJS close.$ac_objext"
10329
10330 fi
10331
10332
10333
10334
10335
10336 GNULIB_CLOSE=1
10337
10338
10339
10340
10341
10342 $as_echo "#define GNULIB_TEST_CLOSE 1" >>confdefs.h
10343
10344
10345
10346
10347
10348
10349
10350
10351
10352 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether // is distinct from /" >&5
10353 $as_echo_n "checking whether // is distinct from /... " >&6; }
10354 if ${gl_cv_double_slash_root+:} false; then :
10355 $as_echo_n "(cached) " >&6
10356 else
10357 if test x"$cross_compiling" = xyes ; then
10358 # When cross-compiling, there is no way to tell whether // is special
10359 # short of a list of hosts. However, the only known hosts to date
10360 # that have a distinct // are Apollo DomainOS (too old to port to),
10361 # Cygwin, and z/OS. If anyone knows of another system for which // has
10362 # special semantics and is distinct from /, please report it to
10363 # <[email protected]>.
10364 case $host in
10365 *-cygwin | i370-ibm-openedition)
10366 gl_cv_double_slash_root=yes ;;
10367 *)
10368 # Be optimistic and assume that / and // are the same when we
10369 # don't know.
10370 gl_cv_double_slash_root='unknown, assuming no' ;;
10371 esac
10372 else
10373 set x `ls -di / // 2>/dev/null`
10374 if test "$2" = "$4" && wc //dev/null >/dev/null 2>&1; then
10375 gl_cv_double_slash_root=no
10376 else
10377 gl_cv_double_slash_root=yes
10378 fi
10379 fi
10380 fi
10381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_double_slash_root" >&5
10382 $as_echo "$gl_cv_double_slash_root" >&6; }
10383 if test "$gl_cv_double_slash_root" = yes; then
10384
10385 $as_echo "#define DOUBLE_SLASH_IS_DISTINCT_ROOT 1" >>confdefs.h
10386
10387 fi
10388
10389
10390
10391
10392
10393
10394 $as_echo "#define HAVE_DUP2 1" >>confdefs.h
10395
10396
10397 if test $HAVE_DUP2 = 1; then
10398 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether dup2 works" >&5
10399 $as_echo_n "checking whether dup2 works... " >&6; }
10400 if ${gl_cv_func_dup2_works+:} false; then :
10401 $as_echo_n "(cached) " >&6
10402 else
10403 if test "$cross_compiling" = yes; then :
10404 case "$host_os" in
10405 mingw*) # on this platform, dup2 always returns 0 for success
10406 gl_cv_func_dup2_works="guessing no" ;;
10407 cygwin*) # on cygwin 1.5.x, dup2(1,1) returns 0
10408 gl_cv_func_dup2_works="guessing no" ;;
10409 aix* | freebsd*)
10410 # on AIX 7.1 and FreeBSD 6.1, dup2 (1,toobig) gives EMFILE,
10411 # not EBADF.
10412 gl_cv_func_dup2_works="guessing no" ;;
10413 haiku*) # on Haiku alpha 2, dup2(1, 1) resets FD_CLOEXEC.
10414 gl_cv_func_dup2_works="guessing no" ;;
10415 *-android*) # implemented using dup3(), which fails if oldfd == newfd
10416 gl_cv_func_dup2_works="guessing no" ;;
10417 os2*) # on OS/2 kLIBC, dup2() does not work on a directory fd.
10418 gl_cv_func_dup2_works="guessing no" ;;
10419 *) gl_cv_func_dup2_works="guessing yes" ;;
10420 esac
10421 else
10422 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10423 /* end confdefs.h. */
10424
10425 #include <errno.h>
10426 #include <fcntl.h>
10427 #include <limits.h>
10428 #include <sys/resource.h>
10429 #include <unistd.h>
10430 #ifndef RLIM_SAVED_CUR
10431 # define RLIM_SAVED_CUR RLIM_INFINITY
10432 #endif
10433 #ifndef RLIM_SAVED_MAX
10434 # define RLIM_SAVED_MAX RLIM_INFINITY
10435 #endif
10436
10437 int
10438 main ()
10439 {
10440 int result = 0;
10441 int bad_fd = INT_MAX;
10442 struct rlimit rlim;
10443 if (getrlimit (RLIMIT_NOFILE, &rlim) == 0
10444 && 0 <= rlim.rlim_cur && rlim.rlim_cur <= INT_MAX
10445 && rlim.rlim_cur != RLIM_INFINITY
10446 && rlim.rlim_cur != RLIM_SAVED_MAX
10447 && rlim.rlim_cur != RLIM_SAVED_CUR)
10448 bad_fd = rlim.rlim_cur;
10449 #ifdef FD_CLOEXEC
10450 if (fcntl (1, F_SETFD, FD_CLOEXEC) == -1)
10451 result |= 1;
10452 #endif
10453 if (dup2 (1, 1) != 1)
10454 result |= 2;
10455 #ifdef FD_CLOEXEC
10456 if (fcntl (1, F_GETFD) != FD_CLOEXEC)
10457 result |= 4;
10458 #endif
10459 close (0);
10460 if (dup2 (0, 0) != -1)
10461 result |= 8;
10462 /* Many gnulib modules require POSIX conformance of EBADF. */
10463 if (dup2 (2, bad_fd) == -1 && errno != EBADF)
10464 result |= 16;
10465 /* Flush out some cygwin core dumps. */
10466 if (dup2 (2, -1) != -1 || errno != EBADF)
10467 result |= 32;
10468 dup2 (2, 255);
10469 dup2 (2, 256);
10470 /* On OS/2 kLIBC, dup2() does not work on a directory fd. */
10471 {
10472 int fd = open (".", O_RDONLY);
10473 if (fd == -1)
10474 result |= 64;
10475 else if (dup2 (fd, fd + 1) == -1)
10476 result |= 128;
10477
10478 close (fd);
10479 }
10480 return result;
10481 ;
10482 return 0;
10483 }
10484
10485 _ACEOF
10486 if ac_fn_c_try_run "$LINENO"; then :
10487 gl_cv_func_dup2_works=yes
10488 else
10489 gl_cv_func_dup2_works=no
10490 fi
10491 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10492 conftest.$ac_objext conftest.beam conftest.$ac_ext
10493 fi
10494
10495
10496 fi
10497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_dup2_works" >&5
10498 $as_echo "$gl_cv_func_dup2_works" >&6; }
10499 case "$gl_cv_func_dup2_works" in
10500 *yes) ;;
10501 *)
10502 REPLACE_DUP2=1
10503 for ac_func in setdtablesize
10504 do :
10505 ac_fn_c_check_func "$LINENO" "setdtablesize" "ac_cv_func_setdtablesize"
10506 if test "x$ac_cv_func_setdtablesize" = xyes; then :
10507 cat >>confdefs.h <<_ACEOF
10508 #define HAVE_SETDTABLESIZE 1
10509 _ACEOF
10510
10511 fi
10512 done
10513
10514 ;;
10515 esac
10516 fi
10517
10518
10519 if test $HAVE_DUP2 = 0 || test $REPLACE_DUP2 = 1; then
10520
10521
10522
10523
10524
10525
10526
10527
10528 gl_LIBOBJS="$gl_LIBOBJS dup2.$ac_objext"
10529
10530
10531 fi
10532
10533
10534
10535
10536
10537 GNULIB_DUP2=1
10538
10539
10540
10541
10542
10543 $as_echo "#define GNULIB_TEST_DUP2 1" >>confdefs.h
10544
10545
10546
10547
10548
10549 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for error_at_line" >&5
10550 $as_echo_n "checking for error_at_line... " >&6; }
10551 if ${ac_cv_lib_error_at_line+:} false; then :
10552 $as_echo_n "(cached) " >&6
10553 else
10554 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10555 /* end confdefs.h. */
10556 #include <error.h>
10557 int
10558 main ()
10559 {
10560 error_at_line (0, 0, "", 0, "an error occurred");
10561 ;
10562 return 0;
10563 }
10564 _ACEOF
10565 if ac_fn_c_try_link "$LINENO"; then :
10566 ac_cv_lib_error_at_line=yes
10567 else
10568 ac_cv_lib_error_at_line=no
10569 fi
10570 rm -f core conftest.err conftest.$ac_objext \
10571 conftest$ac_exeext conftest.$ac_ext
10572 fi
10573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_error_at_line" >&5
10574 $as_echo "$ac_cv_lib_error_at_line" >&6; }
10575
10576 if test $ac_cv_lib_error_at_line = no; then
10577
10578
10579
10580
10581
10582
10583
10584
10585 gl_LIBOBJS="$gl_LIBOBJS error.$ac_objext"
10586
10587
10588
10589 :
10590
10591 fi
10592
10593
10594 XGETTEXT_EXTRA_OPTIONS="$XGETTEXT_EXTRA_OPTIONS --flag=error:3:c-format"
10595
10596
10597
10598 XGETTEXT_EXTRA_OPTIONS="$XGETTEXT_EXTRA_OPTIONS --flag=error_at_line:5:c-format"
10599
10600
10601
10602
10603
10604
10605
10606 if test $ac_cv_func_fcntl = no; then
10607
10608
10609
10610 if test $ac_cv_func_fcntl = no; then
10611 HAVE_FCNTL=0
10612 else
10613 REPLACE_FCNTL=1
10614 fi
10615
10616 else
10617 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fcntl handles F_DUPFD correctly" >&5
10618 $as_echo_n "checking whether fcntl handles F_DUPFD correctly... " >&6; }
10619 if ${gl_cv_func_fcntl_f_dupfd_works+:} false; then :
10620 $as_echo_n "(cached) " >&6
10621 else
10622 if test "$cross_compiling" = yes; then :
10623 case $host_os in
10624 aix* | cygwin* | haiku*)
10625 gl_cv_func_fcntl_f_dupfd_works="guessing no" ;;
10626 *) gl_cv_func_fcntl_f_dupfd_works="guessing yes" ;;
10627 esac
10628 else
10629 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10630 /* end confdefs.h. */
10631 #include <errno.h>
10632 #include <fcntl.h>
10633 #include <limits.h>
10634 #include <sys/resource.h>
10635 #include <unistd.h>
10636 #ifndef RLIM_SAVED_CUR
10637 # define RLIM_SAVED_CUR RLIM_INFINITY
10638 #endif
10639 #ifndef RLIM_SAVED_MAX
10640 # define RLIM_SAVED_MAX RLIM_INFINITY
10641 #endif
10642
10643 int
10644 main ()
10645 {
10646 int result = 0;
10647 int bad_fd = INT_MAX;
10648 struct rlimit rlim;
10649 if (getrlimit (RLIMIT_NOFILE, &rlim) == 0
10650 && 0 <= rlim.rlim_cur && rlim.rlim_cur <= INT_MAX
10651 && rlim.rlim_cur != RLIM_INFINITY
10652 && rlim.rlim_cur != RLIM_SAVED_MAX
10653 && rlim.rlim_cur != RLIM_SAVED_CUR)
10654 bad_fd = rlim.rlim_cur;
10655 if (fcntl (0, F_DUPFD, -1) != -1) result |= 1;
10656 if (errno != EINVAL) result |= 2;
10657 if (fcntl (0, F_DUPFD, bad_fd) != -1) result |= 4;
10658 if (errno != EINVAL) result |= 8;
10659 /* On OS/2 kLIBC, F_DUPFD does not work on a directory fd */
10660 {
10661 int fd;
10662 fd = open (".", O_RDONLY);
10663 if (fd == -1)
10664 result |= 16;
10665 else if (fcntl (fd, F_DUPFD, STDERR_FILENO + 1) == -1)
10666 result |= 32;
10667
10668 close (fd);
10669 }
10670 return result;
10671 ;
10672 return 0;
10673 }
10674 _ACEOF
10675 if ac_fn_c_try_run "$LINENO"; then :
10676 gl_cv_func_fcntl_f_dupfd_works=yes
10677 else
10678 gl_cv_func_fcntl_f_dupfd_works=no
10679 fi
10680 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10681 conftest.$ac_objext conftest.beam conftest.$ac_ext
10682 fi
10683
10684 fi
10685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_fcntl_f_dupfd_works" >&5
10686 $as_echo "$gl_cv_func_fcntl_f_dupfd_works" >&6; }
10687 case $gl_cv_func_fcntl_f_dupfd_works in
10688 *yes) ;;
10689 *)
10690
10691
10692 if test $ac_cv_func_fcntl = no; then
10693 HAVE_FCNTL=0
10694 else
10695 REPLACE_FCNTL=1
10696 fi
10697
10698
10699 $as_echo "#define FCNTL_DUPFD_BUGGY 1" >>confdefs.h
10700 ;;
10701 esac
10702
10703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fcntl understands F_DUPFD_CLOEXEC" >&5
10704 $as_echo_n "checking whether fcntl understands F_DUPFD_CLOEXEC... " >&6; }
10705 if ${gl_cv_func_fcntl_f_dupfd_cloexec+:} false; then :
10706 $as_echo_n "(cached) " >&6
10707 else
10708 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10709 /* end confdefs.h. */
10710
10711 #include <fcntl.h>
10712 #ifndef F_DUPFD_CLOEXEC
10713 choke me
10714 #endif
10715
10716 int
10717 main ()
10718 {
10719
10720 ;
10721 return 0;
10722 }
10723 _ACEOF
10724 if ac_fn_c_try_compile "$LINENO"; then :
10725 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10726 /* end confdefs.h. */
10727
10728 #ifdef __linux__
10729 /* The Linux kernel only added F_DUPFD_CLOEXEC in 2.6.24, so we always replace
10730 it to support the semantics on older kernels that failed with EINVAL. */
10731 choke me
10732 #endif
10733
10734 int
10735 main ()
10736 {
10737
10738 ;
10739 return 0;
10740 }
10741 _ACEOF
10742 if ac_fn_c_try_compile "$LINENO"; then :
10743 gl_cv_func_fcntl_f_dupfd_cloexec=yes
10744 else
10745 gl_cv_func_fcntl_f_dupfd_cloexec="needs runtime check"
10746 fi
10747 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10748 else
10749 gl_cv_func_fcntl_f_dupfd_cloexec=no
10750 fi
10751 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10752 fi
10753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_fcntl_f_dupfd_cloexec" >&5
10754 $as_echo "$gl_cv_func_fcntl_f_dupfd_cloexec" >&6; }
10755 if test "$gl_cv_func_fcntl_f_dupfd_cloexec" != yes; then
10756
10757
10758
10759 if test $ac_cv_func_fcntl = no; then
10760 HAVE_FCNTL=0
10761 else
10762 REPLACE_FCNTL=1
10763 fi
10764
10765 fi
10766 fi
10767
10768
10769 if test $HAVE_FCNTL = 0 || test $REPLACE_FCNTL = 1; then
10770
10771
10772
10773
10774
10775
10776
10777
10778 gl_LIBOBJS="$gl_LIBOBJS fcntl.$ac_objext"
10779
10780 fi
10781
10782
10783
10784
10785
10786 GNULIB_FCNTL=1
10787
10788
10789
10790
10791
10792 $as_echo "#define GNULIB_TEST_FCNTL 1" >>confdefs.h
10793
10794
10795
10796
10797
10798
10799
10800
10801
10802
10803
10804
10805
10806
10807 if test $gl_cv_have_include_next = yes; then
10808 gl_cv_next_fcntl_h='<'fcntl.h'>'
10809 else
10810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <fcntl.h>" >&5
10811 $as_echo_n "checking absolute name of <fcntl.h>... " >&6; }
10812 if ${gl_cv_next_fcntl_h+:} false; then :
10813 $as_echo_n "(cached) " >&6
10814 else
10815
10816
10817
10818 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10819 /* end confdefs.h. */
10820 #include <fcntl.h>
10821 _ACEOF
10822 case "$host_os" in
10823 aix*) gl_absname_cpp="$ac_cpp -C" ;;
10824 *) gl_absname_cpp="$ac_cpp" ;;
10825 esac
10826
10827 case "$host_os" in
10828 mingw*)
10829 gl_dirsep_regex='[/\\]'
10830 ;;
10831 *)
10832 gl_dirsep_regex='\/'
10833 ;;
10834 esac
10835 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
10836 gl_header_literal_regex=`echo 'fcntl.h' \
10837 | sed -e "$gl_make_literal_regex_sed"`
10838 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
10839 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
10840 s|^/[^/]|//&|
10841 p
10842 q
10843 }'
10844
10845 gl_cv_absolute_fcntl_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
10846 sed -n "$gl_absolute_header_sed"`
10847
10848 gl_header=$gl_cv_absolute_fcntl_h
10849 gl_cv_next_fcntl_h='"'$gl_header'"'
10850
10851
10852 fi
10853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_fcntl_h" >&5
10854 $as_echo "$gl_cv_next_fcntl_h" >&6; }
10855 fi
10856 NEXT_FCNTL_H=$gl_cv_next_fcntl_h
10857
10858 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
10859 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
10860 gl_next_as_first_directive='<'fcntl.h'>'
10861 else
10862 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
10863 gl_next_as_first_directive=$gl_cv_next_fcntl_h
10864 fi
10865 NEXT_AS_FIRST_DIRECTIVE_FCNTL_H=$gl_next_as_first_directive
10866
10867
10868
10869
10870
10871
10872
10873
10874
10875
10876
10877
10878
10879
10880
10881
10882
10883
10884
10885
10886
10887 if test $ac_cv_func_getdtablesize = yes &&
10888 test $ac_cv_have_decl_getdtablesize = yes; then
10889 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getdtablesize works" >&5
10890 $as_echo_n "checking whether getdtablesize works... " >&6; }
10891 if ${gl_cv_func_getdtablesize_works+:} false; then :
10892 $as_echo_n "(cached) " >&6
10893 else
10894 case "$host_os" in
10895 vms*) gl_cv_func_getdtablesize_works="no (limitation)" ;;
10896 *)
10897 if test "$cross_compiling" = yes; then :
10898 case "$host_os" in
10899 cygwin*) # on cygwin 1.5.25, getdtablesize() automatically grows
10900 gl_cv_func_getdtablesize_works="guessing no" ;;
10901 *) gl_cv_func_getdtablesize_works="guessing yes" ;;
10902 esac
10903
10904 else
10905 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10906 /* end confdefs.h. */
10907
10908 #include <unistd.h>
10909 int
10910 main ()
10911 {
10912 int size = getdtablesize();
10913 if (dup2 (0, getdtablesize()) != -1)
10914 return 1;
10915 if (size != getdtablesize())
10916 return 2;
10917
10918 ;
10919 return 0;
10920 }
10921 _ACEOF
10922 if ac_fn_c_try_run "$LINENO"; then :
10923 gl_cv_func_getdtablesize_works=yes
10924 else
10925 gl_cv_func_getdtablesize_works=no
10926 fi
10927 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10928 conftest.$ac_objext conftest.beam conftest.$ac_ext
10929 fi
10930
10931 ;;
10932 esac
10933
10934 fi
10935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_getdtablesize_works" >&5
10936 $as_echo "$gl_cv_func_getdtablesize_works" >&6; }
10937 case "$gl_cv_func_getdtablesize_works" in
10938 *yes | "no (limitation)") ;;
10939 *) REPLACE_GETDTABLESIZE=1 ;;
10940 esac
10941 else
10942 HAVE_GETDTABLESIZE=0
10943 fi
10944
10945 if test $HAVE_GETDTABLESIZE = 0 || test $REPLACE_GETDTABLESIZE = 1; then
10946
10947
10948
10949
10950
10951
10952
10953
10954 gl_LIBOBJS="$gl_LIBOBJS getdtablesize.$ac_objext"
10955
10956 :
10957 fi
10958
10959
10960
10961
10962
10963 GNULIB_GETDTABLESIZE=1
10964
10965
10966
10967
10968
10969 $as_echo "#define GNULIB_TEST_GETDTABLESIZE 1" >>confdefs.h
10970
10971
10972
10973
10974
10975 # Persuade glibc <stdlib.h> to declare getloadavg().
10976
10977
10978 gl_save_LIBS=$LIBS
10979
10980 # getloadavg is present in libc on glibc >= 2.2, Mac OS X, FreeBSD >= 2.0,
10981 # NetBSD >= 0.9, OpenBSD >= 2.0, Solaris >= 7.
10982 HAVE_GETLOADAVG=1
10983 ac_fn_c_check_func "$LINENO" "getloadavg" "ac_cv_func_getloadavg"
10984 if test "x$ac_cv_func_getloadavg" = xyes; then :
10985
10986 else
10987 gl_func_getloadavg_done=no
10988
10989 # Some systems with -lutil have (and need) -lkvm as well, some do not.
10990 # On Solaris, -lkvm requires nlist from -lelf, so check that first
10991 # to get the right answer into the cache.
10992 # For kstat on solaris, we need to test for libelf and libkvm to force the
10993 # definition of SVR4 below.
10994 if test $gl_func_getloadavg_done = no; then
10995 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for elf_begin in -lelf" >&5
10996 $as_echo_n "checking for elf_begin in -lelf... " >&6; }
10997 if ${ac_cv_lib_elf_elf_begin+:} false; then :
10998 $as_echo_n "(cached) " >&6
10999 else
11000 ac_check_lib_save_LIBS=$LIBS
11001 LIBS="-lelf $LIBS"
11002 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11003 /* end confdefs.h. */
11004
11005 /* Override any GCC internal prototype to avoid an error.
11006 Use char because int might match the return type of a GCC
11007 builtin and then its argument prototype would still apply. */
11008 #ifdef __cplusplus
11009 extern "C"
11010 #endif
11011 char elf_begin ();
11012 int
11013 main ()
11014 {
11015 return elf_begin ();
11016 ;
11017 return 0;
11018 }
11019 _ACEOF
11020 if ac_fn_c_try_link "$LINENO"; then :
11021 ac_cv_lib_elf_elf_begin=yes
11022 else
11023 ac_cv_lib_elf_elf_begin=no
11024 fi
11025 rm -f core conftest.err conftest.$ac_objext \
11026 conftest$ac_exeext conftest.$ac_ext
11027 LIBS=$ac_check_lib_save_LIBS
11028 fi
11029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_elf_elf_begin" >&5
11030 $as_echo "$ac_cv_lib_elf_elf_begin" >&6; }
11031 if test "x$ac_cv_lib_elf_elf_begin" = xyes; then :
11032 LIBS="-lelf $LIBS"
11033 fi
11034
11035 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kvm_open in -lkvm" >&5
11036 $as_echo_n "checking for kvm_open in -lkvm... " >&6; }
11037 if ${ac_cv_lib_kvm_kvm_open+:} false; then :
11038 $as_echo_n "(cached) " >&6
11039 else
11040 ac_check_lib_save_LIBS=$LIBS
11041 LIBS="-lkvm $LIBS"
11042 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11043 /* end confdefs.h. */
11044
11045 /* Override any GCC internal prototype to avoid an error.
11046 Use char because int might match the return type of a GCC
11047 builtin and then its argument prototype would still apply. */
11048 #ifdef __cplusplus
11049 extern "C"
11050 #endif
11051 char kvm_open ();
11052 int
11053 main ()
11054 {
11055 return kvm_open ();
11056 ;
11057 return 0;
11058 }
11059 _ACEOF
11060 if ac_fn_c_try_link "$LINENO"; then :
11061 ac_cv_lib_kvm_kvm_open=yes
11062 else
11063 ac_cv_lib_kvm_kvm_open=no
11064 fi
11065 rm -f core conftest.err conftest.$ac_objext \
11066 conftest$ac_exeext conftest.$ac_ext
11067 LIBS=$ac_check_lib_save_LIBS
11068 fi
11069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_kvm_kvm_open" >&5
11070 $as_echo "$ac_cv_lib_kvm_kvm_open" >&6; }
11071 if test "x$ac_cv_lib_kvm_kvm_open" = xyes; then :
11072 LIBS="-lkvm $LIBS"
11073 fi
11074
11075 # Check for the 4.4BSD definition of getloadavg.
11076 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getloadavg in -lutil" >&5
11077 $as_echo_n "checking for getloadavg in -lutil... " >&6; }
11078 if ${ac_cv_lib_util_getloadavg+:} false; then :
11079 $as_echo_n "(cached) " >&6
11080 else
11081 ac_check_lib_save_LIBS=$LIBS
11082 LIBS="-lutil $LIBS"
11083 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11084 /* end confdefs.h. */
11085
11086 /* Override any GCC internal prototype to avoid an error.
11087 Use char because int might match the return type of a GCC
11088 builtin and then its argument prototype would still apply. */
11089 #ifdef __cplusplus
11090 extern "C"
11091 #endif
11092 char getloadavg ();
11093 int
11094 main ()
11095 {
11096 return getloadavg ();
11097 ;
11098 return 0;
11099 }
11100 _ACEOF
11101 if ac_fn_c_try_link "$LINENO"; then :
11102 ac_cv_lib_util_getloadavg=yes
11103 else
11104 ac_cv_lib_util_getloadavg=no
11105 fi
11106 rm -f core conftest.err conftest.$ac_objext \
11107 conftest$ac_exeext conftest.$ac_ext
11108 LIBS=$ac_check_lib_save_LIBS
11109 fi
11110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_util_getloadavg" >&5
11111 $as_echo "$ac_cv_lib_util_getloadavg" >&6; }
11112 if test "x$ac_cv_lib_util_getloadavg" = xyes; then :
11113 LIBS="-lutil $LIBS" gl_func_getloadavg_done=yes
11114 fi
11115
11116 fi
11117
11118 if test $gl_func_getloadavg_done = no; then
11119 # There is a commonly available library for RS/6000 AIX.
11120 # Since it is not a standard part of AIX, it might be installed locally.
11121 gl_getloadavg_LIBS=$LIBS
11122 LIBS="-L/usr/local/lib $LIBS"
11123 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getloadavg in -lgetloadavg" >&5
11124 $as_echo_n "checking for getloadavg in -lgetloadavg... " >&6; }
11125 if ${ac_cv_lib_getloadavg_getloadavg+:} false; then :
11126 $as_echo_n "(cached) " >&6
11127 else
11128 ac_check_lib_save_LIBS=$LIBS
11129 LIBS="-lgetloadavg $LIBS"
11130 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11131 /* end confdefs.h. */
11132
11133 /* Override any GCC internal prototype to avoid an error.
11134 Use char because int might match the return type of a GCC
11135 builtin and then its argument prototype would still apply. */
11136 #ifdef __cplusplus
11137 extern "C"
11138 #endif
11139 char getloadavg ();
11140 int
11141 main ()
11142 {
11143 return getloadavg ();
11144 ;
11145 return 0;
11146 }
11147 _ACEOF
11148 if ac_fn_c_try_link "$LINENO"; then :
11149 ac_cv_lib_getloadavg_getloadavg=yes
11150 else
11151 ac_cv_lib_getloadavg_getloadavg=no
11152 fi
11153 rm -f core conftest.err conftest.$ac_objext \
11154 conftest$ac_exeext conftest.$ac_ext
11155 LIBS=$ac_check_lib_save_LIBS
11156 fi
11157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_getloadavg_getloadavg" >&5
11158 $as_echo "$ac_cv_lib_getloadavg_getloadavg" >&6; }
11159 if test "x$ac_cv_lib_getloadavg_getloadavg" = xyes; then :
11160 LIBS="-lgetloadavg $LIBS" gl_func_getloadavg_done=yes
11161 else
11162 LIBS=$gl_getloadavg_LIBS
11163 fi
11164
11165 fi
11166
11167 # Set up the replacement function if necessary.
11168 if test $gl_func_getloadavg_done = no; then
11169 HAVE_GETLOADAVG=0
11170
11171 # Solaris has libkstat which does not require root.
11172 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kstat_open in -lkstat" >&5
11173 $as_echo_n "checking for kstat_open in -lkstat... " >&6; }
11174 if ${ac_cv_lib_kstat_kstat_open+:} false; then :
11175 $as_echo_n "(cached) " >&6
11176 else
11177 ac_check_lib_save_LIBS=$LIBS
11178 LIBS="-lkstat $LIBS"
11179 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11180 /* end confdefs.h. */
11181
11182 /* Override any GCC internal prototype to avoid an error.
11183 Use char because int might match the return type of a GCC
11184 builtin and then its argument prototype would still apply. */
11185 #ifdef __cplusplus
11186 extern "C"
11187 #endif
11188 char kstat_open ();
11189 int
11190 main ()
11191 {
11192 return kstat_open ();
11193 ;
11194 return 0;
11195 }
11196 _ACEOF
11197 if ac_fn_c_try_link "$LINENO"; then :
11198 ac_cv_lib_kstat_kstat_open=yes
11199 else
11200 ac_cv_lib_kstat_kstat_open=no
11201 fi
11202 rm -f core conftest.err conftest.$ac_objext \
11203 conftest$ac_exeext conftest.$ac_ext
11204 LIBS=$ac_check_lib_save_LIBS
11205 fi
11206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_kstat_kstat_open" >&5
11207 $as_echo "$ac_cv_lib_kstat_kstat_open" >&6; }
11208 if test "x$ac_cv_lib_kstat_kstat_open" = xyes; then :
11209 cat >>confdefs.h <<_ACEOF
11210 #define HAVE_LIBKSTAT 1
11211 _ACEOF
11212
11213 LIBS="-lkstat $LIBS"
11214
11215 fi
11216
11217 test $ac_cv_lib_kstat_kstat_open = yes && gl_func_getloadavg_done=yes
11218
11219 # AIX has libperfstat which does not require root
11220 if test $gl_func_getloadavg_done = no; then
11221 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for perfstat_cpu_total in -lperfstat" >&5
11222 $as_echo_n "checking for perfstat_cpu_total in -lperfstat... " >&6; }
11223 if ${ac_cv_lib_perfstat_perfstat_cpu_total+:} false; then :
11224 $as_echo_n "(cached) " >&6
11225 else
11226 ac_check_lib_save_LIBS=$LIBS
11227 LIBS="-lperfstat $LIBS"
11228 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11229 /* end confdefs.h. */
11230
11231 /* Override any GCC internal prototype to avoid an error.
11232 Use char because int might match the return type of a GCC
11233 builtin and then its argument prototype would still apply. */
11234 #ifdef __cplusplus
11235 extern "C"
11236 #endif
11237 char perfstat_cpu_total ();
11238 int
11239 main ()
11240 {
11241 return perfstat_cpu_total ();
11242 ;
11243 return 0;
11244 }
11245 _ACEOF
11246 if ac_fn_c_try_link "$LINENO"; then :
11247 ac_cv_lib_perfstat_perfstat_cpu_total=yes
11248 else
11249 ac_cv_lib_perfstat_perfstat_cpu_total=no
11250 fi
11251 rm -f core conftest.err conftest.$ac_objext \
11252 conftest$ac_exeext conftest.$ac_ext
11253 LIBS=$ac_check_lib_save_LIBS
11254 fi
11255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_perfstat_perfstat_cpu_total" >&5
11256 $as_echo "$ac_cv_lib_perfstat_perfstat_cpu_total" >&6; }
11257 if test "x$ac_cv_lib_perfstat_perfstat_cpu_total" = xyes; then :
11258 cat >>confdefs.h <<_ACEOF
11259 #define HAVE_LIBPERFSTAT 1
11260 _ACEOF
11261
11262 LIBS="-lperfstat $LIBS"
11263
11264 fi
11265
11266 test $ac_cv_lib_perfstat_perfstat_cpu_total = yes && gl_func_getloadavg_done=yes
11267 fi
11268
11269 if test $gl_func_getloadavg_done = no; then
11270 ac_fn_c_check_header_mongrel "$LINENO" "sys/dg_sys_info.h" "ac_cv_header_sys_dg_sys_info_h" "$ac_includes_default"
11271 if test "x$ac_cv_header_sys_dg_sys_info_h" = xyes; then :
11272 gl_func_getloadavg_done=yes
11273
11274 $as_echo "#define DGUX 1" >>confdefs.h
11275
11276 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dg_sys_info in -ldgc" >&5
11277 $as_echo_n "checking for dg_sys_info in -ldgc... " >&6; }
11278 if ${ac_cv_lib_dgc_dg_sys_info+:} false; then :
11279 $as_echo_n "(cached) " >&6
11280 else
11281 ac_check_lib_save_LIBS=$LIBS
11282 LIBS="-ldgc $LIBS"
11283 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11284 /* end confdefs.h. */
11285
11286 /* Override any GCC internal prototype to avoid an error.
11287 Use char because int might match the return type of a GCC
11288 builtin and then its argument prototype would still apply. */
11289 #ifdef __cplusplus
11290 extern "C"
11291 #endif
11292 char dg_sys_info ();
11293 int
11294 main ()
11295 {
11296 return dg_sys_info ();
11297 ;
11298 return 0;
11299 }
11300 _ACEOF
11301 if ac_fn_c_try_link "$LINENO"; then :
11302 ac_cv_lib_dgc_dg_sys_info=yes
11303 else
11304 ac_cv_lib_dgc_dg_sys_info=no
11305 fi
11306 rm -f core conftest.err conftest.$ac_objext \
11307 conftest$ac_exeext conftest.$ac_ext
11308 LIBS=$ac_check_lib_save_LIBS
11309 fi
11310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dgc_dg_sys_info" >&5
11311 $as_echo "$ac_cv_lib_dgc_dg_sys_info" >&6; }
11312 if test "x$ac_cv_lib_dgc_dg_sys_info" = xyes; then :
11313 cat >>confdefs.h <<_ACEOF
11314 #define HAVE_LIBDGC 1
11315 _ACEOF
11316
11317 LIBS="-ldgc $LIBS"
11318
11319 fi
11320
11321 fi
11322
11323
11324 fi
11325 fi
11326 fi
11327
11328
11329 if test "x$gl_save_LIBS" = x; then
11330 GETLOADAVG_LIBS=$LIBS
11331 else
11332 GETLOADAVG_LIBS=`echo "$LIBS" | sed "s!$gl_save_LIBS!!"`
11333 fi
11334 LIBS=$gl_save_LIBS
11335
11336
11337 # Test whether the system declares getloadavg. Solaris has the function
11338 # but declares it in <sys/loadavg.h>, not <stdlib.h>.
11339 for ac_header in sys/loadavg.h
11340 do :
11341 ac_fn_c_check_header_mongrel "$LINENO" "sys/loadavg.h" "ac_cv_header_sys_loadavg_h" "$ac_includes_default"
11342 if test "x$ac_cv_header_sys_loadavg_h" = xyes; then :
11343 cat >>confdefs.h <<_ACEOF
11344 #define HAVE_SYS_LOADAVG_H 1
11345 _ACEOF
11346
11347 fi
11348
11349 done
11350
11351 if test $ac_cv_header_sys_loadavg_h = yes; then
11352 HAVE_SYS_LOADAVG_H=1
11353 else
11354 HAVE_SYS_LOADAVG_H=0
11355 fi
11356 ac_fn_c_check_decl "$LINENO" "getloadavg" "ac_cv_have_decl_getloadavg" "#if HAVE_SYS_LOADAVG_H
11357 /* OpenIndiana has a bug: <sys/time.h> must be included before
11358 <sys/loadavg.h>. */
11359 # include <sys/time.h>
11360 # include <sys/loadavg.h>
11361 #endif
11362 #include <stdlib.h>
11363 "
11364 if test "x$ac_cv_have_decl_getloadavg" = xyes; then :
11365
11366 else
11367 HAVE_DECL_GETLOADAVG=0
11368 fi
11369
11370
11371 if test $HAVE_GETLOADAVG = 0; then
11372
11373
11374
11375
11376
11377
11378
11379
11380 gl_LIBOBJS="$gl_LIBOBJS getloadavg.$ac_objext"
11381
11382
11383 # Figure out what our getloadavg.c needs.
11384
11385
11386
11387 # On HPUX9, an unprivileged user can get load averages this way.
11388 if test $gl_func_getloadavg_done = no; then
11389 for ac_func in pstat_getdynamic
11390 do :
11391 ac_fn_c_check_func "$LINENO" "pstat_getdynamic" "ac_cv_func_pstat_getdynamic"
11392 if test "x$ac_cv_func_pstat_getdynamic" = xyes; then :
11393 cat >>confdefs.h <<_ACEOF
11394 #define HAVE_PSTAT_GETDYNAMIC 1
11395 _ACEOF
11396 gl_func_getloadavg_done=yes
11397 fi
11398 done
11399
11400 fi
11401
11402 # We cannot check for <dwarf.h>, because Solaris 2 does not use dwarf (it
11403 # uses stabs), but it is still SVR4. We cannot check for <elf.h> because
11404 # Irix 4.0.5F has the header but not the library.
11405 if test $gl_func_getloadavg_done = no && test "$ac_cv_lib_elf_elf_begin" = yes \
11406 && test "$ac_cv_lib_kvm_kvm_open" = yes; then
11407 gl_func_getloadavg_done=yes
11408
11409 $as_echo "#define SVR4 1" >>confdefs.h
11410
11411 fi
11412
11413 if test $gl_func_getloadavg_done = no; then
11414 ac_fn_c_check_header_mongrel "$LINENO" "inq_stats/cpustats.h" "ac_cv_header_inq_stats_cpustats_h" "$ac_includes_default"
11415 if test "x$ac_cv_header_inq_stats_cpustats_h" = xyes; then :
11416 gl_func_getloadavg_done=yes
11417
11418 $as_echo "#define UMAX 1" >>confdefs.h
11419
11420
11421 $as_echo "#define UMAX4_3 1" >>confdefs.h
11422
11423 fi
11424
11425
11426 fi
11427
11428 if test $gl_func_getloadavg_done = no; then
11429 ac_fn_c_check_header_mongrel "$LINENO" "sys/cpustats.h" "ac_cv_header_sys_cpustats_h" "$ac_includes_default"
11430 if test "x$ac_cv_header_sys_cpustats_h" = xyes; then :
11431 gl_func_getloadavg_done=yes; $as_echo "#define UMAX 1" >>confdefs.h
11432
11433 fi
11434
11435
11436 fi
11437
11438 if test $gl_func_getloadavg_done = no; then
11439 for ac_header in mach/mach.h
11440 do :
11441 ac_fn_c_check_header_mongrel "$LINENO" "mach/mach.h" "ac_cv_header_mach_mach_h" "$ac_includes_default"
11442 if test "x$ac_cv_header_mach_mach_h" = xyes; then :
11443 cat >>confdefs.h <<_ACEOF
11444 #define HAVE_MACH_MACH_H 1
11445 _ACEOF
11446
11447 fi
11448
11449 done
11450
11451 fi
11452
11453 for ac_header in nlist.h
11454 do :
11455 ac_fn_c_check_header_mongrel "$LINENO" "nlist.h" "ac_cv_header_nlist_h" "$ac_includes_default"
11456 if test "x$ac_cv_header_nlist_h" = xyes; then :
11457 cat >>confdefs.h <<_ACEOF
11458 #define HAVE_NLIST_H 1
11459 _ACEOF
11460 ac_fn_c_check_member "$LINENO" "struct nlist" "n_un.n_name" "ac_cv_member_struct_nlist_n_un_n_name" "#include <nlist.h>
11461 "
11462 if test "x$ac_cv_member_struct_nlist_n_un_n_name" = xyes; then :
11463
11464 cat >>confdefs.h <<_ACEOF
11465 #define HAVE_STRUCT_NLIST_N_UN_N_NAME 1
11466 _ACEOF
11467
11468
11469 fi
11470
11471 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11472 /* end confdefs.h. */
11473 #include <nlist.h>
11474 int
11475 main ()
11476 {
11477 struct nlist x;
11478 #ifdef HAVE_STRUCT_NLIST_N_UN_N_NAME
11479 x.n_un.n_name = "";
11480 #else
11481 x.n_name = "";
11482 #endif
11483 ;
11484 return 0;
11485 }
11486 _ACEOF
11487 if ac_fn_c_try_link "$LINENO"; then :
11488
11489 $as_echo "#define N_NAME_POINTER 1" >>confdefs.h
11490
11491 fi
11492 rm -f core conftest.err conftest.$ac_objext \
11493 conftest$ac_exeext conftest.$ac_ext
11494
11495 fi
11496
11497 done
11498
11499 fi
11500
11501
11502
11503
11504
11505 GNULIB_GETLOADAVG=1
11506
11507
11508
11509
11510
11511 $as_echo "#define GNULIB_TEST_GETLOADAVG 1" >>confdefs.h
11512
11513
11514
11515
11516
11517
11518 ac_found=0
11519 ac_fn_c_check_decl "$LINENO" "program_invocation_name" "ac_cv_have_decl_program_invocation_name" "#include <errno.h>
11520 "
11521 if test "x$ac_cv_have_decl_program_invocation_name" = xyes; then :
11522 ac_have_decl=1
11523 else
11524 ac_have_decl=0
11525 fi
11526
11527 cat >>confdefs.h <<_ACEOF
11528 #define HAVE_DECL_PROGRAM_INVOCATION_NAME $ac_have_decl
11529 _ACEOF
11530 if test $ac_have_decl = 1; then :
11531 ac_found=1
11532 fi
11533
11534 ac_fn_c_check_decl "$LINENO" "program_invocation_short_name" "ac_cv_have_decl_program_invocation_short_name" "#include <errno.h>
11535 "
11536 if test "x$ac_cv_have_decl_program_invocation_short_name" = xyes; then :
11537 ac_have_decl=1
11538 else
11539 ac_have_decl=0
11540 fi
11541
11542 cat >>confdefs.h <<_ACEOF
11543 #define HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME $ac_have_decl
11544 _ACEOF
11545 if test $ac_have_decl = 1; then :
11546 ac_found=1
11547 fi
11548
11549 ac_fn_c_check_decl "$LINENO" "__argv" "ac_cv_have_decl___argv" "#include <stdlib.h>
11550 "
11551 if test "x$ac_cv_have_decl___argv" = xyes; then :
11552 ac_have_decl=1
11553 else
11554 ac_have_decl=0
11555 fi
11556
11557 cat >>confdefs.h <<_ACEOF
11558 #define HAVE_DECL___ARGV $ac_have_decl
11559 _ACEOF
11560 if test $ac_have_decl = 1; then :
11561 ac_found=1
11562 fi
11563
11564
11565 # Incur the cost of this test only if none of the above worked.
11566 if test $ac_found = 0; then
11567 # On OpenBSD 5.1, using the global __progname variable appears to be
11568 # the only way to implement getprogname.
11569 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether __progname is defined in default libraries" >&5
11570 $as_echo_n "checking whether __progname is defined in default libraries... " >&6; }
11571 if ${gl_cv_var___progname+:} false; then :
11572 $as_echo_n "(cached) " >&6
11573 else
11574
11575 gl_cv_var___progname=
11576 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11577 /* end confdefs.h. */
11578 extern char *__progname;
11579 int
11580 main ()
11581 {
11582 return *__progname;
11583
11584 ;
11585 return 0;
11586 }
11587 _ACEOF
11588 if ac_fn_c_try_link "$LINENO"; then :
11589 gl_cv_var___progname=yes
11590
11591 fi
11592 rm -f core conftest.err conftest.$ac_objext \
11593 conftest$ac_exeext conftest.$ac_ext
11594
11595
11596 fi
11597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_var___progname" >&5
11598 $as_echo "$gl_cv_var___progname" >&6; }
11599 if test "$gl_cv_var___progname" = yes; then
11600
11601 $as_echo "#define HAVE_VAR___PROGNAME 1" >>confdefs.h
11602
11603 fi
11604 fi
11605
11606
11607
11608
11609
11610 # Check the system to see if it provides GNU glob. If not, use our
11611 # local version.
11612 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if system libc has GNU glob" >&5
11613 $as_echo_n "checking if system libc has GNU glob... " >&6; }
11614 if ${make_cv_sys_gnu_glob+:} false; then :
11615 $as_echo_n "(cached) " >&6
11616 else
11617 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11618 /* end confdefs.h. */
11619
11620 #include <features.h>
11621 #include <glob.h>
11622 #include <fnmatch.h>
11623 #if !defined _LIBC && defined __GNU_LIBRARY__ && __GNU_LIBRARY__ > 1
11624 # include <gnu-versions.h>
11625 # if _GNU_GLOB_INTERFACE_VERSION == 1 || _GNU_GLOB_INTERFACE_VERSION == 2
11626 gnu glob
11627 # endif
11628 #endif
11629 _ACEOF
11630 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11631 $EGREP "gnu glob" >/dev/null 2>&1; then :
11632 make_cv_sys_gnu_glob=yes
11633 else
11634 make_cv_sys_gnu_glob=no
11635 fi
11636 rm -f conftest*
11637
11638 fi
11639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $make_cv_sys_gnu_glob" >&5
11640 $as_echo "$make_cv_sys_gnu_glob" >&6; }
11641 # Tell automake about this, so it can build the right .c files.
11642 if test "$make_cv_sys_gnu_glob" = yes; then
11643 USE_SYSTEM_GLOB_TRUE=
11644 USE_SYSTEM_GLOB_FALSE='#'
11645 else
11646 USE_SYSTEM_GLOB_TRUE='#'
11647 USE_SYSTEM_GLOB_FALSE=
11648 fi
11649
11650 # Tell build.sh which to use
11651 USE_SYSTEM_GLOB="$make_cv_sys_gnu_glob"
11652
11653
11654
11655
11656 if test $gl_cv_func_malloc_posix = yes; then
11657
11658 $as_echo "#define HAVE_MALLOC_POSIX 1" >>confdefs.h
11659
11660 else
11661 REPLACE_MALLOC=1
11662 fi
11663
11664 if test $REPLACE_MALLOC = 1; then
11665
11666
11667
11668
11669
11670
11671
11672
11673 gl_LIBOBJS="$gl_LIBOBJS malloc.$ac_objext"
11674
11675 fi
11676
11677
11678
11679
11680
11681 GNULIB_MALLOC_POSIX=1
11682
11683
11684
11685
11686
11687 $as_echo "#define GNULIB_TEST_MALLOC_POSIX 1" >>confdefs.h
11688
11689
11690
11691
11692 if test $HAVE_MSVC_INVALID_PARAMETER_HANDLER = 1; then
11693
11694
11695
11696
11697
11698
11699
11700
11701 gl_LIBOBJS="$gl_LIBOBJS msvc-inval.$ac_objext"
11702
11703 fi
11704
11705 if test $HAVE_MSVC_INVALID_PARAMETER_HANDLER = 1; then
11706
11707
11708
11709
11710
11711
11712
11713
11714 gl_LIBOBJS="$gl_LIBOBJS msvc-nothrow.$ac_objext"
11715
11716 fi
11717
11718
11719 cat >>confdefs.h <<_ACEOF
11720 #define GNULIB_MSVC_NOTHROW 1
11721 _ACEOF
11722
11723
11724
11725
11726 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ssize_t" >&5
11727 $as_echo_n "checking for ssize_t... " >&6; }
11728 if ${gt_cv_ssize_t+:} false; then :
11729 $as_echo_n "(cached) " >&6
11730 else
11731 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11732 /* end confdefs.h. */
11733 #include <sys/types.h>
11734 int
11735 main ()
11736 {
11737 int x = sizeof (ssize_t *) + sizeof (ssize_t);
11738 return !x;
11739 ;
11740 return 0;
11741 }
11742 _ACEOF
11743 if ac_fn_c_try_compile "$LINENO"; then :
11744 gt_cv_ssize_t=yes
11745 else
11746 gt_cv_ssize_t=no
11747 fi
11748 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11749 fi
11750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_ssize_t" >&5
11751 $as_echo "$gt_cv_ssize_t" >&6; }
11752 if test $gt_cv_ssize_t = no; then
11753
11754 $as_echo "#define ssize_t int" >>confdefs.h
11755
11756 fi
11757
11758
11759
11760
11761
11762 if test "$ac_cv_header_stdbool_h" = yes; then
11763 case "$host_os" in
11764 solaris*)
11765 if test -z "$GCC"; then
11766 STDBOOL_H='stdbool.h'
11767 else
11768 STDBOOL_H=''
11769 fi
11770 ;;
11771 *)
11772 STDBOOL_H=''
11773 ;;
11774 esac
11775 else
11776 STDBOOL_H='stdbool.h'
11777 fi
11778
11779 if test -n "$STDBOOL_H"; then
11780 GL_GENERATE_STDBOOL_H_TRUE=
11781 GL_GENERATE_STDBOOL_H_FALSE='#'
11782 else
11783 GL_GENERATE_STDBOOL_H_TRUE='#'
11784 GL_GENERATE_STDBOOL_H_FALSE=
11785 fi
11786
11787
11788 if test "$ac_cv_type__Bool" = yes; then
11789 HAVE__BOOL=1
11790 else
11791 HAVE__BOOL=0
11792 fi
11793
11794
11795
11796
11797
11798 STDDEF_H=
11799
11800 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for good max_align_t" >&5
11801 $as_echo_n "checking for good max_align_t... " >&6; }
11802 if ${gl_cv_type_max_align_t+:} false; then :
11803 $as_echo_n "(cached) " >&6
11804 else
11805 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11806 /* end confdefs.h. */
11807 #include <stddef.h>
11808 unsigned int s = sizeof (max_align_t);
11809 #if defined __GNUC__ || defined __IBM__ALIGNOF__
11810 int check1[2 * (__alignof__ (double) <= __alignof__ (max_align_t)) - 1];
11811 int check2[2 * (__alignof__ (long double) <= __alignof__ (max_align_t)) - 1];
11812 #endif
11813
11814 int
11815 main ()
11816 {
11817
11818 ;
11819 return 0;
11820 }
11821 _ACEOF
11822 if ac_fn_c_try_compile "$LINENO"; then :
11823 gl_cv_type_max_align_t=yes
11824 else
11825 gl_cv_type_max_align_t=no
11826 fi
11827 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11828
11829 fi
11830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_type_max_align_t" >&5
11831 $as_echo "$gl_cv_type_max_align_t" >&6; }
11832 if test $gl_cv_type_max_align_t = no; then
11833 HAVE_MAX_ALIGN_T=0
11834 STDDEF_H=stddef.h
11835 fi
11836
11837 if test $gt_cv_c_wchar_t = no; then
11838 HAVE_WCHAR_T=0
11839 STDDEF_H=stddef.h
11840 fi
11841
11842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NULL can be used in arbitrary expressions" >&5
11843 $as_echo_n "checking whether NULL can be used in arbitrary expressions... " >&6; }
11844 if ${gl_cv_decl_null_works+:} false; then :
11845 $as_echo_n "(cached) " >&6
11846 else
11847 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11848 /* end confdefs.h. */
11849 #include <stddef.h>
11850 int test[2 * (sizeof NULL == sizeof (void *)) -1];
11851
11852 int
11853 main ()
11854 {
11855
11856 ;
11857 return 0;
11858 }
11859 _ACEOF
11860 if ac_fn_c_try_compile "$LINENO"; then :
11861 gl_cv_decl_null_works=yes
11862 else
11863 gl_cv_decl_null_works=no
11864 fi
11865 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11866 fi
11867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_decl_null_works" >&5
11868 $as_echo "$gl_cv_decl_null_works" >&6; }
11869 if test $gl_cv_decl_null_works = no; then
11870 REPLACE_NULL=1
11871 STDDEF_H=stddef.h
11872 fi
11873
11874
11875 if test -n "$STDDEF_H"; then
11876 GL_GENERATE_STDDEF_H_TRUE=
11877 GL_GENERATE_STDDEF_H_FALSE='#'
11878 else
11879 GL_GENERATE_STDDEF_H_TRUE='#'
11880 GL_GENERATE_STDDEF_H_FALSE=
11881 fi
11882
11883 if test -n "$STDDEF_H"; then
11884
11885
11886
11887
11888
11889
11890
11891
11892 if test $gl_cv_have_include_next = yes; then
11893 gl_cv_next_stddef_h='<'stddef.h'>'
11894 else
11895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stddef.h>" >&5
11896 $as_echo_n "checking absolute name of <stddef.h>... " >&6; }
11897 if ${gl_cv_next_stddef_h+:} false; then :
11898 $as_echo_n "(cached) " >&6
11899 else
11900
11901
11902
11903 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11904 /* end confdefs.h. */
11905 #include <stddef.h>
11906 _ACEOF
11907 case "$host_os" in
11908 aix*) gl_absname_cpp="$ac_cpp -C" ;;
11909 *) gl_absname_cpp="$ac_cpp" ;;
11910 esac
11911
11912 case "$host_os" in
11913 mingw*)
11914 gl_dirsep_regex='[/\\]'
11915 ;;
11916 *)
11917 gl_dirsep_regex='\/'
11918 ;;
11919 esac
11920 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
11921 gl_header_literal_regex=`echo 'stddef.h' \
11922 | sed -e "$gl_make_literal_regex_sed"`
11923 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
11924 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
11925 s|^/[^/]|//&|
11926 p
11927 q
11928 }'
11929
11930 gl_cv_absolute_stddef_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
11931 sed -n "$gl_absolute_header_sed"`
11932
11933 gl_header=$gl_cv_absolute_stddef_h
11934 gl_cv_next_stddef_h='"'$gl_header'"'
11935
11936
11937 fi
11938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stddef_h" >&5
11939 $as_echo "$gl_cv_next_stddef_h" >&6; }
11940 fi
11941 NEXT_STDDEF_H=$gl_cv_next_stddef_h
11942
11943 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
11944 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
11945 gl_next_as_first_directive='<'stddef.h'>'
11946 else
11947 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
11948 gl_next_as_first_directive=$gl_cv_next_stddef_h
11949 fi
11950 NEXT_AS_FIRST_DIRECTIVE_STDDEF_H=$gl_next_as_first_directive
11951
11952
11953
11954
11955 fi
11956
11957
11958
11959
11960 $as_echo "#define __USE_MINGW_ANSI_STDIO 1" >>confdefs.h
11961
11962
11963
11964
11965
11966
11967
11968
11969
11970
11971 if test $gl_cv_have_include_next = yes; then
11972 gl_cv_next_stdio_h='<'stdio.h'>'
11973 else
11974 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdio.h>" >&5
11975 $as_echo_n "checking absolute name of <stdio.h>... " >&6; }
11976 if ${gl_cv_next_stdio_h+:} false; then :
11977 $as_echo_n "(cached) " >&6
11978 else
11979
11980
11981
11982 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11983 /* end confdefs.h. */
11984 #include <stdio.h>
11985 _ACEOF
11986 case "$host_os" in
11987 aix*) gl_absname_cpp="$ac_cpp -C" ;;
11988 *) gl_absname_cpp="$ac_cpp" ;;
11989 esac
11990
11991 case "$host_os" in
11992 mingw*)
11993 gl_dirsep_regex='[/\\]'
11994 ;;
11995 *)
11996 gl_dirsep_regex='\/'
11997 ;;
11998 esac
11999 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
12000 gl_header_literal_regex=`echo 'stdio.h' \
12001 | sed -e "$gl_make_literal_regex_sed"`
12002 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
12003 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
12004 s|^/[^/]|//&|
12005 p
12006 q
12007 }'
12008
12009 gl_cv_absolute_stdio_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
12010 sed -n "$gl_absolute_header_sed"`
12011
12012 gl_header=$gl_cv_absolute_stdio_h
12013 gl_cv_next_stdio_h='"'$gl_header'"'
12014
12015
12016 fi
12017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdio_h" >&5
12018 $as_echo "$gl_cv_next_stdio_h" >&6; }
12019 fi
12020 NEXT_STDIO_H=$gl_cv_next_stdio_h
12021
12022 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
12023 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
12024 gl_next_as_first_directive='<'stdio.h'>'
12025 else
12026 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
12027 gl_next_as_first_directive=$gl_cv_next_stdio_h
12028 fi
12029 NEXT_AS_FIRST_DIRECTIVE_STDIO_H=$gl_next_as_first_directive
12030
12031
12032
12033
12034
12035 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which flavor of printf attribute matches inttypes macros" >&5
12036 $as_echo_n "checking which flavor of printf attribute matches inttypes macros... " >&6; }
12037 if ${gl_cv_func_printf_attribute_flavor+:} false; then :
12038 $as_echo_n "(cached) " >&6
12039 else
12040 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12041 /* end confdefs.h. */
12042
12043 #define __STDC_FORMAT_MACROS 1
12044 #include <stdio.h>
12045 #include <inttypes.h>
12046 /* For non-mingw systems, compilation will trivially succeed.
12047 For mingw, compilation will succeed for older mingw (system
12048 printf, "I64d") and fail for newer mingw (gnu printf, "lld"). */
12049 #if (defined _WIN32 && ! defined __CYGWIN__) && \
12050 (__GNUC__ > 4 || (__GNUC__ == 4 && __GNUC_MINOR__ >= 4))
12051 extern char PRIdMAX_probe[sizeof PRIdMAX == sizeof "I64d" ? 1 : -1];
12052 #endif
12053
12054 int
12055 main ()
12056 {
12057
12058 ;
12059 return 0;
12060 }
12061 _ACEOF
12062 if ac_fn_c_try_compile "$LINENO"; then :
12063 gl_cv_func_printf_attribute_flavor=system
12064 else
12065 gl_cv_func_printf_attribute_flavor=gnu
12066 fi
12067 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12068 fi
12069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_printf_attribute_flavor" >&5
12070 $as_echo "$gl_cv_func_printf_attribute_flavor" >&6; }
12071 if test "$gl_cv_func_printf_attribute_flavor" = gnu; then
12072
12073 $as_echo "#define GNULIB_PRINTF_ATTRIBUTE_FLAVOR_GNU 1" >>confdefs.h
12074
12075 fi
12076
12077 GNULIB_FSCANF=1
12078
12079
12080 cat >>confdefs.h <<_ACEOF
12081 #define GNULIB_FSCANF 1
12082 _ACEOF
12083
12084
12085 GNULIB_SCANF=1
12086
12087
12088 cat >>confdefs.h <<_ACEOF
12089 #define GNULIB_SCANF 1
12090 _ACEOF
12091
12092
12093 GNULIB_FGETC=1
12094 GNULIB_GETC=1
12095 GNULIB_GETCHAR=1
12096 GNULIB_FGETS=1
12097 GNULIB_FREAD=1
12098
12099
12100 GNULIB_FPRINTF=1
12101 GNULIB_PRINTF=1
12102 GNULIB_VFPRINTF=1
12103 GNULIB_VPRINTF=1
12104 GNULIB_FPUTC=1
12105 GNULIB_PUTC=1
12106 GNULIB_PUTCHAR=1
12107 GNULIB_FPUTS=1
12108 GNULIB_PUTS=1
12109 GNULIB_FWRITE=1
12110
12111
12112
12113
12114
12115
12116
12117
12118
12119
12120
12121
12122
12123
12124
12125
12126
12127 if test $gl_cv_have_include_next = yes; then
12128 gl_cv_next_stdlib_h='<'stdlib.h'>'
12129 else
12130 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdlib.h>" >&5
12131 $as_echo_n "checking absolute name of <stdlib.h>... " >&6; }
12132 if ${gl_cv_next_stdlib_h+:} false; then :
12133 $as_echo_n "(cached) " >&6
12134 else
12135
12136
12137
12138 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12139 /* end confdefs.h. */
12140 #include <stdlib.h>
12141 _ACEOF
12142 case "$host_os" in
12143 aix*) gl_absname_cpp="$ac_cpp -C" ;;
12144 *) gl_absname_cpp="$ac_cpp" ;;
12145 esac
12146
12147 case "$host_os" in
12148 mingw*)
12149 gl_dirsep_regex='[/\\]'
12150 ;;
12151 *)
12152 gl_dirsep_regex='\/'
12153 ;;
12154 esac
12155 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
12156 gl_header_literal_regex=`echo 'stdlib.h' \
12157 | sed -e "$gl_make_literal_regex_sed"`
12158 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
12159 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
12160 s|^/[^/]|//&|
12161 p
12162 q
12163 }'
12164
12165 gl_cv_absolute_stdlib_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
12166 sed -n "$gl_absolute_header_sed"`
12167
12168 gl_header=$gl_cv_absolute_stdlib_h
12169 gl_cv_next_stdlib_h='"'$gl_header'"'
12170
12171
12172 fi
12173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdlib_h" >&5
12174 $as_echo "$gl_cv_next_stdlib_h" >&6; }
12175 fi
12176 NEXT_STDLIB_H=$gl_cv_next_stdlib_h
12177
12178 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
12179 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
12180 gl_next_as_first_directive='<'stdlib.h'>'
12181 else
12182 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
12183 gl_next_as_first_directive=$gl_cv_next_stdlib_h
12184 fi
12185 NEXT_AS_FIRST_DIRECTIVE_STDLIB_H=$gl_next_as_first_directive
12186
12187
12188
12189
12190
12191
12192
12193
12194
12195
12196
12197
12198
12199
12200
12201 for ac_func in stpcpy
12202 do :
12203 ac_fn_c_check_func "$LINENO" "stpcpy" "ac_cv_func_stpcpy"
12204 if test "x$ac_cv_func_stpcpy" = xyes; then :
12205 cat >>confdefs.h <<_ACEOF
12206 #define HAVE_STPCPY 1
12207 _ACEOF
12208
12209 fi
12210 done
12211
12212 if test $ac_cv_func_stpcpy = no; then
12213 HAVE_STPCPY=0
12214 fi
12215
12216 if test $HAVE_STPCPY = 0; then
12217
12218
12219
12220
12221
12222
12223
12224
12225 gl_LIBOBJS="$gl_LIBOBJS stpcpy.$ac_objext"
12226
12227
12228 :
12229
12230 fi
12231
12232
12233
12234
12235
12236 GNULIB_STPCPY=1
12237
12238
12239
12240
12241
12242 $as_echo "#define GNULIB_TEST_STPCPY 1" >>confdefs.h
12243
12244
12245
12246
12247
12248
12249
12250
12251 if test "$ERRNO_H:$REPLACE_STRERROR_0" = :0; then
12252 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working strerror function" >&5
12253 $as_echo_n "checking for working strerror function... " >&6; }
12254 if ${gl_cv_func_working_strerror+:} false; then :
12255 $as_echo_n "(cached) " >&6
12256 else
12257 if test "$cross_compiling" = yes; then :
12258 case "$host_os" in
12259 # Guess yes on glibc systems.
12260 *-gnu* | gnu*) gl_cv_func_working_strerror="guessing yes" ;;
12261 # Guess yes on musl systems.
12262 *-musl*) gl_cv_func_working_strerror="guessing yes" ;;
12263 # If we don't know, obey --enable-cross-guesses.
12264 *) gl_cv_func_working_strerror="$gl_cross_guess_normal" ;;
12265 esac
12266
12267 else
12268 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12269 /* end confdefs.h. */
12270 #include <string.h>
12271
12272 int
12273 main ()
12274 {
12275 if (!*strerror (-2)) return 1;
12276 ;
12277 return 0;
12278 }
12279 _ACEOF
12280 if ac_fn_c_try_run "$LINENO"; then :
12281 gl_cv_func_working_strerror=yes
12282 else
12283 gl_cv_func_working_strerror=no
12284 fi
12285 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12286 conftest.$ac_objext conftest.beam conftest.$ac_ext
12287 fi
12288
12289
12290 fi
12291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_working_strerror" >&5
12292 $as_echo "$gl_cv_func_working_strerror" >&6; }
12293 case "$gl_cv_func_working_strerror" in
12294 *yes) ;;
12295 *)
12296 REPLACE_STRERROR=1
12297 ;;
12298 esac
12299
12300 else
12301 REPLACE_STRERROR=1
12302 fi
12303
12304 if test $REPLACE_STRERROR = 1; then
12305
12306
12307
12308
12309
12310
12311
12312
12313 gl_LIBOBJS="$gl_LIBOBJS strerror.$ac_objext"
12314
12315 fi
12316
12317
12318 cat >>confdefs.h <<_ACEOF
12319 #define GNULIB_STRERROR 1
12320 _ACEOF
12321
12322
12323
12324
12325
12326
12327
12328 GNULIB_STRERROR=1
12329
12330
12331
12332
12333
12334 $as_echo "#define GNULIB_TEST_STRERROR 1" >>confdefs.h
12335
12336
12337
12338
12339
12340 if test -n "$ERRNO_H" || test $REPLACE_STRERROR_0 = 1; then
12341
12342
12343
12344
12345
12346
12347
12348
12349 gl_LIBOBJS="$gl_LIBOBJS strerror-override.$ac_objext"
12350
12351
12352
12353
12354
12355 if test $ac_cv_header_sys_socket_h != yes; then
12356 for ac_header in winsock2.h
12357 do :
12358 ac_fn_c_check_header_mongrel "$LINENO" "winsock2.h" "ac_cv_header_winsock2_h" "$ac_includes_default"
12359 if test "x$ac_cv_header_winsock2_h" = xyes; then :
12360 cat >>confdefs.h <<_ACEOF
12361 #define HAVE_WINSOCK2_H 1
12362 _ACEOF
12363
12364 fi
12365
12366 done
12367
12368 fi
12369 if test "$ac_cv_header_winsock2_h" = yes; then
12370 HAVE_WINSOCK2_H=1
12371 UNISTD_H_HAVE_WINSOCK2_H=1
12372 SYS_IOCTL_H_HAVE_WINSOCK2_H=1
12373 else
12374 HAVE_WINSOCK2_H=0
12375 fi
12376
12377
12378 fi
12379
12380
12381
12382
12383
12384
12385
12386
12387
12388
12389
12390
12391
12392
12393
12394
12395
12396 if test $gl_cv_have_include_next = yes; then
12397 gl_cv_next_unistd_h='<'unistd.h'>'
12398 else
12399 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <unistd.h>" >&5
12400 $as_echo_n "checking absolute name of <unistd.h>... " >&6; }
12401 if ${gl_cv_next_unistd_h+:} false; then :
12402 $as_echo_n "(cached) " >&6
12403 else
12404
12405 if test $ac_cv_header_unistd_h = yes; then
12406
12407
12408
12409
12410 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12411 /* end confdefs.h. */
12412 #include <unistd.h>
12413 _ACEOF
12414 case "$host_os" in
12415 aix*) gl_absname_cpp="$ac_cpp -C" ;;
12416 *) gl_absname_cpp="$ac_cpp" ;;
12417 esac
12418
12419 case "$host_os" in
12420 mingw*)
12421 gl_dirsep_regex='[/\\]'
12422 ;;
12423 *)
12424 gl_dirsep_regex='\/'
12425 ;;
12426 esac
12427 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
12428 gl_header_literal_regex=`echo 'unistd.h' \
12429 | sed -e "$gl_make_literal_regex_sed"`
12430 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
12431 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
12432 s|^/[^/]|//&|
12433 p
12434 q
12435 }'
12436
12437 gl_cv_absolute_unistd_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
12438 sed -n "$gl_absolute_header_sed"`
12439
12440 gl_header=$gl_cv_absolute_unistd_h
12441 gl_cv_next_unistd_h='"'$gl_header'"'
12442 else
12443 gl_cv_next_unistd_h='<'unistd.h'>'
12444 fi
12445
12446
12447 fi
12448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_unistd_h" >&5
12449 $as_echo "$gl_cv_next_unistd_h" >&6; }
12450 fi
12451 NEXT_UNISTD_H=$gl_cv_next_unistd_h
12452
12453 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
12454 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
12455 gl_next_as_first_directive='<'unistd.h'>'
12456 else
12457 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
12458 gl_next_as_first_directive=$gl_cv_next_unistd_h
12459 fi
12460 NEXT_AS_FIRST_DIRECTIVE_UNISTD_H=$gl_next_as_first_directive
12461
12462
12463
12464
12465 if test $ac_cv_header_unistd_h = yes; then
12466 HAVE_UNISTD_H=1
12467 else
12468 HAVE_UNISTD_H=0
12469 fi
12470
12471
12472
12473
12474
12475
12476
12477
12478
12479
12480 :
12481 # End of code from modules
12482
12483
12484
12485
12486
12487
12488
12489
12490
12491 gltests_libdeps=
12492 gltests_ltlibdeps=
12493
12494
12495
12496
12497
12498
12499
12500
12501
12502 gl_source_base='tests'
12503 gltests_WITNESS=IN_`echo "${PACKAGE-$PACKAGE_TARNAME}" | LC_ALL=C tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ | LC_ALL=C sed -e 's/[^A-Z0-9_]/_/g'`_GNULIB_TESTS
12504
12505 gl_module_indicator_condition=$gltests_WITNESS
12506
12507
12508
12509
12510
12511
12512
12513
12514
12515 LIBGNU_LIBDEPS="$gl_libdeps"
12516
12517 LIBGNU_LTLIBDEPS="$gl_ltlibdeps"
12518
12519
12520
12521
12522 if test -n "$ac_tool_prefix"; then
12523 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
12524 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
12525 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12526 $as_echo_n "checking for $ac_word... " >&6; }
12527 if ${ac_cv_prog_RANLIB+:} false; then :
12528 $as_echo_n "(cached) " >&6
12529 else
12530 if test -n "$RANLIB"; then
12531 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
12532 else
12533 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12534 for as_dir in $PATH
12535 do
12536 IFS=$as_save_IFS
12537 test -z "$as_dir" && as_dir=.
12538 for ac_exec_ext in '' $ac_executable_extensions; do
12539 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12540 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
12541 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12542 break 2
12543 fi
12544 done
12545 done
12546 IFS=$as_save_IFS
12547
12548 fi
12549 fi
12550 RANLIB=$ac_cv_prog_RANLIB
12551 if test -n "$RANLIB"; then
12552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
12553 $as_echo "$RANLIB" >&6; }
12554 else
12555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12556 $as_echo "no" >&6; }
12557 fi
12558
12559
12560 fi
12561 if test -z "$ac_cv_prog_RANLIB"; then
12562 ac_ct_RANLIB=$RANLIB
12563 # Extract the first word of "ranlib", so it can be a program name with args.
12564 set dummy ranlib; ac_word=$2
12565 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12566 $as_echo_n "checking for $ac_word... " >&6; }
12567 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
12568 $as_echo_n "(cached) " >&6
12569 else
12570 if test -n "$ac_ct_RANLIB"; then
12571 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
12572 else
12573 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12574 for as_dir in $PATH
12575 do
12576 IFS=$as_save_IFS
12577 test -z "$as_dir" && as_dir=.
12578 for ac_exec_ext in '' $ac_executable_extensions; do
12579 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12580 ac_cv_prog_ac_ct_RANLIB="ranlib"
12581 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12582 break 2
12583 fi
12584 done
12585 done
12586 IFS=$as_save_IFS
12587
12588 fi
12589 fi
12590 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
12591 if test -n "$ac_ct_RANLIB"; then
12592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
12593 $as_echo "$ac_ct_RANLIB" >&6; }
12594 else
12595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12596 $as_echo "no" >&6; }
12597 fi
12598
12599 if test "x$ac_ct_RANLIB" = x; then
12600 RANLIB=":"
12601 else
12602 case $cross_compiling:$ac_tool_warned in
12603 yes:)
12604 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12605 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12606 ac_tool_warned=yes ;;
12607 esac
12608 RANLIB=$ac_ct_RANLIB
12609 fi
12610 else
12611 RANLIB="$ac_cv_prog_RANLIB"
12612 fi
12613
12614 ac_ext=c
12615 ac_cpp='$CPP $CPPFLAGS'
12616 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12617 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12618 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12619 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
12620 $as_echo_n "checking how to run the C preprocessor... " >&6; }
12621 # On Suns, sometimes $CPP names a directory.
12622 if test -n "$CPP" && test -d "$CPP"; then
12623 CPP=
12624 fi
12625 if test -z "$CPP"; then
12626 if ${ac_cv_prog_CPP+:} false; then :
12627 $as_echo_n "(cached) " >&6
12628 else
12629 # Double quotes because CPP needs to be expanded
12630 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
12631 do
12632 ac_preproc_ok=false
12633 for ac_c_preproc_warn_flag in '' yes
12634 do
12635 # Use a header file that comes with gcc, so configuring glibc
12636 # with a fresh cross-compiler works.
12637 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12638 # <limits.h> exists even on freestanding compilers.
12639 # On the NeXT, cc -E runs the code through the compiler's parser,
12640 # not just through cpp. "Syntax error" is here to catch this case.
12641 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12642 /* end confdefs.h. */
12643 #ifdef __STDC__
12644 # include <limits.h>
12645 #else
12646 # include <assert.h>
12647 #endif
12648 Syntax error
12649 _ACEOF
12650 if ac_fn_c_try_cpp "$LINENO"; then :
12651
12652 else
12653 # Broken: fails on valid input.
12654 continue
12655 fi
12656 rm -f conftest.err conftest.i conftest.$ac_ext
12657
12658 # OK, works on sane cases. Now check whether nonexistent headers
12659 # can be detected and how.
12660 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12661 /* end confdefs.h. */
12662 #include <ac_nonexistent.h>
12663 _ACEOF
12664 if ac_fn_c_try_cpp "$LINENO"; then :
12665 # Broken: success on invalid input.
12666 continue
12667 else
12668 # Passes both tests.
12669 ac_preproc_ok=:
12670 break
12671 fi
12672 rm -f conftest.err conftest.i conftest.$ac_ext
12673
12674 done
12675 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12676 rm -f conftest.i conftest.err conftest.$ac_ext
12677 if $ac_preproc_ok; then :
12678 break
12679 fi
12680
12681 done
12682 ac_cv_prog_CPP=$CPP
12683
12684 fi
12685 CPP=$ac_cv_prog_CPP
12686 else
12687 ac_cv_prog_CPP=$CPP
12688 fi
12689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
12690 $as_echo "$CPP" >&6; }
12691 ac_preproc_ok=false
12692 for ac_c_preproc_warn_flag in '' yes
12693 do
12694 # Use a header file that comes with gcc, so configuring glibc
12695 # with a fresh cross-compiler works.
12696 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12697 # <limits.h> exists even on freestanding compilers.
12698 # On the NeXT, cc -E runs the code through the compiler's parser,
12699 # not just through cpp. "Syntax error" is here to catch this case.
12700 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12701 /* end confdefs.h. */
12702 #ifdef __STDC__
12703 # include <limits.h>
12704 #else
12705 # include <assert.h>
12706 #endif
12707 Syntax error
12708 _ACEOF
12709 if ac_fn_c_try_cpp "$LINENO"; then :
12710
12711 else
12712 # Broken: fails on valid input.
12713 continue
12714 fi
12715 rm -f conftest.err conftest.i conftest.$ac_ext
12716
12717 # OK, works on sane cases. Now check whether nonexistent headers
12718 # can be detected and how.
12719 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12720 /* end confdefs.h. */
12721 #include <ac_nonexistent.h>
12722 _ACEOF
12723 if ac_fn_c_try_cpp "$LINENO"; then :
12724 # Broken: success on invalid input.
12725 continue
12726 else
12727 # Passes both tests.
12728 ac_preproc_ok=:
12729 break
12730 fi
12731 rm -f conftest.err conftest.i conftest.$ac_ext
12732
12733 done
12734 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12735 rm -f conftest.i conftest.err conftest.$ac_ext
12736 if $ac_preproc_ok; then :
12737
12738 else
12739 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12740 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12741 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
12742 See \`config.log' for more details" "$LINENO" 5; }
12743 fi
12744
12745 ac_ext=c
12746 ac_cpp='$CPP $CPPFLAGS'
12747 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12748 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12749 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12750
12751 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
12752 $as_echo_n "checking whether ln -s works... " >&6; }
12753 LN_S=$as_ln_s
12754 if test "$LN_S" = "ln -s"; then
12755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12756 $as_echo "yes" >&6; }
12757 else
12758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
12759 $as_echo "no, using $LN_S" >&6; }
12760 fi
12761
12762 # Extract the first word of "ar", so it can be a program name with args.
12763 set dummy ar; ac_word=$2
12764 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12765 $as_echo_n "checking for $ac_word... " >&6; }
12766 if ${ac_cv_prog_AR+:} false; then :
12767 $as_echo_n "(cached) " >&6
12768 else
12769 if test -n "$AR"; then
12770 ac_cv_prog_AR="$AR" # Let the user override the test.
12771 else
12772 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12773 for as_dir in $PATH
12774 do
12775 IFS=$as_save_IFS
12776 test -z "$as_dir" && as_dir=.
12777 for ac_exec_ext in '' $ac_executable_extensions; do
12778 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12779 ac_cv_prog_AR="ar"
12780 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12781 break 2
12782 fi
12783 done
12784 done
12785 IFS=$as_save_IFS
12786
12787 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="ar"
12788 fi
12789 fi
12790 AR=$ac_cv_prog_AR
12791 if test -n "$AR"; then
12792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
12793 $as_echo "$AR" >&6; }
12794 else
12795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12796 $as_echo "no" >&6; }
12797 fi
12798
12799
12800 # Perl is needed for the test suite (only)
12801 # Extract the first word of "perl", so it can be a program name with args.
12802 set dummy perl; ac_word=$2
12803 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12804 $as_echo_n "checking for $ac_word... " >&6; }
12805 if ${ac_cv_prog_PERL+:} false; then :
12806 $as_echo_n "(cached) " >&6
12807 else
12808 if test -n "$PERL"; then
12809 ac_cv_prog_PERL="$PERL" # Let the user override the test.
12810 else
12811 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12812 for as_dir in $PATH
12813 do
12814 IFS=$as_save_IFS
12815 test -z "$as_dir" && as_dir=.
12816 for ac_exec_ext in '' $ac_executable_extensions; do
12817 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12818 ac_cv_prog_PERL="perl"
12819 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12820 break 2
12821 fi
12822 done
12823 done
12824 IFS=$as_save_IFS
12825
12826 test -z "$ac_cv_prog_PERL" && ac_cv_prog_PERL="perl"
12827 fi
12828 fi
12829 PERL=$ac_cv_prog_PERL
12830 if test -n "$PERL"; then
12831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
12832 $as_echo "$PERL" >&6; }
12833 else
12834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12835 $as_echo "no" >&6; }
12836 fi
12837
12838
12839 # GNU grep is needed (OpenBSD)
12840 #AC_CHECK_PROG([ggrep], [grep])
12841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
12842 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
12843 if ${ac_cv_path_GREP+:} false; then :
12844 $as_echo_n "(cached) " >&6
12845 else
12846 if test -z "$GREP"; then
12847 ac_path_GREP_found=false
12848 # Loop through the user's path and test for each of PROGNAME-LIST
12849 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12850 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
12851 do
12852 IFS=$as_save_IFS
12853 test -z "$as_dir" && as_dir=.
12854 for ac_prog in grep ggrep; do
12855 for ac_exec_ext in '' $ac_executable_extensions; do
12856 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
12857 as_fn_executable_p "$ac_path_GREP" || continue
12858 # Check for GNU ac_path_GREP and select it if it is found.
12859 # Check for GNU $ac_path_GREP
12860 case `"$ac_path_GREP" --version 2>&1` in
12861 *GNU*)
12862 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
12863 *)
12864 ac_count=0
12865 $as_echo_n 0123456789 >"conftest.in"
12866 while :
12867 do
12868 cat "conftest.in" "conftest.in" >"conftest.tmp"
12869 mv "conftest.tmp" "conftest.in"
12870 cp "conftest.in" "conftest.nl"
12871 $as_echo 'GREP' >> "conftest.nl"
12872 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
12873 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
12874 as_fn_arith $ac_count + 1 && ac_count=$as_val
12875 if test $ac_count -gt ${ac_path_GREP_max-0}; then
12876 # Best one so far, save it but keep looking for a better one
12877 ac_cv_path_GREP="$ac_path_GREP"
12878 ac_path_GREP_max=$ac_count
12879 fi
12880 # 10*(2^10) chars as input seems more than enough
12881 test $ac_count -gt 10 && break
12882 done
12883 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
12884 esac
12885
12886 $ac_path_GREP_found && break 3
12887 done
12888 done
12889 done
12890 IFS=$as_save_IFS
12891 if test -z "$ac_cv_path_GREP"; then
12892 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
12893 fi
12894 else
12895 ac_cv_path_GREP=$GREP
12896 fi
12897
12898 fi
12899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
12900 $as_echo "$ac_cv_path_GREP" >&6; }
12901 GREP="$ac_cv_path_GREP"
12902
12903
12904
12905 # Ruby 1.9 and RSPec are needed for the debugger test suite (only)
12906 # Extract the first word of "ruby", so it can be a program name with args.
12907 set dummy ruby; ac_word=$2
12908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12909 $as_echo_n "checking for $ac_word... " >&6; }
12910 if ${ac_cv_prog_RUBY+:} false; then :
12911 $as_echo_n "(cached) " >&6
12912 else
12913 if test -n "$RUBY"; then
12914 ac_cv_prog_RUBY="$RUBY" # Let the user override the test.
12915 else
12916 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12917 for as_dir in $PATH
12918 do
12919 IFS=$as_save_IFS
12920 test -z "$as_dir" && as_dir=.
12921 for ac_exec_ext in '' $ac_executable_extensions; do
12922 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12923 ac_cv_prog_RUBY="ruby"
12924 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12925 break 2
12926 fi
12927 done
12928 done
12929 IFS=$as_save_IFS
12930
12931 test -z "$ac_cv_prog_RUBY" && ac_cv_prog_RUBY="none"
12932 fi
12933 fi
12934 RUBY=$ac_cv_prog_RUBY
12935 if test -n "$RUBY"; then
12936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RUBY" >&5
12937 $as_echo "$RUBY" >&6; }
12938 else
12939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12940 $as_echo "no" >&6; }
12941 fi
12942
12943
12944 # Extract the first word of "rspec", so it can be a program name with args.
12945 set dummy rspec; ac_word=$2
12946 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12947 $as_echo_n "checking for $ac_word... " >&6; }
12948 if ${ac_cv_prog_RSPEC+:} false; then :
12949 $as_echo_n "(cached) " >&6
12950 else
12951 if test -n "$RSPEC"; then
12952 ac_cv_prog_RSPEC="$RSPEC" # Let the user override the test.
12953 else
12954 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12955 for as_dir in $PATH
12956 do
12957 IFS=$as_save_IFS
12958 test -z "$as_dir" && as_dir=.
12959 for ac_exec_ext in '' $ac_executable_extensions; do
12960 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12961 ac_cv_prog_RSPEC="rspec"
12962 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12963 break 2
12964 fi
12965 done
12966 done
12967 IFS=$as_save_IFS
12968
12969 test -z "$ac_cv_prog_RSPEC" && ac_cv_prog_RSPEC="none"
12970 fi
12971 fi
12972 RSPEC=$ac_cv_prog_RSPEC
12973 if test -n "$RSPEC"; then
12974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RSPEC" >&5
12975 $as_echo "$RSPEC" >&6; }
12976 else
12977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12978 $as_echo "no" >&6; }
12979 fi
12980
12981
12982
12983 # Needed for w32/Makefile.am
12984 if test -n "$ac_tool_prefix"; then
12985 for ac_prog in ar lib "link -lib"
12986 do
12987 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
12988 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
12989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12990 $as_echo_n "checking for $ac_word... " >&6; }
12991 if ${ac_cv_prog_AR+:} false; then :
12992 $as_echo_n "(cached) " >&6
12993 else
12994 if test -n "$AR"; then
12995 ac_cv_prog_AR="$AR" # Let the user override the test.
12996 else
12997 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12998 for as_dir in $PATH
12999 do
13000 IFS=$as_save_IFS
13001 test -z "$as_dir" && as_dir=.
13002 for ac_exec_ext in '' $ac_executable_extensions; do
13003 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13004 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
13005 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13006 break 2
13007 fi
13008 done
13009 done
13010 IFS=$as_save_IFS
13011
13012 fi
13013 fi
13014 AR=$ac_cv_prog_AR
13015 if test -n "$AR"; then
13016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
13017 $as_echo "$AR" >&6; }
13018 else
13019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13020 $as_echo "no" >&6; }
13021 fi
13022
13023
13024 test -n "$AR" && break
13025 done
13026 fi
13027 if test -z "$AR"; then
13028 ac_ct_AR=$AR
13029 for ac_prog in ar lib "link -lib"
13030 do
13031 # Extract the first word of "$ac_prog", so it can be a program name with args.
13032 set dummy $ac_prog; ac_word=$2
13033 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13034 $as_echo_n "checking for $ac_word... " >&6; }
13035 if ${ac_cv_prog_ac_ct_AR+:} false; then :
13036 $as_echo_n "(cached) " >&6
13037 else
13038 if test -n "$ac_ct_AR"; then
13039 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
13040 else
13041 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13042 for as_dir in $PATH
13043 do
13044 IFS=$as_save_IFS
13045 test -z "$as_dir" && as_dir=.
13046 for ac_exec_ext in '' $ac_executable_extensions; do
13047 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13048 ac_cv_prog_ac_ct_AR="$ac_prog"
13049 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13050 break 2
13051 fi
13052 done
13053 done
13054 IFS=$as_save_IFS
13055
13056 fi
13057 fi
13058 ac_ct_AR=$ac_cv_prog_ac_ct_AR
13059 if test -n "$ac_ct_AR"; then
13060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
13061 $as_echo "$ac_ct_AR" >&6; }
13062 else
13063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13064 $as_echo "no" >&6; }
13065 fi
13066
13067
13068 test -n "$ac_ct_AR" && break
13069 done
13070
13071 if test "x$ac_ct_AR" = x; then
13072 AR="false"
13073 else
13074 case $cross_compiling:$ac_tool_warned in
13075 yes:)
13076 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13077 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13078 ac_tool_warned=yes ;;
13079 esac
13080 AR=$ac_ct_AR
13081 fi
13082 fi
13083
13084 : ${AR=ar}
13085
13086 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the archiver ($AR) interface" >&5
13087 $as_echo_n "checking the archiver ($AR) interface... " >&6; }
13088 if ${am_cv_ar_interface+:} false; then :
13089 $as_echo_n "(cached) " >&6
13090 else
13091 ac_ext=c
13092 ac_cpp='$CPP $CPPFLAGS'
13093 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13094 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13095 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13096
13097 am_cv_ar_interface=ar
13098 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13099 /* end confdefs.h. */
13100 int some_variable = 0;
13101 _ACEOF
13102 if ac_fn_c_try_compile "$LINENO"; then :
13103 am_ar_try='$AR cru libconftest.a conftest.$ac_objext >&5'
13104 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
13105 (eval $am_ar_try) 2>&5
13106 ac_status=$?
13107 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13108 test $ac_status = 0; }
13109 if test "$ac_status" -eq 0; then
13110 am_cv_ar_interface=ar
13111 else
13112 am_ar_try='$AR -NOLOGO -OUT:conftest.lib conftest.$ac_objext >&5'
13113 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
13114 (eval $am_ar_try) 2>&5
13115 ac_status=$?
13116 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13117 test $ac_status = 0; }
13118 if test "$ac_status" -eq 0; then
13119 am_cv_ar_interface=lib
13120 else
13121 am_cv_ar_interface=unknown
13122 fi
13123 fi
13124 rm -f conftest.lib libconftest.a
13125
13126 fi
13127 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13128 ac_ext=c
13129 ac_cpp='$CPP $CPPFLAGS'
13130 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13131 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13132 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13133
13134 fi
13135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_ar_interface" >&5
13136 $as_echo "$am_cv_ar_interface" >&6; }
13137
13138 case $am_cv_ar_interface in
13139 ar)
13140 ;;
13141 lib)
13142 # Microsoft lib, so override with the ar-lib wrapper script.
13143 # FIXME: It is wrong to rewrite AR.
13144 # But if we don't then we get into trouble of one sort or another.
13145 # A longer-term fix would be to have automake use am__AR in this case,
13146 # and then we could set am__AR="$am_aux_dir/ar-lib \$(AR)" or something
13147 # similar.
13148 AR="$am_aux_dir/ar-lib $AR"
13149 ;;
13150 unknown)
13151 as_fn_error $? "could not determine $AR interface" "$LINENO" 5
13152 ;;
13153 esac
13154
13155
13156 # Specialized system macros
13157
13158
13159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing strerror" >&5
13160 $as_echo_n "checking for library containing strerror... " >&6; }
13161 if ${ac_cv_search_strerror+:} false; then :
13162 $as_echo_n "(cached) " >&6
13163 else
13164 ac_func_search_save_LIBS=$LIBS
13165 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13166 /* end confdefs.h. */
13167
13168 /* Override any GCC internal prototype to avoid an error.
13169 Use char because int might match the return type of a GCC
13170 builtin and then its argument prototype would still apply. */
13171 #ifdef __cplusplus
13172 extern "C"
13173 #endif
13174 char strerror ();
13175 int
13176 main ()
13177 {
13178 return strerror ();
13179 ;
13180 return 0;
13181 }
13182 _ACEOF
13183 for ac_lib in '' cposix; do
13184 if test -z "$ac_lib"; then
13185 ac_res="none required"
13186 else
13187 ac_res=-l$ac_lib
13188 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13189 fi
13190 if ac_fn_c_try_link "$LINENO"; then :
13191 ac_cv_search_strerror=$ac_res
13192 fi
13193 rm -f core conftest.err conftest.$ac_objext \
13194 conftest$ac_exeext
13195 if ${ac_cv_search_strerror+:} false; then :
13196 break
13197 fi
13198 done
13199 if ${ac_cv_search_strerror+:} false; then :
13200
13201 else
13202 ac_cv_search_strerror=no
13203 fi
13204 rm conftest.$ac_ext
13205 LIBS=$ac_func_search_save_LIBS
13206 fi
13207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_strerror" >&5
13208 $as_echo "$ac_cv_search_strerror" >&6; }
13209 ac_res=$ac_cv_search_strerror
13210 if test "$ac_res" != no; then :
13211 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13212
13213 fi
13214
13215 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
13216 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
13217 if ${ac_cv_c_bigendian+:} false; then :
13218 $as_echo_n "(cached) " >&6
13219 else
13220 ac_cv_c_bigendian=unknown
13221 # See if we're dealing with a universal compiler.
13222 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13223 /* end confdefs.h. */
13224 #ifndef __APPLE_CC__
13225 not a universal capable compiler
13226 #endif
13227 typedef int dummy;
13228
13229 _ACEOF
13230 if ac_fn_c_try_compile "$LINENO"; then :
13231
13232 # Check for potential -arch flags. It is not universal unless
13233 # there are at least two -arch flags with different values.
13234 ac_arch=
13235 ac_prev=
13236 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
13237 if test -n "$ac_prev"; then
13238 case $ac_word in
13239 i?86 | x86_64 | ppc | ppc64)
13240 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
13241 ac_arch=$ac_word
13242 else
13243 ac_cv_c_bigendian=universal
13244 break
13245 fi
13246 ;;
13247 esac
13248 ac_prev=
13249 elif test "x$ac_word" = "x-arch"; then
13250 ac_prev=arch
13251 fi
13252 done
13253 fi
13254 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13255 if test $ac_cv_c_bigendian = unknown; then
13256 # See if sys/param.h defines the BYTE_ORDER macro.
13257 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13258 /* end confdefs.h. */
13259 #include <sys/types.h>
13260 #include <sys/param.h>
13261
13262 int
13263 main ()
13264 {
13265 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
13266 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
13267 && LITTLE_ENDIAN)
13268 bogus endian macros
13269 #endif
13270
13271 ;
13272 return 0;
13273 }
13274 _ACEOF
13275 if ac_fn_c_try_compile "$LINENO"; then :
13276 # It does; now see whether it defined to BIG_ENDIAN or not.
13277 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13278 /* end confdefs.h. */
13279 #include <sys/types.h>
13280 #include <sys/param.h>
13281
13282 int
13283 main ()
13284 {
13285 #if BYTE_ORDER != BIG_ENDIAN
13286 not big endian
13287 #endif
13288
13289 ;
13290 return 0;
13291 }
13292 _ACEOF
13293 if ac_fn_c_try_compile "$LINENO"; then :
13294 ac_cv_c_bigendian=yes
13295 else
13296 ac_cv_c_bigendian=no
13297 fi
13298 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13299 fi
13300 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13301 fi
13302 if test $ac_cv_c_bigendian = unknown; then
13303 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
13304 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13305 /* end confdefs.h. */
13306 #include <limits.h>
13307
13308 int
13309 main ()
13310 {
13311 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
13312 bogus endian macros
13313 #endif
13314
13315 ;
13316 return 0;
13317 }
13318 _ACEOF
13319 if ac_fn_c_try_compile "$LINENO"; then :
13320 # It does; now see whether it defined to _BIG_ENDIAN or not.
13321 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13322 /* end confdefs.h. */
13323 #include <limits.h>
13324
13325 int
13326 main ()
13327 {
13328 #ifndef _BIG_ENDIAN
13329 not big endian
13330 #endif
13331
13332 ;
13333 return 0;
13334 }
13335 _ACEOF
13336 if ac_fn_c_try_compile "$LINENO"; then :
13337 ac_cv_c_bigendian=yes
13338 else
13339 ac_cv_c_bigendian=no
13340 fi
13341 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13342 fi
13343 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13344 fi
13345 if test $ac_cv_c_bigendian = unknown; then
13346 # Compile a test program.
13347 if test "$cross_compiling" = yes; then :
13348 # Try to guess by grepping values from an object file.
13349 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13350 /* end confdefs.h. */
13351 short int ascii_mm[] =
13352 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
13353 short int ascii_ii[] =
13354 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
13355 int use_ascii (int i) {
13356 return ascii_mm[i] + ascii_ii[i];
13357 }
13358 short int ebcdic_ii[] =
13359 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
13360 short int ebcdic_mm[] =
13361 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
13362 int use_ebcdic (int i) {
13363 return ebcdic_mm[i] + ebcdic_ii[i];
13364 }
13365 extern int foo;
13366
13367 int
13368 main ()
13369 {
13370 return use_ascii (foo) == use_ebcdic (foo);
13371 ;
13372 return 0;
13373 }
13374 _ACEOF
13375 if ac_fn_c_try_compile "$LINENO"; then :
13376 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
13377 ac_cv_c_bigendian=yes
13378 fi
13379 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
13380 if test "$ac_cv_c_bigendian" = unknown; then
13381 ac_cv_c_bigendian=no
13382 else
13383 # finding both strings is unlikely to happen, but who knows?
13384 ac_cv_c_bigendian=unknown
13385 fi
13386 fi
13387 fi
13388 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13389 else
13390 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13391 /* end confdefs.h. */
13392 $ac_includes_default
13393 int
13394 main ()
13395 {
13396
13397 /* Are we little or big endian? From Harbison&Steele. */
13398 union
13399 {
13400 long int l;
13401 char c[sizeof (long int)];
13402 } u;
13403 u.l = 1;
13404 return u.c[sizeof (long int) - 1] == 1;
13405
13406 ;
13407 return 0;
13408 }
13409 _ACEOF
13410 if ac_fn_c_try_run "$LINENO"; then :
13411 ac_cv_c_bigendian=no
13412 else
13413 ac_cv_c_bigendian=yes
13414 fi
13415 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13416 conftest.$ac_objext conftest.beam conftest.$ac_ext
13417 fi
13418
13419 fi
13420 fi
13421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
13422 $as_echo "$ac_cv_c_bigendian" >&6; }
13423 case $ac_cv_c_bigendian in #(
13424 yes)
13425 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
13426 ;; #(
13427 no)
13428 ;; #(
13429 universal)
13430
13431 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
13432
13433 ;; #(
13434 *)
13435 as_fn_error $? "unknown endianness
13436 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
13437 esac
13438
13439
13440
13441 GIT2CL=${GIT2CL-"${am_missing_run}git2cl"}
13442
13443
13444 # Enable gettext, in "external" mode.
13445
13446 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
13447 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
13448 if ${ac_cv_path_SED+:} false; then :
13449 $as_echo_n "(cached) " >&6
13450 else
13451 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
13452 for ac_i in 1 2 3 4 5 6 7; do
13453 ac_script="$ac_script$as_nl$ac_script"
13454 done
13455 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
13456 { ac_script=; unset ac_script;}
13457 if test -z "$SED"; then
13458 ac_path_SED_found=false
13459 # Loop through the user's path and test for each of PROGNAME-LIST
13460 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13461 for as_dir in $PATH
13462 do
13463 IFS=$as_save_IFS
13464 test -z "$as_dir" && as_dir=.
13465 for ac_prog in sed gsed; do
13466 for ac_exec_ext in '' $ac_executable_extensions; do
13467 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
13468 as_fn_executable_p "$ac_path_SED" || continue
13469 # Check for GNU ac_path_SED and select it if it is found.
13470 # Check for GNU $ac_path_SED
13471 case `"$ac_path_SED" --version 2>&1` in
13472 *GNU*)
13473 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
13474 *)
13475 ac_count=0
13476 $as_echo_n 0123456789 >"conftest.in"
13477 while :
13478 do
13479 cat "conftest.in" "conftest.in" >"conftest.tmp"
13480 mv "conftest.tmp" "conftest.in"
13481 cp "conftest.in" "conftest.nl"
13482 $as_echo '' >> "conftest.nl"
13483 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
13484 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
13485 as_fn_arith $ac_count + 1 && ac_count=$as_val
13486 if test $ac_count -gt ${ac_path_SED_max-0}; then
13487 # Best one so far, save it but keep looking for a better one
13488 ac_cv_path_SED="$ac_path_SED"
13489 ac_path_SED_max=$ac_count
13490 fi
13491 # 10*(2^10) chars as input seems more than enough
13492 test $ac_count -gt 10 && break
13493 done
13494 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
13495 esac
13496
13497 $ac_path_SED_found && break 3
13498 done
13499 done
13500 done
13501 IFS=$as_save_IFS
13502 if test -z "$ac_cv_path_SED"; then
13503 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
13504 fi
13505 else
13506 ac_cv_path_SED=$SED
13507 fi
13508
13509 fi
13510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
13511 $as_echo "$ac_cv_path_SED" >&6; }
13512 SED="$ac_cv_path_SED"
13513 rm -f conftest.sed
13514
13515
13516 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
13517 $as_echo_n "checking whether NLS is requested... " >&6; }
13518 # Check whether --enable-nls was given.
13519 if test "${enable_nls+set}" = set; then :
13520 enableval=$enable_nls; USE_NLS=$enableval
13521 else
13522 USE_NLS=yes
13523 fi
13524
13525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
13526 $as_echo "$USE_NLS" >&6; }
13527
13528
13529
13530
13531 GETTEXT_MACRO_VERSION=0.19
13532
13533
13534
13535
13536 # Prepare PATH_SEPARATOR.
13537 # The user is always right.
13538 if test "${PATH_SEPARATOR+set}" != set; then
13539 # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which
13540 # contains only /bin. Note that ksh looks also at the FPATH variable,
13541 # so we have to set that as well for the test.
13542 PATH_SEPARATOR=:
13543 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
13544 && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
13545 || PATH_SEPARATOR=';'
13546 }
13547 fi
13548
13549 # Find out how to test for executable files. Don't use a zero-byte file,
13550 # as systems may use methods other than mode bits to determine executability.
13551 cat >conf$$.file <<_ASEOF
13552 #! /bin/sh
13553 exit 0
13554 _ASEOF
13555 chmod +x conf$$.file
13556 if test -x conf$$.file >/dev/null 2>&1; then
13557 ac_executable_p="test -x"
13558 else
13559 ac_executable_p="test -f"
13560 fi
13561 rm -f conf$$.file
13562
13563 # Extract the first word of "msgfmt", so it can be a program name with args.
13564 set dummy msgfmt; ac_word=$2
13565 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13566 $as_echo_n "checking for $ac_word... " >&6; }
13567 if ${ac_cv_path_MSGFMT+:} false; then :
13568 $as_echo_n "(cached) " >&6
13569 else
13570 case "$MSGFMT" in
13571 [\\/]* | ?:[\\/]*)
13572 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
13573 ;;
13574 *)
13575 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
13576 for ac_dir in $PATH; do
13577 IFS="$ac_save_IFS"
13578 test -z "$ac_dir" && ac_dir=.
13579 for ac_exec_ext in '' $ac_executable_extensions; do
13580 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
13581 echo "$as_me: trying $ac_dir/$ac_word..." >&5
13582 if $ac_dir/$ac_word --statistics /dev/null >&5 2>&1 &&
13583 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
13584 ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
13585 break 2
13586 fi
13587 fi
13588 done
13589 done
13590 IFS="$ac_save_IFS"
13591 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
13592 ;;
13593 esac
13594 fi
13595 MSGFMT="$ac_cv_path_MSGFMT"
13596 if test "$MSGFMT" != ":"; then
13597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
13598 $as_echo "$MSGFMT" >&6; }
13599 else
13600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13601 $as_echo "no" >&6; }
13602 fi
13603
13604 # Extract the first word of "gmsgfmt", so it can be a program name with args.
13605 set dummy gmsgfmt; ac_word=$2
13606 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13607 $as_echo_n "checking for $ac_word... " >&6; }
13608 if ${ac_cv_path_GMSGFMT+:} false; then :
13609 $as_echo_n "(cached) " >&6
13610 else
13611 case $GMSGFMT in
13612 [\\/]* | ?:[\\/]*)
13613 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
13614 ;;
13615 *)
13616 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13617 for as_dir in $PATH
13618 do
13619 IFS=$as_save_IFS
13620 test -z "$as_dir" && as_dir=.
13621 for ac_exec_ext in '' $ac_executable_extensions; do
13622 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13623 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
13624 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13625 break 2
13626 fi
13627 done
13628 done
13629 IFS=$as_save_IFS
13630
13631 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
13632 ;;
13633 esac
13634 fi
13635 GMSGFMT=$ac_cv_path_GMSGFMT
13636 if test -n "$GMSGFMT"; then
13637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5
13638 $as_echo "$GMSGFMT" >&6; }
13639 else
13640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13641 $as_echo "no" >&6; }
13642 fi
13643
13644
13645
13646 case `$MSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
13647 '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) MSGFMT_015=: ;;
13648 *) MSGFMT_015=$MSGFMT ;;
13649 esac
13650
13651 case `$GMSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
13652 '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) GMSGFMT_015=: ;;
13653 *) GMSGFMT_015=$GMSGFMT ;;
13654 esac
13655
13656
13657
13658 # Prepare PATH_SEPARATOR.
13659 # The user is always right.
13660 if test "${PATH_SEPARATOR+set}" != set; then
13661 # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which
13662 # contains only /bin. Note that ksh looks also at the FPATH variable,
13663 # so we have to set that as well for the test.
13664 PATH_SEPARATOR=:
13665 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
13666 && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
13667 || PATH_SEPARATOR=';'
13668 }
13669 fi
13670
13671 # Find out how to test for executable files. Don't use a zero-byte file,
13672 # as systems may use methods other than mode bits to determine executability.
13673 cat >conf$$.file <<_ASEOF
13674 #! /bin/sh
13675 exit 0
13676 _ASEOF
13677 chmod +x conf$$.file
13678 if test -x conf$$.file >/dev/null 2>&1; then
13679 ac_executable_p="test -x"
13680 else
13681 ac_executable_p="test -f"
13682 fi
13683 rm -f conf$$.file
13684
13685 # Extract the first word of "xgettext", so it can be a program name with args.
13686 set dummy xgettext; ac_word=$2
13687 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13688 $as_echo_n "checking for $ac_word... " >&6; }
13689 if ${ac_cv_path_XGETTEXT+:} false; then :
13690 $as_echo_n "(cached) " >&6
13691 else
13692 case "$XGETTEXT" in
13693 [\\/]* | ?:[\\/]*)
13694 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
13695 ;;
13696 *)
13697 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
13698 for ac_dir in $PATH; do
13699 IFS="$ac_save_IFS"
13700 test -z "$ac_dir" && ac_dir=.
13701 for ac_exec_ext in '' $ac_executable_extensions; do
13702 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
13703 echo "$as_me: trying $ac_dir/$ac_word..." >&5
13704 if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >&5 2>&1 &&
13705 (if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
13706 ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
13707 break 2
13708 fi
13709 fi
13710 done
13711 done
13712 IFS="$ac_save_IFS"
13713 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
13714 ;;
13715 esac
13716 fi
13717 XGETTEXT="$ac_cv_path_XGETTEXT"
13718 if test "$XGETTEXT" != ":"; then
13719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
13720 $as_echo "$XGETTEXT" >&6; }
13721 else
13722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13723 $as_echo "no" >&6; }
13724 fi
13725
13726 rm -f messages.po
13727
13728 case `$XGETTEXT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
13729 '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) XGETTEXT_015=: ;;
13730 *) XGETTEXT_015=$XGETTEXT ;;
13731 esac
13732
13733
13734
13735 # Prepare PATH_SEPARATOR.
13736 # The user is always right.
13737 if test "${PATH_SEPARATOR+set}" != set; then
13738 # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which
13739 # contains only /bin. Note that ksh looks also at the FPATH variable,
13740 # so we have to set that as well for the test.
13741 PATH_SEPARATOR=:
13742 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
13743 && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
13744 || PATH_SEPARATOR=';'
13745 }
13746 fi
13747
13748 # Find out how to test for executable files. Don't use a zero-byte file,
13749 # as systems may use methods other than mode bits to determine executability.
13750 cat >conf$$.file <<_ASEOF
13751 #! /bin/sh
13752 exit 0
13753 _ASEOF
13754 chmod +x conf$$.file
13755 if test -x conf$$.file >/dev/null 2>&1; then
13756 ac_executable_p="test -x"
13757 else
13758 ac_executable_p="test -f"
13759 fi
13760 rm -f conf$$.file
13761
13762 # Extract the first word of "msgmerge", so it can be a program name with args.
13763 set dummy msgmerge; ac_word=$2
13764 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13765 $as_echo_n "checking for $ac_word... " >&6; }
13766 if ${ac_cv_path_MSGMERGE+:} false; then :
13767 $as_echo_n "(cached) " >&6
13768 else
13769 case "$MSGMERGE" in
13770 [\\/]* | ?:[\\/]*)
13771 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
13772 ;;
13773 *)
13774 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
13775 for ac_dir in $PATH; do
13776 IFS="$ac_save_IFS"
13777 test -z "$ac_dir" && ac_dir=.
13778 for ac_exec_ext in '' $ac_executable_extensions; do
13779 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
13780 echo "$as_me: trying $ac_dir/$ac_word..." >&5
13781 if $ac_dir/$ac_word --update -q /dev/null /dev/null >&5 2>&1; then
13782 ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
13783 break 2
13784 fi
13785 fi
13786 done
13787 done
13788 IFS="$ac_save_IFS"
13789 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
13790 ;;
13791 esac
13792 fi
13793 MSGMERGE="$ac_cv_path_MSGMERGE"
13794 if test "$MSGMERGE" != ":"; then
13795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
13796 $as_echo "$MSGMERGE" >&6; }
13797 else
13798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13799 $as_echo "no" >&6; }
13800 fi
13801
13802
13803 test -n "$localedir" || localedir='${datadir}/locale'
13804
13805
13806 test -n "${XGETTEXT_EXTRA_OPTIONS+set}" || XGETTEXT_EXTRA_OPTIONS=
13807
13808
13809 ac_config_commands="$ac_config_commands po-directories"
13810
13811
13812
13813 if test "X$prefix" = "XNONE"; then
13814 acl_final_prefix="$ac_default_prefix"
13815 else
13816 acl_final_prefix="$prefix"
13817 fi
13818 if test "X$exec_prefix" = "XNONE"; then
13819 acl_final_exec_prefix='${prefix}'
13820 else
13821 acl_final_exec_prefix="$exec_prefix"
13822 fi
13823 acl_save_prefix="$prefix"
13824 prefix="$acl_final_prefix"
13825 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
13826 prefix="$acl_save_prefix"
13827
13828
13829
13830 # Check whether --with-gnu-ld was given.
13831 if test "${with_gnu_ld+set}" = set; then :
13832 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
13833 else
13834 with_gnu_ld=no
13835 fi
13836
13837 # Prepare PATH_SEPARATOR.
13838 # The user is always right.
13839 if test "${PATH_SEPARATOR+set}" != set; then
13840 # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which
13841 # contains only /bin. Note that ksh looks also at the FPATH variable,
13842 # so we have to set that as well for the test.
13843 PATH_SEPARATOR=:
13844 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
13845 && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
13846 || PATH_SEPARATOR=';'
13847 }
13848 fi
13849
13850 ac_prog=ld
13851 if test "$GCC" = yes; then
13852 # Check if gcc -print-prog-name=ld gives a path.
13853 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
13854 $as_echo_n "checking for ld used by $CC... " >&6; }
13855 case $host in
13856 *-*-mingw*)
13857 # gcc leaves a trailing carriage return which upsets mingw
13858 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
13859 *)
13860 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
13861 esac
13862 case $ac_prog in
13863 # Accept absolute paths.
13864 [\\/]* | ?:[\\/]*)
13865 re_direlt='/[^/][^/]*/\.\./'
13866 # Canonicalize the pathname of ld
13867 ac_prog=`echo "$ac_prog"| sed 's%\\\\%/%g'`
13868 while echo "$ac_prog" | grep "$re_direlt" > /dev/null 2>&1; do
13869 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
13870 done
13871 test -z "$LD" && LD="$ac_prog"
13872 ;;
13873 "")
13874 # If it fails, then pretend we aren't using GCC.
13875 ac_prog=ld
13876 ;;
13877 *)
13878 # If it is relative, then search for the first ld in PATH.
13879 with_gnu_ld=unknown
13880 ;;
13881 esac
13882 elif test "$with_gnu_ld" = yes; then
13883 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
13884 $as_echo_n "checking for GNU ld... " >&6; }
13885 else
13886 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
13887 $as_echo_n "checking for non-GNU ld... " >&6; }
13888 fi
13889 if ${acl_cv_path_LD+:} false; then :
13890 $as_echo_n "(cached) " >&6
13891 else
13892 if test -z "$LD"; then
13893 acl_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
13894 for ac_dir in $PATH; do
13895 IFS="$acl_save_ifs"
13896 test -z "$ac_dir" && ac_dir=.
13897 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
13898 acl_cv_path_LD="$ac_dir/$ac_prog"
13899 # Check to see if the program is GNU ld. I'd rather use --version,
13900 # but apparently some variants of GNU ld only accept -v.
13901 # Break only if it was the GNU/non-GNU ld that we prefer.
13902 case `"$acl_cv_path_LD" -v 2>&1 </dev/null` in
13903 *GNU* | *'with BFD'*)
13904 test "$with_gnu_ld" != no && break
13905 ;;
13906 *)
13907 test "$with_gnu_ld" != yes && break
13908 ;;
13909 esac
13910 fi
13911 done
13912 IFS="$acl_save_ifs"
13913 else
13914 acl_cv_path_LD="$LD" # Let the user override the test with a path.
13915 fi
13916 fi
13917
13918 LD="$acl_cv_path_LD"
13919 if test -n "$LD"; then
13920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
13921 $as_echo "$LD" >&6; }
13922 else
13923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13924 $as_echo "no" >&6; }
13925 fi
13926 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
13927 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
13928 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
13929 if ${acl_cv_prog_gnu_ld+:} false; then :
13930 $as_echo_n "(cached) " >&6
13931 else
13932 # I'd rather use --version here, but apparently some GNU lds only accept -v.
13933 case `$LD -v 2>&1 </dev/null` in
13934 *GNU* | *'with BFD'*)
13935 acl_cv_prog_gnu_ld=yes
13936 ;;
13937 *)
13938 acl_cv_prog_gnu_ld=no
13939 ;;
13940 esac
13941 fi
13942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
13943 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
13944 with_gnu_ld=$acl_cv_prog_gnu_ld
13945
13946
13947
13948
13949 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
13950 $as_echo_n "checking for shared library run path origin... " >&6; }
13951 if ${acl_cv_rpath+:} false; then :
13952 $as_echo_n "(cached) " >&6
13953 else
13954
13955 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
13956 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
13957 . ./conftest.sh
13958 rm -f ./conftest.sh
13959 acl_cv_rpath=done
13960
13961 fi
13962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
13963 $as_echo "$acl_cv_rpath" >&6; }
13964 wl="$acl_cv_wl"
13965 acl_libext="$acl_cv_libext"
13966 acl_shlibext="$acl_cv_shlibext"
13967 acl_libname_spec="$acl_cv_libname_spec"
13968 acl_library_names_spec="$acl_cv_library_names_spec"
13969 acl_hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
13970 acl_hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
13971 acl_hardcode_direct="$acl_cv_hardcode_direct"
13972 acl_hardcode_minus_L="$acl_cv_hardcode_minus_L"
13973 # Check whether --enable-rpath was given.
13974 if test "${enable_rpath+set}" = set; then :
13975 enableval=$enable_rpath; :
13976 else
13977 enable_rpath=yes
13978 fi
13979
13980
13981
13982
13983 acl_libdirstem=lib
13984 acl_libdirstem2=
13985 case "$host_os" in
13986 solaris*)
13987 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 64-bit host" >&5
13988 $as_echo_n "checking for 64-bit host... " >&6; }
13989 if ${gl_cv_solaris_64bit+:} false; then :
13990 $as_echo_n "(cached) " >&6
13991 else
13992 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13993 /* end confdefs.h. */
13994
13995 #ifdef _LP64
13996 sixtyfour bits
13997 #endif
13998
13999 _ACEOF
14000 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14001 $EGREP "sixtyfour bits" >/dev/null 2>&1; then :
14002 gl_cv_solaris_64bit=yes
14003 else
14004 gl_cv_solaris_64bit=no
14005 fi
14006 rm -f conftest*
14007
14008
14009 fi
14010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_solaris_64bit" >&5
14011 $as_echo "$gl_cv_solaris_64bit" >&6; }
14012 if test $gl_cv_solaris_64bit = yes; then
14013 acl_libdirstem=lib/64
14014 case "$host_cpu" in
14015 sparc*) acl_libdirstem2=lib/sparcv9 ;;
14016 i*86 | x86_64) acl_libdirstem2=lib/amd64 ;;
14017 esac
14018 fi
14019 ;;
14020 *)
14021 searchpath=`(LC_ALL=C $CC -print-search-dirs) 2>/dev/null | sed -n -e 's,^libraries: ,,p' | sed -e 's,^=,,'`
14022 if test -n "$searchpath"; then
14023 acl_save_IFS="${IFS= }"; IFS=":"
14024 for searchdir in $searchpath; do
14025 if test -d "$searchdir"; then
14026 case "$searchdir" in
14027 */lib64/ | */lib64 ) acl_libdirstem=lib64 ;;
14028 */../ | */.. )
14029 # Better ignore directories of this form. They are misleading.
14030 ;;
14031 *) searchdir=`cd "$searchdir" && pwd`
14032 case "$searchdir" in
14033 */lib64 ) acl_libdirstem=lib64 ;;
14034 esac ;;
14035 esac
14036 fi
14037 done
14038 IFS="$acl_save_IFS"
14039 fi
14040 ;;
14041 esac
14042 test -n "$acl_libdirstem2" || acl_libdirstem2="$acl_libdirstem"
14043
14044
14045
14046
14047
14048
14049
14050
14051
14052
14053
14054
14055 use_additional=yes
14056
14057 acl_save_prefix="$prefix"
14058 prefix="$acl_final_prefix"
14059 acl_save_exec_prefix="$exec_prefix"
14060 exec_prefix="$acl_final_exec_prefix"
14061
14062 eval additional_includedir=\"$includedir\"
14063 eval additional_libdir=\"$libdir\"
14064
14065 exec_prefix="$acl_save_exec_prefix"
14066 prefix="$acl_save_prefix"
14067
14068
14069 # Check whether --with-libiconv-prefix was given.
14070 if test "${with_libiconv_prefix+set}" = set; then :
14071 withval=$with_libiconv_prefix;
14072 if test "X$withval" = "Xno"; then
14073 use_additional=no
14074 else
14075 if test "X$withval" = "X"; then
14076
14077 acl_save_prefix="$prefix"
14078 prefix="$acl_final_prefix"
14079 acl_save_exec_prefix="$exec_prefix"
14080 exec_prefix="$acl_final_exec_prefix"
14081
14082 eval additional_includedir=\"$includedir\"
14083 eval additional_libdir=\"$libdir\"
14084
14085 exec_prefix="$acl_save_exec_prefix"
14086 prefix="$acl_save_prefix"
14087
14088 else
14089 additional_includedir="$withval/include"
14090 additional_libdir="$withval/$acl_libdirstem"
14091 if test "$acl_libdirstem2" != "$acl_libdirstem" \
14092 && ! test -d "$withval/$acl_libdirstem"; then
14093 additional_libdir="$withval/$acl_libdirstem2"
14094 fi
14095 fi
14096 fi
14097
14098 fi
14099
14100 LIBICONV=
14101 LTLIBICONV=
14102 INCICONV=
14103 LIBICONV_PREFIX=
14104 HAVE_LIBICONV=
14105 rpathdirs=
14106 ltrpathdirs=
14107 names_already_handled=
14108 names_next_round='iconv '
14109 while test -n "$names_next_round"; do
14110 names_this_round="$names_next_round"
14111 names_next_round=
14112 for name in $names_this_round; do
14113 already_handled=
14114 for n in $names_already_handled; do
14115 if test "$n" = "$name"; then
14116 already_handled=yes
14117 break
14118 fi
14119 done
14120 if test -z "$already_handled"; then
14121 names_already_handled="$names_already_handled $name"
14122 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./+-|ABCDEFGHIJKLMNOPQRSTUVWXYZ____|'`
14123 eval value=\"\$HAVE_LIB$uppername\"
14124 if test -n "$value"; then
14125 if test "$value" = yes; then
14126 eval value=\"\$LIB$uppername\"
14127 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
14128 eval value=\"\$LTLIB$uppername\"
14129 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
14130 else
14131 :
14132 fi
14133 else
14134 found_dir=
14135 found_la=
14136 found_so=
14137 found_a=
14138 eval libname=\"$acl_libname_spec\" # typically: libname=lib$name
14139 if test -n "$acl_shlibext"; then
14140 shrext=".$acl_shlibext" # typically: shrext=.so
14141 else
14142 shrext=
14143 fi
14144 if test $use_additional = yes; then
14145 dir="$additional_libdir"
14146 if test -n "$acl_shlibext"; then
14147 if test -f "$dir/$libname$shrext"; then
14148 found_dir="$dir"
14149 found_so="$dir/$libname$shrext"
14150 else
14151 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
14152 ver=`(cd "$dir" && \
14153 for f in "$libname$shrext".*; do echo "$f"; done \
14154 | sed -e "s,^$libname$shrext\\\\.,," \
14155 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
14156 | sed 1q ) 2>/dev/null`
14157 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
14158 found_dir="$dir"
14159 found_so="$dir/$libname$shrext.$ver"
14160 fi
14161 else
14162 eval library_names=\"$acl_library_names_spec\"
14163 for f in $library_names; do
14164 if test -f "$dir/$f"; then
14165 found_dir="$dir"
14166 found_so="$dir/$f"
14167 break
14168 fi
14169 done
14170 fi
14171 fi
14172 fi
14173 if test "X$found_dir" = "X"; then
14174 if test -f "$dir/$libname.$acl_libext"; then
14175 found_dir="$dir"
14176 found_a="$dir/$libname.$acl_libext"
14177 fi
14178 fi
14179 if test "X$found_dir" != "X"; then
14180 if test -f "$dir/$libname.la"; then
14181 found_la="$dir/$libname.la"
14182 fi
14183 fi
14184 fi
14185 if test "X$found_dir" = "X"; then
14186 for x in $LDFLAGS $LTLIBICONV; do
14187
14188 acl_save_prefix="$prefix"
14189 prefix="$acl_final_prefix"
14190 acl_save_exec_prefix="$exec_prefix"
14191 exec_prefix="$acl_final_exec_prefix"
14192 eval x=\"$x\"
14193 exec_prefix="$acl_save_exec_prefix"
14194 prefix="$acl_save_prefix"
14195
14196 case "$x" in
14197 -L*)
14198 dir=`echo "X$x" | sed -e 's/^X-L//'`
14199 if test -n "$acl_shlibext"; then
14200 if test -f "$dir/$libname$shrext"; then
14201 found_dir="$dir"
14202 found_so="$dir/$libname$shrext"
14203 else
14204 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
14205 ver=`(cd "$dir" && \
14206 for f in "$libname$shrext".*; do echo "$f"; done \
14207 | sed -e "s,^$libname$shrext\\\\.,," \
14208 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
14209 | sed 1q ) 2>/dev/null`
14210 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
14211 found_dir="$dir"
14212 found_so="$dir/$libname$shrext.$ver"
14213 fi
14214 else
14215 eval library_names=\"$acl_library_names_spec\"
14216 for f in $library_names; do
14217 if test -f "$dir/$f"; then
14218 found_dir="$dir"
14219 found_so="$dir/$f"
14220 break
14221 fi
14222 done
14223 fi
14224 fi
14225 fi
14226 if test "X$found_dir" = "X"; then
14227 if test -f "$dir/$libname.$acl_libext"; then
14228 found_dir="$dir"
14229 found_a="$dir/$libname.$acl_libext"
14230 fi
14231 fi
14232 if test "X$found_dir" != "X"; then
14233 if test -f "$dir/$libname.la"; then
14234 found_la="$dir/$libname.la"
14235 fi
14236 fi
14237 ;;
14238 esac
14239 if test "X$found_dir" != "X"; then
14240 break
14241 fi
14242 done
14243 fi
14244 if test "X$found_dir" != "X"; then
14245 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
14246 if test "X$found_so" != "X"; then
14247 if test "$enable_rpath" = no \
14248 || test "X$found_dir" = "X/usr/$acl_libdirstem" \
14249 || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then
14250 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
14251 else
14252 haveit=
14253 for x in $ltrpathdirs; do
14254 if test "X$x" = "X$found_dir"; then
14255 haveit=yes
14256 break
14257 fi
14258 done
14259 if test -z "$haveit"; then
14260 ltrpathdirs="$ltrpathdirs $found_dir"
14261 fi
14262 if test "$acl_hardcode_direct" = yes; then
14263 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
14264 else
14265 if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
14266 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
14267 haveit=
14268 for x in $rpathdirs; do
14269 if test "X$x" = "X$found_dir"; then
14270 haveit=yes
14271 break
14272 fi
14273 done
14274 if test -z "$haveit"; then
14275 rpathdirs="$rpathdirs $found_dir"
14276 fi
14277 else
14278 haveit=
14279 for x in $LDFLAGS $LIBICONV; do
14280
14281 acl_save_prefix="$prefix"
14282 prefix="$acl_final_prefix"
14283 acl_save_exec_prefix="$exec_prefix"
14284 exec_prefix="$acl_final_exec_prefix"
14285 eval x=\"$x\"
14286 exec_prefix="$acl_save_exec_prefix"
14287 prefix="$acl_save_prefix"
14288
14289 if test "X$x" = "X-L$found_dir"; then
14290 haveit=yes
14291 break
14292 fi
14293 done
14294 if test -z "$haveit"; then
14295 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
14296 fi
14297 if test "$acl_hardcode_minus_L" != no; then
14298 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
14299 else
14300 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
14301 fi
14302 fi
14303 fi
14304 fi
14305 else
14306 if test "X$found_a" != "X"; then
14307 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
14308 else
14309 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
14310 fi
14311 fi
14312 additional_includedir=
14313 case "$found_dir" in
14314 */$acl_libdirstem | */$acl_libdirstem/)
14315 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
14316 if test "$name" = 'iconv'; then
14317 LIBICONV_PREFIX="$basedir"
14318 fi
14319 additional_includedir="$basedir/include"
14320 ;;
14321 */$acl_libdirstem2 | */$acl_libdirstem2/)
14322 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
14323 if test "$name" = 'iconv'; then
14324 LIBICONV_PREFIX="$basedir"
14325 fi
14326 additional_includedir="$basedir/include"
14327 ;;
14328 esac
14329 if test "X$additional_includedir" != "X"; then
14330 if test "X$additional_includedir" != "X/usr/include"; then
14331 haveit=
14332 if test "X$additional_includedir" = "X/usr/local/include"; then
14333 if test -n "$GCC"; then
14334 case $host_os in
14335 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
14336 esac
14337 fi
14338 fi
14339 if test -z "$haveit"; then
14340 for x in $CPPFLAGS $INCICONV; do
14341
14342 acl_save_prefix="$prefix"
14343 prefix="$acl_final_prefix"
14344 acl_save_exec_prefix="$exec_prefix"
14345 exec_prefix="$acl_final_exec_prefix"
14346 eval x=\"$x\"
14347 exec_prefix="$acl_save_exec_prefix"
14348 prefix="$acl_save_prefix"
14349
14350 if test "X$x" = "X-I$additional_includedir"; then
14351 haveit=yes
14352 break
14353 fi
14354 done
14355 if test -z "$haveit"; then
14356 if test -d "$additional_includedir"; then
14357 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
14358 fi
14359 fi
14360 fi
14361 fi
14362 fi
14363 if test -n "$found_la"; then
14364 save_libdir="$libdir"
14365 case "$found_la" in
14366 */* | *\\*) . "$found_la" ;;
14367 *) . "./$found_la" ;;
14368 esac
14369 libdir="$save_libdir"
14370 for dep in $dependency_libs; do
14371 case "$dep" in
14372 -L*)
14373 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
14374 if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \
14375 && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then
14376 haveit=
14377 if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \
14378 || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then
14379 if test -n "$GCC"; then
14380 case $host_os in
14381 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
14382 esac
14383 fi
14384 fi
14385 if test -z "$haveit"; then
14386 haveit=
14387 for x in $LDFLAGS $LIBICONV; do
14388
14389 acl_save_prefix="$prefix"
14390 prefix="$acl_final_prefix"
14391 acl_save_exec_prefix="$exec_prefix"
14392 exec_prefix="$acl_final_exec_prefix"
14393 eval x=\"$x\"
14394 exec_prefix="$acl_save_exec_prefix"
14395 prefix="$acl_save_prefix"
14396
14397 if test "X$x" = "X-L$additional_libdir"; then
14398 haveit=yes
14399 break
14400 fi
14401 done
14402 if test -z "$haveit"; then
14403 if test -d "$additional_libdir"; then
14404 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
14405 fi
14406 fi
14407 haveit=
14408 for x in $LDFLAGS $LTLIBICONV; do
14409
14410 acl_save_prefix="$prefix"
14411 prefix="$acl_final_prefix"
14412 acl_save_exec_prefix="$exec_prefix"
14413 exec_prefix="$acl_final_exec_prefix"
14414 eval x=\"$x\"
14415 exec_prefix="$acl_save_exec_prefix"
14416 prefix="$acl_save_prefix"
14417
14418 if test "X$x" = "X-L$additional_libdir"; then
14419 haveit=yes
14420 break
14421 fi
14422 done
14423 if test -z "$haveit"; then
14424 if test -d "$additional_libdir"; then
14425 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
14426 fi
14427 fi
14428 fi
14429 fi
14430 ;;
14431 -R*)
14432 dir=`echo "X$dep" | sed -e 's/^X-R//'`
14433 if test "$enable_rpath" != no; then
14434 haveit=
14435 for x in $rpathdirs; do
14436 if test "X$x" = "X$dir"; then
14437 haveit=yes
14438 break
14439 fi
14440 done
14441 if test -z "$haveit"; then
14442 rpathdirs="$rpathdirs $dir"
14443 fi
14444 haveit=
14445 for x in $ltrpathdirs; do
14446 if test "X$x" = "X$dir"; then
14447 haveit=yes
14448 break
14449 fi
14450 done
14451 if test -z "$haveit"; then
14452 ltrpathdirs="$ltrpathdirs $dir"
14453 fi
14454 fi
14455 ;;
14456 -l*)
14457 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
14458 ;;
14459 *.la)
14460 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
14461 ;;
14462 *)
14463 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
14464 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
14465 ;;
14466 esac
14467 done
14468 fi
14469 else
14470 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
14471 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
14472 fi
14473 fi
14474 fi
14475 done
14476 done
14477 if test "X$rpathdirs" != "X"; then
14478 if test -n "$acl_hardcode_libdir_separator"; then
14479 alldirs=
14480 for found_dir in $rpathdirs; do
14481 alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
14482 done
14483 acl_save_libdir="$libdir"
14484 libdir="$alldirs"
14485 eval flag=\"$acl_hardcode_libdir_flag_spec\"
14486 libdir="$acl_save_libdir"
14487 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
14488 else
14489 for found_dir in $rpathdirs; do
14490 acl_save_libdir="$libdir"
14491 libdir="$found_dir"
14492 eval flag=\"$acl_hardcode_libdir_flag_spec\"
14493 libdir="$acl_save_libdir"
14494 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
14495 done
14496 fi
14497 fi
14498 if test "X$ltrpathdirs" != "X"; then
14499 for found_dir in $ltrpathdirs; do
14500 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
14501 done
14502 fi
14503
14504
14505
14506
14507
14508
14509
14510
14511
14512
14513
14514
14515
14516
14517
14518
14519
14520
14521
14522
14523
14524
14525
14526
14527
14528
14529
14530
14531
14532
14533
14534 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFPreferencesCopyAppValue" >&5
14535 $as_echo_n "checking for CFPreferencesCopyAppValue... " >&6; }
14536 if ${gt_cv_func_CFPreferencesCopyAppValue+:} false; then :
14537 $as_echo_n "(cached) " >&6
14538 else
14539 gt_save_LIBS="$LIBS"
14540 LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
14541 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14542 /* end confdefs.h. */
14543 #include <CoreFoundation/CFPreferences.h>
14544 int
14545 main ()
14546 {
14547 CFPreferencesCopyAppValue(NULL, NULL)
14548 ;
14549 return 0;
14550 }
14551 _ACEOF
14552 if ac_fn_c_try_link "$LINENO"; then :
14553 gt_cv_func_CFPreferencesCopyAppValue=yes
14554 else
14555 gt_cv_func_CFPreferencesCopyAppValue=no
14556 fi
14557 rm -f core conftest.err conftest.$ac_objext \
14558 conftest$ac_exeext conftest.$ac_ext
14559 LIBS="$gt_save_LIBS"
14560 fi
14561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
14562 $as_echo "$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
14563 if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
14564
14565 $as_echo "#define HAVE_CFPREFERENCESCOPYAPPVALUE 1" >>confdefs.h
14566
14567 fi
14568 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFLocaleCopyCurrent" >&5
14569 $as_echo_n "checking for CFLocaleCopyCurrent... " >&6; }
14570 if ${gt_cv_func_CFLocaleCopyCurrent+:} false; then :
14571 $as_echo_n "(cached) " >&6
14572 else
14573 gt_save_LIBS="$LIBS"
14574 LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
14575 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14576 /* end confdefs.h. */
14577 #include <CoreFoundation/CFLocale.h>
14578 int
14579 main ()
14580 {
14581 CFLocaleCopyCurrent();
14582 ;
14583 return 0;
14584 }
14585 _ACEOF
14586 if ac_fn_c_try_link "$LINENO"; then :
14587 gt_cv_func_CFLocaleCopyCurrent=yes
14588 else
14589 gt_cv_func_CFLocaleCopyCurrent=no
14590 fi
14591 rm -f core conftest.err conftest.$ac_objext \
14592 conftest$ac_exeext conftest.$ac_ext
14593 LIBS="$gt_save_LIBS"
14594 fi
14595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
14596 $as_echo "$gt_cv_func_CFLocaleCopyCurrent" >&6; }
14597 if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
14598
14599 $as_echo "#define HAVE_CFLOCALECOPYCURRENT 1" >>confdefs.h
14600
14601 fi
14602 INTL_MACOSX_LIBS=
14603 if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
14604 INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
14605 fi
14606
14607
14608
14609
14610
14611
14612 LIBINTL=
14613 LTLIBINTL=
14614 POSUB=
14615
14616 case " $gt_needs " in
14617 *" need-formatstring-macros "*) gt_api_version=3 ;;
14618 *" need-ngettext "*) gt_api_version=2 ;;
14619 *) gt_api_version=1 ;;
14620 esac
14621 gt_func_gnugettext_libc="gt_cv_func_gnugettext${gt_api_version}_libc"
14622 gt_func_gnugettext_libintl="gt_cv_func_gnugettext${gt_api_version}_libintl"
14623
14624 if test "$USE_NLS" = "yes"; then
14625 gt_use_preinstalled_gnugettext=no
14626
14627
14628 if test $gt_api_version -ge 3; then
14629 gt_revision_test_code='
14630 #ifndef __GNU_GETTEXT_SUPPORTED_REVISION
14631 #define __GNU_GETTEXT_SUPPORTED_REVISION(major) ((major) == 0 ? 0 : -1)
14632 #endif
14633 typedef int array [2 * (__GNU_GETTEXT_SUPPORTED_REVISION(0) >= 1) - 1];
14634 '
14635 else
14636 gt_revision_test_code=
14637 fi
14638 if test $gt_api_version -ge 2; then
14639 gt_expression_test_code=' + * ngettext ("", "", 0)'
14640 else
14641 gt_expression_test_code=
14642 fi
14643
14644 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libc" >&5
14645 $as_echo_n "checking for GNU gettext in libc... " >&6; }
14646 if eval \${$gt_func_gnugettext_libc+:} false; then :
14647 $as_echo_n "(cached) " >&6
14648 else
14649 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14650 /* end confdefs.h. */
14651
14652 #include <libintl.h>
14653 $gt_revision_test_code
14654 extern int _nl_msg_cat_cntr;
14655 extern int *_nl_domain_bindings;
14656
14657 int
14658 main ()
14659 {
14660
14661 bindtextdomain ("", "");
14662 return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_domain_bindings
14663
14664 ;
14665 return 0;
14666 }
14667 _ACEOF
14668 if ac_fn_c_try_link "$LINENO"; then :
14669 eval "$gt_func_gnugettext_libc=yes"
14670 else
14671 eval "$gt_func_gnugettext_libc=no"
14672 fi
14673 rm -f core conftest.err conftest.$ac_objext \
14674 conftest$ac_exeext conftest.$ac_ext
14675 fi
14676 eval ac_res=\$$gt_func_gnugettext_libc
14677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
14678 $as_echo "$ac_res" >&6; }
14679
14680 if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" != "yes"; }; then
14681
14682
14683
14684
14685
14686 am_save_CPPFLAGS="$CPPFLAGS"
14687
14688 for element in $INCICONV; do
14689 haveit=
14690 for x in $CPPFLAGS; do
14691
14692 acl_save_prefix="$prefix"
14693 prefix="$acl_final_prefix"
14694 acl_save_exec_prefix="$exec_prefix"
14695 exec_prefix="$acl_final_exec_prefix"
14696 eval x=\"$x\"
14697 exec_prefix="$acl_save_exec_prefix"
14698 prefix="$acl_save_prefix"
14699
14700 if test "X$x" = "X$element"; then
14701 haveit=yes
14702 break
14703 fi
14704 done
14705 if test -z "$haveit"; then
14706 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
14707 fi
14708 done
14709
14710
14711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
14712 $as_echo_n "checking for iconv... " >&6; }
14713 if ${am_cv_func_iconv+:} false; then :
14714 $as_echo_n "(cached) " >&6
14715 else
14716
14717 am_cv_func_iconv="no, consider installing GNU libiconv"
14718 am_cv_lib_iconv=no
14719 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14720 /* end confdefs.h. */
14721
14722 #include <stdlib.h>
14723 #include <iconv.h>
14724
14725 int
14726 main ()
14727 {
14728 iconv_t cd = iconv_open("","");
14729 iconv(cd,NULL,NULL,NULL,NULL);
14730 iconv_close(cd);
14731 ;
14732 return 0;
14733 }
14734 _ACEOF
14735 if ac_fn_c_try_link "$LINENO"; then :
14736 am_cv_func_iconv=yes
14737 fi
14738 rm -f core conftest.err conftest.$ac_objext \
14739 conftest$ac_exeext conftest.$ac_ext
14740 if test "$am_cv_func_iconv" != yes; then
14741 am_save_LIBS="$LIBS"
14742 LIBS="$LIBS $LIBICONV"
14743 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14744 /* end confdefs.h. */
14745
14746 #include <stdlib.h>
14747 #include <iconv.h>
14748
14749 int
14750 main ()
14751 {
14752 iconv_t cd = iconv_open("","");
14753 iconv(cd,NULL,NULL,NULL,NULL);
14754 iconv_close(cd);
14755 ;
14756 return 0;
14757 }
14758 _ACEOF
14759 if ac_fn_c_try_link "$LINENO"; then :
14760 am_cv_lib_iconv=yes
14761 am_cv_func_iconv=yes
14762 fi
14763 rm -f core conftest.err conftest.$ac_objext \
14764 conftest$ac_exeext conftest.$ac_ext
14765 LIBS="$am_save_LIBS"
14766 fi
14767
14768 fi
14769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
14770 $as_echo "$am_cv_func_iconv" >&6; }
14771 if test "$am_cv_func_iconv" = yes; then
14772 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working iconv" >&5
14773 $as_echo_n "checking for working iconv... " >&6; }
14774 if ${am_cv_func_iconv_works+:} false; then :
14775 $as_echo_n "(cached) " >&6
14776 else
14777
14778 am_save_LIBS="$LIBS"
14779 if test $am_cv_lib_iconv = yes; then
14780 LIBS="$LIBS $LIBICONV"
14781 fi
14782 am_cv_func_iconv_works=no
14783 for ac_iconv_const in '' 'const'; do
14784 if test "$cross_compiling" = yes; then :
14785 case "$host_os" in
14786 aix* | hpux*) am_cv_func_iconv_works="guessing no" ;;
14787 *) am_cv_func_iconv_works="guessing yes" ;;
14788 esac
14789 else
14790 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14791 /* end confdefs.h. */
14792
14793 #include <iconv.h>
14794 #include <string.h>
14795
14796 #ifndef ICONV_CONST
14797 # define ICONV_CONST $ac_iconv_const
14798 #endif
14799
14800 int
14801 main ()
14802 {
14803 int result = 0;
14804 /* Test against AIX 5.1 bug: Failures are not distinguishable from successful
14805 returns. */
14806 {
14807 iconv_t cd_utf8_to_88591 = iconv_open ("ISO8859-1", "UTF-8");
14808 if (cd_utf8_to_88591 != (iconv_t)(-1))
14809 {
14810 static ICONV_CONST char input[] = "\342\202\254"; /* EURO SIGN */
14811 char buf[10];
14812 ICONV_CONST char *inptr = input;
14813 size_t inbytesleft = strlen (input);
14814 char *outptr = buf;
14815 size_t outbytesleft = sizeof (buf);
14816 size_t res = iconv (cd_utf8_to_88591,
14817 &inptr, &inbytesleft,
14818 &outptr, &outbytesleft);
14819 if (res == 0)
14820 result |= 1;
14821 iconv_close (cd_utf8_to_88591);
14822 }
14823 }
14824 /* Test against Solaris 10 bug: Failures are not distinguishable from
14825 successful returns. */
14826 {
14827 iconv_t cd_ascii_to_88591 = iconv_open ("ISO8859-1", "646");
14828 if (cd_ascii_to_88591 != (iconv_t)(-1))
14829 {
14830 static ICONV_CONST char input[] = "\263";
14831 char buf[10];
14832 ICONV_CONST char *inptr = input;
14833 size_t inbytesleft = strlen (input);
14834 char *outptr = buf;
14835 size_t outbytesleft = sizeof (buf);
14836 size_t res = iconv (cd_ascii_to_88591,
14837 &inptr, &inbytesleft,
14838 &outptr, &outbytesleft);
14839 if (res == 0)
14840 result |= 2;
14841 iconv_close (cd_ascii_to_88591);
14842 }
14843 }
14844 /* Test against AIX 6.1..7.1 bug: Buffer overrun. */
14845 {
14846 iconv_t cd_88591_to_utf8 = iconv_open ("UTF-8", "ISO-8859-1");
14847 if (cd_88591_to_utf8 != (iconv_t)(-1))
14848 {
14849 static ICONV_CONST char input[] = "\304";
14850 static char buf[2] = { (char)0xDE, (char)0xAD };
14851 ICONV_CONST char *inptr = input;
14852 size_t inbytesleft = 1;
14853 char *outptr = buf;
14854 size_t outbytesleft = 1;
14855 size_t res = iconv (cd_88591_to_utf8,
14856 &inptr, &inbytesleft,
14857 &outptr, &outbytesleft);
14858 if (res != (size_t)(-1) || outptr - buf > 1 || buf[1] != (char)0xAD)
14859 result |= 4;
14860 iconv_close (cd_88591_to_utf8);
14861 }
14862 }
14863 #if 0 /* This bug could be worked around by the caller. */
14864 /* Test against HP-UX 11.11 bug: Positive return value instead of 0. */
14865 {
14866 iconv_t cd_88591_to_utf8 = iconv_open ("utf8", "iso88591");
14867 if (cd_88591_to_utf8 != (iconv_t)(-1))
14868 {
14869 static ICONV_CONST char input[] = "\304rger mit b\366sen B\374bchen ohne Augenma\337";
14870 char buf[50];
14871 ICONV_CONST char *inptr = input;
14872 size_t inbytesleft = strlen (input);
14873 char *outptr = buf;
14874 size_t outbytesleft = sizeof (buf);
14875 size_t res = iconv (cd_88591_to_utf8,
14876 &inptr, &inbytesleft,
14877 &outptr, &outbytesleft);
14878 if ((int)res > 0)
14879 result |= 8;
14880 iconv_close (cd_88591_to_utf8);
14881 }
14882 }
14883 #endif
14884 /* Test against HP-UX 11.11 bug: No converter from EUC-JP to UTF-8 is
14885 provided. */
14886 if (/* Try standardized names. */
14887 iconv_open ("UTF-8", "EUC-JP") == (iconv_t)(-1)
14888 /* Try IRIX, OSF/1 names. */
14889 && iconv_open ("UTF-8", "eucJP") == (iconv_t)(-1)
14890 /* Try AIX names. */
14891 && iconv_open ("UTF-8", "IBM-eucJP") == (iconv_t)(-1)
14892 /* Try HP-UX names. */
14893 && iconv_open ("utf8", "eucJP") == (iconv_t)(-1))
14894 result |= 16;
14895 return result;
14896
14897 ;
14898 return 0;
14899 }
14900 _ACEOF
14901 if ac_fn_c_try_run "$LINENO"; then :
14902 am_cv_func_iconv_works=yes
14903 fi
14904 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14905 conftest.$ac_objext conftest.beam conftest.$ac_ext
14906 fi
14907
14908 test "$am_cv_func_iconv_works" = no || break
14909 done
14910 LIBS="$am_save_LIBS"
14911
14912 fi
14913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv_works" >&5
14914 $as_echo "$am_cv_func_iconv_works" >&6; }
14915 case "$am_cv_func_iconv_works" in
14916 *no) am_func_iconv=no am_cv_lib_iconv=no ;;
14917 *) am_func_iconv=yes ;;
14918 esac
14919 else
14920 am_func_iconv=no am_cv_lib_iconv=no
14921 fi
14922 if test "$am_func_iconv" = yes; then
14923
14924 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
14925
14926 fi
14927 if test "$am_cv_lib_iconv" = yes; then
14928 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
14929 $as_echo_n "checking how to link with libiconv... " >&6; }
14930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
14931 $as_echo "$LIBICONV" >&6; }
14932 else
14933 CPPFLAGS="$am_save_CPPFLAGS"
14934 LIBICONV=
14935 LTLIBICONV=
14936 fi
14937
14938
14939
14940
14941
14942
14943
14944
14945
14946
14947
14948 use_additional=yes
14949
14950 acl_save_prefix="$prefix"
14951 prefix="$acl_final_prefix"
14952 acl_save_exec_prefix="$exec_prefix"
14953 exec_prefix="$acl_final_exec_prefix"
14954
14955 eval additional_includedir=\"$includedir\"
14956 eval additional_libdir=\"$libdir\"
14957
14958 exec_prefix="$acl_save_exec_prefix"
14959 prefix="$acl_save_prefix"
14960
14961
14962 # Check whether --with-libintl-prefix was given.
14963 if test "${with_libintl_prefix+set}" = set; then :
14964 withval=$with_libintl_prefix;
14965 if test "X$withval" = "Xno"; then
14966 use_additional=no
14967 else
14968 if test "X$withval" = "X"; then
14969
14970 acl_save_prefix="$prefix"
14971 prefix="$acl_final_prefix"
14972 acl_save_exec_prefix="$exec_prefix"
14973 exec_prefix="$acl_final_exec_prefix"
14974
14975 eval additional_includedir=\"$includedir\"
14976 eval additional_libdir=\"$libdir\"
14977
14978 exec_prefix="$acl_save_exec_prefix"
14979 prefix="$acl_save_prefix"
14980
14981 else
14982 additional_includedir="$withval/include"
14983 additional_libdir="$withval/$acl_libdirstem"
14984 if test "$acl_libdirstem2" != "$acl_libdirstem" \
14985 && ! test -d "$withval/$acl_libdirstem"; then
14986 additional_libdir="$withval/$acl_libdirstem2"
14987 fi
14988 fi
14989 fi
14990
14991 fi
14992
14993 LIBINTL=
14994 LTLIBINTL=
14995 INCINTL=
14996 LIBINTL_PREFIX=
14997 HAVE_LIBINTL=
14998 rpathdirs=
14999 ltrpathdirs=
15000 names_already_handled=
15001 names_next_round='intl '
15002 while test -n "$names_next_round"; do
15003 names_this_round="$names_next_round"
15004 names_next_round=
15005 for name in $names_this_round; do
15006 already_handled=
15007 for n in $names_already_handled; do
15008 if test "$n" = "$name"; then
15009 already_handled=yes
15010 break
15011 fi
15012 done
15013 if test -z "$already_handled"; then
15014 names_already_handled="$names_already_handled $name"
15015 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./+-|ABCDEFGHIJKLMNOPQRSTUVWXYZ____|'`
15016 eval value=\"\$HAVE_LIB$uppername\"
15017 if test -n "$value"; then
15018 if test "$value" = yes; then
15019 eval value=\"\$LIB$uppername\"
15020 test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
15021 eval value=\"\$LTLIB$uppername\"
15022 test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
15023 else
15024 :
15025 fi
15026 else
15027 found_dir=
15028 found_la=
15029 found_so=
15030 found_a=
15031 eval libname=\"$acl_libname_spec\" # typically: libname=lib$name
15032 if test -n "$acl_shlibext"; then
15033 shrext=".$acl_shlibext" # typically: shrext=.so
15034 else
15035 shrext=
15036 fi
15037 if test $use_additional = yes; then
15038 dir="$additional_libdir"
15039 if test -n "$acl_shlibext"; then
15040 if test -f "$dir/$libname$shrext"; then
15041 found_dir="$dir"
15042 found_so="$dir/$libname$shrext"
15043 else
15044 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
15045 ver=`(cd "$dir" && \
15046 for f in "$libname$shrext".*; do echo "$f"; done \
15047 | sed -e "s,^$libname$shrext\\\\.,," \
15048 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
15049 | sed 1q ) 2>/dev/null`
15050 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
15051 found_dir="$dir"
15052 found_so="$dir/$libname$shrext.$ver"
15053 fi
15054 else
15055 eval library_names=\"$acl_library_names_spec\"
15056 for f in $library_names; do
15057 if test -f "$dir/$f"; then
15058 found_dir="$dir"
15059 found_so="$dir/$f"
15060 break
15061 fi
15062 done
15063 fi
15064 fi
15065 fi
15066 if test "X$found_dir" = "X"; then
15067 if test -f "$dir/$libname.$acl_libext"; then
15068 found_dir="$dir"
15069 found_a="$dir/$libname.$acl_libext"
15070 fi
15071 fi
15072 if test "X$found_dir" != "X"; then
15073 if test -f "$dir/$libname.la"; then
15074 found_la="$dir/$libname.la"
15075 fi
15076 fi
15077 fi
15078 if test "X$found_dir" = "X"; then
15079 for x in $LDFLAGS $LTLIBINTL; do
15080
15081 acl_save_prefix="$prefix"
15082 prefix="$acl_final_prefix"
15083 acl_save_exec_prefix="$exec_prefix"
15084 exec_prefix="$acl_final_exec_prefix"
15085 eval x=\"$x\"
15086 exec_prefix="$acl_save_exec_prefix"
15087 prefix="$acl_save_prefix"
15088
15089 case "$x" in
15090 -L*)
15091 dir=`echo "X$x" | sed -e 's/^X-L//'`
15092 if test -n "$acl_shlibext"; then
15093 if test -f "$dir/$libname$shrext"; then
15094 found_dir="$dir"
15095 found_so="$dir/$libname$shrext"
15096 else
15097 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
15098 ver=`(cd "$dir" && \
15099 for f in "$libname$shrext".*; do echo "$f"; done \
15100 | sed -e "s,^$libname$shrext\\\\.,," \
15101 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
15102 | sed 1q ) 2>/dev/null`
15103 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
15104 found_dir="$dir"
15105 found_so="$dir/$libname$shrext.$ver"
15106 fi
15107 else
15108 eval library_names=\"$acl_library_names_spec\"
15109 for f in $library_names; do
15110 if test -f "$dir/$f"; then
15111 found_dir="$dir"
15112 found_so="$dir/$f"
15113 break
15114 fi
15115 done
15116 fi
15117 fi
15118 fi
15119 if test "X$found_dir" = "X"; then
15120 if test -f "$dir/$libname.$acl_libext"; then
15121 found_dir="$dir"
15122 found_a="$dir/$libname.$acl_libext"
15123 fi
15124 fi
15125 if test "X$found_dir" != "X"; then
15126 if test -f "$dir/$libname.la"; then
15127 found_la="$dir/$libname.la"
15128 fi
15129 fi
15130 ;;
15131 esac
15132 if test "X$found_dir" != "X"; then
15133 break
15134 fi
15135 done
15136 fi
15137 if test "X$found_dir" != "X"; then
15138 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
15139 if test "X$found_so" != "X"; then
15140 if test "$enable_rpath" = no \
15141 || test "X$found_dir" = "X/usr/$acl_libdirstem" \
15142 || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then
15143 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
15144 else
15145 haveit=
15146 for x in $ltrpathdirs; do
15147 if test "X$x" = "X$found_dir"; then
15148 haveit=yes
15149 break
15150 fi
15151 done
15152 if test -z "$haveit"; then
15153 ltrpathdirs="$ltrpathdirs $found_dir"
15154 fi
15155 if test "$acl_hardcode_direct" = yes; then
15156 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
15157 else
15158 if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
15159 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
15160 haveit=
15161 for x in $rpathdirs; do
15162 if test "X$x" = "X$found_dir"; then
15163 haveit=yes
15164 break
15165 fi
15166 done
15167 if test -z "$haveit"; then
15168 rpathdirs="$rpathdirs $found_dir"
15169 fi
15170 else
15171 haveit=
15172 for x in $LDFLAGS $LIBINTL; do
15173
15174 acl_save_prefix="$prefix"
15175 prefix="$acl_final_prefix"
15176 acl_save_exec_prefix="$exec_prefix"
15177 exec_prefix="$acl_final_exec_prefix"
15178 eval x=\"$x\"
15179 exec_prefix="$acl_save_exec_prefix"
15180 prefix="$acl_save_prefix"
15181
15182 if test "X$x" = "X-L$found_dir"; then
15183 haveit=yes
15184 break
15185 fi
15186 done
15187 if test -z "$haveit"; then
15188 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
15189 fi
15190 if test "$acl_hardcode_minus_L" != no; then
15191 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
15192 else
15193 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
15194 fi
15195 fi
15196 fi
15197 fi
15198 else
15199 if test "X$found_a" != "X"; then
15200 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
15201 else
15202 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
15203 fi
15204 fi
15205 additional_includedir=
15206 case "$found_dir" in
15207 */$acl_libdirstem | */$acl_libdirstem/)
15208 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
15209 if test "$name" = 'intl'; then
15210 LIBINTL_PREFIX="$basedir"
15211 fi
15212 additional_includedir="$basedir/include"
15213 ;;
15214 */$acl_libdirstem2 | */$acl_libdirstem2/)
15215 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
15216 if test "$name" = 'intl'; then
15217 LIBINTL_PREFIX="$basedir"
15218 fi
15219 additional_includedir="$basedir/include"
15220 ;;
15221 esac
15222 if test "X$additional_includedir" != "X"; then
15223 if test "X$additional_includedir" != "X/usr/include"; then
15224 haveit=
15225 if test "X$additional_includedir" = "X/usr/local/include"; then
15226 if test -n "$GCC"; then
15227 case $host_os in
15228 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
15229 esac
15230 fi
15231 fi
15232 if test -z "$haveit"; then
15233 for x in $CPPFLAGS $INCINTL; do
15234
15235 acl_save_prefix="$prefix"
15236 prefix="$acl_final_prefix"
15237 acl_save_exec_prefix="$exec_prefix"
15238 exec_prefix="$acl_final_exec_prefix"
15239 eval x=\"$x\"
15240 exec_prefix="$acl_save_exec_prefix"
15241 prefix="$acl_save_prefix"
15242
15243 if test "X$x" = "X-I$additional_includedir"; then
15244 haveit=yes
15245 break
15246 fi
15247 done
15248 if test -z "$haveit"; then
15249 if test -d "$additional_includedir"; then
15250 INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
15251 fi
15252 fi
15253 fi
15254 fi
15255 fi
15256 if test -n "$found_la"; then
15257 save_libdir="$libdir"
15258 case "$found_la" in
15259 */* | *\\*) . "$found_la" ;;
15260 *) . "./$found_la" ;;
15261 esac
15262 libdir="$save_libdir"
15263 for dep in $dependency_libs; do
15264 case "$dep" in
15265 -L*)
15266 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
15267 if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \
15268 && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then
15269 haveit=
15270 if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \
15271 || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then
15272 if test -n "$GCC"; then
15273 case $host_os in
15274 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
15275 esac
15276 fi
15277 fi
15278 if test -z "$haveit"; then
15279 haveit=
15280 for x in $LDFLAGS $LIBINTL; do
15281
15282 acl_save_prefix="$prefix"
15283 prefix="$acl_final_prefix"
15284 acl_save_exec_prefix="$exec_prefix"
15285 exec_prefix="$acl_final_exec_prefix"
15286 eval x=\"$x\"
15287 exec_prefix="$acl_save_exec_prefix"
15288 prefix="$acl_save_prefix"
15289
15290 if test "X$x" = "X-L$additional_libdir"; then
15291 haveit=yes
15292 break
15293 fi
15294 done
15295 if test -z "$haveit"; then
15296 if test -d "$additional_libdir"; then
15297 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
15298 fi
15299 fi
15300 haveit=
15301 for x in $LDFLAGS $LTLIBINTL; do
15302
15303 acl_save_prefix="$prefix"
15304 prefix="$acl_final_prefix"
15305 acl_save_exec_prefix="$exec_prefix"
15306 exec_prefix="$acl_final_exec_prefix"
15307 eval x=\"$x\"
15308 exec_prefix="$acl_save_exec_prefix"
15309 prefix="$acl_save_prefix"
15310
15311 if test "X$x" = "X-L$additional_libdir"; then
15312 haveit=yes
15313 break
15314 fi
15315 done
15316 if test -z "$haveit"; then
15317 if test -d "$additional_libdir"; then
15318 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
15319 fi
15320 fi
15321 fi
15322 fi
15323 ;;
15324 -R*)
15325 dir=`echo "X$dep" | sed -e 's/^X-R//'`
15326 if test "$enable_rpath" != no; then
15327 haveit=
15328 for x in $rpathdirs; do
15329 if test "X$x" = "X$dir"; then
15330 haveit=yes
15331 break
15332 fi
15333 done
15334 if test -z "$haveit"; then
15335 rpathdirs="$rpathdirs $dir"
15336 fi
15337 haveit=
15338 for x in $ltrpathdirs; do
15339 if test "X$x" = "X$dir"; then
15340 haveit=yes
15341 break
15342 fi
15343 done
15344 if test -z "$haveit"; then
15345 ltrpathdirs="$ltrpathdirs $dir"
15346 fi
15347 fi
15348 ;;
15349 -l*)
15350 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
15351 ;;
15352 *.la)
15353 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
15354 ;;
15355 *)
15356 LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
15357 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
15358 ;;
15359 esac
15360 done
15361 fi
15362 else
15363 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
15364 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
15365 fi
15366 fi
15367 fi
15368 done
15369 done
15370 if test "X$rpathdirs" != "X"; then
15371 if test -n "$acl_hardcode_libdir_separator"; then
15372 alldirs=
15373 for found_dir in $rpathdirs; do
15374 alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
15375 done
15376 acl_save_libdir="$libdir"
15377 libdir="$alldirs"
15378 eval flag=\"$acl_hardcode_libdir_flag_spec\"
15379 libdir="$acl_save_libdir"
15380 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
15381 else
15382 for found_dir in $rpathdirs; do
15383 acl_save_libdir="$libdir"
15384 libdir="$found_dir"
15385 eval flag=\"$acl_hardcode_libdir_flag_spec\"
15386 libdir="$acl_save_libdir"
15387 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
15388 done
15389 fi
15390 fi
15391 if test "X$ltrpathdirs" != "X"; then
15392 for found_dir in $ltrpathdirs; do
15393 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
15394 done
15395 fi
15396
15397
15398
15399
15400
15401
15402 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libintl" >&5
15403 $as_echo_n "checking for GNU gettext in libintl... " >&6; }
15404 if eval \${$gt_func_gnugettext_libintl+:} false; then :
15405 $as_echo_n "(cached) " >&6
15406 else
15407 gt_save_CPPFLAGS="$CPPFLAGS"
15408 CPPFLAGS="$CPPFLAGS $INCINTL"
15409 gt_save_LIBS="$LIBS"
15410 LIBS="$LIBS $LIBINTL"
15411 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15412 /* end confdefs.h. */
15413
15414 #include <libintl.h>
15415 $gt_revision_test_code
15416 extern int _nl_msg_cat_cntr;
15417 extern
15418 #ifdef __cplusplus
15419 "C"
15420 #endif
15421 const char *_nl_expand_alias (const char *);
15422
15423 int
15424 main ()
15425 {
15426
15427 bindtextdomain ("", "");
15428 return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("")
15429
15430 ;
15431 return 0;
15432 }
15433 _ACEOF
15434 if ac_fn_c_try_link "$LINENO"; then :
15435 eval "$gt_func_gnugettext_libintl=yes"
15436 else
15437 eval "$gt_func_gnugettext_libintl=no"
15438 fi
15439 rm -f core conftest.err conftest.$ac_objext \
15440 conftest$ac_exeext conftest.$ac_ext
15441 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" != yes; } && test -n "$LIBICONV"; then
15442 LIBS="$LIBS $LIBICONV"
15443 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15444 /* end confdefs.h. */
15445
15446 #include <libintl.h>
15447 $gt_revision_test_code
15448 extern int _nl_msg_cat_cntr;
15449 extern
15450 #ifdef __cplusplus
15451 "C"
15452 #endif
15453 const char *_nl_expand_alias (const char *);
15454
15455 int
15456 main ()
15457 {
15458
15459 bindtextdomain ("", "");
15460 return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("")
15461
15462 ;
15463 return 0;
15464 }
15465 _ACEOF
15466 if ac_fn_c_try_link "$LINENO"; then :
15467 LIBINTL="$LIBINTL $LIBICONV"
15468 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
15469 eval "$gt_func_gnugettext_libintl=yes"
15470
15471 fi
15472 rm -f core conftest.err conftest.$ac_objext \
15473 conftest$ac_exeext conftest.$ac_ext
15474 fi
15475 CPPFLAGS="$gt_save_CPPFLAGS"
15476 LIBS="$gt_save_LIBS"
15477 fi
15478 eval ac_res=\$$gt_func_gnugettext_libintl
15479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
15480 $as_echo "$ac_res" >&6; }
15481 fi
15482
15483 if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" = "yes"; } \
15484 || { { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; } \
15485 && test "$PACKAGE" != gettext-runtime \
15486 && test "$PACKAGE" != gettext-tools; }; then
15487 gt_use_preinstalled_gnugettext=yes
15488 else
15489 LIBINTL=
15490 LTLIBINTL=
15491 INCINTL=
15492 fi
15493
15494
15495
15496 if test -n "$INTL_MACOSX_LIBS"; then
15497 if test "$gt_use_preinstalled_gnugettext" = "yes" \
15498 || test "$nls_cv_use_gnu_gettext" = "yes"; then
15499 LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
15500 LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
15501 fi
15502 fi
15503
15504 if test "$gt_use_preinstalled_gnugettext" = "yes" \
15505 || test "$nls_cv_use_gnu_gettext" = "yes"; then
15506
15507 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
15508
15509 else
15510 USE_NLS=no
15511 fi
15512 fi
15513
15514 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use NLS" >&5
15515 $as_echo_n "checking whether to use NLS... " >&6; }
15516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
15517 $as_echo "$USE_NLS" >&6; }
15518 if test "$USE_NLS" = "yes"; then
15519 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where the gettext function comes from" >&5
15520 $as_echo_n "checking where the gettext function comes from... " >&6; }
15521 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
15522 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
15523 gt_source="external libintl"
15524 else
15525 gt_source="libc"
15526 fi
15527 else
15528 gt_source="included intl directory"
15529 fi
15530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_source" >&5
15531 $as_echo "$gt_source" >&6; }
15532 fi
15533
15534 if test "$USE_NLS" = "yes"; then
15535
15536 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
15537 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
15538 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libintl" >&5
15539 $as_echo_n "checking how to link with libintl... " >&6; }
15540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBINTL" >&5
15541 $as_echo "$LIBINTL" >&6; }
15542
15543 for element in $INCINTL; do
15544 haveit=
15545 for x in $CPPFLAGS; do
15546
15547 acl_save_prefix="$prefix"
15548 prefix="$acl_final_prefix"
15549 acl_save_exec_prefix="$exec_prefix"
15550 exec_prefix="$acl_final_exec_prefix"
15551 eval x=\"$x\"
15552 exec_prefix="$acl_save_exec_prefix"
15553 prefix="$acl_save_prefix"
15554
15555 if test "X$x" = "X$element"; then
15556 haveit=yes
15557 break
15558 fi
15559 done
15560 if test -z "$haveit"; then
15561 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
15562 fi
15563 done
15564
15565 fi
15566
15567
15568 $as_echo "#define HAVE_GETTEXT 1" >>confdefs.h
15569
15570
15571 $as_echo "#define HAVE_DCGETTEXT 1" >>confdefs.h
15572
15573 fi
15574
15575 POSUB=po
15576 fi
15577
15578
15579
15580 INTLLIBS="$LIBINTL"
15581
15582
15583
15584
15585
15586
15587
15588 # This test must come as early as possible after the compiler configuration
15589 # tests, because the choice of the file model can (in principle) affect
15590 # whether functions and headers are available, whether they work, etc.
15591 # Check whether --enable-largefile was given.
15592 if test "${enable_largefile+set}" = set; then :
15593 enableval=$enable_largefile;
15594 fi
15595
15596 if test "$enable_largefile" != no; then
15597
15598 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
15599 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
15600 if ${ac_cv_sys_largefile_CC+:} false; then :
15601 $as_echo_n "(cached) " >&6
15602 else
15603 ac_cv_sys_largefile_CC=no
15604 if test "$GCC" != yes; then
15605 ac_save_CC=$CC
15606 while :; do
15607 # IRIX 6.2 and later do not support large files by default,
15608 # so use the C compiler's -n32 option if that helps.
15609 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15610 /* end confdefs.h. */
15611 #include <sys/types.h>
15612 /* Check that off_t can represent 2**63 - 1 correctly.
15613 We can't simply define LARGE_OFF_T to be 9223372036854775807,
15614 since some C++ compilers masquerading as C compilers
15615 incorrectly reject 9223372036854775807. */
15616 #define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
15617 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
15618 && LARGE_OFF_T % 2147483647 == 1)
15619 ? 1 : -1];
15620 int
15621 main ()
15622 {
15623
15624 ;
15625 return 0;
15626 }
15627 _ACEOF
15628 if ac_fn_c_try_compile "$LINENO"; then :
15629 break
15630 fi
15631 rm -f core conftest.err conftest.$ac_objext
15632 CC="$CC -n32"
15633 if ac_fn_c_try_compile "$LINENO"; then :
15634 ac_cv_sys_largefile_CC=' -n32'; break
15635 fi
15636 rm -f core conftest.err conftest.$ac_objext
15637 break
15638 done
15639 CC=$ac_save_CC
15640 rm -f conftest.$ac_ext
15641 fi
15642 fi
15643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
15644 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
15645 if test "$ac_cv_sys_largefile_CC" != no; then
15646 CC=$CC$ac_cv_sys_largefile_CC
15647 fi
15648
15649 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
15650 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
15651 if ${ac_cv_sys_file_offset_bits+:} false; then :
15652 $as_echo_n "(cached) " >&6
15653 else
15654 while :; do
15655 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15656 /* end confdefs.h. */
15657 #include <sys/types.h>
15658 /* Check that off_t can represent 2**63 - 1 correctly.
15659 We can't simply define LARGE_OFF_T to be 9223372036854775807,
15660 since some C++ compilers masquerading as C compilers
15661 incorrectly reject 9223372036854775807. */
15662 #define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
15663 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
15664 && LARGE_OFF_T % 2147483647 == 1)
15665 ? 1 : -1];
15666 int
15667 main ()
15668 {
15669
15670 ;
15671 return 0;
15672 }
15673 _ACEOF
15674 if ac_fn_c_try_compile "$LINENO"; then :
15675 ac_cv_sys_file_offset_bits=no; break
15676 fi
15677 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15678 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15679 /* end confdefs.h. */
15680 #define _FILE_OFFSET_BITS 64
15681 #include <sys/types.h>
15682 /* Check that off_t can represent 2**63 - 1 correctly.
15683 We can't simply define LARGE_OFF_T to be 9223372036854775807,
15684 since some C++ compilers masquerading as C compilers
15685 incorrectly reject 9223372036854775807. */
15686 #define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
15687 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
15688 && LARGE_OFF_T % 2147483647 == 1)
15689 ? 1 : -1];
15690 int
15691 main ()
15692 {
15693
15694 ;
15695 return 0;
15696 }
15697 _ACEOF
15698 if ac_fn_c_try_compile "$LINENO"; then :
15699 ac_cv_sys_file_offset_bits=64; break
15700 fi
15701 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15702 ac_cv_sys_file_offset_bits=unknown
15703 break
15704 done
15705 fi
15706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
15707 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
15708 case $ac_cv_sys_file_offset_bits in #(
15709 no | unknown) ;;
15710 *)
15711 cat >>confdefs.h <<_ACEOF
15712 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
15713 _ACEOF
15714 ;;
15715 esac
15716 rm -rf conftest*
15717 if test $ac_cv_sys_file_offset_bits = unknown; then
15718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
15719 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
15720 if ${ac_cv_sys_large_files+:} false; then :
15721 $as_echo_n "(cached) " >&6
15722 else
15723 while :; do
15724 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15725 /* end confdefs.h. */
15726 #include <sys/types.h>
15727 /* Check that off_t can represent 2**63 - 1 correctly.
15728 We can't simply define LARGE_OFF_T to be 9223372036854775807,
15729 since some C++ compilers masquerading as C compilers
15730 incorrectly reject 9223372036854775807. */
15731 #define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
15732 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
15733 && LARGE_OFF_T % 2147483647 == 1)
15734 ? 1 : -1];
15735 int
15736 main ()
15737 {
15738
15739 ;
15740 return 0;
15741 }
15742 _ACEOF
15743 if ac_fn_c_try_compile "$LINENO"; then :
15744 ac_cv_sys_large_files=no; break
15745 fi
15746 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15747 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15748 /* end confdefs.h. */
15749 #define _LARGE_FILES 1
15750 #include <sys/types.h>
15751 /* Check that off_t can represent 2**63 - 1 correctly.
15752 We can't simply define LARGE_OFF_T to be 9223372036854775807,
15753 since some C++ compilers masquerading as C compilers
15754 incorrectly reject 9223372036854775807. */
15755 #define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
15756 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
15757 && LARGE_OFF_T % 2147483647 == 1)
15758 ? 1 : -1];
15759 int
15760 main ()
15761 {
15762
15763 ;
15764 return 0;
15765 }
15766 _ACEOF
15767 if ac_fn_c_try_compile "$LINENO"; then :
15768 ac_cv_sys_large_files=1; break
15769 fi
15770 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15771 ac_cv_sys_large_files=unknown
15772 break
15773 done
15774 fi
15775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
15776 $as_echo "$ac_cv_sys_large_files" >&6; }
15777 case $ac_cv_sys_large_files in #(
15778 no | unknown) ;;
15779 *)
15780 cat >>confdefs.h <<_ACEOF
15781 #define _LARGE_FILES $ac_cv_sys_large_files
15782 _ACEOF
15783 ;;
15784 esac
15785 rm -rf conftest*
15786 fi
15787
15788
15789 fi
15790
15791
15792 # Checks for libraries.
15793 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing getpwnam" >&5
15794 $as_echo_n "checking for library containing getpwnam... " >&6; }
15795 if ${ac_cv_search_getpwnam+:} false; then :
15796 $as_echo_n "(cached) " >&6
15797 else
15798 ac_func_search_save_LIBS=$LIBS
15799 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15800 /* end confdefs.h. */
15801
15802 /* Override any GCC internal prototype to avoid an error.
15803 Use char because int might match the return type of a GCC
15804 builtin and then its argument prototype would still apply. */
15805 #ifdef __cplusplus
15806 extern "C"
15807 #endif
15808 char getpwnam ();
15809 int
15810 main ()
15811 {
15812 return getpwnam ();
15813 ;
15814 return 0;
15815 }
15816 _ACEOF
15817 for ac_lib in '' sun; do
15818 if test -z "$ac_lib"; then
15819 ac_res="none required"
15820 else
15821 ac_res=-l$ac_lib
15822 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
15823 fi
15824 if ac_fn_c_try_link "$LINENO"; then :
15825 ac_cv_search_getpwnam=$ac_res
15826 fi
15827 rm -f core conftest.err conftest.$ac_objext \
15828 conftest$ac_exeext
15829 if ${ac_cv_search_getpwnam+:} false; then :
15830 break
15831 fi
15832 done
15833 if ${ac_cv_search_getpwnam+:} false; then :
15834
15835 else
15836 ac_cv_search_getpwnam=no
15837 fi
15838 rm conftest.$ac_ext
15839 LIBS=$ac_func_search_save_LIBS
15840 fi
15841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_getpwnam" >&5
15842 $as_echo "$ac_cv_search_getpwnam" >&6; }
15843 ac_res=$ac_cv_search_getpwnam
15844 if test "$ac_res" != no; then :
15845 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
15846
15847 fi
15848
15849
15850 # Checks for header files.
15851 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
15852 $as_echo_n "checking for ANSI C header files... " >&6; }
15853 if ${ac_cv_header_stdc+:} false; then :
15854 $as_echo_n "(cached) " >&6
15855 else
15856 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15857 /* end confdefs.h. */
15858 #include <stdlib.h>
15859 #include <stdarg.h>
15860 #include <string.h>
15861 #include <float.h>
15862
15863 int
15864 main ()
15865 {
15866
15867 ;
15868 return 0;
15869 }
15870 _ACEOF
15871 if ac_fn_c_try_compile "$LINENO"; then :
15872 ac_cv_header_stdc=yes
15873 else
15874 ac_cv_header_stdc=no
15875 fi
15876 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15877
15878 if test $ac_cv_header_stdc = yes; then
15879 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
15880 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15881 /* end confdefs.h. */
15882 #include <string.h>
15883
15884 _ACEOF
15885 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15886 $EGREP "memchr" >/dev/null 2>&1; then :
15887
15888 else
15889 ac_cv_header_stdc=no
15890 fi
15891 rm -f conftest*
15892
15893 fi
15894
15895 if test $ac_cv_header_stdc = yes; then
15896 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
15897 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15898 /* end confdefs.h. */
15899 #include <stdlib.h>
15900
15901 _ACEOF
15902 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15903 $EGREP "free" >/dev/null 2>&1; then :
15904
15905 else
15906 ac_cv_header_stdc=no
15907 fi
15908 rm -f conftest*
15909
15910 fi
15911
15912 if test $ac_cv_header_stdc = yes; then
15913 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
15914 if test "$cross_compiling" = yes; then :
15915 :
15916 else
15917 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15918 /* end confdefs.h. */
15919 #include <ctype.h>
15920 #include <stdlib.h>
15921 #if ((' ' & 0x0FF) == 0x020)
15922 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
15923 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
15924 #else
15925 # define ISLOWER(c) \
15926 (('a' <= (c) && (c) <= 'i') \
15927 || ('j' <= (c) && (c) <= 'r') \
15928 || ('s' <= (c) && (c) <= 'z'))
15929 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
15930 #endif
15931
15932 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
15933 int
15934 main ()
15935 {
15936 int i;
15937 for (i = 0; i < 256; i++)
15938 if (XOR (islower (i), ISLOWER (i))
15939 || toupper (i) != TOUPPER (i))
15940 return 2;
15941 return 0;
15942 }
15943 _ACEOF
15944 if ac_fn_c_try_run "$LINENO"; then :
15945
15946 else
15947 ac_cv_header_stdc=no
15948 fi
15949 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15950 conftest.$ac_objext conftest.beam conftest.$ac_ext
15951 fi
15952
15953 fi
15954 fi
15955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
15956 $as_echo "$ac_cv_header_stdc" >&6; }
15957 if test $ac_cv_header_stdc = yes; then
15958
15959 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
15960
15961 fi
15962
15963 ac_header_dirent=no
15964 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
15965 as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
15966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
15967 $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
15968 if eval \${$as_ac_Header+:} false; then :
15969 $as_echo_n "(cached) " >&6
15970 else
15971 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15972 /* end confdefs.h. */
15973 #include <sys/types.h>
15974 #include <$ac_hdr>
15975
15976 int
15977 main ()
15978 {
15979 if ((DIR *) 0)
15980 return 0;
15981 ;
15982 return 0;
15983 }
15984 _ACEOF
15985 if ac_fn_c_try_compile "$LINENO"; then :
15986 eval "$as_ac_Header=yes"
15987 else
15988 eval "$as_ac_Header=no"
15989 fi
15990 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15991 fi
15992 eval ac_res=\$$as_ac_Header
15993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
15994 $as_echo "$ac_res" >&6; }
15995 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
15996 cat >>confdefs.h <<_ACEOF
15997 #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
15998 _ACEOF
15999
16000 ac_header_dirent=$ac_hdr; break
16001 fi
16002
16003 done
16004 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
16005 if test $ac_header_dirent = dirent.h; then
16006 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
16007 $as_echo_n "checking for library containing opendir... " >&6; }
16008 if ${ac_cv_search_opendir+:} false; then :
16009 $as_echo_n "(cached) " >&6
16010 else
16011 ac_func_search_save_LIBS=$LIBS
16012 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16013 /* end confdefs.h. */
16014
16015 /* Override any GCC internal prototype to avoid an error.
16016 Use char because int might match the return type of a GCC
16017 builtin and then its argument prototype would still apply. */
16018 #ifdef __cplusplus
16019 extern "C"
16020 #endif
16021 char opendir ();
16022 int
16023 main ()
16024 {
16025 return opendir ();
16026 ;
16027 return 0;
16028 }
16029 _ACEOF
16030 for ac_lib in '' dir; do
16031 if test -z "$ac_lib"; then
16032 ac_res="none required"
16033 else
16034 ac_res=-l$ac_lib
16035 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
16036 fi
16037 if ac_fn_c_try_link "$LINENO"; then :
16038 ac_cv_search_opendir=$ac_res
16039 fi
16040 rm -f core conftest.err conftest.$ac_objext \
16041 conftest$ac_exeext
16042 if ${ac_cv_search_opendir+:} false; then :
16043 break
16044 fi
16045 done
16046 if ${ac_cv_search_opendir+:} false; then :
16047
16048 else
16049 ac_cv_search_opendir=no
16050 fi
16051 rm conftest.$ac_ext
16052 LIBS=$ac_func_search_save_LIBS
16053 fi
16054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
16055 $as_echo "$ac_cv_search_opendir" >&6; }
16056 ac_res=$ac_cv_search_opendir
16057 if test "$ac_res" != no; then :
16058 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
16059
16060 fi
16061
16062 else
16063 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
16064 $as_echo_n "checking for library containing opendir... " >&6; }
16065 if ${ac_cv_search_opendir+:} false; then :
16066 $as_echo_n "(cached) " >&6
16067 else
16068 ac_func_search_save_LIBS=$LIBS
16069 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16070 /* end confdefs.h. */
16071
16072 /* Override any GCC internal prototype to avoid an error.
16073 Use char because int might match the return type of a GCC
16074 builtin and then its argument prototype would still apply. */
16075 #ifdef __cplusplus
16076 extern "C"
16077 #endif
16078 char opendir ();
16079 int
16080 main ()
16081 {
16082 return opendir ();
16083 ;
16084 return 0;
16085 }
16086 _ACEOF
16087 for ac_lib in '' x; do
16088 if test -z "$ac_lib"; then
16089 ac_res="none required"
16090 else
16091 ac_res=-l$ac_lib
16092 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
16093 fi
16094 if ac_fn_c_try_link "$LINENO"; then :
16095 ac_cv_search_opendir=$ac_res
16096 fi
16097 rm -f core conftest.err conftest.$ac_objext \
16098 conftest$ac_exeext
16099 if ${ac_cv_search_opendir+:} false; then :
16100 break
16101 fi
16102 done
16103 if ${ac_cv_search_opendir+:} false; then :
16104
16105 else
16106 ac_cv_search_opendir=no
16107 fi
16108 rm conftest.$ac_ext
16109 LIBS=$ac_func_search_save_LIBS
16110 fi
16111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
16112 $as_echo "$ac_cv_search_opendir" >&6; }
16113 ac_res=$ac_cv_search_opendir
16114 if test "$ac_res" != no; then :
16115 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
16116
16117 fi
16118
16119 fi
16120
16121 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5
16122 $as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
16123 if ${ac_cv_header_stat_broken+:} false; then :
16124 $as_echo_n "(cached) " >&6
16125 else
16126 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16127 /* end confdefs.h. */
16128 #include <sys/types.h>
16129 #include <sys/stat.h>
16130
16131 #if defined S_ISBLK && defined S_IFDIR
16132 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
16133 #endif
16134
16135 #if defined S_ISBLK && defined S_IFCHR
16136 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
16137 #endif
16138
16139 #if defined S_ISLNK && defined S_IFREG
16140 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
16141 #endif
16142
16143 #if defined S_ISSOCK && defined S_IFREG
16144 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
16145 #endif
16146
16147 _ACEOF
16148 if ac_fn_c_try_compile "$LINENO"; then :
16149 ac_cv_header_stat_broken=no
16150 else
16151 ac_cv_header_stat_broken=yes
16152 fi
16153 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16154 fi
16155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5
16156 $as_echo "$ac_cv_header_stat_broken" >&6; }
16157 if test $ac_cv_header_stat_broken = yes; then
16158
16159 $as_echo "#define STAT_MACROS_BROKEN 1" >>confdefs.h
16160
16161 fi
16162
16163 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
16164 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
16165 if ${ac_cv_header_time+:} false; then :
16166 $as_echo_n "(cached) " >&6
16167 else
16168 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16169 /* end confdefs.h. */
16170 #include <sys/types.h>
16171 #include <sys/time.h>
16172 #include <time.h>
16173
16174 int
16175 main ()
16176 {
16177 if ((struct tm *) 0)
16178 return 0;
16179 ;
16180 return 0;
16181 }
16182 _ACEOF
16183 if ac_fn_c_try_compile "$LINENO"; then :
16184 ac_cv_header_time=yes
16185 else
16186 ac_cv_header_time=no
16187 fi
16188 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16189 fi
16190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
16191 $as_echo "$ac_cv_header_time" >&6; }
16192 if test $ac_cv_header_time = yes; then
16193
16194 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
16195
16196 fi
16197
16198 for ac_header in stdlib.h locale.h unistd.h limits.h fcntl.h string.h \
16199 memory.h sys/param.h sys/resource.h sys/time.h sys/timeb.h \
16200 sys/select.h sys/file.h spawn.h
16201 do :
16202 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
16203 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
16204 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
16205 cat >>confdefs.h <<_ACEOF
16206 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
16207 _ACEOF
16208
16209 fi
16210
16211 done
16212
16213
16214
16215 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
16216 $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
16217 if ${ac_cv_prog_cc_c99+:} false; then :
16218 $as_echo_n "(cached) " >&6
16219 else
16220 ac_cv_prog_cc_c99=no
16221 ac_save_CC=$CC
16222 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16223 /* end confdefs.h. */
16224 #include <stdarg.h>
16225 #include <stdbool.h>
16226 #include <stdlib.h>
16227 #include <wchar.h>
16228 #include <stdio.h>
16229
16230 // Check varargs macros. These examples are taken from C99 6.10.3.5.
16231 #define debug(...) fprintf (stderr, __VA_ARGS__)
16232 #define showlist(...) puts (#__VA_ARGS__)
16233 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
16234 static void
16235 test_varargs_macros (void)
16236 {
16237 int x = 1234;
16238 int y = 5678;
16239 debug ("Flag");
16240 debug ("X = %d\n", x);
16241 showlist (The first, second, and third items.);
16242 report (x>y, "x is %d but y is %d", x, y);
16243 }
16244
16245 // Check long long types.
16246 #define BIG64 18446744073709551615ull
16247 #define BIG32 4294967295ul
16248 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
16249 #if !BIG_OK
16250 your preprocessor is broken;
16251 #endif
16252 #if BIG_OK
16253 #else
16254 your preprocessor is broken;
16255 #endif
16256 static long long int bignum = -9223372036854775807LL;
16257 static unsigned long long int ubignum = BIG64;
16258
16259 struct incomplete_array
16260 {
16261 int datasize;
16262 double data[];
16263 };
16264
16265 struct named_init {
16266 int number;
16267 const wchar_t *name;
16268 double average;
16269 };
16270
16271 typedef const char *ccp;
16272
16273 static inline int
16274 test_restrict (ccp restrict text)
16275 {
16276 // See if C++-style comments work.
16277 // Iterate through items via the restricted pointer.
16278 // Also check for declarations in for loops.
16279 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
16280 continue;
16281 return 0;
16282 }
16283
16284 // Check varargs and va_copy.
16285 static void
16286 test_varargs (const char *format, ...)
16287 {
16288 va_list args;
16289 va_start (args, format);
16290 va_list args_copy;
16291 va_copy (args_copy, args);
16292
16293 const char *str;
16294 int number;
16295 float fnumber;
16296
16297 while (*format)
16298 {
16299 switch (*format++)
16300 {
16301 case 's': // string
16302 str = va_arg (args_copy, const char *);
16303 break;
16304 case 'd': // int
16305 number = va_arg (args_copy, int);
16306 break;
16307 case 'f': // float
16308 fnumber = va_arg (args_copy, double);
16309 break;
16310 default:
16311 break;
16312 }
16313 }
16314 va_end (args_copy);
16315 va_end (args);
16316 }
16317
16318 int
16319 main ()
16320 {
16321
16322 // Check bool.
16323 _Bool success = false;
16324
16325 // Check restrict.
16326 if (test_restrict ("String literal") == 0)
16327 success = true;
16328 char *restrict newvar = "Another string";
16329
16330 // Check varargs.
16331 test_varargs ("s, d' f .", "string", 65, 34.234);
16332 test_varargs_macros ();
16333
16334 // Check flexible array members.
16335 struct incomplete_array *ia =
16336 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
16337 ia->datasize = 10;
16338 for (int i = 0; i < ia->datasize; ++i)
16339 ia->data[i] = i * 1.234;
16340
16341 // Check named initializers.
16342 struct named_init ni = {
16343 .number = 34,
16344 .name = L"Test wide string",
16345 .average = 543.34343,
16346 };
16347
16348 ni.number = 58;
16349
16350 int dynamic_array[ni.number];
16351 dynamic_array[ni.number - 1] = 543;
16352
16353 // work around unused variable warnings
16354 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
16355 || dynamic_array[ni.number - 1] != 543);
16356
16357 ;
16358 return 0;
16359 }
16360 _ACEOF
16361 for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99
16362 do
16363 CC="$ac_save_CC $ac_arg"
16364 if ac_fn_c_try_compile "$LINENO"; then :
16365 ac_cv_prog_cc_c99=$ac_arg
16366 fi
16367 rm -f core conftest.err conftest.$ac_objext
16368 test "x$ac_cv_prog_cc_c99" != "xno" && break
16369 done
16370 rm -f conftest.$ac_ext
16371 CC=$ac_save_CC
16372
16373 fi
16374 # AC_CACHE_VAL
16375 case "x$ac_cv_prog_cc_c99" in
16376 x)
16377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
16378 $as_echo "none needed" >&6; } ;;
16379 xno)
16380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
16381 $as_echo "unsupported" >&6; } ;;
16382 *)
16383 CC="$CC $ac_cv_prog_cc_c99"
16384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
16385 $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
16386 esac
16387 if test "x$ac_cv_prog_cc_c99" != xno; then :
16388
16389 fi
16390
16391
16392 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
16393 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
16394 if ${ac_cv_c_const+:} false; then :
16395 $as_echo_n "(cached) " >&6
16396 else
16397 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16398 /* end confdefs.h. */
16399
16400 int
16401 main ()
16402 {
16403
16404 #ifndef __cplusplus
16405 /* Ultrix mips cc rejects this sort of thing. */
16406 typedef int charset[2];
16407 const charset cs = { 0, 0 };
16408 /* SunOS 4.1.1 cc rejects this. */
16409 char const *const *pcpcc;
16410 char **ppc;
16411 /* NEC SVR4.0.2 mips cc rejects this. */
16412 struct point {int x, y;};
16413 static struct point const zero = {0,0};
16414 /* AIX XL C 1.02.0.0 rejects this.
16415 It does not let you subtract one const X* pointer from another in
16416 an arm of an if-expression whose if-part is not a constant
16417 expression */
16418 const char *g = "string";
16419 pcpcc = &g + (g ? g-g : 0);
16420 /* HPUX 7.0 cc rejects these. */
16421 ++pcpcc;
16422 ppc = (char**) pcpcc;
16423 pcpcc = (char const *const *) ppc;
16424 { /* SCO 3.2v4 cc rejects this sort of thing. */
16425 char tx;
16426 char *t = &tx;
16427 char const *s = 0 ? (char *) 0 : (char const *) 0;
16428
16429 *t++ = 0;
16430 if (s) return 0;
16431 }
16432 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
16433 int x[] = {25, 17};
16434 const int *foo = &x[0];
16435 ++foo;
16436 }
16437 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
16438 typedef const int *iptr;
16439 iptr p = 0;
16440 ++p;
16441 }
16442 { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
16443 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
16444 struct s { int j; const int *ap[3]; } bx;
16445 struct s *b = &bx; b->j = 5;
16446 }
16447 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
16448 const int foo = 10;
16449 if (!foo) return 0;
16450 }
16451 return !cs[0] && !zero.x;
16452 #endif
16453
16454 ;
16455 return 0;
16456 }
16457 _ACEOF
16458 if ac_fn_c_try_compile "$LINENO"; then :
16459 ac_cv_c_const=yes
16460 else
16461 ac_cv_c_const=no
16462 fi
16463 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16464 fi
16465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
16466 $as_echo "$ac_cv_c_const" >&6; }
16467 if test $ac_cv_c_const = no; then
16468
16469 $as_echo "#define const /**/" >>confdefs.h
16470
16471 fi
16472
16473 { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
16474 $as_echo_n "checking return type of signal handlers... " >&6; }
16475 if ${ac_cv_type_signal+:} false; then :
16476 $as_echo_n "(cached) " >&6
16477 else
16478 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16479 /* end confdefs.h. */
16480 #include <sys/types.h>
16481 #include <signal.h>
16482
16483 int
16484 main ()
16485 {
16486 return *(signal (0, 0)) (0) == 1;
16487 ;
16488 return 0;
16489 }
16490 _ACEOF
16491 if ac_fn_c_try_compile "$LINENO"; then :
16492 ac_cv_type_signal=int
16493 else
16494 ac_cv_type_signal=void
16495 fi
16496 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16497 fi
16498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
16499 $as_echo "$ac_cv_type_signal" >&6; }
16500
16501 cat >>confdefs.h <<_ACEOF
16502 #define RETSIGTYPE $ac_cv_type_signal
16503 _ACEOF
16504
16505
16506 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
16507 $as_echo_n "checking for uid_t in sys/types.h... " >&6; }
16508 if ${ac_cv_type_uid_t+:} false; then :
16509 $as_echo_n "(cached) " >&6
16510 else
16511 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16512 /* end confdefs.h. */
16513 #include <sys/types.h>
16514
16515 _ACEOF
16516 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16517 $EGREP "uid_t" >/dev/null 2>&1; then :
16518 ac_cv_type_uid_t=yes
16519 else
16520 ac_cv_type_uid_t=no
16521 fi
16522 rm -f conftest*
16523
16524 fi
16525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
16526 $as_echo "$ac_cv_type_uid_t" >&6; }
16527 if test $ac_cv_type_uid_t = no; then
16528
16529 $as_echo "#define uid_t int" >>confdefs.h
16530
16531
16532 $as_echo "#define gid_t int" >>confdefs.h
16533
16534 fi
16535
16536 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
16537 if test "x$ac_cv_type_pid_t" = xyes; then :
16538
16539 else
16540
16541 cat >>confdefs.h <<_ACEOF
16542 #define pid_t int
16543 _ACEOF
16544
16545 fi
16546
16547 ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
16548 if test "x$ac_cv_type_off_t" = xyes; then :
16549
16550 else
16551
16552 cat >>confdefs.h <<_ACEOF
16553 #define off_t long int
16554 _ACEOF
16555
16556 fi
16557
16558 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
16559 if test "x$ac_cv_type_size_t" = xyes; then :
16560
16561 else
16562
16563 cat >>confdefs.h <<_ACEOF
16564 #define size_t unsigned int
16565 _ACEOF
16566
16567 fi
16568
16569 ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
16570 if test "x$ac_cv_type_ssize_t" = xyes; then :
16571
16572 else
16573
16574 cat >>confdefs.h <<_ACEOF
16575 #define ssize_t int
16576 _ACEOF
16577
16578 fi
16579
16580
16581 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
16582 $as_echo_n "checking for unsigned long long int... " >&6; }
16583 if ${ac_cv_type_unsigned_long_long_int+:} false; then :
16584 $as_echo_n "(cached) " >&6
16585 else
16586 ac_cv_type_unsigned_long_long_int=yes
16587 if test "x${ac_cv_prog_cc_c99-no}" = xno; then
16588 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16589 /* end confdefs.h. */
16590
16591 /* For now, do not test the preprocessor; as of 2007 there are too many
16592 implementations with broken preprocessors. Perhaps this can
16593 be revisited in 2012. In the meantime, code should not expect
16594 #if to work with literals wider than 32 bits. */
16595 /* Test literals. */
16596 long long int ll = 9223372036854775807ll;
16597 long long int nll = -9223372036854775807LL;
16598 unsigned long long int ull = 18446744073709551615ULL;
16599 /* Test constant expressions. */
16600 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
16601 ? 1 : -1)];
16602 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
16603 ? 1 : -1)];
16604 int i = 63;
16605 int
16606 main ()
16607 {
16608 /* Test availability of runtime routines for shift and division. */
16609 long long int llmax = 9223372036854775807ll;
16610 unsigned long long int ullmax = 18446744073709551615ull;
16611 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
16612 | (llmax / ll) | (llmax % ll)
16613 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
16614 | (ullmax / ull) | (ullmax % ull));
16615 ;
16616 return 0;
16617 }
16618
16619 _ACEOF
16620 if ac_fn_c_try_link "$LINENO"; then :
16621
16622 else
16623 ac_cv_type_unsigned_long_long_int=no
16624 fi
16625 rm -f core conftest.err conftest.$ac_objext \
16626 conftest$ac_exeext conftest.$ac_ext
16627 fi
16628 fi
16629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
16630 $as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
16631 if test $ac_cv_type_unsigned_long_long_int = yes; then
16632
16633 $as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
16634
16635 fi
16636
16637
16638
16639 ac_fn_c_check_type "$LINENO" "uintmax_t" "ac_cv_type_uintmax_t" "$ac_includes_default"
16640 if test "x$ac_cv_type_uintmax_t" = xyes; then :
16641
16642 $as_echo "#define HAVE_UINTMAX_T 1" >>confdefs.h
16643
16644 else
16645 test $ac_cv_type_unsigned_long_long_int = yes \
16646 && ac_type='unsigned long long int' \
16647 || ac_type='unsigned long int'
16648
16649 cat >>confdefs.h <<_ACEOF
16650 #define uintmax_t $ac_type
16651 _ACEOF
16652
16653 fi
16654
16655
16656
16657 # Find out whether our struct stat returns nanosecond resolution timestamps.
16658
16659 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nanoseconds field of struct stat" >&5
16660 $as_echo_n "checking for nanoseconds field of struct stat... " >&6; }
16661 if ${ac_cv_struct_st_mtim_nsec+:} false; then :
16662 $as_echo_n "(cached) " >&6
16663 else
16664 ac_save_CPPFLAGS="$CPPFLAGS"
16665 ac_cv_struct_st_mtim_nsec=no
16666 # st_mtim.tv_nsec -- the usual case
16667 # st_mtim._tv_nsec -- Solaris 2.6, if
16668 # (defined _XOPEN_SOURCE && _XOPEN_SOURCE_EXTENDED == 1
16669 # && !defined __EXTENSIONS__)
16670 # st_mtim.st__tim.tv_nsec -- UnixWare 2.1.2
16671 # st_mtime_n -- AIX 5.2 and above
16672 # st_mtimespec.tv_nsec -- Darwin (Mac OSX)
16673 for ac_val in st_mtim.tv_nsec st_mtim._tv_nsec st_mtim.st__tim.tv_nsec st_mtime_n st_mtimespec.tv_nsec; do
16674 CPPFLAGS="$ac_save_CPPFLAGS -DST_MTIM_NSEC=$ac_val"
16675 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16676 /* end confdefs.h. */
16677 #include <sys/types.h>
16678 #include <sys/stat.h>
16679
16680 int
16681 main ()
16682 {
16683 struct stat s; s.ST_MTIM_NSEC;
16684 ;
16685 return 0;
16686 }
16687 _ACEOF
16688 if ac_fn_c_try_compile "$LINENO"; then :
16689 ac_cv_struct_st_mtim_nsec=$ac_val; break
16690 fi
16691 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16692 done
16693 CPPFLAGS="$ac_save_CPPFLAGS"
16694
16695 fi
16696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_st_mtim_nsec" >&5
16697 $as_echo "$ac_cv_struct_st_mtim_nsec" >&6; }
16698
16699 if test $ac_cv_struct_st_mtim_nsec != no; then
16700
16701 cat >>confdefs.h <<_ACEOF
16702 #define ST_MTIM_NSEC $ac_cv_struct_st_mtim_nsec
16703 _ACEOF
16704
16705 fi
16706
16707
16708 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use high resolution file timestamps" >&5
16709 $as_echo_n "checking whether to use high resolution file timestamps... " >&6; }
16710 if ${make_cv_file_timestamp_hi_res+:} false; then :
16711 $as_echo_n "(cached) " >&6
16712 else
16713 make_cv_file_timestamp_hi_res=no
16714 if test "$ac_cv_struct_st_mtim_nsec" != no; then :
16715 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16716 /* end confdefs.h. */
16717
16718 #if HAVE_INTTYPES_H
16719 # include <inttypes.h>
16720 #endif
16721 int
16722 main ()
16723 {
16724 char a[0x7fffffff < (uintmax_t)-1 >> 30 ? 1 : -1];
16725 ;
16726 return 0;
16727 }
16728 _ACEOF
16729 if ac_fn_c_try_compile "$LINENO"; then :
16730 make_cv_file_timestamp_hi_res=yes
16731 fi
16732 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16733
16734 fi
16735 fi
16736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $make_cv_file_timestamp_hi_res" >&5
16737 $as_echo "$make_cv_file_timestamp_hi_res" >&6; }
16738 if test "$make_cv_file_timestamp_hi_res" = yes; then :
16739 val=1
16740 else
16741 val=0
16742 fi
16743
16744 cat >>confdefs.h <<_ACEOF
16745 #define FILE_TIMESTAMP_HI_RES $val
16746 _ACEOF
16747
16748
16749 if test "$make_cv_file_timestamp_hi_res" = yes; then :
16750 # Solaris 2.5.1 needs -lposix4 to get the clock_gettime function.
16751 # Solaris 7 prefers the library name -lrt to the obsolescent name -lposix4.
16752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing clock_gettime" >&5
16753 $as_echo_n "checking for library containing clock_gettime... " >&6; }
16754 if ${ac_cv_search_clock_gettime+:} false; then :
16755 $as_echo_n "(cached) " >&6
16756 else
16757 ac_func_search_save_LIBS=$LIBS
16758 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16759 /* end confdefs.h. */
16760
16761 /* Override any GCC internal prototype to avoid an error.
16762 Use char because int might match the return type of a GCC
16763 builtin and then its argument prototype would still apply. */
16764 #ifdef __cplusplus
16765 extern "C"
16766 #endif
16767 char clock_gettime ();
16768 int
16769 main ()
16770 {
16771 return clock_gettime ();
16772 ;
16773 return 0;
16774 }
16775 _ACEOF
16776 for ac_lib in '' rt posix4; do
16777 if test -z "$ac_lib"; then
16778 ac_res="none required"
16779 else
16780 ac_res=-l$ac_lib
16781 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
16782 fi
16783 if ac_fn_c_try_link "$LINENO"; then :
16784 ac_cv_search_clock_gettime=$ac_res
16785 fi
16786 rm -f core conftest.err conftest.$ac_objext \
16787 conftest$ac_exeext
16788 if ${ac_cv_search_clock_gettime+:} false; then :
16789 break
16790 fi
16791 done
16792 if ${ac_cv_search_clock_gettime+:} false; then :
16793
16794 else
16795 ac_cv_search_clock_gettime=no
16796 fi
16797 rm conftest.$ac_ext
16798 LIBS=$ac_func_search_save_LIBS
16799 fi
16800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_clock_gettime" >&5
16801 $as_echo "$ac_cv_search_clock_gettime" >&6; }
16802 ac_res=$ac_cv_search_clock_gettime
16803 if test "$ac_res" != no; then :
16804 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
16805
16806 fi
16807
16808 if test "$ac_cv_search_clock_gettime" != no; then :
16809
16810 $as_echo "#define HAVE_CLOCK_GETTIME 1" >>confdefs.h
16811
16812
16813 fi
16814
16815 fi
16816
16817 # Check for DOS-style pathnames.
16818
16819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether system uses MSDOS-style paths" >&5
16820 $as_echo_n "checking whether system uses MSDOS-style paths... " >&6; }
16821 if ${ac_cv_dos_paths+:} false; then :
16822 $as_echo_n "(cached) " >&6
16823 else
16824
16825 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16826 /* end confdefs.h. */
16827
16828 #if !defined _WIN32 && !defined __WIN32__ && !defined __MSDOS__ && !defined __EMX__ && !defined __MSYS__ && !defined __CYGWIN__
16829 neither MSDOS nor Windows nor OS2
16830 #endif
16831
16832 int
16833 main ()
16834 {
16835
16836 ;
16837 return 0;
16838 }
16839 _ACEOF
16840 if ac_fn_c_try_compile "$LINENO"; then :
16841 ac_cv_dos_paths=yes
16842 else
16843 ac_cv_dos_paths=no
16844 fi
16845 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16846 fi
16847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_dos_paths" >&5
16848 $as_echo "$ac_cv_dos_paths" >&6; }
16849
16850 if test x"$ac_cv_dos_paths" = xyes; then :
16851
16852 cat >>confdefs.h <<_ACEOF
16853 #define HAVE_DOS_PATHS 1
16854 _ACEOF
16855
16856 fi
16857
16858
16859 # See if we have a standard version of gettimeofday(). Since actual
16860 # implementations can differ, just make sure we have the most common
16861 # one.
16862 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for standard gettimeofday" >&5
16863 $as_echo_n "checking for standard gettimeofday... " >&6; }
16864 if ${ac_cv_func_gettimeofday+:} false; then :
16865 $as_echo_n "(cached) " >&6
16866 else
16867 ac_cv_func_gettimeofday=no
16868 if test "$cross_compiling" = yes; then :
16869 ac_cv_func_gettimeofday="no (cross-compiling)"
16870 else
16871 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16872 /* end confdefs.h. */
16873 #include <sys/time.h>
16874 int main ()
16875 {
16876 struct timeval t; t.tv_sec = -1; t.tv_usec = -1;
16877 return gettimeofday (&t, 0) != 0
16878 || t.tv_sec < 0 || t.tv_usec < 0;
16879 }
16880 _ACEOF
16881 if ac_fn_c_try_run "$LINENO"; then :
16882 ac_cv_func_gettimeofday=yes
16883 else
16884 ac_cv_func_gettimeofday=no
16885 fi
16886 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16887 conftest.$ac_objext conftest.beam conftest.$ac_ext
16888 fi
16889
16890 fi
16891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_gettimeofday" >&5
16892 $as_echo "$ac_cv_func_gettimeofday" >&6; }
16893 if test "$ac_cv_func_gettimeofday" = yes; then :
16894
16895 $as_echo "#define HAVE_GETTIMEOFDAY 1" >>confdefs.h
16896
16897
16898 fi
16899
16900 for ac_func in strdup strndup memrchr umask mkstemp mktemp fdopen \
16901 dup dup2 getcwd realpath sigsetmask sigaction \
16902 getgroups seteuid setegid setlinebuf setreuid setregid \
16903 getrlimit setrlimit setvbuf pipe strsignal \
16904 lstat readlink atexit isatty ttyname pselect posix_spawn \
16905 posix_spawnattr_setsigmask
16906 do :
16907 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
16908 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
16909 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
16910 cat >>confdefs.h <<_ACEOF
16911 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
16912 _ACEOF
16913
16914 fi
16915 done
16916
16917
16918 # We need to check declarations, not just existence, because on Tru64 this
16919 # function is not declared without special flags, which themselves cause
16920 # other problems. We'll just use our own.
16921 ac_fn_c_check_decl "$LINENO" "bsd_signal" "ac_cv_have_decl_bsd_signal" "#define _GNU_SOURCE 1
16922 #include <signal.h>
16923 "
16924 if test "x$ac_cv_have_decl_bsd_signal" = xyes; then :
16925 ac_have_decl=1
16926 else
16927 ac_have_decl=0
16928 fi
16929
16930 cat >>confdefs.h <<_ACEOF
16931 #define HAVE_DECL_BSD_SIGNAL $ac_have_decl
16932 _ACEOF
16933
16934
16935 for ac_header in vfork.h
16936 do :
16937 ac_fn_c_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
16938 if test "x$ac_cv_header_vfork_h" = xyes; then :
16939 cat >>confdefs.h <<_ACEOF
16940 #define HAVE_VFORK_H 1
16941 _ACEOF
16942
16943 fi
16944
16945 done
16946
16947 for ac_func in fork vfork
16948 do :
16949 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
16950 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
16951 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
16952 cat >>confdefs.h <<_ACEOF
16953 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
16954 _ACEOF
16955
16956 fi
16957 done
16958
16959 if test "x$ac_cv_func_fork" = xyes; then
16960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
16961 $as_echo_n "checking for working fork... " >&6; }
16962 if ${ac_cv_func_fork_works+:} false; then :
16963 $as_echo_n "(cached) " >&6
16964 else
16965 if test "$cross_compiling" = yes; then :
16966 ac_cv_func_fork_works=cross
16967 else
16968 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16969 /* end confdefs.h. */
16970 $ac_includes_default
16971 int
16972 main ()
16973 {
16974
16975 /* By Ruediger Kuhlmann. */
16976 return fork () < 0;
16977
16978 ;
16979 return 0;
16980 }
16981 _ACEOF
16982 if ac_fn_c_try_run "$LINENO"; then :
16983 ac_cv_func_fork_works=yes
16984 else
16985 ac_cv_func_fork_works=no
16986 fi
16987 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16988 conftest.$ac_objext conftest.beam conftest.$ac_ext
16989 fi
16990
16991 fi
16992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
16993 $as_echo "$ac_cv_func_fork_works" >&6; }
16994
16995 else
16996 ac_cv_func_fork_works=$ac_cv_func_fork
16997 fi
16998 if test "x$ac_cv_func_fork_works" = xcross; then
16999 case $host in
17000 *-*-amigaos* | *-*-msdosdjgpp*)
17001 # Override, as these systems have only a dummy fork() stub
17002 ac_cv_func_fork_works=no
17003 ;;
17004 *)
17005 ac_cv_func_fork_works=yes
17006 ;;
17007 esac
17008 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
17009 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
17010 fi
17011 ac_cv_func_vfork_works=$ac_cv_func_vfork
17012 if test "x$ac_cv_func_vfork" = xyes; then
17013 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
17014 $as_echo_n "checking for working vfork... " >&6; }
17015 if ${ac_cv_func_vfork_works+:} false; then :
17016 $as_echo_n "(cached) " >&6
17017 else
17018 if test "$cross_compiling" = yes; then :
17019 ac_cv_func_vfork_works=cross
17020 else
17021 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17022 /* end confdefs.h. */
17023 /* Thanks to Paul Eggert for this test. */
17024 $ac_includes_default
17025 #include <sys/wait.h>
17026 #ifdef HAVE_VFORK_H
17027 # include <vfork.h>
17028 #endif
17029 /* On some sparc systems, changes by the child to local and incoming
17030 argument registers are propagated back to the parent. The compiler
17031 is told about this with #include <vfork.h>, but some compilers
17032 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
17033 static variable whose address is put into a register that is
17034 clobbered by the vfork. */
17035 static void
17036 #ifdef __cplusplus
17037 sparc_address_test (int arg)
17038 # else
17039 sparc_address_test (arg) int arg;
17040 #endif
17041 {
17042 static pid_t child;
17043 if (!child) {
17044 child = vfork ();
17045 if (child < 0) {
17046 perror ("vfork");
17047 _exit(2);
17048 }
17049 if (!child) {
17050 arg = getpid();
17051 write(-1, "", 0);
17052 _exit (arg);
17053 }
17054 }
17055 }
17056
17057 int
17058 main ()
17059 {
17060 pid_t parent = getpid ();
17061 pid_t child;
17062
17063 sparc_address_test (0);
17064
17065 child = vfork ();
17066
17067 if (child == 0) {
17068 /* Here is another test for sparc vfork register problems. This
17069 test uses lots of local variables, at least as many local
17070 variables as main has allocated so far including compiler
17071 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
17072 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
17073 reuse the register of parent for one of the local variables,
17074 since it will think that parent can't possibly be used any more
17075 in this routine. Assigning to the local variable will thus
17076 munge parent in the parent process. */
17077 pid_t
17078 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
17079 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
17080 /* Convince the compiler that p..p7 are live; otherwise, it might
17081 use the same hardware register for all 8 local variables. */
17082 if (p != p1 || p != p2 || p != p3 || p != p4
17083 || p != p5 || p != p6 || p != p7)
17084 _exit(1);
17085
17086 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
17087 from child file descriptors. If the child closes a descriptor
17088 before it execs or exits, this munges the parent's descriptor
17089 as well. Test for this by closing stdout in the child. */
17090 _exit(close(fileno(stdout)) != 0);
17091 } else {
17092 int status;
17093 struct stat st;
17094
17095 while (wait(&status) != child)
17096 ;
17097 return (
17098 /* Was there some problem with vforking? */
17099 child < 0
17100
17101 /* Did the child fail? (This shouldn't happen.) */
17102 || status
17103
17104 /* Did the vfork/compiler bug occur? */
17105 || parent != getpid()
17106
17107 /* Did the file descriptor bug occur? */
17108 || fstat(fileno(stdout), &st) != 0
17109 );
17110 }
17111 }
17112 _ACEOF
17113 if ac_fn_c_try_run "$LINENO"; then :
17114 ac_cv_func_vfork_works=yes
17115 else
17116 ac_cv_func_vfork_works=no
17117 fi
17118 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17119 conftest.$ac_objext conftest.beam conftest.$ac_ext
17120 fi
17121
17122 fi
17123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
17124 $as_echo "$ac_cv_func_vfork_works" >&6; }
17125
17126 fi;
17127 if test "x$ac_cv_func_fork_works" = xcross; then
17128 ac_cv_func_vfork_works=$ac_cv_func_vfork
17129 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
17130 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
17131 fi
17132
17133 if test "x$ac_cv_func_vfork_works" = xyes; then
17134
17135 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
17136
17137 else
17138
17139 $as_echo "#define vfork fork" >>confdefs.h
17140
17141 fi
17142 if test "x$ac_cv_func_fork_works" = xyes; then
17143
17144 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
17145
17146 fi
17147
17148
17149 if ${ac_cv_func_setvbuf_reversed+:} false; then :
17150 $as_echo_n "(cached) " >&6
17151 else
17152 ac_cv_func_setvbuf_reversed=no
17153 fi
17154
17155
17156
17157 # Rumor has it that strcasecmp lives in -lresolv on some odd systems.
17158 # It doesn't hurt much to use our own if we can't find it so I don't
17159 # make the effort here.
17160 for ac_func in strcasecmp strncasecmp strcmpi strncmpi stricmp strnicmp
17161 do :
17162 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
17163 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
17164 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
17165 cat >>confdefs.h <<_ACEOF
17166 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
17167 _ACEOF
17168
17169 fi
17170 done
17171
17172
17173 # Tell automake about this, so it can build the right .c files.
17174 if test "$make_cv_sys_gnu_glob" = no; then
17175 USE_LOCAL_GLOB_TRUE=
17176 USE_LOCAL_GLOB_FALSE='#'
17177 else
17178 USE_LOCAL_GLOB_TRUE='#'
17179 USE_LOCAL_GLOB_FALSE=
17180 fi
17181
17182
17183 for ac_func in vprintf
17184 do :
17185 ac_fn_c_check_func "$LINENO" "vprintf" "ac_cv_func_vprintf"
17186 if test "x$ac_cv_func_vprintf" = xyes; then :
17187 cat >>confdefs.h <<_ACEOF
17188 #define HAVE_VPRINTF 1
17189 _ACEOF
17190
17191 ac_fn_c_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt"
17192 if test "x$ac_cv_func__doprnt" = xyes; then :
17193
17194 $as_echo "#define HAVE_DOPRNT 1" >>confdefs.h
17195
17196 fi
17197
17198 fi
17199 done
17200
17201
17202
17203 # strcoll() is used by the GNU glob library
17204 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working strcoll" >&5
17205 $as_echo_n "checking for working strcoll... " >&6; }
17206 if ${ac_cv_func_strcoll_works+:} false; then :
17207 $as_echo_n "(cached) " >&6
17208 else
17209 if test "$cross_compiling" = yes; then :
17210 ac_cv_func_strcoll_works=no
17211 else
17212 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17213 /* end confdefs.h. */
17214 $ac_includes_default
17215 int
17216 main ()
17217 {
17218 return (strcoll ("abc", "def") >= 0 ||
17219 strcoll ("ABC", "DEF") >= 0 ||
17220 strcoll ("123", "456") >= 0)
17221 ;
17222 return 0;
17223 }
17224 _ACEOF
17225 if ac_fn_c_try_run "$LINENO"; then :
17226 ac_cv_func_strcoll_works=yes
17227 else
17228 ac_cv_func_strcoll_works=no
17229 fi
17230 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17231 conftest.$ac_objext conftest.beam conftest.$ac_ext
17232 fi
17233
17234 fi
17235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strcoll_works" >&5
17236 $as_echo "$ac_cv_func_strcoll_works" >&6; }
17237 if test $ac_cv_func_strcoll_works = yes; then
17238
17239 $as_echo "#define HAVE_STRCOLL 1" >>confdefs.h
17240
17241 fi
17242
17243 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether closedir returns void" >&5
17244 $as_echo_n "checking whether closedir returns void... " >&6; }
17245 if ${ac_cv_func_closedir_void+:} false; then :
17246 $as_echo_n "(cached) " >&6
17247 else
17248 if test "$cross_compiling" = yes; then :
17249 ac_cv_func_closedir_void=yes
17250 else
17251 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17252 /* end confdefs.h. */
17253 $ac_includes_default
17254 #include <$ac_header_dirent>
17255 #ifndef __cplusplus
17256 int closedir ();
17257 #endif
17258
17259 int
17260 main ()
17261 {
17262 return closedir (opendir (".")) != 0;
17263 ;
17264 return 0;
17265 }
17266 _ACEOF
17267 if ac_fn_c_try_run "$LINENO"; then :
17268 ac_cv_func_closedir_void=no
17269 else
17270 ac_cv_func_closedir_void=yes
17271 fi
17272 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17273 conftest.$ac_objext conftest.beam conftest.$ac_ext
17274 fi
17275
17276 fi
17277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_closedir_void" >&5
17278 $as_echo "$ac_cv_func_closedir_void" >&6; }
17279 if test $ac_cv_func_closedir_void = yes; then
17280
17281 $as_echo "#define CLOSEDIR_VOID 1" >>confdefs.h
17282
17283 fi
17284
17285
17286 # dir.c and our glob.c use dirent.d_type if available
17287
17288
17289 ac_fn_c_check_member "$LINENO" "struct dirent" "d_type" "ac_cv_member_struct_dirent_d_type" "
17290 #include <sys/types.h>
17291 #ifdef HAVE_DIRENT_H
17292 # include <dirent.h>
17293 #else
17294 # define dirent direct
17295 # ifdef HAVE_SYS_NDIR_H
17296 # include <sys/ndir.h>
17297 # endif
17298 # ifdef HAVE_SYS_DIR_H
17299 # include <sys/dir.h>
17300 # endif
17301 # ifdef HAVE_NDIR_H
17302 # include <ndir.h>
17303 # endif
17304 #endif
17305
17306 "
17307 if test "x$ac_cv_member_struct_dirent_d_type" = xyes; then :
17308
17309 cat >>confdefs.h <<_ACEOF
17310 #define HAVE_STRUCT_DIRENT_D_TYPE 1
17311 _ACEOF
17312
17313
17314 fi
17315
17316
17317
17318 # See if the user wants to add (or not) GNU Guile support
17319
17320 # Check whether --with-guile was given.
17321 if test "${with_guile+set}" = set; then :
17322 withval=$with_guile;
17323 fi
17324
17325
17326 # Annoyingly, each version of Guile comes with it's own PC file so we have to
17327 # specify them as individual packages. Ugh.
17328
17329
17330
17331
17332
17333
17334
17335 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
17336 if test -n "$ac_tool_prefix"; then
17337 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
17338 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
17339 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17340 $as_echo_n "checking for $ac_word... " >&6; }
17341 if ${ac_cv_path_PKG_CONFIG+:} false; then :
17342 $as_echo_n "(cached) " >&6
17343 else
17344 case $PKG_CONFIG in
17345 [\\/]* | ?:[\\/]*)
17346 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
17347 ;;
17348 *)
17349 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17350 for as_dir in $PATH
17351 do
17352 IFS=$as_save_IFS
17353 test -z "$as_dir" && as_dir=.
17354 for ac_exec_ext in '' $ac_executable_extensions; do
17355 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17356 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
17357 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17358 break 2
17359 fi
17360 done
17361 done
17362 IFS=$as_save_IFS
17363
17364 ;;
17365 esac
17366 fi
17367 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
17368 if test -n "$PKG_CONFIG"; then
17369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
17370 $as_echo "$PKG_CONFIG" >&6; }
17371 else
17372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17373 $as_echo "no" >&6; }
17374 fi
17375
17376
17377 fi
17378 if test -z "$ac_cv_path_PKG_CONFIG"; then
17379 ac_pt_PKG_CONFIG=$PKG_CONFIG
17380 # Extract the first word of "pkg-config", so it can be a program name with args.
17381 set dummy pkg-config; ac_word=$2
17382 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17383 $as_echo_n "checking for $ac_word... " >&6; }
17384 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
17385 $as_echo_n "(cached) " >&6
17386 else
17387 case $ac_pt_PKG_CONFIG in
17388 [\\/]* | ?:[\\/]*)
17389 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
17390 ;;
17391 *)
17392 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17393 for as_dir in $PATH
17394 do
17395 IFS=$as_save_IFS
17396 test -z "$as_dir" && as_dir=.
17397 for ac_exec_ext in '' $ac_executable_extensions; do
17398 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17399 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
17400 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17401 break 2
17402 fi
17403 done
17404 done
17405 IFS=$as_save_IFS
17406
17407 ;;
17408 esac
17409 fi
17410 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
17411 if test -n "$ac_pt_PKG_CONFIG"; then
17412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
17413 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
17414 else
17415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17416 $as_echo "no" >&6; }
17417 fi
17418
17419 if test "x$ac_pt_PKG_CONFIG" = x; then
17420 PKG_CONFIG=""
17421 else
17422 case $cross_compiling:$ac_tool_warned in
17423 yes:)
17424 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
17425 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
17426 ac_tool_warned=yes ;;
17427 esac
17428 PKG_CONFIG=$ac_pt_PKG_CONFIG
17429 fi
17430 else
17431 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
17432 fi
17433
17434 fi
17435 if test -n "$PKG_CONFIG"; then
17436 _pkg_min_version=0.9.0
17437 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
17438 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
17439 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
17440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17441 $as_echo "yes" >&6; }
17442 else
17443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17444 $as_echo "no" >&6; }
17445 PKG_CONFIG=""
17446 fi
17447 fi
17448
17449 if test "x$with_guile" != xno; then :
17450 guile_versions="3.0 2.2 2.0 1.8"
17451 guile_version=no
17452 have_guile=no
17453 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU Guile" >&5
17454 $as_echo_n "checking for GNU Guile... " >&6; }
17455 for v in $guile_versions; do
17456 if test -n "$PKG_CONFIG" && \
17457 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"guile-\$v\""; } >&5
17458 ($PKG_CONFIG --exists --print-errors "guile-$v") 2>&5
17459 ac_status=$?
17460 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17461 test $ac_status = 0; }; then
17462 guile_version=$v; have_guile=yes; break
17463 fi
17464 done
17465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $guile_version" >&5
17466 $as_echo "$guile_version" >&6; }
17467 if test "$have_guile" = yes; then :
17468
17469 pkg_failed=no
17470 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GUILE" >&5
17471 $as_echo_n "checking for GUILE... " >&6; }
17472
17473 if test -n "$GUILE_CFLAGS"; then
17474 pkg_cv_GUILE_CFLAGS="$GUILE_CFLAGS"
17475 elif test -n "$PKG_CONFIG"; then
17476 if test -n "$PKG_CONFIG" && \
17477 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"guile-\$guile_version\""; } >&5
17478 ($PKG_CONFIG --exists --print-errors "guile-$guile_version") 2>&5
17479 ac_status=$?
17480 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17481 test $ac_status = 0; }; then
17482 pkg_cv_GUILE_CFLAGS=`$PKG_CONFIG --cflags "guile-$guile_version" 2>/dev/null`
17483 test "x$?" != "x0" && pkg_failed=yes
17484 else
17485 pkg_failed=yes
17486 fi
17487 else
17488 pkg_failed=untried
17489 fi
17490 if test -n "$GUILE_LIBS"; then
17491 pkg_cv_GUILE_LIBS="$GUILE_LIBS"
17492 elif test -n "$PKG_CONFIG"; then
17493 if test -n "$PKG_CONFIG" && \
17494 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"guile-\$guile_version\""; } >&5
17495 ($PKG_CONFIG --exists --print-errors "guile-$guile_version") 2>&5
17496 ac_status=$?
17497 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17498 test $ac_status = 0; }; then
17499 pkg_cv_GUILE_LIBS=`$PKG_CONFIG --libs "guile-$guile_version" 2>/dev/null`
17500 test "x$?" != "x0" && pkg_failed=yes
17501 else
17502 pkg_failed=yes
17503 fi
17504 else
17505 pkg_failed=untried
17506 fi
17507
17508
17509
17510 if test $pkg_failed = yes; then
17511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17512 $as_echo "no" >&6; }
17513
17514 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
17515 _pkg_short_errors_supported=yes
17516 else
17517 _pkg_short_errors_supported=no
17518 fi
17519 if test $_pkg_short_errors_supported = yes; then
17520 GUILE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "guile-$guile_version" 2>&1`
17521 else
17522 GUILE_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "guile-$guile_version" 2>&1`
17523 fi
17524 # Put the nasty error message in config.log where it belongs
17525 echo "$GUILE_PKG_ERRORS" >&5
17526
17527 as_fn_error $? "Package requirements (guile-$guile_version) were not met:
17528
17529 $GUILE_PKG_ERRORS
17530
17531 Consider adjusting the PKG_CONFIG_PATH environment variable if you
17532 installed software in a non-standard prefix.
17533
17534 Alternatively, you may set the environment variables GUILE_CFLAGS
17535 and GUILE_LIBS to avoid the need to call pkg-config.
17536 See the pkg-config man page for more details." "$LINENO" 5
17537 elif test $pkg_failed = untried; then
17538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17539 $as_echo "no" >&6; }
17540 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
17541 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17542 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
17543 is in your PATH or set the PKG_CONFIG environment variable to the full
17544 path to pkg-config.
17545
17546 Alternatively, you may set the environment variables GUILE_CFLAGS
17547 and GUILE_LIBS to avoid the need to call pkg-config.
17548 See the pkg-config man page for more details.
17549
17550 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
17551 See \`config.log' for more details" "$LINENO" 5; }
17552 else
17553 GUILE_CFLAGS=$pkg_cv_GUILE_CFLAGS
17554 GUILE_LIBS=$pkg_cv_GUILE_LIBS
17555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17556 $as_echo "yes" >&6; }
17557
17558 fi
17559 # Unfortunately Guile requires a C99 compiler but GNU make doesn't, so
17560 # verify we can actually compile the header.
17561 keep_CPPFLAGS="$CPPFLAGS"
17562 CPPFLAGS="$CPPFLAGS $pkg_cv_GUILE_CFLAGS"
17563 ac_fn_c_check_header_compile "$LINENO" "libguile.h" "ac_cv_header_libguile_h" "/* Avoid configuration error warnings. */
17564 "
17565 if test "x$ac_cv_header_libguile_h" = xyes; then :
17566
17567 $as_echo "#define HAVE_GUILE 1" >>confdefs.h
17568
17569 else
17570 have_guile=no
17571 fi
17572
17573
17574 CPPFLAGS="$keep_CPPFLAGS"
17575
17576 fi
17577
17578 fi
17579
17580 if test "$have_guile" = "yes"; then
17581 HAVE_GUILE_TRUE=
17582 HAVE_GUILE_FALSE='#'
17583 else
17584 HAVE_GUILE_TRUE='#'
17585 HAVE_GUILE_FALSE=
17586 fi
17587
17588
17589 ac_fn_c_check_decl "$LINENO" "sys_siglist" "ac_cv_have_decl_sys_siglist" "$ac_includes_default
17590 #include <signal.h>
17591 /* NetBSD declares sys_siglist in unistd.h. */
17592 #if HAVE_UNISTD_H
17593 # include <unistd.h>
17594 #endif
17595
17596 "
17597 if test "x$ac_cv_have_decl_sys_siglist" = xyes; then :
17598 ac_have_decl=1
17599 else
17600 ac_have_decl=0
17601 fi
17602
17603 cat >>confdefs.h <<_ACEOF
17604 #define HAVE_DECL_SYS_SIGLIST $ac_have_decl
17605 _ACEOF
17606 ac_fn_c_check_decl "$LINENO" "_sys_siglist" "ac_cv_have_decl__sys_siglist" "$ac_includes_default
17607 #include <signal.h>
17608 /* NetBSD declares sys_siglist in unistd.h. */
17609 #if HAVE_UNISTD_H
17610 # include <unistd.h>
17611 #endif
17612
17613 "
17614 if test "x$ac_cv_have_decl__sys_siglist" = xyes; then :
17615 ac_have_decl=1
17616 else
17617 ac_have_decl=0
17618 fi
17619
17620 cat >>confdefs.h <<_ACEOF
17621 #define HAVE_DECL__SYS_SIGLIST $ac_have_decl
17622 _ACEOF
17623 ac_fn_c_check_decl "$LINENO" "__sys_siglist" "ac_cv_have_decl___sys_siglist" "$ac_includes_default
17624 #include <signal.h>
17625 /* NetBSD declares sys_siglist in unistd.h. */
17626 #if HAVE_UNISTD_H
17627 # include <unistd.h>
17628 #endif
17629
17630 "
17631 if test "x$ac_cv_have_decl___sys_siglist" = xyes; then :
17632 ac_have_decl=1
17633 else
17634 ac_have_decl=0
17635 fi
17636
17637 cat >>confdefs.h <<_ACEOF
17638 #define HAVE_DECL___SYS_SIGLIST $ac_have_decl
17639 _ACEOF
17640
17641
17642
17643 # Check out the wait reality.
17644 for ac_header in sys/wait.h
17645 do :
17646 ac_fn_c_check_header_compile "$LINENO" "sys/wait.h" "ac_cv_header_sys_wait_h" "#include <sys/types.h>
17647 "
17648 if test "x$ac_cv_header_sys_wait_h" = xyes; then :
17649 cat >>confdefs.h <<_ACEOF
17650 #define HAVE_SYS_WAIT_H 1
17651 _ACEOF
17652
17653 fi
17654
17655 done
17656
17657 for ac_func in waitpid wait3
17658 do :
17659 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
17660 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
17661 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
17662 cat >>confdefs.h <<_ACEOF
17663 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
17664 _ACEOF
17665
17666 fi
17667 done
17668
17669 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for union wait" >&5
17670 $as_echo_n "checking for union wait... " >&6; }
17671 if ${make_cv_union_wait+:} false; then :
17672 $as_echo_n "(cached) " >&6
17673 else
17674 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17675 /* end confdefs.h. */
17676 #include <sys/types.h>
17677 #include <sys/wait.h>
17678 int
17679 main ()
17680 {
17681 union wait status; int pid; pid = wait (&status);
17682 #ifdef WEXITSTATUS
17683 /* Some POSIXoid systems have both the new-style macros and the old
17684 union wait type, and they do not work together. If union wait
17685 conflicts with WEXITSTATUS et al, we don't want to use it at all. */
17686 if (WEXITSTATUS (status) != 0) pid = -1;
17687 #ifdef WTERMSIG
17688 /* If we have WEXITSTATUS and WTERMSIG, just use them on ints. */
17689 -- blow chunks here --
17690 #endif
17691 #endif
17692 #ifdef HAVE_WAITPID
17693 /* Make sure union wait works with waitpid. */
17694 pid = waitpid (-1, &status, 0);
17695 #endif
17696
17697 ;
17698 return 0;
17699 }
17700 _ACEOF
17701 if ac_fn_c_try_link "$LINENO"; then :
17702 make_cv_union_wait=yes
17703 else
17704 make_cv_union_wait=no
17705 fi
17706 rm -f core conftest.err conftest.$ac_objext \
17707 conftest$ac_exeext conftest.$ac_ext
17708
17709 fi
17710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $make_cv_union_wait" >&5
17711 $as_echo "$make_cv_union_wait" >&6; }
17712 if test "$make_cv_union_wait" = yes; then :
17713
17714 $as_echo "#define HAVE_UNION_WAIT 1" >>confdefs.h
17715
17716
17717 fi
17718
17719
17720 # Check whether --with-make_name was given.
17721 if test "${with_make_name+set}" = set; then :
17722 withval=$with_make_name; make_name="${withval}"
17723 else
17724 make_name="remake"
17725 fi
17726
17727 MAKE_NAME="$make_name"
17728
17729 MAKE_NAME_UPPER=`echo $make_name | tr a-z A-Z`
17730
17731
17732
17733 # Check whether --with-default_shell was given.
17734 if test "${with_default_shell+set}" = set; then :
17735 withval=$with_default_shell; default_shell="${withval}"
17736 else
17737 default_shell="/bin/sh"
17738 fi
17739
17740 DEFAULT_SHELL="$default_shell"
17741
17742
17743 # Check whether --with-shell_trace was given.
17744 if test "${with_shell_trace+set}" = set; then :
17745 withval=$with_shell_trace; shell_trace="${withval}"
17746 else
17747 shell_trace="-x"
17748 fi
17749
17750
17751 ## Set OS-specific default shell.
17752 case $host_os in
17753 cygwin*|mingw*) ;;
17754 solaris*)
17755 ## The System V Release 4 /bin/sh can't handle
17756 ## -x -c in that order.
17757 for sh in /bin/bash /usr/xpg4/bin/sh; do
17758 if test -x "$sh" ; then
17759 default_shell=$sh
17760 break
17761 fi
17762 done
17763 ;;
17764
17765 *) ;;
17766 esac
17767
17768 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $default_shell can be used to trace commands using $shell_trace" >&5
17769 $as_echo_n "checking if $default_shell can be used to trace commands using $shell_trace... " >&6; }
17770 sh_is_ok=`$default_shell $shell_trace -c ':' 2>&1`
17771 if test "+ :" != "$sh_is_ok" ; then
17772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17773 $as_echo "no" >&6; }
17774 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Disabling shell tracing. Run again using --with-default_shell" >&5
17775 $as_echo "$as_me: WARNING: Disabling shell tracing. Run again using --with-default_shell" >&2;}
17776 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: or using --with-shell_trace if you know of a shell that" >&5
17777 $as_echo "$as_me: WARNING: or using --with-shell_trace if you know of a shell that" >&2;}
17778 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: supports tracing with *sh* *shell_option* -c (in that order)\"" >&5
17779 $as_echo "$as_me: WARNING: supports tracing with *sh* *shell_option* -c (in that order)\"" >&2;}
17780 else
17781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17782 $as_echo "yes" >&6; }
17783 fi
17784
17785
17786 cat >>confdefs.h <<_ACEOF
17787 #define SHELL_TRACE "$shell_trace"
17788 _ACEOF
17789
17790
17791
17792 cat >>confdefs.h <<_ACEOF
17793 #define DEFAULT_SHELL "$default_shell"
17794 _ACEOF
17795
17796
17797 #
17798 # Check for readline to see if we can add debugging support.
17799 #
17800 for ac_header in readline/readline.h readline/history.h
17801 do :
17802 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
17803 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
17804 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
17805 cat >>confdefs.h <<_ACEOF
17806 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
17807 _ACEOF
17808
17809 fi
17810
17811 done
17812
17813 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for readline in -lreadline" >&5
17814 $as_echo_n "checking for readline in -lreadline... " >&6; }
17815 if ${ac_cv_lib_readline_readline+:} false; then :
17816 $as_echo_n "(cached) " >&6
17817 else
17818 ac_check_lib_save_LIBS=$LIBS
17819 LIBS="-lreadline $LIBS"
17820 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17821 /* end confdefs.h. */
17822
17823 /* Override any GCC internal prototype to avoid an error.
17824 Use char because int might match the return type of a GCC
17825 builtin and then its argument prototype would still apply. */
17826 #ifdef __cplusplus
17827 extern "C"
17828 #endif
17829 char readline ();
17830 int
17831 main ()
17832 {
17833 return readline ();
17834 ;
17835 return 0;
17836 }
17837 _ACEOF
17838 if ac_fn_c_try_link "$LINENO"; then :
17839 ac_cv_lib_readline_readline=yes
17840 else
17841 ac_cv_lib_readline_readline=no
17842 fi
17843 rm -f core conftest.err conftest.$ac_objext \
17844 conftest$ac_exeext conftest.$ac_ext
17845 LIBS=$ac_check_lib_save_LIBS
17846 fi
17847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_readline_readline" >&5
17848 $as_echo "$ac_cv_lib_readline_readline" >&6; }
17849 if test "x$ac_cv_lib_readline_readline" = xyes; then :
17850 cat >>confdefs.h <<_ACEOF
17851 #define HAVE_LIBREADLINE 1
17852 _ACEOF
17853
17854 LIBS="-lreadline $LIBS"
17855
17856 fi
17857
17858
17859
17860 REMAKE_SOURCE_PATH="`pwd`"
17861
17862 cat >>confdefs.h <<_ACEOF
17863 #define REMAKE_SOURCE_PATH "$REMAKE_SOURCE_PATH"
17864 _ACEOF
17865
17866
17867
17868 # See if the user wants to use pmake's "customs" distributed build capability
17869 REMOTE=stub
17870 use_customs=false
17871
17872 # Check whether --with-customs was given.
17873 if test "${with_customs+set}" = set; then :
17874 withval=$with_customs; case $withval in #(
17875 n|no) :
17876 : ;; #(
17877 *) :
17878 make_cppflags="$CPPFLAGS"
17879 case $withval in #(
17880 y|ye|yes) :
17881 : ;; #(
17882 *) :
17883 CPPFLAGS="$CPPFLAGS -I$with_customs/include/customs"
17884 make_ldflags="$LDFLAGS -L$with_customs/lib" ;;
17885 esac
17886
17887 cf_test_netlibs=no
17888 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for network libraries" >&5
17889 $as_echo_n "checking for network libraries... " >&6; }
17890 if ${cf_cv_netlibs+:} false; then :
17891 $as_echo_n "(cached) " >&6
17892 else
17893
17894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: working..." >&5
17895 $as_echo "working..." >&6; }
17896 cf_cv_netlibs=""
17897 cf_test_netlibs=yes
17898 for ac_func in gethostname
17899 do :
17900 ac_fn_c_check_func "$LINENO" "gethostname" "ac_cv_func_gethostname"
17901 if test "x$ac_cv_func_gethostname" = xyes; then :
17902 cat >>confdefs.h <<_ACEOF
17903 #define HAVE_GETHOSTNAME 1
17904 _ACEOF
17905
17906 else
17907
17908
17909 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostname in -lnsl" >&5
17910 $as_echo_n "checking for gethostname in -lnsl... " >&6; }
17911 if ${ac_cv_lib_nsl_gethostname+:} false; then :
17912 $as_echo_n "(cached) " >&6
17913 else
17914 ac_check_lib_save_LIBS=$LIBS
17915 LIBS="-lnsl $cf_cv_netlibs $LIBS"
17916 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17917 /* end confdefs.h. */
17918
17919 /* Override any GCC internal prototype to avoid an error.
17920 Use char because int might match the return type of a GCC
17921 builtin and then its argument prototype would still apply. */
17922 #ifdef __cplusplus
17923 extern "C"
17924 #endif
17925 char gethostname ();
17926 int
17927 main ()
17928 {
17929 return gethostname ();
17930 ;
17931 return 0;
17932 }
17933 _ACEOF
17934 if ac_fn_c_try_link "$LINENO"; then :
17935 ac_cv_lib_nsl_gethostname=yes
17936 else
17937 ac_cv_lib_nsl_gethostname=no
17938 fi
17939 rm -f core conftest.err conftest.$ac_objext \
17940 conftest$ac_exeext conftest.$ac_ext
17941 LIBS=$ac_check_lib_save_LIBS
17942 fi
17943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostname" >&5
17944 $as_echo "$ac_cv_lib_nsl_gethostname" >&6; }
17945 if test "x$ac_cv_lib_nsl_gethostname" = xyes; then :
17946
17947
17948 cf_tr_func=`echo gethostname | tr '[a-z]' '[A-Z]'`
17949
17950
17951 cat >>confdefs.h <<_ACEOF
17952 #define HAVE_$cf_tr_func 1
17953 _ACEOF
17954
17955 ac_cv_func_gethostname=yes
17956 cf_cv_netlibs="-lnsl $cf_cv_netlibs"
17957 else
17958
17959 ac_cv_func_gethostname=unknown
17960 unset ac_cv_func_gethostname 2>/dev/null
17961
17962
17963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostname in -lsocket" >&5
17964 $as_echo_n "checking for gethostname in -lsocket... " >&6; }
17965 if ${ac_cv_lib_socket_gethostname+:} false; then :
17966 $as_echo_n "(cached) " >&6
17967 else
17968 ac_check_lib_save_LIBS=$LIBS
17969 LIBS="-lsocket $cf_cv_netlibs $LIBS"
17970 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17971 /* end confdefs.h. */
17972
17973 /* Override any GCC internal prototype to avoid an error.
17974 Use char because int might match the return type of a GCC
17975 builtin and then its argument prototype would still apply. */
17976 #ifdef __cplusplus
17977 extern "C"
17978 #endif
17979 char gethostname ();
17980 int
17981 main ()
17982 {
17983 return gethostname ();
17984 ;
17985 return 0;
17986 }
17987 _ACEOF
17988 if ac_fn_c_try_link "$LINENO"; then :
17989 ac_cv_lib_socket_gethostname=yes
17990 else
17991 ac_cv_lib_socket_gethostname=no
17992 fi
17993 rm -f core conftest.err conftest.$ac_objext \
17994 conftest$ac_exeext conftest.$ac_ext
17995 LIBS=$ac_check_lib_save_LIBS
17996 fi
17997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_gethostname" >&5
17998 $as_echo "$ac_cv_lib_socket_gethostname" >&6; }
17999 if test "x$ac_cv_lib_socket_gethostname" = xyes; then :
18000
18001
18002 cf_tr_func=`echo gethostname | tr '[a-z]' '[A-Z]'`
18003
18004
18005 cat >>confdefs.h <<_ACEOF
18006 #define HAVE_$cf_tr_func 1
18007 _ACEOF
18008
18009 ac_cv_func_gethostname=yes
18010 cf_cv_netlibs="-lsocket $cf_cv_netlibs"
18011 else
18012
18013 ac_cv_func_gethostname=unknown
18014 unset ac_cv_func_gethostname 2>/dev/null
18015
18016 fi
18017
18018
18019 fi
18020
18021
18022 fi
18023 done
18024
18025 #
18026 # FIXME: sequent needs this library (i.e., -lsocket -linet -lnsl), but
18027 # I don't know the entrypoints - 97/7/22 TD
18028 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -linet" >&5
18029 $as_echo_n "checking for main in -linet... " >&6; }
18030 if ${ac_cv_lib_inet_main+:} false; then :
18031 $as_echo_n "(cached) " >&6
18032 else
18033 ac_check_lib_save_LIBS=$LIBS
18034 LIBS="-linet $LIBS"
18035 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18036 /* end confdefs.h. */
18037
18038
18039 int
18040 main ()
18041 {
18042 return main ();
18043 ;
18044 return 0;
18045 }
18046 _ACEOF
18047 if ac_fn_c_try_link "$LINENO"; then :
18048 ac_cv_lib_inet_main=yes
18049 else
18050 ac_cv_lib_inet_main=no
18051 fi
18052 rm -f core conftest.err conftest.$ac_objext \
18053 conftest$ac_exeext conftest.$ac_ext
18054 LIBS=$ac_check_lib_save_LIBS
18055 fi
18056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_inet_main" >&5
18057 $as_echo "$ac_cv_lib_inet_main" >&6; }
18058 if test "x$ac_cv_lib_inet_main" = xyes; then :
18059 cf_cv_netlibs="-linet $cf_cv_netlibs"
18060 fi
18061
18062 #
18063 if test "$ac_cv_func_lsocket" != no ; then
18064 for ac_func in socket
18065 do :
18066 ac_fn_c_check_func "$LINENO" "socket" "ac_cv_func_socket"
18067 if test "x$ac_cv_func_socket" = xyes; then :
18068 cat >>confdefs.h <<_ACEOF
18069 #define HAVE_SOCKET 1
18070 _ACEOF
18071
18072 else
18073
18074
18075 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -lsocket" >&5
18076 $as_echo_n "checking for socket in -lsocket... " >&6; }
18077 if ${ac_cv_lib_socket_socket+:} false; then :
18078 $as_echo_n "(cached) " >&6
18079 else
18080 ac_check_lib_save_LIBS=$LIBS
18081 LIBS="-lsocket $cf_cv_netlibs $LIBS"
18082 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18083 /* end confdefs.h. */
18084
18085 /* Override any GCC internal prototype to avoid an error.
18086 Use char because int might match the return type of a GCC
18087 builtin and then its argument prototype would still apply. */
18088 #ifdef __cplusplus
18089 extern "C"
18090 #endif
18091 char socket ();
18092 int
18093 main ()
18094 {
18095 return socket ();
18096 ;
18097 return 0;
18098 }
18099 _ACEOF
18100 if ac_fn_c_try_link "$LINENO"; then :
18101 ac_cv_lib_socket_socket=yes
18102 else
18103 ac_cv_lib_socket_socket=no
18104 fi
18105 rm -f core conftest.err conftest.$ac_objext \
18106 conftest$ac_exeext conftest.$ac_ext
18107 LIBS=$ac_check_lib_save_LIBS
18108 fi
18109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_socket" >&5
18110 $as_echo "$ac_cv_lib_socket_socket" >&6; }
18111 if test "x$ac_cv_lib_socket_socket" = xyes; then :
18112
18113
18114 cf_tr_func=`echo socket | tr '[a-z]' '[A-Z]'`
18115
18116
18117 cat >>confdefs.h <<_ACEOF
18118 #define HAVE_$cf_tr_func 1
18119 _ACEOF
18120
18121 ac_cv_func_socket=yes
18122 cf_cv_netlibs="-lsocket $cf_cv_netlibs"
18123 else
18124
18125 ac_cv_func_socket=unknown
18126 unset ac_cv_func_socket 2>/dev/null
18127
18128
18129 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -lbsd" >&5
18130 $as_echo_n "checking for socket in -lbsd... " >&6; }
18131 if ${ac_cv_lib_bsd_socket+:} false; then :
18132 $as_echo_n "(cached) " >&6
18133 else
18134 ac_check_lib_save_LIBS=$LIBS
18135 LIBS="-lbsd $cf_cv_netlibs $LIBS"
18136 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18137 /* end confdefs.h. */
18138
18139 /* Override any GCC internal prototype to avoid an error.
18140 Use char because int might match the return type of a GCC
18141 builtin and then its argument prototype would still apply. */
18142 #ifdef __cplusplus
18143 extern "C"
18144 #endif
18145 char socket ();
18146 int
18147 main ()
18148 {
18149 return socket ();
18150 ;
18151 return 0;
18152 }
18153 _ACEOF
18154 if ac_fn_c_try_link "$LINENO"; then :
18155 ac_cv_lib_bsd_socket=yes
18156 else
18157 ac_cv_lib_bsd_socket=no
18158 fi
18159 rm -f core conftest.err conftest.$ac_objext \
18160 conftest$ac_exeext conftest.$ac_ext
18161 LIBS=$ac_check_lib_save_LIBS
18162 fi
18163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_socket" >&5
18164 $as_echo "$ac_cv_lib_bsd_socket" >&6; }
18165 if test "x$ac_cv_lib_bsd_socket" = xyes; then :
18166
18167
18168 cf_tr_func=`echo socket | tr '[a-z]' '[A-Z]'`
18169
18170
18171 cat >>confdefs.h <<_ACEOF
18172 #define HAVE_$cf_tr_func 1
18173 _ACEOF
18174
18175 ac_cv_func_socket=yes
18176 cf_cv_netlibs="-lbsd $cf_cv_netlibs"
18177 else
18178
18179 ac_cv_func_socket=unknown
18180 unset ac_cv_func_socket 2>/dev/null
18181
18182 fi
18183
18184
18185 fi
18186
18187
18188 fi
18189 done
18190
18191 fi
18192 #
18193 for ac_func in gethostbyname
18194 do :
18195 ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
18196 if test "x$ac_cv_func_gethostbyname" = xyes; then :
18197 cat >>confdefs.h <<_ACEOF
18198 #define HAVE_GETHOSTBYNAME 1
18199 _ACEOF
18200
18201 else
18202
18203
18204 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
18205 $as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
18206 if ${ac_cv_lib_nsl_gethostbyname+:} false; then :
18207 $as_echo_n "(cached) " >&6
18208 else
18209 ac_check_lib_save_LIBS=$LIBS
18210 LIBS="-lnsl $cf_cv_netlibs $LIBS"
18211 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18212 /* end confdefs.h. */
18213
18214 /* Override any GCC internal prototype to avoid an error.
18215 Use char because int might match the return type of a GCC
18216 builtin and then its argument prototype would still apply. */
18217 #ifdef __cplusplus
18218 extern "C"
18219 #endif
18220 char gethostbyname ();
18221 int
18222 main ()
18223 {
18224 return gethostbyname ();
18225 ;
18226 return 0;
18227 }
18228 _ACEOF
18229 if ac_fn_c_try_link "$LINENO"; then :
18230 ac_cv_lib_nsl_gethostbyname=yes
18231 else
18232 ac_cv_lib_nsl_gethostbyname=no
18233 fi
18234 rm -f core conftest.err conftest.$ac_objext \
18235 conftest$ac_exeext conftest.$ac_ext
18236 LIBS=$ac_check_lib_save_LIBS
18237 fi
18238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
18239 $as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
18240 if test "x$ac_cv_lib_nsl_gethostbyname" = xyes; then :
18241
18242
18243 cf_tr_func=`echo gethostbyname | tr '[a-z]' '[A-Z]'`
18244
18245
18246 cat >>confdefs.h <<_ACEOF
18247 #define HAVE_$cf_tr_func 1
18248 _ACEOF
18249
18250 ac_cv_func_gethostbyname=yes
18251 cf_cv_netlibs="-lnsl $cf_cv_netlibs"
18252 else
18253
18254 ac_cv_func_gethostbyname=unknown
18255 unset ac_cv_func_gethostbyname 2>/dev/null
18256
18257 fi
18258
18259
18260 fi
18261 done
18262
18263
18264 fi
18265
18266 LIBS="$LIBS $cf_cv_netlibs"
18267 test $cf_test_netlibs = no && echo "$cf_cv_netlibs" >&6
18268
18269 ac_fn_c_check_header_mongrel "$LINENO" "customs.h" "ac_cv_header_customs_h" "$ac_includes_default"
18270 if test "x$ac_cv_header_customs_h" = xyes; then :
18271 use_customs=true
18272 REMOTE=cstms
18273 LIBS="$LIBS -lcustoms" LDFLAGS="$make_ldflags"
18274 else
18275 with_customs=no
18276 CPPFLAGS="$make_cppflags" make_badcust=yes
18277 fi
18278
18279
18280 ;;
18281 esac
18282
18283 fi
18284
18285
18286 # Tell automake about this, so it can include the right .c files.
18287 if test "$use_customs" = true; then
18288 USE_CUSTOMS_TRUE=
18289 USE_CUSTOMS_FALSE='#'
18290 else
18291 USE_CUSTOMS_TRUE='#'
18292 USE_CUSTOMS_FALSE=
18293 fi
18294
18295
18296 # See if the user asked to handle case insensitive file systems.
18297
18298 # Check whether --enable-case-insensitive-file-system was given.
18299 if test "${enable_case_insensitive_file_system+set}" = set; then :
18300 enableval=$enable_case_insensitive_file_system; if test "$enableval" = yes; then :
18301 $as_echo "#define HAVE_CASE_INSENSITIVE_FS 1" >>confdefs.h
18302
18303 fi
18304 fi
18305
18306
18307 # See if we can handle the job server feature, and if the user wants it.
18308 # Check whether --enable-job-server was given.
18309 if test "${enable_job_server+set}" = set; then :
18310 enableval=$enable_job_server; make_cv_job_server="$enableval" user_job_server="$enableval"
18311 else
18312 make_cv_job_server="yes"
18313 fi
18314
18315
18316 if test "$ac_cv_func_waitpid" = no && test "$ac_cv_func_wait3" = no; then :
18317 has_wait_nohang=no
18318 else
18319 has_wait_nohang=yes
18320 fi
18321
18322 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SA_RESTART" >&5
18323 $as_echo_n "checking for SA_RESTART... " >&6; }
18324 if ${make_cv_sa_restart+:} false; then :
18325 $as_echo_n "(cached) " >&6
18326 else
18327
18328 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18329 /* end confdefs.h. */
18330 #include <signal.h>
18331 int
18332 main ()
18333 {
18334 return SA_RESTART;
18335 ;
18336 return 0;
18337 }
18338 _ACEOF
18339 if ac_fn_c_try_compile "$LINENO"; then :
18340 make_cv_sa_restart=yes
18341 else
18342 make_cv_sa_restart=no
18343 fi
18344 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18345 fi
18346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $make_cv_sa_restart" >&5
18347 $as_echo "$make_cv_sa_restart" >&6; }
18348
18349 if test "$make_cv_sa_restart" != no; then :
18350
18351 $as_echo "#define HAVE_SA_RESTART 1" >>confdefs.h
18352
18353
18354 fi
18355
18356 # Only allow jobserver on systems that support it
18357 case /$ac_cv_func_pipe/$ac_cv_func_sigaction/$make_cv_sa_restart/$has_wait_nohang/ in #(
18358 */no/*) :
18359 make_cv_job_server=no ;; #(
18360 *) :
18361 ;;
18362 esac
18363
18364 # Also supported on OS2 and MinGW
18365 case $host_os in #(
18366 os2*|mingw*) :
18367 make_cv_job_server=yes ;; #(
18368 *) :
18369 ;;
18370 esac
18371
18372 # If we support it and the user didn't disable it, build with jobserver
18373 case /$make_cv_job_server/$user_job_server/ in #(
18374 */no/*) :
18375 : no jobserver ;; #(
18376 *) :
18377
18378 $as_echo "#define MAKE_JOBSERVER 1" >>confdefs.h
18379
18380 ;;
18381 esac
18382
18383 # If dl*() functions are supported we can enable the load operation
18384 ac_fn_c_check_decl "$LINENO" "dlopen" "ac_cv_have_decl_dlopen" "#include <dlfcn.h>
18385 "
18386 if test "x$ac_cv_have_decl_dlopen" = xyes; then :
18387 ac_have_decl=1
18388 else
18389 ac_have_decl=0
18390 fi
18391
18392 cat >>confdefs.h <<_ACEOF
18393 #define HAVE_DECL_DLOPEN $ac_have_decl
18394 _ACEOF
18395 ac_fn_c_check_decl "$LINENO" "dlsym" "ac_cv_have_decl_dlsym" "#include <dlfcn.h>
18396 "
18397 if test "x$ac_cv_have_decl_dlsym" = xyes; then :
18398 ac_have_decl=1
18399 else
18400 ac_have_decl=0
18401 fi
18402
18403 cat >>confdefs.h <<_ACEOF
18404 #define HAVE_DECL_DLSYM $ac_have_decl
18405 _ACEOF
18406 ac_fn_c_check_decl "$LINENO" "dlerror" "ac_cv_have_decl_dlerror" "#include <dlfcn.h>
18407 "
18408 if test "x$ac_cv_have_decl_dlerror" = xyes; then :
18409 ac_have_decl=1
18410 else
18411 ac_have_decl=0
18412 fi
18413
18414 cat >>confdefs.h <<_ACEOF
18415 #define HAVE_DECL_DLERROR $ac_have_decl
18416 _ACEOF
18417
18418
18419 # Check whether --enable-load was given.
18420 if test "${enable_load+set}" = set; then :
18421 enableval=$enable_load; make_cv_load="$enableval" user_load="$enableval"
18422 else
18423 make_cv_load="yes"
18424 fi
18425
18426
18427
18428 # Check whether --with-profiler_resolution was given.
18429 if test "${with_profiler_resolution+set}" = set; then :
18430 withval=$with_profiler_resolution; if test "$withval" = no; then :
18431 prof_res="no"
18432 else
18433 if test "$withval" = yes; then :
18434 prof_res="1000"
18435 else
18436 prof_res="$withval"
18437 fi
18438 fi
18439 else
18440 prof_res="1000"
18441 fi
18442
18443
18444 if test "x$prof_res" = "xno"; then :
18445
18446 else
18447 _
18448
18449 cat >>confdefs.h <<_ACEOF
18450 #define PROFILER_MIN_RES $prof_res
18451 _ACEOF
18452
18453 fi
18454
18455 case /$ac_cv_have_decl_dlopen/$ac_cv_have_decl_dlsym/$ac_cv_have_decl_dlerror/ in #(
18456 */no/*) :
18457 make_cv_load=no ;; #(
18458 *) :
18459 ;;
18460 esac
18461
18462 # We might need -ldl
18463 if test "$make_cv_load" = yes; then :
18464
18465 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
18466 $as_echo_n "checking for library containing dlopen... " >&6; }
18467 if ${ac_cv_search_dlopen+:} false; then :
18468 $as_echo_n "(cached) " >&6
18469 else
18470 ac_func_search_save_LIBS=$LIBS
18471 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18472 /* end confdefs.h. */
18473
18474 /* Override any GCC internal prototype to avoid an error.
18475 Use char because int might match the return type of a GCC
18476 builtin and then its argument prototype would still apply. */
18477 #ifdef __cplusplus
18478 extern "C"
18479 #endif
18480 char dlopen ();
18481 int
18482 main ()
18483 {
18484 return dlopen ();
18485 ;
18486 return 0;
18487 }
18488 _ACEOF
18489 for ac_lib in '' dl; do
18490 if test -z "$ac_lib"; then
18491 ac_res="none required"
18492 else
18493 ac_res=-l$ac_lib
18494 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
18495 fi
18496 if ac_fn_c_try_link "$LINENO"; then :
18497 ac_cv_search_dlopen=$ac_res
18498 fi
18499 rm -f core conftest.err conftest.$ac_objext \
18500 conftest$ac_exeext
18501 if ${ac_cv_search_dlopen+:} false; then :
18502 break
18503 fi
18504 done
18505 if ${ac_cv_search_dlopen+:} false; then :
18506
18507 else
18508 ac_cv_search_dlopen=no
18509 fi
18510 rm conftest.$ac_ext
18511 LIBS=$ac_func_search_save_LIBS
18512 fi
18513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
18514 $as_echo "$ac_cv_search_dlopen" >&6; }
18515 ac_res=$ac_cv_search_dlopen
18516 if test "$ac_res" != no; then :
18517 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
18518
18519 else
18520 make_cv_load=
18521 fi
18522
18523
18524 fi
18525
18526 case /$make_cv_load/$user_load/ in #(
18527 */no/*) :
18528 make_cv_load=no ;; #(
18529 *) :
18530
18531 $as_echo "#define MAKE_LOAD 1" >>confdefs.h
18532
18533 ;;
18534 esac
18535
18536 # If we want load support, we might need to link with export-dynamic.
18537 # See if we can figure it out. Unfortunately this is very difficult.
18538 # For example passing -rdynamic to the SunPRO linker gives a warning
18539 # but succeeds and creates a shared object, not an executable!
18540 if test "$make_cv_load" = yes; then :
18541
18542 { $as_echo "$as_me:${as_lineno-$LINENO}: checking If the linker accepts -Wl,--export-dynamic" >&5
18543 $as_echo_n "checking If the linker accepts -Wl,--export-dynamic... " >&6; }
18544 old_LDFLAGS="$LDFLAGS"
18545 LDFLAGS="$LDFLAGS -Wl,--export-dynamic"
18546 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18547 /* end confdefs.h. */
18548 int main(){}
18549 _ACEOF
18550 if ac_fn_c_try_link "$LINENO"; then :
18551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18552 $as_echo "yes" >&6; }
18553 AM_LDFLAGS=-Wl,--export-dynamic
18554
18555 else
18556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18557 $as_echo "no" >&6; }
18558 { $as_echo "$as_me:${as_lineno-$LINENO}: checking If the linker accepts -rdynamic" >&5
18559 $as_echo_n "checking If the linker accepts -rdynamic... " >&6; }
18560 LDFLAGS="$old_LDFLAGS -rdynamic"
18561 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18562 /* end confdefs.h. */
18563 int main(){}
18564 _ACEOF
18565 if ac_fn_c_try_link "$LINENO"; then :
18566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18567 $as_echo "yes" >&6; }
18568 AM_LDFLAGS=-rdynamic
18569
18570 else
18571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18572 $as_echo "no" >&6; }
18573 fi
18574 rm -f core conftest.err conftest.$ac_objext \
18575 conftest$ac_exeext conftest.$ac_ext
18576
18577 fi
18578 rm -f core conftest.err conftest.$ac_objext \
18579 conftest$ac_exeext conftest.$ac_ext
18580 LDFLAGS="$old_LDFLAGS"
18581
18582 fi
18583
18584 # if we have both lstat() and readlink() then we can support symlink
18585 # timechecks.
18586 if test "$ac_cv_func_lstat" = yes && test "$ac_cv_func_readlink" = yes; then :
18587
18588 $as_echo "#define MAKE_SYMLINKS 1" >>confdefs.h
18589
18590
18591 fi
18592
18593 # Use posix_spawn if we have support and the user didn't disable it
18594
18595 # Check whether --enable-posix-spawn was given.
18596 if test "${enable_posix_spawn+set}" = set; then :
18597 enableval=$enable_posix_spawn; make_cv_posix_spawn="$enableval" user_posix_spawn="$enableval"
18598 else
18599 make_cv_posix_spawn="yes"
18600 fi
18601
18602
18603 case /$ac_cv_header_spawn/$ac_cv_func_posix_spawn/ in #(
18604 */no/*) :
18605 make_cv_posix_spawn=no ;; #(
18606 *) :
18607 ;;
18608 esac
18609
18610 if test "$make_cv_posix_spawn" = yes; then :
18611 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for posix_spawn that fails synchronously" >&5
18612 $as_echo_n "checking for posix_spawn that fails synchronously... " >&6; }
18613 if ${make_cv_synchronous_posix_spawn+:} false; then :
18614 $as_echo_n "(cached) " >&6
18615 else
18616 make_cv_synchronous_posix_spawn=no
18617 if test "$cross_compiling" = yes; then :
18618 make_cv_synchronous_posix_spawn="no (cross-compiling)"
18619 else
18620 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18621 /* end confdefs.h. */
18622
18623 #include <spawn.h>
18624 #include <string.h>
18625
18626 extern char **environ;
18627
18628 int main() {
18629 char* path = strdup("./non-existent");
18630 char *argv[2];
18631 argv[0] = path;
18632 argv[1] = 0;
18633 return posix_spawn(0, path, 0, 0, argv, environ);
18634 }
18635 _ACEOF
18636 if ac_fn_c_try_run "$LINENO"; then :
18637 make_cv_synchronous_posix_spawn=no
18638 else
18639 make_cv_synchronous_posix_spawn=yes
18640 fi
18641 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18642 conftest.$ac_objext conftest.beam conftest.$ac_ext
18643 fi
18644
18645 fi
18646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $make_cv_synchronous_posix_spawn" >&5
18647 $as_echo "$make_cv_synchronous_posix_spawn" >&6; }
18648 fi
18649
18650 case /$user_posix_spawn/$make_cv_posix_spawn/$make_cv_synchronous_posix_spawn/ in #(
18651 */no/*) :
18652 make_cv_posix_spawn=no ;; #(
18653 *) :
18654
18655 $as_echo "#define USE_POSIX_SPAWN 1" >>confdefs.h
18656
18657 ;;
18658 esac
18659
18660 # Find the SCCS commands, so we can include them in our default rules.
18661
18662 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for location of SCCS get command" >&5
18663 $as_echo_n "checking for location of SCCS get command... " >&6; }
18664 if ${make_cv_path_sccs_get+:} false; then :
18665 $as_echo_n "(cached) " >&6
18666 else
18667
18668 if test -f /usr/sccs/get; then :
18669 make_cv_path_sccs_get=/usr/sccs/get
18670 else
18671 make_cv_path_sccs_get=get
18672 fi
18673
18674 fi
18675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $make_cv_path_sccs_get" >&5
18676 $as_echo "$make_cv_path_sccs_get" >&6; }
18677
18678 cat >>confdefs.h <<_ACEOF
18679 #define SCCS_GET "$make_cv_path_sccs_get"
18680 _ACEOF
18681
18682
18683 ac_clean_files="$ac_clean_files s.conftest conftoast" # Remove these later.
18684 if (/usr/sccs/admin -n s.conftest || admin -n s.conftest) >/dev/null 2>&1 &&
18685 test -f s.conftest; then :
18686 # We successfully created an SCCS file.
18687 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if SCCS get command understands -G" >&5
18688 $as_echo_n "checking if SCCS get command understands -G... " >&6; }
18689 if ${make_cv_sys_get_minus_G+:} false; then :
18690 $as_echo_n "(cached) " >&6
18691 else
18692 if $make_cv_path_sccs_get -Gconftoast s.conftest >/dev/null 2>&1 &&
18693 test -f conftoast; then :
18694 make_cv_sys_get_minus_G=yes
18695 else
18696 make_cv_sys_get_minus_G=no
18697 fi
18698
18699 fi
18700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $make_cv_sys_get_minus_G" >&5
18701 $as_echo "$make_cv_sys_get_minus_G" >&6; }
18702 if test "$make_cv_sys_get_minus_G" = yes; then :
18703
18704 $as_echo "#define SCCS_GET_MINUS_G 1" >>confdefs.h
18705
18706
18707 fi
18708
18709 fi
18710 rm -f s.conftest conftoast
18711
18712 # Let the makefile know what our build host is
18713
18714
18715 cat >>confdefs.h <<_ACEOF
18716 #define MAKE_HOST "$host"
18717 _ACEOF
18718
18719 MAKE_HOST="$host"
18720
18721
18722
18723 cat >>confdefs.h <<_ACEOF
18724 #define PATH_SEPARATOR_CHAR '$PATH_SEPARATOR'
18725 _ACEOF
18726
18727
18728 # Include the Maintainer's Makefile section, if it's here.
18729
18730 MAINT_MAKEFILE=/dev/null
18731 if test -r "$srcdir/maintMakefile"; then :
18732 MAINT_MAKEFILE="$srcdir/maintMakefile"
18733
18734 fi
18735
18736
18737 # Allow building with dmalloc
18738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if malloc debugging is wanted" >&5
18739 $as_echo_n "checking if malloc debugging is wanted... " >&6; }
18740
18741 # Check whether --with-dmalloc was given.
18742 if test "${with_dmalloc+set}" = set; then :
18743 withval=$with_dmalloc; if test "$withval" = yes; then
18744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18745 $as_echo "yes" >&6; }
18746
18747 $as_echo "#define WITH_DMALLOC 1" >>confdefs.h
18748
18749 LIBS="$LIBS -ldmalloc"
18750 LDFLAGS="$LDFLAGS -g"
18751 else
18752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18753 $as_echo "no" >&6; }
18754 fi
18755 else
18756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18757 $as_echo "no" >&6; }
18758 fi
18759
18760
18761
18762 # Forcibly disable SET_MAKE. If it's set it breaks things like the test
18763 # scripts, etc.
18764 SET_MAKE=
18765
18766 # Sanity check and inform the user of what we found
18767
18768 if test "x$make_badcust" = xyes; then :
18769
18770 echo
18771 echo "WARNING: --with-customs specified but no customs.h could be found;"
18772 echo " disabling Customs support."
18773 echo
18774
18775 fi
18776
18777 case $with_customs in #(
18778 ""|n|no|y|ye|yes) :
18779 : ;; #(
18780 *) :
18781 if test -f "$with_customs/lib/libcustoms.a"; then :
18782 :
18783 else
18784 echo
18785 echo "WARNING: '$with_customs/lib' does not appear to contain the"
18786 echo " Customs library. You must build and install Customs"
18787 echo " before compiling GNU make."
18788 echo
18789
18790 fi ;;
18791 esac
18792
18793 if test "x$has_wait_nohang" = xno; then :
18794 echo
18795 echo "WARNING: Your system has neither waitpid() nor wait3()."
18796 echo " Without one of these, signal handling is unreliable."
18797 echo " You should be aware that running GNU make with -j"
18798 echo " could result in erratic behavior."
18799 echo
18800
18801 fi
18802
18803 if test "x$make_cv_job_server" = xno && test "x$user_job_server" = xyes; then :
18804 echo
18805 echo "WARNING: Make job server requires a POSIX-ish system that"
18806 echo " supports the pipe(), sigaction(), and either"
18807 echo " waitpid() or wait3() functions. Your system doesn't"
18808 echo " appear to provide one or more of those."
18809 echo " Disabling job server support."
18810 echo
18811
18812 fi
18813
18814 if test "x$make_cv_load" = xno && test "x$user_load" = xyes; then :
18815 echo
18816 echo "WARNING: 'load' support requires a POSIX-ish system that"
18817 echo " supports the dlopen(), dlsym(), and dlerror() functions."
18818 echo " Your system doesn't appear to provide one or more of these."
18819 echo " Disabling 'load' support."
18820 echo
18821
18822 fi
18823
18824 if test "x$make_cv_posix_spawn" = xno && test "x$user_posix_spawn" = xyes; then :
18825 echo
18826 echo "WARNING: posix_spawn() is not supported on this system."
18827 echo
18828
18829 fi
18830
18831 # Specify what files are to be created.
18832 ac_config_files="$ac_config_files Makefile lib/Makefile po/Makefile.in doc/Makefile doc/doxygen/Doxyfile glob/Makefile unittest/Makefile tests/config-flags.pm libdebugger/Makefile"
18833
18834 # We don't need this: the standard automake output suffices for POSIX systems.
18835 #mk/Posix.mk
18836
18837 # We like mondo-warnings!
18838 # Also force comments to be preserved. This helps when using ccache, in
18839 # combination with GCC 7's implicit-fallthrough warning.
18840 # check for some supported compiler flags, instead of have 'em hard coded in
18841 # maintMakefile
18842 # -Werror is too much, on different platform we get different warnings FOR
18843 # e.g. guile headers.
18844 # rocky: However to *test* for whether to use options below, we want to turn
18845 # warnings into errors, hence, the separate check for -Werror.
18846 WARN_TO_ERROR_CFLAG=""
18847 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -Werror" >&5
18848 $as_echo_n "checking whether C compiler accepts -Werror... " >&6; }
18849 if ${ax_cv_check_cflags___Werror+:} false; then :
18850 $as_echo_n "(cached) " >&6
18851 else
18852
18853 ax_check_save_flags=$CFLAGS
18854 CFLAGS="$CFLAGS ${WARN_TO_ERROR_CFLAG}-Werror"
18855 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18856 /* end confdefs.h. */
18857
18858 int
18859 main ()
18860 {
18861
18862 ;
18863 return 0;
18864 }
18865 _ACEOF
18866 if ac_fn_c_try_compile "$LINENO"; then :
18867 ax_cv_check_cflags___Werror=yes
18868 else
18869 ax_cv_check_cflags___Werror=no
18870 fi
18871 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18872 CFLAGS=$ax_check_save_flags
18873 fi
18874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___Werror" >&5
18875 $as_echo "$ax_cv_check_cflags___Werror" >&6; }
18876 if test "x$ax_cv_check_cflags___Werror" = xyes; then :
18877 WARN_TO_ERROR_CFLAG="-Werror "
18878 else
18879 :
18880 fi
18881
18882 CHECK_CFLAGS="
18883 -C
18884 -Wall
18885 -Wbad-function-cast
18886 -Wchar-subscripts
18887 -Wdeclaration-after-statement
18888 -Wdisabled-optimization
18889 -Wduplicate-conk
18890 -Wduplicate-enum
18891 -Wendif-labels
18892 -Wextra
18893 -Wformat-security
18894 -Wformat-signedness
18895 -Wignore-qualifiers
18896 -Winline
18897 -Wlogical-op
18898 -Wlong-long
18899 -Wnested-externs
18900 -Wno-sign-compare
18901 -Wpointer-arith
18902 -Wshadow
18903 -Wtype-limits
18904 -Wunused
18905 -Wunused-but-set-parameter
18906 -Wunused-parameter
18907 -Wwrite-strings
18908 "
18909
18910 # Warnings not used (because they trigger messages):
18911 # -Wmissing-declarations
18912 # -Wstrict-prototypes
18913 # -Wundef
18914
18915 for OPT in $CHECK_CFLAGS; do
18916 as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$OPT $WARN_TO_ERROR_CFLAG" | $as_tr_sh`
18917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $OPT $WARN_TO_ERROR_CFLAG" >&5
18918 $as_echo_n "checking whether C compiler accepts $OPT $WARN_TO_ERROR_CFLAG... " >&6; }
18919 if eval \${$as_CACHEVAR+:} false; then :
18920 $as_echo_n "(cached) " >&6
18921 else
18922
18923 ax_check_save_flags=$CFLAGS
18924 CFLAGS="$CFLAGS ${WARN_TO_ERROR_CFLAG}$OPT $WARN_TO_ERROR_CFLAG"
18925 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18926 /* end confdefs.h. */
18927
18928 int
18929 main ()
18930 {
18931
18932 ;
18933 return 0;
18934 }
18935 _ACEOF
18936 if ac_fn_c_try_compile "$LINENO"; then :
18937 eval "$as_CACHEVAR=yes"
18938 else
18939 eval "$as_CACHEVAR=no"
18940 fi
18941 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18942 CFLAGS=$ax_check_save_flags
18943 fi
18944 eval ac_res=\$$as_CACHEVAR
18945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
18946 $as_echo "$ac_res" >&6; }
18947 if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then :
18948 AM_CFLAGS="$AM_CFLAGS $OPT"
18949 else
18950 :
18951 fi
18952
18953 done
18954
18955
18956
18957 # OK, do it!
18958
18959 cat >confcache <<\_ACEOF
18960 # This file is a shell script that caches the results of configure
18961 # tests run on this system so they can be shared between configure
18962 # scripts and configure runs, see configure's option --config-cache.
18963 # It is not useful on other systems. If it contains results you don't
18964 # want to keep, you may remove or edit it.
18965 #
18966 # config.status only pays attention to the cache file if you give it
18967 # the --recheck option to rerun configure.
18968 #
18969 # `ac_cv_env_foo' variables (set or unset) will be overridden when
18970 # loading this file, other *unset* `ac_cv_foo' will be assigned the
18971 # following values.
18972
18973 _ACEOF
18974
18975 # The following way of writing the cache mishandles newlines in values,
18976 # but we know of no workaround that is simple, portable, and efficient.
18977 # So, we kill variables containing newlines.
18978 # Ultrix sh set writes to stderr and can't be redirected directly,
18979 # and sets the high bit in the cache file unless we assign to the vars.
18980 (
18981 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
18982 eval ac_val=\$$ac_var
18983 case $ac_val in #(
18984 *${as_nl}*)
18985 case $ac_var in #(
18986 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
18987 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
18988 esac
18989 case $ac_var in #(
18990 _ | IFS | as_nl) ;; #(
18991 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
18992 *) { eval $ac_var=; unset $ac_var;} ;;
18993 esac ;;
18994 esac
18995 done
18996
18997 (set) 2>&1 |
18998 case $as_nl`(ac_space=' '; set) 2>&1` in #(
18999 *${as_nl}ac_space=\ *)
19000 # `set' does not quote correctly, so add quotes: double-quote
19001 # substitution turns \\\\ into \\, and sed turns \\ into \.
19002 sed -n \
19003 "s/'/'\\\\''/g;
19004 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
19005 ;; #(
19006 *)
19007 # `set' quotes correctly as required by POSIX, so do not add quotes.
19008 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
19009 ;;
19010 esac |
19011 sort
19012 ) |
19013 sed '
19014 /^ac_cv_env_/b end
19015 t clear
19016 :clear
19017 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
19018 t end
19019 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
19020 :end' >>confcache
19021 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
19022 if test -w "$cache_file"; then
19023 if test "x$cache_file" != "x/dev/null"; then
19024 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
19025 $as_echo "$as_me: updating cache $cache_file" >&6;}
19026 if test ! -f "$cache_file" || test -h "$cache_file"; then
19027 cat confcache >"$cache_file"
19028 else
19029 case $cache_file in #(
19030 */* | ?:*)
19031 mv -f confcache "$cache_file"$$ &&
19032 mv -f "$cache_file"$$ "$cache_file" ;; #(
19033 *)
19034 mv -f confcache "$cache_file" ;;
19035 esac
19036 fi
19037 fi
19038 else
19039 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
19040 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
19041 fi
19042 fi
19043 rm -f confcache
19044
19045 test "x$prefix" = xNONE && prefix=$ac_default_prefix
19046 # Let make expand exec_prefix.
19047 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
19048
19049 DEFS=-DHAVE_CONFIG_H
19050
19051 ac_libobjs=
19052 ac_ltlibobjs=
19053 U=
19054 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
19055 # 1. Remove the extension, and $U if already installed.
19056 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
19057 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
19058 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
19059 # will be set to the directory where LIBOBJS objects are built.
19060 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
19061 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
19062 done
19063 LIBOBJS=$ac_libobjs
19064
19065 LTLIBOBJS=$ac_ltlibobjs
19066
19067
19068 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
19069 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
19070 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19071 fi
19072 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
19073 $as_echo_n "checking that generated files are newer than configure... " >&6; }
19074 if test -n "$am_sleep_pid"; then
19075 # Hide warnings about reused PIDs.
19076 wait $am_sleep_pid 2>/dev/null
19077 fi
19078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
19079 $as_echo "done" >&6; }
19080 if test -n "$EXEEXT"; then
19081 am__EXEEXT_TRUE=
19082 am__EXEEXT_FALSE='#'
19083 else
19084 am__EXEEXT_TRUE='#'
19085 am__EXEEXT_FALSE=
19086 fi
19087
19088 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
19089 as_fn_error $? "conditional \"AMDEP\" was never defined.
19090 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19091 fi
19092 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
19093 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
19094 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19095 fi
19096 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
19097 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
19098 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19099 fi
19100 if test -z "${GL_COND_LIBTOOL_TRUE}" && test -z "${GL_COND_LIBTOOL_FALSE}"; then
19101 as_fn_error $? "conditional \"GL_COND_LIBTOOL\" was never defined.
19102 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19103 fi
19104 if test -z "${GL_GENERATE_ALLOCA_H_TRUE}" && test -z "${GL_GENERATE_ALLOCA_H_FALSE}"; then
19105 as_fn_error $? "conditional \"GL_GENERATE_ALLOCA_H\" was never defined.
19106 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19107 fi
19108 if test -z "${GL_GENERATE_ERRNO_H_TRUE}" && test -z "${GL_GENERATE_ERRNO_H_FALSE}"; then
19109 as_fn_error $? "conditional \"GL_GENERATE_ERRNO_H\" was never defined.
19110 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19111 fi
19112 if test -z "${GL_GENERATE_LIMITS_H_TRUE}" && test -z "${GL_GENERATE_LIMITS_H_FALSE}"; then
19113 as_fn_error $? "conditional \"GL_GENERATE_LIMITS_H\" was never defined.
19114 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19115 fi
19116 if test -z "${USE_SYSTEM_GLOB_TRUE}" && test -z "${USE_SYSTEM_GLOB_FALSE}"; then
19117 as_fn_error $? "conditional \"USE_SYSTEM_GLOB\" was never defined.
19118 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19119 fi
19120 if test -z "${GL_GENERATE_STDBOOL_H_TRUE}" && test -z "${GL_GENERATE_STDBOOL_H_FALSE}"; then
19121 as_fn_error $? "conditional \"GL_GENERATE_STDBOOL_H\" was never defined.
19122 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19123 fi
19124 if test -z "${GL_GENERATE_STDDEF_H_TRUE}" && test -z "${GL_GENERATE_STDDEF_H_FALSE}"; then
19125 as_fn_error $? "conditional \"GL_GENERATE_STDDEF_H\" was never defined.
19126 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19127 fi
19128 if test -z "${GL_GENERATE_LIMITS_H_TRUE}" && test -z "${GL_GENERATE_LIMITS_H_FALSE}"; then
19129 as_fn_error $? "conditional \"GL_GENERATE_LIMITS_H\" was never defined.
19130 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19131 fi
19132 if test -z "${GL_GENERATE_STDINT_H_TRUE}" && test -z "${GL_GENERATE_STDINT_H_FALSE}"; then
19133 as_fn_error $? "conditional \"GL_GENERATE_STDINT_H\" was never defined.
19134 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19135 fi
19136
19137 gl_libobjs=
19138 gl_ltlibobjs=
19139 if test -n "$gl_LIBOBJS"; then
19140 # Remove the extension.
19141 sed_drop_objext='s/\.o$//;s/\.obj$//'
19142 for i in `for i in $gl_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
19143 gl_libobjs="$gl_libobjs $i.$ac_objext"
19144 gl_ltlibobjs="$gl_ltlibobjs $i.lo"
19145 done
19146 fi
19147 gl_LIBOBJS=$gl_libobjs
19148
19149 gl_LTLIBOBJS=$gl_ltlibobjs
19150
19151
19152
19153 gltests_libobjs=
19154 gltests_ltlibobjs=
19155 if test -n "$gltests_LIBOBJS"; then
19156 # Remove the extension.
19157 sed_drop_objext='s/\.o$//;s/\.obj$//'
19158 for i in `for i in $gltests_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
19159 gltests_libobjs="$gltests_libobjs $i.$ac_objext"
19160 gltests_ltlibobjs="$gltests_ltlibobjs $i.lo"
19161 done
19162 fi
19163 gltests_LIBOBJS=$gltests_libobjs
19164
19165 gltests_LTLIBOBJS=$gltests_ltlibobjs
19166
19167
19168
19169 if test -z "${USE_LOCAL_GLOB_TRUE}" && test -z "${USE_LOCAL_GLOB_FALSE}"; then
19170 as_fn_error $? "conditional \"USE_LOCAL_GLOB\" was never defined.
19171 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19172 fi
19173 if test -z "${HAVE_GUILE_TRUE}" && test -z "${HAVE_GUILE_FALSE}"; then
19174 as_fn_error $? "conditional \"HAVE_GUILE\" was never defined.
19175 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19176 fi
19177 if test -z "${USE_CUSTOMS_TRUE}" && test -z "${USE_CUSTOMS_FALSE}"; then
19178 as_fn_error $? "conditional \"USE_CUSTOMS\" was never defined.
19179 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19180 fi
19181
19182 : "${CONFIG_STATUS=./config.status}"
19183 ac_write_fail=0
19184 ac_clean_files_save=$ac_clean_files
19185 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
19186 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
19187 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
19188 as_write_fail=0
19189 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
19190 #! $SHELL
19191 # Generated by $as_me.
19192 # Run this file to recreate the current configuration.
19193 # Compiler output produced by configure, useful for debugging
19194 # configure, is in config.log if it exists.
19195
19196 debug=false
19197 ac_cs_recheck=false
19198 ac_cs_silent=false
19199
19200 SHELL=\${CONFIG_SHELL-$SHELL}
19201 export SHELL
19202 _ASEOF
19203 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
19204 ## -------------------- ##
19205 ## M4sh Initialization. ##
19206 ## -------------------- ##
19207
19208 # Be more Bourne compatible
19209 DUALCASE=1; export DUALCASE # for MKS sh
19210 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
19211 emulate sh
19212 NULLCMD=:
19213 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
19214 # is contrary to our usage. Disable this feature.
19215 alias -g '${1+"$@"}'='"$@"'
19216 setopt NO_GLOB_SUBST
19217 else
19218 case `(set -o) 2>/dev/null` in #(
19219 *posix*) :
19220 set -o posix ;; #(
19221 *) :
19222 ;;
19223 esac
19224 fi
19225
19226
19227 as_nl='
19228 '
19229 export as_nl
19230 # Printing a long string crashes Solaris 7 /usr/bin/printf.
19231 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
19232 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
19233 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
19234 # Prefer a ksh shell builtin over an external printf program on Solaris,
19235 # but without wasting forks for bash or zsh.
19236 if test -z "$BASH_VERSION$ZSH_VERSION" \
19237 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
19238 as_echo='print -r --'
19239 as_echo_n='print -rn --'
19240 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
19241 as_echo='printf %s\n'
19242 as_echo_n='printf %s'
19243 else
19244 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
19245 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
19246 as_echo_n='/usr/ucb/echo -n'
19247 else
19248 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
19249 as_echo_n_body='eval
19250 arg=$1;
19251 case $arg in #(
19252 *"$as_nl"*)
19253 expr "X$arg" : "X\\(.*\\)$as_nl";
19254 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
19255 esac;
19256 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
19257 '
19258 export as_echo_n_body
19259 as_echo_n='sh -c $as_echo_n_body as_echo'
19260 fi
19261 export as_echo_body
19262 as_echo='sh -c $as_echo_body as_echo'
19263 fi
19264
19265 # The user is always right.
19266 if test "${PATH_SEPARATOR+set}" != set; then
19267 PATH_SEPARATOR=:
19268 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
19269 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
19270 PATH_SEPARATOR=';'
19271 }
19272 fi
19273
19274
19275 # IFS
19276 # We need space, tab and new line, in precisely that order. Quoting is
19277 # there to prevent editors from complaining about space-tab.
19278 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
19279 # splitting by setting IFS to empty value.)
19280 IFS=" "" $as_nl"
19281
19282 # Find who we are. Look in the path if we contain no directory separator.
19283 as_myself=
19284 case $0 in #((
19285 *[\\/]* ) as_myself=$0 ;;
19286 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19287 for as_dir in $PATH
19288 do
19289 IFS=$as_save_IFS
19290 test -z "$as_dir" && as_dir=.
19291 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
19292 done
19293 IFS=$as_save_IFS
19294
19295 ;;
19296 esac
19297 # We did not find ourselves, most probably we were run as `sh COMMAND'
19298 # in which case we are not to be found in the path.
19299 if test "x$as_myself" = x; then
19300 as_myself=$0
19301 fi
19302 if test ! -f "$as_myself"; then
19303 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
19304 exit 1
19305 fi
19306
19307 # Unset variables that we do not need and which cause bugs (e.g. in
19308 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
19309 # suppresses any "Segmentation fault" message there. '((' could
19310 # trigger a bug in pdksh 5.2.14.
19311 for as_var in BASH_ENV ENV MAIL MAILPATH
19312 do eval test x\${$as_var+set} = xset \
19313 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
19314 done
19315 PS1='$ '
19316 PS2='> '
19317 PS4='+ '
19318
19319 # NLS nuisances.
19320 LC_ALL=C
19321 export LC_ALL
19322 LANGUAGE=C
19323 export LANGUAGE
19324
19325 # CDPATH.
19326 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
19327
19328
19329 # as_fn_error STATUS ERROR [LINENO LOG_FD]
19330 # ----------------------------------------
19331 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
19332 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
19333 # script with STATUS, using 1 if that was 0.
19334 as_fn_error ()
19335 {
19336 as_status=$1; test $as_status -eq 0 && as_status=1
19337 if test "$4"; then
19338 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
19339 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
19340 fi
19341 $as_echo "$as_me: error: $2" >&2
19342 as_fn_exit $as_status
19343 } # as_fn_error
19344
19345
19346 # as_fn_set_status STATUS
19347 # -----------------------
19348 # Set $? to STATUS, without forking.
19349 as_fn_set_status ()
19350 {
19351 return $1
19352 } # as_fn_set_status
19353
19354 # as_fn_exit STATUS
19355 # -----------------
19356 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
19357 as_fn_exit ()
19358 {
19359 set +e
19360 as_fn_set_status $1
19361 exit $1
19362 } # as_fn_exit
19363
19364 # as_fn_unset VAR
19365 # ---------------
19366 # Portably unset VAR.
19367 as_fn_unset ()
19368 {
19369 { eval $1=; unset $1;}
19370 }
19371 as_unset=as_fn_unset
19372 # as_fn_append VAR VALUE
19373 # ----------------------
19374 # Append the text in VALUE to the end of the definition contained in VAR. Take
19375 # advantage of any shell optimizations that allow amortized linear growth over
19376 # repeated appends, instead of the typical quadratic growth present in naive
19377 # implementations.
19378 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
19379 eval 'as_fn_append ()
19380 {
19381 eval $1+=\$2
19382 }'
19383 else
19384 as_fn_append ()
19385 {
19386 eval $1=\$$1\$2
19387 }
19388 fi # as_fn_append
19389
19390 # as_fn_arith ARG...
19391 # ------------------
19392 # Perform arithmetic evaluation on the ARGs, and store the result in the
19393 # global $as_val. Take advantage of shells that can avoid forks. The arguments
19394 # must be portable across $(()) and expr.
19395 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
19396 eval 'as_fn_arith ()
19397 {
19398 as_val=$(( $* ))
19399 }'
19400 else
19401 as_fn_arith ()
19402 {
19403 as_val=`expr "$@" || test $? -eq 1`
19404 }
19405 fi # as_fn_arith
19406
19407
19408 if expr a : '\(a\)' >/dev/null 2>&1 &&
19409 test "X`expr 00001 : '.*\(...\)'`" = X001; then
19410 as_expr=expr
19411 else
19412 as_expr=false
19413 fi
19414
19415 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
19416 as_basename=basename
19417 else
19418 as_basename=false
19419 fi
19420
19421 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
19422 as_dirname=dirname
19423 else
19424 as_dirname=false
19425 fi
19426
19427 as_me=`$as_basename -- "$0" ||
19428 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
19429 X"$0" : 'X\(//\)$' \| \
19430 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
19431 $as_echo X/"$0" |
19432 sed '/^.*\/\([^/][^/]*\)\/*$/{
19433 s//\1/
19434 q
19435 }
19436 /^X\/\(\/\/\)$/{
19437 s//\1/
19438 q
19439 }
19440 /^X\/\(\/\).*/{
19441 s//\1/
19442 q
19443 }
19444 s/.*/./; q'`
19445
19446 # Avoid depending upon Character Ranges.
19447 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
19448 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
19449 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
19450 as_cr_digits='0123456789'
19451 as_cr_alnum=$as_cr_Letters$as_cr_digits
19452
19453 ECHO_C= ECHO_N= ECHO_T=
19454 case `echo -n x` in #(((((
19455 -n*)
19456 case `echo 'xy\c'` in
19457 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
19458 xy) ECHO_C='\c';;
19459 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
19460 ECHO_T=' ';;
19461 esac;;
19462 *)
19463 ECHO_N='-n';;
19464 esac
19465
19466 rm -f conf$$ conf$$.exe conf$$.file
19467 if test -d conf$$.dir; then
19468 rm -f conf$$.dir/conf$$.file
19469 else
19470 rm -f conf$$.dir
19471 mkdir conf$$.dir 2>/dev/null
19472 fi
19473 if (echo >conf$$.file) 2>/dev/null; then
19474 if ln -s conf$$.file conf$$ 2>/dev/null; then
19475 as_ln_s='ln -s'
19476 # ... but there are two gotchas:
19477 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
19478 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
19479 # In both cases, we have to default to `cp -pR'.
19480 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
19481 as_ln_s='cp -pR'
19482 elif ln conf$$.file conf$$ 2>/dev/null; then
19483 as_ln_s=ln
19484 else
19485 as_ln_s='cp -pR'
19486 fi
19487 else
19488 as_ln_s='cp -pR'
19489 fi
19490 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
19491 rmdir conf$$.dir 2>/dev/null
19492
19493
19494 # as_fn_mkdir_p
19495 # -------------
19496 # Create "$as_dir" as a directory, including parents if necessary.
19497 as_fn_mkdir_p ()
19498 {
19499
19500 case $as_dir in #(
19501 -*) as_dir=./$as_dir;;
19502 esac
19503 test -d "$as_dir" || eval $as_mkdir_p || {
19504 as_dirs=
19505 while :; do
19506 case $as_dir in #(
19507 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
19508 *) as_qdir=$as_dir;;
19509 esac
19510 as_dirs="'$as_qdir' $as_dirs"
19511 as_dir=`$as_dirname -- "$as_dir" ||
19512 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19513 X"$as_dir" : 'X\(//\)[^/]' \| \
19514 X"$as_dir" : 'X\(//\)$' \| \
19515 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
19516 $as_echo X"$as_dir" |
19517 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19518 s//\1/
19519 q
19520 }
19521 /^X\(\/\/\)[^/].*/{
19522 s//\1/
19523 q
19524 }
19525 /^X\(\/\/\)$/{
19526 s//\1/
19527 q
19528 }
19529 /^X\(\/\).*/{
19530 s//\1/
19531 q
19532 }
19533 s/.*/./; q'`
19534 test -d "$as_dir" && break
19535 done
19536 test -z "$as_dirs" || eval "mkdir $as_dirs"
19537 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
19538
19539
19540 } # as_fn_mkdir_p
19541 if mkdir -p . 2>/dev/null; then
19542 as_mkdir_p='mkdir -p "$as_dir"'
19543 else
19544 test -d ./-p && rmdir ./-p
19545 as_mkdir_p=false
19546 fi
19547
19548
19549 # as_fn_executable_p FILE
19550 # -----------------------
19551 # Test if FILE is an executable regular file.
19552 as_fn_executable_p ()
19553 {
19554 test -f "$1" && test -x "$1"
19555 } # as_fn_executable_p
19556 as_test_x='test -x'
19557 as_executable_p=as_fn_executable_p
19558
19559 # Sed expression to map a string onto a valid CPP name.
19560 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
19561
19562 # Sed expression to map a string onto a valid variable name.
19563 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
19564
19565
19566 exec 6>&1
19567 ## ----------------------------------- ##
19568 ## Main body of $CONFIG_STATUS script. ##
19569 ## ----------------------------------- ##
19570 _ASEOF
19571 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
19572
19573 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19574 # Save the log message, to keep $0 and so on meaningful, and to
19575 # report actual input values of CONFIG_FILES etc. instead of their
19576 # values after options handling.
19577 ac_log="
19578 This file was extended by remake $as_me 4.3+dbg-1.6, which was
19579 generated by GNU Autoconf 2.69. Invocation command line was
19580
19581 CONFIG_FILES = $CONFIG_FILES
19582 CONFIG_HEADERS = $CONFIG_HEADERS
19583 CONFIG_LINKS = $CONFIG_LINKS
19584 CONFIG_COMMANDS = $CONFIG_COMMANDS
19585 $ $0 $@
19586
19587 on `(hostname || uname -n) 2>/dev/null | sed 1q`
19588 "
19589
19590 _ACEOF
19591
19592 case $ac_config_files in *"
19593 "*) set x $ac_config_files; shift; ac_config_files=$*;;
19594 esac
19595
19596 case $ac_config_headers in *"
19597 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
19598 esac
19599
19600
19601 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19602 # Files that config.status was made for.
19603 config_files="$ac_config_files"
19604 config_headers="$ac_config_headers"
19605 config_commands="$ac_config_commands"
19606
19607 _ACEOF
19608
19609 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19610 ac_cs_usage="\
19611 \`$as_me' instantiates files and other configuration actions
19612 from templates according to the current configuration. Unless the files
19613 and actions are specified as TAGs, all are instantiated by default.
19614
19615 Usage: $0 [OPTION]... [TAG]...
19616
19617 -h, --help print this help, then exit
19618 -V, --version print version number and configuration settings, then exit
19619 --config print configuration, then exit
19620 -q, --quiet, --silent
19621 do not print progress messages
19622 -d, --debug don't remove temporary files
19623 --recheck update $as_me by reconfiguring in the same conditions
19624 --file=FILE[:TEMPLATE]
19625 instantiate the configuration file FILE
19626 --header=FILE[:TEMPLATE]
19627 instantiate the configuration header FILE
19628
19629 Configuration files:
19630 $config_files
19631
19632 Configuration headers:
19633 $config_headers
19634
19635 Configuration commands:
19636 $config_commands
19637
19638 Report bugs to <https://github.com/rocky/remake/issues>."
19639
19640 _ACEOF
19641 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19642 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
19643 ac_cs_version="\\
19644 remake config.status 4.3+dbg-1.6
19645 configured by $0, generated by GNU Autoconf 2.69,
19646 with options \\"\$ac_cs_config\\"
19647
19648 Copyright (C) 2012 Free Software Foundation, Inc.
19649 This config.status script is free software; the Free Software Foundation
19650 gives unlimited permission to copy, distribute and modify it."
19651
19652 ac_pwd='$ac_pwd'
19653 srcdir='$srcdir'
19654 INSTALL='$INSTALL'
19655 MKDIR_P='$MKDIR_P'
19656 AWK='$AWK'
19657 test -n "\$AWK" || AWK=awk
19658 _ACEOF
19659
19660 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19661 # The default lists apply if the user does not specify any file.
19662 ac_need_defaults=:
19663 while test $# != 0
19664 do
19665 case $1 in
19666 --*=?*)
19667 ac_option=`expr "X$1" : 'X\([^=]*\)='`
19668 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
19669 ac_shift=:
19670 ;;
19671 --*=)
19672 ac_option=`expr "X$1" : 'X\([^=]*\)='`
19673 ac_optarg=
19674 ac_shift=:
19675 ;;
19676 *)
19677 ac_option=$1
19678 ac_optarg=$2
19679 ac_shift=shift
19680 ;;
19681 esac
19682
19683 case $ac_option in
19684 # Handling of the options.
19685 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
19686 ac_cs_recheck=: ;;
19687 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
19688 $as_echo "$ac_cs_version"; exit ;;
19689 --config | --confi | --conf | --con | --co | --c )
19690 $as_echo "$ac_cs_config"; exit ;;
19691 --debug | --debu | --deb | --de | --d | -d )
19692 debug=: ;;
19693 --file | --fil | --fi | --f )
19694 $ac_shift
19695 case $ac_optarg in
19696 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
19697 '') as_fn_error $? "missing file argument" ;;
19698 esac
19699 as_fn_append CONFIG_FILES " '$ac_optarg'"
19700 ac_need_defaults=false;;
19701 --header | --heade | --head | --hea )
19702 $ac_shift
19703 case $ac_optarg in
19704 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
19705 esac
19706 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
19707 ac_need_defaults=false;;
19708 --he | --h)
19709 # Conflict between --help and --header
19710 as_fn_error $? "ambiguous option: \`$1'
19711 Try \`$0 --help' for more information.";;
19712 --help | --hel | -h )
19713 $as_echo "$ac_cs_usage"; exit ;;
19714 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
19715 | -silent | --silent | --silen | --sile | --sil | --si | --s)
19716 ac_cs_silent=: ;;
19717
19718 # This is an error.
19719 -*) as_fn_error $? "unrecognized option: \`$1'
19720 Try \`$0 --help' for more information." ;;
19721
19722 *) as_fn_append ac_config_targets " $1"
19723 ac_need_defaults=false ;;
19724
19725 esac
19726 shift
19727 done
19728
19729 ac_configure_extra_args=
19730
19731 if $ac_cs_silent; then
19732 exec 6>/dev/null
19733 ac_configure_extra_args="$ac_configure_extra_args --silent"
19734 fi
19735
19736 _ACEOF
19737 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19738 if \$ac_cs_recheck; then
19739 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
19740 shift
19741 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
19742 CONFIG_SHELL='$SHELL'
19743 export CONFIG_SHELL
19744 exec "\$@"
19745 fi
19746
19747 _ACEOF
19748 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19749 exec 5>>config.log
19750 {
19751 echo
19752 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
19753 ## Running $as_me. ##
19754 _ASBOX
19755 $as_echo "$ac_log"
19756 } >&5
19757
19758 _ACEOF
19759 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19760 #
19761 # INIT-COMMANDS
19762 #
19763 AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}"
19764 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
19765 # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
19766 # from automake < 1.5.
19767 eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
19768 # Capture the value of LINGUAS because we need it to compute CATALOGS.
19769 LINGUAS="${LINGUAS-%UNSET%}"
19770
19771
19772 _ACEOF
19773
19774 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19775
19776 # Handling of arguments.
19777 for ac_config_target in $ac_config_targets
19778 do
19779 case $ac_config_target in
19780 "src/config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/config.h" ;;
19781 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
19782 "po-directories") CONFIG_COMMANDS="$CONFIG_COMMANDS po-directories" ;;
19783 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
19784 "lib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
19785 "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
19786 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
19787 "doc/doxygen/Doxyfile") CONFIG_FILES="$CONFIG_FILES doc/doxygen/Doxyfile" ;;
19788 "glob/Makefile") CONFIG_FILES="$CONFIG_FILES glob/Makefile" ;;
19789 "unittest/Makefile") CONFIG_FILES="$CONFIG_FILES unittest/Makefile" ;;
19790 "tests/config-flags.pm") CONFIG_FILES="$CONFIG_FILES tests/config-flags.pm" ;;
19791 "libdebugger/Makefile") CONFIG_FILES="$CONFIG_FILES libdebugger/Makefile" ;;
19792
19793 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
19794 esac
19795 done
19796
19797
19798 # If the user did not use the arguments to specify the items to instantiate,
19799 # then the envvar interface is used. Set only those that are not.
19800 # We use the long form for the default assignment because of an extremely
19801 # bizarre bug on SunOS 4.1.3.
19802 if $ac_need_defaults; then
19803 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
19804 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
19805 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
19806 fi
19807
19808 # Have a temporary directory for convenience. Make it in the build tree
19809 # simply because there is no reason against having it here, and in addition,
19810 # creating and moving files from /tmp can sometimes cause problems.
19811 # Hook for its removal unless debugging.
19812 # Note that there is a small window in which the directory will not be cleaned:
19813 # after its creation but before its name has been assigned to `$tmp'.
19814 $debug ||
19815 {
19816 tmp= ac_tmp=
19817 trap 'exit_status=$?
19818 : "${ac_tmp:=$tmp}"
19819 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
19820 ' 0
19821 trap 'as_fn_exit 1' 1 2 13 15
19822 }
19823 # Create a (secure) tmp directory for tmp files.
19824
19825 {
19826 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
19827 test -d "$tmp"
19828 } ||
19829 {
19830 tmp=./conf$$-$RANDOM
19831 (umask 077 && mkdir "$tmp")
19832 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
19833 ac_tmp=$tmp
19834
19835 # Set up the scripts for CONFIG_FILES section.
19836 # No need to generate them if there are no CONFIG_FILES.
19837 # This happens for instance with `./config.status config.h'.
19838 if test -n "$CONFIG_FILES"; then
19839
19840 if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
19841 ac_cs_awk_getline=:
19842 ac_cs_awk_pipe_init=
19843 ac_cs_awk_read_file='
19844 while ((getline aline < (F[key])) > 0)
19845 print(aline)
19846 close(F[key])'
19847 ac_cs_awk_pipe_fini=
19848 else
19849 ac_cs_awk_getline=false
19850 ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
19851 ac_cs_awk_read_file='
19852 print "|#_!!_#|"
19853 print "cat " F[key] " &&"
19854 '$ac_cs_awk_pipe_init
19855 # The final `:' finishes the AND list.
19856 ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
19857 fi
19858 ac_cr=`echo X | tr X '\015'`
19859 # On cygwin, bash can eat \r inside `` if the user requested igncr.
19860 # But we know of no other shell where ac_cr would be empty at this
19861 # point, so we can use a bashism as a fallback.
19862 if test "x$ac_cr" = x; then
19863 eval ac_cr=\$\'\\r\'
19864 fi
19865 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
19866 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
19867 ac_cs_awk_cr='\\r'
19868 else
19869 ac_cs_awk_cr=$ac_cr
19870 fi
19871
19872 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
19873 _ACEOF
19874
19875 # Create commands to substitute file output variables.
19876 {
19877 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
19878 echo 'cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&' &&
19879 echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
19880 echo "_ACAWK" &&
19881 echo "_ACEOF"
19882 } >conf$$files.sh &&
19883 . ./conf$$files.sh ||
19884 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
19885 rm -f conf$$files.sh
19886
19887 {
19888 echo "cat >conf$$subs.awk <<_ACEOF" &&
19889 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
19890 echo "_ACEOF"
19891 } >conf$$subs.sh ||
19892 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
19893 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
19894 ac_delim='%!_!# '
19895 for ac_last_try in false false false false false :; do
19896 . ./conf$$subs.sh ||
19897 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
19898
19899 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
19900 if test $ac_delim_n = $ac_delim_num; then
19901 break
19902 elif $ac_last_try; then
19903 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
19904 else
19905 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
19906 fi
19907 done
19908 rm -f conf$$subs.sh
19909
19910 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19911 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
19912 _ACEOF
19913 sed -n '
19914 h
19915 s/^/S["/; s/!.*/"]=/
19916 p
19917 g
19918 s/^[^!]*!//
19919 :repl
19920 t repl
19921 s/'"$ac_delim"'$//
19922 t delim
19923 :nl
19924 h
19925 s/\(.\{148\}\)..*/\1/
19926 t more1
19927 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
19928 p
19929 n
19930 b repl
19931 :more1
19932 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
19933 p
19934 g
19935 s/.\{148\}//
19936 t nl
19937 :delim
19938 h
19939 s/\(.\{148\}\)..*/\1/
19940 t more2
19941 s/["\\]/\\&/g; s/^/"/; s/$/"/
19942 p
19943 b
19944 :more2
19945 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
19946 p
19947 g
19948 s/.\{148\}//
19949 t delim
19950 ' <conf$$subs.awk | sed '
19951 /^[^""]/{
19952 N
19953 s/\n//
19954 }
19955 ' >>$CONFIG_STATUS || ac_write_fail=1
19956 rm -f conf$$subs.awk
19957 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19958 _ACAWK
19959 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
19960 for (key in S) S_is_set[key] = 1
19961 FS = ""
19962 \$ac_cs_awk_pipe_init
19963 }
19964 {
19965 line = $ 0
19966 nfields = split(line, field, "@")
19967 substed = 0
19968 len = length(field[1])
19969 for (i = 2; i < nfields; i++) {
19970 key = field[i]
19971 keylen = length(key)
19972 if (S_is_set[key]) {
19973 value = S[key]
19974 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
19975 len += length(value) + length(field[++i])
19976 substed = 1
19977 } else
19978 len += 1 + keylen
19979 }
19980 if (nfields == 3 && !substed) {
19981 key = field[2]
19982 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
19983 \$ac_cs_awk_read_file
19984 next
19985 }
19986 }
19987 print line
19988 }
19989 \$ac_cs_awk_pipe_fini
19990 _ACAWK
19991 _ACEOF
19992 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19993 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
19994 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
19995 else
19996 cat
19997 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
19998 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
19999 _ACEOF
20000
20001 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
20002 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
20003 # trailing colons and then remove the whole line if VPATH becomes empty
20004 # (actually we leave an empty line to preserve line numbers).
20005 if test "x$srcdir" = x.; then
20006 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
20007 h
20008 s///
20009 s/^/:/
20010 s/[ ]*$/:/
20011 s/:\$(srcdir):/:/g
20012 s/:\${srcdir}:/:/g
20013 s/:@srcdir@:/:/g
20014 s/^:*//
20015 s/:*$//
20016 x
20017 s/\(=[ ]*\).*/\1/
20018 G
20019 s/\n//
20020 s/^[^=]*=[ ]*$//
20021 }'
20022 fi
20023
20024 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20025 fi # test -n "$CONFIG_FILES"
20026
20027 # Set up the scripts for CONFIG_HEADERS section.
20028 # No need to generate them if there are no CONFIG_HEADERS.
20029 # This happens for instance with `./config.status Makefile'.
20030 if test -n "$CONFIG_HEADERS"; then
20031 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
20032 BEGIN {
20033 _ACEOF
20034
20035 # Transform confdefs.h into an awk script `defines.awk', embedded as
20036 # here-document in config.status, that substitutes the proper values into
20037 # config.h.in to produce config.h.
20038
20039 # Create a delimiter string that does not exist in confdefs.h, to ease
20040 # handling of long lines.
20041 ac_delim='%!_!# '
20042 for ac_last_try in false false :; do
20043 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
20044 if test -z "$ac_tt"; then
20045 break
20046 elif $ac_last_try; then
20047 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
20048 else
20049 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
20050 fi
20051 done
20052
20053 # For the awk script, D is an array of macro values keyed by name,
20054 # likewise P contains macro parameters if any. Preserve backslash
20055 # newline sequences.
20056
20057 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
20058 sed -n '
20059 s/.\{148\}/&'"$ac_delim"'/g
20060 t rset
20061 :rset
20062 s/^[ ]*#[ ]*define[ ][ ]*/ /
20063 t def
20064 d
20065 :def
20066 s/\\$//
20067 t bsnl
20068 s/["\\]/\\&/g
20069 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
20070 D["\1"]=" \3"/p
20071 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
20072 d
20073 :bsnl
20074 s/["\\]/\\&/g
20075 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
20076 D["\1"]=" \3\\\\\\n"\\/p
20077 t cont
20078 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
20079 t cont
20080 d
20081 :cont
20082 n
20083 s/.\{148\}/&'"$ac_delim"'/g
20084 t clear
20085 :clear
20086 s/\\$//
20087 t bsnlc
20088 s/["\\]/\\&/g; s/^/"/; s/$/"/p
20089 d
20090 :bsnlc
20091 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
20092 b cont
20093 ' <confdefs.h | sed '
20094 s/'"$ac_delim"'/"\\\
20095 "/g' >>$CONFIG_STATUS || ac_write_fail=1
20096
20097 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20098 for (key in D) D_is_set[key] = 1
20099 FS = ""
20100 }
20101 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
20102 line = \$ 0
20103 split(line, arg, " ")
20104 if (arg[1] == "#") {
20105 defundef = arg[2]
20106 mac1 = arg[3]
20107 } else {
20108 defundef = substr(arg[1], 2)
20109 mac1 = arg[2]
20110 }
20111 split(mac1, mac2, "(") #)
20112 macro = mac2[1]
20113 prefix = substr(line, 1, index(line, defundef) - 1)
20114 if (D_is_set[macro]) {
20115 # Preserve the white space surrounding the "#".
20116 print prefix "define", macro P[macro] D[macro]
20117 next
20118 } else {
20119 # Replace #undef with comments. This is necessary, for example,
20120 # in the case of _POSIX_SOURCE, which is predefined and required
20121 # on some systems where configure will not decide to define it.
20122 if (defundef == "undef") {
20123 print "/*", prefix defundef, macro, "*/"
20124 next
20125 }
20126 }
20127 }
20128 { print }
20129 _ACAWK
20130 _ACEOF
20131 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20132 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
20133 fi # test -n "$CONFIG_HEADERS"
20134
20135
20136 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
20137 shift
20138 for ac_tag
20139 do
20140 case $ac_tag in
20141 :[FHLC]) ac_mode=$ac_tag; continue;;
20142 esac
20143 case $ac_mode$ac_tag in
20144 :[FHL]*:*);;
20145 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
20146 :[FH]-) ac_tag=-:-;;
20147 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
20148 esac
20149 ac_save_IFS=$IFS
20150 IFS=:
20151 set x $ac_tag
20152 IFS=$ac_save_IFS
20153 shift
20154 ac_file=$1
20155 shift
20156
20157 case $ac_mode in
20158 :L) ac_source=$1;;
20159 :[FH])
20160 ac_file_inputs=
20161 for ac_f
20162 do
20163 case $ac_f in
20164 -) ac_f="$ac_tmp/stdin";;
20165 *) # Look for the file first in the build tree, then in the source tree
20166 # (if the path is not absolute). The absolute path cannot be DOS-style,
20167 # because $ac_f cannot contain `:'.
20168 test -f "$ac_f" ||
20169 case $ac_f in
20170 [\\/$]*) false;;
20171 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
20172 esac ||
20173 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
20174 esac
20175 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
20176 as_fn_append ac_file_inputs " '$ac_f'"
20177 done
20178
20179 # Let's still pretend it is `configure' which instantiates (i.e., don't
20180 # use $as_me), people would be surprised to read:
20181 # /* config.h. Generated by config.status. */
20182 configure_input='Generated from '`
20183 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
20184 `' by configure.'
20185 if test x"$ac_file" != x-; then
20186 configure_input="$ac_file. $configure_input"
20187 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
20188 $as_echo "$as_me: creating $ac_file" >&6;}
20189 fi
20190 # Neutralize special characters interpreted by sed in replacement strings.
20191 case $configure_input in #(
20192 *\&* | *\|* | *\\* )
20193 ac_sed_conf_input=`$as_echo "$configure_input" |
20194 sed 's/[\\\\&|]/\\\\&/g'`;; #(
20195 *) ac_sed_conf_input=$configure_input;;
20196 esac
20197
20198 case $ac_tag in
20199 *:-:* | *:-) cat >"$ac_tmp/stdin" \
20200 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
20201 esac
20202 ;;
20203 esac
20204
20205 ac_dir=`$as_dirname -- "$ac_file" ||
20206 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20207 X"$ac_file" : 'X\(//\)[^/]' \| \
20208 X"$ac_file" : 'X\(//\)$' \| \
20209 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
20210 $as_echo X"$ac_file" |
20211 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20212 s//\1/
20213 q
20214 }
20215 /^X\(\/\/\)[^/].*/{
20216 s//\1/
20217 q
20218 }
20219 /^X\(\/\/\)$/{
20220 s//\1/
20221 q
20222 }
20223 /^X\(\/\).*/{
20224 s//\1/
20225 q
20226 }
20227 s/.*/./; q'`
20228 as_dir="$ac_dir"; as_fn_mkdir_p
20229 ac_builddir=.
20230
20231 case "$ac_dir" in
20232 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
20233 *)
20234 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
20235 # A ".." for each directory in $ac_dir_suffix.
20236 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
20237 case $ac_top_builddir_sub in
20238 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
20239 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
20240 esac ;;
20241 esac
20242 ac_abs_top_builddir=$ac_pwd
20243 ac_abs_builddir=$ac_pwd$ac_dir_suffix
20244 # for backward compatibility:
20245 ac_top_builddir=$ac_top_build_prefix
20246
20247 case $srcdir in
20248 .) # We are building in place.
20249 ac_srcdir=.
20250 ac_top_srcdir=$ac_top_builddir_sub
20251 ac_abs_top_srcdir=$ac_pwd ;;
20252 [\\/]* | ?:[\\/]* ) # Absolute name.
20253 ac_srcdir=$srcdir$ac_dir_suffix;
20254 ac_top_srcdir=$srcdir
20255 ac_abs_top_srcdir=$srcdir ;;
20256 *) # Relative name.
20257 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
20258 ac_top_srcdir=$ac_top_build_prefix$srcdir
20259 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
20260 esac
20261 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
20262
20263
20264 case $ac_mode in
20265 :F)
20266 #
20267 # CONFIG_FILE
20268 #
20269
20270 case $INSTALL in
20271 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
20272 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
20273 esac
20274 ac_MKDIR_P=$MKDIR_P
20275 case $MKDIR_P in
20276 [\\/$]* | ?:[\\/]* ) ;;
20277 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
20278 esac
20279 _ACEOF
20280
20281 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20282 # If the template does not know about datarootdir, expand it.
20283 # FIXME: This hack should be removed a few years after 2.60.
20284 ac_datarootdir_hack=; ac_datarootdir_seen=
20285 ac_sed_dataroot='
20286 /datarootdir/ {
20287 p
20288 q
20289 }
20290 /@datadir@/p
20291 /@docdir@/p
20292 /@infodir@/p
20293 /@localedir@/p
20294 /@mandir@/p'
20295 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
20296 *datarootdir*) ac_datarootdir_seen=yes;;
20297 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
20298 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
20299 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
20300 _ACEOF
20301 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20302 ac_datarootdir_hack='
20303 s&@datadir@&$datadir&g
20304 s&@docdir@&$docdir&g
20305 s&@infodir@&$infodir&g
20306 s&@localedir@&$localedir&g
20307 s&@mandir@&$mandir&g
20308 s&\\\${datarootdir}&$datarootdir&g' ;;
20309 esac
20310 _ACEOF
20311
20312 # Neutralize VPATH when `$srcdir' = `.'.
20313 # Shell code in configure.ac might set extrasub.
20314 # FIXME: do we really want to maintain this feature?
20315 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20316 ac_sed_extra="$ac_vpsub
20317 $extrasub
20318 _ACEOF
20319 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20320 :t
20321 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
20322 s|@configure_input@|$ac_sed_conf_input|;t t
20323 s&@top_builddir@&$ac_top_builddir_sub&;t t
20324 s&@top_build_prefix@&$ac_top_build_prefix&;t t
20325 s&@srcdir@&$ac_srcdir&;t t
20326 s&@abs_srcdir@&$ac_abs_srcdir&;t t
20327 s&@top_srcdir@&$ac_top_srcdir&;t t
20328 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
20329 s&@builddir@&$ac_builddir&;t t
20330 s&@abs_builddir@&$ac_abs_builddir&;t t
20331 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
20332 s&@INSTALL@&$ac_INSTALL&;t t
20333 s&@MKDIR_P@&$ac_MKDIR_P&;t t
20334 $ac_datarootdir_hack
20335 "
20336 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
20337 if $ac_cs_awk_getline; then
20338 $AWK -f "$ac_tmp/subs.awk"
20339 else
20340 $AWK -f "$ac_tmp/subs.awk" | $SHELL
20341 fi \
20342 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
20343
20344 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
20345 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
20346 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
20347 "$ac_tmp/out"`; test -z "$ac_out"; } &&
20348 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
20349 which seems to be undefined. Please make sure it is defined" >&5
20350 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
20351 which seems to be undefined. Please make sure it is defined" >&2;}
20352
20353 rm -f "$ac_tmp/stdin"
20354 case $ac_file in
20355 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
20356 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
20357 esac \
20358 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
20359 ;;
20360 :H)
20361 #
20362 # CONFIG_HEADER
20363 #
20364 if test x"$ac_file" != x-; then
20365 {
20366 $as_echo "/* $configure_input */" \
20367 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
20368 } >"$ac_tmp/config.h" \
20369 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
20370 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
20371 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
20372 $as_echo "$as_me: $ac_file is unchanged" >&6;}
20373 else
20374 rm -f "$ac_file"
20375 mv "$ac_tmp/config.h" "$ac_file" \
20376 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
20377 fi
20378 else
20379 $as_echo "/* $configure_input */" \
20380 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
20381 || as_fn_error $? "could not create -" "$LINENO" 5
20382 fi
20383 # Compute "$ac_file"'s index in $config_headers.
20384 _am_arg="$ac_file"
20385 _am_stamp_count=1
20386 for _am_header in $config_headers :; do
20387 case $_am_header in
20388 $_am_arg | $_am_arg:* )
20389 break ;;
20390 * )
20391 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
20392 esac
20393 done
20394 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
20395 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20396 X"$_am_arg" : 'X\(//\)[^/]' \| \
20397 X"$_am_arg" : 'X\(//\)$' \| \
20398 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
20399 $as_echo X"$_am_arg" |
20400 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20401 s//\1/
20402 q
20403 }
20404 /^X\(\/\/\)[^/].*/{
20405 s//\1/
20406 q
20407 }
20408 /^X\(\/\/\)$/{
20409 s//\1/
20410 q
20411 }
20412 /^X\(\/\).*/{
20413 s//\1/
20414 q
20415 }
20416 s/.*/./; q'`/stamp-h$_am_stamp_count
20417 ;;
20418
20419 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
20420 $as_echo "$as_me: executing $ac_file commands" >&6;}
20421 ;;
20422 esac
20423
20424
20425 case $ac_file$ac_mode in
20426 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
20427 # Older Autoconf quotes --file arguments for eval, but not when files
20428 # are listed without --file. Let's play safe and only enable the eval
20429 # if we detect the quoting.
20430 # TODO: see whether this extra hack can be removed once we start
20431 # requiring Autoconf 2.70 or later.
20432 case $CONFIG_FILES in #(
20433 *\'*) :
20434 eval set x "$CONFIG_FILES" ;; #(
20435 *) :
20436 set x $CONFIG_FILES ;; #(
20437 *) :
20438 ;;
20439 esac
20440 shift
20441 # Used to flag and report bootstrapping failures.
20442 am_rc=0
20443 for am_mf
20444 do
20445 # Strip MF so we end up with the name of the file.
20446 am_mf=`$as_echo "$am_mf" | sed -e 's/:.*$//'`
20447 # Check whether this is an Automake generated Makefile which includes
20448 # dependency-tracking related rules and includes.
20449 # Grep'ing the whole file directly is not great: AIX grep has a line
20450 # limit of 2048, but all sed's we know have understand at least 4000.
20451 sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \
20452 || continue
20453 am_dirpart=`$as_dirname -- "$am_mf" ||
20454 $as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20455 X"$am_mf" : 'X\(//\)[^/]' \| \
20456 X"$am_mf" : 'X\(//\)$' \| \
20457 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
20458 $as_echo X"$am_mf" |
20459 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20460 s//\1/
20461 q
20462 }
20463 /^X\(\/\/\)[^/].*/{
20464 s//\1/
20465 q
20466 }
20467 /^X\(\/\/\)$/{
20468 s//\1/
20469 q
20470 }
20471 /^X\(\/\).*/{
20472 s//\1/
20473 q
20474 }
20475 s/.*/./; q'`
20476 am_filepart=`$as_basename -- "$am_mf" ||
20477 $as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \
20478 X"$am_mf" : 'X\(//\)$' \| \
20479 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
20480 $as_echo X/"$am_mf" |
20481 sed '/^.*\/\([^/][^/]*\)\/*$/{
20482 s//\1/
20483 q
20484 }
20485 /^X\/\(\/\/\)$/{
20486 s//\1/
20487 q
20488 }
20489 /^X\/\(\/\).*/{
20490 s//\1/
20491 q
20492 }
20493 s/.*/./; q'`
20494 { echo "$as_me:$LINENO: cd "$am_dirpart" \
20495 && sed -e '/# am--include-marker/d' "$am_filepart" \
20496 | $MAKE -f - am--depfiles" >&5
20497 (cd "$am_dirpart" \
20498 && sed -e '/# am--include-marker/d' "$am_filepart" \
20499 | $MAKE -f - am--depfiles) >&5 2>&5
20500 ac_status=$?
20501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20502 (exit $ac_status); } || am_rc=$?
20503 done
20504 if test $am_rc -ne 0; then
20505 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
20506 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
20507 as_fn_error $? "Something went wrong bootstrapping makefile fragments
20508 for automatic dependency tracking. Try re-running configure with the
20509 '--disable-dependency-tracking' option to at least be able to build
20510 the package (albeit without support for automatic dependency tracking).
20511 See \`config.log' for more details" "$LINENO" 5; }
20512 fi
20513 { am_dirpart=; unset am_dirpart;}
20514 { am_filepart=; unset am_filepart;}
20515 { am_mf=; unset am_mf;}
20516 { am_rc=; unset am_rc;}
20517 rm -f conftest-deps.mk
20518 }
20519 ;;
20520 "po-directories":C)
20521 for ac_file in $CONFIG_FILES; do
20522 # Support "outfile[:infile[:infile...]]"
20523 case "$ac_file" in
20524 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
20525 esac
20526 # PO directories have a Makefile.in generated from Makefile.in.in.
20527 case "$ac_file" in */Makefile.in)
20528 # Adjust a relative srcdir.
20529 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
20530 ac_dir_suffix=/`echo "$ac_dir"|sed 's%^\./%%'`
20531 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
20532 # In autoconf-2.13 it is called $ac_given_srcdir.
20533 # In autoconf-2.50 it is called $srcdir.
20534 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
20535 case "$ac_given_srcdir" in
20536 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
20537 /*) top_srcdir="$ac_given_srcdir" ;;
20538 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
20539 esac
20540 # Treat a directory as a PO directory if and only if it has a
20541 # POTFILES.in file. This allows packages to have multiple PO
20542 # directories under different names or in different locations.
20543 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
20544 rm -f "$ac_dir/POTFILES"
20545 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
20546 gt_tab=`printf '\t'`
20547 cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ${gt_tab}]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
20548 POMAKEFILEDEPS="POTFILES.in"
20549 # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
20550 # on $ac_dir but don't depend on user-specified configuration
20551 # parameters.
20552 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
20553 # The LINGUAS file contains the set of available languages.
20554 if test -n "$OBSOLETE_ALL_LINGUAS"; then
20555 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
20556 fi
20557 ALL_LINGUAS_=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"`
20558 # Hide the ALL_LINGUAS assignment from automake < 1.5.
20559 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
20560 POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
20561 else
20562 # The set of available languages was given in configure.in.
20563 # Hide the ALL_LINGUAS assignment from automake < 1.5.
20564 eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
20565 fi
20566 # Compute POFILES
20567 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
20568 # Compute UPDATEPOFILES
20569 # as $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
20570 # Compute DUMMYPOFILES
20571 # as $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
20572 # Compute GMOFILES
20573 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
20574 case "$ac_given_srcdir" in
20575 .) srcdirpre= ;;
20576 *) srcdirpre='$(srcdir)/' ;;
20577 esac
20578 POFILES=
20579 UPDATEPOFILES=
20580 DUMMYPOFILES=
20581 GMOFILES=
20582 for lang in $ALL_LINGUAS; do
20583 POFILES="$POFILES $srcdirpre$lang.po"
20584 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
20585 DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
20586 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
20587 done
20588 # CATALOGS depends on both $ac_dir and the user's LINGUAS
20589 # environment variable.
20590 INST_LINGUAS=
20591 if test -n "$ALL_LINGUAS"; then
20592 for presentlang in $ALL_LINGUAS; do
20593 useit=no
20594 if test "%UNSET%" != "$LINGUAS"; then
20595 desiredlanguages="$LINGUAS"
20596 else
20597 desiredlanguages="$ALL_LINGUAS"
20598 fi
20599 for desiredlang in $desiredlanguages; do
20600 # Use the presentlang catalog if desiredlang is
20601 # a. equal to presentlang, or
20602 # b. a variant of presentlang (because in this case,
20603 # presentlang can be used as a fallback for messages
20604 # which are not translated in the desiredlang catalog).
20605 case "$desiredlang" in
20606 "$presentlang"*) useit=yes;;
20607 esac
20608 done
20609 if test $useit = yes; then
20610 INST_LINGUAS="$INST_LINGUAS $presentlang"
20611 fi
20612 done
20613 fi
20614 CATALOGS=
20615 if test -n "$INST_LINGUAS"; then
20616 for lang in $INST_LINGUAS; do
20617 CATALOGS="$CATALOGS $lang.gmo"
20618 done
20619 fi
20620 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
20621 sed -e "/^POTFILES =/r $ac_dir/POTFILES" -e "/^# Makevars/r $ac_given_srcdir/$ac_dir/Makevars" -e "s|@POFILES@|$POFILES|g" -e "s|@UPDATEPOFILES@|$UPDATEPOFILES|g" -e "s|@DUMMYPOFILES@|$DUMMYPOFILES|g" -e "s|@GMOFILES@|$GMOFILES|g" -e "s|@CATALOGS@|$CATALOGS|g" -e "s|@POMAKEFILEDEPS@|$POMAKEFILEDEPS|g" "$ac_dir/Makefile.in" > "$ac_dir/Makefile"
20622 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
20623 if test -f "$f"; then
20624 case "$f" in
20625 *.orig | *.bak | *~) ;;
20626 *) cat "$f" >> "$ac_dir/Makefile" ;;
20627 esac
20628 fi
20629 done
20630 fi
20631 ;;
20632 esac
20633 done ;;
20634
20635 esac
20636 done # for ac_tag
20637
20638
20639 as_fn_exit 0
20640 _ACEOF
20641 ac_clean_files=$ac_clean_files_save
20642
20643 test $ac_write_fail = 0 ||
20644 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
20645
20646
20647 # configure is writing to config.log, and then calls config.status.
20648 # config.status does its own redirection, appending to config.log.
20649 # Unfortunately, on DOS this fails, as config.log is still kept open
20650 # by configure, so config.status won't be able to write to it; its
20651 # output is simply discarded. So we exec the FD to /dev/null,
20652 # effectively closing config.log, so it can be properly (re)opened and
20653 # appended to by config.status. When coming back to configure, we
20654 # need to make the FD available again.
20655 if test "$no_create" != yes; then
20656 ac_cs_success=:
20657 ac_config_status_args=
20658 test "$silent" = yes &&
20659 ac_config_status_args="$ac_config_status_args --quiet"
20660 exec 5>/dev/null
20661 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
20662 exec 5>>config.log
20663 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
20664 # would make configure fail if this is the last instruction.
20665 $ac_cs_success || as_fn_exit 1
20666 fi
20667 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
20668 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
20669 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
20670 fi
20671
20672